]>
Commit | Line | Data |
---|---|---|
a848cd7e SC |
1 | #! /bin/sh |
2 | # From configure.in Id: configure.in. | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
81f90336 | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.4. |
a848cd7e | 5 | # |
77ffb593 | 6 | # Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e | 7 | # |
ac1cb8d3 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
15 | # Be Bourne compatible | |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23 | set -o posix | |
24 | fi | |
ac1cb8d3 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
26 | |
27 | # Support unset when possible. | |
ac1cb8d3 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
ac1cb8d3 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
54 | # Required to use basename. | |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
60 | ||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
66 | ||
67 | ||
68 | # Name of the executable. | |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
79 | ||
80 | ||
81 | # PATH needs CR, and LINENO needs CR and PATH. | |
82 | # Avoid depending upon Character Ranges. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
88 | ||
89 | # The user is always right. | |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
91 | echo "#! /bin/sh" >conf$$.sh | |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 | PATH_SEPARATOR=';' | |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
99 | rm -f conf$$.sh | |
100 | fi | |
101 | ||
102 | ||
103 | as_lineno_1=$LINENO | |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
119 | ||
120 | ;; | |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 | CONFIG_SHELL=$as_dir/$as_base | |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
158 | ||
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
188 | ||
189 | ||
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
196 | ||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
203 | rm -f conf$$ conf$$.exe conf$$.file | |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
220 | ||
221 | if mkdir -p . 2>/dev/null; then | |
222 | as_mkdir_p=: | |
223 | else | |
ac1cb8d3 | 224 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
225 | as_mkdir_p=false |
226 | fi | |
227 | ||
228 | as_executable_p="test -f" | |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
232 | |
233 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
235 | |
236 | ||
237 | # IFS | |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
242 | ||
243 | # CDPATH. | |
244 | $as_unset CDPATH | |
245 | ||
246 | ||
247 | # Name of the host. | |
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
249 | # so uname gets run too. | |
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
251 | ||
252 | exec 6>&1 | |
253 | ||
254 | # | |
255 | # Initializations. | |
256 | # | |
257 | ac_default_prefix=/usr/local | |
258 | ac_config_libobj_dir=. | |
259 | cross_compiling=no | |
260 | subdirs= | |
261 | MFLAGS= | |
262 | MAKEFLAGS= | |
263 | SHELL=${CONFIG_SHELL-/bin/sh} | |
264 | ||
265 | # Maximum number of lines to put in a shell here document. | |
266 | # This variable seems obsolete. It should probably be removed, and | |
267 | # only ac_max_sed_lines should be used. | |
268 | : ${ac_max_here_lines=38} | |
269 | ||
270 | # Identity of this package. | |
77ffb593 JS |
271 | PACKAGE_NAME='wxWidgets' |
272 | PACKAGE_TARNAME='wxwidgets' | |
81f90336 MW |
273 | PACKAGE_VERSION='2.5.4' |
274 | PACKAGE_STRING='wxWidgets 2.5.4' | |
77ffb593 | 275 | PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org' |
a848cd7e SC |
276 | |
277 | ac_unique_file="wx-config.in" | |
278 | # Factoring default headers for most tests. | |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
314 | ||
315 | ac_subdirs_all="$ac_subdirs_all src/expat" | |
dae87f93 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
81f90336 | 797 | \`configure' configures wxWidgets 2.5.4 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
81f90336 | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.4:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
9f45f08e | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
ffa0583f | 894 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
895 | --enable-intl use internationalization system |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 906 | --enable-arcstream use wxArchive streams |
a848cd7e | 907 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
eaff0f0d | 908 | --enable-backtrace use wxStackWalker class for getting backtraces |
a848cd7e SC |
909 | --enable-cmdline use wxCmdLineParser class |
910 | --enable-datetime use wxDateTime class | |
911 | --enable-dialupman use dialup network classes | |
912 | --enable-dynlib use wxLibrary class for DLL loading | |
913 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
914 | --enable-exceptions build exception-safe library | |
915 | --enable-ffile use wxFFile class | |
916 | --enable-file use wxFile class | |
917 | --enable-filesystem use virtual file systems classes | |
918 | --enable-fontmap use font encodings conversion classes | |
919 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
920 | --enable-fs_zip use virtual ZIP filesystems | |
921 | --enable-geometry use geometry class | |
922 | --enable-log use logging system | |
923 | --enable-longlong use wxLongLong class | |
924 | --enable-mimetype use wxMimeTypesManager | |
925 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
926 | --enable-snglinst use wxSingleInstanceChecker class | |
927 | --enable-streams use wxStream etc classes | |
928 | --enable-std_iostreams use standard C++ stream classes | |
929 | --enable-stopwatch use wxStopWatch class | |
930 | --enable-sysoptions use wxSystemOptions | |
931 | --enable-textbuf use wxTextBuffer class | |
932 | --enable-textfile use wxTextFile class | |
933 | --enable-timer use wxTimer class | |
934 | --enable-unicode compile wxString with Unicode support | |
935 | --enable-sound use wxSound class | |
3b57de8b | 936 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 937 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
81f90336 | 938 | --enable-zipstream use wxZip streams |
a848cd7e SC |
939 | --enable-url use wxURL class |
940 | --enable-protocol use wxProtocol class | |
941 | --enable-protocol-http HTTP support in wxProtocol | |
942 | --enable-protocol-ftp FTP support in wxProtocol | |
943 | --enable-protocol-file FILE support in wxProtocol | |
944 | --enable-threads use threads | |
945 | --enable-docview use document view architecture | |
946 | --enable-help use help subsystem | |
947 | --enable-mshtmlhelp use MS HTML Help (win32) | |
948 | --enable-html use wxHTML sub-library | |
949 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 950 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
951 | --enable-constraints use layout-constraints system |
952 | --enable-printarch use printing architecture | |
953 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 954 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
955 | --enable-loggui use standard GUI logger |
956 | --enable-logwin use wxLogWindow | |
957 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 958 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
959 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
960 | --enable-prologio not available; see contrib | |
961 | --enable-resources not available; see contrib | |
962 | --enable-clipboard use wxClipboard class | |
963 | --enable-dnd use Drag'n'Drop classes | |
964 | --enable-metafile use win32 metafiles | |
965 | --enable-controls use all usual controls | |
966 | --enable-accel use accelerators | |
967 | --enable-button use wxButton class | |
968 | --enable-bmpbutton use wxBitmapButton class | |
969 | --enable-calendar use wxCalendarCtrl class | |
970 | --enable-caret use wxCaret class | |
971 | --enable-checkbox use wxCheckBox class | |
972 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
973 | --enable-choice use wxChoice class | |
92bbdbcd | 974 | --enable-choicebook use wxChoicebook class |
a848cd7e | 975 | --enable-combobox use wxComboBox class |
da98e9be | 976 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
977 | --enable-display use wxDisplay class |
978 | --enable-gauge use wxGauge class | |
979 | --enable-grid use wxGrid class | |
980 | --enable-imaglist use wxImageList class | |
981 | --enable-listbook use wxListbook class | |
982 | --enable-listbox use wxListBox class | |
983 | --enable-listctrl use wxListCtrl class | |
984 | --enable-notebook use wxNotebook class | |
985 | --enable-radiobox use wxRadioBox class | |
986 | --enable-radiobtn use wxRadioButton class | |
987 | --enable-sash use wxSashWindow class | |
988 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
989 | --enable-slider use wxSlider class | |
990 | --enable-spinbtn use wxSpinButton class | |
991 | --enable-spinctrl use wxSpinCtrl class | |
992 | --enable-splitter use wxSplitterWindow class | |
993 | --enable-statbmp use wxStaticBitmap class | |
994 | --enable-statbox use wxStaticBox class | |
995 | --enable-statline use wxStaticLine class | |
996 | --enable-stattext use wxStaticText class | |
997 | --enable-statusbar use wxStatusBar class | |
998 | --enable-tabdialog use wxTabControl class | |
999 | --enable-textctrl use wxTextCtrl class | |
1000 | --enable-togglebtn use wxToggleButton class | |
1001 | --enable-toolbar use wxToolBar class | |
1002 | --enable-tbarnative use native wxToolBar class | |
1003 | --enable-tbarsmpl use wxToolBarSimple class | |
1004 | --enable-treectrl use wxTreeCtrl class | |
1005 | --enable-tipwindow use wxTipWindow class | |
1006 | --enable-popupwin use wxPopUpWindow class | |
1007 | --enable-commondlg use all common dialogs | |
1008 | --enable-choicedlg use wxChoiceDialog | |
1009 | --enable-coldlg use wxColourDialog | |
1010 | --enable-filedlg use wxFileDialog | |
1011 | --enable-finddlg use wxFindReplaceDialog | |
1012 | --enable-fontdlg use wxFontDialog | |
1013 | --enable-dirdlg use wxDirDialog | |
1014 | --enable-msgdlg use wxMessageDialog | |
1015 | --enable-numberdlg use wxNumberEntryDialog | |
1016 | --enable-splash use wxSplashScreen | |
1017 | --enable-textdlg use wxTextDialog | |
1018 | --enable-tipdlg use startup tips | |
1019 | --enable-progressdlg use wxProgressDialog | |
1020 | --enable-wizarddlg use wxWizard | |
1021 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1022 | --enable-miniframe use wxMiniFrame class | |
1023 | --enable-tooltips use wxToolTip class | |
1024 | --enable-splines use spline drawing code | |
1025 | --enable-validators use wxValidator and derived classes | |
1026 | --enable-busyinfo use wxBusyInfo | |
1027 | --enable-joystick use wxJoystick (Linux only) | |
1028 | --enable-metafiles use wxMetaFile (Windows only) | |
1029 | --enable-dragimage use wxDragImage | |
1030 | --enable-accessibility enable accessibility support | |
1031 | --enable-palette use wxPalette class | |
1032 | --enable-image use wxImage class | |
1033 | --enable-gif use gif images (GIF file format) | |
1034 | --enable-pcx use pcx images (PCX file format) | |
1035 | --enable-iff use iff images (IFF file format) | |
1036 | --enable-pnm use pnm images (PNM file format) | |
1037 | --enable-xpm use xpm images (XPM file format) | |
1038 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1039 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1040 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1041 | --disable-largefile omit support for large files | |
1042 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1043 | --disable-gtktest Do not try to compile and run a test GTK program | |
1044 | --disable-sdltest Do not try to compile and run a test SDL program | |
1045 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1046 | --disable-precomp-headers |
1047 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1048 | |
1049 | Optional Packages: | |
1050 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1051 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1052 | --with-gtk use GTK+ | |
1053 | --with-motif use Motif/Lesstif | |
1054 | --with-mac use Mac OS X | |
1055 | --with-cocoa use Cocoa | |
1056 | --with-wine use Wine | |
1057 | --with-msw use MS-Windows | |
1058 | --with-pm use OS/2 Presentation Manager | |
1059 | --with-mgl use SciTech MGL | |
1060 | --with-microwin use MicroWindows | |
1061 | --with-x11 use X11 | |
1062 | --with-libpng use libpng (PNG image format) | |
1063 | --with-libjpeg use libjpeg (JPEG file format) | |
1064 | --with-libtiff use libtiff (TIFF file format) | |
1065 | --with-libxpm use libxpm (XPM file format) | |
1066 | --with-libmspack use libmspack (CHM help files loading) | |
1067 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1068 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1069 | --with-opengl use OpenGL (or Mesa) |
1070 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1071 | --with-regex enable support for wxRegEx class | |
1072 | --with-zlib use zlib for LZW compression | |
1073 | --with-odbc use the IODBC and wxODBC classes | |
1074 | --with-expat enable XML support using expat parser | |
ceec2216 | 1075 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1076 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1077 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1078 | --with-x use the X Window System | |
1079 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1080 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1081 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1082 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1083 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1084 | ||
1085 | Some influential environment variables: | |
dcc1b6ad VS |
1086 | CC C compiler command |
1087 | CFLAGS C compiler flags | |
1088 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1089 | nonstandard directory <lib dir> | |
1090 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1091 | headers in a nonstandard directory <include dir> | |
1092 | CPP C preprocessor | |
1093 | CXX C++ compiler command | |
1094 | CXXFLAGS C++ compiler flags | |
1095 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1096 | |
1097 | Use these variables to override the choices made by `configure' or to help | |
1098 | it to find libraries and programs with nonstandard names/locations. | |
1099 | ||
77ffb593 | 1100 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1101 | _ACEOF |
1102 | fi | |
1103 | ||
1104 | if test "$ac_init_help" = "recursive"; then | |
1105 | # If there are subdirs, report their specific --help. | |
1106 | ac_popdir=`pwd` | |
1107 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1108 | test -d $ac_dir || continue | |
1109 | ac_builddir=. | |
1110 | ||
1111 | if test "$ac_dir" != .; then | |
1112 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1113 | # A "../" for each directory in $ac_dir_suffix. | |
1114 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1115 | else | |
1116 | ac_dir_suffix= ac_top_builddir= | |
1117 | fi | |
1118 | ||
1119 | case $srcdir in | |
1120 | .) # No --srcdir option. We are building in place. | |
1121 | ac_srcdir=. | |
1122 | if test -z "$ac_top_builddir"; then | |
1123 | ac_top_srcdir=. | |
1124 | else | |
1125 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1126 | fi ;; | |
1127 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1128 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1129 | ac_top_srcdir=$srcdir ;; | |
1130 | *) # Relative path. | |
1131 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1132 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1133 | esac | |
ac1cb8d3 VS |
1134 | |
1135 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1136 | # the directories may not exist. | |
1137 | case `pwd` in | |
1138 | .) ac_abs_builddir="$ac_dir";; | |
1139 | *) | |
1140 | case "$ac_dir" in | |
1141 | .) ac_abs_builddir=`pwd`;; | |
1142 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1143 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1144 | esac;; | |
1145 | esac | |
1146 | case $ac_abs_builddir in | |
1147 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1148 | *) | |
1149 | case ${ac_top_builddir}. in | |
1150 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1151 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1152 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1153 | esac;; | |
1154 | esac | |
1155 | case $ac_abs_builddir in | |
1156 | .) ac_abs_srcdir=$ac_srcdir;; | |
1157 | *) | |
1158 | case $ac_srcdir in | |
1159 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1160 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1161 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1162 | esac;; | |
1163 | esac | |
1164 | case $ac_abs_builddir in | |
1165 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1166 | *) | |
1167 | case $ac_top_srcdir in | |
1168 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1169 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1170 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1171 | esac;; | |
1172 | esac | |
a848cd7e SC |
1173 | |
1174 | cd $ac_dir | |
1175 | # Check for guested configure; otherwise get Cygnus style configure. | |
1176 | if test -f $ac_srcdir/configure.gnu; then | |
1177 | echo | |
1178 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1179 | elif test -f $ac_srcdir/configure; then | |
1180 | echo | |
1181 | $SHELL $ac_srcdir/configure --help=recursive | |
1182 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1183 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1184 | echo |
1185 | $ac_configure --help | |
1186 | else | |
1187 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1188 | fi | |
89be85c2 | 1189 | cd $ac_popdir |
a848cd7e SC |
1190 | done |
1191 | fi | |
1192 | ||
1193 | test -n "$ac_init_help" && exit 0 | |
1194 | if $ac_init_version; then | |
1195 | cat <<\_ACEOF | |
81f90336 | 1196 | wxWidgets configure 2.5.4 |
ac1cb8d3 | 1197 | generated by GNU Autoconf 2.59 |
a848cd7e | 1198 | |
ac1cb8d3 | 1199 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1200 | This configure script is free software; the Free Software Foundation |
1201 | gives unlimited permission to copy, distribute and modify it. | |
1202 | _ACEOF | |
1203 | exit 0 | |
1204 | fi | |
1205 | exec 5>config.log | |
1206 | cat >&5 <<_ACEOF | |
1207 | This file contains any messages produced by compilers while | |
1208 | running configure, to aid debugging if configure makes a mistake. | |
1209 | ||
81f90336 | 1210 | It was created by wxWidgets $as_me 2.5.4, which was |
ac1cb8d3 | 1211 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1212 | |
1213 | $ $0 $@ | |
1214 | ||
1215 | _ACEOF | |
1216 | { | |
1217 | cat <<_ASUNAME | |
1218 | ## --------- ## | |
1219 | ## Platform. ## | |
1220 | ## --------- ## | |
1221 | ||
1222 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1223 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1224 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1225 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1226 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1227 | ||
1228 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1229 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1230 | ||
1231 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1232 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1233 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1234 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1235 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1236 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1237 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1238 | ||
1239 | _ASUNAME | |
1240 | ||
1241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1242 | for as_dir in $PATH | |
1243 | do | |
1244 | IFS=$as_save_IFS | |
1245 | test -z "$as_dir" && as_dir=. | |
1246 | echo "PATH: $as_dir" | |
1247 | done | |
1248 | ||
1249 | } >&5 | |
1250 | ||
1251 | cat >&5 <<_ACEOF | |
1252 | ||
1253 | ||
1254 | ## ----------- ## | |
1255 | ## Core tests. ## | |
1256 | ## ----------- ## | |
1257 | ||
1258 | _ACEOF | |
1259 | ||
1260 | ||
1261 | # Keep a trace of the command line. | |
1262 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1263 | # Strip out --silent because we don't want to record it for future runs. | |
1264 | # Also quote any args containing shell meta-characters. | |
1265 | # Make two passes to allow for proper duplicate-argument suppression. | |
1266 | ac_configure_args= | |
1267 | ac_configure_args0= | |
1268 | ac_configure_args1= | |
1269 | ac_sep= | |
1270 | ac_must_keep_next=false | |
1271 | for ac_pass in 1 2 | |
1272 | do | |
1273 | for ac_arg | |
1274 | do | |
1275 | case $ac_arg in | |
1276 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1277 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1278 | | -silent | --silent | --silen | --sile | --sil) | |
1279 | continue ;; | |
1280 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1281 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1282 | esac | |
1283 | case $ac_pass in | |
1284 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1285 | 2) | |
1286 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1287 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1288 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1289 | else |
ac1cb8d3 VS |
1290 | case $ac_arg in |
1291 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1292 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1293 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1294 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1295 | case "$ac_configure_args0 " in | |
1296 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1297 | esac | |
1298 | ;; | |
1299 | -* ) ac_must_keep_next=true ;; | |
1300 | esac | |
a848cd7e SC |
1301 | fi |
1302 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1303 | # Get rid of the leading space. | |
1304 | ac_sep=" " | |
1305 | ;; | |
1306 | esac | |
1307 | done | |
1308 | done | |
1309 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1310 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1311 | ||
1312 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1313 | # config.log. We remove comments because anyway the quotes in there | |
1314 | # would cause problems or look ugly. | |
1315 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1316 | # such as our DU 5.0 friend, will then `close' the trap. | |
1317 | trap 'exit_status=$? | |
1318 | # Save into config.log some information that might help in debugging. | |
1319 | { | |
1320 | echo | |
1321 | ||
1322 | cat <<\_ASBOX | |
1323 | ## ---------------- ## | |
1324 | ## Cache variables. ## | |
1325 | ## ---------------- ## | |
1326 | _ASBOX | |
1327 | echo | |
1328 | # The following way of writing the cache mishandles newlines in values, | |
1329 | { | |
1330 | (set) 2>&1 | | |
1331 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1332 | *ac_space=\ *) | |
1333 | sed -n \ | |
ac1cb8d3 VS |
1334 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1335 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1336 | ;; |
1337 | *) | |
1338 | sed -n \ | |
ac1cb8d3 | 1339 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1340 | ;; |
1341 | esac; | |
1342 | } | |
1343 | echo | |
1344 | ||
1345 | cat <<\_ASBOX | |
1346 | ## ----------------- ## | |
1347 | ## Output variables. ## | |
1348 | ## ----------------- ## | |
1349 | _ASBOX | |
1350 | echo | |
1351 | for ac_var in $ac_subst_vars | |
1352 | do | |
1353 | eval ac_val=$`echo $ac_var` | |
1354 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1355 | done | sort | |
1356 | echo | |
1357 | ||
1358 | if test -n "$ac_subst_files"; then | |
1359 | cat <<\_ASBOX | |
1360 | ## ------------- ## | |
1361 | ## Output files. ## | |
1362 | ## ------------- ## | |
1363 | _ASBOX | |
1364 | echo | |
1365 | for ac_var in $ac_subst_files | |
1366 | do | |
1367 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1368 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1369 | done | sort |
1370 | echo | |
1371 | fi | |
1372 | ||
1373 | if test -s confdefs.h; then | |
1374 | cat <<\_ASBOX | |
1375 | ## ----------- ## | |
1376 | ## confdefs.h. ## | |
1377 | ## ----------- ## | |
1378 | _ASBOX | |
1379 | echo | |
1380 | sed "/^$/d" confdefs.h | sort | |
1381 | echo | |
1382 | fi | |
1383 | test "$ac_signal" != 0 && | |
1384 | echo "$as_me: caught signal $ac_signal" | |
1385 | echo "$as_me: exit $exit_status" | |
1386 | } >&5 | |
ac1cb8d3 | 1387 | rm -f core *.core && |
a848cd7e SC |
1388 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1389 | exit $exit_status | |
1390 | ' 0 | |
1391 | for ac_signal in 1 2 13 15; do | |
1392 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1393 | done | |
1394 | ac_signal=0 | |
1395 | ||
1396 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1397 | rm -rf conftest* confdefs.h | |
1398 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1399 | echo >confdefs.h | |
1400 | ||
1401 | # Predefined preprocessor variables. | |
1402 | ||
1403 | cat >>confdefs.h <<_ACEOF | |
1404 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1405 | _ACEOF | |
1406 | ||
1407 | ||
1408 | cat >>confdefs.h <<_ACEOF | |
1409 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1410 | _ACEOF | |
1411 | ||
1412 | ||
1413 | cat >>confdefs.h <<_ACEOF | |
1414 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1415 | _ACEOF | |
1416 | ||
1417 | ||
1418 | cat >>confdefs.h <<_ACEOF | |
1419 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1420 | _ACEOF | |
1421 | ||
1422 | ||
1423 | cat >>confdefs.h <<_ACEOF | |
1424 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1425 | _ACEOF | |
1426 | ||
1427 | ||
1428 | # Let the site file select an alternate cache file if it wants to. | |
1429 | # Prefer explicitly selected file to automatically selected ones. | |
1430 | if test -z "$CONFIG_SITE"; then | |
1431 | if test "x$prefix" != xNONE; then | |
1432 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1433 | else | |
1434 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1435 | fi | |
1436 | fi | |
1437 | for ac_site_file in $CONFIG_SITE; do | |
1438 | if test -r "$ac_site_file"; then | |
1439 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1440 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1441 | sed 's/^/| /' "$ac_site_file" >&5 | |
1442 | . "$ac_site_file" | |
1443 | fi | |
1444 | done | |
1445 | ||
1446 | if test -r "$cache_file"; then | |
1447 | # Some versions of bash will fail to source /dev/null (special | |
1448 | # files actually), so we avoid doing that. | |
1449 | if test -f "$cache_file"; then | |
1450 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1451 | echo "$as_me: loading cache $cache_file" >&6;} | |
1452 | case $cache_file in | |
1453 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1454 | *) . ./$cache_file;; | |
1455 | esac | |
1456 | fi | |
1457 | else | |
1458 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1459 | echo "$as_me: creating cache $cache_file" >&6;} | |
1460 | >$cache_file | |
1461 | fi | |
1462 | ||
1463 | # Check that the precious variables saved in the cache have kept the same | |
1464 | # value. | |
1465 | ac_cache_corrupted=false | |
1466 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1467 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1468 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1469 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1470 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1471 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1472 | case $ac_old_set,$ac_new_set in | |
1473 | set,) | |
1474 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1475 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1476 | ac_cache_corrupted=: ;; | |
1477 | ,set) | |
1478 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1479 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1480 | ac_cache_corrupted=: ;; | |
1481 | ,);; | |
1482 | *) | |
1483 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1484 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1485 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1486 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1487 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1488 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1489 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1490 | ac_cache_corrupted=: |
a848cd7e SC |
1491 | fi;; |
1492 | esac | |
1493 | # Pass precious variables to config.status. | |
1494 | if test "$ac_new_set" = set; then | |
1495 | case $ac_new_val in | |
1496 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1497 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1498 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1499 | esac | |
1500 | case " $ac_configure_args " in | |
1501 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1502 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1503 | esac | |
1504 | fi | |
1505 | done | |
1506 | if $ac_cache_corrupted; then | |
1507 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1508 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1509 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1510 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1511 | { (exit 1); exit 1; }; } | |
1512 | fi | |
1513 | ||
1514 | ac_ext=c | |
1515 | ac_cpp='$CPP $CPPFLAGS' | |
1516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ac_aux_dir= | |
1550 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1551 | if test -f $ac_dir/install-sh; then | |
1552 | ac_aux_dir=$ac_dir | |
1553 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1554 | break | |
1555 | elif test -f $ac_dir/install.sh; then | |
1556 | ac_aux_dir=$ac_dir | |
1557 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1558 | break | |
1559 | elif test -f $ac_dir/shtool; then | |
1560 | ac_aux_dir=$ac_dir | |
1561 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1562 | break | |
1563 | fi | |
1564 | done | |
1565 | if test -z "$ac_aux_dir"; then | |
1566 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1567 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1568 | { (exit 1); exit 1; }; } | |
1569 | fi | |
1570 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1571 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1572 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1573 | ||
1574 | # Make sure we can run config.sub. | |
1575 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1576 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1577 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1578 | { (exit 1); exit 1; }; } | |
1579 | ||
1580 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1581 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1582 | if test "${ac_cv_build+set}" = set; then | |
1583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1584 | else | |
1585 | ac_cv_build_alias=$build_alias | |
1586 | test -z "$ac_cv_build_alias" && | |
1587 | ac_cv_build_alias=`$ac_config_guess` | |
1588 | test -z "$ac_cv_build_alias" && | |
1589 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1590 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1591 | { (exit 1); exit 1; }; } | |
1592 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1593 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1594 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1595 | { (exit 1); exit 1; }; } | |
1596 | ||
1597 | fi | |
1598 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1599 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1600 | build=$ac_cv_build | |
1601 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1602 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1603 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1604 | ||
1605 | ||
1606 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1607 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1608 | if test "${ac_cv_host+set}" = set; then | |
1609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1610 | else | |
1611 | ac_cv_host_alias=$host_alias | |
1612 | test -z "$ac_cv_host_alias" && | |
1613 | ac_cv_host_alias=$ac_cv_build_alias | |
1614 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1615 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1616 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1617 | { (exit 1); exit 1; }; } | |
1618 | ||
1619 | fi | |
1620 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1621 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1622 | host=$ac_cv_host | |
1623 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1624 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1625 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1626 | ||
1627 | ||
1628 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1629 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1630 | if test "${ac_cv_target+set}" = set; then | |
1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1632 | else | |
1633 | ac_cv_target_alias=$target_alias | |
1634 | test "x$ac_cv_target_alias" = "x" && | |
1635 | ac_cv_target_alias=$ac_cv_host_alias | |
1636 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1637 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1638 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1639 | { (exit 1); exit 1; }; } | |
1640 | ||
1641 | fi | |
1642 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1643 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1644 | target=$ac_cv_target | |
1645 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1646 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1647 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1648 | ||
1649 | ||
1650 | # The aliases save the names the user supplied, while $host etc. | |
1651 | # will get canonicalized. | |
1652 | test -n "$target_alias" && | |
1653 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1654 | NONENONEs,x,x, && | |
1655 | program_prefix=${target_alias}- | |
1656 | ||
1657 | ||
1658 | ||
ceec2216 RL |
1659 | wx_major_version_number=2 |
1660 | wx_minor_version_number=5 | |
e41c39d6 RD |
1661 | wx_release_number=4 |
1662 | wx_subrelease_number=0 | |
a848cd7e | 1663 | |
ceec2216 RL |
1664 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1665 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1666 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1667 | |
ceec2216 | 1668 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1669 | |
e41c39d6 | 1670 | WX_CURRENT=4 |
a848cd7e | 1671 | WX_REVISION=0 |
e41c39d6 | 1672 | WX_AGE=4 |
a848cd7e SC |
1673 | |
1674 | ||
1675 | ||
1676 | USE_UNIX=1 | |
1677 | USE_OS2=0 | |
1678 | USE_WIN32=0 | |
1679 | USE_DOS=0 | |
1680 | USE_BEOS=0 | |
1681 | USE_MAC=0 | |
1682 | ||
1683 | USE_AIX= | |
1684 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1685 | USE_GNU= USE_HPUX= | |
1686 | USE_LINUX= | |
1687 | USE_NETBSD= | |
1688 | USE_OPENBSD= | |
1689 | USE_OSF= USE_SGI= | |
1690 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1691 | USE_ULTRIX= | |
1692 | USE_UNIXWARE= | |
1693 | ||
1694 | USE_ALPHA= | |
1695 | ||
1696 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1697 | ||
1698 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1699 | ||
1700 | DEFAULT_wxUSE_COCOA=0 | |
1701 | DEFAULT_wxUSE_GTK=0 | |
1702 | DEFAULT_wxUSE_MAC=0 | |
1703 | DEFAULT_wxUSE_MGL=0 | |
1704 | DEFAULT_wxUSE_MICROWIN=0 | |
1705 | DEFAULT_wxUSE_MOTIF=0 | |
1706 | DEFAULT_wxUSE_MSW=0 | |
1707 | DEFAULT_wxUSE_PM=0 | |
1708 | DEFAULT_wxUSE_X11=0 | |
1709 | ||
1710 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1711 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1717 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1719 | ||
1720 | PROGRAM_EXT= | |
1721 | SO_SUFFIX=so | |
1722 | SAMPLES_RPATH_FLAG= | |
1723 | SAMPLES_RPATH_POSTLINK= | |
1724 | ||
1725 | case "${host}" in | |
1726 | *-hp-hpux* ) | |
1727 | USE_HPUX=1 | |
1728 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1729 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1730 | SO_SUFFIX=sl | |
1731 | cat >>confdefs.h <<\_ACEOF | |
1732 | #define __HPUX__ 1 | |
1733 | _ACEOF | |
1734 | ||
1735 | ;; | |
1736 | *-*-linux* ) | |
1737 | USE_LINUX=1 | |
1738 | cat >>confdefs.h <<\_ACEOF | |
1739 | #define __LINUX__ 1 | |
1740 | _ACEOF | |
1741 | ||
1742 | TMP=`uname -m` | |
1743 | if test "x$TMP" = "xalpha"; then | |
1744 | USE_ALPHA=1 | |
1745 | cat >>confdefs.h <<\_ACEOF | |
1746 | #define __ALPHA__ 1 | |
1747 | _ACEOF | |
1748 | ||
1749 | fi | |
1750 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1751 | ;; | |
1752 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1753 | USE_GNU=1 | |
1754 | TMP=`uname -m` | |
1755 | if test "x$TMP" = "xalpha"; then | |
1756 | USE_ALPHA=1 | |
1757 | cat >>confdefs.h <<\_ACEOF | |
1758 | #define __ALPHA__ 1 | |
1759 | _ACEOF | |
1760 | ||
1761 | fi | |
1762 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1763 | ;; | |
1764 | *-*-irix5* | *-*-irix6* ) | |
1765 | USE_SGI=1 | |
1766 | USE_SVR4=1 | |
1767 | cat >>confdefs.h <<\_ACEOF | |
1768 | #define __SGI__ 1 | |
1769 | _ACEOF | |
1770 | ||
1771 | cat >>confdefs.h <<\_ACEOF | |
1772 | #define __SVR4__ 1 | |
1773 | _ACEOF | |
1774 | ||
1775 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1776 | ;; | |
1777 | *-*-solaris2* ) | |
1778 | USE_SUN=1 | |
1779 | USE_SOLARIS=1 | |
1780 | USE_SVR4=1 | |
1781 | cat >>confdefs.h <<\_ACEOF | |
1782 | #define __SUN__ 1 | |
1783 | _ACEOF | |
1784 | ||
1785 | cat >>confdefs.h <<\_ACEOF | |
1786 | #define __SOLARIS__ 1 | |
1787 | _ACEOF | |
1788 | ||
1789 | cat >>confdefs.h <<\_ACEOF | |
1790 | #define __SVR4__ 1 | |
1791 | _ACEOF | |
1792 | ||
1793 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1794 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1795 | ;; | |
1796 | *-*-sunos4* ) | |
1797 | USE_SUN=1 | |
1798 | USE_SUNOS=1 | |
1799 | USE_BSD=1 | |
1800 | cat >>confdefs.h <<\_ACEOF | |
1801 | #define __SUN__ 1 | |
1802 | _ACEOF | |
1803 | ||
1804 | cat >>confdefs.h <<\_ACEOF | |
1805 | #define __SUNOS__ 1 | |
1806 | _ACEOF | |
1807 | ||
1808 | cat >>confdefs.h <<\_ACEOF | |
1809 | #define __BSD__ 1 | |
1810 | _ACEOF | |
1811 | ||
1812 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1813 | ;; | |
1814 | *-*-freebsd*) | |
1815 | USE_BSD=1 | |
1816 | USE_FREEBSD=1 | |
1817 | cat >>confdefs.h <<\_ACEOF | |
1818 | #define __FREEBSD__ 1 | |
1819 | _ACEOF | |
1820 | ||
1821 | cat >>confdefs.h <<\_ACEOF | |
1822 | #define __BSD__ 1 | |
1823 | _ACEOF | |
1824 | ||
1825 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1826 | ;; | |
1827 | *-*-openbsd*) | |
1828 | USE_BSD=1 | |
1829 | USE_OPENBSD=1 | |
1830 | cat >>confdefs.h <<\_ACEOF | |
1831 | #define __OPENBSD__ 1 | |
1832 | _ACEOF | |
1833 | ||
1834 | cat >>confdefs.h <<\_ACEOF | |
1835 | #define __BSD__ 1 | |
1836 | _ACEOF | |
1837 | ||
1838 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1839 | ;; | |
1840 | *-*-netbsd*) | |
1841 | USE_BSD=1 | |
1842 | USE_NETBSD=1 | |
1843 | cat >>confdefs.h <<\_ACEOF | |
1844 | #define __NETBSD__ 1 | |
1845 | _ACEOF | |
1846 | ||
1847 | cat >>confdefs.h <<\_ACEOF | |
1848 | #define __BSD__ 1 | |
1849 | _ACEOF | |
1850 | ||
1851 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1852 | ;; | |
1853 | *-*-osf* ) | |
1854 | USE_ALPHA=1 | |
1855 | USE_OSF=1 | |
1856 | cat >>confdefs.h <<\_ACEOF | |
1857 | #define __ALPHA__ 1 | |
1858 | _ACEOF | |
1859 | ||
1860 | cat >>confdefs.h <<\_ACEOF | |
1861 | #define __OSF__ 1 | |
1862 | _ACEOF | |
1863 | ||
1864 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1865 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1866 | ;; | |
1867 | *-*-dgux5* ) | |
1868 | USE_ALPHA=1 | |
1869 | USE_SVR4=1 | |
1870 | cat >>confdefs.h <<\_ACEOF | |
1871 | #define __ALPHA__ 1 | |
1872 | _ACEOF | |
1873 | ||
1874 | cat >>confdefs.h <<\_ACEOF | |
1875 | #define __SVR4__ 1 | |
1876 | _ACEOF | |
1877 | ||
1878 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1879 | ;; | |
1880 | *-*-sysv5* ) | |
1881 | USE_SYSV=1 | |
1882 | USE_SVR4=1 | |
1883 | cat >>confdefs.h <<\_ACEOF | |
1884 | #define __SYSV__ 1 | |
1885 | _ACEOF | |
1886 | ||
1887 | cat >>confdefs.h <<\_ACEOF | |
1888 | #define __SVR4__ 1 | |
1889 | _ACEOF | |
1890 | ||
1891 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1892 | ;; | |
1893 | *-*-aix* ) | |
1894 | USE_AIX=1 | |
1895 | USE_SYSV=1 | |
1896 | USE_SVR4=1 | |
1897 | SO_SUFFIX=a | |
1898 | cat >>confdefs.h <<\_ACEOF | |
1899 | #define __AIX__ 1 | |
1900 | _ACEOF | |
1901 | ||
1902 | cat >>confdefs.h <<\_ACEOF | |
1903 | #define __SYSV__ 1 | |
1904 | _ACEOF | |
1905 | ||
1906 | cat >>confdefs.h <<\_ACEOF | |
1907 | #define __SVR4__ 1 | |
1908 | _ACEOF | |
1909 | ||
1910 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1911 | ;; | |
1912 | ||
1913 | *-*-*UnixWare*) | |
1914 | USE_SYSV=1 | |
1915 | USE_SVR4=1 | |
1916 | USE_UNIXWARE=1 | |
1917 | cat >>confdefs.h <<\_ACEOF | |
1918 | #define __UNIXWARE__ 1 | |
1919 | _ACEOF | |
1920 | ||
1921 | ;; | |
1922 | ||
1923 | *-*-cygwin* | *-*-mingw32* ) | |
1924 | SO_SUFFIX=dll | |
1925 | PROGRAM_EXT=".exe" | |
1926 | RESCOMP=windres | |
1927 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1928 | ;; | |
1929 | ||
1930 | *-pc-msdosdjgpp ) | |
1931 | USE_UNIX=0 | |
1932 | USE_DOS=1 | |
1933 | cat >>confdefs.h <<\_ACEOF | |
1934 | #define __DOS__ 1 | |
1935 | _ACEOF | |
1936 | ||
1937 | PROGRAM_EXT=".exe" | |
1938 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1939 | LIBS="$LIBS -lstdc++" | |
1940 | ;; | |
1941 | ||
1942 | *-pc-os2_emx | *-pc-os2-emx ) | |
1943 | cat >>confdefs.h <<\_ACEOF | |
1944 | #define __EMX__ 1 | |
1945 | _ACEOF | |
1946 | ||
1947 | USE_OS2=1 | |
1948 | cat >>confdefs.h <<\_ACEOF | |
1949 | #define __OS2__ 1 | |
1950 | _ACEOF | |
1951 | ||
1952 | PROGRAM_EXT=".exe" | |
1953 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1954 | CXX=gcc | |
1955 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1956 | ac_executable_extensions=".exe" | |
1957 | export ac_executable_extensions | |
1958 | ac_save_IFS="$IFS" | |
1959 | IFS='\\' | |
1960 | ac_TEMP_PATH= | |
1961 | for ac_dir in $PATH; do | |
1962 | IFS=$ac_save_IFS | |
1963 | if test -z "$ac_TEMP_PATH"; then | |
1964 | ac_TEMP_PATH="$ac_dir" | |
1965 | else | |
1966 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1967 | fi | |
1968 | done | |
1969 | export PATH="$ac_TEMP_PATH" | |
1970 | unset ac_TEMP_PATH | |
1971 | ;; | |
1972 | ||
1973 | powerpc-*-darwin* ) | |
1974 | USE_BSD=1 | |
1975 | USE_DARWIN=1 | |
1976 | SO_SUFFIX=dylib | |
1977 | cat >>confdefs.h <<\_ACEOF | |
1978 | #define __BSD__ 1 | |
1979 | _ACEOF | |
1980 | ||
1981 | cat >>confdefs.h <<\_ACEOF | |
1982 | #define __DARWIN__ 1 | |
1983 | _ACEOF | |
1984 | ||
1985 | cat >>confdefs.h <<\_ACEOF | |
1986 | #define __POWERPC__ 1 | |
1987 | _ACEOF | |
1988 | ||
1989 | cat >>confdefs.h <<\_ACEOF | |
1990 | #define TARGET_CARBON 1 | |
1991 | _ACEOF | |
1992 | ||
1993 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1994 | ;; | |
1e9e8aba DE |
1995 | powerpc-apple-macos* ) |
1996 | USE_UNIX=0 | |
1997 | ac_cv_c_bigendian=yes | |
1998 | SO_SUFFIX=shlib | |
1999 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
2000 | ;; | |
a848cd7e SC |
2001 | |
2002 | *-*-beos* ) | |
2003 | USE_BEOS=1 | |
2004 | cat >>confdefs.h <<\_ACEOF | |
2005 | #define __BEOS__ 1 | |
2006 | _ACEOF | |
2007 | ||
2008 | ;; | |
2009 | ||
2010 | *) | |
2011 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2012 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2013 | { (exit 1); exit 1; }; } | |
2014 | esac | |
2015 | ||
2016 | ||
2017 | ||
2018 | ||
2019 | wx_arg_cache_file="configarg.cache" | |
2020 | echo "loading argument cache $wx_arg_cache_file" | |
2021 | rm -f ${wx_arg_cache_file}.tmp | |
2022 | touch ${wx_arg_cache_file}.tmp | |
2023 | touch ${wx_arg_cache_file} | |
2024 | ||
2025 | ||
2026 | DEBUG_CONFIGURE=0 | |
2027 | if test $DEBUG_CONFIGURE = 1; then | |
2028 | DEFAULT_wxUSE_UNIVERSAL=no | |
2029 | DEFAULT_wxUSE_STL=no | |
2030 | ||
2031 | DEFAULT_wxUSE_NANOX=no | |
2032 | ||
2033 | DEFAULT_wxUSE_THREADS=yes | |
2034 | ||
2035 | DEFAULT_wxUSE_SHARED=yes | |
2036 | DEFAULT_wxUSE_OPTIMISE=no | |
2037 | DEFAULT_wxUSE_PROFILE=no | |
2038 | DEFAULT_wxUSE_NO_DEPS=no | |
2039 | DEFAULT_wxUSE_NO_RTTI=no | |
2040 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2041 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2042 | DEFAULT_wxUSE_PERMISSIVE=no |
2043 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2044 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2045 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2046 | DEFAULT_wxUSE_MEM_TRACING=no | |
2047 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2048 | DEFAULT_wxUSE_DMALLOC=no | |
2049 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2050 | ||
2051 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2052 | DEFAULT_wxUSE_LOG=yes | |
2053 | DEFAULT_wxUSE_LOGWINDOW=no | |
2054 | DEFAULT_wxUSE_LOGGUI=no | |
2055 | DEFAULT_wxUSE_LOGDIALOG=no | |
2056 | ||
2057 | DEFAULT_wxUSE_GUI=yes | |
2058 | DEFAULT_wxUSE_CONTROLS=no | |
2059 | ||
2060 | DEFAULT_wxUSE_REGEX=no | |
2061 | DEFAULT_wxUSE_XML=no | |
2062 | DEFAULT_wxUSE_EXPAT=no | |
2063 | DEFAULT_wxUSE_ZLIB=no | |
2064 | DEFAULT_wxUSE_LIBPNG=no | |
2065 | DEFAULT_wxUSE_LIBJPEG=no | |
2066 | DEFAULT_wxUSE_LIBTIFF=no | |
2067 | DEFAULT_wxUSE_LIBXPM=no | |
2068 | DEFAULT_wxUSE_LIBMSPACK=no | |
2069 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2070 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2071 | DEFAULT_wxUSE_ODBC=no |
2072 | DEFAULT_wxUSE_OPENGL=no | |
2073 | ||
2074 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2075 | DEFAULT_wxUSE_STACKWALKER=no |
a848cd7e SC |
2076 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2077 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2078 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2079 | DEFAULT_wxUSE_DATETIME=no | |
2080 | DEFAULT_wxUSE_TIMER=no | |
2081 | DEFAULT_wxUSE_STOPWATCH=no | |
2082 | DEFAULT_wxUSE_FILE=no | |
2083 | DEFAULT_wxUSE_FFILE=no | |
2084 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2085 | DEFAULT_wxUSE_TEXTFILE=no | |
2086 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b RL |
2087 | DEFAULT_wxUSE_MEDIACTRL=no |
2088 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2089 | DEFAULT_wxUSE_INTL=no |
2090 | DEFAULT_wxUSE_CONFIG=no | |
2091 | DEFAULT_wxUSE_FONTMAP=no | |
2092 | DEFAULT_wxUSE_STREAMS=no | |
2093 | DEFAULT_wxUSE_SOCKETS=no | |
2094 | DEFAULT_wxUSE_OLE=no | |
2095 | DEFAULT_wxUSE_DATAOBJ=no | |
2096 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2097 | DEFAULT_wxUSE_JOYSTICK=no | |
2098 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2099 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2100 | DEFAULT_wxUSE_LONGLONG=no | |
2101 | DEFAULT_wxUSE_GEOMETRY=no | |
2102 | ||
2103 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2104 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2105 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2106 | ||
2107 | DEFAULT_wxUSE_CLIPBOARD=no | |
2108 | DEFAULT_wxUSE_TOOLTIPS=no | |
2109 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2110 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2111 | DEFAULT_wxUSE_SPLINES=no | |
2112 | ||
8a7b1113 | 2113 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2114 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2115 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2116 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2117 | ||
2118 | DEFAULT_wxUSE_RESOURCES=no | |
2119 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2120 | DEFAULT_wxUSE_IPC=no | |
2121 | DEFAULT_wxUSE_HELP=no | |
2122 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2123 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2124 | DEFAULT_wxUSE_TREELAYOUT=no | |
2125 | DEFAULT_wxUSE_METAFILE=no | |
2126 | DEFAULT_wxUSE_MIMETYPE=no | |
2127 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2128 | DEFAULT_wxUSE_PROTOCOL=no | |
2129 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2130 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2131 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2132 | DEFAULT_wxUSE_URL=no | |
2133 | ||
2134 | DEFAULT_wxUSE_COMMONDLGS=no | |
2135 | DEFAULT_wxUSE_CHOICEDLG=no | |
2136 | DEFAULT_wxUSE_COLOURDLG=no | |
2137 | DEFAULT_wxUSE_DIRDLG=no | |
2138 | DEFAULT_wxUSE_FILEDLG=no | |
2139 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2140 | DEFAULT_wxUSE_FONTDLG=no | |
2141 | DEFAULT_wxUSE_MSGDLG=no | |
2142 | DEFAULT_wxUSE_NUMBERDLG=no | |
2143 | DEFAULT_wxUSE_TEXTDLG=no | |
2144 | DEFAULT_wxUSE_SPLASH=no | |
2145 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2146 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2147 | DEFAULT_wxUSE_WIZARDDLG=no | |
2148 | ||
2149 | DEFAULT_wxUSE_MENUS=no | |
2150 | DEFAULT_wxUSE_MINIFRAME=no | |
2151 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2152 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2153 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2154 | DEFAULT_wxUSE_FILESYSTEM=no |
2155 | DEFAULT_wxUSE_FS_INET=no | |
2156 | DEFAULT_wxUSE_FS_ZIP=no | |
2157 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2158 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2159 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2160 | DEFAULT_wxUSE_VALIDATORS=no |
2161 | ||
2162 | DEFAULT_wxUSE_ACCEL=no | |
2163 | DEFAULT_wxUSE_BUTTON=no | |
2164 | DEFAULT_wxUSE_BMPBUTTON=no | |
2165 | DEFAULT_wxUSE_CALCTRL=no | |
2166 | DEFAULT_wxUSE_CARET=no | |
2167 | DEFAULT_wxUSE_CHECKBOX=no | |
2168 | DEFAULT_wxUSE_CHECKLST=no | |
2169 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2170 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2171 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2172 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2173 | DEFAULT_wxUSE_DISPLAY=no |
2174 | DEFAULT_wxUSE_GAUGE=no | |
2175 | DEFAULT_wxUSE_GRID=no | |
2176 | DEFAULT_wxUSE_IMAGLIST=no | |
2177 | DEFAULT_wxUSE_LISTBOOK=no | |
2178 | DEFAULT_wxUSE_LISTBOX=no | |
2179 | DEFAULT_wxUSE_LISTCTRL=no | |
2180 | DEFAULT_wxUSE_NOTEBOOK=no | |
2181 | DEFAULT_wxUSE_RADIOBOX=no | |
2182 | DEFAULT_wxUSE_RADIOBTN=no | |
2183 | DEFAULT_wxUSE_SASH=no | |
2184 | DEFAULT_wxUSE_SCROLLBAR=no | |
2185 | DEFAULT_wxUSE_SLIDER=no | |
2186 | DEFAULT_wxUSE_SPINBTN=no | |
2187 | DEFAULT_wxUSE_SPINCTRL=no | |
2188 | DEFAULT_wxUSE_SPLITTER=no | |
2189 | DEFAULT_wxUSE_STATBMP=no | |
2190 | DEFAULT_wxUSE_STATBOX=no | |
2191 | DEFAULT_wxUSE_STATLINE=no | |
2192 | DEFAULT_wxUSE_STATTEXT=no | |
2193 | DEFAULT_wxUSE_STATUSBAR=yes | |
2194 | DEFAULT_wxUSE_TABDIALOG=no | |
2195 | DEFAULT_wxUSE_TEXTCTRL=no | |
2196 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2197 | DEFAULT_wxUSE_TOOLBAR=no | |
2198 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2199 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2200 | DEFAULT_wxUSE_TREECTRL=no | |
2201 | DEFAULT_wxUSE_POPUPWIN=no | |
2202 | DEFAULT_wxUSE_TIPWINDOW=no | |
2203 | ||
2204 | DEFAULT_wxUSE_UNICODE=no | |
2205 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2206 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2207 | ||
2208 | DEFAULT_wxUSE_PALETTE=no | |
2209 | DEFAULT_wxUSE_IMAGE=no | |
2210 | DEFAULT_wxUSE_GIF=no | |
2211 | DEFAULT_wxUSE_PCX=no | |
2212 | DEFAULT_wxUSE_PNM=no | |
2213 | DEFAULT_wxUSE_IFF=no | |
2214 | DEFAULT_wxUSE_XPM=no | |
2215 | DEFAULT_wxUSE_ICO_CUR=no | |
2216 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2217 | ||
2218 | DEFAULT_wxUSE_MONOLITHIC=no | |
2219 | DEFAULT_wxUSE_PLUGINS=no | |
2220 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2221 | else | |
2222 | DEFAULT_wxUSE_UNIVERSAL=no | |
2223 | DEFAULT_wxUSE_STL=no | |
2224 | ||
2225 | DEFAULT_wxUSE_NANOX=no | |
2226 | ||
2227 | DEFAULT_wxUSE_THREADS=yes | |
2228 | ||
2229 | DEFAULT_wxUSE_SHARED=yes | |
2230 | DEFAULT_wxUSE_OPTIMISE=yes | |
2231 | DEFAULT_wxUSE_PROFILE=no | |
2232 | DEFAULT_wxUSE_NO_DEPS=no | |
2233 | DEFAULT_wxUSE_NO_RTTI=no | |
2234 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2235 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2236 | DEFAULT_wxUSE_PERMISSIVE=no |
2237 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2238 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2239 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2240 | DEFAULT_wxUSE_MEM_TRACING=no | |
2241 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2242 | DEFAULT_wxUSE_DMALLOC=no | |
2243 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2244 | ||
2245 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2246 | DEFAULT_wxUSE_LOG=yes | |
2247 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2248 | DEFAULT_wxUSE_LOGGUI=yes | |
2249 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2250 | ||
2251 | DEFAULT_wxUSE_GUI=yes | |
2252 | ||
2253 | DEFAULT_wxUSE_REGEX=yes | |
2254 | DEFAULT_wxUSE_XML=yes | |
2255 | DEFAULT_wxUSE_EXPAT=yes | |
2256 | DEFAULT_wxUSE_ZLIB=yes | |
2257 | DEFAULT_wxUSE_LIBPNG=yes | |
2258 | DEFAULT_wxUSE_LIBJPEG=yes | |
2259 | DEFAULT_wxUSE_LIBTIFF=yes | |
2260 | DEFAULT_wxUSE_LIBXPM=yes | |
2261 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2262 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2263 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2264 | DEFAULT_wxUSE_ODBC=no |
2265 | DEFAULT_wxUSE_OPENGL=no | |
2266 | ||
2267 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2268 | DEFAULT_wxUSE_STACKWALKER=yes |
a848cd7e SC |
2269 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
2270 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2271 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2272 | DEFAULT_wxUSE_DATETIME=yes | |
2273 | DEFAULT_wxUSE_TIMER=yes | |
2274 | DEFAULT_wxUSE_STOPWATCH=yes | |
2275 | DEFAULT_wxUSE_FILE=yes | |
2276 | DEFAULT_wxUSE_FFILE=yes | |
2277 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2278 | DEFAULT_wxUSE_TEXTFILE=yes | |
2279 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b RL |
2280 | DEFAULT_wxUSE_MEDIACTRL=no |
2281 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2282 | DEFAULT_wxUSE_INTL=yes |
2283 | DEFAULT_wxUSE_CONFIG=yes | |
2284 | DEFAULT_wxUSE_FONTMAP=yes | |
2285 | DEFAULT_wxUSE_STREAMS=yes | |
2286 | DEFAULT_wxUSE_SOCKETS=yes | |
2287 | DEFAULT_wxUSE_OLE=yes | |
2288 | DEFAULT_wxUSE_DATAOBJ=yes | |
2289 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2290 | DEFAULT_wxUSE_JOYSTICK=yes | |
2291 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2292 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2293 | DEFAULT_wxUSE_LONGLONG=yes | |
2294 | DEFAULT_wxUSE_GEOMETRY=yes | |
2295 | ||
2296 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2297 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2298 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2299 | ||
2300 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2301 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2302 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2303 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2304 | DEFAULT_wxUSE_SPLINES=yes | |
2305 | ||
8a7b1113 | 2306 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2307 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2308 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2309 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2310 | ||
2311 | DEFAULT_wxUSE_RESOURCES=no | |
2312 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2313 | DEFAULT_wxUSE_IPC=yes | |
2314 | DEFAULT_wxUSE_HELP=yes | |
2315 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2316 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2317 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2318 | DEFAULT_wxUSE_METAFILE=yes | |
2319 | DEFAULT_wxUSE_MIMETYPE=yes | |
2320 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2321 | DEFAULT_wxUSE_PROTOCOL=yes | |
2322 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2323 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2324 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2325 | DEFAULT_wxUSE_URL=yes | |
2326 | ||
2327 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2328 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2329 | DEFAULT_wxUSE_COLOURDLG=yes | |
2330 | DEFAULT_wxUSE_DIRDLG=yes | |
2331 | DEFAULT_wxUSE_FILEDLG=yes | |
2332 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2333 | DEFAULT_wxUSE_FONTDLG=yes | |
2334 | DEFAULT_wxUSE_MSGDLG=yes | |
2335 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2336 | DEFAULT_wxUSE_TEXTDLG=yes | |
2337 | DEFAULT_wxUSE_SPLASH=yes | |
2338 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2339 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2340 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2341 | ||
2342 | DEFAULT_wxUSE_MENUS=yes | |
2343 | DEFAULT_wxUSE_MINIFRAME=yes | |
2344 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2345 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2346 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2347 | DEFAULT_wxUSE_FILESYSTEM=yes |
2348 | DEFAULT_wxUSE_FS_INET=yes | |
2349 | DEFAULT_wxUSE_FS_ZIP=yes | |
2350 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2351 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2352 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2353 | DEFAULT_wxUSE_VALIDATORS=yes |
2354 | ||
2355 | DEFAULT_wxUSE_ACCEL=yes | |
2356 | DEFAULT_wxUSE_BUTTON=yes | |
2357 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2358 | DEFAULT_wxUSE_CALCTRL=yes | |
2359 | DEFAULT_wxUSE_CARET=yes | |
2360 | DEFAULT_wxUSE_CHECKBOX=yes | |
2361 | DEFAULT_wxUSE_CHECKLST=yes | |
2362 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2363 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2364 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2365 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2366 | DEFAULT_wxUSE_DISPLAY=yes |
2367 | DEFAULT_wxUSE_GAUGE=yes | |
2368 | DEFAULT_wxUSE_GRID=yes | |
2369 | DEFAULT_wxUSE_IMAGLIST=yes | |
2370 | DEFAULT_wxUSE_LISTBOOK=yes | |
2371 | DEFAULT_wxUSE_LISTBOX=yes | |
2372 | DEFAULT_wxUSE_LISTCTRL=yes | |
2373 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2374 | DEFAULT_wxUSE_RADIOBOX=yes | |
2375 | DEFAULT_wxUSE_RADIOBTN=yes | |
2376 | DEFAULT_wxUSE_SASH=yes | |
2377 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2378 | DEFAULT_wxUSE_SLIDER=yes | |
2379 | DEFAULT_wxUSE_SPINBTN=yes | |
2380 | DEFAULT_wxUSE_SPINCTRL=yes | |
2381 | DEFAULT_wxUSE_SPLITTER=yes | |
2382 | DEFAULT_wxUSE_STATBMP=yes | |
2383 | DEFAULT_wxUSE_STATBOX=yes | |
2384 | DEFAULT_wxUSE_STATLINE=yes | |
2385 | DEFAULT_wxUSE_STATTEXT=yes | |
2386 | DEFAULT_wxUSE_STATUSBAR=yes | |
2387 | DEFAULT_wxUSE_TABDIALOG=no | |
2388 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2389 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2390 | DEFAULT_wxUSE_TOOLBAR=yes | |
2391 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2392 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2393 | DEFAULT_wxUSE_TREECTRL=yes | |
2394 | DEFAULT_wxUSE_POPUPWIN=yes | |
2395 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2396 | ||
2397 | DEFAULT_wxUSE_UNICODE=no | |
2398 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2399 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2400 | ||
2401 | DEFAULT_wxUSE_PALETTE=yes | |
2402 | DEFAULT_wxUSE_IMAGE=yes | |
2403 | DEFAULT_wxUSE_GIF=yes | |
2404 | DEFAULT_wxUSE_PCX=yes | |
2405 | DEFAULT_wxUSE_IFF=no | |
2406 | DEFAULT_wxUSE_PNM=yes | |
2407 | DEFAULT_wxUSE_XPM=yes | |
2408 | DEFAULT_wxUSE_ICO_CUR=yes | |
2409 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2410 | ||
2411 | DEFAULT_wxUSE_MONOLITHIC=no | |
2412 | DEFAULT_wxUSE_PLUGINS=no | |
2413 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2414 | |
2415 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2416 | fi |
2417 | ||
2418 | ||
2419 | ||
2420 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2421 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2422 | if test "x$LINE" != "x" ; then | |
2423 | has_toolkit_in_cache=1 | |
2424 | eval "DEFAULT_$LINE" | |
2425 | eval "CACHE_$toolkit=1" | |
2426 | fi | |
2427 | done | |
2428 | ||
2429 | ||
2430 | ||
2431 | enablestring= | |
2432 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2433 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2434 | no_cache=0 | |
2435 | # Check whether --enable-gui or --disable-gui was given. | |
2436 | if test "${enable_gui+set}" = set; then | |
2437 | enableval="$enable_gui" | |
2438 | ||
2439 | if test "$enableval" = yes; then | |
2440 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2441 | else | |
2442 | ac_cv_use_gui='wxUSE_GUI=no' | |
2443 | fi | |
2444 | ||
2445 | else | |
2446 | ||
2447 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2448 | if test "x$LINE" != x ; then | |
2449 | eval "DEFAULT_$LINE" | |
2450 | else | |
2451 | no_cache=1 | |
2452 | fi | |
2453 | ||
2454 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2455 | ||
2456 | fi; | |
2457 | ||
2458 | eval "$ac_cv_use_gui" | |
2459 | if test "$no_cache" != 1; then | |
2460 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2461 | fi | |
2462 | ||
2463 | if test "$wxUSE_GUI" = yes; then | |
2464 | echo "$as_me:$LINENO: result: yes" >&5 | |
2465 | echo "${ECHO_T}yes" >&6 | |
2466 | else | |
2467 | echo "$as_me:$LINENO: result: no" >&5 | |
2468 | echo "${ECHO_T}no" >&6 | |
2469 | fi | |
2470 | ||
2471 | ||
2472 | enablestring= | |
2473 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2474 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2475 | no_cache=0 | |
2476 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2477 | if test "${enable_monolithic+set}" = set; then | |
2478 | enableval="$enable_monolithic" | |
2479 | ||
2480 | if test "$enableval" = yes; then | |
2481 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2482 | else | |
2483 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2484 | fi | |
2485 | ||
2486 | else | |
2487 | ||
2488 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2489 | if test "x$LINE" != x ; then | |
2490 | eval "DEFAULT_$LINE" | |
2491 | else | |
2492 | no_cache=1 | |
2493 | fi | |
2494 | ||
2495 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2496 | ||
2497 | fi; | |
2498 | ||
2499 | eval "$ac_cv_use_monolithic" | |
2500 | if test "$no_cache" != 1; then | |
2501 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2502 | fi | |
2503 | ||
2504 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2505 | echo "$as_me:$LINENO: result: yes" >&5 | |
2506 | echo "${ECHO_T}yes" >&6 | |
2507 | else | |
2508 | echo "$as_me:$LINENO: result: no" >&5 | |
2509 | echo "${ECHO_T}no" >&6 | |
2510 | fi | |
2511 | ||
2512 | ||
2513 | enablestring= | |
2514 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2515 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2516 | no_cache=0 | |
2517 | # Check whether --enable-plugins or --disable-plugins was given. | |
2518 | if test "${enable_plugins+set}" = set; then | |
2519 | enableval="$enable_plugins" | |
2520 | ||
2521 | if test "$enableval" = yes; then | |
2522 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2523 | else | |
2524 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2525 | fi | |
2526 | ||
2527 | else | |
2528 | ||
2529 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2530 | if test "x$LINE" != x ; then | |
2531 | eval "DEFAULT_$LINE" | |
2532 | else | |
2533 | no_cache=1 | |
2534 | fi | |
2535 | ||
2536 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2537 | ||
2538 | fi; | |
2539 | ||
2540 | eval "$ac_cv_use_plugins" | |
2541 | if test "$no_cache" != 1; then | |
2542 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2543 | fi | |
2544 | ||
2545 | if test "$wxUSE_PLUGINS" = yes; then | |
2546 | echo "$as_me:$LINENO: result: yes" >&5 | |
2547 | echo "${ECHO_T}yes" >&6 | |
2548 | else | |
2549 | echo "$as_me:$LINENO: result: no" >&5 | |
2550 | echo "${ECHO_T}no" >&6 | |
2551 | fi | |
2552 | ||
2553 | ||
2554 | if test "$wxUSE_GUI" = "yes"; then | |
2555 | ||
2556 | ||
2557 | enablestring= | |
2558 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2559 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2560 | no_cache=0 | |
2561 | # Check whether --enable-universal or --disable-universal was given. | |
2562 | if test "${enable_universal+set}" = set; then | |
2563 | enableval="$enable_universal" | |
2564 | ||
2565 | if test "$enableval" = yes; then | |
2566 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2567 | else | |
2568 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2569 | fi | |
2570 | ||
2571 | else | |
2572 | ||
2573 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2574 | if test "x$LINE" != x ; then | |
2575 | eval "DEFAULT_$LINE" | |
2576 | else | |
2577 | no_cache=1 | |
2578 | fi | |
2579 | ||
2580 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2581 | ||
2582 | fi; | |
2583 | ||
2584 | eval "$ac_cv_use_universal" | |
2585 | if test "$no_cache" != 1; then | |
2586 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2587 | fi | |
2588 | ||
2589 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2590 | echo "$as_me:$LINENO: result: yes" >&5 | |
2591 | echo "${ECHO_T}yes" >&6 | |
2592 | else | |
2593 | echo "$as_me:$LINENO: result: no" >&5 | |
2594 | echo "${ECHO_T}no" >&6 | |
2595 | fi | |
2596 | ||
2597 | ||
2598 | # Check whether --with-gtk or --without-gtk was given. | |
2599 | if test "${with_gtk+set}" = set; then | |
2600 | withval="$with_gtk" | |
2601 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2602 | fi; | |
2603 | ||
2604 | # Check whether --with-motif or --without-motif was given. | |
2605 | if test "${with_motif+set}" = set; then | |
2606 | withval="$with_motif" | |
2607 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2608 | fi; | |
2609 | ||
2610 | # Check whether --with-mac or --without-mac was given. | |
2611 | if test "${with_mac+set}" = set; then | |
2612 | withval="$with_mac" | |
c228d3a4 | 2613 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2614 | fi; |
2615 | ||
2616 | # Check whether --with-cocoa or --without-cocoa was given. | |
2617 | if test "${with_cocoa+set}" = set; then | |
2618 | withval="$with_cocoa" | |
c228d3a4 | 2619 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2620 | fi; |
2621 | ||
2622 | # Check whether --with-wine or --without-wine was given. | |
2623 | if test "${with_wine+set}" = set; then | |
2624 | withval="$with_wine" | |
2625 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2626 | fi; | |
2627 | ||
2628 | # Check whether --with-msw or --without-msw was given. | |
2629 | if test "${with_msw+set}" = set; then | |
2630 | withval="$with_msw" | |
2631 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2632 | fi; | |
2633 | ||
2634 | # Check whether --with-pm or --without-pm was given. | |
2635 | if test "${with_pm+set}" = set; then | |
2636 | withval="$with_pm" | |
2637 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2638 | fi; | |
2639 | ||
2640 | # Check whether --with-mgl or --without-mgl was given. | |
2641 | if test "${with_mgl+set}" = set; then | |
2642 | withval="$with_mgl" | |
2643 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2644 | fi; | |
2645 | ||
2646 | # Check whether --with-microwin or --without-microwin was given. | |
2647 | if test "${with_microwin+set}" = set; then | |
2648 | withval="$with_microwin" | |
2649 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2650 | fi; | |
2651 | ||
2652 | # Check whether --with-x11 or --without-x11 was given. | |
2653 | if test "${with_x11+set}" = set; then | |
2654 | withval="$with_x11" | |
2655 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2656 | fi; | |
2657 | ||
2658 | enablestring= | |
2659 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2660 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2661 | no_cache=0 | |
2662 | # Check whether --enable-nanox or --disable-nanox was given. | |
2663 | if test "${enable_nanox+set}" = set; then | |
2664 | enableval="$enable_nanox" | |
2665 | ||
2666 | if test "$enableval" = yes; then | |
2667 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2668 | else | |
2669 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2670 | fi | |
2671 | ||
2672 | else | |
2673 | ||
2674 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2675 | if test "x$LINE" != x ; then | |
2676 | eval "DEFAULT_$LINE" | |
2677 | else | |
2678 | no_cache=1 | |
2679 | fi | |
2680 | ||
2681 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2682 | ||
2683 | fi; | |
2684 | ||
2685 | eval "$ac_cv_use_nanox" | |
2686 | if test "$no_cache" != 1; then | |
2687 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2688 | fi | |
2689 | ||
2690 | if test "$wxUSE_NANOX" = yes; then | |
2691 | echo "$as_me:$LINENO: result: yes" >&5 | |
2692 | echo "${ECHO_T}yes" >&6 | |
2693 | else | |
2694 | echo "$as_me:$LINENO: result: no" >&5 | |
2695 | echo "${ECHO_T}no" >&6 | |
2696 | fi | |
2697 | ||
2698 | ||
2699 | ||
2700 | enablestring= | |
2701 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2702 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2703 | no_cache=0 | |
2704 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2705 | if test "${enable_gtk2+set}" = set; then | |
2706 | enableval="$enable_gtk2" | |
2707 | ||
2708 | if test "$enableval" = yes; then | |
2709 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2710 | else | |
2711 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2712 | fi | |
2713 | ||
2714 | else | |
2715 | ||
2716 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2717 | if test "x$LINE" != x ; then | |
2718 | eval "DEFAULT_$LINE" | |
2719 | else | |
2720 | no_cache=1 | |
2721 | fi | |
2722 | ||
2723 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2724 | ||
2725 | fi; | |
2726 | ||
2727 | eval "$ac_cv_use_gtk2" | |
2728 | if test "$no_cache" != 1; then | |
2729 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2730 | fi | |
2731 | ||
2732 | if test "$wxUSE_GTK2" = yes; then | |
2733 | echo "$as_me:$LINENO: result: yes" >&5 | |
2734 | echo "${ECHO_T}yes" >&6 | |
2735 | else | |
2736 | echo "$as_me:$LINENO: result: no" >&5 | |
2737 | echo "${ECHO_T}no" >&6 | |
2738 | fi | |
2739 | ||
2740 | ||
2741 | enablestring= | |
2742 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2743 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2744 | no_cache=0 | |
2745 | # Check whether --enable-gpe or --disable-gpe was given. | |
2746 | if test "${enable_gpe+set}" = set; then | |
2747 | enableval="$enable_gpe" | |
2748 | ||
2749 | if test "$enableval" = yes; then | |
2750 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2751 | else | |
2752 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2753 | fi | |
2754 | ||
2755 | else | |
2756 | ||
2757 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2758 | if test "x$LINE" != x ; then | |
2759 | eval "DEFAULT_$LINE" | |
2760 | else | |
2761 | no_cache=1 | |
2762 | fi | |
2763 | ||
2764 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2765 | ||
2766 | fi; | |
2767 | ||
2768 | eval "$ac_cv_use_gpe" | |
2769 | if test "$no_cache" != 1; then | |
2770 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2771 | fi | |
2772 | ||
2773 | if test "$wxUSE_GPE" = yes; then | |
2774 | echo "$as_me:$LINENO: result: yes" >&5 | |
2775 | echo "${ECHO_T}yes" >&6 | |
2776 | else | |
2777 | echo "$as_me:$LINENO: result: no" >&5 | |
2778 | echo "${ECHO_T}no" >&6 | |
2779 | fi | |
2780 | ||
2781 | ||
2782 | ||
2783 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2784 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2785 | no_cache=0 | |
2786 | ||
2787 | # Check whether --with-libpng or --without-libpng was given. | |
2788 | if test "${with_libpng+set}" = set; then | |
2789 | withval="$with_libpng" | |
2790 | ||
2791 | if test "$withval" = yes; then | |
2792 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2793 | elif test "$withval" = no; then | |
2794 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2795 | elif test "$withval" = sys; then | |
2796 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2797 | elif test "$withval" = builtin; then | |
2798 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2799 | else | |
2800 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2801 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2802 | { (exit 1); exit 1; }; } | |
2803 | fi | |
2804 | ||
2805 | else | |
2806 | ||
2807 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2808 | if test "x$LINE" != x ; then | |
2809 | eval "DEFAULT_$LINE" | |
2810 | else | |
2811 | no_cache=1 | |
2812 | fi | |
2813 | ||
2814 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2815 | ||
2816 | fi; | |
2817 | ||
2818 | eval "$ac_cv_use_libpng" | |
2819 | if test "$no_cache" != 1; then | |
2820 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2821 | fi | |
2822 | ||
2823 | if test "$wxUSE_LIBPNG" = yes; then | |
2824 | echo "$as_me:$LINENO: result: yes" >&5 | |
2825 | echo "${ECHO_T}yes" >&6 | |
2826 | elif test "$wxUSE_LIBPNG" = no; then | |
2827 | echo "$as_me:$LINENO: result: no" >&5 | |
2828 | echo "${ECHO_T}no" >&6 | |
2829 | elif test "$wxUSE_LIBPNG" = sys; then | |
2830 | echo "$as_me:$LINENO: result: system version" >&5 | |
2831 | echo "${ECHO_T}system version" >&6 | |
2832 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2833 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2834 | echo "${ECHO_T}builtin version" >&6 | |
2835 | else | |
2836 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2837 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2838 | { (exit 1); exit 1; }; } | |
2839 | fi | |
2840 | ||
2841 | ||
2842 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2843 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2844 | no_cache=0 | |
2845 | ||
2846 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2847 | if test "${with_libjpeg+set}" = set; then | |
2848 | withval="$with_libjpeg" | |
2849 | ||
2850 | if test "$withval" = yes; then | |
2851 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2852 | elif test "$withval" = no; then | |
2853 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2854 | elif test "$withval" = sys; then | |
2855 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2856 | elif test "$withval" = builtin; then | |
2857 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2858 | else | |
2859 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2860 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2861 | { (exit 1); exit 1; }; } | |
2862 | fi | |
2863 | ||
2864 | else | |
2865 | ||
2866 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2867 | if test "x$LINE" != x ; then | |
2868 | eval "DEFAULT_$LINE" | |
2869 | else | |
2870 | no_cache=1 | |
2871 | fi | |
2872 | ||
2873 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2874 | ||
2875 | fi; | |
2876 | ||
2877 | eval "$ac_cv_use_libjpeg" | |
2878 | if test "$no_cache" != 1; then | |
2879 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2880 | fi | |
2881 | ||
2882 | if test "$wxUSE_LIBJPEG" = yes; then | |
2883 | echo "$as_me:$LINENO: result: yes" >&5 | |
2884 | echo "${ECHO_T}yes" >&6 | |
2885 | elif test "$wxUSE_LIBJPEG" = no; then | |
2886 | echo "$as_me:$LINENO: result: no" >&5 | |
2887 | echo "${ECHO_T}no" >&6 | |
2888 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2889 | echo "$as_me:$LINENO: result: system version" >&5 | |
2890 | echo "${ECHO_T}system version" >&6 | |
2891 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2892 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2893 | echo "${ECHO_T}builtin version" >&6 | |
2894 | else | |
2895 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2896 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2897 | { (exit 1); exit 1; }; } | |
2898 | fi | |
2899 | ||
2900 | ||
2901 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2902 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2903 | no_cache=0 | |
2904 | ||
2905 | # Check whether --with-libtiff or --without-libtiff was given. | |
2906 | if test "${with_libtiff+set}" = set; then | |
2907 | withval="$with_libtiff" | |
2908 | ||
2909 | if test "$withval" = yes; then | |
2910 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2911 | elif test "$withval" = no; then | |
2912 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2913 | elif test "$withval" = sys; then | |
2914 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2915 | elif test "$withval" = builtin; then | |
2916 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2917 | else | |
2918 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2919 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2920 | { (exit 1); exit 1; }; } | |
2921 | fi | |
2922 | ||
2923 | else | |
2924 | ||
2925 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2926 | if test "x$LINE" != x ; then | |
2927 | eval "DEFAULT_$LINE" | |
2928 | else | |
2929 | no_cache=1 | |
2930 | fi | |
2931 | ||
2932 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2933 | ||
2934 | fi; | |
2935 | ||
2936 | eval "$ac_cv_use_libtiff" | |
2937 | if test "$no_cache" != 1; then | |
2938 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2939 | fi | |
2940 | ||
2941 | if test "$wxUSE_LIBTIFF" = yes; then | |
2942 | echo "$as_me:$LINENO: result: yes" >&5 | |
2943 | echo "${ECHO_T}yes" >&6 | |
2944 | elif test "$wxUSE_LIBTIFF" = no; then | |
2945 | echo "$as_me:$LINENO: result: no" >&5 | |
2946 | echo "${ECHO_T}no" >&6 | |
2947 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2948 | echo "$as_me:$LINENO: result: system version" >&5 | |
2949 | echo "${ECHO_T}system version" >&6 | |
2950 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2951 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2952 | echo "${ECHO_T}builtin version" >&6 | |
2953 | else | |
2954 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2955 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2956 | { (exit 1); exit 1; }; } | |
2957 | fi | |
2958 | ||
2959 | ||
2960 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2961 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2962 | no_cache=0 | |
2963 | ||
2964 | # Check whether --with-libxpm or --without-libxpm was given. | |
2965 | if test "${with_libxpm+set}" = set; then | |
2966 | withval="$with_libxpm" | |
2967 | ||
2968 | if test "$withval" = yes; then | |
2969 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2970 | elif test "$withval" = no; then | |
2971 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2972 | elif test "$withval" = sys; then | |
2973 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2974 | elif test "$withval" = builtin; then | |
2975 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2976 | else | |
2977 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2978 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2979 | { (exit 1); exit 1; }; } | |
2980 | fi | |
2981 | ||
2982 | else | |
2983 | ||
2984 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2985 | if test "x$LINE" != x ; then | |
2986 | eval "DEFAULT_$LINE" | |
2987 | else | |
2988 | no_cache=1 | |
2989 | fi | |
2990 | ||
2991 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2992 | ||
2993 | fi; | |
2994 | ||
2995 | eval "$ac_cv_use_libxpm" | |
2996 | if test "$no_cache" != 1; then | |
2997 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2998 | fi | |
2999 | ||
3000 | if test "$wxUSE_LIBXPM" = yes; then | |
3001 | echo "$as_me:$LINENO: result: yes" >&5 | |
3002 | echo "${ECHO_T}yes" >&6 | |
3003 | elif test "$wxUSE_LIBXPM" = no; then | |
3004 | echo "$as_me:$LINENO: result: no" >&5 | |
3005 | echo "${ECHO_T}no" >&6 | |
3006 | elif test "$wxUSE_LIBXPM" = sys; then | |
3007 | echo "$as_me:$LINENO: result: system version" >&5 | |
3008 | echo "${ECHO_T}system version" >&6 | |
3009 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3010 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3011 | echo "${ECHO_T}builtin version" >&6 | |
3012 | else | |
3013 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3014 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3015 | { (exit 1); exit 1; }; } | |
3016 | fi | |
3017 | ||
3018 | ||
3019 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
3020 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
3021 | no_cache=0 | |
3022 | ||
3023 | # Check whether --with-libmspack or --without-libmspack was given. | |
3024 | if test "${with_libmspack+set}" = set; then | |
3025 | withval="$with_libmspack" | |
3026 | ||
3027 | if test "$withval" = yes; then | |
3028 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3029 | else | |
3030 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3031 | fi | |
3032 | ||
3033 | else | |
3034 | ||
3035 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3036 | if test "x$LINE" != x ; then | |
3037 | eval "DEFAULT_$LINE" | |
3038 | else | |
3039 | no_cache=1 | |
3040 | fi | |
3041 | ||
3042 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3043 | ||
3044 | fi; | |
3045 | ||
3046 | eval "$ac_cv_use_libmspack" | |
3047 | if test "$no_cache" != 1; then | |
3048 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3049 | fi | |
3050 | ||
3051 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3052 | echo "$as_me:$LINENO: result: yes" >&5 | |
3053 | echo "${ECHO_T}yes" >&6 | |
3054 | else | |
3055 | echo "$as_me:$LINENO: result: no" >&5 | |
3056 | echo "${ECHO_T}no" >&6 | |
3057 | fi | |
3058 | ||
3059 | ||
3060 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3061 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3062 | no_cache=0 | |
3063 | ||
3064 | # Check whether --with-sdl or --without-sdl was given. | |
3065 | if test "${with_sdl+set}" = set; then | |
3066 | withval="$with_sdl" | |
3067 | ||
3068 | if test "$withval" = yes; then | |
3069 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3070 | else | |
3071 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3072 | fi | |
3073 | ||
3074 | else | |
3075 | ||
3076 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3077 | if test "x$LINE" != x ; then | |
3078 | eval "DEFAULT_$LINE" | |
3079 | else | |
3080 | no_cache=1 | |
3081 | fi | |
3082 | ||
3083 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3084 | ||
3085 | fi; | |
3086 | ||
3087 | eval "$ac_cv_use_sdl" | |
3088 | if test "$no_cache" != 1; then | |
3089 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3090 | fi | |
3091 | ||
3092 | if test "$wxUSE_LIBSDL" = yes; then | |
3093 | echo "$as_me:$LINENO: result: yes" >&5 | |
3094 | echo "${ECHO_T}yes" >&6 | |
3095 | else | |
3096 | echo "$as_me:$LINENO: result: no" >&5 | |
3097 | echo "${ECHO_T}no" >&6 | |
3098 | fi | |
3099 | ||
3100 | ||
d1c38808 VZ |
3101 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3102 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3103 | no_cache=0 | |
3104 | ||
3105 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3106 | if test "${with_gnomeprint+set}" = set; then | |
3107 | withval="$with_gnomeprint" | |
3108 | ||
3109 | if test "$withval" = yes; then | |
3110 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3111 | else | |
3112 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3113 | fi | |
3114 | ||
3115 | else | |
3116 | ||
3117 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3118 | if test "x$LINE" != x ; then | |
3119 | eval "DEFAULT_$LINE" | |
3120 | else | |
3121 | no_cache=1 | |
3122 | fi | |
3123 | ||
3124 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3125 | ||
3126 | fi; | |
3127 | ||
3128 | eval "$ac_cv_use_gnomeprint" | |
3129 | if test "$no_cache" != 1; then | |
3130 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3131 | fi | |
3132 | ||
3133 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3134 | echo "$as_me:$LINENO: result: yes" >&5 | |
3135 | echo "${ECHO_T}yes" >&6 | |
3136 | else | |
3137 | echo "$as_me:$LINENO: result: no" >&5 | |
3138 | echo "${ECHO_T}no" >&6 | |
3139 | fi | |
3140 | ||
3141 | ||
a848cd7e SC |
3142 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3143 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3144 | no_cache=0 | |
3145 | ||
3146 | # Check whether --with-opengl or --without-opengl was given. | |
3147 | if test "${with_opengl+set}" = set; then | |
3148 | withval="$with_opengl" | |
3149 | ||
3150 | if test "$withval" = yes; then | |
3151 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3152 | else | |
3153 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3154 | fi | |
3155 | ||
3156 | else | |
3157 | ||
3158 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3159 | if test "x$LINE" != x ; then | |
3160 | eval "DEFAULT_$LINE" | |
3161 | else | |
3162 | no_cache=1 | |
3163 | fi | |
3164 | ||
3165 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3166 | ||
3167 | fi; | |
3168 | ||
3169 | eval "$ac_cv_use_opengl" | |
3170 | if test "$no_cache" != 1; then | |
3171 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3172 | fi | |
3173 | ||
3174 | if test "$wxUSE_OPENGL" = yes; then | |
3175 | echo "$as_me:$LINENO: result: yes" >&5 | |
3176 | echo "${ECHO_T}yes" >&6 | |
3177 | else | |
3178 | echo "$as_me:$LINENO: result: no" >&5 | |
3179 | echo "${ECHO_T}no" >&6 | |
3180 | fi | |
3181 | ||
3182 | ||
3183 | fi | |
3184 | ||
3185 | ||
3186 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3187 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3188 | no_cache=0 | |
3189 | ||
3190 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3191 | if test "${with_dmalloc+set}" = set; then | |
3192 | withval="$with_dmalloc" | |
3193 | ||
3194 | if test "$withval" = yes; then | |
3195 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3196 | else | |
3197 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3198 | fi | |
3199 | ||
3200 | else | |
3201 | ||
3202 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3203 | if test "x$LINE" != x ; then | |
3204 | eval "DEFAULT_$LINE" | |
3205 | else | |
3206 | no_cache=1 | |
3207 | fi | |
3208 | ||
3209 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3210 | ||
3211 | fi; | |
3212 | ||
3213 | eval "$ac_cv_use_dmalloc" | |
3214 | if test "$no_cache" != 1; then | |
3215 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3216 | fi | |
3217 | ||
3218 | if test "$wxUSE_DMALLOC" = yes; then | |
3219 | echo "$as_me:$LINENO: result: yes" >&5 | |
3220 | echo "${ECHO_T}yes" >&6 | |
3221 | else | |
3222 | echo "$as_me:$LINENO: result: no" >&5 | |
3223 | echo "${ECHO_T}no" >&6 | |
3224 | fi | |
3225 | ||
3226 | ||
3227 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3228 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3229 | no_cache=0 | |
3230 | ||
3231 | # Check whether --with-regex or --without-regex was given. | |
3232 | if test "${with_regex+set}" = set; then | |
3233 | withval="$with_regex" | |
3234 | ||
3235 | if test "$withval" = yes; then | |
3236 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3237 | elif test "$withval" = no; then | |
3238 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3239 | elif test "$withval" = sys; then | |
3240 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3241 | elif test "$withval" = builtin; then | |
3242 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3243 | else | |
3244 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3245 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3246 | { (exit 1); exit 1; }; } | |
3247 | fi | |
3248 | ||
3249 | else | |
3250 | ||
3251 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3252 | if test "x$LINE" != x ; then | |
3253 | eval "DEFAULT_$LINE" | |
3254 | else | |
3255 | no_cache=1 | |
3256 | fi | |
3257 | ||
3258 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3259 | ||
3260 | fi; | |
3261 | ||
3262 | eval "$ac_cv_use_regex" | |
3263 | if test "$no_cache" != 1; then | |
3264 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3265 | fi | |
3266 | ||
3267 | if test "$wxUSE_REGEX" = yes; then | |
3268 | echo "$as_me:$LINENO: result: yes" >&5 | |
3269 | echo "${ECHO_T}yes" >&6 | |
3270 | elif test "$wxUSE_REGEX" = no; then | |
3271 | echo "$as_me:$LINENO: result: no" >&5 | |
3272 | echo "${ECHO_T}no" >&6 | |
3273 | elif test "$wxUSE_REGEX" = sys; then | |
3274 | echo "$as_me:$LINENO: result: system version" >&5 | |
3275 | echo "${ECHO_T}system version" >&6 | |
3276 | elif test "$wxUSE_REGEX" = builtin; then | |
3277 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3278 | echo "${ECHO_T}builtin version" >&6 | |
3279 | else | |
3280 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3281 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3282 | { (exit 1); exit 1; }; } | |
3283 | fi | |
3284 | ||
3285 | ||
3286 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3287 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3288 | no_cache=0 | |
3289 | ||
3290 | # Check whether --with-zlib or --without-zlib was given. | |
3291 | if test "${with_zlib+set}" = set; then | |
3292 | withval="$with_zlib" | |
3293 | ||
3294 | if test "$withval" = yes; then | |
3295 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3296 | elif test "$withval" = no; then | |
3297 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3298 | elif test "$withval" = sys; then | |
3299 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3300 | elif test "$withval" = builtin; then | |
3301 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3302 | else | |
3303 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3304 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3305 | { (exit 1); exit 1; }; } | |
3306 | fi | |
3307 | ||
3308 | else | |
3309 | ||
3310 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3311 | if test "x$LINE" != x ; then | |
3312 | eval "DEFAULT_$LINE" | |
3313 | else | |
3314 | no_cache=1 | |
3315 | fi | |
3316 | ||
3317 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3318 | ||
3319 | fi; | |
3320 | ||
3321 | eval "$ac_cv_use_zlib" | |
3322 | if test "$no_cache" != 1; then | |
3323 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3324 | fi | |
3325 | ||
3326 | if test "$wxUSE_ZLIB" = yes; then | |
3327 | echo "$as_me:$LINENO: result: yes" >&5 | |
3328 | echo "${ECHO_T}yes" >&6 | |
3329 | elif test "$wxUSE_ZLIB" = no; then | |
3330 | echo "$as_me:$LINENO: result: no" >&5 | |
3331 | echo "${ECHO_T}no" >&6 | |
3332 | elif test "$wxUSE_ZLIB" = sys; then | |
3333 | echo "$as_me:$LINENO: result: system version" >&5 | |
3334 | echo "${ECHO_T}system version" >&6 | |
3335 | elif test "$wxUSE_ZLIB" = builtin; then | |
3336 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3337 | echo "${ECHO_T}builtin version" >&6 | |
3338 | else | |
3339 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3340 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3341 | { (exit 1); exit 1; }; } | |
3342 | fi | |
3343 | ||
3344 | ||
3345 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3346 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3347 | no_cache=0 | |
3348 | ||
3349 | # Check whether --with-odbc or --without-odbc was given. | |
3350 | if test "${with_odbc+set}" = set; then | |
3351 | withval="$with_odbc" | |
3352 | ||
3353 | if test "$withval" = yes; then | |
3354 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3355 | elif test "$withval" = no; then | |
3356 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3357 | elif test "$withval" = sys; then | |
3358 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3359 | elif test "$withval" = builtin; then | |
3360 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3361 | else | |
3362 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3363 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3364 | { (exit 1); exit 1; }; } | |
3365 | fi | |
3366 | ||
3367 | else | |
3368 | ||
3369 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3370 | if test "x$LINE" != x ; then | |
3371 | eval "DEFAULT_$LINE" | |
3372 | else | |
3373 | no_cache=1 | |
3374 | fi | |
3375 | ||
3376 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3377 | ||
3378 | fi; | |
3379 | ||
3380 | eval "$ac_cv_use_odbc" | |
3381 | if test "$no_cache" != 1; then | |
3382 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3383 | fi | |
3384 | ||
3385 | if test "$wxUSE_ODBC" = yes; then | |
3386 | echo "$as_me:$LINENO: result: yes" >&5 | |
3387 | echo "${ECHO_T}yes" >&6 | |
3388 | elif test "$wxUSE_ODBC" = no; then | |
3389 | echo "$as_me:$LINENO: result: no" >&5 | |
3390 | echo "${ECHO_T}no" >&6 | |
3391 | elif test "$wxUSE_ODBC" = sys; then | |
3392 | echo "$as_me:$LINENO: result: system version" >&5 | |
3393 | echo "${ECHO_T}system version" >&6 | |
3394 | elif test "$wxUSE_ODBC" = builtin; then | |
3395 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3396 | echo "${ECHO_T}builtin version" >&6 | |
3397 | else | |
3398 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3399 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3400 | { (exit 1); exit 1; }; } | |
3401 | fi | |
3402 | ||
3403 | ||
3404 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3405 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3406 | no_cache=0 | |
3407 | ||
3408 | # Check whether --with-expat or --without-expat was given. | |
3409 | if test "${with_expat+set}" = set; then | |
3410 | withval="$with_expat" | |
3411 | ||
3412 | if test "$withval" = yes; then | |
3413 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3414 | elif test "$withval" = no; then | |
3415 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3416 | elif test "$withval" = sys; then | |
3417 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3418 | elif test "$withval" = builtin; then | |
3419 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3420 | else | |
3421 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3422 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3423 | { (exit 1); exit 1; }; } | |
3424 | fi | |
3425 | ||
3426 | else | |
3427 | ||
3428 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3429 | if test "x$LINE" != x ; then | |
3430 | eval "DEFAULT_$LINE" | |
3431 | else | |
3432 | no_cache=1 | |
3433 | fi | |
3434 | ||
3435 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3436 | ||
3437 | fi; | |
3438 | ||
3439 | eval "$ac_cv_use_expat" | |
3440 | if test "$no_cache" != 1; then | |
3441 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3442 | fi | |
3443 | ||
3444 | if test "$wxUSE_EXPAT" = yes; then | |
3445 | echo "$as_me:$LINENO: result: yes" >&5 | |
3446 | echo "${ECHO_T}yes" >&6 | |
3447 | elif test "$wxUSE_EXPAT" = no; then | |
3448 | echo "$as_me:$LINENO: result: no" >&5 | |
3449 | echo "${ECHO_T}no" >&6 | |
3450 | elif test "$wxUSE_EXPAT" = sys; then | |
3451 | echo "$as_me:$LINENO: result: system version" >&5 | |
3452 | echo "${ECHO_T}system version" >&6 | |
3453 | elif test "$wxUSE_EXPAT" = builtin; then | |
3454 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3455 | echo "${ECHO_T}builtin version" >&6 | |
3456 | else | |
3457 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3458 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3459 | { (exit 1); exit 1; }; } | |
3460 | fi | |
3461 | ||
3462 | ||
3463 | ||
3464 | ||
3465 | enablestring= | |
3466 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3467 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3468 | no_cache=0 | |
3469 | # Check whether --enable-shared or --disable-shared was given. | |
3470 | if test "${enable_shared+set}" = set; then | |
3471 | enableval="$enable_shared" | |
3472 | ||
3473 | if test "$enableval" = yes; then | |
3474 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3475 | else | |
3476 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3477 | fi | |
3478 | ||
3479 | else | |
3480 | ||
3481 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3482 | if test "x$LINE" != x ; then | |
3483 | eval "DEFAULT_$LINE" | |
3484 | else | |
3485 | no_cache=1 | |
3486 | fi | |
3487 | ||
3488 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3489 | ||
3490 | fi; | |
3491 | ||
3492 | eval "$ac_cv_use_shared" | |
3493 | if test "$no_cache" != 1; then | |
3494 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3495 | fi | |
3496 | ||
3497 | if test "$wxUSE_SHARED" = yes; then | |
3498 | echo "$as_me:$LINENO: result: yes" >&5 | |
3499 | echo "${ECHO_T}yes" >&6 | |
3500 | else | |
3501 | echo "$as_me:$LINENO: result: no" >&5 | |
3502 | echo "${ECHO_T}no" >&6 | |
3503 | fi | |
3504 | ||
3505 | ||
3506 | enablestring= | |
3507 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3508 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3509 | no_cache=0 | |
3510 | # Check whether --enable-optimise or --disable-optimise was given. | |
3511 | if test "${enable_optimise+set}" = set; then | |
3512 | enableval="$enable_optimise" | |
3513 | ||
3514 | if test "$enableval" = yes; then | |
3515 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3516 | else | |
3517 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3518 | fi | |
3519 | ||
3520 | else | |
3521 | ||
3522 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3523 | if test "x$LINE" != x ; then | |
3524 | eval "DEFAULT_$LINE" | |
3525 | else | |
3526 | no_cache=1 | |
3527 | fi | |
3528 | ||
3529 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3530 | ||
3531 | fi; | |
3532 | ||
3533 | eval "$ac_cv_use_optimise" | |
3534 | if test "$no_cache" != 1; then | |
3535 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3536 | fi | |
3537 | ||
3538 | if test "$wxUSE_OPTIMISE" = yes; then | |
3539 | echo "$as_me:$LINENO: result: yes" >&5 | |
3540 | echo "${ECHO_T}yes" >&6 | |
3541 | else | |
3542 | echo "$as_me:$LINENO: result: no" >&5 | |
3543 | echo "${ECHO_T}no" >&6 | |
3544 | fi | |
3545 | ||
3546 | ||
3547 | enablestring= | |
3548 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3549 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3550 | no_cache=0 | |
3551 | # Check whether --enable-debug or --disable-debug was given. | |
3552 | if test "${enable_debug+set}" = set; then | |
3553 | enableval="$enable_debug" | |
3554 | ||
3555 | if test "$enableval" = yes; then | |
3556 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3557 | else | |
3558 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3559 | fi | |
3560 | ||
3561 | else | |
3562 | ||
3563 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3564 | if test "x$LINE" != x ; then | |
3565 | eval "DEFAULT_$LINE" | |
3566 | else | |
3567 | no_cache=1 | |
3568 | fi | |
3569 | ||
3570 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3571 | ||
3572 | fi; | |
3573 | ||
3574 | eval "$ac_cv_use_debug" | |
3575 | if test "$no_cache" != 1; then | |
3576 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3577 | fi | |
3578 | ||
3579 | if test "$wxUSE_DEBUG" = yes; then | |
3580 | echo "$as_me:$LINENO: result: yes" >&5 | |
3581 | echo "${ECHO_T}yes" >&6 | |
3582 | else | |
3583 | echo "$as_me:$LINENO: result: no" >&5 | |
3584 | echo "${ECHO_T}no" >&6 | |
3585 | fi | |
3586 | ||
3587 | ||
3588 | enablestring= | |
3589 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3590 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3591 | no_cache=0 | |
3592 | # Check whether --enable-stl or --disable-stl was given. | |
3593 | if test "${enable_stl+set}" = set; then | |
3594 | enableval="$enable_stl" | |
3595 | ||
3596 | if test "$enableval" = yes; then | |
3597 | ac_cv_use_stl='wxUSE_STL=yes' | |
3598 | else | |
3599 | ac_cv_use_stl='wxUSE_STL=no' | |
3600 | fi | |
3601 | ||
3602 | else | |
3603 | ||
3604 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3605 | if test "x$LINE" != x ; then | |
3606 | eval "DEFAULT_$LINE" | |
3607 | else | |
3608 | no_cache=1 | |
3609 | fi | |
3610 | ||
3611 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3612 | ||
3613 | fi; | |
3614 | ||
3615 | eval "$ac_cv_use_stl" | |
3616 | if test "$no_cache" != 1; then | |
3617 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3618 | fi | |
3619 | ||
3620 | if test "$wxUSE_STL" = yes; then | |
3621 | echo "$as_me:$LINENO: result: yes" >&5 | |
3622 | echo "${ECHO_T}yes" >&6 | |
3623 | else | |
3624 | echo "$as_me:$LINENO: result: no" >&5 | |
3625 | echo "${ECHO_T}no" >&6 | |
3626 | fi | |
3627 | ||
3628 | if test "$USE_OS2" = "1"; then | |
3629 | ||
3630 | enablestring= | |
3631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3632 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3633 | no_cache=0 | |
3634 | # Check whether --enable-omf or --disable-omf was given. | |
3635 | if test "${enable_omf+set}" = set; then | |
3636 | enableval="$enable_omf" | |
3637 | ||
3638 | if test "$enableval" = yes; then | |
3639 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3640 | else | |
3641 | ac_cv_use_omf='wxUSE_OMF=no' | |
3642 | fi | |
3643 | ||
3644 | else | |
3645 | ||
3646 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3647 | if test "x$LINE" != x ; then | |
3648 | eval "DEFAULT_$LINE" | |
3649 | else | |
3650 | no_cache=1 | |
3651 | fi | |
3652 | ||
3653 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3654 | ||
3655 | fi; | |
3656 | ||
3657 | eval "$ac_cv_use_omf" | |
3658 | if test "$no_cache" != 1; then | |
3659 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3660 | fi | |
3661 | ||
3662 | if test "$wxUSE_OMF" = yes; then | |
3663 | echo "$as_me:$LINENO: result: yes" >&5 | |
3664 | echo "${ECHO_T}yes" >&6 | |
3665 | else | |
3666 | echo "$as_me:$LINENO: result: no" >&5 | |
3667 | echo "${ECHO_T}no" >&6 | |
3668 | fi | |
3669 | ||
3670 | fi | |
3671 | ||
3672 | if test "$wxUSE_DEBUG" = "yes"; then | |
3673 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3674 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3675 | BUILD=debug | |
3676 | elif test "$wxUSE_DEBUG" = "no"; then | |
3677 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3678 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3679 | BUILD=release | |
3680 | fi | |
3681 | ||
3682 | ||
3683 | enablestring= | |
3684 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3685 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3686 | no_cache=0 | |
3687 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3688 | if test "${enable_debug_flag+set}" = set; then | |
3689 | enableval="$enable_debug_flag" | |
3690 | ||
3691 | if test "$enableval" = yes; then | |
3692 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3693 | else | |
3694 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3695 | fi | |
3696 | ||
3697 | else | |
3698 | ||
3699 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3700 | if test "x$LINE" != x ; then | |
3701 | eval "DEFAULT_$LINE" | |
3702 | else | |
3703 | no_cache=1 | |
3704 | fi | |
3705 | ||
3706 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3707 | ||
3708 | fi; | |
3709 | ||
3710 | eval "$ac_cv_use_debug_flag" | |
3711 | if test "$no_cache" != 1; then | |
3712 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3713 | fi | |
3714 | ||
3715 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3716 | echo "$as_me:$LINENO: result: yes" >&5 | |
3717 | echo "${ECHO_T}yes" >&6 | |
3718 | else | |
3719 | echo "$as_me:$LINENO: result: no" >&5 | |
3720 | echo "${ECHO_T}no" >&6 | |
3721 | fi | |
3722 | ||
3723 | ||
3724 | enablestring= | |
3725 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3726 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3727 | no_cache=0 | |
3728 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3729 | if test "${enable_debug_info+set}" = set; then | |
3730 | enableval="$enable_debug_info" | |
3731 | ||
3732 | if test "$enableval" = yes; then | |
3733 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3734 | else | |
3735 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3736 | fi | |
3737 | ||
3738 | else | |
3739 | ||
3740 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3741 | if test "x$LINE" != x ; then | |
3742 | eval "DEFAULT_$LINE" | |
3743 | else | |
3744 | no_cache=1 | |
3745 | fi | |
3746 | ||
3747 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3748 | ||
3749 | fi; | |
3750 | ||
3751 | eval "$ac_cv_use_debug_info" | |
3752 | if test "$no_cache" != 1; then | |
3753 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3754 | fi | |
3755 | ||
3756 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3757 | echo "$as_me:$LINENO: result: yes" >&5 | |
3758 | echo "${ECHO_T}yes" >&6 | |
3759 | else | |
3760 | echo "$as_me:$LINENO: result: no" >&5 | |
3761 | echo "${ECHO_T}no" >&6 | |
3762 | fi | |
3763 | ||
3764 | ||
3765 | enablestring= | |
3766 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3767 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3768 | no_cache=0 | |
3769 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3770 | if test "${enable_debug_gdb+set}" = set; then | |
3771 | enableval="$enable_debug_gdb" | |
3772 | ||
3773 | if test "$enableval" = yes; then | |
3774 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3775 | else | |
3776 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3777 | fi | |
3778 | ||
3779 | else | |
3780 | ||
3781 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3782 | if test "x$LINE" != x ; then | |
3783 | eval "DEFAULT_$LINE" | |
3784 | else | |
3785 | no_cache=1 | |
3786 | fi | |
3787 | ||
3788 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3789 | ||
3790 | fi; | |
3791 | ||
3792 | eval "$ac_cv_use_debug_gdb" | |
3793 | if test "$no_cache" != 1; then | |
3794 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3795 | fi | |
3796 | ||
3797 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3798 | echo "$as_me:$LINENO: result: yes" >&5 | |
3799 | echo "${ECHO_T}yes" >&6 | |
3800 | else | |
3801 | echo "$as_me:$LINENO: result: no" >&5 | |
3802 | echo "${ECHO_T}no" >&6 | |
3803 | fi | |
3804 | ||
3805 | ||
3806 | enablestring= | |
3807 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3808 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3809 | no_cache=0 | |
3810 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3811 | if test "${enable_debug_cntxt+set}" = set; then | |
3812 | enableval="$enable_debug_cntxt" | |
3813 | ||
3814 | if test "$enableval" = yes; then | |
3815 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3816 | else | |
3817 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3818 | fi | |
3819 | ||
3820 | else | |
3821 | ||
3822 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3823 | if test "x$LINE" != x ; then | |
3824 | eval "DEFAULT_$LINE" | |
3825 | else | |
3826 | no_cache=1 | |
3827 | fi | |
3828 | ||
3829 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3830 | ||
3831 | fi; | |
3832 | ||
3833 | eval "$ac_cv_use_debug_cntxt" | |
3834 | if test "$no_cache" != 1; then | |
3835 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3836 | fi | |
3837 | ||
3838 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3839 | echo "$as_me:$LINENO: result: yes" >&5 | |
3840 | echo "${ECHO_T}yes" >&6 | |
3841 | else | |
3842 | echo "$as_me:$LINENO: result: no" >&5 | |
3843 | echo "${ECHO_T}no" >&6 | |
3844 | fi | |
3845 | ||
3846 | ||
3847 | enablestring= | |
3848 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3849 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3850 | no_cache=0 | |
3851 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3852 | if test "${enable_mem_tracing+set}" = set; then | |
3853 | enableval="$enable_mem_tracing" | |
3854 | ||
3855 | if test "$enableval" = yes; then | |
3856 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3857 | else | |
3858 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3859 | fi | |
3860 | ||
3861 | else | |
3862 | ||
3863 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3864 | if test "x$LINE" != x ; then | |
3865 | eval "DEFAULT_$LINE" | |
3866 | else | |
3867 | no_cache=1 | |
3868 | fi | |
3869 | ||
3870 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3871 | ||
3872 | fi; | |
3873 | ||
3874 | eval "$ac_cv_use_mem_tracing" | |
3875 | if test "$no_cache" != 1; then | |
3876 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3877 | fi | |
3878 | ||
3879 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3880 | echo "$as_me:$LINENO: result: yes" >&5 | |
3881 | echo "${ECHO_T}yes" >&6 | |
3882 | else | |
3883 | echo "$as_me:$LINENO: result: no" >&5 | |
3884 | echo "${ECHO_T}no" >&6 | |
3885 | fi | |
3886 | ||
3887 | ||
3888 | enablestring= | |
3889 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3890 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3891 | no_cache=0 | |
3892 | # Check whether --enable-profile or --disable-profile was given. | |
3893 | if test "${enable_profile+set}" = set; then | |
3894 | enableval="$enable_profile" | |
3895 | ||
3896 | if test "$enableval" = yes; then | |
3897 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3898 | else | |
3899 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3900 | fi | |
3901 | ||
3902 | else | |
3903 | ||
3904 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3905 | if test "x$LINE" != x ; then | |
3906 | eval "DEFAULT_$LINE" | |
3907 | else | |
3908 | no_cache=1 | |
3909 | fi | |
3910 | ||
3911 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3912 | ||
3913 | fi; | |
3914 | ||
3915 | eval "$ac_cv_use_profile" | |
3916 | if test "$no_cache" != 1; then | |
3917 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3918 | fi | |
3919 | ||
3920 | if test "$wxUSE_PROFILE" = yes; then | |
3921 | echo "$as_me:$LINENO: result: yes" >&5 | |
3922 | echo "${ECHO_T}yes" >&6 | |
3923 | else | |
3924 | echo "$as_me:$LINENO: result: no" >&5 | |
3925 | echo "${ECHO_T}no" >&6 | |
3926 | fi | |
3927 | ||
3928 | ||
3929 | enablestring= | |
3930 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3931 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3932 | no_cache=0 | |
3933 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3934 | if test "${enable_no_rtti+set}" = set; then | |
3935 | enableval="$enable_no_rtti" | |
3936 | ||
3937 | if test "$enableval" = yes; then | |
3938 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3939 | else | |
3940 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3941 | fi | |
3942 | ||
3943 | else | |
3944 | ||
3945 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3946 | if test "x$LINE" != x ; then | |
3947 | eval "DEFAULT_$LINE" | |
3948 | else | |
3949 | no_cache=1 | |
3950 | fi | |
3951 | ||
3952 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3953 | ||
3954 | fi; | |
3955 | ||
3956 | eval "$ac_cv_use_no_rtti" | |
3957 | if test "$no_cache" != 1; then | |
3958 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3959 | fi | |
3960 | ||
3961 | if test "$wxUSE_NO_RTTI" = yes; then | |
3962 | echo "$as_me:$LINENO: result: yes" >&5 | |
3963 | echo "${ECHO_T}yes" >&6 | |
3964 | else | |
3965 | echo "$as_me:$LINENO: result: no" >&5 | |
3966 | echo "${ECHO_T}no" >&6 | |
3967 | fi | |
3968 | ||
3969 | ||
3970 | enablestring= | |
3971 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3972 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3973 | no_cache=0 | |
3974 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3975 | if test "${enable_no_exceptions+set}" = set; then | |
3976 | enableval="$enable_no_exceptions" | |
3977 | ||
3978 | if test "$enableval" = yes; then | |
3979 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3980 | else | |
3981 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3982 | fi | |
3983 | ||
3984 | else | |
3985 | ||
3986 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3987 | if test "x$LINE" != x ; then | |
3988 | eval "DEFAULT_$LINE" | |
3989 | else | |
3990 | no_cache=1 | |
3991 | fi | |
3992 | ||
3993 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3994 | ||
3995 | fi; | |
3996 | ||
3997 | eval "$ac_cv_use_no_exceptions" | |
3998 | if test "$no_cache" != 1; then | |
3999 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4000 | fi | |
4001 | ||
4002 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4003 | echo "$as_me:$LINENO: result: yes" >&5 | |
4004 | echo "${ECHO_T}yes" >&6 | |
4005 | else | |
4006 | echo "$as_me:$LINENO: result: no" >&5 | |
4007 | echo "${ECHO_T}no" >&6 | |
4008 | fi | |
4009 | ||
4010 | ||
4011 | enablestring= | |
4012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4013 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4014 | no_cache=0 | |
4015 | # Check whether --enable-permissive or --disable-permissive was given. | |
4016 | if test "${enable_permissive+set}" = set; then | |
4017 | enableval="$enable_permissive" | |
4018 | ||
4019 | if test "$enableval" = yes; then | |
4020 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4021 | else | |
4022 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4023 | fi | |
4024 | ||
4025 | else | |
4026 | ||
4027 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4028 | if test "x$LINE" != x ; then | |
4029 | eval "DEFAULT_$LINE" | |
4030 | else | |
4031 | no_cache=1 | |
4032 | fi | |
4033 | ||
4034 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4035 | ||
4036 | fi; | |
4037 | ||
4038 | eval "$ac_cv_use_permissive" | |
4039 | if test "$no_cache" != 1; then | |
4040 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4041 | fi | |
4042 | ||
4043 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4044 | echo "$as_me:$LINENO: result: yes" >&5 | |
4045 | echo "${ECHO_T}yes" >&6 | |
4046 | else | |
4047 | echo "$as_me:$LINENO: result: no" >&5 | |
4048 | echo "${ECHO_T}no" >&6 | |
4049 | fi | |
4050 | ||
4051 | ||
4052 | enablestring= | |
4053 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4054 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4055 | no_cache=0 | |
4056 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4057 | if test "${enable_no_deps+set}" = set; then | |
4058 | enableval="$enable_no_deps" | |
4059 | ||
4060 | if test "$enableval" = yes; then | |
4061 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4062 | else | |
4063 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4064 | fi | |
4065 | ||
4066 | else | |
4067 | ||
4068 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4069 | if test "x$LINE" != x ; then | |
4070 | eval "DEFAULT_$LINE" | |
4071 | else | |
4072 | no_cache=1 | |
4073 | fi | |
4074 | ||
4075 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4076 | ||
4077 | fi; | |
4078 | ||
4079 | eval "$ac_cv_use_no_deps" | |
4080 | if test "$no_cache" != 1; then | |
4081 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4082 | fi | |
4083 | ||
4084 | if test "$wxUSE_NO_DEPS" = yes; then | |
4085 | echo "$as_me:$LINENO: result: yes" >&5 | |
4086 | echo "${ECHO_T}yes" >&6 | |
4087 | else | |
4088 | echo "$as_me:$LINENO: result: no" >&5 | |
4089 | echo "${ECHO_T}no" >&6 | |
4090 | fi | |
4091 | ||
4092 | ||
4093 | ||
4094 | enablestring= | |
4095 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4096 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4097 | no_cache=0 | |
4098 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4099 | if test "${enable_compat22+set}" = set; then | |
4100 | enableval="$enable_compat22" | |
4101 | ||
4102 | if test "$enableval" = yes; then | |
4103 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4104 | else | |
4105 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4106 | fi | |
4107 | ||
4108 | else | |
4109 | ||
4110 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4111 | if test "x$LINE" != x ; then | |
4112 | eval "DEFAULT_$LINE" | |
4113 | else | |
4114 | no_cache=1 | |
4115 | fi | |
4116 | ||
4117 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4118 | ||
4119 | fi; | |
4120 | ||
4121 | eval "$ac_cv_use_compat22" | |
4122 | if test "$no_cache" != 1; then | |
4123 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4124 | fi | |
4125 | ||
4126 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4127 | echo "$as_me:$LINENO: result: yes" >&5 | |
4128 | echo "${ECHO_T}yes" >&6 | |
4129 | else | |
4130 | echo "$as_me:$LINENO: result: no" >&5 | |
4131 | echo "${ECHO_T}no" >&6 | |
4132 | fi | |
4133 | ||
4134 | ||
4135 | enablestring=disable | |
4136 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4137 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4138 | no_cache=0 | |
4139 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4140 | if test "${enable_compat24+set}" = set; then | |
4141 | enableval="$enable_compat24" | |
4142 | ||
4143 | if test "$enableval" = yes; then | |
4144 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4145 | else | |
4146 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4147 | fi | |
4148 | ||
4149 | else | |
4150 | ||
4151 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4152 | if test "x$LINE" != x ; then | |
4153 | eval "DEFAULT_$LINE" | |
4154 | else | |
4155 | no_cache=1 | |
4156 | fi | |
4157 | ||
4158 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4159 | ||
4160 | fi; | |
4161 | ||
4162 | eval "$ac_cv_use_compat24" | |
4163 | if test "$no_cache" != 1; then | |
4164 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4165 | fi | |
4166 | ||
4167 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4168 | echo "$as_me:$LINENO: result: yes" >&5 | |
4169 | echo "${ECHO_T}yes" >&6 | |
4170 | else | |
4171 | echo "$as_me:$LINENO: result: no" >&5 | |
4172 | echo "${ECHO_T}no" >&6 | |
4173 | fi | |
4174 | ||
4175 | ||
ffa0583f RL |
4176 | |
4177 | enablestring= | |
4178 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4179 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4180 | no_cache=0 | |
4181 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4182 | if test "${enable_rpath+set}" = set; then |
4183 | enableval="$enable_rpath" | |
ffa0583f RL |
4184 | |
4185 | if test "$enableval" = yes; then | |
4186 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4187 | else | |
4188 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4189 | fi | |
4190 | ||
4191 | else | |
4192 | ||
4193 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4194 | if test "x$LINE" != x ; then | |
4195 | eval "DEFAULT_$LINE" | |
4196 | else | |
4197 | no_cache=1 | |
4198 | fi | |
4199 | ||
4200 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4201 | ||
a848cd7e SC |
4202 | fi; |
4203 | ||
ffa0583f RL |
4204 | eval "$ac_cv_use_rpath" |
4205 | if test "$no_cache" != 1; then | |
4206 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4207 | fi | |
4208 | ||
4209 | if test "$wxUSE_RPATH" = yes; then | |
4210 | echo "$as_me:$LINENO: result: yes" >&5 | |
4211 | echo "${ECHO_T}yes" >&6 | |
4212 | else | |
4213 | echo "$as_me:$LINENO: result: no" >&5 | |
4214 | echo "${ECHO_T}no" >&6 | |
4215 | fi | |
4216 | ||
a848cd7e SC |
4217 | |
4218 | ||
4219 | ||
4220 | ||
4221 | enablestring= | |
4222 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4223 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4224 | no_cache=0 | |
4225 | # Check whether --enable-intl or --disable-intl was given. | |
4226 | if test "${enable_intl+set}" = set; then | |
4227 | enableval="$enable_intl" | |
4228 | ||
4229 | if test "$enableval" = yes; then | |
4230 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4231 | else | |
4232 | ac_cv_use_intl='wxUSE_INTL=no' | |
4233 | fi | |
4234 | ||
4235 | else | |
4236 | ||
4237 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4238 | if test "x$LINE" != x ; then | |
4239 | eval "DEFAULT_$LINE" | |
4240 | else | |
4241 | no_cache=1 | |
4242 | fi | |
4243 | ||
4244 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4245 | ||
4246 | fi; | |
4247 | ||
4248 | eval "$ac_cv_use_intl" | |
4249 | if test "$no_cache" != 1; then | |
4250 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4251 | fi | |
4252 | ||
4253 | if test "$wxUSE_INTL" = yes; then | |
4254 | echo "$as_me:$LINENO: result: yes" >&5 | |
4255 | echo "${ECHO_T}yes" >&6 | |
4256 | else | |
4257 | echo "$as_me:$LINENO: result: no" >&5 | |
4258 | echo "${ECHO_T}no" >&6 | |
4259 | fi | |
4260 | ||
4261 | ||
4262 | enablestring= | |
4263 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4264 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4265 | no_cache=0 | |
4266 | # Check whether --enable-config or --disable-config was given. | |
4267 | if test "${enable_config+set}" = set; then | |
4268 | enableval="$enable_config" | |
4269 | ||
4270 | if test "$enableval" = yes; then | |
4271 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4272 | else | |
4273 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4274 | fi | |
4275 | ||
4276 | else | |
4277 | ||
4278 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4279 | if test "x$LINE" != x ; then | |
4280 | eval "DEFAULT_$LINE" | |
4281 | else | |
4282 | no_cache=1 | |
4283 | fi | |
4284 | ||
4285 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4286 | ||
4287 | fi; | |
4288 | ||
4289 | eval "$ac_cv_use_config" | |
4290 | if test "$no_cache" != 1; then | |
4291 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4292 | fi | |
4293 | ||
4294 | if test "$wxUSE_CONFIG" = yes; then | |
4295 | echo "$as_me:$LINENO: result: yes" >&5 | |
4296 | echo "${ECHO_T}yes" >&6 | |
4297 | else | |
4298 | echo "$as_me:$LINENO: result: no" >&5 | |
4299 | echo "${ECHO_T}no" >&6 | |
4300 | fi | |
4301 | ||
4302 | ||
4303 | ||
4304 | enablestring= | |
4305 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4306 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4307 | no_cache=0 | |
4308 | # Check whether --enable-protocols or --disable-protocols was given. | |
4309 | if test "${enable_protocols+set}" = set; then | |
4310 | enableval="$enable_protocols" | |
4311 | ||
4312 | if test "$enableval" = yes; then | |
4313 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4314 | else | |
4315 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4316 | fi | |
4317 | ||
4318 | else | |
4319 | ||
4320 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4321 | if test "x$LINE" != x ; then | |
4322 | eval "DEFAULT_$LINE" | |
4323 | else | |
4324 | no_cache=1 | |
4325 | fi | |
4326 | ||
4327 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4328 | ||
4329 | fi; | |
4330 | ||
4331 | eval "$ac_cv_use_protocols" | |
4332 | if test "$no_cache" != 1; then | |
4333 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4334 | fi | |
4335 | ||
4336 | if test "$wxUSE_PROTOCOL" = yes; then | |
4337 | echo "$as_me:$LINENO: result: yes" >&5 | |
4338 | echo "${ECHO_T}yes" >&6 | |
4339 | else | |
4340 | echo "$as_me:$LINENO: result: no" >&5 | |
4341 | echo "${ECHO_T}no" >&6 | |
4342 | fi | |
4343 | ||
4344 | ||
4345 | enablestring= | |
4346 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4347 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4348 | no_cache=0 | |
4349 | # Check whether --enable-ftp or --disable-ftp was given. | |
4350 | if test "${enable_ftp+set}" = set; then | |
4351 | enableval="$enable_ftp" | |
4352 | ||
4353 | if test "$enableval" = yes; then | |
4354 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4355 | else | |
4356 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4357 | fi | |
4358 | ||
4359 | else | |
4360 | ||
4361 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4362 | if test "x$LINE" != x ; then | |
4363 | eval "DEFAULT_$LINE" | |
4364 | else | |
4365 | no_cache=1 | |
4366 | fi | |
4367 | ||
4368 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4369 | ||
4370 | fi; | |
4371 | ||
4372 | eval "$ac_cv_use_ftp" | |
4373 | if test "$no_cache" != 1; then | |
4374 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4375 | fi | |
4376 | ||
4377 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4378 | echo "$as_me:$LINENO: result: yes" >&5 | |
4379 | echo "${ECHO_T}yes" >&6 | |
4380 | else | |
4381 | echo "$as_me:$LINENO: result: no" >&5 | |
4382 | echo "${ECHO_T}no" >&6 | |
4383 | fi | |
4384 | ||
4385 | ||
4386 | enablestring= | |
4387 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4388 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4389 | no_cache=0 | |
4390 | # Check whether --enable-http or --disable-http was given. | |
4391 | if test "${enable_http+set}" = set; then | |
4392 | enableval="$enable_http" | |
4393 | ||
4394 | if test "$enableval" = yes; then | |
4395 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4396 | else | |
4397 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4398 | fi | |
4399 | ||
4400 | else | |
4401 | ||
4402 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4403 | if test "x$LINE" != x ; then | |
4404 | eval "DEFAULT_$LINE" | |
4405 | else | |
4406 | no_cache=1 | |
4407 | fi | |
4408 | ||
4409 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4410 | ||
4411 | fi; | |
4412 | ||
4413 | eval "$ac_cv_use_http" | |
4414 | if test "$no_cache" != 1; then | |
4415 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4416 | fi | |
4417 | ||
4418 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4419 | echo "$as_me:$LINENO: result: yes" >&5 | |
4420 | echo "${ECHO_T}yes" >&6 | |
4421 | else | |
4422 | echo "$as_me:$LINENO: result: no" >&5 | |
4423 | echo "${ECHO_T}no" >&6 | |
4424 | fi | |
4425 | ||
4426 | ||
4427 | enablestring= | |
4428 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4429 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4430 | no_cache=0 | |
4431 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4432 | if test "${enable_fileproto+set}" = set; then | |
4433 | enableval="$enable_fileproto" | |
4434 | ||
4435 | if test "$enableval" = yes; then | |
4436 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4437 | else | |
4438 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4439 | fi | |
4440 | ||
4441 | else | |
4442 | ||
4443 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4444 | if test "x$LINE" != x ; then | |
4445 | eval "DEFAULT_$LINE" | |
4446 | else | |
4447 | no_cache=1 | |
4448 | fi | |
4449 | ||
4450 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4451 | ||
4452 | fi; | |
4453 | ||
4454 | eval "$ac_cv_use_fileproto" | |
4455 | if test "$no_cache" != 1; then | |
4456 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4457 | fi | |
4458 | ||
4459 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4460 | echo "$as_me:$LINENO: result: yes" >&5 | |
4461 | echo "${ECHO_T}yes" >&6 | |
4462 | else | |
4463 | echo "$as_me:$LINENO: result: no" >&5 | |
4464 | echo "${ECHO_T}no" >&6 | |
4465 | fi | |
4466 | ||
4467 | ||
4468 | enablestring= | |
4469 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4470 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4471 | no_cache=0 | |
4472 | # Check whether --enable-sockets or --disable-sockets was given. | |
4473 | if test "${enable_sockets+set}" = set; then | |
4474 | enableval="$enable_sockets" | |
4475 | ||
4476 | if test "$enableval" = yes; then | |
4477 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4478 | else | |
4479 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4480 | fi | |
4481 | ||
4482 | else | |
4483 | ||
4484 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4485 | if test "x$LINE" != x ; then | |
4486 | eval "DEFAULT_$LINE" | |
4487 | else | |
4488 | no_cache=1 | |
4489 | fi | |
4490 | ||
4491 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4492 | ||
4493 | fi; | |
4494 | ||
4495 | eval "$ac_cv_use_sockets" | |
4496 | if test "$no_cache" != 1; then | |
4497 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4498 | fi | |
4499 | ||
4500 | if test "$wxUSE_SOCKETS" = yes; then | |
4501 | echo "$as_me:$LINENO: result: yes" >&5 | |
4502 | echo "${ECHO_T}yes" >&6 | |
4503 | else | |
4504 | echo "$as_me:$LINENO: result: no" >&5 | |
4505 | echo "${ECHO_T}no" >&6 | |
4506 | fi | |
4507 | ||
4508 | ||
4509 | enablestring= | |
4510 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4511 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4512 | no_cache=0 | |
4513 | # Check whether --enable-ole or --disable-ole was given. | |
4514 | if test "${enable_ole+set}" = set; then | |
4515 | enableval="$enable_ole" | |
4516 | ||
4517 | if test "$enableval" = yes; then | |
4518 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4519 | else | |
4520 | ac_cv_use_ole='wxUSE_OLE=no' | |
4521 | fi | |
4522 | ||
4523 | else | |
4524 | ||
4525 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4526 | if test "x$LINE" != x ; then | |
4527 | eval "DEFAULT_$LINE" | |
4528 | else | |
4529 | no_cache=1 | |
4530 | fi | |
4531 | ||
4532 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4533 | ||
4534 | fi; | |
4535 | ||
4536 | eval "$ac_cv_use_ole" | |
4537 | if test "$no_cache" != 1; then | |
4538 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4539 | fi | |
4540 | ||
4541 | if test "$wxUSE_OLE" = yes; then | |
4542 | echo "$as_me:$LINENO: result: yes" >&5 | |
4543 | echo "${ECHO_T}yes" >&6 | |
4544 | else | |
4545 | echo "$as_me:$LINENO: result: no" >&5 | |
4546 | echo "${ECHO_T}no" >&6 | |
4547 | fi | |
4548 | ||
4549 | ||
4550 | enablestring= | |
4551 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4552 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4553 | no_cache=0 | |
4554 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4555 | if test "${enable_dataobj+set}" = set; then | |
4556 | enableval="$enable_dataobj" | |
4557 | ||
4558 | if test "$enableval" = yes; then | |
4559 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4560 | else | |
4561 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4562 | fi | |
4563 | ||
4564 | else | |
4565 | ||
4566 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4567 | if test "x$LINE" != x ; then | |
4568 | eval "DEFAULT_$LINE" | |
4569 | else | |
4570 | no_cache=1 | |
4571 | fi | |
4572 | ||
4573 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4574 | ||
4575 | fi; | |
4576 | ||
4577 | eval "$ac_cv_use_dataobj" | |
4578 | if test "$no_cache" != 1; then | |
4579 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4580 | fi | |
4581 | ||
4582 | if test "$wxUSE_DATAOBJ" = yes; then | |
4583 | echo "$as_me:$LINENO: result: yes" >&5 | |
4584 | echo "${ECHO_T}yes" >&6 | |
4585 | else | |
4586 | echo "$as_me:$LINENO: result: no" >&5 | |
4587 | echo "${ECHO_T}no" >&6 | |
4588 | fi | |
4589 | ||
4590 | ||
4591 | ||
4592 | enablestring= | |
4593 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4594 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4595 | no_cache=0 | |
4596 | # Check whether --enable-ipc or --disable-ipc was given. | |
4597 | if test "${enable_ipc+set}" = set; then | |
4598 | enableval="$enable_ipc" | |
4599 | ||
4600 | if test "$enableval" = yes; then | |
4601 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4602 | else | |
4603 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4604 | fi | |
4605 | ||
4606 | else | |
4607 | ||
4608 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4609 | if test "x$LINE" != x ; then | |
4610 | eval "DEFAULT_$LINE" | |
4611 | else | |
4612 | no_cache=1 | |
4613 | fi | |
4614 | ||
4615 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4616 | ||
4617 | fi; | |
4618 | ||
4619 | eval "$ac_cv_use_ipc" | |
4620 | if test "$no_cache" != 1; then | |
4621 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4622 | fi | |
4623 | ||
4624 | if test "$wxUSE_IPC" = yes; then | |
4625 | echo "$as_me:$LINENO: result: yes" >&5 | |
4626 | echo "${ECHO_T}yes" >&6 | |
4627 | else | |
4628 | echo "$as_me:$LINENO: result: no" >&5 | |
4629 | echo "${ECHO_T}no" >&6 | |
4630 | fi | |
4631 | ||
4632 | ||
4633 | ||
4634 | enablestring= | |
4635 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4636 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4637 | no_cache=0 | |
4638 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4639 | if test "${enable_apple_ieee+set}" = set; then | |
4640 | enableval="$enable_apple_ieee" | |
4641 | ||
4642 | if test "$enableval" = yes; then | |
4643 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4644 | else | |
4645 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4646 | fi | |
4647 | ||
4648 | else | |
4649 | ||
4650 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4651 | if test "x$LINE" != x ; then | |
4652 | eval "DEFAULT_$LINE" | |
4653 | else | |
4654 | no_cache=1 | |
4655 | fi | |
4656 | ||
4657 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4658 | ||
4659 | fi; | |
4660 | ||
4661 | eval "$ac_cv_use_apple_ieee" | |
4662 | if test "$no_cache" != 1; then | |
4663 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4664 | fi | |
4665 | ||
4666 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4667 | echo "$as_me:$LINENO: result: yes" >&5 | |
4668 | echo "${ECHO_T}yes" >&6 | |
4669 | else | |
4670 | echo "$as_me:$LINENO: result: no" >&5 | |
4671 | echo "${ECHO_T}no" >&6 | |
4672 | fi | |
4673 | ||
4674 | ||
81f90336 MW |
4675 | enablestring= |
4676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4677 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4678 | no_cache=0 | |
4679 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4680 | if test "${enable_arcstream+set}" = set; then | |
4681 | enableval="$enable_arcstream" | |
4682 | ||
4683 | if test "$enableval" = yes; then | |
9e8e867f | 4684 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4685 | else |
9e8e867f | 4686 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4687 | fi |
4688 | ||
4689 | else | |
4690 | ||
9e8e867f | 4691 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4692 | if test "x$LINE" != x ; then |
4693 | eval "DEFAULT_$LINE" | |
4694 | else | |
4695 | no_cache=1 | |
4696 | fi | |
4697 | ||
9e8e867f | 4698 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4699 | |
4700 | fi; | |
4701 | ||
4702 | eval "$ac_cv_use_arcstream" | |
4703 | if test "$no_cache" != 1; then | |
4704 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4705 | fi | |
4706 | ||
9e8e867f | 4707 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4708 | echo "$as_me:$LINENO: result: yes" >&5 |
4709 | echo "${ECHO_T}yes" >&6 | |
4710 | else | |
4711 | echo "$as_me:$LINENO: result: no" >&5 | |
4712 | echo "${ECHO_T}no" >&6 | |
4713 | fi | |
4714 | ||
4715 | ||
a848cd7e SC |
4716 | enablestring= |
4717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4718 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4719 | no_cache=0 | |
4720 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4721 | if test "${enable_catch_segvs+set}" = set; then | |
4722 | enableval="$enable_catch_segvs" | |
4723 | ||
4724 | if test "$enableval" = yes; then | |
4725 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4726 | else | |
4727 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4728 | fi | |
4729 | ||
4730 | else | |
4731 | ||
4732 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4733 | if test "x$LINE" != x ; then | |
4734 | eval "DEFAULT_$LINE" | |
4735 | else | |
4736 | no_cache=1 | |
4737 | fi | |
4738 | ||
4739 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4740 | ||
4741 | fi; | |
4742 | ||
4743 | eval "$ac_cv_use_catch_segvs" | |
4744 | if test "$no_cache" != 1; then | |
4745 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4746 | fi | |
4747 | ||
4748 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4749 | echo "$as_me:$LINENO: result: yes" >&5 | |
4750 | echo "${ECHO_T}yes" >&6 | |
4751 | else | |
4752 | echo "$as_me:$LINENO: result: no" >&5 | |
4753 | echo "${ECHO_T}no" >&6 | |
4754 | fi | |
4755 | ||
4756 | ||
eaff0f0d VZ |
4757 | enablestring= |
4758 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 | |
4759 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
4760 | no_cache=0 | |
4761 | # Check whether --enable-backtrace or --disable-backtrace was given. | |
4762 | if test "${enable_backtrace+set}" = set; then | |
4763 | enableval="$enable_backtrace" | |
4764 | ||
4765 | if test "$enableval" = yes; then | |
4766 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' | |
4767 | else | |
4768 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' | |
4769 | fi | |
4770 | ||
4771 | else | |
4772 | ||
4773 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` | |
4774 | if test "x$LINE" != x ; then | |
4775 | eval "DEFAULT_$LINE" | |
4776 | else | |
4777 | no_cache=1 | |
4778 | fi | |
4779 | ||
4780 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER | |
4781 | ||
4782 | fi; | |
4783 | ||
4784 | eval "$ac_cv_use_backtrace" | |
4785 | if test "$no_cache" != 1; then | |
4786 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp | |
4787 | fi | |
4788 | ||
4789 | if test "$wxUSE_STACKWALKER" = yes; then | |
4790 | echo "$as_me:$LINENO: result: yes" >&5 | |
4791 | echo "${ECHO_T}yes" >&6 | |
4792 | else | |
4793 | echo "$as_me:$LINENO: result: no" >&5 | |
4794 | echo "${ECHO_T}no" >&6 | |
4795 | fi | |
4796 | ||
4797 | ||
a848cd7e SC |
4798 | enablestring= |
4799 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4800 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4801 | no_cache=0 | |
4802 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4803 | if test "${enable_cmdline+set}" = set; then | |
4804 | enableval="$enable_cmdline" | |
4805 | ||
4806 | if test "$enableval" = yes; then | |
4807 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4808 | else | |
4809 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4810 | fi | |
4811 | ||
4812 | else | |
4813 | ||
4814 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4815 | if test "x$LINE" != x ; then | |
4816 | eval "DEFAULT_$LINE" | |
4817 | else | |
4818 | no_cache=1 | |
4819 | fi | |
4820 | ||
4821 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4822 | ||
4823 | fi; | |
4824 | ||
4825 | eval "$ac_cv_use_cmdline" | |
4826 | if test "$no_cache" != 1; then | |
4827 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4828 | fi | |
4829 | ||
4830 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4831 | echo "$as_me:$LINENO: result: yes" >&5 | |
4832 | echo "${ECHO_T}yes" >&6 | |
4833 | else | |
4834 | echo "$as_me:$LINENO: result: no" >&5 | |
4835 | echo "${ECHO_T}no" >&6 | |
4836 | fi | |
4837 | ||
4838 | ||
4839 | enablestring= | |
4840 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4841 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4842 | no_cache=0 | |
4843 | # Check whether --enable-datetime or --disable-datetime was given. | |
4844 | if test "${enable_datetime+set}" = set; then | |
4845 | enableval="$enable_datetime" | |
4846 | ||
4847 | if test "$enableval" = yes; then | |
4848 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4849 | else | |
4850 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4851 | fi | |
4852 | ||
4853 | else | |
4854 | ||
4855 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4856 | if test "x$LINE" != x ; then | |
4857 | eval "DEFAULT_$LINE" | |
4858 | else | |
4859 | no_cache=1 | |
4860 | fi | |
4861 | ||
4862 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4863 | ||
4864 | fi; | |
4865 | ||
4866 | eval "$ac_cv_use_datetime" | |
4867 | if test "$no_cache" != 1; then | |
4868 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4869 | fi | |
4870 | ||
4871 | if test "$wxUSE_DATETIME" = yes; then | |
4872 | echo "$as_me:$LINENO: result: yes" >&5 | |
4873 | echo "${ECHO_T}yes" >&6 | |
4874 | else | |
4875 | echo "$as_me:$LINENO: result: no" >&5 | |
4876 | echo "${ECHO_T}no" >&6 | |
4877 | fi | |
4878 | ||
4879 | ||
4880 | enablestring= | |
4881 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4882 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4883 | no_cache=0 | |
4884 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4885 | if test "${enable_dialupman+set}" = set; then | |
4886 | enableval="$enable_dialupman" | |
4887 | ||
4888 | if test "$enableval" = yes; then | |
4889 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4890 | else | |
4891 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4892 | fi | |
4893 | ||
4894 | else | |
4895 | ||
4896 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4897 | if test "x$LINE" != x ; then | |
4898 | eval "DEFAULT_$LINE" | |
4899 | else | |
4900 | no_cache=1 | |
4901 | fi | |
4902 | ||
4903 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4904 | ||
4905 | fi; | |
4906 | ||
4907 | eval "$ac_cv_use_dialupman" | |
4908 | if test "$no_cache" != 1; then | |
4909 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4910 | fi | |
4911 | ||
4912 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4913 | echo "$as_me:$LINENO: result: yes" >&5 | |
4914 | echo "${ECHO_T}yes" >&6 | |
4915 | else | |
4916 | echo "$as_me:$LINENO: result: no" >&5 | |
4917 | echo "${ECHO_T}no" >&6 | |
4918 | fi | |
4919 | ||
4920 | ||
4921 | enablestring= | |
4922 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4923 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4924 | no_cache=0 | |
4925 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4926 | if test "${enable_dynlib+set}" = set; then | |
4927 | enableval="$enable_dynlib" | |
4928 | ||
4929 | if test "$enableval" = yes; then | |
4930 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4931 | else | |
4932 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4933 | fi | |
4934 | ||
4935 | else | |
4936 | ||
4937 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4938 | if test "x$LINE" != x ; then | |
4939 | eval "DEFAULT_$LINE" | |
4940 | else | |
4941 | no_cache=1 | |
4942 | fi | |
4943 | ||
4944 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4945 | ||
4946 | fi; | |
4947 | ||
4948 | eval "$ac_cv_use_dynlib" | |
4949 | if test "$no_cache" != 1; then | |
4950 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4951 | fi | |
4952 | ||
4953 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4954 | echo "$as_me:$LINENO: result: yes" >&5 | |
4955 | echo "${ECHO_T}yes" >&6 | |
4956 | else | |
4957 | echo "$as_me:$LINENO: result: no" >&5 | |
4958 | echo "${ECHO_T}no" >&6 | |
4959 | fi | |
4960 | ||
4961 | ||
4962 | enablestring= | |
4963 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4964 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4965 | no_cache=0 | |
4966 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4967 | if test "${enable_dynamicloader+set}" = set; then | |
4968 | enableval="$enable_dynamicloader" | |
4969 | ||
4970 | if test "$enableval" = yes; then | |
4971 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4972 | else | |
4973 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4974 | fi | |
4975 | ||
4976 | else | |
4977 | ||
4978 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4979 | if test "x$LINE" != x ; then | |
4980 | eval "DEFAULT_$LINE" | |
4981 | else | |
4982 | no_cache=1 | |
4983 | fi | |
4984 | ||
4985 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4986 | ||
4987 | fi; | |
4988 | ||
4989 | eval "$ac_cv_use_dynamicloader" | |
4990 | if test "$no_cache" != 1; then | |
4991 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4992 | fi | |
4993 | ||
4994 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4995 | echo "$as_me:$LINENO: result: yes" >&5 | |
4996 | echo "${ECHO_T}yes" >&6 | |
4997 | else | |
4998 | echo "$as_me:$LINENO: result: no" >&5 | |
4999 | echo "${ECHO_T}no" >&6 | |
5000 | fi | |
5001 | ||
5002 | ||
5003 | enablestring= | |
5004 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5005 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5006 | no_cache=0 | |
5007 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5008 | if test "${enable_exceptions+set}" = set; then | |
5009 | enableval="$enable_exceptions" | |
5010 | ||
5011 | if test "$enableval" = yes; then | |
5012 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5013 | else | |
5014 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5015 | fi | |
5016 | ||
5017 | else | |
5018 | ||
5019 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5020 | if test "x$LINE" != x ; then | |
5021 | eval "DEFAULT_$LINE" | |
5022 | else | |
5023 | no_cache=1 | |
5024 | fi | |
5025 | ||
5026 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5027 | ||
5028 | fi; | |
5029 | ||
5030 | eval "$ac_cv_use_exceptions" | |
5031 | if test "$no_cache" != 1; then | |
5032 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5033 | fi | |
5034 | ||
5035 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5036 | echo "$as_me:$LINENO: result: yes" >&5 | |
5037 | echo "${ECHO_T}yes" >&6 | |
5038 | else | |
5039 | echo "$as_me:$LINENO: result: no" >&5 | |
5040 | echo "${ECHO_T}no" >&6 | |
5041 | fi | |
5042 | ||
5043 | ||
5044 | enablestring= | |
5045 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5046 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5047 | no_cache=0 | |
5048 | # Check whether --enable-ffile or --disable-ffile was given. | |
5049 | if test "${enable_ffile+set}" = set; then | |
5050 | enableval="$enable_ffile" | |
5051 | ||
5052 | if test "$enableval" = yes; then | |
5053 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5054 | else | |
5055 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5056 | fi | |
5057 | ||
5058 | else | |
5059 | ||
5060 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5061 | if test "x$LINE" != x ; then | |
5062 | eval "DEFAULT_$LINE" | |
5063 | else | |
5064 | no_cache=1 | |
5065 | fi | |
5066 | ||
5067 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5068 | ||
5069 | fi; | |
5070 | ||
5071 | eval "$ac_cv_use_ffile" | |
5072 | if test "$no_cache" != 1; then | |
5073 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5074 | fi | |
5075 | ||
5076 | if test "$wxUSE_FFILE" = yes; then | |
5077 | echo "$as_me:$LINENO: result: yes" >&5 | |
5078 | echo "${ECHO_T}yes" >&6 | |
5079 | else | |
5080 | echo "$as_me:$LINENO: result: no" >&5 | |
5081 | echo "${ECHO_T}no" >&6 | |
5082 | fi | |
5083 | ||
5084 | ||
5085 | enablestring= | |
5086 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5087 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5088 | no_cache=0 | |
5089 | # Check whether --enable-file or --disable-file was given. | |
5090 | if test "${enable_file+set}" = set; then | |
5091 | enableval="$enable_file" | |
5092 | ||
5093 | if test "$enableval" = yes; then | |
5094 | ac_cv_use_file='wxUSE_FILE=yes' | |
5095 | else | |
5096 | ac_cv_use_file='wxUSE_FILE=no' | |
5097 | fi | |
5098 | ||
5099 | else | |
5100 | ||
5101 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5102 | if test "x$LINE" != x ; then | |
5103 | eval "DEFAULT_$LINE" | |
5104 | else | |
5105 | no_cache=1 | |
5106 | fi | |
5107 | ||
5108 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5109 | ||
5110 | fi; | |
5111 | ||
5112 | eval "$ac_cv_use_file" | |
5113 | if test "$no_cache" != 1; then | |
5114 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5115 | fi | |
5116 | ||
5117 | if test "$wxUSE_FILE" = yes; then | |
5118 | echo "$as_me:$LINENO: result: yes" >&5 | |
5119 | echo "${ECHO_T}yes" >&6 | |
5120 | else | |
5121 | echo "$as_me:$LINENO: result: no" >&5 | |
5122 | echo "${ECHO_T}no" >&6 | |
5123 | fi | |
5124 | ||
5125 | ||
5126 | enablestring= | |
5127 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5128 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5129 | no_cache=0 | |
5130 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5131 | if test "${enable_filesystem+set}" = set; then | |
5132 | enableval="$enable_filesystem" | |
5133 | ||
5134 | if test "$enableval" = yes; then | |
5135 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5136 | else | |
5137 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5138 | fi | |
5139 | ||
5140 | else | |
5141 | ||
5142 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5143 | if test "x$LINE" != x ; then | |
5144 | eval "DEFAULT_$LINE" | |
5145 | else | |
5146 | no_cache=1 | |
5147 | fi | |
5148 | ||
5149 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5150 | ||
5151 | fi; | |
5152 | ||
5153 | eval "$ac_cv_use_filesystem" | |
5154 | if test "$no_cache" != 1; then | |
5155 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5156 | fi | |
5157 | ||
5158 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5159 | echo "$as_me:$LINENO: result: yes" >&5 | |
5160 | echo "${ECHO_T}yes" >&6 | |
5161 | else | |
5162 | echo "$as_me:$LINENO: result: no" >&5 | |
5163 | echo "${ECHO_T}no" >&6 | |
5164 | fi | |
5165 | ||
5166 | ||
5167 | enablestring= | |
5168 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5169 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5170 | no_cache=0 | |
5171 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5172 | if test "${enable_fontmap+set}" = set; then | |
5173 | enableval="$enable_fontmap" | |
5174 | ||
5175 | if test "$enableval" = yes; then | |
5176 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5177 | else | |
5178 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5179 | fi | |
5180 | ||
5181 | else | |
5182 | ||
5183 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5184 | if test "x$LINE" != x ; then | |
5185 | eval "DEFAULT_$LINE" | |
5186 | else | |
5187 | no_cache=1 | |
5188 | fi | |
5189 | ||
5190 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5191 | ||
5192 | fi; | |
5193 | ||
5194 | eval "$ac_cv_use_fontmap" | |
5195 | if test "$no_cache" != 1; then | |
5196 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5197 | fi | |
5198 | ||
5199 | if test "$wxUSE_FONTMAP" = yes; then | |
5200 | echo "$as_me:$LINENO: result: yes" >&5 | |
5201 | echo "${ECHO_T}yes" >&6 | |
5202 | else | |
5203 | echo "$as_me:$LINENO: result: no" >&5 | |
5204 | echo "${ECHO_T}no" >&6 | |
5205 | fi | |
5206 | ||
5207 | ||
5208 | enablestring= | |
5209 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5210 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5211 | no_cache=0 | |
5212 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5213 | if test "${enable_fs_inet+set}" = set; then | |
5214 | enableval="$enable_fs_inet" | |
5215 | ||
5216 | if test "$enableval" = yes; then | |
5217 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5218 | else | |
5219 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5220 | fi | |
5221 | ||
5222 | else | |
5223 | ||
5224 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5225 | if test "x$LINE" != x ; then | |
5226 | eval "DEFAULT_$LINE" | |
5227 | else | |
5228 | no_cache=1 | |
5229 | fi | |
5230 | ||
5231 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5232 | ||
5233 | fi; | |
5234 | ||
5235 | eval "$ac_cv_use_fs_inet" | |
5236 | if test "$no_cache" != 1; then | |
5237 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5238 | fi | |
5239 | ||
5240 | if test "$wxUSE_FS_INET" = yes; then | |
5241 | echo "$as_me:$LINENO: result: yes" >&5 | |
5242 | echo "${ECHO_T}yes" >&6 | |
5243 | else | |
5244 | echo "$as_me:$LINENO: result: no" >&5 | |
5245 | echo "${ECHO_T}no" >&6 | |
5246 | fi | |
5247 | ||
5248 | ||
5249 | enablestring= | |
5250 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5251 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5252 | no_cache=0 | |
5253 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5254 | if test "${enable_fs_zip+set}" = set; then | |
5255 | enableval="$enable_fs_zip" | |
5256 | ||
5257 | if test "$enableval" = yes; then | |
5258 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5259 | else | |
5260 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5261 | fi | |
5262 | ||
5263 | else | |
5264 | ||
5265 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5266 | if test "x$LINE" != x ; then | |
5267 | eval "DEFAULT_$LINE" | |
5268 | else | |
5269 | no_cache=1 | |
5270 | fi | |
5271 | ||
5272 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5273 | ||
5274 | fi; | |
5275 | ||
5276 | eval "$ac_cv_use_fs_zip" | |
5277 | if test "$no_cache" != 1; then | |
5278 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5279 | fi | |
5280 | ||
5281 | if test "$wxUSE_FS_ZIP" = yes; then | |
5282 | echo "$as_me:$LINENO: result: yes" >&5 | |
5283 | echo "${ECHO_T}yes" >&6 | |
5284 | else | |
5285 | echo "$as_me:$LINENO: result: no" >&5 | |
5286 | echo "${ECHO_T}no" >&6 | |
5287 | fi | |
5288 | ||
5289 | ||
5290 | enablestring= | |
5291 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5292 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5293 | no_cache=0 | |
5294 | # Check whether --enable-geometry or --disable-geometry was given. | |
5295 | if test "${enable_geometry+set}" = set; then | |
5296 | enableval="$enable_geometry" | |
5297 | ||
5298 | if test "$enableval" = yes; then | |
5299 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5300 | else | |
5301 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5302 | fi | |
5303 | ||
5304 | else | |
5305 | ||
5306 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5307 | if test "x$LINE" != x ; then | |
5308 | eval "DEFAULT_$LINE" | |
5309 | else | |
5310 | no_cache=1 | |
5311 | fi | |
5312 | ||
5313 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5314 | ||
5315 | fi; | |
5316 | ||
5317 | eval "$ac_cv_use_geometry" | |
5318 | if test "$no_cache" != 1; then | |
5319 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5320 | fi | |
5321 | ||
5322 | if test "$wxUSE_GEOMETRY" = yes; then | |
5323 | echo "$as_me:$LINENO: result: yes" >&5 | |
5324 | echo "${ECHO_T}yes" >&6 | |
5325 | else | |
5326 | echo "$as_me:$LINENO: result: no" >&5 | |
5327 | echo "${ECHO_T}no" >&6 | |
5328 | fi | |
5329 | ||
5330 | ||
5331 | enablestring= | |
5332 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5333 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5334 | no_cache=0 | |
5335 | # Check whether --enable-log or --disable-log was given. | |
5336 | if test "${enable_log+set}" = set; then | |
5337 | enableval="$enable_log" | |
5338 | ||
5339 | if test "$enableval" = yes; then | |
5340 | ac_cv_use_log='wxUSE_LOG=yes' | |
5341 | else | |
5342 | ac_cv_use_log='wxUSE_LOG=no' | |
5343 | fi | |
5344 | ||
5345 | else | |
5346 | ||
5347 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5348 | if test "x$LINE" != x ; then | |
5349 | eval "DEFAULT_$LINE" | |
5350 | else | |
5351 | no_cache=1 | |
5352 | fi | |
5353 | ||
5354 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5355 | ||
5356 | fi; | |
5357 | ||
5358 | eval "$ac_cv_use_log" | |
5359 | if test "$no_cache" != 1; then | |
5360 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5361 | fi | |
5362 | ||
5363 | if test "$wxUSE_LOG" = yes; then | |
5364 | echo "$as_me:$LINENO: result: yes" >&5 | |
5365 | echo "${ECHO_T}yes" >&6 | |
5366 | else | |
5367 | echo "$as_me:$LINENO: result: no" >&5 | |
5368 | echo "${ECHO_T}no" >&6 | |
5369 | fi | |
5370 | ||
5371 | ||
5372 | enablestring= | |
5373 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5374 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5375 | no_cache=0 | |
5376 | # Check whether --enable-longlong or --disable-longlong was given. | |
5377 | if test "${enable_longlong+set}" = set; then | |
5378 | enableval="$enable_longlong" | |
5379 | ||
5380 | if test "$enableval" = yes; then | |
5381 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5382 | else | |
5383 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5384 | fi | |
5385 | ||
5386 | else | |
5387 | ||
5388 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5389 | if test "x$LINE" != x ; then | |
5390 | eval "DEFAULT_$LINE" | |
5391 | else | |
5392 | no_cache=1 | |
5393 | fi | |
5394 | ||
5395 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5396 | ||
5397 | fi; | |
5398 | ||
5399 | eval "$ac_cv_use_longlong" | |
5400 | if test "$no_cache" != 1; then | |
5401 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5402 | fi | |
5403 | ||
5404 | if test "$wxUSE_LONGLONG" = yes; then | |
5405 | echo "$as_me:$LINENO: result: yes" >&5 | |
5406 | echo "${ECHO_T}yes" >&6 | |
5407 | else | |
5408 | echo "$as_me:$LINENO: result: no" >&5 | |
5409 | echo "${ECHO_T}no" >&6 | |
5410 | fi | |
5411 | ||
5412 | ||
5413 | enablestring= | |
5414 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5415 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5416 | no_cache=0 | |
5417 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5418 | if test "${enable_mimetype+set}" = set; then | |
5419 | enableval="$enable_mimetype" | |
5420 | ||
5421 | if test "$enableval" = yes; then | |
5422 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5423 | else | |
5424 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5425 | fi | |
5426 | ||
5427 | else | |
5428 | ||
5429 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5430 | if test "x$LINE" != x ; then | |
5431 | eval "DEFAULT_$LINE" | |
5432 | else | |
5433 | no_cache=1 | |
5434 | fi | |
5435 | ||
5436 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5437 | ||
5438 | fi; | |
5439 | ||
5440 | eval "$ac_cv_use_mimetype" | |
5441 | if test "$no_cache" != 1; then | |
5442 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5443 | fi | |
5444 | ||
5445 | if test "$wxUSE_MIMETYPE" = yes; then | |
5446 | echo "$as_me:$LINENO: result: yes" >&5 | |
5447 | echo "${ECHO_T}yes" >&6 | |
5448 | else | |
5449 | echo "$as_me:$LINENO: result: no" >&5 | |
5450 | echo "${ECHO_T}no" >&6 | |
5451 | fi | |
5452 | ||
5453 | ||
5454 | enablestring= | |
5455 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5456 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5457 | no_cache=0 | |
5458 | # Check whether --enable-mslu or --disable-mslu was given. | |
5459 | if test "${enable_mslu+set}" = set; then | |
5460 | enableval="$enable_mslu" | |
5461 | ||
5462 | if test "$enableval" = yes; then | |
5463 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5464 | else | |
5465 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5466 | fi | |
5467 | ||
5468 | else | |
5469 | ||
5470 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5471 | if test "x$LINE" != x ; then | |
5472 | eval "DEFAULT_$LINE" | |
5473 | else | |
5474 | no_cache=1 | |
5475 | fi | |
5476 | ||
5477 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5478 | ||
5479 | fi; | |
5480 | ||
5481 | eval "$ac_cv_use_mslu" | |
5482 | if test "$no_cache" != 1; then | |
5483 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5484 | fi | |
5485 | ||
5486 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5487 | echo "$as_me:$LINENO: result: yes" >&5 | |
5488 | echo "${ECHO_T}yes" >&6 | |
5489 | else | |
5490 | echo "$as_me:$LINENO: result: no" >&5 | |
5491 | echo "${ECHO_T}no" >&6 | |
5492 | fi | |
5493 | ||
5494 | ||
5495 | enablestring= | |
5496 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5497 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5498 | no_cache=0 | |
5499 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5500 | if test "${enable_snglinst+set}" = set; then | |
5501 | enableval="$enable_snglinst" | |
5502 | ||
5503 | if test "$enableval" = yes; then | |
5504 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5505 | else | |
5506 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5507 | fi | |
5508 | ||
5509 | else | |
5510 | ||
5511 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5512 | if test "x$LINE" != x ; then | |
5513 | eval "DEFAULT_$LINE" | |
5514 | else | |
5515 | no_cache=1 | |
5516 | fi | |
5517 | ||
5518 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5519 | ||
5520 | fi; | |
5521 | ||
5522 | eval "$ac_cv_use_snglinst" | |
5523 | if test "$no_cache" != 1; then | |
5524 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5525 | fi | |
5526 | ||
5527 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5528 | echo "$as_me:$LINENO: result: yes" >&5 | |
5529 | echo "${ECHO_T}yes" >&6 | |
5530 | else | |
5531 | echo "$as_me:$LINENO: result: no" >&5 | |
5532 | echo "${ECHO_T}no" >&6 | |
5533 | fi | |
5534 | ||
5535 | ||
5536 | enablestring= | |
5537 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5538 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5539 | no_cache=0 | |
5540 | # Check whether --enable-streams or --disable-streams was given. | |
5541 | if test "${enable_streams+set}" = set; then | |
5542 | enableval="$enable_streams" | |
5543 | ||
5544 | if test "$enableval" = yes; then | |
5545 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5546 | else | |
5547 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5548 | fi | |
5549 | ||
5550 | else | |
5551 | ||
5552 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5553 | if test "x$LINE" != x ; then | |
5554 | eval "DEFAULT_$LINE" | |
5555 | else | |
5556 | no_cache=1 | |
5557 | fi | |
5558 | ||
5559 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5560 | ||
5561 | fi; | |
5562 | ||
5563 | eval "$ac_cv_use_streams" | |
5564 | if test "$no_cache" != 1; then | |
5565 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5566 | fi | |
5567 | ||
5568 | if test "$wxUSE_STREAMS" = yes; then | |
5569 | echo "$as_me:$LINENO: result: yes" >&5 | |
5570 | echo "${ECHO_T}yes" >&6 | |
5571 | else | |
5572 | echo "$as_me:$LINENO: result: no" >&5 | |
5573 | echo "${ECHO_T}no" >&6 | |
5574 | fi | |
5575 | ||
5576 | ||
5577 | enablestring= | |
5578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5579 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5580 | no_cache=0 | |
5581 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5582 | if test "${enable_std_iostreams+set}" = set; then | |
5583 | enableval="$enable_std_iostreams" | |
5584 | ||
5585 | if test "$enableval" = yes; then | |
5586 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5587 | else | |
5588 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5589 | fi | |
5590 | ||
5591 | else | |
5592 | ||
5593 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5594 | if test "x$LINE" != x ; then | |
5595 | eval "DEFAULT_$LINE" | |
5596 | else | |
5597 | no_cache=1 | |
5598 | fi | |
5599 | ||
5600 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5601 | ||
5602 | fi; | |
5603 | ||
5604 | eval "$ac_cv_use_std_iostreams" | |
5605 | if test "$no_cache" != 1; then | |
5606 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5607 | fi | |
5608 | ||
5609 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5610 | echo "$as_me:$LINENO: result: yes" >&5 | |
5611 | echo "${ECHO_T}yes" >&6 | |
5612 | else | |
5613 | echo "$as_me:$LINENO: result: no" >&5 | |
5614 | echo "${ECHO_T}no" >&6 | |
5615 | fi | |
5616 | ||
5617 | ||
5618 | enablestring= | |
5619 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5620 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5621 | no_cache=0 | |
5622 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5623 | if test "${enable_stopwatch+set}" = set; then | |
5624 | enableval="$enable_stopwatch" | |
5625 | ||
5626 | if test "$enableval" = yes; then | |
5627 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5628 | else | |
5629 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5630 | fi | |
5631 | ||
5632 | else | |
5633 | ||
5634 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5635 | if test "x$LINE" != x ; then | |
5636 | eval "DEFAULT_$LINE" | |
5637 | else | |
5638 | no_cache=1 | |
5639 | fi | |
5640 | ||
5641 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5642 | ||
5643 | fi; | |
5644 | ||
5645 | eval "$ac_cv_use_stopwatch" | |
5646 | if test "$no_cache" != 1; then | |
5647 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5648 | fi | |
5649 | ||
5650 | if test "$wxUSE_STOPWATCH" = yes; then | |
5651 | echo "$as_me:$LINENO: result: yes" >&5 | |
5652 | echo "${ECHO_T}yes" >&6 | |
5653 | else | |
5654 | echo "$as_me:$LINENO: result: no" >&5 | |
5655 | echo "${ECHO_T}no" >&6 | |
5656 | fi | |
5657 | ||
5658 | ||
5659 | enablestring= | |
5660 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5661 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5662 | no_cache=0 | |
5663 | # Check whether --enable-system_options or --disable-system_options was given. | |
5664 | if test "${enable_system_options+set}" = set; then | |
5665 | enableval="$enable_system_options" | |
5666 | ||
5667 | if test "$enableval" = yes; then | |
5668 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5669 | else | |
5670 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5671 | fi | |
5672 | ||
5673 | else | |
5674 | ||
5675 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5676 | if test "x$LINE" != x ; then | |
5677 | eval "DEFAULT_$LINE" | |
5678 | else | |
5679 | no_cache=1 | |
5680 | fi | |
5681 | ||
5682 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5683 | ||
5684 | fi; | |
5685 | ||
5686 | eval "$ac_cv_use_system_options" | |
5687 | if test "$no_cache" != 1; then | |
5688 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5689 | fi | |
5690 | ||
5691 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5692 | echo "$as_me:$LINENO: result: yes" >&5 | |
5693 | echo "${ECHO_T}yes" >&6 | |
5694 | else | |
5695 | echo "$as_me:$LINENO: result: no" >&5 | |
5696 | echo "${ECHO_T}no" >&6 | |
5697 | fi | |
5698 | ||
5699 | ||
5700 | enablestring= | |
5701 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5702 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5703 | no_cache=0 | |
5704 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5705 | if test "${enable_textbuf+set}" = set; then | |
5706 | enableval="$enable_textbuf" | |
5707 | ||
5708 | if test "$enableval" = yes; then | |
5709 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5710 | else | |
5711 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5712 | fi | |
5713 | ||
5714 | else | |
5715 | ||
5716 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5717 | if test "x$LINE" != x ; then | |
5718 | eval "DEFAULT_$LINE" | |
5719 | else | |
5720 | no_cache=1 | |
5721 | fi | |
5722 | ||
5723 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5724 | ||
5725 | fi; | |
5726 | ||
5727 | eval "$ac_cv_use_textbuf" | |
5728 | if test "$no_cache" != 1; then | |
5729 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5730 | fi | |
5731 | ||
5732 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5733 | echo "$as_me:$LINENO: result: yes" >&5 | |
5734 | echo "${ECHO_T}yes" >&6 | |
5735 | else | |
5736 | echo "$as_me:$LINENO: result: no" >&5 | |
5737 | echo "${ECHO_T}no" >&6 | |
5738 | fi | |
5739 | ||
5740 | ||
5741 | enablestring= | |
5742 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5743 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5744 | no_cache=0 | |
5745 | # Check whether --enable-textfile or --disable-textfile was given. | |
5746 | if test "${enable_textfile+set}" = set; then | |
5747 | enableval="$enable_textfile" | |
5748 | ||
5749 | if test "$enableval" = yes; then | |
5750 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5751 | else | |
5752 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5753 | fi | |
5754 | ||
5755 | else | |
5756 | ||
5757 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5758 | if test "x$LINE" != x ; then | |
5759 | eval "DEFAULT_$LINE" | |
5760 | else | |
5761 | no_cache=1 | |
5762 | fi | |
5763 | ||
5764 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5765 | ||
5766 | fi; | |
5767 | ||
5768 | eval "$ac_cv_use_textfile" | |
5769 | if test "$no_cache" != 1; then | |
5770 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5771 | fi | |
5772 | ||
5773 | if test "$wxUSE_TEXTFILE" = yes; then | |
5774 | echo "$as_me:$LINENO: result: yes" >&5 | |
5775 | echo "${ECHO_T}yes" >&6 | |
5776 | else | |
5777 | echo "$as_me:$LINENO: result: no" >&5 | |
5778 | echo "${ECHO_T}no" >&6 | |
5779 | fi | |
5780 | ||
5781 | ||
5782 | enablestring= | |
5783 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5784 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5785 | no_cache=0 | |
5786 | # Check whether --enable-timer or --disable-timer was given. | |
5787 | if test "${enable_timer+set}" = set; then | |
5788 | enableval="$enable_timer" | |
5789 | ||
5790 | if test "$enableval" = yes; then | |
5791 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5792 | else | |
5793 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5794 | fi | |
5795 | ||
5796 | else | |
5797 | ||
5798 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5799 | if test "x$LINE" != x ; then | |
5800 | eval "DEFAULT_$LINE" | |
5801 | else | |
5802 | no_cache=1 | |
5803 | fi | |
5804 | ||
5805 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5806 | ||
5807 | fi; | |
5808 | ||
5809 | eval "$ac_cv_use_timer" | |
5810 | if test "$no_cache" != 1; then | |
5811 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5812 | fi | |
5813 | ||
5814 | if test "$wxUSE_TIMER" = yes; then | |
5815 | echo "$as_me:$LINENO: result: yes" >&5 | |
5816 | echo "${ECHO_T}yes" >&6 | |
5817 | else | |
5818 | echo "$as_me:$LINENO: result: no" >&5 | |
5819 | echo "${ECHO_T}no" >&6 | |
5820 | fi | |
5821 | ||
5822 | ||
5823 | enablestring= | |
5824 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5825 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5826 | no_cache=0 | |
5827 | # Check whether --enable-unicode or --disable-unicode was given. | |
5828 | if test "${enable_unicode+set}" = set; then | |
5829 | enableval="$enable_unicode" | |
5830 | ||
5831 | if test "$enableval" = yes; then | |
5832 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5833 | else | |
5834 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5835 | fi | |
5836 | ||
5837 | else | |
5838 | ||
5839 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5840 | if test "x$LINE" != x ; then | |
5841 | eval "DEFAULT_$LINE" | |
5842 | else | |
5843 | no_cache=1 | |
5844 | fi | |
5845 | ||
5846 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5847 | ||
5848 | fi; | |
5849 | ||
5850 | eval "$ac_cv_use_unicode" | |
5851 | if test "$no_cache" != 1; then | |
5852 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5853 | fi | |
5854 | ||
5855 | if test "$wxUSE_UNICODE" = yes; then | |
5856 | echo "$as_me:$LINENO: result: yes" >&5 | |
5857 | echo "${ECHO_T}yes" >&6 | |
5858 | else | |
5859 | echo "$as_me:$LINENO: result: no" >&5 | |
5860 | echo "${ECHO_T}no" >&6 | |
5861 | fi | |
5862 | ||
5863 | ||
5864 | enablestring= | |
5865 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5866 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5867 | no_cache=0 | |
5868 | # Check whether --enable-sound or --disable-sound was given. | |
5869 | if test "${enable_sound+set}" = set; then | |
5870 | enableval="$enable_sound" | |
5871 | ||
5872 | if test "$enableval" = yes; then | |
5873 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5874 | else | |
5875 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5876 | fi | |
5877 | ||
5878 | else | |
5879 | ||
5880 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5881 | if test "x$LINE" != x ; then | |
5882 | eval "DEFAULT_$LINE" | |
5883 | else | |
5884 | no_cache=1 | |
5885 | fi | |
5886 | ||
5887 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5888 | ||
5889 | fi; | |
5890 | ||
5891 | eval "$ac_cv_use_sound" | |
5892 | if test "$no_cache" != 1; then | |
5893 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5894 | fi | |
5895 | ||
5896 | if test "$wxUSE_SOUND" = yes; then | |
5897 | echo "$as_me:$LINENO: result: yes" >&5 | |
5898 | echo "${ECHO_T}yes" >&6 | |
5899 | else | |
5900 | echo "$as_me:$LINENO: result: no" >&5 | |
5901 | echo "${ECHO_T}no" >&6 | |
5902 | fi | |
5903 | ||
5904 | ||
3b57de8b RL |
5905 | enablestring= |
5906 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
5907 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
5908 | no_cache=0 | |
5909 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
5910 | if test "${enable_mediactrl+set}" = set; then | |
5911 | enableval="$enable_mediactrl" | |
5912 | ||
5913 | if test "$enableval" = yes; then | |
5914 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
5915 | else | |
5916 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
5917 | fi | |
5918 | ||
5919 | else | |
5920 | ||
5921 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
5922 | if test "x$LINE" != x ; then | |
5923 | eval "DEFAULT_$LINE" | |
5924 | else | |
5925 | no_cache=1 | |
5926 | fi | |
5927 | ||
5928 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
5929 | ||
5930 | fi; | |
5931 | ||
5932 | eval "$ac_cv_use_mediactrl" | |
5933 | if test "$no_cache" != 1; then | |
5934 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
5935 | fi | |
5936 | ||
5937 | if test "$wxUSE_MEDIACTRL" = yes; then | |
5938 | echo "$as_me:$LINENO: result: yes" >&5 | |
5939 | echo "${ECHO_T}yes" >&6 | |
5940 | else | |
5941 | echo "$as_me:$LINENO: result: no" >&5 | |
5942 | echo "${ECHO_T}no" >&6 | |
5943 | fi | |
5944 | ||
5945 | ||
a848cd7e SC |
5946 | enablestring= |
5947 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5948 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5949 | no_cache=0 | |
5950 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5951 | if test "${enable_wxprintfv+set}" = set; then | |
5952 | enableval="$enable_wxprintfv" | |
5953 | ||
5954 | if test "$enableval" = yes; then | |
5955 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5956 | else | |
5957 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5958 | fi | |
5959 | ||
5960 | else | |
5961 | ||
5962 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5963 | if test "x$LINE" != x ; then | |
5964 | eval "DEFAULT_$LINE" | |
5965 | else | |
5966 | no_cache=1 | |
5967 | fi | |
5968 | ||
5969 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5970 | ||
5971 | fi; | |
5972 | ||
5973 | eval "$ac_cv_use_wxprintfv" | |
5974 | if test "$no_cache" != 1; then | |
5975 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5976 | fi | |
5977 | ||
5978 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5979 | echo "$as_me:$LINENO: result: yes" >&5 | |
5980 | echo "${ECHO_T}yes" >&6 | |
5981 | else | |
5982 | echo "$as_me:$LINENO: result: no" >&5 | |
5983 | echo "${ECHO_T}no" >&6 | |
5984 | fi | |
5985 | ||
5986 | ||
5987 | enablestring= | |
5988 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5989 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5990 | no_cache=0 | |
5991 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5992 | if test "${enable_zipstream+set}" = set; then | |
5993 | enableval="$enable_zipstream" | |
5994 | ||
5995 | if test "$enableval" = yes; then | |
5996 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5997 | else | |
5998 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5999 | fi | |
6000 | ||
6001 | else | |
6002 | ||
6003 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6004 | if test "x$LINE" != x ; then | |
6005 | eval "DEFAULT_$LINE" | |
6006 | else | |
6007 | no_cache=1 | |
6008 | fi | |
6009 | ||
6010 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6011 | ||
6012 | fi; | |
6013 | ||
6014 | eval "$ac_cv_use_zipstream" | |
6015 | if test "$no_cache" != 1; then | |
6016 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6017 | fi | |
6018 | ||
6019 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6020 | echo "$as_me:$LINENO: result: yes" >&5 | |
6021 | echo "${ECHO_T}yes" >&6 | |
6022 | else | |
6023 | echo "$as_me:$LINENO: result: no" >&5 | |
6024 | echo "${ECHO_T}no" >&6 | |
6025 | fi | |
6026 | ||
6027 | ||
a848cd7e SC |
6028 | |
6029 | enablestring= | |
6030 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6031 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6032 | no_cache=0 | |
6033 | # Check whether --enable-url or --disable-url was given. | |
6034 | if test "${enable_url+set}" = set; then | |
6035 | enableval="$enable_url" | |
6036 | ||
6037 | if test "$enableval" = yes; then | |
6038 | ac_cv_use_url='wxUSE_URL=yes' | |
6039 | else | |
6040 | ac_cv_use_url='wxUSE_URL=no' | |
6041 | fi | |
6042 | ||
6043 | else | |
6044 | ||
6045 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6046 | if test "x$LINE" != x ; then | |
6047 | eval "DEFAULT_$LINE" | |
6048 | else | |
6049 | no_cache=1 | |
6050 | fi | |
6051 | ||
6052 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6053 | ||
6054 | fi; | |
6055 | ||
6056 | eval "$ac_cv_use_url" | |
6057 | if test "$no_cache" != 1; then | |
6058 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6059 | fi | |
6060 | ||
6061 | if test "$wxUSE_URL" = yes; then | |
6062 | echo "$as_me:$LINENO: result: yes" >&5 | |
6063 | echo "${ECHO_T}yes" >&6 | |
6064 | else | |
6065 | echo "$as_me:$LINENO: result: no" >&5 | |
6066 | echo "${ECHO_T}no" >&6 | |
6067 | fi | |
6068 | ||
6069 | ||
6070 | enablestring= | |
6071 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6072 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6073 | no_cache=0 | |
6074 | # Check whether --enable-protocol or --disable-protocol was given. | |
6075 | if test "${enable_protocol+set}" = set; then | |
6076 | enableval="$enable_protocol" | |
6077 | ||
6078 | if test "$enableval" = yes; then | |
6079 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6080 | else | |
6081 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6082 | fi | |
6083 | ||
6084 | else | |
6085 | ||
6086 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6087 | if test "x$LINE" != x ; then | |
6088 | eval "DEFAULT_$LINE" | |
6089 | else | |
6090 | no_cache=1 | |
6091 | fi | |
6092 | ||
6093 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6094 | ||
6095 | fi; | |
6096 | ||
6097 | eval "$ac_cv_use_protocol" | |
6098 | if test "$no_cache" != 1; then | |
6099 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6100 | fi | |
6101 | ||
6102 | if test "$wxUSE_PROTOCOL" = yes; then | |
6103 | echo "$as_me:$LINENO: result: yes" >&5 | |
6104 | echo "${ECHO_T}yes" >&6 | |
6105 | else | |
6106 | echo "$as_me:$LINENO: result: no" >&5 | |
6107 | echo "${ECHO_T}no" >&6 | |
6108 | fi | |
6109 | ||
6110 | ||
6111 | enablestring= | |
6112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6113 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6114 | no_cache=0 | |
6115 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6116 | if test "${enable_protocol_http+set}" = set; then | |
6117 | enableval="$enable_protocol_http" | |
6118 | ||
6119 | if test "$enableval" = yes; then | |
6120 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6121 | else | |
6122 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6123 | fi | |
6124 | ||
6125 | else | |
6126 | ||
6127 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6128 | if test "x$LINE" != x ; then | |
6129 | eval "DEFAULT_$LINE" | |
6130 | else | |
6131 | no_cache=1 | |
6132 | fi | |
6133 | ||
6134 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6135 | ||
6136 | fi; | |
6137 | ||
6138 | eval "$ac_cv_use_protocol_http" | |
6139 | if test "$no_cache" != 1; then | |
6140 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6141 | fi | |
6142 | ||
6143 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6144 | echo "$as_me:$LINENO: result: yes" >&5 | |
6145 | echo "${ECHO_T}yes" >&6 | |
6146 | else | |
6147 | echo "$as_me:$LINENO: result: no" >&5 | |
6148 | echo "${ECHO_T}no" >&6 | |
6149 | fi | |
6150 | ||
6151 | ||
6152 | enablestring= | |
6153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6154 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6155 | no_cache=0 | |
6156 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6157 | if test "${enable_protocol_ftp+set}" = set; then | |
6158 | enableval="$enable_protocol_ftp" | |
6159 | ||
6160 | if test "$enableval" = yes; then | |
6161 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6162 | else | |
6163 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6164 | fi | |
6165 | ||
6166 | else | |
6167 | ||
6168 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6169 | if test "x$LINE" != x ; then | |
6170 | eval "DEFAULT_$LINE" | |
6171 | else | |
6172 | no_cache=1 | |
6173 | fi | |
6174 | ||
6175 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6176 | ||
6177 | fi; | |
6178 | ||
6179 | eval "$ac_cv_use_protocol_ftp" | |
6180 | if test "$no_cache" != 1; then | |
6181 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6182 | fi | |
6183 | ||
6184 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6185 | echo "$as_me:$LINENO: result: yes" >&5 | |
6186 | echo "${ECHO_T}yes" >&6 | |
6187 | else | |
6188 | echo "$as_me:$LINENO: result: no" >&5 | |
6189 | echo "${ECHO_T}no" >&6 | |
6190 | fi | |
6191 | ||
6192 | ||
6193 | enablestring= | |
6194 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6195 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6196 | no_cache=0 | |
6197 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6198 | if test "${enable_protocol_file+set}" = set; then | |
6199 | enableval="$enable_protocol_file" | |
6200 | ||
6201 | if test "$enableval" = yes; then | |
6202 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6203 | else | |
6204 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6205 | fi | |
6206 | ||
6207 | else | |
6208 | ||
6209 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6210 | if test "x$LINE" != x ; then | |
6211 | eval "DEFAULT_$LINE" | |
6212 | else | |
6213 | no_cache=1 | |
6214 | fi | |
6215 | ||
6216 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6217 | ||
6218 | fi; | |
6219 | ||
6220 | eval "$ac_cv_use_protocol_file" | |
6221 | if test "$no_cache" != 1; then | |
6222 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6223 | fi | |
6224 | ||
6225 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6226 | echo "$as_me:$LINENO: result: yes" >&5 | |
6227 | echo "${ECHO_T}yes" >&6 | |
6228 | else | |
6229 | echo "$as_me:$LINENO: result: no" >&5 | |
6230 | echo "${ECHO_T}no" >&6 | |
6231 | fi | |
6232 | ||
6233 | ||
6234 | ||
6235 | ||
6236 | ||
6237 | enablestring= | |
6238 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6239 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6240 | no_cache=0 | |
6241 | # Check whether --enable-threads or --disable-threads was given. | |
6242 | if test "${enable_threads+set}" = set; then | |
6243 | enableval="$enable_threads" | |
6244 | ||
6245 | if test "$enableval" = yes; then | |
6246 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6247 | else | |
6248 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6249 | fi | |
6250 | ||
6251 | else | |
6252 | ||
6253 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6254 | if test "x$LINE" != x ; then | |
6255 | eval "DEFAULT_$LINE" | |
6256 | else | |
6257 | no_cache=1 | |
6258 | fi | |
6259 | ||
6260 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6261 | ||
6262 | fi; | |
6263 | ||
6264 | eval "$ac_cv_use_threads" | |
6265 | if test "$no_cache" != 1; then | |
6266 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6267 | fi | |
6268 | ||
6269 | if test "$wxUSE_THREADS" = yes; then | |
6270 | echo "$as_me:$LINENO: result: yes" >&5 | |
6271 | echo "${ECHO_T}yes" >&6 | |
6272 | else | |
6273 | echo "$as_me:$LINENO: result: no" >&5 | |
6274 | echo "${ECHO_T}no" >&6 | |
6275 | fi | |
6276 | ||
6277 | ||
6278 | if test "$wxUSE_GUI" = "yes"; then | |
6279 | ||
6280 | ||
6281 | ||
6282 | enablestring= | |
6283 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6284 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6285 | no_cache=0 | |
6286 | # Check whether --enable-docview or --disable-docview was given. | |
6287 | if test "${enable_docview+set}" = set; then | |
6288 | enableval="$enable_docview" | |
6289 | ||
6290 | if test "$enableval" = yes; then | |
6291 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6292 | else | |
6293 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6294 | fi | |
6295 | ||
6296 | else | |
6297 | ||
6298 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6299 | if test "x$LINE" != x ; then | |
6300 | eval "DEFAULT_$LINE" | |
6301 | else | |
6302 | no_cache=1 | |
6303 | fi | |
6304 | ||
6305 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6306 | ||
6307 | fi; | |
6308 | ||
6309 | eval "$ac_cv_use_docview" | |
6310 | if test "$no_cache" != 1; then | |
6311 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6312 | fi | |
6313 | ||
6314 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6315 | echo "$as_me:$LINENO: result: yes" >&5 | |
6316 | echo "${ECHO_T}yes" >&6 | |
6317 | else | |
6318 | echo "$as_me:$LINENO: result: no" >&5 | |
6319 | echo "${ECHO_T}no" >&6 | |
6320 | fi | |
6321 | ||
6322 | ||
6323 | enablestring= | |
6324 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6325 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6326 | no_cache=0 | |
6327 | # Check whether --enable-help or --disable-help was given. | |
6328 | if test "${enable_help+set}" = set; then | |
6329 | enableval="$enable_help" | |
6330 | ||
6331 | if test "$enableval" = yes; then | |
6332 | ac_cv_use_help='wxUSE_HELP=yes' | |
6333 | else | |
6334 | ac_cv_use_help='wxUSE_HELP=no' | |
6335 | fi | |
6336 | ||
6337 | else | |
6338 | ||
6339 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6340 | if test "x$LINE" != x ; then | |
6341 | eval "DEFAULT_$LINE" | |
6342 | else | |
6343 | no_cache=1 | |
6344 | fi | |
6345 | ||
6346 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6347 | ||
6348 | fi; | |
6349 | ||
6350 | eval "$ac_cv_use_help" | |
6351 | if test "$no_cache" != 1; then | |
6352 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6353 | fi | |
6354 | ||
6355 | if test "$wxUSE_HELP" = yes; then | |
6356 | echo "$as_me:$LINENO: result: yes" >&5 | |
6357 | echo "${ECHO_T}yes" >&6 | |
6358 | else | |
6359 | echo "$as_me:$LINENO: result: no" >&5 | |
6360 | echo "${ECHO_T}no" >&6 | |
6361 | fi | |
6362 | ||
6363 | ||
6364 | enablestring= | |
6365 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6366 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6367 | no_cache=0 | |
6368 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6369 | if test "${enable_mshtmlhelp+set}" = set; then | |
6370 | enableval="$enable_mshtmlhelp" | |
6371 | ||
6372 | if test "$enableval" = yes; then | |
6373 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6374 | else | |
6375 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6376 | fi | |
6377 | ||
6378 | else | |
6379 | ||
6380 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6381 | if test "x$LINE" != x ; then | |
6382 | eval "DEFAULT_$LINE" | |
6383 | else | |
6384 | no_cache=1 | |
6385 | fi | |
6386 | ||
6387 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6388 | ||
6389 | fi; | |
6390 | ||
6391 | eval "$ac_cv_use_mshtmlhelp" | |
6392 | if test "$no_cache" != 1; then | |
6393 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6394 | fi | |
6395 | ||
6396 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6397 | echo "$as_me:$LINENO: result: yes" >&5 | |
6398 | echo "${ECHO_T}yes" >&6 | |
6399 | else | |
6400 | echo "$as_me:$LINENO: result: no" >&5 | |
6401 | echo "${ECHO_T}no" >&6 | |
6402 | fi | |
6403 | ||
6404 | ||
6405 | enablestring= | |
6406 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6407 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6408 | no_cache=0 | |
6409 | # Check whether --enable-html or --disable-html was given. | |
6410 | if test "${enable_html+set}" = set; then | |
6411 | enableval="$enable_html" | |
6412 | ||
6413 | if test "$enableval" = yes; then | |
6414 | ac_cv_use_html='wxUSE_HTML=yes' | |
6415 | else | |
6416 | ac_cv_use_html='wxUSE_HTML=no' | |
6417 | fi | |
6418 | ||
6419 | else | |
6420 | ||
6421 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6422 | if test "x$LINE" != x ; then | |
6423 | eval "DEFAULT_$LINE" | |
6424 | else | |
6425 | no_cache=1 | |
6426 | fi | |
6427 | ||
6428 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6429 | ||
6430 | fi; | |
6431 | ||
6432 | eval "$ac_cv_use_html" | |
6433 | if test "$no_cache" != 1; then | |
6434 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6435 | fi | |
6436 | ||
6437 | if test "$wxUSE_HTML" = yes; then | |
6438 | echo "$as_me:$LINENO: result: yes" >&5 | |
6439 | echo "${ECHO_T}yes" >&6 | |
6440 | else | |
6441 | echo "$as_me:$LINENO: result: no" >&5 | |
6442 | echo "${ECHO_T}no" >&6 | |
6443 | fi | |
6444 | ||
6445 | ||
6446 | enablestring= | |
6447 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6448 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6449 | no_cache=0 | |
6450 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6451 | if test "${enable_htmlhelp+set}" = set; then | |
6452 | enableval="$enable_htmlhelp" | |
6453 | ||
6454 | if test "$enableval" = yes; then | |
6455 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6456 | else | |
6457 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6458 | fi | |
6459 | ||
6460 | else | |
6461 | ||
6462 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6463 | if test "x$LINE" != x ; then | |
6464 | eval "DEFAULT_$LINE" | |
6465 | else | |
6466 | no_cache=1 | |
6467 | fi | |
6468 | ||
6469 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6470 | ||
6471 | fi; | |
6472 | ||
6473 | eval "$ac_cv_use_htmlhelp" | |
6474 | if test "$no_cache" != 1; then | |
6475 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6476 | fi | |
6477 | ||
6478 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6479 | echo "$as_me:$LINENO: result: yes" >&5 | |
6480 | echo "${ECHO_T}yes" >&6 | |
6481 | else | |
6482 | echo "$as_me:$LINENO: result: no" >&5 | |
6483 | echo "${ECHO_T}no" >&6 | |
6484 | fi | |
6485 | ||
6486 | ||
9a8f0513 VS |
6487 | enablestring= |
6488 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6489 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6490 | no_cache=0 | |
6491 | # Check whether --enable-xrc or --disable-xrc was given. | |
6492 | if test "${enable_xrc+set}" = set; then | |
6493 | enableval="$enable_xrc" | |
6494 | ||
6495 | if test "$enableval" = yes; then | |
6496 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6497 | else | |
6498 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6499 | fi | |
6500 | ||
6501 | else | |
6502 | ||
6503 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6504 | if test "x$LINE" != x ; then | |
6505 | eval "DEFAULT_$LINE" | |
6506 | else | |
6507 | no_cache=1 | |
6508 | fi | |
6509 | ||
6510 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6511 | ||
6512 | fi; | |
6513 | ||
6514 | eval "$ac_cv_use_xrc" | |
6515 | if test "$no_cache" != 1; then | |
6516 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6517 | fi | |
6518 | ||
6519 | if test "$wxUSE_XRC" = yes; then | |
6520 | echo "$as_me:$LINENO: result: yes" >&5 | |
6521 | echo "${ECHO_T}yes" >&6 | |
6522 | else | |
6523 | echo "$as_me:$LINENO: result: no" >&5 | |
6524 | echo "${ECHO_T}no" >&6 | |
6525 | fi | |
6526 | ||
6527 | ||
a848cd7e SC |
6528 | enablestring= |
6529 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6530 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6531 | no_cache=0 | |
6532 | # Check whether --enable-constraints or --disable-constraints was given. | |
6533 | if test "${enable_constraints+set}" = set; then | |
6534 | enableval="$enable_constraints" | |
6535 | ||
6536 | if test "$enableval" = yes; then | |
6537 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6538 | else | |
6539 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6540 | fi | |
6541 | ||
6542 | else | |
6543 | ||
6544 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6545 | if test "x$LINE" != x ; then | |
6546 | eval "DEFAULT_$LINE" | |
6547 | else | |
6548 | no_cache=1 | |
6549 | fi | |
6550 | ||
6551 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6552 | ||
6553 | fi; | |
6554 | ||
6555 | eval "$ac_cv_use_constraints" | |
6556 | if test "$no_cache" != 1; then | |
6557 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6558 | fi | |
6559 | ||
6560 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6561 | echo "$as_me:$LINENO: result: yes" >&5 | |
6562 | echo "${ECHO_T}yes" >&6 | |
6563 | else | |
6564 | echo "$as_me:$LINENO: result: no" >&5 | |
6565 | echo "${ECHO_T}no" >&6 | |
6566 | fi | |
6567 | ||
6568 | ||
6569 | enablestring= | |
6570 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6571 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6572 | no_cache=0 | |
6573 | # Check whether --enable-printarch or --disable-printarch was given. | |
6574 | if test "${enable_printarch+set}" = set; then | |
6575 | enableval="$enable_printarch" | |
6576 | ||
6577 | if test "$enableval" = yes; then | |
6578 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6579 | else | |
6580 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6581 | fi | |
6582 | ||
6583 | else | |
6584 | ||
6585 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6586 | if test "x$LINE" != x ; then | |
6587 | eval "DEFAULT_$LINE" | |
6588 | else | |
6589 | no_cache=1 | |
6590 | fi | |
6591 | ||
6592 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6593 | ||
6594 | fi; | |
6595 | ||
6596 | eval "$ac_cv_use_printarch" | |
6597 | if test "$no_cache" != 1; then | |
6598 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6599 | fi | |
6600 | ||
6601 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6602 | echo "$as_me:$LINENO: result: yes" >&5 | |
6603 | echo "${ECHO_T}yes" >&6 | |
6604 | else | |
6605 | echo "$as_me:$LINENO: result: no" >&5 | |
6606 | echo "${ECHO_T}no" >&6 | |
6607 | fi | |
6608 | ||
6609 | ||
6610 | enablestring= | |
6611 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6612 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6613 | no_cache=0 | |
6614 | # Check whether --enable-mdi or --disable-mdi was given. | |
6615 | if test "${enable_mdi+set}" = set; then | |
6616 | enableval="$enable_mdi" | |
6617 | ||
6618 | if test "$enableval" = yes; then | |
8a7b1113 | 6619 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6620 | else |
8a7b1113 | 6621 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6622 | fi |
6623 | ||
6624 | else | |
6625 | ||
8a7b1113 | 6626 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6627 | if test "x$LINE" != x ; then |
6628 | eval "DEFAULT_$LINE" | |
6629 | else | |
6630 | no_cache=1 | |
6631 | fi | |
6632 | ||
8a7b1113 | 6633 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6634 | |
6635 | fi; | |
6636 | ||
6637 | eval "$ac_cv_use_mdi" | |
6638 | if test "$no_cache" != 1; then | |
6639 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6640 | fi | |
6641 | ||
8a7b1113 VZ |
6642 | if test "$wxUSE_MDI" = yes; then |
6643 | echo "$as_me:$LINENO: result: yes" >&5 | |
6644 | echo "${ECHO_T}yes" >&6 | |
6645 | else | |
6646 | echo "$as_me:$LINENO: result: no" >&5 | |
6647 | echo "${ECHO_T}no" >&6 | |
6648 | fi | |
6649 | ||
6650 | ||
6651 | enablestring= | |
6652 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6653 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6654 | no_cache=0 | |
6655 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6656 | if test "${enable_mdidoc+set}" = set; then | |
6657 | enableval="$enable_mdidoc" | |
6658 | ||
6659 | if test "$enableval" = yes; then | |
6660 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6661 | else | |
6662 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6663 | fi | |
6664 | ||
6665 | else | |
6666 | ||
6667 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6668 | if test "x$LINE" != x ; then | |
6669 | eval "DEFAULT_$LINE" | |
6670 | else | |
6671 | no_cache=1 | |
6672 | fi | |
6673 | ||
6674 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6675 | ||
6676 | fi; | |
6677 | ||
6678 | eval "$ac_cv_use_mdidoc" | |
6679 | if test "$no_cache" != 1; then | |
6680 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6681 | fi | |
6682 | ||
a848cd7e SC |
6683 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6684 | echo "$as_me:$LINENO: result: yes" >&5 | |
6685 | echo "${ECHO_T}yes" >&6 | |
6686 | else | |
6687 | echo "$as_me:$LINENO: result: no" >&5 | |
6688 | echo "${ECHO_T}no" >&6 | |
6689 | fi | |
6690 | ||
6691 | ||
6692 | enablestring= | |
6693 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6694 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6695 | no_cache=0 | |
6696 | # Check whether --enable-loggui or --disable-loggui was given. | |
6697 | if test "${enable_loggui+set}" = set; then | |
6698 | enableval="$enable_loggui" | |
6699 | ||
6700 | if test "$enableval" = yes; then | |
6701 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6702 | else | |
6703 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6704 | fi | |
6705 | ||
6706 | else | |
6707 | ||
6708 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6709 | if test "x$LINE" != x ; then | |
6710 | eval "DEFAULT_$LINE" | |
6711 | else | |
6712 | no_cache=1 | |
6713 | fi | |
6714 | ||
6715 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6716 | ||
6717 | fi; | |
6718 | ||
6719 | eval "$ac_cv_use_loggui" | |
6720 | if test "$no_cache" != 1; then | |
6721 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6722 | fi | |
6723 | ||
6724 | if test "$wxUSE_LOGGUI" = yes; then | |
6725 | echo "$as_me:$LINENO: result: yes" >&5 | |
6726 | echo "${ECHO_T}yes" >&6 | |
6727 | else | |
6728 | echo "$as_me:$LINENO: result: no" >&5 | |
6729 | echo "${ECHO_T}no" >&6 | |
6730 | fi | |
6731 | ||
6732 | ||
6733 | enablestring= | |
6734 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6735 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6736 | no_cache=0 | |
6737 | # Check whether --enable-logwin or --disable-logwin was given. | |
6738 | if test "${enable_logwin+set}" = set; then | |
6739 | enableval="$enable_logwin" | |
6740 | ||
6741 | if test "$enableval" = yes; then | |
6742 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6743 | else | |
6744 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6745 | fi | |
6746 | ||
6747 | else | |
6748 | ||
6749 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6750 | if test "x$LINE" != x ; then | |
6751 | eval "DEFAULT_$LINE" | |
6752 | else | |
6753 | no_cache=1 | |
6754 | fi | |
6755 | ||
6756 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6757 | ||
6758 | fi; | |
6759 | ||
6760 | eval "$ac_cv_use_logwin" | |
6761 | if test "$no_cache" != 1; then | |
6762 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6763 | fi | |
6764 | ||
6765 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6766 | echo "$as_me:$LINENO: result: yes" >&5 | |
6767 | echo "${ECHO_T}yes" >&6 | |
6768 | else | |
6769 | echo "$as_me:$LINENO: result: no" >&5 | |
6770 | echo "${ECHO_T}no" >&6 | |
6771 | fi | |
6772 | ||
6773 | ||
6774 | enablestring= | |
6775 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6776 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6777 | no_cache=0 | |
6778 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6779 | if test "${enable_logdialog+set}" = set; then | |
6780 | enableval="$enable_logdialog" | |
6781 | ||
6782 | if test "$enableval" = yes; then | |
6783 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6784 | else | |
6785 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6786 | fi | |
6787 | ||
6788 | else | |
6789 | ||
6790 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6791 | if test "x$LINE" != x ; then | |
6792 | eval "DEFAULT_$LINE" | |
6793 | else | |
6794 | no_cache=1 | |
6795 | fi | |
6796 | ||
6797 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6798 | ||
6799 | fi; | |
6800 | ||
6801 | eval "$ac_cv_use_logdialog" | |
6802 | if test "$no_cache" != 1; then | |
6803 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6804 | fi | |
6805 | ||
6806 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6807 | echo "$as_me:$LINENO: result: yes" >&5 | |
6808 | echo "${ECHO_T}yes" >&6 | |
6809 | else | |
6810 | echo "$as_me:$LINENO: result: no" >&5 | |
6811 | echo "${ECHO_T}no" >&6 | |
6812 | fi | |
6813 | ||
6814 | ||
646b6ec1 VS |
6815 | enablestring= |
6816 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6817 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6818 | no_cache=0 | |
6819 | # Check whether --enable-webkit or --disable-webkit was given. | |
6820 | if test "${enable_webkit+set}" = set; then | |
6821 | enableval="$enable_webkit" | |
6822 | ||
6823 | if test "$enableval" = yes; then | |
6824 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6825 | else | |
6826 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6827 | fi | |
6828 | ||
6829 | else | |
6830 | ||
6831 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6832 | if test "x$LINE" != x ; then | |
6833 | eval "DEFAULT_$LINE" | |
6834 | else | |
6835 | no_cache=1 | |
6836 | fi | |
6837 | ||
6838 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6839 | ||
6840 | fi; | |
6841 | ||
6842 | eval "$ac_cv_use_webkit" | |
6843 | if test "$no_cache" != 1; then | |
6844 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6845 | fi | |
6846 | ||
6847 | if test "$wxUSE_WEBKIT" = yes; then | |
6848 | echo "$as_me:$LINENO: result: yes" >&5 | |
6849 | echo "${ECHO_T}yes" >&6 | |
6850 | else | |
6851 | echo "$as_me:$LINENO: result: no" >&5 | |
6852 | echo "${ECHO_T}no" >&6 | |
6853 | fi | |
6854 | ||
6855 | ||
a848cd7e SC |
6856 | |
6857 | enablestring= | |
6858 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6859 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6860 | no_cache=0 | |
6861 | # Check whether --enable-postscript or --disable-postscript was given. | |
6862 | if test "${enable_postscript+set}" = set; then | |
6863 | enableval="$enable_postscript" | |
6864 | ||
6865 | if test "$enableval" = yes; then | |
6866 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6867 | else | |
6868 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6869 | fi | |
6870 | ||
6871 | else | |
6872 | ||
6873 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6874 | if test "x$LINE" != x ; then | |
6875 | eval "DEFAULT_$LINE" | |
6876 | else | |
6877 | no_cache=1 | |
6878 | fi | |
6879 | ||
6880 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6881 | ||
6882 | fi; | |
6883 | ||
6884 | eval "$ac_cv_use_postscript" | |
6885 | if test "$no_cache" != 1; then | |
6886 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6887 | fi | |
6888 | ||
6889 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6890 | echo "$as_me:$LINENO: result: yes" >&5 | |
6891 | echo "${ECHO_T}yes" >&6 | |
6892 | else | |
6893 | echo "$as_me:$LINENO: result: no" >&5 | |
6894 | echo "${ECHO_T}no" >&6 | |
6895 | fi | |
6896 | ||
6897 | ||
6898 | ||
6899 | ||
6900 | ||
6901 | enablestring= | |
6902 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6903 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6904 | no_cache=0 | |
6905 | # Check whether --enable-prologio or --disable-prologio was given. | |
6906 | if test "${enable_prologio+set}" = set; then | |
6907 | enableval="$enable_prologio" | |
6908 | ||
6909 | if test "$enableval" = yes; then | |
6910 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6911 | else | |
6912 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6913 | fi | |
6914 | ||
6915 | else | |
6916 | ||
6917 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6918 | if test "x$LINE" != x ; then | |
6919 | eval "DEFAULT_$LINE" | |
6920 | else | |
6921 | no_cache=1 | |
6922 | fi | |
6923 | ||
6924 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6925 | ||
6926 | fi; | |
6927 | ||
6928 | eval "$ac_cv_use_prologio" | |
6929 | if test "$no_cache" != 1; then | |
6930 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6931 | fi | |
6932 | ||
6933 | if test "$wxUSE_PROLOGIO" = yes; then | |
6934 | echo "$as_me:$LINENO: result: yes" >&5 | |
6935 | echo "${ECHO_T}yes" >&6 | |
6936 | else | |
6937 | echo "$as_me:$LINENO: result: no" >&5 | |
6938 | echo "${ECHO_T}no" >&6 | |
6939 | fi | |
6940 | ||
6941 | ||
6942 | enablestring= | |
6943 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6944 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6945 | no_cache=0 | |
6946 | # Check whether --enable-resources or --disable-resources was given. | |
6947 | if test "${enable_resources+set}" = set; then | |
6948 | enableval="$enable_resources" | |
6949 | ||
6950 | if test "$enableval" = yes; then | |
6951 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6952 | else | |
6953 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6954 | fi | |
6955 | ||
6956 | else | |
6957 | ||
6958 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6959 | if test "x$LINE" != x ; then | |
6960 | eval "DEFAULT_$LINE" | |
6961 | else | |
6962 | no_cache=1 | |
6963 | fi | |
6964 | ||
6965 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6966 | ||
6967 | fi; | |
6968 | ||
6969 | eval "$ac_cv_use_resources" | |
6970 | if test "$no_cache" != 1; then | |
6971 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6972 | fi | |
6973 | ||
6974 | if test "$wxUSE_RESOURCES" = yes; then | |
6975 | echo "$as_me:$LINENO: result: yes" >&5 | |
6976 | echo "${ECHO_T}yes" >&6 | |
6977 | else | |
6978 | echo "$as_me:$LINENO: result: no" >&5 | |
6979 | echo "${ECHO_T}no" >&6 | |
6980 | fi | |
6981 | ||
6982 | ||
6983 | ||
6984 | ||
6985 | enablestring= | |
6986 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6987 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6988 | no_cache=0 | |
6989 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6990 | if test "${enable_clipboard+set}" = set; then | |
6991 | enableval="$enable_clipboard" | |
6992 | ||
6993 | if test "$enableval" = yes; then | |
6994 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6995 | else | |
6996 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6997 | fi | |
6998 | ||
6999 | else | |
7000 | ||
7001 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7002 | if test "x$LINE" != x ; then | |
7003 | eval "DEFAULT_$LINE" | |
7004 | else | |
7005 | no_cache=1 | |
7006 | fi | |
7007 | ||
7008 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7009 | ||
7010 | fi; | |
7011 | ||
7012 | eval "$ac_cv_use_clipboard" | |
7013 | if test "$no_cache" != 1; then | |
7014 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7015 | fi | |
7016 | ||
7017 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7018 | echo "$as_me:$LINENO: result: yes" >&5 | |
7019 | echo "${ECHO_T}yes" >&6 | |
7020 | else | |
7021 | echo "$as_me:$LINENO: result: no" >&5 | |
7022 | echo "${ECHO_T}no" >&6 | |
7023 | fi | |
7024 | ||
7025 | ||
7026 | enablestring= | |
7027 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7028 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7029 | no_cache=0 | |
7030 | # Check whether --enable-dnd or --disable-dnd was given. | |
7031 | if test "${enable_dnd+set}" = set; then | |
7032 | enableval="$enable_dnd" | |
7033 | ||
7034 | if test "$enableval" = yes; then | |
7035 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7036 | else | |
7037 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7038 | fi | |
7039 | ||
7040 | else | |
7041 | ||
7042 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7043 | if test "x$LINE" != x ; then | |
7044 | eval "DEFAULT_$LINE" | |
7045 | else | |
7046 | no_cache=1 | |
7047 | fi | |
7048 | ||
7049 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7050 | ||
7051 | fi; | |
7052 | ||
7053 | eval "$ac_cv_use_dnd" | |
7054 | if test "$no_cache" != 1; then | |
7055 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7056 | fi | |
7057 | ||
7058 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7059 | echo "$as_me:$LINENO: result: yes" >&5 | |
7060 | echo "${ECHO_T}yes" >&6 | |
7061 | else | |
7062 | echo "$as_me:$LINENO: result: no" >&5 | |
7063 | echo "${ECHO_T}no" >&6 | |
7064 | fi | |
7065 | ||
7066 | ||
7067 | enablestring= | |
7068 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7069 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7070 | no_cache=0 | |
7071 | # Check whether --enable-metafile or --disable-metafile was given. | |
7072 | if test "${enable_metafile+set}" = set; then | |
7073 | enableval="$enable_metafile" | |
7074 | ||
7075 | if test "$enableval" = yes; then | |
7076 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7077 | else | |
7078 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7079 | fi | |
7080 | ||
7081 | else | |
7082 | ||
7083 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7084 | if test "x$LINE" != x ; then | |
7085 | eval "DEFAULT_$LINE" | |
7086 | else | |
7087 | no_cache=1 | |
7088 | fi | |
7089 | ||
7090 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7091 | ||
7092 | fi; | |
7093 | ||
7094 | eval "$ac_cv_use_metafile" | |
7095 | if test "$no_cache" != 1; then | |
7096 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7097 | fi | |
7098 | ||
7099 | if test "$wxUSE_METAFILE" = yes; then | |
7100 | echo "$as_me:$LINENO: result: yes" >&5 | |
7101 | echo "${ECHO_T}yes" >&6 | |
7102 | else | |
7103 | echo "$as_me:$LINENO: result: no" >&5 | |
7104 | echo "${ECHO_T}no" >&6 | |
7105 | fi | |
7106 | ||
7107 | ||
7108 | ||
7109 | ||
7110 | ||
7111 | enablestring= | |
7112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7113 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7114 | no_cache=0 | |
7115 | # Check whether --enable-controls or --disable-controls was given. | |
7116 | if test "${enable_controls+set}" = set; then | |
7117 | enableval="$enable_controls" | |
7118 | ||
7119 | if test "$enableval" = yes; then | |
7120 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7121 | else | |
7122 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7123 | fi | |
7124 | ||
7125 | else | |
7126 | ||
7127 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7128 | if test "x$LINE" != x ; then | |
7129 | eval "DEFAULT_$LINE" | |
7130 | else | |
7131 | no_cache=1 | |
7132 | fi | |
7133 | ||
7134 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7135 | ||
7136 | fi; | |
7137 | ||
7138 | eval "$ac_cv_use_controls" | |
7139 | if test "$no_cache" != 1; then | |
7140 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7141 | fi | |
7142 | ||
7143 | if test "$wxUSE_CONTROLS" = yes; then | |
7144 | echo "$as_me:$LINENO: result: yes" >&5 | |
7145 | echo "${ECHO_T}yes" >&6 | |
7146 | else | |
7147 | echo "$as_me:$LINENO: result: no" >&5 | |
7148 | echo "${ECHO_T}no" >&6 | |
7149 | fi | |
7150 | ||
7151 | ||
7152 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7153 | DEFAULT_wxUSE_ACCEL=yes | |
7154 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7155 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7156 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7157 | DEFAULT_wxUSE_CARET=yes |
7158 | DEFAULT_wxUSE_COMBOBOX=yes | |
7159 | DEFAULT_wxUSE_CHECKBOX=yes | |
7160 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7161 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7162 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7163 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7164 | DEFAULT_wxUSE_GAUGE=yes |
7165 | DEFAULT_wxUSE_GRID=yes | |
7166 | DEFAULT_wxUSE_IMAGLIST=yes | |
7167 | DEFAULT_wxUSE_LISTBOOK=yes | |
7168 | DEFAULT_wxUSE_LISTBOX=yes | |
7169 | DEFAULT_wxUSE_LISTCTRL=yes | |
7170 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7171 | DEFAULT_wxUSE_RADIOBOX=yes | |
7172 | DEFAULT_wxUSE_RADIOBTN=yes | |
7173 | DEFAULT_wxUSE_SASH=yes | |
7174 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7175 | DEFAULT_wxUSE_SLIDER=yes | |
7176 | DEFAULT_wxUSE_SPINBTN=yes | |
7177 | DEFAULT_wxUSE_SPINCTRL=yes | |
7178 | DEFAULT_wxUSE_SPLITTER=yes | |
7179 | DEFAULT_wxUSE_STATBMP=yes | |
7180 | DEFAULT_wxUSE_STATBOX=yes | |
7181 | DEFAULT_wxUSE_STATLINE=yes | |
7182 | DEFAULT_wxUSE_STATUSBAR=yes | |
7183 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7184 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7185 | DEFAULT_wxUSE_TOOLBAR=yes | |
7186 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7187 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7188 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7189 | DEFAULT_wxUSE_TREECTRL=yes | |
7190 | DEFAULT_wxUSE_POPUPWIN=yes | |
7191 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7192 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7193 | DEFAULT_wxUSE_ACCEL=no | |
7194 | DEFAULT_wxUSE_BMPBUTTON=no | |
7195 | DEFAULT_wxUSE_BUTTON=no | |
7196 | DEFAULT_wxUSE_CALCTRL=no | |
7197 | DEFAULT_wxUSE_CARET=no | |
7198 | DEFAULT_wxUSE_COMBOBOX=no | |
7199 | DEFAULT_wxUSE_CHECKBOX=no | |
7200 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7201 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7202 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7203 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7204 | DEFAULT_wxUSE_GAUGE=no |
7205 | DEFAULT_wxUSE_GRID=no | |
7206 | DEFAULT_wxUSE_IMAGLIST=no | |
7207 | DEFAULT_wxUSE_LISTBOOK=no | |
7208 | DEFAULT_wxUSE_LISTBOX=no | |
7209 | DEFAULT_wxUSE_LISTCTRL=no | |
7210 | DEFAULT_wxUSE_NOTEBOOK=no | |
7211 | DEFAULT_wxUSE_RADIOBOX=no | |
7212 | DEFAULT_wxUSE_RADIOBTN=no | |
7213 | DEFAULT_wxUSE_SASH=no | |
7214 | DEFAULT_wxUSE_SCROLLBAR=no | |
7215 | DEFAULT_wxUSE_SLIDER=no | |
7216 | DEFAULT_wxUSE_SPINBTN=no | |
7217 | DEFAULT_wxUSE_SPINCTRL=no | |
7218 | DEFAULT_wxUSE_SPLITTER=no | |
7219 | DEFAULT_wxUSE_STATBMP=no | |
7220 | DEFAULT_wxUSE_STATBOX=no | |
7221 | DEFAULT_wxUSE_STATLINE=no | |
7222 | DEFAULT_wxUSE_STATUSBAR=no | |
7223 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7224 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7225 | DEFAULT_wxUSE_TOOLBAR=no | |
7226 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7227 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7228 | DEFAULT_wxUSE_TOOLTIPS=no | |
7229 | DEFAULT_wxUSE_TREECTRL=no | |
7230 | DEFAULT_wxUSE_POPUPWIN=no | |
7231 | DEFAULT_wxUSE_TIPWINDOW=no | |
7232 | fi | |
7233 | ||
a848cd7e SC |
7234 | |
7235 | enablestring= | |
7236 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7237 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7238 | no_cache=0 | |
7239 | # Check whether --enable-accel or --disable-accel was given. | |
7240 | if test "${enable_accel+set}" = set; then | |
7241 | enableval="$enable_accel" | |
7242 | ||
7243 | if test "$enableval" = yes; then | |
7244 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7245 | else | |
7246 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7247 | fi | |
7248 | ||
7249 | else | |
7250 | ||
7251 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7252 | if test "x$LINE" != x ; then | |
7253 | eval "DEFAULT_$LINE" | |
7254 | else | |
7255 | no_cache=1 | |
7256 | fi | |
7257 | ||
7258 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7259 | ||
7260 | fi; | |
7261 | ||
7262 | eval "$ac_cv_use_accel" | |
7263 | if test "$no_cache" != 1; then | |
7264 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7265 | fi | |
7266 | ||
7267 | if test "$wxUSE_ACCEL" = yes; then | |
7268 | echo "$as_me:$LINENO: result: yes" >&5 | |
7269 | echo "${ECHO_T}yes" >&6 | |
7270 | else | |
7271 | echo "$as_me:$LINENO: result: no" >&5 | |
7272 | echo "${ECHO_T}no" >&6 | |
7273 | fi | |
7274 | ||
7275 | ||
7276 | enablestring= | |
7277 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7278 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7279 | no_cache=0 | |
7280 | # Check whether --enable-button or --disable-button was given. | |
7281 | if test "${enable_button+set}" = set; then | |
7282 | enableval="$enable_button" | |
7283 | ||
7284 | if test "$enableval" = yes; then | |
7285 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7286 | else | |
7287 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7288 | fi | |
7289 | ||
7290 | else | |
7291 | ||
7292 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7293 | if test "x$LINE" != x ; then | |
7294 | eval "DEFAULT_$LINE" | |
7295 | else | |
7296 | no_cache=1 | |
7297 | fi | |
7298 | ||
7299 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7300 | ||
7301 | fi; | |
7302 | ||
7303 | eval "$ac_cv_use_button" | |
7304 | if test "$no_cache" != 1; then | |
7305 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7306 | fi | |
7307 | ||
7308 | if test "$wxUSE_BUTTON" = yes; then | |
7309 | echo "$as_me:$LINENO: result: yes" >&5 | |
7310 | echo "${ECHO_T}yes" >&6 | |
7311 | else | |
7312 | echo "$as_me:$LINENO: result: no" >&5 | |
7313 | echo "${ECHO_T}no" >&6 | |
7314 | fi | |
7315 | ||
7316 | ||
7317 | enablestring= | |
7318 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7319 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7320 | no_cache=0 | |
7321 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7322 | if test "${enable_bmpbutton+set}" = set; then | |
7323 | enableval="$enable_bmpbutton" | |
7324 | ||
7325 | if test "$enableval" = yes; then | |
7326 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7327 | else | |
7328 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7329 | fi | |
7330 | ||
7331 | else | |
7332 | ||
7333 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7334 | if test "x$LINE" != x ; then | |
7335 | eval "DEFAULT_$LINE" | |
7336 | else | |
7337 | no_cache=1 | |
7338 | fi | |
7339 | ||
7340 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7341 | ||
7342 | fi; | |
7343 | ||
7344 | eval "$ac_cv_use_bmpbutton" | |
7345 | if test "$no_cache" != 1; then | |
7346 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7347 | fi | |
7348 | ||
7349 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7350 | echo "$as_me:$LINENO: result: yes" >&5 | |
7351 | echo "${ECHO_T}yes" >&6 | |
7352 | else | |
7353 | echo "$as_me:$LINENO: result: no" >&5 | |
7354 | echo "${ECHO_T}no" >&6 | |
7355 | fi | |
7356 | ||
7357 | ||
7358 | enablestring= | |
7359 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7360 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7361 | no_cache=0 | |
7362 | # Check whether --enable-calendar or --disable-calendar was given. | |
7363 | if test "${enable_calendar+set}" = set; then | |
7364 | enableval="$enable_calendar" | |
7365 | ||
7366 | if test "$enableval" = yes; then | |
7367 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7368 | else | |
7369 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7370 | fi | |
7371 | ||
7372 | else | |
7373 | ||
7374 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7375 | if test "x$LINE" != x ; then | |
7376 | eval "DEFAULT_$LINE" | |
7377 | else | |
7378 | no_cache=1 | |
7379 | fi | |
7380 | ||
7381 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7382 | ||
7383 | fi; | |
7384 | ||
7385 | eval "$ac_cv_use_calendar" | |
7386 | if test "$no_cache" != 1; then | |
7387 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7388 | fi | |
7389 | ||
7390 | if test "$wxUSE_CALCTRL" = yes; then | |
7391 | echo "$as_me:$LINENO: result: yes" >&5 | |
7392 | echo "${ECHO_T}yes" >&6 | |
7393 | else | |
7394 | echo "$as_me:$LINENO: result: no" >&5 | |
7395 | echo "${ECHO_T}no" >&6 | |
7396 | fi | |
7397 | ||
7398 | ||
7399 | enablestring= | |
7400 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7401 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7402 | no_cache=0 | |
7403 | # Check whether --enable-caret or --disable-caret was given. | |
7404 | if test "${enable_caret+set}" = set; then | |
7405 | enableval="$enable_caret" | |
7406 | ||
7407 | if test "$enableval" = yes; then | |
7408 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7409 | else | |
7410 | ac_cv_use_caret='wxUSE_CARET=no' | |
7411 | fi | |
7412 | ||
7413 | else | |
7414 | ||
7415 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7416 | if test "x$LINE" != x ; then | |
7417 | eval "DEFAULT_$LINE" | |
7418 | else | |
7419 | no_cache=1 | |
7420 | fi | |
7421 | ||
7422 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7423 | ||
7424 | fi; | |
7425 | ||
7426 | eval "$ac_cv_use_caret" | |
7427 | if test "$no_cache" != 1; then | |
7428 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7429 | fi | |
7430 | ||
7431 | if test "$wxUSE_CARET" = yes; then | |
7432 | echo "$as_me:$LINENO: result: yes" >&5 | |
7433 | echo "${ECHO_T}yes" >&6 | |
7434 | else | |
7435 | echo "$as_me:$LINENO: result: no" >&5 | |
7436 | echo "${ECHO_T}no" >&6 | |
7437 | fi | |
7438 | ||
7439 | ||
7440 | enablestring= | |
7441 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7442 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7443 | no_cache=0 | |
7444 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7445 | if test "${enable_checkbox+set}" = set; then | |
7446 | enableval="$enable_checkbox" | |
7447 | ||
7448 | if test "$enableval" = yes; then | |
7449 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7450 | else | |
7451 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7452 | fi | |
7453 | ||
7454 | else | |
7455 | ||
7456 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7457 | if test "x$LINE" != x ; then | |
7458 | eval "DEFAULT_$LINE" | |
7459 | else | |
7460 | no_cache=1 | |
7461 | fi | |
7462 | ||
7463 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7464 | ||
7465 | fi; | |
7466 | ||
7467 | eval "$ac_cv_use_checkbox" | |
7468 | if test "$no_cache" != 1; then | |
7469 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7470 | fi | |
7471 | ||
7472 | if test "$wxUSE_CHECKBOX" = yes; then | |
7473 | echo "$as_me:$LINENO: result: yes" >&5 | |
7474 | echo "${ECHO_T}yes" >&6 | |
7475 | else | |
7476 | echo "$as_me:$LINENO: result: no" >&5 | |
7477 | echo "${ECHO_T}no" >&6 | |
7478 | fi | |
7479 | ||
7480 | ||
7481 | enablestring= | |
7482 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7483 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7484 | no_cache=0 | |
7485 | # Check whether --enable-checklst or --disable-checklst was given. | |
7486 | if test "${enable_checklst+set}" = set; then | |
7487 | enableval="$enable_checklst" | |
7488 | ||
7489 | if test "$enableval" = yes; then | |
7490 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7491 | else | |
7492 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7493 | fi | |
7494 | ||
7495 | else | |
7496 | ||
7497 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7498 | if test "x$LINE" != x ; then | |
7499 | eval "DEFAULT_$LINE" | |
7500 | else | |
7501 | no_cache=1 | |
7502 | fi | |
7503 | ||
7504 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7505 | ||
7506 | fi; | |
7507 | ||
7508 | eval "$ac_cv_use_checklst" | |
7509 | if test "$no_cache" != 1; then | |
7510 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7511 | fi | |
7512 | ||
7513 | if test "$wxUSE_CHECKLST" = yes; then | |
7514 | echo "$as_me:$LINENO: result: yes" >&5 | |
7515 | echo "${ECHO_T}yes" >&6 | |
7516 | else | |
7517 | echo "$as_me:$LINENO: result: no" >&5 | |
7518 | echo "${ECHO_T}no" >&6 | |
7519 | fi | |
7520 | ||
7521 | ||
7522 | enablestring= | |
7523 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7524 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7525 | no_cache=0 | |
7526 | # Check whether --enable-choice or --disable-choice was given. | |
7527 | if test "${enable_choice+set}" = set; then | |
7528 | enableval="$enable_choice" | |
7529 | ||
7530 | if test "$enableval" = yes; then | |
7531 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7532 | else | |
7533 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7534 | fi | |
7535 | ||
7536 | else | |
7537 | ||
7538 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7539 | if test "x$LINE" != x ; then | |
7540 | eval "DEFAULT_$LINE" | |
7541 | else | |
7542 | no_cache=1 | |
7543 | fi | |
7544 | ||
7545 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7546 | ||
7547 | fi; | |
7548 | ||
7549 | eval "$ac_cv_use_choice" | |
7550 | if test "$no_cache" != 1; then | |
7551 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7552 | fi | |
7553 | ||
7554 | if test "$wxUSE_CHOICE" = yes; then | |
7555 | echo "$as_me:$LINENO: result: yes" >&5 | |
7556 | echo "${ECHO_T}yes" >&6 | |
7557 | else | |
7558 | echo "$as_me:$LINENO: result: no" >&5 | |
7559 | echo "${ECHO_T}no" >&6 | |
7560 | fi | |
7561 | ||
7562 | ||
92bbdbcd WS |
7563 | enablestring= |
7564 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7565 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7566 | no_cache=0 | |
7567 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7568 | if test "${enable_choicebook+set}" = set; then | |
7569 | enableval="$enable_choicebook" | |
7570 | ||
7571 | if test "$enableval" = yes; then | |
7572 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7573 | else | |
7574 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7575 | fi | |
7576 | ||
7577 | else | |
7578 | ||
7579 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7580 | if test "x$LINE" != x ; then | |
7581 | eval "DEFAULT_$LINE" | |
7582 | else | |
7583 | no_cache=1 | |
7584 | fi | |
7585 | ||
7586 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7587 | ||
7588 | fi; | |
7589 | ||
7590 | eval "$ac_cv_use_choicebook" | |
7591 | if test "$no_cache" != 1; then | |
7592 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7593 | fi | |
7594 | ||
7595 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7596 | echo "$as_me:$LINENO: result: yes" >&5 | |
7597 | echo "${ECHO_T}yes" >&6 | |
7598 | else | |
7599 | echo "$as_me:$LINENO: result: no" >&5 | |
7600 | echo "${ECHO_T}no" >&6 | |
7601 | fi | |
7602 | ||
7603 | ||
a848cd7e SC |
7604 | enablestring= |
7605 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7606 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7607 | no_cache=0 | |
7608 | # Check whether --enable-combobox or --disable-combobox was given. | |
7609 | if test "${enable_combobox+set}" = set; then | |
7610 | enableval="$enable_combobox" | |
7611 | ||
7612 | if test "$enableval" = yes; then | |
7613 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7614 | else | |
7615 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7616 | fi | |
7617 | ||
7618 | else | |
7619 | ||
7620 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7621 | if test "x$LINE" != x ; then | |
7622 | eval "DEFAULT_$LINE" | |
7623 | else | |
7624 | no_cache=1 | |
7625 | fi | |
7626 | ||
7627 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7628 | ||
7629 | fi; | |
7630 | ||
7631 | eval "$ac_cv_use_combobox" | |
7632 | if test "$no_cache" != 1; then | |
7633 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7634 | fi | |
7635 | ||
7636 | if test "$wxUSE_COMBOBOX" = yes; then | |
7637 | echo "$as_me:$LINENO: result: yes" >&5 | |
7638 | echo "${ECHO_T}yes" >&6 | |
7639 | else | |
7640 | echo "$as_me:$LINENO: result: no" >&5 | |
7641 | echo "${ECHO_T}no" >&6 | |
7642 | fi | |
7643 | ||
7644 | ||
da98e9be VZ |
7645 | enablestring= |
7646 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7647 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7648 | no_cache=0 | |
7649 | # Check whether --enable-datepick or --disable-datepick was given. | |
7650 | if test "${enable_datepick+set}" = set; then | |
7651 | enableval="$enable_datepick" | |
7652 | ||
7653 | if test "$enableval" = yes; then | |
7654 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7655 | else | |
7656 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7657 | fi | |
7658 | ||
7659 | else | |
7660 | ||
7661 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7662 | if test "x$LINE" != x ; then | |
7663 | eval "DEFAULT_$LINE" | |
7664 | else | |
7665 | no_cache=1 | |
7666 | fi | |
7667 | ||
7668 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7669 | ||
7670 | fi; | |
7671 | ||
7672 | eval "$ac_cv_use_datepick" | |
7673 | if test "$no_cache" != 1; then | |
7674 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7675 | fi | |
7676 | ||
7677 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7678 | echo "$as_me:$LINENO: result: yes" >&5 | |
7679 | echo "${ECHO_T}yes" >&6 | |
7680 | else | |
7681 | echo "$as_me:$LINENO: result: no" >&5 | |
7682 | echo "${ECHO_T}no" >&6 | |
7683 | fi | |
7684 | ||
7685 | ||
a848cd7e SC |
7686 | enablestring= |
7687 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7688 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7689 | no_cache=0 | |
7690 | # Check whether --enable-display or --disable-display was given. | |
7691 | if test "${enable_display+set}" = set; then | |
7692 | enableval="$enable_display" | |
7693 | ||
7694 | if test "$enableval" = yes; then | |
7695 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7696 | else | |
7697 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7698 | fi | |
7699 | ||
7700 | else | |
7701 | ||
7702 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7703 | if test "x$LINE" != x ; then | |
7704 | eval "DEFAULT_$LINE" | |
7705 | else | |
7706 | no_cache=1 | |
7707 | fi | |
7708 | ||
7709 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7710 | ||
7711 | fi; | |
7712 | ||
7713 | eval "$ac_cv_use_display" | |
7714 | if test "$no_cache" != 1; then | |
7715 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7716 | fi | |
7717 | ||
7718 | if test "$wxUSE_DISPLAY" = yes; then | |
7719 | echo "$as_me:$LINENO: result: yes" >&5 | |
7720 | echo "${ECHO_T}yes" >&6 | |
7721 | else | |
7722 | echo "$as_me:$LINENO: result: no" >&5 | |
7723 | echo "${ECHO_T}no" >&6 | |
7724 | fi | |
7725 | ||
7726 | ||
7727 | enablestring= | |
7728 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7729 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7730 | no_cache=0 | |
7731 | # Check whether --enable-gauge or --disable-gauge was given. | |
7732 | if test "${enable_gauge+set}" = set; then | |
7733 | enableval="$enable_gauge" | |
7734 | ||
7735 | if test "$enableval" = yes; then | |
7736 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7737 | else | |
7738 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7739 | fi | |
7740 | ||
7741 | else | |
7742 | ||
7743 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7744 | if test "x$LINE" != x ; then | |
7745 | eval "DEFAULT_$LINE" | |
7746 | else | |
7747 | no_cache=1 | |
7748 | fi | |
7749 | ||
7750 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7751 | ||
7752 | fi; | |
7753 | ||
7754 | eval "$ac_cv_use_gauge" | |
7755 | if test "$no_cache" != 1; then | |
7756 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7757 | fi | |
7758 | ||
7759 | if test "$wxUSE_GAUGE" = yes; then | |
7760 | echo "$as_me:$LINENO: result: yes" >&5 | |
7761 | echo "${ECHO_T}yes" >&6 | |
7762 | else | |
7763 | echo "$as_me:$LINENO: result: no" >&5 | |
7764 | echo "${ECHO_T}no" >&6 | |
7765 | fi | |
7766 | ||
7767 | ||
7768 | enablestring= | |
7769 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7770 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7771 | no_cache=0 | |
7772 | # Check whether --enable-grid or --disable-grid was given. | |
7773 | if test "${enable_grid+set}" = set; then | |
7774 | enableval="$enable_grid" | |
7775 | ||
7776 | if test "$enableval" = yes; then | |
7777 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7778 | else | |
7779 | ac_cv_use_grid='wxUSE_GRID=no' | |
7780 | fi | |
7781 | ||
7782 | else | |
7783 | ||
7784 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7785 | if test "x$LINE" != x ; then | |
7786 | eval "DEFAULT_$LINE" | |
7787 | else | |
7788 | no_cache=1 | |
7789 | fi | |
7790 | ||
7791 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7792 | ||
7793 | fi; | |
7794 | ||
7795 | eval "$ac_cv_use_grid" | |
7796 | if test "$no_cache" != 1; then | |
7797 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7798 | fi | |
7799 | ||
7800 | if test "$wxUSE_GRID" = yes; then | |
7801 | echo "$as_me:$LINENO: result: yes" >&5 | |
7802 | echo "${ECHO_T}yes" >&6 | |
7803 | else | |
7804 | echo "$as_me:$LINENO: result: no" >&5 | |
7805 | echo "${ECHO_T}no" >&6 | |
7806 | fi | |
7807 | ||
7808 | ||
7809 | enablestring= | |
7810 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7811 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7812 | no_cache=0 | |
7813 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7814 | if test "${enable_imaglist+set}" = set; then | |
7815 | enableval="$enable_imaglist" | |
7816 | ||
7817 | if test "$enableval" = yes; then | |
7818 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7819 | else | |
7820 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7821 | fi | |
7822 | ||
7823 | else | |
7824 | ||
7825 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7826 | if test "x$LINE" != x ; then | |
7827 | eval "DEFAULT_$LINE" | |
7828 | else | |
7829 | no_cache=1 | |
7830 | fi | |
7831 | ||
7832 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7833 | ||
7834 | fi; | |
7835 | ||
7836 | eval "$ac_cv_use_imaglist" | |
7837 | if test "$no_cache" != 1; then | |
7838 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7839 | fi | |
7840 | ||
7841 | if test "$wxUSE_IMAGLIST" = yes; then | |
7842 | echo "$as_me:$LINENO: result: yes" >&5 | |
7843 | echo "${ECHO_T}yes" >&6 | |
7844 | else | |
7845 | echo "$as_me:$LINENO: result: no" >&5 | |
7846 | echo "${ECHO_T}no" >&6 | |
7847 | fi | |
7848 | ||
7849 | ||
7850 | enablestring= | |
7851 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7852 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7853 | no_cache=0 | |
7854 | # Check whether --enable-listbook or --disable-listbook was given. | |
7855 | if test "${enable_listbook+set}" = set; then | |
7856 | enableval="$enable_listbook" | |
7857 | ||
7858 | if test "$enableval" = yes; then | |
7859 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7860 | else | |
7861 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7862 | fi | |
7863 | ||
7864 | else | |
7865 | ||
7866 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7867 | if test "x$LINE" != x ; then | |
7868 | eval "DEFAULT_$LINE" | |
7869 | else | |
7870 | no_cache=1 | |
7871 | fi | |
7872 | ||
7873 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7874 | ||
7875 | fi; | |
7876 | ||
7877 | eval "$ac_cv_use_listbook" | |
7878 | if test "$no_cache" != 1; then | |
7879 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7880 | fi | |
7881 | ||
7882 | if test "$wxUSE_LISTBOOK" = yes; then | |
7883 | echo "$as_me:$LINENO: result: yes" >&5 | |
7884 | echo "${ECHO_T}yes" >&6 | |
7885 | else | |
7886 | echo "$as_me:$LINENO: result: no" >&5 | |
7887 | echo "${ECHO_T}no" >&6 | |
7888 | fi | |
7889 | ||
7890 | ||
7891 | enablestring= | |
7892 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7893 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7894 | no_cache=0 | |
7895 | # Check whether --enable-listbox or --disable-listbox was given. | |
7896 | if test "${enable_listbox+set}" = set; then | |
7897 | enableval="$enable_listbox" | |
7898 | ||
7899 | if test "$enableval" = yes; then | |
7900 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7901 | else | |
7902 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7903 | fi | |
7904 | ||
7905 | else | |
7906 | ||
7907 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7908 | if test "x$LINE" != x ; then | |
7909 | eval "DEFAULT_$LINE" | |
7910 | else | |
7911 | no_cache=1 | |
7912 | fi | |
7913 | ||
7914 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7915 | ||
7916 | fi; | |
7917 | ||
7918 | eval "$ac_cv_use_listbox" | |
7919 | if test "$no_cache" != 1; then | |
7920 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7921 | fi | |
7922 | ||
7923 | if test "$wxUSE_LISTBOX" = yes; then | |
7924 | echo "$as_me:$LINENO: result: yes" >&5 | |
7925 | echo "${ECHO_T}yes" >&6 | |
7926 | else | |
7927 | echo "$as_me:$LINENO: result: no" >&5 | |
7928 | echo "${ECHO_T}no" >&6 | |
7929 | fi | |
7930 | ||
7931 | ||
7932 | enablestring= | |
7933 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7934 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7935 | no_cache=0 | |
7936 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7937 | if test "${enable_listctrl+set}" = set; then | |
7938 | enableval="$enable_listctrl" | |
7939 | ||
7940 | if test "$enableval" = yes; then | |
7941 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7942 | else | |
7943 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7944 | fi | |
7945 | ||
7946 | else | |
7947 | ||
7948 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7949 | if test "x$LINE" != x ; then | |
7950 | eval "DEFAULT_$LINE" | |
7951 | else | |
7952 | no_cache=1 | |
7953 | fi | |
7954 | ||
7955 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7956 | ||
7957 | fi; | |
7958 | ||
7959 | eval "$ac_cv_use_listctrl" | |
7960 | if test "$no_cache" != 1; then | |
7961 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7962 | fi | |
7963 | ||
7964 | if test "$wxUSE_LISTCTRL" = yes; then | |
7965 | echo "$as_me:$LINENO: result: yes" >&5 | |
7966 | echo "${ECHO_T}yes" >&6 | |
7967 | else | |
7968 | echo "$as_me:$LINENO: result: no" >&5 | |
7969 | echo "${ECHO_T}no" >&6 | |
7970 | fi | |
7971 | ||
7972 | ||
7973 | enablestring= | |
7974 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7975 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7976 | no_cache=0 | |
7977 | # Check whether --enable-notebook or --disable-notebook was given. | |
7978 | if test "${enable_notebook+set}" = set; then | |
7979 | enableval="$enable_notebook" | |
7980 | ||
7981 | if test "$enableval" = yes; then | |
7982 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7983 | else | |
7984 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7985 | fi | |
7986 | ||
7987 | else | |
7988 | ||
7989 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7990 | if test "x$LINE" != x ; then | |
7991 | eval "DEFAULT_$LINE" | |
7992 | else | |
7993 | no_cache=1 | |
7994 | fi | |
7995 | ||
7996 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7997 | ||
7998 | fi; | |
7999 | ||
8000 | eval "$ac_cv_use_notebook" | |
8001 | if test "$no_cache" != 1; then | |
8002 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8003 | fi | |
8004 | ||
8005 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8006 | echo "$as_me:$LINENO: result: yes" >&5 | |
8007 | echo "${ECHO_T}yes" >&6 | |
8008 | else | |
8009 | echo "$as_me:$LINENO: result: no" >&5 | |
8010 | echo "${ECHO_T}no" >&6 | |
8011 | fi | |
8012 | ||
8013 | ||
8014 | enablestring= | |
8015 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8016 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8017 | no_cache=0 | |
8018 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8019 | if test "${enable_radiobox+set}" = set; then | |
8020 | enableval="$enable_radiobox" | |
8021 | ||
8022 | if test "$enableval" = yes; then | |
8023 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8024 | else | |
8025 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8026 | fi | |
8027 | ||
8028 | else | |
8029 | ||
8030 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8031 | if test "x$LINE" != x ; then | |
8032 | eval "DEFAULT_$LINE" | |
8033 | else | |
8034 | no_cache=1 | |
8035 | fi | |
8036 | ||
8037 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8038 | ||
8039 | fi; | |
8040 | ||
8041 | eval "$ac_cv_use_radiobox" | |
8042 | if test "$no_cache" != 1; then | |
8043 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8044 | fi | |
8045 | ||
8046 | if test "$wxUSE_RADIOBOX" = yes; then | |
8047 | echo "$as_me:$LINENO: result: yes" >&5 | |
8048 | echo "${ECHO_T}yes" >&6 | |
8049 | else | |
8050 | echo "$as_me:$LINENO: result: no" >&5 | |
8051 | echo "${ECHO_T}no" >&6 | |
8052 | fi | |
8053 | ||
8054 | ||
8055 | enablestring= | |
8056 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8057 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8058 | no_cache=0 | |
8059 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8060 | if test "${enable_radiobtn+set}" = set; then | |
8061 | enableval="$enable_radiobtn" | |
8062 | ||
8063 | if test "$enableval" = yes; then | |
8064 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8065 | else | |
8066 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8067 | fi | |
8068 | ||
8069 | else | |
8070 | ||
8071 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8072 | if test "x$LINE" != x ; then | |
8073 | eval "DEFAULT_$LINE" | |
8074 | else | |
8075 | no_cache=1 | |
8076 | fi | |
8077 | ||
8078 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8079 | ||
8080 | fi; | |
8081 | ||
8082 | eval "$ac_cv_use_radiobtn" | |
8083 | if test "$no_cache" != 1; then | |
8084 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8085 | fi | |
8086 | ||
8087 | if test "$wxUSE_RADIOBTN" = yes; then | |
8088 | echo "$as_me:$LINENO: result: yes" >&5 | |
8089 | echo "${ECHO_T}yes" >&6 | |
8090 | else | |
8091 | echo "$as_me:$LINENO: result: no" >&5 | |
8092 | echo "${ECHO_T}no" >&6 | |
8093 | fi | |
8094 | ||
8095 | ||
8096 | enablestring= | |
8097 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8098 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8099 | no_cache=0 | |
8100 | # Check whether --enable-sash or --disable-sash was given. | |
8101 | if test "${enable_sash+set}" = set; then | |
8102 | enableval="$enable_sash" | |
8103 | ||
8104 | if test "$enableval" = yes; then | |
8105 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8106 | else | |
8107 | ac_cv_use_sash='wxUSE_SASH=no' | |
8108 | fi | |
8109 | ||
8110 | else | |
8111 | ||
8112 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8113 | if test "x$LINE" != x ; then | |
8114 | eval "DEFAULT_$LINE" | |
8115 | else | |
8116 | no_cache=1 | |
8117 | fi | |
8118 | ||
8119 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8120 | ||
8121 | fi; | |
8122 | ||
8123 | eval "$ac_cv_use_sash" | |
8124 | if test "$no_cache" != 1; then | |
8125 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8126 | fi | |
8127 | ||
8128 | if test "$wxUSE_SASH" = yes; then | |
8129 | echo "$as_me:$LINENO: result: yes" >&5 | |
8130 | echo "${ECHO_T}yes" >&6 | |
8131 | else | |
8132 | echo "$as_me:$LINENO: result: no" >&5 | |
8133 | echo "${ECHO_T}no" >&6 | |
8134 | fi | |
8135 | ||
8136 | ||
8137 | enablestring= | |
8138 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8139 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8140 | no_cache=0 | |
8141 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8142 | if test "${enable_scrollbar+set}" = set; then | |
8143 | enableval="$enable_scrollbar" | |
8144 | ||
8145 | if test "$enableval" = yes; then | |
8146 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8147 | else | |
8148 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8149 | fi | |
8150 | ||
8151 | else | |
8152 | ||
8153 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8154 | if test "x$LINE" != x ; then | |
8155 | eval "DEFAULT_$LINE" | |
8156 | else | |
8157 | no_cache=1 | |
8158 | fi | |
8159 | ||
8160 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8161 | ||
8162 | fi; | |
8163 | ||
8164 | eval "$ac_cv_use_scrollbar" | |
8165 | if test "$no_cache" != 1; then | |
8166 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8167 | fi | |
8168 | ||
8169 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8170 | echo "$as_me:$LINENO: result: yes" >&5 | |
8171 | echo "${ECHO_T}yes" >&6 | |
8172 | else | |
8173 | echo "$as_me:$LINENO: result: no" >&5 | |
8174 | echo "${ECHO_T}no" >&6 | |
8175 | fi | |
8176 | ||
8177 | ||
8178 | enablestring= | |
8179 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8180 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8181 | no_cache=0 | |
8182 | # Check whether --enable-slider or --disable-slider was given. | |
8183 | if test "${enable_slider+set}" = set; then | |
8184 | enableval="$enable_slider" | |
8185 | ||
8186 | if test "$enableval" = yes; then | |
8187 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8188 | else | |
8189 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8190 | fi | |
8191 | ||
8192 | else | |
8193 | ||
8194 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8195 | if test "x$LINE" != x ; then | |
8196 | eval "DEFAULT_$LINE" | |
8197 | else | |
8198 | no_cache=1 | |
8199 | fi | |
8200 | ||
8201 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8202 | ||
8203 | fi; | |
8204 | ||
8205 | eval "$ac_cv_use_slider" | |
8206 | if test "$no_cache" != 1; then | |
8207 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8208 | fi | |
8209 | ||
8210 | if test "$wxUSE_SLIDER" = yes; then | |
8211 | echo "$as_me:$LINENO: result: yes" >&5 | |
8212 | echo "${ECHO_T}yes" >&6 | |
8213 | else | |
8214 | echo "$as_me:$LINENO: result: no" >&5 | |
8215 | echo "${ECHO_T}no" >&6 | |
8216 | fi | |
8217 | ||
8218 | ||
8219 | enablestring= | |
8220 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8221 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8222 | no_cache=0 | |
8223 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8224 | if test "${enable_spinbtn+set}" = set; then | |
8225 | enableval="$enable_spinbtn" | |
8226 | ||
8227 | if test "$enableval" = yes; then | |
8228 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8229 | else | |
8230 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8231 | fi | |
8232 | ||
8233 | else | |
8234 | ||
8235 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8236 | if test "x$LINE" != x ; then | |
8237 | eval "DEFAULT_$LINE" | |
8238 | else | |
8239 | no_cache=1 | |
8240 | fi | |
8241 | ||
8242 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8243 | ||
8244 | fi; | |
8245 | ||
8246 | eval "$ac_cv_use_spinbtn" | |
8247 | if test "$no_cache" != 1; then | |
8248 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8249 | fi | |
8250 | ||
8251 | if test "$wxUSE_SPINBTN" = yes; then | |
8252 | echo "$as_me:$LINENO: result: yes" >&5 | |
8253 | echo "${ECHO_T}yes" >&6 | |
8254 | else | |
8255 | echo "$as_me:$LINENO: result: no" >&5 | |
8256 | echo "${ECHO_T}no" >&6 | |
8257 | fi | |
8258 | ||
8259 | ||
8260 | enablestring= | |
8261 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8262 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8263 | no_cache=0 | |
8264 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8265 | if test "${enable_spinctrl+set}" = set; then | |
8266 | enableval="$enable_spinctrl" | |
8267 | ||
8268 | if test "$enableval" = yes; then | |
8269 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8270 | else | |
8271 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8272 | fi | |
8273 | ||
8274 | else | |
8275 | ||
8276 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8277 | if test "x$LINE" != x ; then | |
8278 | eval "DEFAULT_$LINE" | |
8279 | else | |
8280 | no_cache=1 | |
8281 | fi | |
8282 | ||
8283 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8284 | ||
8285 | fi; | |
8286 | ||
8287 | eval "$ac_cv_use_spinctrl" | |
8288 | if test "$no_cache" != 1; then | |
8289 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8290 | fi | |
8291 | ||
8292 | if test "$wxUSE_SPINCTRL" = yes; then | |
8293 | echo "$as_me:$LINENO: result: yes" >&5 | |
8294 | echo "${ECHO_T}yes" >&6 | |
8295 | else | |
8296 | echo "$as_me:$LINENO: result: no" >&5 | |
8297 | echo "${ECHO_T}no" >&6 | |
8298 | fi | |
8299 | ||
8300 | ||
8301 | enablestring= | |
8302 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8303 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8304 | no_cache=0 | |
8305 | # Check whether --enable-splitter or --disable-splitter was given. | |
8306 | if test "${enable_splitter+set}" = set; then | |
8307 | enableval="$enable_splitter" | |
8308 | ||
8309 | if test "$enableval" = yes; then | |
8310 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8311 | else | |
8312 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8313 | fi | |
8314 | ||
8315 | else | |
8316 | ||
8317 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8318 | if test "x$LINE" != x ; then | |
8319 | eval "DEFAULT_$LINE" | |
8320 | else | |
8321 | no_cache=1 | |
8322 | fi | |
8323 | ||
8324 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8325 | ||
8326 | fi; | |
8327 | ||
8328 | eval "$ac_cv_use_splitter" | |
8329 | if test "$no_cache" != 1; then | |
8330 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8331 | fi | |
8332 | ||
8333 | if test "$wxUSE_SPLITTER" = yes; then | |
8334 | echo "$as_me:$LINENO: result: yes" >&5 | |
8335 | echo "${ECHO_T}yes" >&6 | |
8336 | else | |
8337 | echo "$as_me:$LINENO: result: no" >&5 | |
8338 | echo "${ECHO_T}no" >&6 | |
8339 | fi | |
8340 | ||
8341 | ||
8342 | enablestring= | |
8343 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8344 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8345 | no_cache=0 | |
8346 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8347 | if test "${enable_statbmp+set}" = set; then | |
8348 | enableval="$enable_statbmp" | |
8349 | ||
8350 | if test "$enableval" = yes; then | |
8351 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8352 | else | |
8353 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8354 | fi | |
8355 | ||
8356 | else | |
8357 | ||
8358 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8359 | if test "x$LINE" != x ; then | |
8360 | eval "DEFAULT_$LINE" | |
8361 | else | |
8362 | no_cache=1 | |
8363 | fi | |
8364 | ||
8365 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8366 | ||
8367 | fi; | |
8368 | ||
8369 | eval "$ac_cv_use_statbmp" | |
8370 | if test "$no_cache" != 1; then | |
8371 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8372 | fi | |
8373 | ||
8374 | if test "$wxUSE_STATBMP" = yes; then | |
8375 | echo "$as_me:$LINENO: result: yes" >&5 | |
8376 | echo "${ECHO_T}yes" >&6 | |
8377 | else | |
8378 | echo "$as_me:$LINENO: result: no" >&5 | |
8379 | echo "${ECHO_T}no" >&6 | |
8380 | fi | |
8381 | ||
8382 | ||
8383 | enablestring= | |
8384 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8385 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8386 | no_cache=0 | |
8387 | # Check whether --enable-statbox or --disable-statbox was given. | |
8388 | if test "${enable_statbox+set}" = set; then | |
8389 | enableval="$enable_statbox" | |
8390 | ||
8391 | if test "$enableval" = yes; then | |
8392 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8393 | else | |
8394 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8395 | fi | |
8396 | ||
8397 | else | |
8398 | ||
8399 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8400 | if test "x$LINE" != x ; then | |
8401 | eval "DEFAULT_$LINE" | |
8402 | else | |
8403 | no_cache=1 | |
8404 | fi | |
8405 | ||
8406 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8407 | ||
8408 | fi; | |
8409 | ||
8410 | eval "$ac_cv_use_statbox" | |
8411 | if test "$no_cache" != 1; then | |
8412 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8413 | fi | |
8414 | ||
8415 | if test "$wxUSE_STATBOX" = yes; then | |
8416 | echo "$as_me:$LINENO: result: yes" >&5 | |
8417 | echo "${ECHO_T}yes" >&6 | |
8418 | else | |
8419 | echo "$as_me:$LINENO: result: no" >&5 | |
8420 | echo "${ECHO_T}no" >&6 | |
8421 | fi | |
8422 | ||
8423 | ||
8424 | enablestring= | |
8425 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8426 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8427 | no_cache=0 | |
8428 | # Check whether --enable-statline or --disable-statline was given. | |
8429 | if test "${enable_statline+set}" = set; then | |
8430 | enableval="$enable_statline" | |
8431 | ||
8432 | if test "$enableval" = yes; then | |
8433 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8434 | else | |
8435 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8436 | fi | |
8437 | ||
8438 | else | |
8439 | ||
8440 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8441 | if test "x$LINE" != x ; then | |
8442 | eval "DEFAULT_$LINE" | |
8443 | else | |
8444 | no_cache=1 | |
8445 | fi | |
8446 | ||
8447 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8448 | ||
8449 | fi; | |
8450 | ||
8451 | eval "$ac_cv_use_statline" | |
8452 | if test "$no_cache" != 1; then | |
8453 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8454 | fi | |
8455 | ||
8456 | if test "$wxUSE_STATLINE" = yes; then | |
8457 | echo "$as_me:$LINENO: result: yes" >&5 | |
8458 | echo "${ECHO_T}yes" >&6 | |
8459 | else | |
8460 | echo "$as_me:$LINENO: result: no" >&5 | |
8461 | echo "${ECHO_T}no" >&6 | |
8462 | fi | |
8463 | ||
8464 | ||
8465 | enablestring= | |
8466 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8467 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8468 | no_cache=0 | |
8469 | # Check whether --enable-stattext or --disable-stattext was given. | |
8470 | if test "${enable_stattext+set}" = set; then | |
8471 | enableval="$enable_stattext" | |
8472 | ||
8473 | if test "$enableval" = yes; then | |
8474 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8475 | else | |
8476 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8477 | fi | |
8478 | ||
8479 | else | |
8480 | ||
8481 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8482 | if test "x$LINE" != x ; then | |
8483 | eval "DEFAULT_$LINE" | |
8484 | else | |
8485 | no_cache=1 | |
8486 | fi | |
8487 | ||
8488 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8489 | ||
8490 | fi; | |
8491 | ||
8492 | eval "$ac_cv_use_stattext" | |
8493 | if test "$no_cache" != 1; then | |
8494 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8495 | fi | |
8496 | ||
8497 | if test "$wxUSE_STATTEXT" = yes; then | |
8498 | echo "$as_me:$LINENO: result: yes" >&5 | |
8499 | echo "${ECHO_T}yes" >&6 | |
8500 | else | |
8501 | echo "$as_me:$LINENO: result: no" >&5 | |
8502 | echo "${ECHO_T}no" >&6 | |
8503 | fi | |
8504 | ||
8505 | ||
8506 | enablestring= | |
8507 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8508 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8509 | no_cache=0 | |
8510 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8511 | if test "${enable_statusbar+set}" = set; then | |
8512 | enableval="$enable_statusbar" | |
8513 | ||
8514 | if test "$enableval" = yes; then | |
8515 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8516 | else | |
8517 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8518 | fi | |
8519 | ||
8520 | else | |
8521 | ||
8522 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8523 | if test "x$LINE" != x ; then | |
8524 | eval "DEFAULT_$LINE" | |
8525 | else | |
8526 | no_cache=1 | |
8527 | fi | |
8528 | ||
8529 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8530 | ||
8531 | fi; | |
8532 | ||
8533 | eval "$ac_cv_use_statusbar" | |
8534 | if test "$no_cache" != 1; then | |
8535 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8536 | fi | |
8537 | ||
8538 | if test "$wxUSE_STATUSBAR" = yes; then | |
8539 | echo "$as_me:$LINENO: result: yes" >&5 | |
8540 | echo "${ECHO_T}yes" >&6 | |
8541 | else | |
8542 | echo "$as_me:$LINENO: result: no" >&5 | |
8543 | echo "${ECHO_T}no" >&6 | |
8544 | fi | |
8545 | ||
8546 | ||
8547 | enablestring= | |
8548 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8549 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8550 | no_cache=0 | |
8551 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8552 | if test "${enable_tabdialog+set}" = set; then | |
8553 | enableval="$enable_tabdialog" | |
8554 | ||
8555 | if test "$enableval" = yes; then | |
8556 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8557 | else | |
8558 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8559 | fi | |
8560 | ||
8561 | else | |
8562 | ||
8563 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8564 | if test "x$LINE" != x ; then | |
8565 | eval "DEFAULT_$LINE" | |
8566 | else | |
8567 | no_cache=1 | |
8568 | fi | |
8569 | ||
8570 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8571 | ||
8572 | fi; | |
8573 | ||
8574 | eval "$ac_cv_use_tabdialog" | |
8575 | if test "$no_cache" != 1; then | |
8576 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8577 | fi | |
8578 | ||
8579 | if test "$wxUSE_TABDIALOG" = yes; then | |
8580 | echo "$as_me:$LINENO: result: yes" >&5 | |
8581 | echo "${ECHO_T}yes" >&6 | |
8582 | else | |
8583 | echo "$as_me:$LINENO: result: no" >&5 | |
8584 | echo "${ECHO_T}no" >&6 | |
8585 | fi | |
8586 | ||
8587 | ||
8588 | enablestring= | |
8589 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8590 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8591 | no_cache=0 | |
8592 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8593 | if test "${enable_textctrl+set}" = set; then | |
8594 | enableval="$enable_textctrl" | |
8595 | ||
8596 | if test "$enableval" = yes; then | |
8597 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8598 | else | |
8599 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8600 | fi | |
8601 | ||
8602 | else | |
8603 | ||
8604 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8605 | if test "x$LINE" != x ; then | |
8606 | eval "DEFAULT_$LINE" | |
8607 | else | |
8608 | no_cache=1 | |
8609 | fi | |
8610 | ||
8611 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8612 | ||
8613 | fi; | |
8614 | ||
8615 | eval "$ac_cv_use_textctrl" | |
8616 | if test "$no_cache" != 1; then | |
8617 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8618 | fi | |
8619 | ||
8620 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8621 | echo "$as_me:$LINENO: result: yes" >&5 | |
8622 | echo "${ECHO_T}yes" >&6 | |
8623 | else | |
8624 | echo "$as_me:$LINENO: result: no" >&5 | |
8625 | echo "${ECHO_T}no" >&6 | |
8626 | fi | |
8627 | ||
8628 | ||
8629 | enablestring= | |
8630 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8631 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8632 | no_cache=0 | |
8633 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8634 | if test "${enable_togglebtn+set}" = set; then | |
8635 | enableval="$enable_togglebtn" | |
8636 | ||
8637 | if test "$enableval" = yes; then | |
8638 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8639 | else | |
8640 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8641 | fi | |
8642 | ||
8643 | else | |
8644 | ||
8645 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8646 | if test "x$LINE" != x ; then | |
8647 | eval "DEFAULT_$LINE" | |
8648 | else | |
8649 | no_cache=1 | |
8650 | fi | |
8651 | ||
8652 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8653 | ||
8654 | fi; | |
8655 | ||
8656 | eval "$ac_cv_use_togglebtn" | |
8657 | if test "$no_cache" != 1; then | |
8658 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8659 | fi | |
8660 | ||
8661 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8662 | echo "$as_me:$LINENO: result: yes" >&5 | |
8663 | echo "${ECHO_T}yes" >&6 | |
8664 | else | |
8665 | echo "$as_me:$LINENO: result: no" >&5 | |
8666 | echo "${ECHO_T}no" >&6 | |
8667 | fi | |
8668 | ||
8669 | ||
8670 | enablestring= | |
8671 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8672 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8673 | no_cache=0 | |
8674 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8675 | if test "${enable_toolbar+set}" = set; then | |
8676 | enableval="$enable_toolbar" | |
8677 | ||
8678 | if test "$enableval" = yes; then | |
8679 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8680 | else | |
8681 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8682 | fi | |
8683 | ||
8684 | else | |
8685 | ||
8686 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8687 | if test "x$LINE" != x ; then | |
8688 | eval "DEFAULT_$LINE" | |
8689 | else | |
8690 | no_cache=1 | |
8691 | fi | |
8692 | ||
8693 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8694 | ||
8695 | fi; | |
8696 | ||
8697 | eval "$ac_cv_use_toolbar" | |
8698 | if test "$no_cache" != 1; then | |
8699 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8700 | fi | |
8701 | ||
8702 | if test "$wxUSE_TOOLBAR" = yes; then | |
8703 | echo "$as_me:$LINENO: result: yes" >&5 | |
8704 | echo "${ECHO_T}yes" >&6 | |
8705 | else | |
8706 | echo "$as_me:$LINENO: result: no" >&5 | |
8707 | echo "${ECHO_T}no" >&6 | |
8708 | fi | |
8709 | ||
8710 | ||
8711 | enablestring= | |
8712 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8713 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8714 | no_cache=0 | |
8715 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8716 | if test "${enable_tbarnative+set}" = set; then | |
8717 | enableval="$enable_tbarnative" | |
8718 | ||
8719 | if test "$enableval" = yes; then | |
8720 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8721 | else | |
8722 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8723 | fi | |
8724 | ||
8725 | else | |
8726 | ||
8727 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8728 | if test "x$LINE" != x ; then | |
8729 | eval "DEFAULT_$LINE" | |
8730 | else | |
8731 | no_cache=1 | |
8732 | fi | |
8733 | ||
8734 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8735 | ||
8736 | fi; | |
8737 | ||
8738 | eval "$ac_cv_use_tbarnative" | |
8739 | if test "$no_cache" != 1; then | |
8740 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8741 | fi | |
8742 | ||
8743 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8744 | echo "$as_me:$LINENO: result: yes" >&5 | |
8745 | echo "${ECHO_T}yes" >&6 | |
8746 | else | |
8747 | echo "$as_me:$LINENO: result: no" >&5 | |
8748 | echo "${ECHO_T}no" >&6 | |
8749 | fi | |
8750 | ||
8751 | ||
8752 | enablestring= | |
8753 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8754 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8755 | no_cache=0 | |
8756 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8757 | if test "${enable_tbarsmpl+set}" = set; then | |
8758 | enableval="$enable_tbarsmpl" | |
8759 | ||
8760 | if test "$enableval" = yes; then | |
8761 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8762 | else | |
8763 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8764 | fi | |
8765 | ||
8766 | else | |
8767 | ||
8768 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8769 | if test "x$LINE" != x ; then | |
8770 | eval "DEFAULT_$LINE" | |
8771 | else | |
8772 | no_cache=1 | |
8773 | fi | |
8774 | ||
8775 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8776 | ||
8777 | fi; | |
8778 | ||
8779 | eval "$ac_cv_use_tbarsmpl" | |
8780 | if test "$no_cache" != 1; then | |
8781 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8782 | fi | |
8783 | ||
8784 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8785 | echo "$as_me:$LINENO: result: yes" >&5 | |
8786 | echo "${ECHO_T}yes" >&6 | |
8787 | else | |
8788 | echo "$as_me:$LINENO: result: no" >&5 | |
8789 | echo "${ECHO_T}no" >&6 | |
8790 | fi | |
8791 | ||
8792 | ||
8793 | enablestring= | |
8794 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8795 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8796 | no_cache=0 | |
8797 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8798 | if test "${enable_treectrl+set}" = set; then | |
8799 | enableval="$enable_treectrl" | |
8800 | ||
8801 | if test "$enableval" = yes; then | |
8802 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8803 | else | |
8804 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8805 | fi | |
8806 | ||
8807 | else | |
8808 | ||
8809 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8810 | if test "x$LINE" != x ; then | |
8811 | eval "DEFAULT_$LINE" | |
8812 | else | |
8813 | no_cache=1 | |
8814 | fi | |
8815 | ||
8816 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8817 | ||
8818 | fi; | |
8819 | ||
8820 | eval "$ac_cv_use_treectrl" | |
8821 | if test "$no_cache" != 1; then | |
8822 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8823 | fi | |
8824 | ||
8825 | if test "$wxUSE_TREECTRL" = yes; then | |
8826 | echo "$as_me:$LINENO: result: yes" >&5 | |
8827 | echo "${ECHO_T}yes" >&6 | |
8828 | else | |
8829 | echo "$as_me:$LINENO: result: no" >&5 | |
8830 | echo "${ECHO_T}no" >&6 | |
8831 | fi | |
8832 | ||
8833 | ||
8834 | enablestring= | |
8835 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8836 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8837 | no_cache=0 | |
8838 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8839 | if test "${enable_tipwindow+set}" = set; then | |
8840 | enableval="$enable_tipwindow" | |
8841 | ||
8842 | if test "$enableval" = yes; then | |
8843 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8844 | else | |
8845 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8846 | fi | |
8847 | ||
8848 | else | |
8849 | ||
8850 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8851 | if test "x$LINE" != x ; then | |
8852 | eval "DEFAULT_$LINE" | |
8853 | else | |
8854 | no_cache=1 | |
8855 | fi | |
8856 | ||
8857 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8858 | ||
8859 | fi; | |
8860 | ||
8861 | eval "$ac_cv_use_tipwindow" | |
8862 | if test "$no_cache" != 1; then | |
8863 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8864 | fi | |
8865 | ||
8866 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8867 | echo "$as_me:$LINENO: result: yes" >&5 | |
8868 | echo "${ECHO_T}yes" >&6 | |
8869 | else | |
8870 | echo "$as_me:$LINENO: result: no" >&5 | |
8871 | echo "${ECHO_T}no" >&6 | |
8872 | fi | |
8873 | ||
8874 | ||
8875 | enablestring= | |
8876 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8877 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8878 | no_cache=0 | |
8879 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8880 | if test "${enable_popupwin+set}" = set; then | |
8881 | enableval="$enable_popupwin" | |
8882 | ||
8883 | if test "$enableval" = yes; then | |
8884 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8885 | else | |
8886 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8887 | fi | |
8888 | ||
8889 | else | |
8890 | ||
8891 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8892 | if test "x$LINE" != x ; then | |
8893 | eval "DEFAULT_$LINE" | |
8894 | else | |
8895 | no_cache=1 | |
8896 | fi | |
8897 | ||
8898 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8899 | ||
8900 | fi; | |
8901 | ||
8902 | eval "$ac_cv_use_popupwin" | |
8903 | if test "$no_cache" != 1; then | |
8904 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8905 | fi | |
8906 | ||
8907 | if test "$wxUSE_POPUPWIN" = yes; then | |
8908 | echo "$as_me:$LINENO: result: yes" >&5 | |
8909 | echo "${ECHO_T}yes" >&6 | |
8910 | else | |
8911 | echo "$as_me:$LINENO: result: no" >&5 | |
8912 | echo "${ECHO_T}no" >&6 | |
8913 | fi | |
8914 | ||
8915 | ||
8916 | ||
8917 | ||
8918 | enablestring= | |
8919 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8920 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8921 | no_cache=0 | |
8922 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8923 | if test "${enable_commondlg+set}" = set; then | |
8924 | enableval="$enable_commondlg" | |
8925 | ||
8926 | if test "$enableval" = yes; then | |
8927 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8928 | else | |
8929 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8930 | fi | |
8931 | ||
8932 | else | |
8933 | ||
8934 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8935 | if test "x$LINE" != x ; then | |
8936 | eval "DEFAULT_$LINE" | |
8937 | else | |
8938 | no_cache=1 | |
8939 | fi | |
8940 | ||
8941 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8942 | ||
8943 | fi; | |
8944 | ||
8945 | eval "$ac_cv_use_commondlg" | |
8946 | if test "$no_cache" != 1; then | |
8947 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8948 | fi | |
8949 | ||
8950 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8951 | echo "$as_me:$LINENO: result: yes" >&5 | |
8952 | echo "${ECHO_T}yes" >&6 | |
8953 | else | |
8954 | echo "$as_me:$LINENO: result: no" >&5 | |
8955 | echo "${ECHO_T}no" >&6 | |
8956 | fi | |
8957 | ||
8958 | ||
8959 | enablestring= | |
8960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8961 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8962 | no_cache=0 | |
8963 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8964 | if test "${enable_choicedlg+set}" = set; then | |
8965 | enableval="$enable_choicedlg" | |
8966 | ||
8967 | if test "$enableval" = yes; then | |
8968 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8969 | else | |
8970 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8971 | fi | |
8972 | ||
8973 | else | |
8974 | ||
8975 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8976 | if test "x$LINE" != x ; then | |
8977 | eval "DEFAULT_$LINE" | |
8978 | else | |
8979 | no_cache=1 | |
8980 | fi | |
8981 | ||
8982 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8983 | ||
8984 | fi; | |
8985 | ||
8986 | eval "$ac_cv_use_choicedlg" | |
8987 | if test "$no_cache" != 1; then | |
8988 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8989 | fi | |
8990 | ||
8991 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8992 | echo "$as_me:$LINENO: result: yes" >&5 | |
8993 | echo "${ECHO_T}yes" >&6 | |
8994 | else | |
8995 | echo "$as_me:$LINENO: result: no" >&5 | |
8996 | echo "${ECHO_T}no" >&6 | |
8997 | fi | |
8998 | ||
8999 | ||
9000 | enablestring= | |
9001 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9002 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9003 | no_cache=0 | |
9004 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9005 | if test "${enable_coldlg+set}" = set; then | |
9006 | enableval="$enable_coldlg" | |
9007 | ||
9008 | if test "$enableval" = yes; then | |
9009 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9010 | else | |
9011 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9012 | fi | |
9013 | ||
9014 | else | |
9015 | ||
9016 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9017 | if test "x$LINE" != x ; then | |
9018 | eval "DEFAULT_$LINE" | |
9019 | else | |
9020 | no_cache=1 | |
9021 | fi | |
9022 | ||
9023 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9024 | ||
9025 | fi; | |
9026 | ||
9027 | eval "$ac_cv_use_coldlg" | |
9028 | if test "$no_cache" != 1; then | |
9029 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9030 | fi | |
9031 | ||
9032 | if test "$wxUSE_COLOURDLG" = yes; then | |
9033 | echo "$as_me:$LINENO: result: yes" >&5 | |
9034 | echo "${ECHO_T}yes" >&6 | |
9035 | else | |
9036 | echo "$as_me:$LINENO: result: no" >&5 | |
9037 | echo "${ECHO_T}no" >&6 | |
9038 | fi | |
9039 | ||
9040 | ||
9041 | enablestring= | |
9042 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9043 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9044 | no_cache=0 | |
9045 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9046 | if test "${enable_filedlg+set}" = set; then | |
9047 | enableval="$enable_filedlg" | |
9048 | ||
9049 | if test "$enableval" = yes; then | |
9050 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9051 | else | |
9052 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9053 | fi | |
9054 | ||
9055 | else | |
9056 | ||
9057 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9058 | if test "x$LINE" != x ; then | |
9059 | eval "DEFAULT_$LINE" | |
9060 | else | |
9061 | no_cache=1 | |
9062 | fi | |
9063 | ||
9064 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9065 | ||
9066 | fi; | |
9067 | ||
9068 | eval "$ac_cv_use_filedlg" | |
9069 | if test "$no_cache" != 1; then | |
9070 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9071 | fi | |
9072 | ||
9073 | if test "$wxUSE_FILEDLG" = yes; then | |
9074 | echo "$as_me:$LINENO: result: yes" >&5 | |
9075 | echo "${ECHO_T}yes" >&6 | |
9076 | else | |
9077 | echo "$as_me:$LINENO: result: no" >&5 | |
9078 | echo "${ECHO_T}no" >&6 | |
9079 | fi | |
9080 | ||
9081 | ||
9082 | enablestring= | |
9083 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9084 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9085 | no_cache=0 | |
9086 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9087 | if test "${enable_finddlg+set}" = set; then | |
9088 | enableval="$enable_finddlg" | |
9089 | ||
9090 | if test "$enableval" = yes; then | |
9091 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9092 | else | |
9093 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9094 | fi | |
9095 | ||
9096 | else | |
9097 | ||
9098 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9099 | if test "x$LINE" != x ; then | |
9100 | eval "DEFAULT_$LINE" | |
9101 | else | |
9102 | no_cache=1 | |
9103 | fi | |
9104 | ||
9105 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9106 | ||
9107 | fi; | |
9108 | ||
9109 | eval "$ac_cv_use_finddlg" | |
9110 | if test "$no_cache" != 1; then | |
9111 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9112 | fi | |
9113 | ||
9114 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9115 | echo "$as_me:$LINENO: result: yes" >&5 | |
9116 | echo "${ECHO_T}yes" >&6 | |
9117 | else | |
9118 | echo "$as_me:$LINENO: result: no" >&5 | |
9119 | echo "${ECHO_T}no" >&6 | |
9120 | fi | |
9121 | ||
9122 | ||
9123 | enablestring= | |
9124 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9125 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9126 | no_cache=0 | |
9127 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9128 | if test "${enable_fontdlg+set}" = set; then | |
9129 | enableval="$enable_fontdlg" | |
9130 | ||
9131 | if test "$enableval" = yes; then | |
9132 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9133 | else | |
9134 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9135 | fi | |
9136 | ||
9137 | else | |
9138 | ||
9139 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9140 | if test "x$LINE" != x ; then | |
9141 | eval "DEFAULT_$LINE" | |
9142 | else | |
9143 | no_cache=1 | |
9144 | fi | |
9145 | ||
9146 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9147 | ||
9148 | fi; | |
9149 | ||
9150 | eval "$ac_cv_use_fontdlg" | |
9151 | if test "$no_cache" != 1; then | |
9152 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9153 | fi | |
9154 | ||
9155 | if test "$wxUSE_FONTDLG" = yes; then | |
9156 | echo "$as_me:$LINENO: result: yes" >&5 | |
9157 | echo "${ECHO_T}yes" >&6 | |
9158 | else | |
9159 | echo "$as_me:$LINENO: result: no" >&5 | |
9160 | echo "${ECHO_T}no" >&6 | |
9161 | fi | |
9162 | ||
9163 | ||
9164 | enablestring= | |
9165 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9166 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9167 | no_cache=0 | |
9168 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9169 | if test "${enable_dirdlg+set}" = set; then | |
9170 | enableval="$enable_dirdlg" | |
9171 | ||
9172 | if test "$enableval" = yes; then | |
9173 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9174 | else | |
9175 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9176 | fi | |
9177 | ||
9178 | else | |
9179 | ||
9180 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9181 | if test "x$LINE" != x ; then | |
9182 | eval "DEFAULT_$LINE" | |
9183 | else | |
9184 | no_cache=1 | |
9185 | fi | |
9186 | ||
9187 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9188 | ||
9189 | fi; | |
9190 | ||
9191 | eval "$ac_cv_use_dirdlg" | |
9192 | if test "$no_cache" != 1; then | |
9193 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9194 | fi | |
9195 | ||
9196 | if test "$wxUSE_DIRDLG" = yes; then | |
9197 | echo "$as_me:$LINENO: result: yes" >&5 | |
9198 | echo "${ECHO_T}yes" >&6 | |
9199 | else | |
9200 | echo "$as_me:$LINENO: result: no" >&5 | |
9201 | echo "${ECHO_T}no" >&6 | |
9202 | fi | |
9203 | ||
9204 | ||
9205 | enablestring= | |
9206 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9207 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9208 | no_cache=0 | |
9209 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9210 | if test "${enable_msgdlg+set}" = set; then | |
9211 | enableval="$enable_msgdlg" | |
9212 | ||
9213 | if test "$enableval" = yes; then | |
9214 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9215 | else | |
9216 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9217 | fi | |
9218 | ||
9219 | else | |
9220 | ||
9221 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9222 | if test "x$LINE" != x ; then | |
9223 | eval "DEFAULT_$LINE" | |
9224 | else | |
9225 | no_cache=1 | |
9226 | fi | |
9227 | ||
9228 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9229 | ||
9230 | fi; | |
9231 | ||
9232 | eval "$ac_cv_use_msgdlg" | |
9233 | if test "$no_cache" != 1; then | |
9234 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9235 | fi | |
9236 | ||
9237 | if test "$wxUSE_MSGDLG" = yes; then | |
9238 | echo "$as_me:$LINENO: result: yes" >&5 | |
9239 | echo "${ECHO_T}yes" >&6 | |
9240 | else | |
9241 | echo "$as_me:$LINENO: result: no" >&5 | |
9242 | echo "${ECHO_T}no" >&6 | |
9243 | fi | |
9244 | ||
9245 | ||
9246 | enablestring= | |
9247 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9248 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9249 | no_cache=0 | |
9250 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9251 | if test "${enable_numberdlg+set}" = set; then | |
9252 | enableval="$enable_numberdlg" | |
9253 | ||
9254 | if test "$enableval" = yes; then | |
9255 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9256 | else | |
9257 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9258 | fi | |
9259 | ||
9260 | else | |
9261 | ||
9262 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9263 | if test "x$LINE" != x ; then | |
9264 | eval "DEFAULT_$LINE" | |
9265 | else | |
9266 | no_cache=1 | |
9267 | fi | |
9268 | ||
9269 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9270 | ||
9271 | fi; | |
9272 | ||
9273 | eval "$ac_cv_use_numberdlg" | |
9274 | if test "$no_cache" != 1; then | |
9275 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9276 | fi | |
9277 | ||
9278 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9279 | echo "$as_me:$LINENO: result: yes" >&5 | |
9280 | echo "${ECHO_T}yes" >&6 | |
9281 | else | |
9282 | echo "$as_me:$LINENO: result: no" >&5 | |
9283 | echo "${ECHO_T}no" >&6 | |
9284 | fi | |
9285 | ||
9286 | ||
9287 | enablestring= | |
9288 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9289 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9290 | no_cache=0 | |
9291 | # Check whether --enable-splash or --disable-splash was given. | |
9292 | if test "${enable_splash+set}" = set; then | |
9293 | enableval="$enable_splash" | |
9294 | ||
9295 | if test "$enableval" = yes; then | |
9296 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9297 | else | |
9298 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9299 | fi | |
9300 | ||
9301 | else | |
9302 | ||
9303 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9304 | if test "x$LINE" != x ; then | |
9305 | eval "DEFAULT_$LINE" | |
9306 | else | |
9307 | no_cache=1 | |
9308 | fi | |
9309 | ||
9310 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9311 | ||
9312 | fi; | |
9313 | ||
9314 | eval "$ac_cv_use_splash" | |
9315 | if test "$no_cache" != 1; then | |
9316 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9317 | fi | |
9318 | ||
9319 | if test "$wxUSE_SPLASH" = yes; then | |
9320 | echo "$as_me:$LINENO: result: yes" >&5 | |
9321 | echo "${ECHO_T}yes" >&6 | |
9322 | else | |
9323 | echo "$as_me:$LINENO: result: no" >&5 | |
9324 | echo "${ECHO_T}no" >&6 | |
9325 | fi | |
9326 | ||
9327 | ||
9328 | enablestring= | |
9329 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9330 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9331 | no_cache=0 | |
9332 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9333 | if test "${enable_textdlg+set}" = set; then | |
9334 | enableval="$enable_textdlg" | |
9335 | ||
9336 | if test "$enableval" = yes; then | |
9337 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9338 | else | |
9339 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9340 | fi | |
9341 | ||
9342 | else | |
9343 | ||
9344 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9345 | if test "x$LINE" != x ; then | |
9346 | eval "DEFAULT_$LINE" | |
9347 | else | |
9348 | no_cache=1 | |
9349 | fi | |
9350 | ||
9351 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9352 | ||
9353 | fi; | |
9354 | ||
9355 | eval "$ac_cv_use_textdlg" | |
9356 | if test "$no_cache" != 1; then | |
9357 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9358 | fi | |
9359 | ||
9360 | if test "$wxUSE_TEXTDLG" = yes; then | |
9361 | echo "$as_me:$LINENO: result: yes" >&5 | |
9362 | echo "${ECHO_T}yes" >&6 | |
9363 | else | |
9364 | echo "$as_me:$LINENO: result: no" >&5 | |
9365 | echo "${ECHO_T}no" >&6 | |
9366 | fi | |
9367 | ||
9368 | ||
9369 | enablestring= | |
9370 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9371 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9372 | no_cache=0 | |
9373 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9374 | if test "${enable_tipdlg+set}" = set; then | |
9375 | enableval="$enable_tipdlg" | |
9376 | ||
9377 | if test "$enableval" = yes; then | |
9378 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9379 | else | |
9380 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9381 | fi | |
9382 | ||
9383 | else | |
9384 | ||
9385 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9386 | if test "x$LINE" != x ; then | |
9387 | eval "DEFAULT_$LINE" | |
9388 | else | |
9389 | no_cache=1 | |
9390 | fi | |
9391 | ||
9392 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9393 | ||
9394 | fi; | |
9395 | ||
9396 | eval "$ac_cv_use_tipdlg" | |
9397 | if test "$no_cache" != 1; then | |
9398 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9399 | fi | |
9400 | ||
9401 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9402 | echo "$as_me:$LINENO: result: yes" >&5 | |
9403 | echo "${ECHO_T}yes" >&6 | |
9404 | else | |
9405 | echo "$as_me:$LINENO: result: no" >&5 | |
9406 | echo "${ECHO_T}no" >&6 | |
9407 | fi | |
9408 | ||
9409 | ||
9410 | enablestring= | |
9411 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9412 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9413 | no_cache=0 | |
9414 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9415 | if test "${enable_progressdlg+set}" = set; then | |
9416 | enableval="$enable_progressdlg" | |
9417 | ||
9418 | if test "$enableval" = yes; then | |
9419 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9420 | else | |
9421 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9422 | fi | |
9423 | ||
9424 | else | |
9425 | ||
9426 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9427 | if test "x$LINE" != x ; then | |
9428 | eval "DEFAULT_$LINE" | |
9429 | else | |
9430 | no_cache=1 | |
9431 | fi | |
9432 | ||
9433 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9434 | ||
9435 | fi; | |
9436 | ||
9437 | eval "$ac_cv_use_progressdlg" | |
9438 | if test "$no_cache" != 1; then | |
9439 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9440 | fi | |
9441 | ||
9442 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9443 | echo "$as_me:$LINENO: result: yes" >&5 | |
9444 | echo "${ECHO_T}yes" >&6 | |
9445 | else | |
9446 | echo "$as_me:$LINENO: result: no" >&5 | |
9447 | echo "${ECHO_T}no" >&6 | |
9448 | fi | |
9449 | ||
9450 | ||
9451 | enablestring= | |
9452 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9453 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9454 | no_cache=0 | |
9455 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9456 | if test "${enable_wizarddlg+set}" = set; then | |
9457 | enableval="$enable_wizarddlg" | |
9458 | ||
9459 | if test "$enableval" = yes; then | |
9460 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9461 | else | |
9462 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9463 | fi | |
9464 | ||
9465 | else | |
9466 | ||
9467 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9468 | if test "x$LINE" != x ; then | |
9469 | eval "DEFAULT_$LINE" | |
9470 | else | |
9471 | no_cache=1 | |
9472 | fi | |
9473 | ||
9474 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9475 | ||
9476 | fi; | |
9477 | ||
9478 | eval "$ac_cv_use_wizarddlg" | |
9479 | if test "$no_cache" != 1; then | |
9480 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9481 | fi | |
9482 | ||
9483 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9484 | echo "$as_me:$LINENO: result: yes" >&5 | |
9485 | echo "${ECHO_T}yes" >&6 | |
9486 | else | |
9487 | echo "$as_me:$LINENO: result: no" >&5 | |
9488 | echo "${ECHO_T}no" >&6 | |
9489 | fi | |
9490 | ||
9491 | ||
9492 | ||
9493 | ||
9494 | enablestring= | |
9495 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9496 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9497 | no_cache=0 | |
9498 | # Check whether --enable-menus or --disable-menus was given. | |
9499 | if test "${enable_menus+set}" = set; then | |
9500 | enableval="$enable_menus" | |
9501 | ||
9502 | if test "$enableval" = yes; then | |
9503 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9504 | else | |
9505 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9506 | fi | |
9507 | ||
9508 | else | |
9509 | ||
9510 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9511 | if test "x$LINE" != x ; then | |
9512 | eval "DEFAULT_$LINE" | |
9513 | else | |
9514 | no_cache=1 | |
9515 | fi | |
9516 | ||
9517 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9518 | ||
9519 | fi; | |
9520 | ||
9521 | eval "$ac_cv_use_menus" | |
9522 | if test "$no_cache" != 1; then | |
9523 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9524 | fi | |
9525 | ||
9526 | if test "$wxUSE_MENUS" = yes; then | |
9527 | echo "$as_me:$LINENO: result: yes" >&5 | |
9528 | echo "${ECHO_T}yes" >&6 | |
9529 | else | |
9530 | echo "$as_me:$LINENO: result: no" >&5 | |
9531 | echo "${ECHO_T}no" >&6 | |
9532 | fi | |
9533 | ||
9534 | ||
9535 | enablestring= | |
9536 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9537 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9538 | no_cache=0 | |
9539 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9540 | if test "${enable_miniframe+set}" = set; then | |
9541 | enableval="$enable_miniframe" | |
9542 | ||
9543 | if test "$enableval" = yes; then | |
9544 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9545 | else | |
9546 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9547 | fi | |
9548 | ||
9549 | else | |
9550 | ||
9551 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9552 | if test "x$LINE" != x ; then | |
9553 | eval "DEFAULT_$LINE" | |
9554 | else | |
9555 | no_cache=1 | |
9556 | fi | |
9557 | ||
9558 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9559 | ||
9560 | fi; | |
9561 | ||
9562 | eval "$ac_cv_use_miniframe" | |
9563 | if test "$no_cache" != 1; then | |
9564 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9565 | fi | |
9566 | ||
9567 | if test "$wxUSE_MINIFRAME" = yes; then | |
9568 | echo "$as_me:$LINENO: result: yes" >&5 | |
9569 | echo "${ECHO_T}yes" >&6 | |
9570 | else | |
9571 | echo "$as_me:$LINENO: result: no" >&5 | |
9572 | echo "${ECHO_T}no" >&6 | |
9573 | fi | |
9574 | ||
9575 | ||
9576 | enablestring= | |
9577 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9578 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9579 | no_cache=0 | |
9580 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9581 | if test "${enable_tooltips+set}" = set; then | |
9582 | enableval="$enable_tooltips" | |
9583 | ||
9584 | if test "$enableval" = yes; then | |
9585 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9586 | else | |
9587 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9588 | fi | |
9589 | ||
9590 | else | |
9591 | ||
9592 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9593 | if test "x$LINE" != x ; then | |
9594 | eval "DEFAULT_$LINE" | |
9595 | else | |
9596 | no_cache=1 | |
9597 | fi | |
9598 | ||
9599 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9600 | ||
9601 | fi; | |
9602 | ||
9603 | eval "$ac_cv_use_tooltips" | |
9604 | if test "$no_cache" != 1; then | |
9605 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9606 | fi | |
9607 | ||
9608 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9609 | echo "$as_me:$LINENO: result: yes" >&5 | |
9610 | echo "${ECHO_T}yes" >&6 | |
9611 | else | |
9612 | echo "$as_me:$LINENO: result: no" >&5 | |
9613 | echo "${ECHO_T}no" >&6 | |
9614 | fi | |
9615 | ||
9616 | ||
9617 | enablestring= | |
9618 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9619 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9620 | no_cache=0 | |
9621 | # Check whether --enable-splines or --disable-splines was given. | |
9622 | if test "${enable_splines+set}" = set; then | |
9623 | enableval="$enable_splines" | |
9624 | ||
9625 | if test "$enableval" = yes; then | |
9626 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9627 | else | |
9628 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9629 | fi | |
9630 | ||
9631 | else | |
9632 | ||
9633 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9634 | if test "x$LINE" != x ; then | |
9635 | eval "DEFAULT_$LINE" | |
9636 | else | |
9637 | no_cache=1 | |
9638 | fi | |
9639 | ||
9640 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9641 | ||
9642 | fi; | |
9643 | ||
9644 | eval "$ac_cv_use_splines" | |
9645 | if test "$no_cache" != 1; then | |
9646 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9647 | fi | |
9648 | ||
9649 | if test "$wxUSE_SPLINES" = yes; then | |
9650 | echo "$as_me:$LINENO: result: yes" >&5 | |
9651 | echo "${ECHO_T}yes" >&6 | |
9652 | else | |
9653 | echo "$as_me:$LINENO: result: no" >&5 | |
9654 | echo "${ECHO_T}no" >&6 | |
9655 | fi | |
9656 | ||
9657 | ||
9658 | enablestring= | |
9659 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9660 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9661 | no_cache=0 | |
9662 | # Check whether --enable-validators or --disable-validators was given. | |
9663 | if test "${enable_validators+set}" = set; then | |
9664 | enableval="$enable_validators" | |
9665 | ||
9666 | if test "$enableval" = yes; then | |
9667 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9668 | else | |
9669 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9670 | fi | |
9671 | ||
9672 | else | |
9673 | ||
9674 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9675 | if test "x$LINE" != x ; then | |
9676 | eval "DEFAULT_$LINE" | |
9677 | else | |
9678 | no_cache=1 | |
9679 | fi | |
9680 | ||
9681 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9682 | ||
9683 | fi; | |
9684 | ||
9685 | eval "$ac_cv_use_validators" | |
9686 | if test "$no_cache" != 1; then | |
9687 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9688 | fi | |
9689 | ||
9690 | if test "$wxUSE_VALIDATORS" = yes; then | |
9691 | echo "$as_me:$LINENO: result: yes" >&5 | |
9692 | echo "${ECHO_T}yes" >&6 | |
9693 | else | |
9694 | echo "$as_me:$LINENO: result: no" >&5 | |
9695 | echo "${ECHO_T}no" >&6 | |
9696 | fi | |
9697 | ||
9698 | ||
9699 | enablestring= | |
9700 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9701 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9702 | no_cache=0 | |
9703 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9704 | if test "${enable_busyinfo+set}" = set; then | |
9705 | enableval="$enable_busyinfo" | |
9706 | ||
9707 | if test "$enableval" = yes; then | |
9708 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9709 | else | |
9710 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9711 | fi | |
9712 | ||
9713 | else | |
9714 | ||
9715 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9716 | if test "x$LINE" != x ; then | |
9717 | eval "DEFAULT_$LINE" | |
9718 | else | |
9719 | no_cache=1 | |
9720 | fi | |
9721 | ||
9722 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9723 | ||
9724 | fi; | |
9725 | ||
9726 | eval "$ac_cv_use_busyinfo" | |
9727 | if test "$no_cache" != 1; then | |
9728 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9729 | fi | |
9730 | ||
9731 | if test "$wxUSE_BUSYINFO" = yes; then | |
9732 | echo "$as_me:$LINENO: result: yes" >&5 | |
9733 | echo "${ECHO_T}yes" >&6 | |
9734 | else | |
9735 | echo "$as_me:$LINENO: result: no" >&5 | |
9736 | echo "${ECHO_T}no" >&6 | |
9737 | fi | |
9738 | ||
9739 | ||
9740 | enablestring= | |
9741 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9742 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9743 | no_cache=0 | |
9744 | # Check whether --enable-joystick or --disable-joystick was given. | |
9745 | if test "${enable_joystick+set}" = set; then | |
9746 | enableval="$enable_joystick" | |
9747 | ||
9748 | if test "$enableval" = yes; then | |
9749 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9750 | else | |
9751 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9752 | fi | |
9753 | ||
9754 | else | |
9755 | ||
9756 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9757 | if test "x$LINE" != x ; then | |
9758 | eval "DEFAULT_$LINE" | |
9759 | else | |
9760 | no_cache=1 | |
9761 | fi | |
9762 | ||
9763 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9764 | ||
9765 | fi; | |
9766 | ||
9767 | eval "$ac_cv_use_joystick" | |
9768 | if test "$no_cache" != 1; then | |
9769 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9770 | fi | |
9771 | ||
9772 | if test "$wxUSE_JOYSTICK" = yes; then | |
9773 | echo "$as_me:$LINENO: result: yes" >&5 | |
9774 | echo "${ECHO_T}yes" >&6 | |
9775 | else | |
9776 | echo "$as_me:$LINENO: result: no" >&5 | |
9777 | echo "${ECHO_T}no" >&6 | |
9778 | fi | |
9779 | ||
9780 | ||
9781 | enablestring= | |
9782 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9783 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9784 | no_cache=0 | |
9785 | # Check whether --enable-metafile or --disable-metafile was given. | |
9786 | if test "${enable_metafile+set}" = set; then | |
9787 | enableval="$enable_metafile" | |
9788 | ||
9789 | if test "$enableval" = yes; then | |
9790 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9791 | else | |
9792 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9793 | fi | |
9794 | ||
9795 | else | |
9796 | ||
9797 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9798 | if test "x$LINE" != x ; then | |
9799 | eval "DEFAULT_$LINE" | |
9800 | else | |
9801 | no_cache=1 | |
9802 | fi | |
9803 | ||
9804 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9805 | ||
9806 | fi; | |
9807 | ||
9808 | eval "$ac_cv_use_metafile" | |
9809 | if test "$no_cache" != 1; then | |
9810 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9811 | fi | |
9812 | ||
9813 | if test "$wxUSE_METAFILE" = yes; then | |
9814 | echo "$as_me:$LINENO: result: yes" >&5 | |
9815 | echo "${ECHO_T}yes" >&6 | |
9816 | else | |
9817 | echo "$as_me:$LINENO: result: no" >&5 | |
9818 | echo "${ECHO_T}no" >&6 | |
9819 | fi | |
9820 | ||
9821 | ||
9822 | enablestring= | |
9823 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9824 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9825 | no_cache=0 | |
9826 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9827 | if test "${enable_dragimage+set}" = set; then | |
9828 | enableval="$enable_dragimage" | |
9829 | ||
9830 | if test "$enableval" = yes; then | |
9831 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9832 | else | |
9833 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9834 | fi | |
9835 | ||
9836 | else | |
9837 | ||
9838 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9839 | if test "x$LINE" != x ; then | |
9840 | eval "DEFAULT_$LINE" | |
9841 | else | |
9842 | no_cache=1 | |
9843 | fi | |
9844 | ||
9845 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9846 | ||
9847 | fi; | |
9848 | ||
9849 | eval "$ac_cv_use_dragimage" | |
9850 | if test "$no_cache" != 1; then | |
9851 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9852 | fi | |
9853 | ||
9854 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9855 | echo "$as_me:$LINENO: result: yes" >&5 | |
9856 | echo "${ECHO_T}yes" >&6 | |
9857 | else | |
9858 | echo "$as_me:$LINENO: result: no" >&5 | |
9859 | echo "${ECHO_T}no" >&6 | |
9860 | fi | |
9861 | ||
9862 | ||
9863 | enablestring= | |
9864 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9865 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9866 | no_cache=0 | |
9867 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9868 | if test "${enable_accessibility+set}" = set; then | |
9869 | enableval="$enable_accessibility" | |
9870 | ||
9871 | if test "$enableval" = yes; then | |
9872 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9873 | else | |
9874 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9875 | fi | |
9876 | ||
9877 | else | |
9878 | ||
9879 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9880 | if test "x$LINE" != x ; then | |
9881 | eval "DEFAULT_$LINE" | |
9882 | else | |
9883 | no_cache=1 | |
9884 | fi | |
9885 | ||
9886 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9887 | ||
9888 | fi; | |
9889 | ||
9890 | eval "$ac_cv_use_accessibility" | |
9891 | if test "$no_cache" != 1; then | |
9892 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9893 | fi | |
9894 | ||
9895 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9896 | echo "$as_me:$LINENO: result: yes" >&5 | |
9897 | echo "${ECHO_T}yes" >&6 | |
9898 | else | |
9899 | echo "$as_me:$LINENO: result: no" >&5 | |
9900 | echo "${ECHO_T}no" >&6 | |
9901 | fi | |
9902 | ||
9903 | ||
9904 | ||
9905 | ||
9906 | enablestring= | |
9907 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9908 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9909 | no_cache=0 | |
9910 | # Check whether --enable-palette or --disable-palette was given. | |
9911 | if test "${enable_palette+set}" = set; then | |
9912 | enableval="$enable_palette" | |
9913 | ||
9914 | if test "$enableval" = yes; then | |
9915 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9916 | else | |
9917 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9918 | fi | |
9919 | ||
9920 | else | |
9921 | ||
9922 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9923 | if test "x$LINE" != x ; then | |
9924 | eval "DEFAULT_$LINE" | |
9925 | else | |
9926 | no_cache=1 | |
9927 | fi | |
9928 | ||
9929 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9930 | ||
9931 | fi; | |
9932 | ||
9933 | eval "$ac_cv_use_palette" | |
9934 | if test "$no_cache" != 1; then | |
9935 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9936 | fi | |
9937 | ||
9938 | if test "$wxUSE_PALETTE" = yes; then | |
9939 | echo "$as_me:$LINENO: result: yes" >&5 | |
9940 | echo "${ECHO_T}yes" >&6 | |
9941 | else | |
9942 | echo "$as_me:$LINENO: result: no" >&5 | |
9943 | echo "${ECHO_T}no" >&6 | |
9944 | fi | |
9945 | ||
9946 | ||
9947 | enablestring= | |
9948 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9949 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9950 | no_cache=0 | |
9951 | # Check whether --enable-image or --disable-image was given. | |
9952 | if test "${enable_image+set}" = set; then | |
9953 | enableval="$enable_image" | |
9954 | ||
9955 | if test "$enableval" = yes; then | |
9956 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9957 | else | |
9958 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9959 | fi | |
9960 | ||
9961 | else | |
9962 | ||
9963 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9964 | if test "x$LINE" != x ; then | |
9965 | eval "DEFAULT_$LINE" | |
9966 | else | |
9967 | no_cache=1 | |
9968 | fi | |
9969 | ||
9970 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9971 | ||
9972 | fi; | |
9973 | ||
9974 | eval "$ac_cv_use_image" | |
9975 | if test "$no_cache" != 1; then | |
9976 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9977 | fi | |
9978 | ||
9979 | if test "$wxUSE_IMAGE" = yes; then | |
9980 | echo "$as_me:$LINENO: result: yes" >&5 | |
9981 | echo "${ECHO_T}yes" >&6 | |
9982 | else | |
9983 | echo "$as_me:$LINENO: result: no" >&5 | |
9984 | echo "${ECHO_T}no" >&6 | |
9985 | fi | |
9986 | ||
9987 | ||
9988 | enablestring= | |
9989 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9990 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9991 | no_cache=0 | |
9992 | # Check whether --enable-gif or --disable-gif was given. | |
9993 | if test "${enable_gif+set}" = set; then | |
9994 | enableval="$enable_gif" | |
9995 | ||
9996 | if test "$enableval" = yes; then | |
9997 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9998 | else | |
9999 | ac_cv_use_gif='wxUSE_GIF=no' | |
10000 | fi | |
10001 | ||
10002 | else | |
10003 | ||
10004 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10005 | if test "x$LINE" != x ; then | |
10006 | eval "DEFAULT_$LINE" | |
10007 | else | |
10008 | no_cache=1 | |
10009 | fi | |
10010 | ||
10011 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10012 | ||
10013 | fi; | |
10014 | ||
10015 | eval "$ac_cv_use_gif" | |
10016 | if test "$no_cache" != 1; then | |
10017 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10018 | fi | |
10019 | ||
10020 | if test "$wxUSE_GIF" = yes; then | |
10021 | echo "$as_me:$LINENO: result: yes" >&5 | |
10022 | echo "${ECHO_T}yes" >&6 | |
10023 | else | |
10024 | echo "$as_me:$LINENO: result: no" >&5 | |
10025 | echo "${ECHO_T}no" >&6 | |
10026 | fi | |
10027 | ||
10028 | ||
10029 | enablestring= | |
10030 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10031 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10032 | no_cache=0 | |
10033 | # Check whether --enable-pcx or --disable-pcx was given. | |
10034 | if test "${enable_pcx+set}" = set; then | |
10035 | enableval="$enable_pcx" | |
10036 | ||
10037 | if test "$enableval" = yes; then | |
10038 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10039 | else | |
10040 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10041 | fi | |
10042 | ||
10043 | else | |
10044 | ||
10045 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10046 | if test "x$LINE" != x ; then | |
10047 | eval "DEFAULT_$LINE" | |
10048 | else | |
10049 | no_cache=1 | |
10050 | fi | |
10051 | ||
10052 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10053 | ||
10054 | fi; | |
10055 | ||
10056 | eval "$ac_cv_use_pcx" | |
10057 | if test "$no_cache" != 1; then | |
10058 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10059 | fi | |
10060 | ||
10061 | if test "$wxUSE_PCX" = yes; then | |
10062 | echo "$as_me:$LINENO: result: yes" >&5 | |
10063 | echo "${ECHO_T}yes" >&6 | |
10064 | else | |
10065 | echo "$as_me:$LINENO: result: no" >&5 | |
10066 | echo "${ECHO_T}no" >&6 | |
10067 | fi | |
10068 | ||
10069 | ||
10070 | enablestring= | |
10071 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10072 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10073 | no_cache=0 | |
10074 | # Check whether --enable-iff or --disable-iff was given. | |
10075 | if test "${enable_iff+set}" = set; then | |
10076 | enableval="$enable_iff" | |
10077 | ||
10078 | if test "$enableval" = yes; then | |
10079 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10080 | else | |
10081 | ac_cv_use_iff='wxUSE_IFF=no' | |
10082 | fi | |
10083 | ||
10084 | else | |
10085 | ||
10086 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10087 | if test "x$LINE" != x ; then | |
10088 | eval "DEFAULT_$LINE" | |
10089 | else | |
10090 | no_cache=1 | |
10091 | fi | |
10092 | ||
10093 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10094 | ||
10095 | fi; | |
10096 | ||
10097 | eval "$ac_cv_use_iff" | |
10098 | if test "$no_cache" != 1; then | |
10099 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10100 | fi | |
10101 | ||
10102 | if test "$wxUSE_IFF" = yes; then | |
10103 | echo "$as_me:$LINENO: result: yes" >&5 | |
10104 | echo "${ECHO_T}yes" >&6 | |
10105 | else | |
10106 | echo "$as_me:$LINENO: result: no" >&5 | |
10107 | echo "${ECHO_T}no" >&6 | |
10108 | fi | |
10109 | ||
10110 | ||
10111 | enablestring= | |
10112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10113 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10114 | no_cache=0 | |
10115 | # Check whether --enable-pnm or --disable-pnm was given. | |
10116 | if test "${enable_pnm+set}" = set; then | |
10117 | enableval="$enable_pnm" | |
10118 | ||
10119 | if test "$enableval" = yes; then | |
10120 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10121 | else | |
10122 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10123 | fi | |
10124 | ||
10125 | else | |
10126 | ||
10127 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10128 | if test "x$LINE" != x ; then | |
10129 | eval "DEFAULT_$LINE" | |
10130 | else | |
10131 | no_cache=1 | |
10132 | fi | |
10133 | ||
10134 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10135 | ||
10136 | fi; | |
10137 | ||
10138 | eval "$ac_cv_use_pnm" | |
10139 | if test "$no_cache" != 1; then | |
10140 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10141 | fi | |
10142 | ||
10143 | if test "$wxUSE_PNM" = yes; then | |
10144 | echo "$as_me:$LINENO: result: yes" >&5 | |
10145 | echo "${ECHO_T}yes" >&6 | |
10146 | else | |
10147 | echo "$as_me:$LINENO: result: no" >&5 | |
10148 | echo "${ECHO_T}no" >&6 | |
10149 | fi | |
10150 | ||
10151 | ||
10152 | enablestring= | |
10153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10154 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10155 | no_cache=0 | |
10156 | # Check whether --enable-xpm or --disable-xpm was given. | |
10157 | if test "${enable_xpm+set}" = set; then | |
10158 | enableval="$enable_xpm" | |
10159 | ||
10160 | if test "$enableval" = yes; then | |
10161 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10162 | else | |
10163 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10164 | fi | |
10165 | ||
10166 | else | |
10167 | ||
10168 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10169 | if test "x$LINE" != x ; then | |
10170 | eval "DEFAULT_$LINE" | |
10171 | else | |
10172 | no_cache=1 | |
10173 | fi | |
10174 | ||
10175 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10176 | ||
10177 | fi; | |
10178 | ||
10179 | eval "$ac_cv_use_xpm" | |
10180 | if test "$no_cache" != 1; then | |
10181 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10182 | fi | |
10183 | ||
10184 | if test "$wxUSE_XPM" = yes; then | |
10185 | echo "$as_me:$LINENO: result: yes" >&5 | |
10186 | echo "${ECHO_T}yes" >&6 | |
10187 | else | |
10188 | echo "$as_me:$LINENO: result: no" >&5 | |
10189 | echo "${ECHO_T}no" >&6 | |
10190 | fi | |
10191 | ||
10192 | ||
10193 | enablestring= | |
10194 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10195 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10196 | no_cache=0 | |
10197 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10198 | if test "${enable_ico_cur+set}" = set; then | |
10199 | enableval="$enable_ico_cur" | |
10200 | ||
10201 | if test "$enableval" = yes; then | |
10202 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10203 | else | |
10204 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10205 | fi | |
10206 | ||
10207 | else | |
10208 | ||
10209 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10210 | if test "x$LINE" != x ; then | |
10211 | eval "DEFAULT_$LINE" | |
10212 | else | |
10213 | no_cache=1 | |
10214 | fi | |
10215 | ||
10216 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10217 | ||
10218 | fi; | |
10219 | ||
10220 | eval "$ac_cv_use_ico_cur" | |
10221 | if test "$no_cache" != 1; then | |
10222 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10223 | fi | |
10224 | ||
10225 | if test "$wxUSE_ICO_CUR" = yes; then | |
10226 | echo "$as_me:$LINENO: result: yes" >&5 | |
10227 | echo "${ECHO_T}yes" >&6 | |
10228 | else | |
10229 | echo "$as_me:$LINENO: result: no" >&5 | |
10230 | echo "${ECHO_T}no" >&6 | |
10231 | fi | |
10232 | ||
10233 | ||
10234 | fi | |
10235 | ||
10236 | ||
10237 | ||
ceec2216 RL |
10238 | # Check whether --with-flavour or --without-flavour was given. |
10239 | if test "${with_flavour+set}" = set; then | |
10240 | withval="$with_flavour" | |
10241 | WX_FLAVOUR="$withval" | |
10242 | fi; | |
10243 | ||
10244 | ||
10245 | ||
a848cd7e SC |
10246 | enablestring= |
10247 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10248 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10249 | no_cache=0 | |
10250 | # Check whether --enable-official_build or --disable-official_build was given. | |
10251 | if test "${enable_official_build+set}" = set; then | |
10252 | enableval="$enable_official_build" | |
10253 | ||
10254 | if test "$enableval" = yes; then | |
10255 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10256 | else | |
10257 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10258 | fi | |
10259 | ||
10260 | else | |
10261 | ||
10262 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10263 | if test "x$LINE" != x ; then | |
10264 | eval "DEFAULT_$LINE" | |
10265 | else | |
10266 | no_cache=1 | |
10267 | fi | |
10268 | ||
10269 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10270 | ||
10271 | fi; | |
10272 | ||
10273 | eval "$ac_cv_use_official_build" | |
10274 | if test "$no_cache" != 1; then | |
10275 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10276 | fi | |
10277 | ||
10278 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10279 | echo "$as_me:$LINENO: result: yes" >&5 | |
10280 | echo "${ECHO_T}yes" >&6 | |
10281 | else | |
10282 | echo "$as_me:$LINENO: result: no" >&5 | |
10283 | echo "${ECHO_T}no" >&6 | |
10284 | fi | |
10285 | ||
10286 | # Check whether --enable-vendor or --disable-vendor was given. | |
10287 | if test "${enable_vendor+set}" = set; then | |
10288 | enableval="$enable_vendor" | |
10289 | VENDOR="$enableval" | |
10290 | fi; | |
10291 | if test "x$VENDOR" = "x"; then | |
10292 | VENDOR="custom" | |
10293 | fi | |
10294 | ||
a848cd7e SC |
10295 | |
10296 | ||
10297 | ||
10298 | echo "saving argument cache $wx_arg_cache_file" | |
10299 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10300 | ||
10301 | ||
10302 | ||
10303 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10304 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10305 | ||
10306 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10307 | if test "$wxUSE_WINE" = "yes"; then | |
10308 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10309 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10310 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10311 | wxUSE_SHARED=no | |
10312 | fi | |
10313 | ||
10314 | if test "$wxUSE_GUI" = "yes"; then | |
10315 | ||
10316 | if test "$USE_BEOS" = 1; then | |
10317 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10318 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10319 | { (exit 1); exit 1; }; } | |
10320 | fi | |
10321 | ||
10322 | if test "$TOOLKIT_GIVEN" = 1; then | |
10323 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10324 | var=wxUSE_$toolkit | |
10325 | eval "value=\$${var}" | |
10326 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10327 | done | |
10328 | else | |
10329 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10330 | if test "$has_toolkit_in_cache" != 1; then | |
10331 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10332 | else | |
10333 | var=DEFAULT_wxUSE_$toolkit | |
10334 | fi | |
10335 | eval "wxUSE_$toolkit=\$${var}" | |
10336 | done | |
10337 | fi | |
10338 | ||
10339 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10340 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10341 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10342 | ||
10343 | case "${host}" in | |
10344 | *-pc-os2_emx | *-pc-os2-emx ) | |
10345 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10346 | esac | |
10347 | ||
10348 | case "$NUM_TOOLKITS" in | |
10349 | 1) | |
10350 | ;; | |
10351 | 0) | |
10352 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10353 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10354 | { (exit 1); exit 1; }; } | |
10355 | ;; | |
10356 | *) | |
10357 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10358 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10359 | { (exit 1); exit 1; }; } | |
10360 | esac | |
10361 | ||
10362 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10363 | var=wxUSE_$toolkit | |
10364 | eval "value=\$${var}" | |
10365 | if test "x$value" != x; then | |
10366 | cache_var=CACHE_$toolkit | |
10367 | eval "cache=\$${cache_var}" | |
10368 | if test "$cache" = 1; then | |
10369 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10370 | fi | |
10371 | if test "$value" = 1; then | |
10372 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10373 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10374 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10375 | fi | |
10376 | fi | |
10377 | done | |
10378 | else | |
10379 | if test "x$host_alias" != "x"; then | |
10380 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10381 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10382 | else | |
10383 | echo "$as_me:$LINENO: result: base only" >&5 | |
10384 | echo "${ECHO_T}base only" >&6 | |
10385 | fi | |
10386 | fi | |
10387 | ||
10388 | wants_win32=0 | |
10389 | doesnt_want_win32=0 | |
10390 | case "${host}" in | |
10391 | *-*-cygwin*) | |
10392 | if test "$wxUSE_MSW" = 1 ; then | |
10393 | wants_win32=1 | |
10394 | else | |
10395 | doesnt_want_win32=1 | |
10396 | fi | |
10397 | ;; | |
10398 | *-*-mingw*) | |
10399 | wants_win32=1 | |
10400 | ;; | |
10401 | esac | |
10402 | ||
10403 | if test "$wxUSE_WINE" = "yes"; then | |
10404 | wants_win32=1 | |
10405 | CC=winegcc | |
10406 | CXX=wineg++ | |
10407 | RESCOMP=wrc | |
10408 | LDFLAGS_GUI="-mwindows" | |
10409 | fi | |
10410 | ||
10411 | if test "$wants_win32" = 1 ; then | |
10412 | USE_UNIX=0 | |
10413 | USE_WIN32=1 | |
10414 | cat >>confdefs.h <<\_ACEOF | |
10415 | #define __WIN32__ 1 | |
10416 | _ACEOF | |
10417 | ||
10418 | cat >>confdefs.h <<\_ACEOF | |
10419 | #define __WIN95__ 1 | |
10420 | _ACEOF | |
10421 | ||
10422 | cat >>confdefs.h <<\_ACEOF | |
10423 | #define __WINDOWS__ 1 | |
10424 | _ACEOF | |
10425 | ||
10426 | cat >>confdefs.h <<\_ACEOF | |
10427 | #define __GNUWIN32__ 1 | |
10428 | _ACEOF | |
10429 | ||
10430 | cat >>confdefs.h <<\_ACEOF | |
10431 | #define STRICT 1 | |
10432 | _ACEOF | |
10433 | ||
10434 | cat >>confdefs.h <<\_ACEOF | |
10435 | #define WINVER 0x0400 | |
10436 | _ACEOF | |
10437 | ||
10438 | fi | |
10439 | if test "$doesnt_want_win32" = 1 ; then | |
10440 | USE_UNIX=1 | |
10441 | USE_WIN32=0 | |
10442 | fi | |
10443 | ||
10444 | if test "$USE_UNIX" = 1 ; then | |
10445 | wxUSE_UNIX=yes | |
10446 | cat >>confdefs.h <<\_ACEOF | |
10447 | #define __UNIX__ 1 | |
10448 | _ACEOF | |
10449 | ||
10450 | fi | |
10451 | ||
10452 | ||
10453 | cat >confcache <<\_ACEOF | |
10454 | # This file is a shell script that caches the results of configure | |
10455 | # tests run on this system so they can be shared between configure | |
10456 | # scripts and configure runs, see configure's option --config-cache. | |
10457 | # It is not useful on other systems. If it contains results you don't | |
10458 | # want to keep, you may remove or edit it. | |
10459 | # | |
10460 | # config.status only pays attention to the cache file if you give it | |
10461 | # the --recheck option to rerun configure. | |
10462 | # | |
10463 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10464 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10465 | # following values. | |
10466 | ||
10467 | _ACEOF | |
10468 | ||
10469 | # The following way of writing the cache mishandles newlines in values, | |
10470 | # but we know of no workaround that is simple, portable, and efficient. | |
10471 | # So, don't put newlines in cache variables' values. | |
10472 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10473 | # and sets the high bit in the cache file unless we assign to the vars. | |
10474 | { | |
10475 | (set) 2>&1 | | |
10476 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10477 | *ac_space=\ *) | |
10478 | # `set' does not quote correctly, so add quotes (double-quote | |
10479 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10480 | sed -n \ | |
ac1cb8d3 VS |
10481 | "s/'/'\\\\''/g; |
10482 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10483 | ;; |
10484 | *) | |
10485 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10486 | sed -n \ | |
ac1cb8d3 | 10487 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10488 | ;; |
10489 | esac; | |
10490 | } | | |
10491 | sed ' | |
10492 | t clear | |
10493 | : clear | |
10494 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10495 | t end | |
10496 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10497 | : end' >>confcache | |
10498 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10499 | if test -w $cache_file; then | |
10500 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10501 | cat confcache >$cache_file | |
10502 | else | |
10503 | echo "not updating unwritable cache $cache_file" | |
10504 | fi | |
10505 | fi | |
10506 | rm -f confcache | |
10507 | ||
10508 | if test "$build" != "$host" ; then | |
1e9e8aba | 10509 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then |
a848cd7e SC |
10510 | CC=$host_alias-gcc |
10511 | CXX=$host_alias-c++ | |
10512 | AR=$host_alias-ar | |
10513 | RANLIB=$host_alias-ranlib | |
10514 | DLLTOOL=$host_alias-dlltool | |
10515 | RESCOMP=$host_alias-windres | |
a848cd7e | 10516 | STRIP=$host_alias-strip |
1e9e8aba DE |
10517 | elif test "x$CC" '!=' "x"; then |
10518 | echo "You set CC, I assume you know what you are doing." | |
a848cd7e SC |
10519 | else |
10520 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10521 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10522 | { (exit 1); exit 1; }; } | |
10523 | fi | |
10524 | fi | |
10525 | ||
10526 | CFLAGS=${CFLAGS:=} | |
10527 | ac_ext=c | |
10528 | ac_cpp='$CPP $CPPFLAGS' | |
10529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10532 | if test -n "$ac_tool_prefix"; then | |
10533 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10534 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10537 | if test "${ac_cv_prog_CC+set}" = set; then | |
10538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10539 | else | |
10540 | if test -n "$CC"; then | |
10541 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10542 | else | |
10543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10544 | for as_dir in $PATH | |
10545 | do | |
10546 | IFS=$as_save_IFS | |
10547 | test -z "$as_dir" && as_dir=. | |
10548 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10550 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10552 | break 2 | |
10553 | fi | |
10554 | done | |
10555 | done | |
10556 | ||
10557 | fi | |
10558 | fi | |
10559 | CC=$ac_cv_prog_CC | |
10560 | if test -n "$CC"; then | |
10561 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10562 | echo "${ECHO_T}$CC" >&6 | |
10563 | else | |
10564 | echo "$as_me:$LINENO: result: no" >&5 | |
10565 | echo "${ECHO_T}no" >&6 | |
10566 | fi | |
10567 | ||
10568 | fi | |
10569 | if test -z "$ac_cv_prog_CC"; then | |
10570 | ac_ct_CC=$CC | |
10571 | # Extract the first word of "gcc", so it can be a program name with args. | |
10572 | set dummy gcc; ac_word=$2 | |
10573 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10575 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10577 | else | |
10578 | if test -n "$ac_ct_CC"; then | |
10579 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10580 | else | |
10581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10582 | for as_dir in $PATH | |
10583 | do | |
10584 | IFS=$as_save_IFS | |
10585 | test -z "$as_dir" && as_dir=. | |
10586 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10587 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10588 | ac_cv_prog_ac_ct_CC="gcc" | |
10589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10590 | break 2 | |
10591 | fi | |
10592 | done | |
10593 | done | |
10594 | ||
10595 | fi | |
10596 | fi | |
10597 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10598 | if test -n "$ac_ct_CC"; then | |
10599 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10600 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10601 | else | |
10602 | echo "$as_me:$LINENO: result: no" >&5 | |
10603 | echo "${ECHO_T}no" >&6 | |
10604 | fi | |
10605 | ||
10606 | CC=$ac_ct_CC | |
10607 | else | |
10608 | CC="$ac_cv_prog_CC" | |
10609 | fi | |
10610 | ||
10611 | if test -z "$CC"; then | |
10612 | if test -n "$ac_tool_prefix"; then | |
10613 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10614 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10615 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10617 | if test "${ac_cv_prog_CC+set}" = set; then | |
10618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10619 | else | |
10620 | if test -n "$CC"; then | |
10621 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10622 | else | |
10623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10624 | for as_dir in $PATH | |
10625 | do | |
10626 | IFS=$as_save_IFS | |
10627 | test -z "$as_dir" && as_dir=. | |
10628 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10629 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10630 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10631 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10632 | break 2 | |
10633 | fi | |
10634 | done | |
10635 | done | |
10636 | ||
10637 | fi | |
10638 | fi | |
10639 | CC=$ac_cv_prog_CC | |
10640 | if test -n "$CC"; then | |
10641 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10642 | echo "${ECHO_T}$CC" >&6 | |
10643 | else | |
10644 | echo "$as_me:$LINENO: result: no" >&5 | |
10645 | echo "${ECHO_T}no" >&6 | |
10646 | fi | |
10647 | ||
10648 | fi | |
10649 | if test -z "$ac_cv_prog_CC"; then | |
10650 | ac_ct_CC=$CC | |
10651 | # Extract the first word of "cc", so it can be a program name with args. | |
10652 | set dummy cc; ac_word=$2 | |
10653 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10655 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10657 | else | |
10658 | if test -n "$ac_ct_CC"; then | |
10659 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10660 | else | |
10661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10662 | for as_dir in $PATH | |
10663 | do | |
10664 | IFS=$as_save_IFS | |
10665 | test -z "$as_dir" && as_dir=. | |
10666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10667 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10668 | ac_cv_prog_ac_ct_CC="cc" | |
10669 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10670 | break 2 | |
10671 | fi | |
10672 | done | |
10673 | done | |
10674 | ||
10675 | fi | |
10676 | fi | |
10677 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10678 | if test -n "$ac_ct_CC"; then | |
10679 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10680 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10681 | else | |
10682 | echo "$as_me:$LINENO: result: no" >&5 | |
10683 | echo "${ECHO_T}no" >&6 | |
10684 | fi | |
10685 | ||
10686 | CC=$ac_ct_CC | |
10687 | else | |
10688 | CC="$ac_cv_prog_CC" | |
10689 | fi | |
10690 | ||
10691 | fi | |
10692 | if test -z "$CC"; then | |
10693 | # Extract the first word of "cc", so it can be a program name with args. | |
10694 | set dummy cc; ac_word=$2 | |
10695 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10697 | if test "${ac_cv_prog_CC+set}" = set; then | |
10698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10699 | else | |
10700 | if test -n "$CC"; then | |
10701 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10702 | else | |
10703 | ac_prog_rejected=no | |
10704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10705 | for as_dir in $PATH | |
10706 | do | |
10707 | IFS=$as_save_IFS | |
10708 | test -z "$as_dir" && as_dir=. | |
10709 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10710 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10711 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10712 | ac_prog_rejected=yes | |
10713 | continue | |
10714 | fi | |
10715 | ac_cv_prog_CC="cc" | |
10716 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10717 | break 2 | |
10718 | fi | |
10719 | done | |
10720 | done | |
10721 | ||
10722 | if test $ac_prog_rejected = yes; then | |
10723 | # We found a bogon in the path, so make sure we never use it. | |
10724 | set dummy $ac_cv_prog_CC | |
10725 | shift | |
10726 | if test $# != 0; then | |
10727 | # We chose a different compiler from the bogus one. | |
10728 | # However, it has the same basename, so the bogon will be chosen | |
10729 | # first if we set CC to just the basename; use the full file name. | |
10730 | shift | |
10731 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10732 | fi | |
10733 | fi | |
10734 | fi | |
10735 | fi | |
10736 | CC=$ac_cv_prog_CC | |
10737 | if test -n "$CC"; then | |
10738 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10739 | echo "${ECHO_T}$CC" >&6 | |
10740 | else | |
10741 | echo "$as_me:$LINENO: result: no" >&5 | |
10742 | echo "${ECHO_T}no" >&6 | |
10743 | fi | |
10744 | ||
10745 | fi | |
10746 | if test -z "$CC"; then | |
10747 | if test -n "$ac_tool_prefix"; then | |
10748 | for ac_prog in cl | |
10749 | do | |
10750 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10751 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10752 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10754 | if test "${ac_cv_prog_CC+set}" = set; then | |
10755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10756 | else | |
10757 | if test -n "$CC"; then | |
10758 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10759 | else | |
10760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10761 | for as_dir in $PATH | |
10762 | do | |
10763 | IFS=$as_save_IFS | |
10764 | test -z "$as_dir" && as_dir=. | |
10765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10766 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10767 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10768 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10769 | break 2 | |
10770 | fi | |
10771 | done | |
10772 | done | |
10773 | ||
10774 | fi | |
10775 | fi | |
10776 | CC=$ac_cv_prog_CC | |
10777 | if test -n "$CC"; then | |
10778 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10779 | echo "${ECHO_T}$CC" >&6 | |
10780 | else | |
10781 | echo "$as_me:$LINENO: result: no" >&5 | |
10782 | echo "${ECHO_T}no" >&6 | |
10783 | fi | |
10784 | ||
10785 | test -n "$CC" && break | |
10786 | done | |
10787 | fi | |
10788 | if test -z "$CC"; then | |
10789 | ac_ct_CC=$CC | |
10790 | for ac_prog in cl | |
10791 | do | |
10792 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10793 | set dummy $ac_prog; ac_word=$2 | |
10794 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10796 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10798 | else | |
10799 | if test -n "$ac_ct_CC"; then | |
10800 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10801 | else | |
10802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10803 | for as_dir in $PATH | |
10804 | do | |
10805 | IFS=$as_save_IFS | |
10806 | test -z "$as_dir" && as_dir=. | |
10807 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10808 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10809 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10810 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10811 | break 2 | |
10812 | fi | |
10813 | done | |
10814 | done | |
10815 | ||
10816 | fi | |
10817 | fi | |
10818 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10819 | if test -n "$ac_ct_CC"; then | |
10820 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10821 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10822 | else | |
10823 | echo "$as_me:$LINENO: result: no" >&5 | |
10824 | echo "${ECHO_T}no" >&6 | |
10825 | fi | |
10826 | ||
10827 | test -n "$ac_ct_CC" && break | |
10828 | done | |
10829 | ||
10830 | CC=$ac_ct_CC | |
10831 | fi | |
10832 | ||
10833 | fi | |
10834 | ||
10835 | ||
10836 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10837 | See \`config.log' for more details." >&5 | |
10838 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10839 | See \`config.log' for more details." >&2;} | |
10840 | { (exit 1); exit 1; }; } | |
10841 | ||
10842 | # Provide some information about the compiler. | |
10843 | echo "$as_me:$LINENO:" \ | |
10844 | "checking for C compiler version" >&5 | |
10845 | ac_compiler=`set X $ac_compile; echo $2` | |
10846 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10847 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10848 | ac_status=$? | |
10849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10850 | (exit $ac_status); } | |
10851 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10852 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10853 | ac_status=$? | |
10854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10855 | (exit $ac_status); } | |
10856 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10857 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10858 | ac_status=$? | |
10859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10860 | (exit $ac_status); } | |
10861 | ||
10862 | cat >conftest.$ac_ext <<_ACEOF | |
10863 | /* confdefs.h. */ | |
10864 | _ACEOF | |
10865 | cat confdefs.h >>conftest.$ac_ext | |
10866 | cat >>conftest.$ac_ext <<_ACEOF | |
10867 | /* end confdefs.h. */ | |
10868 | ||
10869 | int | |
10870 | main () | |
10871 | { | |
10872 | ||
10873 | ; | |
10874 | return 0; | |
10875 | } | |
10876 | _ACEOF | |
10877 | ac_clean_files_save=$ac_clean_files | |
10878 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10879 | # Try to create an executable without -o first, disregard a.out. | |
10880 | # It will help us diagnose broken compilers, and finding out an intuition | |
10881 | # of exeext. | |
ac1cb8d3 VS |
10882 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10883 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10884 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10885 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10886 | (eval $ac_link_default) 2>&5 | |
10887 | ac_status=$? | |
10888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10889 | (exit $ac_status); }; then | |
10890 | # Find the output, starting from the most likely. This scheme is | |
10891 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10892 | # resort. | |
10893 | ||
10894 | # Be careful to initialize this variable, since it used to be cached. | |
10895 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10896 | ac_cv_exeext= | |
10897 | # b.out is created by i960 compilers. | |
10898 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10899 | do | |
10900 | test -f "$ac_file" || continue | |
10901 | case $ac_file in | |
10902 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10903 | ;; |
a848cd7e | 10904 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10905 | # This is the source file. |
10906 | ;; | |
a848cd7e | 10907 | [ab].out ) |
ac1cb8d3 VS |
10908 | # We found the default executable, but exeext='' is most |
10909 | # certainly right. | |
10910 | break;; | |
a848cd7e | 10911 | *.* ) |
ac1cb8d3 VS |
10912 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10913 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10914 | # but it would be cool to find out if it's true. Does anybody | |
10915 | # maintain Libtool? --akim. | |
10916 | export ac_cv_exeext | |
10917 | break;; | |
a848cd7e | 10918 | * ) |
ac1cb8d3 | 10919 | break;; |
a848cd7e SC |
10920 | esac |
10921 | done | |
10922 | else | |
10923 | echo "$as_me: failed program was:" >&5 | |
10924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10925 | ||
10926 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10927 | See \`config.log' for more details." >&5 | |
10928 | echo "$as_me: error: C compiler cannot create executables | |
10929 | See \`config.log' for more details." >&2;} | |
10930 | { (exit 77); exit 77; }; } | |
10931 | fi | |
10932 | ||
10933 | ac_exeext=$ac_cv_exeext | |
10934 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10935 | echo "${ECHO_T}$ac_file" >&6 | |
10936 | ||
10937 | # Check the compiler produces executables we can run. If not, either | |
10938 | # the compiler is broken, or we cross compile. | |
10939 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10940 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10941 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10942 | # If not cross compiling, check that we can run a simple program. | |
10943 | if test "$cross_compiling" != yes; then | |
10944 | if { ac_try='./$ac_file' | |
10945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10946 | (eval $ac_try) 2>&5 | |
10947 | ac_status=$? | |
10948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10949 | (exit $ac_status); }; }; then | |
10950 | cross_compiling=no | |
10951 | else | |
10952 | if test "$cross_compiling" = maybe; then | |
10953 | cross_compiling=yes | |
10954 | else | |
10955 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10956 | If you meant to cross compile, use \`--host'. | |
10957 | See \`config.log' for more details." >&5 | |
10958 | echo "$as_me: error: cannot run C compiled programs. | |
10959 | If you meant to cross compile, use \`--host'. | |
10960 | See \`config.log' for more details." >&2;} | |
10961 | { (exit 1); exit 1; }; } | |
10962 | fi | |
10963 | fi | |
10964 | fi | |
10965 | echo "$as_me:$LINENO: result: yes" >&5 | |
10966 | echo "${ECHO_T}yes" >&6 | |
10967 | ||
10968 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10969 | ac_clean_files=$ac_clean_files_save | |
10970 | # Check the compiler produces executables we can run. If not, either | |
10971 | # the compiler is broken, or we cross compile. | |
10972 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10973 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10974 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10975 | echo "${ECHO_T}$cross_compiling" >&6 | |
10976 | ||
10977 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10978 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10980 | (eval $ac_link) 2>&5 | |
10981 | ac_status=$? | |
10982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10983 | (exit $ac_status); }; then | |
10984 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10985 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10986 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10987 | # `rm'. | |
10988 | for ac_file in conftest.exe conftest conftest.*; do | |
10989 | test -f "$ac_file" || continue | |
10990 | case $ac_file in | |
10991 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10992 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10993 | export ac_cv_exeext |
10994 | break;; | |
a848cd7e SC |
10995 | * ) break;; |
10996 | esac | |
10997 | done | |
10998 | else | |
10999 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11000 | See \`config.log' for more details." >&5 | |
11001 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11002 | See \`config.log' for more details." >&2;} | |
11003 | { (exit 1); exit 1; }; } | |
11004 | fi | |
11005 | ||
11006 | rm -f conftest$ac_cv_exeext | |
11007 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11008 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11009 | ||
11010 | rm -f conftest.$ac_ext | |
11011 | EXEEXT=$ac_cv_exeext | |
11012 | ac_exeext=$EXEEXT | |
11013 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11014 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11015 | if test "${ac_cv_objext+set}" = set; then | |
11016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11017 | else | |
11018 | cat >conftest.$ac_ext <<_ACEOF | |
11019 | /* confdefs.h. */ | |
11020 | _ACEOF | |
11021 | cat confdefs.h >>conftest.$ac_ext | |
11022 | cat >>conftest.$ac_ext <<_ACEOF | |
11023 | /* end confdefs.h. */ | |
11024 | ||
11025 | int | |
11026 | main () | |
11027 | { | |
11028 | ||
11029 | ; | |
11030 | return 0; | |
11031 | } | |
11032 | _ACEOF | |
11033 | rm -f conftest.o conftest.obj | |
11034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11035 | (eval $ac_compile) 2>&5 | |
11036 | ac_status=$? | |
11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11038 | (exit $ac_status); }; then | |
11039 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11040 | case $ac_file in | |
11041 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11042 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11043 | break;; | |
11044 | esac | |
11045 | done | |
11046 | else | |
11047 | echo "$as_me: failed program was:" >&5 | |
11048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11049 | ||
11050 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11051 | See \`config.log' for more details." >&5 | |
11052 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11053 | See \`config.log' for more details." >&2;} | |
11054 | { (exit 1); exit 1; }; } | |
11055 | fi | |
11056 | ||
11057 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11058 | fi | |
11059 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11060 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11061 | OBJEXT=$ac_cv_objext | |
11062 | ac_objext=$OBJEXT | |
11063 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11064 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11065 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11067 | else | |
11068 | cat >conftest.$ac_ext <<_ACEOF | |
11069 | /* confdefs.h. */ | |
11070 | _ACEOF | |
11071 | cat confdefs.h >>conftest.$ac_ext | |
11072 | cat >>conftest.$ac_ext <<_ACEOF | |
11073 | /* end confdefs.h. */ | |
11074 | ||
11075 | int | |
11076 | main () | |
11077 | { | |
11078 | #ifndef __GNUC__ | |
11079 | choke me | |
11080 | #endif | |
11081 | ||
11082 | ; | |
11083 | return 0; | |
11084 | } | |
11085 | _ACEOF | |
11086 | rm -f conftest.$ac_objext | |
11087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11088 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11089 | ac_status=$? |
ac1cb8d3 VS |
11090 | grep -v '^ *+' conftest.er1 >conftest.err |
11091 | rm -f conftest.er1 | |
11092 | cat conftest.err >&5 | |
a848cd7e SC |
11093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11094 | (exit $ac_status); } && | |
89be85c2 VS |
11095 | { ac_try='test -z "$ac_c_werror_flag" |
11096 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11098 | (eval $ac_try) 2>&5 | |
11099 | ac_status=$? | |
11100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11101 | (exit $ac_status); }; } && | |
11102 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11104 | (eval $ac_try) 2>&5 | |
11105 | ac_status=$? | |
11106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11107 | (exit $ac_status); }; }; then | |
11108 | ac_compiler_gnu=yes | |
11109 | else | |
11110 | echo "$as_me: failed program was:" >&5 | |
11111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11112 | ||
11113 | ac_compiler_gnu=no | |
11114 | fi | |
ac1cb8d3 | 11115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11116 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11117 | ||
11118 | fi | |
11119 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11120 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11121 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11122 | ac_test_CFLAGS=${CFLAGS+set} | |
11123 | ac_save_CFLAGS=$CFLAGS | |
11124 | CFLAGS="-g" | |
11125 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
11126 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11127 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11129 | else | |
11130 | cat >conftest.$ac_ext <<_ACEOF | |
11131 | /* confdefs.h. */ | |
11132 | _ACEOF | |
11133 | cat confdefs.h >>conftest.$ac_ext | |
11134 | cat >>conftest.$ac_ext <<_ACEOF | |
11135 | /* end confdefs.h. */ | |
11136 | ||
11137 | int | |
11138 | main () | |
11139 | { | |
11140 | ||
11141 | ; | |
11142 | return 0; | |
11143 | } | |
11144 | _ACEOF | |
11145 | rm -f conftest.$ac_objext | |
11146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11147 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11148 | ac_status=$? |
ac1cb8d3 VS |
11149 | grep -v '^ *+' conftest.er1 >conftest.err |
11150 | rm -f conftest.er1 | |
11151 | cat conftest.err >&5 | |
a848cd7e SC |
11152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11153 | (exit $ac_status); } && | |
89be85c2 VS |
11154 | { ac_try='test -z "$ac_c_werror_flag" |
11155 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11157 | (eval $ac_try) 2>&5 | |
11158 | ac_status=$? | |
11159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11160 | (exit $ac_status); }; } && | |
11161 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11163 | (eval $ac_try) 2>&5 | |
11164 | ac_status=$? | |
11165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11166 | (exit $ac_status); }; }; then | |
11167 | ac_cv_prog_cc_g=yes | |
11168 | else | |
11169 | echo "$as_me: failed program was:" >&5 | |
11170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11171 | ||
11172 | ac_cv_prog_cc_g=no | |
11173 | fi | |
ac1cb8d3 | 11174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11175 | fi |
11176 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11177 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11178 | if test "$ac_test_CFLAGS" = set; then | |
11179 | CFLAGS=$ac_save_CFLAGS | |
11180 | elif test $ac_cv_prog_cc_g = yes; then | |
11181 | if test "$GCC" = yes; then | |
11182 | CFLAGS="-g -O2" | |
11183 | else | |
11184 | CFLAGS="-g" | |
11185 | fi | |
11186 | else | |
11187 | if test "$GCC" = yes; then | |
11188 | CFLAGS="-O2" | |
11189 | else | |
11190 | CFLAGS= | |
11191 | fi | |
11192 | fi | |
11193 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11194 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11195 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11197 | else | |
11198 | ac_cv_prog_cc_stdc=no | |
11199 | ac_save_CC=$CC | |
11200 | cat >conftest.$ac_ext <<_ACEOF | |
11201 | /* confdefs.h. */ | |
11202 | _ACEOF | |
11203 | cat confdefs.h >>conftest.$ac_ext | |
11204 | cat >>conftest.$ac_ext <<_ACEOF | |
11205 | /* end confdefs.h. */ | |
11206 | #include <stdarg.h> | |
11207 | #include <stdio.h> | |
11208 | #include <sys/types.h> | |
11209 | #include <sys/stat.h> | |
11210 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11211 | struct buf { int x; }; | |
11212 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11213 | static char *e (p, i) | |
11214 | char **p; | |
11215 | int i; | |
11216 | { | |
11217 | return p[i]; | |
11218 | } | |
11219 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11220 | { | |
11221 | char *s; | |
11222 | va_list v; | |
11223 | va_start (v,p); | |
11224 | s = g (p, va_arg (v,int)); | |
11225 | va_end (v); | |
11226 | return s; | |
11227 | } | |
ac1cb8d3 VS |
11228 | |
11229 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11230 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11231 | These don't provoke an error unfortunately, instead are silently treated | |
11232 | as 'x'. The following induces an error, until -std1 is added to get | |
11233 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11234 | array size at least. It's necessary to write '\x00'==0 to get something | |
11235 | that's true only with -std1. */ | |
11236 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11237 | ||
a848cd7e SC |
11238 | int test (int i, double x); |
11239 | struct s1 {int (*f) (int a);}; | |
11240 | struct s2 {int (*f) (double a);}; | |
11241 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11242 | int argc; | |
11243 | char **argv; | |
11244 | int | |
11245 | main () | |
11246 | { | |
11247 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11248 | ; | |
11249 | return 0; | |
11250 | } | |
11251 | _ACEOF | |
11252 | # Don't try gcc -ansi; that turns off useful extensions and | |
11253 | # breaks some systems' header files. | |
11254 | # AIX -qlanglvl=ansi | |
11255 | # Ultrix and OSF/1 -std1 | |
11256 | # HP-UX 10.20 and later -Ae | |
11257 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11258 | # SVR4 -Xc -D__EXTENSIONS__ | |
11259 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11260 | do | |
11261 | CC="$ac_save_CC $ac_arg" | |
11262 | rm -f conftest.$ac_objext | |
11263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11264 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11265 | ac_status=$? |
ac1cb8d3 VS |
11266 | grep -v '^ *+' conftest.er1 >conftest.err |
11267 | rm -f conftest.er1 | |
11268 | cat conftest.err >&5 | |
a848cd7e SC |
11269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11270 | (exit $ac_status); } && | |
89be85c2 VS |
11271 | { ac_try='test -z "$ac_c_werror_flag" |
11272 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11274 | (eval $ac_try) 2>&5 | |
11275 | ac_status=$? | |
11276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11277 | (exit $ac_status); }; } && | |
11278 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11280 | (eval $ac_try) 2>&5 | |
11281 | ac_status=$? | |
11282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11283 | (exit $ac_status); }; }; then | |
11284 | ac_cv_prog_cc_stdc=$ac_arg | |
11285 | break | |
11286 | else | |
11287 | echo "$as_me: failed program was:" >&5 | |
11288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11289 | ||
11290 | fi | |
ac1cb8d3 | 11291 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11292 | done |
11293 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11294 | CC=$ac_save_CC | |
11295 | ||
11296 | fi | |
11297 | ||
11298 | case "x$ac_cv_prog_cc_stdc" in | |
11299 | x|xno) | |
11300 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11301 | echo "${ECHO_T}none needed" >&6 ;; | |
11302 | *) | |
11303 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11304 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11305 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11306 | esac | |
11307 | ||
11308 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11309 | # in C++ we need to declare it. In case someone uses the same compiler | |
11310 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11311 | # the declaration of exit, since it's the most demanding environment. | |
11312 | cat >conftest.$ac_ext <<_ACEOF | |
11313 | #ifndef __cplusplus | |
11314 | choke me | |
11315 | #endif | |
11316 | _ACEOF | |
11317 | rm -f conftest.$ac_objext | |
11318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11319 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11320 | ac_status=$? |
ac1cb8d3 VS |
11321 | grep -v '^ *+' conftest.er1 >conftest.err |
11322 | rm -f conftest.er1 | |
11323 | cat conftest.err >&5 | |
a848cd7e SC |
11324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11325 | (exit $ac_status); } && | |
89be85c2 VS |
11326 | { ac_try='test -z "$ac_c_werror_flag" |
11327 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11329 | (eval $ac_try) 2>&5 | |
11330 | ac_status=$? | |
11331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11332 | (exit $ac_status); }; } && | |
11333 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11335 | (eval $ac_try) 2>&5 | |
11336 | ac_status=$? | |
11337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11338 | (exit $ac_status); }; }; then | |
11339 | for ac_declaration in \ | |
ac1cb8d3 | 11340 | '' \ |
a848cd7e SC |
11341 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11342 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11343 | 'extern "C" void exit (int) throw ();' \ | |
11344 | 'extern "C" void exit (int);' \ | |
11345 | 'void exit (int);' | |
11346 | do | |
11347 | cat >conftest.$ac_ext <<_ACEOF | |
11348 | /* confdefs.h. */ | |
11349 | _ACEOF | |
11350 | cat confdefs.h >>conftest.$ac_ext | |
11351 | cat >>conftest.$ac_ext <<_ACEOF | |
11352 | /* end confdefs.h. */ | |
de59c161 | 11353 | $ac_declaration |
ac1cb8d3 | 11354 | #include <stdlib.h> |
a848cd7e SC |
11355 | int |
11356 | main () | |
11357 | { | |
11358 | exit (42); | |
11359 | ; | |
11360 | return 0; | |
11361 | } | |
11362 | _ACEOF | |
11363 | rm -f conftest.$ac_objext | |
11364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11365 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11366 | ac_status=$? |
ac1cb8d3 VS |
11367 | grep -v '^ *+' conftest.er1 >conftest.err |
11368 | rm -f conftest.er1 | |
11369 | cat conftest.err >&5 | |
a848cd7e SC |
11370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11371 | (exit $ac_status); } && | |
89be85c2 VS |
11372 | { ac_try='test -z "$ac_c_werror_flag" |
11373 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11375 | (eval $ac_try) 2>&5 | |
11376 | ac_status=$? | |
11377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11378 | (exit $ac_status); }; } && | |
11379 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11381 | (eval $ac_try) 2>&5 | |
11382 | ac_status=$? | |
11383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11384 | (exit $ac_status); }; }; then | |
11385 | : | |
11386 | else | |
11387 | echo "$as_me: failed program was:" >&5 | |
11388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11389 | ||
11390 | continue | |
11391 | fi | |
ac1cb8d3 | 11392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11393 | cat >conftest.$ac_ext <<_ACEOF |
11394 | /* confdefs.h. */ | |
11395 | _ACEOF | |
11396 | cat confdefs.h >>conftest.$ac_ext | |
11397 | cat >>conftest.$ac_ext <<_ACEOF | |
11398 | /* end confdefs.h. */ | |
11399 | $ac_declaration | |
11400 | int | |
11401 | main () | |
11402 | { | |
11403 | exit (42); | |
11404 | ; | |
11405 | return 0; | |
11406 | } | |
11407 | _ACEOF | |
11408 | rm -f conftest.$ac_objext | |
11409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11410 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11411 | ac_status=$? |
ac1cb8d3 VS |
11412 | grep -v '^ *+' conftest.er1 >conftest.err |
11413 | rm -f conftest.er1 | |
11414 | cat conftest.err >&5 | |
a848cd7e SC |
11415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11416 | (exit $ac_status); } && | |
89be85c2 VS |
11417 | { ac_try='test -z "$ac_c_werror_flag" |
11418 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11420 | (eval $ac_try) 2>&5 | |
11421 | ac_status=$? | |
11422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11423 | (exit $ac_status); }; } && | |
11424 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11426 | (eval $ac_try) 2>&5 | |
11427 | ac_status=$? | |
11428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11429 | (exit $ac_status); }; }; then | |
11430 | break | |
11431 | else | |
11432 | echo "$as_me: failed program was:" >&5 | |
11433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11434 | ||
11435 | fi | |
ac1cb8d3 | 11436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11437 | done |
11438 | rm -f conftest* | |
11439 | if test -n "$ac_declaration"; then | |
11440 | echo '#ifdef __cplusplus' >>confdefs.h | |
11441 | echo $ac_declaration >>confdefs.h | |
11442 | echo '#endif' >>confdefs.h | |
11443 | fi | |
11444 | ||
11445 | else | |
11446 | echo "$as_me: failed program was:" >&5 | |
11447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11448 | ||
11449 | fi | |
ac1cb8d3 | 11450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11451 | ac_ext=c |
11452 | ac_cpp='$CPP $CPPFLAGS' | |
11453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11456 | ||
11457 | ||
95986553 DE |
11458 | ac_ext=c |
11459 | ac_cpp='$CPP $CPPFLAGS' | |
11460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11463 | ||
11464 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
11465 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
11466 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
11467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11468 | else | |
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 | ||
11476 | int | |
11477 | main () | |
11478 | { | |
11479 | #ifndef __MWERKS__ | |
11480 | choke me | |
11481 | #endif | |
11482 | ||
11483 | ; | |
11484 | return 0; | |
11485 | } | |
11486 | _ACEOF | |
11487 | rm -f conftest.$ac_objext | |
11488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11489 | (eval $ac_compile) 2>conftest.er1 | |
11490 | ac_status=$? | |
11491 | grep -v '^ *+' conftest.er1 >conftest.err | |
11492 | rm -f conftest.er1 | |
11493 | cat conftest.err >&5 | |
11494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11495 | (exit $ac_status); } && | |
89be85c2 VS |
11496 | { ac_try='test -z "$ac_c_werror_flag" |
11497 | || test ! -s conftest.err' | |
95986553 DE |
11498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11499 | (eval $ac_try) 2>&5 | |
11500 | ac_status=$? | |
11501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11502 | (exit $ac_status); }; } && | |
11503 | { ac_try='test -s conftest.$ac_objext' | |
11504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11505 | (eval $ac_try) 2>&5 | |
11506 | ac_status=$? | |
11507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11508 | (exit $ac_status); }; }; then | |
11509 | bakefile_compiler_mwerks=yes | |
11510 | else | |
11511 | echo "$as_me: failed program was:" >&5 | |
11512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11513 | ||
11514 | bakefile_compiler_mwerks=no | |
11515 | fi | |
11516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11517 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
11518 | ||
11519 | fi | |
11520 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
11521 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
11522 | ||
11523 | MWCC=`test $bakefile_compiler_mwerks = yes && echo yes` | |
11524 | ac_ext=c | |
11525 | ac_cpp='$CPP $CPPFLAGS' | |
11526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11529 | ||
11530 | ||
a848cd7e SC |
11531 | |
11532 | ac_ext=c | |
11533 | ac_cpp='$CPP $CPPFLAGS' | |
11534 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11535 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11536 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11537 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11538 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11539 | # On Suns, sometimes $CPP names a directory. | |
11540 | if test -n "$CPP" && test -d "$CPP"; then | |
11541 | CPP= | |
11542 | fi | |
11543 | if test -z "$CPP"; then | |
11544 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11546 | else | |
11547 | # Double quotes because CPP needs to be expanded | |
11548 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11549 | do | |
11550 | ac_preproc_ok=false | |
11551 | for ac_c_preproc_warn_flag in '' yes | |
11552 | do | |
11553 | # Use a header file that comes with gcc, so configuring glibc | |
11554 | # with a fresh cross-compiler works. | |
11555 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11556 | # <limits.h> exists even on freestanding compilers. | |
11557 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11558 | # not just through cpp. "Syntax error" is here to catch this case. | |
11559 | cat >conftest.$ac_ext <<_ACEOF | |
11560 | /* confdefs.h. */ | |
11561 | _ACEOF | |
11562 | cat confdefs.h >>conftest.$ac_ext | |
11563 | cat >>conftest.$ac_ext <<_ACEOF | |
11564 | /* end confdefs.h. */ | |
11565 | #ifdef __STDC__ | |
11566 | # include <limits.h> | |
11567 | #else | |
11568 | # include <assert.h> | |
11569 | #endif | |
ac1cb8d3 | 11570 | Syntax error |
a848cd7e SC |
11571 | _ACEOF |
11572 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11573 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11574 | ac_status=$? | |
11575 | grep -v '^ *+' conftest.er1 >conftest.err | |
11576 | rm -f conftest.er1 | |
11577 | cat conftest.err >&5 | |
11578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11579 | (exit $ac_status); } >/dev/null; then | |
11580 | if test -s conftest.err; then | |
11581 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11582 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11583 | else |
11584 | ac_cpp_err= | |
11585 | fi | |
11586 | else | |
11587 | ac_cpp_err=yes | |
11588 | fi | |
11589 | if test -z "$ac_cpp_err"; then | |
11590 | : | |
11591 | else | |
11592 | echo "$as_me: failed program was:" >&5 | |
11593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11594 | ||
11595 | # Broken: fails on valid input. | |
11596 | continue | |
11597 | fi | |
11598 | rm -f conftest.err conftest.$ac_ext | |
11599 | ||
11600 | # OK, works on sane cases. Now check whether non-existent headers | |
11601 | # can be detected and how. | |
11602 | cat >conftest.$ac_ext <<_ACEOF | |
11603 | /* confdefs.h. */ | |
11604 | _ACEOF | |
11605 | cat confdefs.h >>conftest.$ac_ext | |
11606 | cat >>conftest.$ac_ext <<_ACEOF | |
11607 | /* end confdefs.h. */ | |
11608 | #include <ac_nonexistent.h> | |
11609 | _ACEOF | |
11610 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11611 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11612 | ac_status=$? | |
11613 | grep -v '^ *+' conftest.er1 >conftest.err | |
11614 | rm -f conftest.er1 | |
11615 | cat conftest.err >&5 | |
11616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11617 | (exit $ac_status); } >/dev/null; then | |
11618 | if test -s conftest.err; then | |
11619 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11620 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11621 | else |
11622 | ac_cpp_err= | |
11623 | fi | |
11624 | else | |
11625 | ac_cpp_err=yes | |
11626 | fi | |
11627 | if test -z "$ac_cpp_err"; then | |
11628 | # Broken: success on invalid input. | |
11629 | continue | |
11630 | else | |
11631 | echo "$as_me: failed program was:" >&5 | |
11632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11633 | ||
11634 | # Passes both tests. | |
11635 | ac_preproc_ok=: | |
11636 | break | |
11637 | fi | |
11638 | rm -f conftest.err conftest.$ac_ext | |
11639 | ||
11640 | done | |
11641 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11642 | rm -f conftest.err conftest.$ac_ext | |
11643 | if $ac_preproc_ok; then | |
11644 | break | |
11645 | fi | |
11646 | ||
11647 | done | |
11648 | ac_cv_prog_CPP=$CPP | |
11649 | ||
11650 | fi | |
11651 | CPP=$ac_cv_prog_CPP | |
11652 | else | |
11653 | ac_cv_prog_CPP=$CPP | |
11654 | fi | |
11655 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11656 | echo "${ECHO_T}$CPP" >&6 | |
11657 | ac_preproc_ok=false | |
11658 | for ac_c_preproc_warn_flag in '' yes | |
11659 | do | |
11660 | # Use a header file that comes with gcc, so configuring glibc | |
11661 | # with a fresh cross-compiler works. | |
11662 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11663 | # <limits.h> exists even on freestanding compilers. | |
11664 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11665 | # not just through cpp. "Syntax error" is here to catch this case. | |
11666 | cat >conftest.$ac_ext <<_ACEOF | |
11667 | /* confdefs.h. */ | |
11668 | _ACEOF | |
11669 | cat confdefs.h >>conftest.$ac_ext | |
11670 | cat >>conftest.$ac_ext <<_ACEOF | |
11671 | /* end confdefs.h. */ | |
11672 | #ifdef __STDC__ | |
11673 | # include <limits.h> | |
11674 | #else | |
11675 | # include <assert.h> | |
11676 | #endif | |
ac1cb8d3 | 11677 | Syntax error |
a848cd7e SC |
11678 | _ACEOF |
11679 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11680 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11681 | ac_status=$? | |
11682 | grep -v '^ *+' conftest.er1 >conftest.err | |
11683 | rm -f conftest.er1 | |
11684 | cat conftest.err >&5 | |
11685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11686 | (exit $ac_status); } >/dev/null; then | |
11687 | if test -s conftest.err; then | |
11688 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11689 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11690 | else |
11691 | ac_cpp_err= | |
11692 | fi | |
11693 | else | |
11694 | ac_cpp_err=yes | |
11695 | fi | |
11696 | if test -z "$ac_cpp_err"; then | |
11697 | : | |
11698 | else | |
11699 | echo "$as_me: failed program was:" >&5 | |
11700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11701 | ||
11702 | # Broken: fails on valid input. | |
11703 | continue | |
11704 | fi | |
11705 | rm -f conftest.err conftest.$ac_ext | |
11706 | ||
11707 | # OK, works on sane cases. Now check whether non-existent headers | |
11708 | # can be detected and how. | |
11709 | cat >conftest.$ac_ext <<_ACEOF | |
11710 | /* confdefs.h. */ | |
11711 | _ACEOF | |
11712 | cat confdefs.h >>conftest.$ac_ext | |
11713 | cat >>conftest.$ac_ext <<_ACEOF | |
11714 | /* end confdefs.h. */ | |
11715 | #include <ac_nonexistent.h> | |
11716 | _ACEOF | |
11717 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11718 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11719 | ac_status=$? | |
11720 | grep -v '^ *+' conftest.er1 >conftest.err | |
11721 | rm -f conftest.er1 | |
11722 | cat conftest.err >&5 | |
11723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11724 | (exit $ac_status); } >/dev/null; then | |
11725 | if test -s conftest.err; then | |
11726 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11727 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11728 | else |
11729 | ac_cpp_err= | |
11730 | fi | |
11731 | else | |
11732 | ac_cpp_err=yes | |
11733 | fi | |
11734 | if test -z "$ac_cpp_err"; then | |
11735 | # Broken: success on invalid input. | |
11736 | continue | |
11737 | else | |
11738 | echo "$as_me: failed program was:" >&5 | |
11739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11740 | ||
11741 | # Passes both tests. | |
11742 | ac_preproc_ok=: | |
11743 | break | |
11744 | fi | |
11745 | rm -f conftest.err conftest.$ac_ext | |
11746 | ||
11747 | done | |
11748 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11749 | rm -f conftest.err conftest.$ac_ext | |
11750 | if $ac_preproc_ok; then | |
11751 | : | |
11752 | else | |
11753 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11754 | See \`config.log' for more details." >&5 | |
11755 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11756 | See \`config.log' for more details." >&2;} | |
11757 | { (exit 1); exit 1; }; } | |
11758 | fi | |
11759 | ||
11760 | ac_ext=c | |
11761 | ac_cpp='$CPP $CPPFLAGS' | |
11762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11765 | ||
11766 | ||
11767 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11768 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11769 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11771 | else | |
11772 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11773 | then ac_cv_prog_egrep='grep -E' | |
11774 | else ac_cv_prog_egrep='egrep' | |
11775 | fi | |
11776 | fi | |
11777 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11778 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11779 | EGREP=$ac_cv_prog_egrep | |
11780 | ||
11781 | ||
11782 | if test $ac_cv_c_compiler_gnu = yes; then | |
11783 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11784 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11785 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11787 | else | |
11788 | ac_pattern="Autoconf.*'x'" | |
11789 | cat >conftest.$ac_ext <<_ACEOF | |
11790 | /* confdefs.h. */ | |
11791 | _ACEOF | |
11792 | cat confdefs.h >>conftest.$ac_ext | |
11793 | cat >>conftest.$ac_ext <<_ACEOF | |
11794 | /* end confdefs.h. */ | |
11795 | #include <sgtty.h> | |
11796 | Autoconf TIOCGETP | |
11797 | _ACEOF | |
11798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11799 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11800 | ac_cv_prog_gcc_traditional=yes | |
11801 | else | |
11802 | ac_cv_prog_gcc_traditional=no | |
11803 | fi | |
11804 | rm -f conftest* | |
11805 | ||
11806 | ||
11807 | if test $ac_cv_prog_gcc_traditional = no; then | |
11808 | cat >conftest.$ac_ext <<_ACEOF | |
11809 | /* confdefs.h. */ | |
11810 | _ACEOF | |
11811 | cat confdefs.h >>conftest.$ac_ext | |
11812 | cat >>conftest.$ac_ext <<_ACEOF | |
11813 | /* end confdefs.h. */ | |
11814 | #include <termio.h> | |
11815 | Autoconf TCGETA | |
11816 | _ACEOF | |
11817 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11818 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11819 | ac_cv_prog_gcc_traditional=yes | |
11820 | fi | |
11821 | rm -f conftest* | |
11822 | ||
11823 | fi | |
11824 | fi | |
11825 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11826 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11827 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11828 | CC="$CC -traditional" | |
11829 | fi | |
11830 | fi | |
11831 | ||
11832 | ||
11833 | ||
11834 | ||
11835 | ac_ext=cc | |
11836 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11837 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11838 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11839 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11840 | ||
11841 | ||
11842 | CXXFLAGS=${CXXFLAGS:=} | |
11843 | ac_ext=cc | |
11844 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11845 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11846 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11847 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11848 | if test -n "$ac_tool_prefix"; then | |
11849 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11850 | do | |
11851 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11852 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11853 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11855 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11857 | else | |
11858 | if test -n "$CXX"; then | |
11859 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11860 | else | |
11861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11862 | for as_dir in $PATH | |
11863 | do | |
11864 | IFS=$as_save_IFS | |
11865 | test -z "$as_dir" && as_dir=. | |
11866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11867 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11868 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11870 | break 2 | |
11871 | fi | |
11872 | done | |
11873 | done | |
11874 | ||
11875 | fi | |
11876 | fi | |
11877 | CXX=$ac_cv_prog_CXX | |
11878 | if test -n "$CXX"; then | |
11879 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11880 | echo "${ECHO_T}$CXX" >&6 | |
11881 | else | |
11882 | echo "$as_me:$LINENO: result: no" >&5 | |
11883 | echo "${ECHO_T}no" >&6 | |
11884 | fi | |
11885 | ||
11886 | test -n "$CXX" && break | |
11887 | done | |
11888 | fi | |
11889 | if test -z "$CXX"; then | |
11890 | ac_ct_CXX=$CXX | |
11891 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11892 | do | |
11893 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11894 | set dummy $ac_prog; ac_word=$2 | |
11895 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11896 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11897 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11899 | else | |
11900 | if test -n "$ac_ct_CXX"; then | |
11901 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11902 | else | |
11903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11904 | for as_dir in $PATH | |
11905 | do | |
11906 | IFS=$as_save_IFS | |
11907 | test -z "$as_dir" && as_dir=. | |
11908 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11909 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11910 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11912 | break 2 | |
11913 | fi | |
11914 | done | |
11915 | done | |
11916 | ||
11917 | fi | |
11918 | fi | |
11919 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11920 | if test -n "$ac_ct_CXX"; then | |
11921 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11922 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11923 | else | |
11924 | echo "$as_me:$LINENO: result: no" >&5 | |
11925 | echo "${ECHO_T}no" >&6 | |
11926 | fi | |
11927 | ||
11928 | test -n "$ac_ct_CXX" && break | |
11929 | done | |
11930 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11931 | ||
11932 | CXX=$ac_ct_CXX | |
11933 | fi | |
11934 | ||
11935 | ||
11936 | # Provide some information about the compiler. | |
11937 | echo "$as_me:$LINENO:" \ | |
11938 | "checking for C++ compiler version" >&5 | |
11939 | ac_compiler=`set X $ac_compile; echo $2` | |
11940 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11941 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11942 | ac_status=$? | |
11943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11944 | (exit $ac_status); } | |
11945 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11946 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11947 | ac_status=$? | |
11948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11949 | (exit $ac_status); } | |
11950 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11951 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11952 | ac_status=$? | |
11953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11954 | (exit $ac_status); } | |
11955 | ||
11956 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11957 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11958 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11960 | else | |
11961 | cat >conftest.$ac_ext <<_ACEOF | |
11962 | /* confdefs.h. */ | |
11963 | _ACEOF | |
11964 | cat confdefs.h >>conftest.$ac_ext | |
11965 | cat >>conftest.$ac_ext <<_ACEOF | |
11966 | /* end confdefs.h. */ | |
11967 | ||
11968 | int | |
11969 | main () | |
11970 | { | |
11971 | #ifndef __GNUC__ | |
11972 | choke me | |
11973 | #endif | |
11974 | ||
11975 | ; | |
11976 | return 0; | |
11977 | } | |
11978 | _ACEOF | |
11979 | rm -f conftest.$ac_objext | |
11980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11982 | ac_status=$? |
ac1cb8d3 VS |
11983 | grep -v '^ *+' conftest.er1 >conftest.err |
11984 | rm -f conftest.er1 | |
11985 | cat conftest.err >&5 | |
a848cd7e SC |
11986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11987 | (exit $ac_status); } && | |
89be85c2 VS |
11988 | { ac_try='test -z "$ac_cxx_werror_flag" |
11989 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11991 | (eval $ac_try) 2>&5 | |
11992 | ac_status=$? | |
11993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11994 | (exit $ac_status); }; } && | |
11995 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11997 | (eval $ac_try) 2>&5 | |
11998 | ac_status=$? | |
11999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12000 | (exit $ac_status); }; }; then | |
12001 | ac_compiler_gnu=yes | |
12002 | else | |
12003 | echo "$as_me: failed program was:" >&5 | |
12004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12005 | ||
12006 | ac_compiler_gnu=no | |
12007 | fi | |
ac1cb8d3 | 12008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12009 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12010 | ||
12011 | fi | |
12012 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12013 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12014 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12015 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12016 | ac_save_CXXFLAGS=$CXXFLAGS | |
12017 | CXXFLAGS="-g" | |
12018 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12019 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12020 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12022 | else | |
12023 | cat >conftest.$ac_ext <<_ACEOF | |
12024 | /* confdefs.h. */ | |
12025 | _ACEOF | |
12026 | cat confdefs.h >>conftest.$ac_ext | |
12027 | cat >>conftest.$ac_ext <<_ACEOF | |
12028 | /* end confdefs.h. */ | |
12029 | ||
12030 | int | |
12031 | main () | |
12032 | { | |
12033 | ||
12034 | ; | |
12035 | return 0; | |
12036 | } | |
12037 | _ACEOF | |
12038 | rm -f conftest.$ac_objext | |
12039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12040 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12041 | ac_status=$? |
ac1cb8d3 VS |
12042 | grep -v '^ *+' conftest.er1 >conftest.err |
12043 | rm -f conftest.er1 | |
12044 | cat conftest.err >&5 | |
a848cd7e SC |
12045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12046 | (exit $ac_status); } && | |
89be85c2 VS |
12047 | { ac_try='test -z "$ac_cxx_werror_flag" |
12048 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12050 | (eval $ac_try) 2>&5 | |
12051 | ac_status=$? | |
12052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12053 | (exit $ac_status); }; } && | |
12054 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12056 | (eval $ac_try) 2>&5 | |
12057 | ac_status=$? | |
12058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12059 | (exit $ac_status); }; }; then | |
12060 | ac_cv_prog_cxx_g=yes | |
12061 | else | |
12062 | echo "$as_me: failed program was:" >&5 | |
12063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12064 | ||
12065 | ac_cv_prog_cxx_g=no | |
12066 | fi | |
ac1cb8d3 | 12067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12068 | fi |
12069 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12070 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12071 | if test "$ac_test_CXXFLAGS" = set; then | |
12072 | CXXFLAGS=$ac_save_CXXFLAGS | |
12073 | elif test $ac_cv_prog_cxx_g = yes; then | |
12074 | if test "$GXX" = yes; then | |
12075 | CXXFLAGS="-g -O2" | |
12076 | else | |
12077 | CXXFLAGS="-g" | |
12078 | fi | |
12079 | else | |
12080 | if test "$GXX" = yes; then | |
12081 | CXXFLAGS="-O2" | |
12082 | else | |
12083 | CXXFLAGS= | |
12084 | fi | |
12085 | fi | |
12086 | for ac_declaration in \ | |
ac1cb8d3 | 12087 | '' \ |
a848cd7e SC |
12088 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12089 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12090 | 'extern "C" void exit (int) throw ();' \ | |
12091 | 'extern "C" void exit (int);' \ | |
12092 | 'void exit (int);' | |
12093 | do | |
12094 | cat >conftest.$ac_ext <<_ACEOF | |
12095 | /* confdefs.h. */ | |
12096 | _ACEOF | |
12097 | cat confdefs.h >>conftest.$ac_ext | |
12098 | cat >>conftest.$ac_ext <<_ACEOF | |
12099 | /* end confdefs.h. */ | |
de59c161 | 12100 | $ac_declaration |
ac1cb8d3 | 12101 | #include <stdlib.h> |
a848cd7e SC |
12102 | int |
12103 | main () | |
12104 | { | |
12105 | exit (42); | |
12106 | ; | |
12107 | return 0; | |
12108 | } | |
12109 | _ACEOF | |
12110 | rm -f conftest.$ac_objext | |
12111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12113 | ac_status=$? |
ac1cb8d3 VS |
12114 | grep -v '^ *+' conftest.er1 >conftest.err |
12115 | rm -f conftest.er1 | |
12116 | cat conftest.err >&5 | |
a848cd7e SC |
12117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12118 | (exit $ac_status); } && | |
89be85c2 VS |
12119 | { ac_try='test -z "$ac_cxx_werror_flag" |
12120 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12122 | (eval $ac_try) 2>&5 | |
12123 | ac_status=$? | |
12124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12125 | (exit $ac_status); }; } && | |
12126 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12128 | (eval $ac_try) 2>&5 | |
12129 | ac_status=$? | |
12130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12131 | (exit $ac_status); }; }; then | |
12132 | : | |
12133 | else | |
12134 | echo "$as_me: failed program was:" >&5 | |
12135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12136 | ||
12137 | continue | |
12138 | fi | |
ac1cb8d3 | 12139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12140 | cat >conftest.$ac_ext <<_ACEOF |
12141 | /* confdefs.h. */ | |
12142 | _ACEOF | |
12143 | cat confdefs.h >>conftest.$ac_ext | |
12144 | cat >>conftest.$ac_ext <<_ACEOF | |
12145 | /* end confdefs.h. */ | |
12146 | $ac_declaration | |
12147 | int | |
12148 | main () | |
12149 | { | |
12150 | exit (42); | |
12151 | ; | |
12152 | return 0; | |
12153 | } | |
12154 | _ACEOF | |
12155 | rm -f conftest.$ac_objext | |
12156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12157 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12158 | ac_status=$? |
ac1cb8d3 VS |
12159 | grep -v '^ *+' conftest.er1 >conftest.err |
12160 | rm -f conftest.er1 | |
12161 | cat conftest.err >&5 | |
a848cd7e SC |
12162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12163 | (exit $ac_status); } && | |
89be85c2 VS |
12164 | { ac_try='test -z "$ac_cxx_werror_flag" |
12165 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12167 | (eval $ac_try) 2>&5 | |
12168 | ac_status=$? | |
12169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12170 | (exit $ac_status); }; } && | |
12171 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12173 | (eval $ac_try) 2>&5 | |
12174 | ac_status=$? | |
12175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12176 | (exit $ac_status); }; }; then | |
12177 | break | |
12178 | else | |
12179 | echo "$as_me: failed program was:" >&5 | |
12180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12181 | ||
12182 | fi | |
ac1cb8d3 | 12183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12184 | done |
12185 | rm -f conftest* | |
12186 | if test -n "$ac_declaration"; then | |
12187 | echo '#ifdef __cplusplus' >>confdefs.h | |
12188 | echo $ac_declaration >>confdefs.h | |
12189 | echo '#endif' >>confdefs.h | |
12190 | fi | |
12191 | ||
12192 | ac_ext=cc | |
12193 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12194 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12195 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12196 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12197 | ||
12198 | ||
95986553 DE |
12199 | ac_ext=cc |
12200 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12201 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12202 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12203 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12204 | ||
12205 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
12206 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
12207 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
12208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12209 | else | |
12210 | cat >conftest.$ac_ext <<_ACEOF | |
12211 | /* confdefs.h. */ | |
12212 | _ACEOF | |
12213 | cat confdefs.h >>conftest.$ac_ext | |
12214 | cat >>conftest.$ac_ext <<_ACEOF | |
12215 | /* end confdefs.h. */ | |
12216 | ||
12217 | int | |
12218 | main () | |
12219 | { | |
12220 | #ifndef __MWERKS__ | |
12221 | choke me | |
12222 | #endif | |
12223 | ||
12224 | ; | |
12225 | return 0; | |
12226 | } | |
12227 | _ACEOF | |
12228 | rm -f conftest.$ac_objext | |
12229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12230 | (eval $ac_compile) 2>conftest.er1 | |
12231 | ac_status=$? | |
12232 | grep -v '^ *+' conftest.er1 >conftest.err | |
12233 | rm -f conftest.er1 | |
12234 | cat conftest.err >&5 | |
12235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12236 | (exit $ac_status); } && | |
89be85c2 VS |
12237 | { ac_try='test -z "$ac_cxx_werror_flag" |
12238 | || test ! -s conftest.err' | |
95986553 DE |
12239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12240 | (eval $ac_try) 2>&5 | |
12241 | ac_status=$? | |
12242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12243 | (exit $ac_status); }; } && | |
12244 | { ac_try='test -s conftest.$ac_objext' | |
12245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12246 | (eval $ac_try) 2>&5 | |
12247 | ac_status=$? | |
12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12249 | (exit $ac_status); }; }; then | |
12250 | bakefile_compiler_mwerks=yes | |
12251 | else | |
12252 | echo "$as_me: failed program was:" >&5 | |
12253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12254 | ||
12255 | bakefile_compiler_mwerks=no | |
12256 | fi | |
12257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12258 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
12259 | ||
12260 | fi | |
12261 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
12262 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
12263 | ||
12264 | MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes` | |
12265 | ac_ext=cc | |
12266 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12267 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12268 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12269 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12270 | ||
12271 | ||
12272 | ||
a848cd7e SC |
12273 | ac_ext=c |
12274 | ac_cpp='$CPP $CPPFLAGS' | |
12275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12278 | ||
12279 | ||
a848cd7e SC |
12280 | if test -n "$ac_tool_prefix"; then |
12281 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12282 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12283 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12285 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
12286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12287 | else | |
12288 | if test -n "$RANLIB"; then | |
12289 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12290 | else | |
12291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12292 | for as_dir in $PATH | |
12293 | do | |
12294 | IFS=$as_save_IFS | |
12295 | test -z "$as_dir" && as_dir=. | |
12296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12297 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12298 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
12299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12300 | break 2 | |
12301 | fi | |
12302 | done | |
12303 | done | |
12304 | ||
12305 | fi | |
12306 | fi | |
12307 | RANLIB=$ac_cv_prog_RANLIB | |
12308 | if test -n "$RANLIB"; then | |
12309 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
12310 | echo "${ECHO_T}$RANLIB" >&6 | |
12311 | else | |
12312 | echo "$as_me:$LINENO: result: no" >&5 | |
12313 | echo "${ECHO_T}no" >&6 | |
12314 | fi | |
12315 | ||
12316 | fi | |
12317 | if test -z "$ac_cv_prog_RANLIB"; then | |
12318 | ac_ct_RANLIB=$RANLIB | |
12319 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12320 | set dummy ranlib; ac_word=$2 | |
12321 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12323 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
12324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12325 | else | |
12326 | if test -n "$ac_ct_RANLIB"; then | |
12327 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12328 | else | |
12329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12330 | for as_dir in $PATH | |
12331 | do | |
12332 | IFS=$as_save_IFS | |
12333 | test -z "$as_dir" && as_dir=. | |
12334 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12335 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12336 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12338 | break 2 | |
12339 | fi | |
12340 | done | |
12341 | done | |
12342 | ||
12343 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
12344 | fi | |
12345 | fi | |
12346 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12347 | if test -n "$ac_ct_RANLIB"; then | |
12348 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12349 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12350 | else | |
12351 | echo "$as_me:$LINENO: result: no" >&5 | |
12352 | echo "${ECHO_T}no" >&6 | |
12353 | fi | |
12354 | ||
12355 | RANLIB=$ac_ct_RANLIB | |
12356 | else | |
12357 | RANLIB="$ac_cv_prog_RANLIB" | |
12358 | fi | |
12359 | ||
12360 | ||
12361 | # Extract the first word of "ar", so it can be a program name with args. | |
12362 | set dummy ar; ac_word=$2 | |
12363 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12365 | if test "${ac_cv_prog_AR+set}" = set; then | |
12366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12367 | else | |
12368 | if test -n "$AR"; then | |
12369 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12370 | else | |
12371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12372 | for as_dir in $PATH | |
12373 | do | |
12374 | IFS=$as_save_IFS | |
12375 | test -z "$as_dir" && as_dir=. | |
12376 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12377 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12378 | ac_cv_prog_AR="ar" | |
12379 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12380 | break 2 | |
12381 | fi | |
12382 | done | |
12383 | done | |
12384 | ||
12385 | fi | |
12386 | fi | |
12387 | AR=$ac_cv_prog_AR | |
12388 | if test -n "$AR"; then | |
12389 | echo "$as_me:$LINENO: result: $AR" >&5 | |
12390 | echo "${ECHO_T}$AR" >&6 | |
12391 | else | |
12392 | echo "$as_me:$LINENO: result: no" >&5 | |
12393 | echo "${ECHO_T}no" >&6 | |
12394 | fi | |
12395 | ||
12396 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
12397 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
12398 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
12399 | { (exit 1); exit 1; }; } |
12400 | fi | |
12401 | ||
12402 | # Find a good install program. We prefer a C program (faster), | |
12403 | # so one script is as good as another. But avoid the broken or | |
12404 | # incompatible versions: | |
12405 | # SysV /etc/install, /usr/sbin/install | |
12406 | # SunOS /usr/etc/install | |
12407 | # IRIX /sbin/install | |
12408 | # AIX /bin/install | |
12409 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12410 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12411 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12412 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12413 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12414 | # ./install, which can be erroneously created by make from ./install.sh. |
12415 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12416 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12417 | if test -z "$INSTALL"; then | |
12418 | if test "${ac_cv_path_install+set}" = set; then | |
12419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12420 | else | |
12421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12422 | for as_dir in $PATH | |
12423 | do | |
12424 | IFS=$as_save_IFS | |
12425 | test -z "$as_dir" && as_dir=. | |
12426 | # Account for people who put trailing slashes in PATH elements. | |
12427 | case $as_dir/ in | |
12428 | ./ | .// | /cC/* | \ | |
12429 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12430 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12431 | /usr/ucb/* ) ;; |
12432 | *) | |
12433 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12434 | # Don't use installbsd from OSF since it installs stuff as root | |
12435 | # by default. | |
12436 | for ac_prog in ginstall scoinst install; do | |
12437 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
12438 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
12439 | if test $ac_prog = install && | |
12440 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12441 | # AIX install. It has an incompatible calling convention. | |
12442 | : | |
12443 | elif test $ac_prog = install && | |
12444 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12445 | # program-specific install script used by HP pwplus--don't use. | |
12446 | : | |
12447 | else | |
12448 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12449 | break 3 | |
12450 | fi | |
12451 | fi | |
a848cd7e SC |
12452 | done |
12453 | done | |
12454 | ;; | |
12455 | esac | |
12456 | done | |
12457 | ||
12458 | ||
12459 | fi | |
12460 | if test "${ac_cv_path_install+set}" = set; then | |
12461 | INSTALL=$ac_cv_path_install | |
12462 | else | |
12463 | # As a last resort, use the slow shell script. We don't cache a | |
12464 | # path for INSTALL within a source directory, because that will | |
12465 | # break other packages using the cache if that directory is | |
12466 | # removed, or if the path is relative. | |
12467 | INSTALL=$ac_install_sh | |
12468 | fi | |
12469 | fi | |
12470 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12471 | echo "${ECHO_T}$INSTALL" >&6 | |
12472 | ||
12473 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12474 | # It thinks the first close brace ends the variable substitution. | |
12475 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12476 | ||
12477 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12478 | ||
12479 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12480 | ||
12481 | ||
12482 | case ${INSTALL} in | |
12483 | /* ) # Absolute | |
12484 | ;; | |
12485 | ?:* ) # Drive letter, considered as absolute. | |
12486 | ;; | |
12487 | *) | |
12488 | INSTALL=`pwd`/${INSTALL} ;; | |
12489 | esac | |
12490 | ||
a848cd7e SC |
12491 | |
12492 | case "${host}" in | |
12493 | ||
12494 | powerpc-*-darwin* ) | |
12495 | INSTALL_PROGRAM="cp -fp" | |
12496 | INSTALL_DATA="cp -fp" | |
12497 | ;; | |
12498 | *) | |
12499 | ;; | |
12500 | esac | |
12501 | ||
12502 | # Extract the first word of "strip", so it can be a program name with args. | |
12503 | set dummy strip; ac_word=$2 | |
12504 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12506 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12508 | else | |
12509 | if test -n "$STRIP"; then | |
12510 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12511 | else | |
12512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12513 | for as_dir in $PATH | |
12514 | do | |
12515 | IFS=$as_save_IFS | |
12516 | test -z "$as_dir" && as_dir=. | |
12517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12519 | ac_cv_prog_STRIP="strip" | |
12520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12521 | break 2 | |
12522 | fi | |
12523 | done | |
12524 | done | |
12525 | ||
12526 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12527 | fi | |
12528 | fi | |
12529 | STRIP=$ac_cv_prog_STRIP | |
12530 | if test -n "$STRIP"; then | |
12531 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12532 | echo "${ECHO_T}$STRIP" >&6 | |
12533 | else | |
12534 | echo "$as_me:$LINENO: result: no" >&5 | |
12535 | echo "${ECHO_T}no" >&6 | |
12536 | fi | |
12537 | ||
12538 | ||
12539 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12540 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12541 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12543 | else | |
12544 | ||
12545 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12546 | egrep -s GNU > /dev/null); then | |
12547 | wx_cv_prog_makeisgnu="yes" | |
12548 | else | |
12549 | wx_cv_prog_makeisgnu="no" | |
12550 | fi | |
12551 | ||
12552 | fi | |
12553 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12554 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12555 | ||
12556 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12557 | IF_GNU_MAKE="" | |
12558 | else | |
12559 | IF_GNU_MAKE="#" | |
12560 | fi | |
12561 | ||
12562 | ||
12563 | ||
12564 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12565 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12566 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12567 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12569 | else | |
12570 | ||
12571 | cat - << EOF > confMake | |
12572 | check : file | |
12573 | cp \$? \$@ | |
12574 | cp \$? final_file | |
12575 | EOF | |
12576 | ||
12577 | if test ! -d sub ; then | |
12578 | mkdir sub | |
12579 | fi | |
12580 | echo dummy > sub/file | |
12581 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12582 | RESULT=$? | |
12583 | rm -f sub/file check final_file confMake | |
12584 | rmdir sub | |
12585 | if test "$RESULT" = 0; then | |
12586 | wx_cv_prog_makevpath="yes" | |
12587 | else | |
12588 | wx_cv_prog_makevpath="no" | |
12589 | fi | |
12590 | ||
12591 | fi | |
12592 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12593 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12594 | ||
12595 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12596 | { { echo "$as_me:$LINENO: error: | |
12597 | You need a make-utility that is able to use the variable | |
12598 | VPATH correctly. | |
12599 | If your version of make does not support VPATH correctly, | |
12600 | please install GNU-make (possibly as gmake), and start | |
12601 | configure with the following command: | |
12602 | export MAKE=gmake; ./configure for sh-type shells | |
12603 | setenv MAKE gmake; ./configure for csh-type shells | |
12604 | Also please do remember to use gmake in this case every time | |
12605 | you are trying to compile. | |
12606 | " >&5 | |
12607 | echo "$as_me: error: | |
12608 | You need a make-utility that is able to use the variable | |
12609 | VPATH correctly. | |
12610 | If your version of make does not support VPATH correctly, | |
12611 | please install GNU-make (possibly as gmake), and start | |
12612 | configure with the following command: | |
12613 | export MAKE=gmake; ./configure for sh-type shells | |
12614 | setenv MAKE gmake; ./configure for csh-type shells | |
12615 | Also please do remember to use gmake in this case every time | |
12616 | you are trying to compile. | |
12617 | " >&2;} | |
12618 | { (exit 1); exit 1; }; } | |
12619 | fi fi | |
12620 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12621 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12622 | LN_S=$as_ln_s | |
12623 | if test "$LN_S" = "ln -s"; then | |
12624 | echo "$as_me:$LINENO: result: yes" >&5 | |
12625 | echo "${ECHO_T}yes" >&6 | |
12626 | else | |
12627 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12628 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12629 | fi | |
12630 | ||
12631 | ||
12632 | ||
12633 | case "${host}" in | |
12634 | *-pc-os2_emx | *-pc-os2-emx ) | |
12635 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12636 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12637 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12638 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12640 | else | |
12641 | ac_check_lib_save_LIBS=$LIBS | |
12642 | LIBS="-lcExt $LIBS" | |
12643 | cat >conftest.$ac_ext <<_ACEOF | |
12644 | /* confdefs.h. */ | |
12645 | _ACEOF | |
12646 | cat confdefs.h >>conftest.$ac_ext | |
12647 | cat >>conftest.$ac_ext <<_ACEOF | |
12648 | /* end confdefs.h. */ | |
12649 | ||
12650 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12651 | #ifdef __cplusplus | |
12652 | extern "C" | |
12653 | #endif | |
12654 | /* We use char because int might match the return type of a gcc2 | |
12655 | builtin and then its argument prototype would still apply. */ | |
12656 | char drand48 (); | |
12657 | int | |
12658 | main () | |
12659 | { | |
12660 | drand48 (); | |
12661 | ; | |
12662 | return 0; | |
12663 | } | |
12664 | _ACEOF | |
12665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12667 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12668 | ac_status=$? |
ac1cb8d3 VS |
12669 | grep -v '^ *+' conftest.er1 >conftest.err |
12670 | rm -f conftest.er1 | |
12671 | cat conftest.err >&5 | |
a848cd7e SC |
12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12673 | (exit $ac_status); } && | |
89be85c2 VS |
12674 | { ac_try='test -z "$ac_c_werror_flag" |
12675 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12677 | (eval $ac_try) 2>&5 | |
12678 | ac_status=$? | |
12679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12680 | (exit $ac_status); }; } && | |
12681 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12683 | (eval $ac_try) 2>&5 | |
12684 | ac_status=$? | |
12685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12686 | (exit $ac_status); }; }; then | |
12687 | ac_cv_lib_cExt_drand48=yes | |
12688 | else | |
12689 | echo "$as_me: failed program was:" >&5 | |
12690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12691 | ||
12692 | ac_cv_lib_cExt_drand48=no | |
12693 | fi | |
ac1cb8d3 VS |
12694 | rm -f conftest.err conftest.$ac_objext \ |
12695 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12696 | LIBS=$ac_check_lib_save_LIBS |
12697 | fi | |
12698 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12699 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12700 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12701 | LIBS="$LIBS -lcExt" | |
12702 | fi | |
12703 | ||
12704 | else | |
12705 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12706 | fi | |
12707 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12708 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12709 | if test "${wx_cv_gccversion+set}" = set; then | |
12710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12711 | else | |
12712 | ||
12713 | cat >conftest.$ac_ext <<_ACEOF | |
12714 | /* confdefs.h. */ | |
12715 | _ACEOF | |
12716 | cat confdefs.h >>conftest.$ac_ext | |
12717 | cat >>conftest.$ac_ext <<_ACEOF | |
12718 | /* end confdefs.h. */ | |
12719 | ||
12720 | int | |
12721 | main () | |
12722 | { | |
12723 | ||
12724 | #if (__GNUC__ < 3) | |
12725 | #error old gcc | |
12726 | #endif | |
12727 | ||
12728 | ; | |
12729 | return 0; | |
12730 | } | |
12731 | _ACEOF | |
12732 | rm -f conftest.$ac_objext | |
12733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12734 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12735 | ac_status=$? |
ac1cb8d3 VS |
12736 | grep -v '^ *+' conftest.er1 >conftest.err |
12737 | rm -f conftest.er1 | |
12738 | cat conftest.err >&5 | |
a848cd7e SC |
12739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12740 | (exit $ac_status); } && | |
89be85c2 VS |
12741 | { ac_try='test -z "$ac_c_werror_flag" |
12742 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12744 | (eval $ac_try) 2>&5 | |
12745 | ac_status=$? | |
12746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12747 | (exit $ac_status); }; } && | |
12748 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12750 | (eval $ac_try) 2>&5 | |
12751 | ac_status=$? | |
12752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12753 | (exit $ac_status); }; }; then | |
12754 | ||
12755 | cat >conftest.$ac_ext <<_ACEOF | |
12756 | /* confdefs.h. */ | |
12757 | _ACEOF | |
12758 | cat confdefs.h >>conftest.$ac_ext | |
12759 | cat >>conftest.$ac_ext <<_ACEOF | |
12760 | /* end confdefs.h. */ | |
12761 | ||
12762 | int | |
12763 | main () | |
12764 | { | |
12765 | ||
12766 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12767 | #error intermediate gcc | |
12768 | #endif | |
12769 | ||
12770 | ; | |
12771 | return 0; | |
12772 | } | |
12773 | _ACEOF | |
12774 | rm -f conftest.$ac_objext | |
12775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12776 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12777 | ac_status=$? |
ac1cb8d3 VS |
12778 | grep -v '^ *+' conftest.er1 >conftest.err |
12779 | rm -f conftest.er1 | |
12780 | cat conftest.err >&5 | |
a848cd7e SC |
12781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12782 | (exit $ac_status); } && | |
89be85c2 VS |
12783 | { ac_try='test -z "$ac_c_werror_flag" |
12784 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12786 | (eval $ac_try) 2>&5 | |
12787 | ac_status=$? | |
12788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12789 | (exit $ac_status); }; } && | |
12790 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12792 | (eval $ac_try) 2>&5 | |
12793 | ac_status=$? | |
12794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12795 | (exit $ac_status); }; }; then | |
12796 | ||
12797 | wx_cv_gccversion=Innotek | |
12798 | ||
12799 | else | |
12800 | echo "$as_me: failed program was:" >&5 | |
12801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12802 | ||
12803 | ||
12804 | wx_cv_gccversion=3 | |
12805 | ||
12806 | ||
12807 | fi | |
ac1cb8d3 | 12808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12809 | |
12810 | else | |
12811 | echo "$as_me: failed program was:" >&5 | |
12812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12813 | ||
12814 | ||
12815 | wx_cv_gccversion=2 | |
12816 | ||
12817 | ||
12818 | fi | |
ac1cb8d3 | 12819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12820 | |
12821 | fi | |
12822 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12823 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12824 | if test "$wx_cv_gccversion" = "2"; then | |
12825 | LIBS="$LIBS -lstdcpp" | |
12826 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12827 | else | |
12828 | if test "$wx_cv_gccversion" = "3"; then | |
12829 | LIBS="$LIBS -lstdcxx" | |
12830 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12831 | else | |
12832 | LIBS="$LIBS -lstdc++" | |
12833 | fi | |
12834 | fi | |
12835 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12836 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12837 | fi |
12838 | ;; | |
12839 | *) | |
12840 | ||
12841 | ||
12842 | ||
12843 | ac_ext=cc | |
12844 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12845 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12846 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12847 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12848 | ||
12849 | ||
95986553 | 12850 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
12851 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
12852 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12854 | else | |
12855 | ||
12856 | cat >conftest.$ac_ext <<_ACEOF | |
12857 | /* confdefs.h. */ | |
12858 | _ACEOF | |
12859 | cat confdefs.h >>conftest.$ac_ext | |
12860 | cat >>conftest.$ac_ext <<_ACEOF | |
12861 | /* end confdefs.h. */ | |
12862 | ||
12863 | #include <string.h> | |
12864 | ||
12865 | int | |
12866 | main () | |
12867 | { | |
12868 | ||
12869 | strcasecmp("foo", "bar"); | |
12870 | ||
12871 | ; | |
12872 | return 0; | |
12873 | } | |
12874 | _ACEOF | |
12875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12877 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12878 | ac_status=$? |
ac1cb8d3 VS |
12879 | grep -v '^ *+' conftest.er1 >conftest.err |
12880 | rm -f conftest.er1 | |
12881 | cat conftest.err >&5 | |
a848cd7e SC |
12882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12883 | (exit $ac_status); } && | |
89be85c2 VS |
12884 | { ac_try='test -z "$ac_cxx_werror_flag" |
12885 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12887 | (eval $ac_try) 2>&5 | |
12888 | ac_status=$? | |
12889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12890 | (exit $ac_status); }; } && | |
12891 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12893 | (eval $ac_try) 2>&5 | |
12894 | ac_status=$? | |
12895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12896 | (exit $ac_status); }; }; then | |
12897 | ac_cv_string_strcasecmp=yes | |
12898 | else | |
12899 | echo "$as_me: failed program was:" >&5 | |
12900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12901 | ||
12902 | ac_cv_string_strcasecmp=no | |
12903 | ||
12904 | fi | |
ac1cb8d3 VS |
12905 | rm -f conftest.err conftest.$ac_objext \ |
12906 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12907 | |
12908 | fi | |
12909 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12910 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12911 | ||
12912 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12913 | cat >>confdefs.h <<\_ACEOF | |
12914 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12915 | _ACEOF | |
12916 | ||
12917 | else | |
12918 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12919 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12920 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12922 | else | |
12923 | ||
12924 | cat >conftest.$ac_ext <<_ACEOF | |
12925 | /* confdefs.h. */ | |
12926 | _ACEOF | |
12927 | cat confdefs.h >>conftest.$ac_ext | |
12928 | cat >>conftest.$ac_ext <<_ACEOF | |
12929 | /* end confdefs.h. */ | |
12930 | ||
12931 | #include <strings.h> | |
12932 | ||
12933 | int | |
12934 | main () | |
12935 | { | |
12936 | ||
12937 | strcasecmp("foo", "bar"); | |
12938 | ||
12939 | ; | |
12940 | return 0; | |
12941 | } | |
12942 | _ACEOF | |
12943 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12945 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12946 | ac_status=$? |
ac1cb8d3 VS |
12947 | grep -v '^ *+' conftest.er1 >conftest.err |
12948 | rm -f conftest.er1 | |
12949 | cat conftest.err >&5 | |
a848cd7e SC |
12950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12951 | (exit $ac_status); } && | |
89be85c2 VS |
12952 | { ac_try='test -z "$ac_cxx_werror_flag" |
12953 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12955 | (eval $ac_try) 2>&5 | |
12956 | ac_status=$? | |
12957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12958 | (exit $ac_status); }; } && | |
12959 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12961 | (eval $ac_try) 2>&5 | |
12962 | ac_status=$? | |
12963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12964 | (exit $ac_status); }; }; then | |
12965 | ac_cv_strings_strcasecmp=yes | |
12966 | else | |
12967 | echo "$as_me: failed program was:" >&5 | |
12968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12969 | ||
12970 | ac_cv_strings_strcasecmp=no | |
12971 | ||
12972 | fi | |
ac1cb8d3 VS |
12973 | rm -f conftest.err conftest.$ac_objext \ |
12974 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12975 | |
12976 | fi | |
12977 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12978 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12979 | ||
0c3c69fc | 12980 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
12981 | cat >>confdefs.h <<\_ACEOF |
12982 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12983 | _ACEOF | |
12984 | ||
12985 | else | |
12986 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12987 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12988 | { (exit 1); exit 1; }; } | |
12989 | fi | |
12990 | fi | |
12991 | ||
12992 | ac_ext=c | |
12993 | ac_cpp='$CPP $CPPFLAGS' | |
12994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12997 | ||
12998 | ;; | |
12999 | esac | |
13000 | ||
13001 | ||
13002 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
13003 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
13004 | if test "${ac_cv_header_stdc+set}" = set; then | |
13005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13006 | else | |
13007 | cat >conftest.$ac_ext <<_ACEOF | |
13008 | /* confdefs.h. */ | |
13009 | _ACEOF | |
13010 | cat confdefs.h >>conftest.$ac_ext | |
13011 | cat >>conftest.$ac_ext <<_ACEOF | |
13012 | /* end confdefs.h. */ | |
13013 | #include <stdlib.h> | |
13014 | #include <stdarg.h> | |
13015 | #include <string.h> | |
13016 | #include <float.h> | |
13017 | ||
13018 | int | |
13019 | main () | |
13020 | { | |
13021 | ||
13022 | ; | |
13023 | return 0; | |
13024 | } | |
13025 | _ACEOF | |
13026 | rm -f conftest.$ac_objext | |
13027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13028 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13029 | ac_status=$? |
ac1cb8d3 VS |
13030 | grep -v '^ *+' conftest.er1 >conftest.err |
13031 | rm -f conftest.er1 | |
13032 | cat conftest.err >&5 | |
a848cd7e SC |
13033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13034 | (exit $ac_status); } && | |
89be85c2 VS |
13035 | { ac_try='test -z "$ac_c_werror_flag" |
13036 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13038 | (eval $ac_try) 2>&5 | |
13039 | ac_status=$? | |
13040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13041 | (exit $ac_status); }; } && | |
13042 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13044 | (eval $ac_try) 2>&5 | |
13045 | ac_status=$? | |
13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13047 | (exit $ac_status); }; }; then | |
13048 | ac_cv_header_stdc=yes | |
13049 | else | |
13050 | echo "$as_me: failed program was:" >&5 | |
13051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13052 | ||
13053 | ac_cv_header_stdc=no | |
13054 | fi | |
ac1cb8d3 | 13055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13056 | |
13057 | if test $ac_cv_header_stdc = yes; then | |
13058 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
13059 | cat >conftest.$ac_ext <<_ACEOF | |
13060 | /* confdefs.h. */ | |
13061 | _ACEOF | |
13062 | cat confdefs.h >>conftest.$ac_ext | |
13063 | cat >>conftest.$ac_ext <<_ACEOF | |
13064 | /* end confdefs.h. */ | |
13065 | #include <string.h> | |
13066 | ||
13067 | _ACEOF | |
13068 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13069 | $EGREP "memchr" >/dev/null 2>&1; then | |
13070 | : | |
13071 | else | |
13072 | ac_cv_header_stdc=no | |
13073 | fi | |
13074 | rm -f conftest* | |
13075 | ||
13076 | fi | |
13077 | ||
13078 | if test $ac_cv_header_stdc = yes; then | |
13079 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
13080 | cat >conftest.$ac_ext <<_ACEOF | |
13081 | /* confdefs.h. */ | |
13082 | _ACEOF | |
13083 | cat confdefs.h >>conftest.$ac_ext | |
13084 | cat >>conftest.$ac_ext <<_ACEOF | |
13085 | /* end confdefs.h. */ | |
13086 | #include <stdlib.h> | |
13087 | ||
13088 | _ACEOF | |
13089 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13090 | $EGREP "free" >/dev/null 2>&1; then | |
13091 | : | |
13092 | else | |
13093 | ac_cv_header_stdc=no | |
13094 | fi | |
13095 | rm -f conftest* | |
13096 | ||
13097 | fi | |
13098 | ||
13099 | if test $ac_cv_header_stdc = yes; then | |
13100 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
13101 | if test "$cross_compiling" = yes; then | |
13102 | : | |
13103 | else | |
13104 | cat >conftest.$ac_ext <<_ACEOF | |
13105 | /* confdefs.h. */ | |
13106 | _ACEOF | |
13107 | cat confdefs.h >>conftest.$ac_ext | |
13108 | cat >>conftest.$ac_ext <<_ACEOF | |
13109 | /* end confdefs.h. */ | |
13110 | #include <ctype.h> | |
13111 | #if ((' ' & 0x0FF) == 0x020) | |
13112 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
13113 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
13114 | #else | |
13115 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
13116 | (('a' <= (c) && (c) <= 'i') \ |
13117 | || ('j' <= (c) && (c) <= 'r') \ | |
13118 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
13119 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
13120 | #endif | |
13121 | ||
13122 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
13123 | int | |
13124 | main () | |
13125 | { | |
13126 | int i; | |
13127 | for (i = 0; i < 256; i++) | |
13128 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 13129 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
13130 | exit(2); |
13131 | exit (0); | |
13132 | } | |
13133 | _ACEOF | |
13134 | rm -f conftest$ac_exeext | |
13135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13136 | (eval $ac_link) 2>&5 | |
13137 | ac_status=$? | |
13138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13139 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13141 | (eval $ac_try) 2>&5 | |
13142 | ac_status=$? | |
13143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13144 | (exit $ac_status); }; }; then | |
13145 | : | |
13146 | else | |
13147 | echo "$as_me: program exited with status $ac_status" >&5 | |
13148 | echo "$as_me: failed program was:" >&5 | |
13149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13150 | ||
13151 | ( exit $ac_status ) | |
13152 | ac_cv_header_stdc=no | |
13153 | fi | |
ac1cb8d3 | 13154 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13155 | fi |
13156 | fi | |
13157 | fi | |
13158 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
13159 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
13160 | if test $ac_cv_header_stdc = yes; then | |
13161 | ||
13162 | cat >>confdefs.h <<\_ACEOF | |
13163 | #define STDC_HEADERS 1 | |
13164 | _ACEOF | |
13165 | ||
13166 | fi | |
13167 | ||
13168 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
13169 | ||
13170 | ||
13171 | ||
13172 | ||
13173 | ||
13174 | ||
13175 | ||
13176 | ||
13177 | ||
13178 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 13179 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
13180 | do |
13181 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13182 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13183 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13184 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13186 | else | |
13187 | cat >conftest.$ac_ext <<_ACEOF | |
13188 | /* confdefs.h. */ | |
13189 | _ACEOF | |
13190 | cat confdefs.h >>conftest.$ac_ext | |
13191 | cat >>conftest.$ac_ext <<_ACEOF | |
13192 | /* end confdefs.h. */ | |
13193 | $ac_includes_default | |
13194 | ||
13195 | #include <$ac_header> | |
13196 | _ACEOF | |
13197 | rm -f conftest.$ac_objext | |
13198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13199 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13200 | ac_status=$? |
ac1cb8d3 VS |
13201 | grep -v '^ *+' conftest.er1 >conftest.err |
13202 | rm -f conftest.er1 | |
13203 | cat conftest.err >&5 | |
a848cd7e SC |
13204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13205 | (exit $ac_status); } && | |
89be85c2 VS |
13206 | { ac_try='test -z "$ac_c_werror_flag" |
13207 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13209 | (eval $ac_try) 2>&5 | |
13210 | ac_status=$? | |
13211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13212 | (exit $ac_status); }; } && | |
13213 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13215 | (eval $ac_try) 2>&5 | |
13216 | ac_status=$? | |
13217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13218 | (exit $ac_status); }; }; then | |
13219 | eval "$as_ac_Header=yes" | |
13220 | else | |
13221 | echo "$as_me: failed program was:" >&5 | |
13222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13223 | ||
13224 | eval "$as_ac_Header=no" | |
13225 | fi | |
ac1cb8d3 | 13226 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13227 | fi |
13228 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13229 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13231 | cat >>confdefs.h <<_ACEOF | |
13232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13233 | _ACEOF | |
13234 | ||
13235 | fi | |
13236 | ||
13237 | done | |
13238 | ||
13239 | ||
13240 | ||
13241 | for ac_header in stdlib.h | |
13242 | do | |
13243 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13244 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13245 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13246 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13249 | fi | |
13250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13251 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13252 | else | |
13253 | # Is the header compilable? | |
13254 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13255 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13256 | cat >conftest.$ac_ext <<_ACEOF | |
13257 | /* confdefs.h. */ | |
13258 | _ACEOF | |
13259 | cat confdefs.h >>conftest.$ac_ext | |
13260 | cat >>conftest.$ac_ext <<_ACEOF | |
13261 | /* end confdefs.h. */ | |
13262 | $ac_includes_default | |
13263 | #include <$ac_header> | |
13264 | _ACEOF | |
13265 | rm -f conftest.$ac_objext | |
13266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13267 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13268 | ac_status=$? |
ac1cb8d3 VS |
13269 | grep -v '^ *+' conftest.er1 >conftest.err |
13270 | rm -f conftest.er1 | |
13271 | cat conftest.err >&5 | |
a848cd7e SC |
13272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13273 | (exit $ac_status); } && | |
89be85c2 VS |
13274 | { ac_try='test -z "$ac_c_werror_flag" |
13275 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13277 | (eval $ac_try) 2>&5 | |
13278 | ac_status=$? | |
13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13280 | (exit $ac_status); }; } && | |
13281 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13283 | (eval $ac_try) 2>&5 | |
13284 | ac_status=$? | |
13285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13286 | (exit $ac_status); }; }; then | |
13287 | ac_header_compiler=yes | |
13288 | else | |
13289 | echo "$as_me: failed program was:" >&5 | |
13290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13291 | ||
13292 | ac_header_compiler=no | |
13293 | fi | |
ac1cb8d3 | 13294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13295 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13296 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13297 | ||
13298 | # Is the header present? | |
13299 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13300 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13301 | cat >conftest.$ac_ext <<_ACEOF | |
13302 | /* confdefs.h. */ | |
13303 | _ACEOF | |
13304 | cat confdefs.h >>conftest.$ac_ext | |
13305 | cat >>conftest.$ac_ext <<_ACEOF | |
13306 | /* end confdefs.h. */ | |
13307 | #include <$ac_header> | |
13308 | _ACEOF | |
13309 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13310 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13311 | ac_status=$? | |
13312 | grep -v '^ *+' conftest.er1 >conftest.err | |
13313 | rm -f conftest.er1 | |
13314 | cat conftest.err >&5 | |
13315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13316 | (exit $ac_status); } >/dev/null; then | |
13317 | if test -s conftest.err; then | |
13318 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13319 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13320 | else |
13321 | ac_cpp_err= | |
13322 | fi | |
13323 | else | |
13324 | ac_cpp_err=yes | |
13325 | fi | |
13326 | if test -z "$ac_cpp_err"; then | |
13327 | ac_header_preproc=yes | |
13328 | else | |
13329 | echo "$as_me: failed program was:" >&5 | |
13330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13331 | ||
13332 | ac_header_preproc=no | |
13333 | fi | |
13334 | rm -f conftest.err conftest.$ac_ext | |
13335 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13336 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13337 | ||
13338 | # So? What about this header? | |
ac1cb8d3 VS |
13339 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13340 | yes:no: ) | |
a848cd7e SC |
13341 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13342 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13343 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13344 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13345 | ac_header_preproc=yes | |
a848cd7e | 13346 | ;; |
ac1cb8d3 | 13347 | no:yes:* ) |
a848cd7e SC |
13348 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13349 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13350 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13351 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13352 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13353 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13354 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13355 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13356 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13357 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13358 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13359 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13360 | ( |
13361 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13362 | ## ----------------------------------------- ## |
13363 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13364 | ## ----------------------------------------- ## | |
a848cd7e SC |
13365 | _ASBOX |
13366 | ) | | |
13367 | sed "s/^/$as_me: WARNING: /" >&2 | |
13368 | ;; | |
13369 | esac | |
13370 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13374 | else | |
ac1cb8d3 | 13375 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13376 | fi |
13377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13378 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13379 | ||
13380 | fi | |
13381 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13382 | cat >>confdefs.h <<_ACEOF | |
13383 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13384 | _ACEOF | |
13385 | ||
13386 | fi | |
13387 | ||
13388 | done | |
13389 | ||
13390 | ||
13391 | for ac_header in malloc.h | |
13392 | do | |
13393 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13394 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13395 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13396 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13397 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13399 | fi | |
13400 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13401 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13402 | else | |
13403 | # Is the header compilable? | |
13404 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13405 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13406 | cat >conftest.$ac_ext <<_ACEOF | |
13407 | /* confdefs.h. */ | |
13408 | _ACEOF | |
13409 | cat confdefs.h >>conftest.$ac_ext | |
13410 | cat >>conftest.$ac_ext <<_ACEOF | |
13411 | /* end confdefs.h. */ | |
13412 | $ac_includes_default | |
13413 | #include <$ac_header> | |
13414 | _ACEOF | |
13415 | rm -f conftest.$ac_objext | |
13416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13417 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13418 | ac_status=$? |
ac1cb8d3 VS |
13419 | grep -v '^ *+' conftest.er1 >conftest.err |
13420 | rm -f conftest.er1 | |
13421 | cat conftest.err >&5 | |
a848cd7e SC |
13422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13423 | (exit $ac_status); } && | |
89be85c2 VS |
13424 | { ac_try='test -z "$ac_c_werror_flag" |
13425 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13427 | (eval $ac_try) 2>&5 | |
13428 | ac_status=$? | |
13429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13430 | (exit $ac_status); }; } && | |
13431 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13433 | (eval $ac_try) 2>&5 | |
13434 | ac_status=$? | |
13435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13436 | (exit $ac_status); }; }; then | |
13437 | ac_header_compiler=yes | |
13438 | else | |
13439 | echo "$as_me: failed program was:" >&5 | |
13440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13441 | ||
13442 | ac_header_compiler=no | |
13443 | fi | |
ac1cb8d3 | 13444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13445 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13446 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13447 | ||
13448 | # Is the header present? | |
13449 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13450 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13451 | cat >conftest.$ac_ext <<_ACEOF | |
13452 | /* confdefs.h. */ | |
13453 | _ACEOF | |
13454 | cat confdefs.h >>conftest.$ac_ext | |
13455 | cat >>conftest.$ac_ext <<_ACEOF | |
13456 | /* end confdefs.h. */ | |
13457 | #include <$ac_header> | |
13458 | _ACEOF | |
13459 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13460 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13461 | ac_status=$? | |
13462 | grep -v '^ *+' conftest.er1 >conftest.err | |
13463 | rm -f conftest.er1 | |
13464 | cat conftest.err >&5 | |
13465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13466 | (exit $ac_status); } >/dev/null; then | |
13467 | if test -s conftest.err; then | |
13468 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13469 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13470 | else |
13471 | ac_cpp_err= | |
13472 | fi | |
13473 | else | |
13474 | ac_cpp_err=yes | |
13475 | fi | |
13476 | if test -z "$ac_cpp_err"; then | |
13477 | ac_header_preproc=yes | |
13478 | else | |
13479 | echo "$as_me: failed program was:" >&5 | |
13480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13481 | ||
13482 | ac_header_preproc=no | |
13483 | fi | |
13484 | rm -f conftest.err conftest.$ac_ext | |
13485 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13486 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13487 | ||
13488 | # So? What about this header? | |
ac1cb8d3 VS |
13489 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13490 | yes:no: ) | |
a848cd7e SC |
13491 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13492 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13493 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13494 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13495 | ac_header_preproc=yes | |
a848cd7e | 13496 | ;; |
ac1cb8d3 | 13497 | no:yes:* ) |
a848cd7e SC |
13498 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13499 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13500 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13501 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13502 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13503 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13504 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13505 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13506 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13507 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13508 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13509 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13510 | ( |
13511 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13512 | ## ----------------------------------------- ## |
13513 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13514 | ## ----------------------------------------- ## | |
a848cd7e SC |
13515 | _ASBOX |
13516 | ) | | |
13517 | sed "s/^/$as_me: WARNING: /" >&2 | |
13518 | ;; | |
13519 | esac | |
13520 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13521 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13522 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13524 | else | |
ac1cb8d3 | 13525 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13526 | fi |
13527 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13528 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13529 | ||
13530 | fi | |
13531 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13532 | cat >>confdefs.h <<_ACEOF | |
13533 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13534 | _ACEOF | |
13535 | ||
13536 | fi | |
13537 | ||
13538 | done | |
13539 | ||
13540 | ||
13541 | for ac_header in unistd.h | |
13542 | do | |
13543 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13545 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13546 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13547 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13549 | fi | |
13550 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13551 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13552 | else | |
13553 | # Is the header compilable? | |
13554 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13555 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13556 | cat >conftest.$ac_ext <<_ACEOF | |
13557 | /* confdefs.h. */ | |
13558 | _ACEOF | |
13559 | cat confdefs.h >>conftest.$ac_ext | |
13560 | cat >>conftest.$ac_ext <<_ACEOF | |
13561 | /* end confdefs.h. */ | |
13562 | $ac_includes_default | |
13563 | #include <$ac_header> | |
13564 | _ACEOF | |
13565 | rm -f conftest.$ac_objext | |
13566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13567 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13568 | ac_status=$? |
ac1cb8d3 VS |
13569 | grep -v '^ *+' conftest.er1 >conftest.err |
13570 | rm -f conftest.er1 | |
13571 | cat conftest.err >&5 | |
a848cd7e SC |
13572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13573 | (exit $ac_status); } && | |
89be85c2 VS |
13574 | { ac_try='test -z "$ac_c_werror_flag" |
13575 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13577 | (eval $ac_try) 2>&5 | |
13578 | ac_status=$? | |
13579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13580 | (exit $ac_status); }; } && | |
13581 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13583 | (eval $ac_try) 2>&5 | |
13584 | ac_status=$? | |
13585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13586 | (exit $ac_status); }; }; then | |
13587 | ac_header_compiler=yes | |
13588 | else | |
13589 | echo "$as_me: failed program was:" >&5 | |
13590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13591 | ||
13592 | ac_header_compiler=no | |
13593 | fi | |
ac1cb8d3 | 13594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13595 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13596 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13597 | ||
13598 | # Is the header present? | |
13599 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13600 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13601 | cat >conftest.$ac_ext <<_ACEOF | |
13602 | /* confdefs.h. */ | |
13603 | _ACEOF | |
13604 | cat confdefs.h >>conftest.$ac_ext | |
13605 | cat >>conftest.$ac_ext <<_ACEOF | |
13606 | /* end confdefs.h. */ | |
13607 | #include <$ac_header> | |
13608 | _ACEOF | |
13609 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13610 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13611 | ac_status=$? | |
13612 | grep -v '^ *+' conftest.er1 >conftest.err | |
13613 | rm -f conftest.er1 | |
13614 | cat conftest.err >&5 | |
13615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13616 | (exit $ac_status); } >/dev/null; then | |
13617 | if test -s conftest.err; then | |
13618 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13619 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13620 | else |
13621 | ac_cpp_err= | |
13622 | fi | |
13623 | else | |
13624 | ac_cpp_err=yes | |
13625 | fi | |
13626 | if test -z "$ac_cpp_err"; then | |
13627 | ac_header_preproc=yes | |
13628 | else | |
13629 | echo "$as_me: failed program was:" >&5 | |
13630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13631 | ||
13632 | ac_header_preproc=no | |
13633 | fi | |
13634 | rm -f conftest.err conftest.$ac_ext | |
13635 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13636 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13637 | ||
13638 | # So? What about this header? | |
ac1cb8d3 VS |
13639 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13640 | yes:no: ) | |
a848cd7e SC |
13641 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13642 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13643 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13644 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13645 | ac_header_preproc=yes | |
a848cd7e | 13646 | ;; |
ac1cb8d3 | 13647 | no:yes:* ) |
a848cd7e SC |
13648 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13649 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13650 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13651 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13652 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13653 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13654 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13655 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13656 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13657 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13658 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13659 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13660 | ( |
13661 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13662 | ## ----------------------------------------- ## |
13663 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13664 | ## ----------------------------------------- ## | |
a848cd7e SC |
13665 | _ASBOX |
13666 | ) | | |
13667 | sed "s/^/$as_me: WARNING: /" >&2 | |
13668 | ;; | |
13669 | esac | |
13670 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13671 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13672 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13674 | else | |
ac1cb8d3 | 13675 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13676 | fi |
13677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13678 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13679 | ||
13680 | fi | |
13681 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13682 | cat >>confdefs.h <<_ACEOF | |
13683 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13684 | _ACEOF | |
13685 | ||
13686 | fi | |
13687 | ||
13688 | done | |
13689 | ||
13690 | ||
13691 | for ac_header in wchar.h | |
13692 | do | |
13693 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13694 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13695 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13696 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13697 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13699 | fi | |
13700 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13701 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13702 | else | |
13703 | # Is the header compilable? | |
13704 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13705 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13706 | cat >conftest.$ac_ext <<_ACEOF | |
13707 | /* confdefs.h. */ | |
13708 | _ACEOF | |
13709 | cat confdefs.h >>conftest.$ac_ext | |
13710 | cat >>conftest.$ac_ext <<_ACEOF | |
13711 | /* end confdefs.h. */ | |
13712 | $ac_includes_default | |
13713 | #include <$ac_header> | |
13714 | _ACEOF | |
13715 | rm -f conftest.$ac_objext | |
13716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13717 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13718 | ac_status=$? |
ac1cb8d3 VS |
13719 | grep -v '^ *+' conftest.er1 >conftest.err |
13720 | rm -f conftest.er1 | |
13721 | cat conftest.err >&5 | |
a848cd7e SC |
13722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13723 | (exit $ac_status); } && | |
89be85c2 VS |
13724 | { ac_try='test -z "$ac_c_werror_flag" |
13725 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13727 | (eval $ac_try) 2>&5 | |
13728 | ac_status=$? | |
13729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13730 | (exit $ac_status); }; } && | |
13731 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13733 | (eval $ac_try) 2>&5 | |
13734 | ac_status=$? | |
13735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13736 | (exit $ac_status); }; }; then | |
13737 | ac_header_compiler=yes | |
13738 | else | |
13739 | echo "$as_me: failed program was:" >&5 | |
13740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13741 | ||
13742 | ac_header_compiler=no | |
13743 | fi | |
ac1cb8d3 | 13744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13745 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13746 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13747 | ||
13748 | # Is the header present? | |
13749 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13750 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13751 | cat >conftest.$ac_ext <<_ACEOF | |
13752 | /* confdefs.h. */ | |
13753 | _ACEOF | |
13754 | cat confdefs.h >>conftest.$ac_ext | |
13755 | cat >>conftest.$ac_ext <<_ACEOF | |
13756 | /* end confdefs.h. */ | |
13757 | #include <$ac_header> | |
13758 | _ACEOF | |
13759 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13760 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13761 | ac_status=$? | |
13762 | grep -v '^ *+' conftest.er1 >conftest.err | |
13763 | rm -f conftest.er1 | |
13764 | cat conftest.err >&5 | |
13765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13766 | (exit $ac_status); } >/dev/null; then | |
13767 | if test -s conftest.err; then | |
13768 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13769 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13770 | else |
13771 | ac_cpp_err= | |
13772 | fi | |
13773 | else | |
13774 | ac_cpp_err=yes | |
13775 | fi | |
13776 | if test -z "$ac_cpp_err"; then | |
13777 | ac_header_preproc=yes | |
13778 | else | |
13779 | echo "$as_me: failed program was:" >&5 | |
13780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13781 | ||
13782 | ac_header_preproc=no | |
13783 | fi | |
13784 | rm -f conftest.err conftest.$ac_ext | |
13785 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13786 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13787 | ||
13788 | # So? What about this header? | |
ac1cb8d3 VS |
13789 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13790 | yes:no: ) | |
a848cd7e SC |
13791 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13792 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13793 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13794 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13795 | ac_header_preproc=yes | |
a848cd7e | 13796 | ;; |
ac1cb8d3 | 13797 | no:yes:* ) |
a848cd7e SC |
13798 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13799 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13800 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13801 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13802 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13803 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13804 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13805 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13806 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13807 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13808 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13809 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13810 | ( |
13811 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13812 | ## ----------------------------------------- ## |
13813 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13814 | ## ----------------------------------------- ## | |
a848cd7e SC |
13815 | _ASBOX |
13816 | ) | | |
13817 | sed "s/^/$as_me: WARNING: /" >&2 | |
13818 | ;; | |
13819 | esac | |
13820 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13821 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13824 | else | |
ac1cb8d3 | 13825 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13826 | fi |
13827 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13828 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13829 | ||
13830 | fi | |
13831 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13832 | cat >>confdefs.h <<_ACEOF | |
13833 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13834 | _ACEOF | |
13835 | ||
13836 | fi | |
13837 | ||
13838 | done | |
13839 | ||
13840 | ||
13841 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13842 | ||
13843 | for ac_header in wcstr.h | |
13844 | do | |
13845 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13846 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13847 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13849 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13851 | fi | |
13852 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13853 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13854 | else | |
13855 | # Is the header compilable? | |
13856 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13857 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13858 | cat >conftest.$ac_ext <<_ACEOF | |
13859 | /* confdefs.h. */ | |
13860 | _ACEOF | |
13861 | cat confdefs.h >>conftest.$ac_ext | |
13862 | cat >>conftest.$ac_ext <<_ACEOF | |
13863 | /* end confdefs.h. */ | |
13864 | $ac_includes_default | |
13865 | #include <$ac_header> | |
13866 | _ACEOF | |
13867 | rm -f conftest.$ac_objext | |
13868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13869 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13870 | ac_status=$? |
ac1cb8d3 VS |
13871 | grep -v '^ *+' conftest.er1 >conftest.err |
13872 | rm -f conftest.er1 | |
13873 | cat conftest.err >&5 | |
a848cd7e SC |
13874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13875 | (exit $ac_status); } && | |
89be85c2 VS |
13876 | { ac_try='test -z "$ac_c_werror_flag" |
13877 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13879 | (eval $ac_try) 2>&5 | |
13880 | ac_status=$? | |
13881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13882 | (exit $ac_status); }; } && | |
13883 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13885 | (eval $ac_try) 2>&5 | |
13886 | ac_status=$? | |
13887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13888 | (exit $ac_status); }; }; then | |
13889 | ac_header_compiler=yes | |
13890 | else | |
13891 | echo "$as_me: failed program was:" >&5 | |
13892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13893 | ||
13894 | ac_header_compiler=no | |
13895 | fi | |
ac1cb8d3 | 13896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13897 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13898 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13899 | ||
13900 | # Is the header present? | |
13901 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13902 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13903 | cat >conftest.$ac_ext <<_ACEOF | |
13904 | /* confdefs.h. */ | |
13905 | _ACEOF | |
13906 | cat confdefs.h >>conftest.$ac_ext | |
13907 | cat >>conftest.$ac_ext <<_ACEOF | |
13908 | /* end confdefs.h. */ | |
13909 | #include <$ac_header> | |
13910 | _ACEOF | |
13911 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13912 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13913 | ac_status=$? | |
13914 | grep -v '^ *+' conftest.er1 >conftest.err | |
13915 | rm -f conftest.er1 | |
13916 | cat conftest.err >&5 | |
13917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13918 | (exit $ac_status); } >/dev/null; then | |
13919 | if test -s conftest.err; then | |
13920 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13921 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13922 | else |
13923 | ac_cpp_err= | |
13924 | fi | |
13925 | else | |
13926 | ac_cpp_err=yes | |
13927 | fi | |
13928 | if test -z "$ac_cpp_err"; then | |
13929 | ac_header_preproc=yes | |
13930 | else | |
13931 | echo "$as_me: failed program was:" >&5 | |
13932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13933 | ||
13934 | ac_header_preproc=no | |
13935 | fi | |
13936 | rm -f conftest.err conftest.$ac_ext | |
13937 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13938 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13939 | ||
13940 | # So? What about this header? | |
ac1cb8d3 VS |
13941 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13942 | yes:no: ) | |
a848cd7e SC |
13943 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13944 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13945 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13946 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13947 | ac_header_preproc=yes | |
a848cd7e | 13948 | ;; |
ac1cb8d3 | 13949 | no:yes:* ) |
a848cd7e SC |
13950 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13951 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13952 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13953 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13954 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13955 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13956 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13957 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13958 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13959 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13960 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13961 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13962 | ( |
13963 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13964 | ## ----------------------------------------- ## |
13965 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13966 | ## ----------------------------------------- ## | |
a848cd7e SC |
13967 | _ASBOX |
13968 | ) | | |
13969 | sed "s/^/$as_me: WARNING: /" >&2 | |
13970 | ;; | |
13971 | esac | |
13972 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13973 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13976 | else | |
ac1cb8d3 | 13977 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13978 | fi |
13979 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13980 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13981 | ||
13982 | fi | |
13983 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13984 | cat >>confdefs.h <<_ACEOF | |
13985 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13986 | _ACEOF | |
13987 | ||
13988 | fi | |
13989 | ||
13990 | done | |
13991 | ||
13992 | fi | |
13993 | ||
13994 | ||
13995 | for ac_header in fnmatch.h | |
13996 | do | |
13997 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13999 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14001 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14003 | fi | |
14004 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14005 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14006 | else | |
14007 | # Is the header compilable? | |
14008 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14009 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14010 | cat >conftest.$ac_ext <<_ACEOF | |
14011 | /* confdefs.h. */ | |
14012 | _ACEOF | |
14013 | cat confdefs.h >>conftest.$ac_ext | |
14014 | cat >>conftest.$ac_ext <<_ACEOF | |
14015 | /* end confdefs.h. */ | |
14016 | $ac_includes_default | |
14017 | #include <$ac_header> | |
14018 | _ACEOF | |
14019 | rm -f conftest.$ac_objext | |
14020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14021 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14022 | ac_status=$? |
ac1cb8d3 VS |
14023 | grep -v '^ *+' conftest.er1 >conftest.err |
14024 | rm -f conftest.er1 | |
14025 | cat conftest.err >&5 | |
a848cd7e SC |
14026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14027 | (exit $ac_status); } && | |
89be85c2 VS |
14028 | { ac_try='test -z "$ac_c_werror_flag" |
14029 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14031 | (eval $ac_try) 2>&5 | |
14032 | ac_status=$? | |
14033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14034 | (exit $ac_status); }; } && | |
14035 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14037 | (eval $ac_try) 2>&5 | |
14038 | ac_status=$? | |
14039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14040 | (exit $ac_status); }; }; then | |
14041 | ac_header_compiler=yes | |
14042 | else | |
14043 | echo "$as_me: failed program was:" >&5 | |
14044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14045 | ||
14046 | ac_header_compiler=no | |
14047 | fi | |
ac1cb8d3 | 14048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14049 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14050 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14051 | ||
14052 | # Is the header present? | |
14053 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14054 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14055 | cat >conftest.$ac_ext <<_ACEOF | |
14056 | /* confdefs.h. */ | |
14057 | _ACEOF | |
14058 | cat confdefs.h >>conftest.$ac_ext | |
14059 | cat >>conftest.$ac_ext <<_ACEOF | |
14060 | /* end confdefs.h. */ | |
14061 | #include <$ac_header> | |
14062 | _ACEOF | |
14063 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14064 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14065 | ac_status=$? | |
14066 | grep -v '^ *+' conftest.er1 >conftest.err | |
14067 | rm -f conftest.er1 | |
14068 | cat conftest.err >&5 | |
14069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14070 | (exit $ac_status); } >/dev/null; then | |
14071 | if test -s conftest.err; then | |
14072 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14073 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14074 | else |
14075 | ac_cpp_err= | |
14076 | fi | |
14077 | else | |
14078 | ac_cpp_err=yes | |
14079 | fi | |
14080 | if test -z "$ac_cpp_err"; then | |
14081 | ac_header_preproc=yes | |
14082 | else | |
14083 | echo "$as_me: failed program was:" >&5 | |
14084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14085 | ||
14086 | ac_header_preproc=no | |
14087 | fi | |
14088 | rm -f conftest.err conftest.$ac_ext | |
14089 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14090 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14091 | ||
14092 | # So? What about this header? | |
ac1cb8d3 VS |
14093 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14094 | yes:no: ) | |
a848cd7e SC |
14095 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14096 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14097 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14098 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14099 | ac_header_preproc=yes | |
a848cd7e | 14100 | ;; |
ac1cb8d3 | 14101 | no:yes:* ) |
a848cd7e SC |
14102 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14103 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14104 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14105 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14106 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14107 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14108 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14109 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14111 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14112 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14113 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14114 | ( |
14115 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14116 | ## ----------------------------------------- ## |
14117 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14118 | ## ----------------------------------------- ## | |
a848cd7e SC |
14119 | _ASBOX |
14120 | ) | | |
14121 | sed "s/^/$as_me: WARNING: /" >&2 | |
14122 | ;; | |
14123 | esac | |
14124 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14125 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14126 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14128 | else | |
ac1cb8d3 | 14129 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14130 | fi |
14131 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14132 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14133 | ||
14134 | fi | |
14135 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14136 | cat >>confdefs.h <<_ACEOF | |
14137 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14138 | _ACEOF | |
14139 | ||
14140 | fi | |
14141 | ||
14142 | done | |
14143 | ||
14144 | ||
14145 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
14146 | ||
14147 | for ac_func in fnmatch | |
14148 | do | |
14149 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14150 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14151 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14152 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14154 | else | |
14155 | cat >conftest.$ac_ext <<_ACEOF | |
14156 | /* confdefs.h. */ | |
14157 | _ACEOF | |
14158 | cat confdefs.h >>conftest.$ac_ext | |
14159 | cat >>conftest.$ac_ext <<_ACEOF | |
14160 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
14161 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14162 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14163 | #define $ac_func innocuous_$ac_func | |
14164 | ||
a848cd7e SC |
14165 | /* System header to define __stub macros and hopefully few prototypes, |
14166 | which can conflict with char $ac_func (); below. | |
14167 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14168 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 14169 | |
a848cd7e SC |
14170 | #ifdef __STDC__ |
14171 | # include <limits.h> | |
14172 | #else | |
14173 | # include <assert.h> | |
14174 | #endif | |
ac1cb8d3 VS |
14175 | |
14176 | #undef $ac_func | |
14177 | ||
a848cd7e SC |
14178 | /* Override any gcc2 internal prototype to avoid an error. */ |
14179 | #ifdef __cplusplus | |
14180 | extern "C" | |
14181 | { | |
14182 | #endif | |
14183 | /* We use char because int might match the return type of a gcc2 | |
14184 | builtin and then its argument prototype would still apply. */ | |
14185 | char $ac_func (); | |
14186 | /* The GNU C library defines this for functions which it implements | |
14187 | to always fail with ENOSYS. Some functions are actually named | |
14188 | something starting with __ and the normal name is an alias. */ | |
14189 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14190 | choke me | |
14191 | #else | |
14192 | char (*f) () = $ac_func; | |
14193 | #endif | |
14194 | #ifdef __cplusplus | |
14195 | } | |
14196 | #endif | |
14197 | ||
14198 | int | |
14199 | main () | |
14200 | { | |
14201 | return f != $ac_func; | |
14202 | ; | |
14203 | return 0; | |
14204 | } | |
14205 | _ACEOF | |
14206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14208 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14209 | ac_status=$? |
ac1cb8d3 VS |
14210 | grep -v '^ *+' conftest.er1 >conftest.err |
14211 | rm -f conftest.er1 | |
14212 | cat conftest.err >&5 | |
a848cd7e SC |
14213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14214 | (exit $ac_status); } && | |
89be85c2 VS |
14215 | { ac_try='test -z "$ac_c_werror_flag" |
14216 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14218 | (eval $ac_try) 2>&5 | |
14219 | ac_status=$? | |
14220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14221 | (exit $ac_status); }; } && | |
14222 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14224 | (eval $ac_try) 2>&5 | |
14225 | ac_status=$? | |
14226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14227 | (exit $ac_status); }; }; then | |
14228 | eval "$as_ac_var=yes" | |
14229 | else | |
14230 | echo "$as_me: failed program was:" >&5 | |
14231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14232 | ||
14233 | eval "$as_ac_var=no" | |
14234 | fi | |
ac1cb8d3 VS |
14235 | rm -f conftest.err conftest.$ac_objext \ |
14236 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14237 | fi |
14238 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14239 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14240 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14241 | cat >>confdefs.h <<_ACEOF | |
14242 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14243 | _ACEOF | |
14244 | ||
14245 | fi | |
14246 | done | |
14247 | ||
14248 | fi | |
14249 | ||
14250 | ||
14251 | for ac_header in langinfo.h | |
14252 | do | |
14253 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14254 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14255 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14256 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14257 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14259 | fi | |
14260 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14261 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14262 | else | |
14263 | # Is the header compilable? | |
14264 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14265 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14266 | cat >conftest.$ac_ext <<_ACEOF | |
14267 | /* confdefs.h. */ | |
14268 | _ACEOF | |
14269 | cat confdefs.h >>conftest.$ac_ext | |
14270 | cat >>conftest.$ac_ext <<_ACEOF | |
14271 | /* end confdefs.h. */ | |
14272 | $ac_includes_default | |
14273 | #include <$ac_header> | |
14274 | _ACEOF | |
14275 | rm -f conftest.$ac_objext | |
14276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14277 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14278 | ac_status=$? |
ac1cb8d3 VS |
14279 | grep -v '^ *+' conftest.er1 >conftest.err |
14280 | rm -f conftest.er1 | |
14281 | cat conftest.err >&5 | |
a848cd7e SC |
14282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14283 | (exit $ac_status); } && | |
89be85c2 VS |
14284 | { ac_try='test -z "$ac_c_werror_flag" |
14285 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14287 | (eval $ac_try) 2>&5 | |
14288 | ac_status=$? | |
14289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14290 | (exit $ac_status); }; } && | |
14291 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14293 | (eval $ac_try) 2>&5 | |
14294 | ac_status=$? | |
14295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14296 | (exit $ac_status); }; }; then | |
14297 | ac_header_compiler=yes | |
14298 | else | |
14299 | echo "$as_me: failed program was:" >&5 | |
14300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14301 | ||
14302 | ac_header_compiler=no | |
14303 | fi | |
ac1cb8d3 | 14304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14305 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14306 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14307 | ||
14308 | # Is the header present? | |
14309 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14310 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14311 | cat >conftest.$ac_ext <<_ACEOF | |
14312 | /* confdefs.h. */ | |
14313 | _ACEOF | |
14314 | cat confdefs.h >>conftest.$ac_ext | |
14315 | cat >>conftest.$ac_ext <<_ACEOF | |
14316 | /* end confdefs.h. */ | |
14317 | #include <$ac_header> | |
14318 | _ACEOF | |
14319 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14320 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14321 | ac_status=$? | |
14322 | grep -v '^ *+' conftest.er1 >conftest.err | |
14323 | rm -f conftest.er1 | |
14324 | cat conftest.err >&5 | |
14325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14326 | (exit $ac_status); } >/dev/null; then | |
14327 | if test -s conftest.err; then | |
14328 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14329 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14330 | else |
14331 | ac_cpp_err= | |
14332 | fi | |
14333 | else | |
14334 | ac_cpp_err=yes | |
14335 | fi | |
14336 | if test -z "$ac_cpp_err"; then | |
14337 | ac_header_preproc=yes | |
14338 | else | |
14339 | echo "$as_me: failed program was:" >&5 | |
14340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14341 | ||
14342 | ac_header_preproc=no | |
14343 | fi | |
14344 | rm -f conftest.err conftest.$ac_ext | |
14345 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14346 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14347 | ||
14348 | # So? What about this header? | |
ac1cb8d3 VS |
14349 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14350 | yes:no: ) | |
a848cd7e SC |
14351 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14352 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14353 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14354 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14355 | ac_header_preproc=yes | |
a848cd7e | 14356 | ;; |
ac1cb8d3 | 14357 | no:yes:* ) |
a848cd7e SC |
14358 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14359 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14360 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14361 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14362 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14363 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14364 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14365 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14366 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14367 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14368 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14369 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14370 | ( |
14371 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14372 | ## ----------------------------------------- ## |
14373 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14374 | ## ----------------------------------------- ## | |
a848cd7e SC |
14375 | _ASBOX |
14376 | ) | | |
14377 | sed "s/^/$as_me: WARNING: /" >&2 | |
14378 | ;; | |
14379 | esac | |
14380 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14381 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14382 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14384 | else | |
ac1cb8d3 | 14385 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14386 | fi |
14387 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14388 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14389 | ||
14390 | fi | |
14391 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14392 | cat >>confdefs.h <<_ACEOF | |
14393 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14394 | _ACEOF | |
14395 | ||
14396 | fi | |
14397 | ||
14398 | done | |
14399 | ||
14400 | ||
14401 | case "${host}" in | |
14402 | *-pc-os2_emx | *-pc-os2-emx ) | |
14403 | if test $ac_cv_header_langinfo_h = "yes"; then | |
14404 | LIBS="$LIBS -lintl" | |
14405 | fi | |
14406 | ;; | |
14407 | esac | |
14408 | ||
14409 | if test "$wxUSE_GUI" = "yes"; then | |
14410 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
14411 | ||
14412 | for ac_header in X11/Xlib.h | |
14413 | do | |
14414 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14415 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14416 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14417 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14420 | fi | |
14421 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14422 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14423 | else | |
14424 | # Is the header compilable? | |
14425 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14426 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14427 | cat >conftest.$ac_ext <<_ACEOF | |
14428 | /* confdefs.h. */ | |
14429 | _ACEOF | |
14430 | cat confdefs.h >>conftest.$ac_ext | |
14431 | cat >>conftest.$ac_ext <<_ACEOF | |
14432 | /* end confdefs.h. */ | |
14433 | $ac_includes_default | |
14434 | #include <$ac_header> | |
14435 | _ACEOF | |
14436 | rm -f conftest.$ac_objext | |
14437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14438 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14439 | ac_status=$? |
ac1cb8d3 VS |
14440 | grep -v '^ *+' conftest.er1 >conftest.err |
14441 | rm -f conftest.er1 | |
14442 | cat conftest.err >&5 | |
a848cd7e SC |
14443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14444 | (exit $ac_status); } && | |
89be85c2 VS |
14445 | { ac_try='test -z "$ac_c_werror_flag" |
14446 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14448 | (eval $ac_try) 2>&5 | |
14449 | ac_status=$? | |
14450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14451 | (exit $ac_status); }; } && | |
14452 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14454 | (eval $ac_try) 2>&5 | |
14455 | ac_status=$? | |
14456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14457 | (exit $ac_status); }; }; then | |
14458 | ac_header_compiler=yes | |
14459 | else | |
14460 | echo "$as_me: failed program was:" >&5 | |
14461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14462 | ||
14463 | ac_header_compiler=no | |
14464 | fi | |
ac1cb8d3 | 14465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14466 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14467 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14468 | ||
14469 | # Is the header present? | |
14470 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14471 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14472 | cat >conftest.$ac_ext <<_ACEOF | |
14473 | /* confdefs.h. */ | |
14474 | _ACEOF | |
14475 | cat confdefs.h >>conftest.$ac_ext | |
14476 | cat >>conftest.$ac_ext <<_ACEOF | |
14477 | /* end confdefs.h. */ | |
14478 | #include <$ac_header> | |
14479 | _ACEOF | |
14480 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14481 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14482 | ac_status=$? | |
14483 | grep -v '^ *+' conftest.er1 >conftest.err | |
14484 | rm -f conftest.er1 | |
14485 | cat conftest.err >&5 | |
14486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14487 | (exit $ac_status); } >/dev/null; then | |
14488 | if test -s conftest.err; then | |
14489 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14490 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14491 | else |
14492 | ac_cpp_err= | |
14493 | fi | |
14494 | else | |
14495 | ac_cpp_err=yes | |
14496 | fi | |
14497 | if test -z "$ac_cpp_err"; then | |
14498 | ac_header_preproc=yes | |
14499 | else | |
14500 | echo "$as_me: failed program was:" >&5 | |
14501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14502 | ||
14503 | ac_header_preproc=no | |
14504 | fi | |
14505 | rm -f conftest.err conftest.$ac_ext | |
14506 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14507 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14508 | ||
14509 | # So? What about this header? | |
ac1cb8d3 VS |
14510 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14511 | yes:no: ) | |
a848cd7e SC |
14512 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14513 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14514 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14515 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14516 | ac_header_preproc=yes | |
a848cd7e | 14517 | ;; |
ac1cb8d3 | 14518 | no:yes:* ) |
a848cd7e SC |
14519 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14520 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14521 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14522 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14523 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14524 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14525 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14526 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14527 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14528 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14529 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14530 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14531 | ( |
14532 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14533 | ## ----------------------------------------- ## |
14534 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14535 | ## ----------------------------------------- ## | |
a848cd7e SC |
14536 | _ASBOX |
14537 | ) | | |
14538 | sed "s/^/$as_me: WARNING: /" >&2 | |
14539 | ;; | |
14540 | esac | |
14541 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14542 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14543 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14545 | else | |
ac1cb8d3 | 14546 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14547 | fi |
14548 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14549 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14550 | ||
14551 | fi | |
14552 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14553 | cat >>confdefs.h <<_ACEOF | |
14554 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14555 | _ACEOF | |
14556 | ||
14557 | fi | |
14558 | ||
14559 | done | |
14560 | ||
14561 | ||
14562 | for ac_header in X11/XKBlib.h | |
14563 | do | |
14564 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14565 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14567 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14569 | else | |
14570 | cat >conftest.$ac_ext <<_ACEOF | |
14571 | /* confdefs.h. */ | |
14572 | _ACEOF | |
14573 | cat confdefs.h >>conftest.$ac_ext | |
14574 | cat >>conftest.$ac_ext <<_ACEOF | |
14575 | /* end confdefs.h. */ | |
14576 | ||
14577 | #if HAVE_X11_XLIB_H | |
14578 | #include <X11/Xlib.h> | |
14579 | #endif | |
14580 | ||
14581 | ||
14582 | #include <$ac_header> | |
14583 | _ACEOF | |
14584 | rm -f conftest.$ac_objext | |
14585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14586 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14587 | ac_status=$? |
ac1cb8d3 VS |
14588 | grep -v '^ *+' conftest.er1 >conftest.err |
14589 | rm -f conftest.er1 | |
14590 | cat conftest.err >&5 | |
a848cd7e SC |
14591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14592 | (exit $ac_status); } && | |
89be85c2 VS |
14593 | { ac_try='test -z "$ac_c_werror_flag" |
14594 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14596 | (eval $ac_try) 2>&5 | |
14597 | ac_status=$? | |
14598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14599 | (exit $ac_status); }; } && | |
14600 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14602 | (eval $ac_try) 2>&5 | |
14603 | ac_status=$? | |
14604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14605 | (exit $ac_status); }; }; then | |
14606 | eval "$as_ac_Header=yes" | |
14607 | else | |
14608 | echo "$as_me: failed program was:" >&5 | |
14609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14610 | ||
14611 | eval "$as_ac_Header=no" | |
14612 | fi | |
ac1cb8d3 | 14613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14614 | fi |
14615 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14616 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14617 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14618 | cat >>confdefs.h <<_ACEOF | |
14619 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14620 | _ACEOF | |
14621 | ||
14622 | fi | |
14623 | ||
14624 | done | |
14625 | ||
14626 | fi | |
14627 | fi | |
14628 | ||
14629 | ||
14630 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14631 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14632 | if test "${ac_cv_c_const+set}" = set; then | |
14633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14634 | else | |
14635 | cat >conftest.$ac_ext <<_ACEOF | |
14636 | /* confdefs.h. */ | |
14637 | _ACEOF | |
14638 | cat confdefs.h >>conftest.$ac_ext | |
14639 | cat >>conftest.$ac_ext <<_ACEOF | |
14640 | /* end confdefs.h. */ | |
14641 | ||
14642 | int | |
14643 | main () | |
14644 | { | |
14645 | /* FIXME: Include the comments suggested by Paul. */ | |
14646 | #ifndef __cplusplus | |
14647 | /* Ultrix mips cc rejects this. */ | |
14648 | typedef int charset[2]; | |
14649 | const charset x; | |
14650 | /* SunOS 4.1.1 cc rejects this. */ | |
14651 | char const *const *ccp; | |
14652 | char **p; | |
14653 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14654 | struct point {int x, y;}; | |
14655 | static struct point const zero = {0,0}; | |
14656 | /* AIX XL C 1.02.0.0 rejects this. | |
14657 | It does not let you subtract one const X* pointer from another in | |
14658 | an arm of an if-expression whose if-part is not a constant | |
14659 | expression */ | |
14660 | const char *g = "string"; | |
14661 | ccp = &g + (g ? g-g : 0); | |
14662 | /* HPUX 7.0 cc rejects these. */ | |
14663 | ++ccp; | |
14664 | p = (char**) ccp; | |
14665 | ccp = (char const *const *) p; | |
14666 | { /* SCO 3.2v4 cc rejects this. */ | |
14667 | char *t; | |
14668 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14669 | ||
14670 | *t++ = 0; | |
14671 | } | |
14672 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14673 | int x[] = {25, 17}; | |
14674 | const int *foo = &x[0]; | |
14675 | ++foo; | |
14676 | } | |
14677 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14678 | typedef const int *iptr; | |
14679 | iptr p = 0; | |
14680 | ++p; | |
14681 | } | |
14682 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14683 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14684 | struct s { int j; const int *ap[3]; }; | |
14685 | struct s *b; b->j = 5; | |
14686 | } | |
14687 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14688 | const int foo = 10; | |
14689 | } | |
14690 | #endif | |
14691 | ||
14692 | ; | |
14693 | return 0; | |
14694 | } | |
14695 | _ACEOF | |
14696 | rm -f conftest.$ac_objext | |
14697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14698 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14699 | ac_status=$? |
ac1cb8d3 VS |
14700 | grep -v '^ *+' conftest.er1 >conftest.err |
14701 | rm -f conftest.er1 | |
14702 | cat conftest.err >&5 | |
a848cd7e SC |
14703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14704 | (exit $ac_status); } && | |
89be85c2 VS |
14705 | { ac_try='test -z "$ac_c_werror_flag" |
14706 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14708 | (eval $ac_try) 2>&5 | |
14709 | ac_status=$? | |
14710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14711 | (exit $ac_status); }; } && | |
14712 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14714 | (eval $ac_try) 2>&5 | |
14715 | ac_status=$? | |
14716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14717 | (exit $ac_status); }; }; then | |
14718 | ac_cv_c_const=yes | |
14719 | else | |
14720 | echo "$as_me: failed program was:" >&5 | |
14721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14722 | ||
14723 | ac_cv_c_const=no | |
14724 | fi | |
ac1cb8d3 | 14725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14726 | fi |
14727 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14728 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14729 | if test $ac_cv_c_const = no; then | |
14730 | ||
14731 | cat >>confdefs.h <<\_ACEOF | |
14732 | #define const | |
14733 | _ACEOF | |
14734 | ||
14735 | fi | |
14736 | ||
14737 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14738 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14739 | if test "${ac_cv_c_inline+set}" = set; then | |
14740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14741 | else | |
14742 | ac_cv_c_inline=no | |
14743 | for ac_kw in inline __inline__ __inline; do | |
14744 | cat >conftest.$ac_ext <<_ACEOF | |
14745 | /* confdefs.h. */ | |
14746 | _ACEOF | |
14747 | cat confdefs.h >>conftest.$ac_ext | |
14748 | cat >>conftest.$ac_ext <<_ACEOF | |
14749 | /* end confdefs.h. */ | |
14750 | #ifndef __cplusplus | |
14751 | typedef int foo_t; | |
14752 | static $ac_kw foo_t static_foo () {return 0; } | |
14753 | $ac_kw foo_t foo () {return 0; } | |
14754 | #endif | |
14755 | ||
14756 | _ACEOF | |
14757 | rm -f conftest.$ac_objext | |
14758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14759 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14760 | ac_status=$? |
ac1cb8d3 VS |
14761 | grep -v '^ *+' conftest.er1 >conftest.err |
14762 | rm -f conftest.er1 | |
14763 | cat conftest.err >&5 | |
a848cd7e SC |
14764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14765 | (exit $ac_status); } && | |
89be85c2 VS |
14766 | { ac_try='test -z "$ac_c_werror_flag" |
14767 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14769 | (eval $ac_try) 2>&5 | |
14770 | ac_status=$? | |
14771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14772 | (exit $ac_status); }; } && | |
14773 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14775 | (eval $ac_try) 2>&5 | |
14776 | ac_status=$? | |
14777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14778 | (exit $ac_status); }; }; then | |
14779 | ac_cv_c_inline=$ac_kw; break | |
14780 | else | |
14781 | echo "$as_me: failed program was:" >&5 | |
14782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14783 | ||
14784 | fi | |
ac1cb8d3 | 14785 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14786 | done |
14787 | ||
14788 | fi | |
14789 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14790 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14791 | |
14792 | ||
a848cd7e SC |
14793 | case $ac_cv_c_inline in |
14794 | inline | yes) ;; | |
ac1cb8d3 VS |
14795 | *) |
14796 | case $ac_cv_c_inline in | |
14797 | no) ac_val=;; | |
14798 | *) ac_val=$ac_cv_c_inline;; | |
14799 | esac | |
14800 | cat >>confdefs.h <<_ACEOF | |
14801 | #ifndef __cplusplus | |
14802 | #define inline $ac_val | |
14803 | #endif | |
de59c161 | 14804 | _ACEOF |
ac1cb8d3 | 14805 | ;; |
a848cd7e SC |
14806 | esac |
14807 | ||
14808 | ||
14809 | echo "$as_me:$LINENO: checking for char" >&5 | |
14810 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14811 | if test "${ac_cv_type_char+set}" = set; then | |
14812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14813 | else | |
14814 | cat >conftest.$ac_ext <<_ACEOF | |
14815 | /* confdefs.h. */ | |
14816 | _ACEOF | |
14817 | cat confdefs.h >>conftest.$ac_ext | |
14818 | cat >>conftest.$ac_ext <<_ACEOF | |
14819 | /* end confdefs.h. */ | |
14820 | $ac_includes_default | |
14821 | int | |
14822 | main () | |
14823 | { | |
14824 | if ((char *) 0) | |
14825 | return 0; | |
14826 | if (sizeof (char)) | |
14827 | return 0; | |
14828 | ; | |
14829 | return 0; | |
14830 | } | |
14831 | _ACEOF | |
14832 | rm -f conftest.$ac_objext | |
14833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14834 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14835 | ac_status=$? |
ac1cb8d3 VS |
14836 | grep -v '^ *+' conftest.er1 >conftest.err |
14837 | rm -f conftest.er1 | |
14838 | cat conftest.err >&5 | |
a848cd7e SC |
14839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14840 | (exit $ac_status); } && | |
89be85c2 VS |
14841 | { ac_try='test -z "$ac_c_werror_flag" |
14842 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14844 | (eval $ac_try) 2>&5 | |
14845 | ac_status=$? | |
14846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14847 | (exit $ac_status); }; } && | |
14848 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14850 | (eval $ac_try) 2>&5 | |
14851 | ac_status=$? | |
14852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14853 | (exit $ac_status); }; }; then | |
14854 | ac_cv_type_char=yes | |
14855 | else | |
14856 | echo "$as_me: failed program was:" >&5 | |
14857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14858 | ||
14859 | ac_cv_type_char=no | |
14860 | fi | |
ac1cb8d3 | 14861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14862 | fi |
14863 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14864 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14865 | ||
14866 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14867 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14868 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14870 | else | |
14871 | if test "$ac_cv_type_char" = yes; then | |
14872 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14873 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14874 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14875 | # This bug is HP SR number 8606223364. | |
14876 | if test "$cross_compiling" = yes; then | |
14877 | # Depending upon the size, compute the lo and hi bounds. | |
14878 | cat >conftest.$ac_ext <<_ACEOF | |
14879 | /* confdefs.h. */ | |
14880 | _ACEOF | |
14881 | cat confdefs.h >>conftest.$ac_ext | |
14882 | cat >>conftest.$ac_ext <<_ACEOF | |
14883 | /* end confdefs.h. */ | |
14884 | $ac_includes_default | |
14885 | int | |
14886 | main () | |
14887 | { | |
14888 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14889 | test_array [0] = 0 | |
14890 | ||
14891 | ; | |
14892 | return 0; | |
14893 | } | |
14894 | _ACEOF | |
14895 | rm -f conftest.$ac_objext | |
14896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14897 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14898 | ac_status=$? |
ac1cb8d3 VS |
14899 | grep -v '^ *+' conftest.er1 >conftest.err |
14900 | rm -f conftest.er1 | |
14901 | cat conftest.err >&5 | |
a848cd7e SC |
14902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14903 | (exit $ac_status); } && | |
89be85c2 VS |
14904 | { ac_try='test -z "$ac_c_werror_flag" |
14905 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14907 | (eval $ac_try) 2>&5 | |
14908 | ac_status=$? | |
14909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14910 | (exit $ac_status); }; } && | |
14911 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14913 | (eval $ac_try) 2>&5 | |
14914 | ac_status=$? | |
14915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14916 | (exit $ac_status); }; }; then | |
14917 | ac_lo=0 ac_mid=0 | |
14918 | while :; do | |
14919 | cat >conftest.$ac_ext <<_ACEOF | |
14920 | /* confdefs.h. */ | |
14921 | _ACEOF | |
14922 | cat confdefs.h >>conftest.$ac_ext | |
14923 | cat >>conftest.$ac_ext <<_ACEOF | |
14924 | /* end confdefs.h. */ | |
14925 | $ac_includes_default | |
14926 | int | |
14927 | main () | |
14928 | { | |
14929 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14930 | test_array [0] = 0 | |
14931 | ||
14932 | ; | |
14933 | return 0; | |
14934 | } | |
14935 | _ACEOF | |
14936 | rm -f conftest.$ac_objext | |
14937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14938 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14939 | ac_status=$? |
ac1cb8d3 VS |
14940 | grep -v '^ *+' conftest.er1 >conftest.err |
14941 | rm -f conftest.er1 | |
14942 | cat conftest.err >&5 | |
a848cd7e SC |
14943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14944 | (exit $ac_status); } && | |
89be85c2 VS |
14945 | { ac_try='test -z "$ac_c_werror_flag" |
14946 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14948 | (eval $ac_try) 2>&5 | |
14949 | ac_status=$? | |
14950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14951 | (exit $ac_status); }; } && | |
14952 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14954 | (eval $ac_try) 2>&5 | |
14955 | ac_status=$? | |
14956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14957 | (exit $ac_status); }; }; then | |
14958 | ac_hi=$ac_mid; break | |
14959 | else | |
14960 | echo "$as_me: failed program was:" >&5 | |
14961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14962 | ||
14963 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14964 | if test $ac_lo -le $ac_mid; then |
14965 | ac_lo= ac_hi= | |
14966 | break | |
14967 | fi | |
14968 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14969 | fi |
ac1cb8d3 | 14970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14971 | done |
14972 | else | |
14973 | echo "$as_me: failed program was:" >&5 | |
14974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14975 | ||
14976 | cat >conftest.$ac_ext <<_ACEOF | |
14977 | /* confdefs.h. */ | |
14978 | _ACEOF | |
14979 | cat confdefs.h >>conftest.$ac_ext | |
14980 | cat >>conftest.$ac_ext <<_ACEOF | |
14981 | /* end confdefs.h. */ | |
14982 | $ac_includes_default | |
14983 | int | |
14984 | main () | |
14985 | { | |
14986 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14987 | test_array [0] = 0 | |
14988 | ||
14989 | ; | |
14990 | return 0; | |
14991 | } | |
14992 | _ACEOF | |
14993 | rm -f conftest.$ac_objext | |
14994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14995 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14996 | ac_status=$? |
ac1cb8d3 VS |
14997 | grep -v '^ *+' conftest.er1 >conftest.err |
14998 | rm -f conftest.er1 | |
14999 | cat conftest.err >&5 | |
a848cd7e SC |
15000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15001 | (exit $ac_status); } && | |
89be85c2 VS |
15002 | { ac_try='test -z "$ac_c_werror_flag" |
15003 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15005 | (eval $ac_try) 2>&5 | |
15006 | ac_status=$? | |
15007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15008 | (exit $ac_status); }; } && | |
15009 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15011 | (eval $ac_try) 2>&5 | |
15012 | ac_status=$? | |
15013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15014 | (exit $ac_status); }; }; then | |
15015 | ac_hi=-1 ac_mid=-1 | |
15016 | while :; do | |
15017 | cat >conftest.$ac_ext <<_ACEOF | |
15018 | /* confdefs.h. */ | |
15019 | _ACEOF | |
15020 | cat confdefs.h >>conftest.$ac_ext | |
15021 | cat >>conftest.$ac_ext <<_ACEOF | |
15022 | /* end confdefs.h. */ | |
15023 | $ac_includes_default | |
15024 | int | |
15025 | main () | |
15026 | { | |
15027 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
15028 | test_array [0] = 0 | |
15029 | ||
15030 | ; | |
15031 | return 0; | |
15032 | } | |
15033 | _ACEOF | |
15034 | rm -f conftest.$ac_objext | |
15035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15036 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15037 | ac_status=$? |
ac1cb8d3 VS |
15038 | grep -v '^ *+' conftest.er1 >conftest.err |
15039 | rm -f conftest.er1 | |
15040 | cat conftest.err >&5 | |
a848cd7e SC |
15041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15042 | (exit $ac_status); } && | |
89be85c2 VS |
15043 | { ac_try='test -z "$ac_c_werror_flag" |
15044 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15046 | (eval $ac_try) 2>&5 | |
15047 | ac_status=$? | |
15048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15049 | (exit $ac_status); }; } && | |
15050 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15052 | (eval $ac_try) 2>&5 | |
15053 | ac_status=$? | |
15054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15055 | (exit $ac_status); }; }; then | |
15056 | ac_lo=$ac_mid; break | |
15057 | else | |
15058 | echo "$as_me: failed program was:" >&5 | |
15059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15060 | ||
15061 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15062 | if test $ac_mid -le $ac_hi; then |
15063 | ac_lo= ac_hi= | |
15064 | break | |
15065 | fi | |
15066 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15067 | fi |
ac1cb8d3 | 15068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15069 | done |
15070 | else | |
15071 | echo "$as_me: failed program was:" >&5 | |
15072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15073 | ||
15074 | ac_lo= ac_hi= | |
15075 | fi | |
ac1cb8d3 | 15076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15077 | fi |
ac1cb8d3 | 15078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15079 | # Binary search between lo and hi bounds. |
15080 | while test "x$ac_lo" != "x$ac_hi"; do | |
15081 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15082 | cat >conftest.$ac_ext <<_ACEOF | |
15083 | /* confdefs.h. */ | |
15084 | _ACEOF | |
15085 | cat confdefs.h >>conftest.$ac_ext | |
15086 | cat >>conftest.$ac_ext <<_ACEOF | |
15087 | /* end confdefs.h. */ | |
15088 | $ac_includes_default | |
15089 | int | |
15090 | main () | |
15091 | { | |
15092 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15093 | test_array [0] = 0 | |
15094 | ||
15095 | ; | |
15096 | return 0; | |
15097 | } | |
15098 | _ACEOF | |
15099 | rm -f conftest.$ac_objext | |
15100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15101 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15102 | ac_status=$? |
ac1cb8d3 VS |
15103 | grep -v '^ *+' conftest.er1 >conftest.err |
15104 | rm -f conftest.er1 | |
15105 | cat conftest.err >&5 | |
a848cd7e SC |
15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15107 | (exit $ac_status); } && | |
89be85c2 VS |
15108 | { ac_try='test -z "$ac_c_werror_flag" |
15109 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15111 | (eval $ac_try) 2>&5 | |
15112 | ac_status=$? | |
15113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15114 | (exit $ac_status); }; } && | |
15115 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15117 | (eval $ac_try) 2>&5 | |
15118 | ac_status=$? | |
15119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15120 | (exit $ac_status); }; }; then | |
15121 | ac_hi=$ac_mid | |
15122 | else | |
15123 | echo "$as_me: failed program was:" >&5 | |
15124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15125 | ||
15126 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15127 | fi | |
ac1cb8d3 | 15128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15129 | done |
15130 | case $ac_lo in | |
15131 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
15132 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15133 | See \`config.log' for more details." >&5 | |
15134 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15135 | See \`config.log' for more details." >&2;} | |
15136 | { (exit 1); exit 1; }; } ;; | |
15137 | esac | |
15138 | else | |
15139 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
15140 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15141 | See \`config.log' for more details." >&5 | |
15142 | echo "$as_me: error: cannot run test program while cross compiling | |
15143 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15144 | { (exit 1); exit 1; }; } |
15145 | else | |
15146 | cat >conftest.$ac_ext <<_ACEOF | |
15147 | /* confdefs.h. */ | |
15148 | _ACEOF | |
15149 | cat confdefs.h >>conftest.$ac_ext | |
15150 | cat >>conftest.$ac_ext <<_ACEOF | |
15151 | /* end confdefs.h. */ | |
15152 | $ac_includes_default | |
15153 | long longval () { return (long) (sizeof (char)); } | |
15154 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
15155 | #include <stdio.h> | |
15156 | #include <stdlib.h> | |
15157 | int | |
15158 | main () | |
15159 | { | |
15160 | ||
15161 | FILE *f = fopen ("conftest.val", "w"); | |
15162 | if (! f) | |
15163 | exit (1); | |
15164 | if (((long) (sizeof (char))) < 0) | |
15165 | { | |
15166 | long i = longval (); | |
15167 | if (i != ((long) (sizeof (char)))) | |
15168 | exit (1); | |
15169 | fprintf (f, "%ld\n", i); | |
15170 | } | |
15171 | else | |
15172 | { | |
15173 | unsigned long i = ulongval (); | |
15174 | if (i != ((long) (sizeof (char)))) | |
15175 | exit (1); | |
15176 | fprintf (f, "%lu\n", i); | |
15177 | } | |
15178 | exit (ferror (f) || fclose (f) != 0); | |
15179 | ||
15180 | ; | |
15181 | return 0; | |
15182 | } | |
15183 | _ACEOF | |
15184 | rm -f conftest$ac_exeext | |
15185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15186 | (eval $ac_link) 2>&5 | |
15187 | ac_status=$? | |
15188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15189 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15191 | (eval $ac_try) 2>&5 | |
15192 | ac_status=$? | |
15193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15194 | (exit $ac_status); }; }; then | |
15195 | ac_cv_sizeof_char=`cat conftest.val` | |
15196 | else | |
15197 | echo "$as_me: program exited with status $ac_status" >&5 | |
15198 | echo "$as_me: failed program was:" >&5 | |
15199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15200 | ||
15201 | ( exit $ac_status ) | |
15202 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15203 | See \`config.log' for more details." >&5 | |
15204 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15205 | See \`config.log' for more details." >&2;} | |
15206 | { (exit 1); exit 1; }; } | |
15207 | fi | |
ac1cb8d3 | 15208 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15209 | fi |
15210 | fi | |
15211 | rm -f conftest.val | |
15212 | else | |
15213 | ac_cv_sizeof_char=0 | |
15214 | fi | |
15215 | fi | |
15216 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
15217 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
15218 | cat >>confdefs.h <<_ACEOF | |
15219 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
15220 | _ACEOF | |
15221 | ||
15222 | ||
15223 | echo "$as_me:$LINENO: checking for short" >&5 | |
15224 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
15225 | if test "${ac_cv_type_short+set}" = set; then | |
15226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15227 | else | |
15228 | cat >conftest.$ac_ext <<_ACEOF | |
15229 | /* confdefs.h. */ | |
15230 | _ACEOF | |
15231 | cat confdefs.h >>conftest.$ac_ext | |
15232 | cat >>conftest.$ac_ext <<_ACEOF | |
15233 | /* end confdefs.h. */ | |
15234 | $ac_includes_default | |
15235 | int | |
15236 | main () | |
15237 | { | |
15238 | if ((short *) 0) | |
15239 | return 0; | |
15240 | if (sizeof (short)) | |
15241 | return 0; | |
15242 | ; | |
15243 | return 0; | |
15244 | } | |
15245 | _ACEOF | |
15246 | rm -f conftest.$ac_objext | |
15247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15248 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15249 | ac_status=$? |
ac1cb8d3 VS |
15250 | grep -v '^ *+' conftest.er1 >conftest.err |
15251 | rm -f conftest.er1 | |
15252 | cat conftest.err >&5 | |
a848cd7e SC |
15253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15254 | (exit $ac_status); } && | |
89be85c2 VS |
15255 | { ac_try='test -z "$ac_c_werror_flag" |
15256 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15258 | (eval $ac_try) 2>&5 | |
15259 | ac_status=$? | |
15260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15261 | (exit $ac_status); }; } && | |
15262 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15264 | (eval $ac_try) 2>&5 | |
15265 | ac_status=$? | |
15266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15267 | (exit $ac_status); }; }; then | |
15268 | ac_cv_type_short=yes | |
15269 | else | |
15270 | echo "$as_me: failed program was:" >&5 | |
15271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15272 | ||
15273 | ac_cv_type_short=no | |
15274 | fi | |
ac1cb8d3 | 15275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15276 | fi |
15277 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
15278 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
15279 | ||
15280 | echo "$as_me:$LINENO: checking size of short" >&5 | |
15281 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
15282 | if test "${ac_cv_sizeof_short+set}" = set; then | |
15283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15284 | else | |
15285 | if test "$ac_cv_type_short" = yes; then | |
15286 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15287 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15288 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15289 | # This bug is HP SR number 8606223364. | |
15290 | if test "$cross_compiling" = yes; then | |
15291 | # Depending upon the size, compute the lo and hi bounds. | |
15292 | cat >conftest.$ac_ext <<_ACEOF | |
15293 | /* confdefs.h. */ | |
15294 | _ACEOF | |
15295 | cat confdefs.h >>conftest.$ac_ext | |
15296 | cat >>conftest.$ac_ext <<_ACEOF | |
15297 | /* end confdefs.h. */ | |
15298 | $ac_includes_default | |
15299 | int | |
15300 | main () | |
15301 | { | |
15302 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
15303 | test_array [0] = 0 | |
15304 | ||
15305 | ; | |
15306 | return 0; | |
15307 | } | |
15308 | _ACEOF | |
15309 | rm -f conftest.$ac_objext | |
15310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15311 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15312 | ac_status=$? |
ac1cb8d3 VS |
15313 | grep -v '^ *+' conftest.er1 >conftest.err |
15314 | rm -f conftest.er1 | |
15315 | cat conftest.err >&5 | |
a848cd7e SC |
15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15317 | (exit $ac_status); } && | |
89be85c2 VS |
15318 | { ac_try='test -z "$ac_c_werror_flag" |
15319 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15321 | (eval $ac_try) 2>&5 | |
15322 | ac_status=$? | |
15323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15324 | (exit $ac_status); }; } && | |
15325 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15327 | (eval $ac_try) 2>&5 | |
15328 | ac_status=$? | |
15329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15330 | (exit $ac_status); }; }; then | |
15331 | ac_lo=0 ac_mid=0 | |
15332 | while :; do | |
15333 | cat >conftest.$ac_ext <<_ACEOF | |
15334 | /* confdefs.h. */ | |
15335 | _ACEOF | |
15336 | cat confdefs.h >>conftest.$ac_ext | |
15337 | cat >>conftest.$ac_ext <<_ACEOF | |
15338 | /* end confdefs.h. */ | |
15339 | $ac_includes_default | |
15340 | int | |
15341 | main () | |
15342 | { | |
15343 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15344 | test_array [0] = 0 | |
15345 | ||
15346 | ; | |
15347 | return 0; | |
15348 | } | |
15349 | _ACEOF | |
15350 | rm -f conftest.$ac_objext | |
15351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15352 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15353 | ac_status=$? |
ac1cb8d3 VS |
15354 | grep -v '^ *+' conftest.er1 >conftest.err |
15355 | rm -f conftest.er1 | |
15356 | cat conftest.err >&5 | |
a848cd7e SC |
15357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15358 | (exit $ac_status); } && | |
89be85c2 VS |
15359 | { ac_try='test -z "$ac_c_werror_flag" |
15360 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15362 | (eval $ac_try) 2>&5 | |
15363 | ac_status=$? | |
15364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15365 | (exit $ac_status); }; } && | |
15366 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15368 | (eval $ac_try) 2>&5 | |
15369 | ac_status=$? | |
15370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15371 | (exit $ac_status); }; }; then | |
15372 | ac_hi=$ac_mid; break | |
15373 | else | |
15374 | echo "$as_me: failed program was:" >&5 | |
15375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15376 | ||
15377 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15378 | if test $ac_lo -le $ac_mid; then |
15379 | ac_lo= ac_hi= | |
15380 | break | |
15381 | fi | |
15382 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15383 | fi |
ac1cb8d3 | 15384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15385 | done |
15386 | else | |
15387 | echo "$as_me: failed program was:" >&5 | |
15388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15389 | ||
15390 | cat >conftest.$ac_ext <<_ACEOF | |
15391 | /* confdefs.h. */ | |
15392 | _ACEOF | |
15393 | cat confdefs.h >>conftest.$ac_ext | |
15394 | cat >>conftest.$ac_ext <<_ACEOF | |
15395 | /* end confdefs.h. */ | |
15396 | $ac_includes_default | |
15397 | int | |
15398 | main () | |
15399 | { | |
15400 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
15401 | test_array [0] = 0 | |
15402 | ||
15403 | ; | |
15404 | return 0; | |
15405 | } | |
15406 | _ACEOF | |
15407 | rm -f conftest.$ac_objext | |
15408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15409 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15410 | ac_status=$? |
ac1cb8d3 VS |
15411 | grep -v '^ *+' conftest.er1 >conftest.err |
15412 | rm -f conftest.er1 | |
15413 | cat conftest.err >&5 | |
a848cd7e SC |
15414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15415 | (exit $ac_status); } && | |
89be85c2 VS |
15416 | { ac_try='test -z "$ac_c_werror_flag" |
15417 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15419 | (eval $ac_try) 2>&5 | |
15420 | ac_status=$? | |
15421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15422 | (exit $ac_status); }; } && | |
15423 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15425 | (eval $ac_try) 2>&5 | |
15426 | ac_status=$? | |
15427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15428 | (exit $ac_status); }; }; then | |
15429 | ac_hi=-1 ac_mid=-1 | |
15430 | while :; do | |
15431 | cat >conftest.$ac_ext <<_ACEOF | |
15432 | /* confdefs.h. */ | |
15433 | _ACEOF | |
15434 | cat confdefs.h >>conftest.$ac_ext | |
15435 | cat >>conftest.$ac_ext <<_ACEOF | |
15436 | /* end confdefs.h. */ | |
15437 | $ac_includes_default | |
15438 | int | |
15439 | main () | |
15440 | { | |
15441 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15442 | test_array [0] = 0 | |
15443 | ||
15444 | ; | |
15445 | return 0; | |
15446 | } | |
15447 | _ACEOF | |
15448 | rm -f conftest.$ac_objext | |
15449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15450 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15451 | ac_status=$? |
ac1cb8d3 VS |
15452 | grep -v '^ *+' conftest.er1 >conftest.err |
15453 | rm -f conftest.er1 | |
15454 | cat conftest.err >&5 | |
a848cd7e SC |
15455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15456 | (exit $ac_status); } && | |
89be85c2 VS |
15457 | { ac_try='test -z "$ac_c_werror_flag" |
15458 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15460 | (eval $ac_try) 2>&5 | |
15461 | ac_status=$? | |
15462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15463 | (exit $ac_status); }; } && | |
15464 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15466 | (eval $ac_try) 2>&5 | |
15467 | ac_status=$? | |
15468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15469 | (exit $ac_status); }; }; then | |
15470 | ac_lo=$ac_mid; break | |
15471 | else | |
15472 | echo "$as_me: failed program was:" >&5 | |
15473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15474 | ||
15475 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15476 | if test $ac_mid -le $ac_hi; then |
15477 | ac_lo= ac_hi= | |
15478 | break | |
15479 | fi | |
15480 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15481 | fi |
ac1cb8d3 | 15482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15483 | done |
15484 | else | |
15485 | echo "$as_me: failed program was:" >&5 | |
15486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15487 | ||
15488 | ac_lo= ac_hi= | |
15489 | fi | |
ac1cb8d3 | 15490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15491 | fi |
ac1cb8d3 | 15492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15493 | # Binary search between lo and hi bounds. |
15494 | while test "x$ac_lo" != "x$ac_hi"; do | |
15495 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15496 | cat >conftest.$ac_ext <<_ACEOF | |
15497 | /* confdefs.h. */ | |
15498 | _ACEOF | |
15499 | cat confdefs.h >>conftest.$ac_ext | |
15500 | cat >>conftest.$ac_ext <<_ACEOF | |
15501 | /* end confdefs.h. */ | |
15502 | $ac_includes_default | |
15503 | int | |
15504 | main () | |
15505 | { | |
15506 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15507 | test_array [0] = 0 | |
15508 | ||
15509 | ; | |
15510 | return 0; | |
15511 | } | |
15512 | _ACEOF | |
15513 | rm -f conftest.$ac_objext | |
15514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15515 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15516 | ac_status=$? |
ac1cb8d3 VS |
15517 | grep -v '^ *+' conftest.er1 >conftest.err |
15518 | rm -f conftest.er1 | |
15519 | cat conftest.err >&5 | |
a848cd7e SC |
15520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15521 | (exit $ac_status); } && | |
89be85c2 VS |
15522 | { ac_try='test -z "$ac_c_werror_flag" |
15523 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15525 | (eval $ac_try) 2>&5 | |
15526 | ac_status=$? | |
15527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15528 | (exit $ac_status); }; } && | |
15529 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15531 | (eval $ac_try) 2>&5 | |
15532 | ac_status=$? | |
15533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15534 | (exit $ac_status); }; }; then | |
15535 | ac_hi=$ac_mid | |
15536 | else | |
15537 | echo "$as_me: failed program was:" >&5 | |
15538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15539 | ||
15540 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15541 | fi | |
ac1cb8d3 | 15542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15543 | done |
15544 | case $ac_lo in | |
15545 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15546 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15547 | See \`config.log' for more details." >&5 | |
15548 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15549 | See \`config.log' for more details." >&2;} | |
15550 | { (exit 1); exit 1; }; } ;; | |
15551 | esac | |
15552 | else | |
15553 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
15554 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15555 | See \`config.log' for more details." >&5 | |
15556 | echo "$as_me: error: cannot run test program while cross compiling | |
15557 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15558 | { (exit 1); exit 1; }; } |
15559 | else | |
15560 | cat >conftest.$ac_ext <<_ACEOF | |
15561 | /* confdefs.h. */ | |
15562 | _ACEOF | |
15563 | cat confdefs.h >>conftest.$ac_ext | |
15564 | cat >>conftest.$ac_ext <<_ACEOF | |
15565 | /* end confdefs.h. */ | |
15566 | $ac_includes_default | |
15567 | long longval () { return (long) (sizeof (short)); } | |
15568 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15569 | #include <stdio.h> | |
15570 | #include <stdlib.h> | |
15571 | int | |
15572 | main () | |
15573 | { | |
15574 | ||
15575 | FILE *f = fopen ("conftest.val", "w"); | |
15576 | if (! f) | |
15577 | exit (1); | |
15578 | if (((long) (sizeof (short))) < 0) | |
15579 | { | |
15580 | long i = longval (); | |
15581 | if (i != ((long) (sizeof (short)))) | |
15582 | exit (1); | |
15583 | fprintf (f, "%ld\n", i); | |
15584 | } | |
15585 | else | |
15586 | { | |
15587 | unsigned long i = ulongval (); | |
15588 | if (i != ((long) (sizeof (short)))) | |
15589 | exit (1); | |
15590 | fprintf (f, "%lu\n", i); | |
15591 | } | |
15592 | exit (ferror (f) || fclose (f) != 0); | |
15593 | ||
15594 | ; | |
15595 | return 0; | |
15596 | } | |
15597 | _ACEOF | |
15598 | rm -f conftest$ac_exeext | |
15599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15600 | (eval $ac_link) 2>&5 | |
15601 | ac_status=$? | |
15602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15603 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15605 | (eval $ac_try) 2>&5 | |
15606 | ac_status=$? | |
15607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15608 | (exit $ac_status); }; }; then | |
15609 | ac_cv_sizeof_short=`cat conftest.val` | |
15610 | else | |
15611 | echo "$as_me: program exited with status $ac_status" >&5 | |
15612 | echo "$as_me: failed program was:" >&5 | |
15613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15614 | ||
15615 | ( exit $ac_status ) | |
15616 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15617 | See \`config.log' for more details." >&5 | |
15618 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15619 | See \`config.log' for more details." >&2;} | |
15620 | { (exit 1); exit 1; }; } | |
15621 | fi | |
ac1cb8d3 | 15622 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15623 | fi |
15624 | fi | |
15625 | rm -f conftest.val | |
15626 | else | |
15627 | ac_cv_sizeof_short=0 | |
15628 | fi | |
15629 | fi | |
15630 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15631 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15632 | cat >>confdefs.h <<_ACEOF | |
15633 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15634 | _ACEOF | |
15635 | ||
15636 | ||
15637 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15638 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15639 | if test "${ac_cv_type_void_p+set}" = set; then | |
15640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15641 | else | |
15642 | cat >conftest.$ac_ext <<_ACEOF | |
15643 | /* confdefs.h. */ | |
15644 | _ACEOF | |
15645 | cat confdefs.h >>conftest.$ac_ext | |
15646 | cat >>conftest.$ac_ext <<_ACEOF | |
15647 | /* end confdefs.h. */ | |
15648 | $ac_includes_default | |
15649 | int | |
15650 | main () | |
15651 | { | |
15652 | if ((void * *) 0) | |
15653 | return 0; | |
15654 | if (sizeof (void *)) | |
15655 | return 0; | |
15656 | ; | |
15657 | return 0; | |
15658 | } | |
15659 | _ACEOF | |
15660 | rm -f conftest.$ac_objext | |
15661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15662 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15663 | ac_status=$? |
ac1cb8d3 VS |
15664 | grep -v '^ *+' conftest.er1 >conftest.err |
15665 | rm -f conftest.er1 | |
15666 | cat conftest.err >&5 | |
a848cd7e SC |
15667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15668 | (exit $ac_status); } && | |
89be85c2 VS |
15669 | { ac_try='test -z "$ac_c_werror_flag" |
15670 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15672 | (eval $ac_try) 2>&5 | |
15673 | ac_status=$? | |
15674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15675 | (exit $ac_status); }; } && | |
15676 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15678 | (eval $ac_try) 2>&5 | |
15679 | ac_status=$? | |
15680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15681 | (exit $ac_status); }; }; then | |
15682 | ac_cv_type_void_p=yes | |
15683 | else | |
15684 | echo "$as_me: failed program was:" >&5 | |
15685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15686 | ||
15687 | ac_cv_type_void_p=no | |
15688 | fi | |
ac1cb8d3 | 15689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15690 | fi |
15691 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15692 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15693 | ||
15694 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15695 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15696 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15698 | else | |
15699 | if test "$ac_cv_type_void_p" = yes; then | |
15700 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15701 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15702 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15703 | # This bug is HP SR number 8606223364. | |
15704 | if test "$cross_compiling" = yes; then | |
15705 | # Depending upon the size, compute the lo and hi bounds. | |
15706 | cat >conftest.$ac_ext <<_ACEOF | |
15707 | /* confdefs.h. */ | |
15708 | _ACEOF | |
15709 | cat confdefs.h >>conftest.$ac_ext | |
15710 | cat >>conftest.$ac_ext <<_ACEOF | |
15711 | /* end confdefs.h. */ | |
15712 | $ac_includes_default | |
15713 | int | |
15714 | main () | |
15715 | { | |
15716 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15717 | test_array [0] = 0 | |
15718 | ||
15719 | ; | |
15720 | return 0; | |
15721 | } | |
15722 | _ACEOF | |
15723 | rm -f conftest.$ac_objext | |
15724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15725 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15726 | ac_status=$? |
ac1cb8d3 VS |
15727 | grep -v '^ *+' conftest.er1 >conftest.err |
15728 | rm -f conftest.er1 | |
15729 | cat conftest.err >&5 | |
a848cd7e SC |
15730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15731 | (exit $ac_status); } && | |
89be85c2 VS |
15732 | { ac_try='test -z "$ac_c_werror_flag" |
15733 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15735 | (eval $ac_try) 2>&5 | |
15736 | ac_status=$? | |
15737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15738 | (exit $ac_status); }; } && | |
15739 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15741 | (eval $ac_try) 2>&5 | |
15742 | ac_status=$? | |
15743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15744 | (exit $ac_status); }; }; then | |
15745 | ac_lo=0 ac_mid=0 | |
15746 | while :; do | |
15747 | cat >conftest.$ac_ext <<_ACEOF | |
15748 | /* confdefs.h. */ | |
15749 | _ACEOF | |
15750 | cat confdefs.h >>conftest.$ac_ext | |
15751 | cat >>conftest.$ac_ext <<_ACEOF | |
15752 | /* end confdefs.h. */ | |
15753 | $ac_includes_default | |
15754 | int | |
15755 | main () | |
15756 | { | |
15757 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15758 | test_array [0] = 0 | |
15759 | ||
15760 | ; | |
15761 | return 0; | |
15762 | } | |
15763 | _ACEOF | |
15764 | rm -f conftest.$ac_objext | |
15765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15766 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15767 | ac_status=$? |
ac1cb8d3 VS |
15768 | grep -v '^ *+' conftest.er1 >conftest.err |
15769 | rm -f conftest.er1 | |
15770 | cat conftest.err >&5 | |
a848cd7e SC |
15771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15772 | (exit $ac_status); } && | |
89be85c2 VS |
15773 | { ac_try='test -z "$ac_c_werror_flag" |
15774 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15776 | (eval $ac_try) 2>&5 | |
15777 | ac_status=$? | |
15778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15779 | (exit $ac_status); }; } && | |
15780 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15782 | (eval $ac_try) 2>&5 | |
15783 | ac_status=$? | |
15784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15785 | (exit $ac_status); }; }; then | |
15786 | ac_hi=$ac_mid; break | |
15787 | else | |
15788 | echo "$as_me: failed program was:" >&5 | |
15789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15790 | ||
15791 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15792 | if test $ac_lo -le $ac_mid; then |
15793 | ac_lo= ac_hi= | |
15794 | break | |
15795 | fi | |
15796 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15797 | fi |
ac1cb8d3 | 15798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15799 | done |
15800 | else | |
15801 | echo "$as_me: failed program was:" >&5 | |
15802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15803 | ||
15804 | cat >conftest.$ac_ext <<_ACEOF | |
15805 | /* confdefs.h. */ | |
15806 | _ACEOF | |
15807 | cat confdefs.h >>conftest.$ac_ext | |
15808 | cat >>conftest.$ac_ext <<_ACEOF | |
15809 | /* end confdefs.h. */ | |
15810 | $ac_includes_default | |
15811 | int | |
15812 | main () | |
15813 | { | |
15814 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15815 | test_array [0] = 0 | |
15816 | ||
15817 | ; | |
15818 | return 0; | |
15819 | } | |
15820 | _ACEOF | |
15821 | rm -f conftest.$ac_objext | |
15822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15823 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15824 | ac_status=$? |
ac1cb8d3 VS |
15825 | grep -v '^ *+' conftest.er1 >conftest.err |
15826 | rm -f conftest.er1 | |
15827 | cat conftest.err >&5 | |
a848cd7e SC |
15828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15829 | (exit $ac_status); } && | |
89be85c2 VS |
15830 | { ac_try='test -z "$ac_c_werror_flag" |
15831 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15833 | (eval $ac_try) 2>&5 | |
15834 | ac_status=$? | |
15835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15836 | (exit $ac_status); }; } && | |
15837 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15839 | (eval $ac_try) 2>&5 | |
15840 | ac_status=$? | |
15841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15842 | (exit $ac_status); }; }; then | |
15843 | ac_hi=-1 ac_mid=-1 | |
15844 | while :; do | |
15845 | cat >conftest.$ac_ext <<_ACEOF | |
15846 | /* confdefs.h. */ | |
15847 | _ACEOF | |
15848 | cat confdefs.h >>conftest.$ac_ext | |
15849 | cat >>conftest.$ac_ext <<_ACEOF | |
15850 | /* end confdefs.h. */ | |
15851 | $ac_includes_default | |
15852 | int | |
15853 | main () | |
15854 | { | |
15855 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15856 | test_array [0] = 0 | |
15857 | ||
15858 | ; | |
15859 | return 0; | |
15860 | } | |
15861 | _ACEOF | |
15862 | rm -f conftest.$ac_objext | |
15863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15864 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15865 | ac_status=$? |
ac1cb8d3 VS |
15866 | grep -v '^ *+' conftest.er1 >conftest.err |
15867 | rm -f conftest.er1 | |
15868 | cat conftest.err >&5 | |
a848cd7e SC |
15869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15870 | (exit $ac_status); } && | |
89be85c2 VS |
15871 | { ac_try='test -z "$ac_c_werror_flag" |
15872 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15874 | (eval $ac_try) 2>&5 | |
15875 | ac_status=$? | |
15876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15877 | (exit $ac_status); }; } && | |
15878 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15880 | (eval $ac_try) 2>&5 | |
15881 | ac_status=$? | |
15882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15883 | (exit $ac_status); }; }; then | |
15884 | ac_lo=$ac_mid; break | |
15885 | else | |
15886 | echo "$as_me: failed program was:" >&5 | |
15887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15888 | ||
15889 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15890 | if test $ac_mid -le $ac_hi; then |
15891 | ac_lo= ac_hi= | |
15892 | break | |
15893 | fi | |
15894 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15895 | fi |
ac1cb8d3 | 15896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15897 | done |
15898 | else | |
15899 | echo "$as_me: failed program was:" >&5 | |
15900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15901 | ||
15902 | ac_lo= ac_hi= | |
15903 | fi | |
ac1cb8d3 | 15904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15905 | fi |
ac1cb8d3 | 15906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15907 | # Binary search between lo and hi bounds. |
15908 | while test "x$ac_lo" != "x$ac_hi"; do | |
15909 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15910 | cat >conftest.$ac_ext <<_ACEOF | |
15911 | /* confdefs.h. */ | |
15912 | _ACEOF | |
15913 | cat confdefs.h >>conftest.$ac_ext | |
15914 | cat >>conftest.$ac_ext <<_ACEOF | |
15915 | /* end confdefs.h. */ | |
15916 | $ac_includes_default | |
15917 | int | |
15918 | main () | |
15919 | { | |
15920 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15921 | test_array [0] = 0 | |
15922 | ||
15923 | ; | |
15924 | return 0; | |
15925 | } | |
15926 | _ACEOF | |
15927 | rm -f conftest.$ac_objext | |
15928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15929 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15930 | ac_status=$? |
ac1cb8d3 VS |
15931 | grep -v '^ *+' conftest.er1 >conftest.err |
15932 | rm -f conftest.er1 | |
15933 | cat conftest.err >&5 | |
a848cd7e SC |
15934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15935 | (exit $ac_status); } && | |
89be85c2 VS |
15936 | { ac_try='test -z "$ac_c_werror_flag" |
15937 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15939 | (eval $ac_try) 2>&5 | |
15940 | ac_status=$? | |
15941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15942 | (exit $ac_status); }; } && | |
15943 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15945 | (eval $ac_try) 2>&5 | |
15946 | ac_status=$? | |
15947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15948 | (exit $ac_status); }; }; then | |
15949 | ac_hi=$ac_mid | |
15950 | else | |
15951 | echo "$as_me: failed program was:" >&5 | |
15952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15953 | ||
15954 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15955 | fi | |
ac1cb8d3 | 15956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15957 | done |
15958 | case $ac_lo in | |
15959 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15960 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15961 | See \`config.log' for more details." >&5 | |
15962 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15963 | See \`config.log' for more details." >&2;} | |
15964 | { (exit 1); exit 1; }; } ;; | |
15965 | esac | |
15966 | else | |
15967 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
15968 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15969 | See \`config.log' for more details." >&5 | |
15970 | echo "$as_me: error: cannot run test program while cross compiling | |
15971 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15972 | { (exit 1); exit 1; }; } |
15973 | else | |
15974 | cat >conftest.$ac_ext <<_ACEOF | |
15975 | /* confdefs.h. */ | |
15976 | _ACEOF | |
15977 | cat confdefs.h >>conftest.$ac_ext | |
15978 | cat >>conftest.$ac_ext <<_ACEOF | |
15979 | /* end confdefs.h. */ | |
15980 | $ac_includes_default | |
15981 | long longval () { return (long) (sizeof (void *)); } | |
15982 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15983 | #include <stdio.h> | |
15984 | #include <stdlib.h> | |
15985 | int | |
15986 | main () | |
15987 | { | |
15988 | ||
15989 | FILE *f = fopen ("conftest.val", "w"); | |
15990 | if (! f) | |
15991 | exit (1); | |
15992 | if (((long) (sizeof (void *))) < 0) | |
15993 | { | |
15994 | long i = longval (); | |
15995 | if (i != ((long) (sizeof (void *)))) | |
15996 | exit (1); | |
15997 | fprintf (f, "%ld\n", i); | |
15998 | } | |
15999 | else | |
16000 | { | |
16001 | unsigned long i = ulongval (); | |
16002 | if (i != ((long) (sizeof (void *)))) | |
16003 | exit (1); | |
16004 | fprintf (f, "%lu\n", i); | |
16005 | } | |
16006 | exit (ferror (f) || fclose (f) != 0); | |
16007 | ||
16008 | ; | |
16009 | return 0; | |
16010 | } | |
16011 | _ACEOF | |
16012 | rm -f conftest$ac_exeext | |
16013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16014 | (eval $ac_link) 2>&5 | |
16015 | ac_status=$? | |
16016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16017 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16019 | (eval $ac_try) 2>&5 | |
16020 | ac_status=$? | |
16021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16022 | (exit $ac_status); }; }; then | |
16023 | ac_cv_sizeof_void_p=`cat conftest.val` | |
16024 | else | |
16025 | echo "$as_me: program exited with status $ac_status" >&5 | |
16026 | echo "$as_me: failed program was:" >&5 | |
16027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16028 | ||
16029 | ( exit $ac_status ) | |
16030 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16031 | See \`config.log' for more details." >&5 | |
16032 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16033 | See \`config.log' for more details." >&2;} | |
16034 | { (exit 1); exit 1; }; } | |
16035 | fi | |
ac1cb8d3 | 16036 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16037 | fi |
16038 | fi | |
16039 | rm -f conftest.val | |
16040 | else | |
16041 | ac_cv_sizeof_void_p=0 | |
16042 | fi | |
16043 | fi | |
16044 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
16045 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
16046 | cat >>confdefs.h <<_ACEOF | |
16047 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16048 | _ACEOF | |
16049 | ||
16050 | ||
16051 | echo "$as_me:$LINENO: checking for int" >&5 | |
16052 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
16053 | if test "${ac_cv_type_int+set}" = set; then | |
16054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16055 | else | |
16056 | cat >conftest.$ac_ext <<_ACEOF | |
16057 | /* confdefs.h. */ | |
16058 | _ACEOF | |
16059 | cat confdefs.h >>conftest.$ac_ext | |
16060 | cat >>conftest.$ac_ext <<_ACEOF | |
16061 | /* end confdefs.h. */ | |
16062 | $ac_includes_default | |
16063 | int | |
16064 | main () | |
16065 | { | |
16066 | if ((int *) 0) | |
16067 | return 0; | |
16068 | if (sizeof (int)) | |
16069 | return 0; | |
16070 | ; | |
16071 | return 0; | |
16072 | } | |
16073 | _ACEOF | |
16074 | rm -f conftest.$ac_objext | |
16075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16076 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16077 | ac_status=$? |
ac1cb8d3 VS |
16078 | grep -v '^ *+' conftest.er1 >conftest.err |
16079 | rm -f conftest.er1 | |
16080 | cat conftest.err >&5 | |
a848cd7e SC |
16081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16082 | (exit $ac_status); } && | |
89be85c2 VS |
16083 | { ac_try='test -z "$ac_c_werror_flag" |
16084 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16086 | (eval $ac_try) 2>&5 | |
16087 | ac_status=$? | |
16088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16089 | (exit $ac_status); }; } && | |
16090 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16092 | (eval $ac_try) 2>&5 | |
16093 | ac_status=$? | |
16094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16095 | (exit $ac_status); }; }; then | |
16096 | ac_cv_type_int=yes | |
16097 | else | |
16098 | echo "$as_me: failed program was:" >&5 | |
16099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16100 | ||
16101 | ac_cv_type_int=no | |
16102 | fi | |
ac1cb8d3 | 16103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16104 | fi |
16105 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
16106 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
16107 | ||
16108 | echo "$as_me:$LINENO: checking size of int" >&5 | |
16109 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
16110 | if test "${ac_cv_sizeof_int+set}" = set; then | |
16111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16112 | else | |
16113 | if test "$ac_cv_type_int" = yes; then | |
16114 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16115 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16116 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16117 | # This bug is HP SR number 8606223364. | |
16118 | if test "$cross_compiling" = yes; then | |
16119 | # Depending upon the size, compute the lo and hi bounds. | |
16120 | cat >conftest.$ac_ext <<_ACEOF | |
16121 | /* confdefs.h. */ | |
16122 | _ACEOF | |
16123 | cat confdefs.h >>conftest.$ac_ext | |
16124 | cat >>conftest.$ac_ext <<_ACEOF | |
16125 | /* end confdefs.h. */ | |
16126 | $ac_includes_default | |
16127 | int | |
16128 | main () | |
16129 | { | |
16130 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
16131 | test_array [0] = 0 | |
16132 | ||
16133 | ; | |
16134 | return 0; | |
16135 | } | |
16136 | _ACEOF | |
16137 | rm -f conftest.$ac_objext | |
16138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16139 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16140 | ac_status=$? |
ac1cb8d3 VS |
16141 | grep -v '^ *+' conftest.er1 >conftest.err |
16142 | rm -f conftest.er1 | |
16143 | cat conftest.err >&5 | |
a848cd7e SC |
16144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16145 | (exit $ac_status); } && | |
89be85c2 VS |
16146 | { ac_try='test -z "$ac_c_werror_flag" |
16147 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16149 | (eval $ac_try) 2>&5 | |
16150 | ac_status=$? | |
16151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16152 | (exit $ac_status); }; } && | |
16153 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16155 | (eval $ac_try) 2>&5 | |
16156 | ac_status=$? | |
16157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16158 | (exit $ac_status); }; }; then | |
16159 | ac_lo=0 ac_mid=0 | |
16160 | while :; do | |
16161 | cat >conftest.$ac_ext <<_ACEOF | |
16162 | /* confdefs.h. */ | |
16163 | _ACEOF | |
16164 | cat confdefs.h >>conftest.$ac_ext | |
16165 | cat >>conftest.$ac_ext <<_ACEOF | |
16166 | /* end confdefs.h. */ | |
16167 | $ac_includes_default | |
16168 | int | |
16169 | main () | |
16170 | { | |
16171 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16172 | test_array [0] = 0 | |
16173 | ||
16174 | ; | |
16175 | return 0; | |
16176 | } | |
16177 | _ACEOF | |
16178 | rm -f conftest.$ac_objext | |
16179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16180 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16181 | ac_status=$? |
ac1cb8d3 VS |
16182 | grep -v '^ *+' conftest.er1 >conftest.err |
16183 | rm -f conftest.er1 | |
16184 | cat conftest.err >&5 | |
a848cd7e SC |
16185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16186 | (exit $ac_status); } && | |
89be85c2 VS |
16187 | { ac_try='test -z "$ac_c_werror_flag" |
16188 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16190 | (eval $ac_try) 2>&5 | |
16191 | ac_status=$? | |
16192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16193 | (exit $ac_status); }; } && | |
16194 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16196 | (eval $ac_try) 2>&5 | |
16197 | ac_status=$? | |
16198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16199 | (exit $ac_status); }; }; then | |
16200 | ac_hi=$ac_mid; break | |
16201 | else | |
16202 | echo "$as_me: failed program was:" >&5 | |
16203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16204 | ||
16205 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16206 | if test $ac_lo -le $ac_mid; then |
16207 | ac_lo= ac_hi= | |
16208 | break | |
16209 | fi | |
16210 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16211 | fi |
ac1cb8d3 | 16212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16213 | done |
16214 | else | |
16215 | echo "$as_me: failed program was:" >&5 | |
16216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16217 | ||
16218 | cat >conftest.$ac_ext <<_ACEOF | |
16219 | /* confdefs.h. */ | |
16220 | _ACEOF | |
16221 | cat confdefs.h >>conftest.$ac_ext | |
16222 | cat >>conftest.$ac_ext <<_ACEOF | |
16223 | /* end confdefs.h. */ | |
16224 | $ac_includes_default | |
16225 | int | |
16226 | main () | |
16227 | { | |
16228 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
16229 | test_array [0] = 0 | |
16230 | ||
16231 | ; | |
16232 | return 0; | |
16233 | } | |
16234 | _ACEOF | |
16235 | rm -f conftest.$ac_objext | |
16236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16237 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16238 | ac_status=$? |
ac1cb8d3 VS |
16239 | grep -v '^ *+' conftest.er1 >conftest.err |
16240 | rm -f conftest.er1 | |
16241 | cat conftest.err >&5 | |
a848cd7e SC |
16242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16243 | (exit $ac_status); } && | |
89be85c2 VS |
16244 | { ac_try='test -z "$ac_c_werror_flag" |
16245 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16247 | (eval $ac_try) 2>&5 | |
16248 | ac_status=$? | |
16249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16250 | (exit $ac_status); }; } && | |
16251 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16253 | (eval $ac_try) 2>&5 | |
16254 | ac_status=$? | |
16255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16256 | (exit $ac_status); }; }; then | |
16257 | ac_hi=-1 ac_mid=-1 | |
16258 | while :; do | |
16259 | cat >conftest.$ac_ext <<_ACEOF | |
16260 | /* confdefs.h. */ | |
16261 | _ACEOF | |
16262 | cat confdefs.h >>conftest.$ac_ext | |
16263 | cat >>conftest.$ac_ext <<_ACEOF | |
16264 | /* end confdefs.h. */ | |
16265 | $ac_includes_default | |
16266 | int | |
16267 | main () | |
16268 | { | |
16269 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
16270 | test_array [0] = 0 | |
16271 | ||
16272 | ; | |
16273 | return 0; | |
16274 | } | |
16275 | _ACEOF | |
16276 | rm -f conftest.$ac_objext | |
16277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16278 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16279 | ac_status=$? |
ac1cb8d3 VS |
16280 | grep -v '^ *+' conftest.er1 >conftest.err |
16281 | rm -f conftest.er1 | |
16282 | cat conftest.err >&5 | |
a848cd7e SC |
16283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16284 | (exit $ac_status); } && | |
89be85c2 VS |
16285 | { ac_try='test -z "$ac_c_werror_flag" |
16286 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16288 | (eval $ac_try) 2>&5 | |
16289 | ac_status=$? | |
16290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16291 | (exit $ac_status); }; } && | |
16292 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16294 | (eval $ac_try) 2>&5 | |
16295 | ac_status=$? | |
16296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16297 | (exit $ac_status); }; }; then | |
16298 | ac_lo=$ac_mid; break | |
16299 | else | |
16300 | echo "$as_me: failed program was:" >&5 | |
16301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16302 | ||
16303 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16304 | if test $ac_mid -le $ac_hi; then |
16305 | ac_lo= ac_hi= | |
16306 | break | |
16307 | fi | |
16308 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16309 | fi |
ac1cb8d3 | 16310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16311 | done |
16312 | else | |
16313 | echo "$as_me: failed program was:" >&5 | |
16314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16315 | ||
16316 | ac_lo= ac_hi= | |
16317 | fi | |
ac1cb8d3 | 16318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16319 | fi |
ac1cb8d3 | 16320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16321 | # Binary search between lo and hi bounds. |
16322 | while test "x$ac_lo" != "x$ac_hi"; do | |
16323 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16324 | cat >conftest.$ac_ext <<_ACEOF | |
16325 | /* confdefs.h. */ | |
16326 | _ACEOF | |
16327 | cat confdefs.h >>conftest.$ac_ext | |
16328 | cat >>conftest.$ac_ext <<_ACEOF | |
16329 | /* end confdefs.h. */ | |
16330 | $ac_includes_default | |
16331 | int | |
16332 | main () | |
16333 | { | |
16334 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16335 | test_array [0] = 0 | |
16336 | ||
16337 | ; | |
16338 | return 0; | |
16339 | } | |
16340 | _ACEOF | |
16341 | rm -f conftest.$ac_objext | |
16342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16343 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16344 | ac_status=$? |
ac1cb8d3 VS |
16345 | grep -v '^ *+' conftest.er1 >conftest.err |
16346 | rm -f conftest.er1 | |
16347 | cat conftest.err >&5 | |
a848cd7e SC |
16348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16349 | (exit $ac_status); } && | |
89be85c2 VS |
16350 | { ac_try='test -z "$ac_c_werror_flag" |
16351 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16353 | (eval $ac_try) 2>&5 | |
16354 | ac_status=$? | |
16355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16356 | (exit $ac_status); }; } && | |
16357 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16359 | (eval $ac_try) 2>&5 | |
16360 | ac_status=$? | |
16361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16362 | (exit $ac_status); }; }; then | |
16363 | ac_hi=$ac_mid | |
16364 | else | |
16365 | echo "$as_me: failed program was:" >&5 | |
16366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16367 | ||
16368 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16369 | fi | |
ac1cb8d3 | 16370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16371 | done |
16372 | case $ac_lo in | |
16373 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
16374 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16375 | See \`config.log' for more details." >&5 | |
16376 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16377 | See \`config.log' for more details." >&2;} | |
16378 | { (exit 1); exit 1; }; } ;; | |
16379 | esac | |
16380 | else | |
16381 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
16382 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16383 | See \`config.log' for more details." >&5 | |
16384 | echo "$as_me: error: cannot run test program while cross compiling | |
16385 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16386 | { (exit 1); exit 1; }; } |
16387 | else | |
16388 | cat >conftest.$ac_ext <<_ACEOF | |
16389 | /* confdefs.h. */ | |
16390 | _ACEOF | |
16391 | cat confdefs.h >>conftest.$ac_ext | |
16392 | cat >>conftest.$ac_ext <<_ACEOF | |
16393 | /* end confdefs.h. */ | |
16394 | $ac_includes_default | |
16395 | long longval () { return (long) (sizeof (int)); } | |
16396 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
16397 | #include <stdio.h> | |
16398 | #include <stdlib.h> | |
16399 | int | |
16400 | main () | |
16401 | { | |
16402 | ||
16403 | FILE *f = fopen ("conftest.val", "w"); | |
16404 | if (! f) | |
16405 | exit (1); | |
16406 | if (((long) (sizeof (int))) < 0) | |
16407 | { | |
16408 | long i = longval (); | |
16409 | if (i != ((long) (sizeof (int)))) | |
16410 | exit (1); | |
16411 | fprintf (f, "%ld\n", i); | |
16412 | } | |
16413 | else | |
16414 | { | |
16415 | unsigned long i = ulongval (); | |
16416 | if (i != ((long) (sizeof (int)))) | |
16417 | exit (1); | |
16418 | fprintf (f, "%lu\n", i); | |
16419 | } | |
16420 | exit (ferror (f) || fclose (f) != 0); | |
16421 | ||
16422 | ; | |
16423 | return 0; | |
16424 | } | |
16425 | _ACEOF | |
16426 | rm -f conftest$ac_exeext | |
16427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16428 | (eval $ac_link) 2>&5 | |
16429 | ac_status=$? | |
16430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16431 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16433 | (eval $ac_try) 2>&5 | |
16434 | ac_status=$? | |
16435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16436 | (exit $ac_status); }; }; then | |
16437 | ac_cv_sizeof_int=`cat conftest.val` | |
16438 | else | |
16439 | echo "$as_me: program exited with status $ac_status" >&5 | |
16440 | echo "$as_me: failed program was:" >&5 | |
16441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16442 | ||
16443 | ( exit $ac_status ) | |
16444 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16445 | See \`config.log' for more details." >&5 | |
16446 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16447 | See \`config.log' for more details." >&2;} | |
16448 | { (exit 1); exit 1; }; } | |
16449 | fi | |
ac1cb8d3 | 16450 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16451 | fi |
16452 | fi | |
16453 | rm -f conftest.val | |
16454 | else | |
16455 | ac_cv_sizeof_int=0 | |
16456 | fi | |
16457 | fi | |
16458 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16459 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16460 | cat >>confdefs.h <<_ACEOF | |
16461 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16462 | _ACEOF | |
16463 | ||
16464 | ||
16465 | echo "$as_me:$LINENO: checking for long" >&5 | |
16466 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
16467 | if test "${ac_cv_type_long+set}" = set; then | |
16468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16469 | else | |
16470 | cat >conftest.$ac_ext <<_ACEOF | |
16471 | /* confdefs.h. */ | |
16472 | _ACEOF | |
16473 | cat confdefs.h >>conftest.$ac_ext | |
16474 | cat >>conftest.$ac_ext <<_ACEOF | |
16475 | /* end confdefs.h. */ | |
16476 | $ac_includes_default | |
16477 | int | |
16478 | main () | |
16479 | { | |
16480 | if ((long *) 0) | |
16481 | return 0; | |
16482 | if (sizeof (long)) | |
16483 | return 0; | |
16484 | ; | |
16485 | return 0; | |
16486 | } | |
16487 | _ACEOF | |
16488 | rm -f conftest.$ac_objext | |
16489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16490 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16491 | ac_status=$? |
ac1cb8d3 VS |
16492 | grep -v '^ *+' conftest.er1 >conftest.err |
16493 | rm -f conftest.er1 | |
16494 | cat conftest.err >&5 | |
a848cd7e SC |
16495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16496 | (exit $ac_status); } && | |
89be85c2 VS |
16497 | { ac_try='test -z "$ac_c_werror_flag" |
16498 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16500 | (eval $ac_try) 2>&5 | |
16501 | ac_status=$? | |
16502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16503 | (exit $ac_status); }; } && | |
16504 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16506 | (eval $ac_try) 2>&5 | |
16507 | ac_status=$? | |
16508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16509 | (exit $ac_status); }; }; then | |
16510 | ac_cv_type_long=yes | |
16511 | else | |
16512 | echo "$as_me: failed program was:" >&5 | |
16513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16514 | ||
16515 | ac_cv_type_long=no | |
16516 | fi | |
ac1cb8d3 | 16517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16518 | fi |
16519 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16520 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16521 | ||
16522 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16523 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16524 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16526 | else | |
16527 | if test "$ac_cv_type_long" = yes; then | |
16528 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16529 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16530 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16531 | # This bug is HP SR number 8606223364. | |
16532 | if test "$cross_compiling" = yes; then | |
16533 | # Depending upon the size, compute the lo and hi bounds. | |
16534 | cat >conftest.$ac_ext <<_ACEOF | |
16535 | /* confdefs.h. */ | |
16536 | _ACEOF | |
16537 | cat confdefs.h >>conftest.$ac_ext | |
16538 | cat >>conftest.$ac_ext <<_ACEOF | |
16539 | /* end confdefs.h. */ | |
16540 | $ac_includes_default | |
16541 | int | |
16542 | main () | |
16543 | { | |
16544 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16545 | test_array [0] = 0 | |
16546 | ||
16547 | ; | |
16548 | return 0; | |
16549 | } | |
16550 | _ACEOF | |
16551 | rm -f conftest.$ac_objext | |
16552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16553 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16554 | ac_status=$? |
ac1cb8d3 VS |
16555 | grep -v '^ *+' conftest.er1 >conftest.err |
16556 | rm -f conftest.er1 | |
16557 | cat conftest.err >&5 | |
a848cd7e SC |
16558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16559 | (exit $ac_status); } && | |
89be85c2 VS |
16560 | { ac_try='test -z "$ac_c_werror_flag" |
16561 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16563 | (eval $ac_try) 2>&5 | |
16564 | ac_status=$? | |
16565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16566 | (exit $ac_status); }; } && | |
16567 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16569 | (eval $ac_try) 2>&5 | |
16570 | ac_status=$? | |
16571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16572 | (exit $ac_status); }; }; then | |
16573 | ac_lo=0 ac_mid=0 | |
16574 | while :; do | |
16575 | cat >conftest.$ac_ext <<_ACEOF | |
16576 | /* confdefs.h. */ | |
16577 | _ACEOF | |
16578 | cat confdefs.h >>conftest.$ac_ext | |
16579 | cat >>conftest.$ac_ext <<_ACEOF | |
16580 | /* end confdefs.h. */ | |
16581 | $ac_includes_default | |
16582 | int | |
16583 | main () | |
16584 | { | |
16585 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16586 | test_array [0] = 0 | |
16587 | ||
16588 | ; | |
16589 | return 0; | |
16590 | } | |
16591 | _ACEOF | |
16592 | rm -f conftest.$ac_objext | |
16593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16594 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16595 | ac_status=$? |
ac1cb8d3 VS |
16596 | grep -v '^ *+' conftest.er1 >conftest.err |
16597 | rm -f conftest.er1 | |
16598 | cat conftest.err >&5 | |
a848cd7e SC |
16599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16600 | (exit $ac_status); } && | |
89be85c2 VS |
16601 | { ac_try='test -z "$ac_c_werror_flag" |
16602 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16604 | (eval $ac_try) 2>&5 | |
16605 | ac_status=$? | |
16606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16607 | (exit $ac_status); }; } && | |
16608 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16610 | (eval $ac_try) 2>&5 | |
16611 | ac_status=$? | |
16612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16613 | (exit $ac_status); }; }; then | |
16614 | ac_hi=$ac_mid; break | |
16615 | else | |
16616 | echo "$as_me: failed program was:" >&5 | |
16617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16618 | ||
16619 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16620 | if test $ac_lo -le $ac_mid; then |
16621 | ac_lo= ac_hi= | |
16622 | break | |
16623 | fi | |
16624 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16625 | fi |
ac1cb8d3 | 16626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16627 | done |
16628 | else | |
16629 | echo "$as_me: failed program was:" >&5 | |
16630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16631 | ||
16632 | cat >conftest.$ac_ext <<_ACEOF | |
16633 | /* confdefs.h. */ | |
16634 | _ACEOF | |
16635 | cat confdefs.h >>conftest.$ac_ext | |
16636 | cat >>conftest.$ac_ext <<_ACEOF | |
16637 | /* end confdefs.h. */ | |
16638 | $ac_includes_default | |
16639 | int | |
16640 | main () | |
16641 | { | |
16642 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16643 | test_array [0] = 0 | |
16644 | ||
16645 | ; | |
16646 | return 0; | |
16647 | } | |
16648 | _ACEOF | |
16649 | rm -f conftest.$ac_objext | |
16650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16651 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16652 | ac_status=$? |
ac1cb8d3 VS |
16653 | grep -v '^ *+' conftest.er1 >conftest.err |
16654 | rm -f conftest.er1 | |
16655 | cat conftest.err >&5 | |
a848cd7e SC |
16656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16657 | (exit $ac_status); } && | |
89be85c2 VS |
16658 | { ac_try='test -z "$ac_c_werror_flag" |
16659 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16661 | (eval $ac_try) 2>&5 | |
16662 | ac_status=$? | |
16663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16664 | (exit $ac_status); }; } && | |
16665 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16667 | (eval $ac_try) 2>&5 | |
16668 | ac_status=$? | |
16669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16670 | (exit $ac_status); }; }; then | |
16671 | ac_hi=-1 ac_mid=-1 | |
16672 | while :; do | |
16673 | cat >conftest.$ac_ext <<_ACEOF | |
16674 | /* confdefs.h. */ | |
16675 | _ACEOF | |
16676 | cat confdefs.h >>conftest.$ac_ext | |
16677 | cat >>conftest.$ac_ext <<_ACEOF | |
16678 | /* end confdefs.h. */ | |
16679 | $ac_includes_default | |
16680 | int | |
16681 | main () | |
16682 | { | |
16683 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16684 | test_array [0] = 0 | |
16685 | ||
16686 | ; | |
16687 | return 0; | |
16688 | } | |
16689 | _ACEOF | |
16690 | rm -f conftest.$ac_objext | |
16691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16692 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16693 | ac_status=$? |
ac1cb8d3 VS |
16694 | grep -v '^ *+' conftest.er1 >conftest.err |
16695 | rm -f conftest.er1 | |
16696 | cat conftest.err >&5 | |
a848cd7e SC |
16697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16698 | (exit $ac_status); } && | |
89be85c2 VS |
16699 | { ac_try='test -z "$ac_c_werror_flag" |
16700 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16702 | (eval $ac_try) 2>&5 | |
16703 | ac_status=$? | |
16704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16705 | (exit $ac_status); }; } && | |
16706 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16708 | (eval $ac_try) 2>&5 | |
16709 | ac_status=$? | |
16710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16711 | (exit $ac_status); }; }; then | |
16712 | ac_lo=$ac_mid; break | |
16713 | else | |
16714 | echo "$as_me: failed program was:" >&5 | |
16715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16716 | ||
16717 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16718 | if test $ac_mid -le $ac_hi; then |
16719 | ac_lo= ac_hi= | |
16720 | break | |
16721 | fi | |
16722 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16723 | fi |
ac1cb8d3 | 16724 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16725 | done |
16726 | else | |
16727 | echo "$as_me: failed program was:" >&5 | |
16728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16729 | ||
16730 | ac_lo= ac_hi= | |
16731 | fi | |
ac1cb8d3 | 16732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16733 | fi |
ac1cb8d3 | 16734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16735 | # Binary search between lo and hi bounds. |
16736 | while test "x$ac_lo" != "x$ac_hi"; do | |
16737 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16738 | cat >conftest.$ac_ext <<_ACEOF | |
16739 | /* confdefs.h. */ | |
16740 | _ACEOF | |
16741 | cat confdefs.h >>conftest.$ac_ext | |
16742 | cat >>conftest.$ac_ext <<_ACEOF | |
16743 | /* end confdefs.h. */ | |
16744 | $ac_includes_default | |
16745 | int | |
16746 | main () | |
16747 | { | |
16748 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16749 | test_array [0] = 0 | |
16750 | ||
16751 | ; | |
16752 | return 0; | |
16753 | } | |
16754 | _ACEOF | |
16755 | rm -f conftest.$ac_objext | |
16756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16757 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16758 | ac_status=$? |
ac1cb8d3 VS |
16759 | grep -v '^ *+' conftest.er1 >conftest.err |
16760 | rm -f conftest.er1 | |
16761 | cat conftest.err >&5 | |
a848cd7e SC |
16762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16763 | (exit $ac_status); } && | |
89be85c2 VS |
16764 | { ac_try='test -z "$ac_c_werror_flag" |
16765 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16767 | (eval $ac_try) 2>&5 | |
16768 | ac_status=$? | |
16769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16770 | (exit $ac_status); }; } && | |
16771 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16773 | (eval $ac_try) 2>&5 | |
16774 | ac_status=$? | |
16775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16776 | (exit $ac_status); }; }; then | |
16777 | ac_hi=$ac_mid | |
16778 | else | |
16779 | echo "$as_me: failed program was:" >&5 | |
16780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16781 | ||
16782 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16783 | fi | |
ac1cb8d3 | 16784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16785 | done |
16786 | case $ac_lo in | |
16787 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16788 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16789 | See \`config.log' for more details." >&5 | |
16790 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16791 | See \`config.log' for more details." >&2;} | |
16792 | { (exit 1); exit 1; }; } ;; | |
16793 | esac | |
16794 | else | |
16795 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
16796 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16797 | See \`config.log' for more details." >&5 | |
16798 | echo "$as_me: error: cannot run test program while cross compiling | |
16799 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16800 | { (exit 1); exit 1; }; } |
16801 | else | |
16802 | cat >conftest.$ac_ext <<_ACEOF | |
16803 | /* confdefs.h. */ | |
16804 | _ACEOF | |
16805 | cat confdefs.h >>conftest.$ac_ext | |
16806 | cat >>conftest.$ac_ext <<_ACEOF | |
16807 | /* end confdefs.h. */ | |
16808 | $ac_includes_default | |
16809 | long longval () { return (long) (sizeof (long)); } | |
16810 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16811 | #include <stdio.h> | |
16812 | #include <stdlib.h> | |
16813 | int | |
16814 | main () | |
16815 | { | |
16816 | ||
16817 | FILE *f = fopen ("conftest.val", "w"); | |
16818 | if (! f) | |
16819 | exit (1); | |
16820 | if (((long) (sizeof (long))) < 0) | |
16821 | { | |
16822 | long i = longval (); | |
16823 | if (i != ((long) (sizeof (long)))) | |
16824 | exit (1); | |
16825 | fprintf (f, "%ld\n", i); | |
16826 | } | |
16827 | else | |
16828 | { | |
16829 | unsigned long i = ulongval (); | |
16830 | if (i != ((long) (sizeof (long)))) | |
16831 | exit (1); | |
16832 | fprintf (f, "%lu\n", i); | |
16833 | } | |
16834 | exit (ferror (f) || fclose (f) != 0); | |
16835 | ||
16836 | ; | |
16837 | return 0; | |
16838 | } | |
16839 | _ACEOF | |
16840 | rm -f conftest$ac_exeext | |
16841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16842 | (eval $ac_link) 2>&5 | |
16843 | ac_status=$? | |
16844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16845 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16847 | (eval $ac_try) 2>&5 | |
16848 | ac_status=$? | |
16849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16850 | (exit $ac_status); }; }; then | |
16851 | ac_cv_sizeof_long=`cat conftest.val` | |
16852 | else | |
16853 | echo "$as_me: program exited with status $ac_status" >&5 | |
16854 | echo "$as_me: failed program was:" >&5 | |
16855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16856 | ||
16857 | ( exit $ac_status ) | |
16858 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16859 | See \`config.log' for more details." >&5 | |
16860 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16861 | See \`config.log' for more details." >&2;} | |
16862 | { (exit 1); exit 1; }; } | |
16863 | fi | |
ac1cb8d3 | 16864 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16865 | fi |
16866 | fi | |
16867 | rm -f conftest.val | |
16868 | else | |
16869 | ac_cv_sizeof_long=0 | |
16870 | fi | |
16871 | fi | |
16872 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16873 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16874 | cat >>confdefs.h <<_ACEOF | |
16875 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16876 | _ACEOF | |
16877 | ||
16878 | ||
16879 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16880 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16881 | if test "${ac_cv_type_size_t+set}" = set; then | |
16882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16883 | else | |
16884 | cat >conftest.$ac_ext <<_ACEOF | |
16885 | /* confdefs.h. */ | |
16886 | _ACEOF | |
16887 | cat confdefs.h >>conftest.$ac_ext | |
16888 | cat >>conftest.$ac_ext <<_ACEOF | |
16889 | /* end confdefs.h. */ | |
16890 | $ac_includes_default | |
16891 | int | |
16892 | main () | |
16893 | { | |
16894 | if ((size_t *) 0) | |
16895 | return 0; | |
16896 | if (sizeof (size_t)) | |
16897 | return 0; | |
16898 | ; | |
16899 | return 0; | |
16900 | } | |
16901 | _ACEOF | |
16902 | rm -f conftest.$ac_objext | |
16903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16904 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16905 | ac_status=$? |
ac1cb8d3 VS |
16906 | grep -v '^ *+' conftest.er1 >conftest.err |
16907 | rm -f conftest.er1 | |
16908 | cat conftest.err >&5 | |
a848cd7e SC |
16909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16910 | (exit $ac_status); } && | |
89be85c2 VS |
16911 | { ac_try='test -z "$ac_c_werror_flag" |
16912 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16914 | (eval $ac_try) 2>&5 | |
16915 | ac_status=$? | |
16916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16917 | (exit $ac_status); }; } && | |
16918 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16920 | (eval $ac_try) 2>&5 | |
16921 | ac_status=$? | |
16922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16923 | (exit $ac_status); }; }; then | |
16924 | ac_cv_type_size_t=yes | |
16925 | else | |
16926 | echo "$as_me: failed program was:" >&5 | |
16927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16928 | ||
16929 | ac_cv_type_size_t=no | |
16930 | fi | |
ac1cb8d3 | 16931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16932 | fi |
16933 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16934 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16935 | ||
16936 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16937 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16938 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16940 | else | |
16941 | if test "$ac_cv_type_size_t" = yes; then | |
16942 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16943 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16944 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16945 | # This bug is HP SR number 8606223364. | |
16946 | if test "$cross_compiling" = yes; then | |
16947 | # Depending upon the size, compute the lo and hi bounds. | |
16948 | cat >conftest.$ac_ext <<_ACEOF | |
16949 | /* confdefs.h. */ | |
16950 | _ACEOF | |
16951 | cat confdefs.h >>conftest.$ac_ext | |
16952 | cat >>conftest.$ac_ext <<_ACEOF | |
16953 | /* end confdefs.h. */ | |
16954 | $ac_includes_default | |
16955 | int | |
16956 | main () | |
16957 | { | |
16958 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16959 | test_array [0] = 0 | |
16960 | ||
16961 | ; | |
16962 | return 0; | |
16963 | } | |
16964 | _ACEOF | |
16965 | rm -f conftest.$ac_objext | |
16966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16967 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16968 | ac_status=$? |
ac1cb8d3 VS |
16969 | grep -v '^ *+' conftest.er1 >conftest.err |
16970 | rm -f conftest.er1 | |
16971 | cat conftest.err >&5 | |
a848cd7e SC |
16972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16973 | (exit $ac_status); } && | |
89be85c2 VS |
16974 | { ac_try='test -z "$ac_c_werror_flag" |
16975 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16977 | (eval $ac_try) 2>&5 | |
16978 | ac_status=$? | |
16979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16980 | (exit $ac_status); }; } && | |
16981 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16983 | (eval $ac_try) 2>&5 | |
16984 | ac_status=$? | |
16985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16986 | (exit $ac_status); }; }; then | |
16987 | ac_lo=0 ac_mid=0 | |
16988 | while :; do | |
16989 | cat >conftest.$ac_ext <<_ACEOF | |
16990 | /* confdefs.h. */ | |
16991 | _ACEOF | |
16992 | cat confdefs.h >>conftest.$ac_ext | |
16993 | cat >>conftest.$ac_ext <<_ACEOF | |
16994 | /* end confdefs.h. */ | |
16995 | $ac_includes_default | |
16996 | int | |
16997 | main () | |
16998 | { | |
16999 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17000 | test_array [0] = 0 | |
17001 | ||
17002 | ; | |
17003 | return 0; | |
17004 | } | |
17005 | _ACEOF | |
17006 | rm -f conftest.$ac_objext | |
17007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17008 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17009 | ac_status=$? |
ac1cb8d3 VS |
17010 | grep -v '^ *+' conftest.er1 >conftest.err |
17011 | rm -f conftest.er1 | |
17012 | cat conftest.err >&5 | |
a848cd7e SC |
17013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17014 | (exit $ac_status); } && | |
89be85c2 VS |
17015 | { ac_try='test -z "$ac_c_werror_flag" |
17016 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17018 | (eval $ac_try) 2>&5 | |
17019 | ac_status=$? | |
17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17021 | (exit $ac_status); }; } && | |
17022 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17024 | (eval $ac_try) 2>&5 | |
17025 | ac_status=$? | |
17026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17027 | (exit $ac_status); }; }; then | |
17028 | ac_hi=$ac_mid; break | |
17029 | else | |
17030 | echo "$as_me: failed program was:" >&5 | |
17031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17032 | ||
17033 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17034 | if test $ac_lo -le $ac_mid; then |
17035 | ac_lo= ac_hi= | |
17036 | break | |
17037 | fi | |
17038 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17039 | fi |
ac1cb8d3 | 17040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17041 | done |
17042 | else | |
17043 | echo "$as_me: failed program was:" >&5 | |
17044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17045 | ||
17046 | cat >conftest.$ac_ext <<_ACEOF | |
17047 | /* confdefs.h. */ | |
17048 | _ACEOF | |
17049 | cat confdefs.h >>conftest.$ac_ext | |
17050 | cat >>conftest.$ac_ext <<_ACEOF | |
17051 | /* end confdefs.h. */ | |
17052 | $ac_includes_default | |
17053 | int | |
17054 | main () | |
17055 | { | |
17056 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
17057 | test_array [0] = 0 | |
17058 | ||
17059 | ; | |
17060 | return 0; | |
17061 | } | |
17062 | _ACEOF | |
17063 | rm -f conftest.$ac_objext | |
17064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17065 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17066 | ac_status=$? |
ac1cb8d3 VS |
17067 | grep -v '^ *+' conftest.er1 >conftest.err |
17068 | rm -f conftest.er1 | |
17069 | cat conftest.err >&5 | |
a848cd7e SC |
17070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17071 | (exit $ac_status); } && | |
89be85c2 VS |
17072 | { ac_try='test -z "$ac_c_werror_flag" |
17073 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17075 | (eval $ac_try) 2>&5 | |
17076 | ac_status=$? | |
17077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17078 | (exit $ac_status); }; } && | |
17079 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17081 | (eval $ac_try) 2>&5 | |
17082 | ac_status=$? | |
17083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17084 | (exit $ac_status); }; }; then | |
17085 | ac_hi=-1 ac_mid=-1 | |
17086 | while :; do | |
17087 | cat >conftest.$ac_ext <<_ACEOF | |
17088 | /* confdefs.h. */ | |
17089 | _ACEOF | |
17090 | cat confdefs.h >>conftest.$ac_ext | |
17091 | cat >>conftest.$ac_ext <<_ACEOF | |
17092 | /* end confdefs.h. */ | |
17093 | $ac_includes_default | |
17094 | int | |
17095 | main () | |
17096 | { | |
17097 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
17098 | test_array [0] = 0 | |
17099 | ||
17100 | ; | |
17101 | return 0; | |
17102 | } | |
17103 | _ACEOF | |
17104 | rm -f conftest.$ac_objext | |
17105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17106 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17107 | ac_status=$? |
ac1cb8d3 VS |
17108 | grep -v '^ *+' conftest.er1 >conftest.err |
17109 | rm -f conftest.er1 | |
17110 | cat conftest.err >&5 | |
a848cd7e SC |
17111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17112 | (exit $ac_status); } && | |
89be85c2 VS |
17113 | { ac_try='test -z "$ac_c_werror_flag" |
17114 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17116 | (eval $ac_try) 2>&5 | |
17117 | ac_status=$? | |
17118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17119 | (exit $ac_status); }; } && | |
17120 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17122 | (eval $ac_try) 2>&5 | |
17123 | ac_status=$? | |
17124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17125 | (exit $ac_status); }; }; then | |
17126 | ac_lo=$ac_mid; break | |
17127 | else | |
17128 | echo "$as_me: failed program was:" >&5 | |
17129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17130 | ||
17131 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17132 | if test $ac_mid -le $ac_hi; then |
17133 | ac_lo= ac_hi= | |
17134 | break | |
17135 | fi | |
17136 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17137 | fi |
ac1cb8d3 | 17138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17139 | done |
17140 | else | |
17141 | echo "$as_me: failed program was:" >&5 | |
17142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17143 | ||
17144 | ac_lo= ac_hi= | |
17145 | fi | |
ac1cb8d3 | 17146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17147 | fi |
ac1cb8d3 | 17148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17149 | # Binary search between lo and hi bounds. |
17150 | while test "x$ac_lo" != "x$ac_hi"; do | |
17151 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17152 | cat >conftest.$ac_ext <<_ACEOF | |
17153 | /* confdefs.h. */ | |
17154 | _ACEOF | |
17155 | cat confdefs.h >>conftest.$ac_ext | |
17156 | cat >>conftest.$ac_ext <<_ACEOF | |
17157 | /* end confdefs.h. */ | |
17158 | $ac_includes_default | |
17159 | int | |
17160 | main () | |
17161 | { | |
17162 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17163 | test_array [0] = 0 | |
17164 | ||
17165 | ; | |
17166 | return 0; | |
17167 | } | |
17168 | _ACEOF | |
17169 | rm -f conftest.$ac_objext | |
17170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17171 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17172 | ac_status=$? |
ac1cb8d3 VS |
17173 | grep -v '^ *+' conftest.er1 >conftest.err |
17174 | rm -f conftest.er1 | |
17175 | cat conftest.err >&5 | |
a848cd7e SC |
17176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17177 | (exit $ac_status); } && | |
89be85c2 VS |
17178 | { ac_try='test -z "$ac_c_werror_flag" |
17179 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17181 | (eval $ac_try) 2>&5 | |
17182 | ac_status=$? | |
17183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17184 | (exit $ac_status); }; } && | |
17185 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17187 | (eval $ac_try) 2>&5 | |
17188 | ac_status=$? | |
17189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17190 | (exit $ac_status); }; }; then | |
17191 | ac_hi=$ac_mid | |
17192 | else | |
17193 | echo "$as_me: failed program was:" >&5 | |
17194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17195 | ||
17196 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17197 | fi | |
ac1cb8d3 | 17198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17199 | done |
17200 | case $ac_lo in | |
17201 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
17202 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17203 | See \`config.log' for more details." >&5 | |
17204 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17205 | See \`config.log' for more details." >&2;} | |
17206 | { (exit 1); exit 1; }; } ;; | |
17207 | esac | |
17208 | else | |
17209 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
17210 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17211 | See \`config.log' for more details." >&5 | |
17212 | echo "$as_me: error: cannot run test program while cross compiling | |
17213 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17214 | { (exit 1); exit 1; }; } |
17215 | else | |
17216 | cat >conftest.$ac_ext <<_ACEOF | |
17217 | /* confdefs.h. */ | |
17218 | _ACEOF | |
17219 | cat confdefs.h >>conftest.$ac_ext | |
17220 | cat >>conftest.$ac_ext <<_ACEOF | |
17221 | /* end confdefs.h. */ | |
17222 | $ac_includes_default | |
17223 | long longval () { return (long) (sizeof (size_t)); } | |
17224 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
17225 | #include <stdio.h> | |
17226 | #include <stdlib.h> | |
17227 | int | |
17228 | main () | |
17229 | { | |
17230 | ||
17231 | FILE *f = fopen ("conftest.val", "w"); | |
17232 | if (! f) | |
17233 | exit (1); | |
17234 | if (((long) (sizeof (size_t))) < 0) | |
17235 | { | |
17236 | long i = longval (); | |
17237 | if (i != ((long) (sizeof (size_t)))) | |
17238 | exit (1); | |
17239 | fprintf (f, "%ld\n", i); | |
17240 | } | |
17241 | else | |
17242 | { | |
17243 | unsigned long i = ulongval (); | |
17244 | if (i != ((long) (sizeof (size_t)))) | |
17245 | exit (1); | |
17246 | fprintf (f, "%lu\n", i); | |
17247 | } | |
17248 | exit (ferror (f) || fclose (f) != 0); | |
17249 | ||
17250 | ; | |
17251 | return 0; | |
17252 | } | |
17253 | _ACEOF | |
17254 | rm -f conftest$ac_exeext | |
17255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17256 | (eval $ac_link) 2>&5 | |
17257 | ac_status=$? | |
17258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17259 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17261 | (eval $ac_try) 2>&5 | |
17262 | ac_status=$? | |
17263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17264 | (exit $ac_status); }; }; then | |
17265 | ac_cv_sizeof_size_t=`cat conftest.val` | |
17266 | else | |
17267 | echo "$as_me: program exited with status $ac_status" >&5 | |
17268 | echo "$as_me: failed program was:" >&5 | |
17269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17270 | ||
17271 | ( exit $ac_status ) | |
17272 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17273 | See \`config.log' for more details." >&5 | |
17274 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17275 | See \`config.log' for more details." >&2;} | |
17276 | { (exit 1); exit 1; }; } | |
17277 | fi | |
ac1cb8d3 | 17278 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17279 | fi |
17280 | fi | |
17281 | rm -f conftest.val | |
17282 | else | |
17283 | ac_cv_sizeof_size_t=0 | |
17284 | fi | |
17285 | fi | |
17286 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
17287 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
17288 | cat >>confdefs.h <<_ACEOF | |
17289 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
17290 | _ACEOF | |
17291 | ||
17292 | ||
17293 | ||
17294 | case "${host}" in | |
17295 | arm-*-linux* ) | |
17296 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17297 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17298 | if test "${ac_cv_type_long_long+set}" = set; then | |
17299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17300 | else | |
17301 | cat >conftest.$ac_ext <<_ACEOF | |
17302 | /* confdefs.h. */ | |
17303 | _ACEOF | |
17304 | cat confdefs.h >>conftest.$ac_ext | |
17305 | cat >>conftest.$ac_ext <<_ACEOF | |
17306 | /* end confdefs.h. */ | |
17307 | $ac_includes_default | |
17308 | int | |
17309 | main () | |
17310 | { | |
17311 | if ((long long *) 0) | |
17312 | return 0; | |
17313 | if (sizeof (long long)) | |
17314 | return 0; | |
17315 | ; | |
17316 | return 0; | |
17317 | } | |
17318 | _ACEOF | |
17319 | rm -f conftest.$ac_objext | |
17320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17321 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17322 | ac_status=$? |
ac1cb8d3 VS |
17323 | grep -v '^ *+' conftest.er1 >conftest.err |
17324 | rm -f conftest.er1 | |
17325 | cat conftest.err >&5 | |
a848cd7e SC |
17326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17327 | (exit $ac_status); } && | |
89be85c2 VS |
17328 | { ac_try='test -z "$ac_c_werror_flag" |
17329 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17331 | (eval $ac_try) 2>&5 | |
17332 | ac_status=$? | |
17333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17334 | (exit $ac_status); }; } && | |
17335 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17337 | (eval $ac_try) 2>&5 | |
17338 | ac_status=$? | |
17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17340 | (exit $ac_status); }; }; then | |
17341 | ac_cv_type_long_long=yes | |
17342 | else | |
17343 | echo "$as_me: failed program was:" >&5 | |
17344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17345 | ||
17346 | ac_cv_type_long_long=no | |
17347 | fi | |
ac1cb8d3 | 17348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17349 | fi |
17350 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17351 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17352 | ||
17353 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17354 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17355 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17357 | else | |
17358 | if test "$ac_cv_type_long_long" = yes; then | |
17359 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17360 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17361 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17362 | # This bug is HP SR number 8606223364. | |
17363 | if test "$cross_compiling" = yes; then | |
17364 | # Depending upon the size, compute the lo and hi bounds. | |
17365 | cat >conftest.$ac_ext <<_ACEOF | |
17366 | /* confdefs.h. */ | |
17367 | _ACEOF | |
17368 | cat confdefs.h >>conftest.$ac_ext | |
17369 | cat >>conftest.$ac_ext <<_ACEOF | |
17370 | /* end confdefs.h. */ | |
17371 | $ac_includes_default | |
17372 | int | |
17373 | main () | |
17374 | { | |
17375 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17376 | test_array [0] = 0 | |
17377 | ||
17378 | ; | |
17379 | return 0; | |
17380 | } | |
17381 | _ACEOF | |
17382 | rm -f conftest.$ac_objext | |
17383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17384 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17385 | ac_status=$? |
ac1cb8d3 VS |
17386 | grep -v '^ *+' conftest.er1 >conftest.err |
17387 | rm -f conftest.er1 | |
17388 | cat conftest.err >&5 | |
a848cd7e SC |
17389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17390 | (exit $ac_status); } && | |
89be85c2 VS |
17391 | { ac_try='test -z "$ac_c_werror_flag" |
17392 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17394 | (eval $ac_try) 2>&5 | |
17395 | ac_status=$? | |
17396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17397 | (exit $ac_status); }; } && | |
17398 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17400 | (eval $ac_try) 2>&5 | |
17401 | ac_status=$? | |
17402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17403 | (exit $ac_status); }; }; then | |
17404 | ac_lo=0 ac_mid=0 | |
17405 | while :; do | |
17406 | cat >conftest.$ac_ext <<_ACEOF | |
17407 | /* confdefs.h. */ | |
17408 | _ACEOF | |
17409 | cat confdefs.h >>conftest.$ac_ext | |
17410 | cat >>conftest.$ac_ext <<_ACEOF | |
17411 | /* end confdefs.h. */ | |
17412 | $ac_includes_default | |
17413 | int | |
17414 | main () | |
17415 | { | |
17416 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17417 | test_array [0] = 0 | |
17418 | ||
17419 | ; | |
17420 | return 0; | |
17421 | } | |
17422 | _ACEOF | |
17423 | rm -f conftest.$ac_objext | |
17424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17425 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17426 | ac_status=$? |
ac1cb8d3 VS |
17427 | grep -v '^ *+' conftest.er1 >conftest.err |
17428 | rm -f conftest.er1 | |
17429 | cat conftest.err >&5 | |
a848cd7e SC |
17430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17431 | (exit $ac_status); } && | |
89be85c2 VS |
17432 | { ac_try='test -z "$ac_c_werror_flag" |
17433 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17435 | (eval $ac_try) 2>&5 | |
17436 | ac_status=$? | |
17437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17438 | (exit $ac_status); }; } && | |
17439 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17441 | (eval $ac_try) 2>&5 | |
17442 | ac_status=$? | |
17443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17444 | (exit $ac_status); }; }; then | |
17445 | ac_hi=$ac_mid; break | |
17446 | else | |
17447 | echo "$as_me: failed program was:" >&5 | |
17448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17449 | ||
17450 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17451 | if test $ac_lo -le $ac_mid; then |
17452 | ac_lo= ac_hi= | |
17453 | break | |
17454 | fi | |
17455 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17456 | fi |
ac1cb8d3 | 17457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17458 | done |
17459 | else | |
17460 | echo "$as_me: failed program was:" >&5 | |
17461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17462 | ||
17463 | cat >conftest.$ac_ext <<_ACEOF | |
17464 | /* confdefs.h. */ | |
17465 | _ACEOF | |
17466 | cat confdefs.h >>conftest.$ac_ext | |
17467 | cat >>conftest.$ac_ext <<_ACEOF | |
17468 | /* end confdefs.h. */ | |
17469 | $ac_includes_default | |
17470 | int | |
17471 | main () | |
17472 | { | |
17473 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17474 | test_array [0] = 0 | |
17475 | ||
17476 | ; | |
17477 | return 0; | |
17478 | } | |
17479 | _ACEOF | |
17480 | rm -f conftest.$ac_objext | |
17481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17482 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17483 | ac_status=$? |
ac1cb8d3 VS |
17484 | grep -v '^ *+' conftest.er1 >conftest.err |
17485 | rm -f conftest.er1 | |
17486 | cat conftest.err >&5 | |
a848cd7e SC |
17487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17488 | (exit $ac_status); } && | |
89be85c2 VS |
17489 | { ac_try='test -z "$ac_c_werror_flag" |
17490 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17492 | (eval $ac_try) 2>&5 | |
17493 | ac_status=$? | |
17494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17495 | (exit $ac_status); }; } && | |
17496 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17498 | (eval $ac_try) 2>&5 | |
17499 | ac_status=$? | |
17500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17501 | (exit $ac_status); }; }; then | |
17502 | ac_hi=-1 ac_mid=-1 | |
17503 | while :; do | |
17504 | cat >conftest.$ac_ext <<_ACEOF | |
17505 | /* confdefs.h. */ | |
17506 | _ACEOF | |
17507 | cat confdefs.h >>conftest.$ac_ext | |
17508 | cat >>conftest.$ac_ext <<_ACEOF | |
17509 | /* end confdefs.h. */ | |
17510 | $ac_includes_default | |
17511 | int | |
17512 | main () | |
17513 | { | |
17514 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17515 | test_array [0] = 0 | |
17516 | ||
17517 | ; | |
17518 | return 0; | |
17519 | } | |
17520 | _ACEOF | |
17521 | rm -f conftest.$ac_objext | |
17522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17523 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17524 | ac_status=$? |
ac1cb8d3 VS |
17525 | grep -v '^ *+' conftest.er1 >conftest.err |
17526 | rm -f conftest.er1 | |
17527 | cat conftest.err >&5 | |
a848cd7e SC |
17528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17529 | (exit $ac_status); } && | |
89be85c2 VS |
17530 | { ac_try='test -z "$ac_c_werror_flag" |
17531 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17533 | (eval $ac_try) 2>&5 | |
17534 | ac_status=$? | |
17535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17536 | (exit $ac_status); }; } && | |
17537 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17539 | (eval $ac_try) 2>&5 | |
17540 | ac_status=$? | |
17541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17542 | (exit $ac_status); }; }; then | |
17543 | ac_lo=$ac_mid; break | |
17544 | else | |
17545 | echo "$as_me: failed program was:" >&5 | |
17546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17547 | ||
17548 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17549 | if test $ac_mid -le $ac_hi; then |
17550 | ac_lo= ac_hi= | |
17551 | break | |
17552 | fi | |
17553 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17554 | fi |
ac1cb8d3 | 17555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17556 | done |
17557 | else | |
17558 | echo "$as_me: failed program was:" >&5 | |
17559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17560 | ||
17561 | ac_lo= ac_hi= | |
17562 | fi | |
ac1cb8d3 | 17563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17564 | fi |
ac1cb8d3 | 17565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17566 | # Binary search between lo and hi bounds. |
17567 | while test "x$ac_lo" != "x$ac_hi"; do | |
17568 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17569 | cat >conftest.$ac_ext <<_ACEOF | |
17570 | /* confdefs.h. */ | |
17571 | _ACEOF | |
17572 | cat confdefs.h >>conftest.$ac_ext | |
17573 | cat >>conftest.$ac_ext <<_ACEOF | |
17574 | /* end confdefs.h. */ | |
17575 | $ac_includes_default | |
17576 | int | |
17577 | main () | |
17578 | { | |
17579 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17580 | test_array [0] = 0 | |
17581 | ||
17582 | ; | |
17583 | return 0; | |
17584 | } | |
17585 | _ACEOF | |
17586 | rm -f conftest.$ac_objext | |
17587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17588 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17589 | ac_status=$? |
ac1cb8d3 VS |
17590 | grep -v '^ *+' conftest.er1 >conftest.err |
17591 | rm -f conftest.er1 | |
17592 | cat conftest.err >&5 | |
a848cd7e SC |
17593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17594 | (exit $ac_status); } && | |
89be85c2 VS |
17595 | { ac_try='test -z "$ac_c_werror_flag" |
17596 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17598 | (eval $ac_try) 2>&5 | |
17599 | ac_status=$? | |
17600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17601 | (exit $ac_status); }; } && | |
17602 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17604 | (eval $ac_try) 2>&5 | |
17605 | ac_status=$? | |
17606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17607 | (exit $ac_status); }; }; then | |
17608 | ac_hi=$ac_mid | |
17609 | else | |
17610 | echo "$as_me: failed program was:" >&5 | |
17611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17612 | ||
17613 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17614 | fi | |
ac1cb8d3 | 17615 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17616 | done |
17617 | case $ac_lo in | |
17618 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17619 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17620 | See \`config.log' for more details." >&5 | |
17621 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17622 | See \`config.log' for more details." >&2;} | |
17623 | { (exit 1); exit 1; }; } ;; | |
17624 | esac | |
17625 | else | |
17626 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
17627 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17628 | See \`config.log' for more details." >&5 | |
17629 | echo "$as_me: error: cannot run test program while cross compiling | |
17630 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17631 | { (exit 1); exit 1; }; } |
17632 | else | |
17633 | cat >conftest.$ac_ext <<_ACEOF | |
17634 | /* confdefs.h. */ | |
17635 | _ACEOF | |
17636 | cat confdefs.h >>conftest.$ac_ext | |
17637 | cat >>conftest.$ac_ext <<_ACEOF | |
17638 | /* end confdefs.h. */ | |
17639 | $ac_includes_default | |
17640 | long longval () { return (long) (sizeof (long long)); } | |
17641 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17642 | #include <stdio.h> | |
17643 | #include <stdlib.h> | |
17644 | int | |
17645 | main () | |
17646 | { | |
17647 | ||
17648 | FILE *f = fopen ("conftest.val", "w"); | |
17649 | if (! f) | |
17650 | exit (1); | |
17651 | if (((long) (sizeof (long long))) < 0) | |
17652 | { | |
17653 | long i = longval (); | |
17654 | if (i != ((long) (sizeof (long long)))) | |
17655 | exit (1); | |
17656 | fprintf (f, "%ld\n", i); | |
17657 | } | |
17658 | else | |
17659 | { | |
17660 | unsigned long i = ulongval (); | |
17661 | if (i != ((long) (sizeof (long long)))) | |
17662 | exit (1); | |
17663 | fprintf (f, "%lu\n", i); | |
17664 | } | |
17665 | exit (ferror (f) || fclose (f) != 0); | |
17666 | ||
17667 | ; | |
17668 | return 0; | |
17669 | } | |
17670 | _ACEOF | |
17671 | rm -f conftest$ac_exeext | |
17672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17673 | (eval $ac_link) 2>&5 | |
17674 | ac_status=$? | |
17675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17676 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17678 | (eval $ac_try) 2>&5 | |
17679 | ac_status=$? | |
17680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17681 | (exit $ac_status); }; }; then | |
17682 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17683 | else | |
17684 | echo "$as_me: program exited with status $ac_status" >&5 | |
17685 | echo "$as_me: failed program was:" >&5 | |
17686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17687 | ||
17688 | ( exit $ac_status ) | |
17689 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17690 | See \`config.log' for more details." >&5 | |
17691 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17692 | See \`config.log' for more details." >&2;} | |
17693 | { (exit 1); exit 1; }; } | |
17694 | fi | |
ac1cb8d3 | 17695 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17696 | fi |
17697 | fi | |
17698 | rm -f conftest.val | |
17699 | else | |
17700 | ac_cv_sizeof_long_long=0 | |
17701 | fi | |
17702 | fi | |
17703 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17704 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17705 | cat >>confdefs.h <<_ACEOF | |
17706 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17707 | _ACEOF | |
17708 | ||
17709 | ||
17710 | ;; | |
17711 | *-hp-hpux* ) | |
17712 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17713 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17714 | if test "${ac_cv_type_long_long+set}" = set; then | |
17715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17716 | else | |
17717 | cat >conftest.$ac_ext <<_ACEOF | |
17718 | /* confdefs.h. */ | |
17719 | _ACEOF | |
17720 | cat confdefs.h >>conftest.$ac_ext | |
17721 | cat >>conftest.$ac_ext <<_ACEOF | |
17722 | /* end confdefs.h. */ | |
17723 | $ac_includes_default | |
17724 | int | |
17725 | main () | |
17726 | { | |
17727 | if ((long long *) 0) | |
17728 | return 0; | |
17729 | if (sizeof (long long)) | |
17730 | return 0; | |
17731 | ; | |
17732 | return 0; | |
17733 | } | |
17734 | _ACEOF | |
17735 | rm -f conftest.$ac_objext | |
17736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17737 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17738 | ac_status=$? |
ac1cb8d3 VS |
17739 | grep -v '^ *+' conftest.er1 >conftest.err |
17740 | rm -f conftest.er1 | |
17741 | cat conftest.err >&5 | |
a848cd7e SC |
17742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17743 | (exit $ac_status); } && | |
89be85c2 VS |
17744 | { ac_try='test -z "$ac_c_werror_flag" |
17745 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17747 | (eval $ac_try) 2>&5 | |
17748 | ac_status=$? | |
17749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17750 | (exit $ac_status); }; } && | |
17751 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17753 | (eval $ac_try) 2>&5 | |
17754 | ac_status=$? | |
17755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17756 | (exit $ac_status); }; }; then | |
17757 | ac_cv_type_long_long=yes | |
17758 | else | |
17759 | echo "$as_me: failed program was:" >&5 | |
17760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17761 | ||
17762 | ac_cv_type_long_long=no | |
17763 | fi | |
ac1cb8d3 | 17764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17765 | fi |
17766 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17767 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17768 | ||
17769 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17770 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17771 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17773 | else | |
17774 | if test "$ac_cv_type_long_long" = yes; then | |
17775 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17776 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17777 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17778 | # This bug is HP SR number 8606223364. | |
17779 | if test "$cross_compiling" = yes; then | |
17780 | # Depending upon the size, compute the lo and hi bounds. | |
17781 | cat >conftest.$ac_ext <<_ACEOF | |
17782 | /* confdefs.h. */ | |
17783 | _ACEOF | |
17784 | cat confdefs.h >>conftest.$ac_ext | |
17785 | cat >>conftest.$ac_ext <<_ACEOF | |
17786 | /* end confdefs.h. */ | |
17787 | $ac_includes_default | |
17788 | int | |
17789 | main () | |
17790 | { | |
17791 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17792 | test_array [0] = 0 | |
17793 | ||
17794 | ; | |
17795 | return 0; | |
17796 | } | |
17797 | _ACEOF | |
17798 | rm -f conftest.$ac_objext | |
17799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17800 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17801 | ac_status=$? |
ac1cb8d3 VS |
17802 | grep -v '^ *+' conftest.er1 >conftest.err |
17803 | rm -f conftest.er1 | |
17804 | cat conftest.err >&5 | |
a848cd7e SC |
17805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17806 | (exit $ac_status); } && | |
89be85c2 VS |
17807 | { ac_try='test -z "$ac_c_werror_flag" |
17808 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17810 | (eval $ac_try) 2>&5 | |
17811 | ac_status=$? | |
17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17813 | (exit $ac_status); }; } && | |
17814 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17816 | (eval $ac_try) 2>&5 | |
17817 | ac_status=$? | |
17818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17819 | (exit $ac_status); }; }; then | |
17820 | ac_lo=0 ac_mid=0 | |
17821 | while :; do | |
17822 | cat >conftest.$ac_ext <<_ACEOF | |
17823 | /* confdefs.h. */ | |
17824 | _ACEOF | |
17825 | cat confdefs.h >>conftest.$ac_ext | |
17826 | cat >>conftest.$ac_ext <<_ACEOF | |
17827 | /* end confdefs.h. */ | |
17828 | $ac_includes_default | |
17829 | int | |
17830 | main () | |
17831 | { | |
17832 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17833 | test_array [0] = 0 | |
17834 | ||
17835 | ; | |
17836 | return 0; | |
17837 | } | |
17838 | _ACEOF | |
17839 | rm -f conftest.$ac_objext | |
17840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17841 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17842 | ac_status=$? |
ac1cb8d3 VS |
17843 | grep -v '^ *+' conftest.er1 >conftest.err |
17844 | rm -f conftest.er1 | |
17845 | cat conftest.err >&5 | |
a848cd7e SC |
17846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17847 | (exit $ac_status); } && | |
89be85c2 VS |
17848 | { ac_try='test -z "$ac_c_werror_flag" |
17849 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17851 | (eval $ac_try) 2>&5 | |
17852 | ac_status=$? | |
17853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17854 | (exit $ac_status); }; } && | |
17855 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17857 | (eval $ac_try) 2>&5 | |
17858 | ac_status=$? | |
17859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17860 | (exit $ac_status); }; }; then | |
17861 | ac_hi=$ac_mid; break | |
17862 | else | |
17863 | echo "$as_me: failed program was:" >&5 | |
17864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17865 | ||
17866 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17867 | if test $ac_lo -le $ac_mid; then |
17868 | ac_lo= ac_hi= | |
17869 | break | |
17870 | fi | |
17871 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17872 | fi |
ac1cb8d3 | 17873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17874 | done |
17875 | else | |
17876 | echo "$as_me: failed program was:" >&5 | |
17877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17878 | ||
17879 | cat >conftest.$ac_ext <<_ACEOF | |
17880 | /* confdefs.h. */ | |
17881 | _ACEOF | |
17882 | cat confdefs.h >>conftest.$ac_ext | |
17883 | cat >>conftest.$ac_ext <<_ACEOF | |
17884 | /* end confdefs.h. */ | |
17885 | $ac_includes_default | |
17886 | int | |
17887 | main () | |
17888 | { | |
17889 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17890 | test_array [0] = 0 | |
17891 | ||
17892 | ; | |
17893 | return 0; | |
17894 | } | |
17895 | _ACEOF | |
17896 | rm -f conftest.$ac_objext | |
17897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17898 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17899 | ac_status=$? |
ac1cb8d3 VS |
17900 | grep -v '^ *+' conftest.er1 >conftest.err |
17901 | rm -f conftest.er1 | |
17902 | cat conftest.err >&5 | |
a848cd7e SC |
17903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17904 | (exit $ac_status); } && | |
89be85c2 VS |
17905 | { ac_try='test -z "$ac_c_werror_flag" |
17906 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17908 | (eval $ac_try) 2>&5 | |
17909 | ac_status=$? | |
17910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17911 | (exit $ac_status); }; } && | |
17912 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17914 | (eval $ac_try) 2>&5 | |
17915 | ac_status=$? | |
17916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17917 | (exit $ac_status); }; }; then | |
17918 | ac_hi=-1 ac_mid=-1 | |
17919 | while :; do | |
17920 | cat >conftest.$ac_ext <<_ACEOF | |
17921 | /* confdefs.h. */ | |
17922 | _ACEOF | |
17923 | cat confdefs.h >>conftest.$ac_ext | |
17924 | cat >>conftest.$ac_ext <<_ACEOF | |
17925 | /* end confdefs.h. */ | |
17926 | $ac_includes_default | |
17927 | int | |
17928 | main () | |
17929 | { | |
17930 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17931 | test_array [0] = 0 | |
17932 | ||
17933 | ; | |
17934 | return 0; | |
17935 | } | |
17936 | _ACEOF | |
17937 | rm -f conftest.$ac_objext | |
17938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17939 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17940 | ac_status=$? |
ac1cb8d3 VS |
17941 | grep -v '^ *+' conftest.er1 >conftest.err |
17942 | rm -f conftest.er1 | |
17943 | cat conftest.err >&5 | |
a848cd7e SC |
17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17945 | (exit $ac_status); } && | |
89be85c2 VS |
17946 | { ac_try='test -z "$ac_c_werror_flag" |
17947 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17949 | (eval $ac_try) 2>&5 | |
17950 | ac_status=$? | |
17951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17952 | (exit $ac_status); }; } && | |
17953 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17955 | (eval $ac_try) 2>&5 | |
17956 | ac_status=$? | |
17957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17958 | (exit $ac_status); }; }; then | |
17959 | ac_lo=$ac_mid; break | |
17960 | else | |
17961 | echo "$as_me: failed program was:" >&5 | |
17962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17963 | ||
17964 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17965 | if test $ac_mid -le $ac_hi; then |
17966 | ac_lo= ac_hi= | |
17967 | break | |
17968 | fi | |
17969 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17970 | fi |
ac1cb8d3 | 17971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17972 | done |
17973 | else | |
17974 | echo "$as_me: failed program was:" >&5 | |
17975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17976 | ||
17977 | ac_lo= ac_hi= | |
17978 | fi | |
ac1cb8d3 | 17979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17980 | fi |
ac1cb8d3 | 17981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17982 | # Binary search between lo and hi bounds. |
17983 | while test "x$ac_lo" != "x$ac_hi"; do | |
17984 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17985 | cat >conftest.$ac_ext <<_ACEOF | |
17986 | /* confdefs.h. */ | |
17987 | _ACEOF | |
17988 | cat confdefs.h >>conftest.$ac_ext | |
17989 | cat >>conftest.$ac_ext <<_ACEOF | |
17990 | /* end confdefs.h. */ | |
17991 | $ac_includes_default | |
17992 | int | |
17993 | main () | |
17994 | { | |
17995 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17996 | test_array [0] = 0 | |
17997 | ||
17998 | ; | |
17999 | return 0; | |
18000 | } | |
18001 | _ACEOF | |
18002 | rm -f conftest.$ac_objext | |
18003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18004 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18005 | ac_status=$? |
ac1cb8d3 VS |
18006 | grep -v '^ *+' conftest.er1 >conftest.err |
18007 | rm -f conftest.er1 | |
18008 | cat conftest.err >&5 | |
a848cd7e SC |
18009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18010 | (exit $ac_status); } && | |
89be85c2 VS |
18011 | { ac_try='test -z "$ac_c_werror_flag" |
18012 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18014 | (eval $ac_try) 2>&5 | |
18015 | ac_status=$? | |
18016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18017 | (exit $ac_status); }; } && | |
18018 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18020 | (eval $ac_try) 2>&5 | |
18021 | ac_status=$? | |
18022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18023 | (exit $ac_status); }; }; then | |
18024 | ac_hi=$ac_mid | |
18025 | else | |
18026 | echo "$as_me: failed program was:" >&5 | |
18027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18028 | ||
18029 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18030 | fi | |
ac1cb8d3 | 18031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18032 | done |
18033 | case $ac_lo in | |
18034 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18035 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18036 | See \`config.log' for more details." >&5 | |
18037 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18038 | See \`config.log' for more details." >&2;} | |
18039 | { (exit 1); exit 1; }; } ;; | |
18040 | esac | |
18041 | else | |
18042 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
18043 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18044 | See \`config.log' for more details." >&5 | |
18045 | echo "$as_me: error: cannot run test program while cross compiling | |
18046 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18047 | { (exit 1); exit 1; }; } |
18048 | else | |
18049 | cat >conftest.$ac_ext <<_ACEOF | |
18050 | /* confdefs.h. */ | |
18051 | _ACEOF | |
18052 | cat confdefs.h >>conftest.$ac_ext | |
18053 | cat >>conftest.$ac_ext <<_ACEOF | |
18054 | /* end confdefs.h. */ | |
18055 | $ac_includes_default | |
18056 | long longval () { return (long) (sizeof (long long)); } | |
18057 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18058 | #include <stdio.h> | |
18059 | #include <stdlib.h> | |
18060 | int | |
18061 | main () | |
18062 | { | |
18063 | ||
18064 | FILE *f = fopen ("conftest.val", "w"); | |
18065 | if (! f) | |
18066 | exit (1); | |
18067 | if (((long) (sizeof (long long))) < 0) | |
18068 | { | |
18069 | long i = longval (); | |
18070 | if (i != ((long) (sizeof (long long)))) | |
18071 | exit (1); | |
18072 | fprintf (f, "%ld\n", i); | |
18073 | } | |
18074 | else | |
18075 | { | |
18076 | unsigned long i = ulongval (); | |
18077 | if (i != ((long) (sizeof (long long)))) | |
18078 | exit (1); | |
18079 | fprintf (f, "%lu\n", i); | |
18080 | } | |
18081 | exit (ferror (f) || fclose (f) != 0); | |
18082 | ||
18083 | ; | |
18084 | return 0; | |
18085 | } | |
18086 | _ACEOF | |
18087 | rm -f conftest$ac_exeext | |
18088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18089 | (eval $ac_link) 2>&5 | |
18090 | ac_status=$? | |
18091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18092 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18094 | (eval $ac_try) 2>&5 | |
18095 | ac_status=$? | |
18096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18097 | (exit $ac_status); }; }; then | |
18098 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18099 | else | |
18100 | echo "$as_me: program exited with status $ac_status" >&5 | |
18101 | echo "$as_me: failed program was:" >&5 | |
18102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18103 | ||
18104 | ( exit $ac_status ) | |
18105 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18106 | See \`config.log' for more details." >&5 | |
18107 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18108 | See \`config.log' for more details." >&2;} | |
18109 | { (exit 1); exit 1; }; } | |
18110 | fi | |
ac1cb8d3 | 18111 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18112 | fi |
18113 | fi | |
18114 | rm -f conftest.val | |
18115 | else | |
18116 | ac_cv_sizeof_long_long=0 | |
18117 | fi | |
18118 | fi | |
18119 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18120 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18121 | cat >>confdefs.h <<_ACEOF | |
18122 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18123 | _ACEOF | |
18124 | ||
18125 | ||
18126 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
18127 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
18128 | fi | |
18129 | ;; | |
18130 | * ) | |
18131 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18132 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18133 | if test "${ac_cv_type_long_long+set}" = set; then | |
18134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18135 | else | |
18136 | cat >conftest.$ac_ext <<_ACEOF | |
18137 | /* confdefs.h. */ | |
18138 | _ACEOF | |
18139 | cat confdefs.h >>conftest.$ac_ext | |
18140 | cat >>conftest.$ac_ext <<_ACEOF | |
18141 | /* end confdefs.h. */ | |
18142 | $ac_includes_default | |
18143 | int | |
18144 | main () | |
18145 | { | |
18146 | if ((long long *) 0) | |
18147 | return 0; | |
18148 | if (sizeof (long long)) | |
18149 | return 0; | |
18150 | ; | |
18151 | return 0; | |
18152 | } | |
18153 | _ACEOF | |
18154 | rm -f conftest.$ac_objext | |
18155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18156 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18157 | ac_status=$? |
ac1cb8d3 VS |
18158 | grep -v '^ *+' conftest.er1 >conftest.err |
18159 | rm -f conftest.er1 | |
18160 | cat conftest.err >&5 | |
a848cd7e SC |
18161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18162 | (exit $ac_status); } && | |
89be85c2 VS |
18163 | { ac_try='test -z "$ac_c_werror_flag" |
18164 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18166 | (eval $ac_try) 2>&5 | |
18167 | ac_status=$? | |
18168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18169 | (exit $ac_status); }; } && | |
18170 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18172 | (eval $ac_try) 2>&5 | |
18173 | ac_status=$? | |
18174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18175 | (exit $ac_status); }; }; then | |
18176 | ac_cv_type_long_long=yes | |
18177 | else | |
18178 | echo "$as_me: failed program was:" >&5 | |
18179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18180 | ||
18181 | ac_cv_type_long_long=no | |
18182 | fi | |
ac1cb8d3 | 18183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18184 | fi |
18185 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18186 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18187 | ||
18188 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18189 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18190 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18192 | else | |
18193 | if test "$ac_cv_type_long_long" = yes; then | |
18194 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18195 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18196 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18197 | # This bug is HP SR number 8606223364. | |
18198 | if test "$cross_compiling" = yes; then | |
18199 | # Depending upon the size, compute the lo and hi bounds. | |
18200 | cat >conftest.$ac_ext <<_ACEOF | |
18201 | /* confdefs.h. */ | |
18202 | _ACEOF | |
18203 | cat confdefs.h >>conftest.$ac_ext | |
18204 | cat >>conftest.$ac_ext <<_ACEOF | |
18205 | /* end confdefs.h. */ | |
18206 | $ac_includes_default | |
18207 | int | |
18208 | main () | |
18209 | { | |
18210 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18211 | test_array [0] = 0 | |
18212 | ||
18213 | ; | |
18214 | return 0; | |
18215 | } | |
18216 | _ACEOF | |
18217 | rm -f conftest.$ac_objext | |
18218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18219 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18220 | ac_status=$? |
ac1cb8d3 VS |
18221 | grep -v '^ *+' conftest.er1 >conftest.err |
18222 | rm -f conftest.er1 | |
18223 | cat conftest.err >&5 | |
a848cd7e SC |
18224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18225 | (exit $ac_status); } && | |
89be85c2 VS |
18226 | { ac_try='test -z "$ac_c_werror_flag" |
18227 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18229 | (eval $ac_try) 2>&5 | |
18230 | ac_status=$? | |
18231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18232 | (exit $ac_status); }; } && | |
18233 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18235 | (eval $ac_try) 2>&5 | |
18236 | ac_status=$? | |
18237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18238 | (exit $ac_status); }; }; then | |
18239 | ac_lo=0 ac_mid=0 | |
18240 | while :; do | |
18241 | cat >conftest.$ac_ext <<_ACEOF | |
18242 | /* confdefs.h. */ | |
18243 | _ACEOF | |
18244 | cat confdefs.h >>conftest.$ac_ext | |
18245 | cat >>conftest.$ac_ext <<_ACEOF | |
18246 | /* end confdefs.h. */ | |
18247 | $ac_includes_default | |
18248 | int | |
18249 | main () | |
18250 | { | |
18251 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18252 | test_array [0] = 0 | |
18253 | ||
18254 | ; | |
18255 | return 0; | |
18256 | } | |
18257 | _ACEOF | |
18258 | rm -f conftest.$ac_objext | |
18259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18260 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18261 | ac_status=$? |
ac1cb8d3 VS |
18262 | grep -v '^ *+' conftest.er1 >conftest.err |
18263 | rm -f conftest.er1 | |
18264 | cat conftest.err >&5 | |
a848cd7e SC |
18265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18266 | (exit $ac_status); } && | |
89be85c2 VS |
18267 | { ac_try='test -z "$ac_c_werror_flag" |
18268 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18270 | (eval $ac_try) 2>&5 | |
18271 | ac_status=$? | |
18272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18273 | (exit $ac_status); }; } && | |
18274 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18276 | (eval $ac_try) 2>&5 | |
18277 | ac_status=$? | |
18278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18279 | (exit $ac_status); }; }; then | |
18280 | ac_hi=$ac_mid; break | |
18281 | else | |
18282 | echo "$as_me: failed program was:" >&5 | |
18283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18284 | ||
18285 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18286 | if test $ac_lo -le $ac_mid; then |
18287 | ac_lo= ac_hi= | |
18288 | break | |
18289 | fi | |
18290 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18291 | fi |
ac1cb8d3 | 18292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18293 | done |
18294 | else | |
18295 | echo "$as_me: failed program was:" >&5 | |
18296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18297 | ||
18298 | cat >conftest.$ac_ext <<_ACEOF | |
18299 | /* confdefs.h. */ | |
18300 | _ACEOF | |
18301 | cat confdefs.h >>conftest.$ac_ext | |
18302 | cat >>conftest.$ac_ext <<_ACEOF | |
18303 | /* end confdefs.h. */ | |
18304 | $ac_includes_default | |
18305 | int | |
18306 | main () | |
18307 | { | |
18308 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18309 | test_array [0] = 0 | |
18310 | ||
18311 | ; | |
18312 | return 0; | |
18313 | } | |
18314 | _ACEOF | |
18315 | rm -f conftest.$ac_objext | |
18316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18317 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18318 | ac_status=$? |
ac1cb8d3 VS |
18319 | grep -v '^ *+' conftest.er1 >conftest.err |
18320 | rm -f conftest.er1 | |
18321 | cat conftest.err >&5 | |
a848cd7e SC |
18322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18323 | (exit $ac_status); } && | |
89be85c2 VS |
18324 | { ac_try='test -z "$ac_c_werror_flag" |
18325 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18327 | (eval $ac_try) 2>&5 | |
18328 | ac_status=$? | |
18329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18330 | (exit $ac_status); }; } && | |
18331 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18333 | (eval $ac_try) 2>&5 | |
18334 | ac_status=$? | |
18335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18336 | (exit $ac_status); }; }; then | |
18337 | ac_hi=-1 ac_mid=-1 | |
18338 | while :; do | |
18339 | cat >conftest.$ac_ext <<_ACEOF | |
18340 | /* confdefs.h. */ | |
18341 | _ACEOF | |
18342 | cat confdefs.h >>conftest.$ac_ext | |
18343 | cat >>conftest.$ac_ext <<_ACEOF | |
18344 | /* end confdefs.h. */ | |
18345 | $ac_includes_default | |
18346 | int | |
18347 | main () | |
18348 | { | |
18349 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18350 | test_array [0] = 0 | |
18351 | ||
18352 | ; | |
18353 | return 0; | |
18354 | } | |
18355 | _ACEOF | |
18356 | rm -f conftest.$ac_objext | |
18357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18358 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18359 | ac_status=$? |
ac1cb8d3 VS |
18360 | grep -v '^ *+' conftest.er1 >conftest.err |
18361 | rm -f conftest.er1 | |
18362 | cat conftest.err >&5 | |
a848cd7e SC |
18363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18364 | (exit $ac_status); } && | |
89be85c2 VS |
18365 | { ac_try='test -z "$ac_c_werror_flag" |
18366 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18368 | (eval $ac_try) 2>&5 | |
18369 | ac_status=$? | |
18370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18371 | (exit $ac_status); }; } && | |
18372 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18374 | (eval $ac_try) 2>&5 | |
18375 | ac_status=$? | |
18376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18377 | (exit $ac_status); }; }; then | |
18378 | ac_lo=$ac_mid; break | |
18379 | else | |
18380 | echo "$as_me: failed program was:" >&5 | |
18381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18382 | ||
18383 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18384 | if test $ac_mid -le $ac_hi; then |
18385 | ac_lo= ac_hi= | |
18386 | break | |
18387 | fi | |
18388 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18389 | fi |
ac1cb8d3 | 18390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18391 | done |
18392 | else | |
18393 | echo "$as_me: failed program was:" >&5 | |
18394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18395 | ||
18396 | ac_lo= ac_hi= | |
18397 | fi | |
ac1cb8d3 | 18398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18399 | fi |
ac1cb8d3 | 18400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18401 | # Binary search between lo and hi bounds. |
18402 | while test "x$ac_lo" != "x$ac_hi"; do | |
18403 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18404 | cat >conftest.$ac_ext <<_ACEOF | |
18405 | /* confdefs.h. */ | |
18406 | _ACEOF | |
18407 | cat confdefs.h >>conftest.$ac_ext | |
18408 | cat >>conftest.$ac_ext <<_ACEOF | |
18409 | /* end confdefs.h. */ | |
18410 | $ac_includes_default | |
18411 | int | |
18412 | main () | |
18413 | { | |
18414 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18415 | test_array [0] = 0 | |
18416 | ||
18417 | ; | |
18418 | return 0; | |
18419 | } | |
18420 | _ACEOF | |
18421 | rm -f conftest.$ac_objext | |
18422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18423 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18424 | ac_status=$? |
ac1cb8d3 VS |
18425 | grep -v '^ *+' conftest.er1 >conftest.err |
18426 | rm -f conftest.er1 | |
18427 | cat conftest.err >&5 | |
a848cd7e SC |
18428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18429 | (exit $ac_status); } && | |
89be85c2 VS |
18430 | { ac_try='test -z "$ac_c_werror_flag" |
18431 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18433 | (eval $ac_try) 2>&5 | |
18434 | ac_status=$? | |
18435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18436 | (exit $ac_status); }; } && | |
18437 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18439 | (eval $ac_try) 2>&5 | |
18440 | ac_status=$? | |
18441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18442 | (exit $ac_status); }; }; then | |
18443 | ac_hi=$ac_mid | |
18444 | else | |
18445 | echo "$as_me: failed program was:" >&5 | |
18446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18447 | ||
18448 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18449 | fi | |
ac1cb8d3 | 18450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18451 | done |
18452 | case $ac_lo in | |
18453 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18454 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18455 | See \`config.log' for more details." >&5 | |
18456 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18457 | See \`config.log' for more details." >&2;} | |
18458 | { (exit 1); exit 1; }; } ;; | |
18459 | esac | |
18460 | else | |
18461 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
18462 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18463 | See \`config.log' for more details." >&5 | |
18464 | echo "$as_me: error: cannot run test program while cross compiling | |
18465 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18466 | { (exit 1); exit 1; }; } |
18467 | else | |
18468 | cat >conftest.$ac_ext <<_ACEOF | |
18469 | /* confdefs.h. */ | |
18470 | _ACEOF | |
18471 | cat confdefs.h >>conftest.$ac_ext | |
18472 | cat >>conftest.$ac_ext <<_ACEOF | |
18473 | /* end confdefs.h. */ | |
18474 | $ac_includes_default | |
18475 | long longval () { return (long) (sizeof (long long)); } | |
18476 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18477 | #include <stdio.h> | |
18478 | #include <stdlib.h> | |
18479 | int | |
18480 | main () | |
18481 | { | |
18482 | ||
18483 | FILE *f = fopen ("conftest.val", "w"); | |
18484 | if (! f) | |
18485 | exit (1); | |
18486 | if (((long) (sizeof (long long))) < 0) | |
18487 | { | |
18488 | long i = longval (); | |
18489 | if (i != ((long) (sizeof (long long)))) | |
18490 | exit (1); | |
18491 | fprintf (f, "%ld\n", i); | |
18492 | } | |
18493 | else | |
18494 | { | |
18495 | unsigned long i = ulongval (); | |
18496 | if (i != ((long) (sizeof (long long)))) | |
18497 | exit (1); | |
18498 | fprintf (f, "%lu\n", i); | |
18499 | } | |
18500 | exit (ferror (f) || fclose (f) != 0); | |
18501 | ||
18502 | ; | |
18503 | return 0; | |
18504 | } | |
18505 | _ACEOF | |
18506 | rm -f conftest$ac_exeext | |
18507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18508 | (eval $ac_link) 2>&5 | |
18509 | ac_status=$? | |
18510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18511 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18513 | (eval $ac_try) 2>&5 | |
18514 | ac_status=$? | |
18515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18516 | (exit $ac_status); }; }; then | |
18517 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18518 | else | |
18519 | echo "$as_me: program exited with status $ac_status" >&5 | |
18520 | echo "$as_me: failed program was:" >&5 | |
18521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18522 | ||
18523 | ( exit $ac_status ) | |
18524 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18525 | See \`config.log' for more details." >&5 | |
18526 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18527 | See \`config.log' for more details." >&2;} | |
18528 | { (exit 1); exit 1; }; } | |
18529 | fi | |
ac1cb8d3 | 18530 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18531 | fi |
18532 | fi | |
18533 | rm -f conftest.val | |
18534 | else | |
18535 | ac_cv_sizeof_long_long=0 | |
18536 | fi | |
18537 | fi | |
18538 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18539 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18540 | cat >>confdefs.h <<_ACEOF | |
18541 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18542 | _ACEOF | |
18543 | ||
18544 | ||
18545 | esac | |
18546 | ||
18547 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18548 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18549 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18551 | else | |
18552 | ||
18553 | if test "$cross_compiling" = yes; then | |
18554 | ||
18555 | case "${host}" in | |
18556 | *-pc-msdosdjgpp ) | |
18557 | wx_cv_sizeof_wchar_t=0 | |
18558 | ;; | |
18559 | * ) | |
18560 | wx_cv_sizeof_wchar_t=4 | |
18561 | ;; | |
18562 | esac | |
18563 | ||
18564 | ||
18565 | else | |
18566 | cat >conftest.$ac_ext <<_ACEOF | |
18567 | /* confdefs.h. */ | |
18568 | _ACEOF | |
18569 | cat confdefs.h >>conftest.$ac_ext | |
18570 | cat >>conftest.$ac_ext <<_ACEOF | |
18571 | /* end confdefs.h. */ | |
18572 | ||
18573 | /* DJGPP only has fake wchar_t: */ | |
18574 | #ifdef __DJGPP__ | |
18575 | # error "fake wchar_t" | |
18576 | #endif | |
18577 | #ifdef HAVE_WCHAR_H | |
18578 | # ifdef __CYGWIN__ | |
18579 | # include <stddef.h> | |
18580 | # endif | |
18581 | # include <wchar.h> | |
18582 | #endif | |
18583 | #ifdef HAVE_STDLIB_H | |
18584 | # include <stdlib.h> | |
18585 | #endif | |
18586 | #include <stdio.h> | |
18587 | int main() | |
18588 | { | |
18589 | FILE *f=fopen("conftestval", "w"); | |
18590 | if (!f) exit(1); | |
18591 | fprintf(f, "%i", sizeof(wchar_t)); | |
18592 | exit(0); | |
18593 | } | |
18594 | ||
18595 | _ACEOF | |
18596 | rm -f conftest$ac_exeext | |
18597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18598 | (eval $ac_link) 2>&5 | |
18599 | ac_status=$? | |
18600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18601 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18603 | (eval $ac_try) 2>&5 | |
18604 | ac_status=$? | |
18605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18606 | (exit $ac_status); }; }; then | |
18607 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18608 | else | |
18609 | echo "$as_me: program exited with status $ac_status" >&5 | |
18610 | echo "$as_me: failed program was:" >&5 | |
18611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18612 | ||
18613 | ( exit $ac_status ) | |
18614 | wx_cv_sizeof_wchar_t=0 | |
18615 | fi | |
ac1cb8d3 | 18616 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18617 | fi |
18618 | ||
18619 | fi | |
18620 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18621 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18622 | ||
18623 | cat >>confdefs.h <<_ACEOF | |
18624 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18625 | _ACEOF | |
18626 | ||
18627 | ||
ba3d13e1 VZ |
18628 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
18629 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
18630 | if test "${wx_cv_func_va_copy+set}" = set; then | |
18631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18632 | else | |
18633 | ||
18634 | cat >conftest.$ac_ext <<_ACEOF | |
18635 | ||
18636 | #include <stdarg.h> | |
18637 | void foo(char *f, ...) | |
18638 | { | |
18639 | va_list ap1, ap2; | |
18640 | va_start(ap1, f); | |
18641 | va_copy(ap2, ap1); | |
18642 | va_end(ap2); | |
18643 | va_end(ap1); | |
18644 | } | |
5886b072 VZ |
18645 | int main() |
18646 | { | |
b902e639 VZ |
18647 | foo("hi", 17); |
18648 | return 0; | |
5886b072 | 18649 | } |
ba3d13e1 VZ |
18650 | _ACEOF |
18651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18653 | (eval $ac_link) 2>conftest.er1 | |
18654 | ac_status=$? | |
18655 | grep -v '^ *+' conftest.er1 >conftest.err | |
18656 | rm -f conftest.er1 | |
18657 | cat conftest.err >&5 | |
18658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18659 | (exit $ac_status); } && | |
89be85c2 VS |
18660 | { ac_try='test -z "$ac_c_werror_flag" |
18661 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
18662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18663 | (eval $ac_try) 2>&5 | |
18664 | ac_status=$? | |
18665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18666 | (exit $ac_status); }; } && | |
18667 | { ac_try='test -s conftest$ac_exeext' | |
18668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18669 | (eval $ac_try) 2>&5 | |
18670 | ac_status=$? | |
18671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18672 | (exit $ac_status); }; }; then | |
18673 | wx_cv_func_va_copy=yes | |
18674 | else | |
18675 | echo "$as_me: failed program was:" >&5 | |
18676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18677 | ||
18678 | wx_cv_func_va_copy=no | |
18679 | ||
18680 | fi | |
18681 | rm -f conftest.err conftest.$ac_objext \ | |
18682 | conftest$ac_exeext conftest.$ac_ext | |
18683 | ||
18684 | ||
18685 | fi | |
18686 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
18687 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
18688 | ||
18689 | if test $wx_cv_func_va_copy = "yes"; then | |
18690 | cat >>confdefs.h <<\_ACEOF | |
18691 | #define HAVE_VA_COPY 1 | |
18692 | _ACEOF | |
18693 | ||
18694 | else | |
18695 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
18696 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
18697 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
18698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18699 | else | |
18700 | ||
18701 | if test "$cross_compiling" = yes; then | |
18702 | wx_cv_type_va_list_lvalue=yes | |
18703 | ||
18704 | else | |
18705 | cat >conftest.$ac_ext <<_ACEOF | |
18706 | ||
18707 | #include <stdarg.h> | |
18708 | int foo(char *f, ...) | |
18709 | { | |
18710 | va_list ap1, ap2; | |
18711 | va_start(ap1, f); | |
18712 | ap2 = ap1; | |
18713 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
18714 | return 1; | |
18715 | va_end(ap2); | |
18716 | va_end(ap1); | |
18717 | return 0; | |
18718 | } | |
18719 | int main() | |
18720 | { | |
18721 | return foo("hi", 17); | |
18722 | } | |
18723 | _ACEOF | |
18724 | rm -f conftest$ac_exeext | |
18725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18726 | (eval $ac_link) 2>&5 | |
18727 | ac_status=$? | |
18728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18729 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18731 | (eval $ac_try) 2>&5 | |
18732 | ac_status=$? | |
18733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18734 | (exit $ac_status); }; }; then | |
18735 | wx_cv_type_va_list_lvalue=yes | |
18736 | else | |
18737 | echo "$as_me: program exited with status $ac_status" >&5 | |
18738 | echo "$as_me: failed program was:" >&5 | |
18739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18740 | ||
18741 | ( exit $ac_status ) | |
18742 | wx_cv_type_va_list_lvalue=no | |
18743 | fi | |
18744 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18745 | fi | |
18746 | ||
18747 | ||
18748 | fi | |
18749 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
18750 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
18751 | ||
18752 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
18753 | cat >>confdefs.h <<\_ACEOF | |
18754 | #define VA_LIST_IS_ARRAY 1 | |
18755 | _ACEOF | |
18756 | ||
18757 | fi | |
18758 | fi | |
18759 | ||
a848cd7e SC |
18760 | # Check whether --enable-largefile or --disable-largefile was given. |
18761 | if test "${enable_largefile+set}" = set; then | |
18762 | enableval="$enable_largefile" | |
18763 | ||
18764 | fi; | |
18765 | if test "$enable_largefile" != no; then | |
18766 | wx_largefile=no | |
18767 | ||
18768 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18769 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18770 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18772 | else | |
18773 | ||
18774 | cat >conftest.$ac_ext <<_ACEOF | |
18775 | /* confdefs.h. */ | |
18776 | _ACEOF | |
18777 | cat confdefs.h >>conftest.$ac_ext | |
18778 | cat >>conftest.$ac_ext <<_ACEOF | |
18779 | /* end confdefs.h. */ | |
18780 | #define _FILE_OFFSET_BITS 64 | |
18781 | #include <sys/types.h> | |
18782 | int | |
18783 | main () | |
18784 | { | |
18785 | typedef struct { | |
18786 | unsigned int field: sizeof(off_t) == 8; | |
18787 | } wxlf; | |
18788 | ||
18789 | ; | |
18790 | return 0; | |
18791 | } | |
18792 | _ACEOF | |
18793 | rm -f conftest.$ac_objext | |
18794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18795 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18796 | ac_status=$? |
ac1cb8d3 VS |
18797 | grep -v '^ *+' conftest.er1 >conftest.err |
18798 | rm -f conftest.er1 | |
18799 | cat conftest.err >&5 | |
a848cd7e SC |
18800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18801 | (exit $ac_status); } && | |
89be85c2 VS |
18802 | { ac_try='test -z "$ac_c_werror_flag" |
18803 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18805 | (eval $ac_try) 2>&5 | |
18806 | ac_status=$? | |
18807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18808 | (exit $ac_status); }; } && | |
18809 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18811 | (eval $ac_try) 2>&5 | |
18812 | ac_status=$? | |
18813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18814 | (exit $ac_status); }; }; then | |
18815 | ac_cv_sys_file_offset_bits=64 | |
18816 | else | |
18817 | echo "$as_me: failed program was:" >&5 | |
18818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18819 | ||
18820 | ac_cv_sys_file_offset_bits=no | |
18821 | fi | |
ac1cb8d3 | 18822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18823 | |
18824 | ||
18825 | fi | |
18826 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18827 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18828 | ||
18829 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18830 | wx_largefile=yes | |
18831 | cat >>confdefs.h <<_ACEOF | |
18832 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18833 | _ACEOF | |
18834 | ||
18835 | fi | |
18836 | ||
18837 | if test "x$wx_largefile" != "xyes"; then | |
18838 | ||
18839 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18840 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18841 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18843 | else | |
18844 | ||
18845 | cat >conftest.$ac_ext <<_ACEOF | |
18846 | /* confdefs.h. */ | |
18847 | _ACEOF | |
18848 | cat confdefs.h >>conftest.$ac_ext | |
18849 | cat >>conftest.$ac_ext <<_ACEOF | |
18850 | /* end confdefs.h. */ | |
18851 | #define _LARGE_FILES 1 | |
18852 | #include <sys/types.h> | |
18853 | int | |
18854 | main () | |
18855 | { | |
18856 | typedef struct { | |
18857 | unsigned int field: sizeof(off_t) == 8; | |
18858 | } wxlf; | |
18859 | ||
18860 | ; | |
18861 | return 0; | |
18862 | } | |
18863 | _ACEOF | |
18864 | rm -f conftest.$ac_objext | |
18865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18866 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18867 | ac_status=$? |
ac1cb8d3 VS |
18868 | grep -v '^ *+' conftest.er1 >conftest.err |
18869 | rm -f conftest.er1 | |
18870 | cat conftest.err >&5 | |
a848cd7e SC |
18871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18872 | (exit $ac_status); } && | |
89be85c2 VS |
18873 | { ac_try='test -z "$ac_c_werror_flag" |
18874 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18876 | (eval $ac_try) 2>&5 | |
18877 | ac_status=$? | |
18878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18879 | (exit $ac_status); }; } && | |
18880 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18882 | (eval $ac_try) 2>&5 | |
18883 | ac_status=$? | |
18884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18885 | (exit $ac_status); }; }; then | |
18886 | ac_cv_sys_large_files=1 | |
18887 | else | |
18888 | echo "$as_me: failed program was:" >&5 | |
18889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18890 | ||
18891 | ac_cv_sys_large_files=no | |
18892 | fi | |
ac1cb8d3 | 18893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18894 | |
18895 | ||
18896 | fi | |
18897 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18898 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18899 | ||
18900 | if test "$ac_cv_sys_large_files" != no; then | |
18901 | wx_largefile=yes | |
18902 | cat >>confdefs.h <<_ACEOF | |
18903 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18904 | _ACEOF | |
18905 | ||
18906 | fi | |
18907 | ||
18908 | fi | |
18909 | ||
18910 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18911 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18912 | if test "x$wx_largefile" = "xyes"; then | |
18913 | cat >>confdefs.h <<\_ACEOF | |
18914 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18915 | _ACEOF | |
18916 | ||
18917 | fi | |
18918 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18919 | echo "${ECHO_T}$wx_largefile" >&6 | |
18920 | fi | |
18921 | ||
5b674b9d DE |
18922 | |
18923 | if test "x$wx_largefile" = "xyes"; then | |
18924 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18925 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18926 | else | |
18927 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18928 | fi | |
18929 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
18930 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
18931 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
18932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18933 | else | |
18934 | while :; do | |
18935 | ac_cv_sys_largefile_source=no | |
18936 | cat >conftest.$ac_ext <<_ACEOF | |
18937 | /* confdefs.h. */ | |
18938 | _ACEOF | |
18939 | cat confdefs.h >>conftest.$ac_ext | |
18940 | cat >>conftest.$ac_ext <<_ACEOF | |
18941 | /* end confdefs.h. */ | |
18942 | #include <stdio.h> | |
18943 | int | |
18944 | main () | |
18945 | { | |
18946 | return !fseeko; | |
18947 | ; | |
18948 | return 0; | |
18949 | } | |
18950 | _ACEOF | |
18951 | rm -f conftest.$ac_objext | |
18952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18953 | (eval $ac_compile) 2>conftest.er1 | |
18954 | ac_status=$? | |
18955 | grep -v '^ *+' conftest.er1 >conftest.err | |
18956 | rm -f conftest.er1 | |
18957 | cat conftest.err >&5 | |
18958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18959 | (exit $ac_status); } && | |
89be85c2 VS |
18960 | { ac_try='test -z "$ac_c_werror_flag" |
18961 | || test ! -s conftest.err' | |
5294a27e VZ |
18962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18963 | (eval $ac_try) 2>&5 | |
18964 | ac_status=$? | |
18965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18966 | (exit $ac_status); }; } && | |
18967 | { ac_try='test -s conftest.$ac_objext' | |
18968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18969 | (eval $ac_try) 2>&5 | |
18970 | ac_status=$? | |
18971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18972 | (exit $ac_status); }; }; then | |
18973 | break | |
18974 | else | |
18975 | echo "$as_me: failed program was:" >&5 | |
18976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18977 | ||
18978 | fi | |
18979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
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 | #define _LARGEFILE_SOURCE 1 | |
18987 | #include <stdio.h> | |
18988 | int | |
18989 | main () | |
18990 | { | |
18991 | return !fseeko; | |
18992 | ; | |
18993 | return 0; | |
18994 | } | |
18995 | _ACEOF | |
18996 | rm -f conftest.$ac_objext | |
18997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18998 | (eval $ac_compile) 2>conftest.er1 | |
18999 | ac_status=$? | |
19000 | grep -v '^ *+' conftest.er1 >conftest.err | |
19001 | rm -f conftest.er1 | |
19002 | cat conftest.err >&5 | |
19003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19004 | (exit $ac_status); } && | |
89be85c2 VS |
19005 | { ac_try='test -z "$ac_c_werror_flag" |
19006 | || test ! -s conftest.err' | |
5294a27e VZ |
19007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19008 | (eval $ac_try) 2>&5 | |
19009 | ac_status=$? | |
19010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19011 | (exit $ac_status); }; } && | |
19012 | { ac_try='test -s conftest.$ac_objext' | |
19013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19014 | (eval $ac_try) 2>&5 | |
19015 | ac_status=$? | |
19016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19017 | (exit $ac_status); }; }; then | |
19018 | ac_cv_sys_largefile_source=1; break | |
19019 | else | |
19020 | echo "$as_me: failed program was:" >&5 | |
19021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19022 | ||
19023 | fi | |
19024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19025 | break | |
19026 | done | |
19027 | fi | |
19028 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
19029 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
19030 | if test "$ac_cv_sys_largefile_source" != no; then | |
19031 | ||
19032 | cat >>confdefs.h <<_ACEOF | |
19033 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
19034 | _ACEOF | |
19035 | ||
19036 | fi | |
19037 | rm -f conftest* | |
19038 | ||
19039 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
19040 | # in glibc 2.1.3, but that breaks too many other things. | |
19041 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
19042 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
19043 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
19044 | if test "${ac_cv_func_fseeko+set}" = set; then | |
19045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19046 | else | |
19047 | cat >conftest.$ac_ext <<_ACEOF | |
19048 | /* confdefs.h. */ | |
19049 | _ACEOF | |
19050 | cat confdefs.h >>conftest.$ac_ext | |
19051 | cat >>conftest.$ac_ext <<_ACEOF | |
19052 | /* end confdefs.h. */ | |
19053 | #include <stdio.h> | |
19054 | int | |
19055 | main () | |
19056 | { | |
19057 | return fseeko && fseeko (stdin, 0, 0); | |
19058 | ; | |
19059 | return 0; | |
19060 | } | |
19061 | _ACEOF | |
19062 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19064 | (eval $ac_link) 2>conftest.er1 | |
19065 | ac_status=$? | |
19066 | grep -v '^ *+' conftest.er1 >conftest.err | |
19067 | rm -f conftest.er1 | |
19068 | cat conftest.err >&5 | |
19069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19070 | (exit $ac_status); } && | |
89be85c2 VS |
19071 | { ac_try='test -z "$ac_c_werror_flag" |
19072 | || test ! -s conftest.err' | |
5294a27e VZ |
19073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19074 | (eval $ac_try) 2>&5 | |
19075 | ac_status=$? | |
19076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19077 | (exit $ac_status); }; } && | |
19078 | { ac_try='test -s conftest$ac_exeext' | |
19079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19080 | (eval $ac_try) 2>&5 | |
19081 | ac_status=$? | |
19082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19083 | (exit $ac_status); }; }; then | |
19084 | ac_cv_func_fseeko=yes | |
19085 | else | |
19086 | echo "$as_me: failed program was:" >&5 | |
19087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19088 | ||
19089 | ac_cv_func_fseeko=no | |
19090 | fi | |
19091 | rm -f conftest.err conftest.$ac_objext \ | |
19092 | conftest$ac_exeext conftest.$ac_ext | |
19093 | fi | |
19094 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
19095 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
19096 | if test $ac_cv_func_fseeko = yes; then | |
19097 | ||
19098 | cat >>confdefs.h <<\_ACEOF | |
19099 | #define HAVE_FSEEKO 1 | |
19100 | _ACEOF | |
19101 | ||
19102 | fi | |
19103 | ||
5b674b9d DE |
19104 | if test "$ac_cv_sys_largefile_source" != no; then |
19105 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
19106 | fi |
19107 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
19108 | fi | |
19109 | ||
19110 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
19111 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
19112 | if test "${ac_cv_c_bigendian+set}" = set; then | |
19113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19114 | else | |
19115 | ac_cv_c_bigendian=unknown | |
19116 | # See if sys/param.h defines the BYTE_ORDER macro. | |
19117 | cat >conftest.$ac_ext <<_ACEOF | |
19118 | /* confdefs.h. */ | |
19119 | _ACEOF | |
19120 | cat confdefs.h >>conftest.$ac_ext | |
19121 | cat >>conftest.$ac_ext <<_ACEOF | |
19122 | /* end confdefs.h. */ | |
19123 | #include <sys/types.h> | |
19124 | #include <sys/param.h> | |
19125 | int | |
19126 | main () | |
19127 | { | |
19128 | ||
19129 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
19130 | bogus endian macros | |
19131 | #endif | |
19132 | ; | |
19133 | return 0; | |
19134 | } | |
19135 | _ACEOF | |
19136 | rm -f conftest.$ac_objext | |
19137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19138 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19139 | ac_status=$? |
ac1cb8d3 VS |
19140 | grep -v '^ *+' conftest.er1 >conftest.err |
19141 | rm -f conftest.er1 | |
19142 | cat conftest.err >&5 | |
a848cd7e SC |
19143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19144 | (exit $ac_status); } && | |
89be85c2 VS |
19145 | { ac_try='test -z "$ac_c_werror_flag" |
19146 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19148 | (eval $ac_try) 2>&5 | |
19149 | ac_status=$? | |
19150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19151 | (exit $ac_status); }; } && | |
19152 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19154 | (eval $ac_try) 2>&5 | |
19155 | ac_status=$? | |
19156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19157 | (exit $ac_status); }; }; then | |
19158 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
19159 | cat >conftest.$ac_ext <<_ACEOF | |
19160 | /* confdefs.h. */ | |
19161 | _ACEOF | |
19162 | cat confdefs.h >>conftest.$ac_ext | |
19163 | cat >>conftest.$ac_ext <<_ACEOF | |
19164 | /* end confdefs.h. */ | |
19165 | #include <sys/types.h> | |
19166 | #include <sys/param.h> | |
19167 | int | |
19168 | main () | |
19169 | { | |
19170 | ||
19171 | #if BYTE_ORDER != BIG_ENDIAN | |
19172 | not big endian | |
19173 | #endif | |
19174 | ; | |
19175 | return 0; | |
19176 | } | |
19177 | _ACEOF | |
19178 | rm -f conftest.$ac_objext | |
19179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19180 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19181 | ac_status=$? |
ac1cb8d3 VS |
19182 | grep -v '^ *+' conftest.er1 >conftest.err |
19183 | rm -f conftest.er1 | |
19184 | cat conftest.err >&5 | |
a848cd7e SC |
19185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19186 | (exit $ac_status); } && | |
89be85c2 VS |
19187 | { ac_try='test -z "$ac_c_werror_flag" |
19188 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19190 | (eval $ac_try) 2>&5 | |
19191 | ac_status=$? | |
19192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19193 | (exit $ac_status); }; } && | |
19194 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19196 | (eval $ac_try) 2>&5 | |
19197 | ac_status=$? | |
19198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19199 | (exit $ac_status); }; }; then | |
19200 | ac_cv_c_bigendian=yes | |
19201 | else | |
19202 | echo "$as_me: failed program was:" >&5 | |
19203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19204 | ||
19205 | ac_cv_c_bigendian=no | |
19206 | fi | |
ac1cb8d3 | 19207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19208 | else |
19209 | echo "$as_me: failed program was:" >&5 | |
19210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19211 | ||
19212 | fi | |
ac1cb8d3 | 19213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19214 | if test $ac_cv_c_bigendian = unknown; then |
19215 | if test "$cross_compiling" = yes; then | |
19216 | ac_cv_c_bigendian=unknown | |
19217 | else | |
19218 | cat >conftest.$ac_ext <<_ACEOF | |
19219 | /* confdefs.h. */ | |
19220 | _ACEOF | |
19221 | cat confdefs.h >>conftest.$ac_ext | |
19222 | cat >>conftest.$ac_ext <<_ACEOF | |
19223 | /* end confdefs.h. */ | |
19224 | main () { | |
19225 | /* Are we little or big endian? From Harbison&Steele. */ | |
19226 | union | |
19227 | { | |
19228 | long l; | |
19229 | char c[sizeof (long)]; | |
19230 | } u; | |
19231 | u.l = 1; | |
19232 | exit (u.c[sizeof (long) - 1] == 1); | |
19233 | } | |
19234 | _ACEOF | |
19235 | rm -f conftest$ac_exeext | |
19236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19237 | (eval $ac_link) 2>&5 | |
19238 | ac_status=$? | |
19239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19240 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19242 | (eval $ac_try) 2>&5 | |
19243 | ac_status=$? | |
19244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19245 | (exit $ac_status); }; }; then | |
19246 | ac_cv_c_bigendian=no | |
19247 | else | |
19248 | echo "$as_me: program exited with status $ac_status" >&5 | |
19249 | echo "$as_me: failed program was:" >&5 | |
19250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19251 | ||
19252 | ( exit $ac_status ) | |
19253 | ac_cv_c_bigendian=yes | |
19254 | fi | |
ac1cb8d3 | 19255 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19256 | fi |
19257 | fi | |
19258 | fi | |
19259 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
19260 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
19261 | if test $ac_cv_c_bigendian = unknown; then | |
19262 | { 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 | |
19263 | 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;} | |
19264 | fi | |
19265 | if test $ac_cv_c_bigendian = yes; then | |
19266 | cat >>confdefs.h <<\_ACEOF | |
19267 | #define WORDS_BIGENDIAN 1 | |
19268 | _ACEOF | |
19269 | ||
19270 | fi | |
19271 | ||
19272 | ||
19273 | ac_ext=cc | |
19274 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19275 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19276 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19277 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19278 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
19279 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
19280 | if test -z "$CXXCPP"; then | |
19281 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
19282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19283 | else | |
19284 | # Double quotes because CXXCPP needs to be expanded | |
19285 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
19286 | do | |
19287 | ac_preproc_ok=false | |
19288 | for ac_cxx_preproc_warn_flag in '' yes | |
19289 | do | |
19290 | # Use a header file that comes with gcc, so configuring glibc | |
19291 | # with a fresh cross-compiler works. | |
19292 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19293 | # <limits.h> exists even on freestanding compilers. | |
19294 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
19295 | # not just through cpp. "Syntax error" is here to catch this case. | |
19296 | cat >conftest.$ac_ext <<_ACEOF | |
19297 | /* confdefs.h. */ | |
19298 | _ACEOF | |
19299 | cat confdefs.h >>conftest.$ac_ext | |
19300 | cat >>conftest.$ac_ext <<_ACEOF | |
19301 | /* end confdefs.h. */ | |
19302 | #ifdef __STDC__ | |
19303 | # include <limits.h> | |
19304 | #else | |
19305 | # include <assert.h> | |
19306 | #endif | |
ac1cb8d3 | 19307 | Syntax error |
a848cd7e SC |
19308 | _ACEOF |
19309 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19310 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19311 | ac_status=$? | |
19312 | grep -v '^ *+' conftest.er1 >conftest.err | |
19313 | rm -f conftest.er1 | |
19314 | cat conftest.err >&5 | |
19315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19316 | (exit $ac_status); } >/dev/null; then | |
19317 | if test -s conftest.err; then | |
19318 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19319 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19320 | else |
19321 | ac_cpp_err= | |
19322 | fi | |
19323 | else | |
19324 | ac_cpp_err=yes | |
19325 | fi | |
19326 | if test -z "$ac_cpp_err"; then | |
19327 | : | |
19328 | else | |
19329 | echo "$as_me: failed program was:" >&5 | |
19330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19331 | ||
19332 | # Broken: fails on valid input. | |
19333 | continue | |
19334 | fi | |
19335 | rm -f conftest.err conftest.$ac_ext | |
19336 | ||
19337 | # OK, works on sane cases. Now check whether non-existent headers | |
19338 | # can be detected and how. | |
19339 | cat >conftest.$ac_ext <<_ACEOF | |
19340 | /* confdefs.h. */ | |
19341 | _ACEOF | |
19342 | cat confdefs.h >>conftest.$ac_ext | |
19343 | cat >>conftest.$ac_ext <<_ACEOF | |
19344 | /* end confdefs.h. */ | |
19345 | #include <ac_nonexistent.h> | |
19346 | _ACEOF | |
19347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19349 | ac_status=$? | |
19350 | grep -v '^ *+' conftest.er1 >conftest.err | |
19351 | rm -f conftest.er1 | |
19352 | cat conftest.err >&5 | |
19353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19354 | (exit $ac_status); } >/dev/null; then | |
19355 | if test -s conftest.err; then | |
19356 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19357 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19358 | else |
19359 | ac_cpp_err= | |
19360 | fi | |
19361 | else | |
19362 | ac_cpp_err=yes | |
19363 | fi | |
19364 | if test -z "$ac_cpp_err"; then | |
19365 | # Broken: success on invalid input. | |
19366 | continue | |
19367 | else | |
19368 | echo "$as_me: failed program was:" >&5 | |
19369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19370 | ||
19371 | # Passes both tests. | |
19372 | ac_preproc_ok=: | |
19373 | break | |
19374 | fi | |
19375 | rm -f conftest.err conftest.$ac_ext | |
19376 | ||
19377 | done | |
19378 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
19379 | rm -f conftest.err conftest.$ac_ext | |
19380 | if $ac_preproc_ok; then | |
19381 | break | |
19382 | fi | |
19383 | ||
19384 | done | |
19385 | ac_cv_prog_CXXCPP=$CXXCPP | |
19386 | ||
19387 | fi | |
19388 | CXXCPP=$ac_cv_prog_CXXCPP | |
19389 | else | |
19390 | ac_cv_prog_CXXCPP=$CXXCPP | |
19391 | fi | |
19392 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
19393 | echo "${ECHO_T}$CXXCPP" >&6 | |
19394 | ac_preproc_ok=false | |
19395 | for ac_cxx_preproc_warn_flag in '' yes | |
19396 | do | |
19397 | # Use a header file that comes with gcc, so configuring glibc | |
19398 | # with a fresh cross-compiler works. | |
19399 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19400 | # <limits.h> exists even on freestanding compilers. | |
19401 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
19402 | # not just through cpp. "Syntax error" is here to catch this case. | |
19403 | cat >conftest.$ac_ext <<_ACEOF | |
19404 | /* confdefs.h. */ | |
19405 | _ACEOF | |
19406 | cat confdefs.h >>conftest.$ac_ext | |
19407 | cat >>conftest.$ac_ext <<_ACEOF | |
19408 | /* end confdefs.h. */ | |
19409 | #ifdef __STDC__ | |
19410 | # include <limits.h> | |
19411 | #else | |
19412 | # include <assert.h> | |
19413 | #endif | |
ac1cb8d3 | 19414 | Syntax error |
a848cd7e SC |
19415 | _ACEOF |
19416 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19417 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19418 | ac_status=$? | |
19419 | grep -v '^ *+' conftest.er1 >conftest.err | |
19420 | rm -f conftest.er1 | |
19421 | cat conftest.err >&5 | |
19422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19423 | (exit $ac_status); } >/dev/null; then | |
19424 | if test -s conftest.err; then | |
19425 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19426 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19427 | else |
19428 | ac_cpp_err= | |
19429 | fi | |
19430 | else | |
19431 | ac_cpp_err=yes | |
19432 | fi | |
19433 | if test -z "$ac_cpp_err"; then | |
19434 | : | |
19435 | else | |
19436 | echo "$as_me: failed program was:" >&5 | |
19437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19438 | ||
19439 | # Broken: fails on valid input. | |
19440 | continue | |
19441 | fi | |
19442 | rm -f conftest.err conftest.$ac_ext | |
19443 | ||
19444 | # OK, works on sane cases. Now check whether non-existent headers | |
19445 | # can be detected and how. | |
19446 | cat >conftest.$ac_ext <<_ACEOF | |
19447 | /* confdefs.h. */ | |
19448 | _ACEOF | |
19449 | cat confdefs.h >>conftest.$ac_ext | |
19450 | cat >>conftest.$ac_ext <<_ACEOF | |
19451 | /* end confdefs.h. */ | |
19452 | #include <ac_nonexistent.h> | |
19453 | _ACEOF | |
19454 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19455 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19456 | ac_status=$? | |
19457 | grep -v '^ *+' conftest.er1 >conftest.err | |
19458 | rm -f conftest.er1 | |
19459 | cat conftest.err >&5 | |
19460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19461 | (exit $ac_status); } >/dev/null; then | |
19462 | if test -s conftest.err; then | |
19463 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19464 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19465 | else |
19466 | ac_cpp_err= | |
19467 | fi | |
19468 | else | |
19469 | ac_cpp_err=yes | |
19470 | fi | |
19471 | if test -z "$ac_cpp_err"; then | |
19472 | # Broken: success on invalid input. | |
19473 | continue | |
19474 | else | |
19475 | echo "$as_me: failed program was:" >&5 | |
19476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19477 | ||
19478 | # Passes both tests. | |
19479 | ac_preproc_ok=: | |
19480 | break | |
19481 | fi | |
19482 | rm -f conftest.err conftest.$ac_ext | |
19483 | ||
19484 | done | |
19485 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
19486 | rm -f conftest.err conftest.$ac_ext | |
19487 | if $ac_preproc_ok; then | |
19488 | : | |
19489 | else | |
19490 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
19491 | See \`config.log' for more details." >&5 | |
19492 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
19493 | See \`config.log' for more details." >&2;} | |
19494 | { (exit 1); exit 1; }; } | |
19495 | fi | |
19496 | ||
19497 | ac_ext=cc | |
19498 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19499 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19500 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19501 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19502 | ||
19503 | ||
19504 | ||
19505 | ||
19506 | ||
19507 | ac_ext=cc | |
19508 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19509 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19510 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19511 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19512 | ||
19513 | ||
19514 | ||
19515 | for ac_header in iostream | |
19516 | do | |
19517 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19518 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19519 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19520 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19521 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19523 | fi | |
19524 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19525 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19526 | else | |
19527 | # Is the header compilable? | |
19528 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19529 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19530 | cat >conftest.$ac_ext <<_ACEOF | |
19531 | /* confdefs.h. */ | |
19532 | _ACEOF | |
19533 | cat confdefs.h >>conftest.$ac_ext | |
19534 | cat >>conftest.$ac_ext <<_ACEOF | |
19535 | /* end confdefs.h. */ | |
19536 | $ac_includes_default | |
19537 | #include <$ac_header> | |
19538 | _ACEOF | |
19539 | rm -f conftest.$ac_objext | |
19540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19541 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19542 | ac_status=$? |
ac1cb8d3 VS |
19543 | grep -v '^ *+' conftest.er1 >conftest.err |
19544 | rm -f conftest.er1 | |
19545 | cat conftest.err >&5 | |
a848cd7e SC |
19546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19547 | (exit $ac_status); } && | |
89be85c2 VS |
19548 | { ac_try='test -z "$ac_cxx_werror_flag" |
19549 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19551 | (eval $ac_try) 2>&5 | |
19552 | ac_status=$? | |
19553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19554 | (exit $ac_status); }; } && | |
19555 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19557 | (eval $ac_try) 2>&5 | |
19558 | ac_status=$? | |
19559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19560 | (exit $ac_status); }; }; then | |
19561 | ac_header_compiler=yes | |
19562 | else | |
19563 | echo "$as_me: failed program was:" >&5 | |
19564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19565 | ||
19566 | ac_header_compiler=no | |
19567 | fi | |
ac1cb8d3 | 19568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19569 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19570 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19571 | ||
19572 | # Is the header present? | |
19573 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19574 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19575 | cat >conftest.$ac_ext <<_ACEOF | |
19576 | /* confdefs.h. */ | |
19577 | _ACEOF | |
19578 | cat confdefs.h >>conftest.$ac_ext | |
19579 | cat >>conftest.$ac_ext <<_ACEOF | |
19580 | /* end confdefs.h. */ | |
19581 | #include <$ac_header> | |
19582 | _ACEOF | |
19583 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19584 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19585 | ac_status=$? | |
19586 | grep -v '^ *+' conftest.er1 >conftest.err | |
19587 | rm -f conftest.er1 | |
19588 | cat conftest.err >&5 | |
19589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19590 | (exit $ac_status); } >/dev/null; then | |
19591 | if test -s conftest.err; then | |
19592 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19593 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19594 | else |
19595 | ac_cpp_err= | |
19596 | fi | |
19597 | else | |
19598 | ac_cpp_err=yes | |
19599 | fi | |
19600 | if test -z "$ac_cpp_err"; then | |
19601 | ac_header_preproc=yes | |
19602 | else | |
19603 | echo "$as_me: failed program was:" >&5 | |
19604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19605 | ||
19606 | ac_header_preproc=no | |
19607 | fi | |
19608 | rm -f conftest.err conftest.$ac_ext | |
19609 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19610 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19611 | ||
19612 | # So? What about this header? | |
ac1cb8d3 VS |
19613 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19614 | yes:no: ) | |
a848cd7e SC |
19615 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19616 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19617 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19618 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19619 | ac_header_preproc=yes | |
a848cd7e | 19620 | ;; |
ac1cb8d3 | 19621 | no:yes:* ) |
a848cd7e SC |
19622 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19623 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19624 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19625 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19626 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19627 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19628 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19629 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
19630 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19631 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19632 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19633 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
19634 | ( |
19635 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19636 | ## ----------------------------------------- ## |
19637 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19638 | ## ----------------------------------------- ## | |
a848cd7e SC |
19639 | _ASBOX |
19640 | ) | | |
19641 | sed "s/^/$as_me: WARNING: /" >&2 | |
19642 | ;; | |
19643 | esac | |
19644 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19646 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19648 | else | |
ac1cb8d3 | 19649 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
19650 | fi |
19651 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19652 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19653 | ||
19654 | fi | |
19655 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19656 | cat >>confdefs.h <<_ACEOF | |
19657 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19658 | _ACEOF | |
19659 | ||
19660 | fi | |
19661 | ||
19662 | done | |
19663 | ||
19664 | ||
19665 | if test "$ac_cv_header_iostream" = "yes" ; then | |
19666 | : | |
19667 | else | |
19668 | cat >>confdefs.h <<\_ACEOF | |
19669 | #define wxUSE_IOSTREAMH 1 | |
19670 | _ACEOF | |
19671 | ||
19672 | fi | |
19673 | ||
19674 | ac_ext=c | |
19675 | ac_cpp='$CPP $CPPFLAGS' | |
19676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19679 | ||
19680 | ||
19681 | ||
19682 | ||
19683 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
19684 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
19685 | if test "${wx_cv_cpp_bool+set}" = set; then | |
19686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19687 | else | |
19688 | ||
19689 | ||
19690 | ||
19691 | ac_ext=cc | |
19692 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19693 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19694 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19695 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19696 | ||
19697 | ||
19698 | cat >conftest.$ac_ext <<_ACEOF | |
19699 | /* confdefs.h. */ | |
19700 | _ACEOF | |
19701 | cat confdefs.h >>conftest.$ac_ext | |
19702 | cat >>conftest.$ac_ext <<_ACEOF | |
19703 | /* end confdefs.h. */ | |
19704 | ||
19705 | ||
19706 | int | |
19707 | main () | |
19708 | { | |
19709 | ||
19710 | bool b = true; | |
19711 | ||
19712 | return 0; | |
19713 | ||
19714 | ; | |
19715 | return 0; | |
19716 | } | |
19717 | _ACEOF | |
19718 | rm -f conftest.$ac_objext | |
19719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19720 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19721 | ac_status=$? |
ac1cb8d3 VS |
19722 | grep -v '^ *+' conftest.er1 >conftest.err |
19723 | rm -f conftest.er1 | |
19724 | cat conftest.err >&5 | |
a848cd7e SC |
19725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19726 | (exit $ac_status); } && | |
89be85c2 VS |
19727 | { ac_try='test -z "$ac_cxx_werror_flag" |
19728 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19730 | (eval $ac_try) 2>&5 | |
19731 | ac_status=$? | |
19732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19733 | (exit $ac_status); }; } && | |
19734 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19736 | (eval $ac_try) 2>&5 | |
19737 | ac_status=$? | |
19738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19739 | (exit $ac_status); }; }; then | |
19740 | ||
19741 | wx_cv_cpp_bool=yes | |
19742 | ||
19743 | else | |
19744 | echo "$as_me: failed program was:" >&5 | |
19745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19746 | ||
19747 | ||
19748 | wx_cv_cpp_bool=no | |
19749 | ||
19750 | ||
19751 | fi | |
ac1cb8d3 | 19752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19753 | |
19754 | ac_ext=c | |
19755 | ac_cpp='$CPP $CPPFLAGS' | |
19756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19759 | ||
19760 | ||
19761 | fi | |
19762 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
19763 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
19764 | ||
19765 | if test "$wx_cv_cpp_bool" = "yes"; then | |
19766 | cat >>confdefs.h <<\_ACEOF | |
19767 | #define HAVE_BOOL 1 | |
19768 | _ACEOF | |
19769 | ||
19770 | fi | |
19771 | ||
19772 | ||
19773 | ||
19774 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
19775 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
19776 | if test "${wx_cv_explicit+set}" = set; then | |
19777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19778 | else | |
19779 | ||
19780 | ||
19781 | ||
19782 | ac_ext=cc | |
19783 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19784 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19785 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19786 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19787 | ||
19788 | ||
19789 | cat >conftest.$ac_ext <<_ACEOF | |
19790 | /* confdefs.h. */ | |
19791 | _ACEOF | |
19792 | cat confdefs.h >>conftest.$ac_ext | |
19793 | cat >>conftest.$ac_ext <<_ACEOF | |
19794 | /* end confdefs.h. */ | |
19795 | ||
19796 | class Foo { public: explicit Foo(int) {} }; | |
19797 | ||
19798 | int | |
19799 | main () | |
19800 | { | |
19801 | ||
19802 | return 0; | |
19803 | ||
19804 | ; | |
19805 | return 0; | |
19806 | } | |
19807 | _ACEOF | |
19808 | rm -f conftest.$ac_objext | |
19809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19810 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19811 | ac_status=$? |
ac1cb8d3 VS |
19812 | grep -v '^ *+' conftest.er1 >conftest.err |
19813 | rm -f conftest.er1 | |
19814 | cat conftest.err >&5 | |
a848cd7e SC |
19815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19816 | (exit $ac_status); } && | |
89be85c2 VS |
19817 | { ac_try='test -z "$ac_cxx_werror_flag" |
19818 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19820 | (eval $ac_try) 2>&5 | |
19821 | ac_status=$? | |
19822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19823 | (exit $ac_status); }; } && | |
19824 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19826 | (eval $ac_try) 2>&5 | |
19827 | ac_status=$? | |
19828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19829 | (exit $ac_status); }; }; then | |
19830 | ||
19831 | cat >conftest.$ac_ext <<_ACEOF | |
19832 | /* confdefs.h. */ | |
19833 | _ACEOF | |
19834 | cat confdefs.h >>conftest.$ac_ext | |
19835 | cat >>conftest.$ac_ext <<_ACEOF | |
19836 | /* end confdefs.h. */ | |
19837 | ||
19838 | class Foo { public: explicit Foo(int) {} }; | |
19839 | static void TakeFoo(const Foo& foo) { } | |
19840 | ||
19841 | int | |
19842 | main () | |
19843 | { | |
19844 | ||
19845 | TakeFoo(17); | |
19846 | return 0; | |
19847 | ||
19848 | ; | |
19849 | return 0; | |
19850 | } | |
19851 | _ACEOF | |
19852 | rm -f conftest.$ac_objext | |
19853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19854 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19855 | ac_status=$? |
ac1cb8d3 VS |
19856 | grep -v '^ *+' conftest.er1 >conftest.err |
19857 | rm -f conftest.er1 | |
19858 | cat conftest.err >&5 | |
a848cd7e SC |
19859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19860 | (exit $ac_status); } && | |
89be85c2 VS |
19861 | { ac_try='test -z "$ac_cxx_werror_flag" |
19862 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19864 | (eval $ac_try) 2>&5 | |
19865 | ac_status=$? | |
19866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19867 | (exit $ac_status); }; } && | |
19868 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19870 | (eval $ac_try) 2>&5 | |
19871 | ac_status=$? | |
19872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19873 | (exit $ac_status); }; }; then | |
19874 | wx_cv_explicit=no | |
19875 | else | |
19876 | echo "$as_me: failed program was:" >&5 | |
19877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19878 | ||
19879 | wx_cv_explicit=yes | |
19880 | ||
19881 | fi | |
ac1cb8d3 | 19882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19883 | |
19884 | else | |
19885 | echo "$as_me: failed program was:" >&5 | |
19886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19887 | ||
19888 | wx_cv_explicit=no | |
19889 | ||
19890 | fi | |
ac1cb8d3 | 19891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19892 | |
19893 | ac_ext=c | |
19894 | ac_cpp='$CPP $CPPFLAGS' | |
19895 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19896 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19897 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19898 | ||
19899 | ||
19900 | fi | |
19901 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19902 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19903 | ||
19904 | if test "$wx_cv_explicit" = "yes"; then | |
19905 | cat >>confdefs.h <<\_ACEOF | |
19906 | #define HAVE_EXPLICIT 1 | |
19907 | _ACEOF | |
19908 | ||
19909 | fi | |
19910 | ||
19911 | ||
19912 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19913 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19914 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19916 | else | |
19917 | ||
19918 | ||
19919 | ac_ext=cc | |
19920 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19921 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19922 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19923 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19924 | ||
19925 | cat >conftest.$ac_ext <<_ACEOF | |
19926 | /* confdefs.h. */ | |
19927 | _ACEOF | |
19928 | cat confdefs.h >>conftest.$ac_ext | |
19929 | cat >>conftest.$ac_ext <<_ACEOF | |
19930 | /* end confdefs.h. */ | |
19931 | ||
19932 | int | |
19933 | main () | |
19934 | { | |
19935 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19936 | ; | |
19937 | return 0; | |
19938 | } | |
19939 | _ACEOF | |
19940 | rm -f conftest.$ac_objext | |
19941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19942 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19943 | ac_status=$? |
ac1cb8d3 VS |
19944 | grep -v '^ *+' conftest.er1 >conftest.err |
19945 | rm -f conftest.er1 | |
19946 | cat conftest.err >&5 | |
a848cd7e SC |
19947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19948 | (exit $ac_status); } && | |
89be85c2 VS |
19949 | { ac_try='test -z "$ac_cxx_werror_flag" |
19950 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19952 | (eval $ac_try) 2>&5 | |
19953 | ac_status=$? | |
19954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19955 | (exit $ac_status); }; } && | |
19956 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19958 | (eval $ac_try) 2>&5 | |
19959 | ac_status=$? | |
19960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19961 | (exit $ac_status); }; }; then | |
19962 | ac_cv_cxx_const_cast=yes | |
19963 | else | |
19964 | echo "$as_me: failed program was:" >&5 | |
19965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19966 | ||
19967 | ac_cv_cxx_const_cast=no | |
19968 | fi | |
ac1cb8d3 | 19969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19970 | ac_ext=c |
19971 | ac_cpp='$CPP $CPPFLAGS' | |
19972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19975 | ||
19976 | ||
19977 | fi | |
19978 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19979 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19980 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19981 | ||
19982 | cat >>confdefs.h <<\_ACEOF | |
19983 | #define HAVE_CONST_CAST | |
19984 | _ACEOF | |
19985 | ||
19986 | fi | |
19987 | ||
7714864e RL |
19988 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
19989 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
19990 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
19991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19992 | else | |
19993 | ||
19994 | ||
19995 | ac_ext=cc | |
19996 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19997 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19998 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19999 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20000 | ||
20001 | cat >conftest.$ac_ext <<_ACEOF | |
20002 | /* confdefs.h. */ | |
20003 | _ACEOF | |
20004 | cat confdefs.h >>conftest.$ac_ext | |
20005 | cat >>conftest.$ac_ext <<_ACEOF | |
20006 | /* end confdefs.h. */ | |
20007 | #include <typeinfo> | |
20008 | class Base { public : Base () {} virtual void f () = 0;}; | |
20009 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
20010 | class Unrelated { public : Unrelated () {} }; | |
20011 | int g (Unrelated&) { return 0; } | |
20012 | int | |
20013 | main () | |
20014 | { | |
20015 | ||
20016 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
20017 | ; | |
20018 | return 0; | |
20019 | } | |
20020 | _ACEOF | |
20021 | rm -f conftest.$ac_objext | |
20022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20023 | (eval $ac_compile) 2>conftest.er1 | |
20024 | ac_status=$? | |
20025 | grep -v '^ *+' conftest.er1 >conftest.err | |
20026 | rm -f conftest.er1 | |
20027 | cat conftest.err >&5 | |
20028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20029 | (exit $ac_status); } && | |
89be85c2 VS |
20030 | { ac_try='test -z "$ac_cxx_werror_flag" |
20031 | || test ! -s conftest.err' | |
7714864e RL |
20032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20033 | (eval $ac_try) 2>&5 | |
20034 | ac_status=$? | |
20035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20036 | (exit $ac_status); }; } && | |
20037 | { ac_try='test -s conftest.$ac_objext' | |
20038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20039 | (eval $ac_try) 2>&5 | |
20040 | ac_status=$? | |
20041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20042 | (exit $ac_status); }; }; then | |
20043 | ac_cv_cxx_reinterpret_cast=yes | |
20044 | else | |
20045 | echo "$as_me: failed program was:" >&5 | |
20046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20047 | ||
20048 | ac_cv_cxx_reinterpret_cast=no | |
20049 | fi | |
20050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20051 | ac_ext=c | |
20052 | ac_cpp='$CPP $CPPFLAGS' | |
20053 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20054 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20055 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20056 | ||
20057 | ||
20058 | fi | |
20059 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
20060 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
20061 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
20062 | ||
20063 | cat >>confdefs.h <<\_ACEOF | |
20064 | #define HAVE_REINTERPRET_CAST | |
20065 | _ACEOF | |
20066 | ||
20067 | fi | |
20068 | ||
a848cd7e SC |
20069 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
20070 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
20071 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
20072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20073 | else | |
20074 | ||
20075 | ||
20076 | ac_ext=cc | |
20077 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20078 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20079 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20080 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20081 | ||
20082 | cat >conftest.$ac_ext <<_ACEOF | |
20083 | /* confdefs.h. */ | |
20084 | _ACEOF | |
20085 | cat confdefs.h >>conftest.$ac_ext | |
20086 | cat >>conftest.$ac_ext <<_ACEOF | |
20087 | /* end confdefs.h. */ | |
20088 | #include <typeinfo> | |
20089 | class Base { public : Base () {} virtual void f () = 0; }; | |
20090 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
20091 | int g (Derived&) { return 0; } | |
20092 | int | |
20093 | main () | |
20094 | { | |
20095 | ||
20096 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
20097 | ; | |
20098 | return 0; | |
20099 | } | |
20100 | _ACEOF | |
20101 | rm -f conftest.$ac_objext | |
20102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20103 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20104 | ac_status=$? |
ac1cb8d3 VS |
20105 | grep -v '^ *+' conftest.er1 >conftest.err |
20106 | rm -f conftest.er1 | |
20107 | cat conftest.err >&5 | |
a848cd7e SC |
20108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20109 | (exit $ac_status); } && | |
89be85c2 VS |
20110 | { ac_try='test -z "$ac_cxx_werror_flag" |
20111 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20113 | (eval $ac_try) 2>&5 | |
20114 | ac_status=$? | |
20115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20116 | (exit $ac_status); }; } && | |
20117 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20119 | (eval $ac_try) 2>&5 | |
20120 | ac_status=$? | |
20121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20122 | (exit $ac_status); }; }; then | |
20123 | ac_cv_cxx_static_cast=yes | |
20124 | else | |
20125 | echo "$as_me: failed program was:" >&5 | |
20126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20127 | ||
20128 | ac_cv_cxx_static_cast=no | |
20129 | fi | |
ac1cb8d3 | 20130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20131 | ac_ext=c |
20132 | ac_cpp='$CPP $CPPFLAGS' | |
20133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20136 | ||
20137 | ||
20138 | fi | |
20139 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
20140 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
20141 | if test "$ac_cv_cxx_static_cast" = yes; then | |
20142 | ||
20143 | cat >>confdefs.h <<\_ACEOF | |
20144 | #define HAVE_STATIC_CAST | |
20145 | _ACEOF | |
20146 | ||
20147 | fi | |
20148 | ||
20149 | ||
20150 | if test "$wxUSE_STL" = "yes"; then | |
20151 | ac_ext=cc | |
20152 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20153 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20154 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20155 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20156 | ||
20157 | ||
20158 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
20159 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
20160 | cat >conftest.$ac_ext <<_ACEOF | |
20161 | /* confdefs.h. */ | |
20162 | _ACEOF | |
20163 | cat confdefs.h >>conftest.$ac_ext | |
20164 | cat >>conftest.$ac_ext <<_ACEOF | |
20165 | /* end confdefs.h. */ | |
20166 | #include <string> | |
20167 | #include <functional> | |
20168 | #include <algorithm> | |
20169 | #include <vector> | |
20170 | #include <list> | |
20171 | int | |
20172 | main () | |
20173 | { | |
20174 | std::vector<int> moo; | |
20175 | std::list<int> foo; | |
20176 | std::vector<int>::iterator it = | |
20177 | std::find_if(moo.begin(), moo.end(), | |
20178 | std::bind2nd(std::less<int>(), 3)); | |
20179 | ; | |
20180 | return 0; | |
20181 | } | |
20182 | _ACEOF | |
20183 | rm -f conftest.$ac_objext | |
20184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20185 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20186 | ac_status=$? |
ac1cb8d3 VS |
20187 | grep -v '^ *+' conftest.er1 >conftest.err |
20188 | rm -f conftest.er1 | |
20189 | cat conftest.err >&5 | |
a848cd7e SC |
20190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20191 | (exit $ac_status); } && | |
89be85c2 VS |
20192 | { ac_try='test -z "$ac_cxx_werror_flag" |
20193 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20195 | (eval $ac_try) 2>&5 | |
20196 | ac_status=$? | |
20197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20198 | (exit $ac_status); }; } && | |
20199 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20201 | (eval $ac_try) 2>&5 | |
20202 | ac_status=$? | |
20203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20204 | (exit $ac_status); }; }; then | |
20205 | echo "$as_me:$LINENO: result: yes" >&5 | |
20206 | echo "${ECHO_T}yes" >&6 | |
20207 | else | |
20208 | echo "$as_me: failed program was:" >&5 | |
20209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20210 | ||
20211 | echo "$as_me:$LINENO: result: no" >&5 | |
20212 | echo "${ECHO_T}no" >&6 | |
20213 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
20214 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
20215 | { (exit 1); exit 1; }; } | |
20216 | fi | |
ac1cb8d3 | 20217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20218 | |
20219 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
20220 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
20221 | cat >conftest.$ac_ext <<_ACEOF | |
20222 | /* confdefs.h. */ | |
20223 | _ACEOF | |
20224 | cat confdefs.h >>conftest.$ac_ext | |
20225 | cat >>conftest.$ac_ext <<_ACEOF | |
20226 | /* end confdefs.h. */ | |
20227 | #include <string> | |
20228 | int | |
20229 | main () | |
20230 | { | |
20231 | std::wstring foo; | |
20232 | ; | |
20233 | return 0; | |
20234 | } | |
20235 | _ACEOF | |
20236 | rm -f conftest.$ac_objext | |
20237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20238 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20239 | ac_status=$? |
ac1cb8d3 VS |
20240 | grep -v '^ *+' conftest.er1 >conftest.err |
20241 | rm -f conftest.er1 | |
20242 | cat conftest.err >&5 | |
a848cd7e SC |
20243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20244 | (exit $ac_status); } && | |
89be85c2 VS |
20245 | { ac_try='test -z "$ac_cxx_werror_flag" |
20246 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20248 | (eval $ac_try) 2>&5 | |
20249 | ac_status=$? | |
20250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20251 | (exit $ac_status); }; } && | |
20252 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20254 | (eval $ac_try) 2>&5 | |
20255 | ac_status=$? | |
20256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20257 | (exit $ac_status); }; }; then | |
20258 | echo "$as_me:$LINENO: result: yes" >&5 | |
20259 | echo "${ECHO_T}yes" >&6 | |
20260 | cat >>confdefs.h <<\_ACEOF | |
20261 | #define HAVE_STD_WSTRING 1 | |
20262 | _ACEOF | |
20263 | ||
20264 | else | |
20265 | echo "$as_me: failed program was:" >&5 | |
20266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20267 | ||
20268 | echo "$as_me:$LINENO: result: no" >&5 | |
20269 | echo "${ECHO_T}no" >&6 | |
20270 | fi | |
ac1cb8d3 | 20271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20272 | |
20273 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
20274 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
20275 | cat >conftest.$ac_ext <<_ACEOF | |
20276 | /* confdefs.h. */ | |
20277 | _ACEOF | |
20278 | cat confdefs.h >>conftest.$ac_ext | |
20279 | cat >>conftest.$ac_ext <<_ACEOF | |
20280 | /* end confdefs.h. */ | |
20281 | #include <string> | |
20282 | int | |
20283 | main () | |
20284 | { | |
20285 | std::string foo, bar; | |
20286 | foo.compare(bar); | |
20287 | foo.compare(1, 1, bar); | |
20288 | foo.compare(1, 1, bar, 1, 1); | |
20289 | foo.compare(""); | |
20290 | foo.compare(1, 1, ""); | |
20291 | foo.compare(1, 1, "", 2); | |
20292 | ; | |
20293 | return 0; | |
20294 | } | |
20295 | _ACEOF | |
20296 | rm -f conftest.$ac_objext | |
20297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20298 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20299 | ac_status=$? |
ac1cb8d3 VS |
20300 | grep -v '^ *+' conftest.er1 >conftest.err |
20301 | rm -f conftest.er1 | |
20302 | cat conftest.err >&5 | |
a848cd7e SC |
20303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20304 | (exit $ac_status); } && | |
89be85c2 VS |
20305 | { ac_try='test -z "$ac_cxx_werror_flag" |
20306 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20308 | (eval $ac_try) 2>&5 | |
20309 | ac_status=$? | |
20310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20311 | (exit $ac_status); }; } && | |
20312 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20314 | (eval $ac_try) 2>&5 | |
20315 | ac_status=$? | |
20316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20317 | (exit $ac_status); }; }; then | |
20318 | echo "$as_me:$LINENO: result: yes" >&5 | |
20319 | echo "${ECHO_T}yes" >&6 | |
20320 | cat >>confdefs.h <<\_ACEOF | |
20321 | #define HAVE_STD_STRING_COMPARE 1 | |
20322 | _ACEOF | |
20323 | ||
20324 | else | |
20325 | echo "$as_me: failed program was:" >&5 | |
20326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20327 | ||
20328 | echo "$as_me:$LINENO: result: no" >&5 | |
20329 | echo "${ECHO_T}no" >&6 | |
20330 | fi | |
ac1cb8d3 | 20331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20332 | |
20333 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20334 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
20335 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
20336 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20338 | fi | |
20339 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
20340 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
20341 | else | |
20342 | # Is the header compilable? | |
20343 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
20344 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
20345 | cat >conftest.$ac_ext <<_ACEOF | |
20346 | /* confdefs.h. */ | |
20347 | _ACEOF | |
20348 | cat confdefs.h >>conftest.$ac_ext | |
20349 | cat >>conftest.$ac_ext <<_ACEOF | |
20350 | /* end confdefs.h. */ | |
20351 | $ac_includes_default | |
20352 | #include <hash_map> | |
20353 | _ACEOF | |
20354 | rm -f conftest.$ac_objext | |
20355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20356 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20357 | ac_status=$? |
ac1cb8d3 VS |
20358 | grep -v '^ *+' conftest.er1 >conftest.err |
20359 | rm -f conftest.er1 | |
20360 | cat conftest.err >&5 | |
bdcade0a MB |
20361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20362 | (exit $ac_status); } && | |
89be85c2 VS |
20363 | { ac_try='test -z "$ac_cxx_werror_flag" |
20364 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20366 | (eval $ac_try) 2>&5 | |
20367 | ac_status=$? | |
20368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20369 | (exit $ac_status); }; } && | |
20370 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20372 | (eval $ac_try) 2>&5 | |
20373 | ac_status=$? | |
20374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20375 | (exit $ac_status); }; }; then | |
20376 | ac_header_compiler=yes | |
20377 | else | |
20378 | echo "$as_me: failed program was:" >&5 | |
20379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20380 | ||
20381 | ac_header_compiler=no | |
20382 | fi | |
ac1cb8d3 | 20383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20384 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20385 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20386 | ||
20387 | # Is the header present? | |
20388 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
20389 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
20390 | cat >conftest.$ac_ext <<_ACEOF | |
20391 | /* confdefs.h. */ | |
20392 | _ACEOF | |
20393 | cat confdefs.h >>conftest.$ac_ext | |
20394 | cat >>conftest.$ac_ext <<_ACEOF | |
20395 | /* end confdefs.h. */ | |
20396 | #include <hash_map> | |
20397 | _ACEOF | |
20398 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20399 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20400 | ac_status=$? | |
20401 | grep -v '^ *+' conftest.er1 >conftest.err | |
20402 | rm -f conftest.er1 | |
20403 | cat conftest.err >&5 | |
20404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20405 | (exit $ac_status); } >/dev/null; then | |
20406 | if test -s conftest.err; then | |
20407 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20408 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
20409 | else |
20410 | ac_cpp_err= | |
20411 | fi | |
20412 | else | |
20413 | ac_cpp_err=yes | |
20414 | fi | |
20415 | if test -z "$ac_cpp_err"; then | |
20416 | ac_header_preproc=yes | |
20417 | else | |
20418 | echo "$as_me: failed program was:" >&5 | |
20419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20420 | ||
20421 | ac_header_preproc=no | |
20422 | fi | |
20423 | rm -f conftest.err conftest.$ac_ext | |
20424 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20425 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20426 | ||
20427 | # So? What about this header? | |
ac1cb8d3 VS |
20428 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20429 | yes:no: ) | |
bdcade0a MB |
20430 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
20431 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20432 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
20433 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
20434 | ac_header_preproc=yes | |
bdcade0a | 20435 | ;; |
ac1cb8d3 | 20436 | no:yes:* ) |
bdcade0a MB |
20437 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
20438 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20439 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
20440 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
20441 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
20442 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
20443 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20444 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20445 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
20446 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20447 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
20448 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20449 | ( |
20450 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20451 | ## ----------------------------------------- ## |
20452 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20453 | ## ----------------------------------------- ## | |
bdcade0a MB |
20454 | _ASBOX |
20455 | ) | | |
20456 | sed "s/^/$as_me: WARNING: /" >&2 | |
20457 | ;; | |
20458 | esac | |
20459 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
20460 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
20461 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20463 | else | |
20464 | ac_cv_header_hash_map=$ac_header_preproc | |
20465 | fi | |
20466 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
20467 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
20468 | ||
20469 | fi | |
20470 | if test $ac_cv_header_hash_map = yes; then | |
20471 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
20472 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
20473 | cat >conftest.$ac_ext <<_ACEOF | |
20474 | /* confdefs.h. */ | |
20475 | _ACEOF | |
20476 | cat confdefs.h >>conftest.$ac_ext | |
20477 | cat >>conftest.$ac_ext <<_ACEOF | |
20478 | /* end confdefs.h. */ | |
20479 | #include <hash_map> | |
20480 | #include <hash_set> | |
20481 | int | |
20482 | main () | |
20483 | { | |
20484 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
20485 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
20486 | ; | |
20487 | return 0; | |
20488 | } | |
20489 | _ACEOF | |
20490 | rm -f conftest.$ac_objext | |
20491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20492 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20493 | ac_status=$? |
ac1cb8d3 VS |
20494 | grep -v '^ *+' conftest.er1 >conftest.err |
20495 | rm -f conftest.er1 | |
20496 | cat conftest.err >&5 | |
bdcade0a MB |
20497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20498 | (exit $ac_status); } && | |
89be85c2 VS |
20499 | { ac_try='test -z "$ac_cxx_werror_flag" |
20500 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20502 | (eval $ac_try) 2>&5 | |
20503 | ac_status=$? | |
20504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20505 | (exit $ac_status); }; } && | |
20506 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20508 | (eval $ac_try) 2>&5 | |
20509 | ac_status=$? | |
20510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20511 | (exit $ac_status); }; }; then | |
20512 | echo "$as_me:$LINENO: result: yes" >&5 | |
20513 | echo "${ECHO_T}yes" >&6 | |
20514 | cat >>confdefs.h <<\_ACEOF | |
20515 | #define HAVE_HASH_MAP 1 | |
20516 | _ACEOF | |
20517 | ||
20518 | cat >>confdefs.h <<\_ACEOF | |
20519 | #define HAVE_STD_HASH_MAP 1 | |
20520 | _ACEOF | |
20521 | ||
20522 | else | |
20523 | echo "$as_me: failed program was:" >&5 | |
20524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20525 | ||
20526 | echo "$as_me:$LINENO: result: no" >&5 | |
20527 | echo "${ECHO_T}no" >&6 | |
20528 | fi | |
ac1cb8d3 | 20529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20530 | |
20531 | fi | |
20532 | ||
20533 | ||
20534 | ||
20535 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20536 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20537 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20538 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20540 | fi | |
20541 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20542 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20543 | else | |
20544 | # Is the header compilable? | |
20545 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
20546 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
20547 | cat >conftest.$ac_ext <<_ACEOF | |
20548 | /* confdefs.h. */ | |
20549 | _ACEOF | |
20550 | cat confdefs.h >>conftest.$ac_ext | |
20551 | cat >>conftest.$ac_ext <<_ACEOF | |
20552 | /* end confdefs.h. */ | |
20553 | $ac_includes_default | |
20554 | #include <ext/hash_map> | |
20555 | _ACEOF | |
20556 | rm -f conftest.$ac_objext | |
20557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20558 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20559 | ac_status=$? |
ac1cb8d3 VS |
20560 | grep -v '^ *+' conftest.er1 >conftest.err |
20561 | rm -f conftest.er1 | |
20562 | cat conftest.err >&5 | |
bdcade0a MB |
20563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20564 | (exit $ac_status); } && | |
89be85c2 VS |
20565 | { ac_try='test -z "$ac_cxx_werror_flag" |
20566 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20568 | (eval $ac_try) 2>&5 | |
20569 | ac_status=$? | |
20570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20571 | (exit $ac_status); }; } && | |
20572 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20574 | (eval $ac_try) 2>&5 | |
20575 | ac_status=$? | |
20576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20577 | (exit $ac_status); }; }; then | |
20578 | ac_header_compiler=yes | |
20579 | else | |
20580 | echo "$as_me: failed program was:" >&5 | |
20581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20582 | ||
20583 | ac_header_compiler=no | |
20584 | fi | |
ac1cb8d3 | 20585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20586 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20587 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20588 | ||
20589 | # Is the header present? | |
20590 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
20591 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
20592 | cat >conftest.$ac_ext <<_ACEOF | |
20593 | /* confdefs.h. */ | |
20594 | _ACEOF | |
20595 | cat confdefs.h >>conftest.$ac_ext | |
20596 | cat >>conftest.$ac_ext <<_ACEOF | |
20597 | /* end confdefs.h. */ | |
20598 | #include <ext/hash_map> | |
20599 | _ACEOF | |
20600 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20601 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20602 | ac_status=$? | |
20603 | grep -v '^ *+' conftest.er1 >conftest.err | |
20604 | rm -f conftest.er1 | |
20605 | cat conftest.err >&5 | |
20606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20607 | (exit $ac_status); } >/dev/null; then | |
20608 | if test -s conftest.err; then | |
20609 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20610 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
20611 | else |
20612 | ac_cpp_err= | |
20613 | fi | |
20614 | else | |
20615 | ac_cpp_err=yes | |
20616 | fi | |
20617 | if test -z "$ac_cpp_err"; then | |
20618 | ac_header_preproc=yes | |
20619 | else | |
20620 | echo "$as_me: failed program was:" >&5 | |
20621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20622 | ||
20623 | ac_header_preproc=no | |
20624 | fi | |
20625 | rm -f conftest.err conftest.$ac_ext | |
20626 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20627 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20628 | ||
20629 | # So? What about this header? | |
ac1cb8d3 VS |
20630 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20631 | yes:no: ) | |
bdcade0a MB |
20632 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
20633 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20634 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
20635 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
20636 | ac_header_preproc=yes | |
bdcade0a | 20637 | ;; |
ac1cb8d3 | 20638 | no:yes:* ) |
bdcade0a MB |
20639 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
20640 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20641 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
20642 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
20643 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
20644 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
20645 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20646 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20647 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
20648 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20649 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
20650 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20651 | ( |
20652 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20653 | ## ----------------------------------------- ## |
20654 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20655 | ## ----------------------------------------- ## | |
bdcade0a MB |
20656 | _ASBOX |
20657 | ) | | |
20658 | sed "s/^/$as_me: WARNING: /" >&2 | |
20659 | ;; | |
20660 | esac | |
20661 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20662 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20663 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20665 | else | |
20666 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
20667 | fi | |
20668 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20669 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20670 | ||
20671 | fi | |
20672 | if test $ac_cv_header_ext_hash_map = yes; then | |
20673 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
20674 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
20675 | cat >conftest.$ac_ext <<_ACEOF | |
20676 | /* confdefs.h. */ | |
20677 | _ACEOF | |
20678 | cat confdefs.h >>conftest.$ac_ext | |
20679 | cat >>conftest.$ac_ext <<_ACEOF | |
20680 | /* end confdefs.h. */ | |
20681 | #include <ext/hash_map> | |
20682 | #include <ext/hash_set> | |
20683 | int | |
20684 | main () | |
20685 | { | |
20686 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
20687 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
20688 | ; | |
20689 | return 0; | |
20690 | } | |
20691 | _ACEOF | |
20692 | rm -f conftest.$ac_objext | |
20693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20694 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20695 | ac_status=$? |
ac1cb8d3 VS |
20696 | grep -v '^ *+' conftest.er1 >conftest.err |
20697 | rm -f conftest.er1 | |
20698 | cat conftest.err >&5 | |
bdcade0a MB |
20699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20700 | (exit $ac_status); } && | |
89be85c2 VS |
20701 | { ac_try='test -z "$ac_cxx_werror_flag" |
20702 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20704 | (eval $ac_try) 2>&5 | |
20705 | ac_status=$? | |
20706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20707 | (exit $ac_status); }; } && | |
20708 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20710 | (eval $ac_try) 2>&5 | |
20711 | ac_status=$? | |
20712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20713 | (exit $ac_status); }; }; then | |
20714 | echo "$as_me:$LINENO: result: yes" >&5 | |
20715 | echo "${ECHO_T}yes" >&6 | |
20716 | cat >>confdefs.h <<\_ACEOF | |
20717 | #define HAVE_EXT_HASH_MAP 1 | |
20718 | _ACEOF | |
20719 | ||
20720 | cat >>confdefs.h <<\_ACEOF | |
20721 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
20722 | _ACEOF | |
20723 | ||
20724 | else | |
20725 | echo "$as_me: failed program was:" >&5 | |
20726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20727 | ||
20728 | echo "$as_me:$LINENO: result: no" >&5 | |
20729 | echo "${ECHO_T}no" >&6 | |
20730 | fi | |
ac1cb8d3 | 20731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20732 | |
20733 | fi | |
20734 | ||
20735 | ||
a848cd7e SC |
20736 | |
20737 | ac_ext=c | |
20738 | ac_cpp='$CPP $CPPFLAGS' | |
20739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20742 | ||
20743 | fi | |
20744 | ||
20745 | ||
20746 | SEARCH_INCLUDE="\ | |
20747 | /usr/local/include \ | |
20748 | \ | |
20749 | /usr/Motif-2.1/include \ | |
20750 | /usr/Motif-1.2/include \ | |
20751 | /usr/include/Motif1.2 \ | |
20752 | /opt/xpm/include/X11 \ | |
20753 | /opt/GBxpm/include/ \ | |
20754 | /opt/GBxpm/X11/include/ \ | |
20755 | \ | |
20756 | /usr/dt/include \ | |
20757 | /usr/openwin/include \ | |
20758 | \ | |
20759 | /usr/include/Xm \ | |
20760 | \ | |
20761 | /usr/X11R6/include \ | |
20762 | /usr/X11R6.4/include \ | |
20763 | /usr/X11R5/include \ | |
20764 | /usr/X11R4/include \ | |
20765 | \ | |
20766 | /usr/include/X11R6 \ | |
20767 | /usr/include/X11R5 \ | |
20768 | /usr/include/X11R4 \ | |
20769 | \ | |
20770 | /usr/local/X11R6/include \ | |
20771 | /usr/local/X11R5/include \ | |
20772 | /usr/local/X11R4/include \ | |
20773 | \ | |
20774 | /usr/local/include/X11R6 \ | |
20775 | /usr/local/include/X11R5 \ | |
20776 | /usr/local/include/X11R4 \ | |
20777 | \ | |
20778 | /usr/X11/include \ | |
20779 | /usr/include/X11 \ | |
20780 | /usr/local/X11/include \ | |
20781 | /usr/local/include/X11 \ | |
20782 | \ | |
20783 | /usr/X386/include \ | |
20784 | /usr/x386/include \ | |
20785 | /usr/XFree86/include/X11 \ | |
20786 | \ | |
20787 | X:/XFree86/include \ | |
20788 | X:/XFree86/include/X11 \ | |
20789 | \ | |
20790 | /usr/include/gtk \ | |
20791 | /usr/local/include/gtk \ | |
20792 | /usr/include/glib \ | |
20793 | /usr/local/include/glib \ | |
20794 | \ | |
20795 | /usr/include/qt \ | |
20796 | /usr/local/include/qt \ | |
20797 | \ | |
20798 | /usr/local/arm/3.3.2/include \ | |
20799 | \ | |
20800 | /usr/include/windows \ | |
20801 | /usr/include/wine \ | |
20802 | /usr/local/include/wine \ | |
20803 | \ | |
20804 | /usr/unsupported/include \ | |
20805 | /usr/athena/include \ | |
20806 | /usr/local/x11r5/include \ | |
20807 | /usr/lpp/Xamples/include \ | |
20808 | \ | |
20809 | /usr/openwin/share/include" | |
20810 | ||
20811 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
20812 | ||
20813 | ||
20814 | cat >confcache <<\_ACEOF | |
20815 | # This file is a shell script that caches the results of configure | |
20816 | # tests run on this system so they can be shared between configure | |
20817 | # scripts and configure runs, see configure's option --config-cache. | |
20818 | # It is not useful on other systems. If it contains results you don't | |
20819 | # want to keep, you may remove or edit it. | |
20820 | # | |
20821 | # config.status only pays attention to the cache file if you give it | |
20822 | # the --recheck option to rerun configure. | |
20823 | # | |
20824 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20825 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20826 | # following values. | |
20827 | ||
20828 | _ACEOF | |
20829 | ||
20830 | # The following way of writing the cache mishandles newlines in values, | |
20831 | # but we know of no workaround that is simple, portable, and efficient. | |
20832 | # So, don't put newlines in cache variables' values. | |
20833 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20834 | # and sets the high bit in the cache file unless we assign to the vars. | |
20835 | { | |
20836 | (set) 2>&1 | | |
20837 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20838 | *ac_space=\ *) | |
20839 | # `set' does not quote correctly, so add quotes (double-quote | |
20840 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20841 | sed -n \ | |
ac1cb8d3 VS |
20842 | "s/'/'\\\\''/g; |
20843 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
20844 | ;; |
20845 | *) | |
20846 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20847 | sed -n \ | |
ac1cb8d3 | 20848 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
20849 | ;; |
20850 | esac; | |
20851 | } | | |
20852 | sed ' | |
20853 | t clear | |
20854 | : clear | |
20855 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20856 | t end | |
20857 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20858 | : end' >>confcache | |
20859 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20860 | if test -w $cache_file; then | |
20861 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20862 | cat confcache >$cache_file | |
20863 | else | |
20864 | echo "not updating unwritable cache $cache_file" | |
20865 | fi | |
20866 | fi | |
20867 | rm -f confcache | |
20868 | ||
20869 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
20870 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
20871 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
20872 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
20873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20874 | else | |
20875 | ||
20876 | cat >conftest.$ac_ext <<_ACEOF | |
20877 | /* confdefs.h. */ | |
20878 | _ACEOF | |
20879 | cat confdefs.h >>conftest.$ac_ext | |
20880 | cat >>conftest.$ac_ext <<_ACEOF | |
20881 | /* end confdefs.h. */ | |
20882 | #include <features.h> | |
20883 | int | |
20884 | main () | |
20885 | { | |
20886 | ||
20887 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
20888 | #error not glibc2.1 | |
20889 | #endif | |
20890 | ||
20891 | ; | |
20892 | return 0; | |
20893 | } | |
20894 | _ACEOF | |
20895 | rm -f conftest.$ac_objext | |
20896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20897 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20898 | ac_status=$? |
ac1cb8d3 VS |
20899 | grep -v '^ *+' conftest.er1 >conftest.err |
20900 | rm -f conftest.er1 | |
20901 | cat conftest.err >&5 | |
a848cd7e SC |
20902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20903 | (exit $ac_status); } && | |
89be85c2 VS |
20904 | { ac_try='test -z "$ac_c_werror_flag" |
20905 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20907 | (eval $ac_try) 2>&5 | |
20908 | ac_status=$? | |
20909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20910 | (exit $ac_status); }; } && | |
20911 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20913 | (eval $ac_try) 2>&5 | |
20914 | ac_status=$? | |
20915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20916 | (exit $ac_status); }; }; then | |
20917 | ||
20918 | wx_cv_lib_glibc21=yes | |
20919 | ||
20920 | else | |
20921 | echo "$as_me: failed program was:" >&5 | |
20922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20923 | ||
20924 | ||
20925 | wx_cv_lib_glibc21=no | |
20926 | ||
20927 | ||
20928 | fi | |
ac1cb8d3 | 20929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20930 | |
20931 | fi | |
20932 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
20933 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
20934 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
20935 | cat >>confdefs.h <<\_ACEOF | |
20936 | #define wxHAVE_GLIBC2 1 | |
20937 | _ACEOF | |
20938 | ||
20939 | fi | |
20940 | fi | |
20941 | ||
20942 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
20943 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
20944 | cat >>confdefs.h <<\_ACEOF | |
20945 | #define _GNU_SOURCE 1 | |
20946 | _ACEOF | |
20947 | ||
20948 | fi | |
20949 | fi | |
20950 | ||
20951 | ||
20952 | ||
20953 | if test "$wxUSE_REGEX" != "no"; then | |
20954 | cat >>confdefs.h <<\_ACEOF | |
20955 | #define wxUSE_REGEX 1 | |
20956 | _ACEOF | |
20957 | ||
20958 | ||
20959 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20960 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20961 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20962 | wxUSE_REGEX=builtin | |
20963 | fi | |
20964 | ||
20965 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20966 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20967 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20968 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20969 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20971 | fi | |
20972 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20973 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20974 | else | |
20975 | # Is the header compilable? | |
20976 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20977 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
20978 | cat >conftest.$ac_ext <<_ACEOF | |
20979 | /* confdefs.h. */ | |
20980 | _ACEOF | |
20981 | cat confdefs.h >>conftest.$ac_ext | |
20982 | cat >>conftest.$ac_ext <<_ACEOF | |
20983 | /* end confdefs.h. */ | |
20984 | $ac_includes_default | |
20985 | #include <regex.h> | |
20986 | _ACEOF | |
20987 | rm -f conftest.$ac_objext | |
20988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20989 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20990 | ac_status=$? |
ac1cb8d3 VS |
20991 | grep -v '^ *+' conftest.er1 >conftest.err |
20992 | rm -f conftest.er1 | |
20993 | cat conftest.err >&5 | |
a848cd7e SC |
20994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20995 | (exit $ac_status); } && | |
89be85c2 VS |
20996 | { ac_try='test -z "$ac_c_werror_flag" |
20997 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20999 | (eval $ac_try) 2>&5 | |
21000 | ac_status=$? | |
21001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21002 | (exit $ac_status); }; } && | |
21003 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21005 | (eval $ac_try) 2>&5 | |
21006 | ac_status=$? | |
21007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21008 | (exit $ac_status); }; }; then | |
21009 | ac_header_compiler=yes | |
21010 | else | |
21011 | echo "$as_me: failed program was:" >&5 | |
21012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21013 | ||
21014 | ac_header_compiler=no | |
21015 | fi | |
ac1cb8d3 | 21016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21017 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21018 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21019 | ||
21020 | # Is the header present? | |
21021 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
21022 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
21023 | cat >conftest.$ac_ext <<_ACEOF | |
21024 | /* confdefs.h. */ | |
21025 | _ACEOF | |
21026 | cat confdefs.h >>conftest.$ac_ext | |
21027 | cat >>conftest.$ac_ext <<_ACEOF | |
21028 | /* end confdefs.h. */ | |
21029 | #include <regex.h> | |
21030 | _ACEOF | |
21031 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21032 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21033 | ac_status=$? | |
21034 | grep -v '^ *+' conftest.er1 >conftest.err | |
21035 | rm -f conftest.er1 | |
21036 | cat conftest.err >&5 | |
21037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21038 | (exit $ac_status); } >/dev/null; then | |
21039 | if test -s conftest.err; then | |
21040 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21041 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21042 | else |
21043 | ac_cpp_err= | |
21044 | fi | |
21045 | else | |
21046 | ac_cpp_err=yes | |
21047 | fi | |
21048 | if test -z "$ac_cpp_err"; then | |
21049 | ac_header_preproc=yes | |
21050 | else | |
21051 | echo "$as_me: failed program was:" >&5 | |
21052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21053 | ||
21054 | ac_header_preproc=no | |
21055 | fi | |
21056 | rm -f conftest.err conftest.$ac_ext | |
21057 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21058 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21059 | ||
21060 | # So? What about this header? | |
ac1cb8d3 VS |
21061 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21062 | yes:no: ) | |
a848cd7e SC |
21063 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21064 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21065 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
21066 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
21067 | ac_header_preproc=yes | |
a848cd7e | 21068 | ;; |
ac1cb8d3 | 21069 | no:yes:* ) |
a848cd7e SC |
21070 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
21071 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21072 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
21073 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
21074 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
21075 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
21076 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21077 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21078 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
21079 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21080 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
21081 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21082 | ( |
21083 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21084 | ## ----------------------------------------- ## |
21085 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21086 | ## ----------------------------------------- ## | |
a848cd7e SC |
21087 | _ASBOX |
21088 | ) | | |
21089 | sed "s/^/$as_me: WARNING: /" >&2 | |
21090 | ;; | |
21091 | esac | |
21092 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
21093 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
21094 | if test "${ac_cv_header_regex_h+set}" = set; then | |
21095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21096 | else | |
21097 | ac_cv_header_regex_h=$ac_header_preproc | |
21098 | fi | |
21099 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
21100 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
21101 | ||
21102 | fi | |
21103 | if test $ac_cv_header_regex_h = yes; then | |
21104 | ||
21105 | for ac_func in regcomp | |
21106 | do | |
21107 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
21108 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
21109 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21110 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
21111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21112 | else | |
21113 | cat >conftest.$ac_ext <<_ACEOF | |
21114 | /* confdefs.h. */ | |
21115 | _ACEOF | |
21116 | cat confdefs.h >>conftest.$ac_ext | |
21117 | cat >>conftest.$ac_ext <<_ACEOF | |
21118 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
21119 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
21120 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21121 | #define $ac_func innocuous_$ac_func | |
21122 | ||
a848cd7e SC |
21123 | /* System header to define __stub macros and hopefully few prototypes, |
21124 | which can conflict with char $ac_func (); below. | |
21125 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21126 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 21127 | |
a848cd7e SC |
21128 | #ifdef __STDC__ |
21129 | # include <limits.h> | |
21130 | #else | |
21131 | # include <assert.h> | |
21132 | #endif | |
ac1cb8d3 VS |
21133 | |
21134 | #undef $ac_func | |
21135 | ||
a848cd7e SC |
21136 | /* Override any gcc2 internal prototype to avoid an error. */ |
21137 | #ifdef __cplusplus | |
21138 | extern "C" | |
21139 | { | |
21140 | #endif | |
21141 | /* We use char because int might match the return type of a gcc2 | |
21142 | builtin and then its argument prototype would still apply. */ | |
21143 | char $ac_func (); | |
21144 | /* The GNU C library defines this for functions which it implements | |
21145 | to always fail with ENOSYS. Some functions are actually named | |
21146 | something starting with __ and the normal name is an alias. */ | |
21147 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21148 | choke me | |
21149 | #else | |
21150 | char (*f) () = $ac_func; | |
21151 | #endif | |
21152 | #ifdef __cplusplus | |
21153 | } | |
21154 | #endif | |
21155 | ||
21156 | int | |
21157 | main () | |
21158 | { | |
21159 | return f != $ac_func; | |
21160 | ; | |
21161 | return 0; | |
21162 | } | |
21163 | _ACEOF | |
21164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21166 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21167 | ac_status=$? |
ac1cb8d3 VS |
21168 | grep -v '^ *+' conftest.er1 >conftest.err |
21169 | rm -f conftest.er1 | |
21170 | cat conftest.err >&5 | |
a848cd7e SC |
21171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21172 | (exit $ac_status); } && | |
89be85c2 VS |
21173 | { ac_try='test -z "$ac_c_werror_flag" |
21174 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21176 | (eval $ac_try) 2>&5 | |
21177 | ac_status=$? | |
21178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21179 | (exit $ac_status); }; } && | |
21180 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21182 | (eval $ac_try) 2>&5 | |
21183 | ac_status=$? | |
21184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21185 | (exit $ac_status); }; }; then | |
21186 | eval "$as_ac_var=yes" | |
21187 | else | |
21188 | echo "$as_me: failed program was:" >&5 | |
21189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21190 | ||
21191 | eval "$as_ac_var=no" | |
21192 | fi | |
ac1cb8d3 VS |
21193 | rm -f conftest.err conftest.$ac_objext \ |
21194 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21195 | fi |
21196 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
21197 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
21198 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
21199 | cat >>confdefs.h <<_ACEOF | |
21200 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21201 | _ACEOF | |
21202 | ||
21203 | fi | |
21204 | done | |
21205 | ||
21206 | fi | |
21207 | ||
21208 | ||
21209 | ||
21210 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
21211 | if test "$wxUSE_REGEX" = "sys" ; then | |
21212 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
21213 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
21214 | { (exit 1); exit 1; }; } | |
21215 | else | |
21216 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
21217 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21218 | wxUSE_REGEX=builtin | |
21219 | fi | |
21220 | else | |
21221 | wxUSE_REGEX=sys | |
21222 | cat >>confdefs.h <<\_ACEOF | |
21223 | #define WX_NO_REGEX_ADVANCED 1 | |
21224 | _ACEOF | |
21225 | ||
21226 | fi | |
21227 | fi | |
21228 | fi | |
21229 | ||
21230 | ||
21231 | ZLIB_LINK= | |
21232 | if test "$wxUSE_ZLIB" != "no" ; then | |
21233 | cat >>confdefs.h <<\_ACEOF | |
21234 | #define wxUSE_ZLIB 1 | |
21235 | _ACEOF | |
21236 | ||
21237 | ||
21238 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
21239 | if test "$USE_DARWIN" = 1; then | |
21240 | system_zlib_h_ok="yes" | |
21241 | else | |
21242 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
21243 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
21244 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21246 | else | |
21247 | if test "$cross_compiling" = yes; then | |
21248 | unset ac_cv_header_zlib_h | |
21249 | ||
21250 | else | |
21251 | cat >conftest.$ac_ext <<_ACEOF | |
21252 | /* confdefs.h. */ | |
21253 | _ACEOF | |
21254 | cat confdefs.h >>conftest.$ac_ext | |
21255 | cat >>conftest.$ac_ext <<_ACEOF | |
21256 | /* end confdefs.h. */ | |
21257 | ||
21258 | #include <zlib.h> | |
21259 | #include <stdio.h> | |
21260 | ||
21261 | int main() | |
21262 | { | |
21263 | FILE *f=fopen("conftestval", "w"); | |
21264 | if (!f) exit(1); | |
21265 | fprintf(f, "%s", | |
21266 | ZLIB_VERSION[0] == '1' && | |
21267 | (ZLIB_VERSION[2] > '1' || | |
21268 | (ZLIB_VERSION[2] == '1' && | |
21269 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
21270 | exit(0); | |
21271 | } | |
21272 | ||
21273 | _ACEOF | |
21274 | rm -f conftest$ac_exeext | |
21275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21276 | (eval $ac_link) 2>&5 | |
21277 | ac_status=$? | |
21278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21279 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21281 | (eval $ac_try) 2>&5 | |
21282 | ac_status=$? | |
21283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21284 | (exit $ac_status); }; }; then | |
21285 | ac_cv_header_zlib_h=`cat conftestval` | |
21286 | else | |
21287 | echo "$as_me: program exited with status $ac_status" >&5 | |
21288 | echo "$as_me: failed program was:" >&5 | |
21289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21290 | ||
21291 | ( exit $ac_status ) | |
21292 | ac_cv_header_zlib_h=no | |
21293 | fi | |
ac1cb8d3 | 21294 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21295 | fi |
21296 | ||
21297 | fi | |
21298 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21299 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21300 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21301 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
21302 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
21303 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21305 | fi | |
21306 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21307 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21308 | else | |
21309 | # Is the header compilable? | |
21310 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
21311 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
21312 | cat >conftest.$ac_ext <<_ACEOF | |
21313 | /* confdefs.h. */ | |
21314 | _ACEOF | |
21315 | cat confdefs.h >>conftest.$ac_ext | |
21316 | cat >>conftest.$ac_ext <<_ACEOF | |
21317 | /* end confdefs.h. */ | |
21318 | $ac_includes_default | |
21319 | #include <zlib.h> | |
21320 | _ACEOF | |
21321 | rm -f conftest.$ac_objext | |
21322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21323 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21324 | ac_status=$? |
ac1cb8d3 VS |
21325 | grep -v '^ *+' conftest.er1 >conftest.err |
21326 | rm -f conftest.er1 | |
21327 | cat conftest.err >&5 | |
a848cd7e SC |
21328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21329 | (exit $ac_status); } && | |
89be85c2 VS |
21330 | { ac_try='test -z "$ac_c_werror_flag" |
21331 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21333 | (eval $ac_try) 2>&5 | |
21334 | ac_status=$? | |
21335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21336 | (exit $ac_status); }; } && | |
21337 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21339 | (eval $ac_try) 2>&5 | |
21340 | ac_status=$? | |
21341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21342 | (exit $ac_status); }; }; then | |
21343 | ac_header_compiler=yes | |
21344 | else | |
21345 | echo "$as_me: failed program was:" >&5 | |
21346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21347 | ||
21348 | ac_header_compiler=no | |
21349 | fi | |
ac1cb8d3 | 21350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21351 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21352 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21353 | ||
21354 | # Is the header present? | |
21355 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
21356 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
21357 | cat >conftest.$ac_ext <<_ACEOF | |
21358 | /* confdefs.h. */ | |
21359 | _ACEOF | |
21360 | cat confdefs.h >>conftest.$ac_ext | |
21361 | cat >>conftest.$ac_ext <<_ACEOF | |
21362 | /* end confdefs.h. */ | |
21363 | #include <zlib.h> | |
21364 | _ACEOF | |
21365 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21366 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21367 | ac_status=$? | |
21368 | grep -v '^ *+' conftest.er1 >conftest.err | |
21369 | rm -f conftest.er1 | |
21370 | cat conftest.err >&5 | |
21371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21372 | (exit $ac_status); } >/dev/null; then | |
21373 | if test -s conftest.err; then | |
21374 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21375 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21376 | else |
21377 | ac_cpp_err= | |
21378 | fi | |
21379 | else | |
21380 | ac_cpp_err=yes | |
21381 | fi | |
21382 | if test -z "$ac_cpp_err"; then | |
21383 | ac_header_preproc=yes | |
21384 | else | |
21385 | echo "$as_me: failed program was:" >&5 | |
21386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21387 | ||
21388 | ac_header_preproc=no | |
21389 | fi | |
21390 | rm -f conftest.err conftest.$ac_ext | |
21391 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21392 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21393 | ||
21394 | # So? What about this header? | |
ac1cb8d3 VS |
21395 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21396 | yes:no: ) | |
a848cd7e SC |
21397 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21398 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21399 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
21400 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
21401 | ac_header_preproc=yes | |
a848cd7e | 21402 | ;; |
ac1cb8d3 | 21403 | no:yes:* ) |
a848cd7e SC |
21404 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
21405 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21406 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
21407 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
21408 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
21409 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
21410 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21411 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21412 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
21413 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21414 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
21415 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21416 | ( |
21417 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21418 | ## ----------------------------------------- ## |
21419 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21420 | ## ----------------------------------------- ## | |
a848cd7e SC |
21421 | _ASBOX |
21422 | ) | | |
21423 | sed "s/^/$as_me: WARNING: /" >&2 | |
21424 | ;; | |
21425 | esac | |
21426 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
21427 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
21428 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21430 | else | |
21431 | ac_cv_header_zlib_h=$ac_header_preproc | |
21432 | fi | |
21433 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21434 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21435 | ||
21436 | fi | |
21437 | ||
21438 | ||
21439 | ||
21440 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
21441 | fi | |
21442 | ||
21443 | if test "$system_zlib_h_ok" = "yes"; then | |
21444 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
21445 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
21446 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
21447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21448 | else | |
21449 | ac_check_lib_save_LIBS=$LIBS | |
21450 | LIBS="-lz $LIBS" | |
21451 | cat >conftest.$ac_ext <<_ACEOF | |
21452 | /* confdefs.h. */ | |
21453 | _ACEOF | |
21454 | cat confdefs.h >>conftest.$ac_ext | |
21455 | cat >>conftest.$ac_ext <<_ACEOF | |
21456 | /* end confdefs.h. */ | |
21457 | ||
21458 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21459 | #ifdef __cplusplus | |
21460 | extern "C" | |
21461 | #endif | |
21462 | /* We use char because int might match the return type of a gcc2 | |
21463 | builtin and then its argument prototype would still apply. */ | |
21464 | char deflate (); | |
21465 | int | |
21466 | main () | |
21467 | { | |
21468 | deflate (); | |
21469 | ; | |
21470 | return 0; | |
21471 | } | |
21472 | _ACEOF | |
21473 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21475 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21476 | ac_status=$? |
ac1cb8d3 VS |
21477 | grep -v '^ *+' conftest.er1 >conftest.err |
21478 | rm -f conftest.er1 | |
21479 | cat conftest.err >&5 | |
a848cd7e SC |
21480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21481 | (exit $ac_status); } && | |
89be85c2 VS |
21482 | { ac_try='test -z "$ac_c_werror_flag" |
21483 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21485 | (eval $ac_try) 2>&5 | |
21486 | ac_status=$? | |
21487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21488 | (exit $ac_status); }; } && | |
21489 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21491 | (eval $ac_try) 2>&5 | |
21492 | ac_status=$? | |
21493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21494 | (exit $ac_status); }; }; then | |
21495 | ac_cv_lib_z_deflate=yes | |
21496 | else | |
21497 | echo "$as_me: failed program was:" >&5 | |
21498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21499 | ||
21500 | ac_cv_lib_z_deflate=no | |
21501 | fi | |
ac1cb8d3 VS |
21502 | rm -f conftest.err conftest.$ac_objext \ |
21503 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21504 | LIBS=$ac_check_lib_save_LIBS |
21505 | fi | |
21506 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
21507 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
21508 | if test $ac_cv_lib_z_deflate = yes; then | |
21509 | ZLIB_LINK=" -lz" | |
21510 | fi | |
21511 | ||
21512 | fi | |
21513 | ||
21514 | if test "x$ZLIB_LINK" = "x" ; then | |
21515 | if test "$wxUSE_ZLIB" = "sys" ; then | |
21516 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
21517 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
21518 | { (exit 1); exit 1; }; } | |
21519 | else | |
21520 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
21521 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21522 | wxUSE_ZLIB=builtin | |
21523 | fi | |
21524 | else | |
21525 | wxUSE_ZLIB=sys | |
21526 | fi | |
21527 | fi | |
21528 | fi | |
21529 | ||
21530 | ||
21531 | PNG_LINK= | |
21532 | if test "$wxUSE_LIBPNG" != "no" ; then | |
21533 | cat >>confdefs.h <<\_ACEOF | |
21534 | #define wxUSE_LIBPNG 1 | |
21535 | _ACEOF | |
21536 | ||
21537 | ||
21538 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
21539 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
21540 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21541 | wxUSE_LIBPNG=sys | |
21542 | fi | |
21543 | ||
21544 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
21545 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
21546 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21547 | wxUSE_LIBPNG=builtin | |
21548 | fi | |
21549 | ||
21550 | if test "$wxUSE_MGL" != 1 ; then | |
21551 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
21552 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
21553 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
21554 | if test "${ac_cv_header_png_h+set}" = set; then | |
21555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21556 | else | |
21557 | if test "$cross_compiling" = yes; then | |
21558 | unset ac_cv_header_png_h | |
21559 | ||
21560 | else | |
21561 | cat >conftest.$ac_ext <<_ACEOF | |
21562 | /* confdefs.h. */ | |
21563 | _ACEOF | |
21564 | cat confdefs.h >>conftest.$ac_ext | |
21565 | cat >>conftest.$ac_ext <<_ACEOF | |
21566 | /* end confdefs.h. */ | |
21567 | ||
21568 | #include <png.h> | |
21569 | #include <stdio.h> | |
21570 | ||
21571 | int main() | |
21572 | { | |
21573 | FILE *f=fopen("conftestval", "w"); | |
21574 | if (!f) exit(1); | |
21575 | fprintf(f, "%s", | |
21576 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
21577 | exit(0); | |
21578 | } | |
21579 | ||
21580 | _ACEOF | |
21581 | rm -f conftest$ac_exeext | |
21582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21583 | (eval $ac_link) 2>&5 | |
21584 | ac_status=$? | |
21585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21586 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21588 | (eval $ac_try) 2>&5 | |
21589 | ac_status=$? | |
21590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21591 | (exit $ac_status); }; }; then | |
21592 | ac_cv_header_png_h=`cat conftestval` | |
21593 | else | |
21594 | echo "$as_me: program exited with status $ac_status" >&5 | |
21595 | echo "$as_me: failed program was:" >&5 | |
21596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21597 | ||
21598 | ( exit $ac_status ) | |
21599 | ac_cv_header_png_h=no | |
21600 | fi | |
ac1cb8d3 | 21601 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21602 | fi |
21603 | ||
21604 | fi | |
21605 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21606 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21607 | if test "${ac_cv_header_png_h+set}" = set; then | |
21608 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21609 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21610 | if test "${ac_cv_header_png_h+set}" = set; then | |
21611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21612 | fi | |
21613 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21614 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21615 | else | |
21616 | # Is the header compilable? | |
21617 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
21618 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
21619 | cat >conftest.$ac_ext <<_ACEOF | |
21620 | /* confdefs.h. */ | |
21621 | _ACEOF | |
21622 | cat confdefs.h >>conftest.$ac_ext | |
21623 | cat >>conftest.$ac_ext <<_ACEOF | |
21624 | /* end confdefs.h. */ | |
21625 | $ac_includes_default | |
21626 | #include <png.h> | |
21627 | _ACEOF | |
21628 | rm -f conftest.$ac_objext | |
21629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21630 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21631 | ac_status=$? |
ac1cb8d3 VS |
21632 | grep -v '^ *+' conftest.er1 >conftest.err |
21633 | rm -f conftest.er1 | |
21634 | cat conftest.err >&5 | |
a848cd7e SC |
21635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21636 | (exit $ac_status); } && | |
89be85c2 VS |
21637 | { ac_try='test -z "$ac_c_werror_flag" |
21638 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21640 | (eval $ac_try) 2>&5 | |
21641 | ac_status=$? | |
21642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21643 | (exit $ac_status); }; } && | |
21644 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21646 | (eval $ac_try) 2>&5 | |
21647 | ac_status=$? | |
21648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21649 | (exit $ac_status); }; }; then | |
21650 | ac_header_compiler=yes | |
21651 | else | |
21652 | echo "$as_me: failed program was:" >&5 | |
21653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21654 | ||
21655 | ac_header_compiler=no | |
21656 | fi | |
ac1cb8d3 | 21657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21658 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21659 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21660 | ||
21661 | # Is the header present? | |
21662 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
21663 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
21664 | cat >conftest.$ac_ext <<_ACEOF | |
21665 | /* confdefs.h. */ | |
21666 | _ACEOF | |
21667 | cat confdefs.h >>conftest.$ac_ext | |
21668 | cat >>conftest.$ac_ext <<_ACEOF | |
21669 | /* end confdefs.h. */ | |
21670 | #include <png.h> | |
21671 | _ACEOF | |
21672 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21673 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21674 | ac_status=$? | |
21675 | grep -v '^ *+' conftest.er1 >conftest.err | |
21676 | rm -f conftest.er1 | |
21677 | cat conftest.err >&5 | |
21678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21679 | (exit $ac_status); } >/dev/null; then | |
21680 | if test -s conftest.err; then | |
21681 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21682 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21683 | else |
21684 | ac_cpp_err= | |
21685 | fi | |
21686 | else | |
21687 | ac_cpp_err=yes | |
21688 | fi | |
21689 | if test -z "$ac_cpp_err"; then | |
21690 | ac_header_preproc=yes | |
21691 | else | |
21692 | echo "$as_me: failed program was:" >&5 | |
21693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21694 | ||
21695 | ac_header_preproc=no | |
21696 | fi | |
21697 | rm -f conftest.err conftest.$ac_ext | |
21698 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21699 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21700 | ||
21701 | # So? What about this header? | |
ac1cb8d3 VS |
21702 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21703 | yes:no: ) | |
a848cd7e SC |
21704 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21705 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21706 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
21707 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
21708 | ac_header_preproc=yes | |
a848cd7e | 21709 | ;; |
ac1cb8d3 | 21710 | no:yes:* ) |
a848cd7e SC |
21711 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
21712 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21713 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
21714 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
21715 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
21716 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
21717 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21718 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21719 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
21720 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21721 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
21722 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21723 | ( |
21724 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21725 | ## ----------------------------------------- ## |
21726 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21727 | ## ----------------------------------------- ## | |
a848cd7e SC |
21728 | _ASBOX |
21729 | ) | | |
21730 | sed "s/^/$as_me: WARNING: /" >&2 | |
21731 | ;; | |
21732 | esac | |
21733 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21734 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21735 | if test "${ac_cv_header_png_h+set}" = set; then | |
21736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21737 | else | |
21738 | ac_cv_header_png_h=$ac_header_preproc | |
21739 | fi | |
21740 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21741 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21742 | ||
21743 | fi | |
21744 | ||
21745 | ||
21746 | ||
21747 | if test "$ac_cv_header_png_h" = "yes"; then | |
21748 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
21749 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
21750 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
21751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21752 | else | |
21753 | ac_check_lib_save_LIBS=$LIBS | |
21754 | LIBS="-lpng -lz -lm $LIBS" | |
21755 | cat >conftest.$ac_ext <<_ACEOF | |
21756 | /* confdefs.h. */ | |
21757 | _ACEOF | |
21758 | cat confdefs.h >>conftest.$ac_ext | |
21759 | cat >>conftest.$ac_ext <<_ACEOF | |
21760 | /* end confdefs.h. */ | |
21761 | ||
21762 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21763 | #ifdef __cplusplus | |
21764 | extern "C" | |
21765 | #endif | |
21766 | /* We use char because int might match the return type of a gcc2 | |
21767 | builtin and then its argument prototype would still apply. */ | |
21768 | char png_check_sig (); | |
21769 | int | |
21770 | main () | |
21771 | { | |
21772 | png_check_sig (); | |
21773 | ; | |
21774 | return 0; | |
21775 | } | |
21776 | _ACEOF | |
21777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21779 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21780 | ac_status=$? |
ac1cb8d3 VS |
21781 | grep -v '^ *+' conftest.er1 >conftest.err |
21782 | rm -f conftest.er1 | |
21783 | cat conftest.err >&5 | |
a848cd7e SC |
21784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21785 | (exit $ac_status); } && | |
89be85c2 VS |
21786 | { ac_try='test -z "$ac_c_werror_flag" |
21787 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21789 | (eval $ac_try) 2>&5 | |
21790 | ac_status=$? | |
21791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21792 | (exit $ac_status); }; } && | |
21793 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21795 | (eval $ac_try) 2>&5 | |
21796 | ac_status=$? | |
21797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21798 | (exit $ac_status); }; }; then | |
21799 | ac_cv_lib_png_png_check_sig=yes | |
21800 | else | |
21801 | echo "$as_me: failed program was:" >&5 | |
21802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21803 | ||
21804 | ac_cv_lib_png_png_check_sig=no | |
21805 | fi | |
ac1cb8d3 VS |
21806 | rm -f conftest.err conftest.$ac_objext \ |
21807 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21808 | LIBS=$ac_check_lib_save_LIBS |
21809 | fi | |
21810 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
21811 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
21812 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
21813 | PNG_LINK=" -lpng -lz" | |
21814 | fi | |
21815 | ||
21816 | fi | |
21817 | ||
21818 | if test "x$PNG_LINK" = "x" ; then | |
21819 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
21820 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
21821 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
21822 | { (exit 1); exit 1; }; } | |
21823 | else | |
21824 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
21825 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21826 | wxUSE_LIBPNG=builtin | |
21827 | fi | |
21828 | else | |
21829 | wxUSE_LIBPNG=sys | |
21830 | fi | |
21831 | fi | |
21832 | fi | |
21833 | ||
21834 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
21835 | fi | |
21836 | ||
21837 | ||
21838 | JPEG_LINK= | |
21839 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
21840 | cat >>confdefs.h <<\_ACEOF | |
21841 | #define wxUSE_LIBJPEG 1 | |
21842 | _ACEOF | |
21843 | ||
21844 | ||
21845 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
21846 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
21847 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21848 | wxUSE_LIBJPEG=sys | |
21849 | fi | |
21850 | ||
21851 | if test "$wxUSE_MGL" != 1 ; then | |
21852 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
21853 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
21854 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
21855 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
21856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21857 | else | |
21858 | cat >conftest.$ac_ext <<_ACEOF | |
21859 | /* confdefs.h. */ | |
21860 | _ACEOF | |
21861 | cat confdefs.h >>conftest.$ac_ext | |
21862 | cat >>conftest.$ac_ext <<_ACEOF | |
21863 | /* end confdefs.h. */ | |
21864 | ||
21865 | #undef HAVE_STDLIB_H | |
21866 | #include <stdio.h> | |
21867 | #include <jpeglib.h> | |
21868 | ||
21869 | int | |
21870 | main () | |
21871 | { | |
21872 | ||
21873 | ||
21874 | ; | |
21875 | return 0; | |
21876 | } | |
21877 | _ACEOF | |
21878 | rm -f conftest.$ac_objext | |
21879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21880 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21881 | ac_status=$? |
ac1cb8d3 VS |
21882 | grep -v '^ *+' conftest.er1 >conftest.err |
21883 | rm -f conftest.er1 | |
21884 | cat conftest.err >&5 | |
a848cd7e SC |
21885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21886 | (exit $ac_status); } && | |
89be85c2 VS |
21887 | { ac_try='test -z "$ac_c_werror_flag" |
21888 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21890 | (eval $ac_try) 2>&5 | |
21891 | ac_status=$? | |
21892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21893 | (exit $ac_status); }; } && | |
21894 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21896 | (eval $ac_try) 2>&5 | |
21897 | ac_status=$? | |
21898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21899 | (exit $ac_status); }; }; then | |
21900 | ac_cv_header_jpeglib_h=yes | |
21901 | else | |
21902 | echo "$as_me: failed program was:" >&5 | |
21903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21904 | ||
21905 | ac_cv_header_jpeglib_h=no | |
21906 | ||
21907 | fi | |
ac1cb8d3 | 21908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21909 | |
21910 | fi | |
21911 | ||
21912 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
21913 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
21914 | ||
21915 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
21916 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
21917 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
21918 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
21919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21920 | else | |
21921 | ac_check_lib_save_LIBS=$LIBS | |
21922 | LIBS="-ljpeg $LIBS" | |
21923 | cat >conftest.$ac_ext <<_ACEOF | |
21924 | /* confdefs.h. */ | |
21925 | _ACEOF | |
21926 | cat confdefs.h >>conftest.$ac_ext | |
21927 | cat >>conftest.$ac_ext <<_ACEOF | |
21928 | /* end confdefs.h. */ | |
21929 | ||
21930 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21931 | #ifdef __cplusplus | |
21932 | extern "C" | |
21933 | #endif | |
21934 | /* We use char because int might match the return type of a gcc2 | |
21935 | builtin and then its argument prototype would still apply. */ | |
21936 | char jpeg_read_header (); | |
21937 | int | |
21938 | main () | |
21939 | { | |
21940 | jpeg_read_header (); | |
21941 | ; | |
21942 | return 0; | |
21943 | } | |
21944 | _ACEOF | |
21945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21947 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21948 | ac_status=$? |
ac1cb8d3 VS |
21949 | grep -v '^ *+' conftest.er1 >conftest.err |
21950 | rm -f conftest.er1 | |
21951 | cat conftest.err >&5 | |
a848cd7e SC |
21952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21953 | (exit $ac_status); } && | |
89be85c2 VS |
21954 | { ac_try='test -z "$ac_c_werror_flag" |
21955 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21957 | (eval $ac_try) 2>&5 | |
21958 | ac_status=$? | |
21959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21960 | (exit $ac_status); }; } && | |
21961 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21963 | (eval $ac_try) 2>&5 | |
21964 | ac_status=$? | |
21965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21966 | (exit $ac_status); }; }; then | |
21967 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21968 | else | |
21969 | echo "$as_me: failed program was:" >&5 | |
21970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21971 | ||
21972 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21973 | fi | |
ac1cb8d3 VS |
21974 | rm -f conftest.err conftest.$ac_objext \ |
21975 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21976 | LIBS=$ac_check_lib_save_LIBS |
21977 | fi | |
21978 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21979 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21980 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21981 | JPEG_LINK=" -ljpeg" | |
21982 | fi | |
21983 | ||
21984 | fi | |
21985 | ||
21986 | if test "x$JPEG_LINK" = "x" ; then | |
21987 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21988 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21989 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21990 | { (exit 1); exit 1; }; } | |
21991 | else | |
21992 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21993 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21994 | wxUSE_LIBJPEG=builtin | |
21995 | fi | |
21996 | else | |
21997 | wxUSE_LIBJPEG=sys | |
21998 | fi | |
21999 | fi | |
22000 | fi | |
22001 | fi | |
22002 | ||
22003 | ||
22004 | TIFF_LINK= | |
22005 | TIFF_PREREQ_LINKS=-lm | |
22006 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
22007 | cat >>confdefs.h <<\_ACEOF | |
22008 | #define wxUSE_LIBTIFF 1 | |
22009 | _ACEOF | |
22010 | ||
22011 | ||
22012 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
22013 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
22014 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
22015 | fi | |
22016 | if test "$wxUSE_ZLIB" = "sys"; then | |
22017 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
22018 | fi | |
22019 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
22020 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
22021 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
22022 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
22023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22024 | fi | |
22025 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
22026 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
22027 | else | |
22028 | # Is the header compilable? | |
22029 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
22030 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
22031 | cat >conftest.$ac_ext <<_ACEOF | |
22032 | /* confdefs.h. */ | |
22033 | _ACEOF | |
22034 | cat confdefs.h >>conftest.$ac_ext | |
22035 | cat >>conftest.$ac_ext <<_ACEOF | |
22036 | /* end confdefs.h. */ | |
22037 | $ac_includes_default | |
22038 | #include <tiffio.h> | |
22039 | _ACEOF | |
22040 | rm -f conftest.$ac_objext | |
22041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22042 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22043 | ac_status=$? |
ac1cb8d3 VS |
22044 | grep -v '^ *+' conftest.er1 >conftest.err |
22045 | rm -f conftest.er1 | |
22046 | cat conftest.err >&5 | |
a848cd7e SC |
22047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22048 | (exit $ac_status); } && | |
89be85c2 VS |
22049 | { ac_try='test -z "$ac_c_werror_flag" |
22050 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22052 | (eval $ac_try) 2>&5 | |
22053 | ac_status=$? | |
22054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22055 | (exit $ac_status); }; } && | |
22056 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22058 | (eval $ac_try) 2>&5 | |
22059 | ac_status=$? | |
22060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22061 | (exit $ac_status); }; }; then | |
22062 | ac_header_compiler=yes | |
22063 | else | |
22064 | echo "$as_me: failed program was:" >&5 | |
22065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22066 | ||
22067 | ac_header_compiler=no | |
22068 | fi | |
ac1cb8d3 | 22069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22070 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22071 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22072 | ||
22073 | # Is the header present? | |
22074 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
22075 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
22076 | cat >conftest.$ac_ext <<_ACEOF | |
22077 | /* confdefs.h. */ | |
22078 | _ACEOF | |
22079 | cat confdefs.h >>conftest.$ac_ext | |
22080 | cat >>conftest.$ac_ext <<_ACEOF | |
22081 | /* end confdefs.h. */ | |
22082 | #include <tiffio.h> | |
22083 | _ACEOF | |
22084 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22085 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22086 | ac_status=$? | |
22087 | grep -v '^ *+' conftest.er1 >conftest.err | |
22088 | rm -f conftest.er1 | |
22089 | cat conftest.err >&5 | |
22090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22091 | (exit $ac_status); } >/dev/null; then | |
22092 | if test -s conftest.err; then | |
22093 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22094 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22095 | else |
22096 | ac_cpp_err= | |
22097 | fi | |
22098 | else | |
22099 | ac_cpp_err=yes | |
22100 | fi | |
22101 | if test -z "$ac_cpp_err"; then | |
22102 | ac_header_preproc=yes | |
22103 | else | |
22104 | echo "$as_me: failed program was:" >&5 | |
22105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22106 | ||
22107 | ac_header_preproc=no | |
22108 | fi | |
22109 | rm -f conftest.err conftest.$ac_ext | |
22110 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22111 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22112 | ||
22113 | # So? What about this header? | |
ac1cb8d3 VS |
22114 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22115 | yes:no: ) | |
a848cd7e SC |
22116 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22117 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22118 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
22119 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
22120 | ac_header_preproc=yes | |
a848cd7e | 22121 | ;; |
ac1cb8d3 | 22122 | no:yes:* ) |
a848cd7e SC |
22123 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
22124 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22125 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
22126 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
22127 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
22128 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
22129 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22130 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22131 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
22132 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22133 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
22134 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22135 | ( |
22136 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22137 | ## ----------------------------------------- ## |
22138 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22139 | ## ----------------------------------------- ## | |
a848cd7e SC |
22140 | _ASBOX |
22141 | ) | | |
22142 | sed "s/^/$as_me: WARNING: /" >&2 | |
22143 | ;; | |
22144 | esac | |
22145 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
22146 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
22147 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
22148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22149 | else | |
22150 | ac_cv_header_tiffio_h=$ac_header_preproc | |
22151 | fi | |
22152 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
22153 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
22154 | ||
22155 | fi | |
22156 | if test $ac_cv_header_tiffio_h = yes; then | |
22157 | ||
22158 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
22159 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
22160 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
22161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22162 | else | |
22163 | ac_check_lib_save_LIBS=$LIBS | |
22164 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
22165 | cat >conftest.$ac_ext <<_ACEOF | |
22166 | /* confdefs.h. */ | |
22167 | _ACEOF | |
22168 | cat confdefs.h >>conftest.$ac_ext | |
22169 | cat >>conftest.$ac_ext <<_ACEOF | |
22170 | /* end confdefs.h. */ | |
22171 | ||
22172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22173 | #ifdef __cplusplus | |
22174 | extern "C" | |
22175 | #endif | |
22176 | /* We use char because int might match the return type of a gcc2 | |
22177 | builtin and then its argument prototype would still apply. */ | |
22178 | char TIFFError (); | |
22179 | int | |
22180 | main () | |
22181 | { | |
22182 | TIFFError (); | |
22183 | ; | |
22184 | return 0; | |
22185 | } | |
22186 | _ACEOF | |
22187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22189 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22190 | ac_status=$? |
ac1cb8d3 VS |
22191 | grep -v '^ *+' conftest.er1 >conftest.err |
22192 | rm -f conftest.er1 | |
22193 | cat conftest.err >&5 | |
a848cd7e SC |
22194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22195 | (exit $ac_status); } && | |
89be85c2 VS |
22196 | { ac_try='test -z "$ac_c_werror_flag" |
22197 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22199 | (eval $ac_try) 2>&5 | |
22200 | ac_status=$? | |
22201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22202 | (exit $ac_status); }; } && | |
22203 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22205 | (eval $ac_try) 2>&5 | |
22206 | ac_status=$? | |
22207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22208 | (exit $ac_status); }; }; then | |
22209 | ac_cv_lib_tiff_TIFFError=yes | |
22210 | else | |
22211 | echo "$as_me: failed program was:" >&5 | |
22212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22213 | ||
22214 | ac_cv_lib_tiff_TIFFError=no | |
22215 | fi | |
ac1cb8d3 VS |
22216 | rm -f conftest.err conftest.$ac_objext \ |
22217 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22218 | LIBS=$ac_check_lib_save_LIBS |
22219 | fi | |
22220 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
22221 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
22222 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
22223 | TIFF_LINK=" -ltiff" | |
22224 | fi | |
22225 | ||
22226 | ||
22227 | ||
22228 | fi | |
22229 | ||
22230 | ||
22231 | ||
22232 | if test "x$TIFF_LINK" = "x" ; then | |
22233 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
22234 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
22235 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
22236 | { (exit 1); exit 1; }; } | |
22237 | else | |
22238 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
22239 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
22240 | wxUSE_LIBTIFF=builtin | |
22241 | fi | |
22242 | else | |
22243 | wxUSE_LIBTIFF=sys | |
22244 | fi | |
22245 | fi | |
22246 | fi | |
22247 | ||
22248 | ||
22249 | if test "$wxUSE_EXPAT" != "no"; then | |
22250 | wxUSE_XML=yes | |
22251 | cat >>confdefs.h <<\_ACEOF | |
22252 | #define wxUSE_EXPAT 1 | |
22253 | _ACEOF | |
22254 | ||
22255 | cat >>confdefs.h <<\_ACEOF | |
22256 | #define wxUSE_XML 1 | |
22257 | _ACEOF | |
22258 | ||
22259 | ||
22260 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
22261 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22262 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
22263 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
22264 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22266 | fi | |
22267 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
22268 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
22269 | else | |
22270 | # Is the header compilable? | |
22271 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
22272 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
22273 | cat >conftest.$ac_ext <<_ACEOF | |
22274 | /* confdefs.h. */ | |
22275 | _ACEOF | |
22276 | cat confdefs.h >>conftest.$ac_ext | |
22277 | cat >>conftest.$ac_ext <<_ACEOF | |
22278 | /* end confdefs.h. */ | |
22279 | $ac_includes_default | |
22280 | #include <expat.h> | |
22281 | _ACEOF | |
22282 | rm -f conftest.$ac_objext | |
22283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22284 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22285 | ac_status=$? |
ac1cb8d3 VS |
22286 | grep -v '^ *+' conftest.er1 >conftest.err |
22287 | rm -f conftest.er1 | |
22288 | cat conftest.err >&5 | |
a848cd7e SC |
22289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22290 | (exit $ac_status); } && | |
89be85c2 VS |
22291 | { ac_try='test -z "$ac_c_werror_flag" |
22292 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22294 | (eval $ac_try) 2>&5 | |
22295 | ac_status=$? | |
22296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22297 | (exit $ac_status); }; } && | |
22298 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22300 | (eval $ac_try) 2>&5 | |
22301 | ac_status=$? | |
22302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22303 | (exit $ac_status); }; }; then | |
22304 | ac_header_compiler=yes | |
22305 | else | |
22306 | echo "$as_me: failed program was:" >&5 | |
22307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22308 | ||
22309 | ac_header_compiler=no | |
22310 | fi | |
ac1cb8d3 | 22311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22312 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22313 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22314 | ||
22315 | # Is the header present? | |
22316 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
22317 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
22318 | cat >conftest.$ac_ext <<_ACEOF | |
22319 | /* confdefs.h. */ | |
22320 | _ACEOF | |
22321 | cat confdefs.h >>conftest.$ac_ext | |
22322 | cat >>conftest.$ac_ext <<_ACEOF | |
22323 | /* end confdefs.h. */ | |
22324 | #include <expat.h> | |
22325 | _ACEOF | |
22326 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22327 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22328 | ac_status=$? | |
22329 | grep -v '^ *+' conftest.er1 >conftest.err | |
22330 | rm -f conftest.er1 | |
22331 | cat conftest.err >&5 | |
22332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22333 | (exit $ac_status); } >/dev/null; then | |
22334 | if test -s conftest.err; then | |
22335 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22336 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22337 | else |
22338 | ac_cpp_err= | |
22339 | fi | |
22340 | else | |
22341 | ac_cpp_err=yes | |
22342 | fi | |
22343 | if test -z "$ac_cpp_err"; then | |
22344 | ac_header_preproc=yes | |
22345 | else | |
22346 | echo "$as_me: failed program was:" >&5 | |
22347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22348 | ||
22349 | ac_header_preproc=no | |
22350 | fi | |
22351 | rm -f conftest.err conftest.$ac_ext | |
22352 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22353 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22354 | ||
22355 | # So? What about this header? | |
ac1cb8d3 VS |
22356 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22357 | yes:no: ) | |
a848cd7e SC |
22358 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22359 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22360 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
22361 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
22362 | ac_header_preproc=yes | |
a848cd7e | 22363 | ;; |
ac1cb8d3 | 22364 | no:yes:* ) |
a848cd7e SC |
22365 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
22366 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22367 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
22368 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
22369 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
22370 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
22371 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22372 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22373 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
22374 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22375 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
22376 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22377 | ( |
22378 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22379 | ## ----------------------------------------- ## |
22380 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22381 | ## ----------------------------------------- ## | |
a848cd7e SC |
22382 | _ASBOX |
22383 | ) | | |
22384 | sed "s/^/$as_me: WARNING: /" >&2 | |
22385 | ;; | |
22386 | esac | |
22387 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
22388 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
22389 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22391 | else | |
22392 | ac_cv_header_expat_h=$ac_header_preproc | |
22393 | fi | |
22394 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
22395 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
22396 | ||
22397 | fi | |
22398 | if test $ac_cv_header_expat_h = yes; then | |
22399 | found_expat_h=1 | |
22400 | fi | |
22401 | ||
22402 | ||
22403 | if test "x$found_expat_h" = "x1"; then | |
22404 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
22405 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
22406 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
22407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22408 | else | |
22409 | ||
22410 | ||
22411 | ||
22412 | ac_ext=cc | |
22413 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22414 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22415 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22416 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22417 | ||
22418 | cat >conftest.$ac_ext <<_ACEOF | |
22419 | /* confdefs.h. */ | |
22420 | _ACEOF | |
22421 | cat confdefs.h >>conftest.$ac_ext | |
22422 | cat >>conftest.$ac_ext <<_ACEOF | |
22423 | /* end confdefs.h. */ | |
22424 | #include <expat.h> | |
22425 | int | |
22426 | main () | |
22427 | { | |
22428 | ||
22429 | ; | |
22430 | return 0; | |
22431 | } | |
22432 | _ACEOF | |
22433 | rm -f conftest.$ac_objext | |
22434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22435 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22436 | ac_status=$? |
ac1cb8d3 VS |
22437 | grep -v '^ *+' conftest.er1 >conftest.err |
22438 | rm -f conftest.er1 | |
22439 | cat conftest.err >&5 | |
a848cd7e SC |
22440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22441 | (exit $ac_status); } && | |
89be85c2 VS |
22442 | { ac_try='test -z "$ac_cxx_werror_flag" |
22443 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22445 | (eval $ac_try) 2>&5 | |
22446 | ac_status=$? | |
22447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22448 | (exit $ac_status); }; } && | |
22449 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22451 | (eval $ac_try) 2>&5 | |
22452 | ac_status=$? | |
22453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22454 | (exit $ac_status); }; }; then | |
22455 | wx_cv_expat_is_not_broken=yes | |
22456 | else | |
22457 | echo "$as_me: failed program was:" >&5 | |
22458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22459 | ||
22460 | wx_cv_expat_is_not_broken=no | |
22461 | ||
22462 | fi | |
ac1cb8d3 | 22463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22464 | ac_ext=c |
22465 | ac_cpp='$CPP $CPPFLAGS' | |
22466 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22467 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22468 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22469 | ||
22470 | ||
22471 | ||
22472 | fi | |
22473 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
22474 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
22475 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
22476 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
22477 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
22478 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
22479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22480 | else | |
22481 | ac_check_lib_save_LIBS=$LIBS | |
22482 | LIBS="-lexpat $LIBS" | |
22483 | cat >conftest.$ac_ext <<_ACEOF | |
22484 | /* confdefs.h. */ | |
22485 | _ACEOF | |
22486 | cat confdefs.h >>conftest.$ac_ext | |
22487 | cat >>conftest.$ac_ext <<_ACEOF | |
22488 | /* end confdefs.h. */ | |
22489 | ||
22490 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22491 | #ifdef __cplusplus | |
22492 | extern "C" | |
22493 | #endif | |
22494 | /* We use char because int might match the return type of a gcc2 | |
22495 | builtin and then its argument prototype would still apply. */ | |
22496 | char XML_ParserCreate (); | |
22497 | int | |
22498 | main () | |
22499 | { | |
22500 | XML_ParserCreate (); | |
22501 | ; | |
22502 | return 0; | |
22503 | } | |
22504 | _ACEOF | |
22505 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22506 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22507 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22508 | ac_status=$? |
ac1cb8d3 VS |
22509 | grep -v '^ *+' conftest.er1 >conftest.err |
22510 | rm -f conftest.er1 | |
22511 | cat conftest.err >&5 | |
a848cd7e SC |
22512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22513 | (exit $ac_status); } && | |
89be85c2 VS |
22514 | { ac_try='test -z "$ac_c_werror_flag" |
22515 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22517 | (eval $ac_try) 2>&5 | |
22518 | ac_status=$? | |
22519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22520 | (exit $ac_status); }; } && | |
22521 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22523 | (eval $ac_try) 2>&5 | |
22524 | ac_status=$? | |
22525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22526 | (exit $ac_status); }; }; then | |
22527 | ac_cv_lib_expat_XML_ParserCreate=yes | |
22528 | else | |
22529 | echo "$as_me: failed program was:" >&5 | |
22530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22531 | ||
22532 | ac_cv_lib_expat_XML_ParserCreate=no | |
22533 | fi | |
ac1cb8d3 VS |
22534 | rm -f conftest.err conftest.$ac_objext \ |
22535 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22536 | LIBS=$ac_check_lib_save_LIBS |
22537 | fi | |
22538 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
22539 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
22540 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
22541 | EXPAT_LINK=" -lexpat" | |
22542 | fi | |
22543 | ||
22544 | fi | |
22545 | fi | |
22546 | if test "x$EXPAT_LINK" = "x" ; then | |
22547 | if test "$wxUSE_EXPAT" = "sys" ; then | |
22548 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
22549 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
22550 | { (exit 1); exit 1; }; } | |
22551 | else | |
22552 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
22553 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
22554 | wxUSE_EXPAT=builtin | |
22555 | fi | |
22556 | else | |
22557 | wxUSE_EXPAT=sys | |
22558 | fi | |
22559 | fi | |
22560 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
22561 | ||
22562 | ||
22563 | subdirs="$subdirs src/expat" | |
22564 | ||
22565 | fi | |
22566 | fi | |
22567 | ||
22568 | ||
22569 | ||
22570 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
22571 | if test "${ac_cv_header_mspack_h+set}" = set; then |
22572 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22573 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22574 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22576 | fi | |
22577 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22578 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22579 | else | |
22580 | # Is the header compilable? | |
22581 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
22582 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
22583 | cat >conftest.$ac_ext <<_ACEOF | |
22584 | /* confdefs.h. */ | |
22585 | _ACEOF | |
22586 | cat confdefs.h >>conftest.$ac_ext | |
22587 | cat >>conftest.$ac_ext <<_ACEOF | |
22588 | /* end confdefs.h. */ | |
22589 | $ac_includes_default | |
22590 | #include <mspack.h> | |
22591 | _ACEOF | |
22592 | rm -f conftest.$ac_objext | |
22593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22594 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22595 | ac_status=$? |
ac1cb8d3 VS |
22596 | grep -v '^ *+' conftest.er1 >conftest.err |
22597 | rm -f conftest.er1 | |
22598 | cat conftest.err >&5 | |
a848cd7e SC |
22599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22600 | (exit $ac_status); } && | |
89be85c2 VS |
22601 | { ac_try='test -z "$ac_c_werror_flag" |
22602 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22604 | (eval $ac_try) 2>&5 | |
22605 | ac_status=$? | |
22606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22607 | (exit $ac_status); }; } && | |
22608 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22610 | (eval $ac_try) 2>&5 | |
22611 | ac_status=$? | |
22612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22613 | (exit $ac_status); }; }; then | |
22614 | ac_header_compiler=yes | |
22615 | else | |
22616 | echo "$as_me: failed program was:" >&5 | |
22617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22618 | ||
22619 | ac_header_compiler=no | |
22620 | fi | |
ac1cb8d3 | 22621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22622 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22623 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22624 | ||
22625 | # Is the header present? | |
22626 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
22627 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
22628 | cat >conftest.$ac_ext <<_ACEOF | |
22629 | /* confdefs.h. */ | |
22630 | _ACEOF | |
22631 | cat confdefs.h >>conftest.$ac_ext | |
22632 | cat >>conftest.$ac_ext <<_ACEOF | |
22633 | /* end confdefs.h. */ | |
22634 | #include <mspack.h> | |
22635 | _ACEOF | |
22636 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22637 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22638 | ac_status=$? | |
22639 | grep -v '^ *+' conftest.er1 >conftest.err | |
22640 | rm -f conftest.er1 | |
22641 | cat conftest.err >&5 | |
22642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22643 | (exit $ac_status); } >/dev/null; then | |
22644 | if test -s conftest.err; then | |
22645 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22646 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22647 | else |
22648 | ac_cpp_err= | |
22649 | fi | |
22650 | else | |
22651 | ac_cpp_err=yes | |
22652 | fi | |
22653 | if test -z "$ac_cpp_err"; then | |
22654 | ac_header_preproc=yes | |
22655 | else | |
22656 | echo "$as_me: failed program was:" >&5 | |
22657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22658 | ||
22659 | ac_header_preproc=no | |
22660 | fi | |
22661 | rm -f conftest.err conftest.$ac_ext | |
22662 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22663 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22664 | ||
22665 | # So? What about this header? | |
ac1cb8d3 VS |
22666 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22667 | yes:no: ) | |
a848cd7e SC |
22668 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22669 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22670 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
22671 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
22672 | ac_header_preproc=yes | |
a848cd7e | 22673 | ;; |
ac1cb8d3 | 22674 | no:yes:* ) |
a848cd7e SC |
22675 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
22676 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22677 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
22678 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
22679 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
22680 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
22681 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22682 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22683 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
22684 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22685 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
22686 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22687 | ( |
22688 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22689 | ## ----------------------------------------- ## |
22690 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22691 | ## ----------------------------------------- ## | |
a848cd7e SC |
22692 | _ASBOX |
22693 | ) | | |
22694 | sed "s/^/$as_me: WARNING: /" >&2 | |
22695 | ;; | |
22696 | esac | |
22697 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22698 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22699 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22701 | else | |
22702 | ac_cv_header_mspack_h=$ac_header_preproc | |
22703 | fi | |
22704 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22705 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22706 | ||
22707 | fi | |
22708 | if test $ac_cv_header_mspack_h = yes; then | |
22709 | found_mspack_h=1 | |
22710 | fi | |
22711 | ||
22712 | ||
22713 | if test "x$found_mspack_h" = "x1"; then | |
22714 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
22715 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
22716 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
22717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22718 | else | |
22719 | ac_check_lib_save_LIBS=$LIBS | |
22720 | LIBS="-lmspack $LIBS" | |
22721 | cat >conftest.$ac_ext <<_ACEOF | |
22722 | /* confdefs.h. */ | |
22723 | _ACEOF | |
22724 | cat confdefs.h >>conftest.$ac_ext | |
22725 | cat >>conftest.$ac_ext <<_ACEOF | |
22726 | /* end confdefs.h. */ | |
22727 | ||
22728 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22729 | #ifdef __cplusplus | |
22730 | extern "C" | |
22731 | #endif | |
22732 | /* We use char because int might match the return type of a gcc2 | |
22733 | builtin and then its argument prototype would still apply. */ | |
22734 | char mspack_create_chm_decompressor (); | |
22735 | int | |
22736 | main () | |
22737 | { | |
22738 | mspack_create_chm_decompressor (); | |
22739 | ; | |
22740 | return 0; | |
22741 | } | |
22742 | _ACEOF | |
22743 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22745 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22746 | ac_status=$? |
ac1cb8d3 VS |
22747 | grep -v '^ *+' conftest.er1 >conftest.err |
22748 | rm -f conftest.er1 | |
22749 | cat conftest.err >&5 | |
a848cd7e SC |
22750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22751 | (exit $ac_status); } && | |
89be85c2 VS |
22752 | { ac_try='test -z "$ac_c_werror_flag" |
22753 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22755 | (eval $ac_try) 2>&5 | |
22756 | ac_status=$? | |
22757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22758 | (exit $ac_status); }; } && | |
22759 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22761 | (eval $ac_try) 2>&5 | |
22762 | ac_status=$? | |
22763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22764 | (exit $ac_status); }; }; then | |
22765 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
22766 | else | |
22767 | echo "$as_me: failed program was:" >&5 | |
22768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22769 | ||
22770 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
22771 | fi | |
ac1cb8d3 VS |
22772 | rm -f conftest.err conftest.$ac_objext \ |
22773 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22774 | LIBS=$ac_check_lib_save_LIBS |
22775 | fi | |
22776 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
22777 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
22778 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
22779 | MSPACK_LINK=" -lmspack" | |
22780 | fi | |
22781 | ||
22782 | fi | |
22783 | if test "x$MSPACK_LINK" = "x" ; then | |
22784 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
22785 | fi |
22786 | fi | |
22787 | ||
22788 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
22789 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
22790 | #define wxUSE_LIBMSPACK 1 |
22791 | _ACEOF | |
22792 | ||
a848cd7e SC |
22793 | fi |
22794 | ||
22795 | ||
22796 | ||
22797 | AFMINSTALL= | |
22798 | WIN32INSTALL= | |
22799 | ||
22800 | TOOLKIT= | |
22801 | TOOLKIT_INCLUDE= | |
22802 | WIDGET_SET= | |
22803 | ||
22804 | if test "$USE_WIN32" = 1 ; then | |
22805 | ||
22806 | for ac_header in w32api.h | |
22807 | do | |
22808 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22809 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22810 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22811 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22812 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22814 | fi | |
22815 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22816 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22817 | else | |
22818 | # Is the header compilable? | |
22819 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22820 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22821 | cat >conftest.$ac_ext <<_ACEOF | |
22822 | /* confdefs.h. */ | |
22823 | _ACEOF | |
22824 | cat confdefs.h >>conftest.$ac_ext | |
22825 | cat >>conftest.$ac_ext <<_ACEOF | |
22826 | /* end confdefs.h. */ | |
22827 | $ac_includes_default | |
22828 | #include <$ac_header> | |
22829 | _ACEOF | |
22830 | rm -f conftest.$ac_objext | |
22831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22832 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22833 | ac_status=$? |
ac1cb8d3 VS |
22834 | grep -v '^ *+' conftest.er1 >conftest.err |
22835 | rm -f conftest.er1 | |
22836 | cat conftest.err >&5 | |
a848cd7e SC |
22837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22838 | (exit $ac_status); } && | |
89be85c2 VS |
22839 | { ac_try='test -z "$ac_c_werror_flag" |
22840 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22842 | (eval $ac_try) 2>&5 | |
22843 | ac_status=$? | |
22844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22845 | (exit $ac_status); }; } && | |
22846 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22848 | (eval $ac_try) 2>&5 | |
22849 | ac_status=$? | |
22850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22851 | (exit $ac_status); }; }; then | |
22852 | ac_header_compiler=yes | |
22853 | else | |
22854 | echo "$as_me: failed program was:" >&5 | |
22855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22856 | ||
22857 | ac_header_compiler=no | |
22858 | fi | |
ac1cb8d3 | 22859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22860 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22861 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22862 | ||
22863 | # Is the header present? | |
22864 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22865 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22866 | cat >conftest.$ac_ext <<_ACEOF | |
22867 | /* confdefs.h. */ | |
22868 | _ACEOF | |
22869 | cat confdefs.h >>conftest.$ac_ext | |
22870 | cat >>conftest.$ac_ext <<_ACEOF | |
22871 | /* end confdefs.h. */ | |
22872 | #include <$ac_header> | |
22873 | _ACEOF | |
22874 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22875 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22876 | ac_status=$? | |
22877 | grep -v '^ *+' conftest.er1 >conftest.err | |
22878 | rm -f conftest.er1 | |
22879 | cat conftest.err >&5 | |
22880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22881 | (exit $ac_status); } >/dev/null; then | |
22882 | if test -s conftest.err; then | |
22883 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22884 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22885 | else |
22886 | ac_cpp_err= | |
22887 | fi | |
22888 | else | |
22889 | ac_cpp_err=yes | |
22890 | fi | |
22891 | if test -z "$ac_cpp_err"; then | |
22892 | ac_header_preproc=yes | |
22893 | else | |
22894 | echo "$as_me: failed program was:" >&5 | |
22895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22896 | ||
22897 | ac_header_preproc=no | |
22898 | fi | |
22899 | rm -f conftest.err conftest.$ac_ext | |
22900 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22901 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22902 | ||
22903 | # So? What about this header? | |
ac1cb8d3 VS |
22904 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22905 | yes:no: ) | |
a848cd7e SC |
22906 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22907 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22909 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22910 | ac_header_preproc=yes | |
a848cd7e | 22911 | ;; |
ac1cb8d3 | 22912 | no:yes:* ) |
a848cd7e SC |
22913 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22914 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22915 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22916 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22917 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22918 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22919 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22920 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22921 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22922 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22923 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22924 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22925 | ( |
22926 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22927 | ## ----------------------------------------- ## |
22928 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22929 | ## ----------------------------------------- ## | |
a848cd7e SC |
22930 | _ASBOX |
22931 | ) | | |
22932 | sed "s/^/$as_me: WARNING: /" >&2 | |
22933 | ;; | |
22934 | esac | |
22935 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22936 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22937 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22939 | else | |
ac1cb8d3 | 22940 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22941 | fi |
22942 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22943 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22944 | ||
22945 | fi | |
22946 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22947 | cat >>confdefs.h <<_ACEOF | |
22948 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22949 | _ACEOF | |
22950 | ||
22951 | fi | |
22952 | ||
22953 | done | |
22954 | ||
22955 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22956 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22957 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22958 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22960 | fi | |
22961 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22962 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22963 | else | |
22964 | # Is the header compilable? | |
22965 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
22966 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
22967 | cat >conftest.$ac_ext <<_ACEOF | |
22968 | /* confdefs.h. */ | |
22969 | _ACEOF | |
22970 | cat confdefs.h >>conftest.$ac_ext | |
22971 | cat >>conftest.$ac_ext <<_ACEOF | |
22972 | /* end confdefs.h. */ | |
22973 | $ac_includes_default | |
22974 | #include <windows.h> | |
22975 | _ACEOF | |
22976 | rm -f conftest.$ac_objext | |
22977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22978 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22979 | ac_status=$? |
ac1cb8d3 VS |
22980 | grep -v '^ *+' conftest.er1 >conftest.err |
22981 | rm -f conftest.er1 | |
22982 | cat conftest.err >&5 | |
a848cd7e SC |
22983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22984 | (exit $ac_status); } && | |
89be85c2 VS |
22985 | { ac_try='test -z "$ac_c_werror_flag" |
22986 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22988 | (eval $ac_try) 2>&5 | |
22989 | ac_status=$? | |
22990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22991 | (exit $ac_status); }; } && | |
22992 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22994 | (eval $ac_try) 2>&5 | |
22995 | ac_status=$? | |
22996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22997 | (exit $ac_status); }; }; then | |
22998 | ac_header_compiler=yes | |
22999 | else | |
23000 | echo "$as_me: failed program was:" >&5 | |
23001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23002 | ||
23003 | ac_header_compiler=no | |
23004 | fi | |
ac1cb8d3 | 23005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23006 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23007 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23008 | ||
23009 | # Is the header present? | |
23010 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
23011 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
23012 | cat >conftest.$ac_ext <<_ACEOF | |
23013 | /* confdefs.h. */ | |
23014 | _ACEOF | |
23015 | cat confdefs.h >>conftest.$ac_ext | |
23016 | cat >>conftest.$ac_ext <<_ACEOF | |
23017 | /* end confdefs.h. */ | |
23018 | #include <windows.h> | |
23019 | _ACEOF | |
23020 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23021 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23022 | ac_status=$? | |
23023 | grep -v '^ *+' conftest.er1 >conftest.err | |
23024 | rm -f conftest.er1 | |
23025 | cat conftest.err >&5 | |
23026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23027 | (exit $ac_status); } >/dev/null; then | |
23028 | if test -s conftest.err; then | |
23029 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23030 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23031 | else |
23032 | ac_cpp_err= | |
23033 | fi | |
23034 | else | |
23035 | ac_cpp_err=yes | |
23036 | fi | |
23037 | if test -z "$ac_cpp_err"; then | |
23038 | ac_header_preproc=yes | |
23039 | else | |
23040 | echo "$as_me: failed program was:" >&5 | |
23041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23042 | ||
23043 | ac_header_preproc=no | |
23044 | fi | |
23045 | rm -f conftest.err conftest.$ac_ext | |
23046 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23047 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23048 | ||
23049 | # So? What about this header? | |
ac1cb8d3 VS |
23050 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23051 | yes:no: ) | |
a848cd7e SC |
23052 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23053 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23054 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
23055 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
23056 | ac_header_preproc=yes | |
a848cd7e | 23057 | ;; |
ac1cb8d3 | 23058 | no:yes:* ) |
a848cd7e SC |
23059 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
23060 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23061 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
23062 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
23063 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
23064 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
23065 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23066 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23067 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
23068 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23069 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
23070 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23071 | ( |
23072 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23073 | ## ----------------------------------------- ## |
23074 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23075 | ## ----------------------------------------- ## | |
a848cd7e SC |
23076 | _ASBOX |
23077 | ) | | |
23078 | sed "s/^/$as_me: WARNING: /" >&2 | |
23079 | ;; | |
23080 | esac | |
23081 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
23082 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
23083 | if test "${ac_cv_header_windows_h+set}" = set; then | |
23084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23085 | else | |
23086 | ac_cv_header_windows_h=$ac_header_preproc | |
23087 | fi | |
23088 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
23089 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
23090 | ||
23091 | fi | |
23092 | if test $ac_cv_header_windows_h = yes; then | |
23093 | : | |
23094 | else | |
23095 | ||
23096 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
23097 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
23098 | { (exit 1); exit 1; }; } | |
23099 | ||
23100 | fi | |
23101 | ||
23102 | ||
23103 | ||
23104 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
23105 | ||
23106 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
23107 | LIBS="$LIBS -loleacc" | |
23108 | fi | |
23109 | ||
23110 | case "${host}" in | |
23111 | *-*-cygwin* ) | |
23112 | LIBS="$LIBS -lkernel32 -luser32" | |
23113 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
23114 | esac | |
23115 | ||
23116 | if test "$wxUSE_ODBC" = "sys" ; then | |
23117 | wxUSE_ODBC = "yes" | |
23118 | fi | |
23119 | if test "$wxUSE_ODBC" = "yes" ; then | |
23120 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
23121 | cat >>confdefs.h <<\_ACEOF | |
23122 | #define wxUSE_ODBC 1 | |
23123 | _ACEOF | |
23124 | ||
23125 | fi | |
23126 | ||
23127 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
23128 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
23129 | ||
23130 | WIN32INSTALL=win32install | |
23131 | fi | |
23132 | ||
23133 | if test "$wxUSE_GUI" = "yes"; then | |
23134 | USE_GUI=1 | |
23135 | ||
23136 | GUI_TK_LIBRARY= | |
23137 | ||
23138 | WXGTK12= | |
23139 | WXGTK127= | |
23140 | WXGTK20= | |
23141 | WXGPE= | |
23142 | ||
207bc66c RN |
23143 | if test "$wxUSE_COCOA" = 1 ; then |
23144 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
23145 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
23146 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
23147 | wxUSE_PRINTING_ARCHITECTURE=no | |
23148 | fi | |
23149 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
23150 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
23151 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
23152 | wxUSE_DRAG_AND_DROP=no | |
23153 | fi | |
23154 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
23155 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
23156 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
23157 | wxUSE_DRAGIMAGE=no | |
23158 | fi | |
23159 | fi | |
23160 | ||
a848cd7e SC |
23161 | if test "$wxUSE_MSW" = 1 ; then |
23162 | TOOLKIT=MSW | |
23163 | GUIDIST=MSW_DIST | |
23164 | ||
ceec2216 | 23165 | case "${host}" in |
a848cd7e SC |
23166 | *-*-mingw32* ) |
23167 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
23168 | esac | |
23169 | fi | |
23170 | ||
23171 | if test "$wxUSE_GTK" = 1; then | |
23172 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
23173 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
23174 | ||
23175 | gtk_version_cached=1 | |
23176 | if test "${wx_cv_lib_gtk+set}" = set; then | |
23177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23178 | else | |
23179 | ||
23180 | gtk_version_cached=0 | |
23181 | echo "$as_me:$LINENO: result: " >&5 | |
23182 | echo "${ECHO_T}" >&6 | |
23183 | ||
23184 | GTK_MODULES= | |
23185 | if test "$wxUSE_THREADS" = "yes"; then | |
23186 | GTK_MODULES=gthread | |
23187 | fi | |
23188 | ||
23189 | wx_cv_lib_gtk= | |
23190 | if test "x$wxUSE_GTK2" = "xyes"; then | |
23191 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23192 | if test "${enable_gtktest+set}" = set; then | |
23193 | enableval="$enable_gtktest" | |
23194 | ||
23195 | else | |
23196 | enable_gtktest=yes | |
23197 | fi; | |
23198 | ||
23199 | pkg_config_args=gtk+-2.0 | |
23200 | for module in . $GTK_MODULES | |
23201 | do | |
23202 | case "$module" in | |
23203 | gthread) | |
23204 | pkg_config_args="$pkg_config_args gthread-2.0" | |
23205 | ;; | |
23206 | esac | |
23207 | done | |
23208 | ||
23209 | no_gtk="" | |
23210 | ||
23211 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23212 | set dummy pkg-config; ac_word=$2 | |
23213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23215 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23217 | else | |
23218 | case $PKG_CONFIG in | |
23219 | [\\/]* | ?:[\\/]*) | |
23220 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23221 | ;; | |
23222 | *) | |
23223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23224 | for as_dir in $PATH | |
23225 | do | |
23226 | IFS=$as_save_IFS | |
23227 | test -z "$as_dir" && as_dir=. | |
23228 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23229 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23230 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23232 | break 2 | |
23233 | fi | |
23234 | done | |
23235 | done | |
23236 | ||
23237 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23238 | ;; | |
23239 | esac | |
23240 | fi | |
23241 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23242 | ||
23243 | if test -n "$PKG_CONFIG"; then | |
23244 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23245 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23246 | else | |
23247 | echo "$as_me:$LINENO: result: no" >&5 | |
23248 | echo "${ECHO_T}no" >&6 | |
23249 | fi | |
23250 | ||
23251 | ||
23252 | if test x$PKG_CONFIG != xno ; then | |
23253 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
23254 | : | |
23255 | else | |
c2218763 | 23256 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
23257 | no_gtk=yes |
23258 | PKG_CONFIG=no | |
23259 | fi | |
23260 | else | |
23261 | no_gtk=yes | |
23262 | fi | |
23263 | ||
23264 | min_gtk_version=2.0.0 | |
23265 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
23266 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
23267 | ||
23268 | if test x$PKG_CONFIG != xno ; then | |
23269 | ## don't try to run the test against uninstalled libtool libs | |
23270 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
23271 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
23272 | enable_gtktest=no | |
23273 | fi | |
23274 | ||
23275 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
23276 | : | |
23277 | else | |
23278 | no_gtk=yes | |
23279 | fi | |
23280 | fi | |
23281 | ||
23282 | if test x"$no_gtk" = x ; then | |
23283 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
23284 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
23285 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23286 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23287 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23288 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23289 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23290 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23291 | if test "x$enable_gtktest" = "xyes" ; then | |
23292 | ac_save_CFLAGS="$CFLAGS" | |
23293 | ac_save_LIBS="$LIBS" | |
23294 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23295 | LIBS="$GTK_LIBS $LIBS" | |
23296 | rm -f conf.gtktest | |
23297 | if test "$cross_compiling" = yes; then | |
23298 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23299 | else | |
23300 | cat >conftest.$ac_ext <<_ACEOF | |
23301 | /* confdefs.h. */ | |
23302 | _ACEOF | |
23303 | cat confdefs.h >>conftest.$ac_ext | |
23304 | cat >>conftest.$ac_ext <<_ACEOF | |
23305 | /* end confdefs.h. */ | |
23306 | ||
23307 | #include <gtk/gtk.h> | |
23308 | #include <stdio.h> | |
23309 | #include <stdlib.h> | |
23310 | ||
23311 | int | |
23312 | main () | |
23313 | { | |
23314 | int major, minor, micro; | |
23315 | char *tmp_version; | |
23316 | ||
23317 | system ("touch conf.gtktest"); | |
23318 | ||
23319 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23320 | tmp_version = g_strdup("$min_gtk_version"); | |
23321 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23322 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23323 | exit(1); | |
23324 | } | |
23325 | ||
23326 | if ((gtk_major_version != $gtk_config_major_version) || | |
23327 | (gtk_minor_version != $gtk_config_minor_version) || | |
23328 | (gtk_micro_version != $gtk_config_micro_version)) | |
23329 | { | |
23330 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23331 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23332 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23333 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
23334 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23335 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23336 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23337 | printf("*** required on your system.\n"); | |
23338 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
23339 | printf("*** to point to the correct configuration files\n"); | |
23340 | } | |
23341 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23342 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23343 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23344 | { | |
23345 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23346 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23347 | printf("*** library (version %d.%d.%d)\n", | |
23348 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23349 | } | |
23350 | else | |
23351 | { | |
23352 | if ((gtk_major_version > major) || | |
23353 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23354 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23355 | { | |
23356 | return 0; | |
23357 | } | |
23358 | else | |
23359 | { | |
23360 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23361 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23362 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23363 | major, minor, micro); | |
23364 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23365 | printf("***\n"); | |
23366 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23367 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
23368 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23369 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
23370 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
23371 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23372 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23373 | } | |
23374 | } | |
23375 | return 1; | |
23376 | } | |
23377 | ||
23378 | _ACEOF | |
23379 | rm -f conftest$ac_exeext | |
23380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23381 | (eval $ac_link) 2>&5 | |
23382 | ac_status=$? | |
23383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23384 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23386 | (eval $ac_try) 2>&5 | |
23387 | ac_status=$? | |
23388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23389 | (exit $ac_status); }; }; then | |
23390 | : | |
23391 | else | |
23392 | echo "$as_me: program exited with status $ac_status" >&5 | |
23393 | echo "$as_me: failed program was:" >&5 | |
23394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23395 | ||
23396 | ( exit $ac_status ) | |
23397 | no_gtk=yes | |
23398 | fi | |
ac1cb8d3 | 23399 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23400 | fi |
23401 | CFLAGS="$ac_save_CFLAGS" | |
23402 | LIBS="$ac_save_LIBS" | |
23403 | fi | |
23404 | fi | |
23405 | if test "x$no_gtk" = x ; then | |
23406 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
23407 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
23408 | wx_cv_lib_gtk=2.0 | |
23409 | else | |
23410 | echo "$as_me:$LINENO: result: no" >&5 | |
23411 | echo "${ECHO_T}no" >&6 | |
23412 | if test "$PKG_CONFIG" = "no" ; then | |
23413 | echo "*** A new enough version of pkg-config was not found." | |
23414 | echo "*** See http://pkgconfig.sourceforge.net" | |
23415 | else | |
23416 | if test -f conf.gtktest ; then | |
23417 | : | |
23418 | else | |
23419 | echo "*** Could not run GTK+ test program, checking why..." | |
23420 | ac_save_CFLAGS="$CFLAGS" | |
23421 | ac_save_LIBS="$LIBS" | |
23422 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23423 | LIBS="$LIBS $GTK_LIBS" | |
23424 | cat >conftest.$ac_ext <<_ACEOF | |
23425 | /* confdefs.h. */ | |
23426 | _ACEOF | |
23427 | cat confdefs.h >>conftest.$ac_ext | |
23428 | cat >>conftest.$ac_ext <<_ACEOF | |
23429 | /* end confdefs.h. */ | |
23430 | ||
23431 | #include <gtk/gtk.h> | |
23432 | #include <stdio.h> | |
23433 | ||
23434 | int | |
23435 | main () | |
23436 | { | |
23437 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23438 | ; | |
23439 | return 0; | |
23440 | } | |
23441 | _ACEOF | |
23442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23444 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23445 | ac_status=$? |
ac1cb8d3 VS |
23446 | grep -v '^ *+' conftest.er1 >conftest.err |
23447 | rm -f conftest.er1 | |
23448 | cat conftest.err >&5 | |
a848cd7e SC |
23449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23450 | (exit $ac_status); } && | |
89be85c2 VS |
23451 | { ac_try='test -z "$ac_c_werror_flag" |
23452 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23454 | (eval $ac_try) 2>&5 | |
23455 | ac_status=$? | |
23456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23457 | (exit $ac_status); }; } && | |
23458 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23460 | (eval $ac_try) 2>&5 | |
23461 | ac_status=$? | |
23462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23463 | (exit $ac_status); }; }; then | |
23464 | echo "*** The test program compiled, but did not run. This usually means" | |
23465 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
23466 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
23467 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23468 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23469 | echo "*** is required on your system" | |
23470 | echo "***" | |
23471 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23472 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23473 | else | |
23474 | echo "$as_me: failed program was:" >&5 | |
23475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23476 | ||
23477 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23478 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
23479 | fi | |
ac1cb8d3 VS |
23480 | rm -f conftest.err conftest.$ac_objext \ |
23481 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23482 | CFLAGS="$ac_save_CFLAGS" |
23483 | LIBS="$ac_save_LIBS" | |
23484 | fi | |
23485 | fi | |
23486 | GTK_CFLAGS="" | |
23487 | GTK_LIBS="" | |
23488 | : | |
23489 | fi | |
23490 | ||
23491 | ||
23492 | rm -f conf.gtktest | |
23493 | ||
23494 | else | |
23495 | ||
23496 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23497 | if test "${with_gtk_prefix+set}" = set; then | |
23498 | withval="$with_gtk_prefix" | |
23499 | gtk_config_prefix="$withval" | |
23500 | else | |
23501 | gtk_config_prefix="" | |
23502 | fi; | |
23503 | ||
23504 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23505 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23506 | withval="$with_gtk_exec_prefix" | |
23507 | gtk_config_exec_prefix="$withval" | |
23508 | else | |
23509 | gtk_config_exec_prefix="" | |
23510 | fi; | |
23511 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23512 | if test "${enable_gtktest+set}" = set; then | |
23513 | enableval="$enable_gtktest" | |
23514 | ||
23515 | else | |
23516 | enable_gtktest=yes | |
23517 | fi; | |
23518 | ||
23519 | for module in . $GTK_MODULES | |
23520 | do | |
23521 | case "$module" in | |
23522 | gthread) | |
23523 | gtk_config_args="$gtk_config_args gthread" | |
23524 | ;; | |
23525 | esac | |
23526 | done | |
23527 | ||
23528 | if test x$gtk_config_exec_prefix != x ; then | |
23529 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23530 | if test x${GTK_CONFIG+set} != xset ; then | |
23531 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23532 | fi | |
23533 | fi | |
23534 | if test x$gtk_config_prefix != x ; then | |
23535 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23536 | if test x${GTK_CONFIG+set} != xset ; then | |
23537 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23538 | fi | |
23539 | fi | |
23540 | ||
23541 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23542 | set dummy gtk-config; ac_word=$2 | |
23543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23545 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23547 | else | |
23548 | case $GTK_CONFIG in | |
23549 | [\\/]* | ?:[\\/]*) | |
23550 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23551 | ;; | |
23552 | *) | |
23553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23554 | for as_dir in $PATH | |
23555 | do | |
23556 | IFS=$as_save_IFS | |
23557 | test -z "$as_dir" && as_dir=. | |
23558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23560 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23562 | break 2 | |
23563 | fi | |
23564 | done | |
23565 | done | |
23566 | ||
23567 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23568 | ;; | |
23569 | esac | |
23570 | fi | |
23571 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23572 | ||
23573 | if test -n "$GTK_CONFIG"; then | |
23574 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23575 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23576 | else | |
23577 | echo "$as_me:$LINENO: result: no" >&5 | |
23578 | echo "${ECHO_T}no" >&6 | |
23579 | fi | |
23580 | ||
23581 | min_gtk_version=1.2.7 | |
23582 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23583 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23584 | no_gtk="" | |
23585 | if test "$GTK_CONFIG" = "no" ; then | |
23586 | no_gtk=yes | |
23587 | else | |
23588 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23589 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23590 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23591 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23592 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23593 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23594 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23595 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23596 | if test "x$enable_gtktest" = "xyes" ; then | |
23597 | ac_save_CFLAGS="$CFLAGS" | |
23598 | ac_save_LIBS="$LIBS" | |
23599 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23600 | LIBS="$GTK_LIBS $LIBS" | |
23601 | rm -f conf.gtktest | |
23602 | if test "$cross_compiling" = yes; then | |
23603 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23604 | else | |
23605 | cat >conftest.$ac_ext <<_ACEOF | |
23606 | /* confdefs.h. */ | |
23607 | _ACEOF | |
23608 | cat confdefs.h >>conftest.$ac_ext | |
23609 | cat >>conftest.$ac_ext <<_ACEOF | |
23610 | /* end confdefs.h. */ | |
23611 | ||
23612 | #include <gtk/gtk.h> | |
23613 | #include <stdio.h> | |
23614 | #include <stdlib.h> | |
23615 | ||
23616 | int | |
23617 | main () | |
23618 | { | |
23619 | int major, minor, micro; | |
23620 | char *tmp_version; | |
23621 | ||
23622 | system ("touch conf.gtktest"); | |
23623 | ||
23624 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23625 | tmp_version = g_strdup("$min_gtk_version"); | |
23626 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23627 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23628 | exit(1); | |
23629 | } | |
23630 | ||
23631 | if ((gtk_major_version != $gtk_config_major_version) || | |
23632 | (gtk_minor_version != $gtk_config_minor_version) || | |
23633 | (gtk_micro_version != $gtk_config_micro_version)) | |
23634 | { | |
23635 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23636 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23637 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23638 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23639 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23640 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23641 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23642 | printf("*** required on your system.\n"); | |
23643 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23644 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23645 | printf("*** before re-running configure\n"); | |
23646 | } | |
23647 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23648 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23649 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23650 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23651 | { | |
23652 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23653 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23654 | printf("*** library (version %d.%d.%d)\n", | |
23655 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23656 | } | |
23657 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23658 | else | |
23659 | { | |
23660 | if ((gtk_major_version > major) || | |
23661 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23662 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23663 | { | |
23664 | return 0; | |
23665 | } | |
23666 | else | |
23667 | { | |
23668 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23669 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23670 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23671 | major, minor, micro); | |
23672 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23673 | printf("***\n"); | |
23674 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23675 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23676 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23677 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23678 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23679 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23680 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23681 | } | |
23682 | } | |
23683 | return 1; | |
23684 | } | |
23685 | ||
23686 | _ACEOF | |
23687 | rm -f conftest$ac_exeext | |
23688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23689 | (eval $ac_link) 2>&5 | |
23690 | ac_status=$? | |
23691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23692 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23694 | (eval $ac_try) 2>&5 | |
23695 | ac_status=$? | |
23696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23697 | (exit $ac_status); }; }; then | |
23698 | : | |
23699 | else | |
23700 | echo "$as_me: program exited with status $ac_status" >&5 | |
23701 | echo "$as_me: failed program was:" >&5 | |
23702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23703 | ||
23704 | ( exit $ac_status ) | |
23705 | no_gtk=yes | |
23706 | fi | |
ac1cb8d3 | 23707 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23708 | fi |
23709 | CFLAGS="$ac_save_CFLAGS" | |
23710 | LIBS="$ac_save_LIBS" | |
23711 | fi | |
23712 | fi | |
23713 | if test "x$no_gtk" = x ; then | |
23714 | echo "$as_me:$LINENO: result: yes" >&5 | |
23715 | echo "${ECHO_T}yes" >&6 | |
23716 | wx_cv_lib_gtk=1.2.7 | |
23717 | else | |
23718 | echo "$as_me:$LINENO: result: no" >&5 | |
23719 | echo "${ECHO_T}no" >&6 | |
23720 | if test "$GTK_CONFIG" = "no" ; then | |
23721 | echo "*** The gtk-config script installed by GTK could not be found" | |
23722 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23723 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23724 | echo "*** full path to gtk-config." | |
23725 | else | |
23726 | if test -f conf.gtktest ; then | |
23727 | : | |
23728 | else | |
23729 | echo "*** Could not run GTK test program, checking why..." | |
23730 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23731 | LIBS="$LIBS $GTK_LIBS" | |
23732 | cat >conftest.$ac_ext <<_ACEOF | |
23733 | /* confdefs.h. */ | |
23734 | _ACEOF | |
23735 | cat confdefs.h >>conftest.$ac_ext | |
23736 | cat >>conftest.$ac_ext <<_ACEOF | |
23737 | /* end confdefs.h. */ | |
23738 | ||
23739 | #include <gtk/gtk.h> | |
23740 | #include <stdio.h> | |
23741 | ||
23742 | int | |
23743 | main () | |
23744 | { | |
23745 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
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 | |
ac1cb8d3 | 23752 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23753 | ac_status=$? |
ac1cb8d3 VS |
23754 | grep -v '^ *+' conftest.er1 >conftest.err |
23755 | rm -f conftest.er1 | |
23756 | cat conftest.err >&5 | |
a848cd7e SC |
23757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23758 | (exit $ac_status); } && | |
89be85c2 VS |
23759 | { ac_try='test -z "$ac_c_werror_flag" |
23760 | || test ! -s conftest.err' | |
ac1cb8d3 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' | |
a848cd7e SC |
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 | echo "*** The test program compiled, but did not run. This usually means" | |
23773 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23774 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23775 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23776 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23777 | echo "*** is required on your system" | |
23778 | echo "***" | |
23779 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23780 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23781 | echo "***" | |
23782 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23783 | echo "*** came with the system with the command" | |
23784 | echo "***" | |
23785 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23786 | else | |
23787 | echo "$as_me: failed program was:" >&5 | |
23788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23789 | ||
23790 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23791 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23792 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23793 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23794 | fi | |
ac1cb8d3 VS |
23795 | rm -f conftest.err conftest.$ac_objext \ |
23796 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23797 | CFLAGS="$ac_save_CFLAGS" |
23798 | LIBS="$ac_save_LIBS" | |
23799 | fi | |
23800 | fi | |
23801 | GTK_CFLAGS="" | |
23802 | GTK_LIBS="" | |
23803 | : | |
23804 | fi | |
23805 | ||
23806 | ||
23807 | rm -f conf.gtktest | |
23808 | ||
23809 | ||
23810 | if test -z "$wx_cv_lib_gtk"; then | |
23811 | ||
23812 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23813 | if test "${with_gtk_prefix+set}" = set; then | |
23814 | withval="$with_gtk_prefix" | |
23815 | gtk_config_prefix="$withval" | |
23816 | else | |
23817 | gtk_config_prefix="" | |
23818 | fi; | |
23819 | ||
23820 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23821 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23822 | withval="$with_gtk_exec_prefix" | |
23823 | gtk_config_exec_prefix="$withval" | |
23824 | else | |
23825 | gtk_config_exec_prefix="" | |
23826 | fi; | |
23827 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23828 | if test "${enable_gtktest+set}" = set; then | |
23829 | enableval="$enable_gtktest" | |
23830 | ||
23831 | else | |
23832 | enable_gtktest=yes | |
23833 | fi; | |
23834 | ||
23835 | for module in . $GTK_MODULES | |
23836 | do | |
23837 | case "$module" in | |
23838 | gthread) | |
23839 | gtk_config_args="$gtk_config_args gthread" | |
23840 | ;; | |
23841 | esac | |
23842 | done | |
23843 | ||
23844 | if test x$gtk_config_exec_prefix != x ; then | |
23845 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23846 | if test x${GTK_CONFIG+set} != xset ; then | |
23847 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23848 | fi | |
23849 | fi | |
23850 | if test x$gtk_config_prefix != x ; then | |
23851 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23852 | if test x${GTK_CONFIG+set} != xset ; then | |
23853 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23854 | fi | |
23855 | fi | |
23856 | ||
23857 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23858 | set dummy gtk-config; ac_word=$2 | |
23859 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23861 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23863 | else | |
23864 | case $GTK_CONFIG in | |
23865 | [\\/]* | ?:[\\/]*) | |
23866 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23867 | ;; | |
23868 | *) | |
23869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23870 | for as_dir in $PATH | |
23871 | do | |
23872 | IFS=$as_save_IFS | |
23873 | test -z "$as_dir" && as_dir=. | |
23874 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23875 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23876 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23877 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23878 | break 2 | |
23879 | fi | |
23880 | done | |
23881 | done | |
23882 | ||
23883 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23884 | ;; | |
23885 | esac | |
23886 | fi | |
23887 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23888 | ||
23889 | if test -n "$GTK_CONFIG"; then | |
23890 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23891 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23892 | else | |
23893 | echo "$as_me:$LINENO: result: no" >&5 | |
23894 | echo "${ECHO_T}no" >&6 | |
23895 | fi | |
23896 | ||
23897 | min_gtk_version=1.2.3 | |
23898 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23899 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23900 | no_gtk="" | |
23901 | if test "$GTK_CONFIG" = "no" ; then | |
23902 | no_gtk=yes | |
23903 | else | |
23904 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23905 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23906 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23907 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23908 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23909 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23910 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23911 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23912 | if test "x$enable_gtktest" = "xyes" ; then | |
23913 | ac_save_CFLAGS="$CFLAGS" | |
23914 | ac_save_LIBS="$LIBS" | |
23915 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23916 | LIBS="$GTK_LIBS $LIBS" | |
23917 | rm -f conf.gtktest | |
23918 | if test "$cross_compiling" = yes; then | |
23919 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23920 | else | |
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 | #include <gtk/gtk.h> | |
23929 | #include <stdio.h> | |
23930 | #include <stdlib.h> | |
23931 | ||
23932 | int | |
23933 | main () | |
23934 | { | |
23935 | int major, minor, micro; | |
23936 | char *tmp_version; | |
23937 | ||
23938 | system ("touch conf.gtktest"); | |
23939 | ||
23940 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23941 | tmp_version = g_strdup("$min_gtk_version"); | |
23942 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23943 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23944 | exit(1); | |
23945 | } | |
23946 | ||
23947 | if ((gtk_major_version != $gtk_config_major_version) || | |
23948 | (gtk_minor_version != $gtk_config_minor_version) || | |
23949 | (gtk_micro_version != $gtk_config_micro_version)) | |
23950 | { | |
23951 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23952 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23953 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23954 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23955 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23956 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23957 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23958 | printf("*** required on your system.\n"); | |
23959 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23960 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23961 | printf("*** before re-running configure\n"); | |
23962 | } | |
23963 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23964 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23965 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23966 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23967 | { | |
23968 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23969 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23970 | printf("*** library (version %d.%d.%d)\n", | |
23971 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23972 | } | |
23973 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23974 | else | |
23975 | { | |
23976 | if ((gtk_major_version > major) || | |
23977 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23978 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23979 | { | |
23980 | return 0; | |
23981 | } | |
23982 | else | |
23983 | { | |
23984 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23985 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23986 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23987 | major, minor, micro); | |
23988 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23989 | printf("***\n"); | |
23990 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23991 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23992 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23993 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23994 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23995 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23996 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23997 | } | |
23998 | } | |
23999 | return 1; | |
24000 | } | |
24001 | ||
24002 | _ACEOF | |
24003 | rm -f conftest$ac_exeext | |
24004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24005 | (eval $ac_link) 2>&5 | |
24006 | ac_status=$? | |
24007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24008 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24010 | (eval $ac_try) 2>&5 | |
24011 | ac_status=$? | |
24012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24013 | (exit $ac_status); }; }; then | |
24014 | : | |
24015 | else | |
24016 | echo "$as_me: program exited with status $ac_status" >&5 | |
24017 | echo "$as_me: failed program was:" >&5 | |
24018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24019 | ||
24020 | ( exit $ac_status ) | |
24021 | no_gtk=yes | |
24022 | fi | |
ac1cb8d3 | 24023 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24024 | fi |
24025 | CFLAGS="$ac_save_CFLAGS" | |
24026 | LIBS="$ac_save_LIBS" | |
24027 | fi | |
24028 | fi | |
24029 | if test "x$no_gtk" = x ; then | |
24030 | echo "$as_me:$LINENO: result: yes" >&5 | |
24031 | echo "${ECHO_T}yes" >&6 | |
24032 | wx_cv_lib_gtk=1.2.3 | |
24033 | else | |
24034 | echo "$as_me:$LINENO: result: no" >&5 | |
24035 | echo "${ECHO_T}no" >&6 | |
24036 | if test "$GTK_CONFIG" = "no" ; then | |
24037 | echo "*** The gtk-config script installed by GTK could not be found" | |
24038 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
24039 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
24040 | echo "*** full path to gtk-config." | |
24041 | else | |
24042 | if test -f conf.gtktest ; then | |
24043 | : | |
24044 | else | |
24045 | echo "*** Could not run GTK test program, checking why..." | |
24046 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24047 | LIBS="$LIBS $GTK_LIBS" | |
24048 | cat >conftest.$ac_ext <<_ACEOF | |
24049 | /* confdefs.h. */ | |
24050 | _ACEOF | |
24051 | cat confdefs.h >>conftest.$ac_ext | |
24052 | cat >>conftest.$ac_ext <<_ACEOF | |
24053 | /* end confdefs.h. */ | |
24054 | ||
24055 | #include <gtk/gtk.h> | |
24056 | #include <stdio.h> | |
24057 | ||
24058 | int | |
24059 | main () | |
24060 | { | |
24061 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24062 | ; | |
24063 | return 0; | |
24064 | } | |
24065 | _ACEOF | |
24066 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24068 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24069 | ac_status=$? |
ac1cb8d3 VS |
24070 | grep -v '^ *+' conftest.er1 >conftest.err |
24071 | rm -f conftest.er1 | |
24072 | cat conftest.err >&5 | |
a848cd7e SC |
24073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24074 | (exit $ac_status); } && | |
89be85c2 VS |
24075 | { ac_try='test -z "$ac_c_werror_flag" |
24076 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24078 | (eval $ac_try) 2>&5 | |
24079 | ac_status=$? | |
24080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24081 | (exit $ac_status); }; } && | |
24082 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24084 | (eval $ac_try) 2>&5 | |
24085 | ac_status=$? | |
24086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24087 | (exit $ac_status); }; }; then | |
24088 | echo "*** The test program compiled, but did not run. This usually means" | |
24089 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
24090 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
24091 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24092 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24093 | echo "*** is required on your system" | |
24094 | echo "***" | |
24095 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24096 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24097 | echo "***" | |
24098 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
24099 | echo "*** came with the system with the command" | |
24100 | echo "***" | |
24101 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
24102 | else | |
24103 | echo "$as_me: failed program was:" >&5 | |
24104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24105 | ||
24106 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24107 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
24108 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
24109 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
24110 | fi | |
ac1cb8d3 VS |
24111 | rm -f conftest.err conftest.$ac_objext \ |
24112 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24113 | CFLAGS="$ac_save_CFLAGS" |
24114 | LIBS="$ac_save_LIBS" | |
24115 | fi | |
24116 | fi | |
24117 | GTK_CFLAGS="" | |
24118 | GTK_LIBS="" | |
24119 | : | |
24120 | fi | |
24121 | ||
24122 | ||
24123 | rm -f conf.gtktest | |
24124 | ||
24125 | fi | |
24126 | fi | |
24127 | ||
24128 | if test -z "$wx_cv_lib_gtk"; then | |
24129 | wx_cv_lib_gtk=none | |
24130 | else | |
24131 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
24132 | wx_cv_libs_gtk=$GTK_LIBS | |
24133 | fi | |
24134 | ||
24135 | ||
24136 | fi | |
24137 | ||
24138 | ||
24139 | if test "$gtk_version_cached" = 1; then | |
24140 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
24141 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
24142 | fi | |
24143 | ||
24144 | case "$wx_cv_lib_gtk" in | |
24145 | 2.0) WXGTK20=1 | |
24146 | TOOLKIT_VERSION=2 | |
24147 | ;; | |
24148 | 1.2.7) WXGTK127=1 | |
24149 | WXGTK12=1 | |
24150 | ;; | |
24151 | 1.2.3) WXGTK12=1 | |
24152 | ;; | |
24153 | *) { { echo "$as_me:$LINENO: error: | |
24154 | Please check that gtk-config is in path, the directory | |
24155 | where GTK+ libraries are installed (returned by | |
24156 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
24157 | equivalent variable and GTK+ is version 1.2.3 or above. | |
24158 | " >&5 | |
24159 | echo "$as_me: error: | |
24160 | Please check that gtk-config is in path, the directory | |
24161 | where GTK+ libraries are installed (returned by | |
24162 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
24163 | equivalent variable and GTK+ is version 1.2.3 or above. | |
24164 | " >&2;} | |
24165 | { (exit 1); exit 1; }; } | |
24166 | ;; | |
24167 | esac | |
24168 | ||
24169 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
24170 | save_CFLAGS="$CFLAGS" |
24171 | save_LIBS="$LIBS" | |
24172 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24173 | LIBS="$LIBS $GTK_LIBS" | |
24174 | ||
9755e73b | 24175 | |
304205f1 VS |
24176 | for ac_func in pango_font_family_is_monospace |
24177 | do | |
24178 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24179 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24180 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24181 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24183 | else | |
24184 | cat >conftest.$ac_ext <<_ACEOF | |
24185 | /* confdefs.h. */ | |
24186 | _ACEOF | |
24187 | cat confdefs.h >>conftest.$ac_ext | |
24188 | cat >>conftest.$ac_ext <<_ACEOF | |
24189 | /* end confdefs.h. */ | |
24190 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24191 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24192 | #define $ac_func innocuous_$ac_func | |
24193 | ||
24194 | /* System header to define __stub macros and hopefully few prototypes, | |
24195 | which can conflict with char $ac_func (); below. | |
24196 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24197 | <limits.h> exists even on freestanding compilers. */ | |
24198 | ||
24199 | #ifdef __STDC__ | |
24200 | # include <limits.h> | |
24201 | #else | |
24202 | # include <assert.h> | |
24203 | #endif | |
24204 | ||
24205 | #undef $ac_func | |
24206 | ||
24207 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24208 | #ifdef __cplusplus | |
24209 | extern "C" | |
24210 | { | |
24211 | #endif | |
24212 | /* We use char because int might match the return type of a gcc2 | |
24213 | builtin and then its argument prototype would still apply. */ | |
24214 | char $ac_func (); | |
24215 | /* The GNU C library defines this for functions which it implements | |
24216 | to always fail with ENOSYS. Some functions are actually named | |
24217 | something starting with __ and the normal name is an alias. */ | |
24218 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24219 | choke me | |
24220 | #else | |
24221 | char (*f) () = $ac_func; | |
24222 | #endif | |
24223 | #ifdef __cplusplus | |
24224 | } | |
24225 | #endif | |
24226 | ||
24227 | int | |
24228 | main () | |
24229 | { | |
24230 | return f != $ac_func; | |
24231 | ; | |
24232 | return 0; | |
24233 | } | |
24234 | _ACEOF | |
24235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24237 | (eval $ac_link) 2>conftest.er1 | |
24238 | ac_status=$? | |
24239 | grep -v '^ *+' conftest.er1 >conftest.err | |
24240 | rm -f conftest.er1 | |
24241 | cat conftest.err >&5 | |
24242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24243 | (exit $ac_status); } && | |
89be85c2 VS |
24244 | { ac_try='test -z "$ac_c_werror_flag" |
24245 | || test ! -s conftest.err' | |
304205f1 VS |
24246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24247 | (eval $ac_try) 2>&5 | |
24248 | ac_status=$? | |
24249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24250 | (exit $ac_status); }; } && | |
24251 | { ac_try='test -s conftest$ac_exeext' | |
24252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24253 | (eval $ac_try) 2>&5 | |
24254 | ac_status=$? | |
24255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24256 | (exit $ac_status); }; }; then | |
24257 | eval "$as_ac_var=yes" | |
24258 | else | |
24259 | echo "$as_me: failed program was:" >&5 | |
24260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24261 | ||
24262 | eval "$as_ac_var=no" | |
24263 | fi | |
24264 | rm -f conftest.err conftest.$ac_objext \ | |
24265 | conftest$ac_exeext conftest.$ac_ext | |
24266 | fi | |
24267 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24268 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24269 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24270 | cat >>confdefs.h <<_ACEOF | |
24271 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24272 | _ACEOF | |
24273 | ||
24274 | fi | |
24275 | done | |
24276 | ||
9755e73b VS |
24277 | |
24278 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 | |
24279 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
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 | ||
24287 | #include <gtk/gtk.h> | |
24288 | ||
24289 | int | |
24290 | main () | |
24291 | { | |
24292 | ||
24293 | #if !GTK_CHECK_VERSION(2,4,0) | |
24294 | #error "Not GTK+ 2.4" | |
24295 | #endif | |
24296 | ||
24297 | ; | |
24298 | return 0; | |
24299 | } | |
24300 | _ACEOF | |
24301 | rm -f conftest.$ac_objext | |
24302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24303 | (eval $ac_compile) 2>conftest.er1 | |
24304 | ac_status=$? | |
24305 | grep -v '^ *+' conftest.er1 >conftest.err | |
24306 | rm -f conftest.er1 | |
24307 | cat conftest.err >&5 | |
24308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24309 | (exit $ac_status); } && | |
89be85c2 VS |
24310 | { ac_try='test -z "$ac_c_werror_flag" |
24311 | || test ! -s conftest.err' | |
9755e73b VS |
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); }; } && | |
24317 | { ac_try='test -s conftest.$ac_objext' | |
24318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24319 | (eval $ac_try) 2>&5 | |
24320 | ac_status=$? | |
24321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24322 | (exit $ac_status); }; }; then | |
24323 | ||
24324 | cat >>confdefs.h <<\_ACEOF | |
24325 | #define __WXGTK24__ 1 | |
24326 | _ACEOF | |
24327 | ||
24328 | echo "$as_me:$LINENO: result: yes" >&5 | |
24329 | echo "${ECHO_T}yes" >&6 | |
24330 | ||
24331 | else | |
24332 | echo "$as_me: failed program was:" >&5 | |
24333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24334 | ||
24335 | ||
24336 | echo "$as_me:$LINENO: result: no" >&5 | |
24337 | echo "${ECHO_T}no" >&6 | |
24338 | ||
24339 | fi | |
24340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24341 | ||
304205f1 VS |
24342 | CFLAGS="$save_CFLAGS" |
24343 | LIBS="$save_LIBS" | |
a848cd7e SC |
24344 | else |
24345 | if test "$wxUSE_UNICODE" = "yes"; then | |
24346 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
24347 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
24348 | wxUSE_UNICODE=no | |
24349 | fi | |
24350 | fi | |
24351 | ||
24352 | if test "$USE_DARWIN" != 1; then | |
24353 | ||
24354 | for ac_func in poll | |
24355 | do | |
24356 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24357 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24358 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24359 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24361 | else | |
24362 | cat >conftest.$ac_ext <<_ACEOF | |
24363 | /* confdefs.h. */ | |
24364 | _ACEOF | |
24365 | cat confdefs.h >>conftest.$ac_ext | |
24366 | cat >>conftest.$ac_ext <<_ACEOF | |
24367 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24368 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24369 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24370 | #define $ac_func innocuous_$ac_func | |
24371 | ||
a848cd7e SC |
24372 | /* System header to define __stub macros and hopefully few prototypes, |
24373 | which can conflict with char $ac_func (); below. | |
24374 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24375 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24376 | |
a848cd7e SC |
24377 | #ifdef __STDC__ |
24378 | # include <limits.h> | |
24379 | #else | |
24380 | # include <assert.h> | |
24381 | #endif | |
ac1cb8d3 VS |
24382 | |
24383 | #undef $ac_func | |
24384 | ||
a848cd7e SC |
24385 | /* Override any gcc2 internal prototype to avoid an error. */ |
24386 | #ifdef __cplusplus | |
24387 | extern "C" | |
24388 | { | |
24389 | #endif | |
24390 | /* We use char because int might match the return type of a gcc2 | |
24391 | builtin and then its argument prototype would still apply. */ | |
24392 | char $ac_func (); | |
24393 | /* The GNU C library defines this for functions which it implements | |
24394 | to always fail with ENOSYS. Some functions are actually named | |
24395 | something starting with __ and the normal name is an alias. */ | |
24396 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24397 | choke me | |
24398 | #else | |
24399 | char (*f) () = $ac_func; | |
24400 | #endif | |
24401 | #ifdef __cplusplus | |
24402 | } | |
24403 | #endif | |
24404 | ||
24405 | int | |
24406 | main () | |
24407 | { | |
24408 | return f != $ac_func; | |
24409 | ; | |
24410 | return 0; | |
24411 | } | |
24412 | _ACEOF | |
24413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24415 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24416 | ac_status=$? |
ac1cb8d3 VS |
24417 | grep -v '^ *+' conftest.er1 >conftest.err |
24418 | rm -f conftest.er1 | |
24419 | cat conftest.err >&5 | |
a848cd7e SC |
24420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24421 | (exit $ac_status); } && | |
89be85c2 VS |
24422 | { ac_try='test -z "$ac_c_werror_flag" |
24423 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
24429 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24431 | (eval $ac_try) 2>&5 | |
24432 | ac_status=$? | |
24433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24434 | (exit $ac_status); }; }; then | |
24435 | eval "$as_ac_var=yes" | |
24436 | else | |
24437 | echo "$as_me: failed program was:" >&5 | |
24438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24439 | ||
24440 | eval "$as_ac_var=no" | |
24441 | fi | |
ac1cb8d3 VS |
24442 | rm -f conftest.err conftest.$ac_objext \ |
24443 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24444 | fi |
24445 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24446 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24447 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24448 | cat >>confdefs.h <<_ACEOF | |
24449 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24450 | _ACEOF | |
24451 | ||
24452 | fi | |
24453 | done | |
24454 | ||
24455 | fi | |
24456 | ||
24457 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
24458 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
24459 | ||
24460 | AFMINSTALL=afminstall | |
24461 | TOOLKIT=GTK | |
24462 | GUIDIST=GTK_DIST | |
24463 | ||
24464 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
24465 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
24466 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
24467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24468 | else | |
24469 | ac_check_lib_save_LIBS=$LIBS | |
24470 | LIBS="-lgdk $LIBS" | |
24471 | cat >conftest.$ac_ext <<_ACEOF | |
24472 | /* confdefs.h. */ | |
24473 | _ACEOF | |
24474 | cat confdefs.h >>conftest.$ac_ext | |
24475 | cat >>conftest.$ac_ext <<_ACEOF | |
24476 | /* end confdefs.h. */ | |
24477 | ||
24478 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24479 | #ifdef __cplusplus | |
24480 | extern "C" | |
24481 | #endif | |
24482 | /* We use char because int might match the return type of a gcc2 | |
24483 | builtin and then its argument prototype would still apply. */ | |
24484 | char gdk_im_open (); | |
24485 | int | |
24486 | main () | |
24487 | { | |
24488 | gdk_im_open (); | |
24489 | ; | |
24490 | return 0; | |
24491 | } | |
24492 | _ACEOF | |
24493 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24495 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24496 | ac_status=$? |
ac1cb8d3 VS |
24497 | grep -v '^ *+' conftest.er1 >conftest.err |
24498 | rm -f conftest.er1 | |
24499 | cat conftest.err >&5 | |
a848cd7e SC |
24500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24501 | (exit $ac_status); } && | |
89be85c2 VS |
24502 | { ac_try='test -z "$ac_c_werror_flag" |
24503 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24505 | (eval $ac_try) 2>&5 | |
24506 | ac_status=$? | |
24507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24508 | (exit $ac_status); }; } && | |
24509 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24511 | (eval $ac_try) 2>&5 | |
24512 | ac_status=$? | |
24513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24514 | (exit $ac_status); }; }; then | |
24515 | ac_cv_lib_gdk_gdk_im_open=yes | |
24516 | else | |
24517 | echo "$as_me: failed program was:" >&5 | |
24518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24519 | ||
24520 | ac_cv_lib_gdk_gdk_im_open=no | |
24521 | fi | |
ac1cb8d3 VS |
24522 | rm -f conftest.err conftest.$ac_objext \ |
24523 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24524 | LIBS=$ac_check_lib_save_LIBS |
24525 | fi | |
24526 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
24527 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
24528 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
24529 | cat >>confdefs.h <<\_ACEOF | |
24530 | #define HAVE_XIM 1 | |
24531 | _ACEOF | |
24532 | ||
24533 | fi | |
24534 | ||
24535 | ||
24536 | ||
24537 | if test "$wxUSE_GPE" = "yes"; then | |
24538 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
24539 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
24540 | ||
24541 | ac_find_libraries= | |
24542 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24543 | do | |
24544 | for ac_extension in a so sl dylib; do | |
24545 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
24546 | ac_find_libraries=$ac_dir | |
24547 | break 2 | |
24548 | fi | |
24549 | done | |
24550 | done | |
24551 | ||
24552 | if test "$ac_find_libraries" != "" ; then | |
24553 | ||
24554 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
24555 | result=$? | |
24556 | if test $result = 0; then | |
24557 | ac_path_to_link="" | |
24558 | else | |
24559 | ac_path_to_link=" -L$ac_find_libraries" | |
24560 | fi | |
24561 | ||
24562 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
24563 | WXGPE=1 | |
24564 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
24565 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
24566 | else | |
24567 | echo "$as_me:$LINENO: result: not found" >&5 | |
24568 | echo "${ECHO_T}not found" >&6 | |
24569 | fi | |
24570 | ||
24571 | fi | |
24572 | fi | |
24573 | ||
24574 | if test "$wxUSE_MGL" = 1; then | |
24575 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
24576 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
24577 | if test "x$MGL_ROOT" = x ; then | |
24578 | echo "$as_me:$LINENO: result: not found" >&5 | |
24579 | echo "${ECHO_T}not found" >&6 | |
24580 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
24581 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
24582 | { (exit 1); exit 1; }; } | |
24583 | else | |
24584 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
24585 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
24586 | fi | |
24587 | ||
24588 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
24589 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
24590 | case "${host}" in | |
24591 | *-*-linux* ) | |
24592 | if test "x$wxUSE_SHARED" = xyes ; then | |
24593 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
24594 | else | |
24595 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
24596 | fi | |
24597 | ;; | |
24598 | *-pc-msdosdjgpp ) | |
24599 | mgl_os_candidates="dos32/dj2" | |
24600 | ;; | |
24601 | *) | |
24602 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
24603 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
24604 | { (exit 1); exit 1; }; } | |
24605 | esac | |
24606 | ||
24607 | mgl_lib_type="" | |
24608 | mgl_os="" | |
24609 | ||
24610 | for mgl_os_i in $mgl_os_candidates ; do | |
24611 | if test "x$mgl_os" = x ; then | |
24612 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
24613 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
24614 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
24615 | mgl_lib_type=debug | |
24616 | mgl_os=$mgl_os_i | |
24617 | fi | |
24618 | fi | |
24619 | if test "x$mgl_lib_type" = x ; then | |
24620 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
24621 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
24622 | mgl_lib_type=release | |
24623 | mgl_os=$mgl_os_i | |
24624 | fi | |
24625 | fi | |
24626 | fi | |
24627 | done | |
24628 | ||
24629 | if test "x$mgl_os" = x ; then | |
24630 | echo "$as_me:$LINENO: result: not found" >&5 | |
24631 | echo "${ECHO_T}not found" >&6 | |
24632 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
24633 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
24634 | { (exit 1); exit 1; }; } | |
24635 | fi | |
24636 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
24637 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
24638 | ||
24639 | wxUSE_UNIVERSAL="yes" | |
24640 | ||
24641 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
24642 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
24643 | ||
24644 | AFMINSTALL=afminstall | |
24645 | TOOLKIT=MGL | |
24646 | GUIDIST=MGL_DIST | |
24647 | fi | |
24648 | ||
24649 | if test "$wxUSE_MICROWIN" = 1; then | |
24650 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
24651 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
24652 | if test "x$MICROWINDOWS" = x ; then | |
24653 | echo "$as_me:$LINENO: result: not found" >&5 | |
24654 | echo "${ECHO_T}not found" >&6 | |
24655 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
24656 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
24657 | { (exit 1); exit 1; }; } | |
24658 | else | |
24659 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
24660 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
24661 | fi | |
24662 | ||
24663 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
24664 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
24665 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
24666 | else | |
24667 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
24668 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
24669 | { (exit 1); exit 1; }; } | |
24670 | fi | |
24671 | ||
24672 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
24673 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
24674 | ||
24675 | wxUSE_UNIVERSAL="yes" | |
24676 | ||
24677 | AFMINSTALL=afminstall | |
24678 | TOOLKIT=MICROWIN | |
24679 | GUIDIST=MICROWIN_DIST | |
24680 | ||
24681 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
24682 | fi | |
24683 | ||
74b84332 | 24684 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
89be85c2 | 24685 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
24686 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
24687 | ||
24688 | ||
24689 | # Check whether --with-x or --without-x was given. | |
24690 | if test "${with_x+set}" = set; then | |
24691 | withval="$with_x" | |
24692 | ||
24693 | fi; | |
24694 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
24695 | if test "x$with_x" = xno; then | |
24696 | # The user explicitly disabled X. | |
24697 | have_x=disabled | |
24698 | else | |
24699 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
24700 | # Both variables are already set. | |
24701 | have_x=yes | |
24702 | else | |
24703 | if test "${ac_cv_have_x+set}" = set; then | |
24704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24705 | else | |
24706 | # One or both of the vars are not set, and there is no cached value. | |
24707 | ac_x_includes=no ac_x_libraries=no | |
24708 | rm -fr conftest.dir | |
24709 | if mkdir conftest.dir; then | |
24710 | cd conftest.dir | |
24711 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
24712 | cat >Imakefile <<'_ACEOF' | |
24713 | acfindx: | |
24714 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
24715 | _ACEOF | |
24716 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
24717 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
24718 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
24719 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
24720 | for ac_extension in a so sl; do | |
24721 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
24722 | test -f $ac_im_libdir/libX11.$ac_extension; then |
24723 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
24724 | fi |
24725 | done | |
24726 | # Screen out bogus values from the imake configuration. They are | |
24727 | # bogus both because they are the default anyway, and because | |
24728 | # using them would break gcc on systems where it needs fixed includes. | |
24729 | case $ac_im_incroot in | |
24730 | /usr/include) ;; | |
24731 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
24732 | esac | |
24733 | case $ac_im_usrlibdir in | |
24734 | /usr/lib | /lib) ;; | |
24735 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
24736 | esac | |
24737 | fi | |
24738 | cd .. | |
24739 | rm -fr conftest.dir | |
24740 | fi | |
24741 | ||
24742 | # Standard set of common directories for X headers. | |
24743 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
24744 | ac_x_header_dirs=' | |
24745 | /usr/X11/include | |
24746 | /usr/X11R6/include | |
24747 | /usr/X11R5/include | |
24748 | /usr/X11R4/include | |
24749 | ||
24750 | /usr/include/X11 | |
24751 | /usr/include/X11R6 | |
24752 | /usr/include/X11R5 | |
24753 | /usr/include/X11R4 | |
24754 | ||
24755 | /usr/local/X11/include | |
24756 | /usr/local/X11R6/include | |
24757 | /usr/local/X11R5/include | |
24758 | /usr/local/X11R4/include | |
24759 | ||
24760 | /usr/local/include/X11 | |
24761 | /usr/local/include/X11R6 | |
24762 | /usr/local/include/X11R5 | |
24763 | /usr/local/include/X11R4 | |
24764 | ||
24765 | /usr/X386/include | |
24766 | /usr/x386/include | |
24767 | /usr/XFree86/include/X11 | |
24768 | ||
24769 | /usr/include | |
24770 | /usr/local/include | |
24771 | /usr/unsupported/include | |
24772 | /usr/athena/include | |
24773 | /usr/local/x11r5/include | |
24774 | /usr/lpp/Xamples/include | |
24775 | ||
24776 | /usr/openwin/include | |
24777 | /usr/openwin/share/include' | |
24778 | ||
24779 | if test "$ac_x_includes" = no; then | |
89be85c2 | 24780 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
24781 | # First, try using that file with no special directory specified. |
24782 | cat >conftest.$ac_ext <<_ACEOF | |
24783 | /* confdefs.h. */ | |
24784 | _ACEOF | |
24785 | cat confdefs.h >>conftest.$ac_ext | |
24786 | cat >>conftest.$ac_ext <<_ACEOF | |
24787 | /* end confdefs.h. */ | |
24788 | #include <X11/Intrinsic.h> | |
24789 | _ACEOF | |
24790 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24791 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24792 | ac_status=$? | |
24793 | grep -v '^ *+' conftest.er1 >conftest.err | |
24794 | rm -f conftest.er1 | |
24795 | cat conftest.err >&5 | |
24796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24797 | (exit $ac_status); } >/dev/null; then | |
24798 | if test -s conftest.err; then | |
24799 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24800 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24801 | else |
24802 | ac_cpp_err= | |
24803 | fi | |
24804 | else | |
24805 | ac_cpp_err=yes | |
24806 | fi | |
24807 | if test -z "$ac_cpp_err"; then | |
24808 | # We can compile using X headers with no special include directory. | |
24809 | ac_x_includes= | |
24810 | else | |
24811 | echo "$as_me: failed program was:" >&5 | |
24812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24813 | ||
24814 | for ac_dir in $ac_x_header_dirs; do | |
24815 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
24816 | ac_x_includes=$ac_dir | |
24817 | break | |
24818 | fi | |
24819 | done | |
24820 | fi | |
24821 | rm -f conftest.err conftest.$ac_ext | |
24822 | fi # $ac_x_includes = no | |
24823 | ||
24824 | if test "$ac_x_libraries" = no; then | |
24825 | # Check for the libraries. | |
24826 | # See if we find them without any special options. | |
24827 | # Don't add to $LIBS permanently. | |
24828 | ac_save_LIBS=$LIBS | |
24829 | LIBS="-lXt $LIBS" | |
24830 | cat >conftest.$ac_ext <<_ACEOF | |
24831 | /* confdefs.h. */ | |
24832 | _ACEOF | |
24833 | cat confdefs.h >>conftest.$ac_ext | |
24834 | cat >>conftest.$ac_ext <<_ACEOF | |
24835 | /* end confdefs.h. */ | |
24836 | #include <X11/Intrinsic.h> | |
24837 | int | |
24838 | main () | |
24839 | { | |
24840 | XtMalloc (0) | |
24841 | ; | |
24842 | return 0; | |
24843 | } | |
24844 | _ACEOF | |
24845 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24847 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24848 | ac_status=$? |
ac1cb8d3 VS |
24849 | grep -v '^ *+' conftest.er1 >conftest.err |
24850 | rm -f conftest.er1 | |
24851 | cat conftest.err >&5 | |
a848cd7e SC |
24852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24853 | (exit $ac_status); } && | |
89be85c2 VS |
24854 | { ac_try='test -z "$ac_c_werror_flag" |
24855 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24857 | (eval $ac_try) 2>&5 | |
24858 | ac_status=$? | |
24859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24860 | (exit $ac_status); }; } && | |
24861 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24863 | (eval $ac_try) 2>&5 | |
24864 | ac_status=$? | |
24865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24866 | (exit $ac_status); }; }; then | |
24867 | LIBS=$ac_save_LIBS | |
24868 | # We can link X programs with no special library path. | |
24869 | ac_x_libraries= | |
24870 | else | |
24871 | echo "$as_me: failed program was:" >&5 | |
24872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24873 | ||
24874 | LIBS=$ac_save_LIBS | |
24875 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
24876 | do | |
24877 | # Don't even attempt the hair of trying to link an X program! | |
24878 | for ac_extension in a so sl; do | |
24879 | if test -r $ac_dir/libXt.$ac_extension; then | |
24880 | ac_x_libraries=$ac_dir | |
24881 | break 2 | |
24882 | fi | |
24883 | done | |
24884 | done | |
24885 | fi | |
ac1cb8d3 VS |
24886 | rm -f conftest.err conftest.$ac_objext \ |
24887 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24888 | fi # $ac_x_libraries = no |
24889 | ||
24890 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
24891 | # Didn't find X anywhere. Cache the known absence of X. | |
24892 | ac_cv_have_x="have_x=no" | |
24893 | else | |
24894 | # Record where we found X for the cache. | |
24895 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 24896 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
24897 | fi |
24898 | fi | |
24899 | ||
24900 | fi | |
24901 | eval "$ac_cv_have_x" | |
24902 | fi # $with_x != no | |
24903 | ||
24904 | if test "$have_x" != yes; then | |
24905 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
24906 | echo "${ECHO_T}$have_x" >&6 | |
24907 | no_x=yes | |
24908 | else | |
24909 | # If each of the values was on the command line, it overrides each guess. | |
24910 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24911 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24912 | # Update the cache value to reflect the command line values. | |
24913 | ac_cv_have_x="have_x=yes \ | |
24914 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
89be85c2 VS |
24915 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
24916 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
24917 | fi |
24918 | ||
24919 | if test "$no_x" = yes; then | |
24920 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24921 | ||
24922 | cat >>confdefs.h <<\_ACEOF | |
24923 | #define X_DISPLAY_MISSING 1 | |
24924 | _ACEOF | |
24925 | ||
24926 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24927 | else | |
24928 | if test -n "$x_includes"; then | |
24929 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24930 | fi | |
24931 | ||
24932 | # It would also be nice to do this for all -L options, not just this one. | |
24933 | if test -n "$x_libraries"; then | |
24934 | X_LIBS="$X_LIBS -L$x_libraries" | |
24935 | # For Solaris; some versions of Sun CC require a space after -R and | |
24936 | # others require no space. Words are not sufficient . . . . | |
24937 | case `(uname -sr) 2>/dev/null` in | |
24938 | "SunOS 5"*) | |
24939 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
24940 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24941 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24942 | cat >conftest.$ac_ext <<_ACEOF | |
24943 | /* confdefs.h. */ | |
24944 | _ACEOF | |
24945 | cat confdefs.h >>conftest.$ac_ext | |
24946 | cat >>conftest.$ac_ext <<_ACEOF | |
24947 | /* end confdefs.h. */ | |
24948 | ||
24949 | int | |
24950 | main () | |
24951 | { | |
24952 | ||
24953 | ; | |
24954 | return 0; | |
24955 | } | |
24956 | _ACEOF | |
24957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24959 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24960 | ac_status=$? |
ac1cb8d3 VS |
24961 | grep -v '^ *+' conftest.er1 >conftest.err |
24962 | rm -f conftest.er1 | |
24963 | cat conftest.err >&5 | |
a848cd7e SC |
24964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24965 | (exit $ac_status); } && | |
89be85c2 VS |
24966 | { ac_try='test -z "$ac_c_werror_flag" |
24967 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24969 | (eval $ac_try) 2>&5 | |
24970 | ac_status=$? | |
24971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24972 | (exit $ac_status); }; } && | |
24973 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24975 | (eval $ac_try) 2>&5 | |
24976 | ac_status=$? | |
24977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24978 | (exit $ac_status); }; }; then | |
24979 | ac_R_nospace=yes | |
24980 | else | |
24981 | echo "$as_me: failed program was:" >&5 | |
24982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24983 | ||
24984 | ac_R_nospace=no | |
24985 | fi | |
ac1cb8d3 VS |
24986 | rm -f conftest.err conftest.$ac_objext \ |
24987 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24988 | if test $ac_R_nospace = yes; then |
24989 | echo "$as_me:$LINENO: result: no" >&5 | |
24990 | echo "${ECHO_T}no" >&6 | |
24991 | X_LIBS="$X_LIBS -R$x_libraries" | |
24992 | else | |
24993 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24994 | cat >conftest.$ac_ext <<_ACEOF | |
24995 | /* confdefs.h. */ | |
24996 | _ACEOF | |
24997 | cat confdefs.h >>conftest.$ac_ext | |
24998 | cat >>conftest.$ac_ext <<_ACEOF | |
24999 | /* end confdefs.h. */ | |
25000 | ||
25001 | int | |
25002 | main () | |
25003 | { | |
25004 | ||
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); } && | |
89be85c2 VS |
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_R_space=yes | |
25032 | else | |
25033 | echo "$as_me: failed program was:" >&5 | |
25034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25035 | ||
25036 | ac_R_space=no | |
25037 | fi | |
ac1cb8d3 VS |
25038 | rm -f conftest.err conftest.$ac_objext \ |
25039 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25040 | if test $ac_R_space = yes; then |
25041 | echo "$as_me:$LINENO: result: yes" >&5 | |
25042 | echo "${ECHO_T}yes" >&6 | |
25043 | X_LIBS="$X_LIBS -R $x_libraries" | |
25044 | else | |
25045 | echo "$as_me:$LINENO: result: neither works" >&5 | |
25046 | echo "${ECHO_T}neither works" >&6 | |
25047 | fi | |
25048 | fi | |
25049 | LIBS=$ac_xsave_LIBS | |
25050 | esac | |
25051 | fi | |
25052 | ||
25053 | # Check for system-dependent libraries X programs must link with. | |
25054 | # Do this before checking for the system-independent R6 libraries | |
25055 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
25056 | ||
25057 | if test "$ISC" = yes; then | |
25058 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
25059 | else | |
25060 | # Martyn Johnson says this is needed for Ultrix, if the X | |
25061 | # libraries were built with DECnet support. And Karl Berry says | |
25062 | # the Alpha needs dnet_stub (dnet does not exist). | |
25063 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
25064 | cat >conftest.$ac_ext <<_ACEOF | |
25065 | /* confdefs.h. */ | |
25066 | _ACEOF | |
25067 | cat confdefs.h >>conftest.$ac_ext | |
25068 | cat >>conftest.$ac_ext <<_ACEOF | |
25069 | /* end confdefs.h. */ | |
25070 | ||
25071 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25072 | #ifdef __cplusplus | |
25073 | extern "C" | |
25074 | #endif | |
25075 | /* We use char because int might match the return type of a gcc2 | |
25076 | builtin and then its argument prototype would still apply. */ | |
25077 | char XOpenDisplay (); | |
25078 | int | |
25079 | main () | |
25080 | { | |
25081 | XOpenDisplay (); | |
25082 | ; | |
25083 | return 0; | |
25084 | } | |
25085 | _ACEOF | |
25086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25088 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25089 | ac_status=$? |
ac1cb8d3 VS |
25090 | grep -v '^ *+' conftest.er1 >conftest.err |
25091 | rm -f conftest.er1 | |
25092 | cat conftest.err >&5 | |
a848cd7e SC |
25093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25094 | (exit $ac_status); } && | |
89be85c2 VS |
25095 | { ac_try='test -z "$ac_c_werror_flag" |
25096 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25098 | (eval $ac_try) 2>&5 | |
25099 | ac_status=$? | |
25100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25101 | (exit $ac_status); }; } && | |
25102 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25104 | (eval $ac_try) 2>&5 | |
25105 | ac_status=$? | |
25106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25107 | (exit $ac_status); }; }; then | |
25108 | : | |
25109 | else | |
25110 | echo "$as_me: failed program was:" >&5 | |
25111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25112 | ||
25113 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
25114 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
25115 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
25116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25117 | else | |
25118 | ac_check_lib_save_LIBS=$LIBS | |
25119 | LIBS="-ldnet $LIBS" | |
25120 | cat >conftest.$ac_ext <<_ACEOF | |
25121 | /* confdefs.h. */ | |
25122 | _ACEOF | |
25123 | cat confdefs.h >>conftest.$ac_ext | |
25124 | cat >>conftest.$ac_ext <<_ACEOF | |
25125 | /* end confdefs.h. */ | |
25126 | ||
25127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25128 | #ifdef __cplusplus | |
25129 | extern "C" | |
25130 | #endif | |
25131 | /* We use char because int might match the return type of a gcc2 | |
25132 | builtin and then its argument prototype would still apply. */ | |
25133 | char dnet_ntoa (); | |
25134 | int | |
25135 | main () | |
25136 | { | |
25137 | dnet_ntoa (); | |
25138 | ; | |
25139 | return 0; | |
25140 | } | |
25141 | _ACEOF | |
25142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25144 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25145 | ac_status=$? |
ac1cb8d3 VS |
25146 | grep -v '^ *+' conftest.er1 >conftest.err |
25147 | rm -f conftest.er1 | |
25148 | cat conftest.err >&5 | |
a848cd7e SC |
25149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25150 | (exit $ac_status); } && | |
89be85c2 VS |
25151 | { ac_try='test -z "$ac_c_werror_flag" |
25152 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25154 | (eval $ac_try) 2>&5 | |
25155 | ac_status=$? | |
25156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25157 | (exit $ac_status); }; } && | |
25158 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25160 | (eval $ac_try) 2>&5 | |
25161 | ac_status=$? | |
25162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25163 | (exit $ac_status); }; }; then | |
25164 | ac_cv_lib_dnet_dnet_ntoa=yes | |
25165 | else | |
25166 | echo "$as_me: failed program was:" >&5 | |
25167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25168 | ||
25169 | ac_cv_lib_dnet_dnet_ntoa=no | |
25170 | fi | |
ac1cb8d3 VS |
25171 | rm -f conftest.err conftest.$ac_objext \ |
25172 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25173 | LIBS=$ac_check_lib_save_LIBS |
25174 | fi | |
25175 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
25176 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
25177 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
25178 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
25179 | fi | |
25180 | ||
25181 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
25182 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
25183 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
25184 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
25185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25186 | else | |
25187 | ac_check_lib_save_LIBS=$LIBS | |
25188 | LIBS="-ldnet_stub $LIBS" | |
25189 | cat >conftest.$ac_ext <<_ACEOF | |
25190 | /* confdefs.h. */ | |
25191 | _ACEOF | |
25192 | cat confdefs.h >>conftest.$ac_ext | |
25193 | cat >>conftest.$ac_ext <<_ACEOF | |
25194 | /* end confdefs.h. */ | |
25195 | ||
25196 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25197 | #ifdef __cplusplus | |
25198 | extern "C" | |
25199 | #endif | |
25200 | /* We use char because int might match the return type of a gcc2 | |
25201 | builtin and then its argument prototype would still apply. */ | |
25202 | char dnet_ntoa (); | |
25203 | int | |
25204 | main () | |
25205 | { | |
25206 | dnet_ntoa (); | |
25207 | ; | |
25208 | return 0; | |
25209 | } | |
25210 | _ACEOF | |
25211 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25213 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25214 | ac_status=$? |
ac1cb8d3 VS |
25215 | grep -v '^ *+' conftest.er1 >conftest.err |
25216 | rm -f conftest.er1 | |
25217 | cat conftest.err >&5 | |
a848cd7e SC |
25218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25219 | (exit $ac_status); } && | |
89be85c2 VS |
25220 | { ac_try='test -z "$ac_c_werror_flag" |
25221 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25223 | (eval $ac_try) 2>&5 | |
25224 | ac_status=$? | |
25225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25226 | (exit $ac_status); }; } && | |
25227 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25229 | (eval $ac_try) 2>&5 | |
25230 | ac_status=$? | |
25231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25232 | (exit $ac_status); }; }; then | |
25233 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
25234 | else | |
25235 | echo "$as_me: failed program was:" >&5 | |
25236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25237 | ||
25238 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
25239 | fi | |
ac1cb8d3 VS |
25240 | rm -f conftest.err conftest.$ac_objext \ |
25241 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25242 | LIBS=$ac_check_lib_save_LIBS |
25243 | fi | |
25244 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
25245 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
25246 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
25247 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
25248 | fi | |
25249 | ||
25250 | fi | |
25251 | fi | |
ac1cb8d3 VS |
25252 | rm -f conftest.err conftest.$ac_objext \ |
25253 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25254 | LIBS="$ac_xsave_LIBS" |
25255 | ||
25256 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
25257 | # to get the SysV transport functions. | |
25258 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
25259 | # needs -lnsl. | |
25260 | # The nsl library prevents programs from opening the X display | |
25261 | # on Irix 5.2, according to T.E. Dickey. | |
25262 | # The functions gethostbyname, getservbyname, and inet_addr are | |
25263 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
25264 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
25265 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
25266 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
25267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25268 | else | |
25269 | cat >conftest.$ac_ext <<_ACEOF | |
25270 | /* confdefs.h. */ | |
25271 | _ACEOF | |
25272 | cat confdefs.h >>conftest.$ac_ext | |
25273 | cat >>conftest.$ac_ext <<_ACEOF | |
25274 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25275 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
25276 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25277 | #define gethostbyname innocuous_gethostbyname | |
25278 | ||
a848cd7e SC |
25279 | /* System header to define __stub macros and hopefully few prototypes, |
25280 | which can conflict with char gethostbyname (); below. | |
25281 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25282 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25283 | |
a848cd7e SC |
25284 | #ifdef __STDC__ |
25285 | # include <limits.h> | |
25286 | #else | |
25287 | # include <assert.h> | |
25288 | #endif | |
ac1cb8d3 VS |
25289 | |
25290 | #undef gethostbyname | |
25291 | ||
a848cd7e SC |
25292 | /* Override any gcc2 internal prototype to avoid an error. */ |
25293 | #ifdef __cplusplus | |
25294 | extern "C" | |
25295 | { | |
25296 | #endif | |
25297 | /* We use char because int might match the return type of a gcc2 | |
25298 | builtin and then its argument prototype would still apply. */ | |
25299 | char gethostbyname (); | |
25300 | /* The GNU C library defines this for functions which it implements | |
25301 | to always fail with ENOSYS. Some functions are actually named | |
25302 | something starting with __ and the normal name is an alias. */ | |
25303 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
25304 | choke me | |
25305 | #else | |
25306 | char (*f) () = gethostbyname; | |
25307 | #endif | |
25308 | #ifdef __cplusplus | |
25309 | } | |
25310 | #endif | |
25311 | ||
25312 | int | |
25313 | main () | |
25314 | { | |
25315 | return f != gethostbyname; | |
25316 | ; | |
25317 | return 0; | |
25318 | } | |
25319 | _ACEOF | |
25320 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25322 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25323 | ac_status=$? |
ac1cb8d3 VS |
25324 | grep -v '^ *+' conftest.er1 >conftest.err |
25325 | rm -f conftest.er1 | |
25326 | cat conftest.err >&5 | |
a848cd7e SC |
25327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25328 | (exit $ac_status); } && | |
89be85c2 VS |
25329 | { ac_try='test -z "$ac_c_werror_flag" |
25330 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25332 | (eval $ac_try) 2>&5 | |
25333 | ac_status=$? | |
25334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25335 | (exit $ac_status); }; } && | |
25336 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25338 | (eval $ac_try) 2>&5 | |
25339 | ac_status=$? | |
25340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25341 | (exit $ac_status); }; }; then | |
25342 | ac_cv_func_gethostbyname=yes | |
25343 | else | |
25344 | echo "$as_me: failed program was:" >&5 | |
25345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25346 | ||
25347 | ac_cv_func_gethostbyname=no | |
25348 | fi | |
ac1cb8d3 VS |
25349 | rm -f conftest.err conftest.$ac_objext \ |
25350 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25351 | fi |
25352 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
25353 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
25354 | ||
25355 | if test $ac_cv_func_gethostbyname = no; then | |
25356 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
25357 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
25358 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
25359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25360 | else | |
25361 | ac_check_lib_save_LIBS=$LIBS | |
25362 | LIBS="-lnsl $LIBS" | |
25363 | cat >conftest.$ac_ext <<_ACEOF | |
25364 | /* confdefs.h. */ | |
25365 | _ACEOF | |
25366 | cat confdefs.h >>conftest.$ac_ext | |
25367 | cat >>conftest.$ac_ext <<_ACEOF | |
25368 | /* end confdefs.h. */ | |
25369 | ||
25370 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25371 | #ifdef __cplusplus | |
25372 | extern "C" | |
25373 | #endif | |
25374 | /* We use char because int might match the return type of a gcc2 | |
25375 | builtin and then its argument prototype would still apply. */ | |
25376 | char gethostbyname (); | |
25377 | int | |
25378 | main () | |
25379 | { | |
25380 | gethostbyname (); | |
25381 | ; | |
25382 | return 0; | |
25383 | } | |
25384 | _ACEOF | |
25385 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
25387 | (eval $ac_link) 2>conftest.er1 |
25388 | ac_status=$? | |
25389 | grep -v '^ *+' conftest.er1 >conftest.err | |
25390 | rm -f conftest.er1 | |
25391 | cat conftest.err >&5 | |
25392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25393 | (exit $ac_status); } && | |
89be85c2 VS |
25394 | { ac_try='test -z "$ac_c_werror_flag" |
25395 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25397 | (eval $ac_try) 2>&5 | |
25398 | ac_status=$? | |
25399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25400 | (exit $ac_status); }; } && | |
25401 | { ac_try='test -s conftest$ac_exeext' | |
25402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25403 | (eval $ac_try) 2>&5 | |
25404 | ac_status=$? | |
25405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25406 | (exit $ac_status); }; }; then | |
25407 | ac_cv_lib_nsl_gethostbyname=yes | |
25408 | else | |
25409 | echo "$as_me: failed program was:" >&5 | |
25410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25411 | ||
25412 | ac_cv_lib_nsl_gethostbyname=no | |
25413 | fi | |
25414 | rm -f conftest.err conftest.$ac_objext \ | |
25415 | conftest$ac_exeext conftest.$ac_ext | |
25416 | LIBS=$ac_check_lib_save_LIBS | |
25417 | fi | |
25418 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
25419 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
25420 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
25421 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
25422 | fi | |
25423 | ||
25424 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
25425 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
25426 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
25427 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
25428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25429 | else | |
25430 | ac_check_lib_save_LIBS=$LIBS | |
25431 | LIBS="-lbsd $LIBS" | |
25432 | cat >conftest.$ac_ext <<_ACEOF | |
25433 | /* confdefs.h. */ | |
25434 | _ACEOF | |
25435 | cat confdefs.h >>conftest.$ac_ext | |
25436 | cat >>conftest.$ac_ext <<_ACEOF | |
25437 | /* end confdefs.h. */ | |
25438 | ||
25439 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25440 | #ifdef __cplusplus | |
25441 | extern "C" | |
25442 | #endif | |
25443 | /* We use char because int might match the return type of a gcc2 | |
25444 | builtin and then its argument prototype would still apply. */ | |
25445 | char gethostbyname (); | |
25446 | int | |
25447 | main () | |
25448 | { | |
25449 | gethostbyname (); | |
25450 | ; | |
25451 | return 0; | |
25452 | } | |
25453 | _ACEOF | |
25454 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25456 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 25457 | ac_status=$? |
ac1cb8d3 VS |
25458 | grep -v '^ *+' conftest.er1 >conftest.err |
25459 | rm -f conftest.er1 | |
25460 | cat conftest.err >&5 | |
a848cd7e SC |
25461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25462 | (exit $ac_status); } && | |
89be85c2 VS |
25463 | { ac_try='test -z "$ac_c_werror_flag" |
25464 | || test ! -s conftest.err' | |
a848cd7e SC |
25465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25466 | (eval $ac_try) 2>&5 | |
25467 | ac_status=$? | |
25468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
25469 | (exit $ac_status); }; } && |
25470 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25472 | (eval $ac_try) 2>&5 | |
25473 | ac_status=$? | |
25474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25475 | (exit $ac_status); }; }; then | |
25476 | ac_cv_lib_bsd_gethostbyname=yes | |
25477 | else | |
25478 | echo "$as_me: failed program was:" >&5 | |
25479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25480 | ||
25481 | ac_cv_lib_bsd_gethostbyname=no | |
25482 | fi | |
ac1cb8d3 VS |
25483 | rm -f conftest.err conftest.$ac_objext \ |
25484 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25485 | LIBS=$ac_check_lib_save_LIBS |
25486 | fi | |
25487 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
25488 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
25489 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
25490 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
25491 | fi | |
25492 | ||
25493 | fi | |
25494 | fi | |
25495 | ||
25496 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
25497 | # socket/setsockopt and other routines are undefined under SCO ODT | |
25498 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
25499 | # on later versions), says Simon Leinen: it contains gethostby* | |
25500 | # variants that don't use the name server (or something). -lsocket | |
25501 | # must be given before -lnsl if both are needed. We assume that | |
25502 | # if connect needs -lnsl, so does gethostbyname. | |
25503 | echo "$as_me:$LINENO: checking for connect" >&5 | |
25504 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
25505 | if test "${ac_cv_func_connect+set}" = set; then | |
25506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25507 | else | |
25508 | cat >conftest.$ac_ext <<_ACEOF | |
25509 | /* confdefs.h. */ | |
25510 | _ACEOF | |
25511 | cat confdefs.h >>conftest.$ac_ext | |
25512 | cat >>conftest.$ac_ext <<_ACEOF | |
25513 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25514 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
25515 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25516 | #define connect innocuous_connect | |
25517 | ||
a848cd7e SC |
25518 | /* System header to define __stub macros and hopefully few prototypes, |
25519 | which can conflict with char connect (); below. | |
25520 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25521 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25522 | |
a848cd7e SC |
25523 | #ifdef __STDC__ |
25524 | # include <limits.h> | |
25525 | #else | |
25526 | # include <assert.h> | |
25527 | #endif | |
ac1cb8d3 VS |
25528 | |
25529 | #undef connect | |
25530 | ||
a848cd7e SC |
25531 | /* Override any gcc2 internal prototype to avoid an error. */ |
25532 | #ifdef __cplusplus | |
25533 | extern "C" | |
25534 | { | |
25535 | #endif | |
25536 | /* We use char because int might match the return type of a gcc2 | |
25537 | builtin and then its argument prototype would still apply. */ | |
25538 | char connect (); | |
25539 | /* The GNU C library defines this for functions which it implements | |
25540 | to always fail with ENOSYS. Some functions are actually named | |
25541 | something starting with __ and the normal name is an alias. */ | |
25542 | #if defined (__stub_connect) || defined (__stub___connect) | |
25543 | choke me | |
25544 | #else | |
25545 | char (*f) () = connect; | |
25546 | #endif | |
25547 | #ifdef __cplusplus | |
25548 | } | |
25549 | #endif | |
25550 | ||
25551 | int | |
25552 | main () | |
25553 | { | |
25554 | return f != connect; | |
25555 | ; | |
25556 | return 0; | |
25557 | } | |
25558 | _ACEOF | |
25559 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25561 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25562 | ac_status=$? |
ac1cb8d3 VS |
25563 | grep -v '^ *+' conftest.er1 >conftest.err |
25564 | rm -f conftest.er1 | |
25565 | cat conftest.err >&5 | |
a848cd7e SC |
25566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25567 | (exit $ac_status); } && | |
89be85c2 VS |
25568 | { ac_try='test -z "$ac_c_werror_flag" |
25569 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25571 | (eval $ac_try) 2>&5 | |
25572 | ac_status=$? | |
25573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25574 | (exit $ac_status); }; } && | |
25575 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25577 | (eval $ac_try) 2>&5 | |
25578 | ac_status=$? | |
25579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25580 | (exit $ac_status); }; }; then | |
25581 | ac_cv_func_connect=yes | |
25582 | else | |
25583 | echo "$as_me: failed program was:" >&5 | |
25584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25585 | ||
25586 | ac_cv_func_connect=no | |
25587 | fi | |
ac1cb8d3 VS |
25588 | rm -f conftest.err conftest.$ac_objext \ |
25589 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25590 | fi |
25591 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
25592 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
25593 | ||
25594 | if test $ac_cv_func_connect = no; then | |
25595 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
25596 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
25597 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
25598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25599 | else | |
25600 | ac_check_lib_save_LIBS=$LIBS | |
25601 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
25602 | cat >conftest.$ac_ext <<_ACEOF | |
25603 | /* confdefs.h. */ | |
25604 | _ACEOF | |
25605 | cat confdefs.h >>conftest.$ac_ext | |
25606 | cat >>conftest.$ac_ext <<_ACEOF | |
25607 | /* end confdefs.h. */ | |
25608 | ||
25609 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25610 | #ifdef __cplusplus | |
25611 | extern "C" | |
25612 | #endif | |
25613 | /* We use char because int might match the return type of a gcc2 | |
25614 | builtin and then its argument prototype would still apply. */ | |
25615 | char connect (); | |
25616 | int | |
25617 | main () | |
25618 | { | |
25619 | connect (); | |
25620 | ; | |
25621 | return 0; | |
25622 | } | |
25623 | _ACEOF | |
25624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25626 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25627 | ac_status=$? |
ac1cb8d3 VS |
25628 | grep -v '^ *+' conftest.er1 >conftest.err |
25629 | rm -f conftest.er1 | |
25630 | cat conftest.err >&5 | |
a848cd7e SC |
25631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25632 | (exit $ac_status); } && | |
89be85c2 VS |
25633 | { ac_try='test -z "$ac_c_werror_flag" |
25634 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25636 | (eval $ac_try) 2>&5 | |
25637 | ac_status=$? | |
25638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25639 | (exit $ac_status); }; } && | |
25640 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25642 | (eval $ac_try) 2>&5 | |
25643 | ac_status=$? | |
25644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25645 | (exit $ac_status); }; }; then | |
25646 | ac_cv_lib_socket_connect=yes | |
25647 | else | |
25648 | echo "$as_me: failed program was:" >&5 | |
25649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25650 | ||
25651 | ac_cv_lib_socket_connect=no | |
25652 | fi | |
ac1cb8d3 VS |
25653 | rm -f conftest.err conftest.$ac_objext \ |
25654 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25655 | LIBS=$ac_check_lib_save_LIBS |
25656 | fi | |
25657 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
25658 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
25659 | if test $ac_cv_lib_socket_connect = yes; then | |
25660 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
25661 | fi | |
25662 | ||
25663 | fi | |
25664 | ||
25665 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
25666 | echo "$as_me:$LINENO: checking for remove" >&5 | |
25667 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
25668 | if test "${ac_cv_func_remove+set}" = set; then | |
25669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25670 | else | |
25671 | cat >conftest.$ac_ext <<_ACEOF | |
25672 | /* confdefs.h. */ | |
25673 | _ACEOF | |
25674 | cat confdefs.h >>conftest.$ac_ext | |
25675 | cat >>conftest.$ac_ext <<_ACEOF | |
25676 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25677 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
25678 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25679 | #define remove innocuous_remove | |
25680 | ||
a848cd7e SC |
25681 | /* System header to define __stub macros and hopefully few prototypes, |
25682 | which can conflict with char remove (); below. | |
25683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25684 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25685 | |
a848cd7e SC |
25686 | #ifdef __STDC__ |
25687 | # include <limits.h> | |
25688 | #else | |
25689 | # include <assert.h> | |
25690 | #endif | |
ac1cb8d3 VS |
25691 | |
25692 | #undef remove | |
25693 | ||
a848cd7e SC |
25694 | /* Override any gcc2 internal prototype to avoid an error. */ |
25695 | #ifdef __cplusplus | |
25696 | extern "C" | |
25697 | { | |
25698 | #endif | |
25699 | /* We use char because int might match the return type of a gcc2 | |
25700 | builtin and then its argument prototype would still apply. */ | |
25701 | char remove (); | |
25702 | /* The GNU C library defines this for functions which it implements | |
25703 | to always fail with ENOSYS. Some functions are actually named | |
25704 | something starting with __ and the normal name is an alias. */ | |
25705 | #if defined (__stub_remove) || defined (__stub___remove) | |
25706 | choke me | |
25707 | #else | |
25708 | char (*f) () = remove; | |
25709 | #endif | |
25710 | #ifdef __cplusplus | |
25711 | } | |
25712 | #endif | |
25713 | ||
25714 | int | |
25715 | main () | |
25716 | { | |
25717 | return f != remove; | |
25718 | ; | |
25719 | return 0; | |
25720 | } | |
25721 | _ACEOF | |
25722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25724 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25725 | ac_status=$? |
ac1cb8d3 VS |
25726 | grep -v '^ *+' conftest.er1 >conftest.err |
25727 | rm -f conftest.er1 | |
25728 | cat conftest.err >&5 | |
a848cd7e SC |
25729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25730 | (exit $ac_status); } && | |
89be85c2 VS |
25731 | { ac_try='test -z "$ac_c_werror_flag" |
25732 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25734 | (eval $ac_try) 2>&5 | |
25735 | ac_status=$? | |
25736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25737 | (exit $ac_status); }; } && | |
25738 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25740 | (eval $ac_try) 2>&5 | |
25741 | ac_status=$? | |
25742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25743 | (exit $ac_status); }; }; then | |
25744 | ac_cv_func_remove=yes | |
25745 | else | |
25746 | echo "$as_me: failed program was:" >&5 | |
25747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25748 | ||
25749 | ac_cv_func_remove=no | |
25750 | fi | |
ac1cb8d3 VS |
25751 | rm -f conftest.err conftest.$ac_objext \ |
25752 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25753 | fi |
25754 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25755 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
25756 | ||
25757 | if test $ac_cv_func_remove = no; then | |
25758 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
25759 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25760 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25762 | else | |
25763 | ac_check_lib_save_LIBS=$LIBS | |
25764 | LIBS="-lposix $LIBS" | |
25765 | cat >conftest.$ac_ext <<_ACEOF | |
25766 | /* confdefs.h. */ | |
25767 | _ACEOF | |
25768 | cat confdefs.h >>conftest.$ac_ext | |
25769 | cat >>conftest.$ac_ext <<_ACEOF | |
25770 | /* end confdefs.h. */ | |
25771 | ||
25772 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25773 | #ifdef __cplusplus | |
25774 | extern "C" | |
25775 | #endif | |
25776 | /* We use char because int might match the return type of a gcc2 | |
25777 | builtin and then its argument prototype would still apply. */ | |
25778 | char remove (); | |
25779 | int | |
25780 | main () | |
25781 | { | |
25782 | remove (); | |
25783 | ; | |
25784 | return 0; | |
25785 | } | |
25786 | _ACEOF | |
25787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25789 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25790 | ac_status=$? |
ac1cb8d3 VS |
25791 | grep -v '^ *+' conftest.er1 >conftest.err |
25792 | rm -f conftest.er1 | |
25793 | cat conftest.err >&5 | |
a848cd7e SC |
25794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25795 | (exit $ac_status); } && | |
89be85c2 VS |
25796 | { ac_try='test -z "$ac_c_werror_flag" |
25797 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25799 | (eval $ac_try) 2>&5 | |
25800 | ac_status=$? | |
25801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25802 | (exit $ac_status); }; } && | |
25803 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25805 | (eval $ac_try) 2>&5 | |
25806 | ac_status=$? | |
25807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25808 | (exit $ac_status); }; }; then | |
25809 | ac_cv_lib_posix_remove=yes | |
25810 | else | |
25811 | echo "$as_me: failed program was:" >&5 | |
25812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25813 | ||
25814 | ac_cv_lib_posix_remove=no | |
25815 | fi | |
ac1cb8d3 VS |
25816 | rm -f conftest.err conftest.$ac_objext \ |
25817 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25818 | LIBS=$ac_check_lib_save_LIBS |
25819 | fi | |
25820 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25821 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25822 | if test $ac_cv_lib_posix_remove = yes; then | |
25823 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
25824 | fi | |
25825 | ||
25826 | fi | |
25827 | ||
25828 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
25829 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
25830 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25831 | if test "${ac_cv_func_shmat+set}" = set; then | |
25832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25833 | else | |
25834 | cat >conftest.$ac_ext <<_ACEOF | |
25835 | /* confdefs.h. */ | |
25836 | _ACEOF | |
25837 | cat confdefs.h >>conftest.$ac_ext | |
25838 | cat >>conftest.$ac_ext <<_ACEOF | |
25839 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25840 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25841 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25842 | #define shmat innocuous_shmat | |
25843 | ||
a848cd7e SC |
25844 | /* System header to define __stub macros and hopefully few prototypes, |
25845 | which can conflict with char shmat (); below. | |
25846 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25847 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25848 | |
a848cd7e SC |
25849 | #ifdef __STDC__ |
25850 | # include <limits.h> | |
25851 | #else | |
25852 | # include <assert.h> | |
25853 | #endif | |
ac1cb8d3 VS |
25854 | |
25855 | #undef shmat | |
25856 | ||
a848cd7e SC |
25857 | /* Override any gcc2 internal prototype to avoid an error. */ |
25858 | #ifdef __cplusplus | |
25859 | extern "C" | |
25860 | { | |
25861 | #endif | |
25862 | /* We use char because int might match the return type of a gcc2 | |
25863 | builtin and then its argument prototype would still apply. */ | |
25864 | char shmat (); | |
25865 | /* The GNU C library defines this for functions which it implements | |
25866 | to always fail with ENOSYS. Some functions are actually named | |
25867 | something starting with __ and the normal name is an alias. */ | |
25868 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25869 | choke me | |
25870 | #else | |
25871 | char (*f) () = shmat; | |
25872 | #endif | |
25873 | #ifdef __cplusplus | |
25874 | } | |
25875 | #endif | |
25876 | ||
25877 | int | |
25878 | main () | |
25879 | { | |
25880 | return f != shmat; | |
25881 | ; | |
25882 | return 0; | |
25883 | } | |
25884 | _ACEOF | |
25885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25887 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25888 | ac_status=$? |
ac1cb8d3 VS |
25889 | grep -v '^ *+' conftest.er1 >conftest.err |
25890 | rm -f conftest.er1 | |
25891 | cat conftest.err >&5 | |
a848cd7e SC |
25892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25893 | (exit $ac_status); } && | |
89be85c2 VS |
25894 | { ac_try='test -z "$ac_c_werror_flag" |
25895 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25897 | (eval $ac_try) 2>&5 | |
25898 | ac_status=$? | |
25899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25900 | (exit $ac_status); }; } && | |
25901 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25903 | (eval $ac_try) 2>&5 | |
25904 | ac_status=$? | |
25905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25906 | (exit $ac_status); }; }; then | |
25907 | ac_cv_func_shmat=yes | |
25908 | else | |
25909 | echo "$as_me: failed program was:" >&5 | |
25910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25911 | ||
25912 | ac_cv_func_shmat=no | |
25913 | fi | |
ac1cb8d3 VS |
25914 | rm -f conftest.err conftest.$ac_objext \ |
25915 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25916 | fi |
25917 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25918 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
25919 | ||
25920 | if test $ac_cv_func_shmat = no; then | |
25921 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
25922 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25923 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25925 | else | |
25926 | ac_check_lib_save_LIBS=$LIBS | |
25927 | LIBS="-lipc $LIBS" | |
25928 | cat >conftest.$ac_ext <<_ACEOF | |
25929 | /* confdefs.h. */ | |
25930 | _ACEOF | |
25931 | cat confdefs.h >>conftest.$ac_ext | |
25932 | cat >>conftest.$ac_ext <<_ACEOF | |
25933 | /* end confdefs.h. */ | |
25934 | ||
25935 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25936 | #ifdef __cplusplus | |
25937 | extern "C" | |
25938 | #endif | |
25939 | /* We use char because int might match the return type of a gcc2 | |
25940 | builtin and then its argument prototype would still apply. */ | |
25941 | char shmat (); | |
25942 | int | |
25943 | main () | |
25944 | { | |
25945 | shmat (); | |
25946 | ; | |
25947 | return 0; | |
25948 | } | |
25949 | _ACEOF | |
25950 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25952 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25953 | ac_status=$? |
ac1cb8d3 VS |
25954 | grep -v '^ *+' conftest.er1 >conftest.err |
25955 | rm -f conftest.er1 | |
25956 | cat conftest.err >&5 | |
a848cd7e SC |
25957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25958 | (exit $ac_status); } && | |
89be85c2 VS |
25959 | { ac_try='test -z "$ac_c_werror_flag" |
25960 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25962 | (eval $ac_try) 2>&5 | |
25963 | ac_status=$? | |
25964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25965 | (exit $ac_status); }; } && | |
25966 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25968 | (eval $ac_try) 2>&5 | |
25969 | ac_status=$? | |
25970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25971 | (exit $ac_status); }; }; then | |
25972 | ac_cv_lib_ipc_shmat=yes | |
25973 | else | |
25974 | echo "$as_me: failed program was:" >&5 | |
25975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25976 | ||
25977 | ac_cv_lib_ipc_shmat=no | |
25978 | fi | |
ac1cb8d3 VS |
25979 | rm -f conftest.err conftest.$ac_objext \ |
25980 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25981 | LIBS=$ac_check_lib_save_LIBS |
25982 | fi | |
25983 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25984 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25985 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25986 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25987 | fi | |
25988 | ||
25989 | fi | |
25990 | fi | |
25991 | ||
25992 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25993 | ac_save_LDFLAGS=$LDFLAGS | |
25994 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25995 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25996 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25997 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25998 | # These have to be linked with before -lX11, unlike the other | |
25999 | # libraries we check for below, so use a different variable. | |
26000 | # John Interrante, Karl Berry | |
26001 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
26002 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
26003 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
26004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26005 | else | |
26006 | ac_check_lib_save_LIBS=$LIBS | |
26007 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
26008 | cat >conftest.$ac_ext <<_ACEOF | |
26009 | /* confdefs.h. */ | |
26010 | _ACEOF | |
26011 | cat confdefs.h >>conftest.$ac_ext | |
26012 | cat >>conftest.$ac_ext <<_ACEOF | |
26013 | /* end confdefs.h. */ | |
26014 | ||
26015 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26016 | #ifdef __cplusplus | |
26017 | extern "C" | |
26018 | #endif | |
26019 | /* We use char because int might match the return type of a gcc2 | |
26020 | builtin and then its argument prototype would still apply. */ | |
26021 | char IceConnectionNumber (); | |
26022 | int | |
26023 | main () | |
26024 | { | |
26025 | IceConnectionNumber (); | |
26026 | ; | |
26027 | return 0; | |
26028 | } | |
26029 | _ACEOF | |
26030 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26032 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26033 | ac_status=$? |
ac1cb8d3 VS |
26034 | grep -v '^ *+' conftest.er1 >conftest.err |
26035 | rm -f conftest.er1 | |
26036 | cat conftest.err >&5 | |
a848cd7e SC |
26037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26038 | (exit $ac_status); } && | |
89be85c2 VS |
26039 | { ac_try='test -z "$ac_c_werror_flag" |
26040 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26042 | (eval $ac_try) 2>&5 | |
26043 | ac_status=$? | |
26044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26045 | (exit $ac_status); }; } && | |
26046 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26048 | (eval $ac_try) 2>&5 | |
26049 | ac_status=$? | |
26050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26051 | (exit $ac_status); }; }; then | |
26052 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
26053 | else | |
26054 | echo "$as_me: failed program was:" >&5 | |
26055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26056 | ||
26057 | ac_cv_lib_ICE_IceConnectionNumber=no | |
26058 | fi | |
ac1cb8d3 VS |
26059 | rm -f conftest.err conftest.$ac_objext \ |
26060 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26061 | LIBS=$ac_check_lib_save_LIBS |
26062 | fi | |
26063 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
26064 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
26065 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
26066 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
26067 | fi | |
26068 | ||
26069 | LDFLAGS=$ac_save_LDFLAGS | |
26070 | ||
26071 | fi | |
26072 | ||
26073 | ||
26074 | if test "$no_x" = "yes"; then | |
26075 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
26076 | echo "$as_me: error: X11 not found" >&2;} | |
26077 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
26078 | fi | |
26079 | ||
74b84332 VS |
26080 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
26081 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
26082 | AFMINSTALL=afminstall |
26083 | COMPILED_X_PROGRAM=0 | |
26084 | ||
74b84332 VS |
26085 | fi |
26086 | ||
26087 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
26088 | if test "$wxUSE_NANOX" = "yes"; then |
26089 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
26090 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
26091 | if test "x$MICROWIN" = x ; then | |
26092 | echo "$as_me:$LINENO: result: not found" >&5 | |
26093 | echo "${ECHO_T}not found" >&6 | |
26094 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
26095 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
26096 | { (exit 1); exit 1; }; } | |
26097 | else | |
26098 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
26099 | echo "${ECHO_T}$MICROWIN" >&6 | |
26100 | cat >>confdefs.h <<\_ACEOF | |
26101 | #define wxUSE_NANOX 1 | |
26102 | _ACEOF | |
26103 | ||
26104 | fi | |
26105 | fi | |
26106 | ||
26107 | if test "$wxUSE_UNICODE" = "yes"; then | |
26108 | ||
26109 | succeeded=no | |
26110 | ||
26111 | if test -z "$PKG_CONFIG"; then | |
26112 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26113 | set dummy pkg-config; ac_word=$2 | |
26114 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26116 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26118 | else | |
26119 | case $PKG_CONFIG in | |
26120 | [\\/]* | ?:[\\/]*) | |
26121 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26122 | ;; | |
26123 | *) | |
26124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26125 | for as_dir in $PATH | |
26126 | do | |
26127 | IFS=$as_save_IFS | |
26128 | test -z "$as_dir" && as_dir=. | |
26129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26130 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26131 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26132 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26133 | break 2 | |
26134 | fi | |
26135 | done | |
26136 | done | |
26137 | ||
26138 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26139 | ;; | |
26140 | esac | |
26141 | fi | |
26142 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26143 | ||
26144 | if test -n "$PKG_CONFIG"; then | |
26145 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26146 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26147 | else | |
26148 | echo "$as_me:$LINENO: result: no" >&5 | |
26149 | echo "${ECHO_T}no" >&6 | |
26150 | fi | |
26151 | ||
26152 | fi | |
26153 | ||
26154 | if test "$PKG_CONFIG" = "no" ; then | |
26155 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26156 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26157 | echo "*** to the full path to pkg-config." | |
26158 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26159 | else | |
26160 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26161 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26162 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
26163 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
26164 | ||
26165 | if $PKG_CONFIG --exists "pangox" ; then | |
26166 | echo "$as_me:$LINENO: result: yes" >&5 | |
26167 | echo "${ECHO_T}yes" >&6 | |
26168 | succeeded=yes | |
26169 | ||
26170 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
26171 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
26172 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
26173 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
26174 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
26175 | ||
26176 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
26177 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
26178 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
26179 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
26180 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
26181 | else | |
26182 | PANGOX_CFLAGS="" | |
26183 | PANGOX_LIBS="" | |
26184 | ## If we have a custom action on failure, don't print errors, but | |
26185 | ## do set a variable so people can do so. | |
26186 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
26187 | ||
26188 | fi | |
26189 | ||
26190 | ||
26191 | ||
26192 | else | |
26193 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26194 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26195 | fi | |
26196 | fi | |
26197 | ||
26198 | if test $succeeded = yes; then | |
26199 | ||
26200 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
26201 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
26202 | ||
26203 | else | |
26204 | ||
26205 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
26206 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
26207 | { (exit 1); exit 1; }; } | |
26208 | ||
26209 | ||
26210 | fi | |
26211 | ||
26212 | ||
26213 | succeeded=no | |
26214 | ||
26215 | if test -z "$PKG_CONFIG"; then | |
26216 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26217 | set dummy pkg-config; ac_word=$2 | |
26218 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26220 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26222 | else | |
26223 | case $PKG_CONFIG in | |
26224 | [\\/]* | ?:[\\/]*) | |
26225 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26226 | ;; | |
26227 | *) | |
26228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26229 | for as_dir in $PATH | |
26230 | do | |
26231 | IFS=$as_save_IFS | |
26232 | test -z "$as_dir" && as_dir=. | |
26233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26234 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26235 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26237 | break 2 | |
26238 | fi | |
26239 | done | |
26240 | done | |
26241 | ||
26242 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26243 | ;; | |
26244 | esac | |
26245 | fi | |
26246 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26247 | ||
26248 | if test -n "$PKG_CONFIG"; then | |
26249 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26250 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26251 | else | |
26252 | echo "$as_me:$LINENO: result: no" >&5 | |
26253 | echo "${ECHO_T}no" >&6 | |
26254 | fi | |
26255 | ||
26256 | fi | |
26257 | ||
26258 | if test "$PKG_CONFIG" = "no" ; then | |
26259 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26260 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26261 | echo "*** to the full path to pkg-config." | |
26262 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26263 | else | |
26264 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26265 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26266 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
26267 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
26268 | ||
26269 | if $PKG_CONFIG --exists "pangoft2" ; then | |
26270 | echo "$as_me:$LINENO: result: yes" >&5 | |
26271 | echo "${ECHO_T}yes" >&6 | |
26272 | succeeded=yes | |
26273 | ||
26274 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
26275 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
26276 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
26277 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
26278 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
26279 | ||
26280 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
26281 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
26282 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
26283 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
26284 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
26285 | else | |
26286 | PANGOFT2_CFLAGS="" | |
26287 | PANGOFT2_LIBS="" | |
26288 | ## If we have a custom action on failure, don't print errors, but | |
26289 | ## do set a variable so people can do so. | |
26290 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
26291 | ||
26292 | fi | |
26293 | ||
26294 | ||
26295 | ||
26296 | else | |
26297 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26298 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26299 | fi | |
26300 | fi | |
26301 | ||
26302 | if test $succeeded = yes; then | |
26303 | ||
26304 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
26305 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
26306 | ||
26307 | else | |
26308 | ||
26309 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
26310 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
26311 | wxUSE_PRINTING_ARCHITECTURE="no" | |
26312 | ||
26313 | ||
26314 | fi | |
26315 | ||
26316 | ||
26317 | succeeded=no | |
26318 | ||
26319 | if test -z "$PKG_CONFIG"; then | |
26320 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26321 | set dummy pkg-config; ac_word=$2 | |
26322 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26323 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26324 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26326 | else | |
26327 | case $PKG_CONFIG in | |
26328 | [\\/]* | ?:[\\/]*) | |
26329 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26330 | ;; | |
26331 | *) | |
26332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26333 | for as_dir in $PATH | |
26334 | do | |
26335 | IFS=$as_save_IFS | |
26336 | test -z "$as_dir" && as_dir=. | |
26337 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26338 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26339 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26340 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26341 | break 2 | |
26342 | fi | |
26343 | done | |
26344 | done | |
26345 | ||
26346 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26347 | ;; | |
26348 | esac | |
26349 | fi | |
26350 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26351 | ||
26352 | if test -n "$PKG_CONFIG"; then | |
26353 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26354 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26355 | else | |
26356 | echo "$as_me:$LINENO: result: no" >&5 | |
26357 | echo "${ECHO_T}no" >&6 | |
26358 | fi | |
26359 | ||
26360 | fi | |
26361 | ||
26362 | if test "$PKG_CONFIG" = "no" ; then | |
26363 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26364 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26365 | echo "*** to the full path to pkg-config." | |
26366 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26367 | else | |
26368 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26369 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26370 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
26371 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
26372 | ||
26373 | if $PKG_CONFIG --exists "pangoxft" ; then | |
26374 | echo "$as_me:$LINENO: result: yes" >&5 | |
26375 | echo "${ECHO_T}yes" >&6 | |
26376 | succeeded=yes | |
26377 | ||
26378 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
26379 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
26380 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
26381 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
26382 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
26383 | ||
26384 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
26385 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
26386 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
26387 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
26388 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
26389 | else | |
26390 | PANGOXFT_CFLAGS="" | |
26391 | PANGOXFT_LIBS="" | |
26392 | ## If we have a custom action on failure, don't print errors, but | |
26393 | ## do set a variable so people can do so. | |
26394 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
26395 | ||
26396 | fi | |
26397 | ||
26398 | ||
26399 | ||
26400 | else | |
26401 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26402 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26403 | fi | |
26404 | fi | |
26405 | ||
26406 | if test $succeeded = yes; then | |
26407 | ||
4ae1af05 MB |
26408 | cat >>confdefs.h <<\_ACEOF |
26409 | #define HAVE_PANGO_XFT 1 | |
26410 | _ACEOF | |
26411 | ||
a848cd7e SC |
26412 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
26413 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
26414 | ||
26415 | else | |
26416 | ||
26417 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
26418 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
26419 | ||
26420 | ||
26421 | fi | |
26422 | ||
304205f1 VS |
26423 | save_CFLAGS="$CFLAGS" |
26424 | save_LIBS="$LIBS" | |
26425 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
26426 | LIBS="$LIBS $PANGOX_LIBS" | |
26427 | ||
26428 | for ac_func in pango_font_family_is_monospace | |
26429 | do | |
26430 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26431 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26432 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26433 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26435 | else | |
26436 | cat >conftest.$ac_ext <<_ACEOF | |
26437 | /* confdefs.h. */ | |
26438 | _ACEOF | |
26439 | cat confdefs.h >>conftest.$ac_ext | |
26440 | cat >>conftest.$ac_ext <<_ACEOF | |
26441 | /* end confdefs.h. */ | |
26442 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
26443 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26444 | #define $ac_func innocuous_$ac_func | |
26445 | ||
26446 | /* System header to define __stub macros and hopefully few prototypes, | |
26447 | which can conflict with char $ac_func (); below. | |
26448 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26449 | <limits.h> exists even on freestanding compilers. */ | |
26450 | ||
26451 | #ifdef __STDC__ | |
26452 | # include <limits.h> | |
26453 | #else | |
26454 | # include <assert.h> | |
26455 | #endif | |
26456 | ||
26457 | #undef $ac_func | |
26458 | ||
26459 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26460 | #ifdef __cplusplus | |
26461 | extern "C" | |
26462 | { | |
26463 | #endif | |
26464 | /* We use char because int might match the return type of a gcc2 | |
26465 | builtin and then its argument prototype would still apply. */ | |
26466 | char $ac_func (); | |
26467 | /* The GNU C library defines this for functions which it implements | |
26468 | to always fail with ENOSYS. Some functions are actually named | |
26469 | something starting with __ and the normal name is an alias. */ | |
26470 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26471 | choke me | |
26472 | #else | |
26473 | char (*f) () = $ac_func; | |
26474 | #endif | |
26475 | #ifdef __cplusplus | |
26476 | } | |
26477 | #endif | |
26478 | ||
26479 | int | |
26480 | main () | |
26481 | { | |
26482 | return f != $ac_func; | |
26483 | ; | |
26484 | return 0; | |
26485 | } | |
26486 | _ACEOF | |
26487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26489 | (eval $ac_link) 2>conftest.er1 | |
26490 | ac_status=$? | |
26491 | grep -v '^ *+' conftest.er1 >conftest.err | |
26492 | rm -f conftest.er1 | |
26493 | cat conftest.err >&5 | |
26494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26495 | (exit $ac_status); } && | |
89be85c2 VS |
26496 | { ac_try='test -z "$ac_c_werror_flag" |
26497 | || test ! -s conftest.err' | |
304205f1 VS |
26498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26499 | (eval $ac_try) 2>&5 | |
26500 | ac_status=$? | |
26501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26502 | (exit $ac_status); }; } && | |
26503 | { ac_try='test -s conftest$ac_exeext' | |
26504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26505 | (eval $ac_try) 2>&5 | |
26506 | ac_status=$? | |
26507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26508 | (exit $ac_status); }; }; then | |
26509 | eval "$as_ac_var=yes" | |
26510 | else | |
26511 | echo "$as_me: failed program was:" >&5 | |
26512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26513 | ||
26514 | eval "$as_ac_var=no" | |
26515 | fi | |
26516 | rm -f conftest.err conftest.$ac_objext \ | |
26517 | conftest$ac_exeext conftest.$ac_ext | |
26518 | fi | |
26519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26520 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26521 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26522 | cat >>confdefs.h <<_ACEOF | |
26523 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26524 | _ACEOF | |
26525 | ||
26526 | fi | |
26527 | done | |
26528 | ||
26529 | CFLAGS="$save_CFLAGS" | |
26530 | LIBS="$save_LIBS" | |
a848cd7e SC |
26531 | fi |
26532 | ||
26533 | wxUSE_UNIVERSAL="yes" | |
26534 | ||
26535 | if test "$wxUSE_NANOX" = "yes"; then | |
26536 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
26537 | 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" | |
26538 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
26539 | else | |
26540 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
26541 | fi | |
26542 | ||
a848cd7e SC |
26543 | TOOLKIT=X11 |
26544 | GUIDIST=X11_DIST | |
26545 | fi | |
26546 | ||
26547 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
26548 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
26549 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 26550 | |
74b84332 VS |
26551 | ac_find_includes= |
26552 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
26553 | do | |
26554 | if test -f "$ac_dir/Xm/Xm.h"; then | |
26555 | ac_find_includes=$ac_dir | |
26556 | break | |
26557 | fi | |
26558 | done | |
a848cd7e | 26559 | |
74b84332 VS |
26560 | if test "$ac_find_includes" != "" ; then |
26561 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
26562 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
26563 | ||
26564 | if test "x$ac_find_includes" = "x/usr/include"; then | |
26565 | ac_path_to_include="" | |
26566 | else | |
26567 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
26568 | result=$? | |
26569 | if test $result = 0; then | |
26570 | ac_path_to_include="" | |
26571 | else | |
26572 | ac_path_to_include=" -I$ac_find_includes" | |
26573 | fi | |
a848cd7e SC |
26574 | fi |
26575 | ||
74b84332 VS |
26576 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
26577 | else | |
26578 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26579 | /* confdefs.h. */ |
26580 | _ACEOF | |
26581 | cat confdefs.h >>conftest.$ac_ext | |
26582 | cat >>conftest.$ac_ext <<_ACEOF | |
26583 | /* end confdefs.h. */ | |
26584 | ||
74b84332 VS |
26585 | #include <Xm/Xm.h> |
26586 | ||
a848cd7e SC |
26587 | int |
26588 | main () | |
26589 | { | |
26590 | ||
74b84332 VS |
26591 | int version; |
26592 | version = xmUseVersion; | |
26593 | ||
a848cd7e SC |
26594 | ; |
26595 | return 0; | |
26596 | } | |
26597 | _ACEOF | |
74b84332 VS |
26598 | rm -f conftest.$ac_objext |
26599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26600 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26601 | ac_status=$? |
ac1cb8d3 VS |
26602 | grep -v '^ *+' conftest.er1 >conftest.err |
26603 | rm -f conftest.er1 | |
26604 | cat conftest.err >&5 | |
a848cd7e SC |
26605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26606 | (exit $ac_status); } && | |
89be85c2 VS |
26607 | { ac_try='test -z "$ac_c_werror_flag" |
26608 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26610 | (eval $ac_try) 2>&5 | |
26611 | ac_status=$? | |
26612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26613 | (exit $ac_status); }; } && | |
74b84332 | 26614 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26616 | (eval $ac_try) 2>&5 | |
26617 | ac_status=$? | |
26618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26619 | (exit $ac_status); }; }; then | |
74b84332 VS |
26620 | |
26621 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26622 | echo "${ECHO_T}found in default search path" >&6 | |
26623 | COMPILED_X_PROGRAM=1 | |
26624 | ||
a848cd7e SC |
26625 | else |
26626 | echo "$as_me: failed program was:" >&5 | |
26627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26628 | ||
a848cd7e | 26629 | |
74b84332 VS |
26630 | echo "$as_me:$LINENO: result: no" >&5 |
26631 | echo "${ECHO_T}no" >&6 | |
26632 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
26633 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
26634 | { (exit 1); exit 1; }; } | |
a848cd7e | 26635 | |
a848cd7e | 26636 | |
a848cd7e | 26637 | fi |
74b84332 VS |
26638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
26639 | fi | |
26640 | ||
26641 | if test "$COMPILED_X_PROGRAM" = 0; then | |
26642 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
26643 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
26644 | ||
26645 | ac_find_libraries= | |
26646 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26647 | do | |
26648 | for ac_extension in a so sl dylib; do | |
26649 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
26650 | ac_find_libraries=$ac_dir | |
26651 | break 2 | |
a848cd7e | 26652 | fi |
74b84332 VS |
26653 | done |
26654 | done | |
a848cd7e | 26655 | |
74b84332 VS |
26656 | if test "$ac_find_libraries" != "" ; then |
26657 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26658 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 26659 | |
74b84332 VS |
26660 | |
26661 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26662 | result=$? | |
26663 | if test $result = 0; then | |
26664 | ac_path_to_link="" | |
a848cd7e | 26665 | else |
74b84332 VS |
26666 | ac_path_to_link=" -L$ac_find_libraries" |
26667 | fi | |
26668 | ||
26669 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26670 | else | |
26671 | save_CFLAGS=$CFLAGS | |
26672 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26673 | ||
26674 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26675 | /* confdefs.h. */ |
26676 | _ACEOF | |
26677 | cat confdefs.h >>conftest.$ac_ext | |
26678 | cat >>conftest.$ac_ext <<_ACEOF | |
26679 | /* end confdefs.h. */ | |
26680 | ||
74b84332 VS |
26681 | #include <Xm/Xm.h> |
26682 | ||
a848cd7e SC |
26683 | int |
26684 | main () | |
26685 | { | |
74b84332 VS |
26686 | |
26687 | int version; | |
26688 | version = xmUseVersion; | |
26689 | ||
a848cd7e SC |
26690 | ; |
26691 | return 0; | |
26692 | } | |
26693 | _ACEOF | |
74b84332 VS |
26694 | rm -f conftest.$ac_objext |
26695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26696 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26697 | ac_status=$? |
ac1cb8d3 VS |
26698 | grep -v '^ *+' conftest.er1 >conftest.err |
26699 | rm -f conftest.er1 | |
26700 | cat conftest.err >&5 | |
a848cd7e SC |
26701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26702 | (exit $ac_status); } && | |
89be85c2 VS |
26703 | { ac_try='test -z "$ac_c_werror_flag" |
26704 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26706 | (eval $ac_try) 2>&5 | |
26707 | ac_status=$? | |
26708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26709 | (exit $ac_status); }; } && | |
74b84332 | 26710 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26712 | (eval $ac_try) 2>&5 | |
26713 | ac_status=$? | |
26714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26715 | (exit $ac_status); }; }; then | |
74b84332 VS |
26716 | |
26717 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26718 | echo "${ECHO_T}found in default search path" >&6 | |
26719 | COMPILED_X_PROGRAM=1 | |
26720 | ||
a848cd7e SC |
26721 | else |
26722 | echo "$as_me: failed program was:" >&5 | |
26723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26724 | ||
74b84332 VS |
26725 | |
26726 | echo "$as_me:$LINENO: result: no" >&5 | |
26727 | echo "${ECHO_T}no" >&6 | |
26728 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
26729 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
26730 | { (exit 1); exit 1; }; } | |
26731 | ||
26732 | ||
26733 | fi | |
26734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26735 | ||
26736 | CFLAGS=$save_CFLAGS | |
26737 | fi | |
26738 | fi | |
26739 | ||
26740 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
26741 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
26742 | libp_link="" | |
26743 | libsm_ice_link="" | |
26744 | libs_found=0 | |
26745 | for libp in "" " -lXp"; do | |
26746 | if test "$libs_found" = "0"; then | |
26747 | for libsm_ice in "" " -lSM -lICE"; do | |
26748 | if test "$libs_found" = "0"; then | |
26749 | save_LIBS="$LIBS" | |
26750 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
26751 | save_CFLAGS=$CFLAGS | |
26752 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26753 | ||
26754 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26755 | /* confdefs.h. */ |
26756 | _ACEOF | |
26757 | cat confdefs.h >>conftest.$ac_ext | |
26758 | cat >>conftest.$ac_ext <<_ACEOF | |
26759 | /* end confdefs.h. */ | |
26760 | ||
74b84332 VS |
26761 | #include <Xm/Xm.h> |
26762 | #include <Xm/List.h> | |
26763 | ||
a848cd7e SC |
26764 | int |
26765 | main () | |
26766 | { | |
74b84332 VS |
26767 | |
26768 | XmString string = NULL; | |
26769 | Widget w = NULL; | |
26770 | int position = 0; | |
26771 | XmListAddItem(w, string, position); | |
26772 | ||
a848cd7e SC |
26773 | ; |
26774 | return 0; | |
26775 | } | |
26776 | _ACEOF | |
26777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26779 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26780 | ac_status=$? |
ac1cb8d3 VS |
26781 | grep -v '^ *+' conftest.er1 >conftest.err |
26782 | rm -f conftest.er1 | |
26783 | cat conftest.err >&5 | |
a848cd7e SC |
26784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26785 | (exit $ac_status); } && | |
89be85c2 VS |
26786 | { ac_try='test -z "$ac_c_werror_flag" |
26787 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26789 | (eval $ac_try) 2>&5 | |
26790 | ac_status=$? | |
26791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26792 | (exit $ac_status); }; } && | |
26793 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26795 | (eval $ac_try) 2>&5 | |
26796 | ac_status=$? | |
26797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26798 | (exit $ac_status); }; }; then | |
26799 | ||
26800 | libp_link="$libp" | |
26801 | libsm_ice_link="$libsm_ice" | |
26802 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
26803 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
26804 | libs_found=1 | |
26805 | ||
26806 | else | |
26807 | echo "$as_me: failed program was:" >&5 | |
26808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26809 | ||
26810 | ||
26811 | ||
26812 | fi | |
ac1cb8d3 VS |
26813 | rm -f conftest.err conftest.$ac_objext \ |
26814 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26815 | |
26816 | LIBS="$save_LIBS" | |
26817 | CFLAGS=$save_CFLAGS | |
26818 | fi | |
26819 | done | |
26820 | fi | |
26821 | done | |
26822 | ||
26823 | if test "$libs_found" = "0"; then | |
26824 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
26825 | echo "${ECHO_T}can't find the right libraries" >&6 | |
26826 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
26827 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
26828 | { (exit 1); exit 1; }; } | |
26829 | fi | |
26830 | ||
26831 | save_CFLAGS=$CFLAGS | |
26832 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26833 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
26834 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
26835 | cat >conftest.$ac_ext <<_ACEOF | |
26836 | /* confdefs.h. */ | |
26837 | _ACEOF | |
26838 | cat confdefs.h >>conftest.$ac_ext | |
26839 | cat >>conftest.$ac_ext <<_ACEOF | |
26840 | /* end confdefs.h. */ | |
26841 | ||
26842 | #include <Xm/Xm.h> | |
26843 | ||
26844 | int | |
26845 | main () | |
26846 | { | |
26847 | ||
26848 | #if XmVersion < 2000 | |
26849 | #error "Not Motif 2" | |
26850 | #endif | |
26851 | ||
26852 | ; | |
26853 | return 0; | |
26854 | } | |
26855 | _ACEOF | |
26856 | rm -f conftest.$ac_objext | |
26857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26858 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26859 | ac_status=$? |
ac1cb8d3 VS |
26860 | grep -v '^ *+' conftest.er1 >conftest.err |
26861 | rm -f conftest.er1 | |
26862 | cat conftest.err >&5 | |
a848cd7e SC |
26863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26864 | (exit $ac_status); } && | |
89be85c2 VS |
26865 | { ac_try='test -z "$ac_c_werror_flag" |
26866 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26868 | (eval $ac_try) 2>&5 | |
26869 | ac_status=$? | |
26870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26871 | (exit $ac_status); }; } && | |
26872 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26874 | (eval $ac_try) 2>&5 | |
26875 | ac_status=$? | |
26876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26877 | (exit $ac_status); }; }; then | |
26878 | ||
26879 | cat >>confdefs.h <<\_ACEOF | |
26880 | #define __WXMOTIF20__ 1 | |
26881 | _ACEOF | |
26882 | ||
26883 | echo "$as_me:$LINENO: result: found" >&5 | |
26884 | echo "${ECHO_T}found" >&6 | |
26885 | ||
26886 | else | |
26887 | echo "$as_me: failed program was:" >&5 | |
26888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26889 | ||
26890 | ||
26891 | cat >>confdefs.h <<\_ACEOF | |
26892 | #define __WXMOTIF20__ 0 | |
26893 | _ACEOF | |
26894 | ||
26895 | echo "$as_me:$LINENO: result: not found" >&5 | |
26896 | echo "${ECHO_T}not found" >&6 | |
26897 | ||
26898 | fi | |
ac1cb8d3 | 26899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26900 | CFLAGS=$save_CFLAGS |
26901 | ||
26902 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
26903 | TOOLKIT=MOTIF |
26904 | GUIDIST=MOTIF_DIST | |
26905 | fi | |
26906 | ||
74b84332 | 26907 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
26908 | if test "$wxUSE_LIBXPM" = "sys"; then |
26909 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26910 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26911 | ||
26912 | ac_find_libraries= | |
26913 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26914 | do | |
26915 | for ac_extension in a so sl dylib; do | |
26916 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26917 | ac_find_libraries=$ac_dir | |
26918 | break 2 | |
26919 | fi | |
26920 | done | |
26921 | done | |
26922 | ||
26923 | if test "$ac_find_libraries" != "" ; then | |
26924 | ||
26925 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26926 | result=$? | |
26927 | if test $result = 0; then | |
26928 | ac_path_to_link="" | |
26929 | else | |
26930 | ac_path_to_link=" -L$ac_find_libraries" | |
26931 | fi | |
26932 | ||
26933 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26934 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26935 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26936 | ||
26937 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26938 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26939 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26941 | else | |
26942 | ||
26943 | save_CFLAGS=$CFLAGS | |
26944 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26945 | ||
26946 | cat >conftest.$ac_ext <<_ACEOF | |
26947 | /* confdefs.h. */ | |
26948 | _ACEOF | |
26949 | cat confdefs.h >>conftest.$ac_ext | |
26950 | cat >>conftest.$ac_ext <<_ACEOF | |
26951 | /* end confdefs.h. */ | |
26952 | ||
26953 | #include <X11/xpm.h> | |
26954 | ||
26955 | int | |
26956 | main () | |
26957 | { | |
26958 | ||
26959 | int version; | |
26960 | version = XpmLibraryVersion(); | |
26961 | ||
26962 | ; | |
26963 | return 0; | |
26964 | } | |
26965 | _ACEOF | |
26966 | rm -f conftest.$ac_objext | |
26967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26968 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26969 | ac_status=$? |
ac1cb8d3 VS |
26970 | grep -v '^ *+' conftest.er1 >conftest.err |
26971 | rm -f conftest.er1 | |
26972 | cat conftest.err >&5 | |
a848cd7e SC |
26973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26974 | (exit $ac_status); } && | |
89be85c2 VS |
26975 | { ac_try='test -z "$ac_c_werror_flag" |
26976 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26978 | (eval $ac_try) 2>&5 | |
26979 | ac_status=$? | |
26980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26981 | (exit $ac_status); }; } && | |
26982 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26984 | (eval $ac_try) 2>&5 | |
26985 | ac_status=$? | |
26986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26987 | (exit $ac_status); }; }; then | |
26988 | wx_cv_x11_xpm_h=yes | |
26989 | else | |
26990 | echo "$as_me: failed program was:" >&5 | |
26991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26992 | ||
26993 | wx_cv_x11_xpm_h=no | |
26994 | ||
26995 | fi | |
ac1cb8d3 | 26996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26997 | |
26998 | CFLAGS=$save_CFLAGS | |
26999 | ||
27000 | ||
27001 | fi | |
27002 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
27003 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
27004 | ||
27005 | if test $wx_cv_x11_xpm_h = "yes"; then | |
27006 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
27007 | cat >>confdefs.h <<\_ACEOF | |
27008 | #define wxHAVE_LIB_XPM 1 | |
27009 | _ACEOF | |
27010 | ||
27011 | else | |
27012 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
27013 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
27014 | fi | |
27015 | fi | |
27016 | ||
27017 | fi | |
27018 | ||
27019 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
27020 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
27021 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
27022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27023 | else | |
27024 | ac_check_lib_save_LIBS=$LIBS | |
27025 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
27026 | cat >conftest.$ac_ext <<_ACEOF | |
27027 | /* confdefs.h. */ | |
27028 | _ACEOF | |
27029 | cat confdefs.h >>conftest.$ac_ext | |
27030 | cat >>conftest.$ac_ext <<_ACEOF | |
27031 | /* end confdefs.h. */ | |
27032 | ||
27033 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27034 | #ifdef __cplusplus | |
27035 | extern "C" | |
27036 | #endif | |
27037 | /* We use char because int might match the return type of a gcc2 | |
27038 | builtin and then its argument prototype would still apply. */ | |
27039 | char XShapeQueryExtension (); | |
27040 | int | |
27041 | main () | |
27042 | { | |
27043 | XShapeQueryExtension (); | |
27044 | ; | |
27045 | return 0; | |
27046 | } | |
27047 | _ACEOF | |
27048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27050 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27051 | ac_status=$? |
ac1cb8d3 VS |
27052 | grep -v '^ *+' conftest.er1 >conftest.err |
27053 | rm -f conftest.er1 | |
27054 | cat conftest.err >&5 | |
a848cd7e SC |
27055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27056 | (exit $ac_status); } && | |
89be85c2 VS |
27057 | { ac_try='test -z "$ac_c_werror_flag" |
27058 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27060 | (eval $ac_try) 2>&5 | |
27061 | ac_status=$? | |
27062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27063 | (exit $ac_status); }; } && | |
27064 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27066 | (eval $ac_try) 2>&5 | |
27067 | ac_status=$? | |
27068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27069 | (exit $ac_status); }; }; then | |
27070 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
27071 | else | |
27072 | echo "$as_me: failed program was:" >&5 | |
27073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27074 | ||
27075 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
27076 | fi | |
ac1cb8d3 VS |
27077 | rm -f conftest.err conftest.$ac_objext \ |
27078 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27079 | LIBS=$ac_check_lib_save_LIBS |
27080 | fi | |
27081 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
27082 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
27083 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
27084 | ||
27085 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
27086 | wxHAVE_XEXT_LIB=1 | |
27087 | ||
27088 | fi | |
27089 | ||
27090 | ||
27091 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
27092 | save_CFLAGS="$CFLAGS" | |
27093 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27094 | ||
27095 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
27096 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
27097 | cat >conftest.$ac_ext <<_ACEOF | |
27098 | /* confdefs.h. */ | |
27099 | _ACEOF | |
27100 | cat confdefs.h >>conftest.$ac_ext | |
27101 | cat >>conftest.$ac_ext <<_ACEOF | |
27102 | /* end confdefs.h. */ | |
27103 | ||
27104 | #include <X11/Xlib.h> | |
27105 | #include <X11/extensions/shape.h> | |
27106 | ||
27107 | int | |
27108 | main () | |
27109 | { | |
27110 | ||
27111 | int dummy1, dummy2; | |
27112 | XShapeQueryExtension((Display*)NULL, | |
27113 | (int*)NULL, (int*)NULL); | |
27114 | ||
27115 | ; | |
27116 | return 0; | |
27117 | } | |
27118 | _ACEOF | |
27119 | rm -f conftest.$ac_objext | |
27120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27121 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27122 | ac_status=$? |
ac1cb8d3 VS |
27123 | grep -v '^ *+' conftest.er1 >conftest.err |
27124 | rm -f conftest.er1 | |
27125 | cat conftest.err >&5 | |
a848cd7e SC |
27126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27127 | (exit $ac_status); } && | |
89be85c2 VS |
27128 | { ac_try='test -z "$ac_c_werror_flag" |
27129 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27131 | (eval $ac_try) 2>&5 | |
27132 | ac_status=$? | |
27133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27134 | (exit $ac_status); }; } && | |
27135 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27137 | (eval $ac_try) 2>&5 | |
27138 | ac_status=$? | |
27139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27140 | (exit $ac_status); }; }; then | |
27141 | ||
27142 | cat >>confdefs.h <<\_ACEOF | |
27143 | #define HAVE_XSHAPE 1 | |
27144 | _ACEOF | |
27145 | ||
27146 | echo "$as_me:$LINENO: result: found" >&5 | |
27147 | echo "${ECHO_T}found" >&6 | |
27148 | ||
27149 | else | |
27150 | echo "$as_me: failed program was:" >&5 | |
27151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27152 | ||
27153 | ||
27154 | echo "$as_me:$LINENO: result: not found" >&5 | |
27155 | echo "${ECHO_T}not found" >&6 | |
27156 | ||
27157 | fi | |
ac1cb8d3 | 27158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27159 | CFLAGS="$save_CFLAGS" |
27160 | ||
27161 | fi | |
27162 | fi | |
27163 | ||
27164 | if test "$wxUSE_MAC" = 1; then | |
27165 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
27166 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
27167 | if test "$GCC" = yes; then | |
27168 | echo "$as_me:$LINENO: result: gcc" >&5 | |
27169 | echo "${ECHO_T}gcc" >&6 | |
27170 | CPPFLAGS_PASCAL="-fpascal-strings" | |
27171 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
27172 | echo "$as_me:$LINENO: result: xlc" >&5 | |
27173 | echo "${ECHO_T}xlc" >&6 | |
27174 | CPPFLAGS_PASCAL="-qmacpstr" | |
27175 | else | |
27176 | echo "$as_me:$LINENO: result: none" >&5 | |
27177 | echo "${ECHO_T}none" >&6 | |
27178 | fi | |
27179 | ||
1e9e8aba DE |
27180 | if test "x$wxUSE_UNIX" = "xyes"; then |
27181 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
27182 | else | |
27183 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
27184 | fi | |
a848cd7e | 27185 | |
a848cd7e SC |
27186 | TOOLKIT=MAC |
27187 | GUIDIST=MACX_DIST | |
dd21ced8 | 27188 | WXBASEPORT="_carbon" |
a848cd7e SC |
27189 | fi |
27190 | ||
27191 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
27192 | TOOLKIT=COCOA |
27193 | GUIDIST=COCOA_DIST | |
27194 | fi | |
27195 | ||
27196 | if test "$wxUSE_PM" = 1; then | |
27197 | TOOLKIT=PM | |
de59c161 RD |
27198 | GUIDIST=PM_DIST |
27199 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
27200 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
27201 | if test "${wx_cv_spbcdata+set}" = set; then | |
27202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27203 | else | |
27204 | ||
27205 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
27206 | /* confdefs.h. */ |
27207 | _ACEOF | |
27208 | cat confdefs.h >>conftest.$ac_ext | |
27209 | cat >>conftest.$ac_ext <<_ACEOF | |
27210 | /* end confdefs.h. */ | |
27211 | ||
27212 | #define INCL_PM | |
27213 | #include <os2.h> | |
27214 | ||
27215 | int | |
27216 | main () | |
27217 | { | |
27218 | ||
27219 | SPBCDATA test; | |
27220 | ||
27221 | ; | |
27222 | return 0; | |
27223 | } | |
27224 | _ACEOF | |
27225 | rm -f conftest.$ac_objext | |
27226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27227 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 27228 | ac_status=$? |
ac1cb8d3 VS |
27229 | grep -v '^ *+' conftest.er1 >conftest.err |
27230 | rm -f conftest.er1 | |
27231 | cat conftest.err >&5 | |
de59c161 RD |
27232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27233 | (exit $ac_status); } && | |
89be85c2 VS |
27234 | { ac_try='test -z "$ac_c_werror_flag" |
27235 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27237 | (eval $ac_try) 2>&5 | |
27238 | ac_status=$? | |
27239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27240 | (exit $ac_status); }; } && | |
27241 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
27242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27243 | (eval $ac_try) 2>&5 | |
27244 | ac_status=$? | |
27245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27246 | (exit $ac_status); }; }; then | |
27247 | wx_cv_spbcdata=yes | |
27248 | else | |
27249 | echo "$as_me: failed program was:" >&5 | |
27250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27251 | ||
27252 | wx_cv_spbcdata=no | |
27253 | ||
27254 | fi | |
ac1cb8d3 | 27255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
27256 | |
27257 | ||
27258 | fi | |
27259 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
27260 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
27261 | ||
27262 | if test $wx_cv_spbcdata = "yes"; then | |
27263 | cat >>confdefs.h <<\_ACEOF | |
27264 | #define HAVE_SPBCDATA 1 | |
27265 | _ACEOF | |
27266 | ||
27267 | fi | |
a848cd7e SC |
27268 | fi |
27269 | ||
27270 | if test "$TOOLKIT" = "PM" ; then | |
27271 | TOOLKIT_DIR="os2" | |
27272 | else | |
27273 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
27274 | fi | |
27275 | ||
a848cd7e | 27276 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
27277 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
27278 | WIDGET_SET=univ | |
a848cd7e SC |
27279 | fi |
27280 | ||
27281 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
27282 | DISTDIR="wx\$(TOOLKIT)" | |
27283 | else | |
27284 | USE_GUI=0 | |
27285 | ||
27286 | TOOLKIT_DIR="base" | |
27287 | ||
27288 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 27289 | TOOLKIT="MSW" |
a848cd7e SC |
27290 | fi |
27291 | ||
a848cd7e SC |
27292 | GUIDIST="BASE_DIST" |
27293 | DISTDIR="wxBase" | |
27294 | fi | |
27295 | ||
27296 | ||
27297 | ||
27298 | ||
27299 | IODBC_C_SRC="" | |
27300 | ||
27301 | ||
27302 | if test "$TOOLKIT" != "MSW" ; then | |
27303 | ||
27304 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
27305 | ||
27306 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27307 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
27308 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
27309 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27311 | fi | |
27312 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
27313 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
27314 | else | |
27315 | # Is the header compilable? | |
27316 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
27317 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
27318 | cat >conftest.$ac_ext <<_ACEOF | |
27319 | /* confdefs.h. */ | |
27320 | _ACEOF | |
27321 | cat confdefs.h >>conftest.$ac_ext | |
27322 | cat >>conftest.$ac_ext <<_ACEOF | |
27323 | /* end confdefs.h. */ | |
27324 | $ac_includes_default | |
27325 | #include <sql.h> | |
27326 | _ACEOF | |
27327 | rm -f conftest.$ac_objext | |
27328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27329 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27330 | ac_status=$? |
ac1cb8d3 VS |
27331 | grep -v '^ *+' conftest.er1 >conftest.err |
27332 | rm -f conftest.er1 | |
27333 | cat conftest.err >&5 | |
a848cd7e SC |
27334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27335 | (exit $ac_status); } && | |
89be85c2 VS |
27336 | { ac_try='test -z "$ac_c_werror_flag" |
27337 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27339 | (eval $ac_try) 2>&5 | |
27340 | ac_status=$? | |
27341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27342 | (exit $ac_status); }; } && | |
27343 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27345 | (eval $ac_try) 2>&5 | |
27346 | ac_status=$? | |
27347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27348 | (exit $ac_status); }; }; then | |
27349 | ac_header_compiler=yes | |
27350 | else | |
27351 | echo "$as_me: failed program was:" >&5 | |
27352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27353 | ||
27354 | ac_header_compiler=no | |
27355 | fi | |
ac1cb8d3 | 27356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27357 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27358 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27359 | ||
27360 | # Is the header present? | |
27361 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
27362 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
27363 | cat >conftest.$ac_ext <<_ACEOF | |
27364 | /* confdefs.h. */ | |
27365 | _ACEOF | |
27366 | cat confdefs.h >>conftest.$ac_ext | |
27367 | cat >>conftest.$ac_ext <<_ACEOF | |
27368 | /* end confdefs.h. */ | |
27369 | #include <sql.h> | |
27370 | _ACEOF | |
27371 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27372 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27373 | ac_status=$? | |
27374 | grep -v '^ *+' conftest.er1 >conftest.err | |
27375 | rm -f conftest.er1 | |
27376 | cat conftest.err >&5 | |
27377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27378 | (exit $ac_status); } >/dev/null; then | |
27379 | if test -s conftest.err; then | |
27380 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27381 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27382 | else |
27383 | ac_cpp_err= | |
27384 | fi | |
27385 | else | |
27386 | ac_cpp_err=yes | |
27387 | fi | |
27388 | if test -z "$ac_cpp_err"; then | |
27389 | ac_header_preproc=yes | |
27390 | else | |
27391 | echo "$as_me: failed program was:" >&5 | |
27392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27393 | ||
27394 | ac_header_preproc=no | |
27395 | fi | |
27396 | rm -f conftest.err conftest.$ac_ext | |
27397 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27398 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27399 | ||
27400 | # So? What about this header? | |
ac1cb8d3 VS |
27401 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27402 | yes:no: ) | |
a848cd7e SC |
27403 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27404 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27405 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
27406 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
27407 | ac_header_preproc=yes | |
a848cd7e | 27408 | ;; |
ac1cb8d3 | 27409 | no:yes:* ) |
a848cd7e SC |
27410 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
27411 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27412 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
27413 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
27414 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
27415 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
27416 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27417 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27418 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
27419 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27420 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
27421 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27422 | ( |
27423 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27424 | ## ----------------------------------------- ## |
27425 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27426 | ## ----------------------------------------- ## | |
a848cd7e SC |
27427 | _ASBOX |
27428 | ) | | |
27429 | sed "s/^/$as_me: WARNING: /" >&2 | |
27430 | ;; | |
27431 | esac | |
27432 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
27433 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
27434 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27436 | else | |
27437 | ac_cv_header_sql_h=$ac_header_preproc | |
27438 | fi | |
27439 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
27440 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
27441 | ||
27442 | fi | |
27443 | if test $ac_cv_header_sql_h = yes; then | |
27444 | found_sql_h=1 | |
27445 | fi | |
27446 | ||
27447 | ||
27448 | if test "x$found_sql_h" = "x1" ; then | |
27449 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
27450 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
27451 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
27452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27453 | else | |
27454 | ac_check_lib_save_LIBS=$LIBS | |
27455 | LIBS="-liodbc $LIBS" | |
27456 | cat >conftest.$ac_ext <<_ACEOF | |
27457 | /* confdefs.h. */ | |
27458 | _ACEOF | |
27459 | cat confdefs.h >>conftest.$ac_ext | |
27460 | cat >>conftest.$ac_ext <<_ACEOF | |
27461 | /* end confdefs.h. */ | |
27462 | ||
27463 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27464 | #ifdef __cplusplus | |
27465 | extern "C" | |
27466 | #endif | |
27467 | /* We use char because int might match the return type of a gcc2 | |
27468 | builtin and then its argument prototype would still apply. */ | |
27469 | char SQLAllocEnv (); | |
27470 | int | |
27471 | main () | |
27472 | { | |
27473 | SQLAllocEnv (); | |
27474 | ; | |
27475 | return 0; | |
27476 | } | |
27477 | _ACEOF | |
27478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27480 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27481 | ac_status=$? |
ac1cb8d3 VS |
27482 | grep -v '^ *+' conftest.er1 >conftest.err |
27483 | rm -f conftest.er1 | |
27484 | cat conftest.err >&5 | |
a848cd7e SC |
27485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27486 | (exit $ac_status); } && | |
89be85c2 VS |
27487 | { ac_try='test -z "$ac_c_werror_flag" |
27488 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27490 | (eval $ac_try) 2>&5 | |
27491 | ac_status=$? | |
27492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27493 | (exit $ac_status); }; } && | |
27494 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
27500 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
27501 | else | |
27502 | echo "$as_me: failed program was:" >&5 | |
27503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27504 | ||
27505 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
27506 | fi | |
ac1cb8d3 VS |
27507 | rm -f conftest.err conftest.$ac_objext \ |
27508 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27509 | LIBS=$ac_check_lib_save_LIBS |
27510 | fi | |
27511 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
27512 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
27513 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
27514 | ODBC_LINK=" -liodbc" | |
27515 | else | |
27516 | ||
27517 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
27518 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
27519 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
27520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27521 | else | |
27522 | ac_check_lib_save_LIBS=$LIBS | |
27523 | LIBS="-lunixodbc $LIBS" | |
27524 | cat >conftest.$ac_ext <<_ACEOF | |
27525 | /* confdefs.h. */ | |
27526 | _ACEOF | |
27527 | cat confdefs.h >>conftest.$ac_ext | |
27528 | cat >>conftest.$ac_ext <<_ACEOF | |
27529 | /* end confdefs.h. */ | |
27530 | ||
27531 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27532 | #ifdef __cplusplus | |
27533 | extern "C" | |
27534 | #endif | |
27535 | /* We use char because int might match the return type of a gcc2 | |
27536 | builtin and then its argument prototype would still apply. */ | |
27537 | char SQLAllocEnv (); | |
27538 | int | |
27539 | main () | |
27540 | { | |
27541 | SQLAllocEnv (); | |
27542 | ; | |
27543 | return 0; | |
27544 | } | |
27545 | _ACEOF | |
27546 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27548 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27549 | ac_status=$? |
ac1cb8d3 VS |
27550 | grep -v '^ *+' conftest.er1 >conftest.err |
27551 | rm -f conftest.er1 | |
27552 | cat conftest.err >&5 | |
a848cd7e SC |
27553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27554 | (exit $ac_status); } && | |
89be85c2 VS |
27555 | { ac_try='test -z "$ac_c_werror_flag" |
27556 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27558 | (eval $ac_try) 2>&5 | |
27559 | ac_status=$? | |
27560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27561 | (exit $ac_status); }; } && | |
27562 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27564 | (eval $ac_try) 2>&5 | |
27565 | ac_status=$? | |
27566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27567 | (exit $ac_status); }; }; then | |
27568 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
27569 | else | |
27570 | echo "$as_me: failed program was:" >&5 | |
27571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27572 | ||
27573 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
27574 | fi | |
ac1cb8d3 VS |
27575 | rm -f conftest.err conftest.$ac_objext \ |
27576 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27577 | LIBS=$ac_check_lib_save_LIBS |
27578 | fi | |
27579 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
27580 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
27581 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
27582 | ODBC_LINK=" -lunixodbc" | |
27583 | else | |
27584 | ||
27585 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
27586 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
27587 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
27588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27589 | else | |
27590 | ac_check_lib_save_LIBS=$LIBS | |
27591 | LIBS="-lodbc $LIBS" | |
27592 | cat >conftest.$ac_ext <<_ACEOF | |
27593 | /* confdefs.h. */ | |
27594 | _ACEOF | |
27595 | cat confdefs.h >>conftest.$ac_ext | |
27596 | cat >>conftest.$ac_ext <<_ACEOF | |
27597 | /* end confdefs.h. */ | |
27598 | ||
27599 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27600 | #ifdef __cplusplus | |
27601 | extern "C" | |
27602 | #endif | |
27603 | /* We use char because int might match the return type of a gcc2 | |
27604 | builtin and then its argument prototype would still apply. */ | |
27605 | char SQLAllocEnv (); | |
27606 | int | |
27607 | main () | |
27608 | { | |
27609 | SQLAllocEnv (); | |
27610 | ; | |
27611 | return 0; | |
27612 | } | |
27613 | _ACEOF | |
27614 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27616 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27617 | ac_status=$? |
ac1cb8d3 VS |
27618 | grep -v '^ *+' conftest.er1 >conftest.err |
27619 | rm -f conftest.er1 | |
27620 | cat conftest.err >&5 | |
a848cd7e SC |
27621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27622 | (exit $ac_status); } && | |
89be85c2 VS |
27623 | { ac_try='test -z "$ac_c_werror_flag" |
27624 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27626 | (eval $ac_try) 2>&5 | |
27627 | ac_status=$? | |
27628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27629 | (exit $ac_status); }; } && | |
27630 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27632 | (eval $ac_try) 2>&5 | |
27633 | ac_status=$? | |
27634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27635 | (exit $ac_status); }; }; then | |
27636 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
27637 | else | |
27638 | echo "$as_me: failed program was:" >&5 | |
27639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27640 | ||
27641 | ac_cv_lib_odbc_SQLAllocEnv=no | |
27642 | fi | |
ac1cb8d3 VS |
27643 | rm -f conftest.err conftest.$ac_objext \ |
27644 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27645 | LIBS=$ac_check_lib_save_LIBS |
27646 | fi | |
27647 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
27648 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
27649 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
27650 | ODBC_LINK=" -lodbc" | |
27651 | fi | |
27652 | ||
27653 | ||
27654 | fi | |
27655 | ||
27656 | ||
27657 | fi | |
27658 | ||
27659 | fi | |
27660 | if test "x$ODBC_LINK" = "x" ; then | |
27661 | if test "$wxUSE_ODBC" = "sys" ; then | |
27662 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
27663 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
27664 | { (exit 1); exit 1; }; } | |
27665 | else | |
27666 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
27667 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
27668 | wxUSE_ODBC=builtin | |
27669 | fi | |
27670 | else | |
27671 | wxUSE_ODBC=sys | |
27672 | fi | |
27673 | fi | |
27674 | if test "$wxUSE_ODBC" != "no" ; then | |
27675 | cat >>confdefs.h <<\_ACEOF | |
27676 | #define wxUSE_ODBC 1 | |
27677 | _ACEOF | |
27678 | ||
27679 | if test "$wxUSE_ODBC" = "builtin" ; then | |
27680 | cat >>confdefs.h <<\_ACEOF | |
27681 | #define wxUSE_BUILTIN_IODBC 1 | |
27682 | _ACEOF | |
27683 | ||
27684 | fi | |
27685 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
27686 | ||
27687 | WXODBCFLAG="-D_IODBC_" | |
27688 | fi | |
27689 | fi | |
27690 | ||
a848cd7e | 27691 | |
01cb68df | 27692 | |
a848cd7e | 27693 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 27694 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
27695 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
27696 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
27697 | ||
27698 | ac_find_libraries= | |
27699 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27700 | do | |
27701 | for ac_extension in a so sl dylib; do | |
27702 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
27703 | ac_find_libraries=$ac_dir | |
27704 | break 2 | |
27705 | fi | |
27706 | done | |
27707 | done | |
27708 | ||
27709 | if test "$ac_find_libraries" != "" ; then | |
27710 | ||
27711 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27712 | result=$? | |
27713 | if test $result = 0; then | |
27714 | ac_path_to_link="" | |
27715 | else | |
27716 | ac_path_to_link=" -L$ac_find_libraries" | |
27717 | fi | |
27718 | ||
27719 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27720 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
27721 | fi | |
27722 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
27723 | echo "$as_me:$LINENO: result: yes" >&5 | |
27724 | echo "${ECHO_T}yes" >&6 | |
27725 | ||
27726 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
27727 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
27728 | ||
27729 | ac_find_libraries= | |
27730 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27731 | do | |
27732 | for ac_extension in a so sl dylib; do | |
27733 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
27734 | ac_find_libraries=$ac_dir | |
27735 | break 2 | |
27736 | fi | |
27737 | done | |
27738 | done | |
27739 | ||
27740 | if test "$ac_find_libraries" != "" ; then | |
27741 | echo "$as_me:$LINENO: result: yes" >&5 | |
27742 | echo "${ECHO_T}yes" >&6 | |
27743 | ||
27744 | for ac_header in X11/extensions/xf86vmode.h | |
27745 | do | |
27746 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27747 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27748 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27749 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27751 | else | |
27752 | cat >conftest.$ac_ext <<_ACEOF | |
27753 | /* confdefs.h. */ | |
27754 | _ACEOF | |
27755 | cat confdefs.h >>conftest.$ac_ext | |
27756 | cat >>conftest.$ac_ext <<_ACEOF | |
27757 | /* end confdefs.h. */ | |
27758 | ||
27759 | #if HAVE_X11_XLIB_H | |
27760 | #include <X11/Xlib.h> | |
27761 | #endif | |
27762 | ||
27763 | ||
27764 | #include <$ac_header> | |
27765 | _ACEOF | |
27766 | rm -f conftest.$ac_objext | |
27767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27768 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27769 | ac_status=$? |
ac1cb8d3 VS |
27770 | grep -v '^ *+' conftest.er1 >conftest.err |
27771 | rm -f conftest.er1 | |
27772 | cat conftest.err >&5 | |
a848cd7e SC |
27773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27774 | (exit $ac_status); } && | |
89be85c2 VS |
27775 | { ac_try='test -z "$ac_c_werror_flag" |
27776 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27778 | (eval $ac_try) 2>&5 | |
27779 | ac_status=$? | |
27780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27781 | (exit $ac_status); }; } && | |
27782 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27784 | (eval $ac_try) 2>&5 | |
27785 | ac_status=$? | |
27786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27787 | (exit $ac_status); }; }; then | |
27788 | eval "$as_ac_Header=yes" | |
27789 | else | |
27790 | echo "$as_me: failed program was:" >&5 | |
27791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27792 | ||
27793 | eval "$as_ac_Header=no" | |
27794 | fi | |
ac1cb8d3 | 27795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27796 | fi |
27797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27798 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27799 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27800 | cat >>confdefs.h <<_ACEOF | |
27801 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27802 | _ACEOF | |
27803 | ||
27804 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27805 | ||
27806 | fi | |
27807 | ||
27808 | done | |
27809 | ||
27810 | else | |
27811 | echo "$as_me:$LINENO: result: no" >&5 | |
27812 | echo "${ECHO_T}no" >&6 | |
27813 | fi | |
27814 | ||
27815 | else | |
27816 | echo "$as_me:$LINENO: result: no" >&5 | |
27817 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
27818 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
27819 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
27820 | wxUSE_DISPLAY="no" |
27821 | fi | |
01cb68df RG |
27822 | elif test "$wxUSE_MSW" = 1; then |
27823 | ||
27824 | ||
27825 | for ac_header in multimon.h ddraw.h | |
27826 | do | |
27827 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 27828 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
27829 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
27830 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 27832 | else |
5294a27e | 27833 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
27834 | /* confdefs.h. */ |
27835 | _ACEOF | |
27836 | cat confdefs.h >>conftest.$ac_ext | |
27837 | cat >>conftest.$ac_ext <<_ACEOF | |
27838 | /* end confdefs.h. */ | |
5294a27e VZ |
27839 | #include <windows.h> |
27840 | ||
01cb68df RG |
27841 | #include <$ac_header> |
27842 | _ACEOF | |
27843 | rm -f conftest.$ac_objext | |
27844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27845 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 27846 | ac_status=$? |
ac1cb8d3 VS |
27847 | grep -v '^ *+' conftest.er1 >conftest.err |
27848 | rm -f conftest.er1 | |
27849 | cat conftest.err >&5 | |
01cb68df RG |
27850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27851 | (exit $ac_status); } && | |
89be85c2 VS |
27852 | { ac_try='test -z "$ac_c_werror_flag" |
27853 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27855 | (eval $ac_try) 2>&5 | |
27856 | ac_status=$? | |
27857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27858 | (exit $ac_status); }; } && | |
27859 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
27860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27861 | (eval $ac_try) 2>&5 | |
27862 | ac_status=$? | |
27863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27864 | (exit $ac_status); }; }; then | |
5294a27e | 27865 | eval "$as_ac_Header=yes" |
01cb68df RG |
27866 | else |
27867 | echo "$as_me: failed program was:" >&5 | |
27868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27869 | ||
5294a27e | 27870 | eval "$as_ac_Header=no" |
01cb68df | 27871 | fi |
ac1cb8d3 | 27872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
27873 | fi |
27874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
27876 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
27877 | cat >>confdefs.h <<_ACEOF | |
27878 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27879 | _ACEOF | |
27880 | ||
27881 | else | |
27882 | ||
5294a27e VZ |
27883 | wxUSE_DISPLAY="no" |
27884 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 27885 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
27886 | |
27887 | fi | |
27888 | ||
27889 | done | |
27890 | ||
a848cd7e SC |
27891 | fi |
27892 | fi | |
27893 | ||
27894 | ||
27895 | USE_OPENGL=0 | |
27896 | if test "$wxUSE_OPENGL" = "yes"; then | |
27897 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27898 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27899 | elif test "$wxUSE_MSW" = 1; then | |
27900 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27901 | else | |
27902 | ||
27903 | ||
27904 | ac_find_includes= | |
27905 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27906 | do | |
27907 | if test -f "$ac_dir/GL/gl.h"; then | |
27908 | ac_find_includes=$ac_dir | |
27909 | break | |
27910 | fi | |
27911 | done | |
27912 | ||
27913 | if test "$ac_find_includes" != "" ; then | |
27914 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27915 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27916 | ||
27917 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27918 | ac_path_to_include="" | |
27919 | else | |
27920 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27921 | result=$? | |
27922 | if test $result = 0; then | |
27923 | ac_path_to_include="" | |
27924 | else | |
27925 | ac_path_to_include=" -I$ac_find_includes" | |
27926 | fi | |
27927 | fi | |
27928 | ||
27929 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27930 | fi | |
27931 | ||
27932 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27933 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27934 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27935 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27937 | fi | |
27938 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27939 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27940 | else | |
27941 | # Is the header compilable? | |
27942 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27943 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27944 | cat >conftest.$ac_ext <<_ACEOF | |
27945 | /* confdefs.h. */ | |
27946 | _ACEOF | |
27947 | cat confdefs.h >>conftest.$ac_ext | |
27948 | cat >>conftest.$ac_ext <<_ACEOF | |
27949 | /* end confdefs.h. */ | |
27950 | $ac_includes_default | |
27951 | #include <GL/gl.h> | |
27952 | _ACEOF | |
27953 | rm -f conftest.$ac_objext | |
27954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27955 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27956 | ac_status=$? |
ac1cb8d3 VS |
27957 | grep -v '^ *+' conftest.er1 >conftest.err |
27958 | rm -f conftest.er1 | |
27959 | cat conftest.err >&5 | |
a848cd7e SC |
27960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27961 | (exit $ac_status); } && | |
89be85c2 VS |
27962 | { ac_try='test -z "$ac_c_werror_flag" |
27963 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27965 | (eval $ac_try) 2>&5 | |
27966 | ac_status=$? | |
27967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27968 | (exit $ac_status); }; } && | |
27969 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27971 | (eval $ac_try) 2>&5 | |
27972 | ac_status=$? | |
27973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27974 | (exit $ac_status); }; }; then | |
27975 | ac_header_compiler=yes | |
27976 | else | |
27977 | echo "$as_me: failed program was:" >&5 | |
27978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27979 | ||
27980 | ac_header_compiler=no | |
27981 | fi | |
ac1cb8d3 | 27982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27983 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27984 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27985 | ||
27986 | # Is the header present? | |
27987 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27988 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27989 | cat >conftest.$ac_ext <<_ACEOF | |
27990 | /* confdefs.h. */ | |
27991 | _ACEOF | |
27992 | cat confdefs.h >>conftest.$ac_ext | |
27993 | cat >>conftest.$ac_ext <<_ACEOF | |
27994 | /* end confdefs.h. */ | |
27995 | #include <GL/gl.h> | |
27996 | _ACEOF | |
27997 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27998 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27999 | ac_status=$? | |
28000 | grep -v '^ *+' conftest.er1 >conftest.err | |
28001 | rm -f conftest.er1 | |
28002 | cat conftest.err >&5 | |
28003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28004 | (exit $ac_status); } >/dev/null; then | |
28005 | if test -s conftest.err; then | |
28006 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 28007 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
28008 | else |
28009 | ac_cpp_err= | |
28010 | fi | |
28011 | else | |
28012 | ac_cpp_err=yes | |
28013 | fi | |
28014 | if test -z "$ac_cpp_err"; then | |
28015 | ac_header_preproc=yes | |
28016 | else | |
28017 | echo "$as_me: failed program was:" >&5 | |
28018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28019 | ||
28020 | ac_header_preproc=no | |
28021 | fi | |
28022 | rm -f conftest.err conftest.$ac_ext | |
28023 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28024 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28025 | ||
28026 | # So? What about this header? | |
ac1cb8d3 VS |
28027 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
28028 | yes:no: ) | |
a848cd7e SC |
28029 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
28030 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
28031 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
28032 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
28033 | ac_header_preproc=yes | |
a848cd7e | 28034 | ;; |
ac1cb8d3 | 28035 | no:yes:* ) |
a848cd7e SC |
28036 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
28037 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
28038 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
28039 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
28040 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
28041 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
28042 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
28043 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
28044 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
28045 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
28046 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
28047 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
28048 | ( |
28049 | cat <<\_ASBOX | |
ac1cb8d3 VS |
28050 | ## ----------------------------------------- ## |
28051 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
28052 | ## ----------------------------------------- ## | |
a848cd7e SC |
28053 | _ASBOX |
28054 | ) | | |
28055 | sed "s/^/$as_me: WARNING: /" >&2 | |
28056 | ;; | |
28057 | esac | |
28058 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
28059 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
28060 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28062 | else | |
28063 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
28064 | fi | |
28065 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
28066 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
28067 | ||
28068 | fi | |
28069 | if test $ac_cv_header_GL_gl_h = yes; then | |
28070 | ||
28071 | found_gl=0 | |
28072 | ||
28073 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
28074 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
28075 | ||
28076 | ac_find_libraries= | |
28077 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28078 | do | |
28079 | for ac_extension in a so sl dylib; do | |
28080 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
28081 | ac_find_libraries=$ac_dir | |
28082 | break 2 | |
28083 | fi | |
28084 | done | |
28085 | done | |
28086 | ||
28087 | if test "$ac_find_libraries" != "" ; then | |
28088 | ||
28089 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28090 | result=$? | |
28091 | if test $result = 0; then | |
28092 | ac_path_to_link="" | |
28093 | else | |
28094 | ac_path_to_link=" -L$ac_find_libraries" | |
28095 | fi | |
28096 | ||
28097 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28098 | LDFLAGS_GL="$ac_path_to_link" | |
28099 | fi | |
28100 | ||
28101 | ||
28102 | ac_find_libraries= | |
28103 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28104 | do | |
28105 | for ac_extension in a so sl dylib; do | |
28106 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
28107 | ac_find_libraries=$ac_dir | |
28108 | break 2 | |
28109 | fi | |
28110 | done | |
28111 | done | |
28112 | ||
28113 | if test "$ac_find_libraries" != "" ; then | |
28114 | ||
28115 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28116 | result=$? | |
28117 | if test $result = 0; then | |
28118 | ac_path_to_link="" | |
28119 | else | |
28120 | ac_path_to_link=" -L$ac_find_libraries" | |
28121 | fi | |
28122 | ||
28123 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
28124 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
28125 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
28126 | fi | |
28127 | ||
28128 | found_gl=1 | |
28129 | OPENGL_LIBS="-lGL -lGLU" | |
28130 | echo "$as_me:$LINENO: result: yes" >&5 | |
28131 | echo "${ECHO_T}yes" >&6 | |
28132 | fi | |
28133 | fi | |
28134 | ||
28135 | if test "$found_gl" != 1; then | |
28136 | echo "$as_me:$LINENO: result: no" >&5 | |
28137 | echo "${ECHO_T}no" >&6 | |
28138 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
28139 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
28140 | ||
28141 | ac_find_libraries= | |
28142 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28143 | do | |
28144 | for ac_extension in a so sl dylib; do | |
28145 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
28146 | ac_find_libraries=$ac_dir | |
28147 | break 2 | |
28148 | fi | |
28149 | done | |
28150 | done | |
28151 | ||
28152 | if test "$ac_find_libraries" != "" ; then | |
28153 | ||
28154 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28155 | result=$? | |
28156 | if test $result = 0; then | |
28157 | ac_path_to_link="" | |
28158 | else | |
28159 | ac_path_to_link=" -L$ac_find_libraries" | |
28160 | fi | |
28161 | ||
28162 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
28163 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
28164 | echo "$as_me:$LINENO: result: yes" >&5 | |
28165 | echo "${ECHO_T}yes" >&6 | |
28166 | else | |
28167 | echo "$as_me:$LINENO: result: no" >&5 | |
28168 | echo "${ECHO_T}no" >&6 | |
28169 | fi | |
28170 | fi | |
28171 | ||
28172 | fi | |
28173 | ||
28174 | ||
28175 | ||
28176 | if test "x$OPENGL_LIBS" = "x"; then | |
28177 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
28178 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
28179 | { (exit 1); exit 1; }; } | |
28180 | fi | |
28181 | fi | |
28182 | ||
28183 | if test "$wxUSE_OPENGL" = "yes"; then | |
28184 | USE_OPENGL=1 | |
28185 | cat >>confdefs.h <<\_ACEOF | |
28186 | #define wxUSE_OPENGL 1 | |
28187 | _ACEOF | |
28188 | ||
28189 | cat >>confdefs.h <<\_ACEOF | |
28190 | #define wxUSE_GLCANVAS 1 | |
28191 | _ACEOF | |
28192 | ||
28193 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
28194 | fi | |
28195 | fi | |
28196 | ||
a848cd7e SC |
28197 | |
28198 | if test -n "$TOOLKIT" ; then | |
28199 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
28200 | fi | |
28201 | ||
a848cd7e SC |
28202 | |
28203 | ||
28204 | if test "$wxUSE_SHARED" = "yes"; then | |
28205 | case "${host}" in | |
28206 | *-pc-msdosdjgpp ) | |
28207 | wxUSE_SHARED=no | |
28208 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
28209 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
28210 | ;; | |
28211 | esac | |
28212 | fi | |
28213 | ||
a848cd7e | 28214 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
28215 | |
28216 | ||
28217 | found_versioning=no | |
28218 | ||
28219 | ||
28220 | if test $found_versioning = no ; then | |
28221 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
28222 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
28223 | if test "${wx_cv_version_script+set}" = set; then | |
28224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28225 | else | |
28226 | ||
28227 | echo "VER_1 { *; };" >conftest.sym | |
28228 | echo "int main() { return 0; }" >conftest.cpp | |
28229 | ||
28230 | if { ac_try=' | |
28231 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
28232 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
28233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28234 | (eval $ac_try) 2>&5 | |
28235 | ac_status=$? | |
28236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28237 | (exit $ac_status); }; } ; then | |
28238 | if test -s conftest.stderr ; then | |
28239 | wx_cv_version_script=no | |
28240 | else | |
28241 | wx_cv_version_script=yes | |
28242 | fi | |
28243 | else | |
28244 | wx_cv_version_script=no | |
28245 | fi | |
28246 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
28247 | ||
28248 | fi | |
28249 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
28250 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
28251 | if test $wx_cv_version_script = yes ; then | |
28252 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
28253 | fi | |
28254 | fi | |
28255 | ||
28256 | ||
28257 | case "${host}" in | |
28258 | *-*-linux* | *-*-gnu* ) | |
28259 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 28260 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
28261 | ;; |
28262 | ||
28263 | *-*-solaris2* ) | |
28264 | if test "$GCC" = yes ; then | |
28265 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
28266 | ||
28267 | saveLdflags="$LDFLAGS" | |
28268 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
28269 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
28270 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
28271 | cat >conftest.$ac_ext <<_ACEOF | |
28272 | /* confdefs.h. */ | |
28273 | _ACEOF | |
28274 | cat confdefs.h >>conftest.$ac_ext | |
28275 | cat >>conftest.$ac_ext <<_ACEOF | |
28276 | /* end confdefs.h. */ | |
28277 | ||
28278 | int | |
28279 | main () | |
28280 | { | |
28281 | ||
28282 | ; | |
28283 | return 0; | |
28284 | } | |
28285 | _ACEOF | |
28286 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28288 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28289 | ac_status=$? |
ac1cb8d3 VS |
28290 | grep -v '^ *+' conftest.er1 >conftest.err |
28291 | rm -f conftest.er1 | |
28292 | cat conftest.err >&5 | |
a848cd7e SC |
28293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28294 | (exit $ac_status); } && | |
89be85c2 VS |
28295 | { ac_try='test -z "$ac_c_werror_flag" |
28296 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
28302 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28304 | (eval $ac_try) 2>&5 | |
28305 | ac_status=$? | |
28306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28307 | (exit $ac_status); }; }; then | |
28308 | ||
28309 | echo "$as_me:$LINENO: result: yes" >&5 | |
28310 | echo "${ECHO_T}yes" >&6 | |
28311 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 28312 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
28313 | |
28314 | else | |
28315 | echo "$as_me: failed program was:" >&5 | |
28316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28317 | ||
28318 | ||
28319 | echo "$as_me:$LINENO: result: no" >&5 | |
28320 | echo "${ECHO_T}no" >&6 | |
28321 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
28322 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
28323 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
28324 | cat >conftest.$ac_ext <<_ACEOF | |
28325 | /* confdefs.h. */ | |
28326 | _ACEOF | |
28327 | cat confdefs.h >>conftest.$ac_ext | |
28328 | cat >>conftest.$ac_ext <<_ACEOF | |
28329 | /* end confdefs.h. */ | |
28330 | ||
28331 | int | |
28332 | main () | |
28333 | { | |
28334 | ||
28335 | ; | |
28336 | return 0; | |
28337 | } | |
28338 | _ACEOF | |
28339 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28341 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28342 | ac_status=$? |
ac1cb8d3 VS |
28343 | grep -v '^ *+' conftest.er1 >conftest.err |
28344 | rm -f conftest.er1 | |
28345 | cat conftest.err >&5 | |
a848cd7e SC |
28346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28347 | (exit $ac_status); } && | |
89be85c2 VS |
28348 | { ac_try='test -z "$ac_c_werror_flag" |
28349 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28351 | (eval $ac_try) 2>&5 | |
28352 | ac_status=$? | |
28353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28354 | (exit $ac_status); }; } && | |
28355 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28357 | (eval $ac_try) 2>&5 | |
28358 | ac_status=$? | |
28359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28360 | (exit $ac_status); }; }; then | |
28361 | ||
ffa0583f | 28362 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 28363 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
28364 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
28365 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
28366 | ||
a848cd7e SC |
28367 | else |
28368 | echo "$as_me: failed program was:" >&5 | |
28369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28370 | ||
28371 | ||
28372 | echo "$as_me:$LINENO: result: no" >&5 | |
28373 | echo "${ECHO_T}no" >&6 | |
28374 | ||
28375 | fi | |
ac1cb8d3 VS |
28376 | rm -f conftest.err conftest.$ac_objext \ |
28377 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28378 | |
28379 | fi | |
ac1cb8d3 VS |
28380 | rm -f conftest.err conftest.$ac_objext \ |
28381 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28382 | LDFLAGS="$saveLdflags" |
28383 | else | |
a848cd7e | 28384 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 28385 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
28386 | fi |
28387 | ;; | |
28388 | ||
28389 | powerpc-*-darwin* ) | |
28390 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
28391 | cat <<EOF >change-install-names | |
28392 | #!/bin/sh | |
28393 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
28394 | inst_cmd="install_name_tool " | |
28395 | for i in \${libnames} ; do | |
28396 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
28397 | done | |
28398 | \${inst_cmd} \${3} | |
28399 | EOF | |
28400 | chmod +x change-install-names | |
28401 | ;; | |
28402 | ||
28403 | *-*-cygwin* | *-*-mingw32* ) | |
28404 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
28405 | ;; | |
28406 | ||
81f90336 MW |
28407 | *-*-hpux* ) |
28408 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
28409 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
28410 | ;; | |
28411 | ||
a848cd7e | 28412 | esac |
ceec2216 | 28413 | |
ffa0583f RL |
28414 | if test $wxUSE_RPATH = "no"; then |
28415 | SAMPLES_RPATH_FLAG='' | |
28416 | SAMPLES_RPATH_POSTLINK='' | |
28417 | WXCONFIG_RPATH='' | |
28418 | fi | |
28419 | ||
28420 | SHARED=1 | |
28421 | ||
28422 | else | |
28423 | ||
ceec2216 RL |
28424 | config_linkage_component="-static" |
28425 | SHARED=0 | |
ffa0583f | 28426 | |
ceec2216 | 28427 | fi |
a848cd7e | 28428 | |
a848cd7e | 28429 | |
ceec2216 RL |
28430 | UNICODE=0 |
28431 | lib_unicode_suffix= | |
28432 | WX_CHARTYPE="ansi" | |
28433 | if test "$wxUSE_UNICODE" = "yes"; then | |
28434 | lib_unicode_suffix=u | |
28435 | WX_CHARTYPE="unicode" | |
28436 | UNICODE=1 | |
a848cd7e SC |
28437 | fi |
28438 | ||
ceec2216 RL |
28439 | lib_debug_suffix= |
28440 | WX_DEBUGTYPE="release" | |
28441 | DEBUG_FLAG=0 | |
28442 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
28443 | lib_debug_suffix=d | |
28444 | WX_DEBUGTYPE="debug" | |
28445 | DEBUG_FLAG=1 | |
28446 | fi | |
a848cd7e | 28447 | |
ceec2216 RL |
28448 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
28449 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 28450 | |
ceec2216 RL |
28451 | DEBUG_INFO=0 |
28452 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
28453 | DEBUG_INFO=1 | |
28454 | fi | |
a848cd7e | 28455 | |
ceec2216 | 28456 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 28457 | |
ceec2216 | 28458 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 28459 | |
ceec2216 | 28460 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 28461 | |
ceec2216 RL |
28462 | if test "$cross_compiling" = "yes"; then |
28463 | HOST_SUFFIX="-$host_alias" | |
28464 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
28465 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
28466 | fi |
28467 | ||
dd21ced8 | 28468 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
28469 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
28470 | ||
28471 | ||
28472 | ||
a848cd7e | 28473 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
28474 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
28475 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 28476 | |
a848cd7e | 28477 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
28478 | |
28479 | # Extract the first word of "Rez", so it can be a program name with args. | |
28480 | set dummy Rez; ac_word=$2 | |
28481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28483 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
28484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28485 | else | |
28486 | if test -n "$RESCOMP"; then | |
28487 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
28488 | else | |
28489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28490 | for as_dir in $PATH | |
28491 | do | |
28492 | IFS=$as_save_IFS | |
28493 | test -z "$as_dir" && as_dir=. | |
28494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28496 | ac_cv_prog_RESCOMP="Rez" | |
28497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28498 | break 2 | |
28499 | fi | |
28500 | done | |
28501 | done | |
28502 | ||
28503 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
28504 | fi | |
28505 | fi | |
28506 | RESCOMP=$ac_cv_prog_RESCOMP | |
28507 | if test -n "$RESCOMP"; then | |
28508 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
28509 | echo "${ECHO_T}$RESCOMP" >&6 | |
28510 | else | |
28511 | echo "$as_me:$LINENO: result: no" >&5 | |
28512 | echo "${ECHO_T}no" >&6 | |
28513 | fi | |
28514 | ||
28515 | # Extract the first word of "DeRez", so it can be a program name with args. | |
28516 | set dummy DeRez; ac_word=$2 | |
28517 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28519 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
28520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28521 | else | |
28522 | if test -n "$DEREZ"; then | |
28523 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
28524 | else | |
28525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28526 | for as_dir in $PATH | |
28527 | do | |
28528 | IFS=$as_save_IFS | |
28529 | test -z "$as_dir" && as_dir=. | |
28530 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28531 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28532 | ac_cv_prog_DEREZ="DeRez" | |
28533 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28534 | break 2 | |
28535 | fi | |
28536 | done | |
28537 | done | |
28538 | ||
28539 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
28540 | fi | |
28541 | fi | |
28542 | DEREZ=$ac_cv_prog_DEREZ | |
28543 | if test -n "$DEREZ"; then | |
28544 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
28545 | echo "${ECHO_T}$DEREZ" >&6 | |
28546 | else | |
28547 | echo "$as_me:$LINENO: result: no" >&5 | |
28548 | echo "${ECHO_T}no" >&6 | |
28549 | fi | |
28550 | ||
28551 | # Extract the first word of "SetFile", so it can be a program name with args. | |
28552 | set dummy SetFile; ac_word=$2 | |
28553 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28555 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
28556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28557 | else | |
28558 | if test -n "$SETFILE"; then | |
28559 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
28560 | else | |
28561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28562 | for as_dir in $PATH | |
28563 | do | |
28564 | IFS=$as_save_IFS | |
28565 | test -z "$as_dir" && as_dir=. | |
28566 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28567 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28568 | ac_cv_prog_SETFILE="SetFile" | |
28569 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28570 | break 2 | |
28571 | fi | |
28572 | done | |
28573 | done | |
28574 | ||
28575 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
28576 | fi | |
28577 | fi | |
28578 | SETFILE=$ac_cv_prog_SETFILE | |
28579 | if test -n "$SETFILE"; then | |
28580 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
28581 | echo "${ECHO_T}$SETFILE" >&6 | |
28582 | else | |
28583 | echo "$as_me:$LINENO: result: no" >&5 | |
28584 | echo "${ECHO_T}no" >&6 | |
28585 | fi | |
28586 | ||
28587 | ||
28588 | MACSETFILE="\$(SETFILE)" | |
28589 | ||
28590 | if test "$wxUSE_MAC" = 1; then | |
28591 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
28592 | ||
28593 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28594 | else | |
28595 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
28596 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28597 | fi | |
28598 | else | |
ffa0583f RL |
28599 | MACSETFILE="@true" |
28600 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
28601 | |
28602 | if test "$wxUSE_PM" = 1; then | |
28603 | MACRESCOMP="emxbind -ep" | |
28604 | else | |
ffa0583f | 28605 | MACRESCOMP="@true" |
a848cd7e SC |
28606 | fi |
28607 | fi | |
28608 | ||
28609 | ||
28610 | ||
28611 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
28612 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
28613 | if test "${ac_cv_type_mode_t+set}" = set; then | |
28614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28615 | else | |
28616 | cat >conftest.$ac_ext <<_ACEOF | |
28617 | /* confdefs.h. */ | |
28618 | _ACEOF | |
28619 | cat confdefs.h >>conftest.$ac_ext | |
28620 | cat >>conftest.$ac_ext <<_ACEOF | |
28621 | /* end confdefs.h. */ | |
28622 | $ac_includes_default | |
28623 | int | |
28624 | main () | |
28625 | { | |
28626 | if ((mode_t *) 0) | |
28627 | return 0; | |
28628 | if (sizeof (mode_t)) | |
28629 | return 0; | |
28630 | ; | |
28631 | return 0; | |
28632 | } | |
28633 | _ACEOF | |
28634 | rm -f conftest.$ac_objext | |
28635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28636 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28637 | ac_status=$? |
ac1cb8d3 VS |
28638 | grep -v '^ *+' conftest.er1 >conftest.err |
28639 | rm -f conftest.er1 | |
28640 | cat conftest.err >&5 | |
a848cd7e SC |
28641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28642 | (exit $ac_status); } && | |
89be85c2 VS |
28643 | { ac_try='test -z "$ac_c_werror_flag" |
28644 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28646 | (eval $ac_try) 2>&5 | |
28647 | ac_status=$? | |
28648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28649 | (exit $ac_status); }; } && | |
28650 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28652 | (eval $ac_try) 2>&5 | |
28653 | ac_status=$? | |
28654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28655 | (exit $ac_status); }; }; then | |
28656 | ac_cv_type_mode_t=yes | |
28657 | else | |
28658 | echo "$as_me: failed program was:" >&5 | |
28659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28660 | ||
28661 | ac_cv_type_mode_t=no | |
28662 | fi | |
ac1cb8d3 | 28663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28664 | fi |
28665 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
28666 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
28667 | if test $ac_cv_type_mode_t = yes; then | |
28668 | : | |
28669 | else | |
28670 | ||
28671 | cat >>confdefs.h <<_ACEOF | |
28672 | #define mode_t int | |
28673 | _ACEOF | |
28674 | ||
28675 | fi | |
28676 | ||
28677 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
28678 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28679 | if test "${ac_cv_type_off_t+set}" = set; then | |
28680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28681 | else | |
28682 | cat >conftest.$ac_ext <<_ACEOF | |
28683 | /* confdefs.h. */ | |
28684 | _ACEOF | |
28685 | cat confdefs.h >>conftest.$ac_ext | |
28686 | cat >>conftest.$ac_ext <<_ACEOF | |
28687 | /* end confdefs.h. */ | |
28688 | $ac_includes_default | |
28689 | int | |
28690 | main () | |
28691 | { | |
28692 | if ((off_t *) 0) | |
28693 | return 0; | |
28694 | if (sizeof (off_t)) | |
28695 | return 0; | |
28696 | ; | |
28697 | return 0; | |
28698 | } | |
28699 | _ACEOF | |
28700 | rm -f conftest.$ac_objext | |
28701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28702 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28703 | ac_status=$? |
ac1cb8d3 VS |
28704 | grep -v '^ *+' conftest.er1 >conftest.err |
28705 | rm -f conftest.er1 | |
28706 | cat conftest.err >&5 | |
a848cd7e SC |
28707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28708 | (exit $ac_status); } && | |
89be85c2 VS |
28709 | { ac_try='test -z "$ac_c_werror_flag" |
28710 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28712 | (eval $ac_try) 2>&5 | |
28713 | ac_status=$? | |
28714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28715 | (exit $ac_status); }; } && | |
28716 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28718 | (eval $ac_try) 2>&5 | |
28719 | ac_status=$? | |
28720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28721 | (exit $ac_status); }; }; then | |
28722 | ac_cv_type_off_t=yes | |
28723 | else | |
28724 | echo "$as_me: failed program was:" >&5 | |
28725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28726 | ||
28727 | ac_cv_type_off_t=no | |
28728 | fi | |
ac1cb8d3 | 28729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28730 | fi |
28731 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
28732 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28733 | if test $ac_cv_type_off_t = yes; then | |
28734 | : | |
28735 | else | |
28736 | ||
28737 | cat >>confdefs.h <<_ACEOF | |
28738 | #define off_t long | |
28739 | _ACEOF | |
28740 | ||
28741 | fi | |
28742 | ||
28743 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
28744 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28745 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28747 | else | |
28748 | cat >conftest.$ac_ext <<_ACEOF | |
28749 | /* confdefs.h. */ | |
28750 | _ACEOF | |
28751 | cat confdefs.h >>conftest.$ac_ext | |
28752 | cat >>conftest.$ac_ext <<_ACEOF | |
28753 | /* end confdefs.h. */ | |
28754 | $ac_includes_default | |
28755 | int | |
28756 | main () | |
28757 | { | |
28758 | if ((pid_t *) 0) | |
28759 | return 0; | |
28760 | if (sizeof (pid_t)) | |
28761 | return 0; | |
28762 | ; | |
28763 | return 0; | |
28764 | } | |
28765 | _ACEOF | |
28766 | rm -f conftest.$ac_objext | |
28767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28768 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28769 | ac_status=$? |
ac1cb8d3 VS |
28770 | grep -v '^ *+' conftest.er1 >conftest.err |
28771 | rm -f conftest.er1 | |
28772 | cat conftest.err >&5 | |
a848cd7e SC |
28773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28774 | (exit $ac_status); } && | |
89be85c2 VS |
28775 | { ac_try='test -z "$ac_c_werror_flag" |
28776 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28778 | (eval $ac_try) 2>&5 | |
28779 | ac_status=$? | |
28780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28781 | (exit $ac_status); }; } && | |
28782 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28784 | (eval $ac_try) 2>&5 | |
28785 | ac_status=$? | |
28786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28787 | (exit $ac_status); }; }; then | |
28788 | ac_cv_type_pid_t=yes | |
28789 | else | |
28790 | echo "$as_me: failed program was:" >&5 | |
28791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28792 | ||
28793 | ac_cv_type_pid_t=no | |
28794 | fi | |
ac1cb8d3 | 28795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28796 | fi |
28797 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
28798 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28799 | if test $ac_cv_type_pid_t = yes; then | |
28800 | : | |
28801 | else | |
28802 | ||
28803 | cat >>confdefs.h <<_ACEOF | |
28804 | #define pid_t int | |
28805 | _ACEOF | |
28806 | ||
28807 | fi | |
28808 | ||
28809 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
28810 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28811 | if test "${ac_cv_type_size_t+set}" = set; then | |
28812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28813 | else | |
28814 | cat >conftest.$ac_ext <<_ACEOF | |
28815 | /* confdefs.h. */ | |
28816 | _ACEOF | |
28817 | cat confdefs.h >>conftest.$ac_ext | |
28818 | cat >>conftest.$ac_ext <<_ACEOF | |
28819 | /* end confdefs.h. */ | |
28820 | $ac_includes_default | |
28821 | int | |
28822 | main () | |
28823 | { | |
28824 | if ((size_t *) 0) | |
28825 | return 0; | |
28826 | if (sizeof (size_t)) | |
28827 | return 0; | |
28828 | ; | |
28829 | return 0; | |
28830 | } | |
28831 | _ACEOF | |
28832 | rm -f conftest.$ac_objext | |
28833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28834 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28835 | ac_status=$? |
ac1cb8d3 VS |
28836 | grep -v '^ *+' conftest.er1 >conftest.err |
28837 | rm -f conftest.er1 | |
28838 | cat conftest.err >&5 | |
a848cd7e SC |
28839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28840 | (exit $ac_status); } && | |
89be85c2 VS |
28841 | { ac_try='test -z "$ac_c_werror_flag" |
28842 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28844 | (eval $ac_try) 2>&5 | |
28845 | ac_status=$? | |
28846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28847 | (exit $ac_status); }; } && | |
28848 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28850 | (eval $ac_try) 2>&5 | |
28851 | ac_status=$? | |
28852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28853 | (exit $ac_status); }; }; then | |
28854 | ac_cv_type_size_t=yes | |
28855 | else | |
28856 | echo "$as_me: failed program was:" >&5 | |
28857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28858 | ||
28859 | ac_cv_type_size_t=no | |
28860 | fi | |
ac1cb8d3 | 28861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28862 | fi |
28863 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28864 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28865 | if test $ac_cv_type_size_t = yes; then | |
28866 | : | |
28867 | else | |
28868 | ||
28869 | cat >>confdefs.h <<_ACEOF | |
28870 | #define size_t unsigned | |
28871 | _ACEOF | |
28872 | ||
28873 | fi | |
28874 | ||
28875 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28876 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28877 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28879 | else | |
28880 | cat >conftest.$ac_ext <<_ACEOF | |
28881 | /* confdefs.h. */ | |
28882 | _ACEOF | |
28883 | cat confdefs.h >>conftest.$ac_ext | |
28884 | cat >>conftest.$ac_ext <<_ACEOF | |
28885 | /* end confdefs.h. */ | |
28886 | #include <sys/types.h> | |
28887 | ||
28888 | _ACEOF | |
28889 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28890 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28891 | ac_cv_type_uid_t=yes | |
28892 | else | |
28893 | ac_cv_type_uid_t=no | |
28894 | fi | |
28895 | rm -f conftest* | |
28896 | ||
28897 | fi | |
28898 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28899 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28900 | if test $ac_cv_type_uid_t = no; then | |
28901 | ||
28902 | cat >>confdefs.h <<\_ACEOF | |
28903 | #define uid_t int | |
28904 | _ACEOF | |
28905 | ||
28906 | ||
28907 | cat >>confdefs.h <<\_ACEOF | |
28908 | #define gid_t int | |
28909 | _ACEOF | |
28910 | ||
28911 | fi | |
28912 | ||
28913 | ||
d51253e8 RL |
28914 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
28915 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
28916 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
28917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28918 | else | |
28919 | cat >conftest.$ac_ext <<_ACEOF | |
28920 | /* confdefs.h. */ | |
28921 | _ACEOF | |
28922 | cat confdefs.h >>conftest.$ac_ext | |
28923 | cat >>conftest.$ac_ext <<_ACEOF | |
28924 | /* end confdefs.h. */ | |
28925 | $ac_includes_default | |
28926 | int | |
28927 | main () | |
28928 | { | |
28929 | if ((ssize_t *) 0) | |
28930 | return 0; | |
28931 | if (sizeof (ssize_t)) | |
28932 | return 0; | |
28933 | ; | |
28934 | return 0; | |
28935 | } | |
28936 | _ACEOF | |
28937 | rm -f conftest.$ac_objext | |
28938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28939 | (eval $ac_compile) 2>conftest.er1 | |
28940 | ac_status=$? | |
28941 | grep -v '^ *+' conftest.er1 >conftest.err | |
28942 | rm -f conftest.er1 | |
28943 | cat conftest.err >&5 | |
28944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28945 | (exit $ac_status); } && | |
89be85c2 VS |
28946 | { ac_try='test -z "$ac_c_werror_flag" |
28947 | || test ! -s conftest.err' | |
d51253e8 RL |
28948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28949 | (eval $ac_try) 2>&5 | |
28950 | ac_status=$? | |
28951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28952 | (exit $ac_status); }; } && | |
28953 | { ac_try='test -s conftest.$ac_objext' | |
28954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28955 | (eval $ac_try) 2>&5 | |
28956 | ac_status=$? | |
28957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28958 | (exit $ac_status); }; }; then | |
28959 | ac_cv_type_ssize_t=yes | |
28960 | else | |
28961 | echo "$as_me: failed program was:" >&5 | |
28962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28963 | ||
28964 | ac_cv_type_ssize_t=no | |
28965 | fi | |
28966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28967 | fi | |
28968 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
28969 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
28970 | if test $ac_cv_type_ssize_t = yes; then | |
28971 | ||
28972 | cat >>confdefs.h <<_ACEOF | |
28973 | #define HAVE_SSIZE_T 1 | |
28974 | _ACEOF | |
28975 | ||
28976 | ||
28977 | fi | |
28978 | ||
28979 | ||
a848cd7e SC |
28980 | |
28981 | ||
28982 | ac_ext=cc | |
28983 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28984 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28985 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28986 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28987 | ||
28988 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28989 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28990 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28992 | else | |
28993 | ||
28994 | cat >conftest.$ac_ext <<_ACEOF | |
28995 | /* confdefs.h. */ | |
28996 | _ACEOF | |
28997 | cat confdefs.h >>conftest.$ac_ext | |
28998 | cat >>conftest.$ac_ext <<_ACEOF | |
28999 | /* end confdefs.h. */ | |
29000 | #include <stddef.h> | |
29001 | int | |
29002 | main () | |
29003 | { | |
29004 | ||
29005 | return 0; } | |
29006 | ||
29007 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
29008 | ||
29009 | int bar() { | |
29010 | ||
29011 | ; | |
29012 | return 0; | |
29013 | } | |
29014 | _ACEOF | |
29015 | rm -f conftest.$ac_objext | |
29016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29017 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29018 | ac_status=$? |
ac1cb8d3 VS |
29019 | grep -v '^ *+' conftest.er1 >conftest.err |
29020 | rm -f conftest.er1 | |
29021 | cat conftest.err >&5 | |
a848cd7e SC |
29022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29023 | (exit $ac_status); } && | |
89be85c2 VS |
29024 | { ac_try='test -z "$ac_cxx_werror_flag" |
29025 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29027 | (eval $ac_try) 2>&5 | |
29028 | ac_status=$? | |
29029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29030 | (exit $ac_status); }; } && | |
29031 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29033 | (eval $ac_try) 2>&5 | |
29034 | ac_status=$? | |
29035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29036 | (exit $ac_status); }; }; then | |
29037 | wx_cv_size_t_is_uint=no | |
29038 | else | |
29039 | echo "$as_me: failed program was:" >&5 | |
29040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29041 | ||
29042 | wx_cv_size_t_is_uint=yes | |
29043 | ||
29044 | fi | |
ac1cb8d3 | 29045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29046 | |
29047 | ||
29048 | fi | |
29049 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
29050 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
29051 | ||
29052 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
29053 | cat >>confdefs.h <<\_ACEOF | |
29054 | #define wxSIZE_T_IS_UINT 1 | |
29055 | _ACEOF | |
29056 | ||
29057 | else | |
29058 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
29059 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
29060 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
29061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29062 | else | |
29063 | cat >conftest.$ac_ext <<_ACEOF | |
29064 | /* confdefs.h. */ | |
29065 | _ACEOF | |
29066 | cat confdefs.h >>conftest.$ac_ext | |
29067 | cat >>conftest.$ac_ext <<_ACEOF | |
29068 | /* end confdefs.h. */ | |
29069 | #include <stddef.h> | |
29070 | int | |
29071 | main () | |
29072 | { | |
29073 | ||
29074 | return 0; } | |
29075 | ||
29076 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
29077 | ||
29078 | int bar() { | |
29079 | ||
29080 | ; | |
29081 | return 0; | |
29082 | } | |
29083 | _ACEOF | |
29084 | rm -f conftest.$ac_objext | |
29085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29086 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29087 | ac_status=$? |
ac1cb8d3 VS |
29088 | grep -v '^ *+' conftest.er1 >conftest.err |
29089 | rm -f conftest.er1 | |
29090 | cat conftest.err >&5 | |
a848cd7e SC |
29091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29092 | (exit $ac_status); } && | |
89be85c2 VS |
29093 | { ac_try='test -z "$ac_cxx_werror_flag" |
29094 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29096 | (eval $ac_try) 2>&5 | |
29097 | ac_status=$? | |
29098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29099 | (exit $ac_status); }; } && | |
29100 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29102 | (eval $ac_try) 2>&5 | |
29103 | ac_status=$? | |
29104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29105 | (exit $ac_status); }; }; then | |
29106 | wx_cv_size_t_is_ulong=no | |
29107 | else | |
29108 | echo "$as_me: failed program was:" >&5 | |
29109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29110 | ||
29111 | wx_cv_size_t_is_ulong=yes | |
29112 | ||
29113 | fi | |
ac1cb8d3 | 29114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29115 | |
29116 | fi | |
29117 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
29118 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
29119 | ||
29120 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
29121 | cat >>confdefs.h <<\_ACEOF | |
29122 | #define wxSIZE_T_IS_ULONG 1 | |
29123 | _ACEOF | |
29124 | ||
29125 | fi | |
29126 | fi | |
29127 | ||
29128 | ac_ext=c | |
29129 | ac_cpp='$CPP $CPPFLAGS' | |
29130 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29131 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29132 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29133 | ||
29134 | ||
29135 | ||
29136 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
29137 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
29138 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
29139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29140 | else | |
29141 | ||
29142 | cat >conftest.$ac_ext <<_ACEOF | |
29143 | /* confdefs.h. */ | |
29144 | _ACEOF | |
29145 | cat confdefs.h >>conftest.$ac_ext | |
29146 | cat >>conftest.$ac_ext <<_ACEOF | |
29147 | /* end confdefs.h. */ | |
29148 | #include <pwd.h> | |
29149 | int | |
29150 | main () | |
29151 | { | |
29152 | ||
29153 | char *p; | |
29154 | struct passwd *pw; | |
29155 | p = pw->pw_gecos; | |
29156 | ||
29157 | ; | |
29158 | return 0; | |
29159 | } | |
29160 | _ACEOF | |
29161 | rm -f conftest.$ac_objext | |
29162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29163 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29164 | ac_status=$? |
ac1cb8d3 VS |
29165 | grep -v '^ *+' conftest.er1 >conftest.err |
29166 | rm -f conftest.er1 | |
29167 | cat conftest.err >&5 | |
a848cd7e SC |
29168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29169 | (exit $ac_status); } && | |
89be85c2 VS |
29170 | { ac_try='test -z "$ac_c_werror_flag" |
29171 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29173 | (eval $ac_try) 2>&5 | |
29174 | ac_status=$? | |
29175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29176 | (exit $ac_status); }; } && | |
29177 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29179 | (eval $ac_try) 2>&5 | |
29180 | ac_status=$? | |
29181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29182 | (exit $ac_status); }; }; then | |
29183 | ||
29184 | wx_cv_struct_pw_gecos=yes | |
29185 | ||
29186 | else | |
29187 | echo "$as_me: failed program was:" >&5 | |
29188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29189 | ||
29190 | ||
29191 | wx_cv_struct_pw_gecos=no | |
29192 | ||
29193 | ||
29194 | fi | |
ac1cb8d3 | 29195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29196 | |
29197 | ||
29198 | fi | |
29199 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
29200 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
29201 | ||
29202 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
29203 | cat >>confdefs.h <<\_ACEOF | |
29204 | #define HAVE_PW_GECOS 1 | |
29205 | _ACEOF | |
29206 | ||
29207 | fi | |
29208 | ||
29209 | ||
29210 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
29211 | cat >>confdefs.h <<\_ACEOF | |
29212 | #define wxUSE_WCHAR_T 1 | |
29213 | _ACEOF | |
29214 | ||
29215 | ||
29216 | WCSLEN_FOUND=0 | |
29217 | WCHAR_LINK= | |
29218 | ||
29219 | for ac_func in wcslen | |
29220 | do | |
29221 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29222 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29223 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29224 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29226 | else | |
29227 | cat >conftest.$ac_ext <<_ACEOF | |
29228 | /* confdefs.h. */ | |
29229 | _ACEOF | |
29230 | cat confdefs.h >>conftest.$ac_ext | |
29231 | cat >>conftest.$ac_ext <<_ACEOF | |
29232 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29233 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29234 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29235 | #define $ac_func innocuous_$ac_func | |
29236 | ||
a848cd7e SC |
29237 | /* System header to define __stub macros and hopefully few prototypes, |
29238 | which can conflict with char $ac_func (); below. | |
29239 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29240 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29241 | |
a848cd7e SC |
29242 | #ifdef __STDC__ |
29243 | # include <limits.h> | |
29244 | #else | |
29245 | # include <assert.h> | |
29246 | #endif | |
ac1cb8d3 VS |
29247 | |
29248 | #undef $ac_func | |
29249 | ||
a848cd7e SC |
29250 | /* Override any gcc2 internal prototype to avoid an error. */ |
29251 | #ifdef __cplusplus | |
29252 | extern "C" | |
29253 | { | |
29254 | #endif | |
29255 | /* We use char because int might match the return type of a gcc2 | |
29256 | builtin and then its argument prototype would still apply. */ | |
29257 | char $ac_func (); | |
29258 | /* The GNU C library defines this for functions which it implements | |
29259 | to always fail with ENOSYS. Some functions are actually named | |
29260 | something starting with __ and the normal name is an alias. */ | |
29261 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29262 | choke me | |
29263 | #else | |
29264 | char (*f) () = $ac_func; | |
29265 | #endif | |
29266 | #ifdef __cplusplus | |
29267 | } | |
29268 | #endif | |
29269 | ||
29270 | int | |
29271 | main () | |
29272 | { | |
29273 | return f != $ac_func; | |
29274 | ; | |
29275 | return 0; | |
29276 | } | |
29277 | _ACEOF | |
29278 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29280 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29281 | ac_status=$? |
ac1cb8d3 VS |
29282 | grep -v '^ *+' conftest.er1 >conftest.err |
29283 | rm -f conftest.er1 | |
29284 | cat conftest.err >&5 | |
a848cd7e SC |
29285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29286 | (exit $ac_status); } && | |
89be85c2 VS |
29287 | { ac_try='test -z "$ac_c_werror_flag" |
29288 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29290 | (eval $ac_try) 2>&5 | |
29291 | ac_status=$? | |
29292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29293 | (exit $ac_status); }; } && | |
29294 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
29300 | eval "$as_ac_var=yes" | |
29301 | else | |
29302 | echo "$as_me: failed program was:" >&5 | |
29303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29304 | ||
29305 | eval "$as_ac_var=no" | |
29306 | fi | |
ac1cb8d3 VS |
29307 | rm -f conftest.err conftest.$ac_objext \ |
29308 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29309 | fi |
29310 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29311 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29312 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29313 | cat >>confdefs.h <<_ACEOF | |
29314 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29315 | _ACEOF | |
29316 | WCSLEN_FOUND=1 | |
29317 | fi | |
29318 | done | |
29319 | ||
29320 | ||
29321 | if test "$WCSLEN_FOUND" = 0; then | |
29322 | if test "$TOOLKIT" = "MSW"; then | |
29323 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
29324 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
29325 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
29326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29327 | else | |
29328 | ac_check_lib_save_LIBS=$LIBS | |
29329 | LIBS="-lmsvcrt $LIBS" | |
29330 | cat >conftest.$ac_ext <<_ACEOF | |
29331 | /* confdefs.h. */ | |
29332 | _ACEOF | |
29333 | cat confdefs.h >>conftest.$ac_ext | |
29334 | cat >>conftest.$ac_ext <<_ACEOF | |
29335 | /* end confdefs.h. */ | |
29336 | ||
29337 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29338 | #ifdef __cplusplus | |
29339 | extern "C" | |
29340 | #endif | |
29341 | /* We use char because int might match the return type of a gcc2 | |
29342 | builtin and then its argument prototype would still apply. */ | |
29343 | char wcslen (); | |
29344 | int | |
29345 | main () | |
29346 | { | |
29347 | wcslen (); | |
29348 | ; | |
29349 | return 0; | |
29350 | } | |
29351 | _ACEOF | |
29352 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29354 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29355 | ac_status=$? |
ac1cb8d3 VS |
29356 | grep -v '^ *+' conftest.er1 >conftest.err |
29357 | rm -f conftest.er1 | |
29358 | cat conftest.err >&5 | |
a848cd7e SC |
29359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29360 | (exit $ac_status); } && | |
89be85c2 VS |
29361 | { ac_try='test -z "$ac_c_werror_flag" |
29362 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29364 | (eval $ac_try) 2>&5 | |
29365 | ac_status=$? | |
29366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29367 | (exit $ac_status); }; } && | |
29368 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29370 | (eval $ac_try) 2>&5 | |
29371 | ac_status=$? | |
29372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29373 | (exit $ac_status); }; }; then | |
29374 | ac_cv_lib_msvcrt_wcslen=yes | |
29375 | else | |
29376 | echo "$as_me: failed program was:" >&5 | |
29377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29378 | ||
29379 | ac_cv_lib_msvcrt_wcslen=no | |
29380 | fi | |
ac1cb8d3 VS |
29381 | rm -f conftest.err conftest.$ac_objext \ |
29382 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29383 | LIBS=$ac_check_lib_save_LIBS |
29384 | fi | |
29385 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
29386 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
29387 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
29388 | WCHAR_OK=1 | |
29389 | fi | |
29390 | ||
29391 | else | |
29392 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
29393 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
29394 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
29395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29396 | else | |
29397 | ac_check_lib_save_LIBS=$LIBS | |
29398 | LIBS="-lw $LIBS" | |
29399 | cat >conftest.$ac_ext <<_ACEOF | |
29400 | /* confdefs.h. */ | |
29401 | _ACEOF | |
29402 | cat confdefs.h >>conftest.$ac_ext | |
29403 | cat >>conftest.$ac_ext <<_ACEOF | |
29404 | /* end confdefs.h. */ | |
29405 | ||
29406 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29407 | #ifdef __cplusplus | |
29408 | extern "C" | |
29409 | #endif | |
29410 | /* We use char because int might match the return type of a gcc2 | |
29411 | builtin and then its argument prototype would still apply. */ | |
29412 | char wcslen (); | |
29413 | int | |
29414 | main () | |
29415 | { | |
29416 | wcslen (); | |
29417 | ; | |
29418 | return 0; | |
29419 | } | |
29420 | _ACEOF | |
29421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29423 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29424 | ac_status=$? |
ac1cb8d3 VS |
29425 | grep -v '^ *+' conftest.er1 >conftest.err |
29426 | rm -f conftest.er1 | |
29427 | cat conftest.err >&5 | |
a848cd7e SC |
29428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29429 | (exit $ac_status); } && | |
89be85c2 VS |
29430 | { ac_try='test -z "$ac_c_werror_flag" |
29431 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29433 | (eval $ac_try) 2>&5 | |
29434 | ac_status=$? | |
29435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29436 | (exit $ac_status); }; } && | |
29437 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29439 | (eval $ac_try) 2>&5 | |
29440 | ac_status=$? | |
29441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29442 | (exit $ac_status); }; }; then | |
29443 | ac_cv_lib_w_wcslen=yes | |
29444 | else | |
29445 | echo "$as_me: failed program was:" >&5 | |
29446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29447 | ||
29448 | ac_cv_lib_w_wcslen=no | |
29449 | fi | |
ac1cb8d3 VS |
29450 | rm -f conftest.err conftest.$ac_objext \ |
29451 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29452 | LIBS=$ac_check_lib_save_LIBS |
29453 | fi | |
29454 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
29455 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
29456 | if test $ac_cv_lib_w_wcslen = yes; then | |
29457 | ||
29458 | WCHAR_LINK=" -lw" | |
29459 | WCSLEN_FOUND=1 | |
29460 | ||
29461 | fi | |
29462 | ||
29463 | fi | |
29464 | fi | |
29465 | ||
29466 | if test "$WCSLEN_FOUND" = 1; then | |
29467 | cat >>confdefs.h <<\_ACEOF | |
29468 | #define HAVE_WCSLEN 1 | |
29469 | _ACEOF | |
29470 | ||
29471 | fi | |
29472 | ||
81f90336 | 29473 | if test "$USE_HPUX" = 1; then |
473276a9 VS |
29474 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
29475 | fi | |
29476 | ||
a848cd7e SC |
29477 | |
29478 | for ac_func in wcsrtombs | |
29479 | do | |
29480 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29481 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29482 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29483 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29485 | else | |
29486 | cat >conftest.$ac_ext <<_ACEOF | |
29487 | /* confdefs.h. */ | |
29488 | _ACEOF | |
29489 | cat confdefs.h >>conftest.$ac_ext | |
29490 | cat >>conftest.$ac_ext <<_ACEOF | |
29491 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29492 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29493 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29494 | #define $ac_func innocuous_$ac_func | |
29495 | ||
a848cd7e SC |
29496 | /* System header to define __stub macros and hopefully few prototypes, |
29497 | which can conflict with char $ac_func (); below. | |
29498 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29499 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29500 | |
a848cd7e SC |
29501 | #ifdef __STDC__ |
29502 | # include <limits.h> | |
29503 | #else | |
29504 | # include <assert.h> | |
29505 | #endif | |
ac1cb8d3 VS |
29506 | |
29507 | #undef $ac_func | |
29508 | ||
a848cd7e SC |
29509 | /* Override any gcc2 internal prototype to avoid an error. */ |
29510 | #ifdef __cplusplus | |
29511 | extern "C" | |
29512 | { | |
29513 | #endif | |
29514 | /* We use char because int might match the return type of a gcc2 | |
29515 | builtin and then its argument prototype would still apply. */ | |
29516 | char $ac_func (); | |
29517 | /* The GNU C library defines this for functions which it implements | |
29518 | to always fail with ENOSYS. Some functions are actually named | |
29519 | something starting with __ and the normal name is an alias. */ | |
29520 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29521 | choke me | |
29522 | #else | |
29523 | char (*f) () = $ac_func; | |
29524 | #endif | |
29525 | #ifdef __cplusplus | |
29526 | } | |
29527 | #endif | |
29528 | ||
29529 | int | |
29530 | main () | |
29531 | { | |
29532 | return f != $ac_func; | |
29533 | ; | |
29534 | return 0; | |
29535 | } | |
29536 | _ACEOF | |
29537 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29539 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29540 | ac_status=$? |
ac1cb8d3 VS |
29541 | grep -v '^ *+' conftest.er1 >conftest.err |
29542 | rm -f conftest.er1 | |
29543 | cat conftest.err >&5 | |
a848cd7e SC |
29544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29545 | (exit $ac_status); } && | |
89be85c2 VS |
29546 | { ac_try='test -z "$ac_c_werror_flag" |
29547 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29549 | (eval $ac_try) 2>&5 | |
29550 | ac_status=$? | |
29551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29552 | (exit $ac_status); }; } && | |
29553 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29555 | (eval $ac_try) 2>&5 | |
29556 | ac_status=$? | |
29557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29558 | (exit $ac_status); }; }; then | |
29559 | eval "$as_ac_var=yes" | |
29560 | else | |
29561 | echo "$as_me: failed program was:" >&5 | |
29562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29563 | ||
29564 | eval "$as_ac_var=no" | |
29565 | fi | |
ac1cb8d3 VS |
29566 | rm -f conftest.err conftest.$ac_objext \ |
29567 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29568 | fi |
29569 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29570 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29571 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29572 | cat >>confdefs.h <<_ACEOF | |
29573 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29574 | _ACEOF | |
29575 | ||
29576 | fi | |
29577 | done | |
29578 | ||
29579 | else | |
29580 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
29581 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
29582 | fi | |
29583 | ||
29584 | ||
29585 | ||
29586 | ac_ext=cc | |
29587 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29588 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29589 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29590 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29591 | ||
29592 | ||
29593 | ||
29594 | for ac_func in vsnprintf | |
29595 | do | |
29596 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29597 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29598 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29599 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29601 | else | |
29602 | cat >conftest.$ac_ext <<_ACEOF | |
29603 | /* confdefs.h. */ | |
29604 | _ACEOF | |
29605 | cat confdefs.h >>conftest.$ac_ext | |
29606 | cat >>conftest.$ac_ext <<_ACEOF | |
29607 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29608 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29609 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29610 | #define $ac_func innocuous_$ac_func | |
29611 | ||
a848cd7e SC |
29612 | /* System header to define __stub macros and hopefully few prototypes, |
29613 | which can conflict with char $ac_func (); below. | |
29614 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29615 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29616 | |
a848cd7e SC |
29617 | #ifdef __STDC__ |
29618 | # include <limits.h> | |
29619 | #else | |
29620 | # include <assert.h> | |
29621 | #endif | |
ac1cb8d3 VS |
29622 | |
29623 | #undef $ac_func | |
29624 | ||
a848cd7e SC |
29625 | /* Override any gcc2 internal prototype to avoid an error. */ |
29626 | #ifdef __cplusplus | |
29627 | extern "C" | |
29628 | { | |
29629 | #endif | |
29630 | /* We use char because int might match the return type of a gcc2 | |
29631 | builtin and then its argument prototype would still apply. */ | |
29632 | char $ac_func (); | |
29633 | /* The GNU C library defines this for functions which it implements | |
29634 | to always fail with ENOSYS. Some functions are actually named | |
29635 | something starting with __ and the normal name is an alias. */ | |
29636 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29637 | choke me | |
29638 | #else | |
29639 | char (*f) () = $ac_func; | |
29640 | #endif | |
29641 | #ifdef __cplusplus | |
29642 | } | |
29643 | #endif | |
29644 | ||
29645 | int | |
29646 | main () | |
29647 | { | |
29648 | return f != $ac_func; | |
29649 | ; | |
29650 | return 0; | |
29651 | } | |
29652 | _ACEOF | |
29653 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29655 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29656 | ac_status=$? |
ac1cb8d3 VS |
29657 | grep -v '^ *+' conftest.er1 >conftest.err |
29658 | rm -f conftest.er1 | |
29659 | cat conftest.err >&5 | |
a848cd7e SC |
29660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29661 | (exit $ac_status); } && | |
89be85c2 VS |
29662 | { ac_try='test -z "$ac_cxx_werror_flag" |
29663 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29665 | (eval $ac_try) 2>&5 | |
29666 | ac_status=$? | |
29667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29668 | (exit $ac_status); }; } && | |
29669 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29671 | (eval $ac_try) 2>&5 | |
29672 | ac_status=$? | |
29673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29674 | (exit $ac_status); }; }; then | |
29675 | eval "$as_ac_var=yes" | |
29676 | else | |
29677 | echo "$as_me: failed program was:" >&5 | |
29678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29679 | ||
29680 | eval "$as_ac_var=no" | |
29681 | fi | |
ac1cb8d3 VS |
29682 | rm -f conftest.err conftest.$ac_objext \ |
29683 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29684 | fi |
29685 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29686 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29687 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29688 | cat >>confdefs.h <<_ACEOF | |
29689 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29690 | _ACEOF | |
29691 | ||
29692 | fi | |
29693 | done | |
29694 | ||
29695 | ||
29696 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
29697 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
29698 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
29699 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
29700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29701 | else | |
29702 | ||
29703 | cat >conftest.$ac_ext <<_ACEOF | |
29704 | /* confdefs.h. */ | |
29705 | _ACEOF | |
29706 | cat confdefs.h >>conftest.$ac_ext | |
29707 | cat >>conftest.$ac_ext <<_ACEOF | |
29708 | /* end confdefs.h. */ | |
29709 | ||
29710 | #include <stdio.h> | |
29711 | #include <stdarg.h> | |
29712 | ||
29713 | int | |
29714 | main () | |
29715 | { | |
29716 | ||
29717 | char *buf; | |
29718 | va_list ap; | |
29719 | vsnprintf(buf, 10u, "%s", ap); | |
29720 | ||
29721 | ; | |
29722 | return 0; | |
29723 | } | |
29724 | _ACEOF | |
29725 | rm -f conftest.$ac_objext | |
29726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29727 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29728 | ac_status=$? |
ac1cb8d3 VS |
29729 | grep -v '^ *+' conftest.er1 >conftest.err |
29730 | rm -f conftest.er1 | |
29731 | cat conftest.err >&5 | |
a848cd7e SC |
29732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29733 | (exit $ac_status); } && | |
89be85c2 VS |
29734 | { ac_try='test -z "$ac_cxx_werror_flag" |
29735 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29737 | (eval $ac_try) 2>&5 | |
29738 | ac_status=$? | |
29739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29740 | (exit $ac_status); }; } && | |
29741 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29743 | (eval $ac_try) 2>&5 | |
29744 | ac_status=$? | |
29745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29746 | (exit $ac_status); }; }; then | |
29747 | wx_cv_func_vsnprintf_decl=yes | |
29748 | else | |
29749 | echo "$as_me: failed program was:" >&5 | |
29750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29751 | ||
c122b164 DE |
29752 | |
29753 | cat >conftest.$ac_ext <<_ACEOF | |
29754 | /* confdefs.h. */ | |
29755 | _ACEOF | |
29756 | cat confdefs.h >>conftest.$ac_ext | |
29757 | cat >>conftest.$ac_ext <<_ACEOF | |
29758 | /* end confdefs.h. */ | |
29759 | ||
29760 | #include <stdio.h> | |
29761 | #include <stdarg.h> | |
29762 | using namespace std; | |
29763 | ||
29764 | int | |
29765 | main () | |
29766 | { | |
29767 | ||
29768 | char *buf; | |
29769 | va_list ap; | |
29770 | vsnprintf(buf, 10u, "%s", ap); | |
29771 | ||
29772 | ; | |
29773 | return 0; | |
29774 | } | |
29775 | _ACEOF | |
29776 | rm -f conftest.$ac_objext | |
29777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29778 | (eval $ac_compile) 2>conftest.er1 | |
29779 | ac_status=$? | |
29780 | grep -v '^ *+' conftest.er1 >conftest.err | |
29781 | rm -f conftest.er1 | |
29782 | cat conftest.err >&5 | |
29783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29784 | (exit $ac_status); } && | |
89be85c2 VS |
29785 | { ac_try='test -z "$ac_cxx_werror_flag" |
29786 | || test ! -s conftest.err' | |
c122b164 DE |
29787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29788 | (eval $ac_try) 2>&5 | |
29789 | ac_status=$? | |
29790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29791 | (exit $ac_status); }; } && | |
29792 | { ac_try='test -s conftest.$ac_objext' | |
29793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29794 | (eval $ac_try) 2>&5 | |
29795 | ac_status=$? | |
29796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29797 | (exit $ac_status); }; }; then | |
29798 | wx_cv_func_vsnprintf_decl=yes | |
29799 | else | |
29800 | echo "$as_me: failed program was:" >&5 | |
29801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29802 | ||
a848cd7e SC |
29803 | wx_cv_func_vsnprintf_decl=no |
29804 | ||
29805 | fi | |
ac1cb8d3 | 29806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29807 | |
29808 | ||
c122b164 DE |
29809 | fi |
29810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29811 | ||
29812 | ||
a848cd7e SC |
29813 | fi |
29814 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29815 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
29816 | ||
29817 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
29818 | cat >>confdefs.h <<\_ACEOF | |
29819 | #define HAVE_VSNPRINTF_DECL 1 | |
29820 | _ACEOF | |
29821 | ||
29822 | fi | |
29823 | fi | |
29824 | ||
29825 | if test "$wxUSE_UNICODE" = yes; then | |
29826 | ||
29827 | ||
29828 | ||
fbe47c7b VS |
29829 | |
29830 | ||
29831 | ||
29832 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
29833 | do |
29834 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29835 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29836 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29837 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29839 | else | |
29840 | cat >conftest.$ac_ext <<_ACEOF | |
29841 | /* confdefs.h. */ | |
29842 | _ACEOF | |
29843 | cat confdefs.h >>conftest.$ac_ext | |
29844 | cat >>conftest.$ac_ext <<_ACEOF | |
29845 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29846 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29847 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29848 | #define $ac_func innocuous_$ac_func | |
29849 | ||
a848cd7e SC |
29850 | /* System header to define __stub macros and hopefully few prototypes, |
29851 | which can conflict with char $ac_func (); below. | |
29852 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29853 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29854 | |
a848cd7e SC |
29855 | #ifdef __STDC__ |
29856 | # include <limits.h> | |
29857 | #else | |
29858 | # include <assert.h> | |
29859 | #endif | |
ac1cb8d3 VS |
29860 | |
29861 | #undef $ac_func | |
29862 | ||
a848cd7e SC |
29863 | /* Override any gcc2 internal prototype to avoid an error. */ |
29864 | #ifdef __cplusplus | |
29865 | extern "C" | |
29866 | { | |
29867 | #endif | |
29868 | /* We use char because int might match the return type of a gcc2 | |
29869 | builtin and then its argument prototype would still apply. */ | |
29870 | char $ac_func (); | |
29871 | /* The GNU C library defines this for functions which it implements | |
29872 | to always fail with ENOSYS. Some functions are actually named | |
29873 | something starting with __ and the normal name is an alias. */ | |
29874 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29875 | choke me | |
29876 | #else | |
29877 | char (*f) () = $ac_func; | |
29878 | #endif | |
29879 | #ifdef __cplusplus | |
29880 | } | |
29881 | #endif | |
29882 | ||
29883 | int | |
29884 | main () | |
29885 | { | |
29886 | return f != $ac_func; | |
29887 | ; | |
29888 | return 0; | |
29889 | } | |
29890 | _ACEOF | |
29891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29893 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29894 | ac_status=$? |
ac1cb8d3 VS |
29895 | grep -v '^ *+' conftest.er1 >conftest.err |
29896 | rm -f conftest.er1 | |
29897 | cat conftest.err >&5 | |
a848cd7e SC |
29898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29899 | (exit $ac_status); } && | |
89be85c2 VS |
29900 | { ac_try='test -z "$ac_cxx_werror_flag" |
29901 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29903 | (eval $ac_try) 2>&5 | |
29904 | ac_status=$? | |
29905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29906 | (exit $ac_status); }; } && | |
29907 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29909 | (eval $ac_try) 2>&5 | |
29910 | ac_status=$? | |
29911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29912 | (exit $ac_status); }; }; then | |
29913 | eval "$as_ac_var=yes" | |
29914 | else | |
29915 | echo "$as_me: failed program was:" >&5 | |
29916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29917 | ||
29918 | eval "$as_ac_var=no" | |
29919 | fi | |
ac1cb8d3 VS |
29920 | rm -f conftest.err conftest.$ac_objext \ |
29921 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29922 | fi |
29923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29924 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29925 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29926 | cat >>confdefs.h <<_ACEOF | |
29927 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29928 | _ACEOF | |
29929 | ||
29930 | fi | |
29931 | done | |
29932 | ||
29933 | ||
29934 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
29935 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29936 | cat >conftest.$ac_ext <<_ACEOF | |
29937 | /* confdefs.h. */ | |
29938 | _ACEOF | |
29939 | cat confdefs.h >>conftest.$ac_ext | |
29940 | cat >>conftest.$ac_ext <<_ACEOF | |
29941 | /* end confdefs.h. */ | |
29942 | #include <wchar.h> | |
29943 | int | |
29944 | main () | |
29945 | { | |
29946 | &_vsnwprintf; | |
29947 | ; | |
29948 | return 0; | |
29949 | } | |
29950 | _ACEOF | |
29951 | rm -f conftest.$ac_objext | |
29952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29953 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29954 | ac_status=$? |
ac1cb8d3 VS |
29955 | grep -v '^ *+' conftest.er1 >conftest.err |
29956 | rm -f conftest.er1 | |
29957 | cat conftest.err >&5 | |
a848cd7e SC |
29958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29959 | (exit $ac_status); } && | |
89be85c2 VS |
29960 | { ac_try='test -z "$ac_cxx_werror_flag" |
29961 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29963 | (eval $ac_try) 2>&5 | |
29964 | ac_status=$? | |
29965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29966 | (exit $ac_status); }; } && | |
29967 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29969 | (eval $ac_try) 2>&5 | |
29970 | ac_status=$? | |
29971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29972 | (exit $ac_status); }; }; then | |
29973 | echo "$as_me:$LINENO: result: yes" >&5 | |
29974 | echo "${ECHO_T}yes" >&6 | |
29975 | cat >>confdefs.h <<\_ACEOF | |
29976 | #define HAVE__VSNWPRINTF 1 | |
29977 | _ACEOF | |
29978 | ||
29979 | else | |
29980 | echo "$as_me: failed program was:" >&5 | |
29981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29982 | ||
29983 | echo "$as_me:$LINENO: result: no" >&5 | |
29984 | echo "${ECHO_T}no" >&6 | |
29985 | fi | |
ac1cb8d3 | 29986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29987 | fi |
29988 | ||
29989 | ac_ext=c | |
29990 | ac_cpp='$CPP $CPPFLAGS' | |
29991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29994 | ||
29995 | ||
29996 | ||
29997 | ||
29998 | if test "$TOOLKIT" != "MSW"; then | |
29999 | ||
30000 | ||
30001 | ||
30002 | ||
30003 | ac_ext=cc | |
30004 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30005 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30006 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30007 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30008 | ||
30009 | ||
30010 | ||
30011 | ||
30012 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
30013 | if test "${with_libiconv_prefix+set}" = set; then | |
30014 | withval="$with_libiconv_prefix" | |
30015 | ||
30016 | for dir in `echo "$withval" | tr : ' '`; do | |
30017 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
30018 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
30019 | done | |
30020 | ||
30021 | fi; | |
30022 | ||
30023 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
30024 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
30025 | if test "${am_cv_func_iconv+set}" = set; then | |
30026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30027 | else | |
30028 | ||
30029 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
30030 | am_cv_lib_iconv=no | |
30031 | cat >conftest.$ac_ext <<_ACEOF | |
30032 | /* confdefs.h. */ | |
30033 | _ACEOF | |
30034 | cat confdefs.h >>conftest.$ac_ext | |
30035 | cat >>conftest.$ac_ext <<_ACEOF | |
30036 | /* end confdefs.h. */ | |
30037 | #include <stdlib.h> | |
30038 | #include <iconv.h> | |
30039 | int | |
30040 | main () | |
30041 | { | |
30042 | iconv_t cd = iconv_open("",""); | |
30043 | iconv(cd,NULL,NULL,NULL,NULL); | |
30044 | iconv_close(cd); | |
30045 | ; | |
30046 | return 0; | |
30047 | } | |
30048 | _ACEOF | |
30049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30051 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30052 | ac_status=$? |
ac1cb8d3 VS |
30053 | grep -v '^ *+' conftest.er1 >conftest.err |
30054 | rm -f conftest.er1 | |
30055 | cat conftest.err >&5 | |
a848cd7e SC |
30056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30057 | (exit $ac_status); } && | |
89be85c2 VS |
30058 | { ac_try='test -z "$ac_cxx_werror_flag" |
30059 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30061 | (eval $ac_try) 2>&5 | |
30062 | ac_status=$? | |
30063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30064 | (exit $ac_status); }; } && | |
30065 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30067 | (eval $ac_try) 2>&5 | |
30068 | ac_status=$? | |
30069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30070 | (exit $ac_status); }; }; then | |
30071 | am_cv_func_iconv=yes | |
30072 | else | |
30073 | echo "$as_me: failed program was:" >&5 | |
30074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30075 | ||
30076 | fi | |
ac1cb8d3 VS |
30077 | rm -f conftest.err conftest.$ac_objext \ |
30078 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30079 | if test "$am_cv_func_iconv" != yes; then |
30080 | am_save_LIBS="$LIBS" | |
30081 | LIBS="$LIBS -liconv" | |
30082 | cat >conftest.$ac_ext <<_ACEOF | |
30083 | /* confdefs.h. */ | |
30084 | _ACEOF | |
30085 | cat confdefs.h >>conftest.$ac_ext | |
30086 | cat >>conftest.$ac_ext <<_ACEOF | |
30087 | /* end confdefs.h. */ | |
30088 | #include <stdlib.h> | |
30089 | #include <iconv.h> | |
30090 | int | |
30091 | main () | |
30092 | { | |
30093 | iconv_t cd = iconv_open("",""); | |
30094 | iconv(cd,NULL,NULL,NULL,NULL); | |
30095 | iconv_close(cd); | |
30096 | ; | |
30097 | return 0; | |
30098 | } | |
30099 | _ACEOF | |
30100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30102 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30103 | ac_status=$? |
ac1cb8d3 VS |
30104 | grep -v '^ *+' conftest.er1 >conftest.err |
30105 | rm -f conftest.er1 | |
30106 | cat conftest.err >&5 | |
a848cd7e SC |
30107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30108 | (exit $ac_status); } && | |
89be85c2 VS |
30109 | { ac_try='test -z "$ac_cxx_werror_flag" |
30110 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30112 | (eval $ac_try) 2>&5 | |
30113 | ac_status=$? | |
30114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30115 | (exit $ac_status); }; } && | |
30116 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30118 | (eval $ac_try) 2>&5 | |
30119 | ac_status=$? | |
30120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30121 | (exit $ac_status); }; }; then | |
30122 | am_cv_lib_iconv=yes | |
30123 | am_cv_func_iconv=yes | |
30124 | else | |
30125 | echo "$as_me: failed program was:" >&5 | |
30126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30127 | ||
30128 | fi | |
ac1cb8d3 VS |
30129 | rm -f conftest.err conftest.$ac_objext \ |
30130 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30131 | LIBS="$am_save_LIBS" |
30132 | fi | |
30133 | ||
30134 | fi | |
30135 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
30136 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
30137 | if test "$am_cv_func_iconv" = yes; then | |
30138 | ||
30139 | cat >>confdefs.h <<\_ACEOF | |
30140 | #define HAVE_ICONV 1 | |
30141 | _ACEOF | |
30142 | ||
30143 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
30144 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
30145 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
30146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30147 | else | |
30148 | cat >conftest.$ac_ext <<_ACEOF | |
30149 | /* confdefs.h. */ | |
30150 | _ACEOF | |
30151 | cat confdefs.h >>conftest.$ac_ext | |
30152 | cat >>conftest.$ac_ext <<_ACEOF | |
30153 | /* end confdefs.h. */ | |
30154 | ||
30155 | #include <stdlib.h> | |
30156 | #include <iconv.h> | |
30157 | extern | |
30158 | #ifdef __cplusplus | |
30159 | "C" | |
30160 | #endif | |
30161 | #if defined(__STDC__) || defined(__cplusplus) | |
30162 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
30163 | #else | |
30164 | size_t iconv(); | |
30165 | #endif | |
30166 | ||
30167 | int | |
30168 | main () | |
30169 | { | |
30170 | ||
30171 | ; | |
30172 | return 0; | |
30173 | } | |
30174 | _ACEOF | |
30175 | rm -f conftest.$ac_objext | |
30176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30177 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30178 | ac_status=$? |
ac1cb8d3 VS |
30179 | grep -v '^ *+' conftest.er1 >conftest.err |
30180 | rm -f conftest.er1 | |
30181 | cat conftest.err >&5 | |
a848cd7e SC |
30182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30183 | (exit $ac_status); } && | |
89be85c2 VS |
30184 | { ac_try='test -z "$ac_cxx_werror_flag" |
30185 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30187 | (eval $ac_try) 2>&5 | |
30188 | ac_status=$? | |
30189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30190 | (exit $ac_status); }; } && | |
30191 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30193 | (eval $ac_try) 2>&5 | |
30194 | ac_status=$? | |
30195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30196 | (exit $ac_status); }; }; then | |
30197 | wx_cv_func_iconv_const="no" | |
30198 | else | |
30199 | echo "$as_me: failed program was:" >&5 | |
30200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30201 | ||
30202 | wx_cv_func_iconv_const="yes" | |
30203 | ||
30204 | fi | |
ac1cb8d3 | 30205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30206 | |
30207 | fi | |
30208 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
30209 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
30210 | ||
30211 | iconv_const= | |
30212 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
30213 | iconv_const="const" | |
30214 | fi | |
30215 | ||
30216 | ||
30217 | cat >>confdefs.h <<_ACEOF | |
30218 | #define ICONV_CONST $iconv_const | |
30219 | _ACEOF | |
30220 | ||
30221 | fi | |
30222 | LIBICONV= | |
30223 | if test "$am_cv_lib_iconv" = yes; then | |
30224 | LIBICONV="-liconv" | |
30225 | fi | |
30226 | ||
30227 | ||
30228 | LIBS="$LIBICONV $LIBS" | |
30229 | ac_ext=c | |
30230 | ac_cpp='$CPP $CPPFLAGS' | |
30231 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30232 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30233 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30234 | ||
30235 | ||
30236 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
30237 | ||
30238 | for ac_func in sigaction | |
30239 | do | |
30240 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30241 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30242 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30243 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30245 | else | |
30246 | cat >conftest.$ac_ext <<_ACEOF | |
30247 | /* confdefs.h. */ | |
30248 | _ACEOF | |
30249 | cat confdefs.h >>conftest.$ac_ext | |
30250 | cat >>conftest.$ac_ext <<_ACEOF | |
30251 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30252 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30253 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30254 | #define $ac_func innocuous_$ac_func | |
30255 | ||
a848cd7e SC |
30256 | /* System header to define __stub macros and hopefully few prototypes, |
30257 | which can conflict with char $ac_func (); below. | |
30258 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30259 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30260 | |
a848cd7e SC |
30261 | #ifdef __STDC__ |
30262 | # include <limits.h> | |
30263 | #else | |
30264 | # include <assert.h> | |
30265 | #endif | |
ac1cb8d3 VS |
30266 | |
30267 | #undef $ac_func | |
30268 | ||
a848cd7e SC |
30269 | /* Override any gcc2 internal prototype to avoid an error. */ |
30270 | #ifdef __cplusplus | |
30271 | extern "C" | |
30272 | { | |
30273 | #endif | |
30274 | /* We use char because int might match the return type of a gcc2 | |
30275 | builtin and then its argument prototype would still apply. */ | |
30276 | char $ac_func (); | |
30277 | /* The GNU C library defines this for functions which it implements | |
30278 | to always fail with ENOSYS. Some functions are actually named | |
30279 | something starting with __ and the normal name is an alias. */ | |
30280 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30281 | choke me | |
30282 | #else | |
30283 | char (*f) () = $ac_func; | |
30284 | #endif | |
30285 | #ifdef __cplusplus | |
30286 | } | |
30287 | #endif | |
30288 | ||
30289 | int | |
30290 | main () | |
30291 | { | |
30292 | return f != $ac_func; | |
30293 | ; | |
30294 | return 0; | |
30295 | } | |
30296 | _ACEOF | |
30297 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30299 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30300 | ac_status=$? |
ac1cb8d3 VS |
30301 | grep -v '^ *+' conftest.er1 >conftest.err |
30302 | rm -f conftest.er1 | |
30303 | cat conftest.err >&5 | |
a848cd7e SC |
30304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30305 | (exit $ac_status); } && | |
89be85c2 VS |
30306 | { ac_try='test -z "$ac_c_werror_flag" |
30307 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30309 | (eval $ac_try) 2>&5 | |
30310 | ac_status=$? | |
30311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30312 | (exit $ac_status); }; } && | |
30313 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30315 | (eval $ac_try) 2>&5 | |
30316 | ac_status=$? | |
30317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30318 | (exit $ac_status); }; }; then | |
30319 | eval "$as_ac_var=yes" | |
30320 | else | |
30321 | echo "$as_me: failed program was:" >&5 | |
30322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30323 | ||
30324 | eval "$as_ac_var=no" | |
30325 | fi | |
ac1cb8d3 VS |
30326 | rm -f conftest.err conftest.$ac_objext \ |
30327 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30328 | fi |
30329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30330 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30331 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30332 | cat >>confdefs.h <<_ACEOF | |
30333 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30334 | _ACEOF | |
30335 | ||
30336 | fi | |
30337 | done | |
30338 | ||
30339 | ||
30340 | if test "$ac_cv_func_sigaction" = "no"; then | |
30341 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
30342 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
30343 | wxUSE_ON_FATAL_EXCEPTION=no | |
30344 | fi | |
30345 | ||
30346 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
30347 | ||
30348 | ||
30349 | ac_ext=cc | |
30350 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30351 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30352 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30353 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30354 | ||
30355 | ||
30356 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
30357 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
30358 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
30359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30360 | else | |
30361 | ||
30362 | cat >conftest.$ac_ext <<_ACEOF | |
30363 | /* confdefs.h. */ | |
30364 | _ACEOF | |
30365 | cat confdefs.h >>conftest.$ac_ext | |
30366 | cat >>conftest.$ac_ext <<_ACEOF | |
30367 | /* end confdefs.h. */ | |
30368 | #include <signal.h> | |
30369 | int | |
30370 | main () | |
30371 | { | |
30372 | ||
30373 | extern void testSigHandler(int); | |
30374 | ||
30375 | struct sigaction sa; | |
30376 | sa.sa_handler = testSigHandler; | |
30377 | ||
30378 | ; | |
30379 | return 0; | |
30380 | } | |
30381 | _ACEOF | |
30382 | rm -f conftest.$ac_objext | |
30383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30384 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30385 | ac_status=$? |
ac1cb8d3 VS |
30386 | grep -v '^ *+' conftest.er1 >conftest.err |
30387 | rm -f conftest.er1 | |
30388 | cat conftest.err >&5 | |
a848cd7e SC |
30389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30390 | (exit $ac_status); } && | |
89be85c2 VS |
30391 | { ac_try='test -z "$ac_cxx_werror_flag" |
30392 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30394 | (eval $ac_try) 2>&5 | |
30395 | ac_status=$? | |
30396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30397 | (exit $ac_status); }; } && | |
30398 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30400 | (eval $ac_try) 2>&5 | |
30401 | ac_status=$? | |
30402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30403 | (exit $ac_status); }; }; then | |
30404 | ||
30405 | wx_cv_type_sa_handler=int | |
30406 | ||
30407 | else | |
30408 | echo "$as_me: failed program was:" >&5 | |
30409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30410 | ||
30411 | ||
30412 | wx_cv_type_sa_handler=void | |
30413 | ||
30414 | fi | |
ac1cb8d3 | 30415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30416 | |
30417 | fi | |
30418 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
30419 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
30420 | ||
30421 | ac_ext=c | |
30422 | ac_cpp='$CPP $CPPFLAGS' | |
30423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30426 | ||
30427 | ||
30428 | cat >>confdefs.h <<_ACEOF | |
30429 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
30430 | _ACEOF | |
30431 | ||
30432 | fi | |
30433 | fi | |
30434 | ||
eaff0f0d VZ |
30435 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
30436 | ||
30437 | ||
30438 | ac_ext=cc | |
30439 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30440 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30441 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30442 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30443 | ||
30444 | ||
30445 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
30446 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
30447 | if test "${wx_cv_func_backtrace+set}" = set; then | |
30448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30449 | else | |
30450 | ||
30451 | cat >conftest.$ac_ext <<_ACEOF | |
30452 | /* confdefs.h. */ | |
30453 | _ACEOF | |
30454 | cat confdefs.h >>conftest.$ac_ext | |
30455 | cat >>conftest.$ac_ext <<_ACEOF | |
30456 | /* end confdefs.h. */ | |
30457 | #include <execinfo.h> | |
30458 | int | |
30459 | main () | |
30460 | { | |
30461 | ||
30462 | void *trace[1]; | |
30463 | char **messages; | |
30464 | ||
30465 | backtrace(trace, 1); | |
30466 | messages = backtrace_symbols(trace, 1); | |
30467 | ||
30468 | ; | |
30469 | return 0; | |
30470 | } | |
30471 | _ACEOF | |
30472 | rm -f conftest.$ac_objext | |
30473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30474 | (eval $ac_compile) 2>conftest.er1 | |
30475 | ac_status=$? | |
30476 | grep -v '^ *+' conftest.er1 >conftest.err | |
30477 | rm -f conftest.er1 | |
30478 | cat conftest.err >&5 | |
30479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30480 | (exit $ac_status); } && | |
89be85c2 VS |
30481 | { ac_try='test -z "$ac_cxx_werror_flag" |
30482 | || test ! -s conftest.err' | |
eaff0f0d VZ |
30483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30484 | (eval $ac_try) 2>&5 | |
30485 | ac_status=$? | |
30486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30487 | (exit $ac_status); }; } && | |
30488 | { ac_try='test -s conftest.$ac_objext' | |
30489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30490 | (eval $ac_try) 2>&5 | |
30491 | ac_status=$? | |
30492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30493 | (exit $ac_status); }; }; then | |
30494 | wx_cv_func_backtrace=yes | |
30495 | else | |
30496 | echo "$as_me: failed program was:" >&5 | |
30497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30498 | ||
30499 | wx_cv_func_backtrace=no | |
30500 | ||
30501 | fi | |
30502 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30503 | ||
30504 | ||
30505 | fi | |
30506 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
30507 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
30508 | ||
30509 | ||
30510 | if test "$wx_cv_func_backtrace" = "no"; then | |
30511 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
30512 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
30513 | wxUSE_STACKWALKER=no | |
30514 | else | |
30515 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
30516 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
30517 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
30518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30519 | else | |
30520 | ||
30521 | cat >conftest.$ac_ext <<_ACEOF | |
30522 | /* confdefs.h. */ | |
30523 | _ACEOF | |
30524 | cat confdefs.h >>conftest.$ac_ext | |
30525 | cat >>conftest.$ac_ext <<_ACEOF | |
30526 | /* end confdefs.h. */ | |
30527 | #include <cxxabi.h> | |
30528 | int | |
30529 | main () | |
30530 | { | |
30531 | ||
30532 | int rc; | |
30533 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
30534 | ||
30535 | ; | |
30536 | return 0; | |
30537 | } | |
30538 | _ACEOF | |
30539 | rm -f conftest.$ac_objext | |
30540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30541 | (eval $ac_compile) 2>conftest.er1 | |
30542 | ac_status=$? | |
30543 | grep -v '^ *+' conftest.er1 >conftest.err | |
30544 | rm -f conftest.er1 | |
30545 | cat conftest.err >&5 | |
30546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30547 | (exit $ac_status); } && | |
89be85c2 VS |
30548 | { ac_try='test -z "$ac_cxx_werror_flag" |
30549 | || test ! -s conftest.err' | |
eaff0f0d VZ |
30550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30551 | (eval $ac_try) 2>&5 | |
30552 | ac_status=$? | |
30553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30554 | (exit $ac_status); }; } && | |
30555 | { ac_try='test -s conftest.$ac_objext' | |
30556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30557 | (eval $ac_try) 2>&5 | |
30558 | ac_status=$? | |
30559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30560 | (exit $ac_status); }; }; then | |
30561 | wx_cv_func_cxa_demangle=yes | |
30562 | else | |
30563 | echo "$as_me: failed program was:" >&5 | |
30564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30565 | ||
30566 | wx_cv_func_cxa_demangle=no | |
30567 | ||
30568 | fi | |
30569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30570 | ||
30571 | ||
30572 | fi | |
30573 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
30574 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
30575 | ||
30576 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
30577 | cat >>confdefs.h <<\_ACEOF | |
30578 | #define HAVE_CXA_DEMANGLE 1 | |
30579 | _ACEOF | |
30580 | ||
30581 | fi | |
30582 | fi | |
30583 | ||
30584 | ac_ext=c | |
30585 | ac_cpp='$CPP $CPPFLAGS' | |
30586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30589 | ||
30590 | fi | |
30591 | ||
a848cd7e SC |
30592 | |
30593 | ||
30594 | for ac_func in mkstemp mktemp | |
30595 | do | |
30596 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30597 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30598 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30599 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30601 | else | |
30602 | cat >conftest.$ac_ext <<_ACEOF | |
30603 | /* confdefs.h. */ | |
30604 | _ACEOF | |
30605 | cat confdefs.h >>conftest.$ac_ext | |
30606 | cat >>conftest.$ac_ext <<_ACEOF | |
30607 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30608 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30609 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30610 | #define $ac_func innocuous_$ac_func | |
30611 | ||
a848cd7e SC |
30612 | /* System header to define __stub macros and hopefully few prototypes, |
30613 | which can conflict with char $ac_func (); below. | |
30614 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30615 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30616 | |
a848cd7e SC |
30617 | #ifdef __STDC__ |
30618 | # include <limits.h> | |
30619 | #else | |
30620 | # include <assert.h> | |
30621 | #endif | |
ac1cb8d3 VS |
30622 | |
30623 | #undef $ac_func | |
30624 | ||
a848cd7e SC |
30625 | /* Override any gcc2 internal prototype to avoid an error. */ |
30626 | #ifdef __cplusplus | |
30627 | extern "C" | |
30628 | { | |
30629 | #endif | |
30630 | /* We use char because int might match the return type of a gcc2 | |
30631 | builtin and then its argument prototype would still apply. */ | |
30632 | char $ac_func (); | |
30633 | /* The GNU C library defines this for functions which it implements | |
30634 | to always fail with ENOSYS. Some functions are actually named | |
30635 | something starting with __ and the normal name is an alias. */ | |
30636 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30637 | choke me | |
30638 | #else | |
30639 | char (*f) () = $ac_func; | |
30640 | #endif | |
30641 | #ifdef __cplusplus | |
30642 | } | |
30643 | #endif | |
30644 | ||
30645 | int | |
30646 | main () | |
30647 | { | |
30648 | return f != $ac_func; | |
30649 | ; | |
30650 | return 0; | |
30651 | } | |
30652 | _ACEOF | |
30653 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30655 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30656 | ac_status=$? |
ac1cb8d3 VS |
30657 | grep -v '^ *+' conftest.er1 >conftest.err |
30658 | rm -f conftest.er1 | |
30659 | cat conftest.err >&5 | |
a848cd7e SC |
30660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30661 | (exit $ac_status); } && | |
89be85c2 VS |
30662 | { ac_try='test -z "$ac_c_werror_flag" |
30663 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30665 | (eval $ac_try) 2>&5 | |
30666 | ac_status=$? | |
30667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30668 | (exit $ac_status); }; } && | |
30669 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30671 | (eval $ac_try) 2>&5 | |
30672 | ac_status=$? | |
30673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30674 | (exit $ac_status); }; }; then | |
30675 | eval "$as_ac_var=yes" | |
30676 | else | |
30677 | echo "$as_me: failed program was:" >&5 | |
30678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30679 | ||
30680 | eval "$as_ac_var=no" | |
30681 | fi | |
ac1cb8d3 VS |
30682 | rm -f conftest.err conftest.$ac_objext \ |
30683 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30684 | fi |
30685 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30686 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30687 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30688 | cat >>confdefs.h <<_ACEOF | |
30689 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30690 | _ACEOF | |
30691 | break | |
30692 | fi | |
30693 | done | |
30694 | ||
30695 | ||
30696 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
30697 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
30698 | if test "${wx_cv_func_statfs+set}" = set; then | |
30699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30700 | else | |
30701 | cat >conftest.$ac_ext <<_ACEOF | |
30702 | /* confdefs.h. */ | |
30703 | _ACEOF | |
30704 | cat confdefs.h >>conftest.$ac_ext | |
30705 | cat >>conftest.$ac_ext <<_ACEOF | |
30706 | /* end confdefs.h. */ | |
30707 | ||
30708 | #if defined(__BSD__) | |
30709 | #include <sys/param.h> | |
30710 | #include <sys/mount.h> | |
30711 | #else | |
30712 | #include <sys/vfs.h> | |
30713 | #endif | |
30714 | ||
30715 | int | |
30716 | main () | |
30717 | { | |
30718 | ||
30719 | long l; | |
30720 | struct statfs fs; | |
30721 | statfs("/", &fs); | |
30722 | l = fs.f_bsize; | |
30723 | l += fs.f_blocks; | |
30724 | l += fs.f_bavail; | |
30725 | ||
30726 | ; | |
30727 | return 0; | |
30728 | } | |
30729 | _ACEOF | |
30730 | rm -f conftest.$ac_objext | |
30731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30732 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30733 | ac_status=$? |
ac1cb8d3 VS |
30734 | grep -v '^ *+' conftest.er1 >conftest.err |
30735 | rm -f conftest.er1 | |
30736 | cat conftest.err >&5 | |
a848cd7e SC |
30737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30738 | (exit $ac_status); } && | |
89be85c2 VS |
30739 | { ac_try='test -z "$ac_c_werror_flag" |
30740 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30742 | (eval $ac_try) 2>&5 | |
30743 | ac_status=$? | |
30744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30745 | (exit $ac_status); }; } && | |
30746 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30748 | (eval $ac_try) 2>&5 | |
30749 | ac_status=$? | |
30750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30751 | (exit $ac_status); }; }; then | |
30752 | ||
30753 | wx_cv_func_statfs=yes | |
30754 | ||
30755 | else | |
30756 | echo "$as_me: failed program was:" >&5 | |
30757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30758 | ||
30759 | ||
30760 | wx_cv_func_statfs=no | |
30761 | ||
30762 | ||
30763 | fi | |
ac1cb8d3 | 30764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30765 | |
30766 | fi | |
30767 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
30768 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
30769 | ||
30770 | if test "$wx_cv_func_statfs" = "yes"; then | |
30771 | wx_cv_type_statvfs_t="struct statfs" | |
30772 | cat >>confdefs.h <<\_ACEOF | |
30773 | #define HAVE_STATFS 1 | |
30774 | _ACEOF | |
30775 | ||
30776 | else | |
30777 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
30778 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
30779 | if test "${wx_cv_func_statvfs+set}" = set; then | |
30780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30781 | else | |
30782 | cat >conftest.$ac_ext <<_ACEOF | |
30783 | /* confdefs.h. */ | |
30784 | _ACEOF | |
30785 | cat confdefs.h >>conftest.$ac_ext | |
30786 | cat >>conftest.$ac_ext <<_ACEOF | |
30787 | /* end confdefs.h. */ | |
30788 | ||
30789 | #include <stddef.h> | |
30790 | #include <sys/statvfs.h> | |
30791 | ||
30792 | int | |
30793 | main () | |
30794 | { | |
30795 | ||
30796 | statvfs("/", NULL); | |
30797 | ||
30798 | ; | |
30799 | return 0; | |
30800 | } | |
30801 | _ACEOF | |
30802 | rm -f conftest.$ac_objext | |
30803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30804 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30805 | ac_status=$? |
ac1cb8d3 VS |
30806 | grep -v '^ *+' conftest.er1 >conftest.err |
30807 | rm -f conftest.er1 | |
30808 | cat conftest.err >&5 | |
a848cd7e SC |
30809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30810 | (exit $ac_status); } && | |
89be85c2 VS |
30811 | { ac_try='test -z "$ac_c_werror_flag" |
30812 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30814 | (eval $ac_try) 2>&5 | |
30815 | ac_status=$? | |
30816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30817 | (exit $ac_status); }; } && | |
30818 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30820 | (eval $ac_try) 2>&5 | |
30821 | ac_status=$? | |
30822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30823 | (exit $ac_status); }; }; then | |
30824 | wx_cv_func_statvfs=yes | |
30825 | else | |
30826 | echo "$as_me: failed program was:" >&5 | |
30827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30828 | ||
30829 | wx_cv_func_statvfs=no | |
30830 | ||
30831 | fi | |
ac1cb8d3 | 30832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30833 | |
30834 | fi | |
30835 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
30836 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
30837 | ||
30838 | if test "$wx_cv_func_statvfs" = "yes"; then | |
30839 | ||
30840 | ||
30841 | ac_ext=cc | |
30842 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30843 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30844 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30845 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30846 | ||
30847 | ||
30848 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
30849 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
30850 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
30851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30852 | else | |
30853 | cat >conftest.$ac_ext <<_ACEOF | |
30854 | /* confdefs.h. */ | |
30855 | _ACEOF | |
30856 | cat confdefs.h >>conftest.$ac_ext | |
30857 | cat >>conftest.$ac_ext <<_ACEOF | |
30858 | /* end confdefs.h. */ | |
30859 | ||
30860 | #include <sys/statvfs.h> | |
30861 | ||
30862 | int | |
30863 | main () | |
30864 | { | |
30865 | ||
30866 | long l; | |
30867 | statvfs_t fs; | |
30868 | statvfs("/", &fs); | |
30869 | l = fs.f_bsize; | |
30870 | l += fs.f_blocks; | |
30871 | l += fs.f_bavail; | |
30872 | ||
30873 | ; | |
30874 | return 0; | |
30875 | } | |
30876 | _ACEOF | |
30877 | rm -f conftest.$ac_objext | |
30878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30879 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30880 | ac_status=$? |
ac1cb8d3 VS |
30881 | grep -v '^ *+' conftest.er1 >conftest.err |
30882 | rm -f conftest.er1 | |
30883 | cat conftest.err >&5 | |
a848cd7e SC |
30884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30885 | (exit $ac_status); } && | |
89be85c2 VS |
30886 | { ac_try='test -z "$ac_cxx_werror_flag" |
30887 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30889 | (eval $ac_try) 2>&5 | |
30890 | ac_status=$? | |
30891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30892 | (exit $ac_status); }; } && | |
30893 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30895 | (eval $ac_try) 2>&5 | |
30896 | ac_status=$? | |
30897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30898 | (exit $ac_status); }; }; then | |
30899 | wx_cv_type_statvfs_t=statvfs_t | |
30900 | else | |
30901 | echo "$as_me: failed program was:" >&5 | |
30902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30903 | ||
30904 | ||
30905 | cat >conftest.$ac_ext <<_ACEOF | |
30906 | /* confdefs.h. */ | |
30907 | _ACEOF | |
30908 | cat confdefs.h >>conftest.$ac_ext | |
30909 | cat >>conftest.$ac_ext <<_ACEOF | |
30910 | /* end confdefs.h. */ | |
30911 | ||
30912 | #include <sys/statvfs.h> | |
30913 | ||
30914 | int | |
30915 | main () | |
30916 | { | |
30917 | ||
30918 | long l; | |
30919 | struct statvfs fs; | |
30920 | statvfs("/", &fs); | |
30921 | l = fs.f_bsize; | |
30922 | l += fs.f_blocks; | |
30923 | l += fs.f_bavail; | |
30924 | ||
30925 | ; | |
30926 | return 0; | |
30927 | } | |
30928 | _ACEOF | |
30929 | rm -f conftest.$ac_objext | |
30930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30931 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30932 | ac_status=$? |
ac1cb8d3 VS |
30933 | grep -v '^ *+' conftest.er1 >conftest.err |
30934 | rm -f conftest.er1 | |
30935 | cat conftest.err >&5 | |
a848cd7e SC |
30936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30937 | (exit $ac_status); } && | |
89be85c2 VS |
30938 | { ac_try='test -z "$ac_cxx_werror_flag" |
30939 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30941 | (eval $ac_try) 2>&5 | |
30942 | ac_status=$? | |
30943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30944 | (exit $ac_status); }; } && | |
30945 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30947 | (eval $ac_try) 2>&5 | |
30948 | ac_status=$? | |
30949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30950 | (exit $ac_status); }; }; then | |
30951 | wx_cv_type_statvfs_t="struct statvfs" | |
30952 | else | |
30953 | echo "$as_me: failed program was:" >&5 | |
30954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30955 | ||
30956 | wx_cv_type_statvfs_t="unknown" | |
30957 | ||
30958 | fi | |
ac1cb8d3 | 30959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30960 | |
30961 | ||
30962 | fi | |
ac1cb8d3 | 30963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30964 | |
30965 | fi | |
30966 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
30967 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
30968 | ||
30969 | ac_ext=c | |
30970 | ac_cpp='$CPP $CPPFLAGS' | |
30971 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30972 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30973 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30974 | ||
30975 | ||
30976 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30977 | cat >>confdefs.h <<\_ACEOF | |
30978 | #define HAVE_STATVFS 1 | |
30979 | _ACEOF | |
30980 | ||
30981 | fi | |
30982 | else | |
30983 | wx_cv_type_statvfs_t="unknown" | |
30984 | fi | |
30985 | fi | |
30986 | ||
30987 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30988 | cat >>confdefs.h <<_ACEOF | |
30989 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
30990 | _ACEOF | |
30991 | ||
30992 | else | |
30993 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
30994 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
30995 | fi | |
30996 | ||
30997 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
30998 | ||
30999 | ||
31000 | for ac_func in fcntl flock | |
31001 | do | |
31002 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31003 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31004 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31005 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31007 | else | |
31008 | cat >conftest.$ac_ext <<_ACEOF | |
31009 | /* confdefs.h. */ | |
31010 | _ACEOF | |
31011 | cat confdefs.h >>conftest.$ac_ext | |
31012 | cat >>conftest.$ac_ext <<_ACEOF | |
31013 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31014 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31015 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31016 | #define $ac_func innocuous_$ac_func | |
31017 | ||
a848cd7e SC |
31018 | /* System header to define __stub macros and hopefully few prototypes, |
31019 | which can conflict with char $ac_func (); below. | |
31020 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31021 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31022 | |
a848cd7e SC |
31023 | #ifdef __STDC__ |
31024 | # include <limits.h> | |
31025 | #else | |
31026 | # include <assert.h> | |
31027 | #endif | |
ac1cb8d3 VS |
31028 | |
31029 | #undef $ac_func | |
31030 | ||
a848cd7e SC |
31031 | /* Override any gcc2 internal prototype to avoid an error. */ |
31032 | #ifdef __cplusplus | |
31033 | extern "C" | |
31034 | { | |
31035 | #endif | |
31036 | /* We use char because int might match the return type of a gcc2 | |
31037 | builtin and then its argument prototype would still apply. */ | |
31038 | char $ac_func (); | |
31039 | /* The GNU C library defines this for functions which it implements | |
31040 | to always fail with ENOSYS. Some functions are actually named | |
31041 | something starting with __ and the normal name is an alias. */ | |
31042 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31043 | choke me | |
31044 | #else | |
31045 | char (*f) () = $ac_func; | |
31046 | #endif | |
31047 | #ifdef __cplusplus | |
31048 | } | |
31049 | #endif | |
31050 | ||
31051 | int | |
31052 | main () | |
31053 | { | |
31054 | return f != $ac_func; | |
31055 | ; | |
31056 | return 0; | |
31057 | } | |
31058 | _ACEOF | |
31059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31061 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31062 | ac_status=$? |
ac1cb8d3 VS |
31063 | grep -v '^ *+' conftest.er1 >conftest.err |
31064 | rm -f conftest.er1 | |
31065 | cat conftest.err >&5 | |
a848cd7e SC |
31066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31067 | (exit $ac_status); } && | |
89be85c2 VS |
31068 | { ac_try='test -z "$ac_c_werror_flag" |
31069 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31071 | (eval $ac_try) 2>&5 | |
31072 | ac_status=$? | |
31073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31074 | (exit $ac_status); }; } && | |
31075 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31077 | (eval $ac_try) 2>&5 | |
31078 | ac_status=$? | |
31079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31080 | (exit $ac_status); }; }; then | |
31081 | eval "$as_ac_var=yes" | |
31082 | else | |
31083 | echo "$as_me: failed program was:" >&5 | |
31084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31085 | ||
31086 | eval "$as_ac_var=no" | |
31087 | fi | |
ac1cb8d3 VS |
31088 | rm -f conftest.err conftest.$ac_objext \ |
31089 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31090 | fi |
31091 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31092 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31093 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31094 | cat >>confdefs.h <<_ACEOF | |
31095 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31096 | _ACEOF | |
31097 | break | |
31098 | fi | |
31099 | done | |
31100 | ||
31101 | ||
31102 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
31103 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
31104 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
31105 | wxUSE_SNGLINST_CHECKER=no | |
31106 | fi | |
31107 | fi | |
31108 | ||
31109 | ||
31110 | for ac_func in timegm | |
31111 | do | |
31112 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31113 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31114 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31115 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31117 | else | |
31118 | cat >conftest.$ac_ext <<_ACEOF | |
31119 | /* confdefs.h. */ | |
31120 | _ACEOF | |
31121 | cat confdefs.h >>conftest.$ac_ext | |
31122 | cat >>conftest.$ac_ext <<_ACEOF | |
31123 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31124 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31125 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31126 | #define $ac_func innocuous_$ac_func | |
31127 | ||
a848cd7e SC |
31128 | /* System header to define __stub macros and hopefully few prototypes, |
31129 | which can conflict with char $ac_func (); below. | |
31130 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31131 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31132 | |
a848cd7e SC |
31133 | #ifdef __STDC__ |
31134 | # include <limits.h> | |
31135 | #else | |
31136 | # include <assert.h> | |
31137 | #endif | |
ac1cb8d3 VS |
31138 | |
31139 | #undef $ac_func | |
31140 | ||
a848cd7e SC |
31141 | /* Override any gcc2 internal prototype to avoid an error. */ |
31142 | #ifdef __cplusplus | |
31143 | extern "C" | |
31144 | { | |
31145 | #endif | |
31146 | /* We use char because int might match the return type of a gcc2 | |
31147 | builtin and then its argument prototype would still apply. */ | |
31148 | char $ac_func (); | |
31149 | /* The GNU C library defines this for functions which it implements | |
31150 | to always fail with ENOSYS. Some functions are actually named | |
31151 | something starting with __ and the normal name is an alias. */ | |
31152 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31153 | choke me | |
31154 | #else | |
31155 | char (*f) () = $ac_func; | |
31156 | #endif | |
31157 | #ifdef __cplusplus | |
31158 | } | |
31159 | #endif | |
31160 | ||
31161 | int | |
31162 | main () | |
31163 | { | |
31164 | return f != $ac_func; | |
31165 | ; | |
31166 | return 0; | |
31167 | } | |
31168 | _ACEOF | |
31169 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31171 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31172 | ac_status=$? |
ac1cb8d3 VS |
31173 | grep -v '^ *+' conftest.er1 >conftest.err |
31174 | rm -f conftest.er1 | |
31175 | cat conftest.err >&5 | |
a848cd7e SC |
31176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31177 | (exit $ac_status); } && | |
89be85c2 VS |
31178 | { ac_try='test -z "$ac_c_werror_flag" |
31179 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31181 | (eval $ac_try) 2>&5 | |
31182 | ac_status=$? | |
31183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31184 | (exit $ac_status); }; } && | |
31185 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31187 | (eval $ac_try) 2>&5 | |
31188 | ac_status=$? | |
31189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31190 | (exit $ac_status); }; }; then | |
31191 | eval "$as_ac_var=yes" | |
31192 | else | |
31193 | echo "$as_me: failed program was:" >&5 | |
31194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31195 | ||
31196 | eval "$as_ac_var=no" | |
31197 | fi | |
ac1cb8d3 VS |
31198 | rm -f conftest.err conftest.$ac_objext \ |
31199 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31200 | fi |
31201 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31202 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31203 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31204 | cat >>confdefs.h <<_ACEOF | |
31205 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31206 | _ACEOF | |
31207 | ||
31208 | fi | |
31209 | done | |
31210 | ||
31211 | ||
31212 | ||
31213 | ||
31214 | for ac_func in putenv setenv | |
31215 | do | |
31216 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31217 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31218 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31219 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31221 | else | |
31222 | cat >conftest.$ac_ext <<_ACEOF | |
31223 | /* confdefs.h. */ | |
31224 | _ACEOF | |
31225 | cat confdefs.h >>conftest.$ac_ext | |
31226 | cat >>conftest.$ac_ext <<_ACEOF | |
31227 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31228 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31229 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31230 | #define $ac_func innocuous_$ac_func | |
31231 | ||
a848cd7e SC |
31232 | /* System header to define __stub macros and hopefully few prototypes, |
31233 | which can conflict with char $ac_func (); below. | |
31234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31235 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31236 | |
a848cd7e SC |
31237 | #ifdef __STDC__ |
31238 | # include <limits.h> | |
31239 | #else | |
31240 | # include <assert.h> | |
31241 | #endif | |
ac1cb8d3 VS |
31242 | |
31243 | #undef $ac_func | |
31244 | ||
a848cd7e SC |
31245 | /* Override any gcc2 internal prototype to avoid an error. */ |
31246 | #ifdef __cplusplus | |
31247 | extern "C" | |
31248 | { | |
31249 | #endif | |
31250 | /* We use char because int might match the return type of a gcc2 | |
31251 | builtin and then its argument prototype would still apply. */ | |
31252 | char $ac_func (); | |
31253 | /* The GNU C library defines this for functions which it implements | |
31254 | to always fail with ENOSYS. Some functions are actually named | |
31255 | something starting with __ and the normal name is an alias. */ | |
31256 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31257 | choke me | |
31258 | #else | |
31259 | char (*f) () = $ac_func; | |
31260 | #endif | |
31261 | #ifdef __cplusplus | |
31262 | } | |
31263 | #endif | |
31264 | ||
31265 | int | |
31266 | main () | |
31267 | { | |
31268 | return f != $ac_func; | |
31269 | ; | |
31270 | return 0; | |
31271 | } | |
31272 | _ACEOF | |
31273 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31275 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31276 | ac_status=$? |
ac1cb8d3 VS |
31277 | grep -v '^ *+' conftest.er1 >conftest.err |
31278 | rm -f conftest.er1 | |
31279 | cat conftest.err >&5 | |
a848cd7e SC |
31280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31281 | (exit $ac_status); } && | |
89be85c2 VS |
31282 | { ac_try='test -z "$ac_c_werror_flag" |
31283 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31285 | (eval $ac_try) 2>&5 | |
31286 | ac_status=$? | |
31287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31288 | (exit $ac_status); }; } && | |
31289 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31291 | (eval $ac_try) 2>&5 | |
31292 | ac_status=$? | |
31293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31294 | (exit $ac_status); }; }; then | |
31295 | eval "$as_ac_var=yes" | |
31296 | else | |
31297 | echo "$as_me: failed program was:" >&5 | |
31298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31299 | ||
31300 | eval "$as_ac_var=no" | |
31301 | fi | |
ac1cb8d3 VS |
31302 | rm -f conftest.err conftest.$ac_objext \ |
31303 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31304 | fi |
31305 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31306 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31307 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31308 | cat >>confdefs.h <<_ACEOF | |
31309 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31310 | _ACEOF | |
31311 | break | |
31312 | fi | |
31313 | done | |
31314 | ||
31315 | ||
31316 | HAVE_SOME_SLEEP_FUNC=0 | |
31317 | if test "$USE_BEOS" = 1; then | |
31318 | cat >>confdefs.h <<\_ACEOF | |
31319 | #define HAVE_SLEEP 1 | |
31320 | _ACEOF | |
31321 | ||
31322 | HAVE_SOME_SLEEP_FUNC=1 | |
31323 | fi | |
31324 | ||
31325 | if test "$USE_DARWIN" = 1; then | |
31326 | cat >>confdefs.h <<\_ACEOF | |
31327 | #define HAVE_USLEEP 1 | |
31328 | _ACEOF | |
31329 | ||
31330 | HAVE_SOME_SLEEP_FUNC=1 | |
31331 | fi | |
31332 | ||
31333 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
31334 | POSIX4_LINK= | |
31335 | ||
31336 | for ac_func in nanosleep | |
31337 | do | |
31338 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31339 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31340 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31341 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31343 | else | |
31344 | cat >conftest.$ac_ext <<_ACEOF | |
31345 | /* confdefs.h. */ | |
31346 | _ACEOF | |
31347 | cat confdefs.h >>conftest.$ac_ext | |
31348 | cat >>conftest.$ac_ext <<_ACEOF | |
31349 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31350 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31351 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31352 | #define $ac_func innocuous_$ac_func | |
31353 | ||
a848cd7e SC |
31354 | /* System header to define __stub macros and hopefully few prototypes, |
31355 | which can conflict with char $ac_func (); below. | |
31356 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31357 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31358 | |
a848cd7e SC |
31359 | #ifdef __STDC__ |
31360 | # include <limits.h> | |
31361 | #else | |
31362 | # include <assert.h> | |
31363 | #endif | |
ac1cb8d3 VS |
31364 | |
31365 | #undef $ac_func | |
31366 | ||
a848cd7e SC |
31367 | /* Override any gcc2 internal prototype to avoid an error. */ |
31368 | #ifdef __cplusplus | |
31369 | extern "C" | |
31370 | { | |
31371 | #endif | |
31372 | /* We use char because int might match the return type of a gcc2 | |
31373 | builtin and then its argument prototype would still apply. */ | |
31374 | char $ac_func (); | |
31375 | /* The GNU C library defines this for functions which it implements | |
31376 | to always fail with ENOSYS. Some functions are actually named | |
31377 | something starting with __ and the normal name is an alias. */ | |
31378 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31379 | choke me | |
31380 | #else | |
31381 | char (*f) () = $ac_func; | |
31382 | #endif | |
31383 | #ifdef __cplusplus | |
31384 | } | |
31385 | #endif | |
31386 | ||
31387 | int | |
31388 | main () | |
31389 | { | |
31390 | return f != $ac_func; | |
31391 | ; | |
31392 | return 0; | |
31393 | } | |
31394 | _ACEOF | |
31395 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31397 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31398 | ac_status=$? |
ac1cb8d3 VS |
31399 | grep -v '^ *+' conftest.er1 >conftest.err |
31400 | rm -f conftest.er1 | |
31401 | cat conftest.err >&5 | |
a848cd7e SC |
31402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31403 | (exit $ac_status); } && | |
89be85c2 VS |
31404 | { ac_try='test -z "$ac_c_werror_flag" |
31405 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31407 | (eval $ac_try) 2>&5 | |
31408 | ac_status=$? | |
31409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31410 | (exit $ac_status); }; } && | |
31411 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31413 | (eval $ac_try) 2>&5 | |
31414 | ac_status=$? | |
31415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31416 | (exit $ac_status); }; }; then | |
31417 | eval "$as_ac_var=yes" | |
31418 | else | |
31419 | echo "$as_me: failed program was:" >&5 | |
31420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31421 | ||
31422 | eval "$as_ac_var=no" | |
31423 | fi | |
ac1cb8d3 VS |
31424 | rm -f conftest.err conftest.$ac_objext \ |
31425 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31426 | fi |
31427 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31428 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31429 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31430 | cat >>confdefs.h <<_ACEOF | |
31431 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31432 | _ACEOF | |
31433 | cat >>confdefs.h <<\_ACEOF | |
31434 | #define HAVE_NANOSLEEP 1 | |
31435 | _ACEOF | |
31436 | ||
31437 | else | |
31438 | ||
31439 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
31440 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
31441 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
31442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31443 | else | |
31444 | ac_check_lib_save_LIBS=$LIBS | |
31445 | LIBS="-lposix4 $LIBS" | |
31446 | cat >conftest.$ac_ext <<_ACEOF | |
31447 | /* confdefs.h. */ | |
31448 | _ACEOF | |
31449 | cat confdefs.h >>conftest.$ac_ext | |
31450 | cat >>conftest.$ac_ext <<_ACEOF | |
31451 | /* end confdefs.h. */ | |
31452 | ||
31453 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31454 | #ifdef __cplusplus | |
31455 | extern "C" | |
31456 | #endif | |
31457 | /* We use char because int might match the return type of a gcc2 | |
31458 | builtin and then its argument prototype would still apply. */ | |
31459 | char nanosleep (); | |
31460 | int | |
31461 | main () | |
31462 | { | |
31463 | nanosleep (); | |
31464 | ; | |
31465 | return 0; | |
31466 | } | |
31467 | _ACEOF | |
31468 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31470 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31471 | ac_status=$? |
ac1cb8d3 VS |
31472 | grep -v '^ *+' conftest.er1 >conftest.err |
31473 | rm -f conftest.er1 | |
31474 | cat conftest.err >&5 | |
a848cd7e SC |
31475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31476 | (exit $ac_status); } && | |
89be85c2 VS |
31477 | { ac_try='test -z "$ac_c_werror_flag" |
31478 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31480 | (eval $ac_try) 2>&5 | |
31481 | ac_status=$? | |
31482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31483 | (exit $ac_status); }; } && | |
31484 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31486 | (eval $ac_try) 2>&5 | |
31487 | ac_status=$? | |
31488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31489 | (exit $ac_status); }; }; then | |
31490 | ac_cv_lib_posix4_nanosleep=yes | |
31491 | else | |
31492 | echo "$as_me: failed program was:" >&5 | |
31493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31494 | ||
31495 | ac_cv_lib_posix4_nanosleep=no | |
31496 | fi | |
ac1cb8d3 VS |
31497 | rm -f conftest.err conftest.$ac_objext \ |
31498 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31499 | LIBS=$ac_check_lib_save_LIBS |
31500 | fi | |
31501 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
31502 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
31503 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
31504 | ||
31505 | cat >>confdefs.h <<\_ACEOF | |
31506 | #define HAVE_NANOSLEEP 1 | |
31507 | _ACEOF | |
31508 | ||
31509 | POSIX4_LINK=" -lposix4" | |
31510 | ||
31511 | else | |
31512 | ||
31513 | ||
31514 | for ac_func in usleep | |
31515 | do | |
31516 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31517 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31518 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31519 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31521 | else | |
31522 | cat >conftest.$ac_ext <<_ACEOF | |
31523 | /* confdefs.h. */ | |
31524 | _ACEOF | |
31525 | cat confdefs.h >>conftest.$ac_ext | |
31526 | cat >>conftest.$ac_ext <<_ACEOF | |
31527 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31528 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31529 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31530 | #define $ac_func innocuous_$ac_func | |
31531 | ||
a848cd7e SC |
31532 | /* System header to define __stub macros and hopefully few prototypes, |
31533 | which can conflict with char $ac_func (); below. | |
31534 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31535 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31536 | |
a848cd7e SC |
31537 | #ifdef __STDC__ |
31538 | # include <limits.h> | |
31539 | #else | |
31540 | # include <assert.h> | |
31541 | #endif | |
ac1cb8d3 VS |
31542 | |
31543 | #undef $ac_func | |
31544 | ||
a848cd7e SC |
31545 | /* Override any gcc2 internal prototype to avoid an error. */ |
31546 | #ifdef __cplusplus | |
31547 | extern "C" | |
31548 | { | |
31549 | #endif | |
31550 | /* We use char because int might match the return type of a gcc2 | |
31551 | builtin and then its argument prototype would still apply. */ | |
31552 | char $ac_func (); | |
31553 | /* The GNU C library defines this for functions which it implements | |
31554 | to always fail with ENOSYS. Some functions are actually named | |
31555 | something starting with __ and the normal name is an alias. */ | |
31556 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31557 | choke me | |
31558 | #else | |
31559 | char (*f) () = $ac_func; | |
31560 | #endif | |
31561 | #ifdef __cplusplus | |
31562 | } | |
31563 | #endif | |
31564 | ||
31565 | int | |
31566 | main () | |
31567 | { | |
31568 | return f != $ac_func; | |
31569 | ; | |
31570 | return 0; | |
31571 | } | |
31572 | _ACEOF | |
31573 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31575 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31576 | ac_status=$? |
ac1cb8d3 VS |
31577 | grep -v '^ *+' conftest.er1 >conftest.err |
31578 | rm -f conftest.er1 | |
31579 | cat conftest.err >&5 | |
a848cd7e SC |
31580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31581 | (exit $ac_status); } && | |
89be85c2 VS |
31582 | { ac_try='test -z "$ac_c_werror_flag" |
31583 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31585 | (eval $ac_try) 2>&5 | |
31586 | ac_status=$? | |
31587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31588 | (exit $ac_status); }; } && | |
31589 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31591 | (eval $ac_try) 2>&5 | |
31592 | ac_status=$? | |
31593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31594 | (exit $ac_status); }; }; then | |
31595 | eval "$as_ac_var=yes" | |
31596 | else | |
31597 | echo "$as_me: failed program was:" >&5 | |
31598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31599 | ||
31600 | eval "$as_ac_var=no" | |
31601 | fi | |
ac1cb8d3 VS |
31602 | rm -f conftest.err conftest.$ac_objext \ |
31603 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31604 | fi |
31605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31606 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31607 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31608 | cat >>confdefs.h <<_ACEOF | |
31609 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31610 | _ACEOF | |
31611 | cat >>confdefs.h <<\_ACEOF | |
31612 | #define HAVE_USLEEP 1 | |
31613 | _ACEOF | |
31614 | ||
31615 | else | |
31616 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
31617 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
31618 | ||
31619 | fi | |
31620 | done | |
31621 | ||
31622 | ||
31623 | ||
31624 | fi | |
31625 | ||
31626 | ||
31627 | ||
31628 | fi | |
31629 | done | |
31630 | ||
31631 | fi | |
31632 | ||
31633 | ||
31634 | ||
31635 | for ac_func in uname gethostname | |
31636 | do | |
31637 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31638 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31639 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31640 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31642 | else | |
31643 | cat >conftest.$ac_ext <<_ACEOF | |
31644 | /* confdefs.h. */ | |
31645 | _ACEOF | |
31646 | cat confdefs.h >>conftest.$ac_ext | |
31647 | cat >>conftest.$ac_ext <<_ACEOF | |
31648 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31649 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31650 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31651 | #define $ac_func innocuous_$ac_func | |
31652 | ||
a848cd7e SC |
31653 | /* System header to define __stub macros and hopefully few prototypes, |
31654 | which can conflict with char $ac_func (); below. | |
31655 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31656 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31657 | |
a848cd7e SC |
31658 | #ifdef __STDC__ |
31659 | # include <limits.h> | |
31660 | #else | |
31661 | # include <assert.h> | |
31662 | #endif | |
ac1cb8d3 VS |
31663 | |
31664 | #undef $ac_func | |
31665 | ||
a848cd7e SC |
31666 | /* Override any gcc2 internal prototype to avoid an error. */ |
31667 | #ifdef __cplusplus | |
31668 | extern "C" | |
31669 | { | |
31670 | #endif | |
31671 | /* We use char because int might match the return type of a gcc2 | |
31672 | builtin and then its argument prototype would still apply. */ | |
31673 | char $ac_func (); | |
31674 | /* The GNU C library defines this for functions which it implements | |
31675 | to always fail with ENOSYS. Some functions are actually named | |
31676 | something starting with __ and the normal name is an alias. */ | |
31677 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31678 | choke me | |
31679 | #else | |
31680 | char (*f) () = $ac_func; | |
31681 | #endif | |
31682 | #ifdef __cplusplus | |
31683 | } | |
31684 | #endif | |
31685 | ||
31686 | int | |
31687 | main () | |
31688 | { | |
31689 | return f != $ac_func; | |
31690 | ; | |
31691 | return 0; | |
31692 | } | |
31693 | _ACEOF | |
31694 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31696 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31697 | ac_status=$? |
ac1cb8d3 VS |
31698 | grep -v '^ *+' conftest.er1 >conftest.err |
31699 | rm -f conftest.er1 | |
31700 | cat conftest.err >&5 | |
a848cd7e SC |
31701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31702 | (exit $ac_status); } && | |
89be85c2 VS |
31703 | { ac_try='test -z "$ac_c_werror_flag" |
31704 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31706 | (eval $ac_try) 2>&5 | |
31707 | ac_status=$? | |
31708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31709 | (exit $ac_status); }; } && | |
31710 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31712 | (eval $ac_try) 2>&5 | |
31713 | ac_status=$? | |
31714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31715 | (exit $ac_status); }; }; then | |
31716 | eval "$as_ac_var=yes" | |
31717 | else | |
31718 | echo "$as_me: failed program was:" >&5 | |
31719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31720 | ||
31721 | eval "$as_ac_var=no" | |
31722 | fi | |
ac1cb8d3 VS |
31723 | rm -f conftest.err conftest.$ac_objext \ |
31724 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31725 | fi |
31726 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31727 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31728 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31729 | cat >>confdefs.h <<_ACEOF | |
31730 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31731 | _ACEOF | |
31732 | break | |
31733 | fi | |
31734 | done | |
31735 | ||
31736 | ||
31737 | ||
31738 | ||
31739 | ac_ext=cc | |
31740 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31741 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31742 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31743 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31744 | ||
31745 | ||
31746 | ||
31747 | for ac_func in strtok_r | |
31748 | do | |
31749 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31750 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31751 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31752 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31754 | else | |
31755 | cat >conftest.$ac_ext <<_ACEOF | |
31756 | /* confdefs.h. */ | |
31757 | _ACEOF | |
31758 | cat confdefs.h >>conftest.$ac_ext | |
31759 | cat >>conftest.$ac_ext <<_ACEOF | |
31760 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31761 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31762 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31763 | #define $ac_func innocuous_$ac_func | |
31764 | ||
a848cd7e SC |
31765 | /* System header to define __stub macros and hopefully few prototypes, |
31766 | which can conflict with char $ac_func (); below. | |
31767 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31768 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31769 | |
a848cd7e SC |
31770 | #ifdef __STDC__ |
31771 | # include <limits.h> | |
31772 | #else | |
31773 | # include <assert.h> | |
31774 | #endif | |
ac1cb8d3 VS |
31775 | |
31776 | #undef $ac_func | |
31777 | ||
a848cd7e SC |
31778 | /* Override any gcc2 internal prototype to avoid an error. */ |
31779 | #ifdef __cplusplus | |
31780 | extern "C" | |
31781 | { | |
31782 | #endif | |
31783 | /* We use char because int might match the return type of a gcc2 | |
31784 | builtin and then its argument prototype would still apply. */ | |
31785 | char $ac_func (); | |
31786 | /* The GNU C library defines this for functions which it implements | |
31787 | to always fail with ENOSYS. Some functions are actually named | |
31788 | something starting with __ and the normal name is an alias. */ | |
31789 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31790 | choke me | |
31791 | #else | |
31792 | char (*f) () = $ac_func; | |
31793 | #endif | |
31794 | #ifdef __cplusplus | |
31795 | } | |
31796 | #endif | |
31797 | ||
31798 | int | |
31799 | main () | |
31800 | { | |
31801 | return f != $ac_func; | |
31802 | ; | |
31803 | return 0; | |
31804 | } | |
31805 | _ACEOF | |
31806 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31808 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31809 | ac_status=$? |
ac1cb8d3 VS |
31810 | grep -v '^ *+' conftest.er1 >conftest.err |
31811 | rm -f conftest.er1 | |
31812 | cat conftest.err >&5 | |
a848cd7e SC |
31813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31814 | (exit $ac_status); } && | |
89be85c2 VS |
31815 | { ac_try='test -z "$ac_cxx_werror_flag" |
31816 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31818 | (eval $ac_try) 2>&5 | |
31819 | ac_status=$? | |
31820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31821 | (exit $ac_status); }; } && | |
31822 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31824 | (eval $ac_try) 2>&5 | |
31825 | ac_status=$? | |
31826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31827 | (exit $ac_status); }; }; then | |
31828 | eval "$as_ac_var=yes" | |
31829 | else | |
31830 | echo "$as_me: failed program was:" >&5 | |
31831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31832 | ||
31833 | eval "$as_ac_var=no" | |
31834 | fi | |
ac1cb8d3 VS |
31835 | rm -f conftest.err conftest.$ac_objext \ |
31836 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31837 | fi |
31838 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31839 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31840 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31841 | cat >>confdefs.h <<_ACEOF | |
31842 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31843 | _ACEOF | |
31844 | ||
31845 | fi | |
31846 | done | |
31847 | ||
31848 | ||
31849 | ac_ext=c | |
31850 | ac_cpp='$CPP $CPPFLAGS' | |
31851 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31852 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31853 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31854 | ||
31855 | ||
31856 | INET_LINK= | |
31857 | ||
31858 | for ac_func in inet_addr | |
31859 | do | |
31860 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31861 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31862 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31863 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31865 | else | |
31866 | cat >conftest.$ac_ext <<_ACEOF | |
31867 | /* confdefs.h. */ | |
31868 | _ACEOF | |
31869 | cat confdefs.h >>conftest.$ac_ext | |
31870 | cat >>conftest.$ac_ext <<_ACEOF | |
31871 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31872 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31873 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31874 | #define $ac_func innocuous_$ac_func | |
31875 | ||
a848cd7e SC |
31876 | /* System header to define __stub macros and hopefully few prototypes, |
31877 | which can conflict with char $ac_func (); below. | |
31878 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31879 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31880 | |
a848cd7e SC |
31881 | #ifdef __STDC__ |
31882 | # include <limits.h> | |
31883 | #else | |
31884 | # include <assert.h> | |
31885 | #endif | |
ac1cb8d3 VS |
31886 | |
31887 | #undef $ac_func | |
31888 | ||
a848cd7e SC |
31889 | /* Override any gcc2 internal prototype to avoid an error. */ |
31890 | #ifdef __cplusplus | |
31891 | extern "C" | |
31892 | { | |
31893 | #endif | |
31894 | /* We use char because int might match the return type of a gcc2 | |
31895 | builtin and then its argument prototype would still apply. */ | |
31896 | char $ac_func (); | |
31897 | /* The GNU C library defines this for functions which it implements | |
31898 | to always fail with ENOSYS. Some functions are actually named | |
31899 | something starting with __ and the normal name is an alias. */ | |
31900 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31901 | choke me | |
31902 | #else | |
31903 | char (*f) () = $ac_func; | |
31904 | #endif | |
31905 | #ifdef __cplusplus | |
31906 | } | |
31907 | #endif | |
31908 | ||
31909 | int | |
31910 | main () | |
31911 | { | |
31912 | return f != $ac_func; | |
31913 | ; | |
31914 | return 0; | |
31915 | } | |
31916 | _ACEOF | |
31917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31919 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31920 | ac_status=$? |
ac1cb8d3 VS |
31921 | grep -v '^ *+' conftest.er1 >conftest.err |
31922 | rm -f conftest.er1 | |
31923 | cat conftest.err >&5 | |
a848cd7e SC |
31924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31925 | (exit $ac_status); } && | |
89be85c2 VS |
31926 | { ac_try='test -z "$ac_c_werror_flag" |
31927 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31929 | (eval $ac_try) 2>&5 | |
31930 | ac_status=$? | |
31931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31932 | (exit $ac_status); }; } && | |
31933 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31935 | (eval $ac_try) 2>&5 | |
31936 | ac_status=$? | |
31937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31938 | (exit $ac_status); }; }; then | |
31939 | eval "$as_ac_var=yes" | |
31940 | else | |
31941 | echo "$as_me: failed program was:" >&5 | |
31942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31943 | ||
31944 | eval "$as_ac_var=no" | |
31945 | fi | |
ac1cb8d3 VS |
31946 | rm -f conftest.err conftest.$ac_objext \ |
31947 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31948 | fi |
31949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31950 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31951 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31952 | cat >>confdefs.h <<_ACEOF | |
31953 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31954 | _ACEOF | |
31955 | cat >>confdefs.h <<\_ACEOF | |
31956 | #define HAVE_INET_ADDR 1 | |
31957 | _ACEOF | |
31958 | ||
31959 | else | |
31960 | ||
31961 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
31962 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
31963 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
31964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31965 | else | |
31966 | ac_check_lib_save_LIBS=$LIBS | |
31967 | LIBS="-lnsl $LIBS" | |
31968 | cat >conftest.$ac_ext <<_ACEOF | |
31969 | /* confdefs.h. */ | |
31970 | _ACEOF | |
31971 | cat confdefs.h >>conftest.$ac_ext | |
31972 | cat >>conftest.$ac_ext <<_ACEOF | |
31973 | /* end confdefs.h. */ | |
31974 | ||
31975 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31976 | #ifdef __cplusplus | |
31977 | extern "C" | |
31978 | #endif | |
31979 | /* We use char because int might match the return type of a gcc2 | |
31980 | builtin and then its argument prototype would still apply. */ | |
31981 | char inet_addr (); | |
31982 | int | |
31983 | main () | |
31984 | { | |
31985 | inet_addr (); | |
31986 | ; | |
31987 | return 0; | |
31988 | } | |
31989 | _ACEOF | |
31990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31992 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31993 | ac_status=$? |
ac1cb8d3 VS |
31994 | grep -v '^ *+' conftest.er1 >conftest.err |
31995 | rm -f conftest.er1 | |
31996 | cat conftest.err >&5 | |
a848cd7e SC |
31997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31998 | (exit $ac_status); } && | |
89be85c2 VS |
31999 | { ac_try='test -z "$ac_c_werror_flag" |
32000 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32002 | (eval $ac_try) 2>&5 | |
32003 | ac_status=$? | |
32004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32005 | (exit $ac_status); }; } && | |
32006 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32008 | (eval $ac_try) 2>&5 | |
32009 | ac_status=$? | |
32010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32011 | (exit $ac_status); }; }; then | |
32012 | ac_cv_lib_nsl_inet_addr=yes | |
32013 | else | |
32014 | echo "$as_me: failed program was:" >&5 | |
32015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32016 | ||
32017 | ac_cv_lib_nsl_inet_addr=no | |
32018 | fi | |
ac1cb8d3 VS |
32019 | rm -f conftest.err conftest.$ac_objext \ |
32020 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32021 | LIBS=$ac_check_lib_save_LIBS |
32022 | fi | |
32023 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
32024 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
32025 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
32026 | INET_LINK="nsl" | |
32027 | else | |
32028 | ||
32029 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
32030 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
32031 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
32032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32033 | else | |
32034 | ac_check_lib_save_LIBS=$LIBS | |
32035 | LIBS="-lresolv $LIBS" | |
32036 | cat >conftest.$ac_ext <<_ACEOF | |
32037 | /* confdefs.h. */ | |
32038 | _ACEOF | |
32039 | cat confdefs.h >>conftest.$ac_ext | |
32040 | cat >>conftest.$ac_ext <<_ACEOF | |
32041 | /* end confdefs.h. */ | |
32042 | ||
32043 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32044 | #ifdef __cplusplus | |
32045 | extern "C" | |
32046 | #endif | |
32047 | /* We use char because int might match the return type of a gcc2 | |
32048 | builtin and then its argument prototype would still apply. */ | |
32049 | char inet_addr (); | |
32050 | int | |
32051 | main () | |
32052 | { | |
32053 | inet_addr (); | |
32054 | ; | |
32055 | return 0; | |
32056 | } | |
32057 | _ACEOF | |
32058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32060 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32061 | ac_status=$? |
ac1cb8d3 VS |
32062 | grep -v '^ *+' conftest.er1 >conftest.err |
32063 | rm -f conftest.er1 | |
32064 | cat conftest.err >&5 | |
a848cd7e SC |
32065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32066 | (exit $ac_status); } && | |
89be85c2 VS |
32067 | { ac_try='test -z "$ac_c_werror_flag" |
32068 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32070 | (eval $ac_try) 2>&5 | |
32071 | ac_status=$? | |
32072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32073 | (exit $ac_status); }; } && | |
32074 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32076 | (eval $ac_try) 2>&5 | |
32077 | ac_status=$? | |
32078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32079 | (exit $ac_status); }; }; then | |
32080 | ac_cv_lib_resolv_inet_addr=yes | |
32081 | else | |
32082 | echo "$as_me: failed program was:" >&5 | |
32083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32084 | ||
32085 | ac_cv_lib_resolv_inet_addr=no | |
32086 | fi | |
ac1cb8d3 VS |
32087 | rm -f conftest.err conftest.$ac_objext \ |
32088 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32089 | LIBS=$ac_check_lib_save_LIBS |
32090 | fi | |
32091 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
32092 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
32093 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
32094 | INET_LINK="resolv" | |
32095 | else | |
32096 | ||
32097 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
32098 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
32099 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
32100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32101 | else | |
32102 | ac_check_lib_save_LIBS=$LIBS | |
32103 | LIBS="-lsocket $LIBS" | |
32104 | cat >conftest.$ac_ext <<_ACEOF | |
32105 | /* confdefs.h. */ | |
32106 | _ACEOF | |
32107 | cat confdefs.h >>conftest.$ac_ext | |
32108 | cat >>conftest.$ac_ext <<_ACEOF | |
32109 | /* end confdefs.h. */ | |
32110 | ||
32111 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32112 | #ifdef __cplusplus | |
32113 | extern "C" | |
32114 | #endif | |
32115 | /* We use char because int might match the return type of a gcc2 | |
32116 | builtin and then its argument prototype would still apply. */ | |
32117 | char inet_addr (); | |
32118 | int | |
32119 | main () | |
32120 | { | |
32121 | inet_addr (); | |
32122 | ; | |
32123 | return 0; | |
32124 | } | |
32125 | _ACEOF | |
32126 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32128 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32129 | ac_status=$? |
ac1cb8d3 VS |
32130 | grep -v '^ *+' conftest.er1 >conftest.err |
32131 | rm -f conftest.er1 | |
32132 | cat conftest.err >&5 | |
a848cd7e SC |
32133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32134 | (exit $ac_status); } && | |
89be85c2 VS |
32135 | { ac_try='test -z "$ac_c_werror_flag" |
32136 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32138 | (eval $ac_try) 2>&5 | |
32139 | ac_status=$? | |
32140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32141 | (exit $ac_status); }; } && | |
32142 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32144 | (eval $ac_try) 2>&5 | |
32145 | ac_status=$? | |
32146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32147 | (exit $ac_status); }; }; then | |
32148 | ac_cv_lib_socket_inet_addr=yes | |
32149 | else | |
32150 | echo "$as_me: failed program was:" >&5 | |
32151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32152 | ||
32153 | ac_cv_lib_socket_inet_addr=no | |
32154 | fi | |
ac1cb8d3 VS |
32155 | rm -f conftest.err conftest.$ac_objext \ |
32156 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32157 | LIBS=$ac_check_lib_save_LIBS |
32158 | fi | |
32159 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
32160 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
32161 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
32162 | INET_LINK="socket" | |
32163 | ||
32164 | fi | |
32165 | ||
32166 | ||
32167 | ||
32168 | fi | |
32169 | ||
32170 | ||
32171 | ||
32172 | fi | |
32173 | ||
32174 | ||
32175 | ||
32176 | fi | |
32177 | done | |
32178 | ||
32179 | ||
32180 | ||
32181 | for ac_func in inet_aton | |
32182 | do | |
32183 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32184 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32185 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32186 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32188 | else | |
32189 | cat >conftest.$ac_ext <<_ACEOF | |
32190 | /* confdefs.h. */ | |
32191 | _ACEOF | |
32192 | cat confdefs.h >>conftest.$ac_ext | |
32193 | cat >>conftest.$ac_ext <<_ACEOF | |
32194 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32195 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32196 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32197 | #define $ac_func innocuous_$ac_func | |
32198 | ||
a848cd7e SC |
32199 | /* System header to define __stub macros and hopefully few prototypes, |
32200 | which can conflict with char $ac_func (); below. | |
32201 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32202 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32203 | |
a848cd7e SC |
32204 | #ifdef __STDC__ |
32205 | # include <limits.h> | |
32206 | #else | |
32207 | # include <assert.h> | |
32208 | #endif | |
ac1cb8d3 VS |
32209 | |
32210 | #undef $ac_func | |
32211 | ||
a848cd7e SC |
32212 | /* Override any gcc2 internal prototype to avoid an error. */ |
32213 | #ifdef __cplusplus | |
32214 | extern "C" | |
32215 | { | |
32216 | #endif | |
32217 | /* We use char because int might match the return type of a gcc2 | |
32218 | builtin and then its argument prototype would still apply. */ | |
32219 | char $ac_func (); | |
32220 | /* The GNU C library defines this for functions which it implements | |
32221 | to always fail with ENOSYS. Some functions are actually named | |
32222 | something starting with __ and the normal name is an alias. */ | |
32223 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32224 | choke me | |
32225 | #else | |
32226 | char (*f) () = $ac_func; | |
32227 | #endif | |
32228 | #ifdef __cplusplus | |
32229 | } | |
32230 | #endif | |
32231 | ||
32232 | int | |
32233 | main () | |
32234 | { | |
32235 | return f != $ac_func; | |
32236 | ; | |
32237 | return 0; | |
32238 | } | |
32239 | _ACEOF | |
32240 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32242 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32243 | ac_status=$? |
ac1cb8d3 VS |
32244 | grep -v '^ *+' conftest.er1 >conftest.err |
32245 | rm -f conftest.er1 | |
32246 | cat conftest.err >&5 | |
a848cd7e SC |
32247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32248 | (exit $ac_status); } && | |
89be85c2 VS |
32249 | { ac_try='test -z "$ac_c_werror_flag" |
32250 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32252 | (eval $ac_try) 2>&5 | |
32253 | ac_status=$? | |
32254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32255 | (exit $ac_status); }; } && | |
32256 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32258 | (eval $ac_try) 2>&5 | |
32259 | ac_status=$? | |
32260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32261 | (exit $ac_status); }; }; then | |
32262 | eval "$as_ac_var=yes" | |
32263 | else | |
32264 | echo "$as_me: failed program was:" >&5 | |
32265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32266 | ||
32267 | eval "$as_ac_var=no" | |
32268 | fi | |
ac1cb8d3 VS |
32269 | rm -f conftest.err conftest.$ac_objext \ |
32270 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32271 | fi |
32272 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32273 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32274 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32275 | cat >>confdefs.h <<_ACEOF | |
32276 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32277 | _ACEOF | |
32278 | cat >>confdefs.h <<\_ACEOF | |
32279 | #define HAVE_INET_ATON 1 | |
32280 | _ACEOF | |
32281 | ||
32282 | else | |
32283 | ||
32284 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
32285 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
32286 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
32287 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
32288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32289 | else | |
32290 | ac_check_lib_save_LIBS=$LIBS | |
32291 | LIBS="-l$INET_LINK $LIBS" | |
32292 | cat >conftest.$ac_ext <<_ACEOF | |
32293 | /* confdefs.h. */ | |
32294 | _ACEOF | |
32295 | cat confdefs.h >>conftest.$ac_ext | |
32296 | cat >>conftest.$ac_ext <<_ACEOF | |
32297 | /* end confdefs.h. */ | |
32298 | ||
32299 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32300 | #ifdef __cplusplus | |
32301 | extern "C" | |
32302 | #endif | |
32303 | /* We use char because int might match the return type of a gcc2 | |
32304 | builtin and then its argument prototype would still apply. */ | |
32305 | char inet_aton (); | |
32306 | int | |
32307 | main () | |
32308 | { | |
32309 | inet_aton (); | |
32310 | ; | |
32311 | return 0; | |
32312 | } | |
32313 | _ACEOF | |
32314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32316 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32317 | ac_status=$? |
ac1cb8d3 VS |
32318 | grep -v '^ *+' conftest.er1 >conftest.err |
32319 | rm -f conftest.er1 | |
32320 | cat conftest.err >&5 | |
a848cd7e SC |
32321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32322 | (exit $ac_status); } && | |
89be85c2 VS |
32323 | { ac_try='test -z "$ac_c_werror_flag" |
32324 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32326 | (eval $ac_try) 2>&5 | |
32327 | ac_status=$? | |
32328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32329 | (exit $ac_status); }; } && | |
32330 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32332 | (eval $ac_try) 2>&5 | |
32333 | ac_status=$? | |
32334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32335 | (exit $ac_status); }; }; then | |
32336 | eval "$as_ac_Lib=yes" | |
32337 | else | |
32338 | echo "$as_me: failed program was:" >&5 | |
32339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32340 | ||
32341 | eval "$as_ac_Lib=no" | |
32342 | fi | |
ac1cb8d3 VS |
32343 | rm -f conftest.err conftest.$ac_objext \ |
32344 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32345 | LIBS=$ac_check_lib_save_LIBS |
32346 | fi | |
32347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
32348 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
32349 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
32350 | cat >>confdefs.h <<\_ACEOF | |
32351 | #define HAVE_INET_ATON 1 | |
32352 | _ACEOF | |
32353 | ||
32354 | fi | |
32355 | ||
32356 | ||
32357 | fi | |
32358 | done | |
32359 | ||
32360 | ||
32361 | if test "x$INET_LINK" != "x"; then | |
32362 | cat >>confdefs.h <<\_ACEOF | |
32363 | #define HAVE_INET_ADDR 1 | |
32364 | _ACEOF | |
32365 | ||
32366 | INET_LINK=" -l$INET_LINK" | |
32367 | fi | |
32368 | ||
32369 | fi | |
32370 | ||
32371 | ||
32372 | ||
32373 | EXTRALIBS_ESD= | |
32374 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
32375 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
32376 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
32377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32378 | else | |
32379 | ac_check_lib_save_LIBS=$LIBS | |
32380 | LIBS="-lesd $LIBS" | |
32381 | cat >conftest.$ac_ext <<_ACEOF | |
32382 | /* confdefs.h. */ | |
32383 | _ACEOF | |
32384 | cat confdefs.h >>conftest.$ac_ext | |
32385 | cat >>conftest.$ac_ext <<_ACEOF | |
32386 | /* end confdefs.h. */ | |
32387 | ||
32388 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32389 | #ifdef __cplusplus | |
32390 | extern "C" | |
32391 | #endif | |
32392 | /* We use char because int might match the return type of a gcc2 | |
32393 | builtin and then its argument prototype would still apply. */ | |
32394 | char esd_close (); | |
32395 | int | |
32396 | main () | |
32397 | { | |
32398 | esd_close (); | |
32399 | ; | |
32400 | return 0; | |
32401 | } | |
32402 | _ACEOF | |
32403 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32405 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32406 | ac_status=$? |
ac1cb8d3 VS |
32407 | grep -v '^ *+' conftest.er1 >conftest.err |
32408 | rm -f conftest.er1 | |
32409 | cat conftest.err >&5 | |
a848cd7e SC |
32410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32411 | (exit $ac_status); } && | |
89be85c2 VS |
32412 | { ac_try='test -z "$ac_c_werror_flag" |
32413 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32415 | (eval $ac_try) 2>&5 | |
32416 | ac_status=$? | |
32417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32418 | (exit $ac_status); }; } && | |
32419 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32421 | (eval $ac_try) 2>&5 | |
32422 | ac_status=$? | |
32423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32424 | (exit $ac_status); }; }; then | |
32425 | ac_cv_lib_esd_esd_close=yes | |
32426 | else | |
32427 | echo "$as_me: failed program was:" >&5 | |
32428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32429 | ||
32430 | ac_cv_lib_esd_esd_close=no | |
32431 | fi | |
ac1cb8d3 VS |
32432 | rm -f conftest.err conftest.$ac_objext \ |
32433 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32434 | LIBS=$ac_check_lib_save_LIBS |
32435 | fi | |
32436 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
32437 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
32438 | if test $ac_cv_lib_esd_esd_close = yes; then | |
32439 | ||
32440 | ||
32441 | for ac_header in esd.h | |
32442 | do | |
32443 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32444 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32445 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32446 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32447 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32449 | fi | |
32450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32451 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32452 | else | |
32453 | # Is the header compilable? | |
32454 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32455 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32456 | cat >conftest.$ac_ext <<_ACEOF | |
32457 | /* confdefs.h. */ | |
32458 | _ACEOF | |
32459 | cat confdefs.h >>conftest.$ac_ext | |
32460 | cat >>conftest.$ac_ext <<_ACEOF | |
32461 | /* end confdefs.h. */ | |
32462 | $ac_includes_default | |
32463 | #include <$ac_header> | |
32464 | _ACEOF | |
32465 | rm -f conftest.$ac_objext | |
32466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32467 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32468 | ac_status=$? |
ac1cb8d3 VS |
32469 | grep -v '^ *+' conftest.er1 >conftest.err |
32470 | rm -f conftest.er1 | |
32471 | cat conftest.err >&5 | |
a848cd7e SC |
32472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32473 | (exit $ac_status); } && | |
89be85c2 VS |
32474 | { ac_try='test -z "$ac_c_werror_flag" |
32475 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32477 | (eval $ac_try) 2>&5 | |
32478 | ac_status=$? | |
32479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32480 | (exit $ac_status); }; } && | |
32481 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32483 | (eval $ac_try) 2>&5 | |
32484 | ac_status=$? | |
32485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32486 | (exit $ac_status); }; }; then | |
32487 | ac_header_compiler=yes | |
32488 | else | |
32489 | echo "$as_me: failed program was:" >&5 | |
32490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32491 | ||
32492 | ac_header_compiler=no | |
32493 | fi | |
ac1cb8d3 | 32494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32495 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32496 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32497 | ||
32498 | # Is the header present? | |
32499 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32500 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32501 | cat >conftest.$ac_ext <<_ACEOF | |
32502 | /* confdefs.h. */ | |
32503 | _ACEOF | |
32504 | cat confdefs.h >>conftest.$ac_ext | |
32505 | cat >>conftest.$ac_ext <<_ACEOF | |
32506 | /* end confdefs.h. */ | |
32507 | #include <$ac_header> | |
32508 | _ACEOF | |
32509 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32510 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32511 | ac_status=$? | |
32512 | grep -v '^ *+' conftest.er1 >conftest.err | |
32513 | rm -f conftest.er1 | |
32514 | cat conftest.err >&5 | |
32515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32516 | (exit $ac_status); } >/dev/null; then | |
32517 | if test -s conftest.err; then | |
32518 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32519 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32520 | else |
32521 | ac_cpp_err= | |
32522 | fi | |
32523 | else | |
32524 | ac_cpp_err=yes | |
32525 | fi | |
32526 | if test -z "$ac_cpp_err"; then | |
32527 | ac_header_preproc=yes | |
32528 | else | |
32529 | echo "$as_me: failed program was:" >&5 | |
32530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32531 | ||
32532 | ac_header_preproc=no | |
32533 | fi | |
32534 | rm -f conftest.err conftest.$ac_ext | |
32535 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32536 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32537 | ||
32538 | # So? What about this header? | |
ac1cb8d3 VS |
32539 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32540 | yes:no: ) | |
a848cd7e SC |
32541 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32542 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32543 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32544 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32545 | ac_header_preproc=yes | |
a848cd7e | 32546 | ;; |
ac1cb8d3 | 32547 | no:yes:* ) |
a848cd7e SC |
32548 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32549 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32550 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32551 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32552 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32553 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32554 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32555 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32556 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32557 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32558 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32559 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32560 | ( |
32561 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32562 | ## ----------------------------------------- ## |
32563 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32564 | ## ----------------------------------------- ## | |
a848cd7e SC |
32565 | _ASBOX |
32566 | ) | | |
32567 | sed "s/^/$as_me: WARNING: /" >&2 | |
32568 | ;; | |
32569 | esac | |
32570 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32571 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32572 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32574 | else | |
ac1cb8d3 | 32575 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32576 | fi |
32577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32578 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32579 | ||
32580 | fi | |
32581 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32582 | cat >>confdefs.h <<_ACEOF | |
32583 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32584 | _ACEOF | |
32585 | ||
32586 | EXTRALIBS_ESD="-lesd" | |
32587 | ||
32588 | fi | |
32589 | ||
32590 | done | |
32591 | ||
32592 | ||
32593 | fi | |
32594 | ||
32595 | ||
32596 | ||
32597 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
32598 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
32599 | cat >conftest.$ac_ext <<_ACEOF | |
32600 | /* confdefs.h. */ | |
32601 | _ACEOF | |
32602 | cat confdefs.h >>conftest.$ac_ext | |
32603 | cat >>conftest.$ac_ext <<_ACEOF | |
32604 | /* end confdefs.h. */ | |
32605 | #ifdef __linux__ | |
32606 | #include <linux/cdrom.h> | |
32607 | #else | |
32608 | /* For Solaris */ | |
32609 | #include <sys/cdio.h> | |
32610 | #endif | |
32611 | ||
32612 | int | |
32613 | main () | |
32614 | { | |
32615 | struct cdrom_tocentry entry, old_entry; | |
32616 | ; | |
32617 | return 0; | |
32618 | } | |
32619 | _ACEOF | |
32620 | rm -f conftest.$ac_objext | |
32621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32622 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32623 | ac_status=$? |
ac1cb8d3 VS |
32624 | grep -v '^ *+' conftest.er1 >conftest.err |
32625 | rm -f conftest.er1 | |
32626 | cat conftest.err >&5 | |
a848cd7e SC |
32627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32628 | (exit $ac_status); } && | |
89be85c2 VS |
32629 | { ac_try='test -z "$ac_c_werror_flag" |
32630 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32632 | (eval $ac_try) 2>&5 | |
32633 | ac_status=$? | |
32634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32635 | (exit $ac_status); }; } && | |
32636 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
32642 | echo "$as_me:$LINENO: result: yes" >&5 | |
32643 | echo "${ECHO_T}yes" >&6 | |
32644 | cat >>confdefs.h <<\_ACEOF | |
32645 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
32646 | _ACEOF | |
32647 | ||
32648 | else | |
32649 | echo "$as_me: failed program was:" >&5 | |
32650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32651 | ||
32652 | echo "$as_me:$LINENO: result: no" >&5 | |
32653 | echo "${ECHO_T}no" >&6 | |
32654 | fi | |
ac1cb8d3 | 32655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32656 | |
32657 | ||
32658 | cat >confcache <<\_ACEOF | |
32659 | # This file is a shell script that caches the results of configure | |
32660 | # tests run on this system so they can be shared between configure | |
32661 | # scripts and configure runs, see configure's option --config-cache. | |
32662 | # It is not useful on other systems. If it contains results you don't | |
32663 | # want to keep, you may remove or edit it. | |
32664 | # | |
32665 | # config.status only pays attention to the cache file if you give it | |
32666 | # the --recheck option to rerun configure. | |
32667 | # | |
32668 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
32669 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
32670 | # following values. | |
32671 | ||
32672 | _ACEOF | |
32673 | ||
32674 | # The following way of writing the cache mishandles newlines in values, | |
32675 | # but we know of no workaround that is simple, portable, and efficient. | |
32676 | # So, don't put newlines in cache variables' values. | |
32677 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
32678 | # and sets the high bit in the cache file unless we assign to the vars. | |
32679 | { | |
32680 | (set) 2>&1 | | |
32681 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
32682 | *ac_space=\ *) | |
32683 | # `set' does not quote correctly, so add quotes (double-quote | |
32684 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
32685 | sed -n \ | |
ac1cb8d3 VS |
32686 | "s/'/'\\\\''/g; |
32687 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
32688 | ;; |
32689 | *) | |
32690 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
32691 | sed -n \ | |
ac1cb8d3 | 32692 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
32693 | ;; |
32694 | esac; | |
32695 | } | | |
32696 | sed ' | |
32697 | t clear | |
32698 | : clear | |
32699 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
32700 | t end | |
32701 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
32702 | : end' >>confcache | |
32703 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
32704 | if test -w $cache_file; then | |
32705 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
32706 | cat confcache >$cache_file | |
32707 | else | |
32708 | echo "not updating unwritable cache $cache_file" | |
32709 | fi | |
32710 | fi | |
32711 | rm -f confcache | |
32712 | ||
32713 | ||
32714 | CPP_MT_FLAG= | |
32715 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
32716 | ||
32717 | ||
32718 | THREADS_LINK= | |
32719 | THREADS_CFLAGS= | |
32720 | ||
32721 | if test "$wxUSE_THREADS" = "yes" ; then | |
32722 | if test "$USE_BEOS" = 1; then | |
32723 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
32724 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
32725 | wxUSE_THREADS="no" | |
32726 | fi | |
32727 | fi | |
32728 | ||
32729 | if test "$wxUSE_THREADS" = "yes" ; then | |
32730 | ||
32731 | ||
32732 | THREAD_OPTS="-pthread" | |
32733 | case "${host}" in | |
32734 | *-*-solaris2* | *-*-sunos4* ) | |
32735 | if test "x$GCC" = "xyes"; then | |
32736 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
32737 | else | |
32738 | THREAD_OPTS="-mt $THREAD_OPTS" | |
32739 | fi | |
32740 | ;; | |
32741 | *-*-freebsd*) | |
32742 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
32743 | ;; | |
32744 | *-*-darwin* | *-*-cygwin* ) | |
32745 | THREAD_OPTS="" | |
32746 | ;; | |
32747 | *-*-aix*) | |
32748 | THREAD_OPTS="pthreads" | |
32749 | ;; | |
32750 | *-hp-hpux* ) | |
32751 | if test "x$GCC" != "xyes"; then | |
32752 | THREAD_OPTS="" | |
32753 | fi | |
32754 | ;; | |
32755 | ||
32756 | *-*-irix* ) | |
32757 | if test "x$GCC" = "xyes"; then | |
32758 | THREAD_OPTS="" | |
32759 | fi | |
32760 | ;; | |
32761 | ||
32762 | *-*-*UnixWare*) | |
32763 | if test "x$GCC" != "xyes"; then | |
32764 | THREAD_OPTS="-Ethread" | |
32765 | fi | |
32766 | ;; | |
32767 | esac | |
32768 | ||
32769 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
32770 | ||
32771 | THREADS_OK=no | |
32772 | for flag in $THREAD_OPTS; do | |
32773 | case $flag in | |
32774 | none) | |
32775 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
32776 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
32777 | ;; | |
32778 | ||
32779 | -*) | |
32780 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
32781 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
32782 | THREADS_CFLAGS="$flag" | |
32783 | ;; | |
32784 | ||
32785 | *) | |
32786 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
32787 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
32788 | THREADS_LINK="-l$flag" | |
32789 | ;; | |
32790 | esac | |
32791 | ||
32792 | save_LIBS="$LIBS" | |
32793 | save_CFLAGS="$CFLAGS" | |
32794 | LIBS="$THREADS_LINK $LIBS" | |
32795 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
32796 | ||
32797 | cat >conftest.$ac_ext <<_ACEOF | |
32798 | /* confdefs.h. */ | |
32799 | _ACEOF | |
32800 | cat confdefs.h >>conftest.$ac_ext | |
32801 | cat >>conftest.$ac_ext <<_ACEOF | |
32802 | /* end confdefs.h. */ | |
32803 | #include <pthread.h> | |
32804 | int | |
32805 | main () | |
32806 | { | |
32807 | pthread_create(0,0,0,0); | |
32808 | ; | |
32809 | return 0; | |
32810 | } | |
32811 | _ACEOF | |
32812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32814 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32815 | ac_status=$? |
ac1cb8d3 VS |
32816 | grep -v '^ *+' conftest.er1 >conftest.err |
32817 | rm -f conftest.er1 | |
32818 | cat conftest.err >&5 | |
a848cd7e SC |
32819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32820 | (exit $ac_status); } && | |
89be85c2 VS |
32821 | { ac_try='test -z "$ac_c_werror_flag" |
32822 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32824 | (eval $ac_try) 2>&5 | |
32825 | ac_status=$? | |
32826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32827 | (exit $ac_status); }; } && | |
32828 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32830 | (eval $ac_try) 2>&5 | |
32831 | ac_status=$? | |
32832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32833 | (exit $ac_status); }; }; then | |
32834 | THREADS_OK=yes | |
32835 | else | |
32836 | echo "$as_me: failed program was:" >&5 | |
32837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32838 | ||
32839 | fi | |
ac1cb8d3 VS |
32840 | rm -f conftest.err conftest.$ac_objext \ |
32841 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32842 | |
32843 | LIBS="$save_LIBS" | |
32844 | CFLAGS="$save_CFLAGS" | |
32845 | ||
32846 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
32847 | echo "${ECHO_T}$THREADS_OK" >&6 | |
32848 | if test "x$THREADS_OK" = "xyes"; then | |
32849 | break; | |
32850 | fi | |
32851 | ||
32852 | THREADS_LINK="" | |
32853 | THREADS_CFLAGS="" | |
32854 | done | |
32855 | ||
32856 | if test "x$THREADS_OK" != "xyes"; then | |
32857 | wxUSE_THREADS=no | |
32858 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
32859 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
32860 | else | |
32861 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
32862 | LIBS="$THREADS_LINK $LIBS" | |
32863 | ||
32864 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
32865 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
32866 | flag=no | |
32867 | case "${host}" in | |
32868 | *-aix*) | |
32869 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
32870 | flag="-D_THREAD_SAFE" | |
32871 | ;; | |
32872 | *-freebsd*) | |
32873 | flag="-D_THREAD_SAFE" | |
32874 | ;; | |
32875 | *-hp-hpux* ) | |
32876 | flag="-D_REENTRANT" | |
32877 | if test "x$GCC" != "xyes"; then | |
32878 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
32879 | fi | |
32880 | ;; | |
32881 | *solaris* | alpha*-osf*) | |
32882 | flag="-D_REENTRANT" | |
32883 | ;; | |
32884 | esac | |
32885 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
32886 | echo "${ECHO_T}${flag}" >&6 | |
32887 | if test "x$flag" != xno; then | |
32888 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
32889 | fi | |
32890 | ||
32891 | if test "x$THREADS_CFLAGS" != "x"; then | |
32892 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
32893 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
32894 | fi | |
32895 | fi | |
32896 | fi | |
32897 | ||
32898 | if test "$wxUSE_THREADS" = "yes" ; then | |
32899 | ||
32900 | for ac_func in thr_setconcurrency | |
32901 | do | |
32902 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32903 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32904 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32905 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32907 | else | |
32908 | cat >conftest.$ac_ext <<_ACEOF | |
32909 | /* confdefs.h. */ | |
32910 | _ACEOF | |
32911 | cat confdefs.h >>conftest.$ac_ext | |
32912 | cat >>conftest.$ac_ext <<_ACEOF | |
32913 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32914 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32915 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32916 | #define $ac_func innocuous_$ac_func | |
32917 | ||
a848cd7e SC |
32918 | /* System header to define __stub macros and hopefully few prototypes, |
32919 | which can conflict with char $ac_func (); below. | |
32920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32921 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32922 | |
a848cd7e SC |
32923 | #ifdef __STDC__ |
32924 | # include <limits.h> | |
32925 | #else | |
32926 | # include <assert.h> | |
32927 | #endif | |
ac1cb8d3 VS |
32928 | |
32929 | #undef $ac_func | |
32930 | ||
a848cd7e SC |
32931 | /* Override any gcc2 internal prototype to avoid an error. */ |
32932 | #ifdef __cplusplus | |
32933 | extern "C" | |
32934 | { | |
32935 | #endif | |
32936 | /* We use char because int might match the return type of a gcc2 | |
32937 | builtin and then its argument prototype would still apply. */ | |
32938 | char $ac_func (); | |
32939 | /* The GNU C library defines this for functions which it implements | |
32940 | to always fail with ENOSYS. Some functions are actually named | |
32941 | something starting with __ and the normal name is an alias. */ | |
32942 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32943 | choke me | |
32944 | #else | |
32945 | char (*f) () = $ac_func; | |
32946 | #endif | |
32947 | #ifdef __cplusplus | |
32948 | } | |
32949 | #endif | |
32950 | ||
32951 | int | |
32952 | main () | |
32953 | { | |
32954 | return f != $ac_func; | |
32955 | ; | |
32956 | return 0; | |
32957 | } | |
32958 | _ACEOF | |
32959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32961 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32962 | ac_status=$? |
ac1cb8d3 VS |
32963 | grep -v '^ *+' conftest.er1 >conftest.err |
32964 | rm -f conftest.er1 | |
32965 | cat conftest.err >&5 | |
a848cd7e SC |
32966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32967 | (exit $ac_status); } && | |
89be85c2 VS |
32968 | { ac_try='test -z "$ac_c_werror_flag" |
32969 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32971 | (eval $ac_try) 2>&5 | |
32972 | ac_status=$? | |
32973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32974 | (exit $ac_status); }; } && | |
32975 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32977 | (eval $ac_try) 2>&5 | |
32978 | ac_status=$? | |
32979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32980 | (exit $ac_status); }; }; then | |
32981 | eval "$as_ac_var=yes" | |
32982 | else | |
32983 | echo "$as_me: failed program was:" >&5 | |
32984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32985 | ||
32986 | eval "$as_ac_var=no" | |
32987 | fi | |
ac1cb8d3 VS |
32988 | rm -f conftest.err conftest.$ac_objext \ |
32989 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32990 | fi |
32991 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32992 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32993 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32994 | cat >>confdefs.h <<_ACEOF | |
32995 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32996 | _ACEOF | |
32997 | ||
32998 | fi | |
32999 | done | |
33000 | ||
33001 | ||
33002 | ||
33003 | for ac_header in sched.h | |
33004 | do | |
33005 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33006 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33007 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33008 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33009 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33011 | fi | |
33012 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33013 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33014 | else | |
33015 | # Is the header compilable? | |
33016 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33017 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33018 | cat >conftest.$ac_ext <<_ACEOF | |
33019 | /* confdefs.h. */ | |
33020 | _ACEOF | |
33021 | cat confdefs.h >>conftest.$ac_ext | |
33022 | cat >>conftest.$ac_ext <<_ACEOF | |
33023 | /* end confdefs.h. */ | |
33024 | $ac_includes_default | |
33025 | #include <$ac_header> | |
33026 | _ACEOF | |
33027 | rm -f conftest.$ac_objext | |
33028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33029 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33030 | ac_status=$? |
ac1cb8d3 VS |
33031 | grep -v '^ *+' conftest.er1 >conftest.err |
33032 | rm -f conftest.er1 | |
33033 | cat conftest.err >&5 | |
a848cd7e SC |
33034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33035 | (exit $ac_status); } && | |
89be85c2 VS |
33036 | { ac_try='test -z "$ac_c_werror_flag" |
33037 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33039 | (eval $ac_try) 2>&5 | |
33040 | ac_status=$? | |
33041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33042 | (exit $ac_status); }; } && | |
33043 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33045 | (eval $ac_try) 2>&5 | |
33046 | ac_status=$? | |
33047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33048 | (exit $ac_status); }; }; then | |
33049 | ac_header_compiler=yes | |
33050 | else | |
33051 | echo "$as_me: failed program was:" >&5 | |
33052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33053 | ||
33054 | ac_header_compiler=no | |
33055 | fi | |
ac1cb8d3 | 33056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33057 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33058 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33059 | ||
33060 | # Is the header present? | |
33061 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33062 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33063 | cat >conftest.$ac_ext <<_ACEOF | |
33064 | /* confdefs.h. */ | |
33065 | _ACEOF | |
33066 | cat confdefs.h >>conftest.$ac_ext | |
33067 | cat >>conftest.$ac_ext <<_ACEOF | |
33068 | /* end confdefs.h. */ | |
33069 | #include <$ac_header> | |
33070 | _ACEOF | |
33071 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33072 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33073 | ac_status=$? | |
33074 | grep -v '^ *+' conftest.er1 >conftest.err | |
33075 | rm -f conftest.er1 | |
33076 | cat conftest.err >&5 | |
33077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33078 | (exit $ac_status); } >/dev/null; then | |
33079 | if test -s conftest.err; then | |
33080 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33081 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33082 | else |
33083 | ac_cpp_err= | |
33084 | fi | |
33085 | else | |
33086 | ac_cpp_err=yes | |
33087 | fi | |
33088 | if test -z "$ac_cpp_err"; then | |
33089 | ac_header_preproc=yes | |
33090 | else | |
33091 | echo "$as_me: failed program was:" >&5 | |
33092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33093 | ||
33094 | ac_header_preproc=no | |
33095 | fi | |
33096 | rm -f conftest.err conftest.$ac_ext | |
33097 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33098 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33099 | ||
33100 | # So? What about this header? | |
ac1cb8d3 VS |
33101 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33102 | yes:no: ) | |
a848cd7e SC |
33103 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33104 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33105 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33106 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33107 | ac_header_preproc=yes | |
a848cd7e | 33108 | ;; |
ac1cb8d3 | 33109 | no:yes:* ) |
a848cd7e SC |
33110 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33111 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33112 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33113 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33114 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33115 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33116 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33117 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33118 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33119 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33120 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33121 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33122 | ( |
33123 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33124 | ## ----------------------------------------- ## |
33125 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33126 | ## ----------------------------------------- ## | |
a848cd7e SC |
33127 | _ASBOX |
33128 | ) | | |
33129 | sed "s/^/$as_me: WARNING: /" >&2 | |
33130 | ;; | |
33131 | esac | |
33132 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33133 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33134 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33136 | else | |
ac1cb8d3 | 33137 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33138 | fi |
33139 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33140 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33141 | ||
33142 | fi | |
33143 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33144 | cat >>confdefs.h <<_ACEOF | |
33145 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33146 | _ACEOF | |
33147 | ||
33148 | fi | |
33149 | ||
33150 | done | |
33151 | ||
33152 | if test "$ac_cv_header_sched_h" = "yes"; then | |
33153 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
33154 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
33155 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
33156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33157 | else | |
33158 | cat >conftest.$ac_ext <<_ACEOF | |
33159 | /* confdefs.h. */ | |
33160 | _ACEOF | |
33161 | cat confdefs.h >>conftest.$ac_ext | |
33162 | cat >>conftest.$ac_ext <<_ACEOF | |
33163 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33164 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
33165 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33166 | #define sched_yield innocuous_sched_yield | |
33167 | ||
a848cd7e SC |
33168 | /* System header to define __stub macros and hopefully few prototypes, |
33169 | which can conflict with char sched_yield (); below. | |
33170 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33171 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33172 | |
a848cd7e SC |
33173 | #ifdef __STDC__ |
33174 | # include <limits.h> | |
33175 | #else | |
33176 | # include <assert.h> | |
33177 | #endif | |
ac1cb8d3 VS |
33178 | |
33179 | #undef sched_yield | |
33180 | ||
a848cd7e SC |
33181 | /* Override any gcc2 internal prototype to avoid an error. */ |
33182 | #ifdef __cplusplus | |
33183 | extern "C" | |
33184 | { | |
33185 | #endif | |
33186 | /* We use char because int might match the return type of a gcc2 | |
33187 | builtin and then its argument prototype would still apply. */ | |
33188 | char sched_yield (); | |
33189 | /* The GNU C library defines this for functions which it implements | |
33190 | to always fail with ENOSYS. Some functions are actually named | |
33191 | something starting with __ and the normal name is an alias. */ | |
33192 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
33193 | choke me | |
33194 | #else | |
33195 | char (*f) () = sched_yield; | |
33196 | #endif | |
33197 | #ifdef __cplusplus | |
33198 | } | |
33199 | #endif | |
33200 | ||
33201 | int | |
33202 | main () | |
33203 | { | |
33204 | return f != sched_yield; | |
33205 | ; | |
33206 | return 0; | |
33207 | } | |
33208 | _ACEOF | |
33209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33211 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33212 | ac_status=$? |
ac1cb8d3 VS |
33213 | grep -v '^ *+' conftest.er1 >conftest.err |
33214 | rm -f conftest.er1 | |
33215 | cat conftest.err >&5 | |
a848cd7e SC |
33216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33217 | (exit $ac_status); } && | |
89be85c2 VS |
33218 | { ac_try='test -z "$ac_c_werror_flag" |
33219 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33221 | (eval $ac_try) 2>&5 | |
33222 | ac_status=$? | |
33223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33224 | (exit $ac_status); }; } && | |
33225 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33227 | (eval $ac_try) 2>&5 | |
33228 | ac_status=$? | |
33229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33230 | (exit $ac_status); }; }; then | |
33231 | ac_cv_func_sched_yield=yes | |
33232 | else | |
33233 | echo "$as_me: failed program was:" >&5 | |
33234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33235 | ||
33236 | ac_cv_func_sched_yield=no | |
33237 | fi | |
ac1cb8d3 VS |
33238 | rm -f conftest.err conftest.$ac_objext \ |
33239 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33240 | fi |
33241 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
33242 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
33243 | if test $ac_cv_func_sched_yield = yes; then | |
33244 | cat >>confdefs.h <<\_ACEOF | |
33245 | #define HAVE_SCHED_YIELD 1 | |
33246 | _ACEOF | |
33247 | ||
33248 | else | |
33249 | ||
33250 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
33251 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
33252 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
33253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33254 | else | |
33255 | ac_check_lib_save_LIBS=$LIBS | |
33256 | LIBS="-lposix4 $LIBS" | |
33257 | cat >conftest.$ac_ext <<_ACEOF | |
33258 | /* confdefs.h. */ | |
33259 | _ACEOF | |
33260 | cat confdefs.h >>conftest.$ac_ext | |
33261 | cat >>conftest.$ac_ext <<_ACEOF | |
33262 | /* end confdefs.h. */ | |
33263 | ||
33264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33265 | #ifdef __cplusplus | |
33266 | extern "C" | |
33267 | #endif | |
33268 | /* We use char because int might match the return type of a gcc2 | |
33269 | builtin and then its argument prototype would still apply. */ | |
33270 | char sched_yield (); | |
33271 | int | |
33272 | main () | |
33273 | { | |
33274 | sched_yield (); | |
33275 | ; | |
33276 | return 0; | |
33277 | } | |
33278 | _ACEOF | |
33279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33281 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33282 | ac_status=$? |
ac1cb8d3 VS |
33283 | grep -v '^ *+' conftest.er1 >conftest.err |
33284 | rm -f conftest.er1 | |
33285 | cat conftest.err >&5 | |
a848cd7e SC |
33286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33287 | (exit $ac_status); } && | |
89be85c2 VS |
33288 | { ac_try='test -z "$ac_c_werror_flag" |
33289 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33291 | (eval $ac_try) 2>&5 | |
33292 | ac_status=$? | |
33293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33294 | (exit $ac_status); }; } && | |
33295 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33297 | (eval $ac_try) 2>&5 | |
33298 | ac_status=$? | |
33299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33300 | (exit $ac_status); }; }; then | |
33301 | ac_cv_lib_posix4_sched_yield=yes | |
33302 | else | |
33303 | echo "$as_me: failed program was:" >&5 | |
33304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33305 | ||
33306 | ac_cv_lib_posix4_sched_yield=no | |
33307 | fi | |
ac1cb8d3 VS |
33308 | rm -f conftest.err conftest.$ac_objext \ |
33309 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33310 | LIBS=$ac_check_lib_save_LIBS |
33311 | fi | |
33312 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
33313 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
33314 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
33315 | cat >>confdefs.h <<\_ACEOF | |
33316 | #define HAVE_SCHED_YIELD 1 | |
33317 | _ACEOF | |
33318 | POSIX4_LINK=" -lposix4" | |
33319 | else | |
33320 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
33321 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
33322 | ||
33323 | fi | |
33324 | ||
33325 | ||
33326 | ||
33327 | fi | |
33328 | ||
33329 | fi | |
33330 | ||
33331 | HAVE_PRIOR_FUNCS=0 | |
33332 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
33333 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
33334 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
33335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33336 | else | |
33337 | cat >conftest.$ac_ext <<_ACEOF | |
33338 | /* confdefs.h. */ | |
33339 | _ACEOF | |
33340 | cat confdefs.h >>conftest.$ac_ext | |
33341 | cat >>conftest.$ac_ext <<_ACEOF | |
33342 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33343 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
33344 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33345 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
33346 | ||
a848cd7e SC |
33347 | /* System header to define __stub macros and hopefully few prototypes, |
33348 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
33349 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33350 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33351 | |
a848cd7e SC |
33352 | #ifdef __STDC__ |
33353 | # include <limits.h> | |
33354 | #else | |
33355 | # include <assert.h> | |
33356 | #endif | |
ac1cb8d3 VS |
33357 | |
33358 | #undef pthread_attr_getschedpolicy | |
33359 | ||
a848cd7e SC |
33360 | /* Override any gcc2 internal prototype to avoid an error. */ |
33361 | #ifdef __cplusplus | |
33362 | extern "C" | |
33363 | { | |
33364 | #endif | |
33365 | /* We use char because int might match the return type of a gcc2 | |
33366 | builtin and then its argument prototype would still apply. */ | |
33367 | char pthread_attr_getschedpolicy (); | |
33368 | /* The GNU C library defines this for functions which it implements | |
33369 | to always fail with ENOSYS. Some functions are actually named | |
33370 | something starting with __ and the normal name is an alias. */ | |
33371 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
33372 | choke me | |
33373 | #else | |
33374 | char (*f) () = pthread_attr_getschedpolicy; | |
33375 | #endif | |
33376 | #ifdef __cplusplus | |
33377 | } | |
33378 | #endif | |
33379 | ||
33380 | int | |
33381 | main () | |
33382 | { | |
33383 | return f != pthread_attr_getschedpolicy; | |
33384 | ; | |
33385 | return 0; | |
33386 | } | |
33387 | _ACEOF | |
33388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33390 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33391 | ac_status=$? |
ac1cb8d3 VS |
33392 | grep -v '^ *+' conftest.er1 >conftest.err |
33393 | rm -f conftest.er1 | |
33394 | cat conftest.err >&5 | |
a848cd7e SC |
33395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33396 | (exit $ac_status); } && | |
89be85c2 VS |
33397 | { ac_try='test -z "$ac_c_werror_flag" |
33398 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33400 | (eval $ac_try) 2>&5 | |
33401 | ac_status=$? | |
33402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33403 | (exit $ac_status); }; } && | |
33404 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33406 | (eval $ac_try) 2>&5 | |
33407 | ac_status=$? | |
33408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33409 | (exit $ac_status); }; }; then | |
33410 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
33411 | else | |
33412 | echo "$as_me: failed program was:" >&5 | |
33413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33414 | ||
33415 | ac_cv_func_pthread_attr_getschedpolicy=no | |
33416 | fi | |
ac1cb8d3 VS |
33417 | rm -f conftest.err conftest.$ac_objext \ |
33418 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33419 | fi |
33420 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
33421 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
33422 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
33423 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
33424 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
33425 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
33426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33427 | else | |
33428 | cat >conftest.$ac_ext <<_ACEOF | |
33429 | /* confdefs.h. */ | |
33430 | _ACEOF | |
33431 | cat confdefs.h >>conftest.$ac_ext | |
33432 | cat >>conftest.$ac_ext <<_ACEOF | |
33433 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33434 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
33435 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33436 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
33437 | ||
a848cd7e SC |
33438 | /* System header to define __stub macros and hopefully few prototypes, |
33439 | which can conflict with char pthread_attr_setschedparam (); below. | |
33440 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33441 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33442 | |
a848cd7e SC |
33443 | #ifdef __STDC__ |
33444 | # include <limits.h> | |
33445 | #else | |
33446 | # include <assert.h> | |
33447 | #endif | |
ac1cb8d3 VS |
33448 | |
33449 | #undef pthread_attr_setschedparam | |
33450 | ||
a848cd7e SC |
33451 | /* Override any gcc2 internal prototype to avoid an error. */ |
33452 | #ifdef __cplusplus | |
33453 | extern "C" | |
33454 | { | |
33455 | #endif | |
33456 | /* We use char because int might match the return type of a gcc2 | |
33457 | builtin and then its argument prototype would still apply. */ | |
33458 | char pthread_attr_setschedparam (); | |
33459 | /* The GNU C library defines this for functions which it implements | |
33460 | to always fail with ENOSYS. Some functions are actually named | |
33461 | something starting with __ and the normal name is an alias. */ | |
33462 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
33463 | choke me | |
33464 | #else | |
33465 | char (*f) () = pthread_attr_setschedparam; | |
33466 | #endif | |
33467 | #ifdef __cplusplus | |
33468 | } | |
33469 | #endif | |
33470 | ||
33471 | int | |
33472 | main () | |
33473 | { | |
33474 | return f != pthread_attr_setschedparam; | |
33475 | ; | |
33476 | return 0; | |
33477 | } | |
33478 | _ACEOF | |
33479 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33481 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33482 | ac_status=$? |
ac1cb8d3 VS |
33483 | grep -v '^ *+' conftest.er1 >conftest.err |
33484 | rm -f conftest.er1 | |
33485 | cat conftest.err >&5 | |
a848cd7e SC |
33486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33487 | (exit $ac_status); } && | |
89be85c2 VS |
33488 | { ac_try='test -z "$ac_c_werror_flag" |
33489 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33491 | (eval $ac_try) 2>&5 | |
33492 | ac_status=$? | |
33493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33494 | (exit $ac_status); }; } && | |
33495 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33497 | (eval $ac_try) 2>&5 | |
33498 | ac_status=$? | |
33499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33500 | (exit $ac_status); }; }; then | |
33501 | ac_cv_func_pthread_attr_setschedparam=yes | |
33502 | else | |
33503 | echo "$as_me: failed program was:" >&5 | |
33504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33505 | ||
33506 | ac_cv_func_pthread_attr_setschedparam=no | |
33507 | fi | |
ac1cb8d3 VS |
33508 | rm -f conftest.err conftest.$ac_objext \ |
33509 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33510 | fi |
33511 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
33512 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
33513 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
33514 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
33515 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
33516 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
33517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33518 | else | |
33519 | cat >conftest.$ac_ext <<_ACEOF | |
33520 | /* confdefs.h. */ | |
33521 | _ACEOF | |
33522 | cat confdefs.h >>conftest.$ac_ext | |
33523 | cat >>conftest.$ac_ext <<_ACEOF | |
33524 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33525 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
33526 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33527 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
33528 | ||
a848cd7e SC |
33529 | /* System header to define __stub macros and hopefully few prototypes, |
33530 | which can conflict with char sched_get_priority_max (); below. | |
33531 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33532 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33533 | |
a848cd7e SC |
33534 | #ifdef __STDC__ |
33535 | # include <limits.h> | |
33536 | #else | |
33537 | # include <assert.h> | |
33538 | #endif | |
ac1cb8d3 VS |
33539 | |
33540 | #undef sched_get_priority_max | |
33541 | ||
a848cd7e SC |
33542 | /* Override any gcc2 internal prototype to avoid an error. */ |
33543 | #ifdef __cplusplus | |
33544 | extern "C" | |
33545 | { | |
33546 | #endif | |
33547 | /* We use char because int might match the return type of a gcc2 | |
33548 | builtin and then its argument prototype would still apply. */ | |
33549 | char sched_get_priority_max (); | |
33550 | /* The GNU C library defines this for functions which it implements | |
33551 | to always fail with ENOSYS. Some functions are actually named | |
33552 | something starting with __ and the normal name is an alias. */ | |
33553 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
33554 | choke me | |
33555 | #else | |
33556 | char (*f) () = sched_get_priority_max; | |
33557 | #endif | |
33558 | #ifdef __cplusplus | |
33559 | } | |
33560 | #endif | |
33561 | ||
33562 | int | |
33563 | main () | |
33564 | { | |
33565 | return f != sched_get_priority_max; | |
33566 | ; | |
33567 | return 0; | |
33568 | } | |
33569 | _ACEOF | |
33570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33572 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33573 | ac_status=$? |
ac1cb8d3 VS |
33574 | grep -v '^ *+' conftest.er1 >conftest.err |
33575 | rm -f conftest.er1 | |
33576 | cat conftest.err >&5 | |
a848cd7e SC |
33577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33578 | (exit $ac_status); } && | |
89be85c2 VS |
33579 | { ac_try='test -z "$ac_c_werror_flag" |
33580 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33582 | (eval $ac_try) 2>&5 | |
33583 | ac_status=$? | |
33584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33585 | (exit $ac_status); }; } && | |
33586 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33588 | (eval $ac_try) 2>&5 | |
33589 | ac_status=$? | |
33590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33591 | (exit $ac_status); }; }; then | |
33592 | ac_cv_func_sched_get_priority_max=yes | |
33593 | else | |
33594 | echo "$as_me: failed program was:" >&5 | |
33595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33596 | ||
33597 | ac_cv_func_sched_get_priority_max=no | |
33598 | fi | |
ac1cb8d3 VS |
33599 | rm -f conftest.err conftest.$ac_objext \ |
33600 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33601 | fi |
33602 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
33603 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
33604 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
33605 | HAVE_PRIOR_FUNCS=1 | |
33606 | else | |
33607 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
33608 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
33609 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
33610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33611 | else | |
33612 | ac_check_lib_save_LIBS=$LIBS | |
33613 | LIBS="-lposix4 $LIBS" | |
33614 | cat >conftest.$ac_ext <<_ACEOF | |
33615 | /* confdefs.h. */ | |
33616 | _ACEOF | |
33617 | cat confdefs.h >>conftest.$ac_ext | |
33618 | cat >>conftest.$ac_ext <<_ACEOF | |
33619 | /* end confdefs.h. */ | |
33620 | ||
33621 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33622 | #ifdef __cplusplus | |
33623 | extern "C" | |
33624 | #endif | |
33625 | /* We use char because int might match the return type of a gcc2 | |
33626 | builtin and then its argument prototype would still apply. */ | |
33627 | char sched_get_priority_max (); | |
33628 | int | |
33629 | main () | |
33630 | { | |
33631 | sched_get_priority_max (); | |
33632 | ; | |
33633 | return 0; | |
33634 | } | |
33635 | _ACEOF | |
33636 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33638 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33639 | ac_status=$? |
ac1cb8d3 VS |
33640 | grep -v '^ *+' conftest.er1 >conftest.err |
33641 | rm -f conftest.er1 | |
33642 | cat conftest.err >&5 | |
a848cd7e SC |
33643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33644 | (exit $ac_status); } && | |
89be85c2 VS |
33645 | { ac_try='test -z "$ac_c_werror_flag" |
33646 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33648 | (eval $ac_try) 2>&5 | |
33649 | ac_status=$? | |
33650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33651 | (exit $ac_status); }; } && | |
33652 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33654 | (eval $ac_try) 2>&5 | |
33655 | ac_status=$? | |
33656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33657 | (exit $ac_status); }; }; then | |
33658 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
33659 | else | |
33660 | echo "$as_me: failed program was:" >&5 | |
33661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33662 | ||
33663 | ac_cv_lib_posix4_sched_get_priority_max=no | |
33664 | fi | |
ac1cb8d3 VS |
33665 | rm -f conftest.err conftest.$ac_objext \ |
33666 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33667 | LIBS=$ac_check_lib_save_LIBS |
33668 | fi | |
33669 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
33670 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
33671 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
33672 | ||
33673 | HAVE_PRIOR_FUNCS=1 | |
33674 | POSIX4_LINK=" -lposix4" | |
33675 | ||
33676 | fi | |
33677 | ||
33678 | ||
33679 | fi | |
33680 | ||
33681 | ||
33682 | fi | |
33683 | ||
33684 | ||
33685 | fi | |
33686 | ||
33687 | ||
33688 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
33689 | cat >>confdefs.h <<\_ACEOF | |
33690 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
33691 | _ACEOF | |
33692 | ||
33693 | else | |
33694 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
33695 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
33696 | fi | |
33697 | ||
33698 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
33699 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
33700 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
33701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33702 | else | |
33703 | cat >conftest.$ac_ext <<_ACEOF | |
33704 | /* confdefs.h. */ | |
33705 | _ACEOF | |
33706 | cat confdefs.h >>conftest.$ac_ext | |
33707 | cat >>conftest.$ac_ext <<_ACEOF | |
33708 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33709 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
33710 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33711 | #define pthread_cancel innocuous_pthread_cancel | |
33712 | ||
a848cd7e SC |
33713 | /* System header to define __stub macros and hopefully few prototypes, |
33714 | which can conflict with char pthread_cancel (); below. | |
33715 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33716 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33717 | |
a848cd7e SC |
33718 | #ifdef __STDC__ |
33719 | # include <limits.h> | |
33720 | #else | |
33721 | # include <assert.h> | |
33722 | #endif | |
ac1cb8d3 VS |
33723 | |
33724 | #undef pthread_cancel | |
33725 | ||
a848cd7e SC |
33726 | /* Override any gcc2 internal prototype to avoid an error. */ |
33727 | #ifdef __cplusplus | |
33728 | extern "C" | |
33729 | { | |
33730 | #endif | |
33731 | /* We use char because int might match the return type of a gcc2 | |
33732 | builtin and then its argument prototype would still apply. */ | |
33733 | char pthread_cancel (); | |
33734 | /* The GNU C library defines this for functions which it implements | |
33735 | to always fail with ENOSYS. Some functions are actually named | |
33736 | something starting with __ and the normal name is an alias. */ | |
33737 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
33738 | choke me | |
33739 | #else | |
33740 | char (*f) () = pthread_cancel; | |
33741 | #endif | |
33742 | #ifdef __cplusplus | |
33743 | } | |
33744 | #endif | |
33745 | ||
33746 | int | |
33747 | main () | |
33748 | { | |
33749 | return f != pthread_cancel; | |
33750 | ; | |
33751 | return 0; | |
33752 | } | |
33753 | _ACEOF | |
33754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33756 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33757 | ac_status=$? |
ac1cb8d3 VS |
33758 | grep -v '^ *+' conftest.er1 >conftest.err |
33759 | rm -f conftest.er1 | |
33760 | cat conftest.err >&5 | |
a848cd7e SC |
33761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33762 | (exit $ac_status); } && | |
89be85c2 VS |
33763 | { ac_try='test -z "$ac_c_werror_flag" |
33764 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33766 | (eval $ac_try) 2>&5 | |
33767 | ac_status=$? | |
33768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33769 | (exit $ac_status); }; } && | |
33770 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33772 | (eval $ac_try) 2>&5 | |
33773 | ac_status=$? | |
33774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33775 | (exit $ac_status); }; }; then | |
33776 | ac_cv_func_pthread_cancel=yes | |
33777 | else | |
33778 | echo "$as_me: failed program was:" >&5 | |
33779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33780 | ||
33781 | ac_cv_func_pthread_cancel=no | |
33782 | fi | |
ac1cb8d3 VS |
33783 | rm -f conftest.err conftest.$ac_objext \ |
33784 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33785 | fi |
33786 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
33787 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
33788 | if test $ac_cv_func_pthread_cancel = yes; then | |
33789 | cat >>confdefs.h <<\_ACEOF | |
33790 | #define HAVE_PTHREAD_CANCEL 1 | |
33791 | _ACEOF | |
33792 | ||
33793 | else | |
33794 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
33795 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
33796 | fi | |
33797 | ||
33798 | ||
33799 | ||
33800 | ||
33801 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
33802 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
33803 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
33804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33805 | else | |
33806 | ||
33807 | cat >conftest.$ac_ext <<_ACEOF | |
33808 | /* confdefs.h. */ | |
33809 | _ACEOF | |
33810 | cat confdefs.h >>conftest.$ac_ext | |
33811 | cat >>conftest.$ac_ext <<_ACEOF | |
33812 | /* end confdefs.h. */ | |
33813 | #include <pthread.h> | |
33814 | int | |
33815 | main () | |
33816 | { | |
33817 | ||
33818 | pthread_mutexattr_t attr; | |
33819 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
33820 | ||
33821 | ; | |
33822 | return 0; | |
33823 | } | |
33824 | _ACEOF | |
33825 | rm -f conftest.$ac_objext | |
33826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33827 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33828 | ac_status=$? |
ac1cb8d3 VS |
33829 | grep -v '^ *+' conftest.er1 >conftest.err |
33830 | rm -f conftest.er1 | |
33831 | cat conftest.err >&5 | |
a848cd7e SC |
33832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33833 | (exit $ac_status); } && | |
89be85c2 VS |
33834 | { ac_try='test -z "$ac_c_werror_flag" |
33835 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33837 | (eval $ac_try) 2>&5 | |
33838 | ac_status=$? | |
33839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33840 | (exit $ac_status); }; } && | |
33841 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33843 | (eval $ac_try) 2>&5 | |
33844 | ac_status=$? | |
33845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33846 | (exit $ac_status); }; }; then | |
33847 | ||
33848 | wx_cv_type_pthread_mutexattr_t=yes | |
33849 | ||
33850 | else | |
33851 | echo "$as_me: failed program was:" >&5 | |
33852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33853 | ||
33854 | ||
33855 | wx_cv_type_pthread_mutexattr_t=no | |
33856 | ||
33857 | ||
33858 | fi | |
ac1cb8d3 | 33859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33860 | |
33861 | fi | |
33862 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
33863 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
33864 | ||
33865 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
33866 | cat >>confdefs.h <<\_ACEOF | |
33867 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
33868 | _ACEOF | |
33869 | ||
33870 | else | |
33871 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
33872 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
33873 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
33874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33875 | else | |
33876 | ||
33877 | cat >conftest.$ac_ext <<_ACEOF | |
33878 | /* confdefs.h. */ | |
33879 | _ACEOF | |
33880 | cat confdefs.h >>conftest.$ac_ext | |
33881 | cat >>conftest.$ac_ext <<_ACEOF | |
33882 | /* end confdefs.h. */ | |
33883 | #include <pthread.h> | |
33884 | int | |
33885 | main () | |
33886 | { | |
33887 | ||
33888 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
33889 | ||
33890 | ; | |
33891 | return 0; | |
33892 | } | |
33893 | _ACEOF | |
33894 | rm -f conftest.$ac_objext | |
33895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33896 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33897 | ac_status=$? |
ac1cb8d3 VS |
33898 | grep -v '^ *+' conftest.er1 >conftest.err |
33899 | rm -f conftest.er1 | |
33900 | cat conftest.err >&5 | |
a848cd7e SC |
33901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33902 | (exit $ac_status); } && | |
89be85c2 VS |
33903 | { ac_try='test -z "$ac_c_werror_flag" |
33904 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33906 | (eval $ac_try) 2>&5 | |
33907 | ac_status=$? | |
33908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33909 | (exit $ac_status); }; } && | |
33910 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33912 | (eval $ac_try) 2>&5 | |
33913 | ac_status=$? | |
33914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33915 | (exit $ac_status); }; }; then | |
33916 | ||
33917 | wx_cv_type_pthread_rec_mutex_init=yes | |
33918 | ||
33919 | else | |
33920 | echo "$as_me: failed program was:" >&5 | |
33921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33922 | ||
33923 | ||
33924 | wx_cv_type_pthread_rec_mutex_init=no | |
33925 | ||
33926 | ||
33927 | fi | |
ac1cb8d3 | 33928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33929 | |
33930 | fi | |
33931 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
33932 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
33933 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
33934 | cat >>confdefs.h <<\_ACEOF | |
33935 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
33936 | _ACEOF | |
33937 | ||
33938 | else | |
33939 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
33940 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
33941 | fi | |
33942 | fi | |
33943 | fi | |
33944 | ||
33945 | else | |
33946 | if test "$wxUSE_THREADS" = "yes" ; then | |
33947 | case "${host}" in | |
33948 | *-*-mingw32* ) | |
33949 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
33950 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
33951 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
33952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33953 | else | |
33954 | ||
33955 | CFLAGS_OLD="$CFLAGS" | |
33956 | CFLAGS="$CFLAGS -mthreads" | |
33957 | cat >conftest.$ac_ext <<_ACEOF | |
33958 | /* confdefs.h. */ | |
33959 | _ACEOF | |
33960 | cat confdefs.h >>conftest.$ac_ext | |
33961 | cat >>conftest.$ac_ext <<_ACEOF | |
33962 | /* end confdefs.h. */ | |
33963 | ||
33964 | int | |
33965 | main () | |
33966 | { | |
33967 | ||
33968 | ; | |
33969 | return 0; | |
33970 | } | |
33971 | _ACEOF | |
33972 | rm -f conftest.$ac_objext | |
33973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33974 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33975 | ac_status=$? |
ac1cb8d3 VS |
33976 | grep -v '^ *+' conftest.er1 >conftest.err |
33977 | rm -f conftest.er1 | |
33978 | cat conftest.err >&5 | |
a848cd7e SC |
33979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33980 | (exit $ac_status); } && | |
89be85c2 VS |
33981 | { ac_try='test -z "$ac_c_werror_flag" |
33982 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33984 | (eval $ac_try) 2>&5 | |
33985 | ac_status=$? | |
33986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33987 | (exit $ac_status); }; } && | |
33988 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33990 | (eval $ac_try) 2>&5 | |
33991 | ac_status=$? | |
33992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33993 | (exit $ac_status); }; }; then | |
33994 | wx_cv_cflags_mthread=yes | |
33995 | else | |
33996 | echo "$as_me: failed program was:" >&5 | |
33997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33998 | ||
33999 | wx_cv_cflags_mthread=no | |
34000 | ||
34001 | fi | |
ac1cb8d3 | 34002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34003 | |
34004 | ||
34005 | fi | |
34006 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
34007 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
34008 | ||
34009 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
34010 | CXXFLAGS="$CXXFLAGS -mthreads" | |
34011 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
34012 | LDFLAGS="$LDFLAGS -mthreads" | |
34013 | else | |
34014 | CFLAGS="$CFLAGS_OLD" | |
34015 | fi | |
34016 | ;; | |
34017 | *-pc-os2*emx ) | |
34018 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
34019 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
34020 | LDFLAGS="$LDFLAGS -Zmt" | |
34021 | ;; | |
34022 | esac | |
34023 | fi | |
34024 | fi | |
34025 | ||
34026 | if test "$wxUSE_THREADS" = "yes"; then | |
34027 | cat >>confdefs.h <<\_ACEOF | |
34028 | #define wxUSE_THREADS 1 | |
34029 | _ACEOF | |
34030 | ||
34031 | ||
34032 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
34033 | else | |
34034 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
34035 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
34036 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
34037 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
34038 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
34039 | echo "$as_me:$LINENO: result: yes" >&5 | |
34040 | echo "${ECHO_T}yes" >&6 | |
34041 | else | |
34042 | echo "$as_me:$LINENO: result: no" >&5 | |
34043 | echo "${ECHO_T}no" >&6 | |
34044 | fi | |
34045 | fi | |
34046 | fi | |
34047 | ||
34048 | if test "$WXGTK20" = 1 ; then | |
34049 | cat >>confdefs.h <<_ACEOF | |
34050 | #define __WXGTK20__ $WXGTK20 | |
34051 | _ACEOF | |
34052 | ||
34053 | WXGTK12=1 | |
34054 | fi | |
34055 | ||
34056 | if test "$WXGTK12" = 1 ; then | |
34057 | cat >>confdefs.h <<_ACEOF | |
34058 | #define __WXGTK12__ $WXGTK12 | |
34059 | _ACEOF | |
34060 | ||
34061 | fi | |
34062 | ||
34063 | if test "$WXGTK127" = 1 ; then | |
34064 | cat >>confdefs.h <<_ACEOF | |
34065 | #define __WXGTK127__ $WXGTK127 | |
34066 | _ACEOF | |
34067 | ||
34068 | fi | |
34069 | ||
34070 | if test "$WXGPE" = 1 ; then | |
34071 | cat >>confdefs.h <<_ACEOF | |
34072 | #define __WXGPE__ $WXGPE | |
34073 | _ACEOF | |
34074 | ||
34075 | fi | |
34076 | ||
34077 | WXDEBUG= | |
34078 | ||
34079 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
34080 | WXDEBUG="-g" | |
34081 | wxUSE_OPTIMISE=no | |
34082 | fi | |
34083 | ||
34084 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
34085 | wxUSE_DEBUG_INFO=yes | |
34086 | WXDEBUG="-ggdb" | |
34087 | fi | |
34088 | ||
34089 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
34090 | cat >>confdefs.h <<\_ACEOF | |
34091 | #define WXDEBUG 1 | |
34092 | _ACEOF | |
34093 | ||
34094 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
34095 | else | |
34096 | if test "$wxUSE_GTK" = 1 ; then | |
34097 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
34098 | fi | |
34099 | fi | |
34100 | ||
34101 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
34102 | cat >>confdefs.h <<\_ACEOF | |
34103 | #define wxUSE_MEMORY_TRACING 1 | |
34104 | _ACEOF | |
34105 | ||
34106 | cat >>confdefs.h <<\_ACEOF | |
34107 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
34108 | _ACEOF | |
34109 | ||
34110 | cat >>confdefs.h <<\_ACEOF | |
34111 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
34112 | _ACEOF | |
34113 | ||
34114 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
34115 | fi | |
34116 | ||
34117 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
34118 | DMALLOC_LIBS="-ldmalloc" | |
34119 | fi | |
34120 | ||
34121 | PROFILE= | |
34122 | if test "$wxUSE_PROFILE" = "yes" ; then | |
34123 | PROFILE=" -pg" | |
34124 | fi | |
34125 | ||
34126 | CODE_GEN_FLAGS= | |
34127 | CODE_GEN_FLAGS_CXX= | |
34128 | if test "$GCC" = "yes" ; then | |
34129 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
34130 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
34131 | fi | |
34132 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
34133 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
34134 | fi | |
34135 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
34136 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
34137 | fi | |
34138 | ||
34139 | case "${host}" in | |
34140 | powerpc*-*-aix* ) | |
34141 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
34142 | ;; | |
34143 | *-hppa* ) | |
34144 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
34145 | ;; | |
34146 | esac | |
34147 | fi | |
34148 | ||
34149 | OPTIMISE= | |
34150 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
34151 | if test "$GCC" = yes ; then | |
34152 | OPTIMISE="-O0" | |
34153 | fi | |
34154 | else | |
34155 | if test "$GCC" = yes ; then | |
34156 | OPTIMISE="-O2" | |
34157 | ||
34158 | case "${host}" in | |
34159 | i586-*-*|i686-*-* ) | |
34160 | OPTIMISE="${OPTIMISE} " | |
34161 | ;; | |
34162 | esac | |
34163 | else | |
34164 | OPTIMISE="-O" | |
34165 | fi | |
34166 | fi | |
34167 | ||
34168 | ||
34169 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
34170 | cat >>confdefs.h <<\_ACEOF | |
34171 | #define WXWIN_COMPATIBILITY_2_2 1 | |
34172 | _ACEOF | |
34173 | ||
34174 | ||
34175 | WXWIN_COMPATIBILITY_2_4="yes" | |
34176 | fi | |
34177 | ||
34178 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
34179 | cat >>confdefs.h <<\_ACEOF | |
34180 | #define WXWIN_COMPATIBILITY_2_4 1 | |
34181 | _ACEOF | |
34182 | ||
34183 | fi | |
34184 | ||
34185 | ||
34186 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 34187 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
34188 | #define wxUSE_GUI 1 |
34189 | _ACEOF | |
34190 | ||
34191 | ||
370fd4c2 | 34192 | fi |
a848cd7e SC |
34193 | |
34194 | ||
34195 | if test "$wxUSE_UNIX" = "yes"; then | |
34196 | cat >>confdefs.h <<\_ACEOF | |
34197 | #define wxUSE_UNIX 1 | |
34198 | _ACEOF | |
34199 | ||
34200 | fi | |
34201 | ||
34202 | ||
34203 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
34204 | ||
34205 | HAVE_DL_FUNCS=0 | |
34206 | HAVE_SHL_FUNCS=0 | |
34207 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34208 | if test "$USE_DARWIN" = 1; then | |
34209 | HAVE_DL_FUNCS=1 | |
34210 | else | |
34211 | ||
34212 | for ac_func in dlopen | |
34213 | do | |
34214 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34215 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34216 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34217 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34219 | else | |
34220 | cat >conftest.$ac_ext <<_ACEOF | |
34221 | /* confdefs.h. */ | |
34222 | _ACEOF | |
34223 | cat confdefs.h >>conftest.$ac_ext | |
34224 | cat >>conftest.$ac_ext <<_ACEOF | |
34225 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34226 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34227 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34228 | #define $ac_func innocuous_$ac_func | |
34229 | ||
a848cd7e SC |
34230 | /* System header to define __stub macros and hopefully few prototypes, |
34231 | which can conflict with char $ac_func (); below. | |
34232 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34233 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34234 | |
a848cd7e SC |
34235 | #ifdef __STDC__ |
34236 | # include <limits.h> | |
34237 | #else | |
34238 | # include <assert.h> | |
34239 | #endif | |
ac1cb8d3 VS |
34240 | |
34241 | #undef $ac_func | |
34242 | ||
a848cd7e SC |
34243 | /* Override any gcc2 internal prototype to avoid an error. */ |
34244 | #ifdef __cplusplus | |
34245 | extern "C" | |
34246 | { | |
34247 | #endif | |
34248 | /* We use char because int might match the return type of a gcc2 | |
34249 | builtin and then its argument prototype would still apply. */ | |
34250 | char $ac_func (); | |
34251 | /* The GNU C library defines this for functions which it implements | |
34252 | to always fail with ENOSYS. Some functions are actually named | |
34253 | something starting with __ and the normal name is an alias. */ | |
34254 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34255 | choke me | |
34256 | #else | |
34257 | char (*f) () = $ac_func; | |
34258 | #endif | |
34259 | #ifdef __cplusplus | |
34260 | } | |
34261 | #endif | |
34262 | ||
34263 | int | |
34264 | main () | |
34265 | { | |
34266 | return f != $ac_func; | |
34267 | ; | |
34268 | return 0; | |
34269 | } | |
34270 | _ACEOF | |
34271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34273 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34274 | ac_status=$? |
ac1cb8d3 VS |
34275 | grep -v '^ *+' conftest.er1 >conftest.err |
34276 | rm -f conftest.er1 | |
34277 | cat conftest.err >&5 | |
a848cd7e SC |
34278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34279 | (exit $ac_status); } && | |
89be85c2 VS |
34280 | { ac_try='test -z "$ac_c_werror_flag" |
34281 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34283 | (eval $ac_try) 2>&5 | |
34284 | ac_status=$? | |
34285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34286 | (exit $ac_status); }; } && | |
34287 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34289 | (eval $ac_try) 2>&5 | |
34290 | ac_status=$? | |
34291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34292 | (exit $ac_status); }; }; then | |
34293 | eval "$as_ac_var=yes" | |
34294 | else | |
34295 | echo "$as_me: failed program was:" >&5 | |
34296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34297 | ||
34298 | eval "$as_ac_var=no" | |
34299 | fi | |
ac1cb8d3 VS |
34300 | rm -f conftest.err conftest.$ac_objext \ |
34301 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34302 | fi |
34303 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34304 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34305 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34306 | cat >>confdefs.h <<_ACEOF | |
34307 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34308 | _ACEOF | |
34309 | ||
34310 | cat >>confdefs.h <<\_ACEOF | |
34311 | #define HAVE_DLOPEN 1 | |
34312 | _ACEOF | |
34313 | ||
34314 | HAVE_DL_FUNCS=1 | |
34315 | ||
34316 | else | |
34317 | ||
34318 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
34319 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
34320 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
34321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34322 | else | |
34323 | ac_check_lib_save_LIBS=$LIBS | |
34324 | LIBS="-ldl $LIBS" | |
34325 | cat >conftest.$ac_ext <<_ACEOF | |
34326 | /* confdefs.h. */ | |
34327 | _ACEOF | |
34328 | cat confdefs.h >>conftest.$ac_ext | |
34329 | cat >>conftest.$ac_ext <<_ACEOF | |
34330 | /* end confdefs.h. */ | |
34331 | ||
34332 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34333 | #ifdef __cplusplus | |
34334 | extern "C" | |
34335 | #endif | |
34336 | /* We use char because int might match the return type of a gcc2 | |
34337 | builtin and then its argument prototype would still apply. */ | |
34338 | char dlopen (); | |
34339 | int | |
34340 | main () | |
34341 | { | |
34342 | dlopen (); | |
34343 | ; | |
34344 | return 0; | |
34345 | } | |
34346 | _ACEOF | |
34347 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34349 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34350 | ac_status=$? |
ac1cb8d3 VS |
34351 | grep -v '^ *+' conftest.er1 >conftest.err |
34352 | rm -f conftest.er1 | |
34353 | cat conftest.err >&5 | |
a848cd7e SC |
34354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34355 | (exit $ac_status); } && | |
89be85c2 VS |
34356 | { ac_try='test -z "$ac_c_werror_flag" |
34357 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34359 | (eval $ac_try) 2>&5 | |
34360 | ac_status=$? | |
34361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34362 | (exit $ac_status); }; } && | |
34363 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34365 | (eval $ac_try) 2>&5 | |
34366 | ac_status=$? | |
34367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34368 | (exit $ac_status); }; }; then | |
34369 | ac_cv_lib_dl_dlopen=yes | |
34370 | else | |
34371 | echo "$as_me: failed program was:" >&5 | |
34372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34373 | ||
34374 | ac_cv_lib_dl_dlopen=no | |
34375 | fi | |
ac1cb8d3 VS |
34376 | rm -f conftest.err conftest.$ac_objext \ |
34377 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34378 | LIBS=$ac_check_lib_save_LIBS |
34379 | fi | |
34380 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
34381 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
34382 | if test $ac_cv_lib_dl_dlopen = yes; then | |
34383 | ||
34384 | cat >>confdefs.h <<\_ACEOF | |
34385 | #define HAVE_DLOPEN 1 | |
34386 | _ACEOF | |
34387 | ||
34388 | HAVE_DL_FUNCS=1 | |
34389 | DL_LINK=" -ldl$DL_LINK" | |
34390 | ||
34391 | else | |
34392 | ||
34393 | ||
34394 | for ac_func in shl_load | |
34395 | do | |
34396 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34397 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34398 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34399 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34401 | else | |
34402 | cat >conftest.$ac_ext <<_ACEOF | |
34403 | /* confdefs.h. */ | |
34404 | _ACEOF | |
34405 | cat confdefs.h >>conftest.$ac_ext | |
34406 | cat >>conftest.$ac_ext <<_ACEOF | |
34407 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34408 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34409 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34410 | #define $ac_func innocuous_$ac_func | |
34411 | ||
a848cd7e SC |
34412 | /* System header to define __stub macros and hopefully few prototypes, |
34413 | which can conflict with char $ac_func (); below. | |
34414 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34415 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34416 | |
a848cd7e SC |
34417 | #ifdef __STDC__ |
34418 | # include <limits.h> | |
34419 | #else | |
34420 | # include <assert.h> | |
34421 | #endif | |
ac1cb8d3 VS |
34422 | |
34423 | #undef $ac_func | |
34424 | ||
a848cd7e SC |
34425 | /* Override any gcc2 internal prototype to avoid an error. */ |
34426 | #ifdef __cplusplus | |
34427 | extern "C" | |
34428 | { | |
34429 | #endif | |
34430 | /* We use char because int might match the return type of a gcc2 | |
34431 | builtin and then its argument prototype would still apply. */ | |
34432 | char $ac_func (); | |
34433 | /* The GNU C library defines this for functions which it implements | |
34434 | to always fail with ENOSYS. Some functions are actually named | |
34435 | something starting with __ and the normal name is an alias. */ | |
34436 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34437 | choke me | |
34438 | #else | |
34439 | char (*f) () = $ac_func; | |
34440 | #endif | |
34441 | #ifdef __cplusplus | |
34442 | } | |
34443 | #endif | |
34444 | ||
34445 | int | |
34446 | main () | |
34447 | { | |
34448 | return f != $ac_func; | |
34449 | ; | |
34450 | return 0; | |
34451 | } | |
34452 | _ACEOF | |
34453 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34455 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34456 | ac_status=$? |
ac1cb8d3 VS |
34457 | grep -v '^ *+' conftest.er1 >conftest.err |
34458 | rm -f conftest.er1 | |
34459 | cat conftest.err >&5 | |
a848cd7e SC |
34460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34461 | (exit $ac_status); } && | |
89be85c2 VS |
34462 | { ac_try='test -z "$ac_c_werror_flag" |
34463 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34465 | (eval $ac_try) 2>&5 | |
34466 | ac_status=$? | |
34467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34468 | (exit $ac_status); }; } && | |
34469 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34471 | (eval $ac_try) 2>&5 | |
34472 | ac_status=$? | |
34473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34474 | (exit $ac_status); }; }; then | |
34475 | eval "$as_ac_var=yes" | |
34476 | else | |
34477 | echo "$as_me: failed program was:" >&5 | |
34478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34479 | ||
34480 | eval "$as_ac_var=no" | |
34481 | fi | |
ac1cb8d3 VS |
34482 | rm -f conftest.err conftest.$ac_objext \ |
34483 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34484 | fi |
34485 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34486 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34487 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34488 | cat >>confdefs.h <<_ACEOF | |
34489 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34490 | _ACEOF | |
34491 | ||
34492 | cat >>confdefs.h <<\_ACEOF | |
34493 | #define HAVE_SHL_LOAD 1 | |
34494 | _ACEOF | |
34495 | ||
34496 | HAVE_SHL_FUNCS=1 | |
34497 | ||
34498 | else | |
34499 | ||
34500 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
34501 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
34502 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
34503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34504 | else | |
34505 | ac_check_lib_save_LIBS=$LIBS | |
34506 | LIBS="-lshl_load $LIBS" | |
34507 | cat >conftest.$ac_ext <<_ACEOF | |
34508 | /* confdefs.h. */ | |
34509 | _ACEOF | |
34510 | cat confdefs.h >>conftest.$ac_ext | |
34511 | cat >>conftest.$ac_ext <<_ACEOF | |
34512 | /* end confdefs.h. */ | |
34513 | ||
34514 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34515 | #ifdef __cplusplus | |
34516 | extern "C" | |
34517 | #endif | |
34518 | /* We use char because int might match the return type of a gcc2 | |
34519 | builtin and then its argument prototype would still apply. */ | |
34520 | char dld (); | |
34521 | int | |
34522 | main () | |
34523 | { | |
34524 | dld (); | |
34525 | ; | |
34526 | return 0; | |
34527 | } | |
34528 | _ACEOF | |
34529 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34531 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34532 | ac_status=$? |
ac1cb8d3 VS |
34533 | grep -v '^ *+' conftest.er1 >conftest.err |
34534 | rm -f conftest.er1 | |
34535 | cat conftest.err >&5 | |
a848cd7e SC |
34536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34537 | (exit $ac_status); } && | |
89be85c2 VS |
34538 | { ac_try='test -z "$ac_c_werror_flag" |
34539 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34541 | (eval $ac_try) 2>&5 | |
34542 | ac_status=$? | |
34543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34544 | (exit $ac_status); }; } && | |
34545 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34547 | (eval $ac_try) 2>&5 | |
34548 | ac_status=$? | |
34549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34550 | (exit $ac_status); }; }; then | |
34551 | ac_cv_lib_shl_load_dld=yes | |
34552 | else | |
34553 | echo "$as_me: failed program was:" >&5 | |
34554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34555 | ||
34556 | ac_cv_lib_shl_load_dld=no | |
34557 | fi | |
ac1cb8d3 VS |
34558 | rm -f conftest.err conftest.$ac_objext \ |
34559 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34560 | LIBS=$ac_check_lib_save_LIBS |
34561 | fi | |
34562 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
34563 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
34564 | if test $ac_cv_lib_shl_load_dld = yes; then | |
34565 | ||
34566 | HAVE_SHL_FUNCS=1 | |
34567 | DL_LINK=" -ldld$DL_LINK" | |
34568 | ||
34569 | fi | |
34570 | ||
34571 | ||
34572 | fi | |
34573 | done | |
34574 | ||
34575 | ||
34576 | fi | |
34577 | ||
34578 | ||
34579 | fi | |
34580 | done | |
34581 | ||
34582 | ||
34583 | if test "$HAVE_DL_FUNCS" = 1; then | |
34584 | ||
34585 | for ac_func in dlerror | |
34586 | do | |
34587 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34588 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34589 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34590 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34592 | else | |
34593 | cat >conftest.$ac_ext <<_ACEOF | |
34594 | /* confdefs.h. */ | |
34595 | _ACEOF | |
34596 | cat confdefs.h >>conftest.$ac_ext | |
34597 | cat >>conftest.$ac_ext <<_ACEOF | |
34598 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34599 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34600 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34601 | #define $ac_func innocuous_$ac_func | |
34602 | ||
a848cd7e SC |
34603 | /* System header to define __stub macros and hopefully few prototypes, |
34604 | which can conflict with char $ac_func (); below. | |
34605 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34606 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34607 | |
a848cd7e SC |
34608 | #ifdef __STDC__ |
34609 | # include <limits.h> | |
34610 | #else | |
34611 | # include <assert.h> | |
34612 | #endif | |
ac1cb8d3 VS |
34613 | |
34614 | #undef $ac_func | |
34615 | ||
a848cd7e SC |
34616 | /* Override any gcc2 internal prototype to avoid an error. */ |
34617 | #ifdef __cplusplus | |
34618 | extern "C" | |
34619 | { | |
34620 | #endif | |
34621 | /* We use char because int might match the return type of a gcc2 | |
34622 | builtin and then its argument prototype would still apply. */ | |
34623 | char $ac_func (); | |
34624 | /* The GNU C library defines this for functions which it implements | |
34625 | to always fail with ENOSYS. Some functions are actually named | |
34626 | something starting with __ and the normal name is an alias. */ | |
34627 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34628 | choke me | |
34629 | #else | |
34630 | char (*f) () = $ac_func; | |
34631 | #endif | |
34632 | #ifdef __cplusplus | |
34633 | } | |
34634 | #endif | |
34635 | ||
34636 | int | |
34637 | main () | |
34638 | { | |
34639 | return f != $ac_func; | |
34640 | ; | |
34641 | return 0; | |
34642 | } | |
34643 | _ACEOF | |
34644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34646 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34647 | ac_status=$? |
ac1cb8d3 VS |
34648 | grep -v '^ *+' conftest.er1 >conftest.err |
34649 | rm -f conftest.er1 | |
34650 | cat conftest.err >&5 | |
a848cd7e SC |
34651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34652 | (exit $ac_status); } && | |
89be85c2 VS |
34653 | { ac_try='test -z "$ac_c_werror_flag" |
34654 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34656 | (eval $ac_try) 2>&5 | |
34657 | ac_status=$? | |
34658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34659 | (exit $ac_status); }; } && | |
34660 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34662 | (eval $ac_try) 2>&5 | |
34663 | ac_status=$? | |
34664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34665 | (exit $ac_status); }; }; then | |
34666 | eval "$as_ac_var=yes" | |
34667 | else | |
34668 | echo "$as_me: failed program was:" >&5 | |
34669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34670 | ||
34671 | eval "$as_ac_var=no" | |
34672 | fi | |
ac1cb8d3 VS |
34673 | rm -f conftest.err conftest.$ac_objext \ |
34674 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34675 | fi |
34676 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34677 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34678 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34679 | cat >>confdefs.h <<_ACEOF | |
34680 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34681 | _ACEOF | |
34682 | cat >>confdefs.h <<\_ACEOF | |
34683 | #define HAVE_DLERROR 1 | |
34684 | _ACEOF | |
34685 | ||
34686 | else | |
34687 | ||
34688 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
34689 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
34690 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
34691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34692 | else | |
34693 | ac_check_lib_save_LIBS=$LIBS | |
34694 | LIBS="-ldl $LIBS" | |
34695 | cat >conftest.$ac_ext <<_ACEOF | |
34696 | /* confdefs.h. */ | |
34697 | _ACEOF | |
34698 | cat confdefs.h >>conftest.$ac_ext | |
34699 | cat >>conftest.$ac_ext <<_ACEOF | |
34700 | /* end confdefs.h. */ | |
34701 | ||
34702 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34703 | #ifdef __cplusplus | |
34704 | extern "C" | |
34705 | #endif | |
34706 | /* We use char because int might match the return type of a gcc2 | |
34707 | builtin and then its argument prototype would still apply. */ | |
34708 | char dlerror (); | |
34709 | int | |
34710 | main () | |
34711 | { | |
34712 | dlerror (); | |
34713 | ; | |
34714 | return 0; | |
34715 | } | |
34716 | _ACEOF | |
34717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34719 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34720 | ac_status=$? |
ac1cb8d3 VS |
34721 | grep -v '^ *+' conftest.er1 >conftest.err |
34722 | rm -f conftest.er1 | |
34723 | cat conftest.err >&5 | |
a848cd7e SC |
34724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34725 | (exit $ac_status); } && | |
89be85c2 VS |
34726 | { ac_try='test -z "$ac_c_werror_flag" |
34727 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34729 | (eval $ac_try) 2>&5 | |
34730 | ac_status=$? | |
34731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34732 | (exit $ac_status); }; } && | |
34733 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34735 | (eval $ac_try) 2>&5 | |
34736 | ac_status=$? | |
34737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34738 | (exit $ac_status); }; }; then | |
34739 | ac_cv_lib_dl_dlerror=yes | |
34740 | else | |
34741 | echo "$as_me: failed program was:" >&5 | |
34742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34743 | ||
34744 | ac_cv_lib_dl_dlerror=no | |
34745 | fi | |
ac1cb8d3 VS |
34746 | rm -f conftest.err conftest.$ac_objext \ |
34747 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34748 | LIBS=$ac_check_lib_save_LIBS |
34749 | fi | |
34750 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
34751 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
34752 | if test $ac_cv_lib_dl_dlerror = yes; then | |
34753 | cat >>confdefs.h <<\_ACEOF | |
34754 | #define HAVE_DLERROR 1 | |
34755 | _ACEOF | |
34756 | ||
34757 | fi | |
34758 | ||
34759 | ||
34760 | ||
34761 | fi | |
34762 | done | |
34763 | ||
34764 | fi | |
34765 | fi | |
34766 | ||
34767 | if test "$HAVE_DL_FUNCS" = 0; then | |
34768 | if test "$HAVE_SHL_FUNCS" = 0; then | |
34769 | if test "$USE_UNIX" = 1; then | |
34770 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
34771 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
34772 | wxUSE_DYNAMIC_LOADER=no | |
34773 | wxUSE_DYNLIB_CLASS=no | |
34774 | else | |
34775 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
34776 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
34777 | fi | |
34778 | fi | |
34779 | fi | |
34780 | fi | |
34781 | fi | |
34782 | ||
34783 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
34784 | cat >>confdefs.h <<\_ACEOF | |
34785 | #define wxUSE_DYNAMIC_LOADER 1 | |
34786 | _ACEOF | |
34787 | ||
34788 | fi | |
34789 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34790 | cat >>confdefs.h <<\_ACEOF | |
34791 | #define wxUSE_DYNLIB_CLASS 1 | |
34792 | _ACEOF | |
34793 | ||
34794 | fi | |
34795 | ||
34796 | ||
34797 | ||
34798 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34799 | if test "$wxUSE_SHARED" = "no" ; then | |
34800 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
34801 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
34802 | wxUSE_PLUGINS=no | |
34803 | fi | |
34804 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
34805 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
34806 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
34807 | wxUSE_PLUGINS=no | |
34808 | fi | |
34809 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
34810 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
34811 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
34812 | wxUSE_PLUGINS=no | |
34813 | fi | |
34814 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34815 | cat >>confdefs.h <<\_ACEOF | |
34816 | #define wxUSE_PLUGINS 1 | |
34817 | _ACEOF | |
34818 | ||
34819 | fi | |
34820 | fi | |
34821 | ||
34822 | ||
34823 | if test "$wxUSE_STL" = "yes"; then | |
34824 | cat >>confdefs.h <<\_ACEOF | |
34825 | #define wxUSE_STL 1 | |
34826 | _ACEOF | |
34827 | ||
34828 | fi | |
34829 | ||
34830 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
34831 | cat >>confdefs.h <<\_ACEOF | |
34832 | #define wxUSE_APPLE_IEEE 1 | |
34833 | _ACEOF | |
34834 | ||
34835 | fi | |
34836 | ||
34837 | if test "$wxUSE_TIMER" = "yes"; then | |
34838 | cat >>confdefs.h <<\_ACEOF | |
34839 | #define wxUSE_TIMER 1 | |
34840 | _ACEOF | |
34841 | ||
34842 | fi | |
34843 | ||
34844 | WITH_PLUGIN_SDL=0 | |
34845 | if test "$wxUSE_SOUND" = "yes"; then | |
34846 | if test "$USE_UNIX" = "1" ; then | |
34847 | ||
34848 | for ac_header in sys/soundcard.h | |
34849 | do | |
34850 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
34851 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34852 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34853 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34854 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34856 | fi | |
34857 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34858 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34859 | else | |
34860 | # Is the header compilable? | |
34861 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34862 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34863 | cat >conftest.$ac_ext <<_ACEOF | |
34864 | /* confdefs.h. */ | |
34865 | _ACEOF | |
34866 | cat confdefs.h >>conftest.$ac_ext | |
34867 | cat >>conftest.$ac_ext <<_ACEOF | |
34868 | /* end confdefs.h. */ | |
34869 | $ac_includes_default | |
34870 | #include <$ac_header> | |
34871 | _ACEOF | |
34872 | rm -f conftest.$ac_objext | |
34873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34874 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34875 | ac_status=$? |
ac1cb8d3 VS |
34876 | grep -v '^ *+' conftest.er1 >conftest.err |
34877 | rm -f conftest.er1 | |
34878 | cat conftest.err >&5 | |
a848cd7e SC |
34879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34880 | (exit $ac_status); } && | |
89be85c2 VS |
34881 | { ac_try='test -z "$ac_c_werror_flag" |
34882 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34884 | (eval $ac_try) 2>&5 | |
34885 | ac_status=$? | |
34886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34887 | (exit $ac_status); }; } && | |
34888 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34890 | (eval $ac_try) 2>&5 | |
34891 | ac_status=$? | |
34892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34893 | (exit $ac_status); }; }; then | |
34894 | ac_header_compiler=yes | |
34895 | else | |
34896 | echo "$as_me: failed program was:" >&5 | |
34897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34898 | ||
34899 | ac_header_compiler=no | |
34900 | fi | |
ac1cb8d3 | 34901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34902 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34903 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34904 | ||
34905 | # Is the header present? | |
34906 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34907 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34908 | cat >conftest.$ac_ext <<_ACEOF | |
34909 | /* confdefs.h. */ | |
34910 | _ACEOF | |
34911 | cat confdefs.h >>conftest.$ac_ext | |
34912 | cat >>conftest.$ac_ext <<_ACEOF | |
34913 | /* end confdefs.h. */ | |
34914 | #include <$ac_header> | |
34915 | _ACEOF | |
34916 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34917 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34918 | ac_status=$? | |
34919 | grep -v '^ *+' conftest.er1 >conftest.err | |
34920 | rm -f conftest.er1 | |
34921 | cat conftest.err >&5 | |
34922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34923 | (exit $ac_status); } >/dev/null; then | |
34924 | if test -s conftest.err; then | |
34925 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34926 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34927 | else |
34928 | ac_cpp_err= | |
34929 | fi | |
34930 | else | |
34931 | ac_cpp_err=yes | |
34932 | fi | |
34933 | if test -z "$ac_cpp_err"; then | |
34934 | ac_header_preproc=yes | |
34935 | else | |
34936 | echo "$as_me: failed program was:" >&5 | |
34937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34938 | ||
34939 | ac_header_preproc=no | |
34940 | fi | |
34941 | rm -f conftest.err conftest.$ac_ext | |
34942 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34943 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34944 | ||
34945 | # So? What about this header? | |
ac1cb8d3 VS |
34946 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34947 | yes:no: ) | |
a848cd7e SC |
34948 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34949 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34950 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34951 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34952 | ac_header_preproc=yes | |
a848cd7e | 34953 | ;; |
ac1cb8d3 | 34954 | no:yes:* ) |
a848cd7e SC |
34955 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34956 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34957 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34958 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34959 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34960 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34961 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34962 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
34963 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34964 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
34965 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34966 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
34967 | ( |
34968 | cat <<\_ASBOX | |
ac1cb8d3 VS |
34969 | ## ----------------------------------------- ## |
34970 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
34971 | ## ----------------------------------------- ## | |
a848cd7e SC |
34972 | _ASBOX |
34973 | ) | | |
34974 | sed "s/^/$as_me: WARNING: /" >&2 | |
34975 | ;; | |
34976 | esac | |
34977 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34981 | else | |
ac1cb8d3 | 34982 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34983 | fi |
34984 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34985 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34986 | ||
34987 | fi | |
34988 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34989 | cat >>confdefs.h <<_ACEOF | |
34990 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34991 | _ACEOF | |
34992 | ||
34993 | fi | |
34994 | ||
34995 | done | |
34996 | ||
34997 | ||
34998 | if test "$wxUSE_LIBSDL" != "no"; then | |
34999 | ||
35000 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
35001 | if test "${with_sdl_prefix+set}" = set; then | |
35002 | withval="$with_sdl_prefix" | |
35003 | sdl_prefix="$withval" | |
35004 | else | |
35005 | sdl_prefix="" | |
35006 | fi; | |
35007 | ||
35008 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
35009 | if test "${with_sdl_exec_prefix+set}" = set; then | |
35010 | withval="$with_sdl_exec_prefix" | |
35011 | sdl_exec_prefix="$withval" | |
35012 | else | |
35013 | sdl_exec_prefix="" | |
35014 | fi; | |
35015 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
35016 | if test "${enable_sdltest+set}" = set; then | |
35017 | enableval="$enable_sdltest" | |
35018 | ||
35019 | else | |
35020 | enable_sdltest=yes | |
35021 | fi; | |
35022 | ||
35023 | if test x$sdl_exec_prefix != x ; then | |
35024 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
35025 | if test x${SDL_CONFIG+set} != xset ; then | |
35026 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
35027 | fi | |
35028 | fi | |
35029 | if test x$sdl_prefix != x ; then | |
35030 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
35031 | if test x${SDL_CONFIG+set} != xset ; then | |
35032 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
35033 | fi | |
35034 | fi | |
35035 | ||
35036 | ||
35037 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
35038 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
35039 | set dummy sdl-config; ac_word=$2 | |
35040 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35041 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35042 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
35043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35044 | else | |
35045 | case $SDL_CONFIG in | |
35046 | [\\/]* | ?:[\\/]*) | |
35047 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
35048 | ;; | |
35049 | *) | |
35050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35051 | for as_dir in $PATH | |
35052 | do | |
35053 | IFS=$as_save_IFS | |
35054 | test -z "$as_dir" && as_dir=. | |
35055 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35056 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35057 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
35058 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35059 | break 2 | |
35060 | fi | |
35061 | done | |
35062 | done | |
35063 | ||
35064 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
35065 | ;; | |
35066 | esac | |
35067 | fi | |
35068 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
35069 | ||
35070 | if test -n "$SDL_CONFIG"; then | |
35071 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
35072 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
35073 | else | |
35074 | echo "$as_me:$LINENO: result: no" >&5 | |
35075 | echo "${ECHO_T}no" >&6 | |
35076 | fi | |
35077 | ||
35078 | min_sdl_version=1.2.0 | |
35079 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
35080 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
35081 | no_sdl="" | |
35082 | if test "$SDL_CONFIG" = "no" ; then | |
35083 | no_sdl=yes | |
35084 | else | |
35085 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
35086 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
35087 | ||
35088 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
35089 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
35090 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
35091 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
35092 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
35093 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
35094 | if test "x$enable_sdltest" = "xyes" ; then | |
35095 | ac_save_CFLAGS="$CFLAGS" | |
35096 | ac_save_LIBS="$LIBS" | |
35097 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
35098 | LIBS="$LIBS $SDL_LIBS" | |
35099 | rm -f conf.sdltest | |
35100 | if test "$cross_compiling" = yes; then | |
35101 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
35102 | else | |
35103 | cat >conftest.$ac_ext <<_ACEOF | |
35104 | /* confdefs.h. */ | |
35105 | _ACEOF | |
35106 | cat confdefs.h >>conftest.$ac_ext | |
35107 | cat >>conftest.$ac_ext <<_ACEOF | |
35108 | /* end confdefs.h. */ | |
35109 | ||
35110 | #include <stdio.h> | |
35111 | #include <stdlib.h> | |
35112 | #include <string.h> | |
35113 | #include "SDL.h" | |
35114 | ||
35115 | char* | |
35116 | my_strdup (char *str) | |
35117 | { | |
35118 | char *new_str; | |
35119 | ||
35120 | if (str) | |
35121 | { | |
35122 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
35123 | strcpy (new_str, str); | |
35124 | } | |
35125 | else | |
35126 | new_str = NULL; | |
35127 | ||
35128 | return new_str; | |
35129 | } | |
35130 | ||
35131 | int main (int argc, char *argv[]) | |
35132 | { | |
35133 | int major, minor, micro; | |
35134 | char *tmp_version; | |
35135 | ||
35136 | /* This hangs on some systems (?) | |
35137 | system ("touch conf.sdltest"); | |
35138 | */ | |
35139 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
35140 | ||
35141 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
35142 | tmp_version = my_strdup("$min_sdl_version"); | |
35143 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
35144 | printf("%s, bad version string\n", "$min_sdl_version"); | |
35145 | exit(1); | |
35146 | } | |
35147 | ||
35148 | if (($sdl_major_version > major) || | |
35149 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
35150 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
35151 | { | |
35152 | return 0; | |
35153 | } | |
35154 | else | |
35155 | { | |
35156 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
35157 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
35158 | printf("*** best to upgrade to the required version.\n"); | |
35159 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
35160 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
35161 | printf("*** config.cache before re-running configure\n"); | |
35162 | return 1; | |
35163 | } | |
35164 | } | |
35165 | ||
35166 | ||
35167 | _ACEOF | |
35168 | rm -f conftest$ac_exeext | |
35169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35170 | (eval $ac_link) 2>&5 | |
35171 | ac_status=$? | |
35172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35173 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
35174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35175 | (eval $ac_try) 2>&5 | |
35176 | ac_status=$? | |
35177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35178 | (exit $ac_status); }; }; then | |
35179 | : | |
35180 | else | |
35181 | echo "$as_me: program exited with status $ac_status" >&5 | |
35182 | echo "$as_me: failed program was:" >&5 | |
35183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35184 | ||
35185 | ( exit $ac_status ) | |
35186 | no_sdl=yes | |
35187 | fi | |
ac1cb8d3 | 35188 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35189 | fi |
35190 | CFLAGS="$ac_save_CFLAGS" | |
35191 | LIBS="$ac_save_LIBS" | |
35192 | fi | |
35193 | fi | |
35194 | if test "x$no_sdl" = x ; then | |
35195 | echo "$as_me:$LINENO: result: yes" >&5 | |
35196 | echo "${ECHO_T}yes" >&6 | |
35197 | ||
35198 | EXTRALIBS_SDL="$SDL_LIBS" | |
35199 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
35200 | cat >>confdefs.h <<\_ACEOF | |
35201 | #define wxUSE_LIBSDL 1 | |
35202 | _ACEOF | |
35203 | ||
35204 | ||
35205 | else | |
35206 | echo "$as_me:$LINENO: result: no" >&5 | |
35207 | echo "${ECHO_T}no" >&6 | |
35208 | if test "$SDL_CONFIG" = "no" ; then | |
35209 | echo "*** The sdl-config script installed by SDL could not be found" | |
35210 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
35211 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
35212 | echo "*** full path to sdl-config." | |
35213 | else | |
35214 | if test -f conf.sdltest ; then | |
35215 | : | |
35216 | else | |
35217 | echo "*** Could not run SDL test program, checking why..." | |
35218 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
35219 | LIBS="$LIBS $SDL_LIBS" | |
35220 | cat >conftest.$ac_ext <<_ACEOF | |
35221 | /* confdefs.h. */ | |
35222 | _ACEOF | |
35223 | cat confdefs.h >>conftest.$ac_ext | |
35224 | cat >>conftest.$ac_ext <<_ACEOF | |
35225 | /* end confdefs.h. */ | |
35226 | ||
35227 | #include <stdio.h> | |
35228 | #include "SDL.h" | |
35229 | ||
35230 | int main(int argc, char *argv[]) | |
35231 | { return 0; } | |
35232 | #undef main | |
35233 | #define main K_and_R_C_main | |
35234 | ||
35235 | int | |
35236 | main () | |
35237 | { | |
35238 | return 0; | |
35239 | ; | |
35240 | return 0; | |
35241 | } | |
35242 | _ACEOF | |
35243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35245 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35246 | ac_status=$? |
ac1cb8d3 VS |
35247 | grep -v '^ *+' conftest.er1 >conftest.err |
35248 | rm -f conftest.er1 | |
35249 | cat conftest.err >&5 | |
a848cd7e SC |
35250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35251 | (exit $ac_status); } && | |
89be85c2 VS |
35252 | { ac_try='test -z "$ac_c_werror_flag" |
35253 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35255 | (eval $ac_try) 2>&5 | |
35256 | ac_status=$? | |
35257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35258 | (exit $ac_status); }; } && | |
35259 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35261 | (eval $ac_try) 2>&5 | |
35262 | ac_status=$? | |
35263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35264 | (exit $ac_status); }; }; then | |
35265 | echo "*** The test program compiled, but did not run. This usually means" | |
35266 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
35267 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
35268 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
35269 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
35270 | echo "*** is required on your system" | |
35271 | echo "***" | |
35272 | echo "*** If you have an old version installed, it is best to remove it, although" | |
35273 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
35274 | else | |
35275 | echo "$as_me: failed program was:" >&5 | |
35276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35277 | ||
35278 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
35279 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
35280 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
35281 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
35282 | fi | |
ac1cb8d3 VS |
35283 | rm -f conftest.err conftest.$ac_objext \ |
35284 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35285 | CFLAGS="$ac_save_CFLAGS" |
35286 | LIBS="$ac_save_LIBS" | |
35287 | fi | |
35288 | fi | |
35289 | SDL_CFLAGS="" | |
35290 | SDL_LIBS="" | |
35291 | wxUSE_LIBSDL="no" | |
35292 | fi | |
35293 | ||
35294 | ||
35295 | rm -f conf.sdltest | |
35296 | ||
35297 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
35298 | WITH_PLUGIN_SDL=1 | |
35299 | fi | |
35300 | fi | |
35301 | fi | |
35302 | ||
35303 | cat >>confdefs.h <<\_ACEOF | |
35304 | #define wxUSE_SOUND 1 | |
35305 | _ACEOF | |
35306 | ||
35307 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
35308 | fi | |
35309 | ||
d1c38808 VZ |
35310 | if test "$WXGTK20" = 1; then |
35311 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
35312 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
35313 | ||
35314 | ||
35315 | succeeded=no | |
35316 | ||
35317 | if test -z "$PKG_CONFIG"; then | |
35318 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
35319 | set dummy pkg-config; ac_word=$2 | |
35320 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35321 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35322 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
35323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35324 | else | |
35325 | case $PKG_CONFIG in | |
35326 | [\\/]* | ?:[\\/]*) | |
35327 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
35328 | ;; | |
35329 | *) | |
35330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35331 | for as_dir in $PATH | |
35332 | do | |
35333 | IFS=$as_save_IFS | |
35334 | test -z "$as_dir" && as_dir=. | |
35335 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35336 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35337 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
35338 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35339 | break 2 | |
35340 | fi | |
35341 | done | |
35342 | done | |
35343 | ||
35344 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
35345 | ;; | |
35346 | esac | |
35347 | fi | |
35348 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
35349 | ||
35350 | if test -n "$PKG_CONFIG"; then | |
35351 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
35352 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
35353 | else | |
35354 | echo "$as_me:$LINENO: result: no" >&5 | |
35355 | echo "${ECHO_T}no" >&6 | |
35356 | fi | |
35357 | ||
35358 | fi | |
35359 | ||
35360 | if test "$PKG_CONFIG" = "no" ; then | |
35361 | echo "*** The pkg-config script could not be found. Make sure it is" | |
35362 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
35363 | echo "*** to the full path to pkg-config." | |
35364 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
35365 | else | |
35366 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
35367 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
35368 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
35369 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 35370 | |
ffa762ff | 35371 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
35372 | echo "$as_me:$LINENO: result: yes" >&5 |
35373 | echo "${ECHO_T}yes" >&6 | |
35374 | succeeded=yes | |
35375 | ||
35376 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
35377 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 35378 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35379 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
35380 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
35381 | ||
35382 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
35383 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 35384 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35385 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
35386 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
35387 | else | |
35388 | LIBGNOMEPRINTUI_CFLAGS="" | |
35389 | LIBGNOMEPRINTUI_LIBS="" | |
35390 | ## If we have a custom action on failure, don't print errors, but | |
35391 | ## do set a variable so people can do so. | |
ffa762ff | 35392 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35393 | |
35394 | fi | |
35395 | ||
35396 | ||
35397 | ||
35398 | else | |
35399 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
35400 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
35401 | fi | |
35402 | fi | |
35403 | ||
35404 | if test $succeeded = yes; then | |
35405 | ||
d1c38808 VZ |
35406 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
35407 | cat >>confdefs.h <<\_ACEOF | |
35408 | #define wxUSE_LIBGNOMEPRINT 1 | |
35409 | _ACEOF | |
35410 | ||
35411 | ||
35412 | else | |
35413 | ||
35414 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
35415 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
35416 | wxUSE_LIBGNOMEPRINT="no" | |
35417 | ||
35418 | ||
35419 | fi | |
35420 | ||
35421 | fi | |
35422 | fi | |
35423 | fi | |
35424 | ||
35425 | ||
a848cd7e SC |
35426 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
35427 | cat >>confdefs.h <<\_ACEOF | |
35428 | #define wxUSE_CMDLINE_PARSER 1 | |
35429 | _ACEOF | |
35430 | ||
35431 | fi | |
35432 | ||
35433 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
35434 | cat >>confdefs.h <<\_ACEOF | |
35435 | #define wxUSE_STOPWATCH 1 | |
35436 | _ACEOF | |
35437 | ||
35438 | fi | |
35439 | ||
35440 | if test "$wxUSE_DATETIME" = "yes"; then | |
35441 | cat >>confdefs.h <<\_ACEOF | |
35442 | #define wxUSE_DATETIME 1 | |
35443 | _ACEOF | |
35444 | ||
35445 | fi | |
35446 | ||
35447 | if test "$wxUSE_FILE" = "yes"; then | |
35448 | cat >>confdefs.h <<\_ACEOF | |
35449 | #define wxUSE_FILE 1 | |
35450 | _ACEOF | |
35451 | ||
35452 | fi | |
35453 | ||
35454 | if test "$wxUSE_FFILE" = "yes"; then | |
35455 | cat >>confdefs.h <<\_ACEOF | |
35456 | #define wxUSE_FFILE 1 | |
35457 | _ACEOF | |
35458 | ||
35459 | fi | |
35460 | ||
35461 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
35462 | cat >>confdefs.h <<\_ACEOF | |
35463 | #define wxUSE_FILESYSTEM 1 | |
35464 | _ACEOF | |
35465 | ||
35466 | fi | |
35467 | ||
35468 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
35469 | cat >>confdefs.h <<\_ACEOF | |
35470 | #define wxUSE_FS_ZIP 1 | |
35471 | _ACEOF | |
35472 | ||
35473 | fi | |
35474 | ||
9e8e867f | 35475 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 35476 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 35477 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
35478 | _ACEOF |
35479 | ||
35480 | fi | |
35481 | ||
35482 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 35483 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
35484 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
35485 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
35486 | elif test "$wxUSE_ZLIB" = "no"; then | |
35487 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
35488 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
35489 | else | |
35490 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
35491 | #define wxUSE_ZIPSTREAM 1 |
35492 | _ACEOF | |
35493 | ||
81f90336 | 35494 | fi |
a848cd7e SC |
35495 | fi |
35496 | ||
a848cd7e SC |
35497 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
35498 | cat >>confdefs.h <<\_ACEOF | |
35499 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
35500 | _ACEOF | |
35501 | ||
35502 | fi | |
35503 | ||
eaff0f0d VZ |
35504 | if test "$wxUSE_STACKWALKER" = "yes"; then |
35505 | cat >>confdefs.h <<\_ACEOF | |
35506 | #define wxUSE_STACKWALKER 1 | |
35507 | _ACEOF | |
35508 | ||
35509 | fi | |
35510 | ||
a848cd7e SC |
35511 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
35512 | cat >>confdefs.h <<\_ACEOF | |
35513 | #define wxUSE_SNGLINST_CHECKER 1 | |
35514 | _ACEOF | |
35515 | ||
35516 | fi | |
35517 | ||
35518 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
35519 | cat >>confdefs.h <<\_ACEOF | |
35520 | #define wxUSE_BUSYINFO 1 | |
35521 | _ACEOF | |
35522 | ||
35523 | fi | |
35524 | ||
35525 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
35526 | cat >>confdefs.h <<\_ACEOF | |
35527 | #define wxUSE_STD_IOSTREAM 1 | |
35528 | _ACEOF | |
35529 | ||
35530 | fi | |
35531 | ||
35532 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
35533 | cat >>confdefs.h <<\_ACEOF | |
35534 | #define wxUSE_TEXTBUFFER 1 | |
35535 | _ACEOF | |
35536 | ||
35537 | fi | |
35538 | ||
35539 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
35540 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
35541 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
35542 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
35543 | else | |
35544 | cat >>confdefs.h <<\_ACEOF | |
35545 | #define wxUSE_TEXTFILE 1 | |
35546 | _ACEOF | |
35547 | ||
35548 | fi | |
35549 | fi | |
35550 | ||
35551 | if test "$wxUSE_CONFIG" = "yes" ; then | |
35552 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
35553 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
35554 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
35555 | else | |
35556 | cat >>confdefs.h <<\_ACEOF | |
35557 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
35558 | _ACEOF |
35559 | ||
35560 | cat >>confdefs.h <<\_ACEOF | |
35561 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
35562 | _ACEOF |
35563 | ||
35564 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
35565 | fi | |
35566 | fi | |
35567 | ||
35568 | if test "$wxUSE_INTL" = "yes" ; then | |
35569 | if test "$wxUSE_FILE" != "yes"; then | |
35570 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
35571 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
35572 | else | |
35573 | cat >>confdefs.h <<\_ACEOF | |
35574 | #define wxUSE_INTL 1 | |
35575 | _ACEOF | |
35576 | ||
35577 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
35578 | GUIDIST="$GUIDIST INTL_DIST" | |
35579 | fi | |
35580 | fi | |
35581 | ||
35582 | if test "$wxUSE_LOG" = "yes"; then | |
35583 | cat >>confdefs.h <<\_ACEOF | |
35584 | #define wxUSE_LOG 1 | |
35585 | _ACEOF | |
35586 | ||
35587 | ||
35588 | if test "$wxUSE_LOGGUI" = "yes"; then | |
35589 | cat >>confdefs.h <<\_ACEOF | |
35590 | #define wxUSE_LOGGUI 1 | |
35591 | _ACEOF | |
35592 | ||
35593 | fi | |
35594 | ||
35595 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
35596 | cat >>confdefs.h <<\_ACEOF | |
35597 | #define wxUSE_LOGWINDOW 1 | |
35598 | _ACEOF | |
35599 | ||
35600 | fi | |
35601 | ||
35602 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
35603 | cat >>confdefs.h <<\_ACEOF | |
35604 | #define wxUSE_LOG_DIALOG 1 | |
35605 | _ACEOF | |
35606 | ||
35607 | fi | |
35608 | fi | |
35609 | ||
35610 | if test "$wxUSE_LONGLONG" = "yes"; then | |
35611 | cat >>confdefs.h <<\_ACEOF | |
35612 | #define wxUSE_LONGLONG 1 | |
35613 | _ACEOF | |
35614 | ||
35615 | fi | |
35616 | ||
35617 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
35618 | cat >>confdefs.h <<\_ACEOF | |
35619 | #define wxUSE_GEOMETRY 1 | |
35620 | _ACEOF | |
35621 | ||
35622 | fi | |
35623 | ||
a848cd7e SC |
35624 | if test "$wxUSE_STREAMS" = "yes" ; then |
35625 | cat >>confdefs.h <<\_ACEOF | |
35626 | #define wxUSE_STREAMS 1 | |
35627 | _ACEOF | |
35628 | ||
35629 | fi | |
35630 | ||
35631 | ||
35632 | if test "$wxUSE_DATETIME" = "yes"; then | |
35633 | ||
35634 | for ac_func in strptime | |
35635 | do | |
35636 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35637 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35638 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35639 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35641 | else | |
35642 | cat >conftest.$ac_ext <<_ACEOF | |
35643 | /* confdefs.h. */ | |
35644 | _ACEOF | |
35645 | cat confdefs.h >>conftest.$ac_ext | |
35646 | cat >>conftest.$ac_ext <<_ACEOF | |
35647 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35648 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35649 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35650 | #define $ac_func innocuous_$ac_func | |
35651 | ||
a848cd7e SC |
35652 | /* System header to define __stub macros and hopefully few prototypes, |
35653 | which can conflict with char $ac_func (); below. | |
35654 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35655 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35656 | |
a848cd7e SC |
35657 | #ifdef __STDC__ |
35658 | # include <limits.h> | |
35659 | #else | |
35660 | # include <assert.h> | |
35661 | #endif | |
ac1cb8d3 VS |
35662 | |
35663 | #undef $ac_func | |
35664 | ||
a848cd7e SC |
35665 | /* Override any gcc2 internal prototype to avoid an error. */ |
35666 | #ifdef __cplusplus | |
35667 | extern "C" | |
35668 | { | |
35669 | #endif | |
35670 | /* We use char because int might match the return type of a gcc2 | |
35671 | builtin and then its argument prototype would still apply. */ | |
35672 | char $ac_func (); | |
35673 | /* The GNU C library defines this for functions which it implements | |
35674 | to always fail with ENOSYS. Some functions are actually named | |
35675 | something starting with __ and the normal name is an alias. */ | |
35676 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35677 | choke me | |
35678 | #else | |
35679 | char (*f) () = $ac_func; | |
35680 | #endif | |
35681 | #ifdef __cplusplus | |
35682 | } | |
35683 | #endif | |
35684 | ||
35685 | int | |
35686 | main () | |
35687 | { | |
35688 | return f != $ac_func; | |
35689 | ; | |
35690 | return 0; | |
35691 | } | |
35692 | _ACEOF | |
35693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35695 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35696 | ac_status=$? |
ac1cb8d3 VS |
35697 | grep -v '^ *+' conftest.er1 >conftest.err |
35698 | rm -f conftest.er1 | |
35699 | cat conftest.err >&5 | |
a848cd7e SC |
35700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35701 | (exit $ac_status); } && | |
89be85c2 VS |
35702 | { ac_try='test -z "$ac_c_werror_flag" |
35703 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35705 | (eval $ac_try) 2>&5 | |
35706 | ac_status=$? | |
35707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35708 | (exit $ac_status); }; } && | |
35709 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35711 | (eval $ac_try) 2>&5 | |
35712 | ac_status=$? | |
35713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35714 | (exit $ac_status); }; }; then | |
35715 | eval "$as_ac_var=yes" | |
35716 | else | |
35717 | echo "$as_me: failed program was:" >&5 | |
35718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35719 | ||
35720 | eval "$as_ac_var=no" | |
35721 | fi | |
ac1cb8d3 VS |
35722 | rm -f conftest.err conftest.$ac_objext \ |
35723 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35724 | fi |
35725 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35726 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35727 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35728 | cat >>confdefs.h <<_ACEOF | |
35729 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35730 | _ACEOF | |
35731 | ||
35732 | fi | |
35733 | done | |
35734 | ||
35735 | ||
35736 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
35737 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
35738 | if test "${wx_cv_var_timezone+set}" = set; then | |
35739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35740 | else | |
35741 | ||
35742 | cat >conftest.$ac_ext <<_ACEOF | |
35743 | /* confdefs.h. */ | |
35744 | _ACEOF | |
35745 | cat confdefs.h >>conftest.$ac_ext | |
35746 | cat >>conftest.$ac_ext <<_ACEOF | |
35747 | /* end confdefs.h. */ | |
35748 | ||
35749 | #include <time.h> | |
35750 | ||
35751 | int | |
35752 | main () | |
35753 | { | |
35754 | ||
35755 | int tz; | |
35756 | tz = timezone; | |
35757 | ||
35758 | ; | |
35759 | return 0; | |
35760 | } | |
35761 | _ACEOF | |
35762 | rm -f conftest.$ac_objext | |
35763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35764 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35765 | ac_status=$? |
ac1cb8d3 VS |
35766 | grep -v '^ *+' conftest.er1 >conftest.err |
35767 | rm -f conftest.er1 | |
35768 | cat conftest.err >&5 | |
a848cd7e SC |
35769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35770 | (exit $ac_status); } && | |
89be85c2 VS |
35771 | { ac_try='test -z "$ac_c_werror_flag" |
35772 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35774 | (eval $ac_try) 2>&5 | |
35775 | ac_status=$? | |
35776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35777 | (exit $ac_status); }; } && | |
35778 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35780 | (eval $ac_try) 2>&5 | |
35781 | ac_status=$? | |
35782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35783 | (exit $ac_status); }; }; then | |
35784 | ||
35785 | wx_cv_var_timezone=timezone | |
35786 | ||
35787 | else | |
35788 | echo "$as_me: failed program was:" >&5 | |
35789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35790 | ||
35791 | ||
35792 | cat >conftest.$ac_ext <<_ACEOF | |
35793 | /* confdefs.h. */ | |
35794 | _ACEOF | |
35795 | cat confdefs.h >>conftest.$ac_ext | |
35796 | cat >>conftest.$ac_ext <<_ACEOF | |
35797 | /* end confdefs.h. */ | |
35798 | ||
35799 | #include <time.h> | |
35800 | ||
35801 | int | |
35802 | main () | |
35803 | { | |
35804 | ||
35805 | int tz; | |
35806 | tz = _timezone; | |
35807 | ||
35808 | ; | |
35809 | return 0; | |
35810 | } | |
35811 | _ACEOF | |
35812 | rm -f conftest.$ac_objext | |
35813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35814 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35815 | ac_status=$? |
ac1cb8d3 VS |
35816 | grep -v '^ *+' conftest.er1 >conftest.err |
35817 | rm -f conftest.er1 | |
35818 | cat conftest.err >&5 | |
a848cd7e SC |
35819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35820 | (exit $ac_status); } && | |
89be85c2 VS |
35821 | { ac_try='test -z "$ac_c_werror_flag" |
35822 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35824 | (eval $ac_try) 2>&5 | |
35825 | ac_status=$? | |
35826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35827 | (exit $ac_status); }; } && | |
35828 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35830 | (eval $ac_try) 2>&5 | |
35831 | ac_status=$? | |
35832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35833 | (exit $ac_status); }; }; then | |
35834 | ||
35835 | wx_cv_var_timezone=_timezone | |
35836 | ||
35837 | else | |
35838 | echo "$as_me: failed program was:" >&5 | |
35839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35840 | ||
35841 | ||
35842 | cat >conftest.$ac_ext <<_ACEOF | |
35843 | /* confdefs.h. */ | |
35844 | _ACEOF | |
35845 | cat confdefs.h >>conftest.$ac_ext | |
35846 | cat >>conftest.$ac_ext <<_ACEOF | |
35847 | /* end confdefs.h. */ | |
35848 | ||
35849 | #include <time.h> | |
35850 | ||
35851 | int | |
35852 | main () | |
35853 | { | |
35854 | ||
35855 | int tz; | |
35856 | tz = __timezone; | |
35857 | ||
35858 | ; | |
35859 | return 0; | |
35860 | } | |
35861 | _ACEOF | |
35862 | rm -f conftest.$ac_objext | |
35863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35864 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35865 | ac_status=$? |
ac1cb8d3 VS |
35866 | grep -v '^ *+' conftest.er1 >conftest.err |
35867 | rm -f conftest.er1 | |
35868 | cat conftest.err >&5 | |
a848cd7e SC |
35869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35870 | (exit $ac_status); } && | |
89be85c2 VS |
35871 | { ac_try='test -z "$ac_c_werror_flag" |
35872 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35874 | (eval $ac_try) 2>&5 | |
35875 | ac_status=$? | |
35876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35877 | (exit $ac_status); }; } && | |
35878 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35880 | (eval $ac_try) 2>&5 | |
35881 | ac_status=$? | |
35882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35883 | (exit $ac_status); }; }; then | |
35884 | ||
35885 | wx_cv_var_timezone=__timezone | |
35886 | ||
35887 | else | |
35888 | echo "$as_me: failed program was:" >&5 | |
35889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35890 | ||
35891 | ||
35892 | if test "$USE_DOS" = 0 ; then | |
35893 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
35894 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
35895 | fi | |
35896 | ||
35897 | ||
35898 | fi | |
ac1cb8d3 | 35899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35900 | |
35901 | ||
35902 | fi | |
ac1cb8d3 | 35903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35904 | |
35905 | ||
35906 | fi | |
ac1cb8d3 | 35907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35908 | |
35909 | ||
35910 | fi | |
35911 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
35912 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
35913 | ||
35914 | if test "x$wx_cv_var_timezone" != x ; then | |
35915 | cat >>confdefs.h <<_ACEOF | |
35916 | #define WX_TIMEZONE $wx_cv_var_timezone | |
35917 | _ACEOF | |
35918 | ||
35919 | fi | |
35920 | ||
35921 | ||
35922 | for ac_func in localtime | |
35923 | do | |
35924 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35925 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35926 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35927 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35929 | else | |
35930 | cat >conftest.$ac_ext <<_ACEOF | |
35931 | /* confdefs.h. */ | |
35932 | _ACEOF | |
35933 | cat confdefs.h >>conftest.$ac_ext | |
35934 | cat >>conftest.$ac_ext <<_ACEOF | |
35935 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35936 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35937 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35938 | #define $ac_func innocuous_$ac_func | |
35939 | ||
a848cd7e SC |
35940 | /* System header to define __stub macros and hopefully few prototypes, |
35941 | which can conflict with char $ac_func (); below. | |
35942 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35943 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35944 | |
a848cd7e SC |
35945 | #ifdef __STDC__ |
35946 | # include <limits.h> | |
35947 | #else | |
35948 | # include <assert.h> | |
35949 | #endif | |
ac1cb8d3 VS |
35950 | |
35951 | #undef $ac_func | |
35952 | ||
a848cd7e SC |
35953 | /* Override any gcc2 internal prototype to avoid an error. */ |
35954 | #ifdef __cplusplus | |
35955 | extern "C" | |
35956 | { | |
35957 | #endif | |
35958 | /* We use char because int might match the return type of a gcc2 | |
35959 | builtin and then its argument prototype would still apply. */ | |
35960 | char $ac_func (); | |
35961 | /* The GNU C library defines this for functions which it implements | |
35962 | to always fail with ENOSYS. Some functions are actually named | |
35963 | something starting with __ and the normal name is an alias. */ | |
35964 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35965 | choke me | |
35966 | #else | |
35967 | char (*f) () = $ac_func; | |
35968 | #endif | |
35969 | #ifdef __cplusplus | |
35970 | } | |
35971 | #endif | |
35972 | ||
35973 | int | |
35974 | main () | |
35975 | { | |
35976 | return f != $ac_func; | |
35977 | ; | |
35978 | return 0; | |
35979 | } | |
35980 | _ACEOF | |
35981 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35983 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35984 | ac_status=$? |
ac1cb8d3 VS |
35985 | grep -v '^ *+' conftest.er1 >conftest.err |
35986 | rm -f conftest.er1 | |
35987 | cat conftest.err >&5 | |
a848cd7e SC |
35988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35989 | (exit $ac_status); } && | |
89be85c2 VS |
35990 | { ac_try='test -z "$ac_c_werror_flag" |
35991 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35993 | (eval $ac_try) 2>&5 | |
35994 | ac_status=$? | |
35995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35996 | (exit $ac_status); }; } && | |
35997 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35999 | (eval $ac_try) 2>&5 | |
36000 | ac_status=$? | |
36001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36002 | (exit $ac_status); }; }; then | |
36003 | eval "$as_ac_var=yes" | |
36004 | else | |
36005 | echo "$as_me: failed program was:" >&5 | |
36006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36007 | ||
36008 | eval "$as_ac_var=no" | |
36009 | fi | |
ac1cb8d3 VS |
36010 | rm -f conftest.err conftest.$ac_objext \ |
36011 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36012 | fi |
36013 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36014 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36015 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36016 | cat >>confdefs.h <<_ACEOF | |
36017 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36018 | _ACEOF | |
36019 | ||
36020 | fi | |
36021 | done | |
36022 | ||
36023 | ||
36024 | if test "$ac_cv_func_localtime" = "yes"; then | |
36025 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
36026 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
36027 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
36028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36029 | else | |
36030 | ||
36031 | cat >conftest.$ac_ext <<_ACEOF | |
36032 | /* confdefs.h. */ | |
36033 | _ACEOF | |
36034 | cat confdefs.h >>conftest.$ac_ext | |
36035 | cat >>conftest.$ac_ext <<_ACEOF | |
36036 | /* end confdefs.h. */ | |
36037 | ||
36038 | #include <time.h> | |
36039 | ||
36040 | int | |
36041 | main () | |
36042 | { | |
36043 | ||
36044 | struct tm tm; | |
36045 | tm.tm_gmtoff++; | |
36046 | ||
36047 | ; | |
36048 | return 0; | |
36049 | } | |
36050 | _ACEOF | |
36051 | rm -f conftest.$ac_objext | |
36052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36053 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36054 | ac_status=$? |
ac1cb8d3 VS |
36055 | grep -v '^ *+' conftest.er1 >conftest.err |
36056 | rm -f conftest.er1 | |
36057 | cat conftest.err >&5 | |
a848cd7e SC |
36058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36059 | (exit $ac_status); } && | |
89be85c2 VS |
36060 | { ac_try='test -z "$ac_c_werror_flag" |
36061 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36063 | (eval $ac_try) 2>&5 | |
36064 | ac_status=$? | |
36065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36066 | (exit $ac_status); }; } && | |
36067 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36069 | (eval $ac_try) 2>&5 | |
36070 | ac_status=$? | |
36071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36072 | (exit $ac_status); }; }; then | |
36073 | ||
36074 | wx_cv_struct_tm_has_gmtoff=yes | |
36075 | ||
36076 | else | |
36077 | echo "$as_me: failed program was:" >&5 | |
36078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36079 | ||
36080 | wx_cv_struct_tm_has_gmtoff=no | |
36081 | ||
36082 | fi | |
ac1cb8d3 | 36083 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36084 | |
36085 | fi | |
36086 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
36087 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
36088 | fi | |
36089 | ||
36090 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
36091 | cat >>confdefs.h <<\_ACEOF | |
36092 | #define WX_GMTOFF_IN_TM 1 | |
36093 | _ACEOF | |
36094 | ||
36095 | fi | |
36096 | ||
36097 | ||
36098 | ||
36099 | for ac_func in gettimeofday ftime | |
36100 | do | |
36101 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36102 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36103 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36104 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36106 | else | |
36107 | cat >conftest.$ac_ext <<_ACEOF | |
36108 | /* confdefs.h. */ | |
36109 | _ACEOF | |
36110 | cat confdefs.h >>conftest.$ac_ext | |
36111 | cat >>conftest.$ac_ext <<_ACEOF | |
36112 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36113 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36114 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36115 | #define $ac_func innocuous_$ac_func | |
36116 | ||
a848cd7e SC |
36117 | /* System header to define __stub macros and hopefully few prototypes, |
36118 | which can conflict with char $ac_func (); below. | |
36119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36120 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36121 | |
a848cd7e SC |
36122 | #ifdef __STDC__ |
36123 | # include <limits.h> | |
36124 | #else | |
36125 | # include <assert.h> | |
36126 | #endif | |
ac1cb8d3 VS |
36127 | |
36128 | #undef $ac_func | |
36129 | ||
a848cd7e SC |
36130 | /* Override any gcc2 internal prototype to avoid an error. */ |
36131 | #ifdef __cplusplus | |
36132 | extern "C" | |
36133 | { | |
36134 | #endif | |
36135 | /* We use char because int might match the return type of a gcc2 | |
36136 | builtin and then its argument prototype would still apply. */ | |
36137 | char $ac_func (); | |
36138 | /* The GNU C library defines this for functions which it implements | |
36139 | to always fail with ENOSYS. Some functions are actually named | |
36140 | something starting with __ and the normal name is an alias. */ | |
36141 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36142 | choke me | |
36143 | #else | |
36144 | char (*f) () = $ac_func; | |
36145 | #endif | |
36146 | #ifdef __cplusplus | |
36147 | } | |
36148 | #endif | |
36149 | ||
36150 | int | |
36151 | main () | |
36152 | { | |
36153 | return f != $ac_func; | |
36154 | ; | |
36155 | return 0; | |
36156 | } | |
36157 | _ACEOF | |
36158 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36160 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36161 | ac_status=$? |
ac1cb8d3 VS |
36162 | grep -v '^ *+' conftest.er1 >conftest.err |
36163 | rm -f conftest.er1 | |
36164 | cat conftest.err >&5 | |
a848cd7e SC |
36165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36166 | (exit $ac_status); } && | |
89be85c2 VS |
36167 | { ac_try='test -z "$ac_c_werror_flag" |
36168 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36170 | (eval $ac_try) 2>&5 | |
36171 | ac_status=$? | |
36172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36173 | (exit $ac_status); }; } && | |
36174 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36176 | (eval $ac_try) 2>&5 | |
36177 | ac_status=$? | |
36178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36179 | (exit $ac_status); }; }; then | |
36180 | eval "$as_ac_var=yes" | |
36181 | else | |
36182 | echo "$as_me: failed program was:" >&5 | |
36183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36184 | ||
36185 | eval "$as_ac_var=no" | |
36186 | fi | |
ac1cb8d3 VS |
36187 | rm -f conftest.err conftest.$ac_objext \ |
36188 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36189 | fi |
36190 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36191 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36192 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36193 | cat >>confdefs.h <<_ACEOF | |
36194 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36195 | _ACEOF | |
36196 | break | |
36197 | fi | |
36198 | done | |
36199 | ||
36200 | ||
36201 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
36202 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
36203 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
36204 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
36205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36206 | else | |
36207 | ||
36208 | ||
36209 | ||
36210 | ac_ext=cc | |
36211 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36212 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36213 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36214 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36215 | ||
36216 | ||
36217 | cat >conftest.$ac_ext <<_ACEOF | |
36218 | /* confdefs.h. */ | |
36219 | _ACEOF | |
36220 | cat confdefs.h >>conftest.$ac_ext | |
36221 | cat >>conftest.$ac_ext <<_ACEOF | |
36222 | /* end confdefs.h. */ | |
36223 | ||
36224 | #include <sys/time.h> | |
36225 | #include <unistd.h> | |
36226 | ||
36227 | int | |
36228 | main () | |
36229 | { | |
36230 | ||
36231 | struct timeval tv; | |
36232 | gettimeofday(&tv, NULL); | |
36233 | ||
36234 | ; | |
36235 | return 0; | |
36236 | } | |
36237 | _ACEOF | |
36238 | rm -f conftest.$ac_objext | |
36239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36240 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36241 | ac_status=$? |
ac1cb8d3 VS |
36242 | grep -v '^ *+' conftest.er1 >conftest.err |
36243 | rm -f conftest.er1 | |
36244 | cat conftest.err >&5 | |
a848cd7e SC |
36245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36246 | (exit $ac_status); } && | |
89be85c2 VS |
36247 | { ac_try='test -z "$ac_cxx_werror_flag" |
36248 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36250 | (eval $ac_try) 2>&5 | |
36251 | ac_status=$? | |
36252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36253 | (exit $ac_status); }; } && | |
36254 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36256 | (eval $ac_try) 2>&5 | |
36257 | ac_status=$? | |
36258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36259 | (exit $ac_status); }; }; then | |
36260 | wx_cv_func_gettimeofday_has_2_args=yes | |
36261 | else | |
36262 | echo "$as_me: failed program was:" >&5 | |
36263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36264 | ||
36265 | cat >conftest.$ac_ext <<_ACEOF | |
36266 | /* confdefs.h. */ | |
36267 | _ACEOF | |
36268 | cat confdefs.h >>conftest.$ac_ext | |
36269 | cat >>conftest.$ac_ext <<_ACEOF | |
36270 | /* end confdefs.h. */ | |
36271 | ||
36272 | #include <sys/time.h> | |
36273 | #include <unistd.h> | |
36274 | ||
36275 | int | |
36276 | main () | |
36277 | { | |
36278 | ||
36279 | struct timeval tv; | |
36280 | gettimeofday(&tv); | |
36281 | ||
36282 | ; | |
36283 | return 0; | |
36284 | } | |
36285 | _ACEOF | |
36286 | rm -f conftest.$ac_objext | |
36287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36288 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36289 | ac_status=$? |
ac1cb8d3 VS |
36290 | grep -v '^ *+' conftest.er1 >conftest.err |
36291 | rm -f conftest.er1 | |
36292 | cat conftest.err >&5 | |
a848cd7e SC |
36293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36294 | (exit $ac_status); } && | |
89be85c2 VS |
36295 | { ac_try='test -z "$ac_cxx_werror_flag" |
36296 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36298 | (eval $ac_try) 2>&5 | |
36299 | ac_status=$? | |
36300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36301 | (exit $ac_status); }; } && | |
36302 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36304 | (eval $ac_try) 2>&5 | |
36305 | ac_status=$? | |
36306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36307 | (exit $ac_status); }; }; then | |
36308 | wx_cv_func_gettimeofday_has_2_args=no | |
36309 | else | |
36310 | echo "$as_me: failed program was:" >&5 | |
36311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36312 | ||
36313 | ||
36314 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
36315 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
36316 | wx_cv_func_gettimeofday_has_2_args=unknown | |
36317 | ||
36318 | ||
36319 | fi | |
ac1cb8d3 | 36320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36321 | |
36322 | fi | |
ac1cb8d3 | 36323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36324 | ac_ext=c |
36325 | ac_cpp='$CPP $CPPFLAGS' | |
36326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36329 | ||
36330 | ||
36331 | fi | |
36332 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
36333 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
36334 | ||
36335 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
36336 | cat >>confdefs.h <<\_ACEOF | |
36337 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
36338 | _ACEOF | |
36339 | ||
36340 | fi | |
36341 | fi | |
36342 | ||
36343 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
36344 | fi | |
36345 | ||
36346 | ||
36347 | if test "$wxUSE_SOCKETS" = "yes"; then | |
36348 | if test "$wxUSE_MGL" = "1"; then | |
36349 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
36350 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
36351 | wxUSE_SOCKETS="no" | |
36352 | fi | |
36353 | fi | |
36354 | ||
36355 | if test "$wxUSE_SOCKETS" = "yes"; then | |
36356 | if test "$TOOLKIT" != "MSW"; then | |
36357 | echo "$as_me:$LINENO: checking for socket" >&5 | |
36358 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
36359 | if test "${ac_cv_func_socket+set}" = set; then | |
36360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36361 | else | |
36362 | cat >conftest.$ac_ext <<_ACEOF | |
36363 | /* confdefs.h. */ | |
36364 | _ACEOF | |
36365 | cat confdefs.h >>conftest.$ac_ext | |
36366 | cat >>conftest.$ac_ext <<_ACEOF | |
36367 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36368 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
36369 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36370 | #define socket innocuous_socket | |
36371 | ||
a848cd7e SC |
36372 | /* System header to define __stub macros and hopefully few prototypes, |
36373 | which can conflict with char socket (); below. | |
36374 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36375 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36376 | |
a848cd7e SC |
36377 | #ifdef __STDC__ |
36378 | # include <limits.h> | |
36379 | #else | |
36380 | # include <assert.h> | |
36381 | #endif | |
ac1cb8d3 VS |
36382 | |
36383 | #undef socket | |
36384 | ||
a848cd7e SC |
36385 | /* Override any gcc2 internal prototype to avoid an error. */ |
36386 | #ifdef __cplusplus | |
36387 | extern "C" | |
36388 | { | |
36389 | #endif | |
36390 | /* We use char because int might match the return type of a gcc2 | |
36391 | builtin and then its argument prototype would still apply. */ | |
36392 | char socket (); | |
36393 | /* The GNU C library defines this for functions which it implements | |
36394 | to always fail with ENOSYS. Some functions are actually named | |
36395 | something starting with __ and the normal name is an alias. */ | |
36396 | #if defined (__stub_socket) || defined (__stub___socket) | |
36397 | choke me | |
36398 | #else | |
36399 | char (*f) () = socket; | |
36400 | #endif | |
36401 | #ifdef __cplusplus | |
36402 | } | |
36403 | #endif | |
36404 | ||
36405 | int | |
36406 | main () | |
36407 | { | |
36408 | return f != socket; | |
36409 | ; | |
36410 | return 0; | |
36411 | } | |
36412 | _ACEOF | |
36413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36415 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36416 | ac_status=$? |
ac1cb8d3 VS |
36417 | grep -v '^ *+' conftest.er1 >conftest.err |
36418 | rm -f conftest.er1 | |
36419 | cat conftest.err >&5 | |
a848cd7e SC |
36420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36421 | (exit $ac_status); } && | |
89be85c2 VS |
36422 | { ac_try='test -z "$ac_c_werror_flag" |
36423 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36425 | (eval $ac_try) 2>&5 | |
36426 | ac_status=$? | |
36427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36428 | (exit $ac_status); }; } && | |
36429 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36431 | (eval $ac_try) 2>&5 | |
36432 | ac_status=$? | |
36433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36434 | (exit $ac_status); }; }; then | |
36435 | ac_cv_func_socket=yes | |
36436 | else | |
36437 | echo "$as_me: failed program was:" >&5 | |
36438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36439 | ||
36440 | ac_cv_func_socket=no | |
36441 | fi | |
ac1cb8d3 VS |
36442 | rm -f conftest.err conftest.$ac_objext \ |
36443 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36444 | fi |
36445 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
36446 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
36447 | if test $ac_cv_func_socket = yes; then | |
36448 | : | |
36449 | else | |
36450 | ||
36451 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
36452 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
36453 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
36454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36455 | else | |
36456 | ac_check_lib_save_LIBS=$LIBS | |
36457 | LIBS="-lsocket $LIBS" | |
36458 | cat >conftest.$ac_ext <<_ACEOF | |
36459 | /* confdefs.h. */ | |
36460 | _ACEOF | |
36461 | cat confdefs.h >>conftest.$ac_ext | |
36462 | cat >>conftest.$ac_ext <<_ACEOF | |
36463 | /* end confdefs.h. */ | |
36464 | ||
36465 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36466 | #ifdef __cplusplus | |
36467 | extern "C" | |
36468 | #endif | |
36469 | /* We use char because int might match the return type of a gcc2 | |
36470 | builtin and then its argument prototype would still apply. */ | |
36471 | char socket (); | |
36472 | int | |
36473 | main () | |
36474 | { | |
36475 | socket (); | |
36476 | ; | |
36477 | return 0; | |
36478 | } | |
36479 | _ACEOF | |
36480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36482 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36483 | ac_status=$? |
ac1cb8d3 VS |
36484 | grep -v '^ *+' conftest.er1 >conftest.err |
36485 | rm -f conftest.er1 | |
36486 | cat conftest.err >&5 | |
a848cd7e SC |
36487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36488 | (exit $ac_status); } && | |
89be85c2 VS |
36489 | { ac_try='test -z "$ac_c_werror_flag" |
36490 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36492 | (eval $ac_try) 2>&5 | |
36493 | ac_status=$? | |
36494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36495 | (exit $ac_status); }; } && | |
36496 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36498 | (eval $ac_try) 2>&5 | |
36499 | ac_status=$? | |
36500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36501 | (exit $ac_status); }; }; then | |
36502 | ac_cv_lib_socket_socket=yes | |
36503 | else | |
36504 | echo "$as_me: failed program was:" >&5 | |
36505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36506 | ||
36507 | ac_cv_lib_socket_socket=no | |
36508 | fi | |
ac1cb8d3 VS |
36509 | rm -f conftest.err conftest.$ac_objext \ |
36510 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36511 | LIBS=$ac_check_lib_save_LIBS |
36512 | fi | |
36513 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
36514 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
36515 | if test $ac_cv_lib_socket_socket = yes; then | |
36516 | if test "$INET_LINK" != " -lsocket"; then | |
36517 | INET_LINK="$INET_LINK -lsocket" | |
36518 | fi | |
36519 | else | |
36520 | ||
36521 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
36522 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
36523 | wxUSE_SOCKETS=no | |
36524 | ||
36525 | ||
36526 | fi | |
36527 | ||
36528 | ||
36529 | ||
36530 | fi | |
36531 | ||
36532 | fi | |
36533 | fi | |
36534 | ||
36535 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
36536 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
36537 | ac_ext=cc |
36538 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36539 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36540 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36541 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36542 | ||
36543 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
36544 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
36545 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
36546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36547 | else | |
36548 | ||
36549 | cat >conftest.$ac_ext <<_ACEOF | |
36550 | /* confdefs.h. */ | |
36551 | _ACEOF | |
36552 | cat confdefs.h >>conftest.$ac_ext | |
36553 | cat >>conftest.$ac_ext <<_ACEOF | |
36554 | /* end confdefs.h. */ | |
36555 | ||
36556 | #include <sys/types.h> | |
36557 | #include <sys/socket.h> | |
36558 | ||
36559 | int | |
36560 | main () | |
36561 | { | |
36562 | ||
36563 | socklen_t len; | |
36564 | getsockname(0, 0, &len); | |
36565 | ||
36566 | ; | |
36567 | return 0; | |
36568 | } | |
36569 | _ACEOF | |
36570 | rm -f conftest.$ac_objext | |
36571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36572 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36573 | ac_status=$? |
ac1cb8d3 VS |
36574 | grep -v '^ *+' conftest.er1 >conftest.err |
36575 | rm -f conftest.er1 | |
36576 | cat conftest.err >&5 | |
a848cd7e SC |
36577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36578 | (exit $ac_status); } && | |
89be85c2 VS |
36579 | { ac_try='test -z "$ac_cxx_werror_flag" |
36580 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36582 | (eval $ac_try) 2>&5 | |
36583 | ac_status=$? | |
36584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36585 | (exit $ac_status); }; } && | |
36586 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36588 | (eval $ac_try) 2>&5 | |
36589 | ac_status=$? | |
36590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36591 | (exit $ac_status); }; }; then | |
36592 | wx_cv_type_getsockname3=socklen_t | |
36593 | else | |
36594 | echo "$as_me: failed program was:" >&5 | |
36595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36596 | ||
36597 | ||
36598 | CFLAGS_OLD="$CFLAGS" | |
36599 | if test "$GCC" = yes ; then | |
36600 | CFLAGS="$CFLAGS -Werror" | |
36601 | fi | |
36602 | ||
36603 | cat >conftest.$ac_ext <<_ACEOF | |
36604 | /* confdefs.h. */ | |
36605 | _ACEOF | |
36606 | cat confdefs.h >>conftest.$ac_ext | |
36607 | cat >>conftest.$ac_ext <<_ACEOF | |
36608 | /* end confdefs.h. */ | |
36609 | ||
36610 | #include <sys/types.h> | |
36611 | #include <sys/socket.h> | |
36612 | ||
36613 | int | |
36614 | main () | |
36615 | { | |
36616 | ||
36617 | size_t len; | |
36618 | getsockname(0, 0, &len); | |
36619 | ||
36620 | ; | |
36621 | return 0; | |
36622 | } | |
36623 | _ACEOF | |
36624 | rm -f conftest.$ac_objext | |
36625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36626 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36627 | ac_status=$? |
ac1cb8d3 VS |
36628 | grep -v '^ *+' conftest.er1 >conftest.err |
36629 | rm -f conftest.er1 | |
36630 | cat conftest.err >&5 | |
a848cd7e SC |
36631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36632 | (exit $ac_status); } && | |
89be85c2 VS |
36633 | { ac_try='test -z "$ac_cxx_werror_flag" |
36634 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36636 | (eval $ac_try) 2>&5 | |
36637 | ac_status=$? | |
36638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36639 | (exit $ac_status); }; } && | |
36640 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36642 | (eval $ac_try) 2>&5 | |
36643 | ac_status=$? | |
36644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36645 | (exit $ac_status); }; }; then | |
36646 | wx_cv_type_getsockname3=size_t | |
36647 | else | |
36648 | echo "$as_me: failed program was:" >&5 | |
36649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36650 | ||
36651 | cat >conftest.$ac_ext <<_ACEOF | |
36652 | /* confdefs.h. */ | |
36653 | _ACEOF | |
36654 | cat confdefs.h >>conftest.$ac_ext | |
36655 | cat >>conftest.$ac_ext <<_ACEOF | |
36656 | /* end confdefs.h. */ | |
36657 | ||
36658 | #include <sys/types.h> | |
36659 | #include <sys/socket.h> | |
36660 | ||
36661 | int | |
36662 | main () | |
36663 | { | |
36664 | ||
36665 | int len; | |
36666 | getsockname(0, 0, &len); | |
36667 | ||
36668 | ; | |
36669 | return 0; | |
36670 | } | |
36671 | _ACEOF | |
36672 | rm -f conftest.$ac_objext | |
36673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36674 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36675 | ac_status=$? |
ac1cb8d3 VS |
36676 | grep -v '^ *+' conftest.er1 >conftest.err |
36677 | rm -f conftest.er1 | |
36678 | cat conftest.err >&5 | |
a848cd7e SC |
36679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36680 | (exit $ac_status); } && | |
89be85c2 VS |
36681 | { ac_try='test -z "$ac_cxx_werror_flag" |
36682 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36684 | (eval $ac_try) 2>&5 | |
36685 | ac_status=$? | |
36686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36687 | (exit $ac_status); }; } && | |
36688 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36690 | (eval $ac_try) 2>&5 | |
36691 | ac_status=$? | |
36692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36693 | (exit $ac_status); }; }; then | |
36694 | wx_cv_type_getsockname3=int | |
36695 | else | |
36696 | echo "$as_me: failed program was:" >&5 | |
36697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36698 | ||
36699 | wx_cv_type_getsockname3=unknown | |
36700 | ||
36701 | fi | |
ac1cb8d3 | 36702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36703 | |
36704 | fi | |
ac1cb8d3 | 36705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36706 | |
36707 | CFLAGS="$CFLAGS_OLD" | |
36708 | ||
36709 | ||
36710 | fi | |
ac1cb8d3 | 36711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36712 | |
36713 | fi | |
36714 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
36715 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
36716 | ||
36717 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
36718 | wxUSE_SOCKETS=no | |
36719 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
36720 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
36721 | else | |
36722 | cat >>confdefs.h <<_ACEOF | |
36723 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
5b674b9d DE |
36724 | _ACEOF |
36725 | ||
36726 | fi | |
36727 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
36728 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
36729 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
36730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36731 | else | |
36732 | ||
36733 | cat >conftest.$ac_ext <<_ACEOF | |
36734 | /* confdefs.h. */ | |
36735 | _ACEOF | |
36736 | cat confdefs.h >>conftest.$ac_ext | |
36737 | cat >>conftest.$ac_ext <<_ACEOF | |
36738 | /* end confdefs.h. */ | |
36739 | ||
36740 | #include <sys/types.h> | |
36741 | #include <sys/socket.h> | |
36742 | ||
36743 | int | |
36744 | main () | |
36745 | { | |
36746 | ||
36747 | socklen_t len; | |
36748 | getsockopt(0, 0, 0, 0, &len); | |
36749 | ||
36750 | ; | |
36751 | return 0; | |
36752 | } | |
36753 | _ACEOF | |
36754 | rm -f conftest.$ac_objext | |
36755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36756 | (eval $ac_compile) 2>conftest.er1 | |
36757 | ac_status=$? | |
36758 | grep -v '^ *+' conftest.er1 >conftest.err | |
36759 | rm -f conftest.er1 | |
36760 | cat conftest.err >&5 | |
36761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36762 | (exit $ac_status); } && | |
89be85c2 VS |
36763 | { ac_try='test -z "$ac_cxx_werror_flag" |
36764 | || test ! -s conftest.err' | |
5b674b9d DE |
36765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36766 | (eval $ac_try) 2>&5 | |
36767 | ac_status=$? | |
36768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36769 | (exit $ac_status); }; } && | |
36770 | { ac_try='test -s conftest.$ac_objext' | |
36771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36772 | (eval $ac_try) 2>&5 | |
36773 | ac_status=$? | |
36774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36775 | (exit $ac_status); }; }; then | |
36776 | wx_cv_type_getsockopt5=socklen_t | |
36777 | else | |
36778 | echo "$as_me: failed program was:" >&5 | |
36779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36780 | ||
36781 | ||
36782 | CFLAGS_OLD="$CFLAGS" | |
36783 | if test "$GCC" = yes ; then | |
36784 | CFLAGS="$CFLAGS -Werror" | |
36785 | fi | |
36786 | ||
36787 | cat >conftest.$ac_ext <<_ACEOF | |
36788 | /* confdefs.h. */ | |
36789 | _ACEOF | |
36790 | cat confdefs.h >>conftest.$ac_ext | |
36791 | cat >>conftest.$ac_ext <<_ACEOF | |
36792 | /* end confdefs.h. */ | |
36793 | ||
36794 | #include <sys/types.h> | |
36795 | #include <sys/socket.h> | |
36796 | ||
36797 | int | |
36798 | main () | |
36799 | { | |
36800 | ||
36801 | size_t len; | |
36802 | getsockopt(0, 0, 0, 0, &len); | |
36803 | ||
36804 | ; | |
36805 | return 0; | |
36806 | } | |
36807 | _ACEOF | |
36808 | rm -f conftest.$ac_objext | |
36809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36810 | (eval $ac_compile) 2>conftest.er1 | |
36811 | ac_status=$? | |
36812 | grep -v '^ *+' conftest.er1 >conftest.err | |
36813 | rm -f conftest.er1 | |
36814 | cat conftest.err >&5 | |
36815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36816 | (exit $ac_status); } && | |
89be85c2 VS |
36817 | { ac_try='test -z "$ac_cxx_werror_flag" |
36818 | || test ! -s conftest.err' | |
5b674b9d DE |
36819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36820 | (eval $ac_try) 2>&5 | |
36821 | ac_status=$? | |
36822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36823 | (exit $ac_status); }; } && | |
36824 | { ac_try='test -s conftest.$ac_objext' | |
36825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36826 | (eval $ac_try) 2>&5 | |
36827 | ac_status=$? | |
36828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36829 | (exit $ac_status); }; }; then | |
36830 | wx_cv_type_getsockopt5=size_t | |
36831 | else | |
36832 | echo "$as_me: failed program was:" >&5 | |
36833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36834 | ||
36835 | cat >conftest.$ac_ext <<_ACEOF | |
36836 | /* confdefs.h. */ | |
36837 | _ACEOF | |
36838 | cat confdefs.h >>conftest.$ac_ext | |
36839 | cat >>conftest.$ac_ext <<_ACEOF | |
36840 | /* end confdefs.h. */ | |
36841 | ||
36842 | #include <sys/types.h> | |
36843 | #include <sys/socket.h> | |
36844 | ||
36845 | int | |
36846 | main () | |
36847 | { | |
36848 | ||
36849 | int len; | |
36850 | getsockopt(0, 0, 0, 0, &len); | |
36851 | ||
36852 | ; | |
36853 | return 0; | |
36854 | } | |
36855 | _ACEOF | |
36856 | rm -f conftest.$ac_objext | |
36857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36858 | (eval $ac_compile) 2>conftest.er1 | |
36859 | ac_status=$? | |
36860 | grep -v '^ *+' conftest.er1 >conftest.err | |
36861 | rm -f conftest.er1 | |
36862 | cat conftest.err >&5 | |
36863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36864 | (exit $ac_status); } && | |
89be85c2 VS |
36865 | { ac_try='test -z "$ac_cxx_werror_flag" |
36866 | || test ! -s conftest.err' | |
5b674b9d DE |
36867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36868 | (eval $ac_try) 2>&5 | |
36869 | ac_status=$? | |
36870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36871 | (exit $ac_status); }; } && | |
36872 | { ac_try='test -s conftest.$ac_objext' | |
36873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36874 | (eval $ac_try) 2>&5 | |
36875 | ac_status=$? | |
36876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36877 | (exit $ac_status); }; }; then | |
36878 | wx_cv_type_getsockopt5=int | |
36879 | else | |
36880 | echo "$as_me: failed program was:" >&5 | |
36881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36882 | ||
36883 | wx_cv_type_getsockopt5=unknown | |
36884 | ||
36885 | fi | |
36886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36887 | ||
36888 | fi | |
36889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36890 | ||
36891 | CFLAGS="$CFLAGS_OLD" | |
36892 | ||
36893 | ||
36894 | fi | |
36895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36896 | ||
36897 | fi | |
36898 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
36899 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
36900 | ||
36901 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
36902 | wxUSE_SOCKETS=no | |
36903 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
36904 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
36905 | else | |
36906 | cat >>confdefs.h <<_ACEOF | |
36907 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
36908 | _ACEOF |
36909 | ||
36910 | fi | |
4d4ff94c VZ |
36911 | ac_ext=c |
36912 | ac_cpp='$CPP $CPPFLAGS' | |
36913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36916 | ||
a848cd7e SC |
36917 | fi |
36918 | fi | |
36919 | ||
36920 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
36921 | cat >>confdefs.h <<\_ACEOF | |
36922 | #define wxUSE_SOCKETS 1 | |
36923 | _ACEOF | |
36924 | ||
36925 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
36926 | fi | |
36927 | ||
36928 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
36929 | if test "$wxUSE_SOCKETS" != "yes"; then | |
36930 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
36931 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
36932 | wxUSE_PROTOCOL=no | |
36933 | fi | |
36934 | fi | |
36935 | ||
36936 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
36937 | cat >>confdefs.h <<\_ACEOF | |
36938 | #define wxUSE_PROTOCOL 1 | |
36939 | _ACEOF | |
36940 | ||
36941 | ||
36942 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
36943 | cat >>confdefs.h <<\_ACEOF | |
36944 | #define wxUSE_PROTOCOL_HTTP 1 | |
36945 | _ACEOF | |
36946 | ||
36947 | fi | |
36948 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
36949 | cat >>confdefs.h <<\_ACEOF | |
36950 | #define wxUSE_PROTOCOL_FTP 1 | |
36951 | _ACEOF | |
36952 | ||
36953 | fi | |
36954 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
36955 | cat >>confdefs.h <<\_ACEOF | |
36956 | #define wxUSE_PROTOCOL_FILE 1 | |
36957 | _ACEOF | |
36958 | ||
36959 | fi | |
36960 | else | |
36961 | if test "$wxUSE_FS_INET" = "yes"; then | |
36962 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
36963 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
36964 | wxUSE_FS_INET="no" | |
36965 | fi | |
36966 | fi | |
36967 | ||
36968 | if test "$wxUSE_URL" = "yes"; then | |
36969 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
36970 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
36971 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
36972 | wxUSE_URL=no | |
36973 | fi | |
36974 | if test "$wxUSE_URL" = "yes"; then | |
36975 | cat >>confdefs.h <<\_ACEOF | |
36976 | #define wxUSE_URL 1 | |
36977 | _ACEOF | |
36978 | ||
36979 | fi | |
36980 | fi | |
36981 | ||
36982 | if test "$wxUSE_FS_INET" = "yes"; then | |
36983 | cat >>confdefs.h <<\_ACEOF | |
36984 | #define wxUSE_FS_INET 1 | |
36985 | _ACEOF | |
36986 | ||
36987 | fi | |
36988 | ||
36989 | ||
36990 | if test "$wxUSE_GUI" = "yes"; then | |
36991 | ||
36992 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
36993 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
36994 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
36995 | wxUSE_JOYSTICK=no | |
36996 | fi | |
36997 | ||
36998 | if test "$TOOLKIT" != "MSW"; then | |
36999 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
37000 | ||
37001 | for ac_header in linux/joystick.h | |
37002 | do | |
37003 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37004 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37005 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37006 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37007 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37009 | fi | |
37010 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37011 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37012 | else | |
37013 | # Is the header compilable? | |
37014 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37015 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37016 | cat >conftest.$ac_ext <<_ACEOF | |
37017 | /* confdefs.h. */ | |
37018 | _ACEOF | |
37019 | cat confdefs.h >>conftest.$ac_ext | |
37020 | cat >>conftest.$ac_ext <<_ACEOF | |
37021 | /* end confdefs.h. */ | |
37022 | $ac_includes_default | |
37023 | #include <$ac_header> | |
37024 | _ACEOF | |
37025 | rm -f conftest.$ac_objext | |
37026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37027 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37028 | ac_status=$? |
ac1cb8d3 VS |
37029 | grep -v '^ *+' conftest.er1 >conftest.err |
37030 | rm -f conftest.er1 | |
37031 | cat conftest.err >&5 | |
a848cd7e SC |
37032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37033 | (exit $ac_status); } && | |
89be85c2 VS |
37034 | { ac_try='test -z "$ac_c_werror_flag" |
37035 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37037 | (eval $ac_try) 2>&5 | |
37038 | ac_status=$? | |
37039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37040 | (exit $ac_status); }; } && | |
37041 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37043 | (eval $ac_try) 2>&5 | |
37044 | ac_status=$? | |
37045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37046 | (exit $ac_status); }; }; then | |
37047 | ac_header_compiler=yes | |
37048 | else | |
37049 | echo "$as_me: failed program was:" >&5 | |
37050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37051 | ||
37052 | ac_header_compiler=no | |
37053 | fi | |
ac1cb8d3 | 37054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37055 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37056 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37057 | ||
37058 | # Is the header present? | |
37059 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37060 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37061 | cat >conftest.$ac_ext <<_ACEOF | |
37062 | /* confdefs.h. */ | |
37063 | _ACEOF | |
37064 | cat confdefs.h >>conftest.$ac_ext | |
37065 | cat >>conftest.$ac_ext <<_ACEOF | |
37066 | /* end confdefs.h. */ | |
37067 | #include <$ac_header> | |
37068 | _ACEOF | |
37069 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37070 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37071 | ac_status=$? | |
37072 | grep -v '^ *+' conftest.er1 >conftest.err | |
37073 | rm -f conftest.er1 | |
37074 | cat conftest.err >&5 | |
37075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37076 | (exit $ac_status); } >/dev/null; then | |
37077 | if test -s conftest.err; then | |
37078 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37079 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37080 | else |
37081 | ac_cpp_err= | |
37082 | fi | |
37083 | else | |
37084 | ac_cpp_err=yes | |
37085 | fi | |
37086 | if test -z "$ac_cpp_err"; then | |
37087 | ac_header_preproc=yes | |
37088 | else | |
37089 | echo "$as_me: failed program was:" >&5 | |
37090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37091 | ||
37092 | ac_header_preproc=no | |
37093 | fi | |
37094 | rm -f conftest.err conftest.$ac_ext | |
37095 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37096 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37097 | ||
37098 | # So? What about this header? | |
ac1cb8d3 VS |
37099 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37100 | yes:no: ) | |
a848cd7e SC |
37101 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37102 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37103 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37104 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37105 | ac_header_preproc=yes | |
a848cd7e | 37106 | ;; |
ac1cb8d3 | 37107 | no:yes:* ) |
a848cd7e SC |
37108 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37109 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37110 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37111 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37112 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37113 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37114 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37115 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37117 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37118 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37119 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37120 | ( |
37121 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37122 | ## ----------------------------------------- ## |
37123 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37124 | ## ----------------------------------------- ## | |
a848cd7e SC |
37125 | _ASBOX |
37126 | ) | | |
37127 | sed "s/^/$as_me: WARNING: /" >&2 | |
37128 | ;; | |
37129 | esac | |
37130 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37132 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37134 | else | |
ac1cb8d3 | 37135 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37136 | fi |
37137 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37138 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37139 | ||
37140 | fi | |
37141 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37142 | cat >>confdefs.h <<_ACEOF | |
37143 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37144 | _ACEOF | |
37145 | ||
37146 | fi | |
37147 | ||
37148 | done | |
37149 | ||
37150 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
37151 | wxUSE_JOYSTICK=no | |
37152 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
37153 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
37154 | fi | |
37155 | fi | |
37156 | fi | |
37157 | ||
37158 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
37159 | cat >>confdefs.h <<\_ACEOF | |
37160 | #define wxUSE_JOYSTICK 1 | |
37161 | _ACEOF | |
37162 | ||
37163 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
37164 | fi | |
37165 | fi | |
37166 | ||
37167 | ||
37168 | ||
37169 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
37170 | cat >>confdefs.h <<\_ACEOF | |
37171 | #define wxUSE_FONTMAP 1 | |
37172 | _ACEOF | |
37173 | ||
37174 | fi | |
37175 | ||
37176 | if test "$wxUSE_UNICODE" = "yes" ; then | |
37177 | cat >>confdefs.h <<\_ACEOF | |
37178 | #define wxUSE_UNICODE 1 | |
37179 | _ACEOF | |
37180 | ||
37181 | ||
37182 | if test "$USE_WIN32" != 1; then | |
37183 | wxUSE_UNICODE_MSLU=no | |
37184 | fi | |
37185 | ||
37186 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
37187 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
37188 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
37189 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
37190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37191 | else | |
37192 | ac_check_lib_save_LIBS=$LIBS | |
37193 | LIBS="-lunicows $LIBS" | |
37194 | cat >conftest.$ac_ext <<_ACEOF | |
37195 | /* confdefs.h. */ | |
37196 | _ACEOF | |
37197 | cat confdefs.h >>conftest.$ac_ext | |
37198 | cat >>conftest.$ac_ext <<_ACEOF | |
37199 | /* end confdefs.h. */ | |
37200 | ||
37201 | ||
37202 | int | |
37203 | main () | |
37204 | { | |
37205 | main (); | |
37206 | ; | |
37207 | return 0; | |
37208 | } | |
37209 | _ACEOF | |
37210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37212 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37213 | ac_status=$? |
ac1cb8d3 VS |
37214 | grep -v '^ *+' conftest.er1 >conftest.err |
37215 | rm -f conftest.er1 | |
37216 | cat conftest.err >&5 | |
a848cd7e SC |
37217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37218 | (exit $ac_status); } && | |
89be85c2 VS |
37219 | { ac_try='test -z "$ac_c_werror_flag" |
37220 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37222 | (eval $ac_try) 2>&5 | |
37223 | ac_status=$? | |
37224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37225 | (exit $ac_status); }; } && | |
37226 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37228 | (eval $ac_try) 2>&5 | |
37229 | ac_status=$? | |
37230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37231 | (exit $ac_status); }; }; then | |
37232 | ac_cv_lib_unicows_main=yes | |
37233 | else | |
37234 | echo "$as_me: failed program was:" >&5 | |
37235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37236 | ||
37237 | ac_cv_lib_unicows_main=no | |
37238 | fi | |
ac1cb8d3 VS |
37239 | rm -f conftest.err conftest.$ac_objext \ |
37240 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37241 | LIBS=$ac_check_lib_save_LIBS |
37242 | fi | |
37243 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
37244 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
37245 | if test $ac_cv_lib_unicows_main = yes; then | |
37246 | ||
37247 | cat >>confdefs.h <<\_ACEOF | |
37248 | #define wxUSE_UNICODE_MSLU 1 | |
37249 | _ACEOF | |
37250 | ||
37251 | ||
37252 | else | |
37253 | ||
37254 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
37255 | Applications will only run on Windows NT/2000/XP!" >&5 | |
37256 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
37257 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
37258 | wxUSE_UNICODE_MSLU=no | |
37259 | ||
37260 | fi | |
37261 | ||
37262 | fi | |
37263 | fi | |
37264 | ||
37265 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
37266 | cat >>confdefs.h <<\_ACEOF | |
37267 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
37268 | _ACEOF | |
37269 | ||
37270 | fi | |
37271 | ||
37272 | ||
37273 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
37274 | cat >>confdefs.h <<\_ACEOF | |
37275 | #define wxUSE_POSTSCRIPT 1 | |
37276 | _ACEOF | |
37277 | ||
37278 | fi | |
37279 | ||
37280 | cat >>confdefs.h <<\_ACEOF | |
37281 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
37282 | _ACEOF | |
37283 | ||
37284 | ||
37285 | cat >>confdefs.h <<\_ACEOF | |
37286 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
37287 | _ACEOF | |
37288 | ||
37289 | ||
37290 | ||
37291 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
37292 | cat >>confdefs.h <<\_ACEOF | |
37293 | #define wxUSE_CONSTRAINTS 1 | |
37294 | _ACEOF | |
37295 | ||
37296 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
37297 | fi | |
37298 | ||
8a7b1113 VZ |
37299 | if test "$wxUSE_MDI" = "yes"; then |
37300 | cat >>confdefs.h <<\_ACEOF | |
37301 | #define wxUSE_MDI 1 | |
37302 | _ACEOF | |
37303 | ||
37304 | ||
37305 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
37306 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37307 | #define wxUSE_MDI_ARCHITECTURE 1 |
37308 | _ACEOF | |
37309 | ||
8a7b1113 VZ |
37310 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
37311 | fi | |
a848cd7e SC |
37312 | fi |
37313 | ||
37314 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
37315 | cat >>confdefs.h <<\_ACEOF | |
37316 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
37317 | _ACEOF | |
37318 | ||
37319 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
37320 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
37321 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
37322 | fi | |
37323 | fi | |
37324 | ||
37325 | if test "$wxUSE_HELP" = "yes"; then | |
37326 | cat >>confdefs.h <<\_ACEOF | |
37327 | #define wxUSE_HELP 1 | |
37328 | _ACEOF | |
37329 | ||
37330 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
37331 | ||
37332 | if test "$wxUSE_MSW" = 1; then | |
37333 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
37334 | cat >>confdefs.h <<\_ACEOF | |
37335 | #define wxUSE_MS_HTML_HELP 1 | |
37336 | _ACEOF | |
37337 | ||
37338 | fi | |
37339 | fi | |
37340 | ||
37341 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
37342 | if test "$wxUSE_HTML" = "yes"; then | |
37343 | cat >>confdefs.h <<\_ACEOF | |
37344 | #define wxUSE_WXHTML_HELP 1 | |
37345 | _ACEOF | |
37346 | ||
37347 | else | |
37348 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
37349 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
37350 | wxUSE_WXHTML_HELP=no | |
37351 | fi | |
37352 | fi | |
37353 | fi | |
37354 | ||
37355 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
37356 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37357 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
37358 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
37359 | else | |
37360 | cat >>confdefs.h <<\_ACEOF | |
37361 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
37362 | _ACEOF | |
37363 | ||
37364 | fi | |
37365 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
37366 | fi | |
37367 | ||
37368 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
37369 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
37370 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
37371 | { (exit 1); exit 1; }; } | |
37372 | fi | |
37373 | ||
37374 | ||
37375 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
37376 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
37377 | -o "$wxUSE_OLE" = "yes" \ | |
37378 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
37379 | ||
37380 | for ac_header in ole2.h | |
37381 | do | |
37382 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37383 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37384 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37385 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37386 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37388 | fi | |
37389 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37390 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37391 | else | |
37392 | # Is the header compilable? | |
37393 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37394 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37395 | cat >conftest.$ac_ext <<_ACEOF | |
37396 | /* confdefs.h. */ | |
37397 | _ACEOF | |
37398 | cat confdefs.h >>conftest.$ac_ext | |
37399 | cat >>conftest.$ac_ext <<_ACEOF | |
37400 | /* end confdefs.h. */ | |
37401 | $ac_includes_default | |
37402 | #include <$ac_header> | |
37403 | _ACEOF | |
37404 | rm -f conftest.$ac_objext | |
37405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37406 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37407 | ac_status=$? |
ac1cb8d3 VS |
37408 | grep -v '^ *+' conftest.er1 >conftest.err |
37409 | rm -f conftest.er1 | |
37410 | cat conftest.err >&5 | |
a848cd7e SC |
37411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37412 | (exit $ac_status); } && | |
89be85c2 VS |
37413 | { ac_try='test -z "$ac_c_werror_flag" |
37414 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37416 | (eval $ac_try) 2>&5 | |
37417 | ac_status=$? | |
37418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37419 | (exit $ac_status); }; } && | |
37420 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37422 | (eval $ac_try) 2>&5 | |
37423 | ac_status=$? | |
37424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37425 | (exit $ac_status); }; }; then | |
37426 | ac_header_compiler=yes | |
37427 | else | |
37428 | echo "$as_me: failed program was:" >&5 | |
37429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37430 | ||
37431 | ac_header_compiler=no | |
37432 | fi | |
ac1cb8d3 | 37433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37434 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37435 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37436 | ||
37437 | # Is the header present? | |
37438 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37439 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37440 | cat >conftest.$ac_ext <<_ACEOF | |
37441 | /* confdefs.h. */ | |
37442 | _ACEOF | |
37443 | cat confdefs.h >>conftest.$ac_ext | |
37444 | cat >>conftest.$ac_ext <<_ACEOF | |
37445 | /* end confdefs.h. */ | |
37446 | #include <$ac_header> | |
37447 | _ACEOF | |
37448 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37449 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37450 | ac_status=$? | |
37451 | grep -v '^ *+' conftest.er1 >conftest.err | |
37452 | rm -f conftest.er1 | |
37453 | cat conftest.err >&5 | |
37454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37455 | (exit $ac_status); } >/dev/null; then | |
37456 | if test -s conftest.err; then | |
37457 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37458 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37459 | else |
37460 | ac_cpp_err= | |
37461 | fi | |
37462 | else | |
37463 | ac_cpp_err=yes | |
37464 | fi | |
37465 | if test -z "$ac_cpp_err"; then | |
37466 | ac_header_preproc=yes | |
37467 | else | |
37468 | echo "$as_me: failed program was:" >&5 | |
37469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37470 | ||
37471 | ac_header_preproc=no | |
37472 | fi | |
37473 | rm -f conftest.err conftest.$ac_ext | |
37474 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37475 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37476 | ||
37477 | # So? What about this header? | |
ac1cb8d3 VS |
37478 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37479 | yes:no: ) | |
a848cd7e SC |
37480 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37481 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37482 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37483 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37484 | ac_header_preproc=yes | |
a848cd7e | 37485 | ;; |
ac1cb8d3 | 37486 | no:yes:* ) |
a848cd7e SC |
37487 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37488 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37489 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37490 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37491 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37492 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37493 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37494 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37495 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37496 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37497 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37498 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37499 | ( |
37500 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37501 | ## ----------------------------------------- ## |
37502 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37503 | ## ----------------------------------------- ## | |
a848cd7e SC |
37504 | _ASBOX |
37505 | ) | | |
37506 | sed "s/^/$as_me: WARNING: /" >&2 | |
37507 | ;; | |
37508 | esac | |
37509 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37510 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37511 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37513 | else | |
ac1cb8d3 | 37514 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37515 | fi |
37516 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37517 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37518 | ||
37519 | fi | |
37520 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37521 | cat >>confdefs.h <<_ACEOF | |
37522 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37523 | _ACEOF | |
37524 | ||
37525 | fi | |
37526 | ||
37527 | done | |
37528 | ||
37529 | ||
37530 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
37531 | if test "$GCC" = yes ; then | |
37532 | ||
37533 | ||
37534 | ac_ext=cc | |
37535 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37536 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37537 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37538 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37539 | ||
37540 | ||
37541 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
37542 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
37543 | cat >conftest.$ac_ext <<_ACEOF | |
37544 | /* confdefs.h. */ | |
37545 | _ACEOF | |
37546 | cat confdefs.h >>conftest.$ac_ext | |
37547 | cat >>conftest.$ac_ext <<_ACEOF | |
37548 | /* end confdefs.h. */ | |
37549 | #include <windows.h> | |
37550 | #include <ole2.h> | |
37551 | int | |
37552 | main () | |
37553 | { | |
37554 | ||
37555 | ; | |
37556 | return 0; | |
37557 | } | |
37558 | _ACEOF | |
37559 | rm -f conftest.$ac_objext | |
37560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37561 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37562 | ac_status=$? |
ac1cb8d3 VS |
37563 | grep -v '^ *+' conftest.er1 >conftest.err |
37564 | rm -f conftest.er1 | |
37565 | cat conftest.err >&5 | |
a848cd7e SC |
37566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37567 | (exit $ac_status); } && | |
89be85c2 VS |
37568 | { ac_try='test -z "$ac_cxx_werror_flag" |
37569 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37571 | (eval $ac_try) 2>&5 | |
37572 | ac_status=$? | |
37573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37574 | (exit $ac_status); }; } && | |
37575 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37577 | (eval $ac_try) 2>&5 | |
37578 | ac_status=$? | |
37579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37580 | (exit $ac_status); }; }; then | |
37581 | echo "$as_me:$LINENO: result: no" >&5 | |
37582 | echo "${ECHO_T}no" >&6 | |
37583 | else | |
37584 | echo "$as_me: failed program was:" >&5 | |
37585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37586 | ||
37587 | echo "$as_me:$LINENO: result: yes" >&5 | |
37588 | echo "${ECHO_T}yes" >&6 | |
37589 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
37590 | fi | |
ac1cb8d3 | 37591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37592 | ac_ext=c |
37593 | ac_cpp='$CPP $CPPFLAGS' | |
37594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37597 | ||
a848cd7e SC |
37598 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
37599 | if test "$wxUSE_OLE" = "yes" ; then | |
37600 | cat >>confdefs.h <<\_ACEOF | |
37601 | #define wxUSE_OLE 1 | |
37602 | _ACEOF | |
37603 | ||
37604 | fi | |
37605 | fi | |
37606 | ||
37607 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
37608 | cat >>confdefs.h <<\_ACEOF | |
37609 | #define wxUSE_DATAOBJ 1 | |
37610 | _ACEOF | |
37611 | ||
37612 | fi | |
37613 | else | |
37614 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
37615 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
37616 | ||
37617 | wxUSE_CLIPBOARD=no | |
37618 | wxUSE_DRAG_AND_DROP=no | |
37619 | wxUSE_DATAOBJ=no | |
37620 | wxUSE_OLE=no | |
37621 | fi | |
37622 | ||
37623 | if test "$wxUSE_METAFILE" = "yes"; then | |
37624 | cat >>confdefs.h <<\_ACEOF | |
37625 | #define wxUSE_METAFILE 1 | |
37626 | _ACEOF | |
37627 | ||
37628 | ||
37629 | cat >>confdefs.h <<\_ACEOF | |
37630 | #define wxUSE_ENH_METAFILE 1 | |
37631 | _ACEOF | |
37632 | ||
37633 | fi | |
37634 | fi | |
37635 | ||
37636 | if test "$wxUSE_IPC" = "yes"; then | |
37637 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
37638 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
37639 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
37640 | fi |
37641 | ||
37642 | cat >>confdefs.h <<\_ACEOF | |
37643 | #define wxUSE_IPC 1 | |
37644 | _ACEOF | |
37645 | ||
37646 | fi | |
37647 | ||
37648 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
37649 | if test "$wxUSE_MGL" = 1; then | |
37650 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
37651 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
37652 | wxUSE_CLIPBOARD=no | |
37653 | fi | |
37654 | ||
37655 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
37656 | cat >>confdefs.h <<\_ACEOF | |
37657 | #define wxUSE_CLIPBOARD 1 | |
37658 | _ACEOF | |
37659 | ||
37660 | ||
37661 | cat >>confdefs.h <<\_ACEOF | |
37662 | #define wxUSE_DATAOBJ 1 | |
37663 | _ACEOF | |
37664 | ||
37665 | fi | |
37666 | fi | |
37667 | ||
37668 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
37669 | if test "$wxUSE_GTK" = 1; then | |
37670 | if test "$WXGTK12" != 1; then | |
37671 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
37672 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
37673 | wxUSE_DRAG_AND_DROP=no | |
37674 | fi | |
37675 | fi | |
37676 | ||
37677 | if test "$wxUSE_MOTIF" = 1; then | |
37678 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
37679 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
37680 | wxUSE_DRAG_AND_DROP=no | |
37681 | fi | |
37682 | ||
37683 | if test "$wxUSE_X11" = 1; then | |
37684 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
37685 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
37686 | wxUSE_DRAG_AND_DROP=no | |
37687 | fi | |
37688 | ||
37689 | if test "$wxUSE_MGL" = 1; then | |
37690 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
37691 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
37692 | wxUSE_DRAG_AND_DROP=no | |
37693 | fi | |
37694 | ||
37695 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
37696 | cat >>confdefs.h <<\_ACEOF | |
37697 | #define wxUSE_DRAG_AND_DROP 1 | |
37698 | _ACEOF | |
37699 | ||
37700 | fi | |
37701 | ||
37702 | fi | |
37703 | ||
37704 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
37705 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
37706 | fi | |
37707 | ||
37708 | if test "$wxUSE_SPLINES" = "yes" ; then | |
37709 | cat >>confdefs.h <<\_ACEOF | |
37710 | #define wxUSE_SPLINES 1 | |
37711 | _ACEOF | |
37712 | ||
37713 | fi | |
37714 | ||
37715 | ||
37716 | USES_CONTROLS=0 | |
37717 | if test "$wxUSE_CONTROLS" = "yes"; then | |
37718 | USES_CONTROLS=1 | |
37719 | fi | |
37720 | ||
37721 | if test "$wxUSE_ACCEL" = "yes"; then | |
37722 | cat >>confdefs.h <<\_ACEOF | |
37723 | #define wxUSE_ACCEL 1 | |
37724 | _ACEOF | |
37725 | ||
37726 | USES_CONTROLS=1 | |
37727 | fi | |
37728 | ||
37729 | if test "$wxUSE_BUTTON" = "yes"; then | |
37730 | cat >>confdefs.h <<\_ACEOF | |
37731 | #define wxUSE_BUTTON 1 | |
37732 | _ACEOF | |
37733 | ||
37734 | USES_CONTROLS=1 | |
37735 | fi | |
37736 | ||
37737 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
37738 | cat >>confdefs.h <<\_ACEOF | |
37739 | #define wxUSE_BMPBUTTON 1 | |
37740 | _ACEOF | |
37741 | ||
37742 | USES_CONTROLS=1 | |
37743 | fi | |
37744 | ||
37745 | if test "$wxUSE_CALCTRL" = "yes"; then | |
37746 | cat >>confdefs.h <<\_ACEOF | |
37747 | #define wxUSE_CALENDARCTRL 1 | |
37748 | _ACEOF | |
37749 | ||
37750 | USES_CONTROLS=1 | |
37751 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
37752 | fi | |
37753 | ||
37754 | if test "$wxUSE_CARET" = "yes"; then | |
37755 | cat >>confdefs.h <<\_ACEOF | |
37756 | #define wxUSE_CARET 1 | |
37757 | _ACEOF | |
37758 | ||
37759 | USES_CONTROLS=1 | |
37760 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
37761 | fi | |
37762 | ||
37763 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
37764 | cat >>confdefs.h <<\_ACEOF | |
37765 | #define wxUSE_COMBOBOX 1 | |
37766 | _ACEOF | |
37767 | ||
37768 | USES_CONTROLS=1 | |
37769 | fi | |
37770 | ||
37771 | if test "$wxUSE_CHOICE" = "yes"; then | |
37772 | cat >>confdefs.h <<\_ACEOF | |
37773 | #define wxUSE_CHOICE 1 | |
37774 | _ACEOF | |
37775 | ||
37776 | USES_CONTROLS=1 | |
37777 | fi | |
37778 | ||
92bbdbcd WS |
37779 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
37780 | cat >>confdefs.h <<\_ACEOF | |
37781 | #define wxUSE_CHOICEBOOK 1 | |
37782 | _ACEOF | |
37783 | ||
37784 | USES_CONTROLS=1 | |
37785 | fi | |
37786 | ||
a848cd7e SC |
37787 | if test "$wxUSE_CHECKBOX" = "yes"; then |
37788 | cat >>confdefs.h <<\_ACEOF | |
37789 | #define wxUSE_CHECKBOX 1 | |
37790 | _ACEOF | |
37791 | ||
37792 | USES_CONTROLS=1 | |
37793 | fi | |
37794 | ||
37795 | if test "$wxUSE_CHECKLST" = "yes"; then | |
37796 | cat >>confdefs.h <<\_ACEOF | |
37797 | #define wxUSE_CHECKLISTBOX 1 | |
37798 | _ACEOF | |
37799 | ||
37800 | USES_CONTROLS=1 | |
37801 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
37802 | fi | |
37803 | ||
da98e9be VZ |
37804 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
37805 | cat >>confdefs.h <<\_ACEOF | |
37806 | #define wxUSE_DATEPICKCTRL 1 | |
37807 | _ACEOF | |
37808 | ||
37809 | USES_CONTROLS=1 | |
37810 | fi | |
37811 | ||
a848cd7e SC |
37812 | if test "$wxUSE_DISPLAY" = "yes"; then |
37813 | cat >>confdefs.h <<\_ACEOF | |
37814 | #define wxUSE_DISPLAY 1 | |
37815 | _ACEOF | |
37816 | ||
37817 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
37818 | fi | |
37819 | ||
37820 | if test "$wxUSE_GAUGE" = "yes"; then | |
37821 | cat >>confdefs.h <<\_ACEOF | |
37822 | #define wxUSE_GAUGE 1 | |
37823 | _ACEOF | |
37824 | ||
37825 | USES_CONTROLS=1 | |
37826 | fi | |
37827 | ||
37828 | if test "$wxUSE_GRID" = "yes"; then | |
37829 | cat >>confdefs.h <<\_ACEOF | |
37830 | #define wxUSE_GRID 1 | |
37831 | _ACEOF | |
37832 | ||
37833 | USES_CONTROLS=1 | |
37834 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
37835 | fi | |
37836 | ||
37837 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37838 | cat >>confdefs.h <<\_ACEOF | |
37839 | #define wxUSE_IMAGLIST 1 | |
37840 | _ACEOF | |
37841 | ||
37842 | fi | |
37843 | ||
37844 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
37845 | cat >>confdefs.h <<\_ACEOF | |
37846 | #define wxUSE_LISTBOOK 1 | |
37847 | _ACEOF | |
37848 | ||
37849 | USES_CONTROLS=1 | |
37850 | fi | |
37851 | ||
37852 | if test "$wxUSE_LISTBOX" = "yes"; then | |
37853 | cat >>confdefs.h <<\_ACEOF | |
37854 | #define wxUSE_LISTBOX 1 | |
37855 | _ACEOF | |
37856 | ||
37857 | USES_CONTROLS=1 | |
37858 | fi | |
37859 | ||
37860 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
37861 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37862 | cat >>confdefs.h <<\_ACEOF | |
37863 | #define wxUSE_LISTCTRL 1 | |
37864 | _ACEOF | |
37865 | ||
37866 | USES_CONTROLS=1 | |
37867 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
37868 | else | |
37869 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
37870 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
37871 | fi | |
37872 | fi | |
37873 | ||
37874 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
37875 | cat >>confdefs.h <<\_ACEOF | |
37876 | #define wxUSE_NOTEBOOK 1 | |
37877 | _ACEOF | |
37878 | ||
37879 | USES_CONTROLS=1 | |
37880 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
37881 | fi | |
37882 | ||
37883 | ||
37884 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
37885 | cat >>confdefs.h <<\_ACEOF | |
37886 | #define wxUSE_RADIOBOX 1 | |
37887 | _ACEOF | |
37888 | ||
37889 | USES_CONTROLS=1 | |
37890 | fi | |
37891 | ||
37892 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
37893 | cat >>confdefs.h <<\_ACEOF | |
37894 | #define wxUSE_RADIOBTN 1 | |
37895 | _ACEOF | |
37896 | ||
37897 | USES_CONTROLS=1 | |
37898 | fi | |
37899 | ||
37900 | if test "$wxUSE_SASH" = "yes"; then | |
37901 | cat >>confdefs.h <<\_ACEOF | |
37902 | #define wxUSE_SASH 1 | |
37903 | _ACEOF | |
37904 | ||
37905 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
37906 | fi | |
37907 | ||
37908 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
37909 | cat >>confdefs.h <<\_ACEOF | |
37910 | #define wxUSE_SCROLLBAR 1 | |
37911 | _ACEOF | |
37912 | ||
37913 | USES_CONTROLS=1 | |
37914 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
37915 | fi | |
37916 | ||
37917 | if test "$wxUSE_SLIDER" = "yes"; then | |
37918 | cat >>confdefs.h <<\_ACEOF | |
37919 | #define wxUSE_SLIDER 1 | |
37920 | _ACEOF | |
37921 | ||
37922 | USES_CONTROLS=1 | |
37923 | fi | |
37924 | ||
37925 | if test "$wxUSE_SPINBTN" = "yes"; then | |
37926 | cat >>confdefs.h <<\_ACEOF | |
37927 | #define wxUSE_SPINBTN 1 | |
37928 | _ACEOF | |
37929 | ||
37930 | USES_CONTROLS=1 | |
37931 | fi | |
37932 | ||
37933 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
37934 | cat >>confdefs.h <<\_ACEOF | |
37935 | #define wxUSE_SPINCTRL 1 | |
37936 | _ACEOF | |
37937 | ||
37938 | USES_CONTROLS=1 | |
37939 | fi | |
37940 | ||
37941 | if test "$wxUSE_SPLITTER" = "yes"; then | |
37942 | cat >>confdefs.h <<\_ACEOF | |
37943 | #define wxUSE_SPLITTER 1 | |
37944 | _ACEOF | |
37945 | ||
37946 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
37947 | fi | |
37948 | ||
37949 | if test "$wxUSE_STATBMP" = "yes"; then | |
37950 | cat >>confdefs.h <<\_ACEOF | |
37951 | #define wxUSE_STATBMP 1 | |
37952 | _ACEOF | |
37953 | ||
37954 | USES_CONTROLS=1 | |
37955 | fi | |
37956 | ||
37957 | if test "$wxUSE_STATBOX" = "yes"; then | |
37958 | cat >>confdefs.h <<\_ACEOF | |
37959 | #define wxUSE_STATBOX 1 | |
37960 | _ACEOF | |
37961 | ||
37962 | USES_CONTROLS=1 | |
37963 | fi | |
37964 | ||
37965 | if test "$wxUSE_STATTEXT" = "yes"; then | |
37966 | cat >>confdefs.h <<\_ACEOF | |
37967 | #define wxUSE_STATTEXT 1 | |
37968 | _ACEOF | |
37969 | ||
37970 | USES_CONTROLS=1 | |
37971 | fi | |
37972 | ||
37973 | if test "$wxUSE_STATLINE" = "yes"; then | |
37974 | cat >>confdefs.h <<\_ACEOF | |
37975 | #define wxUSE_STATLINE 1 | |
37976 | _ACEOF | |
37977 | ||
37978 | USES_CONTROLS=1 | |
37979 | fi | |
37980 | ||
37981 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
37982 | cat >>confdefs.h <<\_ACEOF |
37983 | #define wxUSE_NATIVE_STATUSBAR 1 | |
37984 | _ACEOF | |
37985 | ||
a848cd7e SC |
37986 | cat >>confdefs.h <<\_ACEOF |
37987 | #define wxUSE_STATUSBAR 1 | |
37988 | _ACEOF | |
37989 | ||
37990 | USES_CONTROLS=1 | |
37991 | ||
37992 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
37993 | fi | |
37994 | ||
37995 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
37996 | cat >>confdefs.h <<\_ACEOF | |
37997 | #define wxUSE_TAB_DIALOG 1 | |
37998 | _ACEOF | |
37999 | ||
a848cd7e SC |
38000 | fi |
38001 | ||
38002 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
38003 | cat >>confdefs.h <<\_ACEOF | |
38004 | #define wxUSE_TEXTCTRL 1 | |
38005 | _ACEOF | |
38006 | ||
38007 | USES_CONTROLS=1 | |
38008 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
38009 | fi | |
38010 | ||
38011 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
38012 | if test "$wxUSE_COCOA" = 1 ; then | |
38013 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
38014 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
38015 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
38016 | else |
38017 | if test "$wxUSE_PM" = 1; then | |
38018 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
38019 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
38020 | wxUSE_TOGGLEBTN=no | |
38021 | fi | |
a848cd7e SC |
38022 | fi |
38023 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
38024 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
38025 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
38026 | wxUSE_TOGGLEBTN=no | |
38027 | fi | |
38028 | ||
38029 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
38030 | cat >>confdefs.h <<\_ACEOF | |
38031 | #define wxUSE_TOGGLEBTN 1 | |
38032 | _ACEOF | |
38033 | ||
38034 | USES_CONTROLS=1 | |
38035 | fi | |
38036 | fi | |
38037 | ||
38038 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
38039 | cat >>confdefs.h <<\_ACEOF | |
38040 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
38041 | _ACEOF | |
38042 | ||
38043 | wxUSE_TOOLBAR="yes" | |
38044 | USES_CONTROLS=1 | |
38045 | fi | |
38046 | ||
38047 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
38048 | cat >>confdefs.h <<\_ACEOF | |
38049 | #define wxUSE_TOOLBAR 1 | |
38050 | _ACEOF | |
38051 | ||
38052 | USES_CONTROLS=1 | |
38053 | ||
38054 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
38055 | wxUSE_TOOLBAR_NATIVE="yes" | |
38056 | fi | |
38057 | ||
38058 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
38059 | cat >>confdefs.h <<\_ACEOF | |
38060 | #define wxUSE_TOOLBAR_NATIVE 1 | |
38061 | _ACEOF | |
38062 | ||
38063 | USES_CONTROLS=1 | |
38064 | fi | |
38065 | ||
38066 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
38067 | fi | |
38068 | ||
38069 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
38070 | if test "$wxUSE_MOTIF" = 1; then | |
38071 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
38072 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
38073 | else | |
38074 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
38075 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
38076 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
38077 | else | |
38078 | cat >>confdefs.h <<\_ACEOF | |
38079 | #define wxUSE_TOOLTIPS 1 | |
38080 | _ACEOF | |
38081 | ||
38082 | fi | |
38083 | fi | |
38084 | fi | |
38085 | ||
38086 | if test "$wxUSE_TREECTRL" = "yes"; then | |
38087 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
38088 | cat >>confdefs.h <<\_ACEOF | |
38089 | #define wxUSE_TREECTRL 1 | |
38090 | _ACEOF | |
38091 | ||
38092 | USES_CONTROLS=1 | |
38093 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
38094 | else | |
38095 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
38096 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
38097 | fi | |
38098 | fi | |
38099 | ||
38100 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
38101 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
38102 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
38103 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
38104 | else | |
38105 | if test "$wxUSE_PM" = 1; then | |
38106 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
38107 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
38108 | else | |
38109 | cat >>confdefs.h <<\_ACEOF | |
38110 | #define wxUSE_POPUPWIN 1 | |
38111 | _ACEOF | |
38112 | ||
38113 | ||
38114 | USES_CONTROLS=1 | |
38115 | fi | |
38116 | fi | |
38117 | fi | |
38118 | ||
0dcd06dd | 38119 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
38120 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
38121 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
38122 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
38123 | else | |
38124 | cat >>confdefs.h <<\_ACEOF | |
38125 | #define wxUSE_DIALUP_MANAGER 1 | |
38126 | _ACEOF | |
38127 | ||
38128 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
38129 | fi | |
38130 | fi | |
38131 | ||
a848cd7e SC |
38132 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
38133 | if test "$wxUSE_PM" = 1; then | |
38134 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
38135 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
38136 | else | |
38137 | cat >>confdefs.h <<\_ACEOF | |
38138 | #define wxUSE_TIPWINDOW 1 | |
38139 | _ACEOF | |
38140 | ||
38141 | fi | |
38142 | fi | |
38143 | ||
38144 | if test "$USES_CONTROLS" = 1; then | |
38145 | cat >>confdefs.h <<\_ACEOF | |
38146 | #define wxUSE_CONTROLS 1 | |
38147 | _ACEOF | |
38148 | ||
38149 | fi | |
38150 | ||
38151 | ||
38152 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
38153 | cat >>confdefs.h <<\_ACEOF | |
38154 | #define wxUSE_ACCESSIBILITY 1 | |
38155 | _ACEOF | |
38156 | ||
38157 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
38158 | fi | |
38159 | ||
38160 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
38161 | cat >>confdefs.h <<\_ACEOF | |
38162 | #define wxUSE_DRAGIMAGE 1 | |
38163 | _ACEOF | |
38164 | ||
38165 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
38166 | fi | |
38167 | ||
38168 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
38169 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
38170 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
38171 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
38172 | else | |
38173 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38174 | #define wxUSE_EXCEPTIONS 1 |
38175 | _ACEOF | |
38176 | ||
07bea8f0 VS |
38177 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
38178 | fi | |
a848cd7e SC |
38179 | fi |
38180 | ||
38181 | USE_HTML=0 | |
38182 | if test "$wxUSE_HTML" = "yes"; then | |
38183 | cat >>confdefs.h <<\_ACEOF | |
38184 | #define wxUSE_HTML 1 | |
38185 | _ACEOF | |
38186 | ||
38187 | USE_HTML=1 | |
38188 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
38189 | if test "$wxUSE_MAC" = 1; then |
38190 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
38191 | fi | |
a848cd7e | 38192 | fi |
646b6ec1 | 38193 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 38194 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
38195 | old_CPPFLAGS="$CPPFLAGS" |
38196 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
38197 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
38198 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
38199 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
38200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38201 | else | |
38202 | cat >conftest.$ac_ext <<_ACEOF | |
38203 | /* confdefs.h. */ | |
38204 | _ACEOF | |
38205 | cat confdefs.h >>conftest.$ac_ext | |
38206 | cat >>conftest.$ac_ext <<_ACEOF | |
38207 | /* end confdefs.h. */ | |
38208 | #include <Carbon/Carbon.h> | |
38209 | ||
38210 | #include <WebKit/HIWebView.h> | |
38211 | _ACEOF | |
38212 | rm -f conftest.$ac_objext | |
38213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38214 | (eval $ac_compile) 2>conftest.er1 | |
38215 | ac_status=$? | |
38216 | grep -v '^ *+' conftest.er1 >conftest.err | |
38217 | rm -f conftest.er1 | |
38218 | cat conftest.err >&5 | |
38219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38220 | (exit $ac_status); } && | |
89be85c2 VS |
38221 | { ac_try='test -z "$ac_c_werror_flag" |
38222 | || test ! -s conftest.err' | |
07bea8f0 VS |
38223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38224 | (eval $ac_try) 2>&5 | |
38225 | ac_status=$? | |
38226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38227 | (exit $ac_status); }; } && | |
38228 | { ac_try='test -s conftest.$ac_objext' | |
38229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38230 | (eval $ac_try) 2>&5 | |
38231 | ac_status=$? | |
38232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38233 | (exit $ac_status); }; }; then | |
38234 | ac_cv_header_WebKit_HIWebView_h=yes | |
38235 | else | |
38236 | echo "$as_me: failed program was:" >&5 | |
38237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38238 | ||
38239 | ac_cv_header_WebKit_HIWebView_h=no | |
38240 | fi | |
38241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38242 | fi | |
38243 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
38244 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
38245 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
38246 | ||
38247 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
38248 | #define wxUSE_WEBKIT 1 |
38249 | _ACEOF | |
38250 | ||
07bea8f0 VS |
38251 | WEBKIT_LINK="-framework WebKit" |
38252 | ||
38253 | else | |
38254 | ||
38255 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
38256 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
38257 | wxUSE_WEBKIT=no | |
38258 | ||
646b6ec1 VS |
38259 | fi |
38260 | ||
07bea8f0 VS |
38261 | |
38262 | CPPFLAGS="$old_CPPFLAGS" | |
38263 | elif test "$wxUSE_COCOA" = 1; then | |
38264 | cat >>confdefs.h <<\_ACEOF | |
38265 | #define wxUSE_WEBKIT 1 | |
38266 | _ACEOF | |
38267 | ||
38268 | else | |
38269 | wxUSE_WEBKIT=no | |
38270 | fi | |
38271 | fi | |
38272 | ||
9a8f0513 VS |
38273 | USE_XRC=0 |
38274 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
38275 | if test "$wxUSE_XML" != "yes"; then |
38276 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
38277 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
38278 | wxUSE_XRC=no | |
38279 | else | |
38280 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
38281 | #define wxUSE_XRC 1 |
38282 | _ACEOF | |
38283 | ||
d2ebf0b7 VS |
38284 | USE_XRC=1 |
38285 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
38286 | fi | |
9a8f0513 | 38287 | fi |
07bea8f0 | 38288 | |
a848cd7e SC |
38289 | if test "$wxUSE_MENUS" = "yes"; then |
38290 | cat >>confdefs.h <<\_ACEOF | |
38291 | #define wxUSE_MENUS 1 | |
38292 | _ACEOF | |
38293 | ||
38294 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
38295 | fi | |
38296 | ||
38297 | if test "$wxUSE_METAFILE" = "yes"; then | |
38298 | cat >>confdefs.h <<\_ACEOF | |
38299 | #define wxUSE_METAFILE 1 | |
38300 | _ACEOF | |
38301 | ||
38302 | fi | |
38303 | ||
38304 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
38305 | cat >>confdefs.h <<\_ACEOF | |
38306 | #define wxUSE_MIMETYPE 1 | |
38307 | _ACEOF | |
38308 | ||
38309 | fi | |
38310 | ||
38311 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
38312 | cat >>confdefs.h <<\_ACEOF | |
38313 | #define wxUSE_MINIFRAME 1 | |
38314 | _ACEOF | |
38315 | ||
38316 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
38317 | fi | |
38318 | ||
38319 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
38320 | cat >>confdefs.h <<\_ACEOF | |
38321 | #define wxUSE_SYSTEM_OPTIONS 1 | |
38322 | _ACEOF | |
38323 | ||
38324 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 38325 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
38326 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
38327 | fi | |
38328 | fi | |
38329 | ||
38330 | ||
38331 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
38332 | cat >>confdefs.h <<\_ACEOF | |
38333 | #define wxUSE_VALIDATORS 1 | |
38334 | _ACEOF | |
38335 | ||
38336 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
38337 | fi | |
38338 | ||
38339 | if test "$wxUSE_PALETTE" = "yes" ; then | |
38340 | cat >>confdefs.h <<\_ACEOF | |
38341 | #define wxUSE_PALETTE 1 | |
38342 | _ACEOF | |
38343 | ||
38344 | fi | |
38345 | ||
38346 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
38347 | LIBS=" -lunicows $LIBS" | |
38348 | fi | |
38349 | ||
38350 | ||
38351 | if test "$wxUSE_IMAGE" = "yes" ; then | |
38352 | cat >>confdefs.h <<\_ACEOF | |
38353 | #define wxUSE_IMAGE 1 | |
38354 | _ACEOF | |
38355 | ||
38356 | ||
38357 | if test "$wxUSE_GIF" = "yes" ; then | |
38358 | cat >>confdefs.h <<\_ACEOF | |
38359 | #define wxUSE_GIF 1 | |
38360 | _ACEOF | |
38361 | ||
38362 | fi | |
38363 | ||
38364 | if test "$wxUSE_PCX" = "yes" ; then | |
38365 | cat >>confdefs.h <<\_ACEOF | |
38366 | #define wxUSE_PCX 1 | |
38367 | _ACEOF | |
38368 | ||
38369 | fi | |
38370 | ||
38371 | if test "$wxUSE_IFF" = "yes" ; then | |
38372 | cat >>confdefs.h <<\_ACEOF | |
38373 | #define wxUSE_IFF 1 | |
38374 | _ACEOF | |
38375 | ||
38376 | fi | |
38377 | ||
38378 | if test "$wxUSE_PNM" = "yes" ; then | |
38379 | cat >>confdefs.h <<\_ACEOF | |
38380 | #define wxUSE_PNM 1 | |
38381 | _ACEOF | |
38382 | ||
38383 | fi | |
38384 | ||
38385 | if test "$wxUSE_XPM" = "yes" ; then | |
38386 | cat >>confdefs.h <<\_ACEOF | |
38387 | #define wxUSE_XPM 1 | |
38388 | _ACEOF | |
38389 | ||
38390 | fi | |
38391 | ||
38392 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
38393 | cat >>confdefs.h <<\_ACEOF | |
38394 | #define wxUSE_ICO_CUR 1 | |
38395 | _ACEOF | |
38396 | ||
38397 | fi | |
38398 | fi | |
38399 | ||
38400 | ||
38401 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
38402 | cat >>confdefs.h <<\_ACEOF | |
38403 | #define wxUSE_CHOICEDLG 1 | |
38404 | _ACEOF | |
38405 | ||
38406 | fi | |
38407 | ||
38408 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
38409 | cat >>confdefs.h <<\_ACEOF | |
38410 | #define wxUSE_COLOURDLG 1 | |
38411 | _ACEOF | |
38412 | ||
38413 | fi | |
38414 | ||
38415 | if test "$wxUSE_FILEDLG" = "yes"; then | |
38416 | cat >>confdefs.h <<\_ACEOF | |
38417 | #define wxUSE_FILEDLG 1 | |
38418 | _ACEOF | |
38419 | ||
38420 | fi | |
38421 | ||
38422 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
38423 | cat >>confdefs.h <<\_ACEOF | |
38424 | #define wxUSE_FINDREPLDLG 1 | |
38425 | _ACEOF | |
38426 | ||
38427 | fi | |
38428 | ||
38429 | if test "$wxUSE_FONTDLG" = "yes"; then | |
38430 | cat >>confdefs.h <<\_ACEOF | |
38431 | #define wxUSE_FONTDLG 1 | |
38432 | _ACEOF | |
38433 | ||
38434 | fi | |
38435 | ||
38436 | if test "$wxUSE_DIRDLG" = "yes"; then | |
38437 | if test "$wxUSE_TREECTRL" != "yes"; then | |
38438 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
38439 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
38440 | else | |
38441 | cat >>confdefs.h <<\_ACEOF | |
38442 | #define wxUSE_DIRDLG 1 | |
38443 | _ACEOF | |
38444 | ||
38445 | fi | |
38446 | fi | |
38447 | ||
38448 | if test "$wxUSE_MSGDLG" = "yes"; then | |
38449 | cat >>confdefs.h <<\_ACEOF | |
38450 | #define wxUSE_MSGDLG 1 | |
38451 | _ACEOF | |
38452 | ||
38453 | fi | |
38454 | ||
38455 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
38456 | cat >>confdefs.h <<\_ACEOF | |
38457 | #define wxUSE_NUMBERDLG 1 | |
38458 | _ACEOF | |
38459 | ||
38460 | fi | |
38461 | ||
38462 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
38463 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38464 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
38465 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
38466 | else | |
38467 | cat >>confdefs.h <<\_ACEOF | |
38468 | #define wxUSE_PROGRESSDLG 1 | |
38469 | _ACEOF | |
38470 | ||
38471 | fi | |
38472 | fi | |
38473 | ||
38474 | if test "$wxUSE_SPLASH" = "yes"; then | |
38475 | cat >>confdefs.h <<\_ACEOF | |
38476 | #define wxUSE_SPLASH 1 | |
38477 | _ACEOF | |
38478 | ||
2057db16 | 38479 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
38480 | fi |
38481 | ||
38482 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
38483 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38484 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
38485 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
38486 | else | |
38487 | cat >>confdefs.h <<\_ACEOF | |
38488 | #define wxUSE_STARTUP_TIPS 1 | |
38489 | _ACEOF | |
38490 | ||
38491 | fi | |
38492 | fi | |
38493 | ||
38494 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
38495 | cat >>confdefs.h <<\_ACEOF | |
38496 | #define wxUSE_TEXTDLG 1 | |
38497 | _ACEOF | |
38498 | ||
38499 | fi | |
38500 | ||
38501 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
38502 | cat >>confdefs.h <<\_ACEOF | |
38503 | #define wxUSE_WIZARDDLG 1 | |
38504 | _ACEOF | |
38505 | ||
38506 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
38507 | fi | |
38508 | ||
38509 | ||
ce756cb0 RN |
38510 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
38511 | if test "$wxUSE_MSW" = 1; then | |
38512 | wxUSE_DIRECTSHOW="yes" | |
38513 | ||
38514 | for ac_header in dshow.h | |
38515 | do | |
38516 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38517 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38518 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38519 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38521 | else | |
38522 | cat >conftest.$ac_ext <<_ACEOF | |
38523 | /* confdefs.h. */ | |
38524 | _ACEOF | |
38525 | cat confdefs.h >>conftest.$ac_ext | |
38526 | cat >>conftest.$ac_ext <<_ACEOF | |
38527 | /* end confdefs.h. */ | |
38528 | #include <windows.h> | |
38529 | ||
38530 | #include <$ac_header> | |
38531 | _ACEOF | |
38532 | rm -f conftest.$ac_objext | |
38533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38534 | (eval $ac_compile) 2>conftest.er1 | |
38535 | ac_status=$? | |
38536 | grep -v '^ *+' conftest.er1 >conftest.err | |
38537 | rm -f conftest.er1 | |
38538 | cat conftest.err >&5 | |
38539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38540 | (exit $ac_status); } && | |
38541 | { ac_try='test -z "$ac_c_werror_flag" | |
38542 | || test ! -s conftest.err' | |
38543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38544 | (eval $ac_try) 2>&5 | |
38545 | ac_status=$? | |
38546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38547 | (exit $ac_status); }; } && | |
38548 | { ac_try='test -s conftest.$ac_objext' | |
38549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38550 | (eval $ac_try) 2>&5 | |
38551 | ac_status=$? | |
38552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38553 | (exit $ac_status); }; }; then | |
38554 | eval "$as_ac_Header=yes" | |
38555 | else | |
38556 | echo "$as_me: failed program was:" >&5 | |
38557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38558 | ||
38559 | eval "$as_ac_Header=no" | |
38560 | fi | |
38561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38562 | fi | |
38563 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38564 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38565 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38566 | cat >>confdefs.h <<_ACEOF | |
38567 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38568 | _ACEOF | |
38569 | ||
38570 | else | |
38571 | ||
38572 | wxUSE_DIRECTSHOW="no" | |
38573 | { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5 | |
38574 | echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;} | |
38575 | ||
38576 | fi | |
38577 | ||
38578 | done | |
38579 | ||
38580 | ||
38581 | if test "$wxUSE_DIRECTSHOW" = "yes"; then | |
38582 | cat >>confdefs.h <<\_ACEOF | |
38583 | #define wxUSE_DIRECTSHOW 1 | |
38584 | _ACEOF | |
38585 | ||
38586 | LIBS="$LIBS -lstrmiids" | |
38587 | fi | |
38588 | fi | |
38589 | ||
38590 | if test "$wxUSE_GTK" = 1; then | |
38591 | wxUSE_GSTREAMER="yes" | |
38592 | ||
ce756cb0 | 38593 | |
dae87f93 | 38594 | succeeded=no |
ce756cb0 | 38595 | |
dae87f93 RN |
38596 | if test -z "$PKG_CONFIG"; then |
38597 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
38598 | set dummy pkg-config; ac_word=$2 | |
38599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38601 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
38602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38603 | else | |
38604 | case $PKG_CONFIG in | |
38605 | [\\/]* | ?:[\\/]*) | |
38606 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
38607 | ;; | |
38608 | *) | |
38609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38610 | for as_dir in $PATH | |
38611 | do | |
38612 | IFS=$as_save_IFS | |
38613 | test -z "$as_dir" && as_dir=. | |
38614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38616 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
38617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38618 | break 2 | |
38619 | fi | |
38620 | done | |
38621 | done | |
38622 | ||
38623 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
38624 | ;; | |
38625 | esac | |
38626 | fi | |
38627 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
38628 | ||
38629 | if test -n "$PKG_CONFIG"; then | |
38630 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
38631 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
38632 | else | |
38633 | echo "$as_me:$LINENO: result: no" >&5 | |
38634 | echo "${ECHO_T}no" >&6 | |
38635 | fi | |
38636 | ||
38637 | fi | |
38638 | ||
38639 | if test "$PKG_CONFIG" = "no" ; then | |
38640 | echo "*** The pkg-config script could not be found. Make sure it is" | |
38641 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
38642 | echo "*** to the full path to pkg-config." | |
38643 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
38644 | else | |
38645 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
38646 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
38647 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
38648 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
38649 | ||
38650 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
38651 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 38652 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 38653 | succeeded=yes |
ce756cb0 | 38654 | |
dae87f93 RN |
38655 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
38656 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
38657 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
38658 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
38659 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
38660 | ||
38661 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
38662 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
38663 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
38664 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
38665 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
38666 | else | |
38667 | GSTREAMER_CFLAGS="" | |
38668 | GSTREAMER_LIBS="" | |
38669 | ## If we have a custom action on failure, don't print errors, but | |
38670 | ## do set a variable so people can do so. | |
38671 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 38672 | |
dae87f93 RN |
38673 | fi |
38674 | ||
38675 | ||
38676 | ||
38677 | else | |
38678 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
38679 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
38680 | fi | |
38681 | fi | |
38682 | ||
38683 | if test $succeeded = yes; then | |
38684 | ||
38685 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
38686 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 38687 | |
ce756cb0 | 38688 | else |
dae87f93 RN |
38689 | |
38690 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
38691 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
38692 | wxUSE_GSTREAMER="no" | |
38693 | ||
38694 | fi | |
38695 | ||
38696 | ||
38697 | ||
38698 | ||
38699 | ||
38700 | if test "x$GST_INSPECT" == "x"; then | |
38701 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
38702 | set dummy gst-inspect; ac_word=$2 | |
38703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38705 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
38706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38707 | else | |
38708 | if test -n "$GST_INSPECT"; then | |
38709 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
38710 | else | |
38711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38712 | for as_dir in $PATH | |
38713 | do | |
38714 | IFS=$as_save_IFS | |
38715 | test -z "$as_dir" && as_dir=. | |
38716 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38717 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38718 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
38719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38720 | break 2 | |
ce756cb0 | 38721 | fi |
dae87f93 RN |
38722 | done |
38723 | done | |
38724 | ||
38725 | fi | |
38726 | fi | |
38727 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
38728 | if test -n "$GST_INSPECT"; then | |
38729 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
38730 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
38731 | else | |
38732 | echo "$as_me:$LINENO: result: no" >&5 | |
38733 | echo "${ECHO_T}no" >&6 | |
38734 | fi | |
38735 | ||
38736 | fi | |
38737 | ||
38738 | if test "x$GST_INSPECT" != "x"; then | |
38739 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
38740 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
38741 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
38742 | echo "$as_me:$LINENO: result: found." >&5 | |
38743 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 38744 | |
ce756cb0 | 38745 | else |
dae87f93 RN |
38746 | echo "$as_me:$LINENO: result: not found." >&5 |
38747 | echo "${ECHO_T}not found." >&6 | |
38748 | ||
38749 | wxUSE_GSTREAMER="no" | |
38750 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
38751 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
38752 | ||
38753 | fi | |
38754 | fi | |
38755 | ||
38756 | ||
38757 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
38758 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
38759 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
38760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38761 | else | |
38762 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
38763 | /* confdefs.h. */ |
38764 | _ACEOF | |
38765 | cat confdefs.h >>conftest.$ac_ext | |
38766 | cat >>conftest.$ac_ext <<_ACEOF | |
38767 | /* end confdefs.h. */ | |
dae87f93 | 38768 | #include <gst/gst.h> |
ce756cb0 | 38769 | |
dae87f93 | 38770 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
38771 | _ACEOF |
38772 | rm -f conftest.$ac_objext | |
38773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38774 | (eval $ac_compile) 2>conftest.er1 | |
38775 | ac_status=$? | |
38776 | grep -v '^ *+' conftest.er1 >conftest.err | |
38777 | rm -f conftest.er1 | |
38778 | cat conftest.err >&5 | |
38779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38780 | (exit $ac_status); } && | |
38781 | { ac_try='test -z "$ac_c_werror_flag" | |
38782 | || test ! -s conftest.err' | |
38783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38784 | (eval $ac_try) 2>&5 | |
38785 | ac_status=$? | |
38786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38787 | (exit $ac_status); }; } && | |
38788 | { ac_try='test -s conftest.$ac_objext' | |
38789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38790 | (eval $ac_try) 2>&5 | |
38791 | ac_status=$? | |
38792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38793 | (exit $ac_status); }; }; then | |
dae87f93 | 38794 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
38795 | else |
38796 | echo "$as_me: failed program was:" >&5 | |
38797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38798 | ||
dae87f93 | 38799 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
38800 | fi |
38801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
38802 | fi |
38803 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
38804 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
38805 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
38806 | : | |
38807 | else | |
ce756cb0 | 38808 | |
dae87f93 RN |
38809 | wxUSE_GSTREAMER="no" |
38810 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
38811 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 38812 | |
dae87f93 | 38813 | fi |
ce756cb0 | 38814 | |
dae87f93 RN |
38815 | |
38816 | ||
38817 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
38818 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
38819 | ||
38820 | ac_find_libraries= | |
38821 | for ac_dir in $SEARCH_LIB /usr/lib; | |
38822 | do | |
38823 | for ac_extension in a so sl dylib; do | |
38824 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then | |
38825 | ac_find_libraries=$ac_dir | |
38826 | break 2 | |
38827 | fi | |
38828 | done | |
38829 | done | |
38830 | ||
ce756cb0 | 38831 | |
dae87f93 RN |
38832 | if test "$ac_find_libraries" = "" ; then |
38833 | echo "$as_me:$LINENO: result: no" >&5 | |
38834 | echo "${ECHO_T}no" >&6 | |
38835 | wxUSE_GSTREAMER="no" | |
38836 | else | |
38837 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 38838 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 38839 | fi |
ce756cb0 | 38840 | |
dae87f93 RN |
38841 | if test "$wxUSE_GSTREAMER" = "yes"; then |
38842 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
38843 | #define wxUSE_GSTREAMER 1 |
38844 | _ACEOF | |
38845 | ||
dae87f93 RN |
38846 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
38847 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
38848 | fi |
38849 | fi | |
38850 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
38851 | cat >>confdefs.h <<\_ACEOF | |
38852 | #define wxUSE_MEDIACTRL 1 | |
38853 | _ACEOF | |
38854 | ||
38855 | fi | |
38856 | ||
38857 | ||
a848cd7e SC |
38858 | if test "$cross_compiling" = "yes"; then |
38859 | OSINFO="\"$host\"" | |
38860 | else | |
38861 | OSINFO=`uname -s -r -m` | |
38862 | OSINFO="\"$OSINFO\"" | |
38863 | fi | |
38864 | ||
38865 | cat >>confdefs.h <<_ACEOF | |
38866 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
38867 | _ACEOF | |
38868 | ||
38869 | ||
38870 | ||
38871 | if test "x$prefix" != "xNONE"; then | |
38872 | wxPREFIX=$prefix | |
38873 | else | |
38874 | wxPREFIX=$ac_default_prefix | |
38875 | fi | |
38876 | ||
38877 | cat >>confdefs.h <<_ACEOF | |
38878 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
38879 | _ACEOF | |
38880 | ||
38881 | ||
a848cd7e SC |
38882 | |
38883 | ||
38884 | CORE_BASE_LIBS="net base" | |
38885 | CORE_GUI_LIBS="adv core" | |
38886 | ||
38887 | if test "$wxUSE_XML" = "yes" ; then | |
38888 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
38889 | fi | |
38890 | if test "$wxUSE_ODBC" != "no" ; then | |
38891 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
38892 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
38893 | fi | |
38894 | if test "$wxUSE_HTML" = "yes" ; then | |
38895 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
38896 | fi | |
9a8f0513 VS |
38897 | if test "$wxUSE_XRC" = "yes" ; then |
38898 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
38899 | fi | |
a848cd7e SC |
38900 | |
38901 | if test "$wxUSE_GUI" != "yes"; then | |
38902 | CORE_GUI_LIBS="" | |
38903 | fi | |
38904 | ||
38905 | ||
38906 | ||
38907 | ||
38908 | ||
38909 | ||
38910 | ||
38911 | ||
38912 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 38913 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
38914 | if test "$USE_DARWIN" = 1; then |
38915 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
38916 | else | |
38917 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
38918 | fi | |
07bea8f0 | 38919 | fi |
5dcf30a0 | 38920 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
38921 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
38922 | else | |
38923 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 38924 | fi |
a848cd7e SC |
38925 | fi |
38926 | if test "$wxUSE_COCOA" = 1 ; then | |
f7e98dee | 38927 | LDFLAGS="$LDFLAGS -framework Cocoa" |
4fc81cbc RN |
38928 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
38929 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
38930 | fi | |
a848cd7e SC |
38931 | fi |
38932 | ||
38933 | ||
38934 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
38935 | ||
38936 | have_cos=0 | |
38937 | have_floor=0 | |
38938 | ||
38939 | for ac_func in cos | |
38940 | do | |
38941 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38942 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38943 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38944 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38946 | else | |
38947 | cat >conftest.$ac_ext <<_ACEOF | |
38948 | /* confdefs.h. */ | |
38949 | _ACEOF | |
38950 | cat confdefs.h >>conftest.$ac_ext | |
38951 | cat >>conftest.$ac_ext <<_ACEOF | |
38952 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38953 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38954 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38955 | #define $ac_func innocuous_$ac_func | |
38956 | ||
a848cd7e SC |
38957 | /* System header to define __stub macros and hopefully few prototypes, |
38958 | which can conflict with char $ac_func (); below. | |
38959 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38960 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38961 | |
a848cd7e SC |
38962 | #ifdef __STDC__ |
38963 | # include <limits.h> | |
38964 | #else | |
38965 | # include <assert.h> | |
38966 | #endif | |
ac1cb8d3 VS |
38967 | |
38968 | #undef $ac_func | |
38969 | ||
a848cd7e SC |
38970 | /* Override any gcc2 internal prototype to avoid an error. */ |
38971 | #ifdef __cplusplus | |
38972 | extern "C" | |
38973 | { | |
38974 | #endif | |
38975 | /* We use char because int might match the return type of a gcc2 | |
38976 | builtin and then its argument prototype would still apply. */ | |
38977 | char $ac_func (); | |
38978 | /* The GNU C library defines this for functions which it implements | |
38979 | to always fail with ENOSYS. Some functions are actually named | |
38980 | something starting with __ and the normal name is an alias. */ | |
38981 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38982 | choke me | |
38983 | #else | |
38984 | char (*f) () = $ac_func; | |
38985 | #endif | |
38986 | #ifdef __cplusplus | |
38987 | } | |
38988 | #endif | |
38989 | ||
38990 | int | |
38991 | main () | |
38992 | { | |
38993 | return f != $ac_func; | |
38994 | ; | |
38995 | return 0; | |
38996 | } | |
38997 | _ACEOF | |
38998 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39000 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39001 | ac_status=$? |
ac1cb8d3 VS |
39002 | grep -v '^ *+' conftest.er1 >conftest.err |
39003 | rm -f conftest.er1 | |
39004 | cat conftest.err >&5 | |
a848cd7e SC |
39005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39006 | (exit $ac_status); } && | |
89be85c2 VS |
39007 | { ac_try='test -z "$ac_c_werror_flag" |
39008 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39010 | (eval $ac_try) 2>&5 | |
39011 | ac_status=$? | |
39012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39013 | (exit $ac_status); }; } && | |
39014 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39016 | (eval $ac_try) 2>&5 | |
39017 | ac_status=$? | |
39018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39019 | (exit $ac_status); }; }; then | |
39020 | eval "$as_ac_var=yes" | |
39021 | else | |
39022 | echo "$as_me: failed program was:" >&5 | |
39023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39024 | ||
39025 | eval "$as_ac_var=no" | |
39026 | fi | |
ac1cb8d3 VS |
39027 | rm -f conftest.err conftest.$ac_objext \ |
39028 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39029 | fi |
39030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39031 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39032 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39033 | cat >>confdefs.h <<_ACEOF | |
39034 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39035 | _ACEOF | |
39036 | have_cos=1 | |
39037 | fi | |
39038 | done | |
39039 | ||
39040 | ||
39041 | for ac_func in floor | |
39042 | do | |
39043 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39044 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39045 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39046 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39048 | else | |
39049 | cat >conftest.$ac_ext <<_ACEOF | |
39050 | /* confdefs.h. */ | |
39051 | _ACEOF | |
39052 | cat confdefs.h >>conftest.$ac_ext | |
39053 | cat >>conftest.$ac_ext <<_ACEOF | |
39054 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39055 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39056 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39057 | #define $ac_func innocuous_$ac_func | |
39058 | ||
a848cd7e SC |
39059 | /* System header to define __stub macros and hopefully few prototypes, |
39060 | which can conflict with char $ac_func (); below. | |
39061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39062 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39063 | |
a848cd7e SC |
39064 | #ifdef __STDC__ |
39065 | # include <limits.h> | |
39066 | #else | |
39067 | # include <assert.h> | |
39068 | #endif | |
ac1cb8d3 VS |
39069 | |
39070 | #undef $ac_func | |
39071 | ||
a848cd7e SC |
39072 | /* Override any gcc2 internal prototype to avoid an error. */ |
39073 | #ifdef __cplusplus | |
39074 | extern "C" | |
39075 | { | |
39076 | #endif | |
39077 | /* We use char because int might match the return type of a gcc2 | |
39078 | builtin and then its argument prototype would still apply. */ | |
39079 | char $ac_func (); | |
39080 | /* The GNU C library defines this for functions which it implements | |
39081 | to always fail with ENOSYS. Some functions are actually named | |
39082 | something starting with __ and the normal name is an alias. */ | |
39083 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39084 | choke me | |
39085 | #else | |
39086 | char (*f) () = $ac_func; | |
39087 | #endif | |
39088 | #ifdef __cplusplus | |
39089 | } | |
39090 | #endif | |
39091 | ||
39092 | int | |
39093 | main () | |
39094 | { | |
39095 | return f != $ac_func; | |
39096 | ; | |
39097 | return 0; | |
39098 | } | |
39099 | _ACEOF | |
39100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39102 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39103 | ac_status=$? |
ac1cb8d3 VS |
39104 | grep -v '^ *+' conftest.er1 >conftest.err |
39105 | rm -f conftest.er1 | |
39106 | cat conftest.err >&5 | |
a848cd7e SC |
39107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39108 | (exit $ac_status); } && | |
89be85c2 VS |
39109 | { ac_try='test -z "$ac_c_werror_flag" |
39110 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39112 | (eval $ac_try) 2>&5 | |
39113 | ac_status=$? | |
39114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39115 | (exit $ac_status); }; } && | |
39116 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39118 | (eval $ac_try) 2>&5 | |
39119 | ac_status=$? | |
39120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39121 | (exit $ac_status); }; }; then | |
39122 | eval "$as_ac_var=yes" | |
39123 | else | |
39124 | echo "$as_me: failed program was:" >&5 | |
39125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39126 | ||
39127 | eval "$as_ac_var=no" | |
39128 | fi | |
ac1cb8d3 VS |
39129 | rm -f conftest.err conftest.$ac_objext \ |
39130 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39131 | fi |
39132 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39133 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39134 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39135 | cat >>confdefs.h <<_ACEOF | |
39136 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39137 | _ACEOF | |
39138 | have_floor=1 | |
39139 | fi | |
39140 | done | |
39141 | ||
39142 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
39143 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
39144 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
39145 | echo "$as_me:$LINENO: result: yes" >&5 | |
39146 | echo "${ECHO_T}yes" >&6 | |
39147 | else | |
39148 | echo "$as_me:$LINENO: result: no" >&5 | |
39149 | echo "${ECHO_T}no" >&6 | |
39150 | LIBS="$LIBS -lm" | |
39151 | # use different functions to avoid configure caching | |
39152 | have_sin=0 | |
39153 | have_ceil=0 | |
39154 | ||
39155 | for ac_func in sin | |
39156 | do | |
39157 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39158 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39159 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39160 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39162 | else | |
39163 | cat >conftest.$ac_ext <<_ACEOF | |
39164 | /* confdefs.h. */ | |
39165 | _ACEOF | |
39166 | cat confdefs.h >>conftest.$ac_ext | |
39167 | cat >>conftest.$ac_ext <<_ACEOF | |
39168 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39169 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39170 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39171 | #define $ac_func innocuous_$ac_func | |
39172 | ||
a848cd7e SC |
39173 | /* System header to define __stub macros and hopefully few prototypes, |
39174 | which can conflict with char $ac_func (); below. | |
39175 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39176 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39177 | |
a848cd7e SC |
39178 | #ifdef __STDC__ |
39179 | # include <limits.h> | |
39180 | #else | |
39181 | # include <assert.h> | |
39182 | #endif | |
ac1cb8d3 VS |
39183 | |
39184 | #undef $ac_func | |
39185 | ||
a848cd7e SC |
39186 | /* Override any gcc2 internal prototype to avoid an error. */ |
39187 | #ifdef __cplusplus | |
39188 | extern "C" | |
39189 | { | |
39190 | #endif | |
39191 | /* We use char because int might match the return type of a gcc2 | |
39192 | builtin and then its argument prototype would still apply. */ | |
39193 | char $ac_func (); | |
39194 | /* The GNU C library defines this for functions which it implements | |
39195 | to always fail with ENOSYS. Some functions are actually named | |
39196 | something starting with __ and the normal name is an alias. */ | |
39197 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39198 | choke me | |
39199 | #else | |
39200 | char (*f) () = $ac_func; | |
39201 | #endif | |
39202 | #ifdef __cplusplus | |
39203 | } | |
39204 | #endif | |
39205 | ||
39206 | int | |
39207 | main () | |
39208 | { | |
39209 | return f != $ac_func; | |
39210 | ; | |
39211 | return 0; | |
39212 | } | |
39213 | _ACEOF | |
39214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39216 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39217 | ac_status=$? |
ac1cb8d3 VS |
39218 | grep -v '^ *+' conftest.er1 >conftest.err |
39219 | rm -f conftest.er1 | |
39220 | cat conftest.err >&5 | |
a848cd7e SC |
39221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39222 | (exit $ac_status); } && | |
89be85c2 VS |
39223 | { ac_try='test -z "$ac_c_werror_flag" |
39224 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39226 | (eval $ac_try) 2>&5 | |
39227 | ac_status=$? | |
39228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39229 | (exit $ac_status); }; } && | |
39230 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39232 | (eval $ac_try) 2>&5 | |
39233 | ac_status=$? | |
39234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39235 | (exit $ac_status); }; }; then | |
39236 | eval "$as_ac_var=yes" | |
39237 | else | |
39238 | echo "$as_me: failed program was:" >&5 | |
39239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39240 | ||
39241 | eval "$as_ac_var=no" | |
39242 | fi | |
ac1cb8d3 VS |
39243 | rm -f conftest.err conftest.$ac_objext \ |
39244 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39245 | fi |
39246 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39247 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39248 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39249 | cat >>confdefs.h <<_ACEOF | |
39250 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39251 | _ACEOF | |
39252 | have_sin=1 | |
39253 | fi | |
39254 | done | |
39255 | ||
39256 | ||
39257 | for ac_func in ceil | |
39258 | do | |
39259 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39260 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39261 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39262 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39264 | else | |
39265 | cat >conftest.$ac_ext <<_ACEOF | |
39266 | /* confdefs.h. */ | |
39267 | _ACEOF | |
39268 | cat confdefs.h >>conftest.$ac_ext | |
39269 | cat >>conftest.$ac_ext <<_ACEOF | |
39270 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39271 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39272 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39273 | #define $ac_func innocuous_$ac_func | |
39274 | ||
a848cd7e SC |
39275 | /* System header to define __stub macros and hopefully few prototypes, |
39276 | which can conflict with char $ac_func (); below. | |
39277 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39278 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39279 | |
a848cd7e SC |
39280 | #ifdef __STDC__ |
39281 | # include <limits.h> | |
39282 | #else | |
39283 | # include <assert.h> | |
39284 | #endif | |
ac1cb8d3 VS |
39285 | |
39286 | #undef $ac_func | |
39287 | ||
a848cd7e SC |
39288 | /* Override any gcc2 internal prototype to avoid an error. */ |
39289 | #ifdef __cplusplus | |
39290 | extern "C" | |
39291 | { | |
39292 | #endif | |
39293 | /* We use char because int might match the return type of a gcc2 | |
39294 | builtin and then its argument prototype would still apply. */ | |
39295 | char $ac_func (); | |
39296 | /* The GNU C library defines this for functions which it implements | |
39297 | to always fail with ENOSYS. Some functions are actually named | |
39298 | something starting with __ and the normal name is an alias. */ | |
39299 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39300 | choke me | |
39301 | #else | |
39302 | char (*f) () = $ac_func; | |
39303 | #endif | |
39304 | #ifdef __cplusplus | |
39305 | } | |
39306 | #endif | |
39307 | ||
39308 | int | |
39309 | main () | |
39310 | { | |
39311 | return f != $ac_func; | |
39312 | ; | |
39313 | return 0; | |
39314 | } | |
39315 | _ACEOF | |
39316 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39318 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39319 | ac_status=$? |
ac1cb8d3 VS |
39320 | grep -v '^ *+' conftest.er1 >conftest.err |
39321 | rm -f conftest.er1 | |
39322 | cat conftest.err >&5 | |
a848cd7e SC |
39323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39324 | (exit $ac_status); } && | |
89be85c2 VS |
39325 | { ac_try='test -z "$ac_c_werror_flag" |
39326 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39328 | (eval $ac_try) 2>&5 | |
39329 | ac_status=$? | |
39330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39331 | (exit $ac_status); }; } && | |
39332 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39334 | (eval $ac_try) 2>&5 | |
39335 | ac_status=$? | |
39336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39337 | (exit $ac_status); }; }; then | |
39338 | eval "$as_ac_var=yes" | |
39339 | else | |
39340 | echo "$as_me: failed program was:" >&5 | |
39341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39342 | ||
39343 | eval "$as_ac_var=no" | |
39344 | fi | |
ac1cb8d3 VS |
39345 | rm -f conftest.err conftest.$ac_objext \ |
39346 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39347 | fi |
39348 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39349 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39350 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39351 | cat >>confdefs.h <<_ACEOF | |
39352 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39353 | _ACEOF | |
39354 | have_ceil=1 | |
39355 | fi | |
39356 | done | |
39357 | ||
39358 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
39359 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
39360 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
39361 | echo "$as_me:$LINENO: result: yes" >&5 | |
39362 | echo "${ECHO_T}yes" >&6 | |
39363 | else | |
39364 | echo "$as_me:$LINENO: result: no" >&5 | |
39365 | echo "${ECHO_T}no" >&6 | |
39366 | # not sure we should warn the user, crash, etc. | |
39367 | fi | |
39368 | fi | |
39369 | ||
39370 | if test "$wxUSE_GUI" = "yes"; then | |
39371 | ||
39372 | ||
39373 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
39374 | drawing dynamic erase event exec font image \ | |
39375 | minimal propsize rotate shaped widgets render" | |
39376 | ||
39377 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
39378 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
39379 | fi | |
39380 | else | |
39381 | SAMPLES_SUBDIRS="console" | |
39382 | fi | |
39383 | ||
39384 | ||
ceec2216 | 39385 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
39386 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
39387 | ||
39388 | if test "$GXX" = yes ; then | |
5294a27e VZ |
39389 | CWARNINGS="-Wall" |
39390 | CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy" | |
a848cd7e SC |
39391 | fi |
39392 | ||
39393 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
39394 | ||
0c3c69fc | 39395 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 39396 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 39397 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 39398 | |
95986553 DE |
39399 | if test "x$MWCC" = "xyes"; then |
39400 | ||
39401 | CC="$CC -cwd source -I-" | |
39402 | CXX="$CXX -cwd source -I-" | |
39403 | fi | |
39404 | ||
a848cd7e | 39405 | |
0c3c69fc | 39406 | LIBS=`echo $LIBS` |
a848cd7e SC |
39407 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
39408 | EXTRALIBS_XML="$EXPAT_LINK" | |
39409 | EXTRALIBS_HTML="$MSPACK_LINK" | |
39410 | EXTRALIBS_ODBC="$ODBC_LINK" | |
39411 | if test "$wxUSE_GUI" = "yes"; then | |
0c3c69fc | 39412 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK` |
a848cd7e SC |
39413 | fi |
39414 | if test "$wxUSE_OPENGL" = "yes"; then | |
39415 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
39416 | fi | |
39417 | ||
39418 | LDFLAGS="$LDFLAGS $PROFILE" | |
39419 | ||
39420 | if test "$wxUSE_GTK" = 1; then | |
39421 | WXCONFIG_INCLUDE= | |
39422 | else | |
39423 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
39424 | fi | |
39425 | ||
39426 | WXCONFIG_EXTRALIBS="$LIBS" | |
39427 | ||
39428 | if test "$wxUSE_REGEX" = "builtin" ; then | |
39429 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
39430 | fi | |
39431 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
39432 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
39433 | fi | |
39434 | if test "$wxUSE_ODBC" = "builtin" ; then | |
39435 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
39436 | fi | |
39437 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
39438 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
39439 | fi | |
39440 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
39441 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
39442 | fi | |
39443 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
39444 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
39445 | fi | |
39446 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
39447 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
39448 | fi | |
39449 | if test "$wxUSE_ODBC" = "builtin" ; then | |
39450 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
39451 | fi | |
39452 | ||
39453 | for i in $wxconfig_3rdparty ; do | |
ceec2216 | 39454 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e SC |
39455 | done |
39456 | ||
39457 | ||
39458 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
39459 | WXUNIV=1 | |
39460 | else | |
39461 | WXUNIV=0 | |
39462 | fi | |
39463 | ||
39464 | ||
39465 | ||
39466 | ||
39467 | ||
39468 | ||
39469 | ||
39470 | ||
39471 | ||
39472 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
39473 | MONOLITHIC=1 | |
39474 | else | |
39475 | MONOLITHIC=0 | |
39476 | fi | |
39477 | ||
39478 | if test $wxUSE_PLUGINS = "yes" ; then | |
39479 | USE_PLUGINS=1 | |
39480 | else | |
39481 | USE_PLUGINS=0 | |
39482 | fi | |
39483 | ||
39484 | if test $wxUSE_ODBC != "no" ; then | |
39485 | USE_ODBC=1 | |
39486 | else | |
39487 | USE_ODBC=0 | |
39488 | fi | |
39489 | ||
39490 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
39491 | OFFICIAL_BUILD=1 | |
39492 | else | |
39493 | OFFICIAL_BUILD=0 | |
39494 | fi | |
39495 | ||
39496 | ||
39497 | ||
39498 | ||
39499 | ||
39500 | ||
39501 | ||
39502 | ||
39503 | ||
39504 | ||
39505 | ||
39506 | ||
39507 | ||
39508 | ||
39509 | ||
39510 | ||
39511 | ||
39512 | ||
39513 | ||
ceec2216 | 39514 | |
d1c38808 | 39515 | |
a848cd7e SC |
39516 | |
39517 | ||
39518 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
39519 | ||
39520 | ||
39521 | ||
39522 | ||
39523 | ||
39524 | ||
39525 | ||
39526 | ||
4d4ff94c VZ |
39527 | case "$TOOLKIT" in |
39528 | GTK) | |
39529 | TOOLKIT_USER="GTK+" | |
39530 | if test "$WXGTK20" = 1; then | |
39531 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
39532 | fi | |
9a8f0513 | 39533 | ;; |
4d4ff94c VZ |
39534 | |
39535 | *) | |
39536 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 39537 | ;; |
4d4ff94c | 39538 | esac |
a848cd7e | 39539 | |
9a8f0513 | 39540 | |
1e9e8aba DE |
39541 | |
39542 | ||
a848cd7e SC |
39543 | if test "x$BAKEFILE_HOST" = "x"; then |
39544 | BAKEFILE_HOST="${host}" | |
39545 | fi | |
39546 | ||
39547 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
39548 | ||
39549 | if test -n "$ac_tool_prefix"; then | |
39550 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
39551 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
39552 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39554 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
39555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39556 | else | |
39557 | if test -n "$RANLIB"; then | |
39558 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
39559 | else | |
39560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39561 | for as_dir in $PATH | |
39562 | do | |
39563 | IFS=$as_save_IFS | |
39564 | test -z "$as_dir" && as_dir=. | |
39565 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39566 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39567 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
39568 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39569 | break 2 | |
39570 | fi | |
39571 | done | |
39572 | done | |
39573 | ||
39574 | fi | |
39575 | fi | |
39576 | RANLIB=$ac_cv_prog_RANLIB | |
39577 | if test -n "$RANLIB"; then | |
39578 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
39579 | echo "${ECHO_T}$RANLIB" >&6 | |
39580 | else | |
39581 | echo "$as_me:$LINENO: result: no" >&5 | |
39582 | echo "${ECHO_T}no" >&6 | |
39583 | fi | |
39584 | ||
39585 | fi | |
39586 | if test -z "$ac_cv_prog_RANLIB"; then | |
39587 | ac_ct_RANLIB=$RANLIB | |
39588 | # Extract the first word of "ranlib", so it can be a program name with args. | |
39589 | set dummy ranlib; ac_word=$2 | |
39590 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39591 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39592 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
39593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39594 | else | |
39595 | if test -n "$ac_ct_RANLIB"; then | |
39596 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
39597 | else | |
39598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39599 | for as_dir in $PATH | |
39600 | do | |
39601 | IFS=$as_save_IFS | |
39602 | test -z "$as_dir" && as_dir=. | |
39603 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39604 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39605 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
39606 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39607 | break 2 | |
39608 | fi | |
39609 | done | |
39610 | done | |
39611 | ||
39612 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
39613 | fi | |
39614 | fi | |
39615 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
39616 | if test -n "$ac_ct_RANLIB"; then | |
39617 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
39618 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
39619 | else | |
39620 | echo "$as_me:$LINENO: result: no" >&5 | |
39621 | echo "${ECHO_T}no" >&6 | |
39622 | fi | |
39623 | ||
39624 | RANLIB=$ac_ct_RANLIB | |
39625 | else | |
39626 | RANLIB="$ac_cv_prog_RANLIB" | |
39627 | fi | |
39628 | ||
39629 | # Find a good install program. We prefer a C program (faster), | |
39630 | # so one script is as good as another. But avoid the broken or | |
39631 | # incompatible versions: | |
39632 | # SysV /etc/install, /usr/sbin/install | |
39633 | # SunOS /usr/etc/install | |
39634 | # IRIX /sbin/install | |
39635 | # AIX /bin/install | |
39636 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
39637 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
39638 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
39639 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 39640 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
39641 | # ./install, which can be erroneously created by make from ./install.sh. |
39642 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
39643 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
39644 | if test -z "$INSTALL"; then | |
39645 | if test "${ac_cv_path_install+set}" = set; then | |
39646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39647 | else | |
39648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39649 | for as_dir in $PATH | |
39650 | do | |
39651 | IFS=$as_save_IFS | |
39652 | test -z "$as_dir" && as_dir=. | |
39653 | # Account for people who put trailing slashes in PATH elements. | |
39654 | case $as_dir/ in | |
39655 | ./ | .// | /cC/* | \ | |
39656 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 39657 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
39658 | /usr/ucb/* ) ;; |
39659 | *) | |
39660 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
39661 | # Don't use installbsd from OSF since it installs stuff as root | |
39662 | # by default. | |
39663 | for ac_prog in ginstall scoinst install; do | |
39664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
39665 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
39666 | if test $ac_prog = install && | |
39667 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
39668 | # AIX install. It has an incompatible calling convention. | |
39669 | : | |
39670 | elif test $ac_prog = install && | |
39671 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
39672 | # program-specific install script used by HP pwplus--don't use. | |
39673 | : | |
39674 | else | |
39675 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
39676 | break 3 | |
39677 | fi | |
39678 | fi | |
a848cd7e SC |
39679 | done |
39680 | done | |
39681 | ;; | |
39682 | esac | |
39683 | done | |
39684 | ||
39685 | ||
39686 | fi | |
39687 | if test "${ac_cv_path_install+set}" = set; then | |
39688 | INSTALL=$ac_cv_path_install | |
39689 | else | |
39690 | # As a last resort, use the slow shell script. We don't cache a | |
39691 | # path for INSTALL within a source directory, because that will | |
39692 | # break other packages using the cache if that directory is | |
39693 | # removed, or if the path is relative. | |
39694 | INSTALL=$ac_install_sh | |
39695 | fi | |
39696 | fi | |
39697 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
39698 | echo "${ECHO_T}$INSTALL" >&6 | |
39699 | ||
39700 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
39701 | # It thinks the first close brace ends the variable substitution. | |
39702 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
39703 | ||
39704 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
39705 | ||
39706 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
39707 | ||
39708 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
39709 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
39710 | LN_S=$as_ln_s | |
39711 | if test "$LN_S" = "ln -s"; then | |
39712 | echo "$as_me:$LINENO: result: yes" >&5 | |
39713 | echo "${ECHO_T}yes" >&6 | |
39714 | else | |
39715 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
39716 | echo "${ECHO_T}no, using $LN_S" >&6 | |
39717 | fi | |
39718 | ||
39719 | ||
39720 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
39721 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 39722 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
39723 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
39724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39725 | else | |
39726 | cat >conftest.make <<\_ACEOF | |
39727 | all: | |
39728 | @echo 'ac_maketemp="$(MAKE)"' | |
39729 | _ACEOF | |
39730 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
39731 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
39732 | if test -n "$ac_maketemp"; then | |
39733 | eval ac_cv_prog_make_${ac_make}_set=yes | |
39734 | else | |
39735 | eval ac_cv_prog_make_${ac_make}_set=no | |
39736 | fi | |
39737 | rm -f conftest.make | |
39738 | fi | |
39739 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
39740 | echo "$as_me:$LINENO: result: yes" >&5 | |
39741 | echo "${ECHO_T}yes" >&6 | |
39742 | SET_MAKE= | |
39743 | else | |
39744 | echo "$as_me:$LINENO: result: no" >&5 | |
39745 | echo "${ECHO_T}no" >&6 | |
39746 | SET_MAKE="MAKE=${MAKE-make}" | |
39747 | fi | |
39748 | ||
39749 | ||
39750 | ||
39751 | if test -n "$ac_tool_prefix"; then | |
39752 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
39753 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
39754 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39756 | if test "${ac_cv_prog_AR+set}" = set; then | |
39757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39758 | else | |
39759 | if test -n "$AR"; then | |
39760 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
39761 | else | |
39762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39763 | for as_dir in $PATH | |
39764 | do | |
39765 | IFS=$as_save_IFS | |
39766 | test -z "$as_dir" && as_dir=. | |
39767 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39768 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39769 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
39770 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39771 | break 2 | |
39772 | fi | |
39773 | done | |
39774 | done | |
39775 | ||
39776 | fi | |
39777 | fi | |
39778 | AR=$ac_cv_prog_AR | |
39779 | if test -n "$AR"; then | |
39780 | echo "$as_me:$LINENO: result: $AR" >&5 | |
39781 | echo "${ECHO_T}$AR" >&6 | |
39782 | else | |
39783 | echo "$as_me:$LINENO: result: no" >&5 | |
39784 | echo "${ECHO_T}no" >&6 | |
39785 | fi | |
39786 | ||
39787 | fi | |
39788 | if test -z "$ac_cv_prog_AR"; then | |
39789 | ac_ct_AR=$AR | |
39790 | # Extract the first word of "ar", so it can be a program name with args. | |
39791 | set dummy ar; ac_word=$2 | |
39792 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39794 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
39795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39796 | else | |
39797 | if test -n "$ac_ct_AR"; then | |
39798 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
39799 | else | |
39800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39801 | for as_dir in $PATH | |
39802 | do | |
39803 | IFS=$as_save_IFS | |
39804 | test -z "$as_dir" && as_dir=. | |
39805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39806 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39807 | ac_cv_prog_ac_ct_AR="ar" | |
39808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39809 | break 2 | |
39810 | fi | |
39811 | done | |
39812 | done | |
39813 | ||
39814 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
39815 | fi | |
39816 | fi | |
39817 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
39818 | if test -n "$ac_ct_AR"; then | |
39819 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
39820 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
39821 | else | |
39822 | echo "$as_me:$LINENO: result: no" >&5 | |
39823 | echo "${ECHO_T}no" >&6 | |
39824 | fi | |
39825 | ||
39826 | AR=$ac_ct_AR | |
39827 | else | |
39828 | AR="$ac_cv_prog_AR" | |
39829 | fi | |
39830 | ||
39831 | if test -n "$ac_tool_prefix"; then | |
39832 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
39833 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
39834 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39835 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39836 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
39837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39838 | else | |
39839 | if test -n "$STRIP"; then | |
39840 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
39841 | else | |
39842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39843 | for as_dir in $PATH | |
39844 | do | |
39845 | IFS=$as_save_IFS | |
39846 | test -z "$as_dir" && as_dir=. | |
39847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39848 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39849 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
39850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39851 | break 2 | |
39852 | fi | |
39853 | done | |
39854 | done | |
39855 | ||
39856 | fi | |
39857 | fi | |
39858 | STRIP=$ac_cv_prog_STRIP | |
39859 | if test -n "$STRIP"; then | |
39860 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
39861 | echo "${ECHO_T}$STRIP" >&6 | |
39862 | else | |
39863 | echo "$as_me:$LINENO: result: no" >&5 | |
39864 | echo "${ECHO_T}no" >&6 | |
39865 | fi | |
39866 | ||
39867 | fi | |
39868 | if test -z "$ac_cv_prog_STRIP"; then | |
39869 | ac_ct_STRIP=$STRIP | |
39870 | # Extract the first word of "strip", so it can be a program name with args. | |
39871 | set dummy strip; ac_word=$2 | |
39872 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39874 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
39875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39876 | else | |
39877 | if test -n "$ac_ct_STRIP"; then | |
39878 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
39879 | else | |
39880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39881 | for as_dir in $PATH | |
39882 | do | |
39883 | IFS=$as_save_IFS | |
39884 | test -z "$as_dir" && as_dir=. | |
39885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39886 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39887 | ac_cv_prog_ac_ct_STRIP="strip" | |
39888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39889 | break 2 | |
39890 | fi | |
39891 | done | |
39892 | done | |
39893 | ||
39894 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
39895 | fi | |
39896 | fi | |
39897 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
39898 | if test -n "$ac_ct_STRIP"; then | |
39899 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
39900 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
39901 | else | |
39902 | echo "$as_me:$LINENO: result: no" >&5 | |
39903 | echo "${ECHO_T}no" >&6 | |
39904 | fi | |
39905 | ||
39906 | STRIP=$ac_ct_STRIP | |
39907 | else | |
39908 | STRIP="$ac_cv_prog_STRIP" | |
39909 | fi | |
39910 | ||
39911 | if test -n "$ac_tool_prefix"; then | |
39912 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
39913 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
39914 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39916 | if test "${ac_cv_prog_NM+set}" = set; then | |
39917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39918 | else | |
39919 | if test -n "$NM"; then | |
39920 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
39921 | else | |
39922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39923 | for as_dir in $PATH | |
39924 | do | |
39925 | IFS=$as_save_IFS | |
39926 | test -z "$as_dir" && as_dir=. | |
39927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39928 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39929 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
39930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39931 | break 2 | |
39932 | fi | |
39933 | done | |
39934 | done | |
39935 | ||
39936 | fi | |
39937 | fi | |
39938 | NM=$ac_cv_prog_NM | |
39939 | if test -n "$NM"; then | |
39940 | echo "$as_me:$LINENO: result: $NM" >&5 | |
39941 | echo "${ECHO_T}$NM" >&6 | |
39942 | else | |
39943 | echo "$as_me:$LINENO: result: no" >&5 | |
39944 | echo "${ECHO_T}no" >&6 | |
39945 | fi | |
39946 | ||
39947 | fi | |
39948 | if test -z "$ac_cv_prog_NM"; then | |
39949 | ac_ct_NM=$NM | |
39950 | # Extract the first word of "nm", so it can be a program name with args. | |
39951 | set dummy nm; ac_word=$2 | |
39952 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39954 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
39955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39956 | else | |
39957 | if test -n "$ac_ct_NM"; then | |
39958 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
39959 | else | |
39960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39961 | for as_dir in $PATH | |
39962 | do | |
39963 | IFS=$as_save_IFS | |
39964 | test -z "$as_dir" && as_dir=. | |
39965 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39966 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39967 | ac_cv_prog_ac_ct_NM="nm" | |
39968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39969 | break 2 | |
39970 | fi | |
39971 | done | |
39972 | done | |
39973 | ||
39974 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
39975 | fi | |
39976 | fi | |
39977 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
39978 | if test -n "$ac_ct_NM"; then | |
39979 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
39980 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
39981 | else | |
39982 | echo "$as_me:$LINENO: result: no" >&5 | |
39983 | echo "${ECHO_T}no" >&6 | |
39984 | fi | |
39985 | ||
39986 | NM=$ac_ct_NM | |
39987 | else | |
39988 | NM="$ac_cv_prog_NM" | |
39989 | fi | |
39990 | ||
39991 | ||
39992 | case ${BAKEFILE_HOST} in | |
39993 | *-hp-hpux* ) | |
1e9e8aba | 39994 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
39995 | ;; |
39996 | *) INSTALL_DIR="$INSTALL -d" | |
39997 | ;; | |
39998 | esac | |
39999 | ||
40000 | ||
40001 | LDFLAGS_GUI= | |
40002 | case ${BAKEFILE_HOST} in | |
40003 | *-*-cygwin* | *-*-mingw32* ) | |
40004 | LDFLAGS_GUI="-mwindows" | |
40005 | esac | |
40006 | ||
40007 | ||
40008 | fi | |
40009 | ||
40010 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
40011 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
40012 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
40013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40014 | else | |
40015 | ||
40016 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
40017 | egrep -s GNU > /dev/null); then | |
40018 | bakefile_cv_prog_makeisgnu="yes" | |
40019 | else | |
40020 | bakefile_cv_prog_makeisgnu="no" | |
40021 | fi | |
40022 | ||
40023 | fi | |
40024 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
40025 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
40026 | ||
40027 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
40028 | IF_GNU_MAKE="" | |
40029 | else | |
40030 | IF_GNU_MAKE="#" | |
40031 | fi | |
40032 | ||
40033 | ||
40034 | ||
40035 | PLATFORM_UNIX=0 | |
40036 | PLATFORM_WIN32=0 | |
40037 | PLATFORM_MSDOS=0 | |
40038 | PLATFORM_MAC=0 | |
1e9e8aba | 40039 | PLATFORM_MACOS=0 |
a848cd7e SC |
40040 | PLATFORM_MACOSX=0 |
40041 | PLATFORM_OS2=0 | |
1e9e8aba | 40042 | PLATFORM_BEOS=0 |
a848cd7e SC |
40043 | |
40044 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
40045 | case "${BAKEFILE_HOST}" in | |
40046 | *-*-cygwin* | *-*-mingw32* ) | |
40047 | PLATFORM_WIN32=1 | |
40048 | ;; | |
40049 | *-pc-msdosdjgpp ) | |
40050 | PLATFORM_MSDOS=1 | |
40051 | ;; | |
40052 | *-pc-os2_emx | *-pc-os2-emx ) | |
40053 | PLATFORM_OS2=1 | |
40054 | ;; | |
40055 | powerpc-*-darwin* ) | |
40056 | PLATFORM_MAC=1 | |
40057 | PLATFORM_MACOSX=1 | |
40058 | ;; | |
1e9e8aba DE |
40059 | *-*-beos* ) |
40060 | PLATFORM_BEOS=1 | |
40061 | ;; | |
40062 | powerpc-apple-macos* ) | |
40063 | PLATFORM_MAC=1 | |
40064 | PLATFORM_MACOS=1 | |
40065 | ;; | |
a848cd7e SC |
40066 | * ) |
40067 | PLATFORM_UNIX=1 | |
40068 | ;; | |
40069 | esac | |
40070 | else | |
40071 | case "$BAKEFILE_FORCE_PLATFORM" in | |
40072 | win32 ) | |
40073 | PLATFORM_WIN32=1 | |
40074 | ;; | |
40075 | msdos ) | |
40076 | PLATFORM_MSDOS=1 | |
40077 | ;; | |
40078 | os2 ) | |
40079 | PLATFORM_OS2=1 | |
40080 | ;; | |
40081 | darwin ) | |
40082 | PLATFORM_MAC=1 | |
40083 | PLATFORM_MACOSX=1 | |
40084 | ;; | |
40085 | unix ) | |
40086 | PLATFORM_UNIX=1 | |
40087 | ;; | |
1e9e8aba DE |
40088 | beos ) |
40089 | PLATFORM_BEOS=1 | |
40090 | ;; | |
a848cd7e SC |
40091 | * ) |
40092 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
40093 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
40094 | { (exit 1); exit 1; }; } | |
40095 | ;; | |
40096 | esac | |
40097 | fi | |
40098 | ||
40099 | ||
40100 | ||
40101 | ||
40102 | ||
40103 | ||
40104 | ||
40105 | ||
40106 | ||
1e9e8aba DE |
40107 | |
40108 | ||
a848cd7e SC |
40109 | # Check whether --enable-omf or --disable-omf was given. |
40110 | if test "${enable_omf+set}" = set; then | |
40111 | enableval="$enable_omf" | |
40112 | bk_os2_use_omf="$enableval" | |
40113 | fi; | |
40114 | ||
40115 | case "${BAKEFILE_HOST}" in | |
40116 | *-*-darwin* ) | |
40117 | CFLAGS="$CFLAGS -fno-common" | |
40118 | CXXFLAGS="$CXXFLAGS -fno-common" | |
40119 | ;; | |
40120 | ||
40121 | *-pc-os2_emx | *-pc-os2-emx ) | |
40122 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
40123 | AR=emxomfar | |
40124 | RANLIB=: | |
40125 | LDFLAGS="-Zomf $LDFLAGS" | |
40126 | CFLAGS="-Zomf $CFLAGS" | |
40127 | CXXFLAGS="-Zomf $CXXFLAGS" | |
40128 | OS2_LIBEXT="lib" | |
40129 | else | |
40130 | OS2_LIBEXT="a" | |
40131 | fi | |
40132 | ;; | |
1e9e8aba DE |
40133 | |
40134 | i*86-*-beos* ) | |
40135 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
40136 | ;; | |
a848cd7e SC |
40137 | esac |
40138 | ||
40139 | ||
40140 | SO_SUFFIX="so" | |
40141 | SO_SUFFIX_MODULE="so" | |
40142 | EXEEXT="" | |
40143 | LIBPREFIX="lib" | |
40144 | LIBEXT=".a" | |
40145 | DLLPREFIX="lib" | |
40146 | DLLPREFIX_MODULE="" | |
40147 | DLLIMP_SUFFIX="" | |
40148 | ||
40149 | case "${BAKEFILE_HOST}" in | |
40150 | *-hp-hpux* ) | |
40151 | SO_SUFFIX="sl" | |
40152 | SO_SUFFIX_MODULE="sl" | |
40153 | ;; | |
40154 | *-*-aix* ) | |
40155 | SO_SUFFIX="a" | |
40156 | SO_SUFFIX_MODULE="a" | |
40157 | ;; | |
40158 | *-*-cygwin* | *-*-mingw32* ) | |
40159 | SO_SUFFIX="dll" | |
40160 | SO_SUFFIX_MODULE="dll" | |
40161 | DLLIMP_SUFFIX="dll.a" | |
40162 | EXEEXT=".exe" | |
40163 | DLLPREFIX="" | |
40164 | ;; | |
40165 | *-pc-msdosdjgpp ) | |
40166 | EXEEXT=".exe" | |
40167 | DLLPREFIX="" | |
40168 | ;; | |
40169 | *-pc-os2_emx | *-pc-os2-emx ) | |
40170 | SO_SUFFIX="dll" | |
40171 | SO_SUFFIX_MODULE="dll" | |
40172 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
40173 | EXEEXT=".exe" | |
40174 | DLLPREFIX="" | |
40175 | LIBPREFIX="" | |
40176 | LIBEXT=".$OS2_LIBEXT" | |
40177 | ;; | |
40178 | powerpc-*-darwin* ) | |
40179 | SO_SUFFIX="dylib" | |
40180 | SO_SUFFIX_MODULE="bundle" | |
40181 | ;; | |
40182 | esac | |
40183 | ||
40184 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
40185 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
40186 | fi | |
40187 | ||
40188 | ||
40189 | ||
40190 | ||
40191 | ||
40192 | ||
40193 | ||
40194 | ||
40195 | ||
40196 | ||
40197 | ||
1e9e8aba DE |
40198 | PIC_FLAG="" |
40199 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
40200 | PIC_FLAG="-fPIC" |
40201 | fi | |
40202 | ||
1e9e8aba DE |
40203 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
40204 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
40205 | ||
a848cd7e SC |
40206 | case "${BAKEFILE_HOST}" in |
40207 | *-hp-hpux* ) | |
1e9e8aba | 40208 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
40209 | LDFLAGS="$LDFLAGS -L/usr/lib" |
40210 | ||
40211 | SHARED_LD_CC="${CC} -b -o" | |
40212 | SHARED_LD_CXX="${CXX} -b -o" | |
40213 | PIC_FLAG="+Z" | |
40214 | fi | |
40215 | ;; | |
40216 | ||
40217 | *-*-linux* ) | |
40218 | if test "x$GCC" != "xyes"; then | |
40219 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
40220 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
40221 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
40222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40223 | else | |
40224 | ||
40225 | cat >conftest.$ac_ext <<_ACEOF | |
40226 | /* confdefs.h. */ | |
40227 | _ACEOF | |
40228 | cat confdefs.h >>conftest.$ac_ext | |
40229 | cat >>conftest.$ac_ext <<_ACEOF | |
40230 | /* end confdefs.h. */ | |
40231 | ||
40232 | int | |
40233 | main () | |
40234 | { | |
40235 | ||
40236 | #ifndef __INTEL_COMPILER | |
40237 | #error Not icc | |
40238 | #endif | |
40239 | ||
40240 | ; | |
40241 | return 0; | |
40242 | } | |
40243 | _ACEOF | |
40244 | rm -f conftest.$ac_objext | |
40245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40246 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40247 | ac_status=$? |
ac1cb8d3 VS |
40248 | grep -v '^ *+' conftest.er1 >conftest.err |
40249 | rm -f conftest.er1 | |
40250 | cat conftest.err >&5 | |
a848cd7e SC |
40251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40252 | (exit $ac_status); } && | |
89be85c2 VS |
40253 | { ac_try='test -z "$ac_c_werror_flag" |
40254 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40256 | (eval $ac_try) 2>&5 | |
40257 | ac_status=$? | |
40258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40259 | (exit $ac_status); }; } && | |
40260 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40262 | (eval $ac_try) 2>&5 | |
40263 | ac_status=$? | |
40264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40265 | (exit $ac_status); }; }; then | |
40266 | bakefile_cv_prog_icc=yes | |
40267 | else | |
40268 | echo "$as_me: failed program was:" >&5 | |
40269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40270 | ||
40271 | bakefile_cv_prog_icc=no | |
40272 | ||
40273 | fi | |
ac1cb8d3 | 40274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40275 | |
40276 | fi | |
40277 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
40278 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
40279 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
40280 | PIC_FLAG="-KPIC" | |
40281 | fi | |
40282 | fi | |
40283 | ;; | |
40284 | ||
40285 | *-*-solaris2* ) | |
40286 | if test "x$GCC" != xyes ; then | |
40287 | SHARED_LD_CC="${CC} -G -o" | |
40288 | SHARED_LD_CXX="${CXX} -G -o" | |
40289 | PIC_FLAG="-KPIC" | |
40290 | fi | |
40291 | ;; | |
40292 | ||
40293 | *-*-darwin* ) | |
40294 | ||
40295 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
40296 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
40297 | if test "${wx_cv_gcc31+set}" = set; then | |
40298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40299 | else | |
40300 | ||
40301 | cat >conftest.$ac_ext <<_ACEOF | |
40302 | /* confdefs.h. */ | |
40303 | _ACEOF | |
40304 | cat confdefs.h >>conftest.$ac_ext | |
40305 | cat >>conftest.$ac_ext <<_ACEOF | |
40306 | /* end confdefs.h. */ | |
40307 | ||
40308 | int | |
40309 | main () | |
40310 | { | |
40311 | ||
40312 | #if (__GNUC__ < 3) || \ | |
40313 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
40314 | #error old gcc | |
40315 | #endif | |
40316 | ||
40317 | ; | |
40318 | return 0; | |
40319 | } | |
40320 | _ACEOF | |
40321 | rm -f conftest.$ac_objext | |
40322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40323 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40324 | ac_status=$? |
ac1cb8d3 VS |
40325 | grep -v '^ *+' conftest.er1 >conftest.err |
40326 | rm -f conftest.er1 | |
40327 | cat conftest.err >&5 | |
a848cd7e SC |
40328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40329 | (exit $ac_status); } && | |
89be85c2 VS |
40330 | { ac_try='test -z "$ac_c_werror_flag" |
40331 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40333 | (eval $ac_try) 2>&5 | |
40334 | ac_status=$? | |
40335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40336 | (exit $ac_status); }; } && | |
40337 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40339 | (eval $ac_try) 2>&5 | |
40340 | ac_status=$? | |
40341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40342 | (exit $ac_status); }; }; then | |
40343 | ||
40344 | wx_cv_gcc31=yes | |
40345 | ||
40346 | else | |
40347 | echo "$as_me: failed program was:" >&5 | |
40348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40349 | ||
40350 | ||
40351 | wx_cv_gcc31=no | |
40352 | ||
40353 | ||
40354 | fi | |
ac1cb8d3 | 40355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40356 | |
40357 | fi | |
40358 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
40359 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
40360 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
40361 | |
40362 | D='$' | |
40363 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
40364 | #!/bin/sh |
40365 | #----------------------------------------------------------------------------- | |
40366 | #-- Name: distrib/mac/shared-ld-sh | |
40367 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
40368 | #-- Author: Gilles Depeyrot | |
40369 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
40370 | #-- Licence: any use permitted | |
40371 | #----------------------------------------------------------------------------- | |
40372 | ||
40373 | verbose=0 | |
40374 | args="" | |
40375 | objects="" | |
40376 | linking_flag="-dynamiclib" | |
40377 | ||
473276a9 VS |
40378 | while test ${D}# -gt 0; do |
40379 | case ${D}1 in | |
a848cd7e SC |
40380 | |
40381 | -v) | |
40382 | verbose=1 | |
40383 | ;; | |
40384 | ||
40385 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
40386 | # collect these options and values | |
473276a9 | 40387 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
40388 | shift |
40389 | ;; | |
40390 | ||
40391 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
40392 | # collect these options | |
473276a9 | 40393 | args="${D}{args} ${D}1" |
a848cd7e SC |
40394 | ;; |
40395 | ||
40396 | -dynamiclib|-bundle) | |
473276a9 | 40397 | linking_flag="${D}1" |
a848cd7e SC |
40398 | ;; |
40399 | ||
40400 | -*) | |
473276a9 | 40401 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
40402 | exit 1 |
40403 | ;; | |
40404 | ||
40405 | *.o | *.a | *.dylib) | |
40406 | # collect object files | |
473276a9 | 40407 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
40408 | ;; |
40409 | ||
40410 | *) | |
473276a9 | 40411 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
40412 | exit 1 |
40413 | ;; | |
40414 | ||
40415 | esac | |
40416 | shift | |
40417 | done | |
40418 | ||
40419 | # | |
40420 | # Link one module containing all the others | |
40421 | # | |
473276a9 VS |
40422 | if test ${D}{verbose} = 1; then |
40423 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 40424 | fi |
473276a9 VS |
40425 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
40426 | status=${D}? | |
40427 | if test ${D}{status} != 0; then | |
40428 | exit ${D}{status} | |
a848cd7e SC |
40429 | fi |
40430 | ||
40431 | # | |
40432 | # Link the shared library from the single module created | |
40433 | # | |
473276a9 VS |
40434 | if test ${D}{verbose} = 1; then |
40435 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 40436 | fi |
473276a9 VS |
40437 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
40438 | status=${D}? | |
40439 | if test ${D}{status} != 0; then | |
40440 | exit ${D}{status} | |
a848cd7e SC |
40441 | fi |
40442 | ||
40443 | # | |
40444 | # Remove intermediate module | |
40445 | # | |
473276a9 | 40446 | rm -f master.${D}${D}.o |
a848cd7e SC |
40447 | |
40448 | exit 0 | |
40449 | EOF | |
473276a9 | 40450 | |
a848cd7e SC |
40451 | chmod +x shared-ld-sh |
40452 | ||
40453 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
40454 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
40455 | SHARED_LD_CXX="$SHARED_LD_CC" | |
40456 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
40457 | else | |
40458 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
40459 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
40460 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
40461 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
40462 | fi | |
40463 | ||
40464 | PIC_FLAG="-dynamic -fPIC" | |
40465 | ;; | |
40466 | ||
40467 | *-*-aix* ) | |
40468 | if test "x$GCC" != "xyes"; then | |
40469 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
40470 | set dummy makeC++SharedLib; ac_word=$2 | |
40471 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40473 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
40474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40475 | else | |
40476 | if test -n "$AIX_CXX_LD"; then | |
40477 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
40478 | else | |
40479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40480 | for as_dir in $PATH | |
40481 | do | |
40482 | IFS=$as_save_IFS | |
40483 | test -z "$as_dir" && as_dir=. | |
40484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40485 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40486 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
40487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40488 | break 2 | |
40489 | fi | |
40490 | done | |
40491 | done | |
40492 | ||
40493 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
40494 | fi | |
40495 | fi | |
40496 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
40497 | if test -n "$AIX_CXX_LD"; then | |
40498 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
40499 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
40500 | else | |
40501 | echo "$as_me:$LINENO: result: no" >&5 | |
40502 | echo "${ECHO_T}no" >&6 | |
40503 | fi | |
40504 | ||
40505 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
40506 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
40507 | fi | |
40508 | ;; | |
40509 | ||
40510 | *-*-beos* ) | |
1e9e8aba DE |
40511 | SHARED_LD_CC="${LD} -nostart -o" |
40512 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
40513 | ;; |
40514 | ||
40515 | *-*-irix* ) | |
40516 | if test "x$GCC" != "xyes"; then | |
40517 | PIC_FLAG="-KPIC" | |
40518 | fi | |
40519 | ;; | |
40520 | ||
40521 | *-*-cygwin* | *-*-mingw32* ) | |
40522 | PIC_FLAG="" | |
1e9e8aba DE |
40523 | SHARED_LD_CC="\$(CC) -shared -o" |
40524 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
a848cd7e SC |
40525 | ;; |
40526 | ||
40527 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
40528 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
40529 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 40530 | PIC_FLAG="" |
473276a9 VS |
40531 | |
40532 | D='$' | |
40533 | cat <<EOF >dllar.sh | |
40534 | #!/bin/sh | |
40535 | # | |
40536 | # dllar - a tool to build both a .dll and an .a file | |
40537 | # from a set of object (.o) files for EMX/OS2. | |
40538 | # | |
40539 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
40540 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
40541 | # | |
40542 | # This script will accept a set of files on the command line. | |
40543 | # All the public symbols from the .o files will be exported into | |
40544 | # a .DEF file, then linker will be run (through gcc) against them to | |
40545 | # build a shared library consisting of all given .o files. All libraries | |
40546 | # (.a) will be first decompressed into component .o files then act as | |
40547 | # described above. You can optionally give a description (-d "description") | |
40548 | # which will be put into .DLL. To see the list of accepted options (as well | |
40549 | # as command-line format) simply run this program without options. The .DLL | |
40550 | # is built to be imported by name (there is no guarantee that new versions | |
40551 | # of the library you build will have same ordinals for same symbols). | |
40552 | # | |
40553 | # dllar is free software; you can redistribute it and/or modify | |
40554 | # it under the terms of the GNU General Public License as published by | |
40555 | # the Free Software Foundation; either version 2, or (at your option) | |
40556 | # any later version. | |
40557 | # | |
40558 | # dllar is distributed in the hope that it will be useful, | |
40559 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
40560 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
40561 | # GNU General Public License for more details. | |
40562 | # | |
40563 | # You should have received a copy of the GNU General Public License | |
40564 | # along with dllar; see the file COPYING. If not, write to the Free | |
40565 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
40566 | # 02111-1307, USA. | |
40567 | ||
40568 | # To successfuly run this program you will need: | |
40569 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
40570 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
40571 | # - gcc | |
40572 | # (used to build the .dll) | |
40573 | # - emxexp | |
40574 | # (used to create .def file from .o files) | |
40575 | # - emximp | |
40576 | # (used to create .a file from .def file) | |
40577 | # - GNU text utilites (cat, sort, uniq) | |
40578 | # used to process emxexp output | |
40579 | # - GNU file utilities (mv, rm) | |
40580 | # - GNU sed | |
40581 | # - lxlite (optional, see flag below) | |
40582 | # (used for general .dll cleanup) | |
40583 | # | |
40584 | ||
40585 | flag_USE_LXLITE=1; | |
40586 | ||
40587 | # | |
40588 | # helper functions | |
40589 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
40590 | # second argument (suffix to remove) is given | |
40591 | basnam(){ | |
40592 | case ${D}# in | |
40593 | 1) | |
1e9e8aba | 40594 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
40595 | ;; |
40596 | 2) | |
40597 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
40598 | ;; | |
40599 | *) | |
40600 | echo "error in basnam ${D}*" | |
40601 | exit 8 | |
40602 | ;; | |
40603 | esac | |
40604 | } | |
40605 | ||
40606 | # Cleanup temporary files and output | |
40607 | CleanUp() { | |
40608 | cd ${D}curDir | |
40609 | for i in ${D}inputFiles ; do | |
40610 | case ${D}i in | |
40611 | *!) | |
40612 | rm -rf \`basnam ${D}i !\` | |
40613 | ;; | |
40614 | *) | |
40615 | ;; | |
40616 | esac | |
40617 | done | |
40618 | ||
40619 | # Kill result in case of failure as there is just to many stupid make/nmake | |
40620 | # things out there which doesn't do this. | |
1e9e8aba | 40621 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
40622 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
40623 | fi | |
40624 | } | |
40625 | ||
40626 | # Print usage and exit script with rc=1. | |
40627 | PrintHelp() { | |
b1d22ded DE |
40628 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
40629 | echo ' [-name-mangler-script script.sh]' | |
40630 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
40631 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
40632 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 40633 | echo ' [*.o] [*.a]' |
473276a9 VS |
40634 | echo '*> "output_file" should have no extension.' |
40635 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
40636 | echo ' The import library name is derived from this and is set to "name".a,' | |
40637 | echo ' unless overridden by -import' | |
40638 | echo '*> "importlib_name" should have no extension.' | |
40639 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
40640 | echo ' This name is used as the import library name and may be longer and' | |
40641 | echo ' more descriptive than the DLL name which has to follow the old ' | |
40642 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
40643 | echo '*> "script.sh may be given to override the output_file name by a' |
40644 | echo ' different name. It is mainly useful if the regular make process' | |
40645 | echo ' of some package does not take into account OS/2 restriction of' | |
40646 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
40647 | echo ' supposed to procude a shorter name as output. The script should' | |
40648 | echo ' expect to get importlib_name without extension and should produce' | |
40649 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
40650 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
40651 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
40652 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
40653 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
40654 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
40655 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
40656 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
40657 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 40658 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 40659 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 40660 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 40661 | echo ' C runtime DLLs.' |
b1d22ded | 40662 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
40663 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
40664 | echo ' unchanged to GCC at the end of command line.' | |
40665 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
40666 | echo ' the basename for DLL and import library will be set to library name,' | |
40667 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
40668 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
40669 | echo ' library will be renamed into gcc_s.a.' | |
40670 | echo '--------' | |
40671 | echo 'Example:' | |
40672 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
40673 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
40674 | CleanUp | |
40675 | exit 1 | |
40676 | } | |
40677 | ||
40678 | # Execute a command. | |
40679 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
40680 | # @Uses Whatever CleanUp() uses. | |
40681 | doCommand() { | |
40682 | echo "${D}*" | |
40683 | eval ${D}* | |
40684 | rcCmd=${D}? | |
40685 | ||
1e9e8aba | 40686 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
40687 | echo "command failed, exit code="${D}rcCmd |
40688 | CleanUp | |
40689 | exit ${D}rcCmd | |
40690 | fi | |
40691 | } | |
40692 | ||
40693 | # main routine | |
40694 | # setup globals | |
40695 | cmdLine=${D}* | |
40696 | outFile="" | |
40697 | outimpFile="" | |
40698 | inputFiles="" | |
b1d22ded | 40699 | renameScript="" |
473276a9 VS |
40700 | description="" |
40701 | CC=gcc.exe | |
40702 | CFLAGS="-s -Zcrtdll" | |
40703 | EXTRA_CFLAGS="" | |
40704 | EXPORT_BY_ORDINALS=0 | |
40705 | exclude_symbols="" | |
40706 | library_flags="" | |
40707 | curDir=\`pwd\` | |
40708 | curDirS=curDir | |
40709 | case ${D}curDirS in | |
40710 | */) | |
40711 | ;; | |
40712 | *) | |
40713 | curDirS=${D}{curDirS}"/" | |
40714 | ;; | |
40715 | esac | |
40716 | # Parse commandline | |
40717 | libsToLink=0 | |
b1d22ded | 40718 | omfLinking=0 |
1e9e8aba | 40719 | while [ ${D}1 ]; do |
473276a9 VS |
40720 | case ${D}1 in |
40721 | -ord*) | |
40722 | EXPORT_BY_ORDINALS=1; | |
40723 | ;; | |
40724 | -o*) | |
40725 | shift | |
40726 | outFile=${D}1 | |
40727 | ;; | |
40728 | -i*) | |
40729 | shift | |
40730 | outimpFile=${D}1 | |
40731 | ;; | |
b1d22ded DE |
40732 | -name-mangler-script) |
40733 | shift | |
40734 | renameScript=${D}1 | |
40735 | ;; | |
473276a9 VS |
40736 | -d*) |
40737 | shift | |
40738 | description=${D}1 | |
40739 | ;; | |
40740 | -f*) | |
40741 | shift | |
40742 | CFLAGS=${D}1 | |
40743 | ;; | |
40744 | -c*) | |
40745 | shift | |
40746 | CC=${D}1 | |
40747 | ;; | |
40748 | -h*) | |
40749 | PrintHelp | |
40750 | ;; | |
40751 | -ex*) | |
40752 | shift | |
40753 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
40754 | ;; | |
40755 | -libf*) | |
40756 | shift | |
40757 | library_flags=${D}{library_flags}${D}1" " | |
40758 | ;; | |
40759 | -nocrt*) | |
40760 | CFLAGS="-s" | |
40761 | ;; | |
40762 | -nolxl*) | |
40763 | flag_USE_LXLITE=0 | |
40764 | ;; | |
40765 | -* | /*) | |
40766 | case ${D}1 in | |
40767 | -L* | -l*) | |
40768 | libsToLink=1 | |
40769 | ;; | |
b1d22ded DE |
40770 | -Zomf) |
40771 | omfLinking=1 | |
40772 | ;; | |
473276a9 VS |
40773 | *) |
40774 | ;; | |
40775 | esac | |
40776 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
40777 | ;; | |
b1d22ded DE |
40778 | *.dll) |
40779 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
40780 | if [ ${D}omfLinking -eq 1 ]; then | |
40781 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
40782 | else | |
40783 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
40784 | fi | |
40785 | ;; | |
473276a9 VS |
40786 | *) |
40787 | found=0; | |
1e9e8aba | 40788 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
40789 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
40790 | else | |
40791 | for file in ${D}1 ; do | |
1e9e8aba | 40792 | if [ -f ${D}file ]; then |
473276a9 VS |
40793 | inputFiles="${D}{inputFiles} ${D}file" |
40794 | found=1 | |
40795 | fi | |
40796 | done | |
1e9e8aba | 40797 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
40798 | echo "ERROR: No file(s) found: "${D}1 |
40799 | exit 8 | |
40800 | fi | |
40801 | fi | |
40802 | ;; | |
40803 | esac | |
40804 | shift | |
40805 | done # iterate cmdline words | |
40806 | ||
40807 | # | |
1e9e8aba | 40808 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
40809 | echo "dllar: no input files" |
40810 | PrintHelp | |
40811 | fi | |
40812 | ||
40813 | # Now extract all .o files from .a files | |
40814 | newInputFiles="" | |
40815 | for file in ${D}inputFiles ; do | |
40816 | case ${D}file in | |
40817 | *.a | *.lib) | |
40818 | case ${D}file in | |
40819 | *.a) | |
40820 | suffix=".a" | |
40821 | AR="ar" | |
40822 | ;; | |
40823 | *.lib) | |
40824 | suffix=".lib" | |
40825 | AR="emxomfar" | |
40826 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
40827 | ;; | |
40828 | *) | |
40829 | ;; | |
40830 | esac | |
40831 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
40832 | mkdir ${D}dirname | |
1e9e8aba | 40833 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
40834 | echo "Failed to create subdirectory ./${D}dirname" |
40835 | CleanUp | |
40836 | exit 8; | |
40837 | fi | |
40838 | # Append '!' to indicate archive | |
40839 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
40840 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
40841 | cd ${D}curDir | |
40842 | found=0; | |
40843 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 40844 | if [ -f ${D}subfile ]; then |
473276a9 | 40845 | found=1 |
1e9e8aba | 40846 | if [ -s ${D}subfile ]; then |
473276a9 VS |
40847 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
40848 | newInputFiles="${D}newInputFiles ${D}subfile" | |
40849 | fi | |
40850 | fi | |
40851 | done | |
1e9e8aba DE |
40852 | if [ ${D}found -eq 0 ]; then |
40853 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
40854 | fi |
40855 | ;; | |
40856 | *) | |
40857 | newInputFiles="${D}{newInputFiles} ${D}file" | |
40858 | ;; | |
40859 | esac | |
40860 | done | |
40861 | inputFiles="${D}newInputFiles" | |
40862 | ||
40863 | # Output filename(s). | |
40864 | do_backup=0; | |
1e9e8aba | 40865 | if [ -z ${D}outFile ]; then |
473276a9 VS |
40866 | do_backup=1; |
40867 | set outFile ${D}inputFiles; outFile=${D}2 | |
40868 | fi | |
40869 | ||
40870 | # If it is an archive, remove the '!' and the '_%' suffixes | |
40871 | case ${D}outFile in | |
40872 | *_%!) | |
40873 | outFile=\`basnam ${D}outFile _%!\` | |
40874 | ;; | |
40875 | *) | |
40876 | ;; | |
40877 | esac | |
40878 | case ${D}outFile in | |
40879 | *.dll) | |
40880 | outFile=\`basnam ${D}outFile .dll\` | |
40881 | ;; | |
40882 | *.DLL) | |
40883 | outFile=\`basnam ${D}outFile .DLL\` | |
40884 | ;; | |
40885 | *.o) | |
40886 | outFile=\`basnam ${D}outFile .o\` | |
40887 | ;; | |
40888 | *.obj) | |
40889 | outFile=\`basnam ${D}outFile .obj\` | |
40890 | ;; | |
40891 | *.a) | |
40892 | outFile=\`basnam ${D}outFile .a\` | |
40893 | ;; | |
40894 | *.lib) | |
40895 | outFile=\`basnam ${D}outFile .lib\` | |
40896 | ;; | |
40897 | *) | |
40898 | ;; | |
40899 | esac | |
40900 | case ${D}outimpFile in | |
40901 | *.a) | |
40902 | outimpFile=\`basnam ${D}outimpFile .a\` | |
40903 | ;; | |
40904 | *.lib) | |
40905 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
40906 | ;; | |
40907 | *) | |
40908 | ;; | |
40909 | esac | |
1e9e8aba | 40910 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
40911 | outimpFile=${D}outFile |
40912 | fi | |
40913 | defFile="${D}{outFile}.def" | |
40914 | arcFile="${D}{outimpFile}.a" | |
40915 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
40916 | |
40917 | #create ${D}dllFile as something matching 8.3 restrictions, | |
40918 | if [ -z ${D}renameScript ] ; then | |
40919 | dllFile="${D}outFile" | |
40920 | else | |
40921 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
40922 | fi | |
473276a9 | 40923 | |
1e9e8aba DE |
40924 | if [ ${D}do_backup -ne 0 ] ; then |
40925 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
40926 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
40927 | fi | |
1e9e8aba | 40928 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
40929 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
40930 | fi | |
40931 | fi | |
40932 | ||
40933 | # Extract public symbols from all the object files. | |
40934 | tmpdefFile=${D}{defFile}_% | |
40935 | rm -f ${D}tmpdefFile | |
40936 | for file in ${D}inputFiles ; do | |
40937 | case ${D}file in | |
40938 | *!) | |
40939 | ;; | |
40940 | *) | |
40941 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
40942 | ;; | |
40943 | esac | |
40944 | done | |
40945 | ||
40946 | # Create the def file. | |
40947 | rm -f ${D}defFile | |
40948 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
40949 | dllFile="${D}{dllFile}.dll" |
40950 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 40951 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
40952 | fi |
40953 | echo "EXPORTS" >> ${D}defFile | |
40954 | ||
40955 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
40956 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
40957 | ||
40958 | # Checks if the export is ok or not. | |
40959 | for word in ${D}exclude_symbols; do | |
40960 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
40961 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
40962 | done | |
40963 | ||
40964 | ||
1e9e8aba DE |
40965 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
40966 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
40967 | sed ' |
40968 | N | |
40969 | : loop | |
1e9e8aba | 40970 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
40971 | t loop |
40972 | ' > ${D}{tmpdefFile}% | |
40973 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
40974 | else | |
40975 | rm -f ${D}{tmpdefFile}% | |
40976 | fi | |
40977 | cat ${D}tmpdefFile >> ${D}defFile | |
40978 | rm -f ${D}tmpdefFile | |
40979 | ||
40980 | # Do linking, create implib, and apply lxlite. | |
40981 | gccCmdl=""; | |
40982 | for file in ${D}inputFiles ; do | |
40983 | case ${D}file in | |
40984 | *!) | |
40985 | ;; | |
40986 | *) | |
40987 | gccCmdl="${D}gccCmdl ${D}file" | |
40988 | ;; | |
40989 | esac | |
40990 | done | |
40991 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
40992 | touch "${D}{outFile}.dll" | |
40993 | ||
40994 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 40995 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 40996 | add_flags=""; |
1e9e8aba | 40997 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
40998 | add_flags="-ynd" |
40999 | fi | |
41000 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
41001 | fi | |
41002 | doCommand "emxomf -s -l ${D}arcFile" | |
41003 | ||
41004 | # Successful exit. | |
41005 | CleanUp 1 | |
41006 | exit 0 | |
41007 | EOF | |
41008 | ||
41009 | chmod +x dllar.sh | |
a848cd7e SC |
41010 | ;; |
41011 | ||
1e9e8aba | 41012 | powerpc-apple-macos* | \ |
a848cd7e SC |
41013 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
41014 | *-*-sunos4* | \ | |
41015 | *-*-osf* | \ | |
41016 | *-*-dgux5* | \ | |
41017 | *-*-sysv5* ) | |
41018 | ;; | |
41019 | ||
41020 | *) | |
41021 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
41022 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
41023 | { (exit 1); exit 1; }; } | |
41024 | esac | |
41025 | ||
2057db16 VS |
41026 | if test "x$PIC_FLAG" != "x" ; then |
41027 | PIC_FLAG="$PIC_FLAG -DPIC" | |
41028 | fi | |
41029 | ||
a848cd7e SC |
41030 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
41031 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
41032 | fi | |
41033 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
41034 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
41035 | fi | |
41036 | ||
41037 | ||
41038 | ||
41039 | ||
41040 | ||
41041 | ||
41042 | ||
41043 | ||
41044 | USE_SOVERSION=0 | |
41045 | USE_SOVERLINUX=0 | |
41046 | USE_SOVERSOLARIS=0 | |
41047 | USE_SOSYMLINKS=0 | |
41048 | USE_MACVERSION=0 | |
41049 | SONAME_FLAG= | |
41050 | ||
41051 | case "${BAKEFILE_HOST}" in | |
b1d22ded | 41052 | *-*-linux* | *-*-freebsd* ) |
5f652d0d VS |
41053 | SONAME_FLAG="-Wl,-soname," |
41054 | USE_SOVERSION=1 | |
41055 | USE_SOVERLINUX=1 | |
41056 | USE_SOSYMLINKS=1 | |
41057 | ;; | |
41058 | ||
a848cd7e SC |
41059 | *-*-solaris2* ) |
41060 | SONAME_FLAG="-h " | |
41061 | USE_SOVERSION=1 | |
41062 | USE_SOVERSOLARIS=1 | |
41063 | USE_SOSYMLINKS=1 | |
41064 | ;; | |
41065 | ||
41066 | *-*-darwin* ) | |
41067 | USE_MACVERSION=1 | |
41068 | USE_SOVERSION=1 | |
41069 | USE_SOSYMLINKS=1 | |
41070 | ;; | |
41071 | esac | |
41072 | ||
41073 | ||
41074 | ||
41075 | ||
41076 | ||
41077 | ||
41078 | ||
41079 | ||
41080 | ||
41081 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
41082 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
41083 | DEPS_TRACKING=0 | |
41084 | ||
41085 | if test "x$GCC" = "xyes"; then | |
41086 | DEPSMODE=gcc | |
41087 | DEPS_TRACKING=1 | |
41088 | case "${BAKEFILE_HOST}" in | |
41089 | powerpc-*-darwin* ) | |
41090 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
41091 | ;; | |
41092 | * ) | |
41093 | DEPSFLAG_GCC="-MMD" | |
41094 | ;; | |
41095 | esac | |
41096 | echo "$as_me:$LINENO: result: gcc" >&5 | |
41097 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 41098 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 41099 | DEPSMODE=mwcc |
b1d22ded | 41100 | DEPS_TRACKING=1 |
81f90336 | 41101 | DEPSFLAG_MWCC="-MM" |
b1d22ded DE |
41102 | echo "$as_me:$LINENO: result: mwcc" >&5 |
41103 | echo "${ECHO_T}mwcc" >&6 | |
a848cd7e SC |
41104 | else |
41105 | echo "$as_me:$LINENO: result: none" >&5 | |
41106 | echo "${ECHO_T}none" >&6 | |
41107 | fi | |
41108 | ||
41109 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
41110 | |
41111 | D='$' | |
41112 | cat <<EOF >bk-deps | |
a848cd7e SC |
41113 | #!/bin/sh |
41114 | ||
41115 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
41116 | # script. It is used to track C/C++ files dependencies in portable way. | |
41117 | # | |
41118 | # Permission is given to use this file in any way. | |
41119 | ||
473276a9 | 41120 | DEPSMODE=${DEPSMODE} |
a848cd7e | 41121 | DEPSDIR=.deps |
473276a9 | 41122 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
81f90336 | 41123 | DEPSFLAG_MWCC="${DEPSFLAG_MWCC}" |
a848cd7e | 41124 | |
473276a9 | 41125 | mkdir -p ${D}DEPSDIR |
a848cd7e | 41126 | |
473276a9 VS |
41127 | if test ${D}DEPSMODE = gcc ; then |
41128 | ${D}* ${D}{DEPSFLAG_GCC} | |
41129 | status=${D}? | |
41130 | if test ${D}{status} != 0 ; then | |
41131 | exit ${D}{status} | |
a848cd7e SC |
41132 | fi |
41133 | # move created file to the location we want it in: | |
473276a9 VS |
41134 | while test ${D}# -gt 0; do |
41135 | case "${D}1" in | |
a848cd7e SC |
41136 | -o ) |
41137 | shift | |
473276a9 | 41138 | objfile=${D}1 |
a848cd7e SC |
41139 | ;; |
41140 | -* ) | |
41141 | ;; | |
41142 | * ) | |
473276a9 | 41143 | srcfile=${D}1 |
a848cd7e SC |
41144 | ;; |
41145 | esac | |
41146 | shift | |
41147 | done | |
1e9e8aba DE |
41148 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
41149 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
41150 | if test -f ${D}depfile ; then |
41151 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
41152 | rm -f ${D}depfile | |
a848cd7e | 41153 | else |
1e9e8aba | 41154 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
41155 | if test -f ${D}depfile ; then |
41156 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
41157 | rm -f ${D}depfile | |
a848cd7e SC |
41158 | fi |
41159 | fi | |
41160 | exit 0 | |
81f90336 MW |
41161 | elif test ${D}DEPSMODE = mwcc ; then |
41162 | ${D}* | |
41163 | status=${D}? | |
41164 | if test ${D}{status} != 0 ; then | |
41165 | exit ${D}{status} | |
41166 | fi | |
41167 | # Run mwcc again with -MM and redirect into the dep file we want | |
41168 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
41169 | prevarg= | |
41170 | for arg in ${D}* ; do | |
41171 | if test "${D}prevarg" = "-o"; then | |
41172 | objfile=${D}arg | |
41173 | else | |
41174 | case "${D}arg" in | |
41175 | -* ) | |
41176 | ;; | |
41177 | * ) | |
41178 | srcfile=${D}arg | |
41179 | ;; | |
41180 | esac | |
41181 | fi | |
41182 | prevarg="${D}arg" | |
41183 | done | |
41184 | ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d | |
41185 | exit 0 | |
a848cd7e | 41186 | else |
473276a9 VS |
41187 | ${D}* |
41188 | exit ${D}? | |
a848cd7e SC |
41189 | fi |
41190 | EOF | |
473276a9 | 41191 | |
a848cd7e SC |
41192 | chmod +x bk-deps |
41193 | fi | |
41194 | ||
41195 | ||
41196 | ||
41197 | ||
41198 | RESCOMP= | |
41199 | SETFILE= | |
41200 | ||
41201 | case ${BAKEFILE_HOST} in | |
41202 | *-*-cygwin* | *-*-mingw32* ) | |
41203 | if test "$build" != "$host" ; then | |
41204 | RESCOMP=$host_alias-windres | |
41205 | else | |
41206 | # Extract the first word of "windres", so it can be a program name with args. | |
41207 | set dummy windres; ac_word=$2 | |
41208 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41209 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41210 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
41211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41212 | else | |
41213 | if test -n "$RESCOMP"; then | |
41214 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
41215 | else | |
41216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41217 | for as_dir in $PATH | |
41218 | do | |
41219 | IFS=$as_save_IFS | |
41220 | test -z "$as_dir" && as_dir=. | |
41221 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41222 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41223 | ac_cv_prog_RESCOMP="windres" | |
41224 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41225 | break 2 | |
41226 | fi | |
41227 | done | |
41228 | done | |
41229 | ||
41230 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
41231 | fi | |
41232 | fi | |
41233 | RESCOMP=$ac_cv_prog_RESCOMP | |
41234 | if test -n "$RESCOMP"; then | |
41235 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
41236 | echo "${ECHO_T}$RESCOMP" >&6 | |
41237 | else | |
41238 | echo "$as_me:$LINENO: result: no" >&5 | |
41239 | echo "${ECHO_T}no" >&6 | |
41240 | fi | |
41241 | ||
41242 | fi | |
41243 | ;; | |
41244 | ||
1e9e8aba | 41245 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
41246 | # Extract the first word of "Rez", so it can be a program name with args. |
41247 | set dummy Rez; ac_word=$2 | |
41248 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41249 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41250 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
41251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41252 | else | |
41253 | if test -n "$RESCOMP"; then | |
41254 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
41255 | else | |
41256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41257 | for as_dir in $PATH | |
41258 | do | |
41259 | IFS=$as_save_IFS | |
41260 | test -z "$as_dir" && as_dir=. | |
41261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41262 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41263 | ac_cv_prog_RESCOMP="Rez" | |
41264 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41265 | break 2 | |
41266 | fi | |
41267 | done | |
41268 | done | |
41269 | ||
41270 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
41271 | fi | |
41272 | fi | |
41273 | RESCOMP=$ac_cv_prog_RESCOMP | |
41274 | if test -n "$RESCOMP"; then | |
41275 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
41276 | echo "${ECHO_T}$RESCOMP" >&6 | |
41277 | else | |
41278 | echo "$as_me:$LINENO: result: no" >&5 | |
41279 | echo "${ECHO_T}no" >&6 | |
41280 | fi | |
41281 | ||
41282 | # Extract the first word of "SetFile", so it can be a program name with args. | |
41283 | set dummy SetFile; ac_word=$2 | |
41284 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41285 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41286 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
41287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41288 | else | |
41289 | if test -n "$SETFILE"; then | |
41290 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
41291 | else | |
41292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41293 | for as_dir in $PATH | |
41294 | do | |
41295 | IFS=$as_save_IFS | |
41296 | test -z "$as_dir" && as_dir=. | |
41297 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41298 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41299 | ac_cv_prog_SETFILE="SetFile" | |
41300 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41301 | break 2 | |
41302 | fi | |
41303 | done | |
41304 | done | |
41305 | ||
41306 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
41307 | fi | |
41308 | fi | |
41309 | SETFILE=$ac_cv_prog_SETFILE | |
41310 | if test -n "$SETFILE"; then | |
41311 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
41312 | echo "${ECHO_T}$SETFILE" >&6 | |
41313 | else | |
41314 | echo "$as_me:$LINENO: result: no" >&5 | |
41315 | echo "${ECHO_T}no" >&6 | |
41316 | fi | |
41317 | ||
41318 | ;; | |
41319 | esac | |
41320 | ||
41321 | ||
41322 | ||
41323 | ||
41324 | ||
81f90336 | 41325 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.6" |
a848cd7e | 41326 | |
dcc1b6ad | 41327 | |
81f90336 | 41328 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.6" |
a848cd7e | 41329 | |
646b6ec1 | 41330 | |
74b84332 | 41331 | |
a848cd7e SC |
41332 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
41333 | if test "${enable_precomp_headers+set}" = set; then | |
41334 | enableval="$enable_precomp_headers" | |
41335 | bk_use_pch="$enableval" | |
41336 | fi; | |
41337 | ||
41338 | GCC_PCH=0 | |
41339 | ||
41340 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
41341 | if test "x$GCC" = "xyes"; then | |
41342 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
41343 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
41344 | cat >conftest.$ac_ext <<_ACEOF | |
41345 | /* confdefs.h. */ | |
41346 | _ACEOF | |
41347 | cat confdefs.h >>conftest.$ac_ext | |
41348 | cat >>conftest.$ac_ext <<_ACEOF | |
41349 | /* end confdefs.h. */ | |
41350 | ||
41351 | int | |
41352 | main () | |
41353 | { | |
41354 | ||
41355 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
41356 | #error "no pch support" | |
41357 | #endif | |
41358 | #if (__GNUC__ < 3) | |
41359 | #error "no pch support" | |
41360 | #endif | |
41361 | #if (__GNUC__ == 3) && \ | |
41362 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
41363 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
41364 | #error "no pch support" | |
41365 | #endif | |
41366 | ||
41367 | ; | |
41368 | return 0; | |
41369 | } | |
41370 | _ACEOF | |
41371 | rm -f conftest.$ac_objext | |
41372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41373 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41374 | ac_status=$? |
ac1cb8d3 VS |
41375 | grep -v '^ *+' conftest.er1 >conftest.err |
41376 | rm -f conftest.er1 | |
41377 | cat conftest.err >&5 | |
a848cd7e SC |
41378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41379 | (exit $ac_status); } && | |
89be85c2 VS |
41380 | { ac_try='test -z "$ac_c_werror_flag" |
41381 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41383 | (eval $ac_try) 2>&5 | |
41384 | ac_status=$? | |
41385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41386 | (exit $ac_status); }; } && | |
41387 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41389 | (eval $ac_try) 2>&5 | |
41390 | ac_status=$? | |
41391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41392 | (exit $ac_status); }; }; then | |
41393 | ||
41394 | echo "$as_me:$LINENO: result: yes" >&5 | |
41395 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
41396 | GCC_PCH=1 |
41397 | ||
41398 | else | |
41399 | echo "$as_me: failed program was:" >&5 | |
41400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41401 | ||
41402 | ||
41403 | echo "$as_me:$LINENO: result: no" >&5 | |
41404 | echo "${ECHO_T}no" >&6 | |
41405 | ||
41406 | fi | |
ac1cb8d3 | 41407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 41408 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
41409 | |
41410 | D='$' | |
41411 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
41412 | #!/bin/sh |
41413 | ||
41414 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
41415 | # script. It is used to generated precompiled headers. | |
41416 | # | |
41417 | # Permission is given to use this file in any way. | |
41418 | ||
1e9e8aba DE |
41419 | outfile="${D}{1}" |
41420 | header="${D}{2}" | |
a848cd7e SC |
41421 | shift |
41422 | shift | |
41423 | ||
41424 | compiler= | |
41425 | headerfile= | |
1e9e8aba DE |
41426 | while test ${D}{#} -gt 0; do |
41427 | case "${D}{1}" in | |
a848cd7e | 41428 | -I* ) |
1e9e8aba DE |
41429 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
41430 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
41431 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
41432 | fi |
41433 | ;; | |
41434 | esac | |
1e9e8aba | 41435 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
41436 | shift |
41437 | done | |
41438 | ||
1e9e8aba DE |
41439 | if test "x${D}{headerfile}" = "x" ; then |
41440 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 41441 | else |
1e9e8aba DE |
41442 | if test -f ${D}{outfile} ; then |
41443 | rm -f ${D}{outfile} | |
a848cd7e | 41444 | else |
1e9e8aba | 41445 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 41446 | fi |
1e9e8aba | 41447 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
41448 | mkdir -p .deps |
41449 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
41450 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
41451 | exit ${D}{?} | |
a848cd7e SC |
41452 | fi |
41453 | EOF | |
1e9e8aba | 41454 | |
a848cd7e SC |
41455 | chmod +x bk-make-pch |
41456 | fi | |
41457 | fi | |
41458 | fi | |
41459 | ||
41460 | ||
41461 | ||
a848cd7e SC |
41462 | COND_BUILD_DEBUG="#" |
41463 | if test "x$BUILD" = "xdebug" ; then | |
41464 | COND_BUILD_DEBUG="" | |
41465 | fi | |
41466 | ||
41467 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
41468 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
41469 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
41470 | fi | |
41471 | ||
41472 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
41473 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
41474 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
41475 | fi | |
41476 | ||
41477 | COND_BUILD_DEBUG_UNICODE_0="#" | |
41478 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
41479 | COND_BUILD_DEBUG_UNICODE_0="" | |
41480 | fi | |
41481 | ||
41482 | COND_BUILD_DEBUG_UNICODE_1="#" | |
41483 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
41484 | COND_BUILD_DEBUG_UNICODE_1="" | |
41485 | fi | |
41486 | ||
41487 | COND_BUILD_RELEASE="#" | |
41488 | if test "x$BUILD" = "xrelease" ; then | |
41489 | COND_BUILD_RELEASE="" | |
41490 | fi | |
41491 | ||
41492 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
41493 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
41494 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
41495 | fi | |
41496 | ||
41497 | COND_BUILD_RELEASE_UNICODE_0="#" | |
41498 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
41499 | COND_BUILD_RELEASE_UNICODE_0="" | |
41500 | fi | |
41501 | ||
41502 | COND_BUILD_RELEASE_UNICODE_1="#" | |
41503 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
41504 | COND_BUILD_RELEASE_UNICODE_1="" | |
41505 | fi | |
41506 | ||
41507 | COND_DEBUG_FLAG_1="#" | |
41508 | if test "x$DEBUG_FLAG" = "x1" ; then | |
41509 | COND_DEBUG_FLAG_1="" | |
41510 | fi | |
41511 | ||
41512 | COND_DEBUG_INFO_0="#" | |
41513 | if test "x$DEBUG_INFO" = "x0" ; then | |
41514 | COND_DEBUG_INFO_0="" | |
41515 | fi | |
41516 | ||
41517 | COND_DEBUG_INFO_1="#" | |
41518 | if test "x$DEBUG_INFO" = "x1" ; then | |
41519 | COND_DEBUG_INFO_1="" | |
41520 | fi | |
41521 | ||
41522 | COND_DEPS_TRACKING_0="#" | |
41523 | if test "x$DEPS_TRACKING" = "x0" ; then | |
41524 | COND_DEPS_TRACKING_0="" | |
41525 | fi | |
41526 | ||
41527 | COND_DEPS_TRACKING_1="#" | |
41528 | if test "x$DEPS_TRACKING" = "x1" ; then | |
41529 | COND_DEPS_TRACKING_1="" | |
41530 | fi | |
41531 | ||
41532 | COND_GCC_PCH_1="#" | |
41533 | if test "x$GCC_PCH" = "x1" ; then | |
41534 | COND_GCC_PCH_1="" | |
41535 | fi | |
41536 | ||
41537 | COND_MONOLITHIC_0="#" | |
41538 | if test "x$MONOLITHIC" = "x0" ; then | |
41539 | COND_MONOLITHIC_0="" | |
41540 | fi | |
41541 | ||
41542 | COND_MONOLITHIC_0_SHARED_0="#" | |
41543 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
41544 | COND_MONOLITHIC_0_SHARED_0="" | |
41545 | fi | |
41546 | ||
41547 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
41548 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
41549 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
41550 | fi | |
41551 | ||
90970d69 DE |
41552 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
41553 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
41554 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
41555 | fi | |
41556 | ||
a848cd7e SC |
41557 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
41558 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41559 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
41560 | fi | |
41561 | ||
a848cd7e SC |
41562 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
41563 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
41564 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
41565 | fi | |
41566 | ||
ceec2216 RL |
41567 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
41568 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
41569 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
41570 | fi | |
41571 | ||
a848cd7e SC |
41572 | COND_MONOLITHIC_0_SHARED_1="#" |
41573 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
41574 | COND_MONOLITHIC_0_SHARED_1="" | |
41575 | fi | |
41576 | ||
41577 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
41578 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41579 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
41580 | fi | |
41581 | ||
90970d69 DE |
41582 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
41583 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
41584 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
41585 | fi | |
41586 | ||
a848cd7e SC |
41587 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
41588 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41589 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
41590 | fi | |
41591 | ||
a848cd7e SC |
41592 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
41593 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41594 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
41595 | fi | |
41596 | ||
ceec2216 RL |
41597 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
41598 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
41599 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
41600 | fi | |
41601 | ||
a848cd7e SC |
41602 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
41603 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
41604 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
41605 | fi | |
41606 | ||
41607 | COND_MONOLITHIC_1="#" | |
41608 | if test "x$MONOLITHIC" = "x1" ; then | |
41609 | COND_MONOLITHIC_1="" | |
41610 | fi | |
41611 | ||
41612 | COND_MONOLITHIC_1_SHARED_0="#" | |
41613 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
41614 | COND_MONOLITHIC_1_SHARED_0="" | |
41615 | fi | |
41616 | ||
41617 | COND_MONOLITHIC_1_SHARED_1="#" | |
41618 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
41619 | COND_MONOLITHIC_1_SHARED_1="" | |
41620 | fi | |
41621 | ||
41622 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
41623 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
41624 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
41625 | fi | |
41626 | ||
41627 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
41628 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
41629 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
41630 | fi | |
41631 | ||
41632 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
41633 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
41634 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
41635 | fi | |
41636 | ||
41637 | COND_PLATFORM_MACOSX_1="#" | |
41638 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
41639 | COND_PLATFORM_MACOSX_1="" | |
41640 | fi | |
41641 | ||
a30f955f VS |
41642 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
41643 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
41644 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
41645 | fi | |
41646 | ||
a848cd7e SC |
41647 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
41648 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
41649 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
41650 | fi | |
41651 | ||
41652 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
41653 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
41654 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
41655 | fi | |
41656 | ||
41657 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
41658 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
41659 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
41660 | fi | |
41661 | ||
fc480dc1 DE |
41662 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
41663 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
41664 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
41665 | fi | |
41666 | ||
1e9e8aba DE |
41667 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
41668 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41669 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
41670 | fi | |
41671 | ||
ebee3cd0 VS |
41672 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
41673 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
41674 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
41675 | fi | |
41676 | ||
41677 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
41678 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
41679 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
41680 | fi | |
41681 | ||
a848cd7e SC |
41682 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
41683 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41684 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
41685 | fi | |
41686 | ||
41687 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
41688 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
41689 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
41690 | fi | |
41691 | ||
b48a2016 DE |
41692 | COND_PLATFORM_MACOS_1="#" |
41693 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
41694 | COND_PLATFORM_MACOS_1="" | |
41695 | fi | |
41696 | ||
a848cd7e SC |
41697 | COND_PLATFORM_MAC_1="#" |
41698 | if test "x$PLATFORM_MAC" = "x1" ; then | |
41699 | COND_PLATFORM_MAC_1="" | |
41700 | fi | |
41701 | ||
41702 | COND_PLATFORM_OS2_1="#" | |
41703 | if test "x$PLATFORM_OS2" = "x1" ; then | |
41704 | COND_PLATFORM_OS2_1="" | |
41705 | fi | |
41706 | ||
41707 | COND_PLATFORM_UNIX_0="#" | |
41708 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
41709 | COND_PLATFORM_UNIX_0="" | |
41710 | fi | |
41711 | ||
41712 | COND_PLATFORM_UNIX_1="#" | |
41713 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
41714 | COND_PLATFORM_UNIX_1="" | |
41715 | fi | |
41716 | ||
41717 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
41718 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41719 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
41720 | fi | |
41721 | ||
41722 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
41723 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
41724 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
41725 | fi | |
41726 | ||
41727 | COND_PLATFORM_WIN32_0="#" | |
41728 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
41729 | COND_PLATFORM_WIN32_0="" | |
41730 | fi | |
41731 | ||
41732 | COND_PLATFORM_WIN32_1="#" | |
41733 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
41734 | COND_PLATFORM_WIN32_1="" | |
41735 | fi | |
41736 | ||
41737 | COND_SHARED_0="#" | |
41738 | if test "x$SHARED" = "x0" ; then | |
41739 | COND_SHARED_0="" | |
41740 | fi | |
41741 | ||
ceec2216 RL |
41742 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
41743 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
41744 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
41745 | fi | |
41746 | ||
41747 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
41748 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
41749 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
41750 | fi | |
41751 | ||
41752 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
41753 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
41754 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
41755 | fi | |
41756 | ||
a848cd7e SC |
41757 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
41758 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41759 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
41760 | fi | |
41761 | ||
41762 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41763 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41764 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41765 | fi | |
41766 | ||
41767 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41768 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41769 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41770 | fi | |
41771 | ||
41772 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41773 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41774 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41775 | fi | |
41776 | ||
41777 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
41778 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41779 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
41780 | fi | |
41781 | ||
41782 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
41783 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41784 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
41785 | fi | |
41786 | ||
41787 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
41788 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41789 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
41790 | fi | |
41791 | ||
41792 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
41793 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41794 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
41795 | fi | |
41796 | ||
41797 | COND_SHARED_1="#" | |
41798 | if test "x$SHARED" = "x1" ; then | |
41799 | COND_SHARED_1="" | |
41800 | fi | |
41801 | ||
41802 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
41803 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41804 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
41805 | fi | |
41806 | ||
a30f955f VS |
41807 | COND_TOOLKIT_="#" |
41808 | if test "x$TOOLKIT" = "x" ; then | |
41809 | COND_TOOLKIT_="" | |
41810 | fi | |
41811 | ||
a848cd7e SC |
41812 | COND_TOOLKIT_COCOA="#" |
41813 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
41814 | COND_TOOLKIT_COCOA="" | |
41815 | fi | |
41816 | ||
a49baeab DE |
41817 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
41818 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
41819 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
41820 | fi | |
41821 | ||
a848cd7e SC |
41822 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
41823 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41824 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
41825 | fi | |
41826 | ||
41827 | COND_TOOLKIT_GTK="#" | |
41828 | if test "x$TOOLKIT" = "xGTK" ; then | |
41829 | COND_TOOLKIT_GTK="" | |
41830 | fi | |
41831 | ||
41832 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
41833 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
41834 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
41835 | fi | |
41836 | ||
41837 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
41838 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41839 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
41840 | fi | |
41841 | ||
41842 | COND_TOOLKIT_MAC="#" | |
41843 | if test "x$TOOLKIT" = "xMAC" ; then | |
41844 | COND_TOOLKIT_MAC="" | |
41845 | fi | |
41846 | ||
41847 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
41848 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
41849 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
41850 | fi | |
41851 | ||
41852 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
41853 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41854 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
41855 | fi | |
41856 | ||
41857 | COND_TOOLKIT_MGL="#" | |
41858 | if test "x$TOOLKIT" = "xMGL" ; then | |
41859 | COND_TOOLKIT_MGL="" | |
41860 | fi | |
41861 | ||
41862 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
41863 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
41864 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
41865 | fi | |
41866 | ||
41867 | COND_TOOLKIT_MOTIF="#" | |
41868 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
41869 | COND_TOOLKIT_MOTIF="" | |
41870 | fi | |
41871 | ||
41872 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
41873 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
41874 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
41875 | fi | |
41876 | ||
41877 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
41878 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41879 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
41880 | fi | |
41881 | ||
41882 | COND_TOOLKIT_MSW="#" | |
41883 | if test "x$TOOLKIT" = "xMSW" ; then | |
41884 | COND_TOOLKIT_MSW="" | |
41885 | fi | |
41886 | ||
41887 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
41888 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
41889 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
41890 | fi | |
41891 | ||
41892 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
41893 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41894 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
41895 | fi | |
41896 | ||
41897 | COND_TOOLKIT_PM="#" | |
41898 | if test "x$TOOLKIT" = "xPM" ; then | |
41899 | COND_TOOLKIT_PM="" | |
41900 | fi | |
41901 | ||
41902 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
41903 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
41904 | COND_TOOLKIT_PM_USE_GUI_1="" | |
41905 | fi | |
41906 | ||
41907 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
41908 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41909 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
41910 | fi | |
41911 | ||
3fd9c298 DE |
41912 | COND_TOOLKIT_WINCE="#" |
41913 | if test "x$TOOLKIT" = "xWINCE" ; then | |
41914 | COND_TOOLKIT_WINCE="" | |
41915 | fi | |
41916 | ||
41917 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
41918 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
41919 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
41920 | fi | |
41921 | ||
41922 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
41923 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41924 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
41925 | fi | |
41926 | ||
a848cd7e SC |
41927 | COND_TOOLKIT_X11="#" |
41928 | if test "x$TOOLKIT" = "xX11" ; then | |
41929 | COND_TOOLKIT_X11="" | |
41930 | fi | |
41931 | ||
41932 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
41933 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
41934 | COND_TOOLKIT_X11_USE_GUI_1="" | |
41935 | fi | |
41936 | ||
41937 | COND_UNICODE_1="#" | |
41938 | if test "x$UNICODE" = "x1" ; then | |
41939 | COND_UNICODE_1="" | |
41940 | fi | |
41941 | ||
41942 | COND_USE_EXCEPTIONS_0="#" | |
41943 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
41944 | COND_USE_EXCEPTIONS_0="" | |
41945 | fi | |
41946 | ||
41947 | COND_USE_EXCEPTIONS_1="#" | |
41948 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
41949 | COND_USE_EXCEPTIONS_1="" | |
41950 | fi | |
41951 | ||
41952 | COND_USE_GUI_0="#" | |
41953 | if test "x$USE_GUI" = "x0" ; then | |
41954 | COND_USE_GUI_0="" | |
41955 | fi | |
41956 | ||
41957 | COND_USE_GUI_1="#" | |
41958 | if test "x$USE_GUI" = "x1" ; then | |
41959 | COND_USE_GUI_1="" | |
41960 | fi | |
41961 | ||
41962 | COND_USE_GUI_1_WXUNIV_0="#" | |
41963 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41964 | COND_USE_GUI_1_WXUNIV_0="" | |
41965 | fi | |
41966 | ||
41967 | COND_USE_GUI_1_WXUNIV_1="#" | |
41968 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
41969 | COND_USE_GUI_1_WXUNIV_1="" | |
41970 | fi | |
41971 | ||
41972 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41973 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41974 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41975 | fi | |
41976 | ||
41977 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41978 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41979 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41980 | fi | |
41981 | ||
41982 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41983 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41984 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41985 | fi | |
41986 | ||
ceec2216 RL |
41987 | COND_USE_ODBC_1="#" |
41988 | if test "x$USE_ODBC" = "x1" ; then | |
41989 | COND_USE_ODBC_1="" | |
41990 | fi | |
41991 | ||
ffa0583f RL |
41992 | COND_USE_OPENGL_1="#" |
41993 | if test "x$USE_OPENGL" = "x1" ; then | |
41994 | COND_USE_OPENGL_1="" | |
41995 | fi | |
41996 | ||
a848cd7e SC |
41997 | COND_USE_PLUGINS_0="#" |
41998 | if test "x$USE_PLUGINS" = "x0" ; then | |
41999 | COND_USE_PLUGINS_0="" | |
42000 | fi | |
42001 | ||
42002 | COND_USE_SOSYMLINKS_1="#" | |
42003 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
42004 | COND_USE_SOSYMLINKS_1="" | |
42005 | fi | |
42006 | ||
42007 | COND_USE_SOVERLINUX_1="#" | |
42008 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
42009 | COND_USE_SOVERLINUX_1="" | |
42010 | fi | |
42011 | ||
42012 | COND_USE_SOVERSION_0="#" | |
42013 | if test "x$USE_SOVERSION" = "x0" ; then | |
42014 | COND_USE_SOVERSION_0="" | |
42015 | fi | |
42016 | ||
42017 | COND_USE_SOVERSOLARIS_1="#" | |
42018 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
42019 | COND_USE_SOVERSOLARIS_1="" | |
42020 | fi | |
42021 | ||
a13a7f89 RL |
42022 | COND_USE_XRC_1="#" |
42023 | if test "x$USE_XRC" = "x1" ; then | |
42024 | COND_USE_XRC_1="" | |
42025 | fi | |
42026 | ||
a848cd7e SC |
42027 | COND_WITH_PLUGIN_SDL_1="#" |
42028 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
42029 | COND_WITH_PLUGIN_SDL_1="" | |
42030 | fi | |
42031 | ||
1e6eb025 VZ |
42032 | COND_WXUNIV_0="#" |
42033 | if test "x$WXUNIV" = "x0" ; then | |
42034 | COND_WXUNIV_0="" | |
42035 | fi | |
42036 | ||
a848cd7e SC |
42037 | COND_WXUNIV_1="#" |
42038 | if test "x$WXUNIV" = "x1" ; then | |
42039 | COND_WXUNIV_1="" | |
42040 | fi | |
42041 | ||
42042 | COND_WXUSE_EXPAT_BUILTIN="#" | |
42043 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
42044 | COND_WXUSE_EXPAT_BUILTIN="" | |
42045 | fi | |
42046 | ||
42047 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
42048 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
42049 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
42050 | fi | |
42051 | ||
42052 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
42053 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
42054 | COND_WXUSE_LIBPNG_BUILTIN="" | |
42055 | fi | |
42056 | ||
42057 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
42058 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
42059 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
42060 | fi | |
42061 | ||
42062 | COND_WXUSE_ODBC_BUILTIN="#" | |
42063 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
42064 | COND_WXUSE_ODBC_BUILTIN="" | |
42065 | fi | |
42066 | ||
42067 | COND_WXUSE_REGEX_BUILTIN="#" | |
42068 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
42069 | COND_WXUSE_REGEX_BUILTIN="" | |
42070 | fi | |
42071 | ||
42072 | COND_WXUSE_ZLIB_BUILTIN="#" | |
42073 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
42074 | COND_WXUSE_ZLIB_BUILTIN="" | |
42075 | fi | |
42076 | ||
42077 | ||
42078 | ||
2057db16 VS |
42079 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
42080 | { { 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 | |
42081 | 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;} | |
42082 | { (exit 1); exit 1; }; } | |
42083 | fi | |
42084 | ||
a848cd7e | 42085 | |
ceec2216 RL |
42086 | if test "$wxUSE_SHARED" = "yes"; then |
42087 | ||
42088 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
42089 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
42090 | ||
5b674b9d DE |
42091 | case "${host}" in |
42092 | *-pc-os2_emx | *-pc-os2-emx ) | |
42093 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
42094 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
42095 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
42096 | cp -p ${srcdir}/src/os2/dllar.sh . | |
42097 | ;; | |
42098 | esac | |
ceec2216 RL |
42099 | else |
42100 | ||
42101 | EXE_LINKER="$CXX -o" | |
42102 | ||
42103 | fi | |
a848cd7e | 42104 | |
74b84332 | 42105 | GCC_PRAGMA_FLAGS="" |
c08ebc62 DE |
42106 | PCH_FLAGS="" |
42107 | if test $GCC_PCH = 1 ; then | |
42108 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
42109 | PCH_FLAGS="-DWX_PRECOMP" | |
42110 | else | |
a848cd7e SC |
42111 | case "${host}" in |
42112 | powerpc-*-darwin* ) | |
74b84332 | 42113 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 42114 | ;; |
bea8e651 | 42115 | *-*-mingw32* ) |
1f344abf VS |
42116 | if test "$wxUSE_STL" = "yes" -o \ |
42117 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
42118 | "$wxUSE_NO_RTTI" != "yes"; then | |
42119 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
42120 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
42121 | cat >conftest.$ac_ext <<_ACEOF |
42122 | /* confdefs.h. */ | |
42123 | _ACEOF | |
42124 | cat confdefs.h >>conftest.$ac_ext | |
42125 | cat >>conftest.$ac_ext <<_ACEOF | |
42126 | /* end confdefs.h. */ | |
42127 | ||
3314e67b RR |
42128 | int |
42129 | main () | |
42130 | { | |
42131 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
42132 | #error "Not GCC 3.2 or greater" | |
42133 | #endif | |
42134 | ||
42135 | ; | |
42136 | return 0; | |
42137 | } | |
42138 | _ACEOF | |
42139 | rm -f conftest.$ac_objext | |
42140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42141 | (eval $ac_compile) 2>conftest.er1 | |
42142 | ac_status=$? | |
42143 | grep -v '^ *+' conftest.er1 >conftest.err | |
42144 | rm -f conftest.er1 | |
42145 | cat conftest.err >&5 | |
42146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42147 | (exit $ac_status); } && | |
89be85c2 VS |
42148 | { ac_try='test -z "$ac_c_werror_flag" |
42149 | || test ! -s conftest.err' | |
3314e67b RR |
42150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42151 | (eval $ac_try) 2>&5 | |
42152 | ac_status=$? | |
42153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42154 | (exit $ac_status); }; } && | |
42155 | { ac_try='test -s conftest.$ac_objext' | |
42156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42157 | (eval $ac_try) 2>&5 | |
42158 | ac_status=$? | |
42159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42160 | (exit $ac_status); }; }; then | |
42161 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
42162 | echo "$as_me:$LINENO: result: yes" >&5 | |
42163 | echo "${ECHO_T}yes" >&6 | |
42164 | else | |
42165 | echo "$as_me: failed program was:" >&5 | |
42166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42167 | ||
42168 | echo "$as_me:$LINENO: result: no" >&5 | |
42169 | echo "${ECHO_T}no" >&6 | |
42170 | fi | |
42171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42172 | fi | |
42173 | ;; | |
42174 | *-pc-os2_emx | *-pc-os2-emx ) | |
42175 | if test "$wxUSE_STL" = "yes"; then | |
42176 | echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5 | |
42177 | echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
42178 | cat >conftest.$ac_ext <<_ACEOF | |
42179 | /* confdefs.h. */ | |
42180 | _ACEOF | |
42181 | cat confdefs.h >>conftest.$ac_ext | |
42182 | cat >>conftest.$ac_ext <<_ACEOF | |
42183 | /* end confdefs.h. */ | |
42184 | ||
bea8e651 MB |
42185 | int |
42186 | main () | |
42187 | { | |
1f344abf | 42188 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
42189 | #error "Not GCC 3.2 or greater" |
42190 | #endif | |
42191 | ||
42192 | ; | |
42193 | return 0; | |
42194 | } | |
42195 | _ACEOF | |
42196 | rm -f conftest.$ac_objext | |
42197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42198 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 42199 | ac_status=$? |
ac1cb8d3 VS |
42200 | grep -v '^ *+' conftest.er1 >conftest.err |
42201 | rm -f conftest.er1 | |
42202 | cat conftest.err >&5 | |
bea8e651 MB |
42203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42204 | (exit $ac_status); } && | |
89be85c2 VS |
42205 | { ac_try='test -z "$ac_c_werror_flag" |
42206 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42208 | (eval $ac_try) 2>&5 | |
42209 | ac_status=$? | |
42210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42211 | (exit $ac_status); }; } && | |
42212 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
42213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42214 | (eval $ac_try) 2>&5 | |
42215 | ac_status=$? | |
42216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42217 | (exit $ac_status); }; }; then | |
74b84332 | 42218 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
42219 | echo "$as_me:$LINENO: result: yes" >&5 |
42220 | echo "${ECHO_T}yes" >&6 | |
42221 | else | |
42222 | echo "$as_me: failed program was:" >&5 | |
42223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42224 | ||
42225 | echo "$as_me:$LINENO: result: no" >&5 | |
42226 | echo "${ECHO_T}no" >&6 | |
42227 | fi | |
ac1cb8d3 | 42228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
42229 | fi |
42230 | ;; | |
a848cd7e SC |
42231 | esac |
42232 | fi | |
d2083416 | 42233 | CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
42234 | |
42235 | ||
42236 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
42237 | ||
42238 | ||
42239 | ||
42240 | ||
42241 | ||
42242 | ||
42243 | ||
42244 | ||
42245 | ||
42246 | ||
42247 | ||
42248 | ||
42249 | ||
42250 | ||
42251 | ||
42252 | ||
42253 | ||
42254 | ||
42255 | ||
42256 | ||
42257 | ||
42258 | ||
42259 | ||
42260 | ||
42261 | ||
42262 | ||
42263 | ||
42264 | ||
42265 | ||
42266 | ||
42267 | ||
42268 | ||
42269 | ||
42270 | ||
42271 | ||
42272 | ||
42273 | ||
42274 | ||
42275 | ||
42276 | ||
42277 | ||
42278 | ||
a848cd7e SC |
42279 | |
42280 | ||
42281 | ||
42282 | ||
42283 | ||
42284 | ||
42285 | ||
42286 | ||
42287 | ||
42288 | ||
42289 | ||
42290 | ||
42291 | ||
42292 | ||
42293 | ||
42294 | ||
42295 | ||
42296 | ||
74b84332 | 42297 | |
a848cd7e SC |
42298 | |
42299 | ||
42300 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
42301 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 42302 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
42303 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
42304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42305 | else | |
42306 | cat >conftest.make <<\_ACEOF | |
42307 | all: | |
42308 | @echo 'ac_maketemp="$(MAKE)"' | |
42309 | _ACEOF | |
42310 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
42311 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
42312 | if test -n "$ac_maketemp"; then | |
42313 | eval ac_cv_prog_make_${ac_make}_set=yes | |
42314 | else | |
42315 | eval ac_cv_prog_make_${ac_make}_set=no | |
42316 | fi | |
42317 | rm -f conftest.make | |
42318 | fi | |
42319 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
42320 | echo "$as_me:$LINENO: result: yes" >&5 | |
42321 | echo "${ECHO_T}yes" >&6 | |
42322 | SET_MAKE= | |
42323 | else | |
42324 | echo "$as_me:$LINENO: result: no" >&5 | |
42325 | echo "${ECHO_T}no" >&6 | |
42326 | SET_MAKE="MAKE=${MAKE-make}" | |
42327 | fi | |
42328 | ||
42329 | ||
a848cd7e | 42330 | |
ceec2216 RL |
42331 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
42332 | ||
a848cd7e | 42333 | |
ceec2216 | 42334 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 42335 | |
a848cd7e | 42336 | |
ceec2216 | 42337 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 42338 | |
ceec2216 RL |
42339 | |
42340 | ac_config_files="$ac_config_files version-script Makefile" | |
42341 | ||
42342 | ||
42343 | ac_config_commands="$ac_config_commands wx-config | |
42344 | " | |
a848cd7e SC |
42345 | |
42346 | ||
9103d280 RL |
42347 | |
42348 | ||
a848cd7e SC |
42349 | if test "$wxUSE_GUI" = "yes"; then |
42350 | SUBDIRS="samples demos utils contrib" | |
42351 | else SUBDIRS="samples utils" | |
42352 | fi | |
42353 | ||
42354 | ||
42355 | ||
42356 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
42357 | if test "${with_cppunit_prefix+set}" = set; then | |
42358 | withval="$with_cppunit_prefix" | |
42359 | cppunit_config_prefix="$withval" | |
42360 | else | |
42361 | cppunit_config_prefix="" | |
42362 | fi; | |
42363 | ||
42364 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
42365 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
42366 | withval="$with_cppunit_exec_prefix" | |
42367 | cppunit_config_exec_prefix="$withval" | |
42368 | else | |
42369 | cppunit_config_exec_prefix="" | |
42370 | fi; | |
42371 | ||
42372 | if test x$cppunit_config_exec_prefix != x ; then | |
42373 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
42374 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
42375 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
42376 | fi | |
42377 | fi | |
42378 | if test x$cppunit_config_prefix != x ; then | |
42379 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
42380 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
42381 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
42382 | fi | |
42383 | fi | |
42384 | ||
42385 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
42386 | set dummy cppunit-config; ac_word=$2 | |
42387 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42388 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42389 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
42390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42391 | else | |
42392 | case $CPPUNIT_CONFIG in | |
42393 | [\\/]* | ?:[\\/]*) | |
42394 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
42395 | ;; | |
42396 | *) | |
42397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42398 | for as_dir in $PATH | |
42399 | do | |
42400 | IFS=$as_save_IFS | |
42401 | test -z "$as_dir" && as_dir=. | |
42402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42403 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42404 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
42405 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42406 | break 2 | |
42407 | fi | |
42408 | done | |
42409 | done | |
42410 | ||
42411 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
42412 | ;; | |
42413 | esac | |
42414 | fi | |
42415 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
42416 | ||
42417 | if test -n "$CPPUNIT_CONFIG"; then | |
42418 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
42419 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
42420 | else | |
42421 | echo "$as_me:$LINENO: result: no" >&5 | |
42422 | echo "${ECHO_T}no" >&6 | |
42423 | fi | |
42424 | ||
42425 | cppunit_version_min=1.8.0 | |
42426 | ||
42427 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
42428 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
42429 | no_cppunit="" | |
42430 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
42431 | no_cppunit=yes | |
42432 | else | |
42433 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
42434 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
42435 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
42436 | ||
42437 | cppunit_major_version=`echo $cppunit_version | \ | |
42438 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
42439 | cppunit_minor_version=`echo $cppunit_version | \ | |
42440 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
42441 | cppunit_micro_version=`echo $cppunit_version | \ | |
42442 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
42443 | ||
42444 | cppunit_major_min=`echo $cppunit_version_min | \ | |
42445 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
42446 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
42447 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
42448 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
42449 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
42450 | ||
42451 | cppunit_version_proper=`expr \ | |
42452 | $cppunit_major_version \> $cppunit_major_min \| \ | |
42453 | $cppunit_major_version \= $cppunit_major_min \& \ | |
42454 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
42455 | $cppunit_major_version \= $cppunit_major_min \& \ | |
42456 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
42457 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
42458 | ||
42459 | if test "$cppunit_version_proper" = "1" ; then | |
42460 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
42461 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
42462 | else | |
42463 | echo "$as_me:$LINENO: result: no" >&5 | |
42464 | echo "${ECHO_T}no" >&6 | |
42465 | no_cppunit=yes | |
42466 | fi | |
42467 | fi | |
42468 | ||
42469 | if test "x$no_cppunit" = x ; then | |
c2218763 | 42470 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
42471 | else |
42472 | CPPUNIT_CFLAGS="" | |
42473 | CPPUNIT_LIBS="" | |
c2218763 | 42474 | : |
a848cd7e SC |
42475 | fi |
42476 | ||
42477 | ||
42478 | ||
42479 | ||
42480 | ||
42481 | for subdir in `echo $SUBDIRS`; do | |
42482 | if test -d ${srcdir}/${subdir} ; then | |
42483 | if test "$wxUSE_GUI" = "yes"; then | |
42484 | if test ${subdir} = "samples"; then | |
42485 | makefiles="samples/Makefile.in $makefiles" | |
42486 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
42487 | if test -d $srcdir/samples/$sample; then | |
42488 | makefiles="samples/$sample/Makefile.in $makefiles" | |
42489 | fi | |
42490 | done | |
42491 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
42492 | fi | |
42493 | else if test ${subdir} = "samples"; then | |
42494 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
42495 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
42496 | makefiles="" |
42497 | for util in HelpGen tex2rtf ; do | |
42498 | if test -d $srcdir/utils/$util ; then | |
42499 | makefiles="utils/$util/Makefile.in \ | |
42500 | utils/$util/src/Makefile.in \ | |
42501 | $makefiles" | |
42502 | fi | |
42503 | done | |
a848cd7e SC |
42504 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
42505 | fi | |
42506 | fi | |
42507 | ||
42508 | for mkin in $makefiles ; do | |
42509 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
42510 | ac_config_files="$ac_config_files $mk" | |
42511 | ||
42512 | done | |
42513 | fi | |
42514 | done | |
42515 | ||
42516 | ||
42517 | cat >confcache <<\_ACEOF | |
42518 | # This file is a shell script that caches the results of configure | |
42519 | # tests run on this system so they can be shared between configure | |
42520 | # scripts and configure runs, see configure's option --config-cache. | |
42521 | # It is not useful on other systems. If it contains results you don't | |
42522 | # want to keep, you may remove or edit it. | |
42523 | # | |
42524 | # config.status only pays attention to the cache file if you give it | |
42525 | # the --recheck option to rerun configure. | |
42526 | # | |
42527 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
42528 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
42529 | # following values. | |
42530 | ||
42531 | _ACEOF | |
42532 | ||
42533 | # The following way of writing the cache mishandles newlines in values, | |
42534 | # but we know of no workaround that is simple, portable, and efficient. | |
42535 | # So, don't put newlines in cache variables' values. | |
42536 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
42537 | # and sets the high bit in the cache file unless we assign to the vars. | |
42538 | { | |
42539 | (set) 2>&1 | | |
42540 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
42541 | *ac_space=\ *) | |
42542 | # `set' does not quote correctly, so add quotes (double-quote | |
42543 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
42544 | sed -n \ | |
ac1cb8d3 VS |
42545 | "s/'/'\\\\''/g; |
42546 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
42547 | ;; |
42548 | *) | |
42549 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
42550 | sed -n \ | |
ac1cb8d3 | 42551 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
42552 | ;; |
42553 | esac; | |
42554 | } | | |
42555 | sed ' | |
42556 | t clear | |
42557 | : clear | |
42558 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
42559 | t end | |
42560 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
42561 | : end' >>confcache | |
42562 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
42563 | if test -w $cache_file; then | |
42564 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
42565 | cat confcache >$cache_file | |
42566 | else | |
42567 | echo "not updating unwritable cache $cache_file" | |
42568 | fi | |
42569 | fi | |
42570 | rm -f confcache | |
42571 | ||
42572 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
42573 | # Let make expand exec_prefix. | |
42574 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
42575 | ||
42576 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
42577 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
42578 | # trailing colons and then remove the whole line if VPATH becomes empty | |
42579 | # (actually we leave an empty line to preserve line numbers). | |
42580 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 42581 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
42582 | s/:*\$(srcdir):*/:/; |
42583 | s/:*\${srcdir}:*/:/; | |
42584 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 42585 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 42586 | s/:*$//; |
ac1cb8d3 | 42587 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
42588 | }' |
42589 | fi | |
42590 | ||
42591 | DEFS=-DHAVE_CONFIG_H | |
42592 | ||
42593 | ac_libobjs= | |
42594 | ac_ltlibobjs= | |
42595 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
42596 | # 1. Remove the extension, and $U if already installed. | |
42597 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 42598 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
42599 | # 2. Add them. |
42600 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
42601 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
42602 | done | |
42603 | LIBOBJS=$ac_libobjs | |
42604 | ||
42605 | LTLIBOBJS=$ac_ltlibobjs | |
42606 | ||
42607 | ||
42608 | ||
42609 | : ${CONFIG_STATUS=./config.status} | |
42610 | ac_clean_files_save=$ac_clean_files | |
42611 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
42612 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
42613 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
42614 | cat >$CONFIG_STATUS <<_ACEOF | |
42615 | #! $SHELL | |
42616 | # Generated by $as_me. | |
42617 | # Run this file to recreate the current configuration. | |
42618 | # Compiler output produced by configure, useful for debugging | |
42619 | # configure, is in config.log if it exists. | |
42620 | ||
42621 | debug=false | |
42622 | ac_cs_recheck=false | |
42623 | ac_cs_silent=false | |
42624 | SHELL=\${CONFIG_SHELL-$SHELL} | |
42625 | _ACEOF | |
42626 | ||
42627 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42628 | ## --------------------- ## | |
42629 | ## M4sh Initialization. ## | |
42630 | ## --------------------- ## | |
42631 | ||
42632 | # Be Bourne compatible | |
42633 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
42634 | emulate sh | |
42635 | NULLCMD=: | |
42636 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
42637 | # is contrary to our usage. Disable this feature. | |
42638 | alias -g '${1+"$@"}'='"$@"' | |
42639 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
42640 | set -o posix | |
42641 | fi | |
ac1cb8d3 | 42642 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
42643 | |
42644 | # Support unset when possible. | |
ac1cb8d3 | 42645 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
42646 | as_unset=unset |
42647 | else | |
42648 | as_unset=false | |
42649 | fi | |
42650 | ||
42651 | ||
42652 | # Work around bugs in pre-3.0 UWIN ksh. | |
42653 | $as_unset ENV MAIL MAILPATH | |
42654 | PS1='$ ' | |
42655 | PS2='> ' | |
42656 | PS4='+ ' | |
42657 | ||
42658 | # NLS nuisances. | |
42659 | for as_var in \ | |
42660 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
42661 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42662 | LC_TELEPHONE LC_TIME | |
42663 | do | |
ac1cb8d3 | 42664 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
42665 | eval $as_var=C; export $as_var |
42666 | else | |
42667 | $as_unset $as_var | |
42668 | fi | |
42669 | done | |
42670 | ||
42671 | # Required to use basename. | |
42672 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
42673 | as_expr=expr | |
42674 | else | |
42675 | as_expr=false | |
42676 | fi | |
42677 | ||
42678 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
42679 | as_basename=basename | |
42680 | else | |
42681 | as_basename=false | |
42682 | fi | |
42683 | ||
42684 | ||
42685 | # Name of the executable. | |
42686 | as_me=`$as_basename "$0" || | |
42687 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
42688 | X"$0" : 'X\(//\)$' \| \ | |
42689 | X"$0" : 'X\(/\)$' \| \ | |
42690 | . : '\(.\)' 2>/dev/null || | |
42691 | echo X/"$0" | | |
42692 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
42693 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
42694 | /^X\/\(\/\).*/{ s//\1/; q; } | |
42695 | s/.*/./; q'` | |
42696 | ||
42697 | ||
42698 | # PATH needs CR, and LINENO needs CR and PATH. | |
42699 | # Avoid depending upon Character Ranges. | |
42700 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
42701 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
42702 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
42703 | as_cr_digits='0123456789' | |
42704 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
42705 | ||
42706 | # The user is always right. | |
42707 | if test "${PATH_SEPARATOR+set}" != set; then | |
42708 | echo "#! /bin/sh" >conf$$.sh | |
42709 | echo "exit 0" >>conf$$.sh | |
42710 | chmod +x conf$$.sh | |
42711 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
42712 | PATH_SEPARATOR=';' | |
42713 | else | |
42714 | PATH_SEPARATOR=: | |
42715 | fi | |
42716 | rm -f conf$$.sh | |
42717 | fi | |
42718 | ||
42719 | ||
42720 | as_lineno_1=$LINENO | |
42721 | as_lineno_2=$LINENO | |
42722 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
42723 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
42724 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
42725 | # Find who we are. Look in the path if we contain no path at all | |
42726 | # relative or not. | |
42727 | case $0 in | |
42728 | *[\\/]* ) as_myself=$0 ;; | |
42729 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42730 | for as_dir in $PATH | |
42731 | do | |
42732 | IFS=$as_save_IFS | |
42733 | test -z "$as_dir" && as_dir=. | |
42734 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
42735 | done | |
42736 | ||
42737 | ;; | |
42738 | esac | |
42739 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
42740 | # in which case we are not to be found in the path. | |
42741 | if test "x$as_myself" = x; then | |
42742 | as_myself=$0 | |
42743 | fi | |
42744 | if test ! -f "$as_myself"; then | |
42745 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
42746 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
42747 | { (exit 1); exit 1; }; } | |
42748 | fi | |
42749 | case $CONFIG_SHELL in | |
42750 | '') | |
42751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42752 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
42753 | do | |
42754 | IFS=$as_save_IFS | |
42755 | test -z "$as_dir" && as_dir=. | |
42756 | for as_base in sh bash ksh sh5; do | |
42757 | case $as_dir in | |
42758 | /*) | |
42759 | if ("$as_dir/$as_base" -c ' | |
42760 | as_lineno_1=$LINENO | |
42761 | as_lineno_2=$LINENO | |
42762 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
42763 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
42764 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
42765 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
42766 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
42767 | CONFIG_SHELL=$as_dir/$as_base | |
42768 | export CONFIG_SHELL | |
42769 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
42770 | fi;; | |
42771 | esac | |
42772 | done | |
42773 | done | |
42774 | ;; | |
42775 | esac | |
42776 | ||
42777 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
42778 | # uniformly replaced by the line number. The first 'sed' inserts a | |
42779 | # line-number line before each line; the second 'sed' does the real | |
42780 | # work. The second script uses 'N' to pair each line-number line | |
42781 | # with the numbered line, and appends trailing '-' during | |
42782 | # substitution so that $LINENO is not a special case at line end. | |
42783 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
42784 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
42785 | sed '=' <$as_myself | | |
42786 | sed ' | |
42787 | N | |
42788 | s,$,-, | |
42789 | : loop | |
42790 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
42791 | t loop | |
42792 | s,-$,, | |
42793 | s,^['$as_cr_digits']*\n,, | |
42794 | ' >$as_me.lineno && | |
42795 | chmod +x $as_me.lineno || | |
42796 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
42797 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
42798 | { (exit 1); exit 1; }; } | |
42799 | ||
42800 | # Don't try to exec as it changes $[0], causing all sort of problems | |
42801 | # (the dirname of $[0] is not the place where we might find the | |
42802 | # original and so on. Autoconf is especially sensible to this). | |
42803 | . ./$as_me.lineno | |
42804 | # Exit status is that of the last command. | |
42805 | exit | |
42806 | } | |
42807 | ||
42808 | ||
42809 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
42810 | *c*,-n*) ECHO_N= ECHO_C=' | |
42811 | ' ECHO_T=' ' ;; | |
42812 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
42813 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
42814 | esac | |
42815 | ||
42816 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
42817 | as_expr=expr | |
42818 | else | |
42819 | as_expr=false | |
42820 | fi | |
42821 | ||
42822 | rm -f conf$$ conf$$.exe conf$$.file | |
42823 | echo >conf$$.file | |
42824 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42825 | # We could just check for DJGPP; but this test a) works b) is more generic | |
42826 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
42827 | if test -f conf$$.exe; then | |
42828 | # Don't use ln at all; we don't have any links | |
42829 | as_ln_s='cp -p' | |
42830 | else | |
42831 | as_ln_s='ln -s' | |
42832 | fi | |
42833 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
42834 | as_ln_s=ln | |
42835 | else | |
42836 | as_ln_s='cp -p' | |
42837 | fi | |
42838 | rm -f conf$$ conf$$.exe conf$$.file | |
42839 | ||
42840 | if mkdir -p . 2>/dev/null; then | |
42841 | as_mkdir_p=: | |
42842 | else | |
ac1cb8d3 | 42843 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
42844 | as_mkdir_p=false |
42845 | fi | |
42846 | ||
42847 | as_executable_p="test -f" | |
42848 | ||
42849 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 42850 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42851 | |
42852 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 42853 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42854 | |
42855 | ||
42856 | # IFS | |
42857 | # We need space, tab and new line, in precisely that order. | |
42858 | as_nl=' | |
42859 | ' | |
42860 | IFS=" $as_nl" | |
42861 | ||
42862 | # CDPATH. | |
42863 | $as_unset CDPATH | |
42864 | ||
42865 | exec 6>&1 | |
42866 | ||
42867 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
42868 | # report actual input values of CONFIG_FILES etc. instead of their | |
42869 | # values after options handling. Logging --version etc. is OK. | |
42870 | exec 5>>config.log | |
42871 | { | |
42872 | echo | |
42873 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
42874 | ## Running $as_me. ## | |
42875 | _ASBOX | |
42876 | } >&5 | |
42877 | cat >&5 <<_CSEOF | |
42878 | ||
81f90336 | 42879 | This file was extended by wxWidgets $as_me 2.5.4, which was |
ac1cb8d3 | 42880 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
42881 | |
42882 | CONFIG_FILES = $CONFIG_FILES | |
42883 | CONFIG_HEADERS = $CONFIG_HEADERS | |
42884 | CONFIG_LINKS = $CONFIG_LINKS | |
42885 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
42886 | $ $0 $@ | |
42887 | ||
42888 | _CSEOF | |
42889 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
42890 | echo >&5 | |
42891 | _ACEOF | |
42892 | ||
42893 | # Files that config.status was made for. | |
42894 | if test -n "$ac_config_files"; then | |
42895 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
42896 | fi | |
42897 | ||
42898 | if test -n "$ac_config_headers"; then | |
42899 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
42900 | fi | |
42901 | ||
42902 | if test -n "$ac_config_links"; then | |
42903 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
42904 | fi | |
42905 | ||
42906 | if test -n "$ac_config_commands"; then | |
42907 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
42908 | fi | |
42909 | ||
42910 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42911 | ||
42912 | ac_cs_usage="\ | |
42913 | \`$as_me' instantiates files from templates according to the | |
42914 | current configuration. | |
42915 | ||
42916 | Usage: $0 [OPTIONS] [FILE]... | |
42917 | ||
42918 | -h, --help print this help, then exit | |
42919 | -V, --version print version number, then exit | |
42920 | -q, --quiet do not print progress messages | |
42921 | -d, --debug don't remove temporary files | |
42922 | --recheck update $as_me by reconfiguring in the same conditions | |
42923 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 42924 | instantiate the configuration file FILE |
a848cd7e | 42925 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 42926 | instantiate the configuration header FILE |
a848cd7e SC |
42927 | |
42928 | Configuration files: | |
42929 | $config_files | |
42930 | ||
42931 | Configuration headers: | |
42932 | $config_headers | |
42933 | ||
42934 | Configuration commands: | |
42935 | $config_commands | |
42936 | ||
42937 | Report bugs to <bug-autoconf@gnu.org>." | |
42938 | _ACEOF | |
42939 | ||
42940 | cat >>$CONFIG_STATUS <<_ACEOF | |
42941 | ac_cs_version="\\ | |
81f90336 | 42942 | wxWidgets config.status 2.5.4 |
ac1cb8d3 | 42943 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
42944 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
42945 | ||
ac1cb8d3 | 42946 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
42947 | This config.status script is free software; the Free Software Foundation |
42948 | gives unlimited permission to copy, distribute and modify it." | |
42949 | srcdir=$srcdir | |
42950 | INSTALL="$INSTALL" | |
42951 | _ACEOF | |
42952 | ||
42953 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42954 | # If no file are specified by the user, then we need to provide default | |
42955 | # value. By we need to know if files were specified by the user. | |
42956 | ac_need_defaults=: | |
42957 | while test $# != 0 | |
42958 | do | |
42959 | case $1 in | |
42960 | --*=*) | |
42961 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
42962 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
42963 | ac_shift=: | |
42964 | ;; | |
42965 | -*) | |
42966 | ac_option=$1 | |
42967 | ac_optarg=$2 | |
42968 | ac_shift=shift | |
42969 | ;; | |
42970 | *) # This is not an option, so the user has probably given explicit | |
42971 | # arguments. | |
42972 | ac_option=$1 | |
42973 | ac_need_defaults=false;; | |
42974 | esac | |
42975 | ||
42976 | case $ac_option in | |
42977 | # Handling of the options. | |
42978 | _ACEOF | |
42979 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42980 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
42981 | ac_cs_recheck=: ;; | |
42982 | --version | --vers* | -V ) | |
42983 | echo "$ac_cs_version"; exit 0 ;; | |
42984 | --he | --h) | |
42985 | # Conflict between --help and --header | |
42986 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
42987 | Try \`$0 --help' for more information." >&5 | |
42988 | echo "$as_me: error: ambiguous option: $1 | |
42989 | Try \`$0 --help' for more information." >&2;} | |
42990 | { (exit 1); exit 1; }; };; | |
42991 | --help | --hel | -h ) | |
42992 | echo "$ac_cs_usage"; exit 0 ;; | |
42993 | --debug | --d* | -d ) | |
42994 | debug=: ;; | |
42995 | --file | --fil | --fi | --f ) | |
42996 | $ac_shift | |
42997 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
42998 | ac_need_defaults=false;; | |
42999 | --header | --heade | --head | --hea ) | |
43000 | $ac_shift | |
43001 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
43002 | ac_need_defaults=false;; | |
43003 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
43004 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
43005 | ac_cs_silent=: ;; | |
43006 | ||
43007 | # This is an error. | |
43008 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
43009 | Try \`$0 --help' for more information." >&5 | |
43010 | echo "$as_me: error: unrecognized option: $1 | |
43011 | Try \`$0 --help' for more information." >&2;} | |
43012 | { (exit 1); exit 1; }; } ;; | |
43013 | ||
43014 | *) ac_config_targets="$ac_config_targets $1" ;; | |
43015 | ||
43016 | esac | |
43017 | shift | |
43018 | done | |
43019 | ||
43020 | ac_configure_extra_args= | |
43021 | ||
43022 | if $ac_cs_silent; then | |
43023 | exec 6>/dev/null | |
43024 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
43025 | fi | |
43026 | ||
43027 | _ACEOF | |
43028 | cat >>$CONFIG_STATUS <<_ACEOF | |
43029 | if \$ac_cs_recheck; then | |
43030 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
43031 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
43032 | fi | |
43033 | ||
43034 | _ACEOF | |
43035 | ||
43036 | cat >>$CONFIG_STATUS <<_ACEOF | |
43037 | # | |
43038 | # INIT-COMMANDS section. | |
43039 | # | |
43040 | ||
ceec2216 RL |
43041 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
43042 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
43043 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
43044 | LN_S="${LN_S}" | |
a848cd7e SC |
43045 | |
43046 | ||
43047 | _ACEOF | |
43048 | ||
43049 | ||
43050 | ||
43051 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43052 | for ac_config_target in $ac_config_targets | |
43053 | do | |
43054 | case "$ac_config_target" in | |
43055 | # Handling of arguments. | |
ceec2216 RL |
43056 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
43057 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
43058 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
43059 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
43060 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
43061 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
43062 | "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 |
43063 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
43064 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
43065 | { (exit 1); exit 1; }; };; | |
43066 | esac | |
43067 | done | |
43068 | ||
43069 | # If the user did not use the arguments to specify the items to instantiate, | |
43070 | # then the envvar interface is used. Set only those that are not. | |
43071 | # We use the long form for the default assignment because of an extremely | |
43072 | # bizarre bug on SunOS 4.1.3. | |
43073 | if $ac_need_defaults; then | |
43074 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
43075 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
43076 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
43077 | fi | |
43078 | ||
43079 | # Have a temporary directory for convenience. Make it in the build tree | |
43080 | # simply because there is no reason to put it here, and in addition, | |
43081 | # creating and moving files from /tmp can sometimes cause problems. | |
43082 | # Create a temporary directory, and hook for its removal unless debugging. | |
43083 | $debug || | |
43084 | { | |
43085 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
43086 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
43087 | } | |
43088 | ||
43089 | # Create a (secure) tmp directory for tmp files. | |
43090 | ||
43091 | { | |
43092 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
43093 | test -n "$tmp" && test -d "$tmp" | |
43094 | } || | |
43095 | { | |
43096 | tmp=./confstat$$-$RANDOM | |
43097 | (umask 077 && mkdir $tmp) | |
43098 | } || | |
43099 | { | |
43100 | echo "$me: cannot create a temporary directory in ." >&2 | |
43101 | { (exit 1); exit 1; } | |
43102 | } | |
43103 | ||
43104 | _ACEOF | |
43105 | ||
43106 | cat >>$CONFIG_STATUS <<_ACEOF | |
43107 | ||
43108 | # | |
43109 | # CONFIG_FILES section. | |
43110 | # | |
43111 | ||
43112 | # No need to generate the scripts if there are no CONFIG_FILES. | |
43113 | # This happens for instance when ./config.status config.h | |
43114 | if test -n "\$CONFIG_FILES"; then | |
43115 | # Protect against being on the right side of a sed subst in config.status. | |
43116 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
43117 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
43118 | s,@SHELL@,$SHELL,;t t | |
43119 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
43120 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
43121 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
43122 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
43123 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
43124 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
43125 | s,@exec_prefix@,$exec_prefix,;t t | |
43126 | s,@prefix@,$prefix,;t t | |
43127 | s,@program_transform_name@,$program_transform_name,;t t | |
43128 | s,@bindir@,$bindir,;t t | |
43129 | s,@sbindir@,$sbindir,;t t | |
43130 | s,@libexecdir@,$libexecdir,;t t | |
43131 | s,@datadir@,$datadir,;t t | |
43132 | s,@sysconfdir@,$sysconfdir,;t t | |
43133 | s,@sharedstatedir@,$sharedstatedir,;t t | |
43134 | s,@localstatedir@,$localstatedir,;t t | |
43135 | s,@libdir@,$libdir,;t t | |
43136 | s,@includedir@,$includedir,;t t | |
43137 | s,@oldincludedir@,$oldincludedir,;t t | |
43138 | s,@infodir@,$infodir,;t t | |
43139 | s,@mandir@,$mandir,;t t | |
43140 | s,@build_alias@,$build_alias,;t t | |
43141 | s,@host_alias@,$host_alias,;t t | |
43142 | s,@target_alias@,$target_alias,;t t | |
43143 | s,@DEFS@,$DEFS,;t t | |
43144 | s,@ECHO_C@,$ECHO_C,;t t | |
43145 | s,@ECHO_N@,$ECHO_N,;t t | |
43146 | s,@ECHO_T@,$ECHO_T,;t t | |
43147 | s,@LIBS@,$LIBS,;t t | |
43148 | s,@build@,$build,;t t | |
43149 | s,@build_cpu@,$build_cpu,;t t | |
43150 | s,@build_vendor@,$build_vendor,;t t | |
43151 | s,@build_os@,$build_os,;t t | |
43152 | s,@host@,$host,;t t | |
43153 | s,@host_cpu@,$host_cpu,;t t | |
43154 | s,@host_vendor@,$host_vendor,;t t | |
43155 | s,@host_os@,$host_os,;t t | |
43156 | s,@target@,$target,;t t | |
43157 | s,@target_cpu@,$target_cpu,;t t | |
43158 | s,@target_vendor@,$target_vendor,;t t | |
43159 | s,@target_os@,$target_os,;t t | |
43160 | s,@CC@,$CC,;t t | |
43161 | s,@CFLAGS@,$CFLAGS,;t t | |
43162 | s,@LDFLAGS@,$LDFLAGS,;t t | |
43163 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
43164 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
43165 | s,@EXEEXT@,$EXEEXT,;t t | |
43166 | s,@OBJEXT@,$OBJEXT,;t t | |
43167 | s,@CPP@,$CPP,;t t | |
43168 | s,@EGREP@,$EGREP,;t t | |
43169 | s,@CXX@,$CXX,;t t | |
43170 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
43171 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
43172 | s,@RANLIB@,$RANLIB,;t t | |
43173 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
43174 | s,@AR@,$AR,;t t | |
43175 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
43176 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
43177 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
43178 | s,@STRIP@,$STRIP,;t t | |
43179 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
43180 | s,@LN_S@,$LN_S,;t t | |
43181 | s,@CXXCPP@,$CXXCPP,;t t | |
43182 | s,@subdirs@,$subdirs,;t t | |
43183 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
43184 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
43185 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
43186 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
43187 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
43188 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
43189 | s,@X_LIBS@,$X_LIBS,;t t | |
43190 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
43191 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
43192 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
43193 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
43194 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
43195 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
43196 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
43197 | s,@RESCOMP@,$RESCOMP,;t t | |
43198 | s,@DEREZ@,$DEREZ,;t t | |
43199 | s,@SETFILE@,$SETFILE,;t t | |
43200 | s,@LIBICONV@,$LIBICONV,;t t | |
43201 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
43202 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
43203 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
43204 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
43205 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
43206 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
43207 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
43208 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
43209 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
43210 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
43211 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
43212 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
43213 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
43214 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
43215 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
43216 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
43217 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
43218 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
43219 | s,@VENDOR@,$VENDOR,;t t | |
43220 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
43221 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
43222 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
43223 | s,@WXUNIV@,$WXUNIV,;t t |
43224 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
43225 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
43226 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
43227 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
43228 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
43229 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
43230 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
43231 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
43232 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
43233 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 43234 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
43235 | s,@UNICODE@,$UNICODE,;t t |
43236 | s,@BUILD@,$BUILD,;t t | |
43237 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
43238 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
43239 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
43240 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
43241 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
43242 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
43243 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
43244 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
43245 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
43246 | s,@SET_MAKE@,$SET_MAKE,;t t | |
43247 | s,@MAKE_SET@,$MAKE_SET,;t t | |
43248 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
43249 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
43250 | s,@NM@,$NM,;t t | |
43251 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
43252 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
43253 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
43254 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
43255 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
43256 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
43257 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 43258 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
43259 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
43260 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 43261 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
43262 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
43263 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
43264 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
43265 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
43266 | s,@LIBEXT@,$LIBEXT,;t t | |
43267 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
43268 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
43269 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
43270 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
43271 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
43272 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
43273 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
43274 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
43275 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
43276 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
43277 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
43278 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
43279 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
43280 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
43281 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
43282 | s,@GCC_PCH@,$GCC_PCH,;t t | |
43283 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
43284 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
43285 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
43286 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
43287 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
43288 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
43289 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
43290 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
43291 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
43292 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
43293 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
43294 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
43295 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
43296 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
43297 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
43298 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
43299 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
43300 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 43301 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t |
a848cd7e | 43302 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t |
a848cd7e | 43303 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 43304 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
43305 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
43306 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 43307 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t |
a848cd7e | 43308 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t |
a848cd7e | 43309 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 43310 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
43311 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
43312 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
43313 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
43314 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
43315 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
43316 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
43317 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
43318 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 43319 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
43320 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
43321 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
43322 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 43323 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 43324 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
ebee3cd0 VS |
43325 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
43326 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
43327 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
43328 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 43329 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e SC |
43330 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
43331 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
43332 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
43333 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
43334 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
43335 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
43336 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
43337 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
43338 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
43339 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
43340 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
43341 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
43342 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
43343 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
43344 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
43345 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
43346 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
43347 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
43348 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
43349 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
43350 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
43351 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
a30f955f | 43352 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 43353 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 43354 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
43355 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
43356 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
43357 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
43358 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
43359 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
43360 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
43361 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
43362 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
43363 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
43364 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
43365 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
43366 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
43367 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
43368 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
43369 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
43370 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
43371 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
43372 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
43373 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
43374 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
43375 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
43376 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
43377 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
43378 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
43379 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
43380 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
43381 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
43382 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
43383 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
43384 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
43385 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
43386 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
43387 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 43388 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 43389 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e SC |
43390 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
43391 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
43392 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
43393 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
43394 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
a13a7f89 | 43395 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 43396 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 43397 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
43398 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
43399 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
43400 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
43401 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
43402 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
43403 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
43404 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
43405 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 43406 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
43407 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
43408 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
43409 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
43410 | s,@USE_GUI@,$USE_GUI,;t t | |
43411 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
43412 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
43413 | s,@TOOLKIT@,$TOOLKIT,;t t | |
43414 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 43415 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 43416 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
43417 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
43418 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 43419 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
43420 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
43421 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
43422 | s,@WX_VERSION@,$WX_VERSION,;t t | |
43423 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
43424 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
43425 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 43426 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
43427 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
43428 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
43429 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
43430 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 43431 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
43432 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
43433 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 43434 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 43435 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
43436 | s,@DISTDIR@,$DISTDIR,;t t |
43437 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
43438 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
43439 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
43440 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
43441 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
43442 | s,@RESFLAGS@,$RESFLAGS,;t t | |
43443 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
43444 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
43445 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
43446 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
43447 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
43448 | s,@MACSETFILE@,$MACSETFILE,;t t | |
43449 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
43450 | s,@GCC@,$GCC,;t t | |
a848cd7e | 43451 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
43452 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
43453 | s,@LIBOBJS@,$LIBOBJS,;t t | |
43454 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
43455 | CEOF | |
43456 | ||
43457 | _ACEOF | |
43458 | ||
43459 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43460 | # Split the substitutions into bite-sized pieces for seds with | |
43461 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
43462 | ac_max_sed_lines=48 | |
43463 | ac_sed_frag=1 # Number of current file. | |
43464 | ac_beg=1 # First line for current file. | |
43465 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
43466 | ac_more_lines=: | |
43467 | ac_sed_cmds= | |
43468 | while $ac_more_lines; do | |
43469 | if test $ac_beg -gt 1; then | |
43470 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
43471 | else | |
43472 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
43473 | fi | |
43474 | if test ! -s $tmp/subs.frag; then | |
43475 | ac_more_lines=false | |
43476 | else | |
43477 | # The purpose of the label and of the branching condition is to | |
43478 | # speed up the sed processing (if there are no `@' at all, there | |
43479 | # is no need to browse any of the substitutions). | |
43480 | # These are the two extra sed commands mentioned above. | |
43481 | (echo ':t | |
43482 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
43483 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 43484 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 43485 | else |
ac1cb8d3 | 43486 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
43487 | fi |
43488 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
43489 | ac_beg=$ac_end | |
43490 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
43491 | fi | |
43492 | done | |
43493 | if test -z "$ac_sed_cmds"; then | |
43494 | ac_sed_cmds=cat | |
43495 | fi | |
43496 | fi # test -n "$CONFIG_FILES" | |
43497 | ||
43498 | _ACEOF | |
43499 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43500 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
43501 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
43502 | case $ac_file in | |
43503 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
43504 | cat >$tmp/stdin |
43505 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43506 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 43507 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 43508 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
43509 | * ) ac_file_in=$ac_file.in ;; |
43510 | esac | |
43511 | ||
43512 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
43513 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
43514 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43515 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
43516 | X"$ac_file" : 'X\(//\)$' \| \ | |
43517 | X"$ac_file" : 'X\(/\)' \| \ | |
43518 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43519 | echo X"$ac_file" | |
43520 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43521 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43522 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43523 | /^X\(\/\).*/{ s//\1/; q; } | |
43524 | s/.*/./; q'` | |
43525 | { if $as_mkdir_p; then | |
43526 | mkdir -p "$ac_dir" | |
43527 | else | |
43528 | as_dir="$ac_dir" | |
43529 | as_dirs= | |
43530 | while test ! -d "$as_dir"; do | |
43531 | as_dirs="$as_dir $as_dirs" | |
43532 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43533 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43534 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43535 | X"$as_dir" : 'X\(//\)$' \| \ | |
43536 | X"$as_dir" : 'X\(/\)' \| \ | |
43537 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43538 | echo X"$as_dir" | |
43539 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43540 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43541 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43542 | /^X\(\/\).*/{ s//\1/; q; } | |
43543 | s/.*/./; q'` | |
43544 | done | |
43545 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43546 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43547 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43548 | { (exit 1); exit 1; }; }; } | |
43549 | ||
43550 | ac_builddir=. | |
43551 | ||
43552 | if test "$ac_dir" != .; then | |
43553 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43554 | # A "../" for each directory in $ac_dir_suffix. | |
43555 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43556 | else | |
43557 | ac_dir_suffix= ac_top_builddir= | |
43558 | fi | |
43559 | ||
43560 | case $srcdir in | |
43561 | .) # No --srcdir option. We are building in place. | |
43562 | ac_srcdir=. | |
43563 | if test -z "$ac_top_builddir"; then | |
43564 | ac_top_srcdir=. | |
43565 | else | |
43566 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43567 | fi ;; | |
43568 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43569 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43570 | ac_top_srcdir=$srcdir ;; | |
43571 | *) # Relative path. | |
43572 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43573 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43574 | esac | |
ac1cb8d3 VS |
43575 | |
43576 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43577 | # the directories may not exist. | |
43578 | case `pwd` in | |
43579 | .) ac_abs_builddir="$ac_dir";; | |
43580 | *) | |
43581 | case "$ac_dir" in | |
43582 | .) ac_abs_builddir=`pwd`;; | |
43583 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43584 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43585 | esac;; | |
43586 | esac | |
43587 | case $ac_abs_builddir in | |
43588 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43589 | *) | |
43590 | case ${ac_top_builddir}. in | |
43591 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43592 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43593 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43594 | esac;; | |
43595 | esac | |
43596 | case $ac_abs_builddir in | |
43597 | .) ac_abs_srcdir=$ac_srcdir;; | |
43598 | *) | |
43599 | case $ac_srcdir in | |
43600 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43601 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43602 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43603 | esac;; | |
43604 | esac | |
43605 | case $ac_abs_builddir in | |
43606 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43607 | *) | |
43608 | case $ac_top_srcdir in | |
43609 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43610 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43611 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43612 | esac;; | |
43613 | esac | |
a848cd7e SC |
43614 | |
43615 | ||
43616 | case $INSTALL in | |
43617 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
43618 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
43619 | esac | |
43620 | ||
89be85c2 VS |
43621 | if test x"$ac_file" != x-; then |
43622 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
43623 | echo "$as_me: creating $ac_file" >&6;} | |
43624 | rm -f "$ac_file" | |
43625 | fi | |
a848cd7e SC |
43626 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
43627 | # use $as_me), people would be surprised to read: | |
43628 | # /* config.h. Generated by config.status. */ | |
43629 | if test x"$ac_file" = x-; then | |
43630 | configure_input= | |
43631 | else | |
43632 | configure_input="$ac_file. " | |
43633 | fi | |
43634 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 43635 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
43636 | |
43637 | # First look for the input files in the build tree, otherwise in the | |
43638 | # src tree. | |
43639 | ac_file_inputs=`IFS=: | |
43640 | for f in $ac_file_in; do | |
43641 | case $f in | |
43642 | -) echo $tmp/stdin ;; | |
43643 | [\\/$]*) | |
ac1cb8d3 VS |
43644 | # Absolute (can't be DOS-style, as IFS=:) |
43645 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43646 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43647 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43648 | echo "$f";; |
a848cd7e | 43649 | *) # Relative |
ac1cb8d3 VS |
43650 | if test -f "$f"; then |
43651 | # Build tree | |
43652 | echo "$f" | |
43653 | elif test -f "$srcdir/$f"; then | |
43654 | # Source tree | |
43655 | echo "$srcdir/$f" | |
43656 | else | |
43657 | # /dev/null tree | |
43658 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43659 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43660 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43661 | fi;; |
a848cd7e SC |
43662 | esac |
43663 | done` || { (exit 1); exit 1; } | |
43664 | _ACEOF | |
43665 | cat >>$CONFIG_STATUS <<_ACEOF | |
43666 | sed "$ac_vpsub | |
43667 | $extrasub | |
43668 | _ACEOF | |
43669 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43670 | :t | |
43671 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
43672 | s,@configure_input@,$configure_input,;t t | |
43673 | s,@srcdir@,$ac_srcdir,;t t | |
43674 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
43675 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
43676 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
43677 | s,@builddir@,$ac_builddir,;t t | |
43678 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
43679 | s,@top_builddir@,$ac_top_builddir,;t t | |
43680 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
43681 | s,@INSTALL@,$ac_INSTALL,;t t | |
43682 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
43683 | rm -f $tmp/stdin | |
43684 | if test x"$ac_file" != x-; then | |
43685 | mv $tmp/out $ac_file | |
43686 | else | |
43687 | cat $tmp/out | |
43688 | rm -f $tmp/out | |
43689 | fi | |
43690 | ||
ceec2216 RL |
43691 | # Run the commands associated with the file. |
43692 | case $ac_file in | |
43693 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
43694 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
43695 | esac | |
a848cd7e SC |
43696 | done |
43697 | _ACEOF | |
43698 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43699 | ||
43700 | # | |
43701 | # CONFIG_HEADER section. | |
43702 | # | |
43703 | ||
43704 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
43705 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
43706 | # | |
43707 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
43708 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
43709 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
43710 | ac_dC=' ' |
43711 | ac_dD=',;t' | |
43712 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 43713 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
43714 | ac_uB='$,\1#\2define\3' |
43715 | ac_uC=' ' | |
43716 | ac_uD=',;t' | |
43717 | ||
43718 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
43719 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
43720 | case $ac_file in | |
43721 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
43722 | cat >$tmp/stdin |
43723 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43724 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 43725 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 43726 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
43727 | * ) ac_file_in=$ac_file.in ;; |
43728 | esac | |
43729 | ||
43730 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
43731 | echo "$as_me: creating $ac_file" >&6;} | |
43732 | ||
43733 | # First look for the input files in the build tree, otherwise in the | |
43734 | # src tree. | |
43735 | ac_file_inputs=`IFS=: | |
43736 | for f in $ac_file_in; do | |
43737 | case $f in | |
43738 | -) echo $tmp/stdin ;; | |
43739 | [\\/$]*) | |
ac1cb8d3 VS |
43740 | # Absolute (can't be DOS-style, as IFS=:) |
43741 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43742 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43743 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
43744 | # Do quote $f, to prevent DOS paths from being IFS'd. |
43745 | echo "$f";; | |
a848cd7e | 43746 | *) # Relative |
ac1cb8d3 VS |
43747 | if test -f "$f"; then |
43748 | # Build tree | |
43749 | echo "$f" | |
43750 | elif test -f "$srcdir/$f"; then | |
43751 | # Source tree | |
43752 | echo "$srcdir/$f" | |
43753 | else | |
43754 | # /dev/null tree | |
43755 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43756 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43757 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43758 | fi;; |
a848cd7e SC |
43759 | esac |
43760 | done` || { (exit 1); exit 1; } | |
43761 | # Remove the trailing spaces. | |
ac1cb8d3 | 43762 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
43763 | |
43764 | _ACEOF | |
43765 | ||
43766 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
43767 | # `conftest.undefs', that substitutes the proper values into | |
43768 | # config.h.in to produce config.h. The first handles `#define' | |
43769 | # templates, and the second `#undef' templates. | |
43770 | # And first: Protect against being on the right side of a sed subst in | |
43771 | # config.status. Protect against being in an unquoted here document | |
43772 | # in config.status. | |
43773 | rm -f conftest.defines conftest.undefs | |
43774 | # Using a here document instead of a string reduces the quoting nightmare. | |
43775 | # Putting comments in sed scripts is not portable. | |
43776 | # | |
43777 | # `end' is used to avoid that the second main sed command (meant for | |
43778 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
43779 | # See the Autoconf documentation for `clear'. | |
43780 | cat >confdef2sed.sed <<\_ACEOF | |
43781 | s/[\\&,]/\\&/g | |
43782 | s,[\\$`],\\&,g | |
43783 | t clear | |
43784 | : clear | |
ac1cb8d3 | 43785 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 43786 | t end |
ac1cb8d3 | 43787 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
43788 | : end |
43789 | _ACEOF | |
43790 | # If some macros were called several times there might be several times | |
43791 | # the same #defines, which is useless. Nevertheless, we may not want to | |
43792 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
43793 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
43794 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
43795 | rm -f confdef2sed.sed | |
43796 | ||
43797 | # This sed command replaces #undef with comments. This is necessary, for | |
43798 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
43799 | # on some systems where configure will not decide to define it. | |
43800 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 43801 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
43802 | _ACEOF |
43803 | ||
43804 | # Break up conftest.defines because some shells have a limit on the size | |
43805 | # of here documents, and old seds have small limits too (100 cmds). | |
43806 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 43807 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
43808 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
43809 | echo ' :' >>$CONFIG_STATUS | |
43810 | rm -f conftest.tail | |
43811 | while grep . conftest.defines >/dev/null | |
43812 | do | |
43813 | # Write a limited-size here document to $tmp/defines.sed. | |
43814 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
43815 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 43816 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
43817 | # Work around the forget-to-reset-the-flag bug. |
43818 | echo 't clr' >>$CONFIG_STATUS | |
43819 | echo ': clr' >>$CONFIG_STATUS | |
43820 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
43821 | echo 'CEOF | |
43822 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
43823 | rm -f $tmp/in | |
43824 | mv $tmp/out $tmp/in | |
43825 | ' >>$CONFIG_STATUS | |
43826 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
43827 | rm -f conftest.defines | |
43828 | mv conftest.tail conftest.defines | |
43829 | done | |
43830 | rm -f conftest.defines | |
43831 | echo ' fi # grep' >>$CONFIG_STATUS | |
43832 | echo >>$CONFIG_STATUS | |
43833 | ||
43834 | # Break up conftest.undefs because some shells have a limit on the size | |
43835 | # of here documents, and old seds have small limits too (100 cmds). | |
43836 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
43837 | rm -f conftest.tail | |
43838 | while grep . conftest.undefs >/dev/null | |
43839 | do | |
43840 | # Write a limited-size here document to $tmp/undefs.sed. | |
43841 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
43842 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 43843 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
43844 | # Work around the forget-to-reset-the-flag bug. |
43845 | echo 't clr' >>$CONFIG_STATUS | |
43846 | echo ': clr' >>$CONFIG_STATUS | |
43847 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
43848 | echo 'CEOF | |
43849 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
43850 | rm -f $tmp/in | |
43851 | mv $tmp/out $tmp/in | |
43852 | ' >>$CONFIG_STATUS | |
43853 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
43854 | rm -f conftest.undefs | |
43855 | mv conftest.tail conftest.undefs | |
43856 | done | |
43857 | rm -f conftest.undefs | |
43858 | ||
43859 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43860 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
43861 | # use $as_me), people would be surprised to read: | |
43862 | # /* config.h. Generated by config.status. */ | |
43863 | if test x"$ac_file" = x-; then | |
43864 | echo "/* Generated by configure. */" >$tmp/config.h | |
43865 | else | |
43866 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
43867 | fi | |
43868 | cat $tmp/in >>$tmp/config.h | |
43869 | rm -f $tmp/in | |
43870 | if test x"$ac_file" != x-; then | |
43871 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
43872 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
43873 | echo "$as_me: $ac_file is unchanged" >&6;} | |
43874 | else | |
43875 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
43876 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43877 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
43878 | X"$ac_file" : 'X\(//\)$' \| \ | |
43879 | X"$ac_file" : 'X\(/\)' \| \ | |
43880 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43881 | echo X"$ac_file" | |
43882 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43883 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43884 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43885 | /^X\(\/\).*/{ s//\1/; q; } | |
43886 | s/.*/./; q'` | |
43887 | { if $as_mkdir_p; then | |
43888 | mkdir -p "$ac_dir" | |
43889 | else | |
43890 | as_dir="$ac_dir" | |
43891 | as_dirs= | |
43892 | while test ! -d "$as_dir"; do | |
43893 | as_dirs="$as_dir $as_dirs" | |
43894 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43895 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43896 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43897 | X"$as_dir" : 'X\(//\)$' \| \ | |
43898 | X"$as_dir" : 'X\(/\)' \| \ | |
43899 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43900 | echo X"$as_dir" | |
43901 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43902 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43903 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43904 | /^X\(\/\).*/{ s//\1/; q; } | |
43905 | s/.*/./; q'` | |
43906 | done | |
43907 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43908 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43909 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43910 | { (exit 1); exit 1; }; }; } | |
43911 | ||
43912 | rm -f $ac_file | |
43913 | mv $tmp/config.h $ac_file | |
43914 | fi | |
43915 | else | |
43916 | cat $tmp/config.h | |
43917 | rm -f $tmp/config.h | |
43918 | fi | |
43919 | done | |
43920 | _ACEOF | |
43921 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43922 | ||
43923 | # | |
43924 | # CONFIG_COMMANDS section. | |
43925 | # | |
43926 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
43927 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
43928 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43929 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
43930 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43931 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
43932 | X"$ac_dest" : 'X\(//\)$' \| \ | |
43933 | X"$ac_dest" : 'X\(/\)' \| \ | |
43934 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43935 | echo X"$ac_dest" | |
43936 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43937 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43938 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43939 | /^X\(\/\).*/{ s//\1/; q; } | |
43940 | s/.*/./; q'` | |
ac1cb8d3 VS |
43941 | { if $as_mkdir_p; then |
43942 | mkdir -p "$ac_dir" | |
43943 | else | |
43944 | as_dir="$ac_dir" | |
43945 | as_dirs= | |
43946 | while test ! -d "$as_dir"; do | |
43947 | as_dirs="$as_dir $as_dirs" | |
43948 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43949 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
43950 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
43951 | X"$as_dir" : 'X\(//\)$' \| \ | |
43952 | X"$as_dir" : 'X\(/\)' \| \ | |
43953 | . : '\(.\)' 2>/dev/null || | |
43954 | echo X"$as_dir" | | |
43955 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43956 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43957 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43958 | /^X\(\/\).*/{ s//\1/; q; } | |
43959 | s/.*/./; q'` | |
43960 | done | |
43961 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43962 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43963 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43964 | { (exit 1); exit 1; }; }; } | |
43965 | ||
a848cd7e SC |
43966 | ac_builddir=. |
43967 | ||
43968 | if test "$ac_dir" != .; then | |
43969 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43970 | # A "../" for each directory in $ac_dir_suffix. | |
43971 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43972 | else | |
43973 | ac_dir_suffix= ac_top_builddir= | |
43974 | fi | |
43975 | ||
43976 | case $srcdir in | |
43977 | .) # No --srcdir option. We are building in place. | |
43978 | ac_srcdir=. | |
43979 | if test -z "$ac_top_builddir"; then | |
43980 | ac_top_srcdir=. | |
43981 | else | |
43982 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43983 | fi ;; | |
43984 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43985 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43986 | ac_top_srcdir=$srcdir ;; | |
43987 | *) # Relative path. | |
43988 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43989 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43990 | esac | |
ac1cb8d3 VS |
43991 | |
43992 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43993 | # the directories may not exist. | |
43994 | case `pwd` in | |
43995 | .) ac_abs_builddir="$ac_dir";; | |
43996 | *) | |
43997 | case "$ac_dir" in | |
43998 | .) ac_abs_builddir=`pwd`;; | |
43999 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44000 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44001 | esac;; | |
44002 | esac | |
44003 | case $ac_abs_builddir in | |
44004 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44005 | *) | |
44006 | case ${ac_top_builddir}. in | |
44007 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44008 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44009 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44010 | esac;; | |
44011 | esac | |
44012 | case $ac_abs_builddir in | |
44013 | .) ac_abs_srcdir=$ac_srcdir;; | |
44014 | *) | |
44015 | case $ac_srcdir in | |
44016 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44017 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44018 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44019 | esac;; | |
44020 | esac | |
44021 | case $ac_abs_builddir in | |
44022 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44023 | *) | |
44024 | case $ac_top_srcdir in | |
44025 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44026 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44027 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44028 | esac;; | |
44029 | esac | |
a848cd7e SC |
44030 | |
44031 | ||
44032 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
44033 | echo "$as_me: executing $ac_dest commands" >&6;} | |
44034 | case $ac_dest in | |
ceec2216 RL |
44035 | wx-config ) rm -f wx-config |
44036 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
44037 | ;; | |
a848cd7e SC |
44038 | esac |
44039 | done | |
44040 | _ACEOF | |
44041 | ||
44042 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44043 | ||
44044 | { (exit 0); exit 0; } | |
44045 | _ACEOF | |
44046 | chmod +x $CONFIG_STATUS | |
44047 | ac_clean_files=$ac_clean_files_save | |
44048 | ||
44049 | ||
44050 | # configure is writing to config.log, and then calls config.status. | |
44051 | # config.status does its own redirection, appending to config.log. | |
44052 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
44053 | # by configure, so config.status won't be able to write to it; its | |
44054 | # output is simply discarded. So we exec the FD to /dev/null, | |
44055 | # effectively closing config.log, so it can be properly (re)opened and | |
44056 | # appended to by config.status. When coming back to configure, we | |
44057 | # need to make the FD available again. | |
44058 | if test "$no_create" != yes; then | |
44059 | ac_cs_success=: | |
44060 | ac_config_status_args= | |
44061 | test "$silent" = yes && | |
44062 | ac_config_status_args="$ac_config_status_args --quiet" | |
44063 | exec 5>/dev/null | |
44064 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
44065 | exec 5>>config.log | |
44066 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
44067 | # would make configure fail if this is the last instruction. | |
44068 | $ac_cs_success || { (exit 1); exit 1; } | |
44069 | fi | |
44070 | ||
44071 | # | |
44072 | # CONFIG_SUBDIRS section. | |
44073 | # | |
44074 | if test "$no_recursion" != yes; then | |
44075 | ||
44076 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
44077 | ac_sub_configure_args= | |
44078 | ac_prev= | |
44079 | for ac_arg in $ac_configure_args; do | |
44080 | if test -n "$ac_prev"; then | |
44081 | ac_prev= | |
44082 | continue | |
44083 | fi | |
44084 | case $ac_arg in | |
44085 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
44086 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
44087 | ac_prev=cache_file ;; | |
44088 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
44089 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
44090 | | --c=*) | |
44091 | ;; | |
44092 | --config-cache | -C) | |
44093 | ;; | |
44094 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
44095 | ac_prev=srcdir ;; | |
44096 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
44097 | ;; | |
44098 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
44099 | ac_prev=prefix ;; | |
44100 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
44101 | ;; | |
44102 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
44103 | esac | |
44104 | done | |
44105 | ||
44106 | # Always prepend --prefix to ensure using the same prefix | |
44107 | # in subdir configurations. | |
44108 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
44109 | ||
44110 | ac_popdir=`pwd` | |
44111 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
44112 | ||
44113 | # Do not complain, so a configure script can configure whichever | |
44114 | # parts of a large source tree are present. | |
44115 | test -d $srcdir/$ac_dir || continue | |
44116 | ||
44117 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
44118 | echo "$as_me: configuring in $ac_dir" >&6;} | |
44119 | { if $as_mkdir_p; then | |
44120 | mkdir -p "$ac_dir" | |
44121 | else | |
44122 | as_dir="$ac_dir" | |
44123 | as_dirs= | |
44124 | while test ! -d "$as_dir"; do | |
44125 | as_dirs="$as_dir $as_dirs" | |
44126 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44127 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44128 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
44129 | X"$as_dir" : 'X\(//\)$' \| \ | |
44130 | X"$as_dir" : 'X\(/\)' \| \ | |
44131 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44132 | echo X"$as_dir" | |
44133 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44134 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44135 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44136 | /^X\(\/\).*/{ s//\1/; q; } | |
44137 | s/.*/./; q'` | |
44138 | done | |
44139 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44140 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44141 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44142 | { (exit 1); exit 1; }; }; } | |
44143 | ||
44144 | ac_builddir=. | |
44145 | ||
44146 | if test "$ac_dir" != .; then | |
44147 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44148 | # A "../" for each directory in $ac_dir_suffix. | |
44149 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44150 | else | |
44151 | ac_dir_suffix= ac_top_builddir= | |
44152 | fi | |
44153 | ||
44154 | case $srcdir in | |
44155 | .) # No --srcdir option. We are building in place. | |
44156 | ac_srcdir=. | |
44157 | if test -z "$ac_top_builddir"; then | |
44158 | ac_top_srcdir=. | |
44159 | else | |
44160 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44161 | fi ;; | |
44162 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44163 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44164 | ac_top_srcdir=$srcdir ;; | |
44165 | *) # Relative path. | |
44166 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44167 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44168 | esac | |
ac1cb8d3 VS |
44169 | |
44170 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44171 | # the directories may not exist. | |
44172 | case `pwd` in | |
44173 | .) ac_abs_builddir="$ac_dir";; | |
44174 | *) | |
44175 | case "$ac_dir" in | |
44176 | .) ac_abs_builddir=`pwd`;; | |
44177 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44178 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44179 | esac;; | |
44180 | esac | |
44181 | case $ac_abs_builddir in | |
44182 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44183 | *) | |
44184 | case ${ac_top_builddir}. in | |
44185 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44186 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44187 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44188 | esac;; | |
44189 | esac | |
44190 | case $ac_abs_builddir in | |
44191 | .) ac_abs_srcdir=$ac_srcdir;; | |
44192 | *) | |
44193 | case $ac_srcdir in | |
44194 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44195 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44196 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44197 | esac;; | |
44198 | esac | |
44199 | case $ac_abs_builddir in | |
44200 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44201 | *) | |
44202 | case $ac_top_srcdir in | |
44203 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44204 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44205 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44206 | esac;; | |
44207 | esac | |
a848cd7e SC |
44208 | |
44209 | ||
44210 | cd $ac_dir | |
44211 | ||
44212 | # Check for guested configure; otherwise get Cygnus style configure. | |
44213 | if test -f $ac_srcdir/configure.gnu; then | |
44214 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
44215 | elif test -f $ac_srcdir/configure; then | |
44216 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
44217 | elif test -f $ac_srcdir/configure.in; then | |
44218 | ac_sub_configure=$ac_configure | |
44219 | else | |
44220 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
44221 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
44222 | ac_sub_configure= | |
44223 | fi | |
44224 | ||
44225 | # The recursion is here. | |
44226 | if test -n "$ac_sub_configure"; then | |
44227 | # Make the cache file name correct relative to the subdirectory. | |
44228 | case $cache_file in | |
44229 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
44230 | *) # Relative path. | |
ac1cb8d3 | 44231 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
44232 | esac |
44233 | ||
44234 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
44235 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
44236 | # The eval makes quoting arguments work. | |
44237 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
44238 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
44239 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
44240 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
44241 | { (exit 1); exit 1; }; } | |
44242 | fi | |
44243 | ||
89be85c2 | 44244 | cd $ac_popdir |
a848cd7e SC |
44245 | done |
44246 | fi | |
44247 | ||
44248 | ||
44249 | echo | |
77ffb593 | 44250 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 44251 | echo "" |
4d4ff94c | 44252 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 44253 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 44254 | |
77ffb593 JS |
44255 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
44256 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
44257 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 44258 | |
77ffb593 JS |
44259 | echo " What level of wxWidgets compatibility should be enabled?" |
44260 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
44261 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 44262 | |
77ffb593 | 44263 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
44264 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
44265 | echo " png ${wxUSE_LIBPNG-none}" | |
44266 | echo " regex ${wxUSE_REGEX}" | |
44267 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
44268 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
44269 | echo " xpm ${wxUSE_LIBXPM-none}" | |
44270 | fi | |
44271 | echo " zlib ${wxUSE_ZLIB}" | |
44272 | echo " odbc ${wxUSE_ODBC}" | |
44273 | echo " expat ${wxUSE_EXPAT}" | |
44274 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
44275 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 44276 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
44277 | |
44278 | echo "" | |
44279 |