]>
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. | |
e0d84535 | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.6.0. |
a848cd7e | 5 | # |
77ffb593 | 6 | # Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e | 7 | # |
ac1cb8d3 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
15 | # Be Bourne compatible | |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23 | set -o posix | |
24 | fi | |
ac1cb8d3 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
26 | |
27 | # Support unset when possible. | |
ac1cb8d3 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
ac1cb8d3 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
54 | # Required to use basename. | |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
60 | ||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
66 | ||
67 | ||
68 | # Name of the executable. | |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
79 | ||
80 | ||
81 | # PATH needs CR, and LINENO needs CR and PATH. | |
82 | # Avoid depending upon Character Ranges. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
88 | ||
89 | # The user is always right. | |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
91 | echo "#! /bin/sh" >conf$$.sh | |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 | PATH_SEPARATOR=';' | |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
99 | rm -f conf$$.sh | |
100 | fi | |
101 | ||
102 | ||
103 | as_lineno_1=$LINENO | |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
119 | ||
120 | ;; | |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 | CONFIG_SHELL=$as_dir/$as_base | |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
158 | ||
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
188 | ||
189 | ||
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
196 | ||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
203 | rm -f conf$$ conf$$.exe conf$$.file | |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
220 | ||
221 | if mkdir -p . 2>/dev/null; then | |
222 | as_mkdir_p=: | |
223 | else | |
ac1cb8d3 | 224 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
225 | as_mkdir_p=false |
226 | fi | |
227 | ||
228 | as_executable_p="test -f" | |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
232 | |
233 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
235 | |
236 | ||
237 | # IFS | |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
242 | ||
243 | # CDPATH. | |
244 | $as_unset CDPATH | |
245 | ||
246 | ||
247 | # Name of the host. | |
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
249 | # so uname gets run too. | |
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
251 | ||
252 | exec 6>&1 | |
253 | ||
254 | # | |
255 | # Initializations. | |
256 | # | |
257 | ac_default_prefix=/usr/local | |
258 | ac_config_libobj_dir=. | |
259 | cross_compiling=no | |
260 | subdirs= | |
261 | MFLAGS= | |
262 | MAKEFLAGS= | |
263 | SHELL=${CONFIG_SHELL-/bin/sh} | |
264 | ||
265 | # Maximum number of lines to put in a shell here document. | |
266 | # This variable seems obsolete. It should probably be removed, and | |
267 | # only ac_max_sed_lines should be used. | |
268 | : ${ac_max_here_lines=38} | |
269 | ||
270 | # Identity of this package. | |
77ffb593 JS |
271 | PACKAGE_NAME='wxWidgets' |
272 | PACKAGE_TARNAME='wxwidgets' | |
e0d84535 RL |
273 | PACKAGE_VERSION='2.6.0' |
274 | PACKAGE_STRING='wxWidgets 2.6.0' | |
77ffb593 | 275 | PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org' |
a848cd7e SC |
276 | |
277 | ac_unique_file="wx-config.in" | |
278 | # Factoring default headers for most tests. | |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
314 | ||
315 | ac_subdirs_all="$ac_subdirs_all src/expat" | |
83d8eb47 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
e0d84535 | 797 | \`configure' configures wxWidgets 2.6.0 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
e0d84535 | 863 | short | recursive ) echo "Configuration of wxWidgets 2.6.0:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
f34ca037 | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
ffa0583f | 894 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
895 | --enable-intl use internationalization system |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 906 | --enable-arcstream use wxArchive streams |
eaff0f0d | 907 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 908 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
909 | --enable-cmdline use wxCmdLineParser class |
910 | --enable-datetime use wxDateTime class | |
36b6448c | 911 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
912 | --enable-dialupman use dialup network classes |
913 | --enable-dynlib use wxLibrary class for DLL loading | |
914 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
915 | --enable-exceptions build exception-safe library | |
916 | --enable-ffile use wxFFile class | |
917 | --enable-file use wxFile class | |
918 | --enable-filesystem use virtual file systems classes | |
919 | --enable-fontmap use font encodings conversion classes | |
920 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
921 | --enable-fs_zip use virtual ZIP filesystems | |
922 | --enable-geometry use geometry class | |
923 | --enable-log use logging system | |
924 | --enable-longlong use wxLongLong class | |
925 | --enable-mimetype use wxMimeTypesManager | |
926 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
927 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 928 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 929 | --enable-std_string use standard C++ string classes |
07158944 | 930 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 931 | --enable-stopwatch use wxStopWatch class |
07158944 | 932 | --enable-streams use wxStream etc classes |
a848cd7e SC |
933 | --enable-sysoptions use wxSystemOptions |
934 | --enable-textbuf use wxTextBuffer class | |
935 | --enable-textfile use wxTextFile class | |
936 | --enable-timer use wxTimer class | |
937 | --enable-unicode compile wxString with Unicode support | |
938 | --enable-sound use wxSound class | |
3b57de8b | 939 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 940 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
81f90336 | 941 | --enable-zipstream use wxZip streams |
a848cd7e SC |
942 | --enable-url use wxURL class |
943 | --enable-protocol use wxProtocol class | |
944 | --enable-protocol-http HTTP support in wxProtocol | |
945 | --enable-protocol-ftp FTP support in wxProtocol | |
946 | --enable-protocol-file FILE support in wxProtocol | |
947 | --enable-threads use threads | |
948 | --enable-docview use document view architecture | |
949 | --enable-help use help subsystem | |
950 | --enable-mshtmlhelp use MS HTML Help (win32) | |
951 | --enable-html use wxHTML sub-library | |
952 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 953 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
954 | --enable-constraints use layout-constraints system |
955 | --enable-printarch use printing architecture | |
956 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 957 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
958 | --enable-loggui use standard GUI logger |
959 | --enable-logwin use wxLogWindow | |
960 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 961 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
962 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
963 | --enable-prologio not available; see contrib | |
964 | --enable-resources not available; see contrib | |
965 | --enable-clipboard use wxClipboard class | |
966 | --enable-dnd use Drag'n'Drop classes | |
967 | --enable-metafile use win32 metafiles | |
968 | --enable-controls use all usual controls | |
969 | --enable-accel use accelerators | |
970 | --enable-button use wxButton class | |
971 | --enable-bmpbutton use wxBitmapButton class | |
972 | --enable-calendar use wxCalendarCtrl class | |
973 | --enable-caret use wxCaret class | |
974 | --enable-checkbox use wxCheckBox class | |
975 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
976 | --enable-choice use wxChoice class | |
92bbdbcd | 977 | --enable-choicebook use wxChoicebook class |
a848cd7e | 978 | --enable-combobox use wxComboBox class |
da98e9be | 979 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
980 | --enable-display use wxDisplay class |
981 | --enable-gauge use wxGauge class | |
982 | --enable-grid use wxGrid class | |
983 | --enable-imaglist use wxImageList class | |
984 | --enable-listbook use wxListbook class | |
985 | --enable-listbox use wxListBox class | |
986 | --enable-listctrl use wxListCtrl class | |
987 | --enable-notebook use wxNotebook class | |
988 | --enable-radiobox use wxRadioBox class | |
989 | --enable-radiobtn use wxRadioButton class | |
990 | --enable-sash use wxSashWindow class | |
991 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
992 | --enable-slider use wxSlider class | |
993 | --enable-spinbtn use wxSpinButton class | |
994 | --enable-spinctrl use wxSpinCtrl class | |
995 | --enable-splitter use wxSplitterWindow class | |
996 | --enable-statbmp use wxStaticBitmap class | |
997 | --enable-statbox use wxStaticBox class | |
998 | --enable-statline use wxStaticLine class | |
999 | --enable-stattext use wxStaticText class | |
1000 | --enable-statusbar use wxStatusBar class | |
1001 | --enable-tabdialog use wxTabControl class | |
1002 | --enable-textctrl use wxTextCtrl class | |
1003 | --enable-togglebtn use wxToggleButton class | |
1004 | --enable-toolbar use wxToolBar class | |
1005 | --enable-tbarnative use native wxToolBar class | |
1006 | --enable-tbarsmpl use wxToolBarSimple class | |
1007 | --enable-treectrl use wxTreeCtrl class | |
1008 | --enable-tipwindow use wxTipWindow class | |
1009 | --enable-popupwin use wxPopUpWindow class | |
1010 | --enable-commondlg use all common dialogs | |
1011 | --enable-choicedlg use wxChoiceDialog | |
1012 | --enable-coldlg use wxColourDialog | |
1013 | --enable-filedlg use wxFileDialog | |
1014 | --enable-finddlg use wxFindReplaceDialog | |
1015 | --enable-fontdlg use wxFontDialog | |
1016 | --enable-dirdlg use wxDirDialog | |
1017 | --enable-msgdlg use wxMessageDialog | |
1018 | --enable-numberdlg use wxNumberEntryDialog | |
1019 | --enable-splash use wxSplashScreen | |
1020 | --enable-textdlg use wxTextDialog | |
1021 | --enable-tipdlg use startup tips | |
1022 | --enable-progressdlg use wxProgressDialog | |
1023 | --enable-wizarddlg use wxWizard | |
1024 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1025 | --enable-miniframe use wxMiniFrame class | |
1026 | --enable-tooltips use wxToolTip class | |
1027 | --enable-splines use spline drawing code | |
fbe2ca43 | 1028 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1029 | --enable-validators use wxValidator and derived classes |
1030 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1031 | --enable-joystick use wxJoystick |
a848cd7e SC |
1032 | --enable-metafiles use wxMetaFile (Windows only) |
1033 | --enable-dragimage use wxDragImage | |
1034 | --enable-accessibility enable accessibility support | |
1035 | --enable-palette use wxPalette class | |
1036 | --enable-image use wxImage class | |
1037 | --enable-gif use gif images (GIF file format) | |
1038 | --enable-pcx use pcx images (PCX file format) | |
1039 | --enable-iff use iff images (IFF file format) | |
1040 | --enable-pnm use pnm images (PNM file format) | |
1041 | --enable-xpm use xpm images (XPM file format) | |
1042 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1043 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1044 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1045 | --disable-largefile omit support for large files | |
1046 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1047 | --disable-gtktest Do not try to compile and run a test GTK program | |
1048 | --disable-sdltest Do not try to compile and run a test SDL program | |
1049 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1050 | --disable-precomp-headers |
1051 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1052 | |
1053 | Optional Packages: | |
1054 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1055 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f34ca037 | 1056 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1057 | --with-motif use Motif/Lesstif |
1058 | --with-mac use Mac OS X | |
1059 | --with-cocoa use Cocoa | |
1060 | --with-wine use Wine | |
1061 | --with-msw use MS-Windows | |
1062 | --with-pm use OS/2 Presentation Manager | |
1063 | --with-mgl use SciTech MGL | |
1064 | --with-microwin use MicroWindows | |
1065 | --with-x11 use X11 | |
1066 | --with-libpng use libpng (PNG image format) | |
1067 | --with-libjpeg use libjpeg (JPEG file format) | |
1068 | --with-libtiff use libtiff (TIFF file format) | |
1069 | --with-libxpm use libxpm (XPM file format) | |
1070 | --with-libmspack use libmspack (CHM help files loading) | |
1071 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1072 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1073 | --with-opengl use OpenGL (or Mesa) |
1074 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1075 | --with-regex enable support for wxRegEx class | |
1076 | --with-zlib use zlib for LZW compression | |
1077 | --with-odbc use the IODBC and wxODBC classes | |
1078 | --with-expat enable XML support using expat parser | |
ceec2216 | 1079 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1080 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1081 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1082 | --with-x use the X Window System | |
1083 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1084 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1085 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1086 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1087 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1088 | ||
1089 | Some influential environment variables: | |
dcc1b6ad VS |
1090 | CC C compiler command |
1091 | CFLAGS C compiler flags | |
1092 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1093 | nonstandard directory <lib dir> | |
1094 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1095 | headers in a nonstandard directory <include dir> | |
1096 | CPP C preprocessor | |
1097 | CXX C++ compiler command | |
1098 | CXXFLAGS C++ compiler flags | |
1099 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1100 | |
1101 | Use these variables to override the choices made by `configure' or to help | |
1102 | it to find libraries and programs with nonstandard names/locations. | |
1103 | ||
77ffb593 | 1104 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1105 | _ACEOF |
1106 | fi | |
1107 | ||
1108 | if test "$ac_init_help" = "recursive"; then | |
1109 | # If there are subdirs, report their specific --help. | |
1110 | ac_popdir=`pwd` | |
1111 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1112 | test -d $ac_dir || continue | |
1113 | ac_builddir=. | |
1114 | ||
1115 | if test "$ac_dir" != .; then | |
1116 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1117 | # A "../" for each directory in $ac_dir_suffix. | |
1118 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1119 | else | |
1120 | ac_dir_suffix= ac_top_builddir= | |
1121 | fi | |
1122 | ||
1123 | case $srcdir in | |
1124 | .) # No --srcdir option. We are building in place. | |
1125 | ac_srcdir=. | |
1126 | if test -z "$ac_top_builddir"; then | |
1127 | ac_top_srcdir=. | |
1128 | else | |
1129 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1130 | fi ;; | |
1131 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1132 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1133 | ac_top_srcdir=$srcdir ;; | |
1134 | *) # Relative path. | |
1135 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1136 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1137 | esac | |
ac1cb8d3 VS |
1138 | |
1139 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1140 | # the directories may not exist. | |
1141 | case `pwd` in | |
1142 | .) ac_abs_builddir="$ac_dir";; | |
1143 | *) | |
1144 | case "$ac_dir" in | |
1145 | .) ac_abs_builddir=`pwd`;; | |
1146 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1147 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1148 | esac;; | |
1149 | esac | |
1150 | case $ac_abs_builddir in | |
1151 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1152 | *) | |
1153 | case ${ac_top_builddir}. in | |
1154 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1155 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1156 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1157 | esac;; | |
1158 | esac | |
1159 | case $ac_abs_builddir in | |
1160 | .) ac_abs_srcdir=$ac_srcdir;; | |
1161 | *) | |
1162 | case $ac_srcdir in | |
1163 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1164 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1165 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1166 | esac;; | |
1167 | esac | |
1168 | case $ac_abs_builddir in | |
1169 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1170 | *) | |
1171 | case $ac_top_srcdir in | |
1172 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1173 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1174 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1175 | esac;; | |
1176 | esac | |
a848cd7e SC |
1177 | |
1178 | cd $ac_dir | |
1179 | # Check for guested configure; otherwise get Cygnus style configure. | |
1180 | if test -f $ac_srcdir/configure.gnu; then | |
1181 | echo | |
1182 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1183 | elif test -f $ac_srcdir/configure; then | |
1184 | echo | |
1185 | $SHELL $ac_srcdir/configure --help=recursive | |
1186 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1187 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1188 | echo |
1189 | $ac_configure --help | |
1190 | else | |
1191 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1192 | fi | |
9dd0f6c2 | 1193 | cd "$ac_popdir" |
a848cd7e SC |
1194 | done |
1195 | fi | |
1196 | ||
1197 | test -n "$ac_init_help" && exit 0 | |
1198 | if $ac_init_version; then | |
1199 | cat <<\_ACEOF | |
e0d84535 | 1200 | wxWidgets configure 2.6.0 |
ac1cb8d3 | 1201 | generated by GNU Autoconf 2.59 |
a848cd7e | 1202 | |
ac1cb8d3 | 1203 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1204 | This configure script is free software; the Free Software Foundation |
1205 | gives unlimited permission to copy, distribute and modify it. | |
1206 | _ACEOF | |
1207 | exit 0 | |
1208 | fi | |
1209 | exec 5>config.log | |
1210 | cat >&5 <<_ACEOF | |
1211 | This file contains any messages produced by compilers while | |
1212 | running configure, to aid debugging if configure makes a mistake. | |
1213 | ||
e0d84535 | 1214 | It was created by wxWidgets $as_me 2.6.0, which was |
ac1cb8d3 | 1215 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1216 | |
1217 | $ $0 $@ | |
1218 | ||
1219 | _ACEOF | |
1220 | { | |
1221 | cat <<_ASUNAME | |
1222 | ## --------- ## | |
1223 | ## Platform. ## | |
1224 | ## --------- ## | |
1225 | ||
1226 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1227 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1228 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1229 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1230 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1231 | ||
1232 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1233 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1234 | ||
1235 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1236 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1237 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1238 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1239 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1240 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1241 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1242 | ||
1243 | _ASUNAME | |
1244 | ||
1245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1246 | for as_dir in $PATH | |
1247 | do | |
1248 | IFS=$as_save_IFS | |
1249 | test -z "$as_dir" && as_dir=. | |
1250 | echo "PATH: $as_dir" | |
1251 | done | |
1252 | ||
1253 | } >&5 | |
1254 | ||
1255 | cat >&5 <<_ACEOF | |
1256 | ||
1257 | ||
1258 | ## ----------- ## | |
1259 | ## Core tests. ## | |
1260 | ## ----------- ## | |
1261 | ||
1262 | _ACEOF | |
1263 | ||
1264 | ||
1265 | # Keep a trace of the command line. | |
1266 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1267 | # Strip out --silent because we don't want to record it for future runs. | |
1268 | # Also quote any args containing shell meta-characters. | |
1269 | # Make two passes to allow for proper duplicate-argument suppression. | |
1270 | ac_configure_args= | |
1271 | ac_configure_args0= | |
1272 | ac_configure_args1= | |
1273 | ac_sep= | |
1274 | ac_must_keep_next=false | |
1275 | for ac_pass in 1 2 | |
1276 | do | |
1277 | for ac_arg | |
1278 | do | |
1279 | case $ac_arg in | |
1280 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1281 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1282 | | -silent | --silent | --silen | --sile | --sil) | |
1283 | continue ;; | |
1284 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1285 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1286 | esac | |
1287 | case $ac_pass in | |
1288 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1289 | 2) | |
1290 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1291 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1292 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1293 | else |
ac1cb8d3 VS |
1294 | case $ac_arg in |
1295 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1296 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1297 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1298 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1299 | case "$ac_configure_args0 " in | |
1300 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1301 | esac | |
1302 | ;; | |
1303 | -* ) ac_must_keep_next=true ;; | |
1304 | esac | |
a848cd7e SC |
1305 | fi |
1306 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1307 | # Get rid of the leading space. | |
1308 | ac_sep=" " | |
1309 | ;; | |
1310 | esac | |
1311 | done | |
1312 | done | |
1313 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1314 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1315 | ||
1316 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1317 | # config.log. We remove comments because anyway the quotes in there | |
1318 | # would cause problems or look ugly. | |
1319 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1320 | # such as our DU 5.0 friend, will then `close' the trap. | |
1321 | trap 'exit_status=$? | |
1322 | # Save into config.log some information that might help in debugging. | |
1323 | { | |
1324 | echo | |
1325 | ||
1326 | cat <<\_ASBOX | |
1327 | ## ---------------- ## | |
1328 | ## Cache variables. ## | |
1329 | ## ---------------- ## | |
1330 | _ASBOX | |
1331 | echo | |
1332 | # The following way of writing the cache mishandles newlines in values, | |
1333 | { | |
1334 | (set) 2>&1 | | |
1335 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1336 | *ac_space=\ *) | |
1337 | sed -n \ | |
ac1cb8d3 VS |
1338 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1339 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1340 | ;; |
1341 | *) | |
1342 | sed -n \ | |
ac1cb8d3 | 1343 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1344 | ;; |
1345 | esac; | |
1346 | } | |
1347 | echo | |
1348 | ||
1349 | cat <<\_ASBOX | |
1350 | ## ----------------- ## | |
1351 | ## Output variables. ## | |
1352 | ## ----------------- ## | |
1353 | _ASBOX | |
1354 | echo | |
1355 | for ac_var in $ac_subst_vars | |
1356 | do | |
1357 | eval ac_val=$`echo $ac_var` | |
1358 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1359 | done | sort | |
1360 | echo | |
1361 | ||
1362 | if test -n "$ac_subst_files"; then | |
1363 | cat <<\_ASBOX | |
1364 | ## ------------- ## | |
1365 | ## Output files. ## | |
1366 | ## ------------- ## | |
1367 | _ASBOX | |
1368 | echo | |
1369 | for ac_var in $ac_subst_files | |
1370 | do | |
1371 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1372 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1373 | done | sort |
1374 | echo | |
1375 | fi | |
1376 | ||
1377 | if test -s confdefs.h; then | |
1378 | cat <<\_ASBOX | |
1379 | ## ----------- ## | |
1380 | ## confdefs.h. ## | |
1381 | ## ----------- ## | |
1382 | _ASBOX | |
1383 | echo | |
1384 | sed "/^$/d" confdefs.h | sort | |
1385 | echo | |
1386 | fi | |
1387 | test "$ac_signal" != 0 && | |
1388 | echo "$as_me: caught signal $ac_signal" | |
1389 | echo "$as_me: exit $exit_status" | |
1390 | } >&5 | |
ac1cb8d3 | 1391 | rm -f core *.core && |
a848cd7e SC |
1392 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1393 | exit $exit_status | |
1394 | ' 0 | |
1395 | for ac_signal in 1 2 13 15; do | |
1396 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1397 | done | |
1398 | ac_signal=0 | |
1399 | ||
1400 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1401 | rm -rf conftest* confdefs.h | |
1402 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1403 | echo >confdefs.h | |
1404 | ||
1405 | # Predefined preprocessor variables. | |
1406 | ||
1407 | cat >>confdefs.h <<_ACEOF | |
1408 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1409 | _ACEOF | |
1410 | ||
1411 | ||
1412 | cat >>confdefs.h <<_ACEOF | |
1413 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1414 | _ACEOF | |
1415 | ||
1416 | ||
1417 | cat >>confdefs.h <<_ACEOF | |
1418 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1419 | _ACEOF | |
1420 | ||
1421 | ||
1422 | cat >>confdefs.h <<_ACEOF | |
1423 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1424 | _ACEOF | |
1425 | ||
1426 | ||
1427 | cat >>confdefs.h <<_ACEOF | |
1428 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1429 | _ACEOF | |
1430 | ||
1431 | ||
1432 | # Let the site file select an alternate cache file if it wants to. | |
1433 | # Prefer explicitly selected file to automatically selected ones. | |
1434 | if test -z "$CONFIG_SITE"; then | |
1435 | if test "x$prefix" != xNONE; then | |
1436 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1437 | else | |
1438 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1439 | fi | |
1440 | fi | |
1441 | for ac_site_file in $CONFIG_SITE; do | |
1442 | if test -r "$ac_site_file"; then | |
1443 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1444 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1445 | sed 's/^/| /' "$ac_site_file" >&5 | |
1446 | . "$ac_site_file" | |
1447 | fi | |
1448 | done | |
1449 | ||
1450 | if test -r "$cache_file"; then | |
1451 | # Some versions of bash will fail to source /dev/null (special | |
1452 | # files actually), so we avoid doing that. | |
1453 | if test -f "$cache_file"; then | |
1454 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1455 | echo "$as_me: loading cache $cache_file" >&6;} | |
1456 | case $cache_file in | |
1457 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1458 | *) . ./$cache_file;; | |
1459 | esac | |
1460 | fi | |
1461 | else | |
1462 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1463 | echo "$as_me: creating cache $cache_file" >&6;} | |
1464 | >$cache_file | |
1465 | fi | |
1466 | ||
1467 | # Check that the precious variables saved in the cache have kept the same | |
1468 | # value. | |
1469 | ac_cache_corrupted=false | |
1470 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1471 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1472 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1473 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1474 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1475 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1476 | case $ac_old_set,$ac_new_set in | |
1477 | set,) | |
1478 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1479 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1480 | ac_cache_corrupted=: ;; | |
1481 | ,set) | |
1482 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1483 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1484 | ac_cache_corrupted=: ;; | |
1485 | ,);; | |
1486 | *) | |
1487 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1488 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1489 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1490 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1491 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1492 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1493 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1494 | ac_cache_corrupted=: |
a848cd7e SC |
1495 | fi;; |
1496 | esac | |
1497 | # Pass precious variables to config.status. | |
1498 | if test "$ac_new_set" = set; then | |
1499 | case $ac_new_val in | |
1500 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1501 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1502 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1503 | esac | |
1504 | case " $ac_configure_args " in | |
1505 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1506 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1507 | esac | |
1508 | fi | |
1509 | done | |
1510 | if $ac_cache_corrupted; then | |
1511 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1512 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1513 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1514 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1515 | { (exit 1); exit 1; }; } | |
1516 | fi | |
1517 | ||
1518 | ac_ext=c | |
1519 | ac_cpp='$CPP $CPPFLAGS' | |
1520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | ||
1552 | ||
1553 | ac_aux_dir= | |
1554 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1555 | if test -f $ac_dir/install-sh; then | |
1556 | ac_aux_dir=$ac_dir | |
1557 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1558 | break | |
1559 | elif test -f $ac_dir/install.sh; then | |
1560 | ac_aux_dir=$ac_dir | |
1561 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1562 | break | |
1563 | elif test -f $ac_dir/shtool; then | |
1564 | ac_aux_dir=$ac_dir | |
1565 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1566 | break | |
1567 | fi | |
1568 | done | |
1569 | if test -z "$ac_aux_dir"; then | |
1570 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1571 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1572 | { (exit 1); exit 1; }; } | |
1573 | fi | |
1574 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1575 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1576 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1577 | ||
1578 | # Make sure we can run config.sub. | |
1579 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1580 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1581 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1582 | { (exit 1); exit 1; }; } | |
1583 | ||
1584 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1585 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1586 | if test "${ac_cv_build+set}" = set; then | |
1587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1588 | else | |
1589 | ac_cv_build_alias=$build_alias | |
1590 | test -z "$ac_cv_build_alias" && | |
1591 | ac_cv_build_alias=`$ac_config_guess` | |
1592 | test -z "$ac_cv_build_alias" && | |
1593 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1594 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1595 | { (exit 1); exit 1; }; } | |
1596 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1597 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1598 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1599 | { (exit 1); exit 1; }; } | |
1600 | ||
1601 | fi | |
1602 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1603 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1604 | build=$ac_cv_build | |
1605 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1606 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1607 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1608 | ||
1609 | ||
1610 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1611 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1612 | if test "${ac_cv_host+set}" = set; then | |
1613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1614 | else | |
1615 | ac_cv_host_alias=$host_alias | |
1616 | test -z "$ac_cv_host_alias" && | |
1617 | ac_cv_host_alias=$ac_cv_build_alias | |
1618 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1619 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1620 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1621 | { (exit 1); exit 1; }; } | |
1622 | ||
1623 | fi | |
1624 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1625 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1626 | host=$ac_cv_host | |
1627 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1628 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1629 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1630 | ||
1631 | ||
1632 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1633 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1634 | if test "${ac_cv_target+set}" = set; then | |
1635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1636 | else | |
1637 | ac_cv_target_alias=$target_alias | |
1638 | test "x$ac_cv_target_alias" = "x" && | |
1639 | ac_cv_target_alias=$ac_cv_host_alias | |
1640 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1641 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1642 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1643 | { (exit 1); exit 1; }; } | |
1644 | ||
1645 | fi | |
1646 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1647 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1648 | target=$ac_cv_target | |
1649 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1650 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1651 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1652 | ||
1653 | ||
1654 | # The aliases save the names the user supplied, while $host etc. | |
1655 | # will get canonicalized. | |
1656 | test -n "$target_alias" && | |
1657 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1658 | NONENONEs,x,x, && | |
1659 | program_prefix=${target_alias}- | |
1660 | ||
1661 | ||
1662 | ||
ceec2216 | 1663 | wx_major_version_number=2 |
e0d84535 RL |
1664 | wx_minor_version_number=6 |
1665 | wx_release_number=0 | |
d26fbe54 | 1666 | wx_subrelease_number=1 |
a848cd7e | 1667 | |
ceec2216 RL |
1668 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1669 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1670 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1671 | |
ceec2216 | 1672 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1673 | |
e0d84535 | 1674 | WX_CURRENT=0 |
a848cd7e | 1675 | WX_REVISION=0 |
e0d84535 | 1676 | WX_AGE=0 |
a848cd7e SC |
1677 | |
1678 | ||
1679 | ||
1680 | USE_UNIX=1 | |
1681 | USE_OS2=0 | |
1682 | USE_WIN32=0 | |
1683 | USE_DOS=0 | |
1684 | USE_BEOS=0 | |
1685 | USE_MAC=0 | |
1686 | ||
1687 | USE_AIX= | |
1688 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1689 | USE_GNU= USE_HPUX= | |
1690 | USE_LINUX= | |
1691 | USE_NETBSD= | |
1692 | USE_OPENBSD= | |
1693 | USE_OSF= USE_SGI= | |
1694 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1695 | USE_ULTRIX= | |
1696 | USE_UNIXWARE= | |
1697 | ||
1698 | USE_ALPHA= | |
1699 | ||
1700 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1701 | ||
1702 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1703 | ||
1704 | DEFAULT_wxUSE_COCOA=0 | |
1705 | DEFAULT_wxUSE_GTK=0 | |
1706 | DEFAULT_wxUSE_MAC=0 | |
1707 | DEFAULT_wxUSE_MGL=0 | |
1708 | DEFAULT_wxUSE_MICROWIN=0 | |
1709 | DEFAULT_wxUSE_MOTIF=0 | |
1710 | DEFAULT_wxUSE_MSW=0 | |
1711 | DEFAULT_wxUSE_PM=0 | |
1712 | DEFAULT_wxUSE_X11=0 | |
1713 | ||
1714 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1717 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1719 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1720 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1721 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1722 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1723 | ||
1724 | PROGRAM_EXT= | |
1725 | SO_SUFFIX=so | |
1726 | SAMPLES_RPATH_FLAG= | |
1727 | SAMPLES_RPATH_POSTLINK= | |
1728 | ||
a03b8b04 RD |
1729 | DEFAULT_STD_FLAG=yes |
1730 | ||
a848cd7e SC |
1731 | case "${host}" in |
1732 | *-hp-hpux* ) | |
1733 | USE_HPUX=1 | |
1734 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1735 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1736 | SO_SUFFIX=sl | |
1737 | cat >>confdefs.h <<\_ACEOF | |
1738 | #define __HPUX__ 1 | |
1739 | _ACEOF | |
1740 | ||
1741 | ;; | |
1742 | *-*-linux* ) | |
1743 | USE_LINUX=1 | |
1744 | cat >>confdefs.h <<\_ACEOF | |
1745 | #define __LINUX__ 1 | |
1746 | _ACEOF | |
1747 | ||
1748 | TMP=`uname -m` | |
1749 | if test "x$TMP" = "xalpha"; then | |
1750 | USE_ALPHA=1 | |
1751 | cat >>confdefs.h <<\_ACEOF | |
1752 | #define __ALPHA__ 1 | |
1753 | _ACEOF | |
1754 | ||
1755 | fi | |
1756 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1757 | ;; | |
1758 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1759 | USE_GNU=1 | |
1760 | TMP=`uname -m` | |
1761 | if test "x$TMP" = "xalpha"; then | |
1762 | USE_ALPHA=1 | |
1763 | cat >>confdefs.h <<\_ACEOF | |
1764 | #define __ALPHA__ 1 | |
1765 | _ACEOF | |
1766 | ||
1767 | fi | |
1768 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1769 | ;; | |
1770 | *-*-irix5* | *-*-irix6* ) | |
1771 | USE_SGI=1 | |
1772 | USE_SVR4=1 | |
1773 | cat >>confdefs.h <<\_ACEOF | |
1774 | #define __SGI__ 1 | |
1775 | _ACEOF | |
1776 | ||
1777 | cat >>confdefs.h <<\_ACEOF | |
1778 | #define __SVR4__ 1 | |
1779 | _ACEOF | |
1780 | ||
1781 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1782 | ;; | |
1783 | *-*-solaris2* ) | |
1784 | USE_SUN=1 | |
1785 | USE_SOLARIS=1 | |
1786 | USE_SVR4=1 | |
1787 | cat >>confdefs.h <<\_ACEOF | |
1788 | #define __SUN__ 1 | |
1789 | _ACEOF | |
1790 | ||
1791 | cat >>confdefs.h <<\_ACEOF | |
1792 | #define __SOLARIS__ 1 | |
1793 | _ACEOF | |
1794 | ||
1795 | cat >>confdefs.h <<\_ACEOF | |
1796 | #define __SVR4__ 1 | |
1797 | _ACEOF | |
1798 | ||
1799 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1800 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1801 | ;; | |
1802 | *-*-sunos4* ) | |
1803 | USE_SUN=1 | |
1804 | USE_SUNOS=1 | |
1805 | USE_BSD=1 | |
1806 | cat >>confdefs.h <<\_ACEOF | |
1807 | #define __SUN__ 1 | |
1808 | _ACEOF | |
1809 | ||
1810 | cat >>confdefs.h <<\_ACEOF | |
1811 | #define __SUNOS__ 1 | |
1812 | _ACEOF | |
1813 | ||
1814 | cat >>confdefs.h <<\_ACEOF | |
1815 | #define __BSD__ 1 | |
1816 | _ACEOF | |
1817 | ||
1818 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1819 | ;; | |
1820 | *-*-freebsd*) | |
1821 | USE_BSD=1 | |
1822 | USE_FREEBSD=1 | |
1823 | cat >>confdefs.h <<\_ACEOF | |
1824 | #define __FREEBSD__ 1 | |
1825 | _ACEOF | |
1826 | ||
1827 | cat >>confdefs.h <<\_ACEOF | |
1828 | #define __BSD__ 1 | |
1829 | _ACEOF | |
1830 | ||
1831 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1832 | ;; | |
1833 | *-*-openbsd*) | |
1834 | USE_BSD=1 | |
1835 | USE_OPENBSD=1 | |
1836 | cat >>confdefs.h <<\_ACEOF | |
1837 | #define __OPENBSD__ 1 | |
1838 | _ACEOF | |
1839 | ||
1840 | cat >>confdefs.h <<\_ACEOF | |
1841 | #define __BSD__ 1 | |
1842 | _ACEOF | |
1843 | ||
1844 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1845 | ;; | |
1846 | *-*-netbsd*) | |
1847 | USE_BSD=1 | |
1848 | USE_NETBSD=1 | |
1849 | cat >>confdefs.h <<\_ACEOF | |
1850 | #define __NETBSD__ 1 | |
1851 | _ACEOF | |
1852 | ||
1853 | cat >>confdefs.h <<\_ACEOF | |
1854 | #define __BSD__ 1 | |
1855 | _ACEOF | |
1856 | ||
1857 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1858 | ;; | |
1859 | *-*-osf* ) | |
1860 | USE_ALPHA=1 | |
1861 | USE_OSF=1 | |
1862 | cat >>confdefs.h <<\_ACEOF | |
1863 | #define __ALPHA__ 1 | |
1864 | _ACEOF | |
1865 | ||
1866 | cat >>confdefs.h <<\_ACEOF | |
1867 | #define __OSF__ 1 | |
1868 | _ACEOF | |
1869 | ||
1870 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1871 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1872 | ;; | |
1873 | *-*-dgux5* ) | |
1874 | USE_ALPHA=1 | |
1875 | USE_SVR4=1 | |
1876 | cat >>confdefs.h <<\_ACEOF | |
1877 | #define __ALPHA__ 1 | |
1878 | _ACEOF | |
1879 | ||
1880 | cat >>confdefs.h <<\_ACEOF | |
1881 | #define __SVR4__ 1 | |
1882 | _ACEOF | |
1883 | ||
1884 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1885 | ;; | |
1886 | *-*-sysv5* ) | |
1887 | USE_SYSV=1 | |
1888 | USE_SVR4=1 | |
1889 | cat >>confdefs.h <<\_ACEOF | |
1890 | #define __SYSV__ 1 | |
1891 | _ACEOF | |
1892 | ||
1893 | cat >>confdefs.h <<\_ACEOF | |
1894 | #define __SVR4__ 1 | |
1895 | _ACEOF | |
1896 | ||
1897 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1898 | ;; | |
1899 | *-*-aix* ) | |
1900 | USE_AIX=1 | |
1901 | USE_SYSV=1 | |
1902 | USE_SVR4=1 | |
1903 | SO_SUFFIX=a | |
1904 | cat >>confdefs.h <<\_ACEOF | |
1905 | #define __AIX__ 1 | |
1906 | _ACEOF | |
1907 | ||
1908 | cat >>confdefs.h <<\_ACEOF | |
1909 | #define __SYSV__ 1 | |
1910 | _ACEOF | |
1911 | ||
1912 | cat >>confdefs.h <<\_ACEOF | |
1913 | #define __SVR4__ 1 | |
1914 | _ACEOF | |
1915 | ||
1916 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1917 | ;; | |
1918 | ||
1919 | *-*-*UnixWare*) | |
1920 | USE_SYSV=1 | |
1921 | USE_SVR4=1 | |
1922 | USE_UNIXWARE=1 | |
1923 | cat >>confdefs.h <<\_ACEOF | |
1924 | #define __UNIXWARE__ 1 | |
1925 | _ACEOF | |
1926 | ||
1927 | ;; | |
1928 | ||
1929 | *-*-cygwin* | *-*-mingw32* ) | |
1930 | SO_SUFFIX=dll | |
1931 | PROGRAM_EXT=".exe" | |
1932 | RESCOMP=windres | |
1933 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
a03b8b04 | 1934 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1935 | ;; |
1936 | ||
1937 | *-pc-msdosdjgpp ) | |
1938 | USE_UNIX=0 | |
1939 | USE_DOS=1 | |
1940 | cat >>confdefs.h <<\_ACEOF | |
1941 | #define __DOS__ 1 | |
1942 | _ACEOF | |
1943 | ||
1944 | PROGRAM_EXT=".exe" | |
1945 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1946 | ;; |
1947 | ||
1948 | *-pc-os2_emx | *-pc-os2-emx ) | |
1949 | cat >>confdefs.h <<\_ACEOF | |
1950 | #define __EMX__ 1 | |
1951 | _ACEOF | |
1952 | ||
1953 | USE_OS2=1 | |
1954 | cat >>confdefs.h <<\_ACEOF | |
1955 | #define __OS2__ 1 | |
1956 | _ACEOF | |
1957 | ||
1958 | PROGRAM_EXT=".exe" | |
1959 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1960 | CXX=gcc | |
1961 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1962 | ac_executable_extensions=".exe" | |
1963 | export ac_executable_extensions | |
1964 | ac_save_IFS="$IFS" | |
1965 | IFS='\\' | |
1966 | ac_TEMP_PATH= | |
1967 | for ac_dir in $PATH; do | |
1968 | IFS=$ac_save_IFS | |
1969 | if test -z "$ac_TEMP_PATH"; then | |
1970 | ac_TEMP_PATH="$ac_dir" | |
1971 | else | |
1972 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1973 | fi | |
1974 | done | |
1975 | export PATH="$ac_TEMP_PATH" | |
1976 | unset ac_TEMP_PATH | |
a03b8b04 | 1977 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1978 | ;; |
1979 | ||
1980 | powerpc-*-darwin* ) | |
1981 | USE_BSD=1 | |
1982 | USE_DARWIN=1 | |
1983 | SO_SUFFIX=dylib | |
1984 | cat >>confdefs.h <<\_ACEOF | |
1985 | #define __BSD__ 1 | |
1986 | _ACEOF | |
1987 | ||
1988 | cat >>confdefs.h <<\_ACEOF | |
1989 | #define __DARWIN__ 1 | |
a848cd7e SC |
1990 | _ACEOF |
1991 | ||
1992 | cat >>confdefs.h <<\_ACEOF | |
1993 | #define TARGET_CARBON 1 | |
1994 | _ACEOF | |
1995 | ||
1996 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 1997 | DEFAULT_STD_FLAG=no |
a848cd7e | 1998 | ;; |
1e9e8aba DE |
1999 | powerpc-apple-macos* ) |
2000 | USE_UNIX=0 | |
2001 | ac_cv_c_bigendian=yes | |
2002 | SO_SUFFIX=shlib | |
2003 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2004 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2005 | ;; |
a848cd7e SC |
2006 | |
2007 | *-*-beos* ) | |
2008 | USE_BEOS=1 | |
2009 | cat >>confdefs.h <<\_ACEOF | |
2010 | #define __BEOS__ 1 | |
2011 | _ACEOF | |
2012 | ||
2013 | ;; | |
2014 | ||
2015 | *) | |
2016 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2017 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2018 | { (exit 1); exit 1; }; } | |
2019 | esac | |
2020 | ||
2021 | ||
2022 | ||
2023 | ||
2024 | wx_arg_cache_file="configarg.cache" | |
2025 | echo "loading argument cache $wx_arg_cache_file" | |
2026 | rm -f ${wx_arg_cache_file}.tmp | |
2027 | touch ${wx_arg_cache_file}.tmp | |
2028 | touch ${wx_arg_cache_file} | |
2029 | ||
2030 | ||
2031 | DEBUG_CONFIGURE=0 | |
2032 | if test $DEBUG_CONFIGURE = 1; then | |
2033 | DEFAULT_wxUSE_UNIVERSAL=no | |
2034 | DEFAULT_wxUSE_STL=no | |
2035 | ||
2036 | DEFAULT_wxUSE_NANOX=no | |
2037 | ||
2038 | DEFAULT_wxUSE_THREADS=yes | |
2039 | ||
2040 | DEFAULT_wxUSE_SHARED=yes | |
2041 | DEFAULT_wxUSE_OPTIMISE=no | |
2042 | DEFAULT_wxUSE_PROFILE=no | |
2043 | DEFAULT_wxUSE_NO_DEPS=no | |
2044 | DEFAULT_wxUSE_NO_RTTI=no | |
2045 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2046 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2047 | DEFAULT_wxUSE_PERMISSIVE=no |
2048 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2049 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2050 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2051 | DEFAULT_wxUSE_MEM_TRACING=no | |
2052 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2053 | DEFAULT_wxUSE_DMALLOC=no | |
2054 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2055 | ||
2056 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2057 | DEFAULT_wxUSE_LOG=yes | |
2058 | DEFAULT_wxUSE_LOGWINDOW=no | |
2059 | DEFAULT_wxUSE_LOGGUI=no | |
2060 | DEFAULT_wxUSE_LOGDIALOG=no | |
2061 | ||
2062 | DEFAULT_wxUSE_GUI=yes | |
2063 | DEFAULT_wxUSE_CONTROLS=no | |
2064 | ||
2065 | DEFAULT_wxUSE_REGEX=no | |
2066 | DEFAULT_wxUSE_XML=no | |
2067 | DEFAULT_wxUSE_EXPAT=no | |
2068 | DEFAULT_wxUSE_ZLIB=no | |
2069 | DEFAULT_wxUSE_LIBPNG=no | |
2070 | DEFAULT_wxUSE_LIBJPEG=no | |
2071 | DEFAULT_wxUSE_LIBTIFF=no | |
2072 | DEFAULT_wxUSE_LIBXPM=no | |
2073 | DEFAULT_wxUSE_LIBMSPACK=no | |
2074 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2075 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2076 | DEFAULT_wxUSE_ODBC=no |
2077 | DEFAULT_wxUSE_OPENGL=no | |
2078 | ||
2079 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2080 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2081 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2082 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2083 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2084 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2085 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2086 | DEFAULT_wxUSE_DATETIME=no | |
2087 | DEFAULT_wxUSE_TIMER=no | |
2088 | DEFAULT_wxUSE_STOPWATCH=no | |
2089 | DEFAULT_wxUSE_FILE=no | |
2090 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2091 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2092 | DEFAULT_wxUSE_TEXTBUFFER=no |
2093 | DEFAULT_wxUSE_TEXTFILE=no | |
2094 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b RL |
2095 | DEFAULT_wxUSE_MEDIACTRL=no |
2096 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2097 | DEFAULT_wxUSE_INTL=no |
2098 | DEFAULT_wxUSE_CONFIG=no | |
2099 | DEFAULT_wxUSE_FONTMAP=no | |
2100 | DEFAULT_wxUSE_STREAMS=no | |
2101 | DEFAULT_wxUSE_SOCKETS=no | |
2102 | DEFAULT_wxUSE_OLE=no | |
2103 | DEFAULT_wxUSE_DATAOBJ=no | |
2104 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2105 | DEFAULT_wxUSE_JOYSTICK=no | |
2106 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2107 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2108 | DEFAULT_wxUSE_LONGLONG=no | |
2109 | DEFAULT_wxUSE_GEOMETRY=no | |
2110 | ||
2111 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2112 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2113 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2114 | ||
2115 | DEFAULT_wxUSE_CLIPBOARD=no | |
2116 | DEFAULT_wxUSE_TOOLTIPS=no | |
2117 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2118 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2119 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2120 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2121 | |
8a7b1113 | 2122 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2123 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2124 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2125 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2126 | ||
2127 | DEFAULT_wxUSE_RESOURCES=no | |
2128 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2129 | DEFAULT_wxUSE_IPC=no | |
2130 | DEFAULT_wxUSE_HELP=no | |
2131 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2132 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2133 | DEFAULT_wxUSE_TREELAYOUT=no | |
2134 | DEFAULT_wxUSE_METAFILE=no | |
2135 | DEFAULT_wxUSE_MIMETYPE=no | |
2136 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2137 | DEFAULT_wxUSE_PROTOCOL=no | |
2138 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2139 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2140 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2141 | DEFAULT_wxUSE_URL=no | |
2142 | ||
2143 | DEFAULT_wxUSE_COMMONDLGS=no | |
2144 | DEFAULT_wxUSE_CHOICEDLG=no | |
2145 | DEFAULT_wxUSE_COLOURDLG=no | |
2146 | DEFAULT_wxUSE_DIRDLG=no | |
2147 | DEFAULT_wxUSE_FILEDLG=no | |
2148 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2149 | DEFAULT_wxUSE_FONTDLG=no | |
2150 | DEFAULT_wxUSE_MSGDLG=no | |
2151 | DEFAULT_wxUSE_NUMBERDLG=no | |
2152 | DEFAULT_wxUSE_TEXTDLG=no | |
2153 | DEFAULT_wxUSE_SPLASH=no | |
2154 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2155 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2156 | DEFAULT_wxUSE_WIZARDDLG=no | |
2157 | ||
2158 | DEFAULT_wxUSE_MENUS=no | |
2159 | DEFAULT_wxUSE_MINIFRAME=no | |
2160 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2161 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2162 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2163 | DEFAULT_wxUSE_FILESYSTEM=no |
2164 | DEFAULT_wxUSE_FS_INET=no | |
2165 | DEFAULT_wxUSE_FS_ZIP=no | |
2166 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2167 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2168 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2169 | DEFAULT_wxUSE_VALIDATORS=no |
2170 | ||
2171 | DEFAULT_wxUSE_ACCEL=no | |
2172 | DEFAULT_wxUSE_BUTTON=no | |
2173 | DEFAULT_wxUSE_BMPBUTTON=no | |
2174 | DEFAULT_wxUSE_CALCTRL=no | |
2175 | DEFAULT_wxUSE_CARET=no | |
2176 | DEFAULT_wxUSE_CHECKBOX=no | |
2177 | DEFAULT_wxUSE_CHECKLST=no | |
2178 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2179 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2180 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2181 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2182 | DEFAULT_wxUSE_DISPLAY=no |
2183 | DEFAULT_wxUSE_GAUGE=no | |
2184 | DEFAULT_wxUSE_GRID=no | |
2185 | DEFAULT_wxUSE_IMAGLIST=no | |
2186 | DEFAULT_wxUSE_LISTBOOK=no | |
2187 | DEFAULT_wxUSE_LISTBOX=no | |
2188 | DEFAULT_wxUSE_LISTCTRL=no | |
2189 | DEFAULT_wxUSE_NOTEBOOK=no | |
2190 | DEFAULT_wxUSE_RADIOBOX=no | |
2191 | DEFAULT_wxUSE_RADIOBTN=no | |
2192 | DEFAULT_wxUSE_SASH=no | |
2193 | DEFAULT_wxUSE_SCROLLBAR=no | |
2194 | DEFAULT_wxUSE_SLIDER=no | |
2195 | DEFAULT_wxUSE_SPINBTN=no | |
2196 | DEFAULT_wxUSE_SPINCTRL=no | |
2197 | DEFAULT_wxUSE_SPLITTER=no | |
2198 | DEFAULT_wxUSE_STATBMP=no | |
2199 | DEFAULT_wxUSE_STATBOX=no | |
2200 | DEFAULT_wxUSE_STATLINE=no | |
2201 | DEFAULT_wxUSE_STATTEXT=no | |
2202 | DEFAULT_wxUSE_STATUSBAR=yes | |
2203 | DEFAULT_wxUSE_TABDIALOG=no | |
2204 | DEFAULT_wxUSE_TEXTCTRL=no | |
2205 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2206 | DEFAULT_wxUSE_TOOLBAR=no | |
2207 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2208 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2209 | DEFAULT_wxUSE_TREECTRL=no | |
2210 | DEFAULT_wxUSE_POPUPWIN=no | |
2211 | DEFAULT_wxUSE_TIPWINDOW=no | |
2212 | ||
2213 | DEFAULT_wxUSE_UNICODE=no | |
2214 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2215 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2216 | ||
2217 | DEFAULT_wxUSE_PALETTE=no | |
2218 | DEFAULT_wxUSE_IMAGE=no | |
2219 | DEFAULT_wxUSE_GIF=no | |
2220 | DEFAULT_wxUSE_PCX=no | |
2221 | DEFAULT_wxUSE_PNM=no | |
2222 | DEFAULT_wxUSE_IFF=no | |
2223 | DEFAULT_wxUSE_XPM=no | |
2224 | DEFAULT_wxUSE_ICO_CUR=no | |
2225 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2226 | ||
2227 | DEFAULT_wxUSE_MONOLITHIC=no | |
2228 | DEFAULT_wxUSE_PLUGINS=no | |
2229 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2230 | else | |
2231 | DEFAULT_wxUSE_UNIVERSAL=no | |
2232 | DEFAULT_wxUSE_STL=no | |
2233 | ||
2234 | DEFAULT_wxUSE_NANOX=no | |
2235 | ||
2236 | DEFAULT_wxUSE_THREADS=yes | |
2237 | ||
2238 | DEFAULT_wxUSE_SHARED=yes | |
2239 | DEFAULT_wxUSE_OPTIMISE=yes | |
2240 | DEFAULT_wxUSE_PROFILE=no | |
2241 | DEFAULT_wxUSE_NO_DEPS=no | |
2242 | DEFAULT_wxUSE_NO_RTTI=no | |
2243 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2244 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2245 | DEFAULT_wxUSE_PERMISSIVE=no |
2246 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2247 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2248 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2249 | DEFAULT_wxUSE_MEM_TRACING=no | |
2250 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2251 | DEFAULT_wxUSE_DMALLOC=no | |
2252 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2253 | ||
2254 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2255 | DEFAULT_wxUSE_LOG=yes | |
2256 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2257 | DEFAULT_wxUSE_LOGGUI=yes | |
2258 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2259 | ||
2260 | DEFAULT_wxUSE_GUI=yes | |
2261 | ||
2262 | DEFAULT_wxUSE_REGEX=yes | |
2263 | DEFAULT_wxUSE_XML=yes | |
2264 | DEFAULT_wxUSE_EXPAT=yes | |
2265 | DEFAULT_wxUSE_ZLIB=yes | |
2266 | DEFAULT_wxUSE_LIBPNG=yes | |
2267 | DEFAULT_wxUSE_LIBJPEG=yes | |
2268 | DEFAULT_wxUSE_LIBTIFF=yes | |
2269 | DEFAULT_wxUSE_LIBXPM=yes | |
2270 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2271 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2272 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e | 2273 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2274 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2275 | |
2276 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2277 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2278 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2279 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2280 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2281 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2282 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2283 | DEFAULT_wxUSE_DATETIME=yes | |
2284 | DEFAULT_wxUSE_TIMER=yes | |
2285 | DEFAULT_wxUSE_STOPWATCH=yes | |
2286 | DEFAULT_wxUSE_FILE=yes | |
2287 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2288 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2289 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2290 | DEFAULT_wxUSE_TEXTFILE=yes | |
2291 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b RL |
2292 | DEFAULT_wxUSE_MEDIACTRL=no |
2293 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2294 | DEFAULT_wxUSE_INTL=yes |
2295 | DEFAULT_wxUSE_CONFIG=yes | |
2296 | DEFAULT_wxUSE_FONTMAP=yes | |
2297 | DEFAULT_wxUSE_STREAMS=yes | |
2298 | DEFAULT_wxUSE_SOCKETS=yes | |
2299 | DEFAULT_wxUSE_OLE=yes | |
2300 | DEFAULT_wxUSE_DATAOBJ=yes | |
2301 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2302 | DEFAULT_wxUSE_JOYSTICK=yes | |
2303 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2304 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2305 | DEFAULT_wxUSE_LONGLONG=yes | |
2306 | DEFAULT_wxUSE_GEOMETRY=yes | |
2307 | ||
2308 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2309 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2310 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2311 | ||
2312 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2313 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2314 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2315 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2316 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2317 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2318 | |
8a7b1113 | 2319 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2320 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2321 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2322 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2323 | ||
2324 | DEFAULT_wxUSE_RESOURCES=no | |
2325 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2326 | DEFAULT_wxUSE_IPC=yes | |
2327 | DEFAULT_wxUSE_HELP=yes | |
2328 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2329 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2330 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2331 | DEFAULT_wxUSE_METAFILE=yes | |
2332 | DEFAULT_wxUSE_MIMETYPE=yes | |
2333 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2334 | DEFAULT_wxUSE_PROTOCOL=yes | |
2335 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2336 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2337 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2338 | DEFAULT_wxUSE_URL=yes | |
2339 | ||
2340 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2341 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2342 | DEFAULT_wxUSE_COLOURDLG=yes | |
2343 | DEFAULT_wxUSE_DIRDLG=yes | |
2344 | DEFAULT_wxUSE_FILEDLG=yes | |
2345 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2346 | DEFAULT_wxUSE_FONTDLG=yes | |
2347 | DEFAULT_wxUSE_MSGDLG=yes | |
2348 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2349 | DEFAULT_wxUSE_TEXTDLG=yes | |
2350 | DEFAULT_wxUSE_SPLASH=yes | |
2351 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2352 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2353 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2354 | ||
2355 | DEFAULT_wxUSE_MENUS=yes | |
2356 | DEFAULT_wxUSE_MINIFRAME=yes | |
2357 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2358 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2359 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2360 | DEFAULT_wxUSE_FILESYSTEM=yes |
2361 | DEFAULT_wxUSE_FS_INET=yes | |
2362 | DEFAULT_wxUSE_FS_ZIP=yes | |
2363 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2364 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2365 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2366 | DEFAULT_wxUSE_VALIDATORS=yes |
2367 | ||
2368 | DEFAULT_wxUSE_ACCEL=yes | |
2369 | DEFAULT_wxUSE_BUTTON=yes | |
2370 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2371 | DEFAULT_wxUSE_CALCTRL=yes | |
2372 | DEFAULT_wxUSE_CARET=yes | |
2373 | DEFAULT_wxUSE_CHECKBOX=yes | |
2374 | DEFAULT_wxUSE_CHECKLST=yes | |
2375 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2376 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2377 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2378 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2379 | DEFAULT_wxUSE_DISPLAY=yes |
2380 | DEFAULT_wxUSE_GAUGE=yes | |
2381 | DEFAULT_wxUSE_GRID=yes | |
2382 | DEFAULT_wxUSE_IMAGLIST=yes | |
2383 | DEFAULT_wxUSE_LISTBOOK=yes | |
2384 | DEFAULT_wxUSE_LISTBOX=yes | |
2385 | DEFAULT_wxUSE_LISTCTRL=yes | |
2386 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2387 | DEFAULT_wxUSE_RADIOBOX=yes | |
2388 | DEFAULT_wxUSE_RADIOBTN=yes | |
2389 | DEFAULT_wxUSE_SASH=yes | |
2390 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2391 | DEFAULT_wxUSE_SLIDER=yes | |
2392 | DEFAULT_wxUSE_SPINBTN=yes | |
2393 | DEFAULT_wxUSE_SPINCTRL=yes | |
2394 | DEFAULT_wxUSE_SPLITTER=yes | |
2395 | DEFAULT_wxUSE_STATBMP=yes | |
2396 | DEFAULT_wxUSE_STATBOX=yes | |
2397 | DEFAULT_wxUSE_STATLINE=yes | |
2398 | DEFAULT_wxUSE_STATTEXT=yes | |
2399 | DEFAULT_wxUSE_STATUSBAR=yes | |
2400 | DEFAULT_wxUSE_TABDIALOG=no | |
2401 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2402 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2403 | DEFAULT_wxUSE_TOOLBAR=yes | |
2404 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2405 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2406 | DEFAULT_wxUSE_TREECTRL=yes | |
2407 | DEFAULT_wxUSE_POPUPWIN=yes | |
2408 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2409 | ||
78de529b | 2410 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2411 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2412 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2413 | ||
2414 | DEFAULT_wxUSE_PALETTE=yes | |
2415 | DEFAULT_wxUSE_IMAGE=yes | |
2416 | DEFAULT_wxUSE_GIF=yes | |
2417 | DEFAULT_wxUSE_PCX=yes | |
2418 | DEFAULT_wxUSE_IFF=no | |
2419 | DEFAULT_wxUSE_PNM=yes | |
2420 | DEFAULT_wxUSE_XPM=yes | |
2421 | DEFAULT_wxUSE_ICO_CUR=yes | |
2422 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2423 | ||
2424 | DEFAULT_wxUSE_MONOLITHIC=no | |
2425 | DEFAULT_wxUSE_PLUGINS=no | |
2426 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2427 | |
f34ca037 | 2428 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2429 | fi |
2430 | ||
2431 | ||
2432 | ||
f34ca037 | 2433 | |
a848cd7e SC |
2434 | for toolkit in `echo $ALL_TOOLKITS`; do |
2435 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2436 | if test "x$LINE" != "x" ; then | |
2437 | has_toolkit_in_cache=1 | |
2438 | eval "DEFAULT_$LINE" | |
2439 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2440 | |
2441 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2442 | if test "x$LINE" != "x" ; then | |
2443 | eval "DEFAULT_$LINE" | |
2444 | fi | |
a848cd7e SC |
2445 | fi |
2446 | done | |
2447 | ||
2448 | ||
2449 | ||
2450 | enablestring= | |
2451 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2452 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2453 | no_cache=0 | |
2454 | # Check whether --enable-gui or --disable-gui was given. | |
2455 | if test "${enable_gui+set}" = set; then | |
2456 | enableval="$enable_gui" | |
2457 | ||
2458 | if test "$enableval" = yes; then | |
2459 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2460 | else | |
2461 | ac_cv_use_gui='wxUSE_GUI=no' | |
2462 | fi | |
2463 | ||
2464 | else | |
2465 | ||
2466 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2467 | if test "x$LINE" != x ; then | |
2468 | eval "DEFAULT_$LINE" | |
2469 | else | |
2470 | no_cache=1 | |
2471 | fi | |
2472 | ||
2473 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2474 | ||
2475 | fi; | |
2476 | ||
2477 | eval "$ac_cv_use_gui" | |
2478 | if test "$no_cache" != 1; then | |
2479 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2480 | fi | |
2481 | ||
2482 | if test "$wxUSE_GUI" = yes; then | |
2483 | echo "$as_me:$LINENO: result: yes" >&5 | |
2484 | echo "${ECHO_T}yes" >&6 | |
2485 | else | |
2486 | echo "$as_me:$LINENO: result: no" >&5 | |
2487 | echo "${ECHO_T}no" >&6 | |
2488 | fi | |
2489 | ||
2490 | ||
2491 | enablestring= | |
2492 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2493 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2494 | no_cache=0 | |
2495 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2496 | if test "${enable_monolithic+set}" = set; then | |
2497 | enableval="$enable_monolithic" | |
2498 | ||
2499 | if test "$enableval" = yes; then | |
2500 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2501 | else | |
2502 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2503 | fi | |
2504 | ||
2505 | else | |
2506 | ||
2507 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2508 | if test "x$LINE" != x ; then | |
2509 | eval "DEFAULT_$LINE" | |
2510 | else | |
2511 | no_cache=1 | |
2512 | fi | |
2513 | ||
2514 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2515 | ||
2516 | fi; | |
2517 | ||
2518 | eval "$ac_cv_use_monolithic" | |
2519 | if test "$no_cache" != 1; then | |
2520 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2521 | fi | |
2522 | ||
2523 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2524 | echo "$as_me:$LINENO: result: yes" >&5 | |
2525 | echo "${ECHO_T}yes" >&6 | |
2526 | else | |
2527 | echo "$as_me:$LINENO: result: no" >&5 | |
2528 | echo "${ECHO_T}no" >&6 | |
2529 | fi | |
2530 | ||
2531 | ||
2532 | enablestring= | |
2533 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2534 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2535 | no_cache=0 | |
2536 | # Check whether --enable-plugins or --disable-plugins was given. | |
2537 | if test "${enable_plugins+set}" = set; then | |
2538 | enableval="$enable_plugins" | |
2539 | ||
2540 | if test "$enableval" = yes; then | |
2541 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2542 | else | |
2543 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2544 | fi | |
2545 | ||
2546 | else | |
2547 | ||
2548 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2549 | if test "x$LINE" != x ; then | |
2550 | eval "DEFAULT_$LINE" | |
2551 | else | |
2552 | no_cache=1 | |
2553 | fi | |
2554 | ||
2555 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2556 | ||
2557 | fi; | |
2558 | ||
2559 | eval "$ac_cv_use_plugins" | |
2560 | if test "$no_cache" != 1; then | |
2561 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2562 | fi | |
2563 | ||
2564 | if test "$wxUSE_PLUGINS" = yes; then | |
2565 | echo "$as_me:$LINENO: result: yes" >&5 | |
2566 | echo "${ECHO_T}yes" >&6 | |
2567 | else | |
2568 | echo "$as_me:$LINENO: result: no" >&5 | |
2569 | echo "${ECHO_T}no" >&6 | |
2570 | fi | |
2571 | ||
2572 | ||
2573 | if test "$wxUSE_GUI" = "yes"; then | |
2574 | ||
2575 | ||
2576 | enablestring= | |
2577 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2578 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2579 | no_cache=0 | |
2580 | # Check whether --enable-universal or --disable-universal was given. | |
2581 | if test "${enable_universal+set}" = set; then | |
2582 | enableval="$enable_universal" | |
2583 | ||
2584 | if test "$enableval" = yes; then | |
2585 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2586 | else | |
2587 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2588 | fi | |
2589 | ||
2590 | else | |
2591 | ||
2592 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2593 | if test "x$LINE" != x ; then | |
2594 | eval "DEFAULT_$LINE" | |
2595 | else | |
2596 | no_cache=1 | |
2597 | fi | |
2598 | ||
2599 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2600 | ||
2601 | fi; | |
2602 | ||
2603 | eval "$ac_cv_use_universal" | |
2604 | if test "$no_cache" != 1; then | |
2605 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2606 | fi | |
2607 | ||
2608 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2609 | echo "$as_me:$LINENO: result: yes" >&5 | |
2610 | echo "${ECHO_T}yes" >&6 | |
2611 | else | |
2612 | echo "$as_me:$LINENO: result: no" >&5 | |
2613 | echo "${ECHO_T}no" >&6 | |
2614 | fi | |
2615 | ||
2616 | ||
2617 | # Check whether --with-gtk or --without-gtk was given. | |
2618 | if test "${with_gtk+set}" = set; then | |
2619 | withval="$with_gtk" | |
2620 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2621 | fi; | |
2622 | ||
2623 | # Check whether --with-motif or --without-motif was given. | |
2624 | if test "${with_motif+set}" = set; then | |
2625 | withval="$with_motif" | |
2626 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2627 | fi; | |
2628 | ||
2629 | # Check whether --with-mac or --without-mac was given. | |
2630 | if test "${with_mac+set}" = set; then | |
2631 | withval="$with_mac" | |
c228d3a4 | 2632 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2633 | fi; |
2634 | ||
2635 | # Check whether --with-cocoa or --without-cocoa was given. | |
2636 | if test "${with_cocoa+set}" = set; then | |
2637 | withval="$with_cocoa" | |
c228d3a4 | 2638 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2639 | fi; |
2640 | ||
2641 | # Check whether --with-wine or --without-wine was given. | |
2642 | if test "${with_wine+set}" = set; then | |
2643 | withval="$with_wine" | |
2644 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2645 | fi; | |
2646 | ||
2647 | # Check whether --with-msw or --without-msw was given. | |
2648 | if test "${with_msw+set}" = set; then | |
2649 | withval="$with_msw" | |
2650 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2651 | fi; | |
2652 | ||
2653 | # Check whether --with-pm or --without-pm was given. | |
2654 | if test "${with_pm+set}" = set; then | |
2655 | withval="$with_pm" | |
2656 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2657 | fi; | |
2658 | ||
2659 | # Check whether --with-mgl or --without-mgl was given. | |
2660 | if test "${with_mgl+set}" = set; then | |
2661 | withval="$with_mgl" | |
2662 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2663 | fi; | |
2664 | ||
2665 | # Check whether --with-microwin or --without-microwin was given. | |
2666 | if test "${with_microwin+set}" = set; then | |
2667 | withval="$with_microwin" | |
2668 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2669 | fi; | |
2670 | ||
2671 | # Check whether --with-x11 or --without-x11 was given. | |
2672 | if test "${with_x11+set}" = set; then | |
2673 | withval="$with_x11" | |
2674 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2675 | fi; | |
2676 | ||
2677 | enablestring= | |
2678 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2679 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2680 | no_cache=0 | |
2681 | # Check whether --enable-nanox or --disable-nanox was given. | |
2682 | if test "${enable_nanox+set}" = set; then | |
2683 | enableval="$enable_nanox" | |
2684 | ||
2685 | if test "$enableval" = yes; then | |
2686 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2687 | else | |
2688 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2689 | fi | |
2690 | ||
2691 | else | |
2692 | ||
2693 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2694 | if test "x$LINE" != x ; then | |
2695 | eval "DEFAULT_$LINE" | |
2696 | else | |
2697 | no_cache=1 | |
2698 | fi | |
2699 | ||
2700 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2701 | ||
2702 | fi; | |
2703 | ||
2704 | eval "$ac_cv_use_nanox" | |
2705 | if test "$no_cache" != 1; then | |
2706 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2707 | fi | |
2708 | ||
2709 | if test "$wxUSE_NANOX" = yes; then | |
2710 | echo "$as_me:$LINENO: result: yes" >&5 | |
2711 | echo "${ECHO_T}yes" >&6 | |
2712 | else | |
2713 | echo "$as_me:$LINENO: result: no" >&5 | |
2714 | echo "${ECHO_T}no" >&6 | |
2715 | fi | |
2716 | ||
2717 | ||
f34ca037 MW |
2718 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2719 | if test "${enable_gtk2+set}" = set; then | |
2720 | enableval="$enable_gtk2" | |
2721 | wxUSE_GTK2="$enableval" | |
2722 | fi; | |
a848cd7e | 2723 | |
a848cd7e SC |
2724 | enablestring= |
2725 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2726 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2727 | no_cache=0 | |
2728 | # Check whether --enable-gpe or --disable-gpe was given. | |
2729 | if test "${enable_gpe+set}" = set; then | |
2730 | enableval="$enable_gpe" | |
2731 | ||
2732 | if test "$enableval" = yes; then | |
2733 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2734 | else | |
2735 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2736 | fi | |
2737 | ||
2738 | else | |
2739 | ||
2740 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2741 | if test "x$LINE" != x ; then | |
2742 | eval "DEFAULT_$LINE" | |
2743 | else | |
2744 | no_cache=1 | |
2745 | fi | |
2746 | ||
2747 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2748 | ||
2749 | fi; | |
2750 | ||
2751 | eval "$ac_cv_use_gpe" | |
2752 | if test "$no_cache" != 1; then | |
2753 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2754 | fi | |
2755 | ||
2756 | if test "$wxUSE_GPE" = yes; then | |
2757 | echo "$as_me:$LINENO: result: yes" >&5 | |
2758 | echo "${ECHO_T}yes" >&6 | |
2759 | else | |
2760 | echo "$as_me:$LINENO: result: no" >&5 | |
2761 | echo "${ECHO_T}no" >&6 | |
2762 | fi | |
2763 | ||
2764 | ||
2765 | ||
2766 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2767 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2768 | no_cache=0 | |
2769 | ||
2770 | # Check whether --with-libpng or --without-libpng was given. | |
2771 | if test "${with_libpng+set}" = set; then | |
2772 | withval="$with_libpng" | |
2773 | ||
2774 | if test "$withval" = yes; then | |
2775 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2776 | elif test "$withval" = no; then | |
2777 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2778 | elif test "$withval" = sys; then | |
2779 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2780 | elif test "$withval" = builtin; then | |
2781 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2782 | else | |
2783 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2784 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2785 | { (exit 1); exit 1; }; } | |
2786 | fi | |
2787 | ||
2788 | else | |
2789 | ||
2790 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2791 | if test "x$LINE" != x ; then | |
2792 | eval "DEFAULT_$LINE" | |
2793 | else | |
2794 | no_cache=1 | |
2795 | fi | |
2796 | ||
2797 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2798 | ||
2799 | fi; | |
2800 | ||
2801 | eval "$ac_cv_use_libpng" | |
2802 | if test "$no_cache" != 1; then | |
2803 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2804 | fi | |
2805 | ||
2806 | if test "$wxUSE_LIBPNG" = yes; then | |
2807 | echo "$as_me:$LINENO: result: yes" >&5 | |
2808 | echo "${ECHO_T}yes" >&6 | |
2809 | elif test "$wxUSE_LIBPNG" = no; then | |
2810 | echo "$as_me:$LINENO: result: no" >&5 | |
2811 | echo "${ECHO_T}no" >&6 | |
2812 | elif test "$wxUSE_LIBPNG" = sys; then | |
2813 | echo "$as_me:$LINENO: result: system version" >&5 | |
2814 | echo "${ECHO_T}system version" >&6 | |
2815 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2816 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2817 | echo "${ECHO_T}builtin version" >&6 | |
2818 | else | |
2819 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2820 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2821 | { (exit 1); exit 1; }; } | |
2822 | fi | |
2823 | ||
2824 | ||
2825 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2826 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2827 | no_cache=0 | |
2828 | ||
2829 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2830 | if test "${with_libjpeg+set}" = set; then | |
2831 | withval="$with_libjpeg" | |
2832 | ||
2833 | if test "$withval" = yes; then | |
2834 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2835 | elif test "$withval" = no; then | |
2836 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2837 | elif test "$withval" = sys; then | |
2838 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2839 | elif test "$withval" = builtin; then | |
2840 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2841 | else | |
2842 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2843 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2844 | { (exit 1); exit 1; }; } | |
2845 | fi | |
2846 | ||
2847 | else | |
2848 | ||
2849 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2850 | if test "x$LINE" != x ; then | |
2851 | eval "DEFAULT_$LINE" | |
2852 | else | |
2853 | no_cache=1 | |
2854 | fi | |
2855 | ||
2856 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2857 | ||
2858 | fi; | |
2859 | ||
2860 | eval "$ac_cv_use_libjpeg" | |
2861 | if test "$no_cache" != 1; then | |
2862 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2863 | fi | |
2864 | ||
2865 | if test "$wxUSE_LIBJPEG" = yes; then | |
2866 | echo "$as_me:$LINENO: result: yes" >&5 | |
2867 | echo "${ECHO_T}yes" >&6 | |
2868 | elif test "$wxUSE_LIBJPEG" = no; then | |
2869 | echo "$as_me:$LINENO: result: no" >&5 | |
2870 | echo "${ECHO_T}no" >&6 | |
2871 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2872 | echo "$as_me:$LINENO: result: system version" >&5 | |
2873 | echo "${ECHO_T}system version" >&6 | |
2874 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2875 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2876 | echo "${ECHO_T}builtin version" >&6 | |
2877 | else | |
2878 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2879 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2880 | { (exit 1); exit 1; }; } | |
2881 | fi | |
2882 | ||
2883 | ||
2884 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2885 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2886 | no_cache=0 | |
2887 | ||
2888 | # Check whether --with-libtiff or --without-libtiff was given. | |
2889 | if test "${with_libtiff+set}" = set; then | |
2890 | withval="$with_libtiff" | |
2891 | ||
2892 | if test "$withval" = yes; then | |
2893 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2894 | elif test "$withval" = no; then | |
2895 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2896 | elif test "$withval" = sys; then | |
2897 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2898 | elif test "$withval" = builtin; then | |
2899 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2900 | else | |
2901 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2902 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2903 | { (exit 1); exit 1; }; } | |
2904 | fi | |
2905 | ||
2906 | else | |
2907 | ||
2908 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2909 | if test "x$LINE" != x ; then | |
2910 | eval "DEFAULT_$LINE" | |
2911 | else | |
2912 | no_cache=1 | |
2913 | fi | |
2914 | ||
2915 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2916 | ||
2917 | fi; | |
2918 | ||
2919 | eval "$ac_cv_use_libtiff" | |
2920 | if test "$no_cache" != 1; then | |
2921 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2922 | fi | |
2923 | ||
2924 | if test "$wxUSE_LIBTIFF" = yes; then | |
2925 | echo "$as_me:$LINENO: result: yes" >&5 | |
2926 | echo "${ECHO_T}yes" >&6 | |
2927 | elif test "$wxUSE_LIBTIFF" = no; then | |
2928 | echo "$as_me:$LINENO: result: no" >&5 | |
2929 | echo "${ECHO_T}no" >&6 | |
2930 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2931 | echo "$as_me:$LINENO: result: system version" >&5 | |
2932 | echo "${ECHO_T}system version" >&6 | |
2933 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2934 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2935 | echo "${ECHO_T}builtin version" >&6 | |
2936 | else | |
2937 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2938 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2939 | { (exit 1); exit 1; }; } | |
2940 | fi | |
2941 | ||
2942 | ||
2943 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2944 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2945 | no_cache=0 | |
2946 | ||
2947 | # Check whether --with-libxpm or --without-libxpm was given. | |
2948 | if test "${with_libxpm+set}" = set; then | |
2949 | withval="$with_libxpm" | |
2950 | ||
2951 | if test "$withval" = yes; then | |
2952 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2953 | elif test "$withval" = no; then | |
2954 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2955 | elif test "$withval" = sys; then | |
2956 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2957 | elif test "$withval" = builtin; then | |
2958 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2959 | else | |
2960 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2961 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2962 | { (exit 1); exit 1; }; } | |
2963 | fi | |
2964 | ||
2965 | else | |
2966 | ||
2967 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2968 | if test "x$LINE" != x ; then | |
2969 | eval "DEFAULT_$LINE" | |
2970 | else | |
2971 | no_cache=1 | |
2972 | fi | |
2973 | ||
2974 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2975 | ||
2976 | fi; | |
2977 | ||
2978 | eval "$ac_cv_use_libxpm" | |
2979 | if test "$no_cache" != 1; then | |
2980 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2981 | fi | |
2982 | ||
2983 | if test "$wxUSE_LIBXPM" = yes; then | |
2984 | echo "$as_me:$LINENO: result: yes" >&5 | |
2985 | echo "${ECHO_T}yes" >&6 | |
2986 | elif test "$wxUSE_LIBXPM" = no; then | |
2987 | echo "$as_me:$LINENO: result: no" >&5 | |
2988 | echo "${ECHO_T}no" >&6 | |
2989 | elif test "$wxUSE_LIBXPM" = sys; then | |
2990 | echo "$as_me:$LINENO: result: system version" >&5 | |
2991 | echo "${ECHO_T}system version" >&6 | |
2992 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2993 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2994 | echo "${ECHO_T}builtin version" >&6 | |
2995 | else | |
2996 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2997 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2998 | { (exit 1); exit 1; }; } | |
2999 | fi | |
3000 | ||
3001 | ||
3002 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
3003 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
3004 | no_cache=0 | |
3005 | ||
3006 | # Check whether --with-libmspack or --without-libmspack was given. | |
3007 | if test "${with_libmspack+set}" = set; then | |
3008 | withval="$with_libmspack" | |
3009 | ||
3010 | if test "$withval" = yes; then | |
3011 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3012 | else | |
3013 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3014 | fi | |
3015 | ||
3016 | else | |
3017 | ||
3018 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3019 | if test "x$LINE" != x ; then | |
3020 | eval "DEFAULT_$LINE" | |
3021 | else | |
3022 | no_cache=1 | |
3023 | fi | |
3024 | ||
3025 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3026 | ||
3027 | fi; | |
3028 | ||
3029 | eval "$ac_cv_use_libmspack" | |
3030 | if test "$no_cache" != 1; then | |
3031 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3032 | fi | |
3033 | ||
3034 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3035 | echo "$as_me:$LINENO: result: yes" >&5 | |
3036 | echo "${ECHO_T}yes" >&6 | |
3037 | else | |
3038 | echo "$as_me:$LINENO: result: no" >&5 | |
3039 | echo "${ECHO_T}no" >&6 | |
3040 | fi | |
3041 | ||
3042 | ||
3043 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3044 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3045 | no_cache=0 | |
3046 | ||
3047 | # Check whether --with-sdl or --without-sdl was given. | |
3048 | if test "${with_sdl+set}" = set; then | |
3049 | withval="$with_sdl" | |
3050 | ||
3051 | if test "$withval" = yes; then | |
3052 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3053 | else | |
3054 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3055 | fi | |
3056 | ||
3057 | else | |
3058 | ||
3059 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3060 | if test "x$LINE" != x ; then | |
3061 | eval "DEFAULT_$LINE" | |
3062 | else | |
3063 | no_cache=1 | |
3064 | fi | |
3065 | ||
3066 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3067 | ||
3068 | fi; | |
3069 | ||
3070 | eval "$ac_cv_use_sdl" | |
3071 | if test "$no_cache" != 1; then | |
3072 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3073 | fi | |
3074 | ||
3075 | if test "$wxUSE_LIBSDL" = yes; then | |
3076 | echo "$as_me:$LINENO: result: yes" >&5 | |
3077 | echo "${ECHO_T}yes" >&6 | |
3078 | else | |
3079 | echo "$as_me:$LINENO: result: no" >&5 | |
3080 | echo "${ECHO_T}no" >&6 | |
3081 | fi | |
3082 | ||
3083 | ||
d1c38808 VZ |
3084 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3085 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3086 | no_cache=0 | |
3087 | ||
3088 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3089 | if test "${with_gnomeprint+set}" = set; then | |
3090 | withval="$with_gnomeprint" | |
3091 | ||
3092 | if test "$withval" = yes; then | |
3093 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3094 | else | |
3095 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3096 | fi | |
3097 | ||
3098 | else | |
3099 | ||
3100 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3101 | if test "x$LINE" != x ; then | |
3102 | eval "DEFAULT_$LINE" | |
3103 | else | |
3104 | no_cache=1 | |
3105 | fi | |
3106 | ||
3107 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3108 | ||
3109 | fi; | |
3110 | ||
3111 | eval "$ac_cv_use_gnomeprint" | |
3112 | if test "$no_cache" != 1; then | |
3113 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3114 | fi | |
3115 | ||
3116 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3117 | echo "$as_me:$LINENO: result: yes" >&5 | |
3118 | echo "${ECHO_T}yes" >&6 | |
3119 | else | |
3120 | echo "$as_me:$LINENO: result: no" >&5 | |
3121 | echo "${ECHO_T}no" >&6 | |
3122 | fi | |
3123 | ||
3124 | ||
a848cd7e SC |
3125 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3126 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3127 | no_cache=0 | |
3128 | ||
3129 | # Check whether --with-opengl or --without-opengl was given. | |
3130 | if test "${with_opengl+set}" = set; then | |
3131 | withval="$with_opengl" | |
3132 | ||
3133 | if test "$withval" = yes; then | |
3134 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3135 | else | |
3136 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3137 | fi | |
3138 | ||
3139 | else | |
3140 | ||
3141 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3142 | if test "x$LINE" != x ; then | |
3143 | eval "DEFAULT_$LINE" | |
3144 | else | |
3145 | no_cache=1 | |
3146 | fi | |
3147 | ||
3148 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3149 | ||
3150 | fi; | |
3151 | ||
3152 | eval "$ac_cv_use_opengl" | |
3153 | if test "$no_cache" != 1; then | |
3154 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3155 | fi | |
3156 | ||
3157 | if test "$wxUSE_OPENGL" = yes; then | |
3158 | echo "$as_me:$LINENO: result: yes" >&5 | |
3159 | echo "${ECHO_T}yes" >&6 | |
3160 | else | |
3161 | echo "$as_me:$LINENO: result: no" >&5 | |
3162 | echo "${ECHO_T}no" >&6 | |
3163 | fi | |
3164 | ||
3165 | ||
3166 | fi | |
3167 | ||
3168 | ||
3169 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3170 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3171 | no_cache=0 | |
3172 | ||
3173 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3174 | if test "${with_dmalloc+set}" = set; then | |
3175 | withval="$with_dmalloc" | |
3176 | ||
3177 | if test "$withval" = yes; then | |
3178 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3179 | else | |
3180 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3181 | fi | |
3182 | ||
3183 | else | |
3184 | ||
3185 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3186 | if test "x$LINE" != x ; then | |
3187 | eval "DEFAULT_$LINE" | |
3188 | else | |
3189 | no_cache=1 | |
3190 | fi | |
3191 | ||
3192 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3193 | ||
3194 | fi; | |
3195 | ||
3196 | eval "$ac_cv_use_dmalloc" | |
3197 | if test "$no_cache" != 1; then | |
3198 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3199 | fi | |
3200 | ||
3201 | if test "$wxUSE_DMALLOC" = yes; then | |
3202 | echo "$as_me:$LINENO: result: yes" >&5 | |
3203 | echo "${ECHO_T}yes" >&6 | |
3204 | else | |
3205 | echo "$as_me:$LINENO: result: no" >&5 | |
3206 | echo "${ECHO_T}no" >&6 | |
3207 | fi | |
3208 | ||
3209 | ||
3210 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3211 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3212 | no_cache=0 | |
3213 | ||
3214 | # Check whether --with-regex or --without-regex was given. | |
3215 | if test "${with_regex+set}" = set; then | |
3216 | withval="$with_regex" | |
3217 | ||
3218 | if test "$withval" = yes; then | |
3219 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3220 | elif test "$withval" = no; then | |
3221 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3222 | elif test "$withval" = sys; then | |
3223 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3224 | elif test "$withval" = builtin; then | |
3225 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3226 | else | |
3227 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3228 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3229 | { (exit 1); exit 1; }; } | |
3230 | fi | |
3231 | ||
3232 | else | |
3233 | ||
3234 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3235 | if test "x$LINE" != x ; then | |
3236 | eval "DEFAULT_$LINE" | |
3237 | else | |
3238 | no_cache=1 | |
3239 | fi | |
3240 | ||
3241 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3242 | ||
3243 | fi; | |
3244 | ||
3245 | eval "$ac_cv_use_regex" | |
3246 | if test "$no_cache" != 1; then | |
3247 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3248 | fi | |
3249 | ||
3250 | if test "$wxUSE_REGEX" = yes; then | |
3251 | echo "$as_me:$LINENO: result: yes" >&5 | |
3252 | echo "${ECHO_T}yes" >&6 | |
3253 | elif test "$wxUSE_REGEX" = no; then | |
3254 | echo "$as_me:$LINENO: result: no" >&5 | |
3255 | echo "${ECHO_T}no" >&6 | |
3256 | elif test "$wxUSE_REGEX" = sys; then | |
3257 | echo "$as_me:$LINENO: result: system version" >&5 | |
3258 | echo "${ECHO_T}system version" >&6 | |
3259 | elif test "$wxUSE_REGEX" = builtin; then | |
3260 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3261 | echo "${ECHO_T}builtin version" >&6 | |
3262 | else | |
3263 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3264 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3265 | { (exit 1); exit 1; }; } | |
3266 | fi | |
3267 | ||
3268 | ||
3269 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3270 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3271 | no_cache=0 | |
3272 | ||
3273 | # Check whether --with-zlib or --without-zlib was given. | |
3274 | if test "${with_zlib+set}" = set; then | |
3275 | withval="$with_zlib" | |
3276 | ||
3277 | if test "$withval" = yes; then | |
3278 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3279 | elif test "$withval" = no; then | |
3280 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3281 | elif test "$withval" = sys; then | |
3282 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3283 | elif test "$withval" = builtin; then | |
3284 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3285 | else | |
3286 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3287 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3288 | { (exit 1); exit 1; }; } | |
3289 | fi | |
3290 | ||
3291 | else | |
3292 | ||
3293 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3294 | if test "x$LINE" != x ; then | |
3295 | eval "DEFAULT_$LINE" | |
3296 | else | |
3297 | no_cache=1 | |
3298 | fi | |
3299 | ||
3300 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3301 | ||
3302 | fi; | |
3303 | ||
3304 | eval "$ac_cv_use_zlib" | |
3305 | if test "$no_cache" != 1; then | |
3306 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3307 | fi | |
3308 | ||
3309 | if test "$wxUSE_ZLIB" = yes; then | |
3310 | echo "$as_me:$LINENO: result: yes" >&5 | |
3311 | echo "${ECHO_T}yes" >&6 | |
3312 | elif test "$wxUSE_ZLIB" = no; then | |
3313 | echo "$as_me:$LINENO: result: no" >&5 | |
3314 | echo "${ECHO_T}no" >&6 | |
3315 | elif test "$wxUSE_ZLIB" = sys; then | |
3316 | echo "$as_me:$LINENO: result: system version" >&5 | |
3317 | echo "${ECHO_T}system version" >&6 | |
3318 | elif test "$wxUSE_ZLIB" = builtin; then | |
3319 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3320 | echo "${ECHO_T}builtin version" >&6 | |
3321 | else | |
3322 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3323 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3324 | { (exit 1); exit 1; }; } | |
3325 | fi | |
3326 | ||
3327 | ||
3328 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3329 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3330 | no_cache=0 | |
3331 | ||
3332 | # Check whether --with-odbc or --without-odbc was given. | |
3333 | if test "${with_odbc+set}" = set; then | |
3334 | withval="$with_odbc" | |
3335 | ||
3336 | if test "$withval" = yes; then | |
3337 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3338 | elif test "$withval" = no; then | |
3339 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3340 | elif test "$withval" = sys; then | |
3341 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3342 | elif test "$withval" = builtin; then | |
3343 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3344 | else | |
3345 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3346 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3347 | { (exit 1); exit 1; }; } | |
3348 | fi | |
3349 | ||
3350 | else | |
3351 | ||
3352 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3353 | if test "x$LINE" != x ; then | |
3354 | eval "DEFAULT_$LINE" | |
3355 | else | |
3356 | no_cache=1 | |
3357 | fi | |
3358 | ||
3359 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3360 | ||
3361 | fi; | |
3362 | ||
3363 | eval "$ac_cv_use_odbc" | |
3364 | if test "$no_cache" != 1; then | |
3365 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3366 | fi | |
3367 | ||
3368 | if test "$wxUSE_ODBC" = yes; then | |
3369 | echo "$as_me:$LINENO: result: yes" >&5 | |
3370 | echo "${ECHO_T}yes" >&6 | |
3371 | elif test "$wxUSE_ODBC" = no; then | |
3372 | echo "$as_me:$LINENO: result: no" >&5 | |
3373 | echo "${ECHO_T}no" >&6 | |
3374 | elif test "$wxUSE_ODBC" = sys; then | |
3375 | echo "$as_me:$LINENO: result: system version" >&5 | |
3376 | echo "${ECHO_T}system version" >&6 | |
3377 | elif test "$wxUSE_ODBC" = builtin; then | |
3378 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3379 | echo "${ECHO_T}builtin version" >&6 | |
3380 | else | |
3381 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3382 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3383 | { (exit 1); exit 1; }; } | |
3384 | fi | |
3385 | ||
3386 | ||
3387 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3388 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3389 | no_cache=0 | |
3390 | ||
3391 | # Check whether --with-expat or --without-expat was given. | |
3392 | if test "${with_expat+set}" = set; then | |
3393 | withval="$with_expat" | |
3394 | ||
3395 | if test "$withval" = yes; then | |
3396 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3397 | elif test "$withval" = no; then | |
3398 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3399 | elif test "$withval" = sys; then | |
3400 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3401 | elif test "$withval" = builtin; then | |
3402 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3403 | else | |
3404 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3405 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3406 | { (exit 1); exit 1; }; } | |
3407 | fi | |
3408 | ||
3409 | else | |
3410 | ||
3411 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3412 | if test "x$LINE" != x ; then | |
3413 | eval "DEFAULT_$LINE" | |
3414 | else | |
3415 | no_cache=1 | |
3416 | fi | |
3417 | ||
3418 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3419 | ||
3420 | fi; | |
3421 | ||
3422 | eval "$ac_cv_use_expat" | |
3423 | if test "$no_cache" != 1; then | |
3424 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3425 | fi | |
3426 | ||
3427 | if test "$wxUSE_EXPAT" = yes; then | |
3428 | echo "$as_me:$LINENO: result: yes" >&5 | |
3429 | echo "${ECHO_T}yes" >&6 | |
3430 | elif test "$wxUSE_EXPAT" = no; then | |
3431 | echo "$as_me:$LINENO: result: no" >&5 | |
3432 | echo "${ECHO_T}no" >&6 | |
3433 | elif test "$wxUSE_EXPAT" = sys; then | |
3434 | echo "$as_me:$LINENO: result: system version" >&5 | |
3435 | echo "${ECHO_T}system version" >&6 | |
3436 | elif test "$wxUSE_EXPAT" = builtin; then | |
3437 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3438 | echo "${ECHO_T}builtin version" >&6 | |
3439 | else | |
3440 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3441 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3442 | { (exit 1); exit 1; }; } | |
3443 | fi | |
3444 | ||
3445 | ||
3446 | ||
3447 | ||
3448 | enablestring= | |
3449 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3450 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3451 | no_cache=0 | |
3452 | # Check whether --enable-shared or --disable-shared was given. | |
3453 | if test "${enable_shared+set}" = set; then | |
3454 | enableval="$enable_shared" | |
3455 | ||
3456 | if test "$enableval" = yes; then | |
3457 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3458 | else | |
3459 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3460 | fi | |
3461 | ||
3462 | else | |
3463 | ||
3464 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3465 | if test "x$LINE" != x ; then | |
3466 | eval "DEFAULT_$LINE" | |
3467 | else | |
3468 | no_cache=1 | |
3469 | fi | |
3470 | ||
3471 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3472 | ||
3473 | fi; | |
3474 | ||
3475 | eval "$ac_cv_use_shared" | |
3476 | if test "$no_cache" != 1; then | |
3477 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3478 | fi | |
3479 | ||
3480 | if test "$wxUSE_SHARED" = yes; then | |
3481 | echo "$as_me:$LINENO: result: yes" >&5 | |
3482 | echo "${ECHO_T}yes" >&6 | |
3483 | else | |
3484 | echo "$as_me:$LINENO: result: no" >&5 | |
3485 | echo "${ECHO_T}no" >&6 | |
3486 | fi | |
3487 | ||
3488 | ||
3489 | enablestring= | |
3490 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3491 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3492 | no_cache=0 | |
3493 | # Check whether --enable-optimise or --disable-optimise was given. | |
3494 | if test "${enable_optimise+set}" = set; then | |
3495 | enableval="$enable_optimise" | |
3496 | ||
3497 | if test "$enableval" = yes; then | |
3498 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3499 | else | |
3500 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3501 | fi | |
3502 | ||
3503 | else | |
3504 | ||
3505 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3506 | if test "x$LINE" != x ; then | |
3507 | eval "DEFAULT_$LINE" | |
3508 | else | |
3509 | no_cache=1 | |
3510 | fi | |
3511 | ||
3512 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3513 | ||
3514 | fi; | |
3515 | ||
3516 | eval "$ac_cv_use_optimise" | |
3517 | if test "$no_cache" != 1; then | |
3518 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3519 | fi | |
3520 | ||
3521 | if test "$wxUSE_OPTIMISE" = yes; then | |
3522 | echo "$as_me:$LINENO: result: yes" >&5 | |
3523 | echo "${ECHO_T}yes" >&6 | |
3524 | else | |
3525 | echo "$as_me:$LINENO: result: no" >&5 | |
3526 | echo "${ECHO_T}no" >&6 | |
3527 | fi | |
3528 | ||
3529 | ||
3530 | enablestring= | |
3531 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3532 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3533 | no_cache=0 | |
3534 | # Check whether --enable-debug or --disable-debug was given. | |
3535 | if test "${enable_debug+set}" = set; then | |
3536 | enableval="$enable_debug" | |
3537 | ||
3538 | if test "$enableval" = yes; then | |
3539 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3540 | else | |
3541 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3542 | fi | |
3543 | ||
3544 | else | |
3545 | ||
3546 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3547 | if test "x$LINE" != x ; then | |
3548 | eval "DEFAULT_$LINE" | |
3549 | else | |
3550 | no_cache=1 | |
3551 | fi | |
3552 | ||
3553 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3554 | ||
3555 | fi; | |
3556 | ||
3557 | eval "$ac_cv_use_debug" | |
3558 | if test "$no_cache" != 1; then | |
3559 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3560 | fi | |
3561 | ||
3562 | if test "$wxUSE_DEBUG" = yes; then | |
3563 | echo "$as_me:$LINENO: result: yes" >&5 | |
3564 | echo "${ECHO_T}yes" >&6 | |
3565 | else | |
3566 | echo "$as_me:$LINENO: result: no" >&5 | |
3567 | echo "${ECHO_T}no" >&6 | |
3568 | fi | |
3569 | ||
3570 | ||
3571 | enablestring= | |
3572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3573 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3574 | no_cache=0 | |
3575 | # Check whether --enable-stl or --disable-stl was given. | |
3576 | if test "${enable_stl+set}" = set; then | |
3577 | enableval="$enable_stl" | |
3578 | ||
3579 | if test "$enableval" = yes; then | |
3580 | ac_cv_use_stl='wxUSE_STL=yes' | |
3581 | else | |
3582 | ac_cv_use_stl='wxUSE_STL=no' | |
3583 | fi | |
3584 | ||
3585 | else | |
3586 | ||
3587 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3588 | if test "x$LINE" != x ; then | |
3589 | eval "DEFAULT_$LINE" | |
3590 | else | |
3591 | no_cache=1 | |
3592 | fi | |
3593 | ||
3594 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3595 | ||
3596 | fi; | |
3597 | ||
3598 | eval "$ac_cv_use_stl" | |
3599 | if test "$no_cache" != 1; then | |
3600 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3601 | fi | |
3602 | ||
3603 | if test "$wxUSE_STL" = yes; then | |
3604 | echo "$as_me:$LINENO: result: yes" >&5 | |
3605 | echo "${ECHO_T}yes" >&6 | |
3606 | else | |
3607 | echo "$as_me:$LINENO: result: no" >&5 | |
3608 | echo "${ECHO_T}no" >&6 | |
3609 | fi | |
3610 | ||
3611 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3612 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3613 | |
3614 | enablestring= | |
3615 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3616 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3617 | no_cache=0 | |
3618 | # Check whether --enable-omf or --disable-omf was given. | |
3619 | if test "${enable_omf+set}" = set; then | |
3620 | enableval="$enable_omf" | |
3621 | ||
3622 | if test "$enableval" = yes; then | |
3623 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3624 | else | |
3625 | ac_cv_use_omf='wxUSE_OMF=no' | |
3626 | fi | |
3627 | ||
3628 | else | |
3629 | ||
3630 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3631 | if test "x$LINE" != x ; then | |
3632 | eval "DEFAULT_$LINE" | |
3633 | else | |
3634 | no_cache=1 | |
3635 | fi | |
3636 | ||
3637 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3638 | ||
3639 | fi; | |
3640 | ||
3641 | eval "$ac_cv_use_omf" | |
3642 | if test "$no_cache" != 1; then | |
3643 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3644 | fi | |
3645 | ||
3646 | if test "$wxUSE_OMF" = yes; then | |
3647 | echo "$as_me:$LINENO: result: yes" >&5 | |
3648 | echo "${ECHO_T}yes" >&6 | |
3649 | else | |
3650 | echo "$as_me:$LINENO: result: no" >&5 | |
3651 | echo "${ECHO_T}no" >&6 | |
3652 | fi | |
3653 | ||
3654 | fi | |
3655 | ||
3656 | if test "$wxUSE_DEBUG" = "yes"; then | |
3657 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3658 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3659 | BUILD=debug | |
3660 | elif test "$wxUSE_DEBUG" = "no"; then | |
3661 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3662 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3663 | BUILD=release | |
3664 | fi | |
3665 | ||
3666 | ||
3667 | enablestring= | |
3668 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3669 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3670 | no_cache=0 | |
3671 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3672 | if test "${enable_debug_flag+set}" = set; then | |
3673 | enableval="$enable_debug_flag" | |
3674 | ||
3675 | if test "$enableval" = yes; then | |
3676 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3677 | else | |
3678 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3679 | fi | |
3680 | ||
3681 | else | |
3682 | ||
3683 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3684 | if test "x$LINE" != x ; then | |
3685 | eval "DEFAULT_$LINE" | |
3686 | else | |
3687 | no_cache=1 | |
3688 | fi | |
3689 | ||
3690 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3691 | ||
3692 | fi; | |
3693 | ||
3694 | eval "$ac_cv_use_debug_flag" | |
3695 | if test "$no_cache" != 1; then | |
3696 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3697 | fi | |
3698 | ||
3699 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3700 | echo "$as_me:$LINENO: result: yes" >&5 | |
3701 | echo "${ECHO_T}yes" >&6 | |
3702 | else | |
3703 | echo "$as_me:$LINENO: result: no" >&5 | |
3704 | echo "${ECHO_T}no" >&6 | |
3705 | fi | |
3706 | ||
3707 | ||
3708 | enablestring= | |
3709 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3710 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3711 | no_cache=0 | |
3712 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3713 | if test "${enable_debug_info+set}" = set; then | |
3714 | enableval="$enable_debug_info" | |
3715 | ||
3716 | if test "$enableval" = yes; then | |
3717 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3718 | else | |
3719 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3720 | fi | |
3721 | ||
3722 | else | |
3723 | ||
3724 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3725 | if test "x$LINE" != x ; then | |
3726 | eval "DEFAULT_$LINE" | |
3727 | else | |
3728 | no_cache=1 | |
3729 | fi | |
3730 | ||
3731 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3732 | ||
3733 | fi; | |
3734 | ||
3735 | eval "$ac_cv_use_debug_info" | |
3736 | if test "$no_cache" != 1; then | |
3737 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3738 | fi | |
3739 | ||
3740 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3741 | echo "$as_me:$LINENO: result: yes" >&5 | |
3742 | echo "${ECHO_T}yes" >&6 | |
3743 | else | |
3744 | echo "$as_me:$LINENO: result: no" >&5 | |
3745 | echo "${ECHO_T}no" >&6 | |
3746 | fi | |
3747 | ||
3748 | ||
3749 | enablestring= | |
3750 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3751 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3752 | no_cache=0 | |
3753 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3754 | if test "${enable_debug_gdb+set}" = set; then | |
3755 | enableval="$enable_debug_gdb" | |
3756 | ||
3757 | if test "$enableval" = yes; then | |
3758 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3759 | else | |
3760 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3761 | fi | |
3762 | ||
3763 | else | |
3764 | ||
3765 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3766 | if test "x$LINE" != x ; then | |
3767 | eval "DEFAULT_$LINE" | |
3768 | else | |
3769 | no_cache=1 | |
3770 | fi | |
3771 | ||
3772 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3773 | ||
3774 | fi; | |
3775 | ||
3776 | eval "$ac_cv_use_debug_gdb" | |
3777 | if test "$no_cache" != 1; then | |
3778 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3779 | fi | |
3780 | ||
3781 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3782 | echo "$as_me:$LINENO: result: yes" >&5 | |
3783 | echo "${ECHO_T}yes" >&6 | |
3784 | else | |
3785 | echo "$as_me:$LINENO: result: no" >&5 | |
3786 | echo "${ECHO_T}no" >&6 | |
3787 | fi | |
3788 | ||
3789 | ||
3790 | enablestring= | |
3791 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3792 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3793 | no_cache=0 | |
3794 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3795 | if test "${enable_debug_cntxt+set}" = set; then | |
3796 | enableval="$enable_debug_cntxt" | |
3797 | ||
3798 | if test "$enableval" = yes; then | |
3799 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3800 | else | |
3801 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3802 | fi | |
3803 | ||
3804 | else | |
3805 | ||
3806 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3807 | if test "x$LINE" != x ; then | |
3808 | eval "DEFAULT_$LINE" | |
3809 | else | |
3810 | no_cache=1 | |
3811 | fi | |
3812 | ||
3813 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3814 | ||
3815 | fi; | |
3816 | ||
3817 | eval "$ac_cv_use_debug_cntxt" | |
3818 | if test "$no_cache" != 1; then | |
3819 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3820 | fi | |
3821 | ||
3822 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3823 | echo "$as_me:$LINENO: result: yes" >&5 | |
3824 | echo "${ECHO_T}yes" >&6 | |
3825 | else | |
3826 | echo "$as_me:$LINENO: result: no" >&5 | |
3827 | echo "${ECHO_T}no" >&6 | |
3828 | fi | |
3829 | ||
3830 | ||
3831 | enablestring= | |
3832 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3833 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3834 | no_cache=0 | |
3835 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3836 | if test "${enable_mem_tracing+set}" = set; then | |
3837 | enableval="$enable_mem_tracing" | |
3838 | ||
3839 | if test "$enableval" = yes; then | |
3840 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3841 | else | |
3842 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3843 | fi | |
3844 | ||
3845 | else | |
3846 | ||
3847 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3848 | if test "x$LINE" != x ; then | |
3849 | eval "DEFAULT_$LINE" | |
3850 | else | |
3851 | no_cache=1 | |
3852 | fi | |
3853 | ||
3854 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3855 | ||
3856 | fi; | |
3857 | ||
3858 | eval "$ac_cv_use_mem_tracing" | |
3859 | if test "$no_cache" != 1; then | |
3860 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3861 | fi | |
3862 | ||
3863 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3864 | echo "$as_me:$LINENO: result: yes" >&5 | |
3865 | echo "${ECHO_T}yes" >&6 | |
3866 | else | |
3867 | echo "$as_me:$LINENO: result: no" >&5 | |
3868 | echo "${ECHO_T}no" >&6 | |
3869 | fi | |
3870 | ||
3871 | ||
3872 | enablestring= | |
3873 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3874 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3875 | no_cache=0 | |
3876 | # Check whether --enable-profile or --disable-profile was given. | |
3877 | if test "${enable_profile+set}" = set; then | |
3878 | enableval="$enable_profile" | |
3879 | ||
3880 | if test "$enableval" = yes; then | |
3881 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3882 | else | |
3883 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3884 | fi | |
3885 | ||
3886 | else | |
3887 | ||
3888 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3889 | if test "x$LINE" != x ; then | |
3890 | eval "DEFAULT_$LINE" | |
3891 | else | |
3892 | no_cache=1 | |
3893 | fi | |
3894 | ||
3895 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3896 | ||
3897 | fi; | |
3898 | ||
3899 | eval "$ac_cv_use_profile" | |
3900 | if test "$no_cache" != 1; then | |
3901 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3902 | fi | |
3903 | ||
3904 | if test "$wxUSE_PROFILE" = yes; then | |
3905 | echo "$as_me:$LINENO: result: yes" >&5 | |
3906 | echo "${ECHO_T}yes" >&6 | |
3907 | else | |
3908 | echo "$as_me:$LINENO: result: no" >&5 | |
3909 | echo "${ECHO_T}no" >&6 | |
3910 | fi | |
3911 | ||
3912 | ||
3913 | enablestring= | |
3914 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3915 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3916 | no_cache=0 | |
3917 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3918 | if test "${enable_no_rtti+set}" = set; then | |
3919 | enableval="$enable_no_rtti" | |
3920 | ||
3921 | if test "$enableval" = yes; then | |
3922 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3923 | else | |
3924 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3925 | fi | |
3926 | ||
3927 | else | |
3928 | ||
3929 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3930 | if test "x$LINE" != x ; then | |
3931 | eval "DEFAULT_$LINE" | |
3932 | else | |
3933 | no_cache=1 | |
3934 | fi | |
3935 | ||
3936 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3937 | ||
3938 | fi; | |
3939 | ||
3940 | eval "$ac_cv_use_no_rtti" | |
3941 | if test "$no_cache" != 1; then | |
3942 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3943 | fi | |
3944 | ||
3945 | if test "$wxUSE_NO_RTTI" = yes; then | |
3946 | echo "$as_me:$LINENO: result: yes" >&5 | |
3947 | echo "${ECHO_T}yes" >&6 | |
3948 | else | |
3949 | echo "$as_me:$LINENO: result: no" >&5 | |
3950 | echo "${ECHO_T}no" >&6 | |
3951 | fi | |
3952 | ||
3953 | ||
3954 | enablestring= | |
3955 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3956 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3957 | no_cache=0 | |
3958 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3959 | if test "${enable_no_exceptions+set}" = set; then | |
3960 | enableval="$enable_no_exceptions" | |
3961 | ||
3962 | if test "$enableval" = yes; then | |
3963 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3964 | else | |
3965 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3966 | fi | |
3967 | ||
3968 | else | |
3969 | ||
3970 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3971 | if test "x$LINE" != x ; then | |
3972 | eval "DEFAULT_$LINE" | |
3973 | else | |
3974 | no_cache=1 | |
3975 | fi | |
3976 | ||
3977 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3978 | ||
3979 | fi; | |
3980 | ||
3981 | eval "$ac_cv_use_no_exceptions" | |
3982 | if test "$no_cache" != 1; then | |
3983 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3984 | fi | |
3985 | ||
3986 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3987 | echo "$as_me:$LINENO: result: yes" >&5 | |
3988 | echo "${ECHO_T}yes" >&6 | |
3989 | else | |
3990 | echo "$as_me:$LINENO: result: no" >&5 | |
3991 | echo "${ECHO_T}no" >&6 | |
3992 | fi | |
3993 | ||
3994 | ||
3995 | enablestring= | |
3996 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3997 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3998 | no_cache=0 | |
3999 | # Check whether --enable-permissive or --disable-permissive was given. | |
4000 | if test "${enable_permissive+set}" = set; then | |
4001 | enableval="$enable_permissive" | |
4002 | ||
4003 | if test "$enableval" = yes; then | |
4004 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4005 | else | |
4006 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4007 | fi | |
4008 | ||
4009 | else | |
4010 | ||
4011 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4012 | if test "x$LINE" != x ; then | |
4013 | eval "DEFAULT_$LINE" | |
4014 | else | |
4015 | no_cache=1 | |
4016 | fi | |
4017 | ||
4018 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4019 | ||
4020 | fi; | |
4021 | ||
4022 | eval "$ac_cv_use_permissive" | |
4023 | if test "$no_cache" != 1; then | |
4024 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4025 | fi | |
4026 | ||
4027 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4028 | echo "$as_me:$LINENO: result: yes" >&5 | |
4029 | echo "${ECHO_T}yes" >&6 | |
4030 | else | |
4031 | echo "$as_me:$LINENO: result: no" >&5 | |
4032 | echo "${ECHO_T}no" >&6 | |
4033 | fi | |
4034 | ||
4035 | ||
4036 | enablestring= | |
4037 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4038 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4039 | no_cache=0 | |
4040 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4041 | if test "${enable_no_deps+set}" = set; then | |
4042 | enableval="$enable_no_deps" | |
4043 | ||
4044 | if test "$enableval" = yes; then | |
4045 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4046 | else | |
4047 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4048 | fi | |
4049 | ||
4050 | else | |
4051 | ||
4052 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4053 | if test "x$LINE" != x ; then | |
4054 | eval "DEFAULT_$LINE" | |
4055 | else | |
4056 | no_cache=1 | |
4057 | fi | |
4058 | ||
4059 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4060 | ||
4061 | fi; | |
4062 | ||
4063 | eval "$ac_cv_use_no_deps" | |
4064 | if test "$no_cache" != 1; then | |
4065 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4066 | fi | |
4067 | ||
4068 | if test "$wxUSE_NO_DEPS" = yes; then | |
4069 | echo "$as_me:$LINENO: result: yes" >&5 | |
4070 | echo "${ECHO_T}yes" >&6 | |
4071 | else | |
4072 | echo "$as_me:$LINENO: result: no" >&5 | |
4073 | echo "${ECHO_T}no" >&6 | |
4074 | fi | |
4075 | ||
4076 | ||
4077 | ||
4078 | enablestring= | |
4079 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4080 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4081 | no_cache=0 | |
4082 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4083 | if test "${enable_compat22+set}" = set; then | |
4084 | enableval="$enable_compat22" | |
4085 | ||
4086 | if test "$enableval" = yes; then | |
4087 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4088 | else | |
4089 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4090 | fi | |
4091 | ||
4092 | else | |
4093 | ||
4094 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4095 | if test "x$LINE" != x ; then | |
4096 | eval "DEFAULT_$LINE" | |
4097 | else | |
4098 | no_cache=1 | |
4099 | fi | |
4100 | ||
4101 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4102 | ||
4103 | fi; | |
4104 | ||
4105 | eval "$ac_cv_use_compat22" | |
4106 | if test "$no_cache" != 1; then | |
4107 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4108 | fi | |
4109 | ||
4110 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4111 | echo "$as_me:$LINENO: result: yes" >&5 | |
4112 | echo "${ECHO_T}yes" >&6 | |
4113 | else | |
4114 | echo "$as_me:$LINENO: result: no" >&5 | |
4115 | echo "${ECHO_T}no" >&6 | |
4116 | fi | |
4117 | ||
4118 | ||
4119 | enablestring=disable | |
4120 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4121 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4122 | no_cache=0 | |
4123 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4124 | if test "${enable_compat24+set}" = set; then | |
4125 | enableval="$enable_compat24" | |
4126 | ||
4127 | if test "$enableval" = yes; then | |
4128 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4129 | else | |
4130 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4131 | fi | |
4132 | ||
4133 | else | |
4134 | ||
4135 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4136 | if test "x$LINE" != x ; then | |
4137 | eval "DEFAULT_$LINE" | |
4138 | else | |
4139 | no_cache=1 | |
4140 | fi | |
4141 | ||
4142 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4143 | ||
4144 | fi; | |
4145 | ||
4146 | eval "$ac_cv_use_compat24" | |
4147 | if test "$no_cache" != 1; then | |
4148 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4149 | fi | |
4150 | ||
4151 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4152 | echo "$as_me:$LINENO: result: yes" >&5 | |
4153 | echo "${ECHO_T}yes" >&6 | |
4154 | else | |
4155 | echo "$as_me:$LINENO: result: no" >&5 | |
4156 | echo "${ECHO_T}no" >&6 | |
4157 | fi | |
4158 | ||
4159 | ||
ffa0583f RL |
4160 | |
4161 | enablestring= | |
4162 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4163 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4164 | no_cache=0 | |
4165 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4166 | if test "${enable_rpath+set}" = set; then |
4167 | enableval="$enable_rpath" | |
ffa0583f RL |
4168 | |
4169 | if test "$enableval" = yes; then | |
4170 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4171 | else | |
4172 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4173 | fi | |
4174 | ||
4175 | else | |
4176 | ||
4177 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4178 | if test "x$LINE" != x ; then | |
4179 | eval "DEFAULT_$LINE" | |
4180 | else | |
4181 | no_cache=1 | |
4182 | fi | |
4183 | ||
4184 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4185 | ||
a848cd7e SC |
4186 | fi; |
4187 | ||
ffa0583f RL |
4188 | eval "$ac_cv_use_rpath" |
4189 | if test "$no_cache" != 1; then | |
4190 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4191 | fi | |
4192 | ||
4193 | if test "$wxUSE_RPATH" = yes; then | |
4194 | echo "$as_me:$LINENO: result: yes" >&5 | |
4195 | echo "${ECHO_T}yes" >&6 | |
4196 | else | |
4197 | echo "$as_me:$LINENO: result: no" >&5 | |
4198 | echo "${ECHO_T}no" >&6 | |
4199 | fi | |
4200 | ||
a848cd7e SC |
4201 | |
4202 | ||
4203 | ||
4204 | ||
4205 | enablestring= | |
4206 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4207 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4208 | no_cache=0 | |
4209 | # Check whether --enable-intl or --disable-intl was given. | |
4210 | if test "${enable_intl+set}" = set; then | |
4211 | enableval="$enable_intl" | |
4212 | ||
4213 | if test "$enableval" = yes; then | |
4214 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4215 | else | |
4216 | ac_cv_use_intl='wxUSE_INTL=no' | |
4217 | fi | |
4218 | ||
4219 | else | |
4220 | ||
4221 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4222 | if test "x$LINE" != x ; then | |
4223 | eval "DEFAULT_$LINE" | |
4224 | else | |
4225 | no_cache=1 | |
4226 | fi | |
4227 | ||
4228 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4229 | ||
4230 | fi; | |
4231 | ||
4232 | eval "$ac_cv_use_intl" | |
4233 | if test "$no_cache" != 1; then | |
4234 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4235 | fi | |
4236 | ||
4237 | if test "$wxUSE_INTL" = yes; then | |
4238 | echo "$as_me:$LINENO: result: yes" >&5 | |
4239 | echo "${ECHO_T}yes" >&6 | |
4240 | else | |
4241 | echo "$as_me:$LINENO: result: no" >&5 | |
4242 | echo "${ECHO_T}no" >&6 | |
4243 | fi | |
4244 | ||
4245 | ||
4246 | enablestring= | |
4247 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4248 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4249 | no_cache=0 | |
4250 | # Check whether --enable-config or --disable-config was given. | |
4251 | if test "${enable_config+set}" = set; then | |
4252 | enableval="$enable_config" | |
4253 | ||
4254 | if test "$enableval" = yes; then | |
4255 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4256 | else | |
4257 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4258 | fi | |
4259 | ||
4260 | else | |
4261 | ||
4262 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4263 | if test "x$LINE" != x ; then | |
4264 | eval "DEFAULT_$LINE" | |
4265 | else | |
4266 | no_cache=1 | |
4267 | fi | |
4268 | ||
4269 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4270 | ||
4271 | fi; | |
4272 | ||
4273 | eval "$ac_cv_use_config" | |
4274 | if test "$no_cache" != 1; then | |
4275 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4276 | fi | |
4277 | ||
4278 | if test "$wxUSE_CONFIG" = yes; then | |
4279 | echo "$as_me:$LINENO: result: yes" >&5 | |
4280 | echo "${ECHO_T}yes" >&6 | |
4281 | else | |
4282 | echo "$as_me:$LINENO: result: no" >&5 | |
4283 | echo "${ECHO_T}no" >&6 | |
4284 | fi | |
4285 | ||
4286 | ||
4287 | ||
4288 | enablestring= | |
4289 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4290 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4291 | no_cache=0 | |
4292 | # Check whether --enable-protocols or --disable-protocols was given. | |
4293 | if test "${enable_protocols+set}" = set; then | |
4294 | enableval="$enable_protocols" | |
4295 | ||
4296 | if test "$enableval" = yes; then | |
4297 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4298 | else | |
4299 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4300 | fi | |
4301 | ||
4302 | else | |
4303 | ||
4304 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4305 | if test "x$LINE" != x ; then | |
4306 | eval "DEFAULT_$LINE" | |
4307 | else | |
4308 | no_cache=1 | |
4309 | fi | |
4310 | ||
4311 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4312 | ||
4313 | fi; | |
4314 | ||
4315 | eval "$ac_cv_use_protocols" | |
4316 | if test "$no_cache" != 1; then | |
4317 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4318 | fi | |
4319 | ||
4320 | if test "$wxUSE_PROTOCOL" = yes; then | |
4321 | echo "$as_me:$LINENO: result: yes" >&5 | |
4322 | echo "${ECHO_T}yes" >&6 | |
4323 | else | |
4324 | echo "$as_me:$LINENO: result: no" >&5 | |
4325 | echo "${ECHO_T}no" >&6 | |
4326 | fi | |
4327 | ||
4328 | ||
4329 | enablestring= | |
4330 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4331 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4332 | no_cache=0 | |
4333 | # Check whether --enable-ftp or --disable-ftp was given. | |
4334 | if test "${enable_ftp+set}" = set; then | |
4335 | enableval="$enable_ftp" | |
4336 | ||
4337 | if test "$enableval" = yes; then | |
4338 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4339 | else | |
4340 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4341 | fi | |
4342 | ||
4343 | else | |
4344 | ||
4345 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4346 | if test "x$LINE" != x ; then | |
4347 | eval "DEFAULT_$LINE" | |
4348 | else | |
4349 | no_cache=1 | |
4350 | fi | |
4351 | ||
4352 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4353 | ||
4354 | fi; | |
4355 | ||
4356 | eval "$ac_cv_use_ftp" | |
4357 | if test "$no_cache" != 1; then | |
4358 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4359 | fi | |
4360 | ||
4361 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4362 | echo "$as_me:$LINENO: result: yes" >&5 | |
4363 | echo "${ECHO_T}yes" >&6 | |
4364 | else | |
4365 | echo "$as_me:$LINENO: result: no" >&5 | |
4366 | echo "${ECHO_T}no" >&6 | |
4367 | fi | |
4368 | ||
4369 | ||
4370 | enablestring= | |
4371 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4372 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4373 | no_cache=0 | |
4374 | # Check whether --enable-http or --disable-http was given. | |
4375 | if test "${enable_http+set}" = set; then | |
4376 | enableval="$enable_http" | |
4377 | ||
4378 | if test "$enableval" = yes; then | |
4379 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4380 | else | |
4381 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4382 | fi | |
4383 | ||
4384 | else | |
4385 | ||
4386 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4387 | if test "x$LINE" != x ; then | |
4388 | eval "DEFAULT_$LINE" | |
4389 | else | |
4390 | no_cache=1 | |
4391 | fi | |
4392 | ||
4393 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4394 | ||
4395 | fi; | |
4396 | ||
4397 | eval "$ac_cv_use_http" | |
4398 | if test "$no_cache" != 1; then | |
4399 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4400 | fi | |
4401 | ||
4402 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4403 | echo "$as_me:$LINENO: result: yes" >&5 | |
4404 | echo "${ECHO_T}yes" >&6 | |
4405 | else | |
4406 | echo "$as_me:$LINENO: result: no" >&5 | |
4407 | echo "${ECHO_T}no" >&6 | |
4408 | fi | |
4409 | ||
4410 | ||
4411 | enablestring= | |
4412 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4413 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4414 | no_cache=0 | |
4415 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4416 | if test "${enable_fileproto+set}" = set; then | |
4417 | enableval="$enable_fileproto" | |
4418 | ||
4419 | if test "$enableval" = yes; then | |
4420 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4421 | else | |
4422 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4423 | fi | |
4424 | ||
4425 | else | |
4426 | ||
4427 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4428 | if test "x$LINE" != x ; then | |
4429 | eval "DEFAULT_$LINE" | |
4430 | else | |
4431 | no_cache=1 | |
4432 | fi | |
4433 | ||
4434 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4435 | ||
4436 | fi; | |
4437 | ||
4438 | eval "$ac_cv_use_fileproto" | |
4439 | if test "$no_cache" != 1; then | |
4440 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4441 | fi | |
4442 | ||
4443 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4444 | echo "$as_me:$LINENO: result: yes" >&5 | |
4445 | echo "${ECHO_T}yes" >&6 | |
4446 | else | |
4447 | echo "$as_me:$LINENO: result: no" >&5 | |
4448 | echo "${ECHO_T}no" >&6 | |
4449 | fi | |
4450 | ||
4451 | ||
4452 | enablestring= | |
4453 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4454 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4455 | no_cache=0 | |
4456 | # Check whether --enable-sockets or --disable-sockets was given. | |
4457 | if test "${enable_sockets+set}" = set; then | |
4458 | enableval="$enable_sockets" | |
4459 | ||
4460 | if test "$enableval" = yes; then | |
4461 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4462 | else | |
4463 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4464 | fi | |
4465 | ||
4466 | else | |
4467 | ||
4468 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4469 | if test "x$LINE" != x ; then | |
4470 | eval "DEFAULT_$LINE" | |
4471 | else | |
4472 | no_cache=1 | |
4473 | fi | |
4474 | ||
4475 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4476 | ||
4477 | fi; | |
4478 | ||
4479 | eval "$ac_cv_use_sockets" | |
4480 | if test "$no_cache" != 1; then | |
4481 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4482 | fi | |
4483 | ||
4484 | if test "$wxUSE_SOCKETS" = yes; then | |
4485 | echo "$as_me:$LINENO: result: yes" >&5 | |
4486 | echo "${ECHO_T}yes" >&6 | |
4487 | else | |
4488 | echo "$as_me:$LINENO: result: no" >&5 | |
4489 | echo "${ECHO_T}no" >&6 | |
4490 | fi | |
4491 | ||
4492 | ||
4493 | enablestring= | |
4494 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4495 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4496 | no_cache=0 | |
4497 | # Check whether --enable-ole or --disable-ole was given. | |
4498 | if test "${enable_ole+set}" = set; then | |
4499 | enableval="$enable_ole" | |
4500 | ||
4501 | if test "$enableval" = yes; then | |
4502 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4503 | else | |
4504 | ac_cv_use_ole='wxUSE_OLE=no' | |
4505 | fi | |
4506 | ||
4507 | else | |
4508 | ||
4509 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4510 | if test "x$LINE" != x ; then | |
4511 | eval "DEFAULT_$LINE" | |
4512 | else | |
4513 | no_cache=1 | |
4514 | fi | |
4515 | ||
4516 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4517 | ||
4518 | fi; | |
4519 | ||
4520 | eval "$ac_cv_use_ole" | |
4521 | if test "$no_cache" != 1; then | |
4522 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4523 | fi | |
4524 | ||
4525 | if test "$wxUSE_OLE" = yes; then | |
4526 | echo "$as_me:$LINENO: result: yes" >&5 | |
4527 | echo "${ECHO_T}yes" >&6 | |
4528 | else | |
4529 | echo "$as_me:$LINENO: result: no" >&5 | |
4530 | echo "${ECHO_T}no" >&6 | |
4531 | fi | |
4532 | ||
4533 | ||
4534 | enablestring= | |
4535 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4536 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4537 | no_cache=0 | |
4538 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4539 | if test "${enable_dataobj+set}" = set; then | |
4540 | enableval="$enable_dataobj" | |
4541 | ||
4542 | if test "$enableval" = yes; then | |
4543 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4544 | else | |
4545 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4546 | fi | |
4547 | ||
4548 | else | |
4549 | ||
4550 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4551 | if test "x$LINE" != x ; then | |
4552 | eval "DEFAULT_$LINE" | |
4553 | else | |
4554 | no_cache=1 | |
4555 | fi | |
4556 | ||
4557 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4558 | ||
4559 | fi; | |
4560 | ||
4561 | eval "$ac_cv_use_dataobj" | |
4562 | if test "$no_cache" != 1; then | |
4563 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4564 | fi | |
4565 | ||
4566 | if test "$wxUSE_DATAOBJ" = yes; then | |
4567 | echo "$as_me:$LINENO: result: yes" >&5 | |
4568 | echo "${ECHO_T}yes" >&6 | |
4569 | else | |
4570 | echo "$as_me:$LINENO: result: no" >&5 | |
4571 | echo "${ECHO_T}no" >&6 | |
4572 | fi | |
4573 | ||
4574 | ||
4575 | ||
4576 | enablestring= | |
4577 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4578 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4579 | no_cache=0 | |
4580 | # Check whether --enable-ipc or --disable-ipc was given. | |
4581 | if test "${enable_ipc+set}" = set; then | |
4582 | enableval="$enable_ipc" | |
4583 | ||
4584 | if test "$enableval" = yes; then | |
4585 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4586 | else | |
4587 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4588 | fi | |
4589 | ||
4590 | else | |
4591 | ||
4592 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4593 | if test "x$LINE" != x ; then | |
4594 | eval "DEFAULT_$LINE" | |
4595 | else | |
4596 | no_cache=1 | |
4597 | fi | |
4598 | ||
4599 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4600 | ||
4601 | fi; | |
4602 | ||
4603 | eval "$ac_cv_use_ipc" | |
4604 | if test "$no_cache" != 1; then | |
4605 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4606 | fi | |
4607 | ||
4608 | if test "$wxUSE_IPC" = yes; then | |
4609 | echo "$as_me:$LINENO: result: yes" >&5 | |
4610 | echo "${ECHO_T}yes" >&6 | |
4611 | else | |
4612 | echo "$as_me:$LINENO: result: no" >&5 | |
4613 | echo "${ECHO_T}no" >&6 | |
4614 | fi | |
4615 | ||
4616 | ||
4617 | ||
4618 | enablestring= | |
4619 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4620 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4621 | no_cache=0 | |
4622 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4623 | if test "${enable_apple_ieee+set}" = set; then | |
4624 | enableval="$enable_apple_ieee" | |
4625 | ||
4626 | if test "$enableval" = yes; then | |
4627 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4628 | else | |
4629 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4630 | fi | |
4631 | ||
4632 | else | |
4633 | ||
4634 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4635 | if test "x$LINE" != x ; then | |
4636 | eval "DEFAULT_$LINE" | |
4637 | else | |
4638 | no_cache=1 | |
4639 | fi | |
4640 | ||
4641 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4642 | ||
4643 | fi; | |
4644 | ||
4645 | eval "$ac_cv_use_apple_ieee" | |
4646 | if test "$no_cache" != 1; then | |
4647 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4648 | fi | |
4649 | ||
4650 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4651 | echo "$as_me:$LINENO: result: yes" >&5 | |
4652 | echo "${ECHO_T}yes" >&6 | |
4653 | else | |
4654 | echo "$as_me:$LINENO: result: no" >&5 | |
4655 | echo "${ECHO_T}no" >&6 | |
4656 | fi | |
4657 | ||
4658 | ||
81f90336 MW |
4659 | enablestring= |
4660 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4661 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4662 | no_cache=0 | |
4663 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4664 | if test "${enable_arcstream+set}" = set; then | |
4665 | enableval="$enable_arcstream" | |
4666 | ||
4667 | if test "$enableval" = yes; then | |
9e8e867f | 4668 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4669 | else |
9e8e867f | 4670 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4671 | fi |
4672 | ||
4673 | else | |
4674 | ||
9e8e867f | 4675 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4676 | if test "x$LINE" != x ; then |
4677 | eval "DEFAULT_$LINE" | |
4678 | else | |
4679 | no_cache=1 | |
4680 | fi | |
4681 | ||
9e8e867f | 4682 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4683 | |
4684 | fi; | |
4685 | ||
4686 | eval "$ac_cv_use_arcstream" | |
4687 | if test "$no_cache" != 1; then | |
4688 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4689 | fi | |
4690 | ||
9e8e867f | 4691 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4692 | echo "$as_me:$LINENO: result: yes" >&5 |
4693 | echo "${ECHO_T}yes" >&6 | |
4694 | else | |
4695 | echo "$as_me:$LINENO: result: no" >&5 | |
4696 | echo "${ECHO_T}no" >&6 | |
4697 | fi | |
4698 | ||
4699 | ||
a848cd7e | 4700 | enablestring= |
36b6448c VZ |
4701 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4702 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4703 | no_cache=0 |
36b6448c VZ |
4704 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4705 | if test "${enable_backtrace+set}" = set; then | |
4706 | enableval="$enable_backtrace" | |
a848cd7e SC |
4707 | |
4708 | if test "$enableval" = yes; then | |
36b6448c | 4709 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4710 | else |
36b6448c | 4711 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4712 | fi |
4713 | ||
4714 | else | |
4715 | ||
36b6448c | 4716 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4717 | if test "x$LINE" != x ; then |
4718 | eval "DEFAULT_$LINE" | |
4719 | else | |
4720 | no_cache=1 | |
4721 | fi | |
4722 | ||
36b6448c | 4723 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4724 | |
4725 | fi; | |
4726 | ||
36b6448c | 4727 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4728 | if test "$no_cache" != 1; then |
36b6448c | 4729 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4730 | fi |
4731 | ||
36b6448c | 4732 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4733 | echo "$as_me:$LINENO: result: yes" >&5 |
4734 | echo "${ECHO_T}yes" >&6 | |
4735 | else | |
4736 | echo "$as_me:$LINENO: result: no" >&5 | |
4737 | echo "${ECHO_T}no" >&6 | |
4738 | fi | |
4739 | ||
4740 | ||
eaff0f0d | 4741 | enablestring= |
36b6448c VZ |
4742 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4743 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4744 | no_cache=0 |
36b6448c VZ |
4745 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4746 | if test "${enable_catch_segvs+set}" = set; then | |
4747 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4748 | |
4749 | if test "$enableval" = yes; then | |
36b6448c | 4750 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4751 | else |
36b6448c | 4752 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4753 | fi |
4754 | ||
4755 | else | |
4756 | ||
36b6448c | 4757 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4758 | if test "x$LINE" != x ; then |
4759 | eval "DEFAULT_$LINE" | |
4760 | else | |
4761 | no_cache=1 | |
4762 | fi | |
4763 | ||
36b6448c | 4764 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4765 | |
4766 | fi; | |
4767 | ||
36b6448c | 4768 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4769 | if test "$no_cache" != 1; then |
36b6448c | 4770 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4771 | fi |
4772 | ||
36b6448c | 4773 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4774 | echo "$as_me:$LINENO: result: yes" >&5 |
4775 | echo "${ECHO_T}yes" >&6 | |
4776 | else | |
4777 | echo "$as_me:$LINENO: result: no" >&5 | |
4778 | echo "${ECHO_T}no" >&6 | |
4779 | fi | |
4780 | ||
4781 | ||
a848cd7e SC |
4782 | enablestring= |
4783 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4784 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4785 | no_cache=0 | |
4786 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4787 | if test "${enable_cmdline+set}" = set; then | |
4788 | enableval="$enable_cmdline" | |
4789 | ||
4790 | if test "$enableval" = yes; then | |
4791 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4792 | else | |
4793 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4794 | fi | |
4795 | ||
4796 | else | |
4797 | ||
4798 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4799 | if test "x$LINE" != x ; then | |
4800 | eval "DEFAULT_$LINE" | |
4801 | else | |
4802 | no_cache=1 | |
4803 | fi | |
4804 | ||
4805 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4806 | ||
4807 | fi; | |
4808 | ||
4809 | eval "$ac_cv_use_cmdline" | |
4810 | if test "$no_cache" != 1; then | |
4811 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4812 | fi | |
4813 | ||
4814 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4815 | echo "$as_me:$LINENO: result: yes" >&5 | |
4816 | echo "${ECHO_T}yes" >&6 | |
4817 | else | |
4818 | echo "$as_me:$LINENO: result: no" >&5 | |
4819 | echo "${ECHO_T}no" >&6 | |
4820 | fi | |
4821 | ||
4822 | ||
4823 | enablestring= | |
4824 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4825 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4826 | no_cache=0 | |
4827 | # Check whether --enable-datetime or --disable-datetime was given. | |
4828 | if test "${enable_datetime+set}" = set; then | |
4829 | enableval="$enable_datetime" | |
4830 | ||
4831 | if test "$enableval" = yes; then | |
4832 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4833 | else | |
4834 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4835 | fi | |
4836 | ||
4837 | else | |
4838 | ||
4839 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4840 | if test "x$LINE" != x ; then | |
4841 | eval "DEFAULT_$LINE" | |
4842 | else | |
4843 | no_cache=1 | |
4844 | fi | |
4845 | ||
4846 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4847 | ||
4848 | fi; | |
4849 | ||
4850 | eval "$ac_cv_use_datetime" | |
4851 | if test "$no_cache" != 1; then | |
4852 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4853 | fi | |
4854 | ||
4855 | if test "$wxUSE_DATETIME" = yes; then | |
4856 | echo "$as_me:$LINENO: result: yes" >&5 | |
4857 | echo "${ECHO_T}yes" >&6 | |
4858 | else | |
4859 | echo "$as_me:$LINENO: result: no" >&5 | |
4860 | echo "${ECHO_T}no" >&6 | |
4861 | fi | |
4862 | ||
4863 | ||
36b6448c VZ |
4864 | enablestring= |
4865 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
4866 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
4867 | no_cache=0 | |
4868 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
4869 | if test "${enable_debugreport+set}" = set; then | |
4870 | enableval="$enable_debugreport" | |
4871 | ||
4872 | if test "$enableval" = yes; then | |
4873 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
4874 | else | |
4875 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
4876 | fi | |
4877 | ||
4878 | else | |
4879 | ||
4880 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
4881 | if test "x$LINE" != x ; then | |
4882 | eval "DEFAULT_$LINE" | |
4883 | else | |
4884 | no_cache=1 | |
4885 | fi | |
4886 | ||
4887 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
4888 | ||
4889 | fi; | |
4890 | ||
4891 | eval "$ac_cv_use_debugreport" | |
4892 | if test "$no_cache" != 1; then | |
4893 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
4894 | fi | |
4895 | ||
4896 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
4897 | echo "$as_me:$LINENO: result: yes" >&5 | |
4898 | echo "${ECHO_T}yes" >&6 | |
4899 | else | |
4900 | echo "$as_me:$LINENO: result: no" >&5 | |
4901 | echo "${ECHO_T}no" >&6 | |
4902 | fi | |
4903 | ||
4904 | ||
a848cd7e SC |
4905 | enablestring= |
4906 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4907 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4908 | no_cache=0 | |
4909 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4910 | if test "${enable_dialupman+set}" = set; then | |
4911 | enableval="$enable_dialupman" | |
4912 | ||
4913 | if test "$enableval" = yes; then | |
4914 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4915 | else | |
4916 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4917 | fi | |
4918 | ||
4919 | else | |
4920 | ||
4921 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4922 | if test "x$LINE" != x ; then | |
4923 | eval "DEFAULT_$LINE" | |
4924 | else | |
4925 | no_cache=1 | |
4926 | fi | |
4927 | ||
4928 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4929 | ||
4930 | fi; | |
4931 | ||
4932 | eval "$ac_cv_use_dialupman" | |
4933 | if test "$no_cache" != 1; then | |
4934 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4935 | fi | |
4936 | ||
4937 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4938 | echo "$as_me:$LINENO: result: yes" >&5 | |
4939 | echo "${ECHO_T}yes" >&6 | |
4940 | else | |
4941 | echo "$as_me:$LINENO: result: no" >&5 | |
4942 | echo "${ECHO_T}no" >&6 | |
4943 | fi | |
4944 | ||
4945 | ||
4946 | enablestring= | |
4947 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4948 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4949 | no_cache=0 | |
4950 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4951 | if test "${enable_dynlib+set}" = set; then | |
4952 | enableval="$enable_dynlib" | |
4953 | ||
4954 | if test "$enableval" = yes; then | |
4955 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4956 | else | |
4957 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4958 | fi | |
4959 | ||
4960 | else | |
4961 | ||
4962 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4963 | if test "x$LINE" != x ; then | |
4964 | eval "DEFAULT_$LINE" | |
4965 | else | |
4966 | no_cache=1 | |
4967 | fi | |
4968 | ||
4969 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4970 | ||
4971 | fi; | |
4972 | ||
4973 | eval "$ac_cv_use_dynlib" | |
4974 | if test "$no_cache" != 1; then | |
4975 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4976 | fi | |
4977 | ||
4978 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4979 | echo "$as_me:$LINENO: result: yes" >&5 | |
4980 | echo "${ECHO_T}yes" >&6 | |
4981 | else | |
4982 | echo "$as_me:$LINENO: result: no" >&5 | |
4983 | echo "${ECHO_T}no" >&6 | |
4984 | fi | |
4985 | ||
4986 | ||
4987 | enablestring= | |
4988 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4989 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4990 | no_cache=0 | |
4991 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4992 | if test "${enable_dynamicloader+set}" = set; then | |
4993 | enableval="$enable_dynamicloader" | |
4994 | ||
4995 | if test "$enableval" = yes; then | |
4996 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4997 | else | |
4998 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4999 | fi | |
5000 | ||
5001 | else | |
5002 | ||
5003 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5004 | if test "x$LINE" != x ; then | |
5005 | eval "DEFAULT_$LINE" | |
5006 | else | |
5007 | no_cache=1 | |
5008 | fi | |
5009 | ||
5010 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5011 | ||
5012 | fi; | |
5013 | ||
5014 | eval "$ac_cv_use_dynamicloader" | |
5015 | if test "$no_cache" != 1; then | |
5016 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5017 | fi | |
5018 | ||
5019 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5020 | echo "$as_me:$LINENO: result: yes" >&5 | |
5021 | echo "${ECHO_T}yes" >&6 | |
5022 | else | |
5023 | echo "$as_me:$LINENO: result: no" >&5 | |
5024 | echo "${ECHO_T}no" >&6 | |
5025 | fi | |
5026 | ||
5027 | ||
5028 | enablestring= | |
5029 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5030 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5031 | no_cache=0 | |
5032 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5033 | if test "${enable_exceptions+set}" = set; then | |
5034 | enableval="$enable_exceptions" | |
5035 | ||
5036 | if test "$enableval" = yes; then | |
5037 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5038 | else | |
5039 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5040 | fi | |
5041 | ||
5042 | else | |
5043 | ||
5044 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5045 | if test "x$LINE" != x ; then | |
5046 | eval "DEFAULT_$LINE" | |
5047 | else | |
5048 | no_cache=1 | |
5049 | fi | |
5050 | ||
5051 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5052 | ||
5053 | fi; | |
5054 | ||
5055 | eval "$ac_cv_use_exceptions" | |
5056 | if test "$no_cache" != 1; then | |
5057 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5058 | fi | |
5059 | ||
5060 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5061 | echo "$as_me:$LINENO: result: yes" >&5 | |
5062 | echo "${ECHO_T}yes" >&6 | |
5063 | else | |
5064 | echo "$as_me:$LINENO: result: no" >&5 | |
5065 | echo "${ECHO_T}no" >&6 | |
5066 | fi | |
5067 | ||
5068 | ||
5069 | enablestring= | |
5070 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5071 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5072 | no_cache=0 | |
5073 | # Check whether --enable-ffile or --disable-ffile was given. | |
5074 | if test "${enable_ffile+set}" = set; then | |
5075 | enableval="$enable_ffile" | |
5076 | ||
5077 | if test "$enableval" = yes; then | |
5078 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5079 | else | |
5080 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5081 | fi | |
5082 | ||
5083 | else | |
5084 | ||
5085 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5086 | if test "x$LINE" != x ; then | |
5087 | eval "DEFAULT_$LINE" | |
5088 | else | |
5089 | no_cache=1 | |
5090 | fi | |
5091 | ||
5092 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5093 | ||
5094 | fi; | |
5095 | ||
5096 | eval "$ac_cv_use_ffile" | |
5097 | if test "$no_cache" != 1; then | |
5098 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5099 | fi | |
5100 | ||
5101 | if test "$wxUSE_FFILE" = yes; then | |
5102 | echo "$as_me:$LINENO: result: yes" >&5 | |
5103 | echo "${ECHO_T}yes" >&6 | |
5104 | else | |
5105 | echo "$as_me:$LINENO: result: no" >&5 | |
5106 | echo "${ECHO_T}no" >&6 | |
5107 | fi | |
5108 | ||
5109 | ||
5110 | enablestring= | |
5111 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5112 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5113 | no_cache=0 | |
5114 | # Check whether --enable-file or --disable-file was given. | |
5115 | if test "${enable_file+set}" = set; then | |
5116 | enableval="$enable_file" | |
5117 | ||
5118 | if test "$enableval" = yes; then | |
5119 | ac_cv_use_file='wxUSE_FILE=yes' | |
5120 | else | |
5121 | ac_cv_use_file='wxUSE_FILE=no' | |
5122 | fi | |
5123 | ||
5124 | else | |
5125 | ||
5126 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5127 | if test "x$LINE" != x ; then | |
5128 | eval "DEFAULT_$LINE" | |
5129 | else | |
5130 | no_cache=1 | |
5131 | fi | |
5132 | ||
5133 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5134 | ||
5135 | fi; | |
5136 | ||
5137 | eval "$ac_cv_use_file" | |
5138 | if test "$no_cache" != 1; then | |
5139 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5140 | fi | |
5141 | ||
5142 | if test "$wxUSE_FILE" = yes; then | |
5143 | echo "$as_me:$LINENO: result: yes" >&5 | |
5144 | echo "${ECHO_T}yes" >&6 | |
5145 | else | |
5146 | echo "$as_me:$LINENO: result: no" >&5 | |
5147 | echo "${ECHO_T}no" >&6 | |
5148 | fi | |
5149 | ||
5150 | ||
5151 | enablestring= | |
5152 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5153 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5154 | no_cache=0 | |
5155 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5156 | if test "${enable_filesystem+set}" = set; then | |
5157 | enableval="$enable_filesystem" | |
5158 | ||
5159 | if test "$enableval" = yes; then | |
5160 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5161 | else | |
5162 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5163 | fi | |
5164 | ||
5165 | else | |
5166 | ||
5167 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5168 | if test "x$LINE" != x ; then | |
5169 | eval "DEFAULT_$LINE" | |
5170 | else | |
5171 | no_cache=1 | |
5172 | fi | |
5173 | ||
5174 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5175 | ||
5176 | fi; | |
5177 | ||
5178 | eval "$ac_cv_use_filesystem" | |
5179 | if test "$no_cache" != 1; then | |
5180 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5181 | fi | |
5182 | ||
5183 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5184 | echo "$as_me:$LINENO: result: yes" >&5 | |
5185 | echo "${ECHO_T}yes" >&6 | |
5186 | else | |
5187 | echo "$as_me:$LINENO: result: no" >&5 | |
5188 | echo "${ECHO_T}no" >&6 | |
5189 | fi | |
5190 | ||
5191 | ||
5192 | enablestring= | |
5193 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5194 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5195 | no_cache=0 | |
5196 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5197 | if test "${enable_fontmap+set}" = set; then | |
5198 | enableval="$enable_fontmap" | |
5199 | ||
5200 | if test "$enableval" = yes; then | |
5201 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5202 | else | |
5203 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5204 | fi | |
5205 | ||
5206 | else | |
5207 | ||
5208 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5209 | if test "x$LINE" != x ; then | |
5210 | eval "DEFAULT_$LINE" | |
5211 | else | |
5212 | no_cache=1 | |
5213 | fi | |
5214 | ||
5215 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5216 | ||
5217 | fi; | |
5218 | ||
5219 | eval "$ac_cv_use_fontmap" | |
5220 | if test "$no_cache" != 1; then | |
5221 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5222 | fi | |
5223 | ||
5224 | if test "$wxUSE_FONTMAP" = yes; then | |
5225 | echo "$as_me:$LINENO: result: yes" >&5 | |
5226 | echo "${ECHO_T}yes" >&6 | |
5227 | else | |
5228 | echo "$as_me:$LINENO: result: no" >&5 | |
5229 | echo "${ECHO_T}no" >&6 | |
5230 | fi | |
5231 | ||
5232 | ||
5233 | enablestring= | |
5234 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5235 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5236 | no_cache=0 | |
5237 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5238 | if test "${enable_fs_inet+set}" = set; then | |
5239 | enableval="$enable_fs_inet" | |
5240 | ||
5241 | if test "$enableval" = yes; then | |
5242 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5243 | else | |
5244 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5245 | fi | |
5246 | ||
5247 | else | |
5248 | ||
5249 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5250 | if test "x$LINE" != x ; then | |
5251 | eval "DEFAULT_$LINE" | |
5252 | else | |
5253 | no_cache=1 | |
5254 | fi | |
5255 | ||
5256 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5257 | ||
5258 | fi; | |
5259 | ||
5260 | eval "$ac_cv_use_fs_inet" | |
5261 | if test "$no_cache" != 1; then | |
5262 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5263 | fi | |
5264 | ||
5265 | if test "$wxUSE_FS_INET" = yes; then | |
5266 | echo "$as_me:$LINENO: result: yes" >&5 | |
5267 | echo "${ECHO_T}yes" >&6 | |
5268 | else | |
5269 | echo "$as_me:$LINENO: result: no" >&5 | |
5270 | echo "${ECHO_T}no" >&6 | |
5271 | fi | |
5272 | ||
5273 | ||
5274 | enablestring= | |
5275 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5276 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5277 | no_cache=0 | |
5278 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5279 | if test "${enable_fs_zip+set}" = set; then | |
5280 | enableval="$enable_fs_zip" | |
5281 | ||
5282 | if test "$enableval" = yes; then | |
5283 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5284 | else | |
5285 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5286 | fi | |
5287 | ||
5288 | else | |
5289 | ||
5290 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5291 | if test "x$LINE" != x ; then | |
5292 | eval "DEFAULT_$LINE" | |
5293 | else | |
5294 | no_cache=1 | |
5295 | fi | |
5296 | ||
5297 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5298 | ||
5299 | fi; | |
5300 | ||
5301 | eval "$ac_cv_use_fs_zip" | |
5302 | if test "$no_cache" != 1; then | |
5303 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5304 | fi | |
5305 | ||
5306 | if test "$wxUSE_FS_ZIP" = yes; then | |
5307 | echo "$as_me:$LINENO: result: yes" >&5 | |
5308 | echo "${ECHO_T}yes" >&6 | |
5309 | else | |
5310 | echo "$as_me:$LINENO: result: no" >&5 | |
5311 | echo "${ECHO_T}no" >&6 | |
5312 | fi | |
5313 | ||
5314 | ||
5315 | enablestring= | |
5316 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5317 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5318 | no_cache=0 | |
5319 | # Check whether --enable-geometry or --disable-geometry was given. | |
5320 | if test "${enable_geometry+set}" = set; then | |
5321 | enableval="$enable_geometry" | |
5322 | ||
5323 | if test "$enableval" = yes; then | |
5324 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5325 | else | |
5326 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5327 | fi | |
5328 | ||
5329 | else | |
5330 | ||
5331 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5332 | if test "x$LINE" != x ; then | |
5333 | eval "DEFAULT_$LINE" | |
5334 | else | |
5335 | no_cache=1 | |
5336 | fi | |
5337 | ||
5338 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5339 | ||
5340 | fi; | |
5341 | ||
5342 | eval "$ac_cv_use_geometry" | |
5343 | if test "$no_cache" != 1; then | |
5344 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5345 | fi | |
5346 | ||
5347 | if test "$wxUSE_GEOMETRY" = yes; then | |
5348 | echo "$as_me:$LINENO: result: yes" >&5 | |
5349 | echo "${ECHO_T}yes" >&6 | |
5350 | else | |
5351 | echo "$as_me:$LINENO: result: no" >&5 | |
5352 | echo "${ECHO_T}no" >&6 | |
5353 | fi | |
5354 | ||
5355 | ||
5356 | enablestring= | |
5357 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5358 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5359 | no_cache=0 | |
5360 | # Check whether --enable-log or --disable-log was given. | |
5361 | if test "${enable_log+set}" = set; then | |
5362 | enableval="$enable_log" | |
5363 | ||
5364 | if test "$enableval" = yes; then | |
5365 | ac_cv_use_log='wxUSE_LOG=yes' | |
5366 | else | |
5367 | ac_cv_use_log='wxUSE_LOG=no' | |
5368 | fi | |
5369 | ||
5370 | else | |
5371 | ||
5372 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5373 | if test "x$LINE" != x ; then | |
5374 | eval "DEFAULT_$LINE" | |
5375 | else | |
5376 | no_cache=1 | |
5377 | fi | |
5378 | ||
5379 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5380 | ||
5381 | fi; | |
5382 | ||
5383 | eval "$ac_cv_use_log" | |
5384 | if test "$no_cache" != 1; then | |
5385 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5386 | fi | |
5387 | ||
5388 | if test "$wxUSE_LOG" = yes; then | |
5389 | echo "$as_me:$LINENO: result: yes" >&5 | |
5390 | echo "${ECHO_T}yes" >&6 | |
5391 | else | |
5392 | echo "$as_me:$LINENO: result: no" >&5 | |
5393 | echo "${ECHO_T}no" >&6 | |
5394 | fi | |
5395 | ||
5396 | ||
5397 | enablestring= | |
5398 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5399 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5400 | no_cache=0 | |
5401 | # Check whether --enable-longlong or --disable-longlong was given. | |
5402 | if test "${enable_longlong+set}" = set; then | |
5403 | enableval="$enable_longlong" | |
5404 | ||
5405 | if test "$enableval" = yes; then | |
5406 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5407 | else | |
5408 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5409 | fi | |
5410 | ||
5411 | else | |
5412 | ||
5413 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5414 | if test "x$LINE" != x ; then | |
5415 | eval "DEFAULT_$LINE" | |
5416 | else | |
5417 | no_cache=1 | |
5418 | fi | |
5419 | ||
5420 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5421 | ||
5422 | fi; | |
5423 | ||
5424 | eval "$ac_cv_use_longlong" | |
5425 | if test "$no_cache" != 1; then | |
5426 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5427 | fi | |
5428 | ||
5429 | if test "$wxUSE_LONGLONG" = yes; then | |
5430 | echo "$as_me:$LINENO: result: yes" >&5 | |
5431 | echo "${ECHO_T}yes" >&6 | |
5432 | else | |
5433 | echo "$as_me:$LINENO: result: no" >&5 | |
5434 | echo "${ECHO_T}no" >&6 | |
5435 | fi | |
5436 | ||
5437 | ||
5438 | enablestring= | |
5439 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5440 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5441 | no_cache=0 | |
5442 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5443 | if test "${enable_mimetype+set}" = set; then | |
5444 | enableval="$enable_mimetype" | |
5445 | ||
5446 | if test "$enableval" = yes; then | |
5447 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5448 | else | |
5449 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5450 | fi | |
5451 | ||
5452 | else | |
5453 | ||
5454 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5455 | if test "x$LINE" != x ; then | |
5456 | eval "DEFAULT_$LINE" | |
5457 | else | |
5458 | no_cache=1 | |
5459 | fi | |
5460 | ||
5461 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5462 | ||
5463 | fi; | |
5464 | ||
5465 | eval "$ac_cv_use_mimetype" | |
5466 | if test "$no_cache" != 1; then | |
5467 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5468 | fi | |
5469 | ||
5470 | if test "$wxUSE_MIMETYPE" = yes; then | |
5471 | echo "$as_me:$LINENO: result: yes" >&5 | |
5472 | echo "${ECHO_T}yes" >&6 | |
5473 | else | |
5474 | echo "$as_me:$LINENO: result: no" >&5 | |
5475 | echo "${ECHO_T}no" >&6 | |
5476 | fi | |
5477 | ||
5478 | ||
5479 | enablestring= | |
5480 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5481 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5482 | no_cache=0 | |
5483 | # Check whether --enable-mslu or --disable-mslu was given. | |
5484 | if test "${enable_mslu+set}" = set; then | |
5485 | enableval="$enable_mslu" | |
5486 | ||
5487 | if test "$enableval" = yes; then | |
5488 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5489 | else | |
5490 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5491 | fi | |
5492 | ||
5493 | else | |
5494 | ||
5495 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5496 | if test "x$LINE" != x ; then | |
5497 | eval "DEFAULT_$LINE" | |
5498 | else | |
5499 | no_cache=1 | |
5500 | fi | |
5501 | ||
5502 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5503 | ||
5504 | fi; | |
5505 | ||
5506 | eval "$ac_cv_use_mslu" | |
5507 | if test "$no_cache" != 1; then | |
5508 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5509 | fi | |
5510 | ||
5511 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5512 | echo "$as_me:$LINENO: result: yes" >&5 | |
5513 | echo "${ECHO_T}yes" >&6 | |
5514 | else | |
5515 | echo "$as_me:$LINENO: result: no" >&5 | |
5516 | echo "${ECHO_T}no" >&6 | |
5517 | fi | |
5518 | ||
5519 | ||
5520 | enablestring= | |
5521 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5522 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5523 | no_cache=0 | |
5524 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5525 | if test "${enable_snglinst+set}" = set; then | |
5526 | enableval="$enable_snglinst" | |
5527 | ||
5528 | if test "$enableval" = yes; then | |
5529 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5530 | else | |
5531 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5532 | fi | |
5533 | ||
5534 | else | |
5535 | ||
5536 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5537 | if test "x$LINE" != x ; then | |
5538 | eval "DEFAULT_$LINE" | |
5539 | else | |
5540 | no_cache=1 | |
5541 | fi | |
5542 | ||
5543 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5544 | ||
5545 | fi; | |
5546 | ||
5547 | eval "$ac_cv_use_snglinst" | |
5548 | if test "$no_cache" != 1; then | |
5549 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5550 | fi | |
5551 | ||
5552 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5553 | echo "$as_me:$LINENO: result: yes" >&5 | |
5554 | echo "${ECHO_T}yes" >&6 | |
5555 | else | |
5556 | echo "$as_me:$LINENO: result: no" >&5 | |
5557 | echo "${ECHO_T}no" >&6 | |
5558 | fi | |
5559 | ||
5560 | ||
5561 | enablestring= | |
07158944 VZ |
5562 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5563 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5564 | no_cache=0 |
07158944 VZ |
5565 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5566 | if test "${enable_std_iostreams+set}" = set; then | |
5567 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5568 | |
5569 | if test "$enableval" = yes; then | |
07158944 | 5570 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5571 | else |
07158944 | 5572 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5573 | fi |
5574 | ||
5575 | else | |
5576 | ||
07158944 | 5577 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5578 | if test "x$LINE" != x ; then |
5579 | eval "DEFAULT_$LINE" | |
5580 | else | |
5581 | no_cache=1 | |
5582 | fi | |
5583 | ||
07158944 | 5584 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5585 | |
5586 | fi; | |
5587 | ||
07158944 | 5588 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5589 | if test "$no_cache" != 1; then |
07158944 | 5590 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5591 | fi |
5592 | ||
07158944 | 5593 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5594 | echo "$as_me:$LINENO: result: yes" >&5 |
5595 | echo "${ECHO_T}yes" >&6 | |
5596 | else | |
5597 | echo "$as_me:$LINENO: result: no" >&5 | |
5598 | echo "${ECHO_T}no" >&6 | |
5599 | fi | |
5600 | ||
5601 | ||
59746b65 MW |
5602 | enablestring= |
5603 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5604 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5605 | no_cache=0 | |
5606 | # Check whether --enable-std_string or --disable-std_string was given. | |
5607 | if test "${enable_std_string+set}" = set; then | |
5608 | enableval="$enable_std_string" | |
5609 | ||
5610 | if test "$enableval" = yes; then | |
5611 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5612 | else | |
5613 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5614 | fi | |
5615 | ||
5616 | else | |
5617 | ||
5618 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5619 | if test "x$LINE" != x ; then | |
5620 | eval "DEFAULT_$LINE" | |
5621 | else | |
5622 | no_cache=1 | |
5623 | fi | |
5624 | ||
5625 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5626 | ||
5627 | fi; | |
5628 | ||
5629 | eval "$ac_cv_use_std_string" | |
5630 | if test "$no_cache" != 1; then | |
5631 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5632 | fi | |
5633 | ||
5634 | if test "$wxUSE_STD_STRING" = yes; then | |
5635 | echo "$as_me:$LINENO: result: yes" >&5 | |
5636 | echo "${ECHO_T}yes" >&6 | |
5637 | else | |
5638 | echo "$as_me:$LINENO: result: no" >&5 | |
5639 | echo "${ECHO_T}no" >&6 | |
5640 | fi | |
5641 | ||
5642 | ||
a848cd7e | 5643 | enablestring= |
07158944 VZ |
5644 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5645 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5646 | no_cache=0 |
07158944 VZ |
5647 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5648 | if test "${enable_stdpaths+set}" = set; then | |
5649 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5650 | |
5651 | if test "$enableval" = yes; then | |
07158944 | 5652 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5653 | else |
07158944 | 5654 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5655 | fi |
5656 | ||
5657 | else | |
5658 | ||
07158944 | 5659 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5660 | if test "x$LINE" != x ; then |
5661 | eval "DEFAULT_$LINE" | |
5662 | else | |
5663 | no_cache=1 | |
5664 | fi | |
5665 | ||
07158944 | 5666 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5667 | |
5668 | fi; | |
5669 | ||
07158944 | 5670 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5671 | if test "$no_cache" != 1; then |
07158944 | 5672 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5673 | fi |
5674 | ||
07158944 | 5675 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5676 | echo "$as_me:$LINENO: result: yes" >&5 |
5677 | echo "${ECHO_T}yes" >&6 | |
5678 | else | |
5679 | echo "$as_me:$LINENO: result: no" >&5 | |
5680 | echo "${ECHO_T}no" >&6 | |
5681 | fi | |
5682 | ||
5683 | ||
5684 | enablestring= | |
5685 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5686 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5687 | no_cache=0 | |
5688 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5689 | if test "${enable_stopwatch+set}" = set; then | |
5690 | enableval="$enable_stopwatch" | |
5691 | ||
5692 | if test "$enableval" = yes; then | |
5693 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5694 | else | |
5695 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5696 | fi | |
5697 | ||
5698 | else | |
5699 | ||
5700 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5701 | if test "x$LINE" != x ; then | |
5702 | eval "DEFAULT_$LINE" | |
5703 | else | |
5704 | no_cache=1 | |
5705 | fi | |
5706 | ||
5707 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5708 | ||
5709 | fi; | |
5710 | ||
5711 | eval "$ac_cv_use_stopwatch" | |
5712 | if test "$no_cache" != 1; then | |
5713 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5714 | fi | |
5715 | ||
5716 | if test "$wxUSE_STOPWATCH" = yes; then | |
5717 | echo "$as_me:$LINENO: result: yes" >&5 | |
5718 | echo "${ECHO_T}yes" >&6 | |
5719 | else | |
5720 | echo "$as_me:$LINENO: result: no" >&5 | |
5721 | echo "${ECHO_T}no" >&6 | |
5722 | fi | |
5723 | ||
5724 | ||
07158944 VZ |
5725 | enablestring= |
5726 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5727 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5728 | no_cache=0 | |
5729 | # Check whether --enable-streams or --disable-streams was given. | |
5730 | if test "${enable_streams+set}" = set; then | |
5731 | enableval="$enable_streams" | |
5732 | ||
5733 | if test "$enableval" = yes; then | |
5734 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5735 | else | |
5736 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5737 | fi | |
5738 | ||
5739 | else | |
5740 | ||
5741 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5742 | if test "x$LINE" != x ; then | |
5743 | eval "DEFAULT_$LINE" | |
5744 | else | |
5745 | no_cache=1 | |
5746 | fi | |
5747 | ||
5748 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5749 | ||
5750 | fi; | |
5751 | ||
5752 | eval "$ac_cv_use_streams" | |
5753 | if test "$no_cache" != 1; then | |
5754 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5755 | fi | |
5756 | ||
5757 | if test "$wxUSE_STREAMS" = yes; then | |
5758 | echo "$as_me:$LINENO: result: yes" >&5 | |
5759 | echo "${ECHO_T}yes" >&6 | |
5760 | else | |
5761 | echo "$as_me:$LINENO: result: no" >&5 | |
5762 | echo "${ECHO_T}no" >&6 | |
5763 | fi | |
5764 | ||
5765 | ||
a848cd7e SC |
5766 | enablestring= |
5767 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5768 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5769 | no_cache=0 | |
5770 | # Check whether --enable-system_options or --disable-system_options was given. | |
5771 | if test "${enable_system_options+set}" = set; then | |
5772 | enableval="$enable_system_options" | |
5773 | ||
5774 | if test "$enableval" = yes; then | |
5775 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5776 | else | |
5777 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5778 | fi | |
5779 | ||
5780 | else | |
5781 | ||
5782 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5783 | if test "x$LINE" != x ; then | |
5784 | eval "DEFAULT_$LINE" | |
5785 | else | |
5786 | no_cache=1 | |
5787 | fi | |
5788 | ||
5789 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5790 | ||
5791 | fi; | |
5792 | ||
5793 | eval "$ac_cv_use_system_options" | |
5794 | if test "$no_cache" != 1; then | |
5795 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5796 | fi | |
5797 | ||
5798 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5799 | echo "$as_me:$LINENO: result: yes" >&5 | |
5800 | echo "${ECHO_T}yes" >&6 | |
5801 | else | |
5802 | echo "$as_me:$LINENO: result: no" >&5 | |
5803 | echo "${ECHO_T}no" >&6 | |
5804 | fi | |
5805 | ||
5806 | ||
5807 | enablestring= | |
5808 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5809 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5810 | no_cache=0 | |
5811 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5812 | if test "${enable_textbuf+set}" = set; then | |
5813 | enableval="$enable_textbuf" | |
5814 | ||
5815 | if test "$enableval" = yes; then | |
5816 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5817 | else | |
5818 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5819 | fi | |
5820 | ||
5821 | else | |
5822 | ||
5823 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5824 | if test "x$LINE" != x ; then | |
5825 | eval "DEFAULT_$LINE" | |
5826 | else | |
5827 | no_cache=1 | |
5828 | fi | |
5829 | ||
5830 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5831 | ||
5832 | fi; | |
5833 | ||
5834 | eval "$ac_cv_use_textbuf" | |
5835 | if test "$no_cache" != 1; then | |
5836 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5837 | fi | |
5838 | ||
5839 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5840 | echo "$as_me:$LINENO: result: yes" >&5 | |
5841 | echo "${ECHO_T}yes" >&6 | |
5842 | else | |
5843 | echo "$as_me:$LINENO: result: no" >&5 | |
5844 | echo "${ECHO_T}no" >&6 | |
5845 | fi | |
5846 | ||
5847 | ||
5848 | enablestring= | |
5849 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5850 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5851 | no_cache=0 | |
5852 | # Check whether --enable-textfile or --disable-textfile was given. | |
5853 | if test "${enable_textfile+set}" = set; then | |
5854 | enableval="$enable_textfile" | |
5855 | ||
5856 | if test "$enableval" = yes; then | |
5857 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5858 | else | |
5859 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5860 | fi | |
5861 | ||
5862 | else | |
5863 | ||
5864 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5865 | if test "x$LINE" != x ; then | |
5866 | eval "DEFAULT_$LINE" | |
5867 | else | |
5868 | no_cache=1 | |
5869 | fi | |
5870 | ||
5871 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5872 | ||
5873 | fi; | |
5874 | ||
5875 | eval "$ac_cv_use_textfile" | |
5876 | if test "$no_cache" != 1; then | |
5877 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5878 | fi | |
5879 | ||
5880 | if test "$wxUSE_TEXTFILE" = yes; then | |
5881 | echo "$as_me:$LINENO: result: yes" >&5 | |
5882 | echo "${ECHO_T}yes" >&6 | |
5883 | else | |
5884 | echo "$as_me:$LINENO: result: no" >&5 | |
5885 | echo "${ECHO_T}no" >&6 | |
5886 | fi | |
5887 | ||
5888 | ||
5889 | enablestring= | |
5890 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5891 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5892 | no_cache=0 | |
5893 | # Check whether --enable-timer or --disable-timer was given. | |
5894 | if test "${enable_timer+set}" = set; then | |
5895 | enableval="$enable_timer" | |
5896 | ||
5897 | if test "$enableval" = yes; then | |
5898 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5899 | else | |
5900 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5901 | fi | |
5902 | ||
5903 | else | |
5904 | ||
5905 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5906 | if test "x$LINE" != x ; then | |
5907 | eval "DEFAULT_$LINE" | |
5908 | else | |
5909 | no_cache=1 | |
5910 | fi | |
5911 | ||
5912 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5913 | ||
5914 | fi; | |
5915 | ||
5916 | eval "$ac_cv_use_timer" | |
5917 | if test "$no_cache" != 1; then | |
5918 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5919 | fi | |
5920 | ||
5921 | if test "$wxUSE_TIMER" = yes; then | |
5922 | echo "$as_me:$LINENO: result: yes" >&5 | |
5923 | echo "${ECHO_T}yes" >&6 | |
5924 | else | |
5925 | echo "$as_me:$LINENO: result: no" >&5 | |
5926 | echo "${ECHO_T}no" >&6 | |
5927 | fi | |
5928 | ||
5929 | ||
5930 | enablestring= | |
5931 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5932 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5933 | no_cache=0 | |
5934 | # Check whether --enable-unicode or --disable-unicode was given. | |
5935 | if test "${enable_unicode+set}" = set; then | |
5936 | enableval="$enable_unicode" | |
5937 | ||
5938 | if test "$enableval" = yes; then | |
5939 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5940 | else | |
5941 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5942 | fi | |
5943 | ||
5944 | else | |
5945 | ||
5946 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5947 | if test "x$LINE" != x ; then | |
5948 | eval "DEFAULT_$LINE" | |
5949 | else | |
5950 | no_cache=1 | |
5951 | fi | |
5952 | ||
5953 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5954 | ||
5955 | fi; | |
5956 | ||
5957 | eval "$ac_cv_use_unicode" | |
5958 | if test "$no_cache" != 1; then | |
5959 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5960 | fi | |
5961 | ||
5962 | if test "$wxUSE_UNICODE" = yes; then | |
5963 | echo "$as_me:$LINENO: result: yes" >&5 | |
5964 | echo "${ECHO_T}yes" >&6 | |
5965 | else | |
5966 | echo "$as_me:$LINENO: result: no" >&5 | |
5967 | echo "${ECHO_T}no" >&6 | |
5968 | fi | |
5969 | ||
5970 | ||
5971 | enablestring= | |
5972 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5973 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5974 | no_cache=0 | |
5975 | # Check whether --enable-sound or --disable-sound was given. | |
5976 | if test "${enable_sound+set}" = set; then | |
5977 | enableval="$enable_sound" | |
5978 | ||
5979 | if test "$enableval" = yes; then | |
5980 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5981 | else | |
5982 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5983 | fi | |
5984 | ||
5985 | else | |
5986 | ||
5987 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5988 | if test "x$LINE" != x ; then | |
5989 | eval "DEFAULT_$LINE" | |
5990 | else | |
5991 | no_cache=1 | |
5992 | fi | |
5993 | ||
5994 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5995 | ||
5996 | fi; | |
5997 | ||
5998 | eval "$ac_cv_use_sound" | |
5999 | if test "$no_cache" != 1; then | |
6000 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6001 | fi | |
6002 | ||
6003 | if test "$wxUSE_SOUND" = yes; then | |
6004 | echo "$as_me:$LINENO: result: yes" >&5 | |
6005 | echo "${ECHO_T}yes" >&6 | |
6006 | else | |
6007 | echo "$as_me:$LINENO: result: no" >&5 | |
6008 | echo "${ECHO_T}no" >&6 | |
6009 | fi | |
6010 | ||
6011 | ||
3b57de8b RL |
6012 | enablestring= |
6013 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6014 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6015 | no_cache=0 | |
6016 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6017 | if test "${enable_mediactrl+set}" = set; then | |
6018 | enableval="$enable_mediactrl" | |
6019 | ||
6020 | if test "$enableval" = yes; then | |
6021 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6022 | else | |
6023 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6024 | fi | |
6025 | ||
6026 | else | |
6027 | ||
6028 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6029 | if test "x$LINE" != x ; then | |
6030 | eval "DEFAULT_$LINE" | |
6031 | else | |
6032 | no_cache=1 | |
6033 | fi | |
6034 | ||
6035 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6036 | ||
6037 | fi; | |
6038 | ||
6039 | eval "$ac_cv_use_mediactrl" | |
6040 | if test "$no_cache" != 1; then | |
6041 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6042 | fi | |
6043 | ||
6044 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6045 | echo "$as_me:$LINENO: result: yes" >&5 | |
6046 | echo "${ECHO_T}yes" >&6 | |
6047 | else | |
6048 | echo "$as_me:$LINENO: result: no" >&5 | |
6049 | echo "${ECHO_T}no" >&6 | |
6050 | fi | |
6051 | ||
6052 | ||
a848cd7e SC |
6053 | enablestring= |
6054 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6055 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6056 | no_cache=0 | |
6057 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6058 | if test "${enable_wxprintfv+set}" = set; then | |
6059 | enableval="$enable_wxprintfv" | |
6060 | ||
6061 | if test "$enableval" = yes; then | |
6062 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6063 | else | |
6064 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6065 | fi | |
6066 | ||
6067 | else | |
6068 | ||
6069 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6070 | if test "x$LINE" != x ; then | |
6071 | eval "DEFAULT_$LINE" | |
6072 | else | |
6073 | no_cache=1 | |
6074 | fi | |
6075 | ||
6076 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6077 | ||
6078 | fi; | |
6079 | ||
6080 | eval "$ac_cv_use_wxprintfv" | |
6081 | if test "$no_cache" != 1; then | |
6082 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6083 | fi | |
6084 | ||
6085 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6086 | echo "$as_me:$LINENO: result: yes" >&5 | |
6087 | echo "${ECHO_T}yes" >&6 | |
6088 | else | |
6089 | echo "$as_me:$LINENO: result: no" >&5 | |
6090 | echo "${ECHO_T}no" >&6 | |
6091 | fi | |
6092 | ||
6093 | ||
6094 | enablestring= | |
6095 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6096 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6097 | no_cache=0 | |
6098 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6099 | if test "${enable_zipstream+set}" = set; then | |
6100 | enableval="$enable_zipstream" | |
6101 | ||
6102 | if test "$enableval" = yes; then | |
6103 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6104 | else | |
6105 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6106 | fi | |
6107 | ||
6108 | else | |
6109 | ||
6110 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6111 | if test "x$LINE" != x ; then | |
6112 | eval "DEFAULT_$LINE" | |
6113 | else | |
6114 | no_cache=1 | |
6115 | fi | |
6116 | ||
6117 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6118 | ||
6119 | fi; | |
6120 | ||
6121 | eval "$ac_cv_use_zipstream" | |
6122 | if test "$no_cache" != 1; then | |
6123 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6124 | fi | |
6125 | ||
6126 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6127 | echo "$as_me:$LINENO: result: yes" >&5 | |
6128 | echo "${ECHO_T}yes" >&6 | |
6129 | else | |
6130 | echo "$as_me:$LINENO: result: no" >&5 | |
6131 | echo "${ECHO_T}no" >&6 | |
6132 | fi | |
6133 | ||
6134 | ||
a848cd7e SC |
6135 | |
6136 | enablestring= | |
6137 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6138 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6139 | no_cache=0 | |
6140 | # Check whether --enable-url or --disable-url was given. | |
6141 | if test "${enable_url+set}" = set; then | |
6142 | enableval="$enable_url" | |
6143 | ||
6144 | if test "$enableval" = yes; then | |
6145 | ac_cv_use_url='wxUSE_URL=yes' | |
6146 | else | |
6147 | ac_cv_use_url='wxUSE_URL=no' | |
6148 | fi | |
6149 | ||
6150 | else | |
6151 | ||
6152 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6153 | if test "x$LINE" != x ; then | |
6154 | eval "DEFAULT_$LINE" | |
6155 | else | |
6156 | no_cache=1 | |
6157 | fi | |
6158 | ||
6159 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6160 | ||
6161 | fi; | |
6162 | ||
6163 | eval "$ac_cv_use_url" | |
6164 | if test "$no_cache" != 1; then | |
6165 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6166 | fi | |
6167 | ||
6168 | if test "$wxUSE_URL" = yes; then | |
6169 | echo "$as_me:$LINENO: result: yes" >&5 | |
6170 | echo "${ECHO_T}yes" >&6 | |
6171 | else | |
6172 | echo "$as_me:$LINENO: result: no" >&5 | |
6173 | echo "${ECHO_T}no" >&6 | |
6174 | fi | |
6175 | ||
6176 | ||
6177 | enablestring= | |
6178 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6179 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6180 | no_cache=0 | |
6181 | # Check whether --enable-protocol or --disable-protocol was given. | |
6182 | if test "${enable_protocol+set}" = set; then | |
6183 | enableval="$enable_protocol" | |
6184 | ||
6185 | if test "$enableval" = yes; then | |
6186 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6187 | else | |
6188 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6189 | fi | |
6190 | ||
6191 | else | |
6192 | ||
6193 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6194 | if test "x$LINE" != x ; then | |
6195 | eval "DEFAULT_$LINE" | |
6196 | else | |
6197 | no_cache=1 | |
6198 | fi | |
6199 | ||
6200 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6201 | ||
6202 | fi; | |
6203 | ||
6204 | eval "$ac_cv_use_protocol" | |
6205 | if test "$no_cache" != 1; then | |
6206 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6207 | fi | |
6208 | ||
6209 | if test "$wxUSE_PROTOCOL" = yes; then | |
6210 | echo "$as_me:$LINENO: result: yes" >&5 | |
6211 | echo "${ECHO_T}yes" >&6 | |
6212 | else | |
6213 | echo "$as_me:$LINENO: result: no" >&5 | |
6214 | echo "${ECHO_T}no" >&6 | |
6215 | fi | |
6216 | ||
6217 | ||
6218 | enablestring= | |
6219 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6220 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6221 | no_cache=0 | |
6222 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6223 | if test "${enable_protocol_http+set}" = set; then | |
6224 | enableval="$enable_protocol_http" | |
6225 | ||
6226 | if test "$enableval" = yes; then | |
6227 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6228 | else | |
6229 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6230 | fi | |
6231 | ||
6232 | else | |
6233 | ||
6234 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6235 | if test "x$LINE" != x ; then | |
6236 | eval "DEFAULT_$LINE" | |
6237 | else | |
6238 | no_cache=1 | |
6239 | fi | |
6240 | ||
6241 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6242 | ||
6243 | fi; | |
6244 | ||
6245 | eval "$ac_cv_use_protocol_http" | |
6246 | if test "$no_cache" != 1; then | |
6247 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6248 | fi | |
6249 | ||
6250 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6251 | echo "$as_me:$LINENO: result: yes" >&5 | |
6252 | echo "${ECHO_T}yes" >&6 | |
6253 | else | |
6254 | echo "$as_me:$LINENO: result: no" >&5 | |
6255 | echo "${ECHO_T}no" >&6 | |
6256 | fi | |
6257 | ||
6258 | ||
6259 | enablestring= | |
6260 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6261 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6262 | no_cache=0 | |
6263 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6264 | if test "${enable_protocol_ftp+set}" = set; then | |
6265 | enableval="$enable_protocol_ftp" | |
6266 | ||
6267 | if test "$enableval" = yes; then | |
6268 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6269 | else | |
6270 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6271 | fi | |
6272 | ||
6273 | else | |
6274 | ||
6275 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6276 | if test "x$LINE" != x ; then | |
6277 | eval "DEFAULT_$LINE" | |
6278 | else | |
6279 | no_cache=1 | |
6280 | fi | |
6281 | ||
6282 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6283 | ||
6284 | fi; | |
6285 | ||
6286 | eval "$ac_cv_use_protocol_ftp" | |
6287 | if test "$no_cache" != 1; then | |
6288 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6289 | fi | |
6290 | ||
6291 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6292 | echo "$as_me:$LINENO: result: yes" >&5 | |
6293 | echo "${ECHO_T}yes" >&6 | |
6294 | else | |
6295 | echo "$as_me:$LINENO: result: no" >&5 | |
6296 | echo "${ECHO_T}no" >&6 | |
6297 | fi | |
6298 | ||
6299 | ||
6300 | enablestring= | |
6301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6302 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6303 | no_cache=0 | |
6304 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6305 | if test "${enable_protocol_file+set}" = set; then | |
6306 | enableval="$enable_protocol_file" | |
6307 | ||
6308 | if test "$enableval" = yes; then | |
6309 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6310 | else | |
6311 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6312 | fi | |
6313 | ||
6314 | else | |
6315 | ||
6316 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6317 | if test "x$LINE" != x ; then | |
6318 | eval "DEFAULT_$LINE" | |
6319 | else | |
6320 | no_cache=1 | |
6321 | fi | |
6322 | ||
6323 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6324 | ||
6325 | fi; | |
6326 | ||
6327 | eval "$ac_cv_use_protocol_file" | |
6328 | if test "$no_cache" != 1; then | |
6329 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6330 | fi | |
6331 | ||
6332 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6333 | echo "$as_me:$LINENO: result: yes" >&5 | |
6334 | echo "${ECHO_T}yes" >&6 | |
6335 | else | |
6336 | echo "$as_me:$LINENO: result: no" >&5 | |
6337 | echo "${ECHO_T}no" >&6 | |
6338 | fi | |
6339 | ||
6340 | ||
6341 | ||
6342 | ||
6343 | ||
6344 | enablestring= | |
6345 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6346 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6347 | no_cache=0 | |
6348 | # Check whether --enable-threads or --disable-threads was given. | |
6349 | if test "${enable_threads+set}" = set; then | |
6350 | enableval="$enable_threads" | |
6351 | ||
6352 | if test "$enableval" = yes; then | |
6353 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6354 | else | |
6355 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6356 | fi | |
6357 | ||
6358 | else | |
6359 | ||
6360 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6361 | if test "x$LINE" != x ; then | |
6362 | eval "DEFAULT_$LINE" | |
6363 | else | |
6364 | no_cache=1 | |
6365 | fi | |
6366 | ||
6367 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6368 | ||
6369 | fi; | |
6370 | ||
6371 | eval "$ac_cv_use_threads" | |
6372 | if test "$no_cache" != 1; then | |
6373 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6374 | fi | |
6375 | ||
6376 | if test "$wxUSE_THREADS" = yes; then | |
6377 | echo "$as_me:$LINENO: result: yes" >&5 | |
6378 | echo "${ECHO_T}yes" >&6 | |
6379 | else | |
6380 | echo "$as_me:$LINENO: result: no" >&5 | |
6381 | echo "${ECHO_T}no" >&6 | |
6382 | fi | |
6383 | ||
6384 | ||
6385 | if test "$wxUSE_GUI" = "yes"; then | |
6386 | ||
6387 | ||
6388 | ||
6389 | enablestring= | |
6390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6391 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6392 | no_cache=0 | |
6393 | # Check whether --enable-docview or --disable-docview was given. | |
6394 | if test "${enable_docview+set}" = set; then | |
6395 | enableval="$enable_docview" | |
6396 | ||
6397 | if test "$enableval" = yes; then | |
6398 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6399 | else | |
6400 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6401 | fi | |
6402 | ||
6403 | else | |
6404 | ||
6405 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6406 | if test "x$LINE" != x ; then | |
6407 | eval "DEFAULT_$LINE" | |
6408 | else | |
6409 | no_cache=1 | |
6410 | fi | |
6411 | ||
6412 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6413 | ||
6414 | fi; | |
6415 | ||
6416 | eval "$ac_cv_use_docview" | |
6417 | if test "$no_cache" != 1; then | |
6418 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6419 | fi | |
6420 | ||
6421 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6422 | echo "$as_me:$LINENO: result: yes" >&5 | |
6423 | echo "${ECHO_T}yes" >&6 | |
6424 | else | |
6425 | echo "$as_me:$LINENO: result: no" >&5 | |
6426 | echo "${ECHO_T}no" >&6 | |
6427 | fi | |
6428 | ||
6429 | ||
6430 | enablestring= | |
6431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6432 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6433 | no_cache=0 | |
6434 | # Check whether --enable-help or --disable-help was given. | |
6435 | if test "${enable_help+set}" = set; then | |
6436 | enableval="$enable_help" | |
6437 | ||
6438 | if test "$enableval" = yes; then | |
6439 | ac_cv_use_help='wxUSE_HELP=yes' | |
6440 | else | |
6441 | ac_cv_use_help='wxUSE_HELP=no' | |
6442 | fi | |
6443 | ||
6444 | else | |
6445 | ||
6446 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6447 | if test "x$LINE" != x ; then | |
6448 | eval "DEFAULT_$LINE" | |
6449 | else | |
6450 | no_cache=1 | |
6451 | fi | |
6452 | ||
6453 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6454 | ||
6455 | fi; | |
6456 | ||
6457 | eval "$ac_cv_use_help" | |
6458 | if test "$no_cache" != 1; then | |
6459 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6460 | fi | |
6461 | ||
6462 | if test "$wxUSE_HELP" = yes; then | |
6463 | echo "$as_me:$LINENO: result: yes" >&5 | |
6464 | echo "${ECHO_T}yes" >&6 | |
6465 | else | |
6466 | echo "$as_me:$LINENO: result: no" >&5 | |
6467 | echo "${ECHO_T}no" >&6 | |
6468 | fi | |
6469 | ||
6470 | ||
6471 | enablestring= | |
6472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6473 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6474 | no_cache=0 | |
6475 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6476 | if test "${enable_mshtmlhelp+set}" = set; then | |
6477 | enableval="$enable_mshtmlhelp" | |
6478 | ||
6479 | if test "$enableval" = yes; then | |
6480 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6481 | else | |
6482 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6483 | fi | |
6484 | ||
6485 | else | |
6486 | ||
6487 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6488 | if test "x$LINE" != x ; then | |
6489 | eval "DEFAULT_$LINE" | |
6490 | else | |
6491 | no_cache=1 | |
6492 | fi | |
6493 | ||
6494 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6495 | ||
6496 | fi; | |
6497 | ||
6498 | eval "$ac_cv_use_mshtmlhelp" | |
6499 | if test "$no_cache" != 1; then | |
6500 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6501 | fi | |
6502 | ||
6503 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6504 | echo "$as_me:$LINENO: result: yes" >&5 | |
6505 | echo "${ECHO_T}yes" >&6 | |
6506 | else | |
6507 | echo "$as_me:$LINENO: result: no" >&5 | |
6508 | echo "${ECHO_T}no" >&6 | |
6509 | fi | |
6510 | ||
6511 | ||
6512 | enablestring= | |
6513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6514 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6515 | no_cache=0 | |
6516 | # Check whether --enable-html or --disable-html was given. | |
6517 | if test "${enable_html+set}" = set; then | |
6518 | enableval="$enable_html" | |
6519 | ||
6520 | if test "$enableval" = yes; then | |
6521 | ac_cv_use_html='wxUSE_HTML=yes' | |
6522 | else | |
6523 | ac_cv_use_html='wxUSE_HTML=no' | |
6524 | fi | |
6525 | ||
6526 | else | |
6527 | ||
6528 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6529 | if test "x$LINE" != x ; then | |
6530 | eval "DEFAULT_$LINE" | |
6531 | else | |
6532 | no_cache=1 | |
6533 | fi | |
6534 | ||
6535 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6536 | ||
6537 | fi; | |
6538 | ||
6539 | eval "$ac_cv_use_html" | |
6540 | if test "$no_cache" != 1; then | |
6541 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6542 | fi | |
6543 | ||
6544 | if test "$wxUSE_HTML" = yes; then | |
6545 | echo "$as_me:$LINENO: result: yes" >&5 | |
6546 | echo "${ECHO_T}yes" >&6 | |
6547 | else | |
6548 | echo "$as_me:$LINENO: result: no" >&5 | |
6549 | echo "${ECHO_T}no" >&6 | |
6550 | fi | |
6551 | ||
6552 | ||
6553 | enablestring= | |
6554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6555 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6556 | no_cache=0 | |
6557 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6558 | if test "${enable_htmlhelp+set}" = set; then | |
6559 | enableval="$enable_htmlhelp" | |
6560 | ||
6561 | if test "$enableval" = yes; then | |
6562 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6563 | else | |
6564 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6565 | fi | |
6566 | ||
6567 | else | |
6568 | ||
6569 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6570 | if test "x$LINE" != x ; then | |
6571 | eval "DEFAULT_$LINE" | |
6572 | else | |
6573 | no_cache=1 | |
6574 | fi | |
6575 | ||
6576 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6577 | ||
6578 | fi; | |
6579 | ||
6580 | eval "$ac_cv_use_htmlhelp" | |
6581 | if test "$no_cache" != 1; then | |
6582 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6583 | fi | |
6584 | ||
6585 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6586 | echo "$as_me:$LINENO: result: yes" >&5 | |
6587 | echo "${ECHO_T}yes" >&6 | |
6588 | else | |
6589 | echo "$as_me:$LINENO: result: no" >&5 | |
6590 | echo "${ECHO_T}no" >&6 | |
6591 | fi | |
6592 | ||
6593 | ||
9a8f0513 VS |
6594 | enablestring= |
6595 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6596 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6597 | no_cache=0 | |
6598 | # Check whether --enable-xrc or --disable-xrc was given. | |
6599 | if test "${enable_xrc+set}" = set; then | |
6600 | enableval="$enable_xrc" | |
6601 | ||
6602 | if test "$enableval" = yes; then | |
6603 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6604 | else | |
6605 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6606 | fi | |
6607 | ||
6608 | else | |
6609 | ||
6610 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6611 | if test "x$LINE" != x ; then | |
6612 | eval "DEFAULT_$LINE" | |
6613 | else | |
6614 | no_cache=1 | |
6615 | fi | |
6616 | ||
6617 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6618 | ||
6619 | fi; | |
6620 | ||
6621 | eval "$ac_cv_use_xrc" | |
6622 | if test "$no_cache" != 1; then | |
6623 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6624 | fi | |
6625 | ||
6626 | if test "$wxUSE_XRC" = yes; then | |
6627 | echo "$as_me:$LINENO: result: yes" >&5 | |
6628 | echo "${ECHO_T}yes" >&6 | |
6629 | else | |
6630 | echo "$as_me:$LINENO: result: no" >&5 | |
6631 | echo "${ECHO_T}no" >&6 | |
6632 | fi | |
6633 | ||
6634 | ||
a848cd7e SC |
6635 | enablestring= |
6636 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6637 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6638 | no_cache=0 | |
6639 | # Check whether --enable-constraints or --disable-constraints was given. | |
6640 | if test "${enable_constraints+set}" = set; then | |
6641 | enableval="$enable_constraints" | |
6642 | ||
6643 | if test "$enableval" = yes; then | |
6644 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6645 | else | |
6646 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6647 | fi | |
6648 | ||
6649 | else | |
6650 | ||
6651 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6652 | if test "x$LINE" != x ; then | |
6653 | eval "DEFAULT_$LINE" | |
6654 | else | |
6655 | no_cache=1 | |
6656 | fi | |
6657 | ||
6658 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6659 | ||
6660 | fi; | |
6661 | ||
6662 | eval "$ac_cv_use_constraints" | |
6663 | if test "$no_cache" != 1; then | |
6664 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6665 | fi | |
6666 | ||
6667 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6668 | echo "$as_me:$LINENO: result: yes" >&5 | |
6669 | echo "${ECHO_T}yes" >&6 | |
6670 | else | |
6671 | echo "$as_me:$LINENO: result: no" >&5 | |
6672 | echo "${ECHO_T}no" >&6 | |
6673 | fi | |
6674 | ||
6675 | ||
6676 | enablestring= | |
6677 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6678 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6679 | no_cache=0 | |
6680 | # Check whether --enable-printarch or --disable-printarch was given. | |
6681 | if test "${enable_printarch+set}" = set; then | |
6682 | enableval="$enable_printarch" | |
6683 | ||
6684 | if test "$enableval" = yes; then | |
6685 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6686 | else | |
6687 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6688 | fi | |
6689 | ||
6690 | else | |
6691 | ||
6692 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6693 | if test "x$LINE" != x ; then | |
6694 | eval "DEFAULT_$LINE" | |
6695 | else | |
6696 | no_cache=1 | |
6697 | fi | |
6698 | ||
6699 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6700 | ||
6701 | fi; | |
6702 | ||
6703 | eval "$ac_cv_use_printarch" | |
6704 | if test "$no_cache" != 1; then | |
6705 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6706 | fi | |
6707 | ||
6708 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6709 | echo "$as_me:$LINENO: result: yes" >&5 | |
6710 | echo "${ECHO_T}yes" >&6 | |
6711 | else | |
6712 | echo "$as_me:$LINENO: result: no" >&5 | |
6713 | echo "${ECHO_T}no" >&6 | |
6714 | fi | |
6715 | ||
6716 | ||
6717 | enablestring= | |
6718 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6719 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6720 | no_cache=0 | |
6721 | # Check whether --enable-mdi or --disable-mdi was given. | |
6722 | if test "${enable_mdi+set}" = set; then | |
6723 | enableval="$enable_mdi" | |
6724 | ||
6725 | if test "$enableval" = yes; then | |
8a7b1113 | 6726 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6727 | else |
8a7b1113 | 6728 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6729 | fi |
6730 | ||
6731 | else | |
6732 | ||
8a7b1113 | 6733 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6734 | if test "x$LINE" != x ; then |
6735 | eval "DEFAULT_$LINE" | |
6736 | else | |
6737 | no_cache=1 | |
6738 | fi | |
6739 | ||
8a7b1113 | 6740 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6741 | |
6742 | fi; | |
6743 | ||
6744 | eval "$ac_cv_use_mdi" | |
6745 | if test "$no_cache" != 1; then | |
6746 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6747 | fi | |
6748 | ||
8a7b1113 VZ |
6749 | if test "$wxUSE_MDI" = yes; then |
6750 | echo "$as_me:$LINENO: result: yes" >&5 | |
6751 | echo "${ECHO_T}yes" >&6 | |
6752 | else | |
6753 | echo "$as_me:$LINENO: result: no" >&5 | |
6754 | echo "${ECHO_T}no" >&6 | |
6755 | fi | |
6756 | ||
6757 | ||
6758 | enablestring= | |
6759 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6760 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6761 | no_cache=0 | |
6762 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6763 | if test "${enable_mdidoc+set}" = set; then | |
6764 | enableval="$enable_mdidoc" | |
6765 | ||
6766 | if test "$enableval" = yes; then | |
6767 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6768 | else | |
6769 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6770 | fi | |
6771 | ||
6772 | else | |
6773 | ||
6774 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6775 | if test "x$LINE" != x ; then | |
6776 | eval "DEFAULT_$LINE" | |
6777 | else | |
6778 | no_cache=1 | |
6779 | fi | |
6780 | ||
6781 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6782 | ||
6783 | fi; | |
6784 | ||
6785 | eval "$ac_cv_use_mdidoc" | |
6786 | if test "$no_cache" != 1; then | |
6787 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6788 | fi | |
6789 | ||
a848cd7e SC |
6790 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6791 | echo "$as_me:$LINENO: result: yes" >&5 | |
6792 | echo "${ECHO_T}yes" >&6 | |
6793 | else | |
6794 | echo "$as_me:$LINENO: result: no" >&5 | |
6795 | echo "${ECHO_T}no" >&6 | |
6796 | fi | |
6797 | ||
6798 | ||
6799 | enablestring= | |
6800 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6801 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6802 | no_cache=0 | |
6803 | # Check whether --enable-loggui or --disable-loggui was given. | |
6804 | if test "${enable_loggui+set}" = set; then | |
6805 | enableval="$enable_loggui" | |
6806 | ||
6807 | if test "$enableval" = yes; then | |
6808 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6809 | else | |
6810 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6811 | fi | |
6812 | ||
6813 | else | |
6814 | ||
6815 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6816 | if test "x$LINE" != x ; then | |
6817 | eval "DEFAULT_$LINE" | |
6818 | else | |
6819 | no_cache=1 | |
6820 | fi | |
6821 | ||
6822 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6823 | ||
6824 | fi; | |
6825 | ||
6826 | eval "$ac_cv_use_loggui" | |
6827 | if test "$no_cache" != 1; then | |
6828 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6829 | fi | |
6830 | ||
6831 | if test "$wxUSE_LOGGUI" = yes; then | |
6832 | echo "$as_me:$LINENO: result: yes" >&5 | |
6833 | echo "${ECHO_T}yes" >&6 | |
6834 | else | |
6835 | echo "$as_me:$LINENO: result: no" >&5 | |
6836 | echo "${ECHO_T}no" >&6 | |
6837 | fi | |
6838 | ||
6839 | ||
6840 | enablestring= | |
6841 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6842 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6843 | no_cache=0 | |
6844 | # Check whether --enable-logwin or --disable-logwin was given. | |
6845 | if test "${enable_logwin+set}" = set; then | |
6846 | enableval="$enable_logwin" | |
6847 | ||
6848 | if test "$enableval" = yes; then | |
6849 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6850 | else | |
6851 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6852 | fi | |
6853 | ||
6854 | else | |
6855 | ||
6856 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6857 | if test "x$LINE" != x ; then | |
6858 | eval "DEFAULT_$LINE" | |
6859 | else | |
6860 | no_cache=1 | |
6861 | fi | |
6862 | ||
6863 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6864 | ||
6865 | fi; | |
6866 | ||
6867 | eval "$ac_cv_use_logwin" | |
6868 | if test "$no_cache" != 1; then | |
6869 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6870 | fi | |
6871 | ||
6872 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6873 | echo "$as_me:$LINENO: result: yes" >&5 | |
6874 | echo "${ECHO_T}yes" >&6 | |
6875 | else | |
6876 | echo "$as_me:$LINENO: result: no" >&5 | |
6877 | echo "${ECHO_T}no" >&6 | |
6878 | fi | |
6879 | ||
6880 | ||
6881 | enablestring= | |
6882 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6883 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6884 | no_cache=0 | |
6885 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6886 | if test "${enable_logdialog+set}" = set; then | |
6887 | enableval="$enable_logdialog" | |
6888 | ||
6889 | if test "$enableval" = yes; then | |
6890 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6891 | else | |
6892 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6893 | fi | |
6894 | ||
6895 | else | |
6896 | ||
6897 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6898 | if test "x$LINE" != x ; then | |
6899 | eval "DEFAULT_$LINE" | |
6900 | else | |
6901 | no_cache=1 | |
6902 | fi | |
6903 | ||
6904 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6905 | ||
6906 | fi; | |
6907 | ||
6908 | eval "$ac_cv_use_logdialog" | |
6909 | if test "$no_cache" != 1; then | |
6910 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6911 | fi | |
6912 | ||
6913 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6914 | echo "$as_me:$LINENO: result: yes" >&5 | |
6915 | echo "${ECHO_T}yes" >&6 | |
6916 | else | |
6917 | echo "$as_me:$LINENO: result: no" >&5 | |
6918 | echo "${ECHO_T}no" >&6 | |
6919 | fi | |
6920 | ||
6921 | ||
646b6ec1 VS |
6922 | enablestring= |
6923 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6924 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6925 | no_cache=0 | |
6926 | # Check whether --enable-webkit or --disable-webkit was given. | |
6927 | if test "${enable_webkit+set}" = set; then | |
6928 | enableval="$enable_webkit" | |
6929 | ||
6930 | if test "$enableval" = yes; then | |
6931 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6932 | else | |
6933 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6934 | fi | |
6935 | ||
6936 | else | |
6937 | ||
6938 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6939 | if test "x$LINE" != x ; then | |
6940 | eval "DEFAULT_$LINE" | |
6941 | else | |
6942 | no_cache=1 | |
6943 | fi | |
6944 | ||
6945 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6946 | ||
6947 | fi; | |
6948 | ||
6949 | eval "$ac_cv_use_webkit" | |
6950 | if test "$no_cache" != 1; then | |
6951 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6952 | fi | |
6953 | ||
6954 | if test "$wxUSE_WEBKIT" = yes; then | |
6955 | echo "$as_me:$LINENO: result: yes" >&5 | |
6956 | echo "${ECHO_T}yes" >&6 | |
6957 | else | |
6958 | echo "$as_me:$LINENO: result: no" >&5 | |
6959 | echo "${ECHO_T}no" >&6 | |
6960 | fi | |
6961 | ||
6962 | ||
a848cd7e SC |
6963 | |
6964 | enablestring= | |
6965 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6966 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6967 | no_cache=0 | |
6968 | # Check whether --enable-postscript or --disable-postscript was given. | |
6969 | if test "${enable_postscript+set}" = set; then | |
6970 | enableval="$enable_postscript" | |
6971 | ||
6972 | if test "$enableval" = yes; then | |
6973 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6974 | else | |
6975 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6976 | fi | |
6977 | ||
6978 | else | |
6979 | ||
6980 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6981 | if test "x$LINE" != x ; then | |
6982 | eval "DEFAULT_$LINE" | |
6983 | else | |
6984 | no_cache=1 | |
6985 | fi | |
6986 | ||
6987 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6988 | ||
6989 | fi; | |
6990 | ||
6991 | eval "$ac_cv_use_postscript" | |
6992 | if test "$no_cache" != 1; then | |
6993 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6994 | fi | |
6995 | ||
6996 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6997 | echo "$as_me:$LINENO: result: yes" >&5 | |
6998 | echo "${ECHO_T}yes" >&6 | |
6999 | else | |
7000 | echo "$as_me:$LINENO: result: no" >&5 | |
7001 | echo "${ECHO_T}no" >&6 | |
7002 | fi | |
7003 | ||
7004 | ||
7005 | ||
7006 | ||
7007 | ||
7008 | enablestring= | |
7009 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7010 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7011 | no_cache=0 | |
7012 | # Check whether --enable-prologio or --disable-prologio was given. | |
7013 | if test "${enable_prologio+set}" = set; then | |
7014 | enableval="$enable_prologio" | |
7015 | ||
7016 | if test "$enableval" = yes; then | |
7017 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7018 | else | |
7019 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7020 | fi | |
7021 | ||
7022 | else | |
7023 | ||
7024 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7025 | if test "x$LINE" != x ; then | |
7026 | eval "DEFAULT_$LINE" | |
7027 | else | |
7028 | no_cache=1 | |
7029 | fi | |
7030 | ||
7031 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7032 | ||
7033 | fi; | |
7034 | ||
7035 | eval "$ac_cv_use_prologio" | |
7036 | if test "$no_cache" != 1; then | |
7037 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7038 | fi | |
7039 | ||
7040 | if test "$wxUSE_PROLOGIO" = yes; then | |
7041 | echo "$as_me:$LINENO: result: yes" >&5 | |
7042 | echo "${ECHO_T}yes" >&6 | |
7043 | else | |
7044 | echo "$as_me:$LINENO: result: no" >&5 | |
7045 | echo "${ECHO_T}no" >&6 | |
7046 | fi | |
7047 | ||
7048 | ||
7049 | enablestring= | |
7050 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7051 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7052 | no_cache=0 | |
7053 | # Check whether --enable-resources or --disable-resources was given. | |
7054 | if test "${enable_resources+set}" = set; then | |
7055 | enableval="$enable_resources" | |
7056 | ||
7057 | if test "$enableval" = yes; then | |
7058 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7059 | else | |
7060 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7061 | fi | |
7062 | ||
7063 | else | |
7064 | ||
7065 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7066 | if test "x$LINE" != x ; then | |
7067 | eval "DEFAULT_$LINE" | |
7068 | else | |
7069 | no_cache=1 | |
7070 | fi | |
7071 | ||
7072 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7073 | ||
7074 | fi; | |
7075 | ||
7076 | eval "$ac_cv_use_resources" | |
7077 | if test "$no_cache" != 1; then | |
7078 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7079 | fi | |
7080 | ||
7081 | if test "$wxUSE_RESOURCES" = yes; then | |
7082 | echo "$as_me:$LINENO: result: yes" >&5 | |
7083 | echo "${ECHO_T}yes" >&6 | |
7084 | else | |
7085 | echo "$as_me:$LINENO: result: no" >&5 | |
7086 | echo "${ECHO_T}no" >&6 | |
7087 | fi | |
7088 | ||
7089 | ||
7090 | ||
7091 | ||
7092 | enablestring= | |
7093 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7094 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7095 | no_cache=0 | |
7096 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7097 | if test "${enable_clipboard+set}" = set; then | |
7098 | enableval="$enable_clipboard" | |
7099 | ||
7100 | if test "$enableval" = yes; then | |
7101 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7102 | else | |
7103 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7104 | fi | |
7105 | ||
7106 | else | |
7107 | ||
7108 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7109 | if test "x$LINE" != x ; then | |
7110 | eval "DEFAULT_$LINE" | |
7111 | else | |
7112 | no_cache=1 | |
7113 | fi | |
7114 | ||
7115 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7116 | ||
7117 | fi; | |
7118 | ||
7119 | eval "$ac_cv_use_clipboard" | |
7120 | if test "$no_cache" != 1; then | |
7121 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7122 | fi | |
7123 | ||
7124 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7125 | echo "$as_me:$LINENO: result: yes" >&5 | |
7126 | echo "${ECHO_T}yes" >&6 | |
7127 | else | |
7128 | echo "$as_me:$LINENO: result: no" >&5 | |
7129 | echo "${ECHO_T}no" >&6 | |
7130 | fi | |
7131 | ||
7132 | ||
7133 | enablestring= | |
7134 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7135 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7136 | no_cache=0 | |
7137 | # Check whether --enable-dnd or --disable-dnd was given. | |
7138 | if test "${enable_dnd+set}" = set; then | |
7139 | enableval="$enable_dnd" | |
7140 | ||
7141 | if test "$enableval" = yes; then | |
7142 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7143 | else | |
7144 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7145 | fi | |
7146 | ||
7147 | else | |
7148 | ||
7149 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7150 | if test "x$LINE" != x ; then | |
7151 | eval "DEFAULT_$LINE" | |
7152 | else | |
7153 | no_cache=1 | |
7154 | fi | |
7155 | ||
7156 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7157 | ||
7158 | fi; | |
7159 | ||
7160 | eval "$ac_cv_use_dnd" | |
7161 | if test "$no_cache" != 1; then | |
7162 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7163 | fi | |
7164 | ||
7165 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7166 | echo "$as_me:$LINENO: result: yes" >&5 | |
7167 | echo "${ECHO_T}yes" >&6 | |
7168 | else | |
7169 | echo "$as_me:$LINENO: result: no" >&5 | |
7170 | echo "${ECHO_T}no" >&6 | |
7171 | fi | |
7172 | ||
7173 | ||
7174 | enablestring= | |
7175 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7176 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7177 | no_cache=0 | |
7178 | # Check whether --enable-metafile or --disable-metafile was given. | |
7179 | if test "${enable_metafile+set}" = set; then | |
7180 | enableval="$enable_metafile" | |
7181 | ||
7182 | if test "$enableval" = yes; then | |
7183 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7184 | else | |
7185 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7186 | fi | |
7187 | ||
7188 | else | |
7189 | ||
7190 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7191 | if test "x$LINE" != x ; then | |
7192 | eval "DEFAULT_$LINE" | |
7193 | else | |
7194 | no_cache=1 | |
7195 | fi | |
7196 | ||
7197 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7198 | ||
7199 | fi; | |
7200 | ||
7201 | eval "$ac_cv_use_metafile" | |
7202 | if test "$no_cache" != 1; then | |
7203 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7204 | fi | |
7205 | ||
7206 | if test "$wxUSE_METAFILE" = yes; then | |
7207 | echo "$as_me:$LINENO: result: yes" >&5 | |
7208 | echo "${ECHO_T}yes" >&6 | |
7209 | else | |
7210 | echo "$as_me:$LINENO: result: no" >&5 | |
7211 | echo "${ECHO_T}no" >&6 | |
7212 | fi | |
7213 | ||
7214 | ||
7215 | ||
7216 | ||
7217 | ||
7218 | enablestring= | |
7219 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7220 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7221 | no_cache=0 | |
7222 | # Check whether --enable-controls or --disable-controls was given. | |
7223 | if test "${enable_controls+set}" = set; then | |
7224 | enableval="$enable_controls" | |
7225 | ||
7226 | if test "$enableval" = yes; then | |
7227 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7228 | else | |
7229 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7230 | fi | |
7231 | ||
7232 | else | |
7233 | ||
7234 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7235 | if test "x$LINE" != x ; then | |
7236 | eval "DEFAULT_$LINE" | |
7237 | else | |
7238 | no_cache=1 | |
7239 | fi | |
7240 | ||
7241 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7242 | ||
7243 | fi; | |
7244 | ||
7245 | eval "$ac_cv_use_controls" | |
7246 | if test "$no_cache" != 1; then | |
7247 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7248 | fi | |
7249 | ||
7250 | if test "$wxUSE_CONTROLS" = yes; then | |
7251 | echo "$as_me:$LINENO: result: yes" >&5 | |
7252 | echo "${ECHO_T}yes" >&6 | |
7253 | else | |
7254 | echo "$as_me:$LINENO: result: no" >&5 | |
7255 | echo "${ECHO_T}no" >&6 | |
7256 | fi | |
7257 | ||
7258 | ||
7259 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7260 | DEFAULT_wxUSE_ACCEL=yes | |
7261 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7262 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7263 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7264 | DEFAULT_wxUSE_CARET=yes |
7265 | DEFAULT_wxUSE_COMBOBOX=yes | |
7266 | DEFAULT_wxUSE_CHECKBOX=yes | |
7267 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7268 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7269 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7270 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7271 | DEFAULT_wxUSE_GAUGE=yes |
7272 | DEFAULT_wxUSE_GRID=yes | |
7273 | DEFAULT_wxUSE_IMAGLIST=yes | |
7274 | DEFAULT_wxUSE_LISTBOOK=yes | |
7275 | DEFAULT_wxUSE_LISTBOX=yes | |
7276 | DEFAULT_wxUSE_LISTCTRL=yes | |
7277 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7278 | DEFAULT_wxUSE_RADIOBOX=yes | |
7279 | DEFAULT_wxUSE_RADIOBTN=yes | |
7280 | DEFAULT_wxUSE_SASH=yes | |
7281 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7282 | DEFAULT_wxUSE_SLIDER=yes | |
7283 | DEFAULT_wxUSE_SPINBTN=yes | |
7284 | DEFAULT_wxUSE_SPINCTRL=yes | |
7285 | DEFAULT_wxUSE_SPLITTER=yes | |
7286 | DEFAULT_wxUSE_STATBMP=yes | |
7287 | DEFAULT_wxUSE_STATBOX=yes | |
7288 | DEFAULT_wxUSE_STATLINE=yes | |
7289 | DEFAULT_wxUSE_STATUSBAR=yes | |
7290 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7291 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7292 | DEFAULT_wxUSE_TOOLBAR=yes | |
7293 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7294 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7295 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7296 | DEFAULT_wxUSE_TREECTRL=yes | |
7297 | DEFAULT_wxUSE_POPUPWIN=yes | |
7298 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7299 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7300 | DEFAULT_wxUSE_ACCEL=no | |
7301 | DEFAULT_wxUSE_BMPBUTTON=no | |
7302 | DEFAULT_wxUSE_BUTTON=no | |
7303 | DEFAULT_wxUSE_CALCTRL=no | |
7304 | DEFAULT_wxUSE_CARET=no | |
7305 | DEFAULT_wxUSE_COMBOBOX=no | |
7306 | DEFAULT_wxUSE_CHECKBOX=no | |
7307 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7308 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7309 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7310 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7311 | DEFAULT_wxUSE_GAUGE=no |
7312 | DEFAULT_wxUSE_GRID=no | |
7313 | DEFAULT_wxUSE_IMAGLIST=no | |
7314 | DEFAULT_wxUSE_LISTBOOK=no | |
7315 | DEFAULT_wxUSE_LISTBOX=no | |
7316 | DEFAULT_wxUSE_LISTCTRL=no | |
7317 | DEFAULT_wxUSE_NOTEBOOK=no | |
7318 | DEFAULT_wxUSE_RADIOBOX=no | |
7319 | DEFAULT_wxUSE_RADIOBTN=no | |
7320 | DEFAULT_wxUSE_SASH=no | |
7321 | DEFAULT_wxUSE_SCROLLBAR=no | |
7322 | DEFAULT_wxUSE_SLIDER=no | |
7323 | DEFAULT_wxUSE_SPINBTN=no | |
7324 | DEFAULT_wxUSE_SPINCTRL=no | |
7325 | DEFAULT_wxUSE_SPLITTER=no | |
7326 | DEFAULT_wxUSE_STATBMP=no | |
7327 | DEFAULT_wxUSE_STATBOX=no | |
7328 | DEFAULT_wxUSE_STATLINE=no | |
7329 | DEFAULT_wxUSE_STATUSBAR=no | |
7330 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7331 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7332 | DEFAULT_wxUSE_TOOLBAR=no | |
7333 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7334 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7335 | DEFAULT_wxUSE_TOOLTIPS=no | |
7336 | DEFAULT_wxUSE_TREECTRL=no | |
7337 | DEFAULT_wxUSE_POPUPWIN=no | |
7338 | DEFAULT_wxUSE_TIPWINDOW=no | |
7339 | fi | |
7340 | ||
a848cd7e SC |
7341 | |
7342 | enablestring= | |
7343 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7344 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7345 | no_cache=0 | |
7346 | # Check whether --enable-accel or --disable-accel was given. | |
7347 | if test "${enable_accel+set}" = set; then | |
7348 | enableval="$enable_accel" | |
7349 | ||
7350 | if test "$enableval" = yes; then | |
7351 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7352 | else | |
7353 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7354 | fi | |
7355 | ||
7356 | else | |
7357 | ||
7358 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7359 | if test "x$LINE" != x ; then | |
7360 | eval "DEFAULT_$LINE" | |
7361 | else | |
7362 | no_cache=1 | |
7363 | fi | |
7364 | ||
7365 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7366 | ||
7367 | fi; | |
7368 | ||
7369 | eval "$ac_cv_use_accel" | |
7370 | if test "$no_cache" != 1; then | |
7371 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7372 | fi | |
7373 | ||
7374 | if test "$wxUSE_ACCEL" = yes; then | |
7375 | echo "$as_me:$LINENO: result: yes" >&5 | |
7376 | echo "${ECHO_T}yes" >&6 | |
7377 | else | |
7378 | echo "$as_me:$LINENO: result: no" >&5 | |
7379 | echo "${ECHO_T}no" >&6 | |
7380 | fi | |
7381 | ||
7382 | ||
7383 | enablestring= | |
7384 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7385 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7386 | no_cache=0 | |
7387 | # Check whether --enable-button or --disable-button was given. | |
7388 | if test "${enable_button+set}" = set; then | |
7389 | enableval="$enable_button" | |
7390 | ||
7391 | if test "$enableval" = yes; then | |
7392 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7393 | else | |
7394 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7395 | fi | |
7396 | ||
7397 | else | |
7398 | ||
7399 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7400 | if test "x$LINE" != x ; then | |
7401 | eval "DEFAULT_$LINE" | |
7402 | else | |
7403 | no_cache=1 | |
7404 | fi | |
7405 | ||
7406 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7407 | ||
7408 | fi; | |
7409 | ||
7410 | eval "$ac_cv_use_button" | |
7411 | if test "$no_cache" != 1; then | |
7412 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7413 | fi | |
7414 | ||
7415 | if test "$wxUSE_BUTTON" = yes; then | |
7416 | echo "$as_me:$LINENO: result: yes" >&5 | |
7417 | echo "${ECHO_T}yes" >&6 | |
7418 | else | |
7419 | echo "$as_me:$LINENO: result: no" >&5 | |
7420 | echo "${ECHO_T}no" >&6 | |
7421 | fi | |
7422 | ||
7423 | ||
7424 | enablestring= | |
7425 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7426 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7427 | no_cache=0 | |
7428 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7429 | if test "${enable_bmpbutton+set}" = set; then | |
7430 | enableval="$enable_bmpbutton" | |
7431 | ||
7432 | if test "$enableval" = yes; then | |
7433 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7434 | else | |
7435 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7436 | fi | |
7437 | ||
7438 | else | |
7439 | ||
7440 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7441 | if test "x$LINE" != x ; then | |
7442 | eval "DEFAULT_$LINE" | |
7443 | else | |
7444 | no_cache=1 | |
7445 | fi | |
7446 | ||
7447 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7448 | ||
7449 | fi; | |
7450 | ||
7451 | eval "$ac_cv_use_bmpbutton" | |
7452 | if test "$no_cache" != 1; then | |
7453 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7454 | fi | |
7455 | ||
7456 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7457 | echo "$as_me:$LINENO: result: yes" >&5 | |
7458 | echo "${ECHO_T}yes" >&6 | |
7459 | else | |
7460 | echo "$as_me:$LINENO: result: no" >&5 | |
7461 | echo "${ECHO_T}no" >&6 | |
7462 | fi | |
7463 | ||
7464 | ||
7465 | enablestring= | |
7466 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7467 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7468 | no_cache=0 | |
7469 | # Check whether --enable-calendar or --disable-calendar was given. | |
7470 | if test "${enable_calendar+set}" = set; then | |
7471 | enableval="$enable_calendar" | |
7472 | ||
7473 | if test "$enableval" = yes; then | |
7474 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7475 | else | |
7476 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7477 | fi | |
7478 | ||
7479 | else | |
7480 | ||
7481 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7482 | if test "x$LINE" != x ; then | |
7483 | eval "DEFAULT_$LINE" | |
7484 | else | |
7485 | no_cache=1 | |
7486 | fi | |
7487 | ||
7488 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7489 | ||
7490 | fi; | |
7491 | ||
7492 | eval "$ac_cv_use_calendar" | |
7493 | if test "$no_cache" != 1; then | |
7494 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7495 | fi | |
7496 | ||
7497 | if test "$wxUSE_CALCTRL" = yes; then | |
7498 | echo "$as_me:$LINENO: result: yes" >&5 | |
7499 | echo "${ECHO_T}yes" >&6 | |
7500 | else | |
7501 | echo "$as_me:$LINENO: result: no" >&5 | |
7502 | echo "${ECHO_T}no" >&6 | |
7503 | fi | |
7504 | ||
7505 | ||
7506 | enablestring= | |
7507 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7508 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7509 | no_cache=0 | |
7510 | # Check whether --enable-caret or --disable-caret was given. | |
7511 | if test "${enable_caret+set}" = set; then | |
7512 | enableval="$enable_caret" | |
7513 | ||
7514 | if test "$enableval" = yes; then | |
7515 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7516 | else | |
7517 | ac_cv_use_caret='wxUSE_CARET=no' | |
7518 | fi | |
7519 | ||
7520 | else | |
7521 | ||
7522 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7523 | if test "x$LINE" != x ; then | |
7524 | eval "DEFAULT_$LINE" | |
7525 | else | |
7526 | no_cache=1 | |
7527 | fi | |
7528 | ||
7529 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7530 | ||
7531 | fi; | |
7532 | ||
7533 | eval "$ac_cv_use_caret" | |
7534 | if test "$no_cache" != 1; then | |
7535 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7536 | fi | |
7537 | ||
7538 | if test "$wxUSE_CARET" = yes; then | |
7539 | echo "$as_me:$LINENO: result: yes" >&5 | |
7540 | echo "${ECHO_T}yes" >&6 | |
7541 | else | |
7542 | echo "$as_me:$LINENO: result: no" >&5 | |
7543 | echo "${ECHO_T}no" >&6 | |
7544 | fi | |
7545 | ||
7546 | ||
7547 | enablestring= | |
7548 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7549 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7550 | no_cache=0 | |
7551 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7552 | if test "${enable_checkbox+set}" = set; then | |
7553 | enableval="$enable_checkbox" | |
7554 | ||
7555 | if test "$enableval" = yes; then | |
7556 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7557 | else | |
7558 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7559 | fi | |
7560 | ||
7561 | else | |
7562 | ||
7563 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7564 | if test "x$LINE" != x ; then | |
7565 | eval "DEFAULT_$LINE" | |
7566 | else | |
7567 | no_cache=1 | |
7568 | fi | |
7569 | ||
7570 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7571 | ||
7572 | fi; | |
7573 | ||
7574 | eval "$ac_cv_use_checkbox" | |
7575 | if test "$no_cache" != 1; then | |
7576 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7577 | fi | |
7578 | ||
7579 | if test "$wxUSE_CHECKBOX" = yes; then | |
7580 | echo "$as_me:$LINENO: result: yes" >&5 | |
7581 | echo "${ECHO_T}yes" >&6 | |
7582 | else | |
7583 | echo "$as_me:$LINENO: result: no" >&5 | |
7584 | echo "${ECHO_T}no" >&6 | |
7585 | fi | |
7586 | ||
7587 | ||
7588 | enablestring= | |
7589 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7590 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7591 | no_cache=0 | |
7592 | # Check whether --enable-checklst or --disable-checklst was given. | |
7593 | if test "${enable_checklst+set}" = set; then | |
7594 | enableval="$enable_checklst" | |
7595 | ||
7596 | if test "$enableval" = yes; then | |
7597 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7598 | else | |
7599 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7600 | fi | |
7601 | ||
7602 | else | |
7603 | ||
7604 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7605 | if test "x$LINE" != x ; then | |
7606 | eval "DEFAULT_$LINE" | |
7607 | else | |
7608 | no_cache=1 | |
7609 | fi | |
7610 | ||
7611 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7612 | ||
7613 | fi; | |
7614 | ||
7615 | eval "$ac_cv_use_checklst" | |
7616 | if test "$no_cache" != 1; then | |
7617 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7618 | fi | |
7619 | ||
7620 | if test "$wxUSE_CHECKLST" = yes; then | |
7621 | echo "$as_me:$LINENO: result: yes" >&5 | |
7622 | echo "${ECHO_T}yes" >&6 | |
7623 | else | |
7624 | echo "$as_me:$LINENO: result: no" >&5 | |
7625 | echo "${ECHO_T}no" >&6 | |
7626 | fi | |
7627 | ||
7628 | ||
7629 | enablestring= | |
7630 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7631 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7632 | no_cache=0 | |
7633 | # Check whether --enable-choice or --disable-choice was given. | |
7634 | if test "${enable_choice+set}" = set; then | |
7635 | enableval="$enable_choice" | |
7636 | ||
7637 | if test "$enableval" = yes; then | |
7638 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7639 | else | |
7640 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7641 | fi | |
7642 | ||
7643 | else | |
7644 | ||
7645 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7646 | if test "x$LINE" != x ; then | |
7647 | eval "DEFAULT_$LINE" | |
7648 | else | |
7649 | no_cache=1 | |
7650 | fi | |
7651 | ||
7652 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7653 | ||
7654 | fi; | |
7655 | ||
7656 | eval "$ac_cv_use_choice" | |
7657 | if test "$no_cache" != 1; then | |
7658 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7659 | fi | |
7660 | ||
7661 | if test "$wxUSE_CHOICE" = yes; then | |
7662 | echo "$as_me:$LINENO: result: yes" >&5 | |
7663 | echo "${ECHO_T}yes" >&6 | |
7664 | else | |
7665 | echo "$as_me:$LINENO: result: no" >&5 | |
7666 | echo "${ECHO_T}no" >&6 | |
7667 | fi | |
7668 | ||
7669 | ||
92bbdbcd WS |
7670 | enablestring= |
7671 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7672 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7673 | no_cache=0 | |
7674 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7675 | if test "${enable_choicebook+set}" = set; then | |
7676 | enableval="$enable_choicebook" | |
7677 | ||
7678 | if test "$enableval" = yes; then | |
7679 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7680 | else | |
7681 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7682 | fi | |
7683 | ||
7684 | else | |
7685 | ||
7686 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7687 | if test "x$LINE" != x ; then | |
7688 | eval "DEFAULT_$LINE" | |
7689 | else | |
7690 | no_cache=1 | |
7691 | fi | |
7692 | ||
7693 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7694 | ||
7695 | fi; | |
7696 | ||
7697 | eval "$ac_cv_use_choicebook" | |
7698 | if test "$no_cache" != 1; then | |
7699 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7700 | fi | |
7701 | ||
7702 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7703 | echo "$as_me:$LINENO: result: yes" >&5 | |
7704 | echo "${ECHO_T}yes" >&6 | |
7705 | else | |
7706 | echo "$as_me:$LINENO: result: no" >&5 | |
7707 | echo "${ECHO_T}no" >&6 | |
7708 | fi | |
7709 | ||
7710 | ||
a848cd7e SC |
7711 | enablestring= |
7712 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7713 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7714 | no_cache=0 | |
7715 | # Check whether --enable-combobox or --disable-combobox was given. | |
7716 | if test "${enable_combobox+set}" = set; then | |
7717 | enableval="$enable_combobox" | |
7718 | ||
7719 | if test "$enableval" = yes; then | |
7720 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7721 | else | |
7722 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7723 | fi | |
7724 | ||
7725 | else | |
7726 | ||
7727 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7728 | if test "x$LINE" != x ; then | |
7729 | eval "DEFAULT_$LINE" | |
7730 | else | |
7731 | no_cache=1 | |
7732 | fi | |
7733 | ||
7734 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7735 | ||
7736 | fi; | |
7737 | ||
7738 | eval "$ac_cv_use_combobox" | |
7739 | if test "$no_cache" != 1; then | |
7740 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7741 | fi | |
7742 | ||
7743 | if test "$wxUSE_COMBOBOX" = yes; then | |
7744 | echo "$as_me:$LINENO: result: yes" >&5 | |
7745 | echo "${ECHO_T}yes" >&6 | |
7746 | else | |
7747 | echo "$as_me:$LINENO: result: no" >&5 | |
7748 | echo "${ECHO_T}no" >&6 | |
7749 | fi | |
7750 | ||
7751 | ||
da98e9be VZ |
7752 | enablestring= |
7753 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7754 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7755 | no_cache=0 | |
7756 | # Check whether --enable-datepick or --disable-datepick was given. | |
7757 | if test "${enable_datepick+set}" = set; then | |
7758 | enableval="$enable_datepick" | |
7759 | ||
7760 | if test "$enableval" = yes; then | |
7761 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7762 | else | |
7763 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7764 | fi | |
7765 | ||
7766 | else | |
7767 | ||
7768 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7769 | if test "x$LINE" != x ; then | |
7770 | eval "DEFAULT_$LINE" | |
7771 | else | |
7772 | no_cache=1 | |
7773 | fi | |
7774 | ||
7775 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7776 | ||
7777 | fi; | |
7778 | ||
7779 | eval "$ac_cv_use_datepick" | |
7780 | if test "$no_cache" != 1; then | |
7781 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7782 | fi | |
7783 | ||
7784 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7785 | echo "$as_me:$LINENO: result: yes" >&5 | |
7786 | echo "${ECHO_T}yes" >&6 | |
7787 | else | |
7788 | echo "$as_me:$LINENO: result: no" >&5 | |
7789 | echo "${ECHO_T}no" >&6 | |
7790 | fi | |
7791 | ||
7792 | ||
a848cd7e SC |
7793 | enablestring= |
7794 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7795 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7796 | no_cache=0 | |
7797 | # Check whether --enable-display or --disable-display was given. | |
7798 | if test "${enable_display+set}" = set; then | |
7799 | enableval="$enable_display" | |
7800 | ||
7801 | if test "$enableval" = yes; then | |
7802 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7803 | else | |
7804 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7805 | fi | |
7806 | ||
7807 | else | |
7808 | ||
7809 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7810 | if test "x$LINE" != x ; then | |
7811 | eval "DEFAULT_$LINE" | |
7812 | else | |
7813 | no_cache=1 | |
7814 | fi | |
7815 | ||
7816 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7817 | ||
7818 | fi; | |
7819 | ||
7820 | eval "$ac_cv_use_display" | |
7821 | if test "$no_cache" != 1; then | |
7822 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7823 | fi | |
7824 | ||
7825 | if test "$wxUSE_DISPLAY" = yes; then | |
7826 | echo "$as_me:$LINENO: result: yes" >&5 | |
7827 | echo "${ECHO_T}yes" >&6 | |
7828 | else | |
7829 | echo "$as_me:$LINENO: result: no" >&5 | |
7830 | echo "${ECHO_T}no" >&6 | |
7831 | fi | |
7832 | ||
7833 | ||
7834 | enablestring= | |
7835 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7836 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7837 | no_cache=0 | |
7838 | # Check whether --enable-gauge or --disable-gauge was given. | |
7839 | if test "${enable_gauge+set}" = set; then | |
7840 | enableval="$enable_gauge" | |
7841 | ||
7842 | if test "$enableval" = yes; then | |
7843 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7844 | else | |
7845 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7846 | fi | |
7847 | ||
7848 | else | |
7849 | ||
7850 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7851 | if test "x$LINE" != x ; then | |
7852 | eval "DEFAULT_$LINE" | |
7853 | else | |
7854 | no_cache=1 | |
7855 | fi | |
7856 | ||
7857 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7858 | ||
7859 | fi; | |
7860 | ||
7861 | eval "$ac_cv_use_gauge" | |
7862 | if test "$no_cache" != 1; then | |
7863 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7864 | fi | |
7865 | ||
7866 | if test "$wxUSE_GAUGE" = yes; then | |
7867 | echo "$as_me:$LINENO: result: yes" >&5 | |
7868 | echo "${ECHO_T}yes" >&6 | |
7869 | else | |
7870 | echo "$as_me:$LINENO: result: no" >&5 | |
7871 | echo "${ECHO_T}no" >&6 | |
7872 | fi | |
7873 | ||
7874 | ||
7875 | enablestring= | |
7876 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7877 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7878 | no_cache=0 | |
7879 | # Check whether --enable-grid or --disable-grid was given. | |
7880 | if test "${enable_grid+set}" = set; then | |
7881 | enableval="$enable_grid" | |
7882 | ||
7883 | if test "$enableval" = yes; then | |
7884 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7885 | else | |
7886 | ac_cv_use_grid='wxUSE_GRID=no' | |
7887 | fi | |
7888 | ||
7889 | else | |
7890 | ||
7891 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7892 | if test "x$LINE" != x ; then | |
7893 | eval "DEFAULT_$LINE" | |
7894 | else | |
7895 | no_cache=1 | |
7896 | fi | |
7897 | ||
7898 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7899 | ||
7900 | fi; | |
7901 | ||
7902 | eval "$ac_cv_use_grid" | |
7903 | if test "$no_cache" != 1; then | |
7904 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7905 | fi | |
7906 | ||
7907 | if test "$wxUSE_GRID" = yes; then | |
7908 | echo "$as_me:$LINENO: result: yes" >&5 | |
7909 | echo "${ECHO_T}yes" >&6 | |
7910 | else | |
7911 | echo "$as_me:$LINENO: result: no" >&5 | |
7912 | echo "${ECHO_T}no" >&6 | |
7913 | fi | |
7914 | ||
7915 | ||
7916 | enablestring= | |
7917 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7918 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7919 | no_cache=0 | |
7920 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7921 | if test "${enable_imaglist+set}" = set; then | |
7922 | enableval="$enable_imaglist" | |
7923 | ||
7924 | if test "$enableval" = yes; then | |
7925 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7926 | else | |
7927 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7928 | fi | |
7929 | ||
7930 | else | |
7931 | ||
7932 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7933 | if test "x$LINE" != x ; then | |
7934 | eval "DEFAULT_$LINE" | |
7935 | else | |
7936 | no_cache=1 | |
7937 | fi | |
7938 | ||
7939 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7940 | ||
7941 | fi; | |
7942 | ||
7943 | eval "$ac_cv_use_imaglist" | |
7944 | if test "$no_cache" != 1; then | |
7945 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7946 | fi | |
7947 | ||
7948 | if test "$wxUSE_IMAGLIST" = yes; then | |
7949 | echo "$as_me:$LINENO: result: yes" >&5 | |
7950 | echo "${ECHO_T}yes" >&6 | |
7951 | else | |
7952 | echo "$as_me:$LINENO: result: no" >&5 | |
7953 | echo "${ECHO_T}no" >&6 | |
7954 | fi | |
7955 | ||
7956 | ||
7957 | enablestring= | |
7958 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7959 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7960 | no_cache=0 | |
7961 | # Check whether --enable-listbook or --disable-listbook was given. | |
7962 | if test "${enable_listbook+set}" = set; then | |
7963 | enableval="$enable_listbook" | |
7964 | ||
7965 | if test "$enableval" = yes; then | |
7966 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7967 | else | |
7968 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7969 | fi | |
7970 | ||
7971 | else | |
7972 | ||
7973 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7974 | if test "x$LINE" != x ; then | |
7975 | eval "DEFAULT_$LINE" | |
7976 | else | |
7977 | no_cache=1 | |
7978 | fi | |
7979 | ||
7980 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7981 | ||
7982 | fi; | |
7983 | ||
7984 | eval "$ac_cv_use_listbook" | |
7985 | if test "$no_cache" != 1; then | |
7986 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7987 | fi | |
7988 | ||
7989 | if test "$wxUSE_LISTBOOK" = yes; then | |
7990 | echo "$as_me:$LINENO: result: yes" >&5 | |
7991 | echo "${ECHO_T}yes" >&6 | |
7992 | else | |
7993 | echo "$as_me:$LINENO: result: no" >&5 | |
7994 | echo "${ECHO_T}no" >&6 | |
7995 | fi | |
7996 | ||
7997 | ||
7998 | enablestring= | |
7999 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8000 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8001 | no_cache=0 | |
8002 | # Check whether --enable-listbox or --disable-listbox was given. | |
8003 | if test "${enable_listbox+set}" = set; then | |
8004 | enableval="$enable_listbox" | |
8005 | ||
8006 | if test "$enableval" = yes; then | |
8007 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8008 | else | |
8009 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8010 | fi | |
8011 | ||
8012 | else | |
8013 | ||
8014 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8015 | if test "x$LINE" != x ; then | |
8016 | eval "DEFAULT_$LINE" | |
8017 | else | |
8018 | no_cache=1 | |
8019 | fi | |
8020 | ||
8021 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8022 | ||
8023 | fi; | |
8024 | ||
8025 | eval "$ac_cv_use_listbox" | |
8026 | if test "$no_cache" != 1; then | |
8027 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8028 | fi | |
8029 | ||
8030 | if test "$wxUSE_LISTBOX" = yes; then | |
8031 | echo "$as_me:$LINENO: result: yes" >&5 | |
8032 | echo "${ECHO_T}yes" >&6 | |
8033 | else | |
8034 | echo "$as_me:$LINENO: result: no" >&5 | |
8035 | echo "${ECHO_T}no" >&6 | |
8036 | fi | |
8037 | ||
8038 | ||
8039 | enablestring= | |
8040 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8041 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8042 | no_cache=0 | |
8043 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8044 | if test "${enable_listctrl+set}" = set; then | |
8045 | enableval="$enable_listctrl" | |
8046 | ||
8047 | if test "$enableval" = yes; then | |
8048 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8049 | else | |
8050 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8051 | fi | |
8052 | ||
8053 | else | |
8054 | ||
8055 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8056 | if test "x$LINE" != x ; then | |
8057 | eval "DEFAULT_$LINE" | |
8058 | else | |
8059 | no_cache=1 | |
8060 | fi | |
8061 | ||
8062 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8063 | ||
8064 | fi; | |
8065 | ||
8066 | eval "$ac_cv_use_listctrl" | |
8067 | if test "$no_cache" != 1; then | |
8068 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8069 | fi | |
8070 | ||
8071 | if test "$wxUSE_LISTCTRL" = yes; then | |
8072 | echo "$as_me:$LINENO: result: yes" >&5 | |
8073 | echo "${ECHO_T}yes" >&6 | |
8074 | else | |
8075 | echo "$as_me:$LINENO: result: no" >&5 | |
8076 | echo "${ECHO_T}no" >&6 | |
8077 | fi | |
8078 | ||
8079 | ||
8080 | enablestring= | |
8081 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8082 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8083 | no_cache=0 | |
8084 | # Check whether --enable-notebook or --disable-notebook was given. | |
8085 | if test "${enable_notebook+set}" = set; then | |
8086 | enableval="$enable_notebook" | |
8087 | ||
8088 | if test "$enableval" = yes; then | |
8089 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8090 | else | |
8091 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8092 | fi | |
8093 | ||
8094 | else | |
8095 | ||
8096 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8097 | if test "x$LINE" != x ; then | |
8098 | eval "DEFAULT_$LINE" | |
8099 | else | |
8100 | no_cache=1 | |
8101 | fi | |
8102 | ||
8103 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8104 | ||
8105 | fi; | |
8106 | ||
8107 | eval "$ac_cv_use_notebook" | |
8108 | if test "$no_cache" != 1; then | |
8109 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8110 | fi | |
8111 | ||
8112 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8113 | echo "$as_me:$LINENO: result: yes" >&5 | |
8114 | echo "${ECHO_T}yes" >&6 | |
8115 | else | |
8116 | echo "$as_me:$LINENO: result: no" >&5 | |
8117 | echo "${ECHO_T}no" >&6 | |
8118 | fi | |
8119 | ||
8120 | ||
8121 | enablestring= | |
8122 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8123 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8124 | no_cache=0 | |
8125 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8126 | if test "${enable_radiobox+set}" = set; then | |
8127 | enableval="$enable_radiobox" | |
8128 | ||
8129 | if test "$enableval" = yes; then | |
8130 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8131 | else | |
8132 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8133 | fi | |
8134 | ||
8135 | else | |
8136 | ||
8137 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8138 | if test "x$LINE" != x ; then | |
8139 | eval "DEFAULT_$LINE" | |
8140 | else | |
8141 | no_cache=1 | |
8142 | fi | |
8143 | ||
8144 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8145 | ||
8146 | fi; | |
8147 | ||
8148 | eval "$ac_cv_use_radiobox" | |
8149 | if test "$no_cache" != 1; then | |
8150 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8151 | fi | |
8152 | ||
8153 | if test "$wxUSE_RADIOBOX" = yes; then | |
8154 | echo "$as_me:$LINENO: result: yes" >&5 | |
8155 | echo "${ECHO_T}yes" >&6 | |
8156 | else | |
8157 | echo "$as_me:$LINENO: result: no" >&5 | |
8158 | echo "${ECHO_T}no" >&6 | |
8159 | fi | |
8160 | ||
8161 | ||
8162 | enablestring= | |
8163 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8164 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8165 | no_cache=0 | |
8166 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8167 | if test "${enable_radiobtn+set}" = set; then | |
8168 | enableval="$enable_radiobtn" | |
8169 | ||
8170 | if test "$enableval" = yes; then | |
8171 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8172 | else | |
8173 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8174 | fi | |
8175 | ||
8176 | else | |
8177 | ||
8178 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8179 | if test "x$LINE" != x ; then | |
8180 | eval "DEFAULT_$LINE" | |
8181 | else | |
8182 | no_cache=1 | |
8183 | fi | |
8184 | ||
8185 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8186 | ||
8187 | fi; | |
8188 | ||
8189 | eval "$ac_cv_use_radiobtn" | |
8190 | if test "$no_cache" != 1; then | |
8191 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8192 | fi | |
8193 | ||
8194 | if test "$wxUSE_RADIOBTN" = yes; then | |
8195 | echo "$as_me:$LINENO: result: yes" >&5 | |
8196 | echo "${ECHO_T}yes" >&6 | |
8197 | else | |
8198 | echo "$as_me:$LINENO: result: no" >&5 | |
8199 | echo "${ECHO_T}no" >&6 | |
8200 | fi | |
8201 | ||
8202 | ||
8203 | enablestring= | |
8204 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8205 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8206 | no_cache=0 | |
8207 | # Check whether --enable-sash or --disable-sash was given. | |
8208 | if test "${enable_sash+set}" = set; then | |
8209 | enableval="$enable_sash" | |
8210 | ||
8211 | if test "$enableval" = yes; then | |
8212 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8213 | else | |
8214 | ac_cv_use_sash='wxUSE_SASH=no' | |
8215 | fi | |
8216 | ||
8217 | else | |
8218 | ||
8219 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8220 | if test "x$LINE" != x ; then | |
8221 | eval "DEFAULT_$LINE" | |
8222 | else | |
8223 | no_cache=1 | |
8224 | fi | |
8225 | ||
8226 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8227 | ||
8228 | fi; | |
8229 | ||
8230 | eval "$ac_cv_use_sash" | |
8231 | if test "$no_cache" != 1; then | |
8232 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8233 | fi | |
8234 | ||
8235 | if test "$wxUSE_SASH" = yes; then | |
8236 | echo "$as_me:$LINENO: result: yes" >&5 | |
8237 | echo "${ECHO_T}yes" >&6 | |
8238 | else | |
8239 | echo "$as_me:$LINENO: result: no" >&5 | |
8240 | echo "${ECHO_T}no" >&6 | |
8241 | fi | |
8242 | ||
8243 | ||
8244 | enablestring= | |
8245 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8246 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8247 | no_cache=0 | |
8248 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8249 | if test "${enable_scrollbar+set}" = set; then | |
8250 | enableval="$enable_scrollbar" | |
8251 | ||
8252 | if test "$enableval" = yes; then | |
8253 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8254 | else | |
8255 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8256 | fi | |
8257 | ||
8258 | else | |
8259 | ||
8260 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8261 | if test "x$LINE" != x ; then | |
8262 | eval "DEFAULT_$LINE" | |
8263 | else | |
8264 | no_cache=1 | |
8265 | fi | |
8266 | ||
8267 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8268 | ||
8269 | fi; | |
8270 | ||
8271 | eval "$ac_cv_use_scrollbar" | |
8272 | if test "$no_cache" != 1; then | |
8273 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8274 | fi | |
8275 | ||
8276 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8277 | echo "$as_me:$LINENO: result: yes" >&5 | |
8278 | echo "${ECHO_T}yes" >&6 | |
8279 | else | |
8280 | echo "$as_me:$LINENO: result: no" >&5 | |
8281 | echo "${ECHO_T}no" >&6 | |
8282 | fi | |
8283 | ||
8284 | ||
8285 | enablestring= | |
8286 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8287 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8288 | no_cache=0 | |
8289 | # Check whether --enable-slider or --disable-slider was given. | |
8290 | if test "${enable_slider+set}" = set; then | |
8291 | enableval="$enable_slider" | |
8292 | ||
8293 | if test "$enableval" = yes; then | |
8294 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8295 | else | |
8296 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8297 | fi | |
8298 | ||
8299 | else | |
8300 | ||
8301 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8302 | if test "x$LINE" != x ; then | |
8303 | eval "DEFAULT_$LINE" | |
8304 | else | |
8305 | no_cache=1 | |
8306 | fi | |
8307 | ||
8308 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8309 | ||
8310 | fi; | |
8311 | ||
8312 | eval "$ac_cv_use_slider" | |
8313 | if test "$no_cache" != 1; then | |
8314 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8315 | fi | |
8316 | ||
8317 | if test "$wxUSE_SLIDER" = yes; then | |
8318 | echo "$as_me:$LINENO: result: yes" >&5 | |
8319 | echo "${ECHO_T}yes" >&6 | |
8320 | else | |
8321 | echo "$as_me:$LINENO: result: no" >&5 | |
8322 | echo "${ECHO_T}no" >&6 | |
8323 | fi | |
8324 | ||
8325 | ||
8326 | enablestring= | |
8327 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8328 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8329 | no_cache=0 | |
8330 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8331 | if test "${enable_spinbtn+set}" = set; then | |
8332 | enableval="$enable_spinbtn" | |
8333 | ||
8334 | if test "$enableval" = yes; then | |
8335 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8336 | else | |
8337 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8338 | fi | |
8339 | ||
8340 | else | |
8341 | ||
8342 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8343 | if test "x$LINE" != x ; then | |
8344 | eval "DEFAULT_$LINE" | |
8345 | else | |
8346 | no_cache=1 | |
8347 | fi | |
8348 | ||
8349 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8350 | ||
8351 | fi; | |
8352 | ||
8353 | eval "$ac_cv_use_spinbtn" | |
8354 | if test "$no_cache" != 1; then | |
8355 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8356 | fi | |
8357 | ||
8358 | if test "$wxUSE_SPINBTN" = yes; then | |
8359 | echo "$as_me:$LINENO: result: yes" >&5 | |
8360 | echo "${ECHO_T}yes" >&6 | |
8361 | else | |
8362 | echo "$as_me:$LINENO: result: no" >&5 | |
8363 | echo "${ECHO_T}no" >&6 | |
8364 | fi | |
8365 | ||
8366 | ||
8367 | enablestring= | |
8368 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8369 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8370 | no_cache=0 | |
8371 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8372 | if test "${enable_spinctrl+set}" = set; then | |
8373 | enableval="$enable_spinctrl" | |
8374 | ||
8375 | if test "$enableval" = yes; then | |
8376 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8377 | else | |
8378 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8379 | fi | |
8380 | ||
8381 | else | |
8382 | ||
8383 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8384 | if test "x$LINE" != x ; then | |
8385 | eval "DEFAULT_$LINE" | |
8386 | else | |
8387 | no_cache=1 | |
8388 | fi | |
8389 | ||
8390 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8391 | ||
8392 | fi; | |
8393 | ||
8394 | eval "$ac_cv_use_spinctrl" | |
8395 | if test "$no_cache" != 1; then | |
8396 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8397 | fi | |
8398 | ||
8399 | if test "$wxUSE_SPINCTRL" = yes; then | |
8400 | echo "$as_me:$LINENO: result: yes" >&5 | |
8401 | echo "${ECHO_T}yes" >&6 | |
8402 | else | |
8403 | echo "$as_me:$LINENO: result: no" >&5 | |
8404 | echo "${ECHO_T}no" >&6 | |
8405 | fi | |
8406 | ||
8407 | ||
8408 | enablestring= | |
8409 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8410 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8411 | no_cache=0 | |
8412 | # Check whether --enable-splitter or --disable-splitter was given. | |
8413 | if test "${enable_splitter+set}" = set; then | |
8414 | enableval="$enable_splitter" | |
8415 | ||
8416 | if test "$enableval" = yes; then | |
8417 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8418 | else | |
8419 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8420 | fi | |
8421 | ||
8422 | else | |
8423 | ||
8424 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8425 | if test "x$LINE" != x ; then | |
8426 | eval "DEFAULT_$LINE" | |
8427 | else | |
8428 | no_cache=1 | |
8429 | fi | |
8430 | ||
8431 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8432 | ||
8433 | fi; | |
8434 | ||
8435 | eval "$ac_cv_use_splitter" | |
8436 | if test "$no_cache" != 1; then | |
8437 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8438 | fi | |
8439 | ||
8440 | if test "$wxUSE_SPLITTER" = yes; then | |
8441 | echo "$as_me:$LINENO: result: yes" >&5 | |
8442 | echo "${ECHO_T}yes" >&6 | |
8443 | else | |
8444 | echo "$as_me:$LINENO: result: no" >&5 | |
8445 | echo "${ECHO_T}no" >&6 | |
8446 | fi | |
8447 | ||
8448 | ||
8449 | enablestring= | |
8450 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8451 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8452 | no_cache=0 | |
8453 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8454 | if test "${enable_statbmp+set}" = set; then | |
8455 | enableval="$enable_statbmp" | |
8456 | ||
8457 | if test "$enableval" = yes; then | |
8458 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8459 | else | |
8460 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8461 | fi | |
8462 | ||
8463 | else | |
8464 | ||
8465 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8466 | if test "x$LINE" != x ; then | |
8467 | eval "DEFAULT_$LINE" | |
8468 | else | |
8469 | no_cache=1 | |
8470 | fi | |
8471 | ||
8472 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8473 | ||
8474 | fi; | |
8475 | ||
8476 | eval "$ac_cv_use_statbmp" | |
8477 | if test "$no_cache" != 1; then | |
8478 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8479 | fi | |
8480 | ||
8481 | if test "$wxUSE_STATBMP" = yes; then | |
8482 | echo "$as_me:$LINENO: result: yes" >&5 | |
8483 | echo "${ECHO_T}yes" >&6 | |
8484 | else | |
8485 | echo "$as_me:$LINENO: result: no" >&5 | |
8486 | echo "${ECHO_T}no" >&6 | |
8487 | fi | |
8488 | ||
8489 | ||
8490 | enablestring= | |
8491 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8492 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8493 | no_cache=0 | |
8494 | # Check whether --enable-statbox or --disable-statbox was given. | |
8495 | if test "${enable_statbox+set}" = set; then | |
8496 | enableval="$enable_statbox" | |
8497 | ||
8498 | if test "$enableval" = yes; then | |
8499 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8500 | else | |
8501 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8502 | fi | |
8503 | ||
8504 | else | |
8505 | ||
8506 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8507 | if test "x$LINE" != x ; then | |
8508 | eval "DEFAULT_$LINE" | |
8509 | else | |
8510 | no_cache=1 | |
8511 | fi | |
8512 | ||
8513 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8514 | ||
8515 | fi; | |
8516 | ||
8517 | eval "$ac_cv_use_statbox" | |
8518 | if test "$no_cache" != 1; then | |
8519 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8520 | fi | |
8521 | ||
8522 | if test "$wxUSE_STATBOX" = yes; then | |
8523 | echo "$as_me:$LINENO: result: yes" >&5 | |
8524 | echo "${ECHO_T}yes" >&6 | |
8525 | else | |
8526 | echo "$as_me:$LINENO: result: no" >&5 | |
8527 | echo "${ECHO_T}no" >&6 | |
8528 | fi | |
8529 | ||
8530 | ||
8531 | enablestring= | |
8532 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8533 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8534 | no_cache=0 | |
8535 | # Check whether --enable-statline or --disable-statline was given. | |
8536 | if test "${enable_statline+set}" = set; then | |
8537 | enableval="$enable_statline" | |
8538 | ||
8539 | if test "$enableval" = yes; then | |
8540 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8541 | else | |
8542 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8543 | fi | |
8544 | ||
8545 | else | |
8546 | ||
8547 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8548 | if test "x$LINE" != x ; then | |
8549 | eval "DEFAULT_$LINE" | |
8550 | else | |
8551 | no_cache=1 | |
8552 | fi | |
8553 | ||
8554 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8555 | ||
8556 | fi; | |
8557 | ||
8558 | eval "$ac_cv_use_statline" | |
8559 | if test "$no_cache" != 1; then | |
8560 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8561 | fi | |
8562 | ||
8563 | if test "$wxUSE_STATLINE" = yes; then | |
8564 | echo "$as_me:$LINENO: result: yes" >&5 | |
8565 | echo "${ECHO_T}yes" >&6 | |
8566 | else | |
8567 | echo "$as_me:$LINENO: result: no" >&5 | |
8568 | echo "${ECHO_T}no" >&6 | |
8569 | fi | |
8570 | ||
8571 | ||
8572 | enablestring= | |
8573 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8574 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8575 | no_cache=0 | |
8576 | # Check whether --enable-stattext or --disable-stattext was given. | |
8577 | if test "${enable_stattext+set}" = set; then | |
8578 | enableval="$enable_stattext" | |
8579 | ||
8580 | if test "$enableval" = yes; then | |
8581 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8582 | else | |
8583 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8584 | fi | |
8585 | ||
8586 | else | |
8587 | ||
8588 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8589 | if test "x$LINE" != x ; then | |
8590 | eval "DEFAULT_$LINE" | |
8591 | else | |
8592 | no_cache=1 | |
8593 | fi | |
8594 | ||
8595 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8596 | ||
8597 | fi; | |
8598 | ||
8599 | eval "$ac_cv_use_stattext" | |
8600 | if test "$no_cache" != 1; then | |
8601 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8602 | fi | |
8603 | ||
8604 | if test "$wxUSE_STATTEXT" = yes; then | |
8605 | echo "$as_me:$LINENO: result: yes" >&5 | |
8606 | echo "${ECHO_T}yes" >&6 | |
8607 | else | |
8608 | echo "$as_me:$LINENO: result: no" >&5 | |
8609 | echo "${ECHO_T}no" >&6 | |
8610 | fi | |
8611 | ||
8612 | ||
8613 | enablestring= | |
8614 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8615 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8616 | no_cache=0 | |
8617 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8618 | if test "${enable_statusbar+set}" = set; then | |
8619 | enableval="$enable_statusbar" | |
8620 | ||
8621 | if test "$enableval" = yes; then | |
8622 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8623 | else | |
8624 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8625 | fi | |
8626 | ||
8627 | else | |
8628 | ||
8629 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8630 | if test "x$LINE" != x ; then | |
8631 | eval "DEFAULT_$LINE" | |
8632 | else | |
8633 | no_cache=1 | |
8634 | fi | |
8635 | ||
8636 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8637 | ||
8638 | fi; | |
8639 | ||
8640 | eval "$ac_cv_use_statusbar" | |
8641 | if test "$no_cache" != 1; then | |
8642 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8643 | fi | |
8644 | ||
8645 | if test "$wxUSE_STATUSBAR" = yes; then | |
8646 | echo "$as_me:$LINENO: result: yes" >&5 | |
8647 | echo "${ECHO_T}yes" >&6 | |
8648 | else | |
8649 | echo "$as_me:$LINENO: result: no" >&5 | |
8650 | echo "${ECHO_T}no" >&6 | |
8651 | fi | |
8652 | ||
8653 | ||
8654 | enablestring= | |
8655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8656 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8657 | no_cache=0 | |
8658 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8659 | if test "${enable_tabdialog+set}" = set; then | |
8660 | enableval="$enable_tabdialog" | |
8661 | ||
8662 | if test "$enableval" = yes; then | |
8663 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8664 | else | |
8665 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8666 | fi | |
8667 | ||
8668 | else | |
8669 | ||
8670 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8671 | if test "x$LINE" != x ; then | |
8672 | eval "DEFAULT_$LINE" | |
8673 | else | |
8674 | no_cache=1 | |
8675 | fi | |
8676 | ||
8677 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8678 | ||
8679 | fi; | |
8680 | ||
8681 | eval "$ac_cv_use_tabdialog" | |
8682 | if test "$no_cache" != 1; then | |
8683 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8684 | fi | |
8685 | ||
8686 | if test "$wxUSE_TABDIALOG" = yes; then | |
8687 | echo "$as_me:$LINENO: result: yes" >&5 | |
8688 | echo "${ECHO_T}yes" >&6 | |
8689 | else | |
8690 | echo "$as_me:$LINENO: result: no" >&5 | |
8691 | echo "${ECHO_T}no" >&6 | |
8692 | fi | |
8693 | ||
8694 | ||
8695 | enablestring= | |
8696 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8697 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8698 | no_cache=0 | |
8699 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8700 | if test "${enable_textctrl+set}" = set; then | |
8701 | enableval="$enable_textctrl" | |
8702 | ||
8703 | if test "$enableval" = yes; then | |
8704 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8705 | else | |
8706 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8707 | fi | |
8708 | ||
8709 | else | |
8710 | ||
8711 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8712 | if test "x$LINE" != x ; then | |
8713 | eval "DEFAULT_$LINE" | |
8714 | else | |
8715 | no_cache=1 | |
8716 | fi | |
8717 | ||
8718 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8719 | ||
8720 | fi; | |
8721 | ||
8722 | eval "$ac_cv_use_textctrl" | |
8723 | if test "$no_cache" != 1; then | |
8724 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8725 | fi | |
8726 | ||
8727 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8728 | echo "$as_me:$LINENO: result: yes" >&5 | |
8729 | echo "${ECHO_T}yes" >&6 | |
8730 | else | |
8731 | echo "$as_me:$LINENO: result: no" >&5 | |
8732 | echo "${ECHO_T}no" >&6 | |
8733 | fi | |
8734 | ||
8735 | ||
8736 | enablestring= | |
8737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8738 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8739 | no_cache=0 | |
8740 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8741 | if test "${enable_togglebtn+set}" = set; then | |
8742 | enableval="$enable_togglebtn" | |
8743 | ||
8744 | if test "$enableval" = yes; then | |
8745 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8746 | else | |
8747 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8748 | fi | |
8749 | ||
8750 | else | |
8751 | ||
8752 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8753 | if test "x$LINE" != x ; then | |
8754 | eval "DEFAULT_$LINE" | |
8755 | else | |
8756 | no_cache=1 | |
8757 | fi | |
8758 | ||
8759 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8760 | ||
8761 | fi; | |
8762 | ||
8763 | eval "$ac_cv_use_togglebtn" | |
8764 | if test "$no_cache" != 1; then | |
8765 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8766 | fi | |
8767 | ||
8768 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8769 | echo "$as_me:$LINENO: result: yes" >&5 | |
8770 | echo "${ECHO_T}yes" >&6 | |
8771 | else | |
8772 | echo "$as_me:$LINENO: result: no" >&5 | |
8773 | echo "${ECHO_T}no" >&6 | |
8774 | fi | |
8775 | ||
8776 | ||
8777 | enablestring= | |
8778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8779 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8780 | no_cache=0 | |
8781 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8782 | if test "${enable_toolbar+set}" = set; then | |
8783 | enableval="$enable_toolbar" | |
8784 | ||
8785 | if test "$enableval" = yes; then | |
8786 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8787 | else | |
8788 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8789 | fi | |
8790 | ||
8791 | else | |
8792 | ||
8793 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8794 | if test "x$LINE" != x ; then | |
8795 | eval "DEFAULT_$LINE" | |
8796 | else | |
8797 | no_cache=1 | |
8798 | fi | |
8799 | ||
8800 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8801 | ||
8802 | fi; | |
8803 | ||
8804 | eval "$ac_cv_use_toolbar" | |
8805 | if test "$no_cache" != 1; then | |
8806 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8807 | fi | |
8808 | ||
8809 | if test "$wxUSE_TOOLBAR" = yes; then | |
8810 | echo "$as_me:$LINENO: result: yes" >&5 | |
8811 | echo "${ECHO_T}yes" >&6 | |
8812 | else | |
8813 | echo "$as_me:$LINENO: result: no" >&5 | |
8814 | echo "${ECHO_T}no" >&6 | |
8815 | fi | |
8816 | ||
8817 | ||
8818 | enablestring= | |
8819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8820 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8821 | no_cache=0 | |
8822 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8823 | if test "${enable_tbarnative+set}" = set; then | |
8824 | enableval="$enable_tbarnative" | |
8825 | ||
8826 | if test "$enableval" = yes; then | |
8827 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8828 | else | |
8829 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8830 | fi | |
8831 | ||
8832 | else | |
8833 | ||
8834 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8835 | if test "x$LINE" != x ; then | |
8836 | eval "DEFAULT_$LINE" | |
8837 | else | |
8838 | no_cache=1 | |
8839 | fi | |
8840 | ||
8841 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8842 | ||
8843 | fi; | |
8844 | ||
8845 | eval "$ac_cv_use_tbarnative" | |
8846 | if test "$no_cache" != 1; then | |
8847 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8848 | fi | |
8849 | ||
8850 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8851 | echo "$as_me:$LINENO: result: yes" >&5 | |
8852 | echo "${ECHO_T}yes" >&6 | |
8853 | else | |
8854 | echo "$as_me:$LINENO: result: no" >&5 | |
8855 | echo "${ECHO_T}no" >&6 | |
8856 | fi | |
8857 | ||
8858 | ||
8859 | enablestring= | |
8860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8861 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8862 | no_cache=0 | |
8863 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8864 | if test "${enable_tbarsmpl+set}" = set; then | |
8865 | enableval="$enable_tbarsmpl" | |
8866 | ||
8867 | if test "$enableval" = yes; then | |
8868 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8869 | else | |
8870 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8871 | fi | |
8872 | ||
8873 | else | |
8874 | ||
8875 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8876 | if test "x$LINE" != x ; then | |
8877 | eval "DEFAULT_$LINE" | |
8878 | else | |
8879 | no_cache=1 | |
8880 | fi | |
8881 | ||
8882 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8883 | ||
8884 | fi; | |
8885 | ||
8886 | eval "$ac_cv_use_tbarsmpl" | |
8887 | if test "$no_cache" != 1; then | |
8888 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8889 | fi | |
8890 | ||
8891 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8892 | echo "$as_me:$LINENO: result: yes" >&5 | |
8893 | echo "${ECHO_T}yes" >&6 | |
8894 | else | |
8895 | echo "$as_me:$LINENO: result: no" >&5 | |
8896 | echo "${ECHO_T}no" >&6 | |
8897 | fi | |
8898 | ||
8899 | ||
8900 | enablestring= | |
8901 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8902 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8903 | no_cache=0 | |
8904 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8905 | if test "${enable_treectrl+set}" = set; then | |
8906 | enableval="$enable_treectrl" | |
8907 | ||
8908 | if test "$enableval" = yes; then | |
8909 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8910 | else | |
8911 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8912 | fi | |
8913 | ||
8914 | else | |
8915 | ||
8916 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8917 | if test "x$LINE" != x ; then | |
8918 | eval "DEFAULT_$LINE" | |
8919 | else | |
8920 | no_cache=1 | |
8921 | fi | |
8922 | ||
8923 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8924 | ||
8925 | fi; | |
8926 | ||
8927 | eval "$ac_cv_use_treectrl" | |
8928 | if test "$no_cache" != 1; then | |
8929 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8930 | fi | |
8931 | ||
8932 | if test "$wxUSE_TREECTRL" = yes; then | |
8933 | echo "$as_me:$LINENO: result: yes" >&5 | |
8934 | echo "${ECHO_T}yes" >&6 | |
8935 | else | |
8936 | echo "$as_me:$LINENO: result: no" >&5 | |
8937 | echo "${ECHO_T}no" >&6 | |
8938 | fi | |
8939 | ||
8940 | ||
8941 | enablestring= | |
8942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8943 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8944 | no_cache=0 | |
8945 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8946 | if test "${enable_tipwindow+set}" = set; then | |
8947 | enableval="$enable_tipwindow" | |
8948 | ||
8949 | if test "$enableval" = yes; then | |
8950 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8951 | else | |
8952 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8953 | fi | |
8954 | ||
8955 | else | |
8956 | ||
8957 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8958 | if test "x$LINE" != x ; then | |
8959 | eval "DEFAULT_$LINE" | |
8960 | else | |
8961 | no_cache=1 | |
8962 | fi | |
8963 | ||
8964 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8965 | ||
8966 | fi; | |
8967 | ||
8968 | eval "$ac_cv_use_tipwindow" | |
8969 | if test "$no_cache" != 1; then | |
8970 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8971 | fi | |
8972 | ||
8973 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8974 | echo "$as_me:$LINENO: result: yes" >&5 | |
8975 | echo "${ECHO_T}yes" >&6 | |
8976 | else | |
8977 | echo "$as_me:$LINENO: result: no" >&5 | |
8978 | echo "${ECHO_T}no" >&6 | |
8979 | fi | |
8980 | ||
8981 | ||
8982 | enablestring= | |
8983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8984 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8985 | no_cache=0 | |
8986 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8987 | if test "${enable_popupwin+set}" = set; then | |
8988 | enableval="$enable_popupwin" | |
8989 | ||
8990 | if test "$enableval" = yes; then | |
8991 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8992 | else | |
8993 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8994 | fi | |
8995 | ||
8996 | else | |
8997 | ||
8998 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8999 | if test "x$LINE" != x ; then | |
9000 | eval "DEFAULT_$LINE" | |
9001 | else | |
9002 | no_cache=1 | |
9003 | fi | |
9004 | ||
9005 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9006 | ||
9007 | fi; | |
9008 | ||
9009 | eval "$ac_cv_use_popupwin" | |
9010 | if test "$no_cache" != 1; then | |
9011 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9012 | fi | |
9013 | ||
9014 | if test "$wxUSE_POPUPWIN" = yes; then | |
9015 | echo "$as_me:$LINENO: result: yes" >&5 | |
9016 | echo "${ECHO_T}yes" >&6 | |
9017 | else | |
9018 | echo "$as_me:$LINENO: result: no" >&5 | |
9019 | echo "${ECHO_T}no" >&6 | |
9020 | fi | |
9021 | ||
9022 | ||
9023 | ||
9024 | ||
9025 | enablestring= | |
9026 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9027 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9028 | no_cache=0 | |
9029 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9030 | if test "${enable_commondlg+set}" = set; then | |
9031 | enableval="$enable_commondlg" | |
9032 | ||
9033 | if test "$enableval" = yes; then | |
9034 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9035 | else | |
9036 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9037 | fi | |
9038 | ||
9039 | else | |
9040 | ||
9041 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9042 | if test "x$LINE" != x ; then | |
9043 | eval "DEFAULT_$LINE" | |
9044 | else | |
9045 | no_cache=1 | |
9046 | fi | |
9047 | ||
9048 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9049 | ||
9050 | fi; | |
9051 | ||
9052 | eval "$ac_cv_use_commondlg" | |
9053 | if test "$no_cache" != 1; then | |
9054 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9055 | fi | |
9056 | ||
9057 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9058 | echo "$as_me:$LINENO: result: yes" >&5 | |
9059 | echo "${ECHO_T}yes" >&6 | |
9060 | else | |
9061 | echo "$as_me:$LINENO: result: no" >&5 | |
9062 | echo "${ECHO_T}no" >&6 | |
9063 | fi | |
9064 | ||
9065 | ||
9066 | enablestring= | |
9067 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9068 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9069 | no_cache=0 | |
9070 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9071 | if test "${enable_choicedlg+set}" = set; then | |
9072 | enableval="$enable_choicedlg" | |
9073 | ||
9074 | if test "$enableval" = yes; then | |
9075 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9076 | else | |
9077 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9078 | fi | |
9079 | ||
9080 | else | |
9081 | ||
9082 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9083 | if test "x$LINE" != x ; then | |
9084 | eval "DEFAULT_$LINE" | |
9085 | else | |
9086 | no_cache=1 | |
9087 | fi | |
9088 | ||
9089 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9090 | ||
9091 | fi; | |
9092 | ||
9093 | eval "$ac_cv_use_choicedlg" | |
9094 | if test "$no_cache" != 1; then | |
9095 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9096 | fi | |
9097 | ||
9098 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9099 | echo "$as_me:$LINENO: result: yes" >&5 | |
9100 | echo "${ECHO_T}yes" >&6 | |
9101 | else | |
9102 | echo "$as_me:$LINENO: result: no" >&5 | |
9103 | echo "${ECHO_T}no" >&6 | |
9104 | fi | |
9105 | ||
9106 | ||
9107 | enablestring= | |
9108 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9109 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9110 | no_cache=0 | |
9111 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9112 | if test "${enable_coldlg+set}" = set; then | |
9113 | enableval="$enable_coldlg" | |
9114 | ||
9115 | if test "$enableval" = yes; then | |
9116 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9117 | else | |
9118 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9119 | fi | |
9120 | ||
9121 | else | |
9122 | ||
9123 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9124 | if test "x$LINE" != x ; then | |
9125 | eval "DEFAULT_$LINE" | |
9126 | else | |
9127 | no_cache=1 | |
9128 | fi | |
9129 | ||
9130 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9131 | ||
9132 | fi; | |
9133 | ||
9134 | eval "$ac_cv_use_coldlg" | |
9135 | if test "$no_cache" != 1; then | |
9136 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9137 | fi | |
9138 | ||
9139 | if test "$wxUSE_COLOURDLG" = yes; then | |
9140 | echo "$as_me:$LINENO: result: yes" >&5 | |
9141 | echo "${ECHO_T}yes" >&6 | |
9142 | else | |
9143 | echo "$as_me:$LINENO: result: no" >&5 | |
9144 | echo "${ECHO_T}no" >&6 | |
9145 | fi | |
9146 | ||
9147 | ||
9148 | enablestring= | |
9149 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9150 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9151 | no_cache=0 | |
9152 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9153 | if test "${enable_filedlg+set}" = set; then | |
9154 | enableval="$enable_filedlg" | |
9155 | ||
9156 | if test "$enableval" = yes; then | |
9157 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9158 | else | |
9159 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9160 | fi | |
9161 | ||
9162 | else | |
9163 | ||
9164 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9165 | if test "x$LINE" != x ; then | |
9166 | eval "DEFAULT_$LINE" | |
9167 | else | |
9168 | no_cache=1 | |
9169 | fi | |
9170 | ||
9171 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9172 | ||
9173 | fi; | |
9174 | ||
9175 | eval "$ac_cv_use_filedlg" | |
9176 | if test "$no_cache" != 1; then | |
9177 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9178 | fi | |
9179 | ||
9180 | if test "$wxUSE_FILEDLG" = yes; then | |
9181 | echo "$as_me:$LINENO: result: yes" >&5 | |
9182 | echo "${ECHO_T}yes" >&6 | |
9183 | else | |
9184 | echo "$as_me:$LINENO: result: no" >&5 | |
9185 | echo "${ECHO_T}no" >&6 | |
9186 | fi | |
9187 | ||
9188 | ||
9189 | enablestring= | |
9190 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9191 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9192 | no_cache=0 | |
9193 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9194 | if test "${enable_finddlg+set}" = set; then | |
9195 | enableval="$enable_finddlg" | |
9196 | ||
9197 | if test "$enableval" = yes; then | |
9198 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9199 | else | |
9200 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9201 | fi | |
9202 | ||
9203 | else | |
9204 | ||
9205 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9206 | if test "x$LINE" != x ; then | |
9207 | eval "DEFAULT_$LINE" | |
9208 | else | |
9209 | no_cache=1 | |
9210 | fi | |
9211 | ||
9212 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9213 | ||
9214 | fi; | |
9215 | ||
9216 | eval "$ac_cv_use_finddlg" | |
9217 | if test "$no_cache" != 1; then | |
9218 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9219 | fi | |
9220 | ||
9221 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9222 | echo "$as_me:$LINENO: result: yes" >&5 | |
9223 | echo "${ECHO_T}yes" >&6 | |
9224 | else | |
9225 | echo "$as_me:$LINENO: result: no" >&5 | |
9226 | echo "${ECHO_T}no" >&6 | |
9227 | fi | |
9228 | ||
9229 | ||
9230 | enablestring= | |
9231 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9232 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9233 | no_cache=0 | |
9234 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9235 | if test "${enable_fontdlg+set}" = set; then | |
9236 | enableval="$enable_fontdlg" | |
9237 | ||
9238 | if test "$enableval" = yes; then | |
9239 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9240 | else | |
9241 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9242 | fi | |
9243 | ||
9244 | else | |
9245 | ||
9246 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9247 | if test "x$LINE" != x ; then | |
9248 | eval "DEFAULT_$LINE" | |
9249 | else | |
9250 | no_cache=1 | |
9251 | fi | |
9252 | ||
9253 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9254 | ||
9255 | fi; | |
9256 | ||
9257 | eval "$ac_cv_use_fontdlg" | |
9258 | if test "$no_cache" != 1; then | |
9259 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9260 | fi | |
9261 | ||
9262 | if test "$wxUSE_FONTDLG" = yes; then | |
9263 | echo "$as_me:$LINENO: result: yes" >&5 | |
9264 | echo "${ECHO_T}yes" >&6 | |
9265 | else | |
9266 | echo "$as_me:$LINENO: result: no" >&5 | |
9267 | echo "${ECHO_T}no" >&6 | |
9268 | fi | |
9269 | ||
9270 | ||
9271 | enablestring= | |
9272 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9273 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9274 | no_cache=0 | |
9275 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9276 | if test "${enable_dirdlg+set}" = set; then | |
9277 | enableval="$enable_dirdlg" | |
9278 | ||
9279 | if test "$enableval" = yes; then | |
9280 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9281 | else | |
9282 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9283 | fi | |
9284 | ||
9285 | else | |
9286 | ||
9287 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9288 | if test "x$LINE" != x ; then | |
9289 | eval "DEFAULT_$LINE" | |
9290 | else | |
9291 | no_cache=1 | |
9292 | fi | |
9293 | ||
9294 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9295 | ||
9296 | fi; | |
9297 | ||
9298 | eval "$ac_cv_use_dirdlg" | |
9299 | if test "$no_cache" != 1; then | |
9300 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9301 | fi | |
9302 | ||
9303 | if test "$wxUSE_DIRDLG" = yes; then | |
9304 | echo "$as_me:$LINENO: result: yes" >&5 | |
9305 | echo "${ECHO_T}yes" >&6 | |
9306 | else | |
9307 | echo "$as_me:$LINENO: result: no" >&5 | |
9308 | echo "${ECHO_T}no" >&6 | |
9309 | fi | |
9310 | ||
9311 | ||
9312 | enablestring= | |
9313 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9314 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9315 | no_cache=0 | |
9316 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9317 | if test "${enable_msgdlg+set}" = set; then | |
9318 | enableval="$enable_msgdlg" | |
9319 | ||
9320 | if test "$enableval" = yes; then | |
9321 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9322 | else | |
9323 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9324 | fi | |
9325 | ||
9326 | else | |
9327 | ||
9328 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9329 | if test "x$LINE" != x ; then | |
9330 | eval "DEFAULT_$LINE" | |
9331 | else | |
9332 | no_cache=1 | |
9333 | fi | |
9334 | ||
9335 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9336 | ||
9337 | fi; | |
9338 | ||
9339 | eval "$ac_cv_use_msgdlg" | |
9340 | if test "$no_cache" != 1; then | |
9341 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9342 | fi | |
9343 | ||
9344 | if test "$wxUSE_MSGDLG" = yes; then | |
9345 | echo "$as_me:$LINENO: result: yes" >&5 | |
9346 | echo "${ECHO_T}yes" >&6 | |
9347 | else | |
9348 | echo "$as_me:$LINENO: result: no" >&5 | |
9349 | echo "${ECHO_T}no" >&6 | |
9350 | fi | |
9351 | ||
9352 | ||
9353 | enablestring= | |
9354 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9355 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9356 | no_cache=0 | |
9357 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9358 | if test "${enable_numberdlg+set}" = set; then | |
9359 | enableval="$enable_numberdlg" | |
9360 | ||
9361 | if test "$enableval" = yes; then | |
9362 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9363 | else | |
9364 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9365 | fi | |
9366 | ||
9367 | else | |
9368 | ||
9369 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9370 | if test "x$LINE" != x ; then | |
9371 | eval "DEFAULT_$LINE" | |
9372 | else | |
9373 | no_cache=1 | |
9374 | fi | |
9375 | ||
9376 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9377 | ||
9378 | fi; | |
9379 | ||
9380 | eval "$ac_cv_use_numberdlg" | |
9381 | if test "$no_cache" != 1; then | |
9382 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9383 | fi | |
9384 | ||
9385 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9386 | echo "$as_me:$LINENO: result: yes" >&5 | |
9387 | echo "${ECHO_T}yes" >&6 | |
9388 | else | |
9389 | echo "$as_me:$LINENO: result: no" >&5 | |
9390 | echo "${ECHO_T}no" >&6 | |
9391 | fi | |
9392 | ||
9393 | ||
9394 | enablestring= | |
9395 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9396 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9397 | no_cache=0 | |
9398 | # Check whether --enable-splash or --disable-splash was given. | |
9399 | if test "${enable_splash+set}" = set; then | |
9400 | enableval="$enable_splash" | |
9401 | ||
9402 | if test "$enableval" = yes; then | |
9403 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9404 | else | |
9405 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9406 | fi | |
9407 | ||
9408 | else | |
9409 | ||
9410 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9411 | if test "x$LINE" != x ; then | |
9412 | eval "DEFAULT_$LINE" | |
9413 | else | |
9414 | no_cache=1 | |
9415 | fi | |
9416 | ||
9417 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9418 | ||
9419 | fi; | |
9420 | ||
9421 | eval "$ac_cv_use_splash" | |
9422 | if test "$no_cache" != 1; then | |
9423 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9424 | fi | |
9425 | ||
9426 | if test "$wxUSE_SPLASH" = yes; then | |
9427 | echo "$as_me:$LINENO: result: yes" >&5 | |
9428 | echo "${ECHO_T}yes" >&6 | |
9429 | else | |
9430 | echo "$as_me:$LINENO: result: no" >&5 | |
9431 | echo "${ECHO_T}no" >&6 | |
9432 | fi | |
9433 | ||
9434 | ||
9435 | enablestring= | |
9436 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9437 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9438 | no_cache=0 | |
9439 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9440 | if test "${enable_textdlg+set}" = set; then | |
9441 | enableval="$enable_textdlg" | |
9442 | ||
9443 | if test "$enableval" = yes; then | |
9444 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9445 | else | |
9446 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9447 | fi | |
9448 | ||
9449 | else | |
9450 | ||
9451 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9452 | if test "x$LINE" != x ; then | |
9453 | eval "DEFAULT_$LINE" | |
9454 | else | |
9455 | no_cache=1 | |
9456 | fi | |
9457 | ||
9458 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9459 | ||
9460 | fi; | |
9461 | ||
9462 | eval "$ac_cv_use_textdlg" | |
9463 | if test "$no_cache" != 1; then | |
9464 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9465 | fi | |
9466 | ||
9467 | if test "$wxUSE_TEXTDLG" = yes; then | |
9468 | echo "$as_me:$LINENO: result: yes" >&5 | |
9469 | echo "${ECHO_T}yes" >&6 | |
9470 | else | |
9471 | echo "$as_me:$LINENO: result: no" >&5 | |
9472 | echo "${ECHO_T}no" >&6 | |
9473 | fi | |
9474 | ||
9475 | ||
9476 | enablestring= | |
9477 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9478 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9479 | no_cache=0 | |
9480 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9481 | if test "${enable_tipdlg+set}" = set; then | |
9482 | enableval="$enable_tipdlg" | |
9483 | ||
9484 | if test "$enableval" = yes; then | |
9485 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9486 | else | |
9487 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9488 | fi | |
9489 | ||
9490 | else | |
9491 | ||
9492 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9493 | if test "x$LINE" != x ; then | |
9494 | eval "DEFAULT_$LINE" | |
9495 | else | |
9496 | no_cache=1 | |
9497 | fi | |
9498 | ||
9499 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9500 | ||
9501 | fi; | |
9502 | ||
9503 | eval "$ac_cv_use_tipdlg" | |
9504 | if test "$no_cache" != 1; then | |
9505 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9506 | fi | |
9507 | ||
9508 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9509 | echo "$as_me:$LINENO: result: yes" >&5 | |
9510 | echo "${ECHO_T}yes" >&6 | |
9511 | else | |
9512 | echo "$as_me:$LINENO: result: no" >&5 | |
9513 | echo "${ECHO_T}no" >&6 | |
9514 | fi | |
9515 | ||
9516 | ||
9517 | enablestring= | |
9518 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9519 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9520 | no_cache=0 | |
9521 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9522 | if test "${enable_progressdlg+set}" = set; then | |
9523 | enableval="$enable_progressdlg" | |
9524 | ||
9525 | if test "$enableval" = yes; then | |
9526 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9527 | else | |
9528 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9529 | fi | |
9530 | ||
9531 | else | |
9532 | ||
9533 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9534 | if test "x$LINE" != x ; then | |
9535 | eval "DEFAULT_$LINE" | |
9536 | else | |
9537 | no_cache=1 | |
9538 | fi | |
9539 | ||
9540 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9541 | ||
9542 | fi; | |
9543 | ||
9544 | eval "$ac_cv_use_progressdlg" | |
9545 | if test "$no_cache" != 1; then | |
9546 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9547 | fi | |
9548 | ||
9549 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9550 | echo "$as_me:$LINENO: result: yes" >&5 | |
9551 | echo "${ECHO_T}yes" >&6 | |
9552 | else | |
9553 | echo "$as_me:$LINENO: result: no" >&5 | |
9554 | echo "${ECHO_T}no" >&6 | |
9555 | fi | |
9556 | ||
9557 | ||
9558 | enablestring= | |
9559 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9560 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9561 | no_cache=0 | |
9562 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9563 | if test "${enable_wizarddlg+set}" = set; then | |
9564 | enableval="$enable_wizarddlg" | |
9565 | ||
9566 | if test "$enableval" = yes; then | |
9567 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9568 | else | |
9569 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9570 | fi | |
9571 | ||
9572 | else | |
9573 | ||
9574 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9575 | if test "x$LINE" != x ; then | |
9576 | eval "DEFAULT_$LINE" | |
9577 | else | |
9578 | no_cache=1 | |
9579 | fi | |
9580 | ||
9581 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9582 | ||
9583 | fi; | |
9584 | ||
9585 | eval "$ac_cv_use_wizarddlg" | |
9586 | if test "$no_cache" != 1; then | |
9587 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9588 | fi | |
9589 | ||
9590 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9591 | echo "$as_me:$LINENO: result: yes" >&5 | |
9592 | echo "${ECHO_T}yes" >&6 | |
9593 | else | |
9594 | echo "$as_me:$LINENO: result: no" >&5 | |
9595 | echo "${ECHO_T}no" >&6 | |
9596 | fi | |
9597 | ||
9598 | ||
9599 | ||
9600 | ||
9601 | enablestring= | |
9602 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9603 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9604 | no_cache=0 | |
9605 | # Check whether --enable-menus or --disable-menus was given. | |
9606 | if test "${enable_menus+set}" = set; then | |
9607 | enableval="$enable_menus" | |
9608 | ||
9609 | if test "$enableval" = yes; then | |
9610 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9611 | else | |
9612 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9613 | fi | |
9614 | ||
9615 | else | |
9616 | ||
9617 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9618 | if test "x$LINE" != x ; then | |
9619 | eval "DEFAULT_$LINE" | |
9620 | else | |
9621 | no_cache=1 | |
9622 | fi | |
9623 | ||
9624 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9625 | ||
9626 | fi; | |
9627 | ||
9628 | eval "$ac_cv_use_menus" | |
9629 | if test "$no_cache" != 1; then | |
9630 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9631 | fi | |
9632 | ||
9633 | if test "$wxUSE_MENUS" = yes; then | |
9634 | echo "$as_me:$LINENO: result: yes" >&5 | |
9635 | echo "${ECHO_T}yes" >&6 | |
9636 | else | |
9637 | echo "$as_me:$LINENO: result: no" >&5 | |
9638 | echo "${ECHO_T}no" >&6 | |
9639 | fi | |
9640 | ||
9641 | ||
9642 | enablestring= | |
9643 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9644 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9645 | no_cache=0 | |
9646 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9647 | if test "${enable_miniframe+set}" = set; then | |
9648 | enableval="$enable_miniframe" | |
9649 | ||
9650 | if test "$enableval" = yes; then | |
9651 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9652 | else | |
9653 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9654 | fi | |
9655 | ||
9656 | else | |
9657 | ||
9658 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9659 | if test "x$LINE" != x ; then | |
9660 | eval "DEFAULT_$LINE" | |
9661 | else | |
9662 | no_cache=1 | |
9663 | fi | |
9664 | ||
9665 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9666 | ||
9667 | fi; | |
9668 | ||
9669 | eval "$ac_cv_use_miniframe" | |
9670 | if test "$no_cache" != 1; then | |
9671 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9672 | fi | |
9673 | ||
9674 | if test "$wxUSE_MINIFRAME" = yes; then | |
9675 | echo "$as_me:$LINENO: result: yes" >&5 | |
9676 | echo "${ECHO_T}yes" >&6 | |
9677 | else | |
9678 | echo "$as_me:$LINENO: result: no" >&5 | |
9679 | echo "${ECHO_T}no" >&6 | |
9680 | fi | |
9681 | ||
9682 | ||
9683 | enablestring= | |
9684 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9685 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9686 | no_cache=0 | |
9687 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9688 | if test "${enable_tooltips+set}" = set; then | |
9689 | enableval="$enable_tooltips" | |
9690 | ||
9691 | if test "$enableval" = yes; then | |
9692 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9693 | else | |
9694 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9695 | fi | |
9696 | ||
9697 | else | |
9698 | ||
9699 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9700 | if test "x$LINE" != x ; then | |
9701 | eval "DEFAULT_$LINE" | |
9702 | else | |
9703 | no_cache=1 | |
9704 | fi | |
9705 | ||
9706 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9707 | ||
9708 | fi; | |
9709 | ||
9710 | eval "$ac_cv_use_tooltips" | |
9711 | if test "$no_cache" != 1; then | |
9712 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9713 | fi | |
9714 | ||
9715 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9716 | echo "$as_me:$LINENO: result: yes" >&5 | |
9717 | echo "${ECHO_T}yes" >&6 | |
9718 | else | |
9719 | echo "$as_me:$LINENO: result: no" >&5 | |
9720 | echo "${ECHO_T}no" >&6 | |
9721 | fi | |
9722 | ||
9723 | ||
9724 | enablestring= | |
9725 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9726 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9727 | no_cache=0 | |
9728 | # Check whether --enable-splines or --disable-splines was given. | |
9729 | if test "${enable_splines+set}" = set; then | |
9730 | enableval="$enable_splines" | |
9731 | ||
9732 | if test "$enableval" = yes; then | |
9733 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9734 | else | |
9735 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9736 | fi | |
9737 | ||
9738 | else | |
9739 | ||
9740 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9741 | if test "x$LINE" != x ; then | |
9742 | eval "DEFAULT_$LINE" | |
9743 | else | |
9744 | no_cache=1 | |
9745 | fi | |
9746 | ||
9747 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9748 | ||
9749 | fi; | |
9750 | ||
9751 | eval "$ac_cv_use_splines" | |
9752 | if test "$no_cache" != 1; then | |
9753 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9754 | fi | |
9755 | ||
9756 | if test "$wxUSE_SPLINES" = yes; then | |
9757 | echo "$as_me:$LINENO: result: yes" >&5 | |
9758 | echo "${ECHO_T}yes" >&6 | |
9759 | else | |
9760 | echo "$as_me:$LINENO: result: no" >&5 | |
9761 | echo "${ECHO_T}no" >&6 | |
9762 | fi | |
9763 | ||
9764 | ||
fbe2ca43 SN |
9765 | enablestring= |
9766 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
9767 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
9768 | no_cache=0 | |
9769 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
9770 | if test "${enable_mousewheel+set}" = set; then | |
9771 | enableval="$enable_mousewheel" | |
9772 | ||
9773 | if test "$enableval" = yes; then | |
9774 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
9775 | else | |
9776 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
9777 | fi | |
9778 | ||
9779 | else | |
9780 | ||
9781 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
9782 | if test "x$LINE" != x ; then | |
9783 | eval "DEFAULT_$LINE" | |
9784 | else | |
9785 | no_cache=1 | |
9786 | fi | |
9787 | ||
9788 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
9789 | ||
9790 | fi; | |
9791 | ||
9792 | eval "$ac_cv_use_mousewheel" | |
9793 | if test "$no_cache" != 1; then | |
9794 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
9795 | fi | |
9796 | ||
9797 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
9798 | echo "$as_me:$LINENO: result: yes" >&5 | |
9799 | echo "${ECHO_T}yes" >&6 | |
9800 | else | |
9801 | echo "$as_me:$LINENO: result: no" >&5 | |
9802 | echo "${ECHO_T}no" >&6 | |
9803 | fi | |
9804 | ||
9805 | ||
a848cd7e SC |
9806 | enablestring= |
9807 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9808 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9809 | no_cache=0 | |
9810 | # Check whether --enable-validators or --disable-validators was given. | |
9811 | if test "${enable_validators+set}" = set; then | |
9812 | enableval="$enable_validators" | |
9813 | ||
9814 | if test "$enableval" = yes; then | |
9815 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9816 | else | |
9817 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9818 | fi | |
9819 | ||
9820 | else | |
9821 | ||
9822 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9823 | if test "x$LINE" != x ; then | |
9824 | eval "DEFAULT_$LINE" | |
9825 | else | |
9826 | no_cache=1 | |
9827 | fi | |
9828 | ||
9829 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9830 | ||
9831 | fi; | |
9832 | ||
9833 | eval "$ac_cv_use_validators" | |
9834 | if test "$no_cache" != 1; then | |
9835 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9836 | fi | |
9837 | ||
9838 | if test "$wxUSE_VALIDATORS" = yes; then | |
9839 | echo "$as_me:$LINENO: result: yes" >&5 | |
9840 | echo "${ECHO_T}yes" >&6 | |
9841 | else | |
9842 | echo "$as_me:$LINENO: result: no" >&5 | |
9843 | echo "${ECHO_T}no" >&6 | |
9844 | fi | |
9845 | ||
9846 | ||
9847 | enablestring= | |
9848 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9849 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9850 | no_cache=0 | |
9851 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9852 | if test "${enable_busyinfo+set}" = set; then | |
9853 | enableval="$enable_busyinfo" | |
9854 | ||
9855 | if test "$enableval" = yes; then | |
9856 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9857 | else | |
9858 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9859 | fi | |
9860 | ||
9861 | else | |
9862 | ||
9863 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9864 | if test "x$LINE" != x ; then | |
9865 | eval "DEFAULT_$LINE" | |
9866 | else | |
9867 | no_cache=1 | |
9868 | fi | |
9869 | ||
9870 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9871 | ||
9872 | fi; | |
9873 | ||
9874 | eval "$ac_cv_use_busyinfo" | |
9875 | if test "$no_cache" != 1; then | |
9876 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9877 | fi | |
9878 | ||
9879 | if test "$wxUSE_BUSYINFO" = yes; then | |
9880 | echo "$as_me:$LINENO: result: yes" >&5 | |
9881 | echo "${ECHO_T}yes" >&6 | |
9882 | else | |
9883 | echo "$as_me:$LINENO: result: no" >&5 | |
9884 | echo "${ECHO_T}no" >&6 | |
9885 | fi | |
9886 | ||
9887 | ||
9888 | enablestring= | |
9889 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9890 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9891 | no_cache=0 | |
9892 | # Check whether --enable-joystick or --disable-joystick was given. | |
9893 | if test "${enable_joystick+set}" = set; then | |
9894 | enableval="$enable_joystick" | |
9895 | ||
9896 | if test "$enableval" = yes; then | |
9897 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9898 | else | |
9899 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9900 | fi | |
9901 | ||
9902 | else | |
9903 | ||
9904 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9905 | if test "x$LINE" != x ; then | |
9906 | eval "DEFAULT_$LINE" | |
9907 | else | |
9908 | no_cache=1 | |
9909 | fi | |
9910 | ||
9911 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9912 | ||
9913 | fi; | |
9914 | ||
9915 | eval "$ac_cv_use_joystick" | |
9916 | if test "$no_cache" != 1; then | |
9917 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9918 | fi | |
9919 | ||
9920 | if test "$wxUSE_JOYSTICK" = yes; then | |
9921 | echo "$as_me:$LINENO: result: yes" >&5 | |
9922 | echo "${ECHO_T}yes" >&6 | |
9923 | else | |
9924 | echo "$as_me:$LINENO: result: no" >&5 | |
9925 | echo "${ECHO_T}no" >&6 | |
9926 | fi | |
9927 | ||
9928 | ||
9929 | enablestring= | |
9930 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9931 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9932 | no_cache=0 | |
9933 | # Check whether --enable-metafile or --disable-metafile was given. | |
9934 | if test "${enable_metafile+set}" = set; then | |
9935 | enableval="$enable_metafile" | |
9936 | ||
9937 | if test "$enableval" = yes; then | |
9938 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9939 | else | |
9940 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9941 | fi | |
9942 | ||
9943 | else | |
9944 | ||
9945 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9946 | if test "x$LINE" != x ; then | |
9947 | eval "DEFAULT_$LINE" | |
9948 | else | |
9949 | no_cache=1 | |
9950 | fi | |
9951 | ||
9952 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9953 | ||
9954 | fi; | |
9955 | ||
9956 | eval "$ac_cv_use_metafile" | |
9957 | if test "$no_cache" != 1; then | |
9958 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9959 | fi | |
9960 | ||
9961 | if test "$wxUSE_METAFILE" = yes; then | |
9962 | echo "$as_me:$LINENO: result: yes" >&5 | |
9963 | echo "${ECHO_T}yes" >&6 | |
9964 | else | |
9965 | echo "$as_me:$LINENO: result: no" >&5 | |
9966 | echo "${ECHO_T}no" >&6 | |
9967 | fi | |
9968 | ||
9969 | ||
9970 | enablestring= | |
9971 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9972 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9973 | no_cache=0 | |
9974 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9975 | if test "${enable_dragimage+set}" = set; then | |
9976 | enableval="$enable_dragimage" | |
9977 | ||
9978 | if test "$enableval" = yes; then | |
9979 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9980 | else | |
9981 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9982 | fi | |
9983 | ||
9984 | else | |
9985 | ||
9986 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9987 | if test "x$LINE" != x ; then | |
9988 | eval "DEFAULT_$LINE" | |
9989 | else | |
9990 | no_cache=1 | |
9991 | fi | |
9992 | ||
9993 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9994 | ||
9995 | fi; | |
9996 | ||
9997 | eval "$ac_cv_use_dragimage" | |
9998 | if test "$no_cache" != 1; then | |
9999 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10000 | fi | |
10001 | ||
10002 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10003 | echo "$as_me:$LINENO: result: yes" >&5 | |
10004 | echo "${ECHO_T}yes" >&6 | |
10005 | else | |
10006 | echo "$as_me:$LINENO: result: no" >&5 | |
10007 | echo "${ECHO_T}no" >&6 | |
10008 | fi | |
10009 | ||
10010 | ||
10011 | enablestring= | |
10012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10013 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10014 | no_cache=0 | |
10015 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10016 | if test "${enable_accessibility+set}" = set; then | |
10017 | enableval="$enable_accessibility" | |
10018 | ||
10019 | if test "$enableval" = yes; then | |
10020 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10021 | else | |
10022 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10023 | fi | |
10024 | ||
10025 | else | |
10026 | ||
10027 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10028 | if test "x$LINE" != x ; then | |
10029 | eval "DEFAULT_$LINE" | |
10030 | else | |
10031 | no_cache=1 | |
10032 | fi | |
10033 | ||
10034 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10035 | ||
10036 | fi; | |
10037 | ||
10038 | eval "$ac_cv_use_accessibility" | |
10039 | if test "$no_cache" != 1; then | |
10040 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10041 | fi | |
10042 | ||
10043 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10044 | echo "$as_me:$LINENO: result: yes" >&5 | |
10045 | echo "${ECHO_T}yes" >&6 | |
10046 | else | |
10047 | echo "$as_me:$LINENO: result: no" >&5 | |
10048 | echo "${ECHO_T}no" >&6 | |
10049 | fi | |
10050 | ||
10051 | ||
10052 | ||
10053 | ||
10054 | enablestring= | |
10055 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10056 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10057 | no_cache=0 | |
10058 | # Check whether --enable-palette or --disable-palette was given. | |
10059 | if test "${enable_palette+set}" = set; then | |
10060 | enableval="$enable_palette" | |
10061 | ||
10062 | if test "$enableval" = yes; then | |
10063 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10064 | else | |
10065 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10066 | fi | |
10067 | ||
10068 | else | |
10069 | ||
10070 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10071 | if test "x$LINE" != x ; then | |
10072 | eval "DEFAULT_$LINE" | |
10073 | else | |
10074 | no_cache=1 | |
10075 | fi | |
10076 | ||
10077 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10078 | ||
10079 | fi; | |
10080 | ||
10081 | eval "$ac_cv_use_palette" | |
10082 | if test "$no_cache" != 1; then | |
10083 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10084 | fi | |
10085 | ||
10086 | if test "$wxUSE_PALETTE" = yes; then | |
10087 | echo "$as_me:$LINENO: result: yes" >&5 | |
10088 | echo "${ECHO_T}yes" >&6 | |
10089 | else | |
10090 | echo "$as_me:$LINENO: result: no" >&5 | |
10091 | echo "${ECHO_T}no" >&6 | |
10092 | fi | |
10093 | ||
10094 | ||
10095 | enablestring= | |
10096 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10097 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10098 | no_cache=0 | |
10099 | # Check whether --enable-image or --disable-image was given. | |
10100 | if test "${enable_image+set}" = set; then | |
10101 | enableval="$enable_image" | |
10102 | ||
10103 | if test "$enableval" = yes; then | |
10104 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10105 | else | |
10106 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10107 | fi | |
10108 | ||
10109 | else | |
10110 | ||
10111 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10112 | if test "x$LINE" != x ; then | |
10113 | eval "DEFAULT_$LINE" | |
10114 | else | |
10115 | no_cache=1 | |
10116 | fi | |
10117 | ||
10118 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10119 | ||
10120 | fi; | |
10121 | ||
10122 | eval "$ac_cv_use_image" | |
10123 | if test "$no_cache" != 1; then | |
10124 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10125 | fi | |
10126 | ||
10127 | if test "$wxUSE_IMAGE" = yes; then | |
10128 | echo "$as_me:$LINENO: result: yes" >&5 | |
10129 | echo "${ECHO_T}yes" >&6 | |
10130 | else | |
10131 | echo "$as_me:$LINENO: result: no" >&5 | |
10132 | echo "${ECHO_T}no" >&6 | |
10133 | fi | |
10134 | ||
10135 | ||
10136 | enablestring= | |
10137 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10138 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10139 | no_cache=0 | |
10140 | # Check whether --enable-gif or --disable-gif was given. | |
10141 | if test "${enable_gif+set}" = set; then | |
10142 | enableval="$enable_gif" | |
10143 | ||
10144 | if test "$enableval" = yes; then | |
10145 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10146 | else | |
10147 | ac_cv_use_gif='wxUSE_GIF=no' | |
10148 | fi | |
10149 | ||
10150 | else | |
10151 | ||
10152 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10153 | if test "x$LINE" != x ; then | |
10154 | eval "DEFAULT_$LINE" | |
10155 | else | |
10156 | no_cache=1 | |
10157 | fi | |
10158 | ||
10159 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10160 | ||
10161 | fi; | |
10162 | ||
10163 | eval "$ac_cv_use_gif" | |
10164 | if test "$no_cache" != 1; then | |
10165 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10166 | fi | |
10167 | ||
10168 | if test "$wxUSE_GIF" = yes; then | |
10169 | echo "$as_me:$LINENO: result: yes" >&5 | |
10170 | echo "${ECHO_T}yes" >&6 | |
10171 | else | |
10172 | echo "$as_me:$LINENO: result: no" >&5 | |
10173 | echo "${ECHO_T}no" >&6 | |
10174 | fi | |
10175 | ||
10176 | ||
10177 | enablestring= | |
10178 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10179 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10180 | no_cache=0 | |
10181 | # Check whether --enable-pcx or --disable-pcx was given. | |
10182 | if test "${enable_pcx+set}" = set; then | |
10183 | enableval="$enable_pcx" | |
10184 | ||
10185 | if test "$enableval" = yes; then | |
10186 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10187 | else | |
10188 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10189 | fi | |
10190 | ||
10191 | else | |
10192 | ||
10193 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10194 | if test "x$LINE" != x ; then | |
10195 | eval "DEFAULT_$LINE" | |
10196 | else | |
10197 | no_cache=1 | |
10198 | fi | |
10199 | ||
10200 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10201 | ||
10202 | fi; | |
10203 | ||
10204 | eval "$ac_cv_use_pcx" | |
10205 | if test "$no_cache" != 1; then | |
10206 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10207 | fi | |
10208 | ||
10209 | if test "$wxUSE_PCX" = yes; then | |
10210 | echo "$as_me:$LINENO: result: yes" >&5 | |
10211 | echo "${ECHO_T}yes" >&6 | |
10212 | else | |
10213 | echo "$as_me:$LINENO: result: no" >&5 | |
10214 | echo "${ECHO_T}no" >&6 | |
10215 | fi | |
10216 | ||
10217 | ||
10218 | enablestring= | |
10219 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10220 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10221 | no_cache=0 | |
10222 | # Check whether --enable-iff or --disable-iff was given. | |
10223 | if test "${enable_iff+set}" = set; then | |
10224 | enableval="$enable_iff" | |
10225 | ||
10226 | if test "$enableval" = yes; then | |
10227 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10228 | else | |
10229 | ac_cv_use_iff='wxUSE_IFF=no' | |
10230 | fi | |
10231 | ||
10232 | else | |
10233 | ||
10234 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10235 | if test "x$LINE" != x ; then | |
10236 | eval "DEFAULT_$LINE" | |
10237 | else | |
10238 | no_cache=1 | |
10239 | fi | |
10240 | ||
10241 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10242 | ||
10243 | fi; | |
10244 | ||
10245 | eval "$ac_cv_use_iff" | |
10246 | if test "$no_cache" != 1; then | |
10247 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10248 | fi | |
10249 | ||
10250 | if test "$wxUSE_IFF" = yes; then | |
10251 | echo "$as_me:$LINENO: result: yes" >&5 | |
10252 | echo "${ECHO_T}yes" >&6 | |
10253 | else | |
10254 | echo "$as_me:$LINENO: result: no" >&5 | |
10255 | echo "${ECHO_T}no" >&6 | |
10256 | fi | |
10257 | ||
10258 | ||
10259 | enablestring= | |
10260 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10261 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10262 | no_cache=0 | |
10263 | # Check whether --enable-pnm or --disable-pnm was given. | |
10264 | if test "${enable_pnm+set}" = set; then | |
10265 | enableval="$enable_pnm" | |
10266 | ||
10267 | if test "$enableval" = yes; then | |
10268 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10269 | else | |
10270 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10271 | fi | |
10272 | ||
10273 | else | |
10274 | ||
10275 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10276 | if test "x$LINE" != x ; then | |
10277 | eval "DEFAULT_$LINE" | |
10278 | else | |
10279 | no_cache=1 | |
10280 | fi | |
10281 | ||
10282 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10283 | ||
10284 | fi; | |
10285 | ||
10286 | eval "$ac_cv_use_pnm" | |
10287 | if test "$no_cache" != 1; then | |
10288 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10289 | fi | |
10290 | ||
10291 | if test "$wxUSE_PNM" = yes; then | |
10292 | echo "$as_me:$LINENO: result: yes" >&5 | |
10293 | echo "${ECHO_T}yes" >&6 | |
10294 | else | |
10295 | echo "$as_me:$LINENO: result: no" >&5 | |
10296 | echo "${ECHO_T}no" >&6 | |
10297 | fi | |
10298 | ||
10299 | ||
10300 | enablestring= | |
10301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10302 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10303 | no_cache=0 | |
10304 | # Check whether --enable-xpm or --disable-xpm was given. | |
10305 | if test "${enable_xpm+set}" = set; then | |
10306 | enableval="$enable_xpm" | |
10307 | ||
10308 | if test "$enableval" = yes; then | |
10309 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10310 | else | |
10311 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10312 | fi | |
10313 | ||
10314 | else | |
10315 | ||
10316 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10317 | if test "x$LINE" != x ; then | |
10318 | eval "DEFAULT_$LINE" | |
10319 | else | |
10320 | no_cache=1 | |
10321 | fi | |
10322 | ||
10323 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10324 | ||
10325 | fi; | |
10326 | ||
10327 | eval "$ac_cv_use_xpm" | |
10328 | if test "$no_cache" != 1; then | |
10329 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10330 | fi | |
10331 | ||
10332 | if test "$wxUSE_XPM" = yes; then | |
10333 | echo "$as_me:$LINENO: result: yes" >&5 | |
10334 | echo "${ECHO_T}yes" >&6 | |
10335 | else | |
10336 | echo "$as_me:$LINENO: result: no" >&5 | |
10337 | echo "${ECHO_T}no" >&6 | |
10338 | fi | |
10339 | ||
10340 | ||
10341 | enablestring= | |
10342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10343 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10344 | no_cache=0 | |
10345 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10346 | if test "${enable_ico_cur+set}" = set; then | |
10347 | enableval="$enable_ico_cur" | |
10348 | ||
10349 | if test "$enableval" = yes; then | |
10350 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10351 | else | |
10352 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10353 | fi | |
10354 | ||
10355 | else | |
10356 | ||
10357 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10358 | if test "x$LINE" != x ; then | |
10359 | eval "DEFAULT_$LINE" | |
10360 | else | |
10361 | no_cache=1 | |
10362 | fi | |
10363 | ||
10364 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10365 | ||
10366 | fi; | |
10367 | ||
10368 | eval "$ac_cv_use_ico_cur" | |
10369 | if test "$no_cache" != 1; then | |
10370 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10371 | fi | |
10372 | ||
10373 | if test "$wxUSE_ICO_CUR" = yes; then | |
10374 | echo "$as_me:$LINENO: result: yes" >&5 | |
10375 | echo "${ECHO_T}yes" >&6 | |
10376 | else | |
10377 | echo "$as_me:$LINENO: result: no" >&5 | |
10378 | echo "${ECHO_T}no" >&6 | |
10379 | fi | |
10380 | ||
10381 | ||
10382 | fi | |
10383 | ||
10384 | ||
10385 | ||
ceec2216 RL |
10386 | # Check whether --with-flavour or --without-flavour was given. |
10387 | if test "${with_flavour+set}" = set; then | |
10388 | withval="$with_flavour" | |
10389 | WX_FLAVOUR="$withval" | |
10390 | fi; | |
10391 | ||
10392 | ||
10393 | ||
a848cd7e SC |
10394 | enablestring= |
10395 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10396 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10397 | no_cache=0 | |
10398 | # Check whether --enable-official_build or --disable-official_build was given. | |
10399 | if test "${enable_official_build+set}" = set; then | |
10400 | enableval="$enable_official_build" | |
10401 | ||
10402 | if test "$enableval" = yes; then | |
10403 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10404 | else | |
10405 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10406 | fi | |
10407 | ||
10408 | else | |
10409 | ||
10410 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10411 | if test "x$LINE" != x ; then | |
10412 | eval "DEFAULT_$LINE" | |
10413 | else | |
10414 | no_cache=1 | |
10415 | fi | |
10416 | ||
10417 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10418 | ||
10419 | fi; | |
10420 | ||
10421 | eval "$ac_cv_use_official_build" | |
10422 | if test "$no_cache" != 1; then | |
10423 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10424 | fi | |
10425 | ||
10426 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10427 | echo "$as_me:$LINENO: result: yes" >&5 | |
10428 | echo "${ECHO_T}yes" >&6 | |
10429 | else | |
10430 | echo "$as_me:$LINENO: result: no" >&5 | |
10431 | echo "${ECHO_T}no" >&6 | |
10432 | fi | |
10433 | ||
10434 | # Check whether --enable-vendor or --disable-vendor was given. | |
10435 | if test "${enable_vendor+set}" = set; then | |
10436 | enableval="$enable_vendor" | |
10437 | VENDOR="$enableval" | |
10438 | fi; | |
10439 | if test "x$VENDOR" = "x"; then | |
10440 | VENDOR="custom" | |
10441 | fi | |
10442 | ||
a848cd7e SC |
10443 | |
10444 | ||
10445 | ||
10446 | echo "saving argument cache $wx_arg_cache_file" | |
10447 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10448 | ||
10449 | ||
10450 | ||
10451 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10452 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10453 | ||
10454 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10455 | if test "$wxUSE_WINE" = "yes"; then | |
10456 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10457 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10458 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10459 | wxUSE_SHARED=no | |
10460 | fi | |
10461 | ||
f597b41c | 10462 | |
a848cd7e SC |
10463 | if test "$wxUSE_GUI" = "yes"; then |
10464 | ||
10465 | if test "$USE_BEOS" = 1; then | |
10466 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10467 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10468 | { (exit 1); exit 1; }; } | |
10469 | fi | |
10470 | ||
10471 | if test "$TOOLKIT_GIVEN" = 1; then | |
10472 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10473 | var=wxUSE_$toolkit | |
10474 | eval "value=\$${var}" | |
f34ca037 MW |
10475 | if test "x$value" = "xno"; then |
10476 | eval "$var=0" | |
10477 | elif test "x$value" != "x"; then | |
10478 | eval "$var=1" | |
10479 | fi | |
10480 | ||
10481 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10482 | eval "wx${toolkit}_VERSION=$value" | |
10483 | fi | |
a848cd7e SC |
10484 | done |
10485 | else | |
10486 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10487 | if test "$has_toolkit_in_cache" != 1; then | |
10488 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10489 | else | |
10490 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10491 | |
10492 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10493 | if test "x$version" != "x"; then | |
10494 | eval "wx${toolkit}_VERSION=$version" | |
10495 | fi | |
a848cd7e SC |
10496 | fi |
10497 | eval "wxUSE_$toolkit=\$${var}" | |
10498 | done | |
10499 | fi | |
10500 | ||
10501 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10502 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10503 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10504 | ||
10505 | case "${host}" in | |
10506 | *-pc-os2_emx | *-pc-os2-emx ) | |
10507 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10508 | esac | |
10509 | ||
10510 | case "$NUM_TOOLKITS" in | |
10511 | 1) | |
10512 | ;; | |
10513 | 0) | |
10514 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10515 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10516 | { (exit 1); exit 1; }; } | |
10517 | ;; | |
10518 | *) | |
10519 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10520 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10521 | { (exit 1); exit 1; }; } | |
10522 | esac | |
10523 | ||
f34ca037 MW |
10524 | # to be removed when --disable-gtk2 isn't needed |
10525 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10526 | wxGTK_VERSION=2 | |
10527 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10528 | wxGTK_VERSION=1 | |
10529 | fi | |
10530 | ||
a848cd7e SC |
10531 | for toolkit in `echo $ALL_TOOLKITS`; do |
10532 | var=wxUSE_$toolkit | |
10533 | eval "value=\$${var}" | |
10534 | if test "x$value" != x; then | |
10535 | cache_var=CACHE_$toolkit | |
10536 | eval "cache=\$${cache_var}" | |
10537 | if test "$cache" = 1; then | |
10538 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10539 | eval "version=\$wx${toolkit}_VERSION" |
10540 | if test "x$version" != "x"; then | |
10541 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10542 | fi | |
a848cd7e SC |
10543 | fi |
10544 | if test "$value" = 1; then | |
10545 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10546 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10547 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10548 | fi | |
10549 | fi | |
10550 | done | |
10551 | else | |
10552 | if test "x$host_alias" != "x"; then | |
10553 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10554 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10555 | else | |
10556 | echo "$as_me:$LINENO: result: base only" >&5 | |
10557 | echo "${ECHO_T}base only" >&6 | |
10558 | fi | |
10559 | fi | |
10560 | ||
10561 | wants_win32=0 | |
10562 | doesnt_want_win32=0 | |
10563 | case "${host}" in | |
10564 | *-*-cygwin*) | |
10565 | if test "$wxUSE_MSW" = 1 ; then | |
10566 | wants_win32=1 | |
10567 | else | |
10568 | doesnt_want_win32=1 | |
10569 | fi | |
10570 | ;; | |
10571 | *-*-mingw*) | |
10572 | wants_win32=1 | |
10573 | ;; | |
10574 | esac | |
10575 | ||
10576 | if test "$wxUSE_WINE" = "yes"; then | |
10577 | wants_win32=1 | |
10578 | CC=winegcc | |
10579 | CXX=wineg++ | |
10580 | RESCOMP=wrc | |
10581 | LDFLAGS_GUI="-mwindows" | |
10582 | fi | |
10583 | ||
10584 | if test "$wants_win32" = 1 ; then | |
10585 | USE_UNIX=0 | |
10586 | USE_WIN32=1 | |
10587 | cat >>confdefs.h <<\_ACEOF | |
10588 | #define __WIN32__ 1 | |
10589 | _ACEOF | |
10590 | ||
10591 | cat >>confdefs.h <<\_ACEOF | |
10592 | #define __WIN95__ 1 | |
10593 | _ACEOF | |
10594 | ||
10595 | cat >>confdefs.h <<\_ACEOF | |
10596 | #define __WINDOWS__ 1 | |
10597 | _ACEOF | |
10598 | ||
10599 | cat >>confdefs.h <<\_ACEOF | |
10600 | #define __GNUWIN32__ 1 | |
10601 | _ACEOF | |
10602 | ||
10603 | cat >>confdefs.h <<\_ACEOF | |
10604 | #define STRICT 1 | |
10605 | _ACEOF | |
10606 | ||
10607 | cat >>confdefs.h <<\_ACEOF | |
10608 | #define WINVER 0x0400 | |
10609 | _ACEOF | |
10610 | ||
10611 | fi | |
10612 | if test "$doesnt_want_win32" = 1 ; then | |
10613 | USE_UNIX=1 | |
10614 | USE_WIN32=0 | |
10615 | fi | |
10616 | ||
10617 | if test "$USE_UNIX" = 1 ; then | |
10618 | wxUSE_UNIX=yes | |
10619 | cat >>confdefs.h <<\_ACEOF | |
10620 | #define __UNIX__ 1 | |
10621 | _ACEOF | |
10622 | ||
10623 | fi | |
10624 | ||
10625 | ||
10626 | cat >confcache <<\_ACEOF | |
10627 | # This file is a shell script that caches the results of configure | |
10628 | # tests run on this system so they can be shared between configure | |
10629 | # scripts and configure runs, see configure's option --config-cache. | |
10630 | # It is not useful on other systems. If it contains results you don't | |
10631 | # want to keep, you may remove or edit it. | |
10632 | # | |
10633 | # config.status only pays attention to the cache file if you give it | |
10634 | # the --recheck option to rerun configure. | |
10635 | # | |
10636 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10637 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10638 | # following values. | |
10639 | ||
10640 | _ACEOF | |
10641 | ||
10642 | # The following way of writing the cache mishandles newlines in values, | |
10643 | # but we know of no workaround that is simple, portable, and efficient. | |
10644 | # So, don't put newlines in cache variables' values. | |
10645 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10646 | # and sets the high bit in the cache file unless we assign to the vars. | |
10647 | { | |
10648 | (set) 2>&1 | | |
10649 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10650 | *ac_space=\ *) | |
10651 | # `set' does not quote correctly, so add quotes (double-quote | |
10652 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10653 | sed -n \ | |
ac1cb8d3 VS |
10654 | "s/'/'\\\\''/g; |
10655 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10656 | ;; |
10657 | *) | |
10658 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10659 | sed -n \ | |
ac1cb8d3 | 10660 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10661 | ;; |
10662 | esac; | |
10663 | } | | |
10664 | sed ' | |
10665 | t clear | |
10666 | : clear | |
10667 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10668 | t end | |
10669 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10670 | : end' >>confcache | |
10671 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10672 | if test -w $cache_file; then | |
10673 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10674 | cat confcache >$cache_file | |
10675 | else | |
10676 | echo "not updating unwritable cache $cache_file" | |
10677 | fi | |
10678 | fi | |
10679 | rm -f confcache | |
10680 | ||
10681 | if test "$build" != "$host" ; then | |
1e9e8aba | 10682 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then |
a848cd7e SC |
10683 | CC=$host_alias-gcc |
10684 | CXX=$host_alias-c++ | |
10685 | AR=$host_alias-ar | |
10686 | RANLIB=$host_alias-ranlib | |
10687 | DLLTOOL=$host_alias-dlltool | |
10688 | RESCOMP=$host_alias-windres | |
a848cd7e | 10689 | STRIP=$host_alias-strip |
1e9e8aba DE |
10690 | elif test "x$CC" '!=' "x"; then |
10691 | echo "You set CC, I assume you know what you are doing." | |
a848cd7e SC |
10692 | else |
10693 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10694 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10695 | { (exit 1); exit 1; }; } | |
10696 | fi | |
10697 | fi | |
10698 | ||
10699 | CFLAGS=${CFLAGS:=} | |
6dcfc289 DE |
10700 | |
10701 | ||
10702 | ac_ext=c | |
a848cd7e SC |
10703 | ac_cpp='$CPP $CPPFLAGS' |
10704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10707 | if test -n "$ac_tool_prefix"; then | |
10708 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10709 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10710 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10712 | if test "${ac_cv_prog_CC+set}" = set; then | |
10713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10714 | else | |
10715 | if test -n "$CC"; then | |
10716 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10717 | else | |
10718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10719 | for as_dir in $PATH | |
10720 | do | |
10721 | IFS=$as_save_IFS | |
10722 | test -z "$as_dir" && as_dir=. | |
10723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10724 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10725 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10727 | break 2 | |
10728 | fi | |
10729 | done | |
10730 | done | |
10731 | ||
10732 | fi | |
10733 | fi | |
10734 | CC=$ac_cv_prog_CC | |
10735 | if test -n "$CC"; then | |
10736 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10737 | echo "${ECHO_T}$CC" >&6 | |
10738 | else | |
10739 | echo "$as_me:$LINENO: result: no" >&5 | |
10740 | echo "${ECHO_T}no" >&6 | |
10741 | fi | |
10742 | ||
10743 | fi | |
10744 | if test -z "$ac_cv_prog_CC"; then | |
10745 | ac_ct_CC=$CC | |
10746 | # Extract the first word of "gcc", so it can be a program name with args. | |
10747 | set dummy gcc; ac_word=$2 | |
10748 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10750 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10752 | else | |
10753 | if test -n "$ac_ct_CC"; then | |
10754 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10755 | else | |
10756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10757 | for as_dir in $PATH | |
10758 | do | |
10759 | IFS=$as_save_IFS | |
10760 | test -z "$as_dir" && as_dir=. | |
10761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10762 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10763 | ac_cv_prog_ac_ct_CC="gcc" | |
10764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10765 | break 2 | |
10766 | fi | |
10767 | done | |
10768 | done | |
10769 | ||
10770 | fi | |
10771 | fi | |
10772 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10773 | if test -n "$ac_ct_CC"; then | |
10774 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10775 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10776 | else | |
10777 | echo "$as_me:$LINENO: result: no" >&5 | |
10778 | echo "${ECHO_T}no" >&6 | |
10779 | fi | |
10780 | ||
10781 | CC=$ac_ct_CC | |
10782 | else | |
10783 | CC="$ac_cv_prog_CC" | |
10784 | fi | |
10785 | ||
10786 | if test -z "$CC"; then | |
10787 | if test -n "$ac_tool_prefix"; then | |
10788 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10789 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10790 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10792 | if test "${ac_cv_prog_CC+set}" = set; then | |
10793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10794 | else | |
10795 | if test -n "$CC"; then | |
10796 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10797 | else | |
10798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10799 | for as_dir in $PATH | |
10800 | do | |
10801 | IFS=$as_save_IFS | |
10802 | test -z "$as_dir" && as_dir=. | |
10803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10804 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10805 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10806 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10807 | break 2 | |
10808 | fi | |
10809 | done | |
10810 | done | |
10811 | ||
10812 | fi | |
10813 | fi | |
10814 | CC=$ac_cv_prog_CC | |
10815 | if test -n "$CC"; then | |
10816 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10817 | echo "${ECHO_T}$CC" >&6 | |
10818 | else | |
10819 | echo "$as_me:$LINENO: result: no" >&5 | |
10820 | echo "${ECHO_T}no" >&6 | |
10821 | fi | |
10822 | ||
10823 | fi | |
10824 | if test -z "$ac_cv_prog_CC"; then | |
10825 | ac_ct_CC=$CC | |
10826 | # Extract the first word of "cc", so it can be a program name with args. | |
10827 | set dummy cc; ac_word=$2 | |
10828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10830 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10832 | else | |
10833 | if test -n "$ac_ct_CC"; then | |
10834 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10835 | else | |
10836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10837 | for as_dir in $PATH | |
10838 | do | |
10839 | IFS=$as_save_IFS | |
10840 | test -z "$as_dir" && as_dir=. | |
10841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10842 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10843 | ac_cv_prog_ac_ct_CC="cc" | |
10844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10845 | break 2 | |
10846 | fi | |
10847 | done | |
10848 | done | |
10849 | ||
10850 | fi | |
10851 | fi | |
10852 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10853 | if test -n "$ac_ct_CC"; then | |
10854 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10855 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10856 | else | |
10857 | echo "$as_me:$LINENO: result: no" >&5 | |
10858 | echo "${ECHO_T}no" >&6 | |
10859 | fi | |
10860 | ||
10861 | CC=$ac_ct_CC | |
10862 | else | |
10863 | CC="$ac_cv_prog_CC" | |
10864 | fi | |
10865 | ||
10866 | fi | |
10867 | if test -z "$CC"; then | |
10868 | # Extract the first word of "cc", so it can be a program name with args. | |
10869 | set dummy cc; ac_word=$2 | |
10870 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10872 | if test "${ac_cv_prog_CC+set}" = set; then | |
10873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10874 | else | |
10875 | if test -n "$CC"; then | |
10876 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10877 | else | |
10878 | ac_prog_rejected=no | |
10879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10880 | for as_dir in $PATH | |
10881 | do | |
10882 | IFS=$as_save_IFS | |
10883 | test -z "$as_dir" && as_dir=. | |
10884 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10885 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10886 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10887 | ac_prog_rejected=yes | |
10888 | continue | |
10889 | fi | |
10890 | ac_cv_prog_CC="cc" | |
10891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10892 | break 2 | |
10893 | fi | |
10894 | done | |
10895 | done | |
10896 | ||
10897 | if test $ac_prog_rejected = yes; then | |
10898 | # We found a bogon in the path, so make sure we never use it. | |
10899 | set dummy $ac_cv_prog_CC | |
10900 | shift | |
10901 | if test $# != 0; then | |
10902 | # We chose a different compiler from the bogus one. | |
10903 | # However, it has the same basename, so the bogon will be chosen | |
10904 | # first if we set CC to just the basename; use the full file name. | |
10905 | shift | |
10906 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10907 | fi | |
10908 | fi | |
10909 | fi | |
10910 | fi | |
10911 | CC=$ac_cv_prog_CC | |
10912 | if test -n "$CC"; then | |
10913 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10914 | echo "${ECHO_T}$CC" >&6 | |
10915 | else | |
10916 | echo "$as_me:$LINENO: result: no" >&5 | |
10917 | echo "${ECHO_T}no" >&6 | |
10918 | fi | |
10919 | ||
10920 | fi | |
10921 | if test -z "$CC"; then | |
10922 | if test -n "$ac_tool_prefix"; then | |
10923 | for ac_prog in cl | |
10924 | do | |
10925 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10926 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10927 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10928 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10929 | if test "${ac_cv_prog_CC+set}" = set; then | |
10930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10931 | else | |
10932 | if test -n "$CC"; then | |
10933 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10934 | else | |
10935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10936 | for as_dir in $PATH | |
10937 | do | |
10938 | IFS=$as_save_IFS | |
10939 | test -z "$as_dir" && as_dir=. | |
10940 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10941 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10942 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10943 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10944 | break 2 | |
10945 | fi | |
10946 | done | |
10947 | done | |
10948 | ||
10949 | fi | |
10950 | fi | |
10951 | CC=$ac_cv_prog_CC | |
10952 | if test -n "$CC"; then | |
10953 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10954 | echo "${ECHO_T}$CC" >&6 | |
10955 | else | |
10956 | echo "$as_me:$LINENO: result: no" >&5 | |
10957 | echo "${ECHO_T}no" >&6 | |
10958 | fi | |
10959 | ||
10960 | test -n "$CC" && break | |
10961 | done | |
10962 | fi | |
10963 | if test -z "$CC"; then | |
10964 | ac_ct_CC=$CC | |
10965 | for ac_prog in cl | |
10966 | do | |
10967 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10968 | set dummy $ac_prog; ac_word=$2 | |
10969 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10971 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10973 | else | |
10974 | if test -n "$ac_ct_CC"; then | |
10975 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10976 | else | |
10977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10978 | for as_dir in $PATH | |
10979 | do | |
10980 | IFS=$as_save_IFS | |
10981 | test -z "$as_dir" && as_dir=. | |
10982 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10983 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10984 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10985 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10986 | break 2 | |
10987 | fi | |
10988 | done | |
10989 | done | |
10990 | ||
10991 | fi | |
10992 | fi | |
10993 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10994 | if test -n "$ac_ct_CC"; then | |
10995 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10996 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10997 | else | |
10998 | echo "$as_me:$LINENO: result: no" >&5 | |
10999 | echo "${ECHO_T}no" >&6 | |
11000 | fi | |
11001 | ||
11002 | test -n "$ac_ct_CC" && break | |
11003 | done | |
11004 | ||
11005 | CC=$ac_ct_CC | |
11006 | fi | |
11007 | ||
11008 | fi | |
11009 | ||
11010 | ||
11011 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11012 | See \`config.log' for more details." >&5 | |
11013 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11014 | See \`config.log' for more details." >&2;} | |
11015 | { (exit 1); exit 1; }; } | |
11016 | ||
11017 | # Provide some information about the compiler. | |
11018 | echo "$as_me:$LINENO:" \ | |
11019 | "checking for C compiler version" >&5 | |
11020 | ac_compiler=`set X $ac_compile; echo $2` | |
11021 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11022 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11023 | ac_status=$? | |
11024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11025 | (exit $ac_status); } | |
11026 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11027 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11028 | ac_status=$? | |
11029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11030 | (exit $ac_status); } | |
11031 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11032 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11033 | ac_status=$? | |
11034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11035 | (exit $ac_status); } | |
11036 | ||
11037 | cat >conftest.$ac_ext <<_ACEOF | |
11038 | /* confdefs.h. */ | |
11039 | _ACEOF | |
11040 | cat confdefs.h >>conftest.$ac_ext | |
11041 | cat >>conftest.$ac_ext <<_ACEOF | |
11042 | /* end confdefs.h. */ | |
11043 | ||
11044 | int | |
11045 | main () | |
11046 | { | |
11047 | ||
11048 | ; | |
11049 | return 0; | |
11050 | } | |
11051 | _ACEOF | |
11052 | ac_clean_files_save=$ac_clean_files | |
11053 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11054 | # Try to create an executable without -o first, disregard a.out. | |
11055 | # It will help us diagnose broken compilers, and finding out an intuition | |
11056 | # of exeext. | |
ac1cb8d3 VS |
11057 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11058 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11059 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11060 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11061 | (eval $ac_link_default) 2>&5 | |
11062 | ac_status=$? | |
11063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11064 | (exit $ac_status); }; then | |
11065 | # Find the output, starting from the most likely. This scheme is | |
11066 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11067 | # resort. | |
11068 | ||
11069 | # Be careful to initialize this variable, since it used to be cached. | |
11070 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11071 | ac_cv_exeext= | |
11072 | # b.out is created by i960 compilers. | |
11073 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11074 | do | |
11075 | test -f "$ac_file" || continue | |
11076 | case $ac_file in | |
11077 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11078 | ;; |
a848cd7e | 11079 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11080 | # This is the source file. |
11081 | ;; | |
a848cd7e | 11082 | [ab].out ) |
ac1cb8d3 VS |
11083 | # We found the default executable, but exeext='' is most |
11084 | # certainly right. | |
11085 | break;; | |
a848cd7e | 11086 | *.* ) |
ac1cb8d3 VS |
11087 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11088 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11089 | # but it would be cool to find out if it's true. Does anybody | |
11090 | # maintain Libtool? --akim. | |
11091 | export ac_cv_exeext | |
11092 | break;; | |
a848cd7e | 11093 | * ) |
ac1cb8d3 | 11094 | break;; |
a848cd7e SC |
11095 | esac |
11096 | done | |
11097 | else | |
11098 | echo "$as_me: failed program was:" >&5 | |
11099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11100 | ||
11101 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11102 | See \`config.log' for more details." >&5 | |
11103 | echo "$as_me: error: C compiler cannot create executables | |
11104 | See \`config.log' for more details." >&2;} | |
11105 | { (exit 77); exit 77; }; } | |
11106 | fi | |
11107 | ||
11108 | ac_exeext=$ac_cv_exeext | |
11109 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11110 | echo "${ECHO_T}$ac_file" >&6 | |
11111 | ||
11112 | # Check the compiler produces executables we can run. If not, either | |
11113 | # the compiler is broken, or we cross compile. | |
11114 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11115 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11116 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11117 | # If not cross compiling, check that we can run a simple program. | |
11118 | if test "$cross_compiling" != yes; then | |
11119 | if { ac_try='./$ac_file' | |
11120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11121 | (eval $ac_try) 2>&5 | |
11122 | ac_status=$? | |
11123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11124 | (exit $ac_status); }; }; then | |
11125 | cross_compiling=no | |
11126 | else | |
11127 | if test "$cross_compiling" = maybe; then | |
11128 | cross_compiling=yes | |
11129 | else | |
11130 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11131 | If you meant to cross compile, use \`--host'. | |
11132 | See \`config.log' for more details." >&5 | |
11133 | echo "$as_me: error: cannot run C compiled programs. | |
11134 | If you meant to cross compile, use \`--host'. | |
11135 | See \`config.log' for more details." >&2;} | |
11136 | { (exit 1); exit 1; }; } | |
11137 | fi | |
11138 | fi | |
11139 | fi | |
11140 | echo "$as_me:$LINENO: result: yes" >&5 | |
11141 | echo "${ECHO_T}yes" >&6 | |
11142 | ||
11143 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11144 | ac_clean_files=$ac_clean_files_save | |
11145 | # Check the compiler produces executables we can run. If not, either | |
11146 | # the compiler is broken, or we cross compile. | |
11147 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11148 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11149 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11150 | echo "${ECHO_T}$cross_compiling" >&6 | |
11151 | ||
11152 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11153 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11155 | (eval $ac_link) 2>&5 | |
11156 | ac_status=$? | |
11157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11158 | (exit $ac_status); }; then | |
11159 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11160 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11161 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11162 | # `rm'. | |
11163 | for ac_file in conftest.exe conftest conftest.*; do | |
11164 | test -f "$ac_file" || continue | |
11165 | case $ac_file in | |
11166 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11167 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11168 | export ac_cv_exeext |
11169 | break;; | |
a848cd7e SC |
11170 | * ) break;; |
11171 | esac | |
11172 | done | |
11173 | else | |
11174 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11175 | See \`config.log' for more details." >&5 | |
11176 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11177 | See \`config.log' for more details." >&2;} | |
11178 | { (exit 1); exit 1; }; } | |
11179 | fi | |
11180 | ||
11181 | rm -f conftest$ac_cv_exeext | |
11182 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11183 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11184 | ||
11185 | rm -f conftest.$ac_ext | |
11186 | EXEEXT=$ac_cv_exeext | |
11187 | ac_exeext=$EXEEXT | |
11188 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11189 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11190 | if test "${ac_cv_objext+set}" = set; then | |
11191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11192 | else | |
11193 | cat >conftest.$ac_ext <<_ACEOF | |
11194 | /* confdefs.h. */ | |
11195 | _ACEOF | |
11196 | cat confdefs.h >>conftest.$ac_ext | |
11197 | cat >>conftest.$ac_ext <<_ACEOF | |
11198 | /* end confdefs.h. */ | |
11199 | ||
11200 | int | |
11201 | main () | |
11202 | { | |
11203 | ||
11204 | ; | |
11205 | return 0; | |
11206 | } | |
11207 | _ACEOF | |
11208 | rm -f conftest.o conftest.obj | |
11209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11210 | (eval $ac_compile) 2>&5 | |
11211 | ac_status=$? | |
11212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11213 | (exit $ac_status); }; then | |
11214 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11215 | case $ac_file in | |
11216 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11217 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11218 | break;; | |
11219 | esac | |
11220 | done | |
11221 | else | |
11222 | echo "$as_me: failed program was:" >&5 | |
11223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11224 | ||
11225 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11226 | See \`config.log' for more details." >&5 | |
11227 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11228 | See \`config.log' for more details." >&2;} | |
11229 | { (exit 1); exit 1; }; } | |
11230 | fi | |
11231 | ||
11232 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11233 | fi | |
11234 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11235 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11236 | OBJEXT=$ac_cv_objext | |
11237 | ac_objext=$OBJEXT | |
11238 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11239 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11240 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11242 | else | |
11243 | cat >conftest.$ac_ext <<_ACEOF | |
11244 | /* confdefs.h. */ | |
11245 | _ACEOF | |
11246 | cat confdefs.h >>conftest.$ac_ext | |
11247 | cat >>conftest.$ac_ext <<_ACEOF | |
11248 | /* end confdefs.h. */ | |
11249 | ||
11250 | int | |
11251 | main () | |
11252 | { | |
11253 | #ifndef __GNUC__ | |
11254 | choke me | |
11255 | #endif | |
11256 | ||
11257 | ; | |
11258 | return 0; | |
11259 | } | |
11260 | _ACEOF | |
11261 | rm -f conftest.$ac_objext | |
11262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11263 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11264 | ac_status=$? |
ac1cb8d3 VS |
11265 | grep -v '^ *+' conftest.er1 >conftest.err |
11266 | rm -f conftest.er1 | |
11267 | cat conftest.err >&5 | |
a848cd7e SC |
11268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11269 | (exit $ac_status); } && | |
9dd0f6c2 | 11270 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11272 | (eval $ac_try) 2>&5 | |
11273 | ac_status=$? | |
11274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11275 | (exit $ac_status); }; } && | |
11276 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11278 | (eval $ac_try) 2>&5 | |
11279 | ac_status=$? | |
11280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11281 | (exit $ac_status); }; }; then | |
11282 | ac_compiler_gnu=yes | |
11283 | else | |
11284 | echo "$as_me: failed program was:" >&5 | |
11285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11286 | ||
11287 | ac_compiler_gnu=no | |
11288 | fi | |
ac1cb8d3 | 11289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11290 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11291 | ||
11292 | fi | |
11293 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11294 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11295 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11296 | ac_test_CFLAGS=${CFLAGS+set} | |
11297 | ac_save_CFLAGS=$CFLAGS | |
52ada004 | 11298 | CFLAGS="-g" |
a848cd7e SC |
11299 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11300 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11301 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11303 | else | |
11304 | cat >conftest.$ac_ext <<_ACEOF | |
11305 | /* confdefs.h. */ | |
11306 | _ACEOF | |
11307 | cat confdefs.h >>conftest.$ac_ext | |
11308 | cat >>conftest.$ac_ext <<_ACEOF | |
11309 | /* end confdefs.h. */ | |
11310 | ||
11311 | int | |
11312 | main () | |
11313 | { | |
11314 | ||
11315 | ; | |
11316 | return 0; | |
11317 | } | |
11318 | _ACEOF | |
11319 | rm -f conftest.$ac_objext | |
11320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11321 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11322 | ac_status=$? |
ac1cb8d3 VS |
11323 | grep -v '^ *+' conftest.er1 >conftest.err |
11324 | rm -f conftest.er1 | |
11325 | cat conftest.err >&5 | |
a848cd7e SC |
11326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11327 | (exit $ac_status); } && | |
9dd0f6c2 | 11328 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11330 | (eval $ac_try) 2>&5 | |
11331 | ac_status=$? | |
11332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11333 | (exit $ac_status); }; } && | |
11334 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11336 | (eval $ac_try) 2>&5 | |
11337 | ac_status=$? | |
11338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11339 | (exit $ac_status); }; }; then | |
11340 | ac_cv_prog_cc_g=yes | |
11341 | else | |
11342 | echo "$as_me: failed program was:" >&5 | |
11343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11344 | ||
11345 | ac_cv_prog_cc_g=no | |
11346 | fi | |
ac1cb8d3 | 11347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11348 | fi |
11349 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11350 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11351 | if test "$ac_test_CFLAGS" = set; then | |
11352 | CFLAGS=$ac_save_CFLAGS | |
11353 | elif test $ac_cv_prog_cc_g = yes; then | |
11354 | if test "$GCC" = yes; then | |
11355 | CFLAGS="-g -O2" | |
11356 | else | |
11357 | CFLAGS="-g" | |
11358 | fi | |
11359 | else | |
11360 | if test "$GCC" = yes; then | |
11361 | CFLAGS="-O2" | |
11362 | else | |
11363 | CFLAGS= | |
11364 | fi | |
11365 | fi | |
11366 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11367 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11368 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11370 | else | |
11371 | ac_cv_prog_cc_stdc=no | |
11372 | ac_save_CC=$CC | |
11373 | cat >conftest.$ac_ext <<_ACEOF | |
11374 | /* confdefs.h. */ | |
11375 | _ACEOF | |
11376 | cat confdefs.h >>conftest.$ac_ext | |
11377 | cat >>conftest.$ac_ext <<_ACEOF | |
11378 | /* end confdefs.h. */ | |
11379 | #include <stdarg.h> | |
11380 | #include <stdio.h> | |
11381 | #include <sys/types.h> | |
11382 | #include <sys/stat.h> | |
11383 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11384 | struct buf { int x; }; | |
11385 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11386 | static char *e (p, i) | |
11387 | char **p; | |
11388 | int i; | |
11389 | { | |
11390 | return p[i]; | |
11391 | } | |
11392 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11393 | { | |
11394 | char *s; | |
11395 | va_list v; | |
11396 | va_start (v,p); | |
11397 | s = g (p, va_arg (v,int)); | |
11398 | va_end (v); | |
11399 | return s; | |
11400 | } | |
ac1cb8d3 VS |
11401 | |
11402 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11403 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11404 | These don't provoke an error unfortunately, instead are silently treated | |
11405 | as 'x'. The following induces an error, until -std1 is added to get | |
11406 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11407 | array size at least. It's necessary to write '\x00'==0 to get something | |
11408 | that's true only with -std1. */ | |
11409 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11410 | ||
a848cd7e SC |
11411 | int test (int i, double x); |
11412 | struct s1 {int (*f) (int a);}; | |
11413 | struct s2 {int (*f) (double a);}; | |
11414 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11415 | int argc; | |
11416 | char **argv; | |
11417 | int | |
11418 | main () | |
11419 | { | |
11420 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11421 | ; | |
11422 | return 0; | |
11423 | } | |
11424 | _ACEOF | |
11425 | # Don't try gcc -ansi; that turns off useful extensions and | |
11426 | # breaks some systems' header files. | |
11427 | # AIX -qlanglvl=ansi | |
11428 | # Ultrix and OSF/1 -std1 | |
11429 | # HP-UX 10.20 and later -Ae | |
11430 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11431 | # SVR4 -Xc -D__EXTENSIONS__ | |
11432 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11433 | do | |
11434 | CC="$ac_save_CC $ac_arg" | |
11435 | rm -f conftest.$ac_objext | |
11436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11437 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11438 | ac_status=$? |
ac1cb8d3 VS |
11439 | grep -v '^ *+' conftest.er1 >conftest.err |
11440 | rm -f conftest.er1 | |
11441 | cat conftest.err >&5 | |
a848cd7e SC |
11442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11443 | (exit $ac_status); } && | |
9dd0f6c2 | 11444 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11446 | (eval $ac_try) 2>&5 | |
11447 | ac_status=$? | |
11448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11449 | (exit $ac_status); }; } && | |
11450 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11452 | (eval $ac_try) 2>&5 | |
11453 | ac_status=$? | |
11454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11455 | (exit $ac_status); }; }; then | |
11456 | ac_cv_prog_cc_stdc=$ac_arg | |
11457 | break | |
11458 | else | |
11459 | echo "$as_me: failed program was:" >&5 | |
11460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11461 | ||
11462 | fi | |
ac1cb8d3 | 11463 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11464 | done |
11465 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11466 | CC=$ac_save_CC | |
11467 | ||
11468 | fi | |
11469 | ||
11470 | case "x$ac_cv_prog_cc_stdc" in | |
11471 | x|xno) | |
11472 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11473 | echo "${ECHO_T}none needed" >&6 ;; | |
11474 | *) | |
11475 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11476 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11477 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11478 | esac | |
11479 | ||
11480 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11481 | # in C++ we need to declare it. In case someone uses the same compiler | |
11482 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11483 | # the declaration of exit, since it's the most demanding environment. | |
11484 | cat >conftest.$ac_ext <<_ACEOF | |
11485 | #ifndef __cplusplus | |
11486 | choke me | |
11487 | #endif | |
11488 | _ACEOF | |
11489 | rm -f conftest.$ac_objext | |
11490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11491 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11492 | ac_status=$? |
ac1cb8d3 VS |
11493 | grep -v '^ *+' conftest.er1 >conftest.err |
11494 | rm -f conftest.er1 | |
11495 | cat conftest.err >&5 | |
a848cd7e SC |
11496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11497 | (exit $ac_status); } && | |
9dd0f6c2 | 11498 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11500 | (eval $ac_try) 2>&5 | |
11501 | ac_status=$? | |
11502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11503 | (exit $ac_status); }; } && | |
11504 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11506 | (eval $ac_try) 2>&5 | |
11507 | ac_status=$? | |
11508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11509 | (exit $ac_status); }; }; then | |
11510 | for ac_declaration in \ | |
ac1cb8d3 | 11511 | '' \ |
a848cd7e SC |
11512 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11513 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11514 | 'extern "C" void exit (int) throw ();' \ | |
11515 | 'extern "C" void exit (int);' \ | |
11516 | 'void exit (int);' | |
11517 | do | |
11518 | cat >conftest.$ac_ext <<_ACEOF | |
11519 | /* confdefs.h. */ | |
11520 | _ACEOF | |
11521 | cat confdefs.h >>conftest.$ac_ext | |
11522 | cat >>conftest.$ac_ext <<_ACEOF | |
11523 | /* end confdefs.h. */ | |
de59c161 | 11524 | $ac_declaration |
ac1cb8d3 | 11525 | #include <stdlib.h> |
a848cd7e SC |
11526 | int |
11527 | main () | |
11528 | { | |
11529 | exit (42); | |
11530 | ; | |
11531 | return 0; | |
11532 | } | |
11533 | _ACEOF | |
11534 | rm -f conftest.$ac_objext | |
11535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11536 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11537 | ac_status=$? |
ac1cb8d3 VS |
11538 | grep -v '^ *+' conftest.er1 >conftest.err |
11539 | rm -f conftest.er1 | |
11540 | cat conftest.err >&5 | |
a848cd7e SC |
11541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11542 | (exit $ac_status); } && | |
9dd0f6c2 | 11543 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11545 | (eval $ac_try) 2>&5 | |
11546 | ac_status=$? | |
11547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11548 | (exit $ac_status); }; } && | |
11549 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11551 | (eval $ac_try) 2>&5 | |
11552 | ac_status=$? | |
11553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11554 | (exit $ac_status); }; }; then | |
11555 | : | |
11556 | else | |
11557 | echo "$as_me: failed program was:" >&5 | |
11558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11559 | ||
11560 | continue | |
11561 | fi | |
ac1cb8d3 | 11562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11563 | cat >conftest.$ac_ext <<_ACEOF |
11564 | /* confdefs.h. */ | |
11565 | _ACEOF | |
11566 | cat confdefs.h >>conftest.$ac_ext | |
11567 | cat >>conftest.$ac_ext <<_ACEOF | |
11568 | /* end confdefs.h. */ | |
11569 | $ac_declaration | |
11570 | int | |
11571 | main () | |
11572 | { | |
11573 | exit (42); | |
11574 | ; | |
11575 | return 0; | |
11576 | } | |
11577 | _ACEOF | |
11578 | rm -f conftest.$ac_objext | |
11579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11580 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11581 | ac_status=$? |
ac1cb8d3 VS |
11582 | grep -v '^ *+' conftest.er1 >conftest.err |
11583 | rm -f conftest.er1 | |
11584 | cat conftest.err >&5 | |
a848cd7e SC |
11585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11586 | (exit $ac_status); } && | |
9dd0f6c2 | 11587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11589 | (eval $ac_try) 2>&5 | |
11590 | ac_status=$? | |
11591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11592 | (exit $ac_status); }; } && | |
11593 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11595 | (eval $ac_try) 2>&5 | |
11596 | ac_status=$? | |
11597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11598 | (exit $ac_status); }; }; then | |
11599 | break | |
11600 | else | |
11601 | echo "$as_me: failed program was:" >&5 | |
11602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11603 | ||
11604 | fi | |
ac1cb8d3 | 11605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11606 | done |
11607 | rm -f conftest* | |
11608 | if test -n "$ac_declaration"; then | |
11609 | echo '#ifdef __cplusplus' >>confdefs.h | |
11610 | echo $ac_declaration >>confdefs.h | |
11611 | echo '#endif' >>confdefs.h | |
11612 | fi | |
11613 | ||
11614 | else | |
11615 | echo "$as_me: failed program was:" >&5 | |
11616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11617 | ||
11618 | fi | |
ac1cb8d3 | 11619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11620 | ac_ext=c |
11621 | ac_cpp='$CPP $CPPFLAGS' | |
11622 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11623 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11624 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11625 | ||
6dcfc289 | 11626 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 |
480ccd21 DE |
11627 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
11628 | if test "${wx_cv_c_exto+set}" = set; then | |
11629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11630 | else | |
11631 | cat >conftest.$ac_ext <<_ACEOF | |
11632 | /* confdefs.h. */ | |
11633 | _ACEOF | |
11634 | cat confdefs.h >>conftest.$ac_ext | |
11635 | cat >>conftest.$ac_ext <<_ACEOF | |
11636 | /* end confdefs.h. */ | |
11637 | ||
11638 | int | |
11639 | main () | |
11640 | { | |
11641 | ||
11642 | ; | |
11643 | return 0; | |
11644 | } | |
11645 | _ACEOF | |
11646 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11648 | (eval $ac_compile) 2>&5 | |
11649 | ac_status=$? | |
11650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11651 | (exit $ac_status); }; then | |
11652 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11653 | case $ac_file in | |
11654 | conftest.$ac_ext.o) | |
11655 | wx_cv_c_exto="-ext o" | |
11656 | ;; | |
11657 | *) | |
11658 | ;; | |
11659 | esac | |
11660 | done | |
11661 | else | |
11662 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
11663 | See \`config.log' for more details." >&5 | |
11664 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
11665 | See \`config.log' for more details." >&2;} | |
11666 | { (exit 1); exit 1; }; } | |
11667 | ||
11668 | fi | |
11669 | ||
11670 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
11671 | ||
11672 | fi | |
11673 | echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5 | |
11674 | echo "${ECHO_T}$wx_cv_c_exto" >&6 | |
11675 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11676 | if test "c" = "c"; then | |
11677 | CFLAGS="$wx_cv_c_exto $CFLAGS" | |
11678 | fi | |
11679 | if test "c" = "cxx"; then | |
11680 | CXXFLAGS="$wx_cv_c_exto $CXXFLAGS" | |
11681 | fi | |
11682 | fi | |
11683 | ||
6dcfc289 DE |
11684 | if test "x$wx_cv_c_exto" '!=' "x"; then |
11685 | unset ac_cv_prog_cc_g | |
11686 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 11687 | ac_save_CFLAGS=$CFLAGS |
52ada004 | 11688 | CFLAGS="-g" |
480ccd21 DE |
11689 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11690 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11691 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11693 | else | |
11694 | cat >conftest.$ac_ext <<_ACEOF | |
11695 | /* confdefs.h. */ | |
11696 | _ACEOF | |
11697 | cat confdefs.h >>conftest.$ac_ext | |
11698 | cat >>conftest.$ac_ext <<_ACEOF | |
11699 | /* end confdefs.h. */ | |
11700 | ||
11701 | int | |
11702 | main () | |
11703 | { | |
11704 | ||
11705 | ; | |
11706 | return 0; | |
11707 | } | |
11708 | _ACEOF | |
11709 | rm -f conftest.$ac_objext | |
11710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11711 | (eval $ac_compile) 2>conftest.er1 | |
11712 | ac_status=$? | |
11713 | grep -v '^ *+' conftest.er1 >conftest.err | |
11714 | rm -f conftest.er1 | |
11715 | cat conftest.err >&5 | |
11716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11717 | (exit $ac_status); } && | |
9dd0f6c2 | 11718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
11719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11720 | (eval $ac_try) 2>&5 | |
11721 | ac_status=$? | |
11722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11723 | (exit $ac_status); }; } && | |
11724 | { ac_try='test -s conftest.$ac_objext' | |
11725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11726 | (eval $ac_try) 2>&5 | |
11727 | ac_status=$? | |
11728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11729 | (exit $ac_status); }; }; then | |
11730 | ac_cv_prog_cc_g=yes | |
11731 | else | |
11732 | echo "$as_me: failed program was:" >&5 | |
11733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11734 | ||
11735 | ac_cv_prog_cc_g=no | |
11736 | fi | |
11737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11738 | fi | |
11739 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11740 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11741 | if test "$ac_test_CFLAGS" = set; then | |
11742 | CFLAGS=$ac_save_CFLAGS | |
11743 | elif test $ac_cv_prog_cc_g = yes; then | |
11744 | if test "$GCC" = yes; then | |
11745 | CFLAGS="-g -O2" | |
11746 | else | |
11747 | CFLAGS="-g" | |
11748 | fi | |
11749 | else | |
11750 | if test "$GCC" = yes; then | |
11751 | CFLAGS="-O2" | |
11752 | else | |
11753 | CFLAGS= | |
11754 | fi | |
11755 | fi | |
6dcfc289 DE |
11756 | fi |
11757 | ac_ext=c | |
95986553 DE |
11758 | ac_cpp='$CPP $CPPFLAGS' |
11759 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11760 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11761 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11762 | ||
11763 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
11764 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
11765 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
11766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11767 | else | |
11768 | cat >conftest.$ac_ext <<_ACEOF | |
11769 | /* confdefs.h. */ | |
11770 | _ACEOF | |
11771 | cat confdefs.h >>conftest.$ac_ext | |
11772 | cat >>conftest.$ac_ext <<_ACEOF | |
11773 | /* end confdefs.h. */ | |
11774 | ||
11775 | int | |
11776 | main () | |
11777 | { | |
11778 | #ifndef __MWERKS__ | |
11779 | choke me | |
11780 | #endif | |
11781 | ||
11782 | ; | |
11783 | return 0; | |
11784 | } | |
11785 | _ACEOF | |
11786 | rm -f conftest.$ac_objext | |
11787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11788 | (eval $ac_compile) 2>conftest.er1 | |
11789 | ac_status=$? | |
11790 | grep -v '^ *+' conftest.er1 >conftest.err | |
11791 | rm -f conftest.er1 | |
11792 | cat conftest.err >&5 | |
11793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11794 | (exit $ac_status); } && | |
9dd0f6c2 | 11795 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
11796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11797 | (eval $ac_try) 2>&5 | |
11798 | ac_status=$? | |
11799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11800 | (exit $ac_status); }; } && | |
11801 | { ac_try='test -s conftest.$ac_objext' | |
11802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11803 | (eval $ac_try) 2>&5 | |
11804 | ac_status=$? | |
11805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11806 | (exit $ac_status); }; }; then | |
11807 | bakefile_compiler_mwerks=yes | |
11808 | else | |
11809 | echo "$as_me: failed program was:" >&5 | |
11810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11811 | ||
11812 | bakefile_compiler_mwerks=no | |
11813 | fi | |
11814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11815 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
11816 | ||
11817 | fi | |
11818 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
11819 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
11820 | ||
0e6fa1d9 | 11821 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
11822 | ac_ext=c |
11823 | ac_cpp='$CPP $CPPFLAGS' | |
11824 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11825 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11826 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11827 | ||
11828 | ||
6dcfc289 | 11829 | ac_ext=c |
9273ffba DE |
11830 | ac_cpp='$CPP $CPPFLAGS' |
11831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11832 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11833 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11834 | ||
11835 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
11836 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
11837 | if test "${wx_cv_c_compiler_xlc+set}" = set; then | |
11838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11839 | else | |
11840 | cat >conftest.$ac_ext <<_ACEOF | |
11841 | /* confdefs.h. */ | |
11842 | _ACEOF | |
11843 | cat confdefs.h >>conftest.$ac_ext | |
11844 | cat >>conftest.$ac_ext <<_ACEOF | |
11845 | /* end confdefs.h. */ | |
11846 | ||
11847 | int | |
11848 | main () | |
11849 | { | |
11850 | #ifndef __xlC__ | |
11851 | choke me | |
11852 | #endif | |
11853 | ||
11854 | ; | |
11855 | return 0; | |
11856 | } | |
11857 | _ACEOF | |
11858 | rm -f conftest.$ac_objext | |
11859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11860 | (eval $ac_compile) 2>conftest.er1 | |
11861 | ac_status=$? | |
11862 | grep -v '^ *+' conftest.er1 >conftest.err | |
11863 | rm -f conftest.er1 | |
11864 | cat conftest.err >&5 | |
11865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11866 | (exit $ac_status); } && | |
9dd0f6c2 | 11867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
11868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11869 | (eval $ac_try) 2>&5 | |
11870 | ac_status=$? | |
11871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11872 | (exit $ac_status); }; } && | |
11873 | { ac_try='test -s conftest.$ac_objext' | |
11874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11875 | (eval $ac_try) 2>&5 | |
11876 | ac_status=$? | |
11877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11878 | (exit $ac_status); }; }; then | |
11879 | wx_compiler_xlc=yes | |
11880 | else | |
11881 | echo "$as_me: failed program was:" >&5 | |
11882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11883 | ||
11884 | wx_compiler_xlc=no | |
11885 | fi | |
11886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11887 | wx_cv_c_compiler_xlc=$wx_compiler_xlc | |
11888 | ||
11889 | fi | |
11890 | echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5 | |
11891 | echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6 | |
11892 | ||
0e6fa1d9 | 11893 | XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
11894 | ac_ext=c |
11895 | ac_cpp='$CPP $CPPFLAGS' | |
11896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11899 | ||
11900 | ||
a848cd7e | 11901 | |
6dcfc289 | 11902 | |
a848cd7e SC |
11903 | ac_ext=c |
11904 | ac_cpp='$CPP $CPPFLAGS' | |
11905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11908 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11909 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11910 | # On Suns, sometimes $CPP names a directory. | |
11911 | if test -n "$CPP" && test -d "$CPP"; then | |
11912 | CPP= | |
11913 | fi | |
11914 | if test -z "$CPP"; then | |
11915 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11917 | else | |
11918 | # Double quotes because CPP needs to be expanded | |
11919 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11920 | do | |
11921 | ac_preproc_ok=false | |
11922 | for ac_c_preproc_warn_flag in '' yes | |
11923 | do | |
11924 | # Use a header file that comes with gcc, so configuring glibc | |
11925 | # with a fresh cross-compiler works. | |
11926 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11927 | # <limits.h> exists even on freestanding compilers. | |
11928 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11929 | # not just through cpp. "Syntax error" is here to catch this case. | |
11930 | cat >conftest.$ac_ext <<_ACEOF | |
11931 | /* confdefs.h. */ | |
11932 | _ACEOF | |
11933 | cat confdefs.h >>conftest.$ac_ext | |
11934 | cat >>conftest.$ac_ext <<_ACEOF | |
11935 | /* end confdefs.h. */ | |
11936 | #ifdef __STDC__ | |
11937 | # include <limits.h> | |
11938 | #else | |
11939 | # include <assert.h> | |
11940 | #endif | |
ac1cb8d3 | 11941 | Syntax error |
a848cd7e SC |
11942 | _ACEOF |
11943 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11944 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11945 | ac_status=$? | |
11946 | grep -v '^ *+' conftest.er1 >conftest.err | |
11947 | rm -f conftest.er1 | |
11948 | cat conftest.err >&5 | |
11949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11950 | (exit $ac_status); } >/dev/null; then | |
11951 | if test -s conftest.err; then | |
11952 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11953 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11954 | else |
11955 | ac_cpp_err= | |
11956 | fi | |
11957 | else | |
11958 | ac_cpp_err=yes | |
11959 | fi | |
11960 | if test -z "$ac_cpp_err"; then | |
11961 | : | |
11962 | else | |
11963 | echo "$as_me: failed program was:" >&5 | |
11964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11965 | ||
11966 | # Broken: fails on valid input. | |
11967 | continue | |
11968 | fi | |
11969 | rm -f conftest.err conftest.$ac_ext | |
11970 | ||
11971 | # OK, works on sane cases. Now check whether non-existent headers | |
11972 | # can be detected and how. | |
11973 | cat >conftest.$ac_ext <<_ACEOF | |
11974 | /* confdefs.h. */ | |
11975 | _ACEOF | |
11976 | cat confdefs.h >>conftest.$ac_ext | |
11977 | cat >>conftest.$ac_ext <<_ACEOF | |
11978 | /* end confdefs.h. */ | |
11979 | #include <ac_nonexistent.h> | |
11980 | _ACEOF | |
11981 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11982 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11983 | ac_status=$? | |
11984 | grep -v '^ *+' conftest.er1 >conftest.err | |
11985 | rm -f conftest.er1 | |
11986 | cat conftest.err >&5 | |
11987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11988 | (exit $ac_status); } >/dev/null; then | |
11989 | if test -s conftest.err; then | |
11990 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11991 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11992 | else |
11993 | ac_cpp_err= | |
11994 | fi | |
11995 | else | |
11996 | ac_cpp_err=yes | |
11997 | fi | |
11998 | if test -z "$ac_cpp_err"; then | |
11999 | # Broken: success on invalid input. | |
12000 | continue | |
12001 | else | |
12002 | echo "$as_me: failed program was:" >&5 | |
12003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12004 | ||
12005 | # Passes both tests. | |
12006 | ac_preproc_ok=: | |
12007 | break | |
12008 | fi | |
12009 | rm -f conftest.err conftest.$ac_ext | |
12010 | ||
12011 | done | |
12012 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12013 | rm -f conftest.err conftest.$ac_ext | |
12014 | if $ac_preproc_ok; then | |
12015 | break | |
12016 | fi | |
12017 | ||
12018 | done | |
12019 | ac_cv_prog_CPP=$CPP | |
12020 | ||
12021 | fi | |
12022 | CPP=$ac_cv_prog_CPP | |
12023 | else | |
12024 | ac_cv_prog_CPP=$CPP | |
12025 | fi | |
12026 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12027 | echo "${ECHO_T}$CPP" >&6 | |
12028 | ac_preproc_ok=false | |
12029 | for ac_c_preproc_warn_flag in '' yes | |
12030 | do | |
12031 | # Use a header file that comes with gcc, so configuring glibc | |
12032 | # with a fresh cross-compiler works. | |
12033 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12034 | # <limits.h> exists even on freestanding compilers. | |
12035 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12036 | # not just through cpp. "Syntax error" is here to catch this case. | |
12037 | cat >conftest.$ac_ext <<_ACEOF | |
12038 | /* confdefs.h. */ | |
12039 | _ACEOF | |
12040 | cat confdefs.h >>conftest.$ac_ext | |
12041 | cat >>conftest.$ac_ext <<_ACEOF | |
12042 | /* end confdefs.h. */ | |
12043 | #ifdef __STDC__ | |
12044 | # include <limits.h> | |
12045 | #else | |
12046 | # include <assert.h> | |
12047 | #endif | |
ac1cb8d3 | 12048 | Syntax error |
a848cd7e SC |
12049 | _ACEOF |
12050 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12051 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12052 | ac_status=$? | |
12053 | grep -v '^ *+' conftest.er1 >conftest.err | |
12054 | rm -f conftest.er1 | |
12055 | cat conftest.err >&5 | |
12056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12057 | (exit $ac_status); } >/dev/null; then | |
12058 | if test -s conftest.err; then | |
12059 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12060 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12061 | else |
12062 | ac_cpp_err= | |
12063 | fi | |
12064 | else | |
12065 | ac_cpp_err=yes | |
12066 | fi | |
12067 | if test -z "$ac_cpp_err"; then | |
12068 | : | |
12069 | else | |
12070 | echo "$as_me: failed program was:" >&5 | |
12071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12072 | ||
12073 | # Broken: fails on valid input. | |
12074 | continue | |
12075 | fi | |
12076 | rm -f conftest.err conftest.$ac_ext | |
12077 | ||
12078 | # OK, works on sane cases. Now check whether non-existent headers | |
12079 | # can be detected and how. | |
12080 | cat >conftest.$ac_ext <<_ACEOF | |
12081 | /* confdefs.h. */ | |
12082 | _ACEOF | |
12083 | cat confdefs.h >>conftest.$ac_ext | |
12084 | cat >>conftest.$ac_ext <<_ACEOF | |
12085 | /* end confdefs.h. */ | |
12086 | #include <ac_nonexistent.h> | |
12087 | _ACEOF | |
12088 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12089 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12090 | ac_status=$? | |
12091 | grep -v '^ *+' conftest.er1 >conftest.err | |
12092 | rm -f conftest.er1 | |
12093 | cat conftest.err >&5 | |
12094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12095 | (exit $ac_status); } >/dev/null; then | |
12096 | if test -s conftest.err; then | |
12097 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12098 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12099 | else |
12100 | ac_cpp_err= | |
12101 | fi | |
12102 | else | |
12103 | ac_cpp_err=yes | |
12104 | fi | |
12105 | if test -z "$ac_cpp_err"; then | |
12106 | # Broken: success on invalid input. | |
12107 | continue | |
12108 | else | |
12109 | echo "$as_me: failed program was:" >&5 | |
12110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12111 | ||
12112 | # Passes both tests. | |
12113 | ac_preproc_ok=: | |
12114 | break | |
12115 | fi | |
12116 | rm -f conftest.err conftest.$ac_ext | |
12117 | ||
12118 | done | |
12119 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12120 | rm -f conftest.err conftest.$ac_ext | |
12121 | if $ac_preproc_ok; then | |
12122 | : | |
12123 | else | |
12124 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12125 | See \`config.log' for more details." >&5 | |
12126 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12127 | See \`config.log' for more details." >&2;} | |
12128 | { (exit 1); exit 1; }; } | |
12129 | fi | |
12130 | ||
12131 | ac_ext=c | |
12132 | ac_cpp='$CPP $CPPFLAGS' | |
12133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12136 | ||
12137 | ||
12138 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12139 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12140 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12142 | else | |
12143 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12144 | then ac_cv_prog_egrep='grep -E' | |
12145 | else ac_cv_prog_egrep='egrep' | |
12146 | fi | |
12147 | fi | |
12148 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12149 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12150 | EGREP=$ac_cv_prog_egrep | |
12151 | ||
12152 | ||
12153 | if test $ac_cv_c_compiler_gnu = yes; then | |
12154 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12155 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12156 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12158 | else | |
12159 | ac_pattern="Autoconf.*'x'" | |
12160 | cat >conftest.$ac_ext <<_ACEOF | |
12161 | /* confdefs.h. */ | |
12162 | _ACEOF | |
12163 | cat confdefs.h >>conftest.$ac_ext | |
12164 | cat >>conftest.$ac_ext <<_ACEOF | |
12165 | /* end confdefs.h. */ | |
12166 | #include <sgtty.h> | |
12167 | Autoconf TIOCGETP | |
12168 | _ACEOF | |
12169 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12170 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12171 | ac_cv_prog_gcc_traditional=yes | |
12172 | else | |
12173 | ac_cv_prog_gcc_traditional=no | |
12174 | fi | |
12175 | rm -f conftest* | |
12176 | ||
12177 | ||
12178 | if test $ac_cv_prog_gcc_traditional = no; then | |
12179 | cat >conftest.$ac_ext <<_ACEOF | |
12180 | /* confdefs.h. */ | |
12181 | _ACEOF | |
12182 | cat confdefs.h >>conftest.$ac_ext | |
12183 | cat >>conftest.$ac_ext <<_ACEOF | |
12184 | /* end confdefs.h. */ | |
12185 | #include <termio.h> | |
12186 | Autoconf TCGETA | |
12187 | _ACEOF | |
12188 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12189 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12190 | ac_cv_prog_gcc_traditional=yes | |
12191 | fi | |
12192 | rm -f conftest* | |
12193 | ||
12194 | fi | |
12195 | fi | |
12196 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12197 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12198 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12199 | CC="$CC -traditional" | |
12200 | fi | |
12201 | fi | |
12202 | ||
12203 | ||
12204 | ||
12205 | ||
12206 | ac_ext=cc | |
12207 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12208 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12209 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12210 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12211 | ||
12212 | ||
12213 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
12214 | |
12215 | ||
12216 | ac_ext=cc | |
a848cd7e SC |
12217 | ac_cpp='$CXXCPP $CPPFLAGS' |
12218 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12219 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12220 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12221 | if test -n "$ac_tool_prefix"; then | |
12222 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12223 | do | |
12224 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12225 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12226 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12227 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12228 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12230 | else | |
12231 | if test -n "$CXX"; then | |
12232 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
12233 | else | |
12234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12235 | for as_dir in $PATH | |
12236 | do | |
12237 | IFS=$as_save_IFS | |
12238 | test -z "$as_dir" && as_dir=. | |
12239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12240 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12241 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
12242 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12243 | break 2 | |
12244 | fi | |
12245 | done | |
12246 | done | |
12247 | ||
12248 | fi | |
12249 | fi | |
12250 | CXX=$ac_cv_prog_CXX | |
12251 | if test -n "$CXX"; then | |
12252 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
12253 | echo "${ECHO_T}$CXX" >&6 | |
12254 | else | |
12255 | echo "$as_me:$LINENO: result: no" >&5 | |
12256 | echo "${ECHO_T}no" >&6 | |
12257 | fi | |
12258 | ||
12259 | test -n "$CXX" && break | |
12260 | done | |
12261 | fi | |
12262 | if test -z "$CXX"; then | |
12263 | ac_ct_CXX=$CXX | |
12264 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12265 | do | |
12266 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12267 | set dummy $ac_prog; ac_word=$2 | |
12268 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12270 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
12271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12272 | else | |
12273 | if test -n "$ac_ct_CXX"; then | |
12274 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
12275 | else | |
12276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12277 | for as_dir in $PATH | |
12278 | do | |
12279 | IFS=$as_save_IFS | |
12280 | test -z "$as_dir" && as_dir=. | |
12281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12282 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12283 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
12284 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12285 | break 2 | |
12286 | fi | |
12287 | done | |
12288 | done | |
12289 | ||
12290 | fi | |
12291 | fi | |
12292 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
12293 | if test -n "$ac_ct_CXX"; then | |
12294 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
12295 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
12296 | else | |
12297 | echo "$as_me:$LINENO: result: no" >&5 | |
12298 | echo "${ECHO_T}no" >&6 | |
12299 | fi | |
12300 | ||
12301 | test -n "$ac_ct_CXX" && break | |
12302 | done | |
12303 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
12304 | ||
12305 | CXX=$ac_ct_CXX | |
12306 | fi | |
12307 | ||
12308 | ||
12309 | # Provide some information about the compiler. | |
12310 | echo "$as_me:$LINENO:" \ | |
12311 | "checking for C++ compiler version" >&5 | |
12312 | ac_compiler=`set X $ac_compile; echo $2` | |
12313 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12314 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12315 | ac_status=$? | |
12316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12317 | (exit $ac_status); } | |
12318 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12319 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12320 | ac_status=$? | |
12321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12322 | (exit $ac_status); } | |
12323 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12324 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12325 | ac_status=$? | |
12326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12327 | (exit $ac_status); } | |
12328 | ||
12329 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
12330 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
12331 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
12332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12333 | else | |
12334 | cat >conftest.$ac_ext <<_ACEOF | |
12335 | /* confdefs.h. */ | |
12336 | _ACEOF | |
12337 | cat confdefs.h >>conftest.$ac_ext | |
12338 | cat >>conftest.$ac_ext <<_ACEOF | |
12339 | /* end confdefs.h. */ | |
12340 | ||
12341 | int | |
12342 | main () | |
12343 | { | |
12344 | #ifndef __GNUC__ | |
12345 | choke me | |
12346 | #endif | |
12347 | ||
12348 | ; | |
12349 | return 0; | |
12350 | } | |
12351 | _ACEOF | |
12352 | rm -f conftest.$ac_objext | |
12353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12354 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12355 | ac_status=$? |
ac1cb8d3 VS |
12356 | grep -v '^ *+' conftest.er1 >conftest.err |
12357 | rm -f conftest.er1 | |
12358 | cat conftest.err >&5 | |
a848cd7e SC |
12359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12360 | (exit $ac_status); } && | |
9dd0f6c2 | 12361 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12363 | (eval $ac_try) 2>&5 | |
12364 | ac_status=$? | |
12365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12366 | (exit $ac_status); }; } && | |
12367 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12369 | (eval $ac_try) 2>&5 | |
12370 | ac_status=$? | |
12371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12372 | (exit $ac_status); }; }; then | |
12373 | ac_compiler_gnu=yes | |
12374 | else | |
12375 | echo "$as_me: failed program was:" >&5 | |
12376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12377 | ||
12378 | ac_compiler_gnu=no | |
12379 | fi | |
ac1cb8d3 | 12380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12381 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12382 | ||
12383 | fi | |
12384 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12385 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12386 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12387 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12388 | ac_save_CXXFLAGS=$CXXFLAGS | |
12389 | CXXFLAGS="-g" | |
12390 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12391 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12392 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12394 | else | |
12395 | cat >conftest.$ac_ext <<_ACEOF | |
12396 | /* confdefs.h. */ | |
12397 | _ACEOF | |
12398 | cat confdefs.h >>conftest.$ac_ext | |
12399 | cat >>conftest.$ac_ext <<_ACEOF | |
12400 | /* end confdefs.h. */ | |
12401 | ||
12402 | int | |
12403 | main () | |
12404 | { | |
12405 | ||
12406 | ; | |
12407 | return 0; | |
12408 | } | |
12409 | _ACEOF | |
12410 | rm -f conftest.$ac_objext | |
12411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12412 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12413 | ac_status=$? |
ac1cb8d3 VS |
12414 | grep -v '^ *+' conftest.er1 >conftest.err |
12415 | rm -f conftest.er1 | |
12416 | cat conftest.err >&5 | |
a848cd7e SC |
12417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12418 | (exit $ac_status); } && | |
9dd0f6c2 | 12419 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12421 | (eval $ac_try) 2>&5 | |
12422 | ac_status=$? | |
12423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12424 | (exit $ac_status); }; } && | |
12425 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12427 | (eval $ac_try) 2>&5 | |
12428 | ac_status=$? | |
12429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12430 | (exit $ac_status); }; }; then | |
12431 | ac_cv_prog_cxx_g=yes | |
12432 | else | |
12433 | echo "$as_me: failed program was:" >&5 | |
12434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12435 | ||
12436 | ac_cv_prog_cxx_g=no | |
12437 | fi | |
ac1cb8d3 | 12438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12439 | fi |
12440 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12441 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12442 | if test "$ac_test_CXXFLAGS" = set; then | |
12443 | CXXFLAGS=$ac_save_CXXFLAGS | |
12444 | elif test $ac_cv_prog_cxx_g = yes; then | |
12445 | if test "$GXX" = yes; then | |
52ada004 | 12446 | CXXFLAGS="-g -O2" |
a848cd7e | 12447 | else |
52ada004 | 12448 | CXXFLAGS="-g" |
a848cd7e SC |
12449 | fi |
12450 | else | |
12451 | if test "$GXX" = yes; then | |
12452 | CXXFLAGS="-O2" | |
12453 | else | |
12454 | CXXFLAGS= | |
12455 | fi | |
12456 | fi | |
12457 | for ac_declaration in \ | |
ac1cb8d3 | 12458 | '' \ |
a848cd7e SC |
12459 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12460 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12461 | 'extern "C" void exit (int) throw ();' \ | |
12462 | 'extern "C" void exit (int);' \ | |
12463 | 'void exit (int);' | |
12464 | do | |
12465 | cat >conftest.$ac_ext <<_ACEOF | |
12466 | /* confdefs.h. */ | |
12467 | _ACEOF | |
12468 | cat confdefs.h >>conftest.$ac_ext | |
12469 | cat >>conftest.$ac_ext <<_ACEOF | |
12470 | /* end confdefs.h. */ | |
de59c161 | 12471 | $ac_declaration |
ac1cb8d3 | 12472 | #include <stdlib.h> |
a848cd7e SC |
12473 | int |
12474 | main () | |
12475 | { | |
12476 | exit (42); | |
12477 | ; | |
12478 | return 0; | |
12479 | } | |
12480 | _ACEOF | |
12481 | rm -f conftest.$ac_objext | |
12482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12483 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12484 | ac_status=$? |
ac1cb8d3 VS |
12485 | grep -v '^ *+' conftest.er1 >conftest.err |
12486 | rm -f conftest.er1 | |
12487 | cat conftest.err >&5 | |
a848cd7e SC |
12488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12489 | (exit $ac_status); } && | |
9dd0f6c2 | 12490 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12492 | (eval $ac_try) 2>&5 | |
12493 | ac_status=$? | |
12494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12495 | (exit $ac_status); }; } && | |
12496 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12498 | (eval $ac_try) 2>&5 | |
12499 | ac_status=$? | |
12500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12501 | (exit $ac_status); }; }; then | |
12502 | : | |
12503 | else | |
12504 | echo "$as_me: failed program was:" >&5 | |
12505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12506 | ||
12507 | continue | |
12508 | fi | |
ac1cb8d3 | 12509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12510 | cat >conftest.$ac_ext <<_ACEOF |
12511 | /* confdefs.h. */ | |
12512 | _ACEOF | |
12513 | cat confdefs.h >>conftest.$ac_ext | |
12514 | cat >>conftest.$ac_ext <<_ACEOF | |
12515 | /* end confdefs.h. */ | |
12516 | $ac_declaration | |
12517 | int | |
12518 | main () | |
12519 | { | |
12520 | exit (42); | |
12521 | ; | |
12522 | return 0; | |
12523 | } | |
12524 | _ACEOF | |
12525 | rm -f conftest.$ac_objext | |
12526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12527 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12528 | ac_status=$? |
ac1cb8d3 VS |
12529 | grep -v '^ *+' conftest.er1 >conftest.err |
12530 | rm -f conftest.er1 | |
12531 | cat conftest.err >&5 | |
a848cd7e SC |
12532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12533 | (exit $ac_status); } && | |
9dd0f6c2 | 12534 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12536 | (eval $ac_try) 2>&5 | |
12537 | ac_status=$? | |
12538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12539 | (exit $ac_status); }; } && | |
12540 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12542 | (eval $ac_try) 2>&5 | |
12543 | ac_status=$? | |
12544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12545 | (exit $ac_status); }; }; then | |
12546 | break | |
12547 | else | |
12548 | echo "$as_me: failed program was:" >&5 | |
12549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12550 | ||
12551 | fi | |
ac1cb8d3 | 12552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12553 | done |
12554 | rm -f conftest* | |
12555 | if test -n "$ac_declaration"; then | |
12556 | echo '#ifdef __cplusplus' >>confdefs.h | |
12557 | echo $ac_declaration >>confdefs.h | |
12558 | echo '#endif' >>confdefs.h | |
12559 | fi | |
12560 | ||
12561 | ac_ext=cc | |
12562 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12563 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12564 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12565 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12566 | ||
6dcfc289 | 12567 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 |
480ccd21 DE |
12568 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
12569 | if test "${wx_cv_cxx_exto+set}" = set; then | |
12570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12571 | else | |
12572 | cat >conftest.$ac_ext <<_ACEOF | |
12573 | /* confdefs.h. */ | |
12574 | _ACEOF | |
12575 | cat confdefs.h >>conftest.$ac_ext | |
12576 | cat >>conftest.$ac_ext <<_ACEOF | |
12577 | /* end confdefs.h. */ | |
12578 | ||
12579 | int | |
12580 | main () | |
12581 | { | |
12582 | ||
12583 | ; | |
12584 | return 0; | |
12585 | } | |
12586 | _ACEOF | |
12587 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12589 | (eval $ac_compile) 2>&5 | |
12590 | ac_status=$? | |
12591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12592 | (exit $ac_status); }; then | |
12593 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12594 | case $ac_file in | |
12595 | conftest.$ac_ext.o) | |
12596 | wx_cv_cxx_exto="-ext o" | |
12597 | ;; | |
12598 | *) | |
12599 | ;; | |
12600 | esac | |
12601 | done | |
12602 | else | |
12603 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12604 | See \`config.log' for more details." >&5 | |
12605 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12606 | See \`config.log' for more details." >&2;} | |
12607 | { (exit 1); exit 1; }; } | |
12608 | ||
12609 | fi | |
12610 | ||
12611 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12612 | ||
12613 | fi | |
12614 | echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5 | |
12615 | echo "${ECHO_T}$wx_cv_cxx_exto" >&6 | |
12616 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
12617 | if test "cxx" = "c"; then | |
12618 | CFLAGS="$wx_cv_cxx_exto $CFLAGS" | |
12619 | fi | |
12620 | if test "cxx" = "cxx"; then | |
12621 | CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS" | |
12622 | fi | |
12623 | fi | |
12624 | ||
6dcfc289 DE |
12625 | if test "x$wx_cv_cxx_exto" '!=' "x"; then |
12626 | unset ac_cv_prog_cxx_g | |
12627 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
480ccd21 DE |
12628 | ac_save_CXXFLAGS=$CXXFLAGS |
12629 | CXXFLAGS="-g" | |
12630 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12631 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12632 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12634 | else | |
12635 | cat >conftest.$ac_ext <<_ACEOF | |
12636 | /* confdefs.h. */ | |
12637 | _ACEOF | |
12638 | cat confdefs.h >>conftest.$ac_ext | |
12639 | cat >>conftest.$ac_ext <<_ACEOF | |
12640 | /* end confdefs.h. */ | |
12641 | ||
12642 | int | |
12643 | main () | |
12644 | { | |
12645 | ||
12646 | ; | |
12647 | return 0; | |
12648 | } | |
12649 | _ACEOF | |
12650 | rm -f conftest.$ac_objext | |
12651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12652 | (eval $ac_compile) 2>conftest.er1 | |
12653 | ac_status=$? | |
12654 | grep -v '^ *+' conftest.er1 >conftest.err | |
12655 | rm -f conftest.er1 | |
12656 | cat conftest.err >&5 | |
12657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12658 | (exit $ac_status); } && | |
9dd0f6c2 | 12659 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
12660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12661 | (eval $ac_try) 2>&5 | |
12662 | ac_status=$? | |
12663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12664 | (exit $ac_status); }; } && | |
12665 | { ac_try='test -s conftest.$ac_objext' | |
12666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12667 | (eval $ac_try) 2>&5 | |
12668 | ac_status=$? | |
12669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12670 | (exit $ac_status); }; }; then | |
12671 | ac_cv_prog_cxx_g=yes | |
12672 | else | |
12673 | echo "$as_me: failed program was:" >&5 | |
12674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12675 | ||
12676 | ac_cv_prog_cxx_g=no | |
12677 | fi | |
12678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12679 | fi | |
12680 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12681 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12682 | if test "$ac_test_CXXFLAGS" = set; then | |
12683 | CXXFLAGS=$ac_save_CXXFLAGS | |
12684 | elif test $ac_cv_prog_cxx_g = yes; then | |
12685 | if test "$GXX" = yes; then | |
52ada004 | 12686 | CXXFLAGS="-g -O2" |
480ccd21 | 12687 | else |
52ada004 | 12688 | CXXFLAGS="-g" |
480ccd21 DE |
12689 | fi |
12690 | else | |
12691 | if test "$GXX" = yes; then | |
12692 | CXXFLAGS="-O2" | |
12693 | else | |
12694 | CXXFLAGS= | |
12695 | fi | |
12696 | fi | |
6dcfc289 DE |
12697 | fi |
12698 | ac_ext=cc | |
95986553 DE |
12699 | ac_cpp='$CXXCPP $CPPFLAGS' |
12700 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12701 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12702 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12703 | ||
12704 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
12705 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
12706 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
12707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12708 | else | |
12709 | cat >conftest.$ac_ext <<_ACEOF | |
12710 | /* confdefs.h. */ | |
12711 | _ACEOF | |
12712 | cat confdefs.h >>conftest.$ac_ext | |
12713 | cat >>conftest.$ac_ext <<_ACEOF | |
12714 | /* end confdefs.h. */ | |
12715 | ||
12716 | int | |
12717 | main () | |
12718 | { | |
12719 | #ifndef __MWERKS__ | |
12720 | choke me | |
12721 | #endif | |
12722 | ||
12723 | ; | |
12724 | return 0; | |
12725 | } | |
12726 | _ACEOF | |
12727 | rm -f conftest.$ac_objext | |
12728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12729 | (eval $ac_compile) 2>conftest.er1 | |
12730 | ac_status=$? | |
12731 | grep -v '^ *+' conftest.er1 >conftest.err | |
12732 | rm -f conftest.er1 | |
12733 | cat conftest.err >&5 | |
12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12735 | (exit $ac_status); } && | |
9dd0f6c2 | 12736 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
12737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12738 | (eval $ac_try) 2>&5 | |
12739 | ac_status=$? | |
12740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12741 | (exit $ac_status); }; } && | |
12742 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
12748 | bakefile_compiler_mwerks=yes | |
12749 | else | |
12750 | echo "$as_me: failed program was:" >&5 | |
12751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12752 | ||
12753 | bakefile_compiler_mwerks=no | |
12754 | fi | |
12755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12756 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
12757 | ||
12758 | fi | |
12759 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
12760 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
12761 | ||
0e6fa1d9 | 12762 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
12763 | ac_ext=cc |
12764 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12765 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12766 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12767 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12768 | ||
12769 | ||
6dcfc289 | 12770 | ac_ext=cc |
9273ffba DE |
12771 | ac_cpp='$CXXCPP $CPPFLAGS' |
12772 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12773 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12774 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12775 | ||
12776 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
12777 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
12778 | if test "${wx_cv_cxx_compiler_xlc+set}" = set; then | |
12779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12780 | else | |
12781 | cat >conftest.$ac_ext <<_ACEOF | |
12782 | /* confdefs.h. */ | |
12783 | _ACEOF | |
12784 | cat confdefs.h >>conftest.$ac_ext | |
12785 | cat >>conftest.$ac_ext <<_ACEOF | |
12786 | /* end confdefs.h. */ | |
12787 | ||
12788 | int | |
12789 | main () | |
12790 | { | |
12791 | #ifndef __xlC__ | |
12792 | choke me | |
12793 | #endif | |
12794 | ||
12795 | ; | |
12796 | return 0; | |
12797 | } | |
12798 | _ACEOF | |
12799 | rm -f conftest.$ac_objext | |
12800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12801 | (eval $ac_compile) 2>conftest.er1 | |
12802 | ac_status=$? | |
12803 | grep -v '^ *+' conftest.er1 >conftest.err | |
12804 | rm -f conftest.er1 | |
12805 | cat conftest.err >&5 | |
12806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12807 | (exit $ac_status); } && | |
9dd0f6c2 | 12808 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
12809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12810 | (eval $ac_try) 2>&5 | |
12811 | ac_status=$? | |
12812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12813 | (exit $ac_status); }; } && | |
12814 | { ac_try='test -s conftest.$ac_objext' | |
12815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12816 | (eval $ac_try) 2>&5 | |
12817 | ac_status=$? | |
12818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12819 | (exit $ac_status); }; }; then | |
12820 | wx_compiler_xlc=yes | |
12821 | else | |
12822 | echo "$as_me: failed program was:" >&5 | |
12823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12824 | ||
12825 | wx_compiler_xlc=no | |
12826 | fi | |
12827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12828 | wx_cv_cxx_compiler_xlc=$wx_compiler_xlc | |
12829 | ||
12830 | fi | |
12831 | echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5 | |
12832 | echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6 | |
12833 | ||
0e6fa1d9 | 12834 | XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
12835 | ac_ext=cc |
12836 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12837 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12838 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12839 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12840 | ||
12841 | ||
95986553 | 12842 | |
6dcfc289 | 12843 | |
a848cd7e SC |
12844 | ac_ext=c |
12845 | ac_cpp='$CPP $CPPFLAGS' | |
12846 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12847 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12848 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12849 | ||
12850 | ||
a848cd7e SC |
12851 | if test -n "$ac_tool_prefix"; then |
12852 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12853 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12854 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12856 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
12857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12858 | else | |
12859 | if test -n "$RANLIB"; then | |
12860 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12861 | else | |
12862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12863 | for as_dir in $PATH | |
12864 | do | |
12865 | IFS=$as_save_IFS | |
12866 | test -z "$as_dir" && as_dir=. | |
12867 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12868 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12869 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
12870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12871 | break 2 | |
12872 | fi | |
12873 | done | |
12874 | done | |
12875 | ||
12876 | fi | |
12877 | fi | |
12878 | RANLIB=$ac_cv_prog_RANLIB | |
12879 | if test -n "$RANLIB"; then | |
12880 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
12881 | echo "${ECHO_T}$RANLIB" >&6 | |
12882 | else | |
12883 | echo "$as_me:$LINENO: result: no" >&5 | |
12884 | echo "${ECHO_T}no" >&6 | |
12885 | fi | |
12886 | ||
12887 | fi | |
12888 | if test -z "$ac_cv_prog_RANLIB"; then | |
12889 | ac_ct_RANLIB=$RANLIB | |
12890 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12891 | set dummy ranlib; ac_word=$2 | |
12892 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12894 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
12895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12896 | else | |
12897 | if test -n "$ac_ct_RANLIB"; then | |
12898 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12899 | else | |
12900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12901 | for as_dir in $PATH | |
12902 | do | |
12903 | IFS=$as_save_IFS | |
12904 | test -z "$as_dir" && as_dir=. | |
12905 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12906 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12907 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12909 | break 2 | |
12910 | fi | |
12911 | done | |
12912 | done | |
12913 | ||
12914 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
12915 | fi | |
12916 | fi | |
12917 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12918 | if test -n "$ac_ct_RANLIB"; then | |
12919 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12920 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12921 | else | |
12922 | echo "$as_me:$LINENO: result: no" >&5 | |
12923 | echo "${ECHO_T}no" >&6 | |
12924 | fi | |
12925 | ||
12926 | RANLIB=$ac_ct_RANLIB | |
12927 | else | |
12928 | RANLIB="$ac_cv_prog_RANLIB" | |
12929 | fi | |
12930 | ||
12931 | ||
12932 | # Extract the first word of "ar", so it can be a program name with args. | |
12933 | set dummy ar; ac_word=$2 | |
12934 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12935 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12936 | if test "${ac_cv_prog_AR+set}" = set; then | |
12937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12938 | else | |
12939 | if test -n "$AR"; then | |
12940 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12941 | else | |
12942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12943 | for as_dir in $PATH | |
12944 | do | |
12945 | IFS=$as_save_IFS | |
12946 | test -z "$as_dir" && as_dir=. | |
12947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12948 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12949 | ac_cv_prog_AR="ar" | |
12950 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12951 | break 2 | |
12952 | fi | |
12953 | done | |
12954 | done | |
12955 | ||
12956 | fi | |
12957 | fi | |
12958 | AR=$ac_cv_prog_AR | |
12959 | if test -n "$AR"; then | |
12960 | echo "$as_me:$LINENO: result: $AR" >&5 | |
12961 | echo "${ECHO_T}$AR" >&6 | |
12962 | else | |
12963 | echo "$as_me:$LINENO: result: no" >&5 | |
12964 | echo "${ECHO_T}no" >&6 | |
12965 | fi | |
12966 | ||
12967 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
12968 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
12969 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
12970 | { (exit 1); exit 1; }; } |
12971 | fi | |
12972 | ||
12973 | # Find a good install program. We prefer a C program (faster), | |
12974 | # so one script is as good as another. But avoid the broken or | |
12975 | # incompatible versions: | |
12976 | # SysV /etc/install, /usr/sbin/install | |
12977 | # SunOS /usr/etc/install | |
12978 | # IRIX /sbin/install | |
12979 | # AIX /bin/install | |
12980 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12981 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12982 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12983 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12984 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12985 | # ./install, which can be erroneously created by make from ./install.sh. |
12986 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12987 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12988 | if test -z "$INSTALL"; then | |
12989 | if test "${ac_cv_path_install+set}" = set; then | |
12990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12991 | else | |
12992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12993 | for as_dir in $PATH | |
12994 | do | |
12995 | IFS=$as_save_IFS | |
12996 | test -z "$as_dir" && as_dir=. | |
12997 | # Account for people who put trailing slashes in PATH elements. | |
12998 | case $as_dir/ in | |
12999 | ./ | .// | /cC/* | \ | |
13000 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 13001 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
13002 | /usr/ucb/* ) ;; |
13003 | *) | |
13004 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
13005 | # Don't use installbsd from OSF since it installs stuff as root | |
13006 | # by default. | |
13007 | for ac_prog in ginstall scoinst install; do | |
13008 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
13009 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
13010 | if test $ac_prog = install && | |
13011 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13012 | # AIX install. It has an incompatible calling convention. | |
13013 | : | |
13014 | elif test $ac_prog = install && | |
13015 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13016 | # program-specific install script used by HP pwplus--don't use. | |
13017 | : | |
13018 | else | |
13019 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
13020 | break 3 | |
13021 | fi | |
13022 | fi | |
a848cd7e SC |
13023 | done |
13024 | done | |
13025 | ;; | |
13026 | esac | |
13027 | done | |
13028 | ||
13029 | ||
13030 | fi | |
13031 | if test "${ac_cv_path_install+set}" = set; then | |
13032 | INSTALL=$ac_cv_path_install | |
13033 | else | |
13034 | # As a last resort, use the slow shell script. We don't cache a | |
13035 | # path for INSTALL within a source directory, because that will | |
13036 | # break other packages using the cache if that directory is | |
13037 | # removed, or if the path is relative. | |
13038 | INSTALL=$ac_install_sh | |
13039 | fi | |
13040 | fi | |
13041 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
13042 | echo "${ECHO_T}$INSTALL" >&6 | |
13043 | ||
13044 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
13045 | # It thinks the first close brace ends the variable substitution. | |
13046 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
13047 | ||
13048 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
13049 | ||
13050 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
13051 | ||
13052 | ||
13053 | case ${INSTALL} in | |
13054 | /* ) # Absolute | |
13055 | ;; | |
13056 | ?:* ) # Drive letter, considered as absolute. | |
13057 | ;; | |
13058 | *) | |
13059 | INSTALL=`pwd`/${INSTALL} ;; | |
13060 | esac | |
13061 | ||
a848cd7e SC |
13062 | |
13063 | case "${host}" in | |
13064 | ||
13065 | powerpc-*-darwin* ) | |
13066 | INSTALL_PROGRAM="cp -fp" | |
13067 | INSTALL_DATA="cp -fp" | |
13068 | ;; | |
13069 | *) | |
13070 | ;; | |
13071 | esac | |
13072 | ||
13073 | # Extract the first word of "strip", so it can be a program name with args. | |
13074 | set dummy strip; ac_word=$2 | |
13075 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13077 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
13078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13079 | else | |
13080 | if test -n "$STRIP"; then | |
13081 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13082 | else | |
13083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13084 | for as_dir in $PATH | |
13085 | do | |
13086 | IFS=$as_save_IFS | |
13087 | test -z "$as_dir" && as_dir=. | |
13088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13089 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13090 | ac_cv_prog_STRIP="strip" | |
13091 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13092 | break 2 | |
13093 | fi | |
13094 | done | |
13095 | done | |
13096 | ||
13097 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
13098 | fi | |
13099 | fi | |
13100 | STRIP=$ac_cv_prog_STRIP | |
13101 | if test -n "$STRIP"; then | |
13102 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
13103 | echo "${ECHO_T}$STRIP" >&6 | |
13104 | else | |
13105 | echo "$as_me:$LINENO: result: no" >&5 | |
13106 | echo "${ECHO_T}no" >&6 | |
13107 | fi | |
13108 | ||
13109 | ||
13110 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
13111 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
13112 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
13113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13114 | else | |
13115 | ||
13116 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
13117 | egrep -s GNU > /dev/null); then | |
13118 | wx_cv_prog_makeisgnu="yes" | |
13119 | else | |
13120 | wx_cv_prog_makeisgnu="no" | |
13121 | fi | |
13122 | ||
13123 | fi | |
13124 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
13125 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
13126 | ||
13127 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
13128 | IF_GNU_MAKE="" | |
13129 | else | |
13130 | IF_GNU_MAKE="#" | |
13131 | fi | |
13132 | ||
13133 | ||
13134 | ||
13135 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
13136 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
13137 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
13138 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
13139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13140 | else | |
13141 | ||
13142 | cat - << EOF > confMake | |
13143 | check : file | |
13144 | cp \$? \$@ | |
13145 | cp \$? final_file | |
13146 | EOF | |
13147 | ||
13148 | if test ! -d sub ; then | |
13149 | mkdir sub | |
13150 | fi | |
13151 | echo dummy > sub/file | |
13152 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
13153 | RESULT=$? | |
13154 | rm -f sub/file check final_file confMake | |
13155 | rmdir sub | |
13156 | if test "$RESULT" = 0; then | |
13157 | wx_cv_prog_makevpath="yes" | |
13158 | else | |
13159 | wx_cv_prog_makevpath="no" | |
13160 | fi | |
13161 | ||
13162 | fi | |
13163 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
13164 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
13165 | ||
13166 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
13167 | { { echo "$as_me:$LINENO: error: | |
13168 | You need a make-utility that is able to use the variable | |
13169 | VPATH correctly. | |
13170 | If your version of make does not support VPATH correctly, | |
13171 | please install GNU-make (possibly as gmake), and start | |
13172 | configure with the following command: | |
13173 | export MAKE=gmake; ./configure for sh-type shells | |
13174 | setenv MAKE gmake; ./configure for csh-type shells | |
13175 | Also please do remember to use gmake in this case every time | |
13176 | you are trying to compile. | |
13177 | " >&5 | |
13178 | echo "$as_me: error: | |
13179 | You need a make-utility that is able to use the variable | |
13180 | VPATH correctly. | |
13181 | If your version of make does not support VPATH correctly, | |
13182 | please install GNU-make (possibly as gmake), and start | |
13183 | configure with the following command: | |
13184 | export MAKE=gmake; ./configure for sh-type shells | |
13185 | setenv MAKE gmake; ./configure for csh-type shells | |
13186 | Also please do remember to use gmake in this case every time | |
13187 | you are trying to compile. | |
13188 | " >&2;} | |
13189 | { (exit 1); exit 1; }; } | |
13190 | fi fi | |
13191 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
13192 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
13193 | LN_S=$as_ln_s | |
13194 | if test "$LN_S" = "ln -s"; then | |
13195 | echo "$as_me:$LINENO: result: yes" >&5 | |
13196 | echo "${ECHO_T}yes" >&6 | |
13197 | else | |
13198 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
13199 | echo "${ECHO_T}no, using $LN_S" >&6 | |
13200 | fi | |
13201 | ||
13202 | ||
13203 | ||
9273ffba DE |
13204 | if test "x$XLCXX" = "xyes"; then |
13205 | CXXFLAGS="$CXXFLAGS -qunique" | |
13206 | fi | |
13207 | ||
13208 | ||
4d7ec9f1 DE |
13209 | case "${host}" in |
13210 | powerpc-*-darwin* ) | |
13211 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
13212 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
13213 | cat >conftest.$ac_ext <<_ACEOF | |
13214 | /* confdefs.h. */ | |
13215 | _ACEOF | |
13216 | cat confdefs.h >>conftest.$ac_ext | |
13217 | cat >>conftest.$ac_ext <<_ACEOF | |
13218 | /* end confdefs.h. */ | |
13219 | ||
13220 | int | |
13221 | main () | |
13222 | { | |
13223 | #ifndef __POWERPC__ | |
13224 | choke me for lack of PowerPC | |
13225 | #endif | |
13226 | ||
13227 | ; | |
13228 | return 0; | |
13229 | } | |
13230 | _ACEOF | |
13231 | rm -f conftest.$ac_objext | |
13232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13233 | (eval $ac_compile) 2>conftest.er1 | |
13234 | ac_status=$? | |
13235 | grep -v '^ *+' conftest.er1 >conftest.err | |
13236 | rm -f conftest.er1 | |
13237 | cat conftest.err >&5 | |
13238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13239 | (exit $ac_status); } && | |
9dd0f6c2 | 13240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13242 | (eval $ac_try) 2>&5 | |
13243 | ac_status=$? | |
13244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13245 | (exit $ac_status); }; } && | |
13246 | { ac_try='test -s conftest.$ac_objext' | |
13247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13248 | (eval $ac_try) 2>&5 | |
13249 | ac_status=$? | |
13250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13251 | (exit $ac_status); }; }; then | |
13252 | echo "$as_me:$LINENO: result: yes" >&5 | |
13253 | echo "${ECHO_T}yes" >&6 | |
13254 | else | |
13255 | echo "$as_me: failed program was:" >&5 | |
13256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13257 | ||
13258 | echo "$as_me:$LINENO: result: no" >&5 | |
13259 | echo "${ECHO_T}no" >&6 | |
13260 | cat >>confdefs.h <<\_ACEOF | |
13261 | #define __POWERPC__ 1 | |
13262 | _ACEOF | |
13263 | ||
13264 | ||
13265 | fi | |
13266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13267 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 | |
13268 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
13269 | cat >conftest.$ac_ext <<_ACEOF | |
13270 | /* confdefs.h. */ | |
13271 | _ACEOF | |
13272 | cat confdefs.h >>conftest.$ac_ext | |
13273 | cat >>conftest.$ac_ext <<_ACEOF | |
13274 | /* end confdefs.h. */ | |
13275 | #include <CoreFoundation/CFBase.h> | |
13276 | ||
13277 | int | |
13278 | main () | |
13279 | { | |
13280 | ||
13281 | ; | |
13282 | return 0; | |
13283 | } | |
13284 | _ACEOF | |
13285 | rm -f conftest.$ac_objext | |
13286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13287 | (eval $ac_compile) 2>conftest.er1 | |
13288 | ac_status=$? | |
13289 | grep -v '^ *+' conftest.er1 >conftest.err | |
13290 | rm -f conftest.er1 | |
13291 | cat conftest.err >&5 | |
13292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13293 | (exit $ac_status); } && | |
9dd0f6c2 | 13294 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13296 | (eval $ac_try) 2>&5 | |
13297 | ac_status=$? | |
13298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13299 | (exit $ac_status); }; } && | |
13300 | { ac_try='test -s conftest.$ac_objext' | |
13301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13302 | (eval $ac_try) 2>&5 | |
13303 | ac_status=$? | |
13304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13305 | (exit $ac_status); }; }; then | |
13306 | echo "$as_me:$LINENO: result: yes" >&5 | |
13307 | echo "${ECHO_T}yes" >&6 | |
13308 | else | |
13309 | echo "$as_me: failed program was:" >&5 | |
13310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13311 | ||
13312 | echo "$as_me:$LINENO: result: no" >&5 | |
13313 | echo "${ECHO_T}no" >&6 | |
13314 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
13315 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
13316 | cat >conftest.$ac_ext <<_ACEOF | |
13317 | /* confdefs.h. */ | |
13318 | _ACEOF | |
13319 | cat confdefs.h >>conftest.$ac_ext | |
13320 | cat >>conftest.$ac_ext <<_ACEOF | |
13321 | /* end confdefs.h. */ | |
13322 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
13323 | #include <CoreFoundation/CFBase.h> | |
13324 | ||
13325 | int | |
13326 | main () | |
13327 | { | |
13328 | ||
13329 | ; | |
13330 | return 0; | |
13331 | } | |
13332 | _ACEOF | |
13333 | rm -f conftest.$ac_objext | |
13334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13335 | (eval $ac_compile) 2>conftest.er1 | |
13336 | ac_status=$? | |
13337 | grep -v '^ *+' conftest.er1 >conftest.err | |
13338 | rm -f conftest.er1 | |
13339 | cat conftest.err >&5 | |
13340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13341 | (exit $ac_status); } && | |
9dd0f6c2 | 13342 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13344 | (eval $ac_try) 2>&5 | |
13345 | ac_status=$? | |
13346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13347 | (exit $ac_status); }; } && | |
13348 | { ac_try='test -s conftest.$ac_objext' | |
13349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13350 | (eval $ac_try) 2>&5 | |
13351 | ac_status=$? | |
13352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13353 | (exit $ac_status); }; }; then | |
13354 | echo "$as_me:$LINENO: result: yes" >&5 | |
13355 | echo "${ECHO_T}yes" >&6 | |
13356 | CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__" | |
13357 | else | |
13358 | echo "$as_me: failed program was:" >&5 | |
13359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13360 | ||
13361 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
13362 | See \`config.log' for more details." >&5 | |
13363 | echo "$as_me: error: no. CoreFoundation not available. | |
13364 | See \`config.log' for more details." >&2;} | |
13365 | { (exit 1); exit 1; }; } | |
13366 | ||
13367 | fi | |
13368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13369 | ||
13370 | ||
13371 | fi | |
13372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13373 | ;; | |
13374 | esac | |
13375 | ||
a848cd7e SC |
13376 | case "${host}" in |
13377 | *-pc-os2_emx | *-pc-os2-emx ) | |
13378 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
13379 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
13380 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
13381 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
13382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13383 | else | |
13384 | ac_check_lib_save_LIBS=$LIBS | |
13385 | LIBS="-lcExt $LIBS" | |
13386 | cat >conftest.$ac_ext <<_ACEOF | |
13387 | /* confdefs.h. */ | |
13388 | _ACEOF | |
13389 | cat confdefs.h >>conftest.$ac_ext | |
13390 | cat >>conftest.$ac_ext <<_ACEOF | |
13391 | /* end confdefs.h. */ | |
13392 | ||
13393 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13394 | #ifdef __cplusplus | |
13395 | extern "C" | |
13396 | #endif | |
13397 | /* We use char because int might match the return type of a gcc2 | |
13398 | builtin and then its argument prototype would still apply. */ | |
13399 | char drand48 (); | |
13400 | int | |
13401 | main () | |
13402 | { | |
13403 | drand48 (); | |
13404 | ; | |
13405 | return 0; | |
13406 | } | |
13407 | _ACEOF | |
13408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13410 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13411 | ac_status=$? |
ac1cb8d3 VS |
13412 | grep -v '^ *+' conftest.er1 >conftest.err |
13413 | rm -f conftest.er1 | |
13414 | cat conftest.err >&5 | |
a848cd7e SC |
13415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13416 | (exit $ac_status); } && | |
9dd0f6c2 | 13417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13419 | (eval $ac_try) 2>&5 | |
13420 | ac_status=$? | |
13421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13422 | (exit $ac_status); }; } && | |
13423 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13425 | (eval $ac_try) 2>&5 | |
13426 | ac_status=$? | |
13427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13428 | (exit $ac_status); }; }; then | |
13429 | ac_cv_lib_cExt_drand48=yes | |
13430 | else | |
13431 | echo "$as_me: failed program was:" >&5 | |
13432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13433 | ||
13434 | ac_cv_lib_cExt_drand48=no | |
13435 | fi | |
ac1cb8d3 VS |
13436 | rm -f conftest.err conftest.$ac_objext \ |
13437 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13438 | LIBS=$ac_check_lib_save_LIBS |
13439 | fi | |
13440 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
13441 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
13442 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
13443 | LIBS="$LIBS -lcExt" | |
13444 | fi | |
13445 | ||
13446 | else | |
13447 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
13448 | fi | |
69120ee4 VZ |
13449 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
13450 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
13451 | if test "${wx_cv_gccversion+set}" = set; then |
13452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13453 | else | |
13454 | ||
391a765e VS |
13455 | if test "$cross_compiling" = yes; then |
13456 | wx_cv_gccversion="EMX2" | |
13457 | ||
13458 | else | |
13459 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
13460 | /* confdefs.h. */ |
13461 | _ACEOF | |
13462 | cat confdefs.h >>conftest.$ac_ext | |
13463 | cat >>conftest.$ac_ext <<_ACEOF | |
13464 | /* end confdefs.h. */ | |
13465 | ||
391a765e | 13466 | #include <stdio.h> |
a848cd7e | 13467 | |
391a765e VS |
13468 | int main() |
13469 | { | |
13470 | FILE *f=fopen("conftestval", "w"); | |
13471 | if (!f) exit(1); | |
13472 | fprintf(f, | |
a848cd7e | 13473 | #if (__GNUC__ < 3) |
391a765e VS |
13474 | "EMX2" |
13475 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
13476 | "EMX3" | |
13477 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
13478 | "Innotek5" | |
13479 | #else | |
13480 | "Innotek6" | |
a848cd7e | 13481 | #endif |
391a765e VS |
13482 | ); |
13483 | exit(0); | |
13484 | } | |
a848cd7e | 13485 | |
a848cd7e | 13486 | _ACEOF |
391a765e VS |
13487 | rm -f conftest$ac_exeext |
13488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13489 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
13490 | ac_status=$? |
13491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 13492 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
13493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13494 | (eval $ac_try) 2>&5 | |
13495 | ac_status=$? | |
13496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13497 | (exit $ac_status); }; }; then | |
391a765e | 13498 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 13499 | else |
391a765e VS |
13500 | echo "$as_me: program exited with status $ac_status" >&5 |
13501 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
13502 | sed 's/^/| /' conftest.$ac_ext >&5 |
13503 | ||
391a765e VS |
13504 | ( exit $ac_status ) |
13505 | wx_cv_gccversion="EMX2" | |
a848cd7e | 13506 | fi |
391a765e | 13507 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 13508 | fi |
a848cd7e SC |
13509 | |
13510 | fi | |
13511 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
13512 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 13513 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
13514 | LIBS="$LIBS -lstdcpp" |
13515 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
13516 | else | |
391a765e | 13517 | if test "$wx_cv_gccversion" = "EMX3"; then |
a848cd7e SC |
13518 | LIBS="$LIBS -lstdcxx" |
13519 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
13520 | else | |
13521 | LIBS="$LIBS -lstdc++" | |
13522 | fi | |
13523 | fi | |
94acd38e DE |
13524 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
13525 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
13526 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
13527 | wxUSE_OMF=yes | |
2da0c077 | 13528 | enable_omf=yes |
a848cd7e SC |
13529 | fi |
13530 | ;; | |
13531 | *) | |
13532 | ||
13533 | ||
13534 | ||
13535 | ac_ext=cc | |
13536 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13537 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13538 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13539 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13540 | ||
13541 | ||
95986553 | 13542 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
13543 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
13544 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
13545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13546 | else | |
13547 | ||
13548 | cat >conftest.$ac_ext <<_ACEOF | |
13549 | /* confdefs.h. */ | |
13550 | _ACEOF | |
13551 | cat confdefs.h >>conftest.$ac_ext | |
13552 | cat >>conftest.$ac_ext <<_ACEOF | |
13553 | /* end confdefs.h. */ | |
13554 | ||
13555 | #include <string.h> | |
13556 | ||
13557 | int | |
13558 | main () | |
13559 | { | |
13560 | ||
13561 | strcasecmp("foo", "bar"); | |
13562 | ||
13563 | ; | |
13564 | return 0; | |
13565 | } | |
13566 | _ACEOF | |
13567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13569 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13570 | ac_status=$? |
ac1cb8d3 VS |
13571 | grep -v '^ *+' conftest.er1 >conftest.err |
13572 | rm -f conftest.er1 | |
13573 | cat conftest.err >&5 | |
a848cd7e SC |
13574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13575 | (exit $ac_status); } && | |
9dd0f6c2 | 13576 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13578 | (eval $ac_try) 2>&5 | |
13579 | ac_status=$? | |
13580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13581 | (exit $ac_status); }; } && | |
13582 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13584 | (eval $ac_try) 2>&5 | |
13585 | ac_status=$? | |
13586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13587 | (exit $ac_status); }; }; then | |
13588 | ac_cv_string_strcasecmp=yes | |
13589 | else | |
13590 | echo "$as_me: failed program was:" >&5 | |
13591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13592 | ||
13593 | ac_cv_string_strcasecmp=no | |
13594 | ||
13595 | fi | |
ac1cb8d3 VS |
13596 | rm -f conftest.err conftest.$ac_objext \ |
13597 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13598 | |
13599 | fi | |
13600 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
13601 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
13602 | ||
13603 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
13604 | cat >>confdefs.h <<\_ACEOF | |
13605 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
13606 | _ACEOF | |
13607 | ||
13608 | else | |
13609 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
13610 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
13611 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
13612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13613 | else | |
13614 | ||
13615 | cat >conftest.$ac_ext <<_ACEOF | |
13616 | /* confdefs.h. */ | |
13617 | _ACEOF | |
13618 | cat confdefs.h >>conftest.$ac_ext | |
13619 | cat >>conftest.$ac_ext <<_ACEOF | |
13620 | /* end confdefs.h. */ | |
13621 | ||
13622 | #include <strings.h> | |
13623 | ||
13624 | int | |
13625 | main () | |
13626 | { | |
13627 | ||
13628 | strcasecmp("foo", "bar"); | |
13629 | ||
13630 | ; | |
13631 | return 0; | |
13632 | } | |
13633 | _ACEOF | |
13634 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13636 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13637 | ac_status=$? |
ac1cb8d3 VS |
13638 | grep -v '^ *+' conftest.er1 >conftest.err |
13639 | rm -f conftest.er1 | |
13640 | cat conftest.err >&5 | |
a848cd7e SC |
13641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13642 | (exit $ac_status); } && | |
9dd0f6c2 | 13643 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13645 | (eval $ac_try) 2>&5 | |
13646 | ac_status=$? | |
13647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13648 | (exit $ac_status); }; } && | |
13649 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13651 | (eval $ac_try) 2>&5 | |
13652 | ac_status=$? | |
13653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13654 | (exit $ac_status); }; }; then | |
13655 | ac_cv_strings_strcasecmp=yes | |
13656 | else | |
13657 | echo "$as_me: failed program was:" >&5 | |
13658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13659 | ||
13660 | ac_cv_strings_strcasecmp=no | |
13661 | ||
13662 | fi | |
ac1cb8d3 VS |
13663 | rm -f conftest.err conftest.$ac_objext \ |
13664 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13665 | |
13666 | fi | |
13667 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
13668 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
13669 | ||
0c3c69fc | 13670 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
13671 | cat >>confdefs.h <<\_ACEOF |
13672 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
13673 | _ACEOF | |
13674 | ||
13675 | else | |
13676 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
13677 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
13678 | { (exit 1); exit 1; }; } | |
13679 | fi | |
13680 | fi | |
13681 | ||
13682 | ac_ext=c | |
13683 | ac_cpp='$CPP $CPPFLAGS' | |
13684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13687 | ||
13688 | ;; | |
13689 | esac | |
13690 | ||
13691 | ||
13692 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
13693 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
13694 | if test "${ac_cv_header_stdc+set}" = set; then | |
13695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13696 | else | |
13697 | cat >conftest.$ac_ext <<_ACEOF | |
13698 | /* confdefs.h. */ | |
13699 | _ACEOF | |
13700 | cat confdefs.h >>conftest.$ac_ext | |
13701 | cat >>conftest.$ac_ext <<_ACEOF | |
13702 | /* end confdefs.h. */ | |
13703 | #include <stdlib.h> | |
13704 | #include <stdarg.h> | |
13705 | #include <string.h> | |
13706 | #include <float.h> | |
13707 | ||
13708 | int | |
13709 | main () | |
13710 | { | |
13711 | ||
13712 | ; | |
13713 | return 0; | |
13714 | } | |
13715 | _ACEOF | |
13716 | rm -f conftest.$ac_objext | |
13717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13718 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13719 | ac_status=$? |
ac1cb8d3 VS |
13720 | grep -v '^ *+' conftest.er1 >conftest.err |
13721 | rm -f conftest.er1 | |
13722 | cat conftest.err >&5 | |
a848cd7e SC |
13723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13724 | (exit $ac_status); } && | |
9dd0f6c2 | 13725 | { ac_try='test -z "$ac_c_werror_flag" || 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_cv_header_stdc=yes | |
13738 | else | |
13739 | echo "$as_me: failed program was:" >&5 | |
13740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13741 | ||
13742 | ac_cv_header_stdc=no | |
13743 | fi | |
ac1cb8d3 | 13744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13745 | |
13746 | if test $ac_cv_header_stdc = yes; then | |
13747 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
13748 | cat >conftest.$ac_ext <<_ACEOF | |
13749 | /* confdefs.h. */ | |
13750 | _ACEOF | |
13751 | cat confdefs.h >>conftest.$ac_ext | |
13752 | cat >>conftest.$ac_ext <<_ACEOF | |
13753 | /* end confdefs.h. */ | |
13754 | #include <string.h> | |
13755 | ||
13756 | _ACEOF | |
13757 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13758 | $EGREP "memchr" >/dev/null 2>&1; then | |
13759 | : | |
13760 | else | |
13761 | ac_cv_header_stdc=no | |
13762 | fi | |
13763 | rm -f conftest* | |
13764 | ||
13765 | fi | |
13766 | ||
13767 | if test $ac_cv_header_stdc = yes; then | |
13768 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
13769 | cat >conftest.$ac_ext <<_ACEOF | |
13770 | /* confdefs.h. */ | |
13771 | _ACEOF | |
13772 | cat confdefs.h >>conftest.$ac_ext | |
13773 | cat >>conftest.$ac_ext <<_ACEOF | |
13774 | /* end confdefs.h. */ | |
13775 | #include <stdlib.h> | |
13776 | ||
13777 | _ACEOF | |
13778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13779 | $EGREP "free" >/dev/null 2>&1; then | |
13780 | : | |
13781 | else | |
13782 | ac_cv_header_stdc=no | |
13783 | fi | |
13784 | rm -f conftest* | |
13785 | ||
13786 | fi | |
13787 | ||
13788 | if test $ac_cv_header_stdc = yes; then | |
13789 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
13790 | if test "$cross_compiling" = yes; then | |
13791 | : | |
13792 | else | |
13793 | cat >conftest.$ac_ext <<_ACEOF | |
13794 | /* confdefs.h. */ | |
13795 | _ACEOF | |
13796 | cat confdefs.h >>conftest.$ac_ext | |
13797 | cat >>conftest.$ac_ext <<_ACEOF | |
13798 | /* end confdefs.h. */ | |
13799 | #include <ctype.h> | |
13800 | #if ((' ' & 0x0FF) == 0x020) | |
13801 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
13802 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
13803 | #else | |
13804 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
13805 | (('a' <= (c) && (c) <= 'i') \ |
13806 | || ('j' <= (c) && (c) <= 'r') \ | |
13807 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
13808 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
13809 | #endif | |
13810 | ||
13811 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
13812 | int | |
13813 | main () | |
13814 | { | |
13815 | int i; | |
13816 | for (i = 0; i < 256; i++) | |
13817 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 13818 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
13819 | exit(2); |
13820 | exit (0); | |
13821 | } | |
13822 | _ACEOF | |
13823 | rm -f conftest$ac_exeext | |
13824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13825 | (eval $ac_link) 2>&5 | |
13826 | ac_status=$? | |
13827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13828 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13830 | (eval $ac_try) 2>&5 | |
13831 | ac_status=$? | |
13832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13833 | (exit $ac_status); }; }; then | |
13834 | : | |
13835 | else | |
13836 | echo "$as_me: program exited with status $ac_status" >&5 | |
13837 | echo "$as_me: failed program was:" >&5 | |
13838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13839 | ||
13840 | ( exit $ac_status ) | |
13841 | ac_cv_header_stdc=no | |
13842 | fi | |
ac1cb8d3 | 13843 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13844 | fi |
13845 | fi | |
13846 | fi | |
13847 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
13848 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
13849 | if test $ac_cv_header_stdc = yes; then | |
13850 | ||
13851 | cat >>confdefs.h <<\_ACEOF | |
13852 | #define STDC_HEADERS 1 | |
13853 | _ACEOF | |
13854 | ||
13855 | fi | |
13856 | ||
13857 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
13858 | ||
13859 | ||
13860 | ||
13861 | ||
13862 | ||
13863 | ||
13864 | ||
13865 | ||
13866 | ||
13867 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 13868 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
13869 | do |
13870 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13871 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13872 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13873 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13875 | else | |
13876 | cat >conftest.$ac_ext <<_ACEOF | |
13877 | /* confdefs.h. */ | |
13878 | _ACEOF | |
13879 | cat confdefs.h >>conftest.$ac_ext | |
13880 | cat >>conftest.$ac_ext <<_ACEOF | |
13881 | /* end confdefs.h. */ | |
13882 | $ac_includes_default | |
13883 | ||
13884 | #include <$ac_header> | |
13885 | _ACEOF | |
13886 | rm -f conftest.$ac_objext | |
13887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13888 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13889 | ac_status=$? |
ac1cb8d3 VS |
13890 | grep -v '^ *+' conftest.er1 >conftest.err |
13891 | rm -f conftest.er1 | |
13892 | cat conftest.err >&5 | |
a848cd7e SC |
13893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13894 | (exit $ac_status); } && | |
9dd0f6c2 | 13895 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13897 | (eval $ac_try) 2>&5 | |
13898 | ac_status=$? | |
13899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13900 | (exit $ac_status); }; } && | |
13901 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13903 | (eval $ac_try) 2>&5 | |
13904 | ac_status=$? | |
13905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13906 | (exit $ac_status); }; }; then | |
13907 | eval "$as_ac_Header=yes" | |
13908 | else | |
13909 | echo "$as_me: failed program was:" >&5 | |
13910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13911 | ||
13912 | eval "$as_ac_Header=no" | |
13913 | fi | |
ac1cb8d3 | 13914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13915 | fi |
13916 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13917 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13918 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13919 | cat >>confdefs.h <<_ACEOF | |
13920 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13921 | _ACEOF | |
13922 | ||
13923 | fi | |
13924 | ||
13925 | done | |
13926 | ||
13927 | ||
13928 | ||
13929 | for ac_header in stdlib.h | |
13930 | do | |
13931 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13932 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13933 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13934 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13937 | fi | |
13938 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13939 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13940 | else | |
13941 | # Is the header compilable? | |
13942 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13943 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13944 | cat >conftest.$ac_ext <<_ACEOF | |
13945 | /* confdefs.h. */ | |
13946 | _ACEOF | |
13947 | cat confdefs.h >>conftest.$ac_ext | |
13948 | cat >>conftest.$ac_ext <<_ACEOF | |
13949 | /* end confdefs.h. */ | |
13950 | $ac_includes_default | |
13951 | #include <$ac_header> | |
13952 | _ACEOF | |
13953 | rm -f conftest.$ac_objext | |
13954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13955 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13956 | ac_status=$? |
ac1cb8d3 VS |
13957 | grep -v '^ *+' conftest.er1 >conftest.err |
13958 | rm -f conftest.er1 | |
13959 | cat conftest.err >&5 | |
a848cd7e SC |
13960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13961 | (exit $ac_status); } && | |
9dd0f6c2 | 13962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13964 | (eval $ac_try) 2>&5 | |
13965 | ac_status=$? | |
13966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13967 | (exit $ac_status); }; } && | |
13968 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13970 | (eval $ac_try) 2>&5 | |
13971 | ac_status=$? | |
13972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13973 | (exit $ac_status); }; }; then | |
13974 | ac_header_compiler=yes | |
13975 | else | |
13976 | echo "$as_me: failed program was:" >&5 | |
13977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13978 | ||
13979 | ac_header_compiler=no | |
13980 | fi | |
ac1cb8d3 | 13981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13982 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13983 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13984 | ||
13985 | # Is the header present? | |
13986 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13987 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13988 | cat >conftest.$ac_ext <<_ACEOF | |
13989 | /* confdefs.h. */ | |
13990 | _ACEOF | |
13991 | cat confdefs.h >>conftest.$ac_ext | |
13992 | cat >>conftest.$ac_ext <<_ACEOF | |
13993 | /* end confdefs.h. */ | |
13994 | #include <$ac_header> | |
13995 | _ACEOF | |
13996 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13997 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13998 | ac_status=$? | |
13999 | grep -v '^ *+' conftest.er1 >conftest.err | |
14000 | rm -f conftest.er1 | |
14001 | cat conftest.err >&5 | |
14002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14003 | (exit $ac_status); } >/dev/null; then | |
14004 | if test -s conftest.err; then | |
14005 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14006 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14007 | else |
14008 | ac_cpp_err= | |
14009 | fi | |
14010 | else | |
14011 | ac_cpp_err=yes | |
14012 | fi | |
14013 | if test -z "$ac_cpp_err"; then | |
14014 | ac_header_preproc=yes | |
14015 | else | |
14016 | echo "$as_me: failed program was:" >&5 | |
14017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14018 | ||
14019 | ac_header_preproc=no | |
14020 | fi | |
14021 | rm -f conftest.err conftest.$ac_ext | |
14022 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14023 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14024 | ||
14025 | # So? What about this header? | |
ac1cb8d3 VS |
14026 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14027 | yes:no: ) | |
a848cd7e SC |
14028 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14029 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14030 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14031 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14032 | ac_header_preproc=yes | |
a848cd7e | 14033 | ;; |
ac1cb8d3 | 14034 | no:yes:* ) |
a848cd7e SC |
14035 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14036 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14037 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14038 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14039 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14040 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14041 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14042 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14043 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14044 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14045 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14046 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14047 | ( |
14048 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14049 | ## ----------------------------------------- ## |
14050 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14051 | ## ----------------------------------------- ## | |
a848cd7e SC |
14052 | _ASBOX |
14053 | ) | | |
14054 | sed "s/^/$as_me: WARNING: /" >&2 | |
14055 | ;; | |
14056 | esac | |
14057 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14058 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14059 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14061 | else | |
ac1cb8d3 | 14062 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14063 | fi |
14064 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14065 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14066 | ||
14067 | fi | |
14068 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14069 | cat >>confdefs.h <<_ACEOF | |
14070 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14071 | _ACEOF | |
14072 | ||
14073 | fi | |
14074 | ||
14075 | done | |
14076 | ||
14077 | ||
14078 | for ac_header in malloc.h | |
14079 | do | |
14080 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14082 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14083 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14086 | fi | |
14087 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14088 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14089 | else | |
14090 | # Is the header compilable? | |
14091 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14092 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14093 | cat >conftest.$ac_ext <<_ACEOF | |
14094 | /* confdefs.h. */ | |
14095 | _ACEOF | |
14096 | cat confdefs.h >>conftest.$ac_ext | |
14097 | cat >>conftest.$ac_ext <<_ACEOF | |
14098 | /* end confdefs.h. */ | |
14099 | $ac_includes_default | |
14100 | #include <$ac_header> | |
14101 | _ACEOF | |
14102 | rm -f conftest.$ac_objext | |
14103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14104 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14105 | ac_status=$? |
ac1cb8d3 VS |
14106 | grep -v '^ *+' conftest.er1 >conftest.err |
14107 | rm -f conftest.er1 | |
14108 | cat conftest.err >&5 | |
a848cd7e SC |
14109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14110 | (exit $ac_status); } && | |
9dd0f6c2 | 14111 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14113 | (eval $ac_try) 2>&5 | |
14114 | ac_status=$? | |
14115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14116 | (exit $ac_status); }; } && | |
14117 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14119 | (eval $ac_try) 2>&5 | |
14120 | ac_status=$? | |
14121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14122 | (exit $ac_status); }; }; then | |
14123 | ac_header_compiler=yes | |
14124 | else | |
14125 | echo "$as_me: failed program was:" >&5 | |
14126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14127 | ||
14128 | ac_header_compiler=no | |
14129 | fi | |
ac1cb8d3 | 14130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14131 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14132 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14133 | ||
14134 | # Is the header present? | |
14135 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14136 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14137 | cat >conftest.$ac_ext <<_ACEOF | |
14138 | /* confdefs.h. */ | |
14139 | _ACEOF | |
14140 | cat confdefs.h >>conftest.$ac_ext | |
14141 | cat >>conftest.$ac_ext <<_ACEOF | |
14142 | /* end confdefs.h. */ | |
14143 | #include <$ac_header> | |
14144 | _ACEOF | |
14145 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14146 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14147 | ac_status=$? | |
14148 | grep -v '^ *+' conftest.er1 >conftest.err | |
14149 | rm -f conftest.er1 | |
14150 | cat conftest.err >&5 | |
14151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14152 | (exit $ac_status); } >/dev/null; then | |
14153 | if test -s conftest.err; then | |
14154 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14155 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14156 | else |
14157 | ac_cpp_err= | |
14158 | fi | |
14159 | else | |
14160 | ac_cpp_err=yes | |
14161 | fi | |
14162 | if test -z "$ac_cpp_err"; then | |
14163 | ac_header_preproc=yes | |
14164 | else | |
14165 | echo "$as_me: failed program was:" >&5 | |
14166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14167 | ||
14168 | ac_header_preproc=no | |
14169 | fi | |
14170 | rm -f conftest.err conftest.$ac_ext | |
14171 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14172 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14173 | ||
14174 | # So? What about this header? | |
ac1cb8d3 VS |
14175 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14176 | yes:no: ) | |
a848cd7e SC |
14177 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14178 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14180 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14181 | ac_header_preproc=yes | |
a848cd7e | 14182 | ;; |
ac1cb8d3 | 14183 | no:yes:* ) |
a848cd7e SC |
14184 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14185 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14186 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14187 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14188 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14189 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14190 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14191 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14192 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14193 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14194 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14195 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14196 | ( |
14197 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14198 | ## ----------------------------------------- ## |
14199 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14200 | ## ----------------------------------------- ## | |
a848cd7e SC |
14201 | _ASBOX |
14202 | ) | | |
14203 | sed "s/^/$as_me: WARNING: /" >&2 | |
14204 | ;; | |
14205 | esac | |
14206 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14207 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14208 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14210 | else | |
ac1cb8d3 | 14211 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14212 | fi |
14213 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14214 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14215 | ||
14216 | fi | |
14217 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14218 | cat >>confdefs.h <<_ACEOF | |
14219 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14220 | _ACEOF | |
14221 | ||
14222 | fi | |
14223 | ||
14224 | done | |
14225 | ||
14226 | ||
14227 | for ac_header in unistd.h | |
14228 | do | |
14229 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14230 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14231 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14232 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14233 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14235 | fi | |
14236 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14237 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14238 | else | |
14239 | # Is the header compilable? | |
14240 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14241 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14242 | cat >conftest.$ac_ext <<_ACEOF | |
14243 | /* confdefs.h. */ | |
14244 | _ACEOF | |
14245 | cat confdefs.h >>conftest.$ac_ext | |
14246 | cat >>conftest.$ac_ext <<_ACEOF | |
14247 | /* end confdefs.h. */ | |
14248 | $ac_includes_default | |
14249 | #include <$ac_header> | |
14250 | _ACEOF | |
14251 | rm -f conftest.$ac_objext | |
14252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14253 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14254 | ac_status=$? |
ac1cb8d3 VS |
14255 | grep -v '^ *+' conftest.er1 >conftest.err |
14256 | rm -f conftest.er1 | |
14257 | cat conftest.err >&5 | |
a848cd7e SC |
14258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14259 | (exit $ac_status); } && | |
9dd0f6c2 | 14260 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14262 | (eval $ac_try) 2>&5 | |
14263 | ac_status=$? | |
14264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14265 | (exit $ac_status); }; } && | |
14266 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14268 | (eval $ac_try) 2>&5 | |
14269 | ac_status=$? | |
14270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14271 | (exit $ac_status); }; }; then | |
14272 | ac_header_compiler=yes | |
14273 | else | |
14274 | echo "$as_me: failed program was:" >&5 | |
14275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14276 | ||
14277 | ac_header_compiler=no | |
14278 | fi | |
ac1cb8d3 | 14279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14280 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14281 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14282 | ||
14283 | # Is the header present? | |
14284 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14285 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14286 | cat >conftest.$ac_ext <<_ACEOF | |
14287 | /* confdefs.h. */ | |
14288 | _ACEOF | |
14289 | cat confdefs.h >>conftest.$ac_ext | |
14290 | cat >>conftest.$ac_ext <<_ACEOF | |
14291 | /* end confdefs.h. */ | |
14292 | #include <$ac_header> | |
14293 | _ACEOF | |
14294 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14295 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14296 | ac_status=$? | |
14297 | grep -v '^ *+' conftest.er1 >conftest.err | |
14298 | rm -f conftest.er1 | |
14299 | cat conftest.err >&5 | |
14300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14301 | (exit $ac_status); } >/dev/null; then | |
14302 | if test -s conftest.err; then | |
14303 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14304 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14305 | else |
14306 | ac_cpp_err= | |
14307 | fi | |
14308 | else | |
14309 | ac_cpp_err=yes | |
14310 | fi | |
14311 | if test -z "$ac_cpp_err"; then | |
14312 | ac_header_preproc=yes | |
14313 | else | |
14314 | echo "$as_me: failed program was:" >&5 | |
14315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14316 | ||
14317 | ac_header_preproc=no | |
14318 | fi | |
14319 | rm -f conftest.err conftest.$ac_ext | |
14320 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14321 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14322 | ||
14323 | # So? What about this header? | |
ac1cb8d3 VS |
14324 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14325 | yes:no: ) | |
a848cd7e SC |
14326 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14327 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14328 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14329 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14330 | ac_header_preproc=yes | |
a848cd7e | 14331 | ;; |
ac1cb8d3 | 14332 | no:yes:* ) |
a848cd7e SC |
14333 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14334 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14335 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14336 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14337 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14338 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14339 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14340 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14341 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14342 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14343 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14344 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14345 | ( |
14346 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14347 | ## ----------------------------------------- ## |
14348 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14349 | ## ----------------------------------------- ## | |
a848cd7e SC |
14350 | _ASBOX |
14351 | ) | | |
14352 | sed "s/^/$as_me: WARNING: /" >&2 | |
14353 | ;; | |
14354 | esac | |
14355 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14356 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14357 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14359 | else | |
ac1cb8d3 | 14360 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14361 | fi |
14362 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14363 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14364 | ||
14365 | fi | |
14366 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14367 | cat >>confdefs.h <<_ACEOF | |
14368 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14369 | _ACEOF | |
14370 | ||
14371 | fi | |
14372 | ||
14373 | done | |
14374 | ||
14375 | ||
14376 | for ac_header in wchar.h | |
14377 | do | |
14378 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14379 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14380 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14381 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14382 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14384 | fi | |
14385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14386 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14387 | else | |
14388 | # Is the header compilable? | |
14389 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14390 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14391 | cat >conftest.$ac_ext <<_ACEOF | |
14392 | /* confdefs.h. */ | |
14393 | _ACEOF | |
14394 | cat confdefs.h >>conftest.$ac_ext | |
14395 | cat >>conftest.$ac_ext <<_ACEOF | |
14396 | /* end confdefs.h. */ | |
14397 | $ac_includes_default | |
14398 | #include <$ac_header> | |
14399 | _ACEOF | |
14400 | rm -f conftest.$ac_objext | |
14401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14402 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14403 | ac_status=$? |
ac1cb8d3 VS |
14404 | grep -v '^ *+' conftest.er1 >conftest.err |
14405 | rm -f conftest.er1 | |
14406 | cat conftest.err >&5 | |
a848cd7e SC |
14407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14408 | (exit $ac_status); } && | |
9dd0f6c2 | 14409 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14411 | (eval $ac_try) 2>&5 | |
14412 | ac_status=$? | |
14413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14414 | (exit $ac_status); }; } && | |
14415 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14417 | (eval $ac_try) 2>&5 | |
14418 | ac_status=$? | |
14419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14420 | (exit $ac_status); }; }; then | |
14421 | ac_header_compiler=yes | |
14422 | else | |
14423 | echo "$as_me: failed program was:" >&5 | |
14424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14425 | ||
14426 | ac_header_compiler=no | |
14427 | fi | |
ac1cb8d3 | 14428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14429 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14430 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14431 | ||
14432 | # Is the header present? | |
14433 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14434 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14435 | cat >conftest.$ac_ext <<_ACEOF | |
14436 | /* confdefs.h. */ | |
14437 | _ACEOF | |
14438 | cat confdefs.h >>conftest.$ac_ext | |
14439 | cat >>conftest.$ac_ext <<_ACEOF | |
14440 | /* end confdefs.h. */ | |
14441 | #include <$ac_header> | |
14442 | _ACEOF | |
14443 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14444 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14445 | ac_status=$? | |
14446 | grep -v '^ *+' conftest.er1 >conftest.err | |
14447 | rm -f conftest.er1 | |
14448 | cat conftest.err >&5 | |
14449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14450 | (exit $ac_status); } >/dev/null; then | |
14451 | if test -s conftest.err; then | |
14452 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14453 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14454 | else |
14455 | ac_cpp_err= | |
14456 | fi | |
14457 | else | |
14458 | ac_cpp_err=yes | |
14459 | fi | |
14460 | if test -z "$ac_cpp_err"; then | |
14461 | ac_header_preproc=yes | |
14462 | else | |
14463 | echo "$as_me: failed program was:" >&5 | |
14464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14465 | ||
14466 | ac_header_preproc=no | |
14467 | fi | |
14468 | rm -f conftest.err conftest.$ac_ext | |
14469 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14470 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14471 | ||
14472 | # So? What about this header? | |
ac1cb8d3 VS |
14473 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14474 | yes:no: ) | |
a848cd7e SC |
14475 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14476 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14477 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14478 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14479 | ac_header_preproc=yes | |
a848cd7e | 14480 | ;; |
ac1cb8d3 | 14481 | no:yes:* ) |
a848cd7e SC |
14482 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14483 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14484 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14485 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14486 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14487 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14488 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14489 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14490 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14491 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14492 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14493 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14494 | ( |
14495 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14496 | ## ----------------------------------------- ## |
14497 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14498 | ## ----------------------------------------- ## | |
a848cd7e SC |
14499 | _ASBOX |
14500 | ) | | |
14501 | sed "s/^/$as_me: WARNING: /" >&2 | |
14502 | ;; | |
14503 | esac | |
14504 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14505 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14506 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14508 | else | |
ac1cb8d3 | 14509 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14510 | fi |
14511 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14512 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14513 | ||
14514 | fi | |
14515 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14516 | cat >>confdefs.h <<_ACEOF | |
14517 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14518 | _ACEOF | |
14519 | ||
14520 | fi | |
14521 | ||
14522 | done | |
14523 | ||
14524 | ||
14525 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
14526 | ||
14527 | for ac_header in wcstr.h | |
14528 | do | |
14529 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14530 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14531 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14532 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14533 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14535 | fi | |
14536 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14537 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14538 | else | |
14539 | # Is the header compilable? | |
14540 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14541 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14542 | cat >conftest.$ac_ext <<_ACEOF | |
14543 | /* confdefs.h. */ | |
14544 | _ACEOF | |
14545 | cat confdefs.h >>conftest.$ac_ext | |
14546 | cat >>conftest.$ac_ext <<_ACEOF | |
14547 | /* end confdefs.h. */ | |
14548 | $ac_includes_default | |
14549 | #include <$ac_header> | |
14550 | _ACEOF | |
14551 | rm -f conftest.$ac_objext | |
14552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14553 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14554 | ac_status=$? |
ac1cb8d3 VS |
14555 | grep -v '^ *+' conftest.er1 >conftest.err |
14556 | rm -f conftest.er1 | |
14557 | cat conftest.err >&5 | |
a848cd7e SC |
14558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14559 | (exit $ac_status); } && | |
9dd0f6c2 | 14560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14562 | (eval $ac_try) 2>&5 | |
14563 | ac_status=$? | |
14564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14565 | (exit $ac_status); }; } && | |
14566 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14568 | (eval $ac_try) 2>&5 | |
14569 | ac_status=$? | |
14570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14571 | (exit $ac_status); }; }; then | |
14572 | ac_header_compiler=yes | |
14573 | else | |
14574 | echo "$as_me: failed program was:" >&5 | |
14575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14576 | ||
14577 | ac_header_compiler=no | |
14578 | fi | |
ac1cb8d3 | 14579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14580 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14581 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14582 | ||
14583 | # Is the header present? | |
14584 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14585 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14586 | cat >conftest.$ac_ext <<_ACEOF | |
14587 | /* confdefs.h. */ | |
14588 | _ACEOF | |
14589 | cat confdefs.h >>conftest.$ac_ext | |
14590 | cat >>conftest.$ac_ext <<_ACEOF | |
14591 | /* end confdefs.h. */ | |
14592 | #include <$ac_header> | |
14593 | _ACEOF | |
14594 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14595 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14596 | ac_status=$? | |
14597 | grep -v '^ *+' conftest.er1 >conftest.err | |
14598 | rm -f conftest.er1 | |
14599 | cat conftest.err >&5 | |
14600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14601 | (exit $ac_status); } >/dev/null; then | |
14602 | if test -s conftest.err; then | |
14603 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14604 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14605 | else |
14606 | ac_cpp_err= | |
14607 | fi | |
14608 | else | |
14609 | ac_cpp_err=yes | |
14610 | fi | |
14611 | if test -z "$ac_cpp_err"; then | |
14612 | ac_header_preproc=yes | |
14613 | else | |
14614 | echo "$as_me: failed program was:" >&5 | |
14615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14616 | ||
14617 | ac_header_preproc=no | |
14618 | fi | |
14619 | rm -f conftest.err conftest.$ac_ext | |
14620 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14621 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14622 | ||
14623 | # So? What about this header? | |
ac1cb8d3 VS |
14624 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14625 | yes:no: ) | |
a848cd7e SC |
14626 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14627 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14628 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14629 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14630 | ac_header_preproc=yes | |
a848cd7e | 14631 | ;; |
ac1cb8d3 | 14632 | no:yes:* ) |
a848cd7e SC |
14633 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14634 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14635 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14636 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14637 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14638 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14639 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14640 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14641 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14642 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14643 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14644 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14645 | ( |
14646 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14647 | ## ----------------------------------------- ## |
14648 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14649 | ## ----------------------------------------- ## | |
a848cd7e SC |
14650 | _ASBOX |
14651 | ) | | |
14652 | sed "s/^/$as_me: WARNING: /" >&2 | |
14653 | ;; | |
14654 | esac | |
14655 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14656 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14657 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14659 | else | |
ac1cb8d3 | 14660 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14661 | fi |
14662 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14663 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14664 | ||
14665 | fi | |
14666 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14667 | cat >>confdefs.h <<_ACEOF | |
14668 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14669 | _ACEOF | |
14670 | ||
14671 | fi | |
14672 | ||
14673 | done | |
14674 | ||
14675 | fi | |
14676 | ||
14677 | ||
14678 | for ac_header in fnmatch.h | |
14679 | do | |
14680 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14681 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14682 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14683 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14684 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14686 | fi | |
14687 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14688 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14689 | else | |
14690 | # Is the header compilable? | |
14691 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14692 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14693 | cat >conftest.$ac_ext <<_ACEOF | |
14694 | /* confdefs.h. */ | |
14695 | _ACEOF | |
14696 | cat confdefs.h >>conftest.$ac_ext | |
14697 | cat >>conftest.$ac_ext <<_ACEOF | |
14698 | /* end confdefs.h. */ | |
14699 | $ac_includes_default | |
14700 | #include <$ac_header> | |
14701 | _ACEOF | |
14702 | rm -f conftest.$ac_objext | |
14703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14704 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14705 | ac_status=$? |
ac1cb8d3 VS |
14706 | grep -v '^ *+' conftest.er1 >conftest.err |
14707 | rm -f conftest.er1 | |
14708 | cat conftest.err >&5 | |
a848cd7e SC |
14709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14710 | (exit $ac_status); } && | |
9dd0f6c2 | 14711 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14713 | (eval $ac_try) 2>&5 | |
14714 | ac_status=$? | |
14715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14716 | (exit $ac_status); }; } && | |
14717 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14719 | (eval $ac_try) 2>&5 | |
14720 | ac_status=$? | |
14721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14722 | (exit $ac_status); }; }; then | |
14723 | ac_header_compiler=yes | |
14724 | else | |
14725 | echo "$as_me: failed program was:" >&5 | |
14726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14727 | ||
14728 | ac_header_compiler=no | |
14729 | fi | |
ac1cb8d3 | 14730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14731 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14732 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14733 | ||
14734 | # Is the header present? | |
14735 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14736 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14737 | cat >conftest.$ac_ext <<_ACEOF | |
14738 | /* confdefs.h. */ | |
14739 | _ACEOF | |
14740 | cat confdefs.h >>conftest.$ac_ext | |
14741 | cat >>conftest.$ac_ext <<_ACEOF | |
14742 | /* end confdefs.h. */ | |
14743 | #include <$ac_header> | |
14744 | _ACEOF | |
14745 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14746 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14747 | ac_status=$? | |
14748 | grep -v '^ *+' conftest.er1 >conftest.err | |
14749 | rm -f conftest.er1 | |
14750 | cat conftest.err >&5 | |
14751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14752 | (exit $ac_status); } >/dev/null; then | |
14753 | if test -s conftest.err; then | |
14754 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14755 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14756 | else |
14757 | ac_cpp_err= | |
14758 | fi | |
14759 | else | |
14760 | ac_cpp_err=yes | |
14761 | fi | |
14762 | if test -z "$ac_cpp_err"; then | |
14763 | ac_header_preproc=yes | |
14764 | else | |
14765 | echo "$as_me: failed program was:" >&5 | |
14766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14767 | ||
14768 | ac_header_preproc=no | |
14769 | fi | |
14770 | rm -f conftest.err conftest.$ac_ext | |
14771 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14772 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14773 | ||
14774 | # So? What about this header? | |
ac1cb8d3 VS |
14775 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14776 | yes:no: ) | |
a848cd7e SC |
14777 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14778 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14779 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14780 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14781 | ac_header_preproc=yes | |
a848cd7e | 14782 | ;; |
ac1cb8d3 | 14783 | no:yes:* ) |
a848cd7e SC |
14784 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14785 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14786 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14787 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14788 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14789 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14790 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14791 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14792 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14793 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14794 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14795 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14796 | ( |
14797 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14798 | ## ----------------------------------------- ## |
14799 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14800 | ## ----------------------------------------- ## | |
a848cd7e SC |
14801 | _ASBOX |
14802 | ) | | |
14803 | sed "s/^/$as_me: WARNING: /" >&2 | |
14804 | ;; | |
14805 | esac | |
14806 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14807 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14810 | else | |
ac1cb8d3 | 14811 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14812 | fi |
14813 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14814 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14815 | ||
14816 | fi | |
14817 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14818 | cat >>confdefs.h <<_ACEOF | |
14819 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14820 | _ACEOF | |
14821 | ||
14822 | fi | |
14823 | ||
14824 | done | |
14825 | ||
14826 | ||
14827 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
14828 | ||
14829 | for ac_func in fnmatch | |
14830 | do | |
14831 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14832 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14833 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14834 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14836 | else | |
14837 | cat >conftest.$ac_ext <<_ACEOF | |
14838 | /* confdefs.h. */ | |
14839 | _ACEOF | |
14840 | cat confdefs.h >>conftest.$ac_ext | |
14841 | cat >>conftest.$ac_ext <<_ACEOF | |
14842 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
14843 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14844 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14845 | #define $ac_func innocuous_$ac_func | |
14846 | ||
a848cd7e SC |
14847 | /* System header to define __stub macros and hopefully few prototypes, |
14848 | which can conflict with char $ac_func (); below. | |
14849 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14850 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 14851 | |
a848cd7e SC |
14852 | #ifdef __STDC__ |
14853 | # include <limits.h> | |
14854 | #else | |
14855 | # include <assert.h> | |
14856 | #endif | |
ac1cb8d3 VS |
14857 | |
14858 | #undef $ac_func | |
14859 | ||
a848cd7e SC |
14860 | /* Override any gcc2 internal prototype to avoid an error. */ |
14861 | #ifdef __cplusplus | |
14862 | extern "C" | |
14863 | { | |
14864 | #endif | |
14865 | /* We use char because int might match the return type of a gcc2 | |
14866 | builtin and then its argument prototype would still apply. */ | |
14867 | char $ac_func (); | |
14868 | /* The GNU C library defines this for functions which it implements | |
14869 | to always fail with ENOSYS. Some functions are actually named | |
14870 | something starting with __ and the normal name is an alias. */ | |
14871 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14872 | choke me | |
14873 | #else | |
14874 | char (*f) () = $ac_func; | |
14875 | #endif | |
14876 | #ifdef __cplusplus | |
14877 | } | |
14878 | #endif | |
14879 | ||
14880 | int | |
14881 | main () | |
14882 | { | |
14883 | return f != $ac_func; | |
14884 | ; | |
14885 | return 0; | |
14886 | } | |
14887 | _ACEOF | |
14888 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14890 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14891 | ac_status=$? |
ac1cb8d3 VS |
14892 | grep -v '^ *+' conftest.er1 >conftest.err |
14893 | rm -f conftest.er1 | |
14894 | cat conftest.err >&5 | |
a848cd7e SC |
14895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14896 | (exit $ac_status); } && | |
9dd0f6c2 | 14897 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14899 | (eval $ac_try) 2>&5 | |
14900 | ac_status=$? | |
14901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14902 | (exit $ac_status); }; } && | |
14903 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14905 | (eval $ac_try) 2>&5 | |
14906 | ac_status=$? | |
14907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14908 | (exit $ac_status); }; }; then | |
14909 | eval "$as_ac_var=yes" | |
14910 | else | |
14911 | echo "$as_me: failed program was:" >&5 | |
14912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14913 | ||
14914 | eval "$as_ac_var=no" | |
14915 | fi | |
ac1cb8d3 VS |
14916 | rm -f conftest.err conftest.$ac_objext \ |
14917 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14918 | fi |
14919 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14920 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14921 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14922 | cat >>confdefs.h <<_ACEOF | |
14923 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14924 | _ACEOF | |
14925 | ||
14926 | fi | |
14927 | done | |
14928 | ||
14929 | fi | |
14930 | ||
14931 | ||
14932 | for ac_header in langinfo.h | |
14933 | do | |
14934 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14936 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14937 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14938 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14940 | fi | |
14941 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14942 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14943 | else | |
14944 | # Is the header compilable? | |
14945 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14946 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14947 | cat >conftest.$ac_ext <<_ACEOF | |
14948 | /* confdefs.h. */ | |
14949 | _ACEOF | |
14950 | cat confdefs.h >>conftest.$ac_ext | |
14951 | cat >>conftest.$ac_ext <<_ACEOF | |
14952 | /* end confdefs.h. */ | |
14953 | $ac_includes_default | |
14954 | #include <$ac_header> | |
14955 | _ACEOF | |
14956 | rm -f conftest.$ac_objext | |
14957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14958 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14959 | ac_status=$? |
ac1cb8d3 VS |
14960 | grep -v '^ *+' conftest.er1 >conftest.err |
14961 | rm -f conftest.er1 | |
14962 | cat conftest.err >&5 | |
a848cd7e SC |
14963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14964 | (exit $ac_status); } && | |
9dd0f6c2 | 14965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14967 | (eval $ac_try) 2>&5 | |
14968 | ac_status=$? | |
14969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14970 | (exit $ac_status); }; } && | |
14971 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14973 | (eval $ac_try) 2>&5 | |
14974 | ac_status=$? | |
14975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14976 | (exit $ac_status); }; }; then | |
14977 | ac_header_compiler=yes | |
14978 | else | |
14979 | echo "$as_me: failed program was:" >&5 | |
14980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14981 | ||
14982 | ac_header_compiler=no | |
14983 | fi | |
ac1cb8d3 | 14984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14985 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14986 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14987 | ||
14988 | # Is the header present? | |
14989 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14990 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14991 | cat >conftest.$ac_ext <<_ACEOF | |
14992 | /* confdefs.h. */ | |
14993 | _ACEOF | |
14994 | cat confdefs.h >>conftest.$ac_ext | |
14995 | cat >>conftest.$ac_ext <<_ACEOF | |
14996 | /* end confdefs.h. */ | |
14997 | #include <$ac_header> | |
14998 | _ACEOF | |
14999 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15000 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15001 | ac_status=$? | |
15002 | grep -v '^ *+' conftest.er1 >conftest.err | |
15003 | rm -f conftest.er1 | |
15004 | cat conftest.err >&5 | |
15005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15006 | (exit $ac_status); } >/dev/null; then | |
15007 | if test -s conftest.err; then | |
15008 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15009 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15010 | else |
15011 | ac_cpp_err= | |
15012 | fi | |
15013 | else | |
15014 | ac_cpp_err=yes | |
15015 | fi | |
15016 | if test -z "$ac_cpp_err"; then | |
15017 | ac_header_preproc=yes | |
15018 | else | |
15019 | echo "$as_me: failed program was:" >&5 | |
15020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15021 | ||
15022 | ac_header_preproc=no | |
15023 | fi | |
15024 | rm -f conftest.err conftest.$ac_ext | |
15025 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15026 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15027 | ||
15028 | # So? What about this header? | |
ac1cb8d3 VS |
15029 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15030 | yes:no: ) | |
a848cd7e SC |
15031 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15032 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15033 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15034 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15035 | ac_header_preproc=yes | |
a848cd7e | 15036 | ;; |
ac1cb8d3 | 15037 | no:yes:* ) |
a848cd7e SC |
15038 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15039 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15040 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15041 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15042 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15043 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15044 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15045 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15046 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15047 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15048 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15049 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15050 | ( |
15051 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15052 | ## ----------------------------------------- ## |
15053 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15054 | ## ----------------------------------------- ## | |
a848cd7e SC |
15055 | _ASBOX |
15056 | ) | | |
15057 | sed "s/^/$as_me: WARNING: /" >&2 | |
15058 | ;; | |
15059 | esac | |
15060 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15061 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15062 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15064 | else | |
ac1cb8d3 | 15065 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15066 | fi |
15067 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15068 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15069 | ||
15070 | fi | |
15071 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15072 | cat >>confdefs.h <<_ACEOF | |
15073 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15074 | _ACEOF | |
15075 | ||
15076 | fi | |
15077 | ||
15078 | done | |
15079 | ||
15080 | ||
15081 | case "${host}" in | |
15082 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
15083 | if test $ac_cv_header_langinfo_h = "yes" \ |
15084 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
15085 | -o "$wx_cv_gccversion" = "EMX3" \ | |
15086 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
15087 | LIBS="$LIBS -lintl" |
15088 | fi | |
15089 | ;; | |
15090 | esac | |
15091 | ||
15092 | if test "$wxUSE_GUI" = "yes"; then | |
15093 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
15094 | ||
15095 | for ac_header in X11/Xlib.h | |
15096 | do | |
15097 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15098 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15099 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15100 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15101 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15103 | fi | |
15104 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15105 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15106 | else | |
15107 | # Is the header compilable? | |
15108 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15109 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15110 | cat >conftest.$ac_ext <<_ACEOF | |
15111 | /* confdefs.h. */ | |
15112 | _ACEOF | |
15113 | cat confdefs.h >>conftest.$ac_ext | |
15114 | cat >>conftest.$ac_ext <<_ACEOF | |
15115 | /* end confdefs.h. */ | |
15116 | $ac_includes_default | |
15117 | #include <$ac_header> | |
15118 | _ACEOF | |
15119 | rm -f conftest.$ac_objext | |
15120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15121 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15122 | ac_status=$? |
ac1cb8d3 VS |
15123 | grep -v '^ *+' conftest.er1 >conftest.err |
15124 | rm -f conftest.er1 | |
15125 | cat conftest.err >&5 | |
a848cd7e SC |
15126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15127 | (exit $ac_status); } && | |
9dd0f6c2 | 15128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15130 | (eval $ac_try) 2>&5 | |
15131 | ac_status=$? | |
15132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15133 | (exit $ac_status); }; } && | |
15134 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15136 | (eval $ac_try) 2>&5 | |
15137 | ac_status=$? | |
15138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15139 | (exit $ac_status); }; }; then | |
15140 | ac_header_compiler=yes | |
15141 | else | |
15142 | echo "$as_me: failed program was:" >&5 | |
15143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15144 | ||
15145 | ac_header_compiler=no | |
15146 | fi | |
ac1cb8d3 | 15147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15148 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15149 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15150 | ||
15151 | # Is the header present? | |
15152 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15153 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15154 | cat >conftest.$ac_ext <<_ACEOF | |
15155 | /* confdefs.h. */ | |
15156 | _ACEOF | |
15157 | cat confdefs.h >>conftest.$ac_ext | |
15158 | cat >>conftest.$ac_ext <<_ACEOF | |
15159 | /* end confdefs.h. */ | |
15160 | #include <$ac_header> | |
15161 | _ACEOF | |
15162 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15163 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15164 | ac_status=$? | |
15165 | grep -v '^ *+' conftest.er1 >conftest.err | |
15166 | rm -f conftest.er1 | |
15167 | cat conftest.err >&5 | |
15168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15169 | (exit $ac_status); } >/dev/null; then | |
15170 | if test -s conftest.err; then | |
15171 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15172 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15173 | else |
15174 | ac_cpp_err= | |
15175 | fi | |
15176 | else | |
15177 | ac_cpp_err=yes | |
15178 | fi | |
15179 | if test -z "$ac_cpp_err"; then | |
15180 | ac_header_preproc=yes | |
15181 | else | |
15182 | echo "$as_me: failed program was:" >&5 | |
15183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15184 | ||
15185 | ac_header_preproc=no | |
15186 | fi | |
15187 | rm -f conftest.err conftest.$ac_ext | |
15188 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15189 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15190 | ||
15191 | # So? What about this header? | |
ac1cb8d3 VS |
15192 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15193 | yes:no: ) | |
a848cd7e SC |
15194 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15195 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15196 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15197 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15198 | ac_header_preproc=yes | |
a848cd7e | 15199 | ;; |
ac1cb8d3 | 15200 | no:yes:* ) |
a848cd7e SC |
15201 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15202 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15203 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15204 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15205 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15206 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15207 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15208 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15209 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15210 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15211 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15212 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15213 | ( |
15214 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15215 | ## ----------------------------------------- ## |
15216 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15217 | ## ----------------------------------------- ## | |
a848cd7e SC |
15218 | _ASBOX |
15219 | ) | | |
15220 | sed "s/^/$as_me: WARNING: /" >&2 | |
15221 | ;; | |
15222 | esac | |
15223 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15224 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15225 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15227 | else | |
ac1cb8d3 | 15228 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15229 | fi |
15230 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15231 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15232 | ||
15233 | fi | |
15234 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15235 | cat >>confdefs.h <<_ACEOF | |
15236 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15237 | _ACEOF | |
15238 | ||
15239 | fi | |
15240 | ||
15241 | done | |
15242 | ||
15243 | ||
15244 | for ac_header in X11/XKBlib.h | |
15245 | do | |
15246 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15247 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15248 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15249 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15251 | else | |
15252 | cat >conftest.$ac_ext <<_ACEOF | |
15253 | /* confdefs.h. */ | |
15254 | _ACEOF | |
15255 | cat confdefs.h >>conftest.$ac_ext | |
15256 | cat >>conftest.$ac_ext <<_ACEOF | |
15257 | /* end confdefs.h. */ | |
15258 | ||
15259 | #if HAVE_X11_XLIB_H | |
15260 | #include <X11/Xlib.h> | |
15261 | #endif | |
15262 | ||
15263 | ||
15264 | #include <$ac_header> | |
15265 | _ACEOF | |
15266 | rm -f conftest.$ac_objext | |
15267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15268 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15269 | ac_status=$? |
ac1cb8d3 VS |
15270 | grep -v '^ *+' conftest.er1 >conftest.err |
15271 | rm -f conftest.er1 | |
15272 | cat conftest.err >&5 | |
a848cd7e SC |
15273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15274 | (exit $ac_status); } && | |
9dd0f6c2 | 15275 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15277 | (eval $ac_try) 2>&5 | |
15278 | ac_status=$? | |
15279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15280 | (exit $ac_status); }; } && | |
15281 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15283 | (eval $ac_try) 2>&5 | |
15284 | ac_status=$? | |
15285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15286 | (exit $ac_status); }; }; then | |
15287 | eval "$as_ac_Header=yes" | |
15288 | else | |
15289 | echo "$as_me: failed program was:" >&5 | |
15290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15291 | ||
15292 | eval "$as_ac_Header=no" | |
15293 | fi | |
ac1cb8d3 | 15294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15295 | fi |
15296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15297 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15298 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15299 | cat >>confdefs.h <<_ACEOF | |
15300 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15301 | _ACEOF | |
15302 | ||
15303 | fi | |
15304 | ||
15305 | done | |
15306 | ||
15307 | fi | |
15308 | fi | |
15309 | ||
15310 | ||
15311 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
15312 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
15313 | if test "${ac_cv_c_const+set}" = set; then | |
15314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15315 | else | |
15316 | cat >conftest.$ac_ext <<_ACEOF | |
15317 | /* confdefs.h. */ | |
15318 | _ACEOF | |
15319 | cat confdefs.h >>conftest.$ac_ext | |
15320 | cat >>conftest.$ac_ext <<_ACEOF | |
15321 | /* end confdefs.h. */ | |
15322 | ||
15323 | int | |
15324 | main () | |
15325 | { | |
15326 | /* FIXME: Include the comments suggested by Paul. */ | |
15327 | #ifndef __cplusplus | |
15328 | /* Ultrix mips cc rejects this. */ | |
15329 | typedef int charset[2]; | |
15330 | const charset x; | |
15331 | /* SunOS 4.1.1 cc rejects this. */ | |
15332 | char const *const *ccp; | |
15333 | char **p; | |
15334 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15335 | struct point {int x, y;}; | |
15336 | static struct point const zero = {0,0}; | |
15337 | /* AIX XL C 1.02.0.0 rejects this. | |
15338 | It does not let you subtract one const X* pointer from another in | |
15339 | an arm of an if-expression whose if-part is not a constant | |
15340 | expression */ | |
15341 | const char *g = "string"; | |
15342 | ccp = &g + (g ? g-g : 0); | |
15343 | /* HPUX 7.0 cc rejects these. */ | |
15344 | ++ccp; | |
15345 | p = (char**) ccp; | |
15346 | ccp = (char const *const *) p; | |
15347 | { /* SCO 3.2v4 cc rejects this. */ | |
15348 | char *t; | |
15349 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15350 | ||
15351 | *t++ = 0; | |
15352 | } | |
15353 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15354 | int x[] = {25, 17}; | |
15355 | const int *foo = &x[0]; | |
15356 | ++foo; | |
15357 | } | |
15358 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15359 | typedef const int *iptr; | |
15360 | iptr p = 0; | |
15361 | ++p; | |
15362 | } | |
15363 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15364 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15365 | struct s { int j; const int *ap[3]; }; | |
15366 | struct s *b; b->j = 5; | |
15367 | } | |
15368 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15369 | const int foo = 10; | |
15370 | } | |
15371 | #endif | |
15372 | ||
15373 | ; | |
15374 | return 0; | |
15375 | } | |
15376 | _ACEOF | |
15377 | rm -f conftest.$ac_objext | |
15378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15379 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15380 | ac_status=$? |
ac1cb8d3 VS |
15381 | grep -v '^ *+' conftest.er1 >conftest.err |
15382 | rm -f conftest.er1 | |
15383 | cat conftest.err >&5 | |
a848cd7e SC |
15384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15385 | (exit $ac_status); } && | |
9dd0f6c2 | 15386 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15388 | (eval $ac_try) 2>&5 | |
15389 | ac_status=$? | |
15390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15391 | (exit $ac_status); }; } && | |
15392 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15394 | (eval $ac_try) 2>&5 | |
15395 | ac_status=$? | |
15396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15397 | (exit $ac_status); }; }; then | |
15398 | ac_cv_c_const=yes | |
15399 | else | |
15400 | echo "$as_me: failed program was:" >&5 | |
15401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15402 | ||
15403 | ac_cv_c_const=no | |
15404 | fi | |
ac1cb8d3 | 15405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15406 | fi |
15407 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
15408 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
15409 | if test $ac_cv_c_const = no; then | |
15410 | ||
15411 | cat >>confdefs.h <<\_ACEOF | |
15412 | #define const | |
15413 | _ACEOF | |
15414 | ||
15415 | fi | |
15416 | ||
15417 | echo "$as_me:$LINENO: checking for inline" >&5 | |
15418 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
15419 | if test "${ac_cv_c_inline+set}" = set; then | |
15420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15421 | else | |
15422 | ac_cv_c_inline=no | |
15423 | for ac_kw in inline __inline__ __inline; do | |
15424 | cat >conftest.$ac_ext <<_ACEOF | |
15425 | /* confdefs.h. */ | |
15426 | _ACEOF | |
15427 | cat confdefs.h >>conftest.$ac_ext | |
15428 | cat >>conftest.$ac_ext <<_ACEOF | |
15429 | /* end confdefs.h. */ | |
15430 | #ifndef __cplusplus | |
15431 | typedef int foo_t; | |
15432 | static $ac_kw foo_t static_foo () {return 0; } | |
15433 | $ac_kw foo_t foo () {return 0; } | |
15434 | #endif | |
15435 | ||
15436 | _ACEOF | |
15437 | rm -f conftest.$ac_objext | |
15438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15439 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15440 | ac_status=$? |
ac1cb8d3 VS |
15441 | grep -v '^ *+' conftest.er1 >conftest.err |
15442 | rm -f conftest.er1 | |
15443 | cat conftest.err >&5 | |
a848cd7e SC |
15444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15445 | (exit $ac_status); } && | |
9dd0f6c2 | 15446 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15448 | (eval $ac_try) 2>&5 | |
15449 | ac_status=$? | |
15450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15451 | (exit $ac_status); }; } && | |
15452 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15454 | (eval $ac_try) 2>&5 | |
15455 | ac_status=$? | |
15456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15457 | (exit $ac_status); }; }; then | |
15458 | ac_cv_c_inline=$ac_kw; break | |
15459 | else | |
15460 | echo "$as_me: failed program was:" >&5 | |
15461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15462 | ||
15463 | fi | |
ac1cb8d3 | 15464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15465 | done |
15466 | ||
15467 | fi | |
15468 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
15469 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
15470 | |
15471 | ||
a848cd7e SC |
15472 | case $ac_cv_c_inline in |
15473 | inline | yes) ;; | |
ac1cb8d3 VS |
15474 | *) |
15475 | case $ac_cv_c_inline in | |
15476 | no) ac_val=;; | |
15477 | *) ac_val=$ac_cv_c_inline;; | |
15478 | esac | |
15479 | cat >>confdefs.h <<_ACEOF | |
15480 | #ifndef __cplusplus | |
15481 | #define inline $ac_val | |
15482 | #endif | |
de59c161 | 15483 | _ACEOF |
ac1cb8d3 | 15484 | ;; |
a848cd7e SC |
15485 | esac |
15486 | ||
15487 | ||
15488 | echo "$as_me:$LINENO: checking for char" >&5 | |
15489 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
15490 | if test "${ac_cv_type_char+set}" = set; then | |
15491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15492 | else | |
15493 | cat >conftest.$ac_ext <<_ACEOF | |
15494 | /* confdefs.h. */ | |
15495 | _ACEOF | |
15496 | cat confdefs.h >>conftest.$ac_ext | |
15497 | cat >>conftest.$ac_ext <<_ACEOF | |
15498 | /* end confdefs.h. */ | |
15499 | $ac_includes_default | |
15500 | int | |
15501 | main () | |
15502 | { | |
15503 | if ((char *) 0) | |
15504 | return 0; | |
15505 | if (sizeof (char)) | |
15506 | return 0; | |
15507 | ; | |
15508 | return 0; | |
15509 | } | |
15510 | _ACEOF | |
15511 | rm -f conftest.$ac_objext | |
15512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15513 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15514 | ac_status=$? |
ac1cb8d3 VS |
15515 | grep -v '^ *+' conftest.er1 >conftest.err |
15516 | rm -f conftest.er1 | |
15517 | cat conftest.err >&5 | |
a848cd7e SC |
15518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15519 | (exit $ac_status); } && | |
9dd0f6c2 | 15520 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15522 | (eval $ac_try) 2>&5 | |
15523 | ac_status=$? | |
15524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15525 | (exit $ac_status); }; } && | |
15526 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15528 | (eval $ac_try) 2>&5 | |
15529 | ac_status=$? | |
15530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15531 | (exit $ac_status); }; }; then | |
15532 | ac_cv_type_char=yes | |
15533 | else | |
15534 | echo "$as_me: failed program was:" >&5 | |
15535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15536 | ||
15537 | ac_cv_type_char=no | |
15538 | fi | |
ac1cb8d3 | 15539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15540 | fi |
15541 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
15542 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
15543 | ||
15544 | echo "$as_me:$LINENO: checking size of char" >&5 | |
15545 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
15546 | if test "${ac_cv_sizeof_char+set}" = set; then | |
15547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15548 | else | |
15549 | if test "$ac_cv_type_char" = yes; then | |
15550 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15551 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15552 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15553 | # This bug is HP SR number 8606223364. | |
15554 | if test "$cross_compiling" = yes; then | |
15555 | # Depending upon the size, compute the lo and hi bounds. | |
15556 | cat >conftest.$ac_ext <<_ACEOF | |
15557 | /* confdefs.h. */ | |
15558 | _ACEOF | |
15559 | cat confdefs.h >>conftest.$ac_ext | |
15560 | cat >>conftest.$ac_ext <<_ACEOF | |
15561 | /* end confdefs.h. */ | |
15562 | $ac_includes_default | |
15563 | int | |
15564 | main () | |
15565 | { | |
15566 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
15567 | test_array [0] = 0 | |
15568 | ||
15569 | ; | |
15570 | return 0; | |
15571 | } | |
15572 | _ACEOF | |
15573 | rm -f conftest.$ac_objext | |
15574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15575 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15576 | ac_status=$? |
ac1cb8d3 VS |
15577 | grep -v '^ *+' conftest.er1 >conftest.err |
15578 | rm -f conftest.er1 | |
15579 | cat conftest.err >&5 | |
a848cd7e SC |
15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15581 | (exit $ac_status); } && | |
9dd0f6c2 | 15582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15584 | (eval $ac_try) 2>&5 | |
15585 | ac_status=$? | |
15586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15587 | (exit $ac_status); }; } && | |
15588 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15590 | (eval $ac_try) 2>&5 | |
15591 | ac_status=$? | |
15592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15593 | (exit $ac_status); }; }; then | |
15594 | ac_lo=0 ac_mid=0 | |
15595 | while :; do | |
15596 | cat >conftest.$ac_ext <<_ACEOF | |
15597 | /* confdefs.h. */ | |
15598 | _ACEOF | |
15599 | cat confdefs.h >>conftest.$ac_ext | |
15600 | cat >>conftest.$ac_ext <<_ACEOF | |
15601 | /* end confdefs.h. */ | |
15602 | $ac_includes_default | |
15603 | int | |
15604 | main () | |
15605 | { | |
15606 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15607 | test_array [0] = 0 | |
15608 | ||
15609 | ; | |
15610 | return 0; | |
15611 | } | |
15612 | _ACEOF | |
15613 | rm -f conftest.$ac_objext | |
15614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15615 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15616 | ac_status=$? |
ac1cb8d3 VS |
15617 | grep -v '^ *+' conftest.er1 >conftest.err |
15618 | rm -f conftest.er1 | |
15619 | cat conftest.err >&5 | |
a848cd7e SC |
15620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15621 | (exit $ac_status); } && | |
9dd0f6c2 | 15622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15624 | (eval $ac_try) 2>&5 | |
15625 | ac_status=$? | |
15626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15627 | (exit $ac_status); }; } && | |
15628 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15630 | (eval $ac_try) 2>&5 | |
15631 | ac_status=$? | |
15632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15633 | (exit $ac_status); }; }; then | |
15634 | ac_hi=$ac_mid; break | |
15635 | else | |
15636 | echo "$as_me: failed program was:" >&5 | |
15637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15638 | ||
15639 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15640 | if test $ac_lo -le $ac_mid; then |
15641 | ac_lo= ac_hi= | |
15642 | break | |
15643 | fi | |
15644 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15645 | fi |
ac1cb8d3 | 15646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15647 | done |
15648 | else | |
15649 | echo "$as_me: failed program was:" >&5 | |
15650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15651 | ||
15652 | cat >conftest.$ac_ext <<_ACEOF | |
15653 | /* confdefs.h. */ | |
15654 | _ACEOF | |
15655 | cat confdefs.h >>conftest.$ac_ext | |
15656 | cat >>conftest.$ac_ext <<_ACEOF | |
15657 | /* end confdefs.h. */ | |
15658 | $ac_includes_default | |
15659 | int | |
15660 | main () | |
15661 | { | |
15662 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
15663 | test_array [0] = 0 | |
15664 | ||
15665 | ; | |
15666 | return 0; | |
15667 | } | |
15668 | _ACEOF | |
15669 | rm -f conftest.$ac_objext | |
15670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15671 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15672 | ac_status=$? |
ac1cb8d3 VS |
15673 | grep -v '^ *+' conftest.er1 >conftest.err |
15674 | rm -f conftest.er1 | |
15675 | cat conftest.err >&5 | |
a848cd7e SC |
15676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15677 | (exit $ac_status); } && | |
9dd0f6c2 | 15678 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15680 | (eval $ac_try) 2>&5 | |
15681 | ac_status=$? | |
15682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15683 | (exit $ac_status); }; } && | |
15684 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15686 | (eval $ac_try) 2>&5 | |
15687 | ac_status=$? | |
15688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15689 | (exit $ac_status); }; }; then | |
15690 | ac_hi=-1 ac_mid=-1 | |
15691 | while :; do | |
15692 | cat >conftest.$ac_ext <<_ACEOF | |
15693 | /* confdefs.h. */ | |
15694 | _ACEOF | |
15695 | cat confdefs.h >>conftest.$ac_ext | |
15696 | cat >>conftest.$ac_ext <<_ACEOF | |
15697 | /* end confdefs.h. */ | |
15698 | $ac_includes_default | |
15699 | int | |
15700 | main () | |
15701 | { | |
15702 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
15703 | test_array [0] = 0 | |
15704 | ||
15705 | ; | |
15706 | return 0; | |
15707 | } | |
15708 | _ACEOF | |
15709 | rm -f conftest.$ac_objext | |
15710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15711 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15712 | ac_status=$? |
ac1cb8d3 VS |
15713 | grep -v '^ *+' conftest.er1 >conftest.err |
15714 | rm -f conftest.er1 | |
15715 | cat conftest.err >&5 | |
a848cd7e SC |
15716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15717 | (exit $ac_status); } && | |
9dd0f6c2 | 15718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15720 | (eval $ac_try) 2>&5 | |
15721 | ac_status=$? | |
15722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15723 | (exit $ac_status); }; } && | |
15724 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15726 | (eval $ac_try) 2>&5 | |
15727 | ac_status=$? | |
15728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15729 | (exit $ac_status); }; }; then | |
15730 | ac_lo=$ac_mid; break | |
15731 | else | |
15732 | echo "$as_me: failed program was:" >&5 | |
15733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15734 | ||
15735 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15736 | if test $ac_mid -le $ac_hi; then |
15737 | ac_lo= ac_hi= | |
15738 | break | |
15739 | fi | |
15740 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15741 | fi |
ac1cb8d3 | 15742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15743 | done |
15744 | else | |
15745 | echo "$as_me: failed program was:" >&5 | |
15746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15747 | ||
15748 | ac_lo= ac_hi= | |
15749 | fi | |
ac1cb8d3 | 15750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15751 | fi |
ac1cb8d3 | 15752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15753 | # Binary search between lo and hi bounds. |
15754 | while test "x$ac_lo" != "x$ac_hi"; do | |
15755 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15756 | cat >conftest.$ac_ext <<_ACEOF | |
15757 | /* confdefs.h. */ | |
15758 | _ACEOF | |
15759 | cat confdefs.h >>conftest.$ac_ext | |
15760 | cat >>conftest.$ac_ext <<_ACEOF | |
15761 | /* end confdefs.h. */ | |
15762 | $ac_includes_default | |
15763 | int | |
15764 | main () | |
15765 | { | |
15766 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15767 | test_array [0] = 0 | |
15768 | ||
15769 | ; | |
15770 | return 0; | |
15771 | } | |
15772 | _ACEOF | |
15773 | rm -f conftest.$ac_objext | |
15774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15775 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15776 | ac_status=$? |
ac1cb8d3 VS |
15777 | grep -v '^ *+' conftest.er1 >conftest.err |
15778 | rm -f conftest.er1 | |
15779 | cat conftest.err >&5 | |
a848cd7e SC |
15780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15781 | (exit $ac_status); } && | |
9dd0f6c2 | 15782 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15784 | (eval $ac_try) 2>&5 | |
15785 | ac_status=$? | |
15786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15787 | (exit $ac_status); }; } && | |
15788 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15790 | (eval $ac_try) 2>&5 | |
15791 | ac_status=$? | |
15792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15793 | (exit $ac_status); }; }; then | |
15794 | ac_hi=$ac_mid | |
15795 | else | |
15796 | echo "$as_me: failed program was:" >&5 | |
15797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15798 | ||
15799 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15800 | fi | |
ac1cb8d3 | 15801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15802 | done |
15803 | case $ac_lo in | |
15804 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
15805 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15806 | See \`config.log' for more details." >&5 | |
15807 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15808 | See \`config.log' for more details." >&2;} | |
15809 | { (exit 1); exit 1; }; } ;; | |
15810 | esac | |
15811 | else | |
15812 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
15813 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15814 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15815 | { (exit 1); exit 1; }; } |
15816 | else | |
15817 | cat >conftest.$ac_ext <<_ACEOF | |
15818 | /* confdefs.h. */ | |
15819 | _ACEOF | |
15820 | cat confdefs.h >>conftest.$ac_ext | |
15821 | cat >>conftest.$ac_ext <<_ACEOF | |
15822 | /* end confdefs.h. */ | |
15823 | $ac_includes_default | |
15824 | long longval () { return (long) (sizeof (char)); } | |
15825 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
15826 | #include <stdio.h> | |
15827 | #include <stdlib.h> | |
15828 | int | |
15829 | main () | |
15830 | { | |
15831 | ||
15832 | FILE *f = fopen ("conftest.val", "w"); | |
15833 | if (! f) | |
15834 | exit (1); | |
15835 | if (((long) (sizeof (char))) < 0) | |
15836 | { | |
15837 | long i = longval (); | |
15838 | if (i != ((long) (sizeof (char)))) | |
15839 | exit (1); | |
15840 | fprintf (f, "%ld\n", i); | |
15841 | } | |
15842 | else | |
15843 | { | |
15844 | unsigned long i = ulongval (); | |
15845 | if (i != ((long) (sizeof (char)))) | |
15846 | exit (1); | |
15847 | fprintf (f, "%lu\n", i); | |
15848 | } | |
15849 | exit (ferror (f) || fclose (f) != 0); | |
15850 | ||
15851 | ; | |
15852 | return 0; | |
15853 | } | |
15854 | _ACEOF | |
15855 | rm -f conftest$ac_exeext | |
15856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15857 | (eval $ac_link) 2>&5 | |
15858 | ac_status=$? | |
15859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15860 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15862 | (eval $ac_try) 2>&5 | |
15863 | ac_status=$? | |
15864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15865 | (exit $ac_status); }; }; then | |
15866 | ac_cv_sizeof_char=`cat conftest.val` | |
15867 | else | |
15868 | echo "$as_me: program exited with status $ac_status" >&5 | |
15869 | echo "$as_me: failed program was:" >&5 | |
15870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15871 | ||
15872 | ( exit $ac_status ) | |
15873 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15874 | See \`config.log' for more details." >&5 | |
15875 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15876 | See \`config.log' for more details." >&2;} | |
15877 | { (exit 1); exit 1; }; } | |
15878 | fi | |
ac1cb8d3 | 15879 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15880 | fi |
15881 | fi | |
15882 | rm -f conftest.val | |
15883 | else | |
15884 | ac_cv_sizeof_char=0 | |
15885 | fi | |
15886 | fi | |
15887 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
15888 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
15889 | cat >>confdefs.h <<_ACEOF | |
15890 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
15891 | _ACEOF | |
15892 | ||
15893 | ||
15894 | echo "$as_me:$LINENO: checking for short" >&5 | |
15895 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
15896 | if test "${ac_cv_type_short+set}" = set; then | |
15897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15898 | else | |
15899 | cat >conftest.$ac_ext <<_ACEOF | |
15900 | /* confdefs.h. */ | |
15901 | _ACEOF | |
15902 | cat confdefs.h >>conftest.$ac_ext | |
15903 | cat >>conftest.$ac_ext <<_ACEOF | |
15904 | /* end confdefs.h. */ | |
15905 | $ac_includes_default | |
15906 | int | |
15907 | main () | |
15908 | { | |
15909 | if ((short *) 0) | |
15910 | return 0; | |
15911 | if (sizeof (short)) | |
15912 | return 0; | |
15913 | ; | |
15914 | return 0; | |
15915 | } | |
15916 | _ACEOF | |
15917 | rm -f conftest.$ac_objext | |
15918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15919 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15920 | ac_status=$? |
ac1cb8d3 VS |
15921 | grep -v '^ *+' conftest.er1 >conftest.err |
15922 | rm -f conftest.er1 | |
15923 | cat conftest.err >&5 | |
a848cd7e SC |
15924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15925 | (exit $ac_status); } && | |
9dd0f6c2 | 15926 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15928 | (eval $ac_try) 2>&5 | |
15929 | ac_status=$? | |
15930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15931 | (exit $ac_status); }; } && | |
15932 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15934 | (eval $ac_try) 2>&5 | |
15935 | ac_status=$? | |
15936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15937 | (exit $ac_status); }; }; then | |
15938 | ac_cv_type_short=yes | |
15939 | else | |
15940 | echo "$as_me: failed program was:" >&5 | |
15941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15942 | ||
15943 | ac_cv_type_short=no | |
15944 | fi | |
ac1cb8d3 | 15945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15946 | fi |
15947 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
15948 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
15949 | ||
15950 | echo "$as_me:$LINENO: checking size of short" >&5 | |
15951 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
15952 | if test "${ac_cv_sizeof_short+set}" = set; then | |
15953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15954 | else | |
15955 | if test "$ac_cv_type_short" = yes; then | |
15956 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15957 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15958 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15959 | # This bug is HP SR number 8606223364. | |
15960 | if test "$cross_compiling" = yes; then | |
15961 | # Depending upon the size, compute the lo and hi bounds. | |
15962 | cat >conftest.$ac_ext <<_ACEOF | |
15963 | /* confdefs.h. */ | |
15964 | _ACEOF | |
15965 | cat confdefs.h >>conftest.$ac_ext | |
15966 | cat >>conftest.$ac_ext <<_ACEOF | |
15967 | /* end confdefs.h. */ | |
15968 | $ac_includes_default | |
15969 | int | |
15970 | main () | |
15971 | { | |
15972 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
15973 | test_array [0] = 0 | |
15974 | ||
15975 | ; | |
15976 | return 0; | |
15977 | } | |
15978 | _ACEOF | |
15979 | rm -f conftest.$ac_objext | |
15980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15982 | ac_status=$? |
ac1cb8d3 VS |
15983 | grep -v '^ *+' conftest.er1 >conftest.err |
15984 | rm -f conftest.er1 | |
15985 | cat conftest.err >&5 | |
a848cd7e SC |
15986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15987 | (exit $ac_status); } && | |
9dd0f6c2 | 15988 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15990 | (eval $ac_try) 2>&5 | |
15991 | ac_status=$? | |
15992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15993 | (exit $ac_status); }; } && | |
15994 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15996 | (eval $ac_try) 2>&5 | |
15997 | ac_status=$? | |
15998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15999 | (exit $ac_status); }; }; then | |
16000 | ac_lo=0 ac_mid=0 | |
16001 | while :; do | |
16002 | cat >conftest.$ac_ext <<_ACEOF | |
16003 | /* confdefs.h. */ | |
16004 | _ACEOF | |
16005 | cat confdefs.h >>conftest.$ac_ext | |
16006 | cat >>conftest.$ac_ext <<_ACEOF | |
16007 | /* end confdefs.h. */ | |
16008 | $ac_includes_default | |
16009 | int | |
16010 | main () | |
16011 | { | |
16012 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16013 | test_array [0] = 0 | |
16014 | ||
16015 | ; | |
16016 | return 0; | |
16017 | } | |
16018 | _ACEOF | |
16019 | rm -f conftest.$ac_objext | |
16020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16021 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16022 | ac_status=$? |
ac1cb8d3 VS |
16023 | grep -v '^ *+' conftest.er1 >conftest.err |
16024 | rm -f conftest.er1 | |
16025 | cat conftest.err >&5 | |
a848cd7e SC |
16026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16027 | (exit $ac_status); } && | |
9dd0f6c2 | 16028 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16030 | (eval $ac_try) 2>&5 | |
16031 | ac_status=$? | |
16032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16033 | (exit $ac_status); }; } && | |
16034 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16036 | (eval $ac_try) 2>&5 | |
16037 | ac_status=$? | |
16038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16039 | (exit $ac_status); }; }; then | |
16040 | ac_hi=$ac_mid; break | |
16041 | else | |
16042 | echo "$as_me: failed program was:" >&5 | |
16043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16044 | ||
16045 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16046 | if test $ac_lo -le $ac_mid; then |
16047 | ac_lo= ac_hi= | |
16048 | break | |
16049 | fi | |
16050 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16051 | fi |
ac1cb8d3 | 16052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16053 | done |
16054 | else | |
16055 | echo "$as_me: failed program was:" >&5 | |
16056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16057 | ||
16058 | cat >conftest.$ac_ext <<_ACEOF | |
16059 | /* confdefs.h. */ | |
16060 | _ACEOF | |
16061 | cat confdefs.h >>conftest.$ac_ext | |
16062 | cat >>conftest.$ac_ext <<_ACEOF | |
16063 | /* end confdefs.h. */ | |
16064 | $ac_includes_default | |
16065 | int | |
16066 | main () | |
16067 | { | |
16068 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
16069 | test_array [0] = 0 | |
16070 | ||
16071 | ; | |
16072 | return 0; | |
16073 | } | |
16074 | _ACEOF | |
16075 | rm -f conftest.$ac_objext | |
16076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16077 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16078 | ac_status=$? |
ac1cb8d3 VS |
16079 | grep -v '^ *+' conftest.er1 >conftest.err |
16080 | rm -f conftest.er1 | |
16081 | cat conftest.err >&5 | |
a848cd7e SC |
16082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16083 | (exit $ac_status); } && | |
9dd0f6c2 | 16084 | { ac_try='test -z "$ac_c_werror_flag" || 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_hi=-1 ac_mid=-1 | |
16097 | while :; do | |
16098 | cat >conftest.$ac_ext <<_ACEOF | |
16099 | /* confdefs.h. */ | |
16100 | _ACEOF | |
16101 | cat confdefs.h >>conftest.$ac_ext | |
16102 | cat >>conftest.$ac_ext <<_ACEOF | |
16103 | /* end confdefs.h. */ | |
16104 | $ac_includes_default | |
16105 | int | |
16106 | main () | |
16107 | { | |
16108 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
16109 | test_array [0] = 0 | |
16110 | ||
16111 | ; | |
16112 | return 0; | |
16113 | } | |
16114 | _ACEOF | |
16115 | rm -f conftest.$ac_objext | |
16116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16117 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16118 | ac_status=$? |
ac1cb8d3 VS |
16119 | grep -v '^ *+' conftest.er1 >conftest.err |
16120 | rm -f conftest.er1 | |
16121 | cat conftest.err >&5 | |
a848cd7e SC |
16122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16123 | (exit $ac_status); } && | |
9dd0f6c2 | 16124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16126 | (eval $ac_try) 2>&5 | |
16127 | ac_status=$? | |
16128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16129 | (exit $ac_status); }; } && | |
16130 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16132 | (eval $ac_try) 2>&5 | |
16133 | ac_status=$? | |
16134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16135 | (exit $ac_status); }; }; then | |
16136 | ac_lo=$ac_mid; break | |
16137 | else | |
16138 | echo "$as_me: failed program was:" >&5 | |
16139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16140 | ||
16141 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16142 | if test $ac_mid -le $ac_hi; then |
16143 | ac_lo= ac_hi= | |
16144 | break | |
16145 | fi | |
16146 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16147 | fi |
ac1cb8d3 | 16148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16149 | done |
16150 | else | |
16151 | echo "$as_me: failed program was:" >&5 | |
16152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16153 | ||
16154 | ac_lo= ac_hi= | |
16155 | fi | |
ac1cb8d3 | 16156 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16157 | fi |
ac1cb8d3 | 16158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16159 | # Binary search between lo and hi bounds. |
16160 | while test "x$ac_lo" != "x$ac_hi"; do | |
16161 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16162 | cat >conftest.$ac_ext <<_ACEOF | |
16163 | /* confdefs.h. */ | |
16164 | _ACEOF | |
16165 | cat confdefs.h >>conftest.$ac_ext | |
16166 | cat >>conftest.$ac_ext <<_ACEOF | |
16167 | /* end confdefs.h. */ | |
16168 | $ac_includes_default | |
16169 | int | |
16170 | main () | |
16171 | { | |
16172 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16173 | test_array [0] = 0 | |
16174 | ||
16175 | ; | |
16176 | return 0; | |
16177 | } | |
16178 | _ACEOF | |
16179 | rm -f conftest.$ac_objext | |
16180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16181 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16182 | ac_status=$? |
ac1cb8d3 VS |
16183 | grep -v '^ *+' conftest.er1 >conftest.err |
16184 | rm -f conftest.er1 | |
16185 | cat conftest.err >&5 | |
a848cd7e SC |
16186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16187 | (exit $ac_status); } && | |
9dd0f6c2 | 16188 | { ac_try='test -z "$ac_c_werror_flag" || 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 | |
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` | |
16206 | fi | |
ac1cb8d3 | 16207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16208 | done |
16209 | case $ac_lo in | |
16210 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
16211 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16212 | See \`config.log' for more details." >&5 | |
16213 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16214 | See \`config.log' for more details." >&2;} | |
16215 | { (exit 1); exit 1; }; } ;; | |
16216 | esac | |
16217 | else | |
16218 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
16219 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16220 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16221 | { (exit 1); exit 1; }; } |
16222 | else | |
16223 | cat >conftest.$ac_ext <<_ACEOF | |
16224 | /* confdefs.h. */ | |
16225 | _ACEOF | |
16226 | cat confdefs.h >>conftest.$ac_ext | |
16227 | cat >>conftest.$ac_ext <<_ACEOF | |
16228 | /* end confdefs.h. */ | |
16229 | $ac_includes_default | |
16230 | long longval () { return (long) (sizeof (short)); } | |
16231 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
16232 | #include <stdio.h> | |
16233 | #include <stdlib.h> | |
16234 | int | |
16235 | main () | |
16236 | { | |
16237 | ||
16238 | FILE *f = fopen ("conftest.val", "w"); | |
16239 | if (! f) | |
16240 | exit (1); | |
16241 | if (((long) (sizeof (short))) < 0) | |
16242 | { | |
16243 | long i = longval (); | |
16244 | if (i != ((long) (sizeof (short)))) | |
16245 | exit (1); | |
16246 | fprintf (f, "%ld\n", i); | |
16247 | } | |
16248 | else | |
16249 | { | |
16250 | unsigned long i = ulongval (); | |
16251 | if (i != ((long) (sizeof (short)))) | |
16252 | exit (1); | |
16253 | fprintf (f, "%lu\n", i); | |
16254 | } | |
16255 | exit (ferror (f) || fclose (f) != 0); | |
16256 | ||
16257 | ; | |
16258 | return 0; | |
16259 | } | |
16260 | _ACEOF | |
16261 | rm -f conftest$ac_exeext | |
16262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16263 | (eval $ac_link) 2>&5 | |
16264 | ac_status=$? | |
16265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16266 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16268 | (eval $ac_try) 2>&5 | |
16269 | ac_status=$? | |
16270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16271 | (exit $ac_status); }; }; then | |
16272 | ac_cv_sizeof_short=`cat conftest.val` | |
16273 | else | |
16274 | echo "$as_me: program exited with status $ac_status" >&5 | |
16275 | echo "$as_me: failed program was:" >&5 | |
16276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16277 | ||
16278 | ( exit $ac_status ) | |
16279 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16280 | See \`config.log' for more details." >&5 | |
16281 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16282 | See \`config.log' for more details." >&2;} | |
16283 | { (exit 1); exit 1; }; } | |
16284 | fi | |
ac1cb8d3 | 16285 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16286 | fi |
16287 | fi | |
16288 | rm -f conftest.val | |
16289 | else | |
16290 | ac_cv_sizeof_short=0 | |
16291 | fi | |
16292 | fi | |
16293 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
16294 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
16295 | cat >>confdefs.h <<_ACEOF | |
16296 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16297 | _ACEOF | |
16298 | ||
16299 | ||
16300 | echo "$as_me:$LINENO: checking for void *" >&5 | |
16301 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
16302 | if test "${ac_cv_type_void_p+set}" = set; then | |
16303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16304 | else | |
16305 | cat >conftest.$ac_ext <<_ACEOF | |
16306 | /* confdefs.h. */ | |
16307 | _ACEOF | |
16308 | cat confdefs.h >>conftest.$ac_ext | |
16309 | cat >>conftest.$ac_ext <<_ACEOF | |
16310 | /* end confdefs.h. */ | |
16311 | $ac_includes_default | |
16312 | int | |
16313 | main () | |
16314 | { | |
16315 | if ((void * *) 0) | |
16316 | return 0; | |
16317 | if (sizeof (void *)) | |
16318 | return 0; | |
16319 | ; | |
16320 | return 0; | |
16321 | } | |
16322 | _ACEOF | |
16323 | rm -f conftest.$ac_objext | |
16324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16325 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16326 | ac_status=$? |
ac1cb8d3 VS |
16327 | grep -v '^ *+' conftest.er1 >conftest.err |
16328 | rm -f conftest.er1 | |
16329 | cat conftest.err >&5 | |
a848cd7e SC |
16330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16331 | (exit $ac_status); } && | |
9dd0f6c2 | 16332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16334 | (eval $ac_try) 2>&5 | |
16335 | ac_status=$? | |
16336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16337 | (exit $ac_status); }; } && | |
16338 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16340 | (eval $ac_try) 2>&5 | |
16341 | ac_status=$? | |
16342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16343 | (exit $ac_status); }; }; then | |
16344 | ac_cv_type_void_p=yes | |
16345 | else | |
16346 | echo "$as_me: failed program was:" >&5 | |
16347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16348 | ||
16349 | ac_cv_type_void_p=no | |
16350 | fi | |
ac1cb8d3 | 16351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16352 | fi |
16353 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
16354 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
16355 | ||
16356 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
16357 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
16358 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
16359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16360 | else | |
16361 | if test "$ac_cv_type_void_p" = yes; then | |
16362 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16363 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16364 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16365 | # This bug is HP SR number 8606223364. | |
16366 | if test "$cross_compiling" = yes; then | |
16367 | # Depending upon the size, compute the lo and hi bounds. | |
16368 | cat >conftest.$ac_ext <<_ACEOF | |
16369 | /* confdefs.h. */ | |
16370 | _ACEOF | |
16371 | cat confdefs.h >>conftest.$ac_ext | |
16372 | cat >>conftest.$ac_ext <<_ACEOF | |
16373 | /* end confdefs.h. */ | |
16374 | $ac_includes_default | |
16375 | int | |
16376 | main () | |
16377 | { | |
16378 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
16379 | test_array [0] = 0 | |
16380 | ||
16381 | ; | |
16382 | return 0; | |
16383 | } | |
16384 | _ACEOF | |
16385 | rm -f conftest.$ac_objext | |
16386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16387 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16388 | ac_status=$? |
ac1cb8d3 VS |
16389 | grep -v '^ *+' conftest.er1 >conftest.err |
16390 | rm -f conftest.er1 | |
16391 | cat conftest.err >&5 | |
a848cd7e SC |
16392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16393 | (exit $ac_status); } && | |
9dd0f6c2 | 16394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16396 | (eval $ac_try) 2>&5 | |
16397 | ac_status=$? | |
16398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16399 | (exit $ac_status); }; } && | |
16400 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16402 | (eval $ac_try) 2>&5 | |
16403 | ac_status=$? | |
16404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16405 | (exit $ac_status); }; }; then | |
16406 | ac_lo=0 ac_mid=0 | |
16407 | while :; do | |
16408 | cat >conftest.$ac_ext <<_ACEOF | |
16409 | /* confdefs.h. */ | |
16410 | _ACEOF | |
16411 | cat confdefs.h >>conftest.$ac_ext | |
16412 | cat >>conftest.$ac_ext <<_ACEOF | |
16413 | /* end confdefs.h. */ | |
16414 | $ac_includes_default | |
16415 | int | |
16416 | main () | |
16417 | { | |
16418 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16419 | test_array [0] = 0 | |
16420 | ||
16421 | ; | |
16422 | return 0; | |
16423 | } | |
16424 | _ACEOF | |
16425 | rm -f conftest.$ac_objext | |
16426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16427 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16428 | ac_status=$? |
ac1cb8d3 VS |
16429 | grep -v '^ *+' conftest.er1 >conftest.err |
16430 | rm -f conftest.er1 | |
16431 | cat conftest.err >&5 | |
a848cd7e SC |
16432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16433 | (exit $ac_status); } && | |
9dd0f6c2 | 16434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16436 | (eval $ac_try) 2>&5 | |
16437 | ac_status=$? | |
16438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16439 | (exit $ac_status); }; } && | |
16440 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16442 | (eval $ac_try) 2>&5 | |
16443 | ac_status=$? | |
16444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16445 | (exit $ac_status); }; }; then | |
16446 | ac_hi=$ac_mid; break | |
16447 | else | |
16448 | echo "$as_me: failed program was:" >&5 | |
16449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16450 | ||
16451 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16452 | if test $ac_lo -le $ac_mid; then |
16453 | ac_lo= ac_hi= | |
16454 | break | |
16455 | fi | |
16456 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16457 | fi |
ac1cb8d3 | 16458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16459 | done |
16460 | else | |
16461 | echo "$as_me: failed program was:" >&5 | |
16462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16463 | ||
16464 | cat >conftest.$ac_ext <<_ACEOF | |
16465 | /* confdefs.h. */ | |
16466 | _ACEOF | |
16467 | cat confdefs.h >>conftest.$ac_ext | |
16468 | cat >>conftest.$ac_ext <<_ACEOF | |
16469 | /* end confdefs.h. */ | |
16470 | $ac_includes_default | |
16471 | int | |
16472 | main () | |
16473 | { | |
16474 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
16475 | test_array [0] = 0 | |
16476 | ||
16477 | ; | |
16478 | return 0; | |
16479 | } | |
16480 | _ACEOF | |
16481 | rm -f conftest.$ac_objext | |
16482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16483 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16484 | ac_status=$? |
ac1cb8d3 VS |
16485 | grep -v '^ *+' conftest.er1 >conftest.err |
16486 | rm -f conftest.er1 | |
16487 | cat conftest.err >&5 | |
a848cd7e SC |
16488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16489 | (exit $ac_status); } && | |
9dd0f6c2 | 16490 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16492 | (eval $ac_try) 2>&5 | |
16493 | ac_status=$? | |
16494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16495 | (exit $ac_status); }; } && | |
16496 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16498 | (eval $ac_try) 2>&5 | |
16499 | ac_status=$? | |
16500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16501 | (exit $ac_status); }; }; then | |
16502 | ac_hi=-1 ac_mid=-1 | |
16503 | while :; do | |
16504 | cat >conftest.$ac_ext <<_ACEOF | |
16505 | /* confdefs.h. */ | |
16506 | _ACEOF | |
16507 | cat confdefs.h >>conftest.$ac_ext | |
16508 | cat >>conftest.$ac_ext <<_ACEOF | |
16509 | /* end confdefs.h. */ | |
16510 | $ac_includes_default | |
16511 | int | |
16512 | main () | |
16513 | { | |
16514 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
16515 | test_array [0] = 0 | |
16516 | ||
16517 | ; | |
16518 | return 0; | |
16519 | } | |
16520 | _ACEOF | |
16521 | rm -f conftest.$ac_objext | |
16522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16523 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16524 | ac_status=$? |
ac1cb8d3 VS |
16525 | grep -v '^ *+' conftest.er1 >conftest.err |
16526 | rm -f conftest.er1 | |
16527 | cat conftest.err >&5 | |
a848cd7e SC |
16528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16529 | (exit $ac_status); } && | |
9dd0f6c2 | 16530 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16532 | (eval $ac_try) 2>&5 | |
16533 | ac_status=$? | |
16534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16535 | (exit $ac_status); }; } && | |
16536 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16538 | (eval $ac_try) 2>&5 | |
16539 | ac_status=$? | |
16540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16541 | (exit $ac_status); }; }; then | |
16542 | ac_lo=$ac_mid; break | |
16543 | else | |
16544 | echo "$as_me: failed program was:" >&5 | |
16545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16546 | ||
16547 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16548 | if test $ac_mid -le $ac_hi; then |
16549 | ac_lo= ac_hi= | |
16550 | break | |
16551 | fi | |
16552 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16553 | fi |
ac1cb8d3 | 16554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16555 | done |
16556 | else | |
16557 | echo "$as_me: failed program was:" >&5 | |
16558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16559 | ||
16560 | ac_lo= ac_hi= | |
16561 | fi | |
ac1cb8d3 | 16562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16563 | fi |
ac1cb8d3 | 16564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16565 | # Binary search between lo and hi bounds. |
16566 | while test "x$ac_lo" != "x$ac_hi"; do | |
16567 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16568 | cat >conftest.$ac_ext <<_ACEOF | |
16569 | /* confdefs.h. */ | |
16570 | _ACEOF | |
16571 | cat confdefs.h >>conftest.$ac_ext | |
16572 | cat >>conftest.$ac_ext <<_ACEOF | |
16573 | /* end confdefs.h. */ | |
16574 | $ac_includes_default | |
16575 | int | |
16576 | main () | |
16577 | { | |
16578 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16579 | test_array [0] = 0 | |
16580 | ||
16581 | ; | |
16582 | return 0; | |
16583 | } | |
16584 | _ACEOF | |
16585 | rm -f conftest.$ac_objext | |
16586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16587 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16588 | ac_status=$? |
ac1cb8d3 VS |
16589 | grep -v '^ *+' conftest.er1 >conftest.err |
16590 | rm -f conftest.er1 | |
16591 | cat conftest.err >&5 | |
a848cd7e SC |
16592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16593 | (exit $ac_status); } && | |
9dd0f6c2 | 16594 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16596 | (eval $ac_try) 2>&5 | |
16597 | ac_status=$? | |
16598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16599 | (exit $ac_status); }; } && | |
16600 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16602 | (eval $ac_try) 2>&5 | |
16603 | ac_status=$? | |
16604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16605 | (exit $ac_status); }; }; then | |
16606 | ac_hi=$ac_mid | |
16607 | else | |
16608 | echo "$as_me: failed program was:" >&5 | |
16609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16610 | ||
16611 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16612 | fi | |
ac1cb8d3 | 16613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16614 | done |
16615 | case $ac_lo in | |
16616 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
16617 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16618 | See \`config.log' for more details." >&5 | |
16619 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16620 | See \`config.log' for more details." >&2;} | |
16621 | { (exit 1); exit 1; }; } ;; | |
16622 | esac | |
16623 | else | |
16624 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
16625 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16626 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16627 | { (exit 1); exit 1; }; } |
16628 | else | |
16629 | cat >conftest.$ac_ext <<_ACEOF | |
16630 | /* confdefs.h. */ | |
16631 | _ACEOF | |
16632 | cat confdefs.h >>conftest.$ac_ext | |
16633 | cat >>conftest.$ac_ext <<_ACEOF | |
16634 | /* end confdefs.h. */ | |
16635 | $ac_includes_default | |
16636 | long longval () { return (long) (sizeof (void *)); } | |
16637 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
16638 | #include <stdio.h> | |
16639 | #include <stdlib.h> | |
16640 | int | |
16641 | main () | |
16642 | { | |
16643 | ||
16644 | FILE *f = fopen ("conftest.val", "w"); | |
16645 | if (! f) | |
16646 | exit (1); | |
16647 | if (((long) (sizeof (void *))) < 0) | |
16648 | { | |
16649 | long i = longval (); | |
16650 | if (i != ((long) (sizeof (void *)))) | |
16651 | exit (1); | |
16652 | fprintf (f, "%ld\n", i); | |
16653 | } | |
16654 | else | |
16655 | { | |
16656 | unsigned long i = ulongval (); | |
16657 | if (i != ((long) (sizeof (void *)))) | |
16658 | exit (1); | |
16659 | fprintf (f, "%lu\n", i); | |
16660 | } | |
16661 | exit (ferror (f) || fclose (f) != 0); | |
16662 | ||
16663 | ; | |
16664 | return 0; | |
16665 | } | |
16666 | _ACEOF | |
16667 | rm -f conftest$ac_exeext | |
16668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16669 | (eval $ac_link) 2>&5 | |
16670 | ac_status=$? | |
16671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16672 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16674 | (eval $ac_try) 2>&5 | |
16675 | ac_status=$? | |
16676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16677 | (exit $ac_status); }; }; then | |
16678 | ac_cv_sizeof_void_p=`cat conftest.val` | |
16679 | else | |
16680 | echo "$as_me: program exited with status $ac_status" >&5 | |
16681 | echo "$as_me: failed program was:" >&5 | |
16682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16683 | ||
16684 | ( exit $ac_status ) | |
16685 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16686 | See \`config.log' for more details." >&5 | |
16687 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16688 | See \`config.log' for more details." >&2;} | |
16689 | { (exit 1); exit 1; }; } | |
16690 | fi | |
ac1cb8d3 | 16691 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16692 | fi |
16693 | fi | |
16694 | rm -f conftest.val | |
16695 | else | |
16696 | ac_cv_sizeof_void_p=0 | |
16697 | fi | |
16698 | fi | |
16699 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
16700 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
16701 | cat >>confdefs.h <<_ACEOF | |
16702 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16703 | _ACEOF | |
16704 | ||
16705 | ||
16706 | echo "$as_me:$LINENO: checking for int" >&5 | |
16707 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
16708 | if test "${ac_cv_type_int+set}" = set; then | |
16709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16710 | else | |
16711 | cat >conftest.$ac_ext <<_ACEOF | |
16712 | /* confdefs.h. */ | |
16713 | _ACEOF | |
16714 | cat confdefs.h >>conftest.$ac_ext | |
16715 | cat >>conftest.$ac_ext <<_ACEOF | |
16716 | /* end confdefs.h. */ | |
16717 | $ac_includes_default | |
16718 | int | |
16719 | main () | |
16720 | { | |
16721 | if ((int *) 0) | |
16722 | return 0; | |
16723 | if (sizeof (int)) | |
16724 | return 0; | |
16725 | ; | |
16726 | return 0; | |
16727 | } | |
16728 | _ACEOF | |
16729 | rm -f conftest.$ac_objext | |
16730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16731 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16732 | ac_status=$? |
ac1cb8d3 VS |
16733 | grep -v '^ *+' conftest.er1 >conftest.err |
16734 | rm -f conftest.er1 | |
16735 | cat conftest.err >&5 | |
a848cd7e SC |
16736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16737 | (exit $ac_status); } && | |
9dd0f6c2 | 16738 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16740 | (eval $ac_try) 2>&5 | |
16741 | ac_status=$? | |
16742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16743 | (exit $ac_status); }; } && | |
16744 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16746 | (eval $ac_try) 2>&5 | |
16747 | ac_status=$? | |
16748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16749 | (exit $ac_status); }; }; then | |
16750 | ac_cv_type_int=yes | |
16751 | else | |
16752 | echo "$as_me: failed program was:" >&5 | |
16753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16754 | ||
16755 | ac_cv_type_int=no | |
16756 | fi | |
ac1cb8d3 | 16757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16758 | fi |
16759 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
16760 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
16761 | ||
16762 | echo "$as_me:$LINENO: checking size of int" >&5 | |
16763 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
16764 | if test "${ac_cv_sizeof_int+set}" = set; then | |
16765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16766 | else | |
16767 | if test "$ac_cv_type_int" = yes; then | |
16768 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16769 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16770 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16771 | # This bug is HP SR number 8606223364. | |
16772 | if test "$cross_compiling" = yes; then | |
16773 | # Depending upon the size, compute the lo and hi bounds. | |
16774 | cat >conftest.$ac_ext <<_ACEOF | |
16775 | /* confdefs.h. */ | |
16776 | _ACEOF | |
16777 | cat confdefs.h >>conftest.$ac_ext | |
16778 | cat >>conftest.$ac_ext <<_ACEOF | |
16779 | /* end confdefs.h. */ | |
16780 | $ac_includes_default | |
16781 | int | |
16782 | main () | |
16783 | { | |
16784 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
16785 | test_array [0] = 0 | |
16786 | ||
16787 | ; | |
16788 | return 0; | |
16789 | } | |
16790 | _ACEOF | |
16791 | rm -f conftest.$ac_objext | |
16792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16793 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16794 | ac_status=$? |
ac1cb8d3 VS |
16795 | grep -v '^ *+' conftest.er1 >conftest.err |
16796 | rm -f conftest.er1 | |
16797 | cat conftest.err >&5 | |
a848cd7e SC |
16798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16799 | (exit $ac_status); } && | |
9dd0f6c2 | 16800 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16802 | (eval $ac_try) 2>&5 | |
16803 | ac_status=$? | |
16804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16805 | (exit $ac_status); }; } && | |
16806 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16808 | (eval $ac_try) 2>&5 | |
16809 | ac_status=$? | |
16810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16811 | (exit $ac_status); }; }; then | |
16812 | ac_lo=0 ac_mid=0 | |
16813 | while :; do | |
16814 | cat >conftest.$ac_ext <<_ACEOF | |
16815 | /* confdefs.h. */ | |
16816 | _ACEOF | |
16817 | cat confdefs.h >>conftest.$ac_ext | |
16818 | cat >>conftest.$ac_ext <<_ACEOF | |
16819 | /* end confdefs.h. */ | |
16820 | $ac_includes_default | |
16821 | int | |
16822 | main () | |
16823 | { | |
16824 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16825 | test_array [0] = 0 | |
16826 | ||
16827 | ; | |
16828 | return 0; | |
16829 | } | |
16830 | _ACEOF | |
16831 | rm -f conftest.$ac_objext | |
16832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16833 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16834 | ac_status=$? |
ac1cb8d3 VS |
16835 | grep -v '^ *+' conftest.er1 >conftest.err |
16836 | rm -f conftest.er1 | |
16837 | cat conftest.err >&5 | |
a848cd7e SC |
16838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16839 | (exit $ac_status); } && | |
9dd0f6c2 | 16840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16842 | (eval $ac_try) 2>&5 | |
16843 | ac_status=$? | |
16844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16845 | (exit $ac_status); }; } && | |
16846 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16848 | (eval $ac_try) 2>&5 | |
16849 | ac_status=$? | |
16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16851 | (exit $ac_status); }; }; then | |
16852 | ac_hi=$ac_mid; break | |
16853 | else | |
16854 | echo "$as_me: failed program was:" >&5 | |
16855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16856 | ||
16857 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16858 | if test $ac_lo -le $ac_mid; then |
16859 | ac_lo= ac_hi= | |
16860 | break | |
16861 | fi | |
16862 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16863 | fi |
ac1cb8d3 | 16864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16865 | done |
16866 | else | |
16867 | echo "$as_me: failed program was:" >&5 | |
16868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16869 | ||
16870 | cat >conftest.$ac_ext <<_ACEOF | |
16871 | /* confdefs.h. */ | |
16872 | _ACEOF | |
16873 | cat confdefs.h >>conftest.$ac_ext | |
16874 | cat >>conftest.$ac_ext <<_ACEOF | |
16875 | /* end confdefs.h. */ | |
16876 | $ac_includes_default | |
16877 | int | |
16878 | main () | |
16879 | { | |
16880 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
16881 | test_array [0] = 0 | |
16882 | ||
16883 | ; | |
16884 | return 0; | |
16885 | } | |
16886 | _ACEOF | |
16887 | rm -f conftest.$ac_objext | |
16888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16889 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16890 | ac_status=$? |
ac1cb8d3 VS |
16891 | grep -v '^ *+' conftest.er1 >conftest.err |
16892 | rm -f conftest.er1 | |
16893 | cat conftest.err >&5 | |
a848cd7e SC |
16894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16895 | (exit $ac_status); } && | |
9dd0f6c2 | 16896 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16898 | (eval $ac_try) 2>&5 | |
16899 | ac_status=$? | |
16900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16901 | (exit $ac_status); }; } && | |
16902 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16904 | (eval $ac_try) 2>&5 | |
16905 | ac_status=$? | |
16906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16907 | (exit $ac_status); }; }; then | |
16908 | ac_hi=-1 ac_mid=-1 | |
16909 | while :; do | |
16910 | cat >conftest.$ac_ext <<_ACEOF | |
16911 | /* confdefs.h. */ | |
16912 | _ACEOF | |
16913 | cat confdefs.h >>conftest.$ac_ext | |
16914 | cat >>conftest.$ac_ext <<_ACEOF | |
16915 | /* end confdefs.h. */ | |
16916 | $ac_includes_default | |
16917 | int | |
16918 | main () | |
16919 | { | |
16920 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
16921 | test_array [0] = 0 | |
16922 | ||
16923 | ; | |
16924 | return 0; | |
16925 | } | |
16926 | _ACEOF | |
16927 | rm -f conftest.$ac_objext | |
16928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16929 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16930 | ac_status=$? |
ac1cb8d3 VS |
16931 | grep -v '^ *+' conftest.er1 >conftest.err |
16932 | rm -f conftest.er1 | |
16933 | cat conftest.err >&5 | |
a848cd7e SC |
16934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16935 | (exit $ac_status); } && | |
9dd0f6c2 | 16936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16938 | (eval $ac_try) 2>&5 | |
16939 | ac_status=$? | |
16940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16941 | (exit $ac_status); }; } && | |
16942 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16944 | (eval $ac_try) 2>&5 | |
16945 | ac_status=$? | |
16946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16947 | (exit $ac_status); }; }; then | |
16948 | ac_lo=$ac_mid; break | |
16949 | else | |
16950 | echo "$as_me: failed program was:" >&5 | |
16951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16952 | ||
16953 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16954 | if test $ac_mid -le $ac_hi; then |
16955 | ac_lo= ac_hi= | |
16956 | break | |
16957 | fi | |
16958 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16959 | fi |
ac1cb8d3 | 16960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16961 | done |
16962 | else | |
16963 | echo "$as_me: failed program was:" >&5 | |
16964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16965 | ||
16966 | ac_lo= ac_hi= | |
16967 | fi | |
ac1cb8d3 | 16968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16969 | fi |
ac1cb8d3 | 16970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16971 | # Binary search between lo and hi bounds. |
16972 | while test "x$ac_lo" != "x$ac_hi"; do | |
16973 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16974 | cat >conftest.$ac_ext <<_ACEOF | |
16975 | /* confdefs.h. */ | |
16976 | _ACEOF | |
16977 | cat confdefs.h >>conftest.$ac_ext | |
16978 | cat >>conftest.$ac_ext <<_ACEOF | |
16979 | /* end confdefs.h. */ | |
16980 | $ac_includes_default | |
16981 | int | |
16982 | main () | |
16983 | { | |
16984 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16985 | test_array [0] = 0 | |
16986 | ||
16987 | ; | |
16988 | return 0; | |
16989 | } | |
16990 | _ACEOF | |
16991 | rm -f conftest.$ac_objext | |
16992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16993 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16994 | ac_status=$? |
ac1cb8d3 VS |
16995 | grep -v '^ *+' conftest.er1 >conftest.err |
16996 | rm -f conftest.er1 | |
16997 | cat conftest.err >&5 | |
a848cd7e SC |
16998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16999 | (exit $ac_status); } && | |
9dd0f6c2 | 17000 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17002 | (eval $ac_try) 2>&5 | |
17003 | ac_status=$? | |
17004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17005 | (exit $ac_status); }; } && | |
17006 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17008 | (eval $ac_try) 2>&5 | |
17009 | ac_status=$? | |
17010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17011 | (exit $ac_status); }; }; then | |
17012 | ac_hi=$ac_mid | |
17013 | else | |
17014 | echo "$as_me: failed program was:" >&5 | |
17015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17016 | ||
17017 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17018 | fi | |
ac1cb8d3 | 17019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17020 | done |
17021 | case $ac_lo in | |
17022 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
17023 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17024 | See \`config.log' for more details." >&5 | |
17025 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17026 | See \`config.log' for more details." >&2;} | |
17027 | { (exit 1); exit 1; }; } ;; | |
17028 | esac | |
17029 | else | |
17030 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
17031 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17032 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17033 | { (exit 1); exit 1; }; } |
17034 | else | |
17035 | cat >conftest.$ac_ext <<_ACEOF | |
17036 | /* confdefs.h. */ | |
17037 | _ACEOF | |
17038 | cat confdefs.h >>conftest.$ac_ext | |
17039 | cat >>conftest.$ac_ext <<_ACEOF | |
17040 | /* end confdefs.h. */ | |
17041 | $ac_includes_default | |
17042 | long longval () { return (long) (sizeof (int)); } | |
17043 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
17044 | #include <stdio.h> | |
17045 | #include <stdlib.h> | |
17046 | int | |
17047 | main () | |
17048 | { | |
17049 | ||
17050 | FILE *f = fopen ("conftest.val", "w"); | |
17051 | if (! f) | |
17052 | exit (1); | |
17053 | if (((long) (sizeof (int))) < 0) | |
17054 | { | |
17055 | long i = longval (); | |
17056 | if (i != ((long) (sizeof (int)))) | |
17057 | exit (1); | |
17058 | fprintf (f, "%ld\n", i); | |
17059 | } | |
17060 | else | |
17061 | { | |
17062 | unsigned long i = ulongval (); | |
17063 | if (i != ((long) (sizeof (int)))) | |
17064 | exit (1); | |
17065 | fprintf (f, "%lu\n", i); | |
17066 | } | |
17067 | exit (ferror (f) || fclose (f) != 0); | |
17068 | ||
17069 | ; | |
17070 | return 0; | |
17071 | } | |
17072 | _ACEOF | |
17073 | rm -f conftest$ac_exeext | |
17074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17075 | (eval $ac_link) 2>&5 | |
17076 | ac_status=$? | |
17077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17078 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17080 | (eval $ac_try) 2>&5 | |
17081 | ac_status=$? | |
17082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17083 | (exit $ac_status); }; }; then | |
17084 | ac_cv_sizeof_int=`cat conftest.val` | |
17085 | else | |
17086 | echo "$as_me: program exited with status $ac_status" >&5 | |
17087 | echo "$as_me: failed program was:" >&5 | |
17088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17089 | ||
17090 | ( exit $ac_status ) | |
17091 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17092 | See \`config.log' for more details." >&5 | |
17093 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17094 | See \`config.log' for more details." >&2;} | |
17095 | { (exit 1); exit 1; }; } | |
17096 | fi | |
ac1cb8d3 | 17097 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17098 | fi |
17099 | fi | |
17100 | rm -f conftest.val | |
17101 | else | |
17102 | ac_cv_sizeof_int=0 | |
17103 | fi | |
17104 | fi | |
17105 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
17106 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
17107 | cat >>confdefs.h <<_ACEOF | |
17108 | #define SIZEOF_INT $ac_cv_sizeof_int | |
17109 | _ACEOF | |
17110 | ||
17111 | ||
17112 | echo "$as_me:$LINENO: checking for long" >&5 | |
17113 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
17114 | if test "${ac_cv_type_long+set}" = set; then | |
17115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17116 | else | |
17117 | cat >conftest.$ac_ext <<_ACEOF | |
17118 | /* confdefs.h. */ | |
17119 | _ACEOF | |
17120 | cat confdefs.h >>conftest.$ac_ext | |
17121 | cat >>conftest.$ac_ext <<_ACEOF | |
17122 | /* end confdefs.h. */ | |
17123 | $ac_includes_default | |
17124 | int | |
17125 | main () | |
17126 | { | |
17127 | if ((long *) 0) | |
17128 | return 0; | |
17129 | if (sizeof (long)) | |
17130 | return 0; | |
17131 | ; | |
17132 | return 0; | |
17133 | } | |
17134 | _ACEOF | |
17135 | rm -f conftest.$ac_objext | |
17136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17137 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17138 | ac_status=$? |
ac1cb8d3 VS |
17139 | grep -v '^ *+' conftest.er1 >conftest.err |
17140 | rm -f conftest.er1 | |
17141 | cat conftest.err >&5 | |
a848cd7e SC |
17142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17143 | (exit $ac_status); } && | |
9dd0f6c2 | 17144 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17146 | (eval $ac_try) 2>&5 | |
17147 | ac_status=$? | |
17148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17149 | (exit $ac_status); }; } && | |
17150 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17152 | (eval $ac_try) 2>&5 | |
17153 | ac_status=$? | |
17154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17155 | (exit $ac_status); }; }; then | |
17156 | ac_cv_type_long=yes | |
17157 | else | |
17158 | echo "$as_me: failed program was:" >&5 | |
17159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17160 | ||
17161 | ac_cv_type_long=no | |
17162 | fi | |
ac1cb8d3 | 17163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17164 | fi |
17165 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
17166 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
17167 | ||
17168 | echo "$as_me:$LINENO: checking size of long" >&5 | |
17169 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
17170 | if test "${ac_cv_sizeof_long+set}" = set; then | |
17171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17172 | else | |
17173 | if test "$ac_cv_type_long" = yes; then | |
17174 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17175 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17176 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17177 | # This bug is HP SR number 8606223364. | |
17178 | if test "$cross_compiling" = yes; then | |
17179 | # Depending upon the size, compute the lo and hi bounds. | |
17180 | cat >conftest.$ac_ext <<_ACEOF | |
17181 | /* confdefs.h. */ | |
17182 | _ACEOF | |
17183 | cat confdefs.h >>conftest.$ac_ext | |
17184 | cat >>conftest.$ac_ext <<_ACEOF | |
17185 | /* end confdefs.h. */ | |
17186 | $ac_includes_default | |
17187 | int | |
17188 | main () | |
17189 | { | |
17190 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
17191 | test_array [0] = 0 | |
17192 | ||
17193 | ; | |
17194 | return 0; | |
17195 | } | |
17196 | _ACEOF | |
17197 | rm -f conftest.$ac_objext | |
17198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17199 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17200 | ac_status=$? |
ac1cb8d3 VS |
17201 | grep -v '^ *+' conftest.er1 >conftest.err |
17202 | rm -f conftest.er1 | |
17203 | cat conftest.err >&5 | |
a848cd7e SC |
17204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17205 | (exit $ac_status); } && | |
9dd0f6c2 | 17206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17208 | (eval $ac_try) 2>&5 | |
17209 | ac_status=$? | |
17210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17211 | (exit $ac_status); }; } && | |
17212 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17214 | (eval $ac_try) 2>&5 | |
17215 | ac_status=$? | |
17216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17217 | (exit $ac_status); }; }; then | |
17218 | ac_lo=0 ac_mid=0 | |
17219 | while :; do | |
17220 | cat >conftest.$ac_ext <<_ACEOF | |
17221 | /* confdefs.h. */ | |
17222 | _ACEOF | |
17223 | cat confdefs.h >>conftest.$ac_ext | |
17224 | cat >>conftest.$ac_ext <<_ACEOF | |
17225 | /* end confdefs.h. */ | |
17226 | $ac_includes_default | |
17227 | int | |
17228 | main () | |
17229 | { | |
17230 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17231 | test_array [0] = 0 | |
17232 | ||
17233 | ; | |
17234 | return 0; | |
17235 | } | |
17236 | _ACEOF | |
17237 | rm -f conftest.$ac_objext | |
17238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17239 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17240 | ac_status=$? |
ac1cb8d3 VS |
17241 | grep -v '^ *+' conftest.er1 >conftest.err |
17242 | rm -f conftest.er1 | |
17243 | cat conftest.err >&5 | |
a848cd7e SC |
17244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17245 | (exit $ac_status); } && | |
9dd0f6c2 | 17246 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17248 | (eval $ac_try) 2>&5 | |
17249 | ac_status=$? | |
17250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17251 | (exit $ac_status); }; } && | |
17252 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17254 | (eval $ac_try) 2>&5 | |
17255 | ac_status=$? | |
17256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17257 | (exit $ac_status); }; }; then | |
17258 | ac_hi=$ac_mid; break | |
17259 | else | |
17260 | echo "$as_me: failed program was:" >&5 | |
17261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17262 | ||
17263 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17264 | if test $ac_lo -le $ac_mid; then |
17265 | ac_lo= ac_hi= | |
17266 | break | |
17267 | fi | |
17268 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17269 | fi |
ac1cb8d3 | 17270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17271 | done |
17272 | else | |
17273 | echo "$as_me: failed program was:" >&5 | |
17274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17275 | ||
17276 | cat >conftest.$ac_ext <<_ACEOF | |
17277 | /* confdefs.h. */ | |
17278 | _ACEOF | |
17279 | cat confdefs.h >>conftest.$ac_ext | |
17280 | cat >>conftest.$ac_ext <<_ACEOF | |
17281 | /* end confdefs.h. */ | |
17282 | $ac_includes_default | |
17283 | int | |
17284 | main () | |
17285 | { | |
17286 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
17287 | test_array [0] = 0 | |
17288 | ||
17289 | ; | |
17290 | return 0; | |
17291 | } | |
17292 | _ACEOF | |
17293 | rm -f conftest.$ac_objext | |
17294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17295 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17296 | ac_status=$? |
ac1cb8d3 VS |
17297 | grep -v '^ *+' conftest.er1 >conftest.err |
17298 | rm -f conftest.er1 | |
17299 | cat conftest.err >&5 | |
a848cd7e SC |
17300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17301 | (exit $ac_status); } && | |
9dd0f6c2 | 17302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17304 | (eval $ac_try) 2>&5 | |
17305 | ac_status=$? | |
17306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17307 | (exit $ac_status); }; } && | |
17308 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17310 | (eval $ac_try) 2>&5 | |
17311 | ac_status=$? | |
17312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17313 | (exit $ac_status); }; }; then | |
17314 | ac_hi=-1 ac_mid=-1 | |
17315 | while :; do | |
17316 | cat >conftest.$ac_ext <<_ACEOF | |
17317 | /* confdefs.h. */ | |
17318 | _ACEOF | |
17319 | cat confdefs.h >>conftest.$ac_ext | |
17320 | cat >>conftest.$ac_ext <<_ACEOF | |
17321 | /* end confdefs.h. */ | |
17322 | $ac_includes_default | |
17323 | int | |
17324 | main () | |
17325 | { | |
17326 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
17327 | test_array [0] = 0 | |
17328 | ||
17329 | ; | |
17330 | return 0; | |
17331 | } | |
17332 | _ACEOF | |
17333 | rm -f conftest.$ac_objext | |
17334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17335 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17336 | ac_status=$? |
ac1cb8d3 VS |
17337 | grep -v '^ *+' conftest.er1 >conftest.err |
17338 | rm -f conftest.er1 | |
17339 | cat conftest.err >&5 | |
a848cd7e SC |
17340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17341 | (exit $ac_status); } && | |
9dd0f6c2 | 17342 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17344 | (eval $ac_try) 2>&5 | |
17345 | ac_status=$? | |
17346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17347 | (exit $ac_status); }; } && | |
17348 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17350 | (eval $ac_try) 2>&5 | |
17351 | ac_status=$? | |
17352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17353 | (exit $ac_status); }; }; then | |
17354 | ac_lo=$ac_mid; break | |
17355 | else | |
17356 | echo "$as_me: failed program was:" >&5 | |
17357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17358 | ||
17359 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17360 | if test $ac_mid -le $ac_hi; then |
17361 | ac_lo= ac_hi= | |
17362 | break | |
17363 | fi | |
17364 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17365 | fi |
ac1cb8d3 | 17366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17367 | done |
17368 | else | |
17369 | echo "$as_me: failed program was:" >&5 | |
17370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17371 | ||
17372 | ac_lo= ac_hi= | |
17373 | fi | |
ac1cb8d3 | 17374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17375 | fi |
ac1cb8d3 | 17376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17377 | # Binary search between lo and hi bounds. |
17378 | while test "x$ac_lo" != "x$ac_hi"; do | |
17379 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17380 | cat >conftest.$ac_ext <<_ACEOF | |
17381 | /* confdefs.h. */ | |
17382 | _ACEOF | |
17383 | cat confdefs.h >>conftest.$ac_ext | |
17384 | cat >>conftest.$ac_ext <<_ACEOF | |
17385 | /* end confdefs.h. */ | |
17386 | $ac_includes_default | |
17387 | int | |
17388 | main () | |
17389 | { | |
17390 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17391 | test_array [0] = 0 | |
17392 | ||
17393 | ; | |
17394 | return 0; | |
17395 | } | |
17396 | _ACEOF | |
17397 | rm -f conftest.$ac_objext | |
17398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17399 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17400 | ac_status=$? |
ac1cb8d3 VS |
17401 | grep -v '^ *+' conftest.er1 >conftest.err |
17402 | rm -f conftest.er1 | |
17403 | cat conftest.err >&5 | |
a848cd7e SC |
17404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17405 | (exit $ac_status); } && | |
9dd0f6c2 | 17406 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17408 | (eval $ac_try) 2>&5 | |
17409 | ac_status=$? | |
17410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17411 | (exit $ac_status); }; } && | |
17412 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17414 | (eval $ac_try) 2>&5 | |
17415 | ac_status=$? | |
17416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17417 | (exit $ac_status); }; }; then | |
17418 | ac_hi=$ac_mid | |
17419 | else | |
17420 | echo "$as_me: failed program was:" >&5 | |
17421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17422 | ||
17423 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17424 | fi | |
ac1cb8d3 | 17425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17426 | done |
17427 | case $ac_lo in | |
17428 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
17429 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17430 | See \`config.log' for more details." >&5 | |
17431 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17432 | See \`config.log' for more details." >&2;} | |
17433 | { (exit 1); exit 1; }; } ;; | |
17434 | esac | |
17435 | else | |
17436 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
17437 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17438 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17439 | { (exit 1); exit 1; }; } |
17440 | else | |
17441 | cat >conftest.$ac_ext <<_ACEOF | |
17442 | /* confdefs.h. */ | |
17443 | _ACEOF | |
17444 | cat confdefs.h >>conftest.$ac_ext | |
17445 | cat >>conftest.$ac_ext <<_ACEOF | |
17446 | /* end confdefs.h. */ | |
17447 | $ac_includes_default | |
17448 | long longval () { return (long) (sizeof (long)); } | |
17449 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
17450 | #include <stdio.h> | |
17451 | #include <stdlib.h> | |
17452 | int | |
17453 | main () | |
17454 | { | |
17455 | ||
17456 | FILE *f = fopen ("conftest.val", "w"); | |
17457 | if (! f) | |
17458 | exit (1); | |
17459 | if (((long) (sizeof (long))) < 0) | |
17460 | { | |
17461 | long i = longval (); | |
17462 | if (i != ((long) (sizeof (long)))) | |
17463 | exit (1); | |
17464 | fprintf (f, "%ld\n", i); | |
17465 | } | |
17466 | else | |
17467 | { | |
17468 | unsigned long i = ulongval (); | |
17469 | if (i != ((long) (sizeof (long)))) | |
17470 | exit (1); | |
17471 | fprintf (f, "%lu\n", i); | |
17472 | } | |
17473 | exit (ferror (f) || fclose (f) != 0); | |
17474 | ||
17475 | ; | |
17476 | return 0; | |
17477 | } | |
17478 | _ACEOF | |
17479 | rm -f conftest$ac_exeext | |
17480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17481 | (eval $ac_link) 2>&5 | |
17482 | ac_status=$? | |
17483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17484 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17486 | (eval $ac_try) 2>&5 | |
17487 | ac_status=$? | |
17488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17489 | (exit $ac_status); }; }; then | |
17490 | ac_cv_sizeof_long=`cat conftest.val` | |
17491 | else | |
17492 | echo "$as_me: program exited with status $ac_status" >&5 | |
17493 | echo "$as_me: failed program was:" >&5 | |
17494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17495 | ||
17496 | ( exit $ac_status ) | |
17497 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17498 | See \`config.log' for more details." >&5 | |
17499 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17500 | See \`config.log' for more details." >&2;} | |
17501 | { (exit 1); exit 1; }; } | |
17502 | fi | |
ac1cb8d3 | 17503 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17504 | fi |
17505 | fi | |
17506 | rm -f conftest.val | |
17507 | else | |
17508 | ac_cv_sizeof_long=0 | |
17509 | fi | |
17510 | fi | |
17511 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
17512 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
17513 | cat >>confdefs.h <<_ACEOF | |
17514 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
17515 | _ACEOF | |
17516 | ||
17517 | ||
17518 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
17519 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
17520 | if test "${ac_cv_type_size_t+set}" = set; then | |
17521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17522 | else | |
17523 | cat >conftest.$ac_ext <<_ACEOF | |
17524 | /* confdefs.h. */ | |
17525 | _ACEOF | |
17526 | cat confdefs.h >>conftest.$ac_ext | |
17527 | cat >>conftest.$ac_ext <<_ACEOF | |
17528 | /* end confdefs.h. */ | |
17529 | $ac_includes_default | |
17530 | int | |
17531 | main () | |
17532 | { | |
17533 | if ((size_t *) 0) | |
17534 | return 0; | |
17535 | if (sizeof (size_t)) | |
17536 | return 0; | |
17537 | ; | |
17538 | return 0; | |
17539 | } | |
17540 | _ACEOF | |
17541 | rm -f conftest.$ac_objext | |
17542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17543 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17544 | ac_status=$? |
ac1cb8d3 VS |
17545 | grep -v '^ *+' conftest.er1 >conftest.err |
17546 | rm -f conftest.er1 | |
17547 | cat conftest.err >&5 | |
a848cd7e SC |
17548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17549 | (exit $ac_status); } && | |
9dd0f6c2 | 17550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17552 | (eval $ac_try) 2>&5 | |
17553 | ac_status=$? | |
17554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17555 | (exit $ac_status); }; } && | |
17556 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17558 | (eval $ac_try) 2>&5 | |
17559 | ac_status=$? | |
17560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17561 | (exit $ac_status); }; }; then | |
17562 | ac_cv_type_size_t=yes | |
17563 | else | |
17564 | echo "$as_me: failed program was:" >&5 | |
17565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17566 | ||
17567 | ac_cv_type_size_t=no | |
17568 | fi | |
ac1cb8d3 | 17569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17570 | fi |
17571 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
17572 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
17573 | ||
17574 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
17575 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
17576 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
17577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17578 | else | |
17579 | if test "$ac_cv_type_size_t" = yes; then | |
17580 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17581 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17582 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17583 | # This bug is HP SR number 8606223364. | |
17584 | if test "$cross_compiling" = yes; then | |
17585 | # Depending upon the size, compute the lo and hi bounds. | |
17586 | cat >conftest.$ac_ext <<_ACEOF | |
17587 | /* confdefs.h. */ | |
17588 | _ACEOF | |
17589 | cat confdefs.h >>conftest.$ac_ext | |
17590 | cat >>conftest.$ac_ext <<_ACEOF | |
17591 | /* end confdefs.h. */ | |
17592 | $ac_includes_default | |
17593 | int | |
17594 | main () | |
17595 | { | |
17596 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
17597 | test_array [0] = 0 | |
17598 | ||
17599 | ; | |
17600 | return 0; | |
17601 | } | |
17602 | _ACEOF | |
17603 | rm -f conftest.$ac_objext | |
17604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17605 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17606 | ac_status=$? |
ac1cb8d3 VS |
17607 | grep -v '^ *+' conftest.er1 >conftest.err |
17608 | rm -f conftest.er1 | |
17609 | cat conftest.err >&5 | |
a848cd7e SC |
17610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17611 | (exit $ac_status); } && | |
9dd0f6c2 | 17612 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17614 | (eval $ac_try) 2>&5 | |
17615 | ac_status=$? | |
17616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17617 | (exit $ac_status); }; } && | |
17618 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17620 | (eval $ac_try) 2>&5 | |
17621 | ac_status=$? | |
17622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17623 | (exit $ac_status); }; }; then | |
17624 | ac_lo=0 ac_mid=0 | |
17625 | while :; do | |
17626 | cat >conftest.$ac_ext <<_ACEOF | |
17627 | /* confdefs.h. */ | |
17628 | _ACEOF | |
17629 | cat confdefs.h >>conftest.$ac_ext | |
17630 | cat >>conftest.$ac_ext <<_ACEOF | |
17631 | /* end confdefs.h. */ | |
17632 | $ac_includes_default | |
17633 | int | |
17634 | main () | |
17635 | { | |
17636 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17637 | test_array [0] = 0 | |
17638 | ||
17639 | ; | |
17640 | return 0; | |
17641 | } | |
17642 | _ACEOF | |
17643 | rm -f conftest.$ac_objext | |
17644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17645 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17646 | ac_status=$? |
ac1cb8d3 VS |
17647 | grep -v '^ *+' conftest.er1 >conftest.err |
17648 | rm -f conftest.er1 | |
17649 | cat conftest.err >&5 | |
a848cd7e SC |
17650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17651 | (exit $ac_status); } && | |
9dd0f6c2 | 17652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17654 | (eval $ac_try) 2>&5 | |
17655 | ac_status=$? | |
17656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17657 | (exit $ac_status); }; } && | |
17658 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17660 | (eval $ac_try) 2>&5 | |
17661 | ac_status=$? | |
17662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17663 | (exit $ac_status); }; }; then | |
17664 | ac_hi=$ac_mid; break | |
17665 | else | |
17666 | echo "$as_me: failed program was:" >&5 | |
17667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17668 | ||
17669 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17670 | if test $ac_lo -le $ac_mid; then |
17671 | ac_lo= ac_hi= | |
17672 | break | |
17673 | fi | |
17674 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17675 | fi |
ac1cb8d3 | 17676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17677 | done |
17678 | else | |
17679 | echo "$as_me: failed program was:" >&5 | |
17680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17681 | ||
17682 | cat >conftest.$ac_ext <<_ACEOF | |
17683 | /* confdefs.h. */ | |
17684 | _ACEOF | |
17685 | cat confdefs.h >>conftest.$ac_ext | |
17686 | cat >>conftest.$ac_ext <<_ACEOF | |
17687 | /* end confdefs.h. */ | |
17688 | $ac_includes_default | |
17689 | int | |
17690 | main () | |
17691 | { | |
17692 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
17693 | test_array [0] = 0 | |
17694 | ||
17695 | ; | |
17696 | return 0; | |
17697 | } | |
17698 | _ACEOF | |
17699 | rm -f conftest.$ac_objext | |
17700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17701 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17702 | ac_status=$? |
ac1cb8d3 VS |
17703 | grep -v '^ *+' conftest.er1 >conftest.err |
17704 | rm -f conftest.er1 | |
17705 | cat conftest.err >&5 | |
a848cd7e SC |
17706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17707 | (exit $ac_status); } && | |
9dd0f6c2 | 17708 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17710 | (eval $ac_try) 2>&5 | |
17711 | ac_status=$? | |
17712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17713 | (exit $ac_status); }; } && | |
17714 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17716 | (eval $ac_try) 2>&5 | |
17717 | ac_status=$? | |
17718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17719 | (exit $ac_status); }; }; then | |
17720 | ac_hi=-1 ac_mid=-1 | |
17721 | while :; do | |
17722 | cat >conftest.$ac_ext <<_ACEOF | |
17723 | /* confdefs.h. */ | |
17724 | _ACEOF | |
17725 | cat confdefs.h >>conftest.$ac_ext | |
17726 | cat >>conftest.$ac_ext <<_ACEOF | |
17727 | /* end confdefs.h. */ | |
17728 | $ac_includes_default | |
17729 | int | |
17730 | main () | |
17731 | { | |
17732 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
17733 | test_array [0] = 0 | |
17734 | ||
17735 | ; | |
17736 | return 0; | |
17737 | } | |
17738 | _ACEOF | |
17739 | rm -f conftest.$ac_objext | |
17740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17741 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17742 | ac_status=$? |
ac1cb8d3 VS |
17743 | grep -v '^ *+' conftest.er1 >conftest.err |
17744 | rm -f conftest.er1 | |
17745 | cat conftest.err >&5 | |
a848cd7e SC |
17746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17747 | (exit $ac_status); } && | |
9dd0f6c2 | 17748 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17750 | (eval $ac_try) 2>&5 | |
17751 | ac_status=$? | |
17752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17753 | (exit $ac_status); }; } && | |
17754 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17756 | (eval $ac_try) 2>&5 | |
17757 | ac_status=$? | |
17758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17759 | (exit $ac_status); }; }; then | |
17760 | ac_lo=$ac_mid; break | |
17761 | else | |
17762 | echo "$as_me: failed program was:" >&5 | |
17763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17764 | ||
17765 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17766 | if test $ac_mid -le $ac_hi; then |
17767 | ac_lo= ac_hi= | |
17768 | break | |
17769 | fi | |
17770 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17771 | fi |
ac1cb8d3 | 17772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17773 | done |
17774 | else | |
17775 | echo "$as_me: failed program was:" >&5 | |
17776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17777 | ||
17778 | ac_lo= ac_hi= | |
17779 | fi | |
ac1cb8d3 | 17780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17781 | fi |
ac1cb8d3 | 17782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17783 | # Binary search between lo and hi bounds. |
17784 | while test "x$ac_lo" != "x$ac_hi"; do | |
17785 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17786 | cat >conftest.$ac_ext <<_ACEOF | |
17787 | /* confdefs.h. */ | |
17788 | _ACEOF | |
17789 | cat confdefs.h >>conftest.$ac_ext | |
17790 | cat >>conftest.$ac_ext <<_ACEOF | |
17791 | /* end confdefs.h. */ | |
17792 | $ac_includes_default | |
17793 | int | |
17794 | main () | |
17795 | { | |
17796 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17797 | test_array [0] = 0 | |
17798 | ||
17799 | ; | |
17800 | return 0; | |
17801 | } | |
17802 | _ACEOF | |
17803 | rm -f conftest.$ac_objext | |
17804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17805 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17806 | ac_status=$? |
ac1cb8d3 VS |
17807 | grep -v '^ *+' conftest.er1 >conftest.err |
17808 | rm -f conftest.er1 | |
17809 | cat conftest.err >&5 | |
a848cd7e SC |
17810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17811 | (exit $ac_status); } && | |
9dd0f6c2 | 17812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17814 | (eval $ac_try) 2>&5 | |
17815 | ac_status=$? | |
17816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17817 | (exit $ac_status); }; } && | |
17818 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17820 | (eval $ac_try) 2>&5 | |
17821 | ac_status=$? | |
17822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17823 | (exit $ac_status); }; }; then | |
17824 | ac_hi=$ac_mid | |
17825 | else | |
17826 | echo "$as_me: failed program was:" >&5 | |
17827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17828 | ||
17829 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17830 | fi | |
ac1cb8d3 | 17831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17832 | done |
17833 | case $ac_lo in | |
17834 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
17835 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17836 | See \`config.log' for more details." >&5 | |
17837 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17838 | See \`config.log' for more details." >&2;} | |
17839 | { (exit 1); exit 1; }; } ;; | |
17840 | esac | |
17841 | else | |
17842 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
17843 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17844 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17845 | { (exit 1); exit 1; }; } |
17846 | else | |
17847 | cat >conftest.$ac_ext <<_ACEOF | |
17848 | /* confdefs.h. */ | |
17849 | _ACEOF | |
17850 | cat confdefs.h >>conftest.$ac_ext | |
17851 | cat >>conftest.$ac_ext <<_ACEOF | |
17852 | /* end confdefs.h. */ | |
17853 | $ac_includes_default | |
17854 | long longval () { return (long) (sizeof (size_t)); } | |
17855 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
17856 | #include <stdio.h> | |
17857 | #include <stdlib.h> | |
17858 | int | |
17859 | main () | |
17860 | { | |
17861 | ||
17862 | FILE *f = fopen ("conftest.val", "w"); | |
17863 | if (! f) | |
17864 | exit (1); | |
17865 | if (((long) (sizeof (size_t))) < 0) | |
17866 | { | |
17867 | long i = longval (); | |
17868 | if (i != ((long) (sizeof (size_t)))) | |
17869 | exit (1); | |
17870 | fprintf (f, "%ld\n", i); | |
17871 | } | |
17872 | else | |
17873 | { | |
17874 | unsigned long i = ulongval (); | |
17875 | if (i != ((long) (sizeof (size_t)))) | |
17876 | exit (1); | |
17877 | fprintf (f, "%lu\n", i); | |
17878 | } | |
17879 | exit (ferror (f) || fclose (f) != 0); | |
17880 | ||
17881 | ; | |
17882 | return 0; | |
17883 | } | |
17884 | _ACEOF | |
17885 | rm -f conftest$ac_exeext | |
17886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17887 | (eval $ac_link) 2>&5 | |
17888 | ac_status=$? | |
17889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17890 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17892 | (eval $ac_try) 2>&5 | |
17893 | ac_status=$? | |
17894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17895 | (exit $ac_status); }; }; then | |
17896 | ac_cv_sizeof_size_t=`cat conftest.val` | |
17897 | else | |
17898 | echo "$as_me: program exited with status $ac_status" >&5 | |
17899 | echo "$as_me: failed program was:" >&5 | |
17900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17901 | ||
17902 | ( exit $ac_status ) | |
17903 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17904 | See \`config.log' for more details." >&5 | |
17905 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17906 | See \`config.log' for more details." >&2;} | |
17907 | { (exit 1); exit 1; }; } | |
17908 | fi | |
ac1cb8d3 | 17909 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17910 | fi |
17911 | fi | |
17912 | rm -f conftest.val | |
17913 | else | |
17914 | ac_cv_sizeof_size_t=0 | |
17915 | fi | |
17916 | fi | |
17917 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
17918 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
17919 | cat >>confdefs.h <<_ACEOF | |
17920 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
17921 | _ACEOF | |
17922 | ||
17923 | ||
17924 | ||
17925 | case "${host}" in | |
17926 | arm-*-linux* ) | |
17927 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17928 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17929 | if test "${ac_cv_type_long_long+set}" = set; then | |
17930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17931 | else | |
17932 | cat >conftest.$ac_ext <<_ACEOF | |
17933 | /* confdefs.h. */ | |
17934 | _ACEOF | |
17935 | cat confdefs.h >>conftest.$ac_ext | |
17936 | cat >>conftest.$ac_ext <<_ACEOF | |
17937 | /* end confdefs.h. */ | |
17938 | $ac_includes_default | |
17939 | int | |
17940 | main () | |
17941 | { | |
17942 | if ((long long *) 0) | |
17943 | return 0; | |
17944 | if (sizeof (long long)) | |
17945 | return 0; | |
17946 | ; | |
17947 | return 0; | |
17948 | } | |
17949 | _ACEOF | |
17950 | rm -f conftest.$ac_objext | |
17951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17952 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17953 | ac_status=$? |
ac1cb8d3 VS |
17954 | grep -v '^ *+' conftest.er1 >conftest.err |
17955 | rm -f conftest.er1 | |
17956 | cat conftest.err >&5 | |
a848cd7e SC |
17957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17958 | (exit $ac_status); } && | |
9dd0f6c2 | 17959 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17961 | (eval $ac_try) 2>&5 | |
17962 | ac_status=$? | |
17963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17964 | (exit $ac_status); }; } && | |
17965 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17967 | (eval $ac_try) 2>&5 | |
17968 | ac_status=$? | |
17969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17970 | (exit $ac_status); }; }; then | |
17971 | ac_cv_type_long_long=yes | |
17972 | else | |
17973 | echo "$as_me: failed program was:" >&5 | |
17974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17975 | ||
17976 | ac_cv_type_long_long=no | |
17977 | fi | |
ac1cb8d3 | 17978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17979 | fi |
17980 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17981 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17982 | ||
17983 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17984 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17985 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17987 | else | |
17988 | if test "$ac_cv_type_long_long" = yes; then | |
17989 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17990 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17991 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17992 | # This bug is HP SR number 8606223364. | |
17993 | if test "$cross_compiling" = yes; then | |
17994 | # Depending upon the size, compute the lo and hi bounds. | |
17995 | cat >conftest.$ac_ext <<_ACEOF | |
17996 | /* confdefs.h. */ | |
17997 | _ACEOF | |
17998 | cat confdefs.h >>conftest.$ac_ext | |
17999 | cat >>conftest.$ac_ext <<_ACEOF | |
18000 | /* end confdefs.h. */ | |
18001 | $ac_includes_default | |
18002 | int | |
18003 | main () | |
18004 | { | |
18005 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18006 | test_array [0] = 0 | |
18007 | ||
18008 | ; | |
18009 | return 0; | |
18010 | } | |
18011 | _ACEOF | |
18012 | rm -f conftest.$ac_objext | |
18013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18014 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18015 | ac_status=$? |
ac1cb8d3 VS |
18016 | grep -v '^ *+' conftest.er1 >conftest.err |
18017 | rm -f conftest.er1 | |
18018 | cat conftest.err >&5 | |
a848cd7e SC |
18019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18020 | (exit $ac_status); } && | |
9dd0f6c2 | 18021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18023 | (eval $ac_try) 2>&5 | |
18024 | ac_status=$? | |
18025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18026 | (exit $ac_status); }; } && | |
18027 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18029 | (eval $ac_try) 2>&5 | |
18030 | ac_status=$? | |
18031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18032 | (exit $ac_status); }; }; then | |
18033 | ac_lo=0 ac_mid=0 | |
18034 | while :; do | |
18035 | cat >conftest.$ac_ext <<_ACEOF | |
18036 | /* confdefs.h. */ | |
18037 | _ACEOF | |
18038 | cat confdefs.h >>conftest.$ac_ext | |
18039 | cat >>conftest.$ac_ext <<_ACEOF | |
18040 | /* end confdefs.h. */ | |
18041 | $ac_includes_default | |
18042 | int | |
18043 | main () | |
18044 | { | |
18045 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18046 | test_array [0] = 0 | |
18047 | ||
18048 | ; | |
18049 | return 0; | |
18050 | } | |
18051 | _ACEOF | |
18052 | rm -f conftest.$ac_objext | |
18053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18054 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18055 | ac_status=$? |
ac1cb8d3 VS |
18056 | grep -v '^ *+' conftest.er1 >conftest.err |
18057 | rm -f conftest.er1 | |
18058 | cat conftest.err >&5 | |
a848cd7e SC |
18059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18060 | (exit $ac_status); } && | |
9dd0f6c2 | 18061 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18063 | (eval $ac_try) 2>&5 | |
18064 | ac_status=$? | |
18065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18066 | (exit $ac_status); }; } && | |
18067 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18069 | (eval $ac_try) 2>&5 | |
18070 | ac_status=$? | |
18071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18072 | (exit $ac_status); }; }; then | |
18073 | ac_hi=$ac_mid; break | |
18074 | else | |
18075 | echo "$as_me: failed program was:" >&5 | |
18076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18077 | ||
18078 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18079 | if test $ac_lo -le $ac_mid; then |
18080 | ac_lo= ac_hi= | |
18081 | break | |
18082 | fi | |
18083 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18084 | fi |
ac1cb8d3 | 18085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18086 | done |
18087 | else | |
18088 | echo "$as_me: failed program was:" >&5 | |
18089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18090 | ||
18091 | cat >conftest.$ac_ext <<_ACEOF | |
18092 | /* confdefs.h. */ | |
18093 | _ACEOF | |
18094 | cat confdefs.h >>conftest.$ac_ext | |
18095 | cat >>conftest.$ac_ext <<_ACEOF | |
18096 | /* end confdefs.h. */ | |
18097 | $ac_includes_default | |
18098 | int | |
18099 | main () | |
18100 | { | |
18101 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18102 | test_array [0] = 0 | |
18103 | ||
18104 | ; | |
18105 | return 0; | |
18106 | } | |
18107 | _ACEOF | |
18108 | rm -f conftest.$ac_objext | |
18109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18110 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18111 | ac_status=$? |
ac1cb8d3 VS |
18112 | grep -v '^ *+' conftest.er1 >conftest.err |
18113 | rm -f conftest.er1 | |
18114 | cat conftest.err >&5 | |
a848cd7e SC |
18115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18116 | (exit $ac_status); } && | |
9dd0f6c2 | 18117 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18119 | (eval $ac_try) 2>&5 | |
18120 | ac_status=$? | |
18121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18122 | (exit $ac_status); }; } && | |
18123 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18125 | (eval $ac_try) 2>&5 | |
18126 | ac_status=$? | |
18127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18128 | (exit $ac_status); }; }; then | |
18129 | ac_hi=-1 ac_mid=-1 | |
18130 | while :; do | |
18131 | cat >conftest.$ac_ext <<_ACEOF | |
18132 | /* confdefs.h. */ | |
18133 | _ACEOF | |
18134 | cat confdefs.h >>conftest.$ac_ext | |
18135 | cat >>conftest.$ac_ext <<_ACEOF | |
18136 | /* end confdefs.h. */ | |
18137 | $ac_includes_default | |
18138 | int | |
18139 | main () | |
18140 | { | |
18141 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18142 | test_array [0] = 0 | |
18143 | ||
18144 | ; | |
18145 | return 0; | |
18146 | } | |
18147 | _ACEOF | |
18148 | rm -f conftest.$ac_objext | |
18149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18150 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18151 | ac_status=$? |
ac1cb8d3 VS |
18152 | grep -v '^ *+' conftest.er1 >conftest.err |
18153 | rm -f conftest.er1 | |
18154 | cat conftest.err >&5 | |
a848cd7e SC |
18155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18156 | (exit $ac_status); } && | |
9dd0f6c2 | 18157 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18159 | (eval $ac_try) 2>&5 | |
18160 | ac_status=$? | |
18161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18162 | (exit $ac_status); }; } && | |
18163 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18165 | (eval $ac_try) 2>&5 | |
18166 | ac_status=$? | |
18167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18168 | (exit $ac_status); }; }; then | |
18169 | ac_lo=$ac_mid; break | |
18170 | else | |
18171 | echo "$as_me: failed program was:" >&5 | |
18172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18173 | ||
18174 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18175 | if test $ac_mid -le $ac_hi; then |
18176 | ac_lo= ac_hi= | |
18177 | break | |
18178 | fi | |
18179 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18180 | fi |
ac1cb8d3 | 18181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18182 | done |
18183 | else | |
18184 | echo "$as_me: failed program was:" >&5 | |
18185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18186 | ||
18187 | ac_lo= ac_hi= | |
18188 | fi | |
ac1cb8d3 | 18189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18190 | fi |
ac1cb8d3 | 18191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18192 | # Binary search between lo and hi bounds. |
18193 | while test "x$ac_lo" != "x$ac_hi"; do | |
18194 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18195 | cat >conftest.$ac_ext <<_ACEOF | |
18196 | /* confdefs.h. */ | |
18197 | _ACEOF | |
18198 | cat confdefs.h >>conftest.$ac_ext | |
18199 | cat >>conftest.$ac_ext <<_ACEOF | |
18200 | /* end confdefs.h. */ | |
18201 | $ac_includes_default | |
18202 | int | |
18203 | main () | |
18204 | { | |
18205 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18206 | test_array [0] = 0 | |
18207 | ||
18208 | ; | |
18209 | return 0; | |
18210 | } | |
18211 | _ACEOF | |
18212 | rm -f conftest.$ac_objext | |
18213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18214 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18215 | ac_status=$? |
ac1cb8d3 VS |
18216 | grep -v '^ *+' conftest.er1 >conftest.err |
18217 | rm -f conftest.er1 | |
18218 | cat conftest.err >&5 | |
a848cd7e SC |
18219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18220 | (exit $ac_status); } && | |
9dd0f6c2 | 18221 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18223 | (eval $ac_try) 2>&5 | |
18224 | ac_status=$? | |
18225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18226 | (exit $ac_status); }; } && | |
18227 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18233 | ac_hi=$ac_mid | |
18234 | else | |
18235 | echo "$as_me: failed program was:" >&5 | |
18236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18237 | ||
18238 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18239 | fi | |
ac1cb8d3 | 18240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18241 | done |
18242 | case $ac_lo in | |
18243 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18244 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18245 | See \`config.log' for more details." >&5 | |
18246 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18247 | See \`config.log' for more details." >&2;} | |
18248 | { (exit 1); exit 1; }; } ;; | |
18249 | esac | |
18250 | else | |
18251 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
18252 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18253 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18254 | { (exit 1); exit 1; }; } |
18255 | else | |
18256 | cat >conftest.$ac_ext <<_ACEOF | |
18257 | /* confdefs.h. */ | |
18258 | _ACEOF | |
18259 | cat confdefs.h >>conftest.$ac_ext | |
18260 | cat >>conftest.$ac_ext <<_ACEOF | |
18261 | /* end confdefs.h. */ | |
18262 | $ac_includes_default | |
18263 | long longval () { return (long) (sizeof (long long)); } | |
18264 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18265 | #include <stdio.h> | |
18266 | #include <stdlib.h> | |
18267 | int | |
18268 | main () | |
18269 | { | |
18270 | ||
18271 | FILE *f = fopen ("conftest.val", "w"); | |
18272 | if (! f) | |
18273 | exit (1); | |
18274 | if (((long) (sizeof (long long))) < 0) | |
18275 | { | |
18276 | long i = longval (); | |
18277 | if (i != ((long) (sizeof (long long)))) | |
18278 | exit (1); | |
18279 | fprintf (f, "%ld\n", i); | |
18280 | } | |
18281 | else | |
18282 | { | |
18283 | unsigned long i = ulongval (); | |
18284 | if (i != ((long) (sizeof (long long)))) | |
18285 | exit (1); | |
18286 | fprintf (f, "%lu\n", i); | |
18287 | } | |
18288 | exit (ferror (f) || fclose (f) != 0); | |
18289 | ||
18290 | ; | |
18291 | return 0; | |
18292 | } | |
18293 | _ACEOF | |
18294 | rm -f conftest$ac_exeext | |
18295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18296 | (eval $ac_link) 2>&5 | |
18297 | ac_status=$? | |
18298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18299 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18301 | (eval $ac_try) 2>&5 | |
18302 | ac_status=$? | |
18303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18304 | (exit $ac_status); }; }; then | |
18305 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18306 | else | |
18307 | echo "$as_me: program exited with status $ac_status" >&5 | |
18308 | echo "$as_me: failed program was:" >&5 | |
18309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18310 | ||
18311 | ( exit $ac_status ) | |
18312 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18313 | See \`config.log' for more details." >&5 | |
18314 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18315 | See \`config.log' for more details." >&2;} | |
18316 | { (exit 1); exit 1; }; } | |
18317 | fi | |
ac1cb8d3 | 18318 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18319 | fi |
18320 | fi | |
18321 | rm -f conftest.val | |
18322 | else | |
18323 | ac_cv_sizeof_long_long=0 | |
18324 | fi | |
18325 | fi | |
18326 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18327 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18328 | cat >>confdefs.h <<_ACEOF | |
18329 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18330 | _ACEOF | |
18331 | ||
18332 | ||
18333 | ;; | |
18334 | *-hp-hpux* ) | |
18335 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18336 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18337 | if test "${ac_cv_type_long_long+set}" = set; then | |
18338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18339 | else | |
18340 | cat >conftest.$ac_ext <<_ACEOF | |
18341 | /* confdefs.h. */ | |
18342 | _ACEOF | |
18343 | cat confdefs.h >>conftest.$ac_ext | |
18344 | cat >>conftest.$ac_ext <<_ACEOF | |
18345 | /* end confdefs.h. */ | |
18346 | $ac_includes_default | |
18347 | int | |
18348 | main () | |
18349 | { | |
18350 | if ((long long *) 0) | |
18351 | return 0; | |
18352 | if (sizeof (long long)) | |
18353 | return 0; | |
18354 | ; | |
18355 | return 0; | |
18356 | } | |
18357 | _ACEOF | |
18358 | rm -f conftest.$ac_objext | |
18359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18360 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18361 | ac_status=$? |
ac1cb8d3 VS |
18362 | grep -v '^ *+' conftest.er1 >conftest.err |
18363 | rm -f conftest.er1 | |
18364 | cat conftest.err >&5 | |
a848cd7e SC |
18365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18366 | (exit $ac_status); } && | |
9dd0f6c2 | 18367 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18369 | (eval $ac_try) 2>&5 | |
18370 | ac_status=$? | |
18371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18372 | (exit $ac_status); }; } && | |
18373 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18375 | (eval $ac_try) 2>&5 | |
18376 | ac_status=$? | |
18377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18378 | (exit $ac_status); }; }; then | |
18379 | ac_cv_type_long_long=yes | |
18380 | else | |
18381 | echo "$as_me: failed program was:" >&5 | |
18382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18383 | ||
18384 | ac_cv_type_long_long=no | |
18385 | fi | |
ac1cb8d3 | 18386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18387 | fi |
18388 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18389 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18390 | ||
18391 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18392 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18393 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18395 | else | |
18396 | if test "$ac_cv_type_long_long" = yes; then | |
18397 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18398 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18399 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18400 | # This bug is HP SR number 8606223364. | |
18401 | if test "$cross_compiling" = yes; then | |
18402 | # Depending upon the size, compute the lo and hi bounds. | |
18403 | cat >conftest.$ac_ext <<_ACEOF | |
18404 | /* confdefs.h. */ | |
18405 | _ACEOF | |
18406 | cat confdefs.h >>conftest.$ac_ext | |
18407 | cat >>conftest.$ac_ext <<_ACEOF | |
18408 | /* end confdefs.h. */ | |
18409 | $ac_includes_default | |
18410 | int | |
18411 | main () | |
18412 | { | |
18413 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18414 | test_array [0] = 0 | |
18415 | ||
18416 | ; | |
18417 | return 0; | |
18418 | } | |
18419 | _ACEOF | |
18420 | rm -f conftest.$ac_objext | |
18421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18422 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18423 | ac_status=$? |
ac1cb8d3 VS |
18424 | grep -v '^ *+' conftest.er1 >conftest.err |
18425 | rm -f conftest.er1 | |
18426 | cat conftest.err >&5 | |
a848cd7e SC |
18427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18428 | (exit $ac_status); } && | |
9dd0f6c2 | 18429 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18431 | (eval $ac_try) 2>&5 | |
18432 | ac_status=$? | |
18433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18434 | (exit $ac_status); }; } && | |
18435 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18437 | (eval $ac_try) 2>&5 | |
18438 | ac_status=$? | |
18439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18440 | (exit $ac_status); }; }; then | |
18441 | ac_lo=0 ac_mid=0 | |
18442 | while :; do | |
18443 | cat >conftest.$ac_ext <<_ACEOF | |
18444 | /* confdefs.h. */ | |
18445 | _ACEOF | |
18446 | cat confdefs.h >>conftest.$ac_ext | |
18447 | cat >>conftest.$ac_ext <<_ACEOF | |
18448 | /* end confdefs.h. */ | |
18449 | $ac_includes_default | |
18450 | int | |
18451 | main () | |
18452 | { | |
18453 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18454 | test_array [0] = 0 | |
18455 | ||
18456 | ; | |
18457 | return 0; | |
18458 | } | |
18459 | _ACEOF | |
18460 | rm -f conftest.$ac_objext | |
18461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18462 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18463 | ac_status=$? |
ac1cb8d3 VS |
18464 | grep -v '^ *+' conftest.er1 >conftest.err |
18465 | rm -f conftest.er1 | |
18466 | cat conftest.err >&5 | |
a848cd7e SC |
18467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18468 | (exit $ac_status); } && | |
9dd0f6c2 | 18469 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18471 | (eval $ac_try) 2>&5 | |
18472 | ac_status=$? | |
18473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18474 | (exit $ac_status); }; } && | |
18475 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18477 | (eval $ac_try) 2>&5 | |
18478 | ac_status=$? | |
18479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18480 | (exit $ac_status); }; }; then | |
18481 | ac_hi=$ac_mid; break | |
18482 | else | |
18483 | echo "$as_me: failed program was:" >&5 | |
18484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18485 | ||
18486 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18487 | if test $ac_lo -le $ac_mid; then |
18488 | ac_lo= ac_hi= | |
18489 | break | |
18490 | fi | |
18491 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18492 | fi |
ac1cb8d3 | 18493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18494 | done |
18495 | else | |
18496 | echo "$as_me: failed program was:" >&5 | |
18497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18498 | ||
18499 | cat >conftest.$ac_ext <<_ACEOF | |
18500 | /* confdefs.h. */ | |
18501 | _ACEOF | |
18502 | cat confdefs.h >>conftest.$ac_ext | |
18503 | cat >>conftest.$ac_ext <<_ACEOF | |
18504 | /* end confdefs.h. */ | |
18505 | $ac_includes_default | |
18506 | int | |
18507 | main () | |
18508 | { | |
18509 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18510 | test_array [0] = 0 | |
18511 | ||
18512 | ; | |
18513 | return 0; | |
18514 | } | |
18515 | _ACEOF | |
18516 | rm -f conftest.$ac_objext | |
18517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18518 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18519 | ac_status=$? |
ac1cb8d3 VS |
18520 | grep -v '^ *+' conftest.er1 >conftest.err |
18521 | rm -f conftest.er1 | |
18522 | cat conftest.err >&5 | |
a848cd7e SC |
18523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18524 | (exit $ac_status); } && | |
9dd0f6c2 | 18525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18527 | (eval $ac_try) 2>&5 | |
18528 | ac_status=$? | |
18529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18530 | (exit $ac_status); }; } && | |
18531 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18533 | (eval $ac_try) 2>&5 | |
18534 | ac_status=$? | |
18535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18536 | (exit $ac_status); }; }; then | |
18537 | ac_hi=-1 ac_mid=-1 | |
18538 | while :; do | |
18539 | cat >conftest.$ac_ext <<_ACEOF | |
18540 | /* confdefs.h. */ | |
18541 | _ACEOF | |
18542 | cat confdefs.h >>conftest.$ac_ext | |
18543 | cat >>conftest.$ac_ext <<_ACEOF | |
18544 | /* end confdefs.h. */ | |
18545 | $ac_includes_default | |
18546 | int | |
18547 | main () | |
18548 | { | |
18549 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18550 | test_array [0] = 0 | |
18551 | ||
18552 | ; | |
18553 | return 0; | |
18554 | } | |
18555 | _ACEOF | |
18556 | rm -f conftest.$ac_objext | |
18557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18558 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18559 | ac_status=$? |
ac1cb8d3 VS |
18560 | grep -v '^ *+' conftest.er1 >conftest.err |
18561 | rm -f conftest.er1 | |
18562 | cat conftest.err >&5 | |
a848cd7e SC |
18563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18564 | (exit $ac_status); } && | |
9dd0f6c2 | 18565 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18567 | (eval $ac_try) 2>&5 | |
18568 | ac_status=$? | |
18569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18570 | (exit $ac_status); }; } && | |
18571 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18573 | (eval $ac_try) 2>&5 | |
18574 | ac_status=$? | |
18575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18576 | (exit $ac_status); }; }; then | |
18577 | ac_lo=$ac_mid; break | |
18578 | else | |
18579 | echo "$as_me: failed program was:" >&5 | |
18580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18581 | ||
18582 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18583 | if test $ac_mid -le $ac_hi; then |
18584 | ac_lo= ac_hi= | |
18585 | break | |
18586 | fi | |
18587 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18588 | fi |
ac1cb8d3 | 18589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18590 | done |
18591 | else | |
18592 | echo "$as_me: failed program was:" >&5 | |
18593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18594 | ||
18595 | ac_lo= ac_hi= | |
18596 | fi | |
ac1cb8d3 | 18597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18598 | fi |
ac1cb8d3 | 18599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18600 | # Binary search between lo and hi bounds. |
18601 | while test "x$ac_lo" != "x$ac_hi"; do | |
18602 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18603 | cat >conftest.$ac_ext <<_ACEOF | |
18604 | /* confdefs.h. */ | |
18605 | _ACEOF | |
18606 | cat confdefs.h >>conftest.$ac_ext | |
18607 | cat >>conftest.$ac_ext <<_ACEOF | |
18608 | /* end confdefs.h. */ | |
18609 | $ac_includes_default | |
18610 | int | |
18611 | main () | |
18612 | { | |
18613 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18614 | test_array [0] = 0 | |
18615 | ||
18616 | ; | |
18617 | return 0; | |
18618 | } | |
18619 | _ACEOF | |
18620 | rm -f conftest.$ac_objext | |
18621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18622 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18623 | ac_status=$? |
ac1cb8d3 VS |
18624 | grep -v '^ *+' conftest.er1 >conftest.err |
18625 | rm -f conftest.er1 | |
18626 | cat conftest.err >&5 | |
a848cd7e SC |
18627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18628 | (exit $ac_status); } && | |
9dd0f6c2 | 18629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18631 | (eval $ac_try) 2>&5 | |
18632 | ac_status=$? | |
18633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18634 | (exit $ac_status); }; } && | |
18635 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18637 | (eval $ac_try) 2>&5 | |
18638 | ac_status=$? | |
18639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18640 | (exit $ac_status); }; }; then | |
18641 | ac_hi=$ac_mid | |
18642 | else | |
18643 | echo "$as_me: failed program was:" >&5 | |
18644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18645 | ||
18646 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18647 | fi | |
ac1cb8d3 | 18648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18649 | done |
18650 | case $ac_lo in | |
18651 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18652 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18653 | See \`config.log' for more details." >&5 | |
18654 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18655 | See \`config.log' for more details." >&2;} | |
18656 | { (exit 1); exit 1; }; } ;; | |
18657 | esac | |
18658 | else | |
18659 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
18660 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18661 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18662 | { (exit 1); exit 1; }; } |
18663 | else | |
18664 | cat >conftest.$ac_ext <<_ACEOF | |
18665 | /* confdefs.h. */ | |
18666 | _ACEOF | |
18667 | cat confdefs.h >>conftest.$ac_ext | |
18668 | cat >>conftest.$ac_ext <<_ACEOF | |
18669 | /* end confdefs.h. */ | |
18670 | $ac_includes_default | |
18671 | long longval () { return (long) (sizeof (long long)); } | |
18672 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18673 | #include <stdio.h> | |
18674 | #include <stdlib.h> | |
18675 | int | |
18676 | main () | |
18677 | { | |
18678 | ||
18679 | FILE *f = fopen ("conftest.val", "w"); | |
18680 | if (! f) | |
18681 | exit (1); | |
18682 | if (((long) (sizeof (long long))) < 0) | |
18683 | { | |
18684 | long i = longval (); | |
18685 | if (i != ((long) (sizeof (long long)))) | |
18686 | exit (1); | |
18687 | fprintf (f, "%ld\n", i); | |
18688 | } | |
18689 | else | |
18690 | { | |
18691 | unsigned long i = ulongval (); | |
18692 | if (i != ((long) (sizeof (long long)))) | |
18693 | exit (1); | |
18694 | fprintf (f, "%lu\n", i); | |
18695 | } | |
18696 | exit (ferror (f) || fclose (f) != 0); | |
18697 | ||
18698 | ; | |
18699 | return 0; | |
18700 | } | |
18701 | _ACEOF | |
18702 | rm -f conftest$ac_exeext | |
18703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18704 | (eval $ac_link) 2>&5 | |
18705 | ac_status=$? | |
18706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18707 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18709 | (eval $ac_try) 2>&5 | |
18710 | ac_status=$? | |
18711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18712 | (exit $ac_status); }; }; then | |
18713 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18714 | else | |
18715 | echo "$as_me: program exited with status $ac_status" >&5 | |
18716 | echo "$as_me: failed program was:" >&5 | |
18717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18718 | ||
18719 | ( exit $ac_status ) | |
18720 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18721 | See \`config.log' for more details." >&5 | |
18722 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18723 | See \`config.log' for more details." >&2;} | |
18724 | { (exit 1); exit 1; }; } | |
18725 | fi | |
ac1cb8d3 | 18726 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18727 | fi |
18728 | fi | |
18729 | rm -f conftest.val | |
18730 | else | |
18731 | ac_cv_sizeof_long_long=0 | |
18732 | fi | |
18733 | fi | |
18734 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18735 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18736 | cat >>confdefs.h <<_ACEOF | |
18737 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18738 | _ACEOF | |
18739 | ||
18740 | ||
18741 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
18742 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
18743 | fi | |
18744 | ;; | |
18745 | * ) | |
18746 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18747 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18748 | if test "${ac_cv_type_long_long+set}" = set; then | |
18749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18750 | else | |
18751 | cat >conftest.$ac_ext <<_ACEOF | |
18752 | /* confdefs.h. */ | |
18753 | _ACEOF | |
18754 | cat confdefs.h >>conftest.$ac_ext | |
18755 | cat >>conftest.$ac_ext <<_ACEOF | |
18756 | /* end confdefs.h. */ | |
18757 | $ac_includes_default | |
18758 | int | |
18759 | main () | |
18760 | { | |
18761 | if ((long long *) 0) | |
18762 | return 0; | |
18763 | if (sizeof (long long)) | |
18764 | return 0; | |
18765 | ; | |
18766 | return 0; | |
18767 | } | |
18768 | _ACEOF | |
18769 | rm -f conftest.$ac_objext | |
18770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18771 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18772 | ac_status=$? |
ac1cb8d3 VS |
18773 | grep -v '^ *+' conftest.er1 >conftest.err |
18774 | rm -f conftest.er1 | |
18775 | cat conftest.err >&5 | |
a848cd7e SC |
18776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18777 | (exit $ac_status); } && | |
9dd0f6c2 | 18778 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18780 | (eval $ac_try) 2>&5 | |
18781 | ac_status=$? | |
18782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18783 | (exit $ac_status); }; } && | |
18784 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18786 | (eval $ac_try) 2>&5 | |
18787 | ac_status=$? | |
18788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18789 | (exit $ac_status); }; }; then | |
18790 | ac_cv_type_long_long=yes | |
18791 | else | |
18792 | echo "$as_me: failed program was:" >&5 | |
18793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18794 | ||
18795 | ac_cv_type_long_long=no | |
18796 | fi | |
ac1cb8d3 | 18797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18798 | fi |
18799 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18800 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18801 | ||
18802 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18803 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18804 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18806 | else | |
18807 | if test "$ac_cv_type_long_long" = yes; then | |
18808 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18809 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18810 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18811 | # This bug is HP SR number 8606223364. | |
18812 | if test "$cross_compiling" = yes; then | |
18813 | # Depending upon the size, compute the lo and hi bounds. | |
18814 | cat >conftest.$ac_ext <<_ACEOF | |
18815 | /* confdefs.h. */ | |
18816 | _ACEOF | |
18817 | cat confdefs.h >>conftest.$ac_ext | |
18818 | cat >>conftest.$ac_ext <<_ACEOF | |
18819 | /* end confdefs.h. */ | |
18820 | $ac_includes_default | |
18821 | int | |
18822 | main () | |
18823 | { | |
18824 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18825 | test_array [0] = 0 | |
18826 | ||
18827 | ; | |
18828 | return 0; | |
18829 | } | |
18830 | _ACEOF | |
18831 | rm -f conftest.$ac_objext | |
18832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18833 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18834 | ac_status=$? |
ac1cb8d3 VS |
18835 | grep -v '^ *+' conftest.er1 >conftest.err |
18836 | rm -f conftest.er1 | |
18837 | cat conftest.err >&5 | |
a848cd7e SC |
18838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18839 | (exit $ac_status); } && | |
9dd0f6c2 | 18840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18842 | (eval $ac_try) 2>&5 | |
18843 | ac_status=$? | |
18844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18845 | (exit $ac_status); }; } && | |
18846 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18848 | (eval $ac_try) 2>&5 | |
18849 | ac_status=$? | |
18850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18851 | (exit $ac_status); }; }; then | |
18852 | ac_lo=0 ac_mid=0 | |
18853 | while :; do | |
18854 | cat >conftest.$ac_ext <<_ACEOF | |
18855 | /* confdefs.h. */ | |
18856 | _ACEOF | |
18857 | cat confdefs.h >>conftest.$ac_ext | |
18858 | cat >>conftest.$ac_ext <<_ACEOF | |
18859 | /* end confdefs.h. */ | |
18860 | $ac_includes_default | |
18861 | int | |
18862 | main () | |
18863 | { | |
18864 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18865 | test_array [0] = 0 | |
18866 | ||
18867 | ; | |
18868 | return 0; | |
18869 | } | |
18870 | _ACEOF | |
18871 | rm -f conftest.$ac_objext | |
18872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18873 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18874 | ac_status=$? |
ac1cb8d3 VS |
18875 | grep -v '^ *+' conftest.er1 >conftest.err |
18876 | rm -f conftest.er1 | |
18877 | cat conftest.err >&5 | |
a848cd7e SC |
18878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18879 | (exit $ac_status); } && | |
9dd0f6c2 | 18880 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
18886 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18888 | (eval $ac_try) 2>&5 | |
18889 | ac_status=$? | |
18890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18891 | (exit $ac_status); }; }; then | |
18892 | ac_hi=$ac_mid; break | |
18893 | else | |
18894 | echo "$as_me: failed program was:" >&5 | |
18895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18896 | ||
18897 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18898 | if test $ac_lo -le $ac_mid; then |
18899 | ac_lo= ac_hi= | |
18900 | break | |
18901 | fi | |
18902 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18903 | fi |
ac1cb8d3 | 18904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18905 | done |
18906 | else | |
18907 | echo "$as_me: failed program was:" >&5 | |
18908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18909 | ||
18910 | cat >conftest.$ac_ext <<_ACEOF | |
18911 | /* confdefs.h. */ | |
18912 | _ACEOF | |
18913 | cat confdefs.h >>conftest.$ac_ext | |
18914 | cat >>conftest.$ac_ext <<_ACEOF | |
18915 | /* end confdefs.h. */ | |
18916 | $ac_includes_default | |
18917 | int | |
18918 | main () | |
18919 | { | |
18920 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18921 | test_array [0] = 0 | |
18922 | ||
18923 | ; | |
18924 | return 0; | |
18925 | } | |
18926 | _ACEOF | |
18927 | rm -f conftest.$ac_objext | |
18928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18929 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18930 | ac_status=$? |
ac1cb8d3 VS |
18931 | grep -v '^ *+' conftest.er1 >conftest.err |
18932 | rm -f conftest.er1 | |
18933 | cat conftest.err >&5 | |
a848cd7e SC |
18934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18935 | (exit $ac_status); } && | |
9dd0f6c2 | 18936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18938 | (eval $ac_try) 2>&5 | |
18939 | ac_status=$? | |
18940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18941 | (exit $ac_status); }; } && | |
18942 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18944 | (eval $ac_try) 2>&5 | |
18945 | ac_status=$? | |
18946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18947 | (exit $ac_status); }; }; then | |
18948 | ac_hi=-1 ac_mid=-1 | |
18949 | while :; do | |
18950 | cat >conftest.$ac_ext <<_ACEOF | |
18951 | /* confdefs.h. */ | |
18952 | _ACEOF | |
18953 | cat confdefs.h >>conftest.$ac_ext | |
18954 | cat >>conftest.$ac_ext <<_ACEOF | |
18955 | /* end confdefs.h. */ | |
18956 | $ac_includes_default | |
18957 | int | |
18958 | main () | |
18959 | { | |
18960 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18961 | test_array [0] = 0 | |
18962 | ||
18963 | ; | |
18964 | return 0; | |
18965 | } | |
18966 | _ACEOF | |
18967 | rm -f conftest.$ac_objext | |
18968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18969 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18970 | ac_status=$? |
ac1cb8d3 VS |
18971 | grep -v '^ *+' conftest.er1 >conftest.err |
18972 | rm -f conftest.er1 | |
18973 | cat conftest.err >&5 | |
a848cd7e SC |
18974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18975 | (exit $ac_status); } && | |
9dd0f6c2 | 18976 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18978 | (eval $ac_try) 2>&5 | |
18979 | ac_status=$? | |
18980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18981 | (exit $ac_status); }; } && | |
18982 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18984 | (eval $ac_try) 2>&5 | |
18985 | ac_status=$? | |
18986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18987 | (exit $ac_status); }; }; then | |
18988 | ac_lo=$ac_mid; break | |
18989 | else | |
18990 | echo "$as_me: failed program was:" >&5 | |
18991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18992 | ||
18993 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18994 | if test $ac_mid -le $ac_hi; then |
18995 | ac_lo= ac_hi= | |
18996 | break | |
18997 | fi | |
18998 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18999 | fi |
ac1cb8d3 | 19000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19001 | done |
19002 | else | |
19003 | echo "$as_me: failed program was:" >&5 | |
19004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19005 | ||
19006 | ac_lo= ac_hi= | |
19007 | fi | |
ac1cb8d3 | 19008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19009 | fi |
ac1cb8d3 | 19010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19011 | # Binary search between lo and hi bounds. |
19012 | while test "x$ac_lo" != "x$ac_hi"; do | |
19013 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19014 | cat >conftest.$ac_ext <<_ACEOF | |
19015 | /* confdefs.h. */ | |
19016 | _ACEOF | |
19017 | cat confdefs.h >>conftest.$ac_ext | |
19018 | cat >>conftest.$ac_ext <<_ACEOF | |
19019 | /* end confdefs.h. */ | |
19020 | $ac_includes_default | |
19021 | int | |
19022 | main () | |
19023 | { | |
19024 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19025 | test_array [0] = 0 | |
19026 | ||
19027 | ; | |
19028 | return 0; | |
19029 | } | |
19030 | _ACEOF | |
19031 | rm -f conftest.$ac_objext | |
19032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19033 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19034 | ac_status=$? |
ac1cb8d3 VS |
19035 | grep -v '^ *+' conftest.er1 >conftest.err |
19036 | rm -f conftest.er1 | |
19037 | cat conftest.err >&5 | |
a848cd7e SC |
19038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19039 | (exit $ac_status); } && | |
9dd0f6c2 | 19040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19042 | (eval $ac_try) 2>&5 | |
19043 | ac_status=$? | |
19044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19045 | (exit $ac_status); }; } && | |
19046 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19048 | (eval $ac_try) 2>&5 | |
19049 | ac_status=$? | |
19050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19051 | (exit $ac_status); }; }; then | |
19052 | ac_hi=$ac_mid | |
19053 | else | |
19054 | echo "$as_me: failed program was:" >&5 | |
19055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19056 | ||
19057 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19058 | fi | |
ac1cb8d3 | 19059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19060 | done |
19061 | case $ac_lo in | |
19062 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19063 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19064 | See \`config.log' for more details." >&5 | |
19065 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19066 | See \`config.log' for more details." >&2;} | |
19067 | { (exit 1); exit 1; }; } ;; | |
19068 | esac | |
19069 | else | |
19070 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
19071 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19072 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19073 | { (exit 1); exit 1; }; } |
19074 | else | |
19075 | cat >conftest.$ac_ext <<_ACEOF | |
19076 | /* confdefs.h. */ | |
19077 | _ACEOF | |
19078 | cat confdefs.h >>conftest.$ac_ext | |
19079 | cat >>conftest.$ac_ext <<_ACEOF | |
19080 | /* end confdefs.h. */ | |
19081 | $ac_includes_default | |
19082 | long longval () { return (long) (sizeof (long long)); } | |
19083 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19084 | #include <stdio.h> | |
19085 | #include <stdlib.h> | |
19086 | int | |
19087 | main () | |
19088 | { | |
19089 | ||
19090 | FILE *f = fopen ("conftest.val", "w"); | |
19091 | if (! f) | |
19092 | exit (1); | |
19093 | if (((long) (sizeof (long long))) < 0) | |
19094 | { | |
19095 | long i = longval (); | |
19096 | if (i != ((long) (sizeof (long long)))) | |
19097 | exit (1); | |
19098 | fprintf (f, "%ld\n", i); | |
19099 | } | |
19100 | else | |
19101 | { | |
19102 | unsigned long i = ulongval (); | |
19103 | if (i != ((long) (sizeof (long long)))) | |
19104 | exit (1); | |
19105 | fprintf (f, "%lu\n", i); | |
19106 | } | |
19107 | exit (ferror (f) || fclose (f) != 0); | |
19108 | ||
19109 | ; | |
19110 | return 0; | |
19111 | } | |
19112 | _ACEOF | |
19113 | rm -f conftest$ac_exeext | |
19114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19115 | (eval $ac_link) 2>&5 | |
19116 | ac_status=$? | |
19117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19118 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19120 | (eval $ac_try) 2>&5 | |
19121 | ac_status=$? | |
19122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19123 | (exit $ac_status); }; }; then | |
19124 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19125 | else | |
19126 | echo "$as_me: program exited with status $ac_status" >&5 | |
19127 | echo "$as_me: failed program was:" >&5 | |
19128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19129 | ||
19130 | ( exit $ac_status ) | |
19131 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19132 | See \`config.log' for more details." >&5 | |
19133 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19134 | See \`config.log' for more details." >&2;} | |
19135 | { (exit 1); exit 1; }; } | |
19136 | fi | |
ac1cb8d3 | 19137 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19138 | fi |
19139 | fi | |
19140 | rm -f conftest.val | |
19141 | else | |
19142 | ac_cv_sizeof_long_long=0 | |
19143 | fi | |
19144 | fi | |
19145 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19146 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19147 | cat >>confdefs.h <<_ACEOF | |
19148 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19149 | _ACEOF | |
19150 | ||
19151 | ||
19152 | esac | |
19153 | ||
238ecede MW |
19154 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
19155 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
19156 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
19157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19158 | else | |
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 | ||
83d8eb47 MW |
19166 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19167 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19168 | # error "fake wchar_t" |
19169 | #endif | |
19170 | #ifdef HAVE_WCHAR_H | |
19171 | # ifdef __CYGWIN__ | |
19172 | # include <stddef.h> | |
19173 | # endif | |
19174 | # include <wchar.h> | |
19175 | #endif | |
19176 | #ifdef HAVE_STDLIB_H | |
19177 | # include <stdlib.h> | |
19178 | #endif | |
19179 | #include <stdio.h> | |
19180 | ||
19181 | ||
19182 | ||
19183 | int | |
19184 | main () | |
19185 | { | |
19186 | if ((wchar_t *) 0) | |
19187 | return 0; | |
19188 | if (sizeof (wchar_t)) | |
19189 | return 0; | |
19190 | ; | |
19191 | return 0; | |
19192 | } | |
19193 | _ACEOF | |
19194 | rm -f conftest.$ac_objext | |
19195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19196 | (eval $ac_compile) 2>conftest.er1 | |
19197 | ac_status=$? | |
19198 | grep -v '^ *+' conftest.er1 >conftest.err | |
19199 | rm -f conftest.er1 | |
19200 | cat conftest.err >&5 | |
19201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19202 | (exit $ac_status); } && | |
9dd0f6c2 | 19203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19205 | (eval $ac_try) 2>&5 | |
19206 | ac_status=$? | |
19207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19208 | (exit $ac_status); }; } && | |
19209 | { ac_try='test -s conftest.$ac_objext' | |
19210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19211 | (eval $ac_try) 2>&5 | |
19212 | ac_status=$? | |
19213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19214 | (exit $ac_status); }; }; then | |
19215 | ac_cv_type_wchar_t=yes | |
19216 | else | |
19217 | echo "$as_me: failed program was:" >&5 | |
19218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19219 | ||
19220 | ac_cv_type_wchar_t=no | |
19221 | fi | |
19222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19223 | fi | |
19224 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
19225 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
19226 | ||
a848cd7e SC |
19227 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
19228 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 19229 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
19230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19231 | else | |
238ecede MW |
19232 | if test "$ac_cv_type_wchar_t" = yes; then |
19233 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19234 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19235 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19236 | # This bug is HP SR number 8606223364. | |
19237 | if test "$cross_compiling" = yes; then | |
19238 | # Depending upon the size, compute the lo and hi bounds. | |
19239 | cat >conftest.$ac_ext <<_ACEOF | |
19240 | /* confdefs.h. */ | |
19241 | _ACEOF | |
19242 | cat confdefs.h >>conftest.$ac_ext | |
19243 | cat >>conftest.$ac_ext <<_ACEOF | |
19244 | /* end confdefs.h. */ | |
19245 | ||
83d8eb47 MW |
19246 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19247 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19248 | # error "fake wchar_t" |
19249 | #endif | |
19250 | #ifdef HAVE_WCHAR_H | |
19251 | # ifdef __CYGWIN__ | |
19252 | # include <stddef.h> | |
19253 | # endif | |
19254 | # include <wchar.h> | |
19255 | #endif | |
19256 | #ifdef HAVE_STDLIB_H | |
19257 | # include <stdlib.h> | |
19258 | #endif | |
19259 | #include <stdio.h> | |
19260 | ||
19261 | ||
19262 | ||
19263 | int | |
19264 | main () | |
19265 | { | |
19266 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
19267 | test_array [0] = 0 | |
19268 | ||
19269 | ; | |
19270 | return 0; | |
19271 | } | |
19272 | _ACEOF | |
19273 | rm -f conftest.$ac_objext | |
19274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19275 | (eval $ac_compile) 2>conftest.er1 | |
19276 | ac_status=$? | |
19277 | grep -v '^ *+' conftest.er1 >conftest.err | |
19278 | rm -f conftest.er1 | |
19279 | cat conftest.err >&5 | |
19280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19281 | (exit $ac_status); } && | |
9dd0f6c2 | 19282 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19284 | (eval $ac_try) 2>&5 | |
19285 | ac_status=$? | |
19286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19287 | (exit $ac_status); }; } && | |
19288 | { ac_try='test -s conftest.$ac_objext' | |
19289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19290 | (eval $ac_try) 2>&5 | |
19291 | ac_status=$? | |
19292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19293 | (exit $ac_status); }; }; then | |
19294 | ac_lo=0 ac_mid=0 | |
19295 | while :; do | |
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 | ||
83d8eb47 MW |
19303 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19304 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19305 | # error "fake wchar_t" |
19306 | #endif | |
19307 | #ifdef HAVE_WCHAR_H | |
19308 | # ifdef __CYGWIN__ | |
19309 | # include <stddef.h> | |
19310 | # endif | |
19311 | # include <wchar.h> | |
19312 | #endif | |
19313 | #ifdef HAVE_STDLIB_H | |
19314 | # include <stdlib.h> | |
19315 | #endif | |
19316 | #include <stdio.h> | |
19317 | ||
19318 | ||
19319 | ||
19320 | int | |
19321 | main () | |
19322 | { | |
19323 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19324 | test_array [0] = 0 | |
19325 | ||
19326 | ; | |
19327 | return 0; | |
19328 | } | |
19329 | _ACEOF | |
19330 | rm -f conftest.$ac_objext | |
19331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19332 | (eval $ac_compile) 2>conftest.er1 | |
19333 | ac_status=$? | |
19334 | grep -v '^ *+' conftest.er1 >conftest.err | |
19335 | rm -f conftest.er1 | |
19336 | cat conftest.err >&5 | |
19337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19338 | (exit $ac_status); } && | |
9dd0f6c2 | 19339 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19341 | (eval $ac_try) 2>&5 | |
19342 | ac_status=$? | |
19343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19344 | (exit $ac_status); }; } && | |
19345 | { ac_try='test -s conftest.$ac_objext' | |
19346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19347 | (eval $ac_try) 2>&5 | |
19348 | ac_status=$? | |
19349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19350 | (exit $ac_status); }; }; then | |
19351 | ac_hi=$ac_mid; break | |
19352 | else | |
19353 | echo "$as_me: failed program was:" >&5 | |
19354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19355 | ||
19356 | ac_lo=`expr $ac_mid + 1` | |
19357 | if test $ac_lo -le $ac_mid; then | |
19358 | ac_lo= ac_hi= | |
19359 | break | |
19360 | fi | |
19361 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19362 | fi | |
19363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19364 | done | |
19365 | else | |
19366 | echo "$as_me: failed program was:" >&5 | |
19367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19368 | ||
19369 | cat >conftest.$ac_ext <<_ACEOF | |
19370 | /* confdefs.h. */ | |
19371 | _ACEOF | |
19372 | cat confdefs.h >>conftest.$ac_ext | |
19373 | cat >>conftest.$ac_ext <<_ACEOF | |
19374 | /* end confdefs.h. */ | |
19375 | ||
83d8eb47 MW |
19376 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19377 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19378 | # error "fake wchar_t" |
19379 | #endif | |
19380 | #ifdef HAVE_WCHAR_H | |
19381 | # ifdef __CYGWIN__ | |
19382 | # include <stddef.h> | |
19383 | # endif | |
19384 | # include <wchar.h> | |
19385 | #endif | |
19386 | #ifdef HAVE_STDLIB_H | |
19387 | # include <stdlib.h> | |
19388 | #endif | |
19389 | #include <stdio.h> | |
19390 | ||
19391 | ||
19392 | ||
19393 | int | |
19394 | main () | |
19395 | { | |
19396 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
19397 | test_array [0] = 0 | |
19398 | ||
19399 | ; | |
19400 | return 0; | |
19401 | } | |
19402 | _ACEOF | |
19403 | rm -f conftest.$ac_objext | |
19404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19405 | (eval $ac_compile) 2>conftest.er1 | |
19406 | ac_status=$? | |
19407 | grep -v '^ *+' conftest.er1 >conftest.err | |
19408 | rm -f conftest.er1 | |
19409 | cat conftest.err >&5 | |
19410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19411 | (exit $ac_status); } && | |
9dd0f6c2 | 19412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19414 | (eval $ac_try) 2>&5 | |
19415 | ac_status=$? | |
19416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19417 | (exit $ac_status); }; } && | |
19418 | { ac_try='test -s conftest.$ac_objext' | |
19419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19420 | (eval $ac_try) 2>&5 | |
19421 | ac_status=$? | |
19422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19423 | (exit $ac_status); }; }; then | |
19424 | ac_hi=-1 ac_mid=-1 | |
19425 | while :; do | |
19426 | cat >conftest.$ac_ext <<_ACEOF | |
19427 | /* confdefs.h. */ | |
19428 | _ACEOF | |
19429 | cat confdefs.h >>conftest.$ac_ext | |
19430 | cat >>conftest.$ac_ext <<_ACEOF | |
19431 | /* end confdefs.h. */ | |
19432 | ||
83d8eb47 MW |
19433 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19434 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19435 | # error "fake wchar_t" |
19436 | #endif | |
19437 | #ifdef HAVE_WCHAR_H | |
19438 | # ifdef __CYGWIN__ | |
19439 | # include <stddef.h> | |
19440 | # endif | |
19441 | # include <wchar.h> | |
19442 | #endif | |
19443 | #ifdef HAVE_STDLIB_H | |
19444 | # include <stdlib.h> | |
19445 | #endif | |
19446 | #include <stdio.h> | |
19447 | ||
19448 | ||
19449 | ||
19450 | int | |
19451 | main () | |
19452 | { | |
19453 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
19454 | test_array [0] = 0 | |
19455 | ||
19456 | ; | |
19457 | return 0; | |
19458 | } | |
19459 | _ACEOF | |
19460 | rm -f conftest.$ac_objext | |
19461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19462 | (eval $ac_compile) 2>conftest.er1 | |
19463 | ac_status=$? | |
19464 | grep -v '^ *+' conftest.er1 >conftest.err | |
19465 | rm -f conftest.er1 | |
19466 | cat conftest.err >&5 | |
19467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19468 | (exit $ac_status); } && | |
9dd0f6c2 | 19469 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19471 | (eval $ac_try) 2>&5 | |
19472 | ac_status=$? | |
19473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19474 | (exit $ac_status); }; } && | |
19475 | { ac_try='test -s conftest.$ac_objext' | |
19476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19477 | (eval $ac_try) 2>&5 | |
19478 | ac_status=$? | |
19479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19480 | (exit $ac_status); }; }; then | |
19481 | ac_lo=$ac_mid; break | |
19482 | else | |
19483 | echo "$as_me: failed program was:" >&5 | |
19484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19485 | ||
19486 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
19487 | if test $ac_mid -le $ac_hi; then | |
19488 | ac_lo= ac_hi= | |
19489 | break | |
19490 | fi | |
19491 | ac_mid=`expr 2 '*' $ac_mid` | |
19492 | fi | |
19493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19494 | done | |
19495 | else | |
19496 | echo "$as_me: failed program was:" >&5 | |
19497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19498 | ||
19499 | ac_lo= ac_hi= | |
19500 | fi | |
19501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19502 | fi | |
19503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19504 | # Binary search between lo and hi bounds. | |
19505 | while test "x$ac_lo" != "x$ac_hi"; do | |
19506 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19507 | cat >conftest.$ac_ext <<_ACEOF | |
19508 | /* confdefs.h. */ | |
19509 | _ACEOF | |
19510 | cat confdefs.h >>conftest.$ac_ext | |
19511 | cat >>conftest.$ac_ext <<_ACEOF | |
19512 | /* end confdefs.h. */ | |
19513 | ||
83d8eb47 MW |
19514 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19515 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19516 | # error "fake wchar_t" |
19517 | #endif | |
19518 | #ifdef HAVE_WCHAR_H | |
19519 | # ifdef __CYGWIN__ | |
19520 | # include <stddef.h> | |
19521 | # endif | |
19522 | # include <wchar.h> | |
19523 | #endif | |
19524 | #ifdef HAVE_STDLIB_H | |
19525 | # include <stdlib.h> | |
19526 | #endif | |
19527 | #include <stdio.h> | |
a848cd7e | 19528 | |
a848cd7e | 19529 | |
a848cd7e | 19530 | |
238ecede MW |
19531 | int |
19532 | main () | |
19533 | { | |
19534 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19535 | test_array [0] = 0 | |
a848cd7e | 19536 | |
238ecede MW |
19537 | ; |
19538 | return 0; | |
19539 | } | |
19540 | _ACEOF | |
19541 | rm -f conftest.$ac_objext | |
19542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19543 | (eval $ac_compile) 2>conftest.er1 | |
19544 | ac_status=$? | |
19545 | grep -v '^ *+' conftest.er1 >conftest.err | |
19546 | rm -f conftest.er1 | |
19547 | cat conftest.err >&5 | |
19548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19549 | (exit $ac_status); } && | |
9dd0f6c2 | 19550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19552 | (eval $ac_try) 2>&5 | |
19553 | ac_status=$? | |
19554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19555 | (exit $ac_status); }; } && | |
19556 | { ac_try='test -s conftest.$ac_objext' | |
19557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19558 | (eval $ac_try) 2>&5 | |
19559 | ac_status=$? | |
19560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19561 | (exit $ac_status); }; }; then | |
19562 | ac_hi=$ac_mid | |
19563 | else | |
19564 | echo "$as_me: failed program was:" >&5 | |
19565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19566 | ||
19567 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19568 | fi | |
19569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19570 | done | |
19571 | case $ac_lo in | |
19572 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
19573 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
19574 | See \`config.log' for more details." >&5 | |
19575 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
19576 | See \`config.log' for more details." >&2;} | |
19577 | { (exit 1); exit 1; }; } ;; | |
19578 | esac | |
19579 | else | |
19580 | if test "$cross_compiling" = yes; then | |
9dd0f6c2 DE |
19581 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19582 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 19583 | { (exit 1); exit 1; }; } |
a848cd7e SC |
19584 | else |
19585 | cat >conftest.$ac_ext <<_ACEOF | |
19586 | /* confdefs.h. */ | |
19587 | _ACEOF | |
19588 | cat confdefs.h >>conftest.$ac_ext | |
19589 | cat >>conftest.$ac_ext <<_ACEOF | |
19590 | /* end confdefs.h. */ | |
19591 | ||
83d8eb47 MW |
19592 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19593 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19594 | # error "fake wchar_t" |
19595 | #endif | |
19596 | #ifdef HAVE_WCHAR_H | |
19597 | # ifdef __CYGWIN__ | |
19598 | # include <stddef.h> | |
19599 | # endif | |
19600 | # include <wchar.h> | |
19601 | #endif | |
19602 | #ifdef HAVE_STDLIB_H | |
19603 | # include <stdlib.h> | |
19604 | #endif | |
19605 | #include <stdio.h> | |
19606 | ||
19607 | ||
19608 | ||
19609 | long longval () { return (long) (sizeof (wchar_t)); } | |
19610 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
19611 | #include <stdio.h> | |
19612 | #include <stdlib.h> | |
19613 | int | |
19614 | main () | |
19615 | { | |
a848cd7e | 19616 | |
238ecede MW |
19617 | FILE *f = fopen ("conftest.val", "w"); |
19618 | if (! f) | |
19619 | exit (1); | |
19620 | if (((long) (sizeof (wchar_t))) < 0) | |
19621 | { | |
19622 | long i = longval (); | |
19623 | if (i != ((long) (sizeof (wchar_t)))) | |
19624 | exit (1); | |
19625 | fprintf (f, "%ld\n", i); | |
19626 | } | |
19627 | else | |
19628 | { | |
19629 | unsigned long i = ulongval (); | |
19630 | if (i != ((long) (sizeof (wchar_t)))) | |
19631 | exit (1); | |
19632 | fprintf (f, "%lu\n", i); | |
19633 | } | |
19634 | exit (ferror (f) || fclose (f) != 0); | |
19635 | ||
19636 | ; | |
19637 | return 0; | |
19638 | } | |
a848cd7e SC |
19639 | _ACEOF |
19640 | rm -f conftest$ac_exeext | |
19641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19642 | (eval $ac_link) 2>&5 | |
19643 | ac_status=$? | |
19644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19645 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19647 | (eval $ac_try) 2>&5 | |
19648 | ac_status=$? | |
19649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19650 | (exit $ac_status); }; }; then | |
238ecede | 19651 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
19652 | else |
19653 | echo "$as_me: program exited with status $ac_status" >&5 | |
19654 | echo "$as_me: failed program was:" >&5 | |
19655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19656 | ||
19657 | ( exit $ac_status ) | |
238ecede MW |
19658 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
19659 | See \`config.log' for more details." >&5 | |
19660 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
19661 | See \`config.log' for more details." >&2;} | |
19662 | { (exit 1); exit 1; }; } | |
a848cd7e | 19663 | fi |
ac1cb8d3 | 19664 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19665 | fi |
a848cd7e | 19666 | fi |
238ecede MW |
19667 | rm -f conftest.val |
19668 | else | |
19669 | ac_cv_sizeof_wchar_t=0 | |
19670 | fi | |
19671 | fi | |
19672 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
19673 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 19674 | cat >>confdefs.h <<_ACEOF |
238ecede | 19675 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
19676 | _ACEOF |
19677 | ||
19678 | ||
47a7e797 MW |
19679 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
19680 | wxUSE_WCHAR_T=yes | |
19681 | else | |
19682 | wxUSE_WCHAR_T=no | |
19683 | fi | |
238ecede | 19684 | |
ba3d13e1 VZ |
19685 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
19686 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
19687 | if test "${wx_cv_func_va_copy+set}" = set; then | |
19688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19689 | else | |
19690 | ||
19691 | cat >conftest.$ac_ext <<_ACEOF | |
19692 | ||
19693 | #include <stdarg.h> | |
19694 | void foo(char *f, ...) | |
19695 | { | |
19696 | va_list ap1, ap2; | |
19697 | va_start(ap1, f); | |
19698 | va_copy(ap2, ap1); | |
19699 | va_end(ap2); | |
19700 | va_end(ap1); | |
19701 | } | |
5886b072 VZ |
19702 | int main() |
19703 | { | |
b902e639 VZ |
19704 | foo("hi", 17); |
19705 | return 0; | |
5886b072 | 19706 | } |
ba3d13e1 VZ |
19707 | _ACEOF |
19708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19710 | (eval $ac_link) 2>conftest.er1 | |
19711 | ac_status=$? | |
19712 | grep -v '^ *+' conftest.er1 >conftest.err | |
19713 | rm -f conftest.er1 | |
19714 | cat conftest.err >&5 | |
19715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19716 | (exit $ac_status); } && | |
9dd0f6c2 | 19717 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
19718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19719 | (eval $ac_try) 2>&5 | |
19720 | ac_status=$? | |
19721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19722 | (exit $ac_status); }; } && | |
19723 | { ac_try='test -s conftest$ac_exeext' | |
19724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19725 | (eval $ac_try) 2>&5 | |
19726 | ac_status=$? | |
19727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19728 | (exit $ac_status); }; }; then | |
19729 | wx_cv_func_va_copy=yes | |
19730 | else | |
19731 | echo "$as_me: failed program was:" >&5 | |
19732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19733 | ||
19734 | wx_cv_func_va_copy=no | |
19735 | ||
19736 | fi | |
19737 | rm -f conftest.err conftest.$ac_objext \ | |
19738 | conftest$ac_exeext conftest.$ac_ext | |
19739 | ||
19740 | ||
19741 | fi | |
19742 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
19743 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
19744 | ||
19745 | if test $wx_cv_func_va_copy = "yes"; then | |
19746 | cat >>confdefs.h <<\_ACEOF | |
19747 | #define HAVE_VA_COPY 1 | |
19748 | _ACEOF | |
19749 | ||
19750 | else | |
19751 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
19752 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
19753 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
19754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19755 | else | |
19756 | ||
19757 | if test "$cross_compiling" = yes; then | |
19758 | wx_cv_type_va_list_lvalue=yes | |
19759 | ||
19760 | else | |
19761 | cat >conftest.$ac_ext <<_ACEOF | |
19762 | ||
19763 | #include <stdarg.h> | |
19764 | int foo(char *f, ...) | |
19765 | { | |
19766 | va_list ap1, ap2; | |
19767 | va_start(ap1, f); | |
19768 | ap2 = ap1; | |
19769 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
19770 | return 1; | |
19771 | va_end(ap2); | |
19772 | va_end(ap1); | |
19773 | return 0; | |
19774 | } | |
19775 | int main() | |
19776 | { | |
19777 | return foo("hi", 17); | |
19778 | } | |
19779 | _ACEOF | |
19780 | rm -f conftest$ac_exeext | |
19781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19782 | (eval $ac_link) 2>&5 | |
19783 | ac_status=$? | |
19784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19785 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19787 | (eval $ac_try) 2>&5 | |
19788 | ac_status=$? | |
19789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19790 | (exit $ac_status); }; }; then | |
19791 | wx_cv_type_va_list_lvalue=yes | |
19792 | else | |
19793 | echo "$as_me: program exited with status $ac_status" >&5 | |
19794 | echo "$as_me: failed program was:" >&5 | |
19795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19796 | ||
19797 | ( exit $ac_status ) | |
19798 | wx_cv_type_va_list_lvalue=no | |
19799 | fi | |
19800 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19801 | fi | |
19802 | ||
19803 | ||
19804 | fi | |
19805 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
19806 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
19807 | ||
19808 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
19809 | cat >>confdefs.h <<\_ACEOF | |
19810 | #define VA_LIST_IS_ARRAY 1 | |
19811 | _ACEOF | |
19812 | ||
19813 | fi | |
19814 | fi | |
19815 | ||
a848cd7e SC |
19816 | # Check whether --enable-largefile or --disable-largefile was given. |
19817 | if test "${enable_largefile+set}" = set; then | |
19818 | enableval="$enable_largefile" | |
19819 | ||
19820 | fi; | |
19821 | if test "$enable_largefile" != no; then | |
19822 | wx_largefile=no | |
19823 | ||
19824 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
19825 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
19826 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
19827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19828 | else | |
19829 | ||
19830 | cat >conftest.$ac_ext <<_ACEOF | |
19831 | /* confdefs.h. */ | |
19832 | _ACEOF | |
19833 | cat confdefs.h >>conftest.$ac_ext | |
19834 | cat >>conftest.$ac_ext <<_ACEOF | |
19835 | /* end confdefs.h. */ | |
19836 | #define _FILE_OFFSET_BITS 64 | |
19837 | #include <sys/types.h> | |
19838 | int | |
19839 | main () | |
19840 | { | |
19841 | typedef struct { | |
19842 | unsigned int field: sizeof(off_t) == 8; | |
19843 | } wxlf; | |
19844 | ||
19845 | ; | |
19846 | return 0; | |
19847 | } | |
19848 | _ACEOF | |
19849 | rm -f conftest.$ac_objext | |
19850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19851 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19852 | ac_status=$? |
ac1cb8d3 VS |
19853 | grep -v '^ *+' conftest.er1 >conftest.err |
19854 | rm -f conftest.er1 | |
19855 | cat conftest.err >&5 | |
a848cd7e SC |
19856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19857 | (exit $ac_status); } && | |
9dd0f6c2 | 19858 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19860 | (eval $ac_try) 2>&5 | |
19861 | ac_status=$? | |
19862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19863 | (exit $ac_status); }; } && | |
19864 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19866 | (eval $ac_try) 2>&5 | |
19867 | ac_status=$? | |
19868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19869 | (exit $ac_status); }; }; then | |
19870 | ac_cv_sys_file_offset_bits=64 | |
19871 | else | |
19872 | echo "$as_me: failed program was:" >&5 | |
19873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19874 | ||
19875 | ac_cv_sys_file_offset_bits=no | |
19876 | fi | |
ac1cb8d3 | 19877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19878 | |
19879 | ||
19880 | fi | |
19881 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
19882 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
19883 | ||
19884 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
19885 | wx_largefile=yes | |
19886 | cat >>confdefs.h <<_ACEOF | |
19887 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
19888 | _ACEOF | |
19889 | ||
19890 | fi | |
19891 | ||
19892 | if test "x$wx_largefile" != "xyes"; then | |
19893 | ||
19894 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
19895 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
19896 | if test "${ac_cv_sys_large_files+set}" = set; then | |
19897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19898 | else | |
19899 | ||
19900 | cat >conftest.$ac_ext <<_ACEOF | |
19901 | /* confdefs.h. */ | |
19902 | _ACEOF | |
19903 | cat confdefs.h >>conftest.$ac_ext | |
19904 | cat >>conftest.$ac_ext <<_ACEOF | |
19905 | /* end confdefs.h. */ | |
19906 | #define _LARGE_FILES 1 | |
19907 | #include <sys/types.h> | |
19908 | int | |
19909 | main () | |
19910 | { | |
19911 | typedef struct { | |
19912 | unsigned int field: sizeof(off_t) == 8; | |
19913 | } wxlf; | |
19914 | ||
19915 | ; | |
19916 | return 0; | |
19917 | } | |
19918 | _ACEOF | |
19919 | rm -f conftest.$ac_objext | |
19920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19921 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19922 | ac_status=$? |
ac1cb8d3 VS |
19923 | grep -v '^ *+' conftest.er1 >conftest.err |
19924 | rm -f conftest.er1 | |
19925 | cat conftest.err >&5 | |
a848cd7e SC |
19926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19927 | (exit $ac_status); } && | |
9dd0f6c2 | 19928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19930 | (eval $ac_try) 2>&5 | |
19931 | ac_status=$? | |
19932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19933 | (exit $ac_status); }; } && | |
19934 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19936 | (eval $ac_try) 2>&5 | |
19937 | ac_status=$? | |
19938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19939 | (exit $ac_status); }; }; then | |
19940 | ac_cv_sys_large_files=1 | |
19941 | else | |
19942 | echo "$as_me: failed program was:" >&5 | |
19943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19944 | ||
19945 | ac_cv_sys_large_files=no | |
19946 | fi | |
ac1cb8d3 | 19947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19948 | |
19949 | ||
19950 | fi | |
19951 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
19952 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
19953 | ||
19954 | if test "$ac_cv_sys_large_files" != no; then | |
19955 | wx_largefile=yes | |
19956 | cat >>confdefs.h <<_ACEOF | |
19957 | #define _LARGE_FILES $ac_cv_sys_large_files | |
19958 | _ACEOF | |
19959 | ||
19960 | fi | |
19961 | ||
19962 | fi | |
19963 | ||
19964 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
19965 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
19966 | if test "x$wx_largefile" = "xyes"; then | |
19967 | cat >>confdefs.h <<\_ACEOF | |
19968 | #define HAVE_LARGEFILE_SUPPORT 1 | |
19969 | _ACEOF | |
19970 | ||
19971 | fi | |
19972 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
19973 | echo "${ECHO_T}$wx_largefile" >&6 | |
19974 | fi | |
19975 | ||
5b674b9d DE |
19976 | |
19977 | if test "x$wx_largefile" = "xyes"; then | |
19978 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
19979 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
19980 | else | |
19981 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
19982 | fi | |
19983 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
19984 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
19985 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
19986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19987 | else | |
19988 | while :; do | |
19989 | ac_cv_sys_largefile_source=no | |
19990 | cat >conftest.$ac_ext <<_ACEOF | |
19991 | /* confdefs.h. */ | |
19992 | _ACEOF | |
19993 | cat confdefs.h >>conftest.$ac_ext | |
19994 | cat >>conftest.$ac_ext <<_ACEOF | |
19995 | /* end confdefs.h. */ | |
19996 | #include <stdio.h> | |
19997 | int | |
19998 | main () | |
19999 | { | |
20000 | return !fseeko; | |
20001 | ; | |
20002 | return 0; | |
20003 | } | |
20004 | _ACEOF | |
20005 | rm -f conftest.$ac_objext | |
20006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20007 | (eval $ac_compile) 2>conftest.er1 | |
20008 | ac_status=$? | |
20009 | grep -v '^ *+' conftest.er1 >conftest.err | |
20010 | rm -f conftest.er1 | |
20011 | cat conftest.err >&5 | |
20012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20013 | (exit $ac_status); } && | |
9dd0f6c2 | 20014 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20016 | (eval $ac_try) 2>&5 | |
20017 | ac_status=$? | |
20018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20019 | (exit $ac_status); }; } && | |
20020 | { ac_try='test -s conftest.$ac_objext' | |
20021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20022 | (eval $ac_try) 2>&5 | |
20023 | ac_status=$? | |
20024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20025 | (exit $ac_status); }; }; then | |
20026 | break | |
20027 | else | |
20028 | echo "$as_me: failed program was:" >&5 | |
20029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20030 | ||
20031 | fi | |
20032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20033 | cat >conftest.$ac_ext <<_ACEOF | |
20034 | /* confdefs.h. */ | |
20035 | _ACEOF | |
20036 | cat confdefs.h >>conftest.$ac_ext | |
20037 | cat >>conftest.$ac_ext <<_ACEOF | |
20038 | /* end confdefs.h. */ | |
20039 | #define _LARGEFILE_SOURCE 1 | |
20040 | #include <stdio.h> | |
20041 | int | |
20042 | main () | |
20043 | { | |
20044 | return !fseeko; | |
20045 | ; | |
20046 | return 0; | |
20047 | } | |
20048 | _ACEOF | |
20049 | rm -f conftest.$ac_objext | |
20050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20051 | (eval $ac_compile) 2>conftest.er1 | |
20052 | ac_status=$? | |
20053 | grep -v '^ *+' conftest.er1 >conftest.err | |
20054 | rm -f conftest.er1 | |
20055 | cat conftest.err >&5 | |
20056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20057 | (exit $ac_status); } && | |
9dd0f6c2 | 20058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20060 | (eval $ac_try) 2>&5 | |
20061 | ac_status=$? | |
20062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20063 | (exit $ac_status); }; } && | |
20064 | { ac_try='test -s conftest.$ac_objext' | |
20065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20066 | (eval $ac_try) 2>&5 | |
20067 | ac_status=$? | |
20068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20069 | (exit $ac_status); }; }; then | |
20070 | ac_cv_sys_largefile_source=1; break | |
20071 | else | |
20072 | echo "$as_me: failed program was:" >&5 | |
20073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20074 | ||
20075 | fi | |
20076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20077 | break | |
20078 | done | |
20079 | fi | |
20080 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
20081 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
20082 | if test "$ac_cv_sys_largefile_source" != no; then | |
20083 | ||
20084 | cat >>confdefs.h <<_ACEOF | |
20085 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
20086 | _ACEOF | |
20087 | ||
20088 | fi | |
20089 | rm -f conftest* | |
20090 | ||
20091 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
20092 | # in glibc 2.1.3, but that breaks too many other things. | |
20093 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
20094 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
20095 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
20096 | if test "${ac_cv_func_fseeko+set}" = set; then | |
20097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20098 | else | |
20099 | cat >conftest.$ac_ext <<_ACEOF | |
20100 | /* confdefs.h. */ | |
20101 | _ACEOF | |
20102 | cat confdefs.h >>conftest.$ac_ext | |
20103 | cat >>conftest.$ac_ext <<_ACEOF | |
20104 | /* end confdefs.h. */ | |
20105 | #include <stdio.h> | |
20106 | int | |
20107 | main () | |
20108 | { | |
20109 | return fseeko && fseeko (stdin, 0, 0); | |
20110 | ; | |
20111 | return 0; | |
20112 | } | |
20113 | _ACEOF | |
20114 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20116 | (eval $ac_link) 2>conftest.er1 | |
20117 | ac_status=$? | |
20118 | grep -v '^ *+' conftest.er1 >conftest.err | |
20119 | rm -f conftest.er1 | |
20120 | cat conftest.err >&5 | |
20121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20122 | (exit $ac_status); } && | |
9dd0f6c2 | 20123 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20125 | (eval $ac_try) 2>&5 | |
20126 | ac_status=$? | |
20127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20128 | (exit $ac_status); }; } && | |
20129 | { ac_try='test -s conftest$ac_exeext' | |
20130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20131 | (eval $ac_try) 2>&5 | |
20132 | ac_status=$? | |
20133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20134 | (exit $ac_status); }; }; then | |
20135 | ac_cv_func_fseeko=yes | |
20136 | else | |
20137 | echo "$as_me: failed program was:" >&5 | |
20138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20139 | ||
20140 | ac_cv_func_fseeko=no | |
20141 | fi | |
20142 | rm -f conftest.err conftest.$ac_objext \ | |
20143 | conftest$ac_exeext conftest.$ac_ext | |
20144 | fi | |
20145 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
20146 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
20147 | if test $ac_cv_func_fseeko = yes; then | |
20148 | ||
20149 | cat >>confdefs.h <<\_ACEOF | |
20150 | #define HAVE_FSEEKO 1 | |
20151 | _ACEOF | |
20152 | ||
20153 | fi | |
20154 | ||
5b674b9d DE |
20155 | if test "$ac_cv_sys_largefile_source" != no; then |
20156 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
20157 | fi |
20158 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
20159 | fi | |
20160 | ||
20161 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
20162 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
20163 | if test "${ac_cv_c_bigendian+set}" = set; then | |
20164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20165 | else | |
20166 | ac_cv_c_bigendian=unknown | |
20167 | # See if sys/param.h defines the BYTE_ORDER macro. | |
20168 | cat >conftest.$ac_ext <<_ACEOF | |
20169 | /* confdefs.h. */ | |
20170 | _ACEOF | |
20171 | cat confdefs.h >>conftest.$ac_ext | |
20172 | cat >>conftest.$ac_ext <<_ACEOF | |
20173 | /* end confdefs.h. */ | |
20174 | #include <sys/types.h> | |
20175 | #include <sys/param.h> | |
20176 | int | |
20177 | main () | |
20178 | { | |
20179 | ||
20180 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
20181 | bogus endian macros | |
20182 | #endif | |
20183 | ; | |
20184 | return 0; | |
20185 | } | |
20186 | _ACEOF | |
20187 | rm -f conftest.$ac_objext | |
20188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20189 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20190 | ac_status=$? |
ac1cb8d3 VS |
20191 | grep -v '^ *+' conftest.er1 >conftest.err |
20192 | rm -f conftest.er1 | |
20193 | cat conftest.err >&5 | |
a848cd7e SC |
20194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20195 | (exit $ac_status); } && | |
9dd0f6c2 | 20196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20198 | (eval $ac_try) 2>&5 | |
20199 | ac_status=$? | |
20200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20201 | (exit $ac_status); }; } && | |
20202 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20204 | (eval $ac_try) 2>&5 | |
20205 | ac_status=$? | |
20206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20207 | (exit $ac_status); }; }; then | |
20208 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
20209 | cat >conftest.$ac_ext <<_ACEOF | |
20210 | /* confdefs.h. */ | |
20211 | _ACEOF | |
20212 | cat confdefs.h >>conftest.$ac_ext | |
20213 | cat >>conftest.$ac_ext <<_ACEOF | |
20214 | /* end confdefs.h. */ | |
20215 | #include <sys/types.h> | |
20216 | #include <sys/param.h> | |
20217 | int | |
20218 | main () | |
20219 | { | |
20220 | ||
20221 | #if BYTE_ORDER != BIG_ENDIAN | |
20222 | not big endian | |
20223 | #endif | |
20224 | ; | |
20225 | return 0; | |
20226 | } | |
20227 | _ACEOF | |
20228 | rm -f conftest.$ac_objext | |
20229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20230 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20231 | ac_status=$? |
ac1cb8d3 VS |
20232 | grep -v '^ *+' conftest.er1 >conftest.err |
20233 | rm -f conftest.er1 | |
20234 | cat conftest.err >&5 | |
a848cd7e SC |
20235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20236 | (exit $ac_status); } && | |
9dd0f6c2 | 20237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20239 | (eval $ac_try) 2>&5 | |
20240 | ac_status=$? | |
20241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20242 | (exit $ac_status); }; } && | |
20243 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20245 | (eval $ac_try) 2>&5 | |
20246 | ac_status=$? | |
20247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20248 | (exit $ac_status); }; }; then | |
20249 | ac_cv_c_bigendian=yes | |
20250 | else | |
20251 | echo "$as_me: failed program was:" >&5 | |
20252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20253 | ||
20254 | ac_cv_c_bigendian=no | |
20255 | fi | |
ac1cb8d3 | 20256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20257 | else |
20258 | echo "$as_me: failed program was:" >&5 | |
20259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20260 | ||
20261 | fi | |
ac1cb8d3 | 20262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20263 | if test $ac_cv_c_bigendian = unknown; then |
20264 | if test "$cross_compiling" = yes; then | |
20265 | ac_cv_c_bigendian=unknown | |
20266 | else | |
20267 | cat >conftest.$ac_ext <<_ACEOF | |
20268 | /* confdefs.h. */ | |
20269 | _ACEOF | |
20270 | cat confdefs.h >>conftest.$ac_ext | |
20271 | cat >>conftest.$ac_ext <<_ACEOF | |
20272 | /* end confdefs.h. */ | |
20273 | main () { | |
20274 | /* Are we little or big endian? From Harbison&Steele. */ | |
20275 | union | |
20276 | { | |
20277 | long l; | |
20278 | char c[sizeof (long)]; | |
20279 | } u; | |
20280 | u.l = 1; | |
20281 | exit (u.c[sizeof (long) - 1] == 1); | |
20282 | } | |
20283 | _ACEOF | |
20284 | rm -f conftest$ac_exeext | |
20285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20286 | (eval $ac_link) 2>&5 | |
20287 | ac_status=$? | |
20288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20289 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20291 | (eval $ac_try) 2>&5 | |
20292 | ac_status=$? | |
20293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20294 | (exit $ac_status); }; }; then | |
20295 | ac_cv_c_bigendian=no | |
20296 | else | |
20297 | echo "$as_me: program exited with status $ac_status" >&5 | |
20298 | echo "$as_me: failed program was:" >&5 | |
20299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20300 | ||
20301 | ( exit $ac_status ) | |
20302 | ac_cv_c_bigendian=yes | |
20303 | fi | |
ac1cb8d3 | 20304 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20305 | fi |
20306 | fi | |
20307 | fi | |
20308 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
20309 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
20310 | if test $ac_cv_c_bigendian = unknown; then | |
20311 | { 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 | |
20312 | 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;} | |
20313 | fi | |
20314 | if test $ac_cv_c_bigendian = yes; then | |
20315 | cat >>confdefs.h <<\_ACEOF | |
20316 | #define WORDS_BIGENDIAN 1 | |
20317 | _ACEOF | |
20318 | ||
20319 | fi | |
20320 | ||
20321 | ||
20322 | ac_ext=cc | |
20323 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20324 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20325 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20326 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20327 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
20328 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
20329 | if test -z "$CXXCPP"; then | |
20330 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
20331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20332 | else | |
20333 | # Double quotes because CXXCPP needs to be expanded | |
20334 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
20335 | do | |
20336 | ac_preproc_ok=false | |
20337 | for ac_cxx_preproc_warn_flag in '' yes | |
20338 | do | |
20339 | # Use a header file that comes with gcc, so configuring glibc | |
20340 | # with a fresh cross-compiler works. | |
20341 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20342 | # <limits.h> exists even on freestanding compilers. | |
20343 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20344 | # not just through cpp. "Syntax error" is here to catch this case. | |
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 | #ifdef __STDC__ | |
20352 | # include <limits.h> | |
20353 | #else | |
20354 | # include <assert.h> | |
20355 | #endif | |
ac1cb8d3 | 20356 | Syntax error |
a848cd7e SC |
20357 | _ACEOF |
20358 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20359 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20360 | ac_status=$? | |
20361 | grep -v '^ *+' conftest.er1 >conftest.err | |
20362 | rm -f conftest.er1 | |
20363 | cat conftest.err >&5 | |
20364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20365 | (exit $ac_status); } >/dev/null; then | |
20366 | if test -s conftest.err; then | |
20367 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20368 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20369 | else |
20370 | ac_cpp_err= | |
20371 | fi | |
20372 | else | |
20373 | ac_cpp_err=yes | |
20374 | fi | |
20375 | if test -z "$ac_cpp_err"; then | |
20376 | : | |
20377 | else | |
20378 | echo "$as_me: failed program was:" >&5 | |
20379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20380 | ||
20381 | # Broken: fails on valid input. | |
20382 | continue | |
20383 | fi | |
20384 | rm -f conftest.err conftest.$ac_ext | |
20385 | ||
20386 | # OK, works on sane cases. Now check whether non-existent headers | |
20387 | # can be detected and how. | |
20388 | cat >conftest.$ac_ext <<_ACEOF | |
20389 | /* confdefs.h. */ | |
20390 | _ACEOF | |
20391 | cat confdefs.h >>conftest.$ac_ext | |
20392 | cat >>conftest.$ac_ext <<_ACEOF | |
20393 | /* end confdefs.h. */ | |
20394 | #include <ac_nonexistent.h> | |
20395 | _ACEOF | |
20396 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20397 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20398 | ac_status=$? | |
20399 | grep -v '^ *+' conftest.er1 >conftest.err | |
20400 | rm -f conftest.er1 | |
20401 | cat conftest.err >&5 | |
20402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20403 | (exit $ac_status); } >/dev/null; then | |
20404 | if test -s conftest.err; then | |
20405 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20406 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20407 | else |
20408 | ac_cpp_err= | |
20409 | fi | |
20410 | else | |
20411 | ac_cpp_err=yes | |
20412 | fi | |
20413 | if test -z "$ac_cpp_err"; then | |
20414 | # Broken: success on invalid input. | |
20415 | continue | |
20416 | else | |
20417 | echo "$as_me: failed program was:" >&5 | |
20418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20419 | ||
20420 | # Passes both tests. | |
20421 | ac_preproc_ok=: | |
20422 | break | |
20423 | fi | |
20424 | rm -f conftest.err conftest.$ac_ext | |
20425 | ||
20426 | done | |
20427 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20428 | rm -f conftest.err conftest.$ac_ext | |
20429 | if $ac_preproc_ok; then | |
20430 | break | |
20431 | fi | |
20432 | ||
20433 | done | |
20434 | ac_cv_prog_CXXCPP=$CXXCPP | |
20435 | ||
20436 | fi | |
20437 | CXXCPP=$ac_cv_prog_CXXCPP | |
20438 | else | |
20439 | ac_cv_prog_CXXCPP=$CXXCPP | |
20440 | fi | |
20441 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
20442 | echo "${ECHO_T}$CXXCPP" >&6 | |
20443 | ac_preproc_ok=false | |
20444 | for ac_cxx_preproc_warn_flag in '' yes | |
20445 | do | |
20446 | # Use a header file that comes with gcc, so configuring glibc | |
20447 | # with a fresh cross-compiler works. | |
20448 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20449 | # <limits.h> exists even on freestanding compilers. | |
20450 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20451 | # not just through cpp. "Syntax error" is here to catch this case. | |
20452 | cat >conftest.$ac_ext <<_ACEOF | |
20453 | /* confdefs.h. */ | |
20454 | _ACEOF | |
20455 | cat confdefs.h >>conftest.$ac_ext | |
20456 | cat >>conftest.$ac_ext <<_ACEOF | |
20457 | /* end confdefs.h. */ | |
20458 | #ifdef __STDC__ | |
20459 | # include <limits.h> | |
20460 | #else | |
20461 | # include <assert.h> | |
20462 | #endif | |
ac1cb8d3 | 20463 | Syntax error |
a848cd7e SC |
20464 | _ACEOF |
20465 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20466 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20467 | ac_status=$? | |
20468 | grep -v '^ *+' conftest.er1 >conftest.err | |
20469 | rm -f conftest.er1 | |
20470 | cat conftest.err >&5 | |
20471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20472 | (exit $ac_status); } >/dev/null; then | |
20473 | if test -s conftest.err; then | |
20474 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20475 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20476 | else |
20477 | ac_cpp_err= | |
20478 | fi | |
20479 | else | |
20480 | ac_cpp_err=yes | |
20481 | fi | |
20482 | if test -z "$ac_cpp_err"; then | |
20483 | : | |
20484 | else | |
20485 | echo "$as_me: failed program was:" >&5 | |
20486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20487 | ||
20488 | # Broken: fails on valid input. | |
20489 | continue | |
20490 | fi | |
20491 | rm -f conftest.err conftest.$ac_ext | |
20492 | ||
20493 | # OK, works on sane cases. Now check whether non-existent headers | |
20494 | # can be detected and how. | |
20495 | cat >conftest.$ac_ext <<_ACEOF | |
20496 | /* confdefs.h. */ | |
20497 | _ACEOF | |
20498 | cat confdefs.h >>conftest.$ac_ext | |
20499 | cat >>conftest.$ac_ext <<_ACEOF | |
20500 | /* end confdefs.h. */ | |
20501 | #include <ac_nonexistent.h> | |
20502 | _ACEOF | |
20503 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20504 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20505 | ac_status=$? | |
20506 | grep -v '^ *+' conftest.er1 >conftest.err | |
20507 | rm -f conftest.er1 | |
20508 | cat conftest.err >&5 | |
20509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20510 | (exit $ac_status); } >/dev/null; then | |
20511 | if test -s conftest.err; then | |
20512 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20513 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20514 | else |
20515 | ac_cpp_err= | |
20516 | fi | |
20517 | else | |
20518 | ac_cpp_err=yes | |
20519 | fi | |
20520 | if test -z "$ac_cpp_err"; then | |
20521 | # Broken: success on invalid input. | |
20522 | continue | |
20523 | else | |
20524 | echo "$as_me: failed program was:" >&5 | |
20525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20526 | ||
20527 | # Passes both tests. | |
20528 | ac_preproc_ok=: | |
20529 | break | |
20530 | fi | |
20531 | rm -f conftest.err conftest.$ac_ext | |
20532 | ||
20533 | done | |
20534 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20535 | rm -f conftest.err conftest.$ac_ext | |
20536 | if $ac_preproc_ok; then | |
20537 | : | |
20538 | else | |
20539 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20540 | See \`config.log' for more details." >&5 | |
20541 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20542 | See \`config.log' for more details." >&2;} | |
20543 | { (exit 1); exit 1; }; } | |
20544 | fi | |
20545 | ||
20546 | ac_ext=cc | |
20547 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20548 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20549 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20550 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20551 | ||
20552 | ||
20553 | ||
20554 | ||
20555 | ||
20556 | ac_ext=cc | |
20557 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20558 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20559 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20560 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20561 | ||
20562 | ||
20563 | ||
20564 | for ac_header in iostream | |
20565 | do | |
20566 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20567 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20568 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20569 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20570 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20572 | fi | |
20573 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20574 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20575 | else | |
20576 | # Is the header compilable? | |
20577 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20578 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20579 | cat >conftest.$ac_ext <<_ACEOF | |
20580 | /* confdefs.h. */ | |
20581 | _ACEOF | |
20582 | cat confdefs.h >>conftest.$ac_ext | |
20583 | cat >>conftest.$ac_ext <<_ACEOF | |
20584 | /* end confdefs.h. */ | |
20585 | $ac_includes_default | |
20586 | #include <$ac_header> | |
20587 | _ACEOF | |
20588 | rm -f conftest.$ac_objext | |
20589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20590 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20591 | ac_status=$? |
ac1cb8d3 VS |
20592 | grep -v '^ *+' conftest.er1 >conftest.err |
20593 | rm -f conftest.er1 | |
20594 | cat conftest.err >&5 | |
a848cd7e SC |
20595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20596 | (exit $ac_status); } && | |
9dd0f6c2 | 20597 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20599 | (eval $ac_try) 2>&5 | |
20600 | ac_status=$? | |
20601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20602 | (exit $ac_status); }; } && | |
20603 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20605 | (eval $ac_try) 2>&5 | |
20606 | ac_status=$? | |
20607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20608 | (exit $ac_status); }; }; then | |
20609 | ac_header_compiler=yes | |
20610 | else | |
20611 | echo "$as_me: failed program was:" >&5 | |
20612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20613 | ||
20614 | ac_header_compiler=no | |
20615 | fi | |
ac1cb8d3 | 20616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20617 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20618 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20619 | ||
20620 | # Is the header present? | |
20621 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20622 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20623 | cat >conftest.$ac_ext <<_ACEOF | |
20624 | /* confdefs.h. */ | |
20625 | _ACEOF | |
20626 | cat confdefs.h >>conftest.$ac_ext | |
20627 | cat >>conftest.$ac_ext <<_ACEOF | |
20628 | /* end confdefs.h. */ | |
20629 | #include <$ac_header> | |
20630 | _ACEOF | |
20631 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20632 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20633 | ac_status=$? | |
20634 | grep -v '^ *+' conftest.er1 >conftest.err | |
20635 | rm -f conftest.er1 | |
20636 | cat conftest.err >&5 | |
20637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20638 | (exit $ac_status); } >/dev/null; then | |
20639 | if test -s conftest.err; then | |
20640 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20641 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20642 | else |
20643 | ac_cpp_err= | |
20644 | fi | |
20645 | else | |
20646 | ac_cpp_err=yes | |
20647 | fi | |
20648 | if test -z "$ac_cpp_err"; then | |
20649 | ac_header_preproc=yes | |
20650 | else | |
20651 | echo "$as_me: failed program was:" >&5 | |
20652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20653 | ||
20654 | ac_header_preproc=no | |
20655 | fi | |
20656 | rm -f conftest.err conftest.$ac_ext | |
20657 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20658 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20659 | ||
20660 | # So? What about this header? | |
ac1cb8d3 VS |
20661 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20662 | yes:no: ) | |
a848cd7e SC |
20663 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20664 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20665 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20666 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20667 | ac_header_preproc=yes | |
a848cd7e | 20668 | ;; |
ac1cb8d3 | 20669 | no:yes:* ) |
a848cd7e SC |
20670 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20671 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20672 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20673 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20674 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20675 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20676 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20677 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20678 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20679 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20680 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20681 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20682 | ( |
20683 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20684 | ## ----------------------------------------- ## |
20685 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20686 | ## ----------------------------------------- ## | |
a848cd7e SC |
20687 | _ASBOX |
20688 | ) | | |
20689 | sed "s/^/$as_me: WARNING: /" >&2 | |
20690 | ;; | |
20691 | esac | |
20692 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20693 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20694 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20696 | else | |
ac1cb8d3 | 20697 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
20698 | fi |
20699 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20700 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20701 | ||
20702 | fi | |
20703 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20704 | cat >>confdefs.h <<_ACEOF | |
20705 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20706 | _ACEOF | |
20707 | ||
20708 | fi | |
20709 | ||
20710 | done | |
20711 | ||
20712 | ||
20713 | if test "$ac_cv_header_iostream" = "yes" ; then | |
20714 | : | |
20715 | else | |
20716 | cat >>confdefs.h <<\_ACEOF | |
20717 | #define wxUSE_IOSTREAMH 1 | |
20718 | _ACEOF | |
20719 | ||
20720 | fi | |
20721 | ||
20722 | ac_ext=c | |
20723 | ac_cpp='$CPP $CPPFLAGS' | |
20724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20727 | ||
20728 | ||
20729 | ||
20730 | ||
20731 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
20732 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
20733 | if test "${wx_cv_cpp_bool+set}" = set; then | |
20734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20735 | else | |
20736 | ||
20737 | ||
20738 | ||
20739 | ac_ext=cc | |
20740 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20741 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20742 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20743 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20744 | ||
20745 | ||
20746 | cat >conftest.$ac_ext <<_ACEOF | |
20747 | /* confdefs.h. */ | |
20748 | _ACEOF | |
20749 | cat confdefs.h >>conftest.$ac_ext | |
20750 | cat >>conftest.$ac_ext <<_ACEOF | |
20751 | /* end confdefs.h. */ | |
20752 | ||
20753 | ||
20754 | int | |
20755 | main () | |
20756 | { | |
20757 | ||
20758 | bool b = true; | |
20759 | ||
20760 | return 0; | |
20761 | ||
20762 | ; | |
20763 | return 0; | |
20764 | } | |
20765 | _ACEOF | |
20766 | rm -f conftest.$ac_objext | |
20767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20768 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20769 | ac_status=$? |
ac1cb8d3 VS |
20770 | grep -v '^ *+' conftest.er1 >conftest.err |
20771 | rm -f conftest.er1 | |
20772 | cat conftest.err >&5 | |
a848cd7e SC |
20773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20774 | (exit $ac_status); } && | |
9dd0f6c2 | 20775 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20777 | (eval $ac_try) 2>&5 | |
20778 | ac_status=$? | |
20779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20780 | (exit $ac_status); }; } && | |
20781 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20783 | (eval $ac_try) 2>&5 | |
20784 | ac_status=$? | |
20785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20786 | (exit $ac_status); }; }; then | |
20787 | ||
20788 | wx_cv_cpp_bool=yes | |
20789 | ||
20790 | else | |
20791 | echo "$as_me: failed program was:" >&5 | |
20792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20793 | ||
20794 | ||
20795 | wx_cv_cpp_bool=no | |
20796 | ||
20797 | ||
20798 | fi | |
ac1cb8d3 | 20799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20800 | |
20801 | ac_ext=c | |
20802 | ac_cpp='$CPP $CPPFLAGS' | |
20803 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20804 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20805 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20806 | ||
20807 | ||
20808 | fi | |
20809 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
20810 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
20811 | ||
20812 | if test "$wx_cv_cpp_bool" = "yes"; then | |
20813 | cat >>confdefs.h <<\_ACEOF | |
20814 | #define HAVE_BOOL 1 | |
20815 | _ACEOF | |
20816 | ||
20817 | fi | |
20818 | ||
20819 | ||
20820 | ||
20821 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
20822 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
20823 | if test "${wx_cv_explicit+set}" = set; then | |
20824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20825 | else | |
20826 | ||
20827 | ||
20828 | ||
20829 | ac_ext=cc | |
20830 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20831 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20832 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20833 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20834 | ||
20835 | ||
20836 | cat >conftest.$ac_ext <<_ACEOF | |
20837 | /* confdefs.h. */ | |
20838 | _ACEOF | |
20839 | cat confdefs.h >>conftest.$ac_ext | |
20840 | cat >>conftest.$ac_ext <<_ACEOF | |
20841 | /* end confdefs.h. */ | |
20842 | ||
20843 | class Foo { public: explicit Foo(int) {} }; | |
20844 | ||
20845 | int | |
20846 | main () | |
20847 | { | |
20848 | ||
20849 | return 0; | |
20850 | ||
20851 | ; | |
20852 | return 0; | |
20853 | } | |
20854 | _ACEOF | |
20855 | rm -f conftest.$ac_objext | |
20856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20857 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20858 | ac_status=$? |
ac1cb8d3 VS |
20859 | grep -v '^ *+' conftest.er1 >conftest.err |
20860 | rm -f conftest.er1 | |
20861 | cat conftest.err >&5 | |
a848cd7e SC |
20862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20863 | (exit $ac_status); } && | |
9dd0f6c2 | 20864 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20866 | (eval $ac_try) 2>&5 | |
20867 | ac_status=$? | |
20868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20869 | (exit $ac_status); }; } && | |
20870 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20872 | (eval $ac_try) 2>&5 | |
20873 | ac_status=$? | |
20874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20875 | (exit $ac_status); }; }; then | |
20876 | ||
20877 | cat >conftest.$ac_ext <<_ACEOF | |
20878 | /* confdefs.h. */ | |
20879 | _ACEOF | |
20880 | cat confdefs.h >>conftest.$ac_ext | |
20881 | cat >>conftest.$ac_ext <<_ACEOF | |
20882 | /* end confdefs.h. */ | |
20883 | ||
20884 | class Foo { public: explicit Foo(int) {} }; | |
20885 | static void TakeFoo(const Foo& foo) { } | |
20886 | ||
20887 | int | |
20888 | main () | |
20889 | { | |
20890 | ||
20891 | TakeFoo(17); | |
20892 | return 0; | |
20893 | ||
20894 | ; | |
20895 | return 0; | |
20896 | } | |
20897 | _ACEOF | |
20898 | rm -f conftest.$ac_objext | |
20899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20900 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20901 | ac_status=$? |
ac1cb8d3 VS |
20902 | grep -v '^ *+' conftest.er1 >conftest.err |
20903 | rm -f conftest.er1 | |
20904 | cat conftest.err >&5 | |
a848cd7e SC |
20905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20906 | (exit $ac_status); } && | |
9dd0f6c2 | 20907 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20909 | (eval $ac_try) 2>&5 | |
20910 | ac_status=$? | |
20911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20912 | (exit $ac_status); }; } && | |
20913 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20915 | (eval $ac_try) 2>&5 | |
20916 | ac_status=$? | |
20917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20918 | (exit $ac_status); }; }; then | |
20919 | wx_cv_explicit=no | |
20920 | else | |
20921 | echo "$as_me: failed program was:" >&5 | |
20922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20923 | ||
20924 | wx_cv_explicit=yes | |
20925 | ||
20926 | fi | |
ac1cb8d3 | 20927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20928 | |
20929 | else | |
20930 | echo "$as_me: failed program was:" >&5 | |
20931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20932 | ||
20933 | wx_cv_explicit=no | |
20934 | ||
20935 | fi | |
ac1cb8d3 | 20936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20937 | |
20938 | ac_ext=c | |
20939 | ac_cpp='$CPP $CPPFLAGS' | |
20940 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20941 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20942 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20943 | ||
20944 | ||
20945 | fi | |
20946 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
20947 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
20948 | ||
20949 | if test "$wx_cv_explicit" = "yes"; then | |
20950 | cat >>confdefs.h <<\_ACEOF | |
20951 | #define HAVE_EXPLICIT 1 | |
20952 | _ACEOF | |
20953 | ||
20954 | fi | |
20955 | ||
20956 | ||
20957 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
20958 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
20959 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
20960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20961 | else | |
20962 | ||
20963 | ||
20964 | ac_ext=cc | |
20965 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20966 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20967 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20968 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20969 | ||
20970 | cat >conftest.$ac_ext <<_ACEOF | |
20971 | /* confdefs.h. */ | |
20972 | _ACEOF | |
20973 | cat confdefs.h >>conftest.$ac_ext | |
20974 | cat >>conftest.$ac_ext <<_ACEOF | |
20975 | /* end confdefs.h. */ | |
20976 | ||
20977 | int | |
20978 | main () | |
20979 | { | |
20980 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
20981 | ; | |
20982 | return 0; | |
20983 | } | |
20984 | _ACEOF | |
20985 | rm -f conftest.$ac_objext | |
20986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20987 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20988 | ac_status=$? |
ac1cb8d3 VS |
20989 | grep -v '^ *+' conftest.er1 >conftest.err |
20990 | rm -f conftest.er1 | |
20991 | cat conftest.err >&5 | |
a848cd7e SC |
20992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20993 | (exit $ac_status); } && | |
9dd0f6c2 | 20994 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20996 | (eval $ac_try) 2>&5 | |
20997 | ac_status=$? | |
20998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20999 | (exit $ac_status); }; } && | |
21000 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21002 | (eval $ac_try) 2>&5 | |
21003 | ac_status=$? | |
21004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21005 | (exit $ac_status); }; }; then | |
21006 | ac_cv_cxx_const_cast=yes | |
21007 | else | |
21008 | echo "$as_me: failed program was:" >&5 | |
21009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21010 | ||
21011 | ac_cv_cxx_const_cast=no | |
21012 | fi | |
ac1cb8d3 | 21013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21014 | ac_ext=c |
21015 | ac_cpp='$CPP $CPPFLAGS' | |
21016 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21017 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21018 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21019 | ||
21020 | ||
21021 | fi | |
21022 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
21023 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
21024 | if test "$ac_cv_cxx_const_cast" = yes; then | |
21025 | ||
21026 | cat >>confdefs.h <<\_ACEOF | |
21027 | #define HAVE_CONST_CAST | |
21028 | _ACEOF | |
21029 | ||
21030 | fi | |
21031 | ||
7714864e RL |
21032 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
21033 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
21034 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
21035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21036 | else | |
21037 | ||
21038 | ||
21039 | ac_ext=cc | |
21040 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21041 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21042 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21043 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21044 | ||
21045 | cat >conftest.$ac_ext <<_ACEOF | |
21046 | /* confdefs.h. */ | |
21047 | _ACEOF | |
21048 | cat confdefs.h >>conftest.$ac_ext | |
21049 | cat >>conftest.$ac_ext <<_ACEOF | |
21050 | /* end confdefs.h. */ | |
21051 | #include <typeinfo> | |
21052 | class Base { public : Base () {} virtual void f () = 0;}; | |
21053 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21054 | class Unrelated { public : Unrelated () {} }; | |
21055 | int g (Unrelated&) { return 0; } | |
21056 | int | |
21057 | main () | |
21058 | { | |
21059 | ||
21060 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
21061 | ; | |
21062 | return 0; | |
21063 | } | |
21064 | _ACEOF | |
21065 | rm -f conftest.$ac_objext | |
21066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21067 | (eval $ac_compile) 2>conftest.er1 | |
21068 | ac_status=$? | |
21069 | grep -v '^ *+' conftest.er1 >conftest.err | |
21070 | rm -f conftest.er1 | |
21071 | cat conftest.err >&5 | |
21072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21073 | (exit $ac_status); } && | |
9dd0f6c2 | 21074 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
21075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21076 | (eval $ac_try) 2>&5 | |
21077 | ac_status=$? | |
21078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21079 | (exit $ac_status); }; } && | |
21080 | { ac_try='test -s conftest.$ac_objext' | |
21081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21082 | (eval $ac_try) 2>&5 | |
21083 | ac_status=$? | |
21084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21085 | (exit $ac_status); }; }; then | |
21086 | ac_cv_cxx_reinterpret_cast=yes | |
21087 | else | |
21088 | echo "$as_me: failed program was:" >&5 | |
21089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21090 | ||
21091 | ac_cv_cxx_reinterpret_cast=no | |
21092 | fi | |
21093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21094 | ac_ext=c | |
21095 | ac_cpp='$CPP $CPPFLAGS' | |
21096 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21097 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21099 | ||
21100 | ||
21101 | fi | |
21102 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
21103 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
21104 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
21105 | ||
21106 | cat >>confdefs.h <<\_ACEOF | |
21107 | #define HAVE_REINTERPRET_CAST | |
21108 | _ACEOF | |
21109 | ||
21110 | fi | |
21111 | ||
a848cd7e SC |
21112 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
21113 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
21114 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
21115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21116 | else | |
21117 | ||
21118 | ||
21119 | ac_ext=cc | |
21120 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21121 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21122 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21123 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21124 | ||
21125 | cat >conftest.$ac_ext <<_ACEOF | |
21126 | /* confdefs.h. */ | |
21127 | _ACEOF | |
21128 | cat confdefs.h >>conftest.$ac_ext | |
21129 | cat >>conftest.$ac_ext <<_ACEOF | |
21130 | /* end confdefs.h. */ | |
21131 | #include <typeinfo> | |
21132 | class Base { public : Base () {} virtual void f () = 0; }; | |
21133 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21134 | int g (Derived&) { return 0; } | |
21135 | int | |
21136 | main () | |
21137 | { | |
21138 | ||
21139 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
21140 | ; | |
21141 | return 0; | |
21142 | } | |
21143 | _ACEOF | |
21144 | rm -f conftest.$ac_objext | |
21145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21146 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21147 | ac_status=$? |
ac1cb8d3 VS |
21148 | grep -v '^ *+' conftest.er1 >conftest.err |
21149 | rm -f conftest.er1 | |
21150 | cat conftest.err >&5 | |
a848cd7e SC |
21151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21152 | (exit $ac_status); } && | |
9dd0f6c2 | 21153 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21155 | (eval $ac_try) 2>&5 | |
21156 | ac_status=$? | |
21157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21158 | (exit $ac_status); }; } && | |
21159 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21161 | (eval $ac_try) 2>&5 | |
21162 | ac_status=$? | |
21163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21164 | (exit $ac_status); }; }; then | |
21165 | ac_cv_cxx_static_cast=yes | |
21166 | else | |
21167 | echo "$as_me: failed program was:" >&5 | |
21168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21169 | ||
21170 | ac_cv_cxx_static_cast=no | |
21171 | fi | |
ac1cb8d3 | 21172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21173 | ac_ext=c |
21174 | ac_cpp='$CPP $CPPFLAGS' | |
21175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21178 | ||
21179 | ||
21180 | fi | |
21181 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
21182 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
21183 | if test "$ac_cv_cxx_static_cast" = yes; then | |
21184 | ||
21185 | cat >>confdefs.h <<\_ACEOF | |
21186 | #define HAVE_STATIC_CAST | |
21187 | _ACEOF | |
21188 | ||
21189 | fi | |
21190 | ||
21191 | ||
0a08f02a MB |
21192 | if test "$wxUSE_UNICODE" = "yes" -a \ |
21193 | \( "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes" \); then | |
a848cd7e SC |
21194 | ac_ext=cc |
21195 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21196 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21197 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21198 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21199 | ||
21200 | ||
0a08f02a MB |
21201 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 |
21202 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
21203 | cat >conftest.$ac_ext <<_ACEOF |
21204 | /* confdefs.h. */ | |
21205 | _ACEOF | |
21206 | cat confdefs.h >>conftest.$ac_ext | |
21207 | cat >>conftest.$ac_ext <<_ACEOF | |
21208 | /* end confdefs.h. */ | |
21209 | #include <string> | |
a848cd7e SC |
21210 | int |
21211 | main () | |
21212 | { | |
0a08f02a | 21213 | std::wstring foo; |
a848cd7e SC |
21214 | ; |
21215 | return 0; | |
21216 | } | |
21217 | _ACEOF | |
21218 | rm -f conftest.$ac_objext | |
21219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21220 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21221 | ac_status=$? |
ac1cb8d3 VS |
21222 | grep -v '^ *+' conftest.er1 >conftest.err |
21223 | rm -f conftest.er1 | |
21224 | cat conftest.err >&5 | |
a848cd7e SC |
21225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21226 | (exit $ac_status); } && | |
9dd0f6c2 | 21227 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21229 | (eval $ac_try) 2>&5 | |
21230 | ac_status=$? | |
21231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21232 | (exit $ac_status); }; } && | |
21233 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21235 | (eval $ac_try) 2>&5 | |
21236 | ac_status=$? | |
21237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21238 | (exit $ac_status); }; }; then | |
21239 | echo "$as_me:$LINENO: result: yes" >&5 | |
21240 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
21241 | cat >>confdefs.h <<\_ACEOF |
21242 | #define HAVE_STD_WSTRING 1 | |
21243 | _ACEOF | |
21244 | ||
a848cd7e SC |
21245 | else |
21246 | echo "$as_me: failed program was:" >&5 | |
21247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21248 | ||
21249 | echo "$as_me:$LINENO: result: no" >&5 | |
21250 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
21251 | echo "$as_me:$LINENO: checking if std::basic_string<wchar_t> works" >&5 |
21252 | echo $ECHO_N "checking if std::basic_string<wchar_t> works... $ECHO_C" >&6 | |
21253 | cat >conftest.$ac_ext <<_ACEOF | |
21254 | /* confdefs.h. */ | |
21255 | _ACEOF | |
21256 | cat confdefs.h >>conftest.$ac_ext | |
21257 | cat >>conftest.$ac_ext <<_ACEOF | |
21258 | /* end confdefs.h. */ | |
21259 | ||
21260 | #ifdef HAVE_WCHAR_H | |
21261 | # ifdef __CYGWIN__ | |
21262 | # include <stddef.h> | |
21263 | # endif | |
21264 | # include <wchar.h> | |
21265 | #endif | |
21266 | #ifdef HAVE_STDLIB_H | |
21267 | # include <stdlib.h> | |
21268 | #endif | |
21269 | #include <stdio.h> | |
21270 | #include <string> | |
21271 | ||
21272 | int | |
21273 | main () | |
21274 | { | |
21275 | std::basic_string<wchar_t> foo; | |
21276 | const wchar_t* dummy = foo.c_str(); | |
21277 | ; | |
21278 | return 0; | |
21279 | } | |
21280 | _ACEOF | |
21281 | rm -f conftest.$ac_objext | |
21282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21283 | (eval $ac_compile) 2>conftest.er1 | |
21284 | ac_status=$? | |
21285 | grep -v '^ *+' conftest.er1 >conftest.err | |
21286 | rm -f conftest.er1 | |
21287 | cat conftest.err >&5 | |
21288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21289 | (exit $ac_status); } && | |
21290 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
21291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21292 | (eval $ac_try) 2>&5 | |
21293 | ac_status=$? | |
21294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21295 | (exit $ac_status); }; } && | |
21296 | { ac_try='test -s conftest.$ac_objext' | |
21297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21298 | (eval $ac_try) 2>&5 | |
21299 | ac_status=$? | |
21300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21301 | (exit $ac_status); }; }; then | |
21302 | echo "$as_me:$LINENO: result: yes" >&5 | |
21303 | echo "${ECHO_T}yes" >&6 | |
21304 | else | |
21305 | echo "$as_me: failed program was:" >&5 | |
21306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21307 | ||
21308 | echo "$as_me:$LINENO: result: no" >&5 | |
21309 | echo "${ECHO_T}no" >&6 | |
21310 | { { echo "$as_me:$LINENO: error: Can't compile without unicode string class" >&5 | |
21311 | echo "$as_me: error: Can't compile without unicode string class" >&2;} | |
a848cd7e | 21312 | { (exit 1); exit 1; }; } |
0a08f02a | 21313 | |
a848cd7e | 21314 | fi |
ac1cb8d3 | 21315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21316 | |
0a08f02a MB |
21317 | fi |
21318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21319 | ||
21320 | ac_ext=c | |
21321 | ac_cpp='$CPP $CPPFLAGS' | |
21322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21325 | ||
21326 | fi | |
21327 | ||
21328 | if test "$wxUSE_STL" = "yes"; then | |
21329 | ac_ext=cc | |
21330 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21331 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21332 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21333 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21334 | ||
21335 | ||
21336 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
21337 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
21338 | cat >conftest.$ac_ext <<_ACEOF |
21339 | /* confdefs.h. */ | |
21340 | _ACEOF | |
21341 | cat confdefs.h >>conftest.$ac_ext | |
21342 | cat >>conftest.$ac_ext <<_ACEOF | |
21343 | /* end confdefs.h. */ | |
21344 | #include <string> | |
0a08f02a MB |
21345 | #include <functional> |
21346 | #include <algorithm> | |
21347 | #include <vector> | |
21348 | #include <list> | |
a848cd7e SC |
21349 | int |
21350 | main () | |
21351 | { | |
0a08f02a MB |
21352 | std::vector<int> moo; |
21353 | std::list<int> foo; | |
21354 | std::vector<int>::iterator it = | |
21355 | std::find_if(moo.begin(), moo.end(), | |
21356 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
21357 | ; |
21358 | return 0; | |
21359 | } | |
21360 | _ACEOF | |
21361 | rm -f conftest.$ac_objext | |
21362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21363 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21364 | ac_status=$? |
ac1cb8d3 VS |
21365 | grep -v '^ *+' conftest.er1 >conftest.err |
21366 | rm -f conftest.er1 | |
21367 | cat conftest.err >&5 | |
a848cd7e SC |
21368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21369 | (exit $ac_status); } && | |
9dd0f6c2 | 21370 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21372 | (eval $ac_try) 2>&5 | |
21373 | ac_status=$? | |
21374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21375 | (exit $ac_status); }; } && | |
21376 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21378 | (eval $ac_try) 2>&5 | |
21379 | ac_status=$? | |
21380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21381 | (exit $ac_status); }; }; then | |
21382 | echo "$as_me:$LINENO: result: yes" >&5 | |
21383 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
21384 | else |
21385 | echo "$as_me: failed program was:" >&5 | |
21386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21387 | ||
21388 | echo "$as_me:$LINENO: result: no" >&5 | |
21389 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
21390 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
21391 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
21392 | { (exit 1); exit 1; }; } | |
a848cd7e | 21393 | fi |
ac1cb8d3 | 21394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21395 | |
21396 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
21397 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
21398 | cat >conftest.$ac_ext <<_ACEOF | |
21399 | /* confdefs.h. */ | |
21400 | _ACEOF | |
21401 | cat confdefs.h >>conftest.$ac_ext | |
21402 | cat >>conftest.$ac_ext <<_ACEOF | |
21403 | /* end confdefs.h. */ | |
21404 | #include <string> | |
21405 | int | |
21406 | main () | |
21407 | { | |
21408 | std::string foo, bar; | |
21409 | foo.compare(bar); | |
21410 | foo.compare(1, 1, bar); | |
21411 | foo.compare(1, 1, bar, 1, 1); | |
21412 | foo.compare(""); | |
21413 | foo.compare(1, 1, ""); | |
21414 | foo.compare(1, 1, "", 2); | |
21415 | ; | |
21416 | return 0; | |
21417 | } | |
21418 | _ACEOF | |
21419 | rm -f conftest.$ac_objext | |
21420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21421 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21422 | ac_status=$? |
ac1cb8d3 VS |
21423 | grep -v '^ *+' conftest.er1 >conftest.err |
21424 | rm -f conftest.er1 | |
21425 | cat conftest.err >&5 | |
a848cd7e SC |
21426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21427 | (exit $ac_status); } && | |
9dd0f6c2 | 21428 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21430 | (eval $ac_try) 2>&5 | |
21431 | ac_status=$? | |
21432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21433 | (exit $ac_status); }; } && | |
21434 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21436 | (eval $ac_try) 2>&5 | |
21437 | ac_status=$? | |
21438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21439 | (exit $ac_status); }; }; then | |
21440 | echo "$as_me:$LINENO: result: yes" >&5 | |
21441 | echo "${ECHO_T}yes" >&6 | |
21442 | cat >>confdefs.h <<\_ACEOF | |
21443 | #define HAVE_STD_STRING_COMPARE 1 | |
21444 | _ACEOF | |
21445 | ||
21446 | else | |
21447 | echo "$as_me: failed program was:" >&5 | |
21448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21449 | ||
21450 | echo "$as_me:$LINENO: result: no" >&5 | |
21451 | echo "${ECHO_T}no" >&6 | |
21452 | fi | |
ac1cb8d3 | 21453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21454 | |
21455 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21456 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
21457 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
21458 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21460 | fi | |
21461 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
21462 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
21463 | else | |
21464 | # Is the header compilable? | |
21465 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
21466 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
21467 | cat >conftest.$ac_ext <<_ACEOF | |
21468 | /* confdefs.h. */ | |
21469 | _ACEOF | |
21470 | cat confdefs.h >>conftest.$ac_ext | |
21471 | cat >>conftest.$ac_ext <<_ACEOF | |
21472 | /* end confdefs.h. */ | |
21473 | $ac_includes_default | |
21474 | #include <hash_map> | |
21475 | _ACEOF | |
21476 | rm -f conftest.$ac_objext | |
21477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21478 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21479 | ac_status=$? |
ac1cb8d3 VS |
21480 | grep -v '^ *+' conftest.er1 >conftest.err |
21481 | rm -f conftest.er1 | |
21482 | cat conftest.err >&5 | |
bdcade0a MB |
21483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21484 | (exit $ac_status); } && | |
9dd0f6c2 | 21485 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21487 | (eval $ac_try) 2>&5 | |
21488 | ac_status=$? | |
21489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21490 | (exit $ac_status); }; } && | |
21491 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21493 | (eval $ac_try) 2>&5 | |
21494 | ac_status=$? | |
21495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21496 | (exit $ac_status); }; }; then | |
21497 | ac_header_compiler=yes | |
21498 | else | |
21499 | echo "$as_me: failed program was:" >&5 | |
21500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21501 | ||
21502 | ac_header_compiler=no | |
21503 | fi | |
ac1cb8d3 | 21504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21505 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21506 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21507 | ||
21508 | # Is the header present? | |
21509 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
21510 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
21511 | cat >conftest.$ac_ext <<_ACEOF | |
21512 | /* confdefs.h. */ | |
21513 | _ACEOF | |
21514 | cat confdefs.h >>conftest.$ac_ext | |
21515 | cat >>conftest.$ac_ext <<_ACEOF | |
21516 | /* end confdefs.h. */ | |
21517 | #include <hash_map> | |
21518 | _ACEOF | |
21519 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21520 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21521 | ac_status=$? | |
21522 | grep -v '^ *+' conftest.er1 >conftest.err | |
21523 | rm -f conftest.er1 | |
21524 | cat conftest.err >&5 | |
21525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21526 | (exit $ac_status); } >/dev/null; then | |
21527 | if test -s conftest.err; then | |
21528 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21529 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
21530 | else |
21531 | ac_cpp_err= | |
21532 | fi | |
21533 | else | |
21534 | ac_cpp_err=yes | |
21535 | fi | |
21536 | if test -z "$ac_cpp_err"; then | |
21537 | ac_header_preproc=yes | |
21538 | else | |
21539 | echo "$as_me: failed program was:" >&5 | |
21540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21541 | ||
21542 | ac_header_preproc=no | |
21543 | fi | |
21544 | rm -f conftest.err conftest.$ac_ext | |
21545 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21546 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21547 | ||
21548 | # So? What about this header? | |
ac1cb8d3 VS |
21549 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21550 | yes:no: ) | |
bdcade0a MB |
21551 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
21552 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21553 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
21554 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
21555 | ac_header_preproc=yes | |
bdcade0a | 21556 | ;; |
ac1cb8d3 | 21557 | no:yes:* ) |
bdcade0a MB |
21558 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
21559 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21560 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
21561 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
21562 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
21563 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
21564 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
21565 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
21566 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
21567 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21568 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
21569 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
21570 | ( |
21571 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21572 | ## ----------------------------------------- ## |
21573 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21574 | ## ----------------------------------------- ## | |
bdcade0a MB |
21575 | _ASBOX |
21576 | ) | | |
21577 | sed "s/^/$as_me: WARNING: /" >&2 | |
21578 | ;; | |
21579 | esac | |
21580 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
21581 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
21582 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21584 | else | |
21585 | ac_cv_header_hash_map=$ac_header_preproc | |
21586 | fi | |
21587 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
21588 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
21589 | ||
21590 | fi | |
21591 | if test $ac_cv_header_hash_map = yes; then | |
21592 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
21593 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
21594 | cat >conftest.$ac_ext <<_ACEOF | |
21595 | /* confdefs.h. */ | |
21596 | _ACEOF | |
21597 | cat confdefs.h >>conftest.$ac_ext | |
21598 | cat >>conftest.$ac_ext <<_ACEOF | |
21599 | /* end confdefs.h. */ | |
21600 | #include <hash_map> | |
21601 | #include <hash_set> | |
21602 | int | |
21603 | main () | |
21604 | { | |
21605 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
21606 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
21607 | ; | |
21608 | return 0; | |
21609 | } | |
21610 | _ACEOF | |
21611 | rm -f conftest.$ac_objext | |
21612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21613 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21614 | ac_status=$? |
ac1cb8d3 VS |
21615 | grep -v '^ *+' conftest.er1 >conftest.err |
21616 | rm -f conftest.er1 | |
21617 | cat conftest.err >&5 | |
bdcade0a MB |
21618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21619 | (exit $ac_status); } && | |
9dd0f6c2 | 21620 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21622 | (eval $ac_try) 2>&5 | |
21623 | ac_status=$? | |
21624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21625 | (exit $ac_status); }; } && | |
21626 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21628 | (eval $ac_try) 2>&5 | |
21629 | ac_status=$? | |
21630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21631 | (exit $ac_status); }; }; then | |
21632 | echo "$as_me:$LINENO: result: yes" >&5 | |
21633 | echo "${ECHO_T}yes" >&6 | |
21634 | cat >>confdefs.h <<\_ACEOF | |
21635 | #define HAVE_HASH_MAP 1 | |
21636 | _ACEOF | |
21637 | ||
21638 | cat >>confdefs.h <<\_ACEOF | |
21639 | #define HAVE_STD_HASH_MAP 1 | |
21640 | _ACEOF | |
21641 | ||
21642 | else | |
21643 | echo "$as_me: failed program was:" >&5 | |
21644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21645 | ||
21646 | echo "$as_me:$LINENO: result: no" >&5 | |
21647 | echo "${ECHO_T}no" >&6 | |
21648 | fi | |
ac1cb8d3 | 21649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21650 | |
21651 | fi | |
21652 | ||
21653 | ||
21654 | ||
21655 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21656 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
21657 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
21658 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21660 | fi | |
21661 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
21662 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
21663 | else | |
21664 | # Is the header compilable? | |
21665 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
21666 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
21667 | cat >conftest.$ac_ext <<_ACEOF | |
21668 | /* confdefs.h. */ | |
21669 | _ACEOF | |
21670 | cat confdefs.h >>conftest.$ac_ext | |
21671 | cat >>conftest.$ac_ext <<_ACEOF | |
21672 | /* end confdefs.h. */ | |
21673 | $ac_includes_default | |
21674 | #include <ext/hash_map> | |
21675 | _ACEOF | |
21676 | rm -f conftest.$ac_objext | |
21677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21678 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21679 | ac_status=$? |
ac1cb8d3 VS |
21680 | grep -v '^ *+' conftest.er1 >conftest.err |
21681 | rm -f conftest.er1 | |
21682 | cat conftest.err >&5 | |
bdcade0a MB |
21683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21684 | (exit $ac_status); } && | |
9dd0f6c2 | 21685 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21687 | (eval $ac_try) 2>&5 | |
21688 | ac_status=$? | |
21689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21690 | (exit $ac_status); }; } && | |
21691 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21693 | (eval $ac_try) 2>&5 | |
21694 | ac_status=$? | |
21695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21696 | (exit $ac_status); }; }; then | |
21697 | ac_header_compiler=yes | |
21698 | else | |
21699 | echo "$as_me: failed program was:" >&5 | |
21700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21701 | ||
21702 | ac_header_compiler=no | |
21703 | fi | |
ac1cb8d3 | 21704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21705 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21706 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21707 | ||
21708 | # Is the header present? | |
21709 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
21710 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
21711 | cat >conftest.$ac_ext <<_ACEOF | |
21712 | /* confdefs.h. */ | |
21713 | _ACEOF | |
21714 | cat confdefs.h >>conftest.$ac_ext | |
21715 | cat >>conftest.$ac_ext <<_ACEOF | |
21716 | /* end confdefs.h. */ | |
21717 | #include <ext/hash_map> | |
21718 | _ACEOF | |
21719 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21720 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21721 | ac_status=$? | |
21722 | grep -v '^ *+' conftest.er1 >conftest.err | |
21723 | rm -f conftest.er1 | |
21724 | cat conftest.err >&5 | |
21725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21726 | (exit $ac_status); } >/dev/null; then | |
21727 | if test -s conftest.err; then | |
21728 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21729 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
21730 | else |
21731 | ac_cpp_err= | |
21732 | fi | |
21733 | else | |
21734 | ac_cpp_err=yes | |
21735 | fi | |
21736 | if test -z "$ac_cpp_err"; then | |
21737 | ac_header_preproc=yes | |
21738 | else | |
21739 | echo "$as_me: failed program was:" >&5 | |
21740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21741 | ||
21742 | ac_header_preproc=no | |
21743 | fi | |
21744 | rm -f conftest.err conftest.$ac_ext | |
21745 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21746 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21747 | ||
21748 | # So? What about this header? | |
ac1cb8d3 VS |
21749 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21750 | yes:no: ) | |
bdcade0a MB |
21751 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
21752 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21753 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
21754 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
21755 | ac_header_preproc=yes | |
bdcade0a | 21756 | ;; |
ac1cb8d3 | 21757 | no:yes:* ) |
bdcade0a MB |
21758 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
21759 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21760 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
21761 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
21762 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
21763 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
21764 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
21765 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
21766 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
21767 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21768 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
21769 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
21770 | ( |
21771 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21772 | ## ----------------------------------------- ## |
21773 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21774 | ## ----------------------------------------- ## | |
bdcade0a MB |
21775 | _ASBOX |
21776 | ) | | |
21777 | sed "s/^/$as_me: WARNING: /" >&2 | |
21778 | ;; | |
21779 | esac | |
21780 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
21781 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
21782 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21784 | else | |
21785 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
21786 | fi | |
21787 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
21788 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
21789 | ||
21790 | fi | |
21791 | if test $ac_cv_header_ext_hash_map = yes; then | |
21792 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
21793 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
21794 | cat >conftest.$ac_ext <<_ACEOF | |
21795 | /* confdefs.h. */ | |
21796 | _ACEOF | |
21797 | cat confdefs.h >>conftest.$ac_ext | |
21798 | cat >>conftest.$ac_ext <<_ACEOF | |
21799 | /* end confdefs.h. */ | |
21800 | #include <ext/hash_map> | |
21801 | #include <ext/hash_set> | |
21802 | int | |
21803 | main () | |
21804 | { | |
21805 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
21806 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
21807 | ; | |
21808 | return 0; | |
21809 | } | |
21810 | _ACEOF | |
21811 | rm -f conftest.$ac_objext | |
21812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21813 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21814 | ac_status=$? |
ac1cb8d3 VS |
21815 | grep -v '^ *+' conftest.er1 >conftest.err |
21816 | rm -f conftest.er1 | |
21817 | cat conftest.err >&5 | |
bdcade0a MB |
21818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21819 | (exit $ac_status); } && | |
9dd0f6c2 | 21820 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21822 | (eval $ac_try) 2>&5 | |
21823 | ac_status=$? | |
21824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21825 | (exit $ac_status); }; } && | |
21826 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21828 | (eval $ac_try) 2>&5 | |
21829 | ac_status=$? | |
21830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21831 | (exit $ac_status); }; }; then | |
21832 | echo "$as_me:$LINENO: result: yes" >&5 | |
21833 | echo "${ECHO_T}yes" >&6 | |
21834 | cat >>confdefs.h <<\_ACEOF | |
21835 | #define HAVE_EXT_HASH_MAP 1 | |
21836 | _ACEOF | |
21837 | ||
21838 | cat >>confdefs.h <<\_ACEOF | |
21839 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
21840 | _ACEOF | |
21841 | ||
21842 | else | |
21843 | echo "$as_me: failed program was:" >&5 | |
21844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21845 | ||
21846 | echo "$as_me:$LINENO: result: no" >&5 | |
21847 | echo "${ECHO_T}no" >&6 | |
21848 | fi | |
ac1cb8d3 | 21849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21850 | |
21851 | fi | |
21852 | ||
21853 | ||
a848cd7e SC |
21854 | |
21855 | ac_ext=c | |
21856 | ac_cpp='$CPP $CPPFLAGS' | |
21857 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21858 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21859 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21860 | ||
21861 | fi | |
21862 | ||
21863 | ||
21864 | SEARCH_INCLUDE="\ | |
21865 | /usr/local/include \ | |
21866 | \ | |
21867 | /usr/Motif-2.1/include \ | |
21868 | /usr/Motif-1.2/include \ | |
21869 | /usr/include/Motif1.2 \ | |
21870 | /opt/xpm/include/X11 \ | |
21871 | /opt/GBxpm/include/ \ | |
21872 | /opt/GBxpm/X11/include/ \ | |
21873 | \ | |
21874 | /usr/dt/include \ | |
21875 | /usr/openwin/include \ | |
21876 | \ | |
21877 | /usr/include/Xm \ | |
21878 | \ | |
21879 | /usr/X11R6/include \ | |
21880 | /usr/X11R6.4/include \ | |
21881 | /usr/X11R5/include \ | |
21882 | /usr/X11R4/include \ | |
21883 | \ | |
21884 | /usr/include/X11R6 \ | |
21885 | /usr/include/X11R5 \ | |
21886 | /usr/include/X11R4 \ | |
21887 | \ | |
21888 | /usr/local/X11R6/include \ | |
21889 | /usr/local/X11R5/include \ | |
21890 | /usr/local/X11R4/include \ | |
21891 | \ | |
21892 | /usr/local/include/X11R6 \ | |
21893 | /usr/local/include/X11R5 \ | |
21894 | /usr/local/include/X11R4 \ | |
21895 | \ | |
21896 | /usr/X11/include \ | |
21897 | /usr/include/X11 \ | |
21898 | /usr/local/X11/include \ | |
21899 | /usr/local/include/X11 \ | |
21900 | \ | |
21901 | /usr/X386/include \ | |
21902 | /usr/x386/include \ | |
21903 | /usr/XFree86/include/X11 \ | |
21904 | \ | |
21905 | X:/XFree86/include \ | |
21906 | X:/XFree86/include/X11 \ | |
21907 | \ | |
21908 | /usr/include/gtk \ | |
21909 | /usr/local/include/gtk \ | |
21910 | /usr/include/glib \ | |
21911 | /usr/local/include/glib \ | |
21912 | \ | |
21913 | /usr/include/qt \ | |
21914 | /usr/local/include/qt \ | |
21915 | \ | |
21916 | /usr/local/arm/3.3.2/include \ | |
21917 | \ | |
21918 | /usr/include/windows \ | |
21919 | /usr/include/wine \ | |
21920 | /usr/local/include/wine \ | |
21921 | \ | |
21922 | /usr/unsupported/include \ | |
21923 | /usr/athena/include \ | |
21924 | /usr/local/x11r5/include \ | |
21925 | /usr/lpp/Xamples/include \ | |
21926 | \ | |
21927 | /usr/openwin/share/include" | |
21928 | ||
07158944 | 21929 | SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`" |
a848cd7e SC |
21930 | |
21931 | ||
21932 | cat >confcache <<\_ACEOF | |
21933 | # This file is a shell script that caches the results of configure | |
21934 | # tests run on this system so they can be shared between configure | |
21935 | # scripts and configure runs, see configure's option --config-cache. | |
21936 | # It is not useful on other systems. If it contains results you don't | |
21937 | # want to keep, you may remove or edit it. | |
21938 | # | |
21939 | # config.status only pays attention to the cache file if you give it | |
21940 | # the --recheck option to rerun configure. | |
21941 | # | |
21942 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21943 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21944 | # following values. | |
21945 | ||
21946 | _ACEOF | |
21947 | ||
21948 | # The following way of writing the cache mishandles newlines in values, | |
21949 | # but we know of no workaround that is simple, portable, and efficient. | |
21950 | # So, don't put newlines in cache variables' values. | |
21951 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21952 | # and sets the high bit in the cache file unless we assign to the vars. | |
21953 | { | |
21954 | (set) 2>&1 | | |
21955 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21956 | *ac_space=\ *) | |
21957 | # `set' does not quote correctly, so add quotes (double-quote | |
21958 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21959 | sed -n \ | |
ac1cb8d3 VS |
21960 | "s/'/'\\\\''/g; |
21961 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
21962 | ;; |
21963 | *) | |
21964 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21965 | sed -n \ | |
ac1cb8d3 | 21966 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
21967 | ;; |
21968 | esac; | |
21969 | } | | |
21970 | sed ' | |
21971 | t clear | |
21972 | : clear | |
21973 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21974 | t end | |
21975 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21976 | : end' >>confcache | |
21977 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21978 | if test -w $cache_file; then | |
21979 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
21980 | cat confcache >$cache_file | |
21981 | else | |
21982 | echo "not updating unwritable cache $cache_file" | |
21983 | fi | |
21984 | fi | |
21985 | rm -f confcache | |
21986 | ||
21987 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
21988 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
21989 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
21990 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
21991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21992 | else | |
21993 | ||
21994 | cat >conftest.$ac_ext <<_ACEOF | |
21995 | /* confdefs.h. */ | |
21996 | _ACEOF | |
21997 | cat confdefs.h >>conftest.$ac_ext | |
21998 | cat >>conftest.$ac_ext <<_ACEOF | |
21999 | /* end confdefs.h. */ | |
22000 | #include <features.h> | |
22001 | int | |
22002 | main () | |
22003 | { | |
22004 | ||
22005 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
22006 | #error not glibc2.1 | |
22007 | #endif | |
22008 | ||
22009 | ; | |
22010 | return 0; | |
22011 | } | |
22012 | _ACEOF | |
22013 | rm -f conftest.$ac_objext | |
22014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22015 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22016 | ac_status=$? |
ac1cb8d3 VS |
22017 | grep -v '^ *+' conftest.er1 >conftest.err |
22018 | rm -f conftest.er1 | |
22019 | cat conftest.err >&5 | |
a848cd7e SC |
22020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22021 | (exit $ac_status); } && | |
9dd0f6c2 | 22022 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22024 | (eval $ac_try) 2>&5 | |
22025 | ac_status=$? | |
22026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22027 | (exit $ac_status); }; } && | |
22028 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22030 | (eval $ac_try) 2>&5 | |
22031 | ac_status=$? | |
22032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22033 | (exit $ac_status); }; }; then | |
22034 | ||
22035 | wx_cv_lib_glibc21=yes | |
22036 | ||
22037 | else | |
22038 | echo "$as_me: failed program was:" >&5 | |
22039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22040 | ||
22041 | ||
22042 | wx_cv_lib_glibc21=no | |
22043 | ||
22044 | ||
22045 | fi | |
ac1cb8d3 | 22046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22047 | |
22048 | fi | |
22049 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
22050 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
22051 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
22052 | cat >>confdefs.h <<\_ACEOF | |
22053 | #define wxHAVE_GLIBC2 1 | |
22054 | _ACEOF | |
22055 | ||
22056 | fi | |
22057 | fi | |
22058 | ||
22059 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
22060 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
22061 | cat >>confdefs.h <<\_ACEOF | |
22062 | #define _GNU_SOURCE 1 | |
22063 | _ACEOF | |
22064 | ||
22065 | fi | |
22066 | fi | |
22067 | ||
22068 | ||
22069 | ||
22070 | if test "$wxUSE_REGEX" != "no"; then | |
22071 | cat >>confdefs.h <<\_ACEOF | |
22072 | #define wxUSE_REGEX 1 | |
22073 | _ACEOF | |
22074 | ||
22075 | ||
22076 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
22077 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
22078 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
22079 | wxUSE_REGEX=builtin | |
22080 | fi | |
22081 | ||
22082 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
22083 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22084 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
22085 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
22086 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22088 | fi | |
22089 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
22090 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
22091 | else | |
22092 | # Is the header compilable? | |
22093 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
22094 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
22095 | cat >conftest.$ac_ext <<_ACEOF | |
22096 | /* confdefs.h. */ | |
22097 | _ACEOF | |
22098 | cat confdefs.h >>conftest.$ac_ext | |
22099 | cat >>conftest.$ac_ext <<_ACEOF | |
22100 | /* end confdefs.h. */ | |
22101 | $ac_includes_default | |
22102 | #include <regex.h> | |
22103 | _ACEOF | |
22104 | rm -f conftest.$ac_objext | |
22105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22106 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22107 | ac_status=$? |
ac1cb8d3 VS |
22108 | grep -v '^ *+' conftest.er1 >conftest.err |
22109 | rm -f conftest.er1 | |
22110 | cat conftest.err >&5 | |
a848cd7e SC |
22111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22112 | (exit $ac_status); } && | |
9dd0f6c2 | 22113 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22115 | (eval $ac_try) 2>&5 | |
22116 | ac_status=$? | |
22117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22118 | (exit $ac_status); }; } && | |
22119 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22121 | (eval $ac_try) 2>&5 | |
22122 | ac_status=$? | |
22123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22124 | (exit $ac_status); }; }; then | |
22125 | ac_header_compiler=yes | |
22126 | else | |
22127 | echo "$as_me: failed program was:" >&5 | |
22128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22129 | ||
22130 | ac_header_compiler=no | |
22131 | fi | |
ac1cb8d3 | 22132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22133 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22134 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22135 | ||
22136 | # Is the header present? | |
22137 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
22138 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
22139 | cat >conftest.$ac_ext <<_ACEOF | |
22140 | /* confdefs.h. */ | |
22141 | _ACEOF | |
22142 | cat confdefs.h >>conftest.$ac_ext | |
22143 | cat >>conftest.$ac_ext <<_ACEOF | |
22144 | /* end confdefs.h. */ | |
22145 | #include <regex.h> | |
22146 | _ACEOF | |
22147 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22148 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22149 | ac_status=$? | |
22150 | grep -v '^ *+' conftest.er1 >conftest.err | |
22151 | rm -f conftest.er1 | |
22152 | cat conftest.err >&5 | |
22153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22154 | (exit $ac_status); } >/dev/null; then | |
22155 | if test -s conftest.err; then | |
22156 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22157 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22158 | else |
22159 | ac_cpp_err= | |
22160 | fi | |
22161 | else | |
22162 | ac_cpp_err=yes | |
22163 | fi | |
22164 | if test -z "$ac_cpp_err"; then | |
22165 | ac_header_preproc=yes | |
22166 | else | |
22167 | echo "$as_me: failed program was:" >&5 | |
22168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22169 | ||
22170 | ac_header_preproc=no | |
22171 | fi | |
22172 | rm -f conftest.err conftest.$ac_ext | |
22173 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22174 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22175 | ||
22176 | # So? What about this header? | |
ac1cb8d3 VS |
22177 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22178 | yes:no: ) | |
a848cd7e SC |
22179 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22180 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22181 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
22182 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
22183 | ac_header_preproc=yes | |
a848cd7e | 22184 | ;; |
ac1cb8d3 | 22185 | no:yes:* ) |
a848cd7e SC |
22186 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
22187 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22188 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
22189 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
22190 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
22191 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
22192 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22193 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22194 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
22195 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22196 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
22197 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22198 | ( |
22199 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22200 | ## ----------------------------------------- ## |
22201 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22202 | ## ----------------------------------------- ## | |
a848cd7e SC |
22203 | _ASBOX |
22204 | ) | | |
22205 | sed "s/^/$as_me: WARNING: /" >&2 | |
22206 | ;; | |
22207 | esac | |
22208 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
22209 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
22210 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22212 | else | |
22213 | ac_cv_header_regex_h=$ac_header_preproc | |
22214 | fi | |
22215 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
22216 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
22217 | ||
22218 | fi | |
22219 | if test $ac_cv_header_regex_h = yes; then | |
22220 | ||
22221 | for ac_func in regcomp | |
22222 | do | |
22223 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
22224 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22225 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22226 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22228 | else | |
22229 | cat >conftest.$ac_ext <<_ACEOF | |
22230 | /* confdefs.h. */ | |
22231 | _ACEOF | |
22232 | cat confdefs.h >>conftest.$ac_ext | |
22233 | cat >>conftest.$ac_ext <<_ACEOF | |
22234 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
22235 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22236 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22237 | #define $ac_func innocuous_$ac_func | |
22238 | ||
a848cd7e SC |
22239 | /* System header to define __stub macros and hopefully few prototypes, |
22240 | which can conflict with char $ac_func (); below. | |
22241 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22242 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 22243 | |
a848cd7e SC |
22244 | #ifdef __STDC__ |
22245 | # include <limits.h> | |
22246 | #else | |
22247 | # include <assert.h> | |
22248 | #endif | |
ac1cb8d3 VS |
22249 | |
22250 | #undef $ac_func | |
22251 | ||
a848cd7e SC |
22252 | /* Override any gcc2 internal prototype to avoid an error. */ |
22253 | #ifdef __cplusplus | |
22254 | extern "C" | |
22255 | { | |
22256 | #endif | |
22257 | /* We use char because int might match the return type of a gcc2 | |
22258 | builtin and then its argument prototype would still apply. */ | |
22259 | char $ac_func (); | |
22260 | /* The GNU C library defines this for functions which it implements | |
22261 | to always fail with ENOSYS. Some functions are actually named | |
22262 | something starting with __ and the normal name is an alias. */ | |
22263 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22264 | choke me | |
22265 | #else | |
22266 | char (*f) () = $ac_func; | |
22267 | #endif | |
22268 | #ifdef __cplusplus | |
22269 | } | |
22270 | #endif | |
22271 | ||
22272 | int | |
22273 | main () | |
22274 | { | |
22275 | return f != $ac_func; | |
22276 | ; | |
22277 | return 0; | |
22278 | } | |
22279 | _ACEOF | |
22280 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22282 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22283 | ac_status=$? |
ac1cb8d3 VS |
22284 | grep -v '^ *+' conftest.er1 >conftest.err |
22285 | rm -f conftest.er1 | |
22286 | cat conftest.err >&5 | |
a848cd7e SC |
22287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22288 | (exit $ac_status); } && | |
9dd0f6c2 | 22289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22291 | (eval $ac_try) 2>&5 | |
22292 | ac_status=$? | |
22293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22294 | (exit $ac_status); }; } && | |
22295 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22297 | (eval $ac_try) 2>&5 | |
22298 | ac_status=$? | |
22299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22300 | (exit $ac_status); }; }; then | |
22301 | eval "$as_ac_var=yes" | |
22302 | else | |
22303 | echo "$as_me: failed program was:" >&5 | |
22304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22305 | ||
22306 | eval "$as_ac_var=no" | |
22307 | fi | |
ac1cb8d3 VS |
22308 | rm -f conftest.err conftest.$ac_objext \ |
22309 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22310 | fi |
22311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
22312 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
22313 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
22314 | cat >>confdefs.h <<_ACEOF | |
22315 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22316 | _ACEOF | |
22317 | ||
22318 | fi | |
22319 | done | |
22320 | ||
22321 | fi | |
22322 | ||
22323 | ||
22324 | ||
22325 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
22326 | if test "$wxUSE_REGEX" = "sys" ; then | |
22327 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
22328 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
22329 | { (exit 1); exit 1; }; } | |
22330 | else | |
22331 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
22332 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
22333 | wxUSE_REGEX=builtin | |
22334 | fi | |
22335 | else | |
22336 | wxUSE_REGEX=sys | |
22337 | cat >>confdefs.h <<\_ACEOF | |
22338 | #define WX_NO_REGEX_ADVANCED 1 | |
22339 | _ACEOF | |
22340 | ||
22341 | fi | |
22342 | fi | |
22343 | fi | |
22344 | ||
22345 | ||
22346 | ZLIB_LINK= | |
22347 | if test "$wxUSE_ZLIB" != "no" ; then | |
22348 | cat >>confdefs.h <<\_ACEOF | |
22349 | #define wxUSE_ZLIB 1 | |
22350 | _ACEOF | |
22351 | ||
22352 | ||
22353 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
22354 | if test "$USE_DARWIN" = 1; then | |
22355 | system_zlib_h_ok="yes" | |
22356 | else | |
22357 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
22358 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
22359 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22361 | else | |
22362 | if test "$cross_compiling" = yes; then | |
22363 | unset ac_cv_header_zlib_h | |
22364 | ||
22365 | else | |
22366 | cat >conftest.$ac_ext <<_ACEOF | |
22367 | /* confdefs.h. */ | |
22368 | _ACEOF | |
22369 | cat confdefs.h >>conftest.$ac_ext | |
22370 | cat >>conftest.$ac_ext <<_ACEOF | |
22371 | /* end confdefs.h. */ | |
22372 | ||
22373 | #include <zlib.h> | |
22374 | #include <stdio.h> | |
22375 | ||
22376 | int main() | |
22377 | { | |
22378 | FILE *f=fopen("conftestval", "w"); | |
22379 | if (!f) exit(1); | |
22380 | fprintf(f, "%s", | |
22381 | ZLIB_VERSION[0] == '1' && | |
22382 | (ZLIB_VERSION[2] > '1' || | |
22383 | (ZLIB_VERSION[2] == '1' && | |
22384 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
22385 | exit(0); | |
22386 | } | |
22387 | ||
22388 | _ACEOF | |
22389 | rm -f conftest$ac_exeext | |
22390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22391 | (eval $ac_link) 2>&5 | |
22392 | ac_status=$? | |
22393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22394 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22396 | (eval $ac_try) 2>&5 | |
22397 | ac_status=$? | |
22398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22399 | (exit $ac_status); }; }; then | |
22400 | ac_cv_header_zlib_h=`cat conftestval` | |
22401 | else | |
22402 | echo "$as_me: program exited with status $ac_status" >&5 | |
22403 | echo "$as_me: failed program was:" >&5 | |
22404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22405 | ||
22406 | ( exit $ac_status ) | |
22407 | ac_cv_header_zlib_h=no | |
22408 | fi | |
ac1cb8d3 | 22409 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22410 | fi |
22411 | ||
22412 | fi | |
22413 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22414 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22415 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22416 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
22417 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
22418 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22420 | fi | |
22421 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22422 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22423 | else | |
22424 | # Is the header compilable? | |
22425 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
22426 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
22427 | cat >conftest.$ac_ext <<_ACEOF | |
22428 | /* confdefs.h. */ | |
22429 | _ACEOF | |
22430 | cat confdefs.h >>conftest.$ac_ext | |
22431 | cat >>conftest.$ac_ext <<_ACEOF | |
22432 | /* end confdefs.h. */ | |
22433 | $ac_includes_default | |
22434 | #include <zlib.h> | |
22435 | _ACEOF | |
22436 | rm -f conftest.$ac_objext | |
22437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22438 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22439 | ac_status=$? |
ac1cb8d3 VS |
22440 | grep -v '^ *+' conftest.er1 >conftest.err |
22441 | rm -f conftest.er1 | |
22442 | cat conftest.err >&5 | |
a848cd7e SC |
22443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22444 | (exit $ac_status); } && | |
9dd0f6c2 | 22445 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22447 | (eval $ac_try) 2>&5 | |
22448 | ac_status=$? | |
22449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22450 | (exit $ac_status); }; } && | |
22451 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22453 | (eval $ac_try) 2>&5 | |
22454 | ac_status=$? | |
22455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22456 | (exit $ac_status); }; }; then | |
22457 | ac_header_compiler=yes | |
22458 | else | |
22459 | echo "$as_me: failed program was:" >&5 | |
22460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22461 | ||
22462 | ac_header_compiler=no | |
22463 | fi | |
ac1cb8d3 | 22464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22465 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22466 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22467 | ||
22468 | # Is the header present? | |
22469 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
22470 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
22471 | cat >conftest.$ac_ext <<_ACEOF | |
22472 | /* confdefs.h. */ | |
22473 | _ACEOF | |
22474 | cat confdefs.h >>conftest.$ac_ext | |
22475 | cat >>conftest.$ac_ext <<_ACEOF | |
22476 | /* end confdefs.h. */ | |
22477 | #include <zlib.h> | |
22478 | _ACEOF | |
22479 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22480 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22481 | ac_status=$? | |
22482 | grep -v '^ *+' conftest.er1 >conftest.err | |
22483 | rm -f conftest.er1 | |
22484 | cat conftest.err >&5 | |
22485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22486 | (exit $ac_status); } >/dev/null; then | |
22487 | if test -s conftest.err; then | |
22488 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22489 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22490 | else |
22491 | ac_cpp_err= | |
22492 | fi | |
22493 | else | |
22494 | ac_cpp_err=yes | |
22495 | fi | |
22496 | if test -z "$ac_cpp_err"; then | |
22497 | ac_header_preproc=yes | |
22498 | else | |
22499 | echo "$as_me: failed program was:" >&5 | |
22500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22501 | ||
22502 | ac_header_preproc=no | |
22503 | fi | |
22504 | rm -f conftest.err conftest.$ac_ext | |
22505 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22506 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22507 | ||
22508 | # So? What about this header? | |
ac1cb8d3 VS |
22509 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22510 | yes:no: ) | |
a848cd7e SC |
22511 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22512 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22513 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
22514 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
22515 | ac_header_preproc=yes | |
a848cd7e | 22516 | ;; |
ac1cb8d3 | 22517 | no:yes:* ) |
a848cd7e SC |
22518 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
22519 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22520 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
22521 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
22522 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
22523 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
22524 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22525 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22526 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
22527 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22528 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
22529 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22530 | ( |
22531 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22532 | ## ----------------------------------------- ## |
22533 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22534 | ## ----------------------------------------- ## | |
a848cd7e SC |
22535 | _ASBOX |
22536 | ) | | |
22537 | sed "s/^/$as_me: WARNING: /" >&2 | |
22538 | ;; | |
22539 | esac | |
22540 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
22541 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
22542 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22544 | else | |
22545 | ac_cv_header_zlib_h=$ac_header_preproc | |
22546 | fi | |
22547 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22548 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22549 | ||
22550 | fi | |
22551 | ||
22552 | ||
22553 | ||
22554 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
22555 | fi | |
22556 | ||
22557 | if test "$system_zlib_h_ok" = "yes"; then | |
22558 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
22559 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
22560 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
22561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22562 | else | |
22563 | ac_check_lib_save_LIBS=$LIBS | |
22564 | LIBS="-lz $LIBS" | |
22565 | cat >conftest.$ac_ext <<_ACEOF | |
22566 | /* confdefs.h. */ | |
22567 | _ACEOF | |
22568 | cat confdefs.h >>conftest.$ac_ext | |
22569 | cat >>conftest.$ac_ext <<_ACEOF | |
22570 | /* end confdefs.h. */ | |
22571 | ||
22572 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22573 | #ifdef __cplusplus | |
22574 | extern "C" | |
22575 | #endif | |
22576 | /* We use char because int might match the return type of a gcc2 | |
22577 | builtin and then its argument prototype would still apply. */ | |
22578 | char deflate (); | |
22579 | int | |
22580 | main () | |
22581 | { | |
22582 | deflate (); | |
22583 | ; | |
22584 | return 0; | |
22585 | } | |
22586 | _ACEOF | |
22587 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22589 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22590 | ac_status=$? |
ac1cb8d3 VS |
22591 | grep -v '^ *+' conftest.er1 >conftest.err |
22592 | rm -f conftest.er1 | |
22593 | cat conftest.err >&5 | |
a848cd7e SC |
22594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22595 | (exit $ac_status); } && | |
9dd0f6c2 | 22596 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22598 | (eval $ac_try) 2>&5 | |
22599 | ac_status=$? | |
22600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22601 | (exit $ac_status); }; } && | |
22602 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
22608 | ac_cv_lib_z_deflate=yes | |
22609 | else | |
22610 | echo "$as_me: failed program was:" >&5 | |
22611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22612 | ||
22613 | ac_cv_lib_z_deflate=no | |
22614 | fi | |
ac1cb8d3 VS |
22615 | rm -f conftest.err conftest.$ac_objext \ |
22616 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22617 | LIBS=$ac_check_lib_save_LIBS |
22618 | fi | |
22619 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
22620 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
22621 | if test $ac_cv_lib_z_deflate = yes; then | |
22622 | ZLIB_LINK=" -lz" | |
22623 | fi | |
22624 | ||
22625 | fi | |
22626 | ||
22627 | if test "x$ZLIB_LINK" = "x" ; then | |
22628 | if test "$wxUSE_ZLIB" = "sys" ; then | |
22629 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
22630 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
22631 | { (exit 1); exit 1; }; } | |
22632 | else | |
22633 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
22634 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
22635 | wxUSE_ZLIB=builtin | |
22636 | fi | |
22637 | else | |
22638 | wxUSE_ZLIB=sys | |
22639 | fi | |
22640 | fi | |
22641 | fi | |
22642 | ||
22643 | ||
22644 | PNG_LINK= | |
22645 | if test "$wxUSE_LIBPNG" != "no" ; then | |
22646 | cat >>confdefs.h <<\_ACEOF | |
22647 | #define wxUSE_LIBPNG 1 | |
22648 | _ACEOF | |
22649 | ||
22650 | ||
22651 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
22652 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
22653 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
22654 | wxUSE_LIBPNG=sys | |
22655 | fi | |
22656 | ||
22657 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
22658 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
22659 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
22660 | wxUSE_LIBPNG=builtin | |
22661 | fi | |
22662 | ||
22663 | if test "$wxUSE_MGL" != 1 ; then | |
22664 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
22665 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
22666 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
22667 | if test "${ac_cv_header_png_h+set}" = set; then | |
22668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22669 | else | |
22670 | if test "$cross_compiling" = yes; then | |
22671 | unset ac_cv_header_png_h | |
22672 | ||
22673 | else | |
22674 | cat >conftest.$ac_ext <<_ACEOF | |
22675 | /* confdefs.h. */ | |
22676 | _ACEOF | |
22677 | cat confdefs.h >>conftest.$ac_ext | |
22678 | cat >>conftest.$ac_ext <<_ACEOF | |
22679 | /* end confdefs.h. */ | |
22680 | ||
22681 | #include <png.h> | |
22682 | #include <stdio.h> | |
22683 | ||
22684 | int main() | |
22685 | { | |
22686 | FILE *f=fopen("conftestval", "w"); | |
22687 | if (!f) exit(1); | |
22688 | fprintf(f, "%s", | |
22689 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
22690 | exit(0); | |
22691 | } | |
22692 | ||
22693 | _ACEOF | |
22694 | rm -f conftest$ac_exeext | |
22695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22696 | (eval $ac_link) 2>&5 | |
22697 | ac_status=$? | |
22698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22699 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22701 | (eval $ac_try) 2>&5 | |
22702 | ac_status=$? | |
22703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22704 | (exit $ac_status); }; }; then | |
22705 | ac_cv_header_png_h=`cat conftestval` | |
22706 | else | |
22707 | echo "$as_me: program exited with status $ac_status" >&5 | |
22708 | echo "$as_me: failed program was:" >&5 | |
22709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22710 | ||
22711 | ( exit $ac_status ) | |
22712 | ac_cv_header_png_h=no | |
22713 | fi | |
ac1cb8d3 | 22714 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22715 | fi |
22716 | ||
22717 | fi | |
22718 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22719 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22720 | if test "${ac_cv_header_png_h+set}" = set; then | |
22721 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
22722 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
22723 | if test "${ac_cv_header_png_h+set}" = set; then | |
22724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22725 | fi | |
22726 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22727 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22728 | else | |
22729 | # Is the header compilable? | |
22730 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
22731 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
22732 | cat >conftest.$ac_ext <<_ACEOF | |
22733 | /* confdefs.h. */ | |
22734 | _ACEOF | |
22735 | cat confdefs.h >>conftest.$ac_ext | |
22736 | cat >>conftest.$ac_ext <<_ACEOF | |
22737 | /* end confdefs.h. */ | |
22738 | $ac_includes_default | |
22739 | #include <png.h> | |
22740 | _ACEOF | |
22741 | rm -f conftest.$ac_objext | |
22742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22743 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22744 | ac_status=$? |
ac1cb8d3 VS |
22745 | grep -v '^ *+' conftest.er1 >conftest.err |
22746 | rm -f conftest.er1 | |
22747 | cat conftest.err >&5 | |
a848cd7e SC |
22748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22749 | (exit $ac_status); } && | |
9dd0f6c2 | 22750 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22752 | (eval $ac_try) 2>&5 | |
22753 | ac_status=$? | |
22754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22755 | (exit $ac_status); }; } && | |
22756 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22758 | (eval $ac_try) 2>&5 | |
22759 | ac_status=$? | |
22760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22761 | (exit $ac_status); }; }; then | |
22762 | ac_header_compiler=yes | |
22763 | else | |
22764 | echo "$as_me: failed program was:" >&5 | |
22765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22766 | ||
22767 | ac_header_compiler=no | |
22768 | fi | |
ac1cb8d3 | 22769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22770 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22771 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22772 | ||
22773 | # Is the header present? | |
22774 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
22775 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
22776 | cat >conftest.$ac_ext <<_ACEOF | |
22777 | /* confdefs.h. */ | |
22778 | _ACEOF | |
22779 | cat confdefs.h >>conftest.$ac_ext | |
22780 | cat >>conftest.$ac_ext <<_ACEOF | |
22781 | /* end confdefs.h. */ | |
22782 | #include <png.h> | |
22783 | _ACEOF | |
22784 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22785 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22786 | ac_status=$? | |
22787 | grep -v '^ *+' conftest.er1 >conftest.err | |
22788 | rm -f conftest.er1 | |
22789 | cat conftest.err >&5 | |
22790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22791 | (exit $ac_status); } >/dev/null; then | |
22792 | if test -s conftest.err; then | |
22793 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22794 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22795 | else |
22796 | ac_cpp_err= | |
22797 | fi | |
22798 | else | |
22799 | ac_cpp_err=yes | |
22800 | fi | |
22801 | if test -z "$ac_cpp_err"; then | |
22802 | ac_header_preproc=yes | |
22803 | else | |
22804 | echo "$as_me: failed program was:" >&5 | |
22805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22806 | ||
22807 | ac_header_preproc=no | |
22808 | fi | |
22809 | rm -f conftest.err conftest.$ac_ext | |
22810 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22811 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22812 | ||
22813 | # So? What about this header? | |
ac1cb8d3 VS |
22814 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22815 | yes:no: ) | |
a848cd7e SC |
22816 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22817 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22818 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
22819 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
22820 | ac_header_preproc=yes | |
a848cd7e | 22821 | ;; |
ac1cb8d3 | 22822 | no:yes:* ) |
a848cd7e SC |
22823 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
22824 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22825 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
22826 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
22827 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
22828 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
22829 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22830 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22831 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
22832 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22833 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
22834 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22835 | ( |
22836 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22837 | ## ----------------------------------------- ## |
22838 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22839 | ## ----------------------------------------- ## | |
a848cd7e SC |
22840 | _ASBOX |
22841 | ) | | |
22842 | sed "s/^/$as_me: WARNING: /" >&2 | |
22843 | ;; | |
22844 | esac | |
22845 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
22846 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
22847 | if test "${ac_cv_header_png_h+set}" = set; then | |
22848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22849 | else | |
22850 | ac_cv_header_png_h=$ac_header_preproc | |
22851 | fi | |
22852 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22853 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22854 | ||
22855 | fi | |
22856 | ||
22857 | ||
22858 | ||
22859 | if test "$ac_cv_header_png_h" = "yes"; then | |
22860 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
22861 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
22862 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
22863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22864 | else | |
22865 | ac_check_lib_save_LIBS=$LIBS | |
22866 | LIBS="-lpng -lz -lm $LIBS" | |
22867 | cat >conftest.$ac_ext <<_ACEOF | |
22868 | /* confdefs.h. */ | |
22869 | _ACEOF | |
22870 | cat confdefs.h >>conftest.$ac_ext | |
22871 | cat >>conftest.$ac_ext <<_ACEOF | |
22872 | /* end confdefs.h. */ | |
22873 | ||
22874 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22875 | #ifdef __cplusplus | |
22876 | extern "C" | |
22877 | #endif | |
22878 | /* We use char because int might match the return type of a gcc2 | |
22879 | builtin and then its argument prototype would still apply. */ | |
22880 | char png_check_sig (); | |
22881 | int | |
22882 | main () | |
22883 | { | |
22884 | png_check_sig (); | |
22885 | ; | |
22886 | return 0; | |
22887 | } | |
22888 | _ACEOF | |
22889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22891 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22892 | ac_status=$? |
ac1cb8d3 VS |
22893 | grep -v '^ *+' conftest.er1 >conftest.err |
22894 | rm -f conftest.er1 | |
22895 | cat conftest.err >&5 | |
a848cd7e SC |
22896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22897 | (exit $ac_status); } && | |
9dd0f6c2 | 22898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22900 | (eval $ac_try) 2>&5 | |
22901 | ac_status=$? | |
22902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22903 | (exit $ac_status); }; } && | |
22904 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22906 | (eval $ac_try) 2>&5 | |
22907 | ac_status=$? | |
22908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22909 | (exit $ac_status); }; }; then | |
22910 | ac_cv_lib_png_png_check_sig=yes | |
22911 | else | |
22912 | echo "$as_me: failed program was:" >&5 | |
22913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22914 | ||
22915 | ac_cv_lib_png_png_check_sig=no | |
22916 | fi | |
ac1cb8d3 VS |
22917 | rm -f conftest.err conftest.$ac_objext \ |
22918 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22919 | LIBS=$ac_check_lib_save_LIBS |
22920 | fi | |
22921 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
22922 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
22923 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
22924 | PNG_LINK=" -lpng -lz" | |
22925 | fi | |
22926 | ||
22927 | fi | |
22928 | ||
22929 | if test "x$PNG_LINK" = "x" ; then | |
22930 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
22931 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
22932 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
22933 | { (exit 1); exit 1; }; } | |
22934 | else | |
22935 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
22936 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
22937 | wxUSE_LIBPNG=builtin | |
22938 | fi | |
22939 | else | |
22940 | wxUSE_LIBPNG=sys | |
22941 | fi | |
22942 | fi | |
22943 | fi | |
22944 | ||
22945 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
22946 | fi | |
22947 | ||
22948 | ||
22949 | JPEG_LINK= | |
22950 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
22951 | cat >>confdefs.h <<\_ACEOF | |
22952 | #define wxUSE_LIBJPEG 1 | |
22953 | _ACEOF | |
22954 | ||
22955 | ||
22956 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
22957 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
22958 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
22959 | wxUSE_LIBJPEG=sys | |
22960 | fi | |
22961 | ||
22962 | if test "$wxUSE_MGL" != 1 ; then | |
22963 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
22964 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
22965 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
22966 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
22967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22968 | else | |
22969 | cat >conftest.$ac_ext <<_ACEOF | |
22970 | /* confdefs.h. */ | |
22971 | _ACEOF | |
22972 | cat confdefs.h >>conftest.$ac_ext | |
22973 | cat >>conftest.$ac_ext <<_ACEOF | |
22974 | /* end confdefs.h. */ | |
22975 | ||
22976 | #undef HAVE_STDLIB_H | |
22977 | #include <stdio.h> | |
22978 | #include <jpeglib.h> | |
22979 | ||
22980 | int | |
22981 | main () | |
22982 | { | |
22983 | ||
22984 | ||
22985 | ; | |
22986 | return 0; | |
22987 | } | |
22988 | _ACEOF | |
22989 | rm -f conftest.$ac_objext | |
22990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22991 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22992 | ac_status=$? |
ac1cb8d3 VS |
22993 | grep -v '^ *+' conftest.er1 >conftest.err |
22994 | rm -f conftest.er1 | |
22995 | cat conftest.err >&5 | |
a848cd7e SC |
22996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22997 | (exit $ac_status); } && | |
9dd0f6c2 | 22998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23000 | (eval $ac_try) 2>&5 | |
23001 | ac_status=$? | |
23002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23003 | (exit $ac_status); }; } && | |
23004 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23006 | (eval $ac_try) 2>&5 | |
23007 | ac_status=$? | |
23008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23009 | (exit $ac_status); }; }; then | |
23010 | ac_cv_header_jpeglib_h=yes | |
23011 | else | |
23012 | echo "$as_me: failed program was:" >&5 | |
23013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23014 | ||
23015 | ac_cv_header_jpeglib_h=no | |
23016 | ||
23017 | fi | |
ac1cb8d3 | 23018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23019 | |
23020 | fi | |
23021 | ||
23022 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
23023 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
23024 | ||
23025 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
23026 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
23027 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
23028 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
23029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23030 | else | |
23031 | ac_check_lib_save_LIBS=$LIBS | |
23032 | LIBS="-ljpeg $LIBS" | |
23033 | cat >conftest.$ac_ext <<_ACEOF | |
23034 | /* confdefs.h. */ | |
23035 | _ACEOF | |
23036 | cat confdefs.h >>conftest.$ac_ext | |
23037 | cat >>conftest.$ac_ext <<_ACEOF | |
23038 | /* end confdefs.h. */ | |
23039 | ||
23040 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23041 | #ifdef __cplusplus | |
23042 | extern "C" | |
23043 | #endif | |
23044 | /* We use char because int might match the return type of a gcc2 | |
23045 | builtin and then its argument prototype would still apply. */ | |
23046 | char jpeg_read_header (); | |
23047 | int | |
23048 | main () | |
23049 | { | |
23050 | jpeg_read_header (); | |
23051 | ; | |
23052 | return 0; | |
23053 | } | |
23054 | _ACEOF | |
23055 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23057 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23058 | ac_status=$? |
ac1cb8d3 VS |
23059 | grep -v '^ *+' conftest.er1 >conftest.err |
23060 | rm -f conftest.er1 | |
23061 | cat conftest.err >&5 | |
a848cd7e SC |
23062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23063 | (exit $ac_status); } && | |
9dd0f6c2 | 23064 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23066 | (eval $ac_try) 2>&5 | |
23067 | ac_status=$? | |
23068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23069 | (exit $ac_status); }; } && | |
23070 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23072 | (eval $ac_try) 2>&5 | |
23073 | ac_status=$? | |
23074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23075 | (exit $ac_status); }; }; then | |
23076 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
23077 | else | |
23078 | echo "$as_me: failed program was:" >&5 | |
23079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23080 | ||
23081 | ac_cv_lib_jpeg_jpeg_read_header=no | |
23082 | fi | |
ac1cb8d3 VS |
23083 | rm -f conftest.err conftest.$ac_objext \ |
23084 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23085 | LIBS=$ac_check_lib_save_LIBS |
23086 | fi | |
23087 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
23088 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
23089 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
23090 | JPEG_LINK=" -ljpeg" | |
23091 | fi | |
23092 | ||
23093 | fi | |
23094 | ||
23095 | if test "x$JPEG_LINK" = "x" ; then | |
23096 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
23097 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
23098 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
23099 | { (exit 1); exit 1; }; } | |
23100 | else | |
23101 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
23102 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
23103 | wxUSE_LIBJPEG=builtin | |
23104 | fi | |
23105 | else | |
23106 | wxUSE_LIBJPEG=sys | |
23107 | fi | |
23108 | fi | |
23109 | fi | |
23110 | fi | |
23111 | ||
23112 | ||
23113 | TIFF_LINK= | |
23114 | TIFF_PREREQ_LINKS=-lm | |
23115 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
23116 | cat >>confdefs.h <<\_ACEOF | |
23117 | #define wxUSE_LIBTIFF 1 | |
23118 | _ACEOF | |
23119 | ||
23120 | ||
23121 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
23122 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
23123 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
23124 | fi | |
23125 | if test "$wxUSE_ZLIB" = "sys"; then | |
23126 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
23127 | fi | |
23128 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23129 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
23130 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
23131 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23133 | fi | |
23134 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
23135 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
23136 | else | |
23137 | # Is the header compilable? | |
23138 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
23139 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
23140 | cat >conftest.$ac_ext <<_ACEOF | |
23141 | /* confdefs.h. */ | |
23142 | _ACEOF | |
23143 | cat confdefs.h >>conftest.$ac_ext | |
23144 | cat >>conftest.$ac_ext <<_ACEOF | |
23145 | /* end confdefs.h. */ | |
23146 | $ac_includes_default | |
23147 | #include <tiffio.h> | |
23148 | _ACEOF | |
23149 | rm -f conftest.$ac_objext | |
23150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23151 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23152 | ac_status=$? |
ac1cb8d3 VS |
23153 | grep -v '^ *+' conftest.er1 >conftest.err |
23154 | rm -f conftest.er1 | |
23155 | cat conftest.err >&5 | |
a848cd7e SC |
23156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23157 | (exit $ac_status); } && | |
9dd0f6c2 | 23158 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23160 | (eval $ac_try) 2>&5 | |
23161 | ac_status=$? | |
23162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23163 | (exit $ac_status); }; } && | |
23164 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23166 | (eval $ac_try) 2>&5 | |
23167 | ac_status=$? | |
23168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23169 | (exit $ac_status); }; }; then | |
23170 | ac_header_compiler=yes | |
23171 | else | |
23172 | echo "$as_me: failed program was:" >&5 | |
23173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23174 | ||
23175 | ac_header_compiler=no | |
23176 | fi | |
ac1cb8d3 | 23177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23178 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23179 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23180 | ||
23181 | # Is the header present? | |
23182 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
23183 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
23184 | cat >conftest.$ac_ext <<_ACEOF | |
23185 | /* confdefs.h. */ | |
23186 | _ACEOF | |
23187 | cat confdefs.h >>conftest.$ac_ext | |
23188 | cat >>conftest.$ac_ext <<_ACEOF | |
23189 | /* end confdefs.h. */ | |
23190 | #include <tiffio.h> | |
23191 | _ACEOF | |
23192 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23193 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23194 | ac_status=$? | |
23195 | grep -v '^ *+' conftest.er1 >conftest.err | |
23196 | rm -f conftest.er1 | |
23197 | cat conftest.err >&5 | |
23198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23199 | (exit $ac_status); } >/dev/null; then | |
23200 | if test -s conftest.err; then | |
23201 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23202 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23203 | else |
23204 | ac_cpp_err= | |
23205 | fi | |
23206 | else | |
23207 | ac_cpp_err=yes | |
23208 | fi | |
23209 | if test -z "$ac_cpp_err"; then | |
23210 | ac_header_preproc=yes | |
23211 | else | |
23212 | echo "$as_me: failed program was:" >&5 | |
23213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23214 | ||
23215 | ac_header_preproc=no | |
23216 | fi | |
23217 | rm -f conftest.err conftest.$ac_ext | |
23218 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23219 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23220 | ||
23221 | # So? What about this header? | |
ac1cb8d3 VS |
23222 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23223 | yes:no: ) | |
a848cd7e SC |
23224 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23225 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23226 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
23227 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
23228 | ac_header_preproc=yes | |
a848cd7e | 23229 | ;; |
ac1cb8d3 | 23230 | no:yes:* ) |
a848cd7e SC |
23231 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
23232 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23233 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
23234 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
23235 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
23236 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
23237 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23238 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23239 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
23240 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23241 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
23242 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23243 | ( |
23244 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23245 | ## ----------------------------------------- ## |
23246 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23247 | ## ----------------------------------------- ## | |
a848cd7e SC |
23248 | _ASBOX |
23249 | ) | | |
23250 | sed "s/^/$as_me: WARNING: /" >&2 | |
23251 | ;; | |
23252 | esac | |
23253 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
23254 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
23255 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23257 | else | |
23258 | ac_cv_header_tiffio_h=$ac_header_preproc | |
23259 | fi | |
23260 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
23261 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
23262 | ||
23263 | fi | |
23264 | if test $ac_cv_header_tiffio_h = yes; then | |
23265 | ||
23266 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
23267 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
23268 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
23269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23270 | else | |
23271 | ac_check_lib_save_LIBS=$LIBS | |
23272 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
23273 | cat >conftest.$ac_ext <<_ACEOF | |
23274 | /* confdefs.h. */ | |
23275 | _ACEOF | |
23276 | cat confdefs.h >>conftest.$ac_ext | |
23277 | cat >>conftest.$ac_ext <<_ACEOF | |
23278 | /* end confdefs.h. */ | |
23279 | ||
23280 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23281 | #ifdef __cplusplus | |
23282 | extern "C" | |
23283 | #endif | |
23284 | /* We use char because int might match the return type of a gcc2 | |
23285 | builtin and then its argument prototype would still apply. */ | |
23286 | char TIFFError (); | |
23287 | int | |
23288 | main () | |
23289 | { | |
23290 | TIFFError (); | |
23291 | ; | |
23292 | return 0; | |
23293 | } | |
23294 | _ACEOF | |
23295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23297 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23298 | ac_status=$? |
ac1cb8d3 VS |
23299 | grep -v '^ *+' conftest.er1 >conftest.err |
23300 | rm -f conftest.er1 | |
23301 | cat conftest.err >&5 | |
a848cd7e SC |
23302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23303 | (exit $ac_status); } && | |
9dd0f6c2 | 23304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23306 | (eval $ac_try) 2>&5 | |
23307 | ac_status=$? | |
23308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23309 | (exit $ac_status); }; } && | |
23310 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23312 | (eval $ac_try) 2>&5 | |
23313 | ac_status=$? | |
23314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23315 | (exit $ac_status); }; }; then | |
23316 | ac_cv_lib_tiff_TIFFError=yes | |
23317 | else | |
23318 | echo "$as_me: failed program was:" >&5 | |
23319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23320 | ||
23321 | ac_cv_lib_tiff_TIFFError=no | |
23322 | fi | |
ac1cb8d3 VS |
23323 | rm -f conftest.err conftest.$ac_objext \ |
23324 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23325 | LIBS=$ac_check_lib_save_LIBS |
23326 | fi | |
23327 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
23328 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
23329 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
23330 | TIFF_LINK=" -ltiff" | |
23331 | fi | |
23332 | ||
23333 | ||
23334 | ||
23335 | fi | |
23336 | ||
23337 | ||
23338 | ||
23339 | if test "x$TIFF_LINK" = "x" ; then | |
23340 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
23341 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
23342 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
23343 | { (exit 1); exit 1; }; } | |
23344 | else | |
23345 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
23346 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
23347 | wxUSE_LIBTIFF=builtin | |
23348 | fi | |
23349 | else | |
23350 | wxUSE_LIBTIFF=sys | |
23351 | fi | |
23352 | fi | |
23353 | fi | |
23354 | ||
23355 | ||
47a7e797 MW |
23356 | if test "$wxUSE_WCHAR_T" != "yes"; then |
23357 | if test "$wxUSE_EXPAT" != "no"; then | |
23358 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
23359 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
23360 | wxUSE_EXPAT=no | |
23361 | fi | |
23362 | if test "$wxUSE_XML" != "no"; then | |
23363 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
23364 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
23365 | wxUSE_XML=no | |
23366 | fi | |
23367 | fi | |
23368 | ||
a848cd7e SC |
23369 | if test "$wxUSE_EXPAT" != "no"; then |
23370 | wxUSE_XML=yes | |
23371 | cat >>confdefs.h <<\_ACEOF | |
23372 | #define wxUSE_EXPAT 1 | |
23373 | _ACEOF | |
23374 | ||
23375 | cat >>confdefs.h <<\_ACEOF | |
23376 | #define wxUSE_XML 1 | |
23377 | _ACEOF | |
23378 | ||
23379 | ||
23380 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
23381 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23382 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
23383 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
23384 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23386 | fi | |
23387 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
23388 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
23389 | else | |
23390 | # Is the header compilable? | |
23391 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
23392 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
23393 | cat >conftest.$ac_ext <<_ACEOF | |
23394 | /* confdefs.h. */ | |
23395 | _ACEOF | |
23396 | cat confdefs.h >>conftest.$ac_ext | |
23397 | cat >>conftest.$ac_ext <<_ACEOF | |
23398 | /* end confdefs.h. */ | |
23399 | $ac_includes_default | |
23400 | #include <expat.h> | |
23401 | _ACEOF | |
23402 | rm -f conftest.$ac_objext | |
23403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23404 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23405 | ac_status=$? |
ac1cb8d3 VS |
23406 | grep -v '^ *+' conftest.er1 >conftest.err |
23407 | rm -f conftest.er1 | |
23408 | cat conftest.err >&5 | |
a848cd7e SC |
23409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23410 | (exit $ac_status); } && | |
9dd0f6c2 | 23411 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23413 | (eval $ac_try) 2>&5 | |
23414 | ac_status=$? | |
23415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23416 | (exit $ac_status); }; } && | |
23417 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23419 | (eval $ac_try) 2>&5 | |
23420 | ac_status=$? | |
23421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23422 | (exit $ac_status); }; }; then | |
23423 | ac_header_compiler=yes | |
23424 | else | |
23425 | echo "$as_me: failed program was:" >&5 | |
23426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23427 | ||
23428 | ac_header_compiler=no | |
23429 | fi | |
ac1cb8d3 | 23430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23431 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23432 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23433 | ||
23434 | # Is the header present? | |
23435 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
23436 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
23437 | cat >conftest.$ac_ext <<_ACEOF | |
23438 | /* confdefs.h. */ | |
23439 | _ACEOF | |
23440 | cat confdefs.h >>conftest.$ac_ext | |
23441 | cat >>conftest.$ac_ext <<_ACEOF | |
23442 | /* end confdefs.h. */ | |
23443 | #include <expat.h> | |
23444 | _ACEOF | |
23445 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23446 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23447 | ac_status=$? | |
23448 | grep -v '^ *+' conftest.er1 >conftest.err | |
23449 | rm -f conftest.er1 | |
23450 | cat conftest.err >&5 | |
23451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23452 | (exit $ac_status); } >/dev/null; then | |
23453 | if test -s conftest.err; then | |
23454 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23455 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23456 | else |
23457 | ac_cpp_err= | |
23458 | fi | |
23459 | else | |
23460 | ac_cpp_err=yes | |
23461 | fi | |
23462 | if test -z "$ac_cpp_err"; then | |
23463 | ac_header_preproc=yes | |
23464 | else | |
23465 | echo "$as_me: failed program was:" >&5 | |
23466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23467 | ||
23468 | ac_header_preproc=no | |
23469 | fi | |
23470 | rm -f conftest.err conftest.$ac_ext | |
23471 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23472 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23473 | ||
23474 | # So? What about this header? | |
ac1cb8d3 VS |
23475 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23476 | yes:no: ) | |
a848cd7e SC |
23477 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23478 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23479 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
23480 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
23481 | ac_header_preproc=yes | |
a848cd7e | 23482 | ;; |
ac1cb8d3 | 23483 | no:yes:* ) |
a848cd7e SC |
23484 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
23485 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23486 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
23487 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
23488 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
23489 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
23490 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23491 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23492 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
23493 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23494 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
23495 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23496 | ( |
23497 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23498 | ## ----------------------------------------- ## |
23499 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23500 | ## ----------------------------------------- ## | |
a848cd7e SC |
23501 | _ASBOX |
23502 | ) | | |
23503 | sed "s/^/$as_me: WARNING: /" >&2 | |
23504 | ;; | |
23505 | esac | |
23506 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
23507 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
23508 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23510 | else | |
23511 | ac_cv_header_expat_h=$ac_header_preproc | |
23512 | fi | |
23513 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
23514 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
23515 | ||
23516 | fi | |
23517 | if test $ac_cv_header_expat_h = yes; then | |
23518 | found_expat_h=1 | |
23519 | fi | |
23520 | ||
23521 | ||
23522 | if test "x$found_expat_h" = "x1"; then | |
23523 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
23524 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
23525 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
23526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23527 | else | |
23528 | ||
23529 | ||
23530 | ||
23531 | ac_ext=cc | |
23532 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23533 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23534 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23535 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23536 | ||
23537 | cat >conftest.$ac_ext <<_ACEOF | |
23538 | /* confdefs.h. */ | |
23539 | _ACEOF | |
23540 | cat confdefs.h >>conftest.$ac_ext | |
23541 | cat >>conftest.$ac_ext <<_ACEOF | |
23542 | /* end confdefs.h. */ | |
23543 | #include <expat.h> | |
23544 | int | |
23545 | main () | |
23546 | { | |
23547 | ||
23548 | ; | |
23549 | return 0; | |
23550 | } | |
23551 | _ACEOF | |
23552 | rm -f conftest.$ac_objext | |
23553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23554 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23555 | ac_status=$? |
ac1cb8d3 VS |
23556 | grep -v '^ *+' conftest.er1 >conftest.err |
23557 | rm -f conftest.er1 | |
23558 | cat conftest.err >&5 | |
a848cd7e SC |
23559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23560 | (exit $ac_status); } && | |
9dd0f6c2 | 23561 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23563 | (eval $ac_try) 2>&5 | |
23564 | ac_status=$? | |
23565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23566 | (exit $ac_status); }; } && | |
23567 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23569 | (eval $ac_try) 2>&5 | |
23570 | ac_status=$? | |
23571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23572 | (exit $ac_status); }; }; then | |
23573 | wx_cv_expat_is_not_broken=yes | |
23574 | else | |
23575 | echo "$as_me: failed program was:" >&5 | |
23576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23577 | ||
23578 | wx_cv_expat_is_not_broken=no | |
23579 | ||
23580 | fi | |
ac1cb8d3 | 23581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23582 | ac_ext=c |
23583 | ac_cpp='$CPP $CPPFLAGS' | |
23584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23587 | ||
23588 | ||
23589 | ||
23590 | fi | |
23591 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
23592 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
23593 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
23594 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
23595 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
23596 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
23597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23598 | else | |
23599 | ac_check_lib_save_LIBS=$LIBS | |
23600 | LIBS="-lexpat $LIBS" | |
23601 | cat >conftest.$ac_ext <<_ACEOF | |
23602 | /* confdefs.h. */ | |
23603 | _ACEOF | |
23604 | cat confdefs.h >>conftest.$ac_ext | |
23605 | cat >>conftest.$ac_ext <<_ACEOF | |
23606 | /* end confdefs.h. */ | |
23607 | ||
23608 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23609 | #ifdef __cplusplus | |
23610 | extern "C" | |
23611 | #endif | |
23612 | /* We use char because int might match the return type of a gcc2 | |
23613 | builtin and then its argument prototype would still apply. */ | |
23614 | char XML_ParserCreate (); | |
23615 | int | |
23616 | main () | |
23617 | { | |
23618 | XML_ParserCreate (); | |
23619 | ; | |
23620 | return 0; | |
23621 | } | |
23622 | _ACEOF | |
23623 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23625 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23626 | ac_status=$? |
ac1cb8d3 VS |
23627 | grep -v '^ *+' conftest.er1 >conftest.err |
23628 | rm -f conftest.er1 | |
23629 | cat conftest.err >&5 | |
a848cd7e SC |
23630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23631 | (exit $ac_status); } && | |
9dd0f6c2 | 23632 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23634 | (eval $ac_try) 2>&5 | |
23635 | ac_status=$? | |
23636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23637 | (exit $ac_status); }; } && | |
23638 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23640 | (eval $ac_try) 2>&5 | |
23641 | ac_status=$? | |
23642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23643 | (exit $ac_status); }; }; then | |
23644 | ac_cv_lib_expat_XML_ParserCreate=yes | |
23645 | else | |
23646 | echo "$as_me: failed program was:" >&5 | |
23647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23648 | ||
23649 | ac_cv_lib_expat_XML_ParserCreate=no | |
23650 | fi | |
ac1cb8d3 VS |
23651 | rm -f conftest.err conftest.$ac_objext \ |
23652 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23653 | LIBS=$ac_check_lib_save_LIBS |
23654 | fi | |
23655 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
23656 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
23657 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
23658 | EXPAT_LINK=" -lexpat" | |
23659 | fi | |
23660 | ||
23661 | fi | |
23662 | fi | |
23663 | if test "x$EXPAT_LINK" = "x" ; then | |
23664 | if test "$wxUSE_EXPAT" = "sys" ; then | |
23665 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
23666 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
23667 | { (exit 1); exit 1; }; } | |
23668 | else | |
23669 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
23670 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
23671 | wxUSE_EXPAT=builtin | |
23672 | fi | |
23673 | else | |
23674 | wxUSE_EXPAT=sys | |
23675 | fi | |
23676 | fi | |
23677 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
23678 | ||
23679 | ||
23680 | subdirs="$subdirs src/expat" | |
23681 | ||
23682 | fi | |
23683 | fi | |
23684 | ||
23685 | ||
23686 | ||
23687 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
23688 | if test "${ac_cv_header_mspack_h+set}" = set; then |
23689 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
23690 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
23691 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
23692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23693 | fi | |
23694 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
23695 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
23696 | else | |
23697 | # Is the header compilable? | |
23698 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
23699 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
23700 | cat >conftest.$ac_ext <<_ACEOF | |
23701 | /* confdefs.h. */ | |
23702 | _ACEOF | |
23703 | cat confdefs.h >>conftest.$ac_ext | |
23704 | cat >>conftest.$ac_ext <<_ACEOF | |
23705 | /* end confdefs.h. */ | |
23706 | $ac_includes_default | |
23707 | #include <mspack.h> | |
23708 | _ACEOF | |
23709 | rm -f conftest.$ac_objext | |
23710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23711 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23712 | ac_status=$? |
ac1cb8d3 VS |
23713 | grep -v '^ *+' conftest.er1 >conftest.err |
23714 | rm -f conftest.er1 | |
23715 | cat conftest.err >&5 | |
a848cd7e SC |
23716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23717 | (exit $ac_status); } && | |
9dd0f6c2 | 23718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23720 | (eval $ac_try) 2>&5 | |
23721 | ac_status=$? | |
23722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23723 | (exit $ac_status); }; } && | |
23724 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23726 | (eval $ac_try) 2>&5 | |
23727 | ac_status=$? | |
23728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23729 | (exit $ac_status); }; }; then | |
23730 | ac_header_compiler=yes | |
23731 | else | |
23732 | echo "$as_me: failed program was:" >&5 | |
23733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23734 | ||
23735 | ac_header_compiler=no | |
23736 | fi | |
ac1cb8d3 | 23737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23738 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23739 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23740 | ||
23741 | # Is the header present? | |
23742 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
23743 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
23744 | cat >conftest.$ac_ext <<_ACEOF | |
23745 | /* confdefs.h. */ | |
23746 | _ACEOF | |
23747 | cat confdefs.h >>conftest.$ac_ext | |
23748 | cat >>conftest.$ac_ext <<_ACEOF | |
23749 | /* end confdefs.h. */ | |
23750 | #include <mspack.h> | |
23751 | _ACEOF | |
23752 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23753 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23754 | ac_status=$? | |
23755 | grep -v '^ *+' conftest.er1 >conftest.err | |
23756 | rm -f conftest.er1 | |
23757 | cat conftest.err >&5 | |
23758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23759 | (exit $ac_status); } >/dev/null; then | |
23760 | if test -s conftest.err; then | |
23761 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23762 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23763 | else |
23764 | ac_cpp_err= | |
23765 | fi | |
23766 | else | |
23767 | ac_cpp_err=yes | |
23768 | fi | |
23769 | if test -z "$ac_cpp_err"; then | |
23770 | ac_header_preproc=yes | |
23771 | else | |
23772 | echo "$as_me: failed program was:" >&5 | |
23773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23774 | ||
23775 | ac_header_preproc=no | |
23776 | fi | |
23777 | rm -f conftest.err conftest.$ac_ext | |
23778 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23779 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23780 | ||
23781 | # So? What about this header? | |
ac1cb8d3 VS |
23782 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23783 | yes:no: ) | |
a848cd7e SC |
23784 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23785 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23786 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
23787 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
23788 | ac_header_preproc=yes | |
a848cd7e | 23789 | ;; |
ac1cb8d3 | 23790 | no:yes:* ) |
a848cd7e SC |
23791 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
23792 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23793 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
23794 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
23795 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
23796 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
23797 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23798 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23799 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
23800 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23801 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
23802 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23803 | ( |
23804 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23805 | ## ----------------------------------------- ## |
23806 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23807 | ## ----------------------------------------- ## | |
a848cd7e SC |
23808 | _ASBOX |
23809 | ) | | |
23810 | sed "s/^/$as_me: WARNING: /" >&2 | |
23811 | ;; | |
23812 | esac | |
23813 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
23814 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
23815 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
23816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23817 | else | |
23818 | ac_cv_header_mspack_h=$ac_header_preproc | |
23819 | fi | |
23820 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
23821 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
23822 | ||
23823 | fi | |
23824 | if test $ac_cv_header_mspack_h = yes; then | |
23825 | found_mspack_h=1 | |
23826 | fi | |
23827 | ||
23828 | ||
23829 | if test "x$found_mspack_h" = "x1"; then | |
23830 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
23831 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
23832 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
23833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23834 | else | |
23835 | ac_check_lib_save_LIBS=$LIBS | |
23836 | LIBS="-lmspack $LIBS" | |
23837 | cat >conftest.$ac_ext <<_ACEOF | |
23838 | /* confdefs.h. */ | |
23839 | _ACEOF | |
23840 | cat confdefs.h >>conftest.$ac_ext | |
23841 | cat >>conftest.$ac_ext <<_ACEOF | |
23842 | /* end confdefs.h. */ | |
23843 | ||
23844 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23845 | #ifdef __cplusplus | |
23846 | extern "C" | |
23847 | #endif | |
23848 | /* We use char because int might match the return type of a gcc2 | |
23849 | builtin and then its argument prototype would still apply. */ | |
23850 | char mspack_create_chm_decompressor (); | |
23851 | int | |
23852 | main () | |
23853 | { | |
23854 | mspack_create_chm_decompressor (); | |
23855 | ; | |
23856 | return 0; | |
23857 | } | |
23858 | _ACEOF | |
23859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23861 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23862 | ac_status=$? |
ac1cb8d3 VS |
23863 | grep -v '^ *+' conftest.er1 >conftest.err |
23864 | rm -f conftest.er1 | |
23865 | cat conftest.err >&5 | |
a848cd7e SC |
23866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23867 | (exit $ac_status); } && | |
9dd0f6c2 | 23868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23870 | (eval $ac_try) 2>&5 | |
23871 | ac_status=$? | |
23872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23873 | (exit $ac_status); }; } && | |
23874 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23876 | (eval $ac_try) 2>&5 | |
23877 | ac_status=$? | |
23878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23879 | (exit $ac_status); }; }; then | |
23880 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
23881 | else | |
23882 | echo "$as_me: failed program was:" >&5 | |
23883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23884 | ||
23885 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
23886 | fi | |
ac1cb8d3 VS |
23887 | rm -f conftest.err conftest.$ac_objext \ |
23888 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23889 | LIBS=$ac_check_lib_save_LIBS |
23890 | fi | |
23891 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
23892 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
23893 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
23894 | MSPACK_LINK=" -lmspack" | |
23895 | fi | |
23896 | ||
23897 | fi | |
23898 | if test "x$MSPACK_LINK" = "x" ; then | |
23899 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
23900 | fi |
23901 | fi | |
23902 | ||
23903 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
23904 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
23905 | #define wxUSE_LIBMSPACK 1 |
23906 | _ACEOF | |
23907 | ||
a848cd7e SC |
23908 | fi |
23909 | ||
23910 | ||
23911 | ||
23912 | AFMINSTALL= | |
23913 | WIN32INSTALL= | |
23914 | ||
23915 | TOOLKIT= | |
23916 | TOOLKIT_INCLUDE= | |
23917 | WIDGET_SET= | |
23918 | ||
23919 | if test "$USE_WIN32" = 1 ; then | |
23920 | ||
23921 | for ac_header in w32api.h | |
23922 | do | |
23923 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23925 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23926 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23927 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23929 | fi | |
23930 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23931 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23932 | else | |
23933 | # Is the header compilable? | |
23934 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23935 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
23936 | cat >conftest.$ac_ext <<_ACEOF | |
23937 | /* confdefs.h. */ | |
23938 | _ACEOF | |
23939 | cat confdefs.h >>conftest.$ac_ext | |
23940 | cat >>conftest.$ac_ext <<_ACEOF | |
23941 | /* end confdefs.h. */ | |
23942 | $ac_includes_default | |
23943 | #include <$ac_header> | |
23944 | _ACEOF | |
23945 | rm -f conftest.$ac_objext | |
23946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23947 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23948 | ac_status=$? |
ac1cb8d3 VS |
23949 | grep -v '^ *+' conftest.er1 >conftest.err |
23950 | rm -f conftest.er1 | |
23951 | cat conftest.err >&5 | |
a848cd7e SC |
23952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23953 | (exit $ac_status); } && | |
9dd0f6c2 | 23954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23956 | (eval $ac_try) 2>&5 | |
23957 | ac_status=$? | |
23958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23959 | (exit $ac_status); }; } && | |
23960 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23962 | (eval $ac_try) 2>&5 | |
23963 | ac_status=$? | |
23964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23965 | (exit $ac_status); }; }; then | |
23966 | ac_header_compiler=yes | |
23967 | else | |
23968 | echo "$as_me: failed program was:" >&5 | |
23969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23970 | ||
23971 | ac_header_compiler=no | |
23972 | fi | |
ac1cb8d3 | 23973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23974 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23975 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23976 | ||
23977 | # Is the header present? | |
23978 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23979 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
23980 | cat >conftest.$ac_ext <<_ACEOF | |
23981 | /* confdefs.h. */ | |
23982 | _ACEOF | |
23983 | cat confdefs.h >>conftest.$ac_ext | |
23984 | cat >>conftest.$ac_ext <<_ACEOF | |
23985 | /* end confdefs.h. */ | |
23986 | #include <$ac_header> | |
23987 | _ACEOF | |
23988 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23989 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23990 | ac_status=$? | |
23991 | grep -v '^ *+' conftest.er1 >conftest.err | |
23992 | rm -f conftest.er1 | |
23993 | cat conftest.err >&5 | |
23994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23995 | (exit $ac_status); } >/dev/null; then | |
23996 | if test -s conftest.err; then | |
23997 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23998 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23999 | else |
24000 | ac_cpp_err= | |
24001 | fi | |
24002 | else | |
24003 | ac_cpp_err=yes | |
24004 | fi | |
24005 | if test -z "$ac_cpp_err"; then | |
24006 | ac_header_preproc=yes | |
24007 | else | |
24008 | echo "$as_me: failed program was:" >&5 | |
24009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24010 | ||
24011 | ac_header_preproc=no | |
24012 | fi | |
24013 | rm -f conftest.err conftest.$ac_ext | |
24014 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24015 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24016 | ||
24017 | # So? What about this header? | |
ac1cb8d3 VS |
24018 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24019 | yes:no: ) | |
a848cd7e SC |
24020 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
24021 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24022 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
24023 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24024 | ac_header_preproc=yes | |
a848cd7e | 24025 | ;; |
ac1cb8d3 | 24026 | no:yes:* ) |
a848cd7e SC |
24027 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
24028 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24029 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
24030 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24031 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24032 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24033 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24034 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24035 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
24036 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24037 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
24038 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24039 | ( |
24040 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24041 | ## ----------------------------------------- ## |
24042 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24043 | ## ----------------------------------------- ## | |
a848cd7e SC |
24044 | _ASBOX |
24045 | ) | | |
24046 | sed "s/^/$as_me: WARNING: /" >&2 | |
24047 | ;; | |
24048 | esac | |
24049 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24053 | else | |
ac1cb8d3 | 24054 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
24055 | fi |
24056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24057 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24058 | ||
24059 | fi | |
24060 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
24061 | cat >>confdefs.h <<_ACEOF | |
24062 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
24063 | _ACEOF | |
24064 | ||
24065 | fi | |
24066 | ||
24067 | done | |
24068 | ||
24069 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24070 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
24071 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
24072 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24074 | fi | |
24075 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
24076 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
24077 | else | |
24078 | # Is the header compilable? | |
24079 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
24080 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
24081 | cat >conftest.$ac_ext <<_ACEOF | |
24082 | /* confdefs.h. */ | |
24083 | _ACEOF | |
24084 | cat confdefs.h >>conftest.$ac_ext | |
24085 | cat >>conftest.$ac_ext <<_ACEOF | |
24086 | /* end confdefs.h. */ | |
24087 | $ac_includes_default | |
24088 | #include <windows.h> | |
24089 | _ACEOF | |
24090 | rm -f conftest.$ac_objext | |
24091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24092 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24093 | ac_status=$? |
ac1cb8d3 VS |
24094 | grep -v '^ *+' conftest.er1 >conftest.err |
24095 | rm -f conftest.er1 | |
24096 | cat conftest.err >&5 | |
a848cd7e SC |
24097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24098 | (exit $ac_status); } && | |
9dd0f6c2 | 24099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24101 | (eval $ac_try) 2>&5 | |
24102 | ac_status=$? | |
24103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24104 | (exit $ac_status); }; } && | |
24105 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24107 | (eval $ac_try) 2>&5 | |
24108 | ac_status=$? | |
24109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24110 | (exit $ac_status); }; }; then | |
24111 | ac_header_compiler=yes | |
24112 | else | |
24113 | echo "$as_me: failed program was:" >&5 | |
24114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24115 | ||
24116 | ac_header_compiler=no | |
24117 | fi | |
ac1cb8d3 | 24118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24119 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24120 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24121 | ||
24122 | # Is the header present? | |
24123 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
24124 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
24125 | cat >conftest.$ac_ext <<_ACEOF | |
24126 | /* confdefs.h. */ | |
24127 | _ACEOF | |
24128 | cat confdefs.h >>conftest.$ac_ext | |
24129 | cat >>conftest.$ac_ext <<_ACEOF | |
24130 | /* end confdefs.h. */ | |
24131 | #include <windows.h> | |
24132 | _ACEOF | |
24133 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24134 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24135 | ac_status=$? | |
24136 | grep -v '^ *+' conftest.er1 >conftest.err | |
24137 | rm -f conftest.er1 | |
24138 | cat conftest.err >&5 | |
24139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24140 | (exit $ac_status); } >/dev/null; then | |
24141 | if test -s conftest.err; then | |
24142 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24143 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24144 | else |
24145 | ac_cpp_err= | |
24146 | fi | |
24147 | else | |
24148 | ac_cpp_err=yes | |
24149 | fi | |
24150 | if test -z "$ac_cpp_err"; then | |
24151 | ac_header_preproc=yes | |
24152 | else | |
24153 | echo "$as_me: failed program was:" >&5 | |
24154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24155 | ||
24156 | ac_header_preproc=no | |
24157 | fi | |
24158 | rm -f conftest.err conftest.$ac_ext | |
24159 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24160 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24161 | ||
24162 | # So? What about this header? | |
ac1cb8d3 VS |
24163 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24164 | yes:no: ) | |
a848cd7e SC |
24165 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24166 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24167 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
24168 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
24169 | ac_header_preproc=yes | |
a848cd7e | 24170 | ;; |
ac1cb8d3 | 24171 | no:yes:* ) |
a848cd7e SC |
24172 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
24173 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24174 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
24175 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
24176 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
24177 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
24178 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24179 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24180 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
24181 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24182 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
24183 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24184 | ( |
24185 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24186 | ## ----------------------------------------- ## |
24187 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24188 | ## ----------------------------------------- ## | |
a848cd7e SC |
24189 | _ASBOX |
24190 | ) | | |
24191 | sed "s/^/$as_me: WARNING: /" >&2 | |
24192 | ;; | |
24193 | esac | |
24194 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
24195 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
24196 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24198 | else | |
24199 | ac_cv_header_windows_h=$ac_header_preproc | |
24200 | fi | |
24201 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
24202 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
24203 | ||
24204 | fi | |
24205 | if test $ac_cv_header_windows_h = yes; then | |
24206 | : | |
24207 | else | |
24208 | ||
24209 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
24210 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
24211 | { (exit 1); exit 1; }; } | |
24212 | ||
24213 | fi | |
24214 | ||
24215 | ||
24216 | ||
24217 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
24218 | ||
24219 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
24220 | LIBS="$LIBS -loleacc" | |
24221 | fi | |
24222 | ||
24223 | case "${host}" in | |
24224 | *-*-cygwin* ) | |
24225 | LIBS="$LIBS -lkernel32 -luser32" | |
24226 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
24227 | esac | |
24228 | ||
24229 | if test "$wxUSE_ODBC" = "sys" ; then | |
24230 | wxUSE_ODBC = "yes" | |
24231 | fi | |
24232 | if test "$wxUSE_ODBC" = "yes" ; then | |
24233 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
24234 | cat >>confdefs.h <<\_ACEOF | |
24235 | #define wxUSE_ODBC 1 | |
24236 | _ACEOF | |
24237 | ||
24238 | fi | |
24239 | ||
24240 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
24241 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
24242 | ||
24243 | WIN32INSTALL=win32install | |
24244 | fi | |
24245 | ||
24246 | if test "$wxUSE_GUI" = "yes"; then | |
24247 | USE_GUI=1 | |
24248 | ||
24249 | GUI_TK_LIBRARY= | |
24250 | ||
24251 | WXGTK12= | |
24252 | WXGTK127= | |
24253 | WXGTK20= | |
24254 | WXGPE= | |
24255 | ||
207bc66c RN |
24256 | if test "$wxUSE_COCOA" = 1 ; then |
24257 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
24258 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
24259 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
24260 | wxUSE_PRINTING_ARCHITECTURE=no | |
24261 | fi | |
24262 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
24263 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
24264 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
24265 | wxUSE_DRAG_AND_DROP=no | |
24266 | fi | |
24267 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
24268 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
24269 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
24270 | wxUSE_DRAGIMAGE=no | |
24271 | fi | |
24272 | fi | |
24273 | ||
a848cd7e SC |
24274 | if test "$wxUSE_MSW" = 1 ; then |
24275 | TOOLKIT=MSW | |
24276 | GUIDIST=MSW_DIST | |
24277 | ||
ceec2216 | 24278 | case "${host}" in |
a848cd7e SC |
24279 | *-*-mingw32* ) |
24280 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
24281 | esac | |
24282 | fi | |
24283 | ||
24284 | if test "$wxUSE_GTK" = 1; then | |
24285 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
24286 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
24287 | ||
24288 | gtk_version_cached=1 | |
24289 | if test "${wx_cv_lib_gtk+set}" = set; then | |
24290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24291 | else | |
24292 | ||
24293 | gtk_version_cached=0 | |
24294 | echo "$as_me:$LINENO: result: " >&5 | |
24295 | echo "${ECHO_T}" >&6 | |
24296 | ||
24297 | GTK_MODULES= | |
24298 | if test "$wxUSE_THREADS" = "yes"; then | |
24299 | GTK_MODULES=gthread | |
24300 | fi | |
24301 | ||
f597b41c | 24302 | wx_cv_lib_gtk= |
f34ca037 | 24303 | if test "x$wxGTK_VERSION" != "x1"; then |
a848cd7e SC |
24304 | # Check whether --enable-gtktest or --disable-gtktest was given. |
24305 | if test "${enable_gtktest+set}" = set; then | |
24306 | enableval="$enable_gtktest" | |
24307 | ||
24308 | else | |
24309 | enable_gtktest=yes | |
24310 | fi; | |
24311 | ||
24312 | pkg_config_args=gtk+-2.0 | |
24313 | for module in . $GTK_MODULES | |
24314 | do | |
24315 | case "$module" in | |
24316 | gthread) | |
24317 | pkg_config_args="$pkg_config_args gthread-2.0" | |
24318 | ;; | |
24319 | esac | |
24320 | done | |
24321 | ||
24322 | no_gtk="" | |
24323 | ||
24324 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24325 | set dummy pkg-config; ac_word=$2 | |
24326 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24327 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24328 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24330 | else | |
24331 | case $PKG_CONFIG in | |
24332 | [\\/]* | ?:[\\/]*) | |
24333 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
24334 | ;; | |
24335 | *) | |
24336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24337 | for as_dir in $PATH | |
24338 | do | |
24339 | IFS=$as_save_IFS | |
24340 | test -z "$as_dir" && as_dir=. | |
24341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24342 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24343 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24344 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24345 | break 2 | |
24346 | fi | |
24347 | done | |
24348 | done | |
24349 | ||
24350 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
24351 | ;; | |
24352 | esac | |
24353 | fi | |
24354 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
24355 | ||
24356 | if test -n "$PKG_CONFIG"; then | |
24357 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
24358 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
24359 | else | |
24360 | echo "$as_me:$LINENO: result: no" >&5 | |
24361 | echo "${ECHO_T}no" >&6 | |
24362 | fi | |
24363 | ||
24364 | ||
24365 | if test x$PKG_CONFIG != xno ; then | |
24366 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
24367 | : | |
24368 | else | |
c2218763 | 24369 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
24370 | no_gtk=yes |
24371 | PKG_CONFIG=no | |
24372 | fi | |
24373 | else | |
24374 | no_gtk=yes | |
24375 | fi | |
24376 | ||
24377 | min_gtk_version=2.0.0 | |
24378 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
24379 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
24380 | ||
24381 | if test x$PKG_CONFIG != xno ; then | |
24382 | ## don't try to run the test against uninstalled libtool libs | |
24383 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
24384 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
24385 | enable_gtktest=no | |
24386 | fi | |
24387 | ||
24388 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
24389 | : | |
24390 | else | |
24391 | no_gtk=yes | |
24392 | fi | |
24393 | fi | |
24394 | ||
24395 | if test x"$no_gtk" = x ; then | |
24396 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
24397 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
24398 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24399 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24400 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24401 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24402 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24403 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24404 | if test "x$enable_gtktest" = "xyes" ; then | |
24405 | ac_save_CFLAGS="$CFLAGS" | |
24406 | ac_save_LIBS="$LIBS" | |
24407 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24408 | LIBS="$GTK_LIBS $LIBS" | |
24409 | rm -f conf.gtktest | |
24410 | if test "$cross_compiling" = yes; then | |
24411 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24412 | else | |
24413 | cat >conftest.$ac_ext <<_ACEOF | |
24414 | /* confdefs.h. */ | |
24415 | _ACEOF | |
24416 | cat confdefs.h >>conftest.$ac_ext | |
24417 | cat >>conftest.$ac_ext <<_ACEOF | |
24418 | /* end confdefs.h. */ | |
24419 | ||
24420 | #include <gtk/gtk.h> | |
24421 | #include <stdio.h> | |
24422 | #include <stdlib.h> | |
24423 | ||
24424 | int | |
24425 | main () | |
24426 | { | |
24427 | int major, minor, micro; | |
24428 | char *tmp_version; | |
24429 | ||
24430 | system ("touch conf.gtktest"); | |
24431 | ||
24432 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24433 | tmp_version = g_strdup("$min_gtk_version"); | |
24434 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24435 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24436 | exit(1); | |
24437 | } | |
24438 | ||
24439 | if ((gtk_major_version != $gtk_config_major_version) || | |
24440 | (gtk_minor_version != $gtk_config_minor_version) || | |
24441 | (gtk_micro_version != $gtk_config_micro_version)) | |
24442 | { | |
24443 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24444 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24445 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24446 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
24447 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24448 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24449 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24450 | printf("*** required on your system.\n"); | |
24451 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
24452 | printf("*** to point to the correct configuration files\n"); | |
24453 | } | |
24454 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24455 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24456 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24457 | { | |
24458 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24459 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24460 | printf("*** library (version %d.%d.%d)\n", | |
24461 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24462 | } | |
24463 | else | |
24464 | { | |
24465 | if ((gtk_major_version > major) || | |
24466 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24467 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24468 | { | |
24469 | return 0; | |
24470 | } | |
24471 | else | |
24472 | { | |
24473 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24474 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24475 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24476 | major, minor, micro); | |
24477 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24478 | printf("***\n"); | |
24479 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24480 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
24481 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24482 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
24483 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
24484 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24485 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24486 | } | |
24487 | } | |
24488 | return 1; | |
24489 | } | |
24490 | ||
24491 | _ACEOF | |
24492 | rm -f conftest$ac_exeext | |
24493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24494 | (eval $ac_link) 2>&5 | |
24495 | ac_status=$? | |
24496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24497 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24499 | (eval $ac_try) 2>&5 | |
24500 | ac_status=$? | |
24501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24502 | (exit $ac_status); }; }; then | |
24503 | : | |
24504 | else | |
24505 | echo "$as_me: program exited with status $ac_status" >&5 | |
24506 | echo "$as_me: failed program was:" >&5 | |
24507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24508 | ||
24509 | ( exit $ac_status ) | |
24510 | no_gtk=yes | |
24511 | fi | |
ac1cb8d3 | 24512 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24513 | fi |
24514 | CFLAGS="$ac_save_CFLAGS" | |
24515 | LIBS="$ac_save_LIBS" | |
24516 | fi | |
24517 | fi | |
24518 | if test "x$no_gtk" = x ; then | |
24519 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
24520 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
24521 | wx_cv_lib_gtk=2.0 | |
24522 | else | |
24523 | echo "$as_me:$LINENO: result: no" >&5 | |
24524 | echo "${ECHO_T}no" >&6 | |
24525 | if test "$PKG_CONFIG" = "no" ; then | |
24526 | echo "*** A new enough version of pkg-config was not found." | |
24527 | echo "*** See http://pkgconfig.sourceforge.net" | |
24528 | else | |
24529 | if test -f conf.gtktest ; then | |
24530 | : | |
24531 | else | |
24532 | echo "*** Could not run GTK+ test program, checking why..." | |
24533 | ac_save_CFLAGS="$CFLAGS" | |
24534 | ac_save_LIBS="$LIBS" | |
24535 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24536 | LIBS="$LIBS $GTK_LIBS" | |
24537 | cat >conftest.$ac_ext <<_ACEOF | |
24538 | /* confdefs.h. */ | |
24539 | _ACEOF | |
24540 | cat confdefs.h >>conftest.$ac_ext | |
24541 | cat >>conftest.$ac_ext <<_ACEOF | |
24542 | /* end confdefs.h. */ | |
24543 | ||
24544 | #include <gtk/gtk.h> | |
24545 | #include <stdio.h> | |
24546 | ||
24547 | int | |
24548 | main () | |
24549 | { | |
24550 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24551 | ; | |
24552 | return 0; | |
24553 | } | |
24554 | _ACEOF | |
24555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24557 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24558 | ac_status=$? |
ac1cb8d3 VS |
24559 | grep -v '^ *+' conftest.er1 >conftest.err |
24560 | rm -f conftest.er1 | |
24561 | cat conftest.err >&5 | |
a848cd7e SC |
24562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24563 | (exit $ac_status); } && | |
9dd0f6c2 | 24564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24566 | (eval $ac_try) 2>&5 | |
24567 | ac_status=$? | |
24568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24569 | (exit $ac_status); }; } && | |
24570 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24572 | (eval $ac_try) 2>&5 | |
24573 | ac_status=$? | |
24574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24575 | (exit $ac_status); }; }; then | |
24576 | echo "*** The test program compiled, but did not run. This usually means" | |
24577 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
24578 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
24579 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24580 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24581 | echo "*** is required on your system" | |
24582 | echo "***" | |
24583 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24584 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24585 | else | |
24586 | echo "$as_me: failed program was:" >&5 | |
24587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24588 | ||
24589 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24590 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
24591 | fi | |
ac1cb8d3 VS |
24592 | rm -f conftest.err conftest.$ac_objext \ |
24593 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24594 | CFLAGS="$ac_save_CFLAGS" |
24595 | LIBS="$ac_save_LIBS" | |
24596 | fi | |
24597 | fi | |
24598 | GTK_CFLAGS="" | |
24599 | GTK_LIBS="" | |
24600 | : | |
24601 | fi | |
24602 | ||
24603 | ||
24604 | rm -f conf.gtktest | |
24605 | ||
f597b41c MW |
24606 | fi |
24607 | ||
f34ca037 MW |
24608 | if test -z "$wx_cv_lib_gtk"; then |
24609 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
24610 | |
24611 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
24612 | if test "${with_gtk_prefix+set}" = set; then | |
24613 | withval="$with_gtk_prefix" | |
24614 | gtk_config_prefix="$withval" | |
24615 | else | |
24616 | gtk_config_prefix="" | |
24617 | fi; | |
24618 | ||
24619 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
24620 | if test "${with_gtk_exec_prefix+set}" = set; then | |
24621 | withval="$with_gtk_exec_prefix" | |
24622 | gtk_config_exec_prefix="$withval" | |
24623 | else | |
24624 | gtk_config_exec_prefix="" | |
24625 | fi; | |
24626 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
24627 | if test "${enable_gtktest+set}" = set; then | |
24628 | enableval="$enable_gtktest" | |
24629 | ||
24630 | else | |
24631 | enable_gtktest=yes | |
24632 | fi; | |
24633 | ||
24634 | for module in . $GTK_MODULES | |
24635 | do | |
24636 | case "$module" in | |
24637 | gthread) | |
24638 | gtk_config_args="$gtk_config_args gthread" | |
24639 | ;; | |
24640 | esac | |
24641 | done | |
24642 | ||
24643 | if test x$gtk_config_exec_prefix != x ; then | |
24644 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
24645 | if test x${GTK_CONFIG+set} != xset ; then | |
24646 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
24647 | fi | |
24648 | fi | |
24649 | if test x$gtk_config_prefix != x ; then | |
24650 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
24651 | if test x${GTK_CONFIG+set} != xset ; then | |
24652 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
24653 | fi | |
24654 | fi | |
24655 | ||
24656 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
24657 | set dummy gtk-config; ac_word=$2 | |
24658 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24659 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24660 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
24661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24662 | else | |
24663 | case $GTK_CONFIG in | |
24664 | [\\/]* | ?:[\\/]*) | |
24665 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
24666 | ;; | |
24667 | *) | |
24668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24669 | for as_dir in $PATH | |
24670 | do | |
24671 | IFS=$as_save_IFS | |
24672 | test -z "$as_dir" && as_dir=. | |
24673 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24674 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24675 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24676 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24677 | break 2 | |
24678 | fi | |
24679 | done | |
24680 | done | |
24681 | ||
24682 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
24683 | ;; | |
24684 | esac | |
24685 | fi | |
24686 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
24687 | ||
24688 | if test -n "$GTK_CONFIG"; then | |
24689 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
24690 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
24691 | else | |
24692 | echo "$as_me:$LINENO: result: no" >&5 | |
24693 | echo "${ECHO_T}no" >&6 | |
24694 | fi | |
24695 | ||
24696 | min_gtk_version=1.2.7 | |
24697 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
24698 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
24699 | no_gtk="" | |
24700 | if test "$GTK_CONFIG" = "no" ; then | |
24701 | no_gtk=yes | |
24702 | else | |
24703 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
24704 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
24705 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24706 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24707 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24708 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24709 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24710 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24711 | if test "x$enable_gtktest" = "xyes" ; then | |
24712 | ac_save_CFLAGS="$CFLAGS" | |
24713 | ac_save_LIBS="$LIBS" | |
24714 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24715 | LIBS="$GTK_LIBS $LIBS" | |
24716 | rm -f conf.gtktest | |
24717 | if test "$cross_compiling" = yes; then | |
24718 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24719 | else | |
24720 | cat >conftest.$ac_ext <<_ACEOF | |
24721 | /* confdefs.h. */ | |
24722 | _ACEOF | |
24723 | cat confdefs.h >>conftest.$ac_ext | |
24724 | cat >>conftest.$ac_ext <<_ACEOF | |
24725 | /* end confdefs.h. */ | |
24726 | ||
24727 | #include <gtk/gtk.h> | |
24728 | #include <stdio.h> | |
24729 | #include <stdlib.h> | |
24730 | ||
24731 | int | |
24732 | main () | |
24733 | { | |
24734 | int major, minor, micro; | |
24735 | char *tmp_version; | |
24736 | ||
24737 | system ("touch conf.gtktest"); | |
24738 | ||
24739 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24740 | tmp_version = g_strdup("$min_gtk_version"); | |
24741 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24742 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24743 | exit(1); | |
24744 | } | |
24745 | ||
24746 | if ((gtk_major_version != $gtk_config_major_version) || | |
24747 | (gtk_minor_version != $gtk_config_minor_version) || | |
24748 | (gtk_micro_version != $gtk_config_micro_version)) | |
24749 | { | |
24750 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24751 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24752 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24753 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
24754 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24755 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24756 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24757 | printf("*** required on your system.\n"); | |
24758 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
24759 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
24760 | printf("*** before re-running configure\n"); | |
24761 | } | |
24762 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
24763 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24764 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24765 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24766 | { | |
24767 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24768 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24769 | printf("*** library (version %d.%d.%d)\n", | |
24770 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24771 | } | |
24772 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
24773 | else | |
24774 | { | |
24775 | if ((gtk_major_version > major) || | |
24776 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24777 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24778 | { | |
24779 | return 0; | |
24780 | } | |
24781 | else | |
24782 | { | |
24783 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24784 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24785 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24786 | major, minor, micro); | |
24787 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24788 | printf("***\n"); | |
24789 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24790 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
24791 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24792 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
24793 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
24794 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24795 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24796 | } | |
24797 | } | |
24798 | return 1; | |
24799 | } | |
24800 | ||
24801 | _ACEOF | |
24802 | rm -f conftest$ac_exeext | |
24803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24804 | (eval $ac_link) 2>&5 | |
24805 | ac_status=$? | |
24806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24807 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24809 | (eval $ac_try) 2>&5 | |
24810 | ac_status=$? | |
24811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24812 | (exit $ac_status); }; }; then | |
24813 | : | |
24814 | else | |
24815 | echo "$as_me: program exited with status $ac_status" >&5 | |
24816 | echo "$as_me: failed program was:" >&5 | |
24817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24818 | ||
24819 | ( exit $ac_status ) | |
24820 | no_gtk=yes | |
24821 | fi | |
ac1cb8d3 | 24822 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24823 | fi |
24824 | CFLAGS="$ac_save_CFLAGS" | |
24825 | LIBS="$ac_save_LIBS" | |
24826 | fi | |
24827 | fi | |
24828 | if test "x$no_gtk" = x ; then | |
24829 | echo "$as_me:$LINENO: result: yes" >&5 | |
24830 | echo "${ECHO_T}yes" >&6 | |
24831 | wx_cv_lib_gtk=1.2.7 | |
24832 | else | |
24833 | echo "$as_me:$LINENO: result: no" >&5 | |
24834 | echo "${ECHO_T}no" >&6 | |
24835 | if test "$GTK_CONFIG" = "no" ; then | |
24836 | echo "*** The gtk-config script installed by GTK could not be found" | |
24837 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
24838 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
24839 | echo "*** full path to gtk-config." | |
24840 | else | |
24841 | if test -f conf.gtktest ; then | |
24842 | : | |
24843 | else | |
24844 | echo "*** Could not run GTK test program, checking why..." | |
24845 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24846 | LIBS="$LIBS $GTK_LIBS" | |
24847 | cat >conftest.$ac_ext <<_ACEOF | |
24848 | /* confdefs.h. */ | |
24849 | _ACEOF | |
24850 | cat confdefs.h >>conftest.$ac_ext | |
24851 | cat >>conftest.$ac_ext <<_ACEOF | |
24852 | /* end confdefs.h. */ | |
24853 | ||
24854 | #include <gtk/gtk.h> | |
24855 | #include <stdio.h> | |
24856 | ||
24857 | int | |
24858 | main () | |
24859 | { | |
24860 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24861 | ; | |
24862 | return 0; | |
24863 | } | |
24864 | _ACEOF | |
24865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24867 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24868 | ac_status=$? |
ac1cb8d3 VS |
24869 | grep -v '^ *+' conftest.er1 >conftest.err |
24870 | rm -f conftest.er1 | |
24871 | cat conftest.err >&5 | |
a848cd7e SC |
24872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24873 | (exit $ac_status); } && | |
9dd0f6c2 | 24874 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24876 | (eval $ac_try) 2>&5 | |
24877 | ac_status=$? | |
24878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24879 | (exit $ac_status); }; } && | |
24880 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24882 | (eval $ac_try) 2>&5 | |
24883 | ac_status=$? | |
24884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24885 | (exit $ac_status); }; }; then | |
24886 | echo "*** The test program compiled, but did not run. This usually means" | |
24887 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
24888 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
24889 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24890 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24891 | echo "*** is required on your system" | |
24892 | echo "***" | |
24893 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24894 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24895 | echo "***" | |
24896 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
24897 | echo "*** came with the system with the command" | |
24898 | echo "***" | |
24899 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
24900 | else | |
24901 | echo "$as_me: failed program was:" >&5 | |
24902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24903 | ||
24904 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24905 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
24906 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
24907 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
24908 | fi | |
ac1cb8d3 VS |
24909 | rm -f conftest.err conftest.$ac_objext \ |
24910 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24911 | CFLAGS="$ac_save_CFLAGS" |
24912 | LIBS="$ac_save_LIBS" | |
24913 | fi | |
24914 | fi | |
24915 | GTK_CFLAGS="" | |
24916 | GTK_LIBS="" | |
24917 | : | |
24918 | fi | |
24919 | ||
24920 | ||
24921 | rm -f conf.gtktest | |
24922 | ||
24923 | ||
f34ca037 | 24924 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
24925 | |
24926 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
24927 | if test "${with_gtk_prefix+set}" = set; then | |
24928 | withval="$with_gtk_prefix" | |
24929 | gtk_config_prefix="$withval" | |
24930 | else | |
24931 | gtk_config_prefix="" | |
24932 | fi; | |
24933 | ||
24934 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
24935 | if test "${with_gtk_exec_prefix+set}" = set; then | |
24936 | withval="$with_gtk_exec_prefix" | |
24937 | gtk_config_exec_prefix="$withval" | |
24938 | else | |
24939 | gtk_config_exec_prefix="" | |
24940 | fi; | |
24941 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
24942 | if test "${enable_gtktest+set}" = set; then | |
24943 | enableval="$enable_gtktest" | |
24944 | ||
24945 | else | |
24946 | enable_gtktest=yes | |
24947 | fi; | |
24948 | ||
24949 | for module in . $GTK_MODULES | |
24950 | do | |
24951 | case "$module" in | |
24952 | gthread) | |
24953 | gtk_config_args="$gtk_config_args gthread" | |
24954 | ;; | |
24955 | esac | |
24956 | done | |
24957 | ||
24958 | if test x$gtk_config_exec_prefix != x ; then | |
24959 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
24960 | if test x${GTK_CONFIG+set} != xset ; then | |
24961 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
24962 | fi | |
24963 | fi | |
24964 | if test x$gtk_config_prefix != x ; then | |
24965 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
24966 | if test x${GTK_CONFIG+set} != xset ; then | |
24967 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
24968 | fi | |
24969 | fi | |
24970 | ||
24971 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
24972 | set dummy gtk-config; ac_word=$2 | |
24973 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24974 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24975 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
24976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24977 | else | |
24978 | case $GTK_CONFIG in | |
24979 | [\\/]* | ?:[\\/]*) | |
24980 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
24981 | ;; | |
24982 | *) | |
24983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24984 | for as_dir in $PATH | |
24985 | do | |
24986 | IFS=$as_save_IFS | |
24987 | test -z "$as_dir" && as_dir=. | |
24988 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24989 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24990 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24991 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24992 | break 2 | |
24993 | fi | |
24994 | done | |
24995 | done | |
24996 | ||
24997 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
24998 | ;; | |
24999 | esac | |
25000 | fi | |
25001 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
25002 | ||
25003 | if test -n "$GTK_CONFIG"; then | |
25004 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
25005 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
25006 | else | |
25007 | echo "$as_me:$LINENO: result: no" >&5 | |
25008 | echo "${ECHO_T}no" >&6 | |
25009 | fi | |
25010 | ||
25011 | min_gtk_version=1.2.3 | |
25012 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
25013 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
25014 | no_gtk="" | |
25015 | if test "$GTK_CONFIG" = "no" ; then | |
25016 | no_gtk=yes | |
25017 | else | |
25018 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
25019 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
25020 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25021 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25022 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25023 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25024 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25025 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25026 | if test "x$enable_gtktest" = "xyes" ; then | |
25027 | ac_save_CFLAGS="$CFLAGS" | |
25028 | ac_save_LIBS="$LIBS" | |
25029 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25030 | LIBS="$GTK_LIBS $LIBS" | |
25031 | rm -f conf.gtktest | |
25032 | if test "$cross_compiling" = yes; then | |
25033 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25034 | else | |
25035 | cat >conftest.$ac_ext <<_ACEOF | |
25036 | /* confdefs.h. */ | |
25037 | _ACEOF | |
25038 | cat confdefs.h >>conftest.$ac_ext | |
25039 | cat >>conftest.$ac_ext <<_ACEOF | |
25040 | /* end confdefs.h. */ | |
25041 | ||
25042 | #include <gtk/gtk.h> | |
25043 | #include <stdio.h> | |
25044 | #include <stdlib.h> | |
25045 | ||
25046 | int | |
25047 | main () | |
25048 | { | |
25049 | int major, minor, micro; | |
25050 | char *tmp_version; | |
25051 | ||
25052 | system ("touch conf.gtktest"); | |
25053 | ||
25054 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25055 | tmp_version = g_strdup("$min_gtk_version"); | |
25056 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25057 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25058 | exit(1); | |
25059 | } | |
25060 | ||
25061 | if ((gtk_major_version != $gtk_config_major_version) || | |
25062 | (gtk_minor_version != $gtk_config_minor_version) || | |
25063 | (gtk_micro_version != $gtk_config_micro_version)) | |
25064 | { | |
25065 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25066 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25067 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25068 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
25069 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25070 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25071 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25072 | printf("*** required on your system.\n"); | |
25073 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
25074 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
25075 | printf("*** before re-running configure\n"); | |
25076 | } | |
25077 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
25078 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25079 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25080 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25081 | { | |
25082 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25083 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25084 | printf("*** library (version %d.%d.%d)\n", | |
25085 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25086 | } | |
25087 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
25088 | else | |
25089 | { | |
25090 | if ((gtk_major_version > major) || | |
25091 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25092 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25093 | { | |
25094 | return 0; | |
25095 | } | |
25096 | else | |
25097 | { | |
25098 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25099 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25100 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25101 | major, minor, micro); | |
25102 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25103 | printf("***\n"); | |
25104 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25105 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
25106 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25107 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
25108 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
25109 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25110 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25111 | } | |
25112 | } | |
25113 | return 1; | |
25114 | } | |
25115 | ||
25116 | _ACEOF | |
25117 | rm -f conftest$ac_exeext | |
25118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25119 | (eval $ac_link) 2>&5 | |
25120 | ac_status=$? | |
25121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25122 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25124 | (eval $ac_try) 2>&5 | |
25125 | ac_status=$? | |
25126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25127 | (exit $ac_status); }; }; then | |
25128 | : | |
25129 | else | |
25130 | echo "$as_me: program exited with status $ac_status" >&5 | |
25131 | echo "$as_me: failed program was:" >&5 | |
25132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25133 | ||
25134 | ( exit $ac_status ) | |
25135 | no_gtk=yes | |
25136 | fi | |
ac1cb8d3 | 25137 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25138 | fi |
25139 | CFLAGS="$ac_save_CFLAGS" | |
25140 | LIBS="$ac_save_LIBS" | |
25141 | fi | |
25142 | fi | |
25143 | if test "x$no_gtk" = x ; then | |
25144 | echo "$as_me:$LINENO: result: yes" >&5 | |
25145 | echo "${ECHO_T}yes" >&6 | |
25146 | wx_cv_lib_gtk=1.2.3 | |
25147 | else | |
25148 | echo "$as_me:$LINENO: result: no" >&5 | |
25149 | echo "${ECHO_T}no" >&6 | |
25150 | if test "$GTK_CONFIG" = "no" ; then | |
25151 | echo "*** The gtk-config script installed by GTK could not be found" | |
25152 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
25153 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
25154 | echo "*** full path to gtk-config." | |
25155 | else | |
25156 | if test -f conf.gtktest ; then | |
25157 | : | |
25158 | else | |
25159 | echo "*** Could not run GTK test program, checking why..." | |
25160 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25161 | LIBS="$LIBS $GTK_LIBS" | |
25162 | cat >conftest.$ac_ext <<_ACEOF | |
25163 | /* confdefs.h. */ | |
25164 | _ACEOF | |
25165 | cat confdefs.h >>conftest.$ac_ext | |
25166 | cat >>conftest.$ac_ext <<_ACEOF | |
25167 | /* end confdefs.h. */ | |
25168 | ||
25169 | #include <gtk/gtk.h> | |
25170 | #include <stdio.h> | |
25171 | ||
25172 | int | |
25173 | main () | |
25174 | { | |
25175 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25176 | ; | |
25177 | return 0; | |
25178 | } | |
25179 | _ACEOF | |
25180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25182 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25183 | ac_status=$? |
ac1cb8d3 VS |
25184 | grep -v '^ *+' conftest.er1 >conftest.err |
25185 | rm -f conftest.er1 | |
25186 | cat conftest.err >&5 | |
a848cd7e SC |
25187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25188 | (exit $ac_status); } && | |
9dd0f6c2 | 25189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25191 | (eval $ac_try) 2>&5 | |
25192 | ac_status=$? | |
25193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25194 | (exit $ac_status); }; } && | |
25195 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25197 | (eval $ac_try) 2>&5 | |
25198 | ac_status=$? | |
25199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25200 | (exit $ac_status); }; }; then | |
25201 | echo "*** The test program compiled, but did not run. This usually means" | |
25202 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
25203 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
25204 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25205 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25206 | echo "*** is required on your system" | |
25207 | echo "***" | |
25208 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25209 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25210 | echo "***" | |
25211 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
25212 | echo "*** came with the system with the command" | |
25213 | echo "***" | |
25214 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
25215 | else | |
25216 | echo "$as_me: failed program was:" >&5 | |
25217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25218 | ||
25219 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25220 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
25221 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
25222 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
25223 | fi | |
ac1cb8d3 VS |
25224 | rm -f conftest.err conftest.$ac_objext \ |
25225 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25226 | CFLAGS="$ac_save_CFLAGS" |
25227 | LIBS="$ac_save_LIBS" | |
25228 | fi | |
25229 | fi | |
25230 | GTK_CFLAGS="" | |
25231 | GTK_LIBS="" | |
25232 | : | |
25233 | fi | |
25234 | ||
25235 | ||
25236 | rm -f conf.gtktest | |
25237 | ||
f34ca037 | 25238 | fi |
a848cd7e SC |
25239 | fi |
25240 | fi | |
25241 | ||
25242 | if test -z "$wx_cv_lib_gtk"; then | |
25243 | wx_cv_lib_gtk=none | |
25244 | else | |
25245 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
25246 | wx_cv_libs_gtk=$GTK_LIBS | |
25247 | fi | |
25248 | ||
25249 | ||
25250 | fi | |
25251 | ||
25252 | ||
25253 | if test "$gtk_version_cached" = 1; then | |
25254 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
25255 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
25256 | fi | |
25257 | ||
25258 | case "$wx_cv_lib_gtk" in | |
25259 | 2.0) WXGTK20=1 | |
25260 | TOOLKIT_VERSION=2 | |
25261 | ;; | |
25262 | 1.2.7) WXGTK127=1 | |
25263 | WXGTK12=1 | |
25264 | ;; | |
25265 | 1.2.3) WXGTK12=1 | |
25266 | ;; | |
25267 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
25268 | The development files for GTK+ were not found. For GTK+ 2, please |
25269 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
25270 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
25271 | and that the version is 1.2.3 or above. Also check that the | |
25272 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
25273 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
25274 | " >&5 |
25275 | echo "$as_me: error: | |
f597b41c MW |
25276 | The development files for GTK+ were not found. For GTK+ 2, please |
25277 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
25278 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
25279 | and that the version is 1.2.3 or above. Also check that the | |
25280 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
25281 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
25282 | " >&2;} |
25283 | { (exit 1); exit 1; }; } | |
25284 | ;; | |
25285 | esac | |
25286 | ||
25287 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
25288 | save_CFLAGS="$CFLAGS" |
25289 | save_LIBS="$LIBS" | |
9d271838 VZ |
25290 | CFLAGS="$CFLAGS $wx_cv_cflags_gtk" |
25291 | LIBS="$LIBS $wx_cv_lib_gtk" | |
304205f1 | 25292 | |
9755e73b | 25293 | |
304205f1 VS |
25294 | for ac_func in pango_font_family_is_monospace |
25295 | do | |
25296 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25297 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25298 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25299 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25301 | else | |
25302 | cat >conftest.$ac_ext <<_ACEOF | |
25303 | /* confdefs.h. */ | |
25304 | _ACEOF | |
25305 | cat confdefs.h >>conftest.$ac_ext | |
25306 | cat >>conftest.$ac_ext <<_ACEOF | |
25307 | /* end confdefs.h. */ | |
25308 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25309 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25310 | #define $ac_func innocuous_$ac_func | |
25311 | ||
25312 | /* System header to define __stub macros and hopefully few prototypes, | |
25313 | which can conflict with char $ac_func (); below. | |
25314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25315 | <limits.h> exists even on freestanding compilers. */ | |
25316 | ||
25317 | #ifdef __STDC__ | |
25318 | # include <limits.h> | |
25319 | #else | |
25320 | # include <assert.h> | |
25321 | #endif | |
25322 | ||
25323 | #undef $ac_func | |
25324 | ||
25325 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25326 | #ifdef __cplusplus | |
25327 | extern "C" | |
25328 | { | |
25329 | #endif | |
25330 | /* We use char because int might match the return type of a gcc2 | |
25331 | builtin and then its argument prototype would still apply. */ | |
25332 | char $ac_func (); | |
25333 | /* The GNU C library defines this for functions which it implements | |
25334 | to always fail with ENOSYS. Some functions are actually named | |
25335 | something starting with __ and the normal name is an alias. */ | |
25336 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25337 | choke me | |
25338 | #else | |
25339 | char (*f) () = $ac_func; | |
25340 | #endif | |
25341 | #ifdef __cplusplus | |
25342 | } | |
25343 | #endif | |
25344 | ||
25345 | int | |
25346 | main () | |
25347 | { | |
25348 | return f != $ac_func; | |
25349 | ; | |
25350 | return 0; | |
25351 | } | |
25352 | _ACEOF | |
25353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25355 | (eval $ac_link) 2>conftest.er1 | |
25356 | ac_status=$? | |
25357 | grep -v '^ *+' conftest.er1 >conftest.err | |
25358 | rm -f conftest.er1 | |
25359 | cat conftest.err >&5 | |
25360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25361 | (exit $ac_status); } && | |
9dd0f6c2 | 25362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
25363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25364 | (eval $ac_try) 2>&5 | |
25365 | ac_status=$? | |
25366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25367 | (exit $ac_status); }; } && | |
25368 | { ac_try='test -s conftest$ac_exeext' | |
25369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25370 | (eval $ac_try) 2>&5 | |
25371 | ac_status=$? | |
25372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25373 | (exit $ac_status); }; }; then | |
25374 | eval "$as_ac_var=yes" | |
25375 | else | |
25376 | echo "$as_me: failed program was:" >&5 | |
25377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25378 | ||
25379 | eval "$as_ac_var=no" | |
25380 | fi | |
25381 | rm -f conftest.err conftest.$ac_objext \ | |
25382 | conftest$ac_exeext conftest.$ac_ext | |
25383 | fi | |
25384 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25385 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25386 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25387 | cat >>confdefs.h <<_ACEOF | |
25388 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25389 | _ACEOF | |
25390 | ||
25391 | fi | |
25392 | done | |
25393 | ||
9755e73b VS |
25394 | |
25395 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 | |
25396 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
25397 | cat >conftest.$ac_ext <<_ACEOF | |
25398 | /* confdefs.h. */ | |
25399 | _ACEOF | |
25400 | cat confdefs.h >>conftest.$ac_ext | |
25401 | cat >>conftest.$ac_ext <<_ACEOF | |
25402 | /* end confdefs.h. */ | |
25403 | ||
25404 | #include <gtk/gtk.h> | |
25405 | ||
25406 | int | |
25407 | main () | |
25408 | { | |
25409 | ||
25410 | #if !GTK_CHECK_VERSION(2,4,0) | |
25411 | #error "Not GTK+ 2.4" | |
25412 | #endif | |
25413 | ||
25414 | ; | |
25415 | return 0; | |
25416 | } | |
25417 | _ACEOF | |
25418 | rm -f conftest.$ac_objext | |
25419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25420 | (eval $ac_compile) 2>conftest.er1 | |
25421 | ac_status=$? | |
25422 | grep -v '^ *+' conftest.er1 >conftest.err | |
25423 | rm -f conftest.er1 | |
25424 | cat conftest.err >&5 | |
25425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25426 | (exit $ac_status); } && | |
9dd0f6c2 | 25427 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
25428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25429 | (eval $ac_try) 2>&5 | |
25430 | ac_status=$? | |
25431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25432 | (exit $ac_status); }; } && | |
25433 | { ac_try='test -s conftest.$ac_objext' | |
25434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25435 | (eval $ac_try) 2>&5 | |
25436 | ac_status=$? | |
25437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25438 | (exit $ac_status); }; }; then | |
25439 | ||
25440 | cat >>confdefs.h <<\_ACEOF | |
25441 | #define __WXGTK24__ 1 | |
25442 | _ACEOF | |
25443 | ||
25444 | echo "$as_me:$LINENO: result: yes" >&5 | |
25445 | echo "${ECHO_T}yes" >&6 | |
25446 | ||
25447 | else | |
25448 | echo "$as_me: failed program was:" >&5 | |
25449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25450 | ||
25451 | ||
25452 | echo "$as_me:$LINENO: result: no" >&5 | |
25453 | echo "${ECHO_T}no" >&6 | |
25454 | ||
25455 | fi | |
25456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25457 | ||
304205f1 VS |
25458 | CFLAGS="$save_CFLAGS" |
25459 | LIBS="$save_LIBS" | |
a848cd7e SC |
25460 | else |
25461 | if test "$wxUSE_UNICODE" = "yes"; then | |
25462 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
25463 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
25464 | wxUSE_UNICODE=no | |
25465 | fi | |
25466 | fi | |
25467 | ||
25468 | if test "$USE_DARWIN" != 1; then | |
25469 | ||
25470 | for ac_func in poll | |
25471 | do | |
25472 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25473 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25474 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25475 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25477 | else | |
25478 | cat >conftest.$ac_ext <<_ACEOF | |
25479 | /* confdefs.h. */ | |
25480 | _ACEOF | |
25481 | cat confdefs.h >>conftest.$ac_ext | |
25482 | cat >>conftest.$ac_ext <<_ACEOF | |
25483 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25484 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
25485 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25486 | #define $ac_func innocuous_$ac_func | |
25487 | ||
a848cd7e SC |
25488 | /* System header to define __stub macros and hopefully few prototypes, |
25489 | which can conflict with char $ac_func (); below. | |
25490 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25491 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25492 | |
a848cd7e SC |
25493 | #ifdef __STDC__ |
25494 | # include <limits.h> | |
25495 | #else | |
25496 | # include <assert.h> | |
25497 | #endif | |
ac1cb8d3 VS |
25498 | |
25499 | #undef $ac_func | |
25500 | ||
a848cd7e SC |
25501 | /* Override any gcc2 internal prototype to avoid an error. */ |
25502 | #ifdef __cplusplus | |
25503 | extern "C" | |
25504 | { | |
25505 | #endif | |
25506 | /* We use char because int might match the return type of a gcc2 | |
25507 | builtin and then its argument prototype would still apply. */ | |
25508 | char $ac_func (); | |
25509 | /* The GNU C library defines this for functions which it implements | |
25510 | to always fail with ENOSYS. Some functions are actually named | |
25511 | something starting with __ and the normal name is an alias. */ | |
25512 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25513 | choke me | |
25514 | #else | |
25515 | char (*f) () = $ac_func; | |
25516 | #endif | |
25517 | #ifdef __cplusplus | |
25518 | } | |
25519 | #endif | |
25520 | ||
25521 | int | |
25522 | main () | |
25523 | { | |
25524 | return f != $ac_func; | |
25525 | ; | |
25526 | return 0; | |
25527 | } | |
25528 | _ACEOF | |
25529 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25531 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25532 | ac_status=$? |
ac1cb8d3 VS |
25533 | grep -v '^ *+' conftest.er1 >conftest.err |
25534 | rm -f conftest.er1 | |
25535 | cat conftest.err >&5 | |
a848cd7e SC |
25536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25537 | (exit $ac_status); } && | |
9dd0f6c2 | 25538 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25540 | (eval $ac_try) 2>&5 | |
25541 | ac_status=$? | |
25542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25543 | (exit $ac_status); }; } && | |
25544 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25546 | (eval $ac_try) 2>&5 | |
25547 | ac_status=$? | |
25548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25549 | (exit $ac_status); }; }; then | |
25550 | eval "$as_ac_var=yes" | |
25551 | else | |
25552 | echo "$as_me: failed program was:" >&5 | |
25553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25554 | ||
25555 | eval "$as_ac_var=no" | |
25556 | fi | |
ac1cb8d3 VS |
25557 | rm -f conftest.err conftest.$ac_objext \ |
25558 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25559 | fi |
25560 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25561 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25562 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25563 | cat >>confdefs.h <<_ACEOF | |
25564 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25565 | _ACEOF | |
25566 | ||
25567 | fi | |
25568 | done | |
25569 | ||
25570 | fi | |
25571 | ||
25572 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
25573 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
25574 | ||
25575 | AFMINSTALL=afminstall | |
25576 | TOOLKIT=GTK | |
25577 | GUIDIST=GTK_DIST | |
25578 | ||
25579 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
25580 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
25581 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
25582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25583 | else | |
25584 | ac_check_lib_save_LIBS=$LIBS | |
25585 | LIBS="-lgdk $LIBS" | |
25586 | cat >conftest.$ac_ext <<_ACEOF | |
25587 | /* confdefs.h. */ | |
25588 | _ACEOF | |
25589 | cat confdefs.h >>conftest.$ac_ext | |
25590 | cat >>conftest.$ac_ext <<_ACEOF | |
25591 | /* end confdefs.h. */ | |
25592 | ||
25593 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25594 | #ifdef __cplusplus | |
25595 | extern "C" | |
25596 | #endif | |
25597 | /* We use char because int might match the return type of a gcc2 | |
25598 | builtin and then its argument prototype would still apply. */ | |
25599 | char gdk_im_open (); | |
25600 | int | |
25601 | main () | |
25602 | { | |
25603 | gdk_im_open (); | |
25604 | ; | |
25605 | return 0; | |
25606 | } | |
25607 | _ACEOF | |
25608 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25610 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25611 | ac_status=$? |
ac1cb8d3 VS |
25612 | grep -v '^ *+' conftest.er1 >conftest.err |
25613 | rm -f conftest.er1 | |
25614 | cat conftest.err >&5 | |
a848cd7e SC |
25615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25616 | (exit $ac_status); } && | |
9dd0f6c2 | 25617 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25619 | (eval $ac_try) 2>&5 | |
25620 | ac_status=$? | |
25621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25622 | (exit $ac_status); }; } && | |
25623 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25625 | (eval $ac_try) 2>&5 | |
25626 | ac_status=$? | |
25627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25628 | (exit $ac_status); }; }; then | |
25629 | ac_cv_lib_gdk_gdk_im_open=yes | |
25630 | else | |
25631 | echo "$as_me: failed program was:" >&5 | |
25632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25633 | ||
25634 | ac_cv_lib_gdk_gdk_im_open=no | |
25635 | fi | |
ac1cb8d3 VS |
25636 | rm -f conftest.err conftest.$ac_objext \ |
25637 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25638 | LIBS=$ac_check_lib_save_LIBS |
25639 | fi | |
25640 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
25641 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
25642 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
25643 | cat >>confdefs.h <<\_ACEOF | |
25644 | #define HAVE_XIM 1 | |
25645 | _ACEOF | |
25646 | ||
25647 | fi | |
25648 | ||
25649 | ||
25650 | ||
25651 | if test "$wxUSE_GPE" = "yes"; then | |
25652 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
25653 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
25654 | ||
25655 | ac_find_libraries= | |
25656 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25657 | do | |
25658 | for ac_extension in a so sl dylib; do | |
25659 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
25660 | ac_find_libraries=$ac_dir | |
25661 | break 2 | |
25662 | fi | |
25663 | done | |
25664 | done | |
25665 | ||
25666 | if test "$ac_find_libraries" != "" ; then | |
25667 | ||
25668 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25669 | result=$? | |
25670 | if test $result = 0; then | |
25671 | ac_path_to_link="" | |
25672 | else | |
25673 | ac_path_to_link=" -L$ac_find_libraries" | |
25674 | fi | |
25675 | ||
25676 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
25677 | WXGPE=1 | |
25678 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25679 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
25680 | else | |
25681 | echo "$as_me:$LINENO: result: not found" >&5 | |
25682 | echo "${ECHO_T}not found" >&6 | |
25683 | fi | |
25684 | ||
25685 | fi | |
25686 | fi | |
25687 | ||
25688 | if test "$wxUSE_MGL" = 1; then | |
25689 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
25690 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
25691 | if test "x$MGL_ROOT" = x ; then | |
25692 | echo "$as_me:$LINENO: result: not found" >&5 | |
25693 | echo "${ECHO_T}not found" >&6 | |
25694 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
25695 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
25696 | { (exit 1); exit 1; }; } | |
25697 | else | |
25698 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
25699 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
25700 | fi | |
25701 | ||
25702 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
25703 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
25704 | case "${host}" in | |
25705 | *-*-linux* ) | |
25706 | if test "x$wxUSE_SHARED" = xyes ; then | |
25707 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
25708 | else | |
25709 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
25710 | fi | |
25711 | ;; | |
25712 | *-pc-msdosdjgpp ) | |
25713 | mgl_os_candidates="dos32/dj2" | |
25714 | ;; | |
25715 | *) | |
25716 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
25717 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
25718 | { (exit 1); exit 1; }; } | |
25719 | esac | |
25720 | ||
25721 | mgl_lib_type="" | |
25722 | mgl_os="" | |
25723 | ||
25724 | for mgl_os_i in $mgl_os_candidates ; do | |
25725 | if test "x$mgl_os" = x ; then | |
25726 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
25727 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
25728 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
25729 | mgl_lib_type=debug | |
25730 | mgl_os=$mgl_os_i | |
25731 | fi | |
25732 | fi | |
25733 | if test "x$mgl_lib_type" = x ; then | |
25734 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
25735 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
25736 | mgl_lib_type=release | |
25737 | mgl_os=$mgl_os_i | |
25738 | fi | |
25739 | fi | |
25740 | fi | |
25741 | done | |
25742 | ||
25743 | if test "x$mgl_os" = x ; then | |
25744 | echo "$as_me:$LINENO: result: not found" >&5 | |
25745 | echo "${ECHO_T}not found" >&6 | |
25746 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
25747 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
25748 | { (exit 1); exit 1; }; } | |
25749 | fi | |
25750 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
25751 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
25752 | ||
25753 | wxUSE_UNIVERSAL="yes" | |
25754 | ||
25755 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
25756 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
25757 | ||
25758 | AFMINSTALL=afminstall | |
25759 | TOOLKIT=MGL | |
25760 | GUIDIST=MGL_DIST | |
25761 | fi | |
25762 | ||
25763 | if test "$wxUSE_MICROWIN" = 1; then | |
25764 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
25765 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
25766 | if test "x$MICROWINDOWS" = x ; then | |
25767 | echo "$as_me:$LINENO: result: not found" >&5 | |
25768 | echo "${ECHO_T}not found" >&6 | |
25769 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
25770 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
25771 | { (exit 1); exit 1; }; } | |
25772 | else | |
25773 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
25774 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
25775 | fi | |
25776 | ||
25777 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
25778 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
25779 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
25780 | else | |
25781 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
25782 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
25783 | { (exit 1); exit 1; }; } | |
25784 | fi | |
25785 | ||
25786 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
25787 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
25788 | ||
25789 | wxUSE_UNIVERSAL="yes" | |
25790 | ||
25791 | AFMINSTALL=afminstall | |
25792 | TOOLKIT=MICROWIN | |
25793 | GUIDIST=MICROWIN_DIST | |
25794 | ||
25795 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
25796 | fi | |
25797 | ||
74b84332 | 25798 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
9dd0f6c2 DE |
25799 | |
25800 | if test "x$ac_path_x_has_been_run" != xyes; then | |
25801 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
25802 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
25803 | ||
9dd0f6c2 | 25804 | ac_path_x_has_been_run=yes |
a848cd7e SC |
25805 | |
25806 | # Check whether --with-x or --without-x was given. | |
25807 | if test "${with_x+set}" = set; then | |
25808 | withval="$with_x" | |
25809 | ||
25810 | fi; | |
25811 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
25812 | if test "x$with_x" = xno; then | |
25813 | # The user explicitly disabled X. | |
25814 | have_x=disabled | |
25815 | else | |
25816 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
25817 | # Both variables are already set. | |
25818 | have_x=yes | |
25819 | else | |
25820 | if test "${ac_cv_have_x+set}" = set; then | |
25821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25822 | else | |
25823 | # One or both of the vars are not set, and there is no cached value. | |
25824 | ac_x_includes=no ac_x_libraries=no | |
25825 | rm -fr conftest.dir | |
25826 | if mkdir conftest.dir; then | |
25827 | cd conftest.dir | |
25828 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
25829 | cat >Imakefile <<'_ACEOF' | |
25830 | acfindx: | |
25831 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
25832 | _ACEOF | |
25833 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
25834 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
25835 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
25836 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
25837 | for ac_extension in a so sl; do | |
25838 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
25839 | test -f $ac_im_libdir/libX11.$ac_extension; then |
25840 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
25841 | fi |
25842 | done | |
25843 | # Screen out bogus values from the imake configuration. They are | |
25844 | # bogus both because they are the default anyway, and because | |
25845 | # using them would break gcc on systems where it needs fixed includes. | |
25846 | case $ac_im_incroot in | |
25847 | /usr/include) ;; | |
25848 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
25849 | esac | |
25850 | case $ac_im_usrlibdir in | |
25851 | /usr/lib | /lib) ;; | |
25852 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
25853 | esac | |
25854 | fi | |
25855 | cd .. | |
25856 | rm -fr conftest.dir | |
25857 | fi | |
25858 | ||
25859 | # Standard set of common directories for X headers. | |
25860 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
25861 | ac_x_header_dirs=' | |
25862 | /usr/X11/include | |
25863 | /usr/X11R6/include | |
25864 | /usr/X11R5/include | |
25865 | /usr/X11R4/include | |
25866 | ||
25867 | /usr/include/X11 | |
25868 | /usr/include/X11R6 | |
25869 | /usr/include/X11R5 | |
25870 | /usr/include/X11R4 | |
25871 | ||
25872 | /usr/local/X11/include | |
25873 | /usr/local/X11R6/include | |
25874 | /usr/local/X11R5/include | |
25875 | /usr/local/X11R4/include | |
25876 | ||
25877 | /usr/local/include/X11 | |
25878 | /usr/local/include/X11R6 | |
25879 | /usr/local/include/X11R5 | |
25880 | /usr/local/include/X11R4 | |
25881 | ||
25882 | /usr/X386/include | |
25883 | /usr/x386/include | |
25884 | /usr/XFree86/include/X11 | |
25885 | ||
25886 | /usr/include | |
25887 | /usr/local/include | |
25888 | /usr/unsupported/include | |
25889 | /usr/athena/include | |
25890 | /usr/local/x11r5/include | |
25891 | /usr/lpp/Xamples/include | |
25892 | ||
25893 | /usr/openwin/include | |
25894 | /usr/openwin/share/include' | |
25895 | ||
25896 | if test "$ac_x_includes" = no; then | |
9dd0f6c2 | 25897 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
25898 | # First, try using that file with no special directory specified. |
25899 | cat >conftest.$ac_ext <<_ACEOF | |
25900 | /* confdefs.h. */ | |
25901 | _ACEOF | |
25902 | cat confdefs.h >>conftest.$ac_ext | |
25903 | cat >>conftest.$ac_ext <<_ACEOF | |
25904 | /* end confdefs.h. */ | |
25905 | #include <X11/Intrinsic.h> | |
25906 | _ACEOF | |
25907 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25908 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25909 | ac_status=$? | |
25910 | grep -v '^ *+' conftest.er1 >conftest.err | |
25911 | rm -f conftest.er1 | |
25912 | cat conftest.err >&5 | |
25913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25914 | (exit $ac_status); } >/dev/null; then | |
25915 | if test -s conftest.err; then | |
25916 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25917 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25918 | else |
25919 | ac_cpp_err= | |
25920 | fi | |
25921 | else | |
25922 | ac_cpp_err=yes | |
25923 | fi | |
25924 | if test -z "$ac_cpp_err"; then | |
25925 | # We can compile using X headers with no special include directory. | |
25926 | ac_x_includes= | |
25927 | else | |
25928 | echo "$as_me: failed program was:" >&5 | |
25929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25930 | ||
25931 | for ac_dir in $ac_x_header_dirs; do | |
25932 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
25933 | ac_x_includes=$ac_dir | |
25934 | break | |
25935 | fi | |
25936 | done | |
25937 | fi | |
25938 | rm -f conftest.err conftest.$ac_ext | |
25939 | fi # $ac_x_includes = no | |
25940 | ||
25941 | if test "$ac_x_libraries" = no; then | |
25942 | # Check for the libraries. | |
25943 | # See if we find them without any special options. | |
25944 | # Don't add to $LIBS permanently. | |
25945 | ac_save_LIBS=$LIBS | |
25946 | LIBS="-lXt $LIBS" | |
25947 | cat >conftest.$ac_ext <<_ACEOF | |
25948 | /* confdefs.h. */ | |
25949 | _ACEOF | |
25950 | cat confdefs.h >>conftest.$ac_ext | |
25951 | cat >>conftest.$ac_ext <<_ACEOF | |
25952 | /* end confdefs.h. */ | |
25953 | #include <X11/Intrinsic.h> | |
25954 | int | |
25955 | main () | |
25956 | { | |
25957 | XtMalloc (0) | |
25958 | ; | |
25959 | return 0; | |
25960 | } | |
25961 | _ACEOF | |
25962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25964 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25965 | ac_status=$? |
ac1cb8d3 VS |
25966 | grep -v '^ *+' conftest.er1 >conftest.err |
25967 | rm -f conftest.er1 | |
25968 | cat conftest.err >&5 | |
a848cd7e SC |
25969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25970 | (exit $ac_status); } && | |
9dd0f6c2 | 25971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25973 | (eval $ac_try) 2>&5 | |
25974 | ac_status=$? | |
25975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25976 | (exit $ac_status); }; } && | |
25977 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25979 | (eval $ac_try) 2>&5 | |
25980 | ac_status=$? | |
25981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25982 | (exit $ac_status); }; }; then | |
25983 | LIBS=$ac_save_LIBS | |
25984 | # We can link X programs with no special library path. | |
25985 | ac_x_libraries= | |
25986 | else | |
25987 | echo "$as_me: failed program was:" >&5 | |
25988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25989 | ||
25990 | LIBS=$ac_save_LIBS | |
25991 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
25992 | do | |
25993 | # Don't even attempt the hair of trying to link an X program! | |
25994 | for ac_extension in a so sl; do | |
25995 | if test -r $ac_dir/libXt.$ac_extension; then | |
25996 | ac_x_libraries=$ac_dir | |
25997 | break 2 | |
25998 | fi | |
25999 | done | |
26000 | done | |
26001 | fi | |
ac1cb8d3 VS |
26002 | rm -f conftest.err conftest.$ac_objext \ |
26003 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26004 | fi # $ac_x_libraries = no |
26005 | ||
26006 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
26007 | # Didn't find X anywhere. Cache the known absence of X. | |
26008 | ac_cv_have_x="have_x=no" | |
26009 | else | |
26010 | # Record where we found X for the cache. | |
26011 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 26012 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
26013 | fi |
26014 | fi | |
26015 | ||
26016 | fi | |
26017 | eval "$ac_cv_have_x" | |
26018 | fi # $with_x != no | |
26019 | ||
26020 | if test "$have_x" != yes; then | |
26021 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
26022 | echo "${ECHO_T}$have_x" >&6 | |
26023 | no_x=yes | |
26024 | else | |
26025 | # If each of the values was on the command line, it overrides each guess. | |
26026 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
26027 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
26028 | # Update the cache value to reflect the command line values. | |
26029 | ac_cv_have_x="have_x=yes \ | |
26030 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
9dd0f6c2 DE |
26031 | # It might be that x_includes is empty (headers are found in the |
26032 | # standard search path. Then output the corresponding message | |
26033 | ac_out_x_includes=$x_includes | |
26034 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
26035 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
26036 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
26037 | fi |
26038 | ||
9dd0f6c2 | 26039 | fi |
a848cd7e SC |
26040 | if test "$no_x" = yes; then |
26041 | # Not all programs may use this symbol, but it does not hurt to define it. | |
26042 | ||
26043 | cat >>confdefs.h <<\_ACEOF | |
26044 | #define X_DISPLAY_MISSING 1 | |
26045 | _ACEOF | |
26046 | ||
26047 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
26048 | else | |
26049 | if test -n "$x_includes"; then | |
26050 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
26051 | fi | |
26052 | ||
26053 | # It would also be nice to do this for all -L options, not just this one. | |
26054 | if test -n "$x_libraries"; then | |
26055 | X_LIBS="$X_LIBS -L$x_libraries" | |
26056 | # For Solaris; some versions of Sun CC require a space after -R and | |
26057 | # others require no space. Words are not sufficient . . . . | |
26058 | case `(uname -sr) 2>/dev/null` in | |
26059 | "SunOS 5"*) | |
26060 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
26061 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
26062 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
26063 | cat >conftest.$ac_ext <<_ACEOF | |
26064 | /* confdefs.h. */ | |
26065 | _ACEOF | |
26066 | cat confdefs.h >>conftest.$ac_ext | |
26067 | cat >>conftest.$ac_ext <<_ACEOF | |
26068 | /* end confdefs.h. */ | |
26069 | ||
26070 | int | |
26071 | main () | |
26072 | { | |
26073 | ||
26074 | ; | |
26075 | return 0; | |
26076 | } | |
26077 | _ACEOF | |
26078 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26080 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26081 | ac_status=$? |
ac1cb8d3 VS |
26082 | grep -v '^ *+' conftest.er1 >conftest.err |
26083 | rm -f conftest.er1 | |
26084 | cat conftest.err >&5 | |
a848cd7e SC |
26085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26086 | (exit $ac_status); } && | |
9dd0f6c2 | 26087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26089 | (eval $ac_try) 2>&5 | |
26090 | ac_status=$? | |
26091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26092 | (exit $ac_status); }; } && | |
26093 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26095 | (eval $ac_try) 2>&5 | |
26096 | ac_status=$? | |
26097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26098 | (exit $ac_status); }; }; then | |
26099 | ac_R_nospace=yes | |
26100 | else | |
26101 | echo "$as_me: failed program was:" >&5 | |
26102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26103 | ||
26104 | ac_R_nospace=no | |
26105 | fi | |
ac1cb8d3 VS |
26106 | rm -f conftest.err conftest.$ac_objext \ |
26107 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26108 | if test $ac_R_nospace = yes; then |
26109 | echo "$as_me:$LINENO: result: no" >&5 | |
26110 | echo "${ECHO_T}no" >&6 | |
26111 | X_LIBS="$X_LIBS -R$x_libraries" | |
26112 | else | |
26113 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
26114 | cat >conftest.$ac_ext <<_ACEOF | |
26115 | /* confdefs.h. */ | |
26116 | _ACEOF | |
26117 | cat confdefs.h >>conftest.$ac_ext | |
26118 | cat >>conftest.$ac_ext <<_ACEOF | |
26119 | /* end confdefs.h. */ | |
26120 | ||
26121 | int | |
26122 | main () | |
26123 | { | |
26124 | ||
26125 | ; | |
26126 | return 0; | |
26127 | } | |
26128 | _ACEOF | |
26129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26131 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26132 | ac_status=$? |
ac1cb8d3 VS |
26133 | grep -v '^ *+' conftest.er1 >conftest.err |
26134 | rm -f conftest.er1 | |
26135 | cat conftest.err >&5 | |
a848cd7e SC |
26136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26137 | (exit $ac_status); } && | |
9dd0f6c2 | 26138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26140 | (eval $ac_try) 2>&5 | |
26141 | ac_status=$? | |
26142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26143 | (exit $ac_status); }; } && | |
26144 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26146 | (eval $ac_try) 2>&5 | |
26147 | ac_status=$? | |
26148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26149 | (exit $ac_status); }; }; then | |
26150 | ac_R_space=yes | |
26151 | else | |
26152 | echo "$as_me: failed program was:" >&5 | |
26153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26154 | ||
26155 | ac_R_space=no | |
26156 | fi | |
ac1cb8d3 VS |
26157 | rm -f conftest.err conftest.$ac_objext \ |
26158 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26159 | if test $ac_R_space = yes; then |
26160 | echo "$as_me:$LINENO: result: yes" >&5 | |
26161 | echo "${ECHO_T}yes" >&6 | |
26162 | X_LIBS="$X_LIBS -R $x_libraries" | |
26163 | else | |
26164 | echo "$as_me:$LINENO: result: neither works" >&5 | |
26165 | echo "${ECHO_T}neither works" >&6 | |
26166 | fi | |
26167 | fi | |
26168 | LIBS=$ac_xsave_LIBS | |
26169 | esac | |
26170 | fi | |
26171 | ||
26172 | # Check for system-dependent libraries X programs must link with. | |
26173 | # Do this before checking for the system-independent R6 libraries | |
26174 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
26175 | ||
26176 | if test "$ISC" = yes; then | |
26177 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
26178 | else | |
26179 | # Martyn Johnson says this is needed for Ultrix, if the X | |
26180 | # libraries were built with DECnet support. And Karl Berry says | |
26181 | # the Alpha needs dnet_stub (dnet does not exist). | |
26182 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
26183 | cat >conftest.$ac_ext <<_ACEOF | |
26184 | /* confdefs.h. */ | |
26185 | _ACEOF | |
26186 | cat confdefs.h >>conftest.$ac_ext | |
26187 | cat >>conftest.$ac_ext <<_ACEOF | |
26188 | /* end confdefs.h. */ | |
26189 | ||
26190 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26191 | #ifdef __cplusplus | |
26192 | extern "C" | |
26193 | #endif | |
26194 | /* We use char because int might match the return type of a gcc2 | |
26195 | builtin and then its argument prototype would still apply. */ | |
26196 | char XOpenDisplay (); | |
26197 | int | |
26198 | main () | |
26199 | { | |
26200 | XOpenDisplay (); | |
26201 | ; | |
26202 | return 0; | |
26203 | } | |
26204 | _ACEOF | |
26205 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26207 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26208 | ac_status=$? |
ac1cb8d3 VS |
26209 | grep -v '^ *+' conftest.er1 >conftest.err |
26210 | rm -f conftest.er1 | |
26211 | cat conftest.err >&5 | |
a848cd7e SC |
26212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26213 | (exit $ac_status); } && | |
9dd0f6c2 | 26214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26216 | (eval $ac_try) 2>&5 | |
26217 | ac_status=$? | |
26218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26219 | (exit $ac_status); }; } && | |
26220 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26222 | (eval $ac_try) 2>&5 | |
26223 | ac_status=$? | |
26224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26225 | (exit $ac_status); }; }; then | |
26226 | : | |
26227 | else | |
26228 | echo "$as_me: failed program was:" >&5 | |
26229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26230 | ||
26231 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
26232 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
26233 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
26234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26235 | else | |
26236 | ac_check_lib_save_LIBS=$LIBS | |
26237 | LIBS="-ldnet $LIBS" | |
26238 | cat >conftest.$ac_ext <<_ACEOF | |
26239 | /* confdefs.h. */ | |
26240 | _ACEOF | |
26241 | cat confdefs.h >>conftest.$ac_ext | |
26242 | cat >>conftest.$ac_ext <<_ACEOF | |
26243 | /* end confdefs.h. */ | |
26244 | ||
26245 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26246 | #ifdef __cplusplus | |
26247 | extern "C" | |
26248 | #endif | |
26249 | /* We use char because int might match the return type of a gcc2 | |
26250 | builtin and then its argument prototype would still apply. */ | |
26251 | char dnet_ntoa (); | |
26252 | int | |
26253 | main () | |
26254 | { | |
26255 | dnet_ntoa (); | |
26256 | ; | |
26257 | return 0; | |
26258 | } | |
26259 | _ACEOF | |
26260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26262 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26263 | ac_status=$? |
ac1cb8d3 VS |
26264 | grep -v '^ *+' conftest.er1 >conftest.err |
26265 | rm -f conftest.er1 | |
26266 | cat conftest.err >&5 | |
a848cd7e SC |
26267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26268 | (exit $ac_status); } && | |
9dd0f6c2 | 26269 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26271 | (eval $ac_try) 2>&5 | |
26272 | ac_status=$? | |
26273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26274 | (exit $ac_status); }; } && | |
26275 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26277 | (eval $ac_try) 2>&5 | |
26278 | ac_status=$? | |
26279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26280 | (exit $ac_status); }; }; then | |
26281 | ac_cv_lib_dnet_dnet_ntoa=yes | |
26282 | else | |
26283 | echo "$as_me: failed program was:" >&5 | |
26284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26285 | ||
26286 | ac_cv_lib_dnet_dnet_ntoa=no | |
26287 | fi | |
ac1cb8d3 VS |
26288 | rm -f conftest.err conftest.$ac_objext \ |
26289 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26290 | LIBS=$ac_check_lib_save_LIBS |
26291 | fi | |
26292 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
26293 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
26294 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
26295 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
26296 | fi | |
26297 | ||
26298 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
26299 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
26300 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
26301 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
26302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26303 | else | |
26304 | ac_check_lib_save_LIBS=$LIBS | |
26305 | LIBS="-ldnet_stub $LIBS" | |
26306 | cat >conftest.$ac_ext <<_ACEOF | |
26307 | /* confdefs.h. */ | |
26308 | _ACEOF | |
26309 | cat confdefs.h >>conftest.$ac_ext | |
26310 | cat >>conftest.$ac_ext <<_ACEOF | |
26311 | /* end confdefs.h. */ | |
26312 | ||
26313 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26314 | #ifdef __cplusplus | |
26315 | extern "C" | |
26316 | #endif | |
26317 | /* We use char because int might match the return type of a gcc2 | |
26318 | builtin and then its argument prototype would still apply. */ | |
26319 | char dnet_ntoa (); | |
26320 | int | |
26321 | main () | |
26322 | { | |
26323 | dnet_ntoa (); | |
26324 | ; | |
26325 | return 0; | |
26326 | } | |
26327 | _ACEOF | |
26328 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26330 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26331 | ac_status=$? |
ac1cb8d3 VS |
26332 | grep -v '^ *+' conftest.er1 >conftest.err |
26333 | rm -f conftest.er1 | |
26334 | cat conftest.err >&5 | |
a848cd7e SC |
26335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26336 | (exit $ac_status); } && | |
9dd0f6c2 | 26337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26339 | (eval $ac_try) 2>&5 | |
26340 | ac_status=$? | |
26341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26342 | (exit $ac_status); }; } && | |
26343 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26345 | (eval $ac_try) 2>&5 | |
26346 | ac_status=$? | |
26347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26348 | (exit $ac_status); }; }; then | |
26349 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
26350 | else | |
26351 | echo "$as_me: failed program was:" >&5 | |
26352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26353 | ||
26354 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
26355 | fi | |
ac1cb8d3 VS |
26356 | rm -f conftest.err conftest.$ac_objext \ |
26357 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26358 | LIBS=$ac_check_lib_save_LIBS |
26359 | fi | |
26360 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
26361 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
26362 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
26363 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
26364 | fi | |
26365 | ||
26366 | fi | |
26367 | fi | |
ac1cb8d3 VS |
26368 | rm -f conftest.err conftest.$ac_objext \ |
26369 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26370 | LIBS="$ac_xsave_LIBS" |
26371 | ||
26372 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
26373 | # to get the SysV transport functions. | |
26374 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
26375 | # needs -lnsl. | |
26376 | # The nsl library prevents programs from opening the X display | |
26377 | # on Irix 5.2, according to T.E. Dickey. | |
26378 | # The functions gethostbyname, getservbyname, and inet_addr are | |
26379 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
26380 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
26381 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
26382 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
26383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26384 | else | |
26385 | cat >conftest.$ac_ext <<_ACEOF | |
26386 | /* confdefs.h. */ | |
26387 | _ACEOF | |
26388 | cat confdefs.h >>conftest.$ac_ext | |
26389 | cat >>conftest.$ac_ext <<_ACEOF | |
26390 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26391 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
26392 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26393 | #define gethostbyname innocuous_gethostbyname | |
26394 | ||
a848cd7e SC |
26395 | /* System header to define __stub macros and hopefully few prototypes, |
26396 | which can conflict with char gethostbyname (); below. | |
26397 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26398 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26399 | |
a848cd7e SC |
26400 | #ifdef __STDC__ |
26401 | # include <limits.h> | |
26402 | #else | |
26403 | # include <assert.h> | |
26404 | #endif | |
ac1cb8d3 VS |
26405 | |
26406 | #undef gethostbyname | |
26407 | ||
a848cd7e SC |
26408 | /* Override any gcc2 internal prototype to avoid an error. */ |
26409 | #ifdef __cplusplus | |
26410 | extern "C" | |
26411 | { | |
26412 | #endif | |
26413 | /* We use char because int might match the return type of a gcc2 | |
26414 | builtin and then its argument prototype would still apply. */ | |
26415 | char gethostbyname (); | |
26416 | /* The GNU C library defines this for functions which it implements | |
26417 | to always fail with ENOSYS. Some functions are actually named | |
26418 | something starting with __ and the normal name is an alias. */ | |
26419 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
26420 | choke me | |
26421 | #else | |
26422 | char (*f) () = gethostbyname; | |
26423 | #endif | |
26424 | #ifdef __cplusplus | |
26425 | } | |
26426 | #endif | |
26427 | ||
26428 | int | |
26429 | main () | |
26430 | { | |
26431 | return f != gethostbyname; | |
26432 | ; | |
26433 | return 0; | |
26434 | } | |
26435 | _ACEOF | |
26436 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26438 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26439 | ac_status=$? |
ac1cb8d3 VS |
26440 | grep -v '^ *+' conftest.er1 >conftest.err |
26441 | rm -f conftest.er1 | |
26442 | cat conftest.err >&5 | |
a848cd7e SC |
26443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26444 | (exit $ac_status); } && | |
9dd0f6c2 | 26445 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26447 | (eval $ac_try) 2>&5 | |
26448 | ac_status=$? | |
26449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26450 | (exit $ac_status); }; } && | |
26451 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26453 | (eval $ac_try) 2>&5 | |
26454 | ac_status=$? | |
26455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26456 | (exit $ac_status); }; }; then | |
26457 | ac_cv_func_gethostbyname=yes | |
26458 | else | |
26459 | echo "$as_me: failed program was:" >&5 | |
26460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26461 | ||
26462 | ac_cv_func_gethostbyname=no | |
26463 | fi | |
ac1cb8d3 VS |
26464 | rm -f conftest.err conftest.$ac_objext \ |
26465 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26466 | fi |
26467 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
26468 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
26469 | ||
26470 | if test $ac_cv_func_gethostbyname = no; then | |
26471 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
26472 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
26473 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
26474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26475 | else | |
26476 | ac_check_lib_save_LIBS=$LIBS | |
26477 | LIBS="-lnsl $LIBS" | |
26478 | cat >conftest.$ac_ext <<_ACEOF | |
26479 | /* confdefs.h. */ | |
26480 | _ACEOF | |
26481 | cat confdefs.h >>conftest.$ac_ext | |
26482 | cat >>conftest.$ac_ext <<_ACEOF | |
26483 | /* end confdefs.h. */ | |
26484 | ||
26485 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26486 | #ifdef __cplusplus | |
26487 | extern "C" | |
26488 | #endif | |
26489 | /* We use char because int might match the return type of a gcc2 | |
26490 | builtin and then its argument prototype would still apply. */ | |
26491 | char gethostbyname (); | |
26492 | int | |
26493 | main () | |
26494 | { | |
26495 | gethostbyname (); | |
26496 | ; | |
26497 | return 0; | |
26498 | } | |
26499 | _ACEOF | |
26500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
26502 | (eval $ac_link) 2>conftest.er1 |
26503 | ac_status=$? | |
26504 | grep -v '^ *+' conftest.er1 >conftest.err | |
26505 | rm -f conftest.er1 | |
26506 | cat conftest.err >&5 | |
26507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26508 | (exit $ac_status); } && | |
9dd0f6c2 | 26509 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26511 | (eval $ac_try) 2>&5 | |
26512 | ac_status=$? | |
26513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26514 | (exit $ac_status); }; } && | |
26515 | { ac_try='test -s conftest$ac_exeext' | |
26516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26517 | (eval $ac_try) 2>&5 | |
26518 | ac_status=$? | |
26519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26520 | (exit $ac_status); }; }; then | |
26521 | ac_cv_lib_nsl_gethostbyname=yes | |
26522 | else | |
26523 | echo "$as_me: failed program was:" >&5 | |
26524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26525 | ||
26526 | ac_cv_lib_nsl_gethostbyname=no | |
26527 | fi | |
26528 | rm -f conftest.err conftest.$ac_objext \ | |
26529 | conftest$ac_exeext conftest.$ac_ext | |
26530 | LIBS=$ac_check_lib_save_LIBS | |
26531 | fi | |
26532 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
26533 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
26534 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
26535 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
26536 | fi | |
26537 | ||
26538 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
26539 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
26540 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
26541 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
26542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26543 | else | |
26544 | ac_check_lib_save_LIBS=$LIBS | |
26545 | LIBS="-lbsd $LIBS" | |
26546 | cat >conftest.$ac_ext <<_ACEOF | |
26547 | /* confdefs.h. */ | |
26548 | _ACEOF | |
26549 | cat confdefs.h >>conftest.$ac_ext | |
26550 | cat >>conftest.$ac_ext <<_ACEOF | |
26551 | /* end confdefs.h. */ | |
26552 | ||
26553 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26554 | #ifdef __cplusplus | |
26555 | extern "C" | |
26556 | #endif | |
26557 | /* We use char because int might match the return type of a gcc2 | |
26558 | builtin and then its argument prototype would still apply. */ | |
26559 | char gethostbyname (); | |
26560 | int | |
26561 | main () | |
26562 | { | |
26563 | gethostbyname (); | |
26564 | ; | |
26565 | return 0; | |
26566 | } | |
26567 | _ACEOF | |
26568 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26570 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 26571 | ac_status=$? |
ac1cb8d3 VS |
26572 | grep -v '^ *+' conftest.er1 >conftest.err |
26573 | rm -f conftest.er1 | |
26574 | cat conftest.err >&5 | |
a848cd7e SC |
26575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26576 | (exit $ac_status); } && | |
9dd0f6c2 | 26577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
26578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26579 | (eval $ac_try) 2>&5 | |
26580 | ac_status=$? | |
26581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
26582 | (exit $ac_status); }; } && |
26583 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26585 | (eval $ac_try) 2>&5 | |
26586 | ac_status=$? | |
26587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26588 | (exit $ac_status); }; }; then | |
26589 | ac_cv_lib_bsd_gethostbyname=yes | |
26590 | else | |
26591 | echo "$as_me: failed program was:" >&5 | |
26592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26593 | ||
26594 | ac_cv_lib_bsd_gethostbyname=no | |
26595 | fi | |
ac1cb8d3 VS |
26596 | rm -f conftest.err conftest.$ac_objext \ |
26597 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26598 | LIBS=$ac_check_lib_save_LIBS |
26599 | fi | |
26600 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
26601 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
26602 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
26603 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
26604 | fi | |
26605 | ||
26606 | fi | |
26607 | fi | |
26608 | ||
26609 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
26610 | # socket/setsockopt and other routines are undefined under SCO ODT | |
26611 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
26612 | # on later versions), says Simon Leinen: it contains gethostby* | |
26613 | # variants that don't use the name server (or something). -lsocket | |
26614 | # must be given before -lnsl if both are needed. We assume that | |
26615 | # if connect needs -lnsl, so does gethostbyname. | |
26616 | echo "$as_me:$LINENO: checking for connect" >&5 | |
26617 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
26618 | if test "${ac_cv_func_connect+set}" = set; then | |
26619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26620 | else | |
26621 | cat >conftest.$ac_ext <<_ACEOF | |
26622 | /* confdefs.h. */ | |
26623 | _ACEOF | |
26624 | cat confdefs.h >>conftest.$ac_ext | |
26625 | cat >>conftest.$ac_ext <<_ACEOF | |
26626 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26627 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
26628 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26629 | #define connect innocuous_connect | |
26630 | ||
a848cd7e SC |
26631 | /* System header to define __stub macros and hopefully few prototypes, |
26632 | which can conflict with char connect (); below. | |
26633 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26634 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26635 | |
a848cd7e SC |
26636 | #ifdef __STDC__ |
26637 | # include <limits.h> | |
26638 | #else | |
26639 | # include <assert.h> | |
26640 | #endif | |
ac1cb8d3 VS |
26641 | |
26642 | #undef connect | |
26643 | ||
a848cd7e SC |
26644 | /* Override any gcc2 internal prototype to avoid an error. */ |
26645 | #ifdef __cplusplus | |
26646 | extern "C" | |
26647 | { | |
26648 | #endif | |
26649 | /* We use char because int might match the return type of a gcc2 | |
26650 | builtin and then its argument prototype would still apply. */ | |
26651 | char connect (); | |
26652 | /* The GNU C library defines this for functions which it implements | |
26653 | to always fail with ENOSYS. Some functions are actually named | |
26654 | something starting with __ and the normal name is an alias. */ | |
26655 | #if defined (__stub_connect) || defined (__stub___connect) | |
26656 | choke me | |
26657 | #else | |
26658 | char (*f) () = connect; | |
26659 | #endif | |
26660 | #ifdef __cplusplus | |
26661 | } | |
26662 | #endif | |
26663 | ||
26664 | int | |
26665 | main () | |
26666 | { | |
26667 | return f != connect; | |
26668 | ; | |
26669 | return 0; | |
26670 | } | |
26671 | _ACEOF | |
26672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26674 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26675 | ac_status=$? |
ac1cb8d3 VS |
26676 | grep -v '^ *+' conftest.er1 >conftest.err |
26677 | rm -f conftest.er1 | |
26678 | cat conftest.err >&5 | |
a848cd7e SC |
26679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26680 | (exit $ac_status); } && | |
9dd0f6c2 | 26681 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26683 | (eval $ac_try) 2>&5 | |
26684 | ac_status=$? | |
26685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26686 | (exit $ac_status); }; } && | |
26687 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26689 | (eval $ac_try) 2>&5 | |
26690 | ac_status=$? | |
26691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26692 | (exit $ac_status); }; }; then | |
26693 | ac_cv_func_connect=yes | |
26694 | else | |
26695 | echo "$as_me: failed program was:" >&5 | |
26696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26697 | ||
26698 | ac_cv_func_connect=no | |
26699 | fi | |
ac1cb8d3 VS |
26700 | rm -f conftest.err conftest.$ac_objext \ |
26701 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26702 | fi |
26703 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
26704 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
26705 | ||
26706 | if test $ac_cv_func_connect = no; then | |
26707 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
26708 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
26709 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
26710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26711 | else | |
26712 | ac_check_lib_save_LIBS=$LIBS | |
26713 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
26714 | cat >conftest.$ac_ext <<_ACEOF | |
26715 | /* confdefs.h. */ | |
26716 | _ACEOF | |
26717 | cat confdefs.h >>conftest.$ac_ext | |
26718 | cat >>conftest.$ac_ext <<_ACEOF | |
26719 | /* end confdefs.h. */ | |
26720 | ||
26721 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26722 | #ifdef __cplusplus | |
26723 | extern "C" | |
26724 | #endif | |
26725 | /* We use char because int might match the return type of a gcc2 | |
26726 | builtin and then its argument prototype would still apply. */ | |
26727 | char connect (); | |
26728 | int | |
26729 | main () | |
26730 | { | |
26731 | connect (); | |
26732 | ; | |
26733 | return 0; | |
26734 | } | |
26735 | _ACEOF | |
26736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26738 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26739 | ac_status=$? |
ac1cb8d3 VS |
26740 | grep -v '^ *+' conftest.er1 >conftest.err |
26741 | rm -f conftest.er1 | |
26742 | cat conftest.err >&5 | |
a848cd7e SC |
26743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26744 | (exit $ac_status); } && | |
9dd0f6c2 | 26745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26747 | (eval $ac_try) 2>&5 | |
26748 | ac_status=$? | |
26749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26750 | (exit $ac_status); }; } && | |
26751 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26753 | (eval $ac_try) 2>&5 | |
26754 | ac_status=$? | |
26755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26756 | (exit $ac_status); }; }; then | |
26757 | ac_cv_lib_socket_connect=yes | |
26758 | else | |
26759 | echo "$as_me: failed program was:" >&5 | |
26760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26761 | ||
26762 | ac_cv_lib_socket_connect=no | |
26763 | fi | |
ac1cb8d3 VS |
26764 | rm -f conftest.err conftest.$ac_objext \ |
26765 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26766 | LIBS=$ac_check_lib_save_LIBS |
26767 | fi | |
26768 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
26769 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
26770 | if test $ac_cv_lib_socket_connect = yes; then | |
26771 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
26772 | fi | |
26773 | ||
26774 | fi | |
26775 | ||
26776 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
26777 | echo "$as_me:$LINENO: checking for remove" >&5 | |
26778 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
26779 | if test "${ac_cv_func_remove+set}" = set; then | |
26780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26781 | else | |
26782 | cat >conftest.$ac_ext <<_ACEOF | |
26783 | /* confdefs.h. */ | |
26784 | _ACEOF | |
26785 | cat confdefs.h >>conftest.$ac_ext | |
26786 | cat >>conftest.$ac_ext <<_ACEOF | |
26787 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26788 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
26789 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26790 | #define remove innocuous_remove | |
26791 | ||
a848cd7e SC |
26792 | /* System header to define __stub macros and hopefully few prototypes, |
26793 | which can conflict with char remove (); below. | |
26794 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26795 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26796 | |
a848cd7e SC |
26797 | #ifdef __STDC__ |
26798 | # include <limits.h> | |
26799 | #else | |
26800 | # include <assert.h> | |
26801 | #endif | |
ac1cb8d3 VS |
26802 | |
26803 | #undef remove | |
26804 | ||
a848cd7e SC |
26805 | /* Override any gcc2 internal prototype to avoid an error. */ |
26806 | #ifdef __cplusplus | |
26807 | extern "C" | |
26808 | { | |
26809 | #endif | |
26810 | /* We use char because int might match the return type of a gcc2 | |
26811 | builtin and then its argument prototype would still apply. */ | |
26812 | char remove (); | |
26813 | /* The GNU C library defines this for functions which it implements | |
26814 | to always fail with ENOSYS. Some functions are actually named | |
26815 | something starting with __ and the normal name is an alias. */ | |
26816 | #if defined (__stub_remove) || defined (__stub___remove) | |
26817 | choke me | |
26818 | #else | |
26819 | char (*f) () = remove; | |
26820 | #endif | |
26821 | #ifdef __cplusplus | |
26822 | } | |
26823 | #endif | |
26824 | ||
26825 | int | |
26826 | main () | |
26827 | { | |
26828 | return f != remove; | |
26829 | ; | |
26830 | return 0; | |
26831 | } | |
26832 | _ACEOF | |
26833 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26835 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26836 | ac_status=$? |
ac1cb8d3 VS |
26837 | grep -v '^ *+' conftest.er1 >conftest.err |
26838 | rm -f conftest.er1 | |
26839 | cat conftest.err >&5 | |
a848cd7e SC |
26840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26841 | (exit $ac_status); } && | |
9dd0f6c2 | 26842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26844 | (eval $ac_try) 2>&5 | |
26845 | ac_status=$? | |
26846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26847 | (exit $ac_status); }; } && | |
26848 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26850 | (eval $ac_try) 2>&5 | |
26851 | ac_status=$? | |
26852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26853 | (exit $ac_status); }; }; then | |
26854 | ac_cv_func_remove=yes | |
26855 | else | |
26856 | echo "$as_me: failed program was:" >&5 | |
26857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26858 | ||
26859 | ac_cv_func_remove=no | |
26860 | fi | |
ac1cb8d3 VS |
26861 | rm -f conftest.err conftest.$ac_objext \ |
26862 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26863 | fi |
26864 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
26865 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
26866 | ||
26867 | if test $ac_cv_func_remove = no; then | |
26868 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
26869 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
26870 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
26871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26872 | else | |
26873 | ac_check_lib_save_LIBS=$LIBS | |
26874 | LIBS="-lposix $LIBS" | |
26875 | cat >conftest.$ac_ext <<_ACEOF | |
26876 | /* confdefs.h. */ | |
26877 | _ACEOF | |
26878 | cat confdefs.h >>conftest.$ac_ext | |
26879 | cat >>conftest.$ac_ext <<_ACEOF | |
26880 | /* end confdefs.h. */ | |
26881 | ||
26882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26883 | #ifdef __cplusplus | |
26884 | extern "C" | |
26885 | #endif | |
26886 | /* We use char because int might match the return type of a gcc2 | |
26887 | builtin and then its argument prototype would still apply. */ | |
26888 | char remove (); | |
26889 | int | |
26890 | main () | |
26891 | { | |
26892 | remove (); | |
26893 | ; | |
26894 | return 0; | |
26895 | } | |
26896 | _ACEOF | |
26897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26899 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26900 | ac_status=$? |
ac1cb8d3 VS |
26901 | grep -v '^ *+' conftest.er1 >conftest.err |
26902 | rm -f conftest.er1 | |
26903 | cat conftest.err >&5 | |
a848cd7e SC |
26904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26905 | (exit $ac_status); } && | |
9dd0f6c2 | 26906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26908 | (eval $ac_try) 2>&5 | |
26909 | ac_status=$? | |
26910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26911 | (exit $ac_status); }; } && | |
26912 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26914 | (eval $ac_try) 2>&5 | |
26915 | ac_status=$? | |
26916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26917 | (exit $ac_status); }; }; then | |
26918 | ac_cv_lib_posix_remove=yes | |
26919 | else | |
26920 | echo "$as_me: failed program was:" >&5 | |
26921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26922 | ||
26923 | ac_cv_lib_posix_remove=no | |
26924 | fi | |
ac1cb8d3 VS |
26925 | rm -f conftest.err conftest.$ac_objext \ |
26926 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26927 | LIBS=$ac_check_lib_save_LIBS |
26928 | fi | |
26929 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
26930 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
26931 | if test $ac_cv_lib_posix_remove = yes; then | |
26932 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
26933 | fi | |
26934 | ||
26935 | fi | |
26936 | ||
26937 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
26938 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
26939 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
26940 | if test "${ac_cv_func_shmat+set}" = set; then | |
26941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26942 | else | |
26943 | cat >conftest.$ac_ext <<_ACEOF | |
26944 | /* confdefs.h. */ | |
26945 | _ACEOF | |
26946 | cat confdefs.h >>conftest.$ac_ext | |
26947 | cat >>conftest.$ac_ext <<_ACEOF | |
26948 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26949 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
26950 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26951 | #define shmat innocuous_shmat | |
26952 | ||
a848cd7e SC |
26953 | /* System header to define __stub macros and hopefully few prototypes, |
26954 | which can conflict with char shmat (); below. | |
26955 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26956 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26957 | |
a848cd7e SC |
26958 | #ifdef __STDC__ |
26959 | # include <limits.h> | |
26960 | #else | |
26961 | # include <assert.h> | |
26962 | #endif | |
ac1cb8d3 VS |
26963 | |
26964 | #undef shmat | |
26965 | ||
a848cd7e SC |
26966 | /* Override any gcc2 internal prototype to avoid an error. */ |
26967 | #ifdef __cplusplus | |
26968 | extern "C" | |
26969 | { | |
26970 | #endif | |
26971 | /* We use char because int might match the return type of a gcc2 | |
26972 | builtin and then its argument prototype would still apply. */ | |
26973 | char shmat (); | |
26974 | /* The GNU C library defines this for functions which it implements | |
26975 | to always fail with ENOSYS. Some functions are actually named | |
26976 | something starting with __ and the normal name is an alias. */ | |
26977 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
26978 | choke me | |
26979 | #else | |
26980 | char (*f) () = shmat; | |
26981 | #endif | |
26982 | #ifdef __cplusplus | |
26983 | } | |
26984 | #endif | |
26985 | ||
26986 | int | |
26987 | main () | |
26988 | { | |
26989 | return f != shmat; | |
26990 | ; | |
26991 | return 0; | |
26992 | } | |
26993 | _ACEOF | |
26994 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26996 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26997 | ac_status=$? |
ac1cb8d3 VS |
26998 | grep -v '^ *+' conftest.er1 >conftest.err |
26999 | rm -f conftest.er1 | |
27000 | cat conftest.err >&5 | |
a848cd7e SC |
27001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27002 | (exit $ac_status); } && | |
9dd0f6c2 | 27003 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27005 | (eval $ac_try) 2>&5 | |
27006 | ac_status=$? | |
27007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27008 | (exit $ac_status); }; } && | |
27009 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27011 | (eval $ac_try) 2>&5 | |
27012 | ac_status=$? | |
27013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27014 | (exit $ac_status); }; }; then | |
27015 | ac_cv_func_shmat=yes | |
27016 | else | |
27017 | echo "$as_me: failed program was:" >&5 | |
27018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27019 | ||
27020 | ac_cv_func_shmat=no | |
27021 | fi | |
ac1cb8d3 VS |
27022 | rm -f conftest.err conftest.$ac_objext \ |
27023 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27024 | fi |
27025 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
27026 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
27027 | ||
27028 | if test $ac_cv_func_shmat = no; then | |
27029 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
27030 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
27031 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
27032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27033 | else | |
27034 | ac_check_lib_save_LIBS=$LIBS | |
27035 | LIBS="-lipc $LIBS" | |
27036 | cat >conftest.$ac_ext <<_ACEOF | |
27037 | /* confdefs.h. */ | |
27038 | _ACEOF | |
27039 | cat confdefs.h >>conftest.$ac_ext | |
27040 | cat >>conftest.$ac_ext <<_ACEOF | |
27041 | /* end confdefs.h. */ | |
27042 | ||
27043 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27044 | #ifdef __cplusplus | |
27045 | extern "C" | |
27046 | #endif | |
27047 | /* We use char because int might match the return type of a gcc2 | |
27048 | builtin and then its argument prototype would still apply. */ | |
27049 | char shmat (); | |
27050 | int | |
27051 | main () | |
27052 | { | |
27053 | shmat (); | |
27054 | ; | |
27055 | return 0; | |
27056 | } | |
27057 | _ACEOF | |
27058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27060 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27061 | ac_status=$? |
ac1cb8d3 VS |
27062 | grep -v '^ *+' conftest.er1 >conftest.err |
27063 | rm -f conftest.er1 | |
27064 | cat conftest.err >&5 | |
a848cd7e SC |
27065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27066 | (exit $ac_status); } && | |
9dd0f6c2 | 27067 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27069 | (eval $ac_try) 2>&5 | |
27070 | ac_status=$? | |
27071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27072 | (exit $ac_status); }; } && | |
27073 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27075 | (eval $ac_try) 2>&5 | |
27076 | ac_status=$? | |
27077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27078 | (exit $ac_status); }; }; then | |
27079 | ac_cv_lib_ipc_shmat=yes | |
27080 | else | |
27081 | echo "$as_me: failed program was:" >&5 | |
27082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27083 | ||
27084 | ac_cv_lib_ipc_shmat=no | |
27085 | fi | |
ac1cb8d3 VS |
27086 | rm -f conftest.err conftest.$ac_objext \ |
27087 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27088 | LIBS=$ac_check_lib_save_LIBS |
27089 | fi | |
27090 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
27091 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
27092 | if test $ac_cv_lib_ipc_shmat = yes; then | |
27093 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
27094 | fi | |
27095 | ||
27096 | fi | |
27097 | fi | |
27098 | ||
27099 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
27100 | ac_save_LDFLAGS=$LDFLAGS | |
27101 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
27102 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
27103 | # check for ICE first), but we must link in the order -lSM -lICE or | |
27104 | # we get undefined symbols. So assume we have SM if we have ICE. | |
27105 | # These have to be linked with before -lX11, unlike the other | |
27106 | # libraries we check for below, so use a different variable. | |
27107 | # John Interrante, Karl Berry | |
27108 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
27109 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
27110 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
27111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27112 | else | |
27113 | ac_check_lib_save_LIBS=$LIBS | |
27114 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
27115 | cat >conftest.$ac_ext <<_ACEOF | |
27116 | /* confdefs.h. */ | |
27117 | _ACEOF | |
27118 | cat confdefs.h >>conftest.$ac_ext | |
27119 | cat >>conftest.$ac_ext <<_ACEOF | |
27120 | /* end confdefs.h. */ | |
27121 | ||
27122 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27123 | #ifdef __cplusplus | |
27124 | extern "C" | |
27125 | #endif | |
27126 | /* We use char because int might match the return type of a gcc2 | |
27127 | builtin and then its argument prototype would still apply. */ | |
27128 | char IceConnectionNumber (); | |
27129 | int | |
27130 | main () | |
27131 | { | |
27132 | IceConnectionNumber (); | |
27133 | ; | |
27134 | return 0; | |
27135 | } | |
27136 | _ACEOF | |
27137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27139 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27140 | ac_status=$? |
ac1cb8d3 VS |
27141 | grep -v '^ *+' conftest.er1 >conftest.err |
27142 | rm -f conftest.er1 | |
27143 | cat conftest.err >&5 | |
a848cd7e SC |
27144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27145 | (exit $ac_status); } && | |
9dd0f6c2 | 27146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27148 | (eval $ac_try) 2>&5 | |
27149 | ac_status=$? | |
27150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27151 | (exit $ac_status); }; } && | |
27152 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27154 | (eval $ac_try) 2>&5 | |
27155 | ac_status=$? | |
27156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27157 | (exit $ac_status); }; }; then | |
27158 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
27159 | else | |
27160 | echo "$as_me: failed program was:" >&5 | |
27161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27162 | ||
27163 | ac_cv_lib_ICE_IceConnectionNumber=no | |
27164 | fi | |
ac1cb8d3 VS |
27165 | rm -f conftest.err conftest.$ac_objext \ |
27166 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27167 | LIBS=$ac_check_lib_save_LIBS |
27168 | fi | |
27169 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
27170 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
27171 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
27172 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
27173 | fi | |
27174 | ||
27175 | LDFLAGS=$ac_save_LDFLAGS | |
27176 | ||
27177 | fi | |
27178 | ||
27179 | ||
27180 | if test "$no_x" = "yes"; then | |
27181 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
27182 | echo "$as_me: error: X11 not found" >&2;} | |
27183 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
27184 | fi | |
27185 | ||
74b84332 VS |
27186 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
27187 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
27188 | AFMINSTALL=afminstall |
27189 | COMPILED_X_PROGRAM=0 | |
27190 | ||
74b84332 VS |
27191 | fi |
27192 | ||
27193 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
27194 | if test "$wxUSE_NANOX" = "yes"; then |
27195 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
27196 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
27197 | if test "x$MICROWIN" = x ; then | |
27198 | echo "$as_me:$LINENO: result: not found" >&5 | |
27199 | echo "${ECHO_T}not found" >&6 | |
27200 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
27201 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
27202 | { (exit 1); exit 1; }; } | |
27203 | else | |
27204 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
27205 | echo "${ECHO_T}$MICROWIN" >&6 | |
27206 | cat >>confdefs.h <<\_ACEOF | |
27207 | #define wxUSE_NANOX 1 | |
27208 | _ACEOF | |
27209 | ||
27210 | fi | |
27211 | fi | |
27212 | ||
27213 | if test "$wxUSE_UNICODE" = "yes"; then | |
27214 | ||
27215 | succeeded=no | |
27216 | ||
27217 | if test -z "$PKG_CONFIG"; then | |
27218 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27219 | set dummy pkg-config; ac_word=$2 | |
27220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27222 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27224 | else | |
27225 | case $PKG_CONFIG in | |
27226 | [\\/]* | ?:[\\/]*) | |
27227 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27228 | ;; | |
27229 | *) | |
27230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27231 | for as_dir in $PATH | |
27232 | do | |
27233 | IFS=$as_save_IFS | |
27234 | test -z "$as_dir" && as_dir=. | |
27235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27236 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27237 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27239 | break 2 | |
27240 | fi | |
27241 | done | |
27242 | done | |
27243 | ||
27244 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27245 | ;; | |
27246 | esac | |
27247 | fi | |
27248 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27249 | ||
27250 | if test -n "$PKG_CONFIG"; then | |
27251 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27252 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27253 | else | |
27254 | echo "$as_me:$LINENO: result: no" >&5 | |
27255 | echo "${ECHO_T}no" >&6 | |
27256 | fi | |
27257 | ||
27258 | fi | |
27259 | ||
27260 | if test "$PKG_CONFIG" = "no" ; then | |
27261 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27262 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27263 | echo "*** to the full path to pkg-config." | |
27264 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27265 | else | |
27266 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27267 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27268 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
27269 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
27270 | ||
27271 | if $PKG_CONFIG --exists "pangox" ; then | |
27272 | echo "$as_me:$LINENO: result: yes" >&5 | |
27273 | echo "${ECHO_T}yes" >&6 | |
27274 | succeeded=yes | |
27275 | ||
27276 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
27277 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
27278 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
27279 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
27280 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
27281 | ||
27282 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
27283 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
27284 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
27285 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
27286 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
27287 | else | |
27288 | PANGOX_CFLAGS="" | |
27289 | PANGOX_LIBS="" | |
27290 | ## If we have a custom action on failure, don't print errors, but | |
27291 | ## do set a variable so people can do so. | |
27292 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
27293 | ||
27294 | fi | |
27295 | ||
27296 | ||
27297 | ||
27298 | else | |
27299 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27300 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27301 | fi | |
27302 | fi | |
27303 | ||
27304 | if test $succeeded = yes; then | |
27305 | ||
27306 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
27307 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
27308 | ||
27309 | else | |
27310 | ||
27311 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
27312 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
27313 | { (exit 1); exit 1; }; } | |
27314 | ||
27315 | ||
27316 | fi | |
27317 | ||
27318 | ||
27319 | succeeded=no | |
27320 | ||
27321 | if test -z "$PKG_CONFIG"; then | |
27322 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27323 | set dummy pkg-config; ac_word=$2 | |
27324 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27326 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27328 | else | |
27329 | case $PKG_CONFIG in | |
27330 | [\\/]* | ?:[\\/]*) | |
27331 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27332 | ;; | |
27333 | *) | |
27334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27335 | for as_dir in $PATH | |
27336 | do | |
27337 | IFS=$as_save_IFS | |
27338 | test -z "$as_dir" && as_dir=. | |
27339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27340 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27341 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27343 | break 2 | |
27344 | fi | |
27345 | done | |
27346 | done | |
27347 | ||
27348 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27349 | ;; | |
27350 | esac | |
27351 | fi | |
27352 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27353 | ||
27354 | if test -n "$PKG_CONFIG"; then | |
27355 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27356 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27357 | else | |
27358 | echo "$as_me:$LINENO: result: no" >&5 | |
27359 | echo "${ECHO_T}no" >&6 | |
27360 | fi | |
27361 | ||
27362 | fi | |
27363 | ||
27364 | if test "$PKG_CONFIG" = "no" ; then | |
27365 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27366 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27367 | echo "*** to the full path to pkg-config." | |
27368 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27369 | else | |
27370 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27371 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27372 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
27373 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
27374 | ||
27375 | if $PKG_CONFIG --exists "pangoft2" ; then | |
27376 | echo "$as_me:$LINENO: result: yes" >&5 | |
27377 | echo "${ECHO_T}yes" >&6 | |
27378 | succeeded=yes | |
27379 | ||
27380 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
27381 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
27382 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
27383 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
27384 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
27385 | ||
27386 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
27387 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
27388 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
27389 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
27390 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
27391 | else | |
27392 | PANGOFT2_CFLAGS="" | |
27393 | PANGOFT2_LIBS="" | |
27394 | ## If we have a custom action on failure, don't print errors, but | |
27395 | ## do set a variable so people can do so. | |
27396 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
27397 | ||
27398 | fi | |
27399 | ||
27400 | ||
27401 | ||
27402 | else | |
27403 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27404 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27405 | fi | |
27406 | fi | |
27407 | ||
27408 | if test $succeeded = yes; then | |
27409 | ||
27410 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
27411 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
27412 | ||
27413 | else | |
27414 | ||
27415 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
27416 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
27417 | wxUSE_PRINTING_ARCHITECTURE="no" | |
27418 | ||
27419 | ||
27420 | fi | |
27421 | ||
27422 | ||
27423 | succeeded=no | |
27424 | ||
27425 | if test -z "$PKG_CONFIG"; then | |
27426 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27427 | set dummy pkg-config; ac_word=$2 | |
27428 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27430 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27432 | else | |
27433 | case $PKG_CONFIG in | |
27434 | [\\/]* | ?:[\\/]*) | |
27435 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27436 | ;; | |
27437 | *) | |
27438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27439 | for as_dir in $PATH | |
27440 | do | |
27441 | IFS=$as_save_IFS | |
27442 | test -z "$as_dir" && as_dir=. | |
27443 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27444 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27445 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27447 | break 2 | |
27448 | fi | |
27449 | done | |
27450 | done | |
27451 | ||
27452 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27453 | ;; | |
27454 | esac | |
27455 | fi | |
27456 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27457 | ||
27458 | if test -n "$PKG_CONFIG"; then | |
27459 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27460 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27461 | else | |
27462 | echo "$as_me:$LINENO: result: no" >&5 | |
27463 | echo "${ECHO_T}no" >&6 | |
27464 | fi | |
27465 | ||
27466 | fi | |
27467 | ||
27468 | if test "$PKG_CONFIG" = "no" ; then | |
27469 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27470 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27471 | echo "*** to the full path to pkg-config." | |
27472 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27473 | else | |
27474 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27475 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27476 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
27477 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
27478 | ||
27479 | if $PKG_CONFIG --exists "pangoxft" ; then | |
27480 | echo "$as_me:$LINENO: result: yes" >&5 | |
27481 | echo "${ECHO_T}yes" >&6 | |
27482 | succeeded=yes | |
27483 | ||
27484 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
27485 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
27486 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
27487 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
27488 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
27489 | ||
27490 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
27491 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
27492 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
27493 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
27494 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
27495 | else | |
27496 | PANGOXFT_CFLAGS="" | |
27497 | PANGOXFT_LIBS="" | |
27498 | ## If we have a custom action on failure, don't print errors, but | |
27499 | ## do set a variable so people can do so. | |
27500 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
27501 | ||
27502 | fi | |
27503 | ||
27504 | ||
27505 | ||
27506 | else | |
27507 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27508 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27509 | fi | |
27510 | fi | |
27511 | ||
27512 | if test $succeeded = yes; then | |
27513 | ||
4ae1af05 MB |
27514 | cat >>confdefs.h <<\_ACEOF |
27515 | #define HAVE_PANGO_XFT 1 | |
27516 | _ACEOF | |
27517 | ||
a848cd7e SC |
27518 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
27519 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
27520 | ||
27521 | else | |
27522 | ||
27523 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
27524 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
27525 | ||
27526 | ||
27527 | fi | |
27528 | ||
304205f1 VS |
27529 | save_CFLAGS="$CFLAGS" |
27530 | save_LIBS="$LIBS" | |
27531 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
27532 | LIBS="$LIBS $PANGOX_LIBS" | |
27533 | ||
27534 | for ac_func in pango_font_family_is_monospace | |
27535 | do | |
27536 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27537 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27538 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27539 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27541 | else | |
27542 | cat >conftest.$ac_ext <<_ACEOF | |
27543 | /* confdefs.h. */ | |
27544 | _ACEOF | |
27545 | cat confdefs.h >>conftest.$ac_ext | |
27546 | cat >>conftest.$ac_ext <<_ACEOF | |
27547 | /* end confdefs.h. */ | |
27548 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
27549 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27550 | #define $ac_func innocuous_$ac_func | |
27551 | ||
27552 | /* System header to define __stub macros and hopefully few prototypes, | |
27553 | which can conflict with char $ac_func (); below. | |
27554 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27555 | <limits.h> exists even on freestanding compilers. */ | |
27556 | ||
27557 | #ifdef __STDC__ | |
27558 | # include <limits.h> | |
27559 | #else | |
27560 | # include <assert.h> | |
27561 | #endif | |
27562 | ||
27563 | #undef $ac_func | |
27564 | ||
27565 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27566 | #ifdef __cplusplus | |
27567 | extern "C" | |
27568 | { | |
27569 | #endif | |
27570 | /* We use char because int might match the return type of a gcc2 | |
27571 | builtin and then its argument prototype would still apply. */ | |
27572 | char $ac_func (); | |
27573 | /* The GNU C library defines this for functions which it implements | |
27574 | to always fail with ENOSYS. Some functions are actually named | |
27575 | something starting with __ and the normal name is an alias. */ | |
27576 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27577 | choke me | |
27578 | #else | |
27579 | char (*f) () = $ac_func; | |
27580 | #endif | |
27581 | #ifdef __cplusplus | |
27582 | } | |
27583 | #endif | |
27584 | ||
27585 | int | |
27586 | main () | |
27587 | { | |
27588 | return f != $ac_func; | |
27589 | ; | |
27590 | return 0; | |
27591 | } | |
27592 | _ACEOF | |
27593 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27595 | (eval $ac_link) 2>conftest.er1 | |
27596 | ac_status=$? | |
27597 | grep -v '^ *+' conftest.er1 >conftest.err | |
27598 | rm -f conftest.er1 | |
27599 | cat conftest.err >&5 | |
27600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27601 | (exit $ac_status); } && | |
9dd0f6c2 | 27602 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
27603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27604 | (eval $ac_try) 2>&5 | |
27605 | ac_status=$? | |
27606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27607 | (exit $ac_status); }; } && | |
27608 | { ac_try='test -s conftest$ac_exeext' | |
27609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27610 | (eval $ac_try) 2>&5 | |
27611 | ac_status=$? | |
27612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27613 | (exit $ac_status); }; }; then | |
27614 | eval "$as_ac_var=yes" | |
27615 | else | |
27616 | echo "$as_me: failed program was:" >&5 | |
27617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27618 | ||
27619 | eval "$as_ac_var=no" | |
27620 | fi | |
27621 | rm -f conftest.err conftest.$ac_objext \ | |
27622 | conftest$ac_exeext conftest.$ac_ext | |
27623 | fi | |
27624 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27625 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27626 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27627 | cat >>confdefs.h <<_ACEOF | |
27628 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27629 | _ACEOF | |
27630 | ||
27631 | fi | |
27632 | done | |
27633 | ||
27634 | CFLAGS="$save_CFLAGS" | |
27635 | LIBS="$save_LIBS" | |
a848cd7e SC |
27636 | fi |
27637 | ||
27638 | wxUSE_UNIVERSAL="yes" | |
27639 | ||
27640 | if test "$wxUSE_NANOX" = "yes"; then | |
27641 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
27642 | 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" | |
27643 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
27644 | else | |
27645 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
27646 | fi | |
27647 | ||
a848cd7e SC |
27648 | TOOLKIT=X11 |
27649 | GUIDIST=X11_DIST | |
27650 | fi | |
27651 | ||
27652 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
27653 | if test "$wxUSE_UNICODE" = "yes"; then |
27654 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
27655 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
27656 | { (exit 1); exit 1; }; } | |
27657 | fi | |
27658 | ||
74b84332 VS |
27659 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
27660 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 27661 | |
74b84332 VS |
27662 | ac_find_includes= |
27663 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27664 | do | |
27665 | if test -f "$ac_dir/Xm/Xm.h"; then | |
27666 | ac_find_includes=$ac_dir | |
27667 | break | |
27668 | fi | |
27669 | done | |
a848cd7e | 27670 | |
74b84332 VS |
27671 | if test "$ac_find_includes" != "" ; then |
27672 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27673 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27674 | ||
27675 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27676 | ac_path_to_include="" | |
27677 | else | |
27678 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
27679 | result=$? | |
27680 | if test $result = 0; then | |
27681 | ac_path_to_include="" | |
27682 | else | |
27683 | ac_path_to_include=" -I$ac_find_includes" | |
27684 | fi | |
a848cd7e SC |
27685 | fi |
27686 | ||
74b84332 VS |
27687 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
27688 | else | |
27689 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27690 | /* confdefs.h. */ |
27691 | _ACEOF | |
27692 | cat confdefs.h >>conftest.$ac_ext | |
27693 | cat >>conftest.$ac_ext <<_ACEOF | |
27694 | /* end confdefs.h. */ | |
27695 | ||
74b84332 VS |
27696 | #include <Xm/Xm.h> |
27697 | ||
a848cd7e SC |
27698 | int |
27699 | main () | |
27700 | { | |
27701 | ||
74b84332 VS |
27702 | int version; |
27703 | version = xmUseVersion; | |
27704 | ||
a848cd7e SC |
27705 | ; |
27706 | return 0; | |
27707 | } | |
27708 | _ACEOF | |
74b84332 VS |
27709 | rm -f conftest.$ac_objext |
27710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27711 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 27712 | ac_status=$? |
ac1cb8d3 VS |
27713 | grep -v '^ *+' conftest.er1 >conftest.err |
27714 | rm -f conftest.er1 | |
27715 | cat conftest.err >&5 | |
a848cd7e SC |
27716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27717 | (exit $ac_status); } && | |
9dd0f6c2 | 27718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27720 | (eval $ac_try) 2>&5 | |
27721 | ac_status=$? | |
27722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27723 | (exit $ac_status); }; } && | |
74b84332 | 27724 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27726 | (eval $ac_try) 2>&5 | |
27727 | ac_status=$? | |
27728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27729 | (exit $ac_status); }; }; then | |
74b84332 VS |
27730 | |
27731 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
27732 | echo "${ECHO_T}found in default search path" >&6 | |
27733 | COMPILED_X_PROGRAM=1 | |
27734 | ||
a848cd7e SC |
27735 | else |
27736 | echo "$as_me: failed program was:" >&5 | |
27737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27738 | ||
a848cd7e | 27739 | |
74b84332 VS |
27740 | echo "$as_me:$LINENO: result: no" >&5 |
27741 | echo "${ECHO_T}no" >&6 | |
27742 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
27743 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
27744 | { (exit 1); exit 1; }; } | |
a848cd7e | 27745 | |
a848cd7e | 27746 | |
a848cd7e | 27747 | fi |
74b84332 VS |
27748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27749 | fi | |
27750 | ||
27751 | if test "$COMPILED_X_PROGRAM" = 0; then | |
27752 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
27753 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
27754 | ||
27755 | ac_find_libraries= | |
27756 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27757 | do | |
27758 | for ac_extension in a so sl dylib; do | |
27759 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
27760 | ac_find_libraries=$ac_dir | |
27761 | break 2 | |
a848cd7e | 27762 | fi |
74b84332 VS |
27763 | done |
27764 | done | |
a848cd7e | 27765 | |
74b84332 VS |
27766 | if test "$ac_find_libraries" != "" ; then |
27767 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
27768 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 27769 | |
74b84332 VS |
27770 | |
27771 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
27772 | result=$? | |
27773 | if test $result = 0; then | |
27774 | ac_path_to_link="" | |
a848cd7e | 27775 | else |
74b84332 VS |
27776 | ac_path_to_link=" -L$ac_find_libraries" |
27777 | fi | |
27778 | ||
27779 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
27780 | else | |
27781 | save_CFLAGS=$CFLAGS | |
27782 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27783 | ||
27784 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27785 | /* confdefs.h. */ |
27786 | _ACEOF | |
27787 | cat confdefs.h >>conftest.$ac_ext | |
27788 | cat >>conftest.$ac_ext <<_ACEOF | |
27789 | /* end confdefs.h. */ | |
27790 | ||
74b84332 VS |
27791 | #include <Xm/Xm.h> |
27792 | ||
a848cd7e SC |
27793 | int |
27794 | main () | |
27795 | { | |
74b84332 VS |
27796 | |
27797 | int version; | |
27798 | version = xmUseVersion; | |
27799 | ||
a848cd7e SC |
27800 | ; |
27801 | return 0; | |
27802 | } | |
27803 | _ACEOF | |
74b84332 VS |
27804 | rm -f conftest.$ac_objext |
27805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27806 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 27807 | ac_status=$? |
ac1cb8d3 VS |
27808 | grep -v '^ *+' conftest.er1 >conftest.err |
27809 | rm -f conftest.er1 | |
27810 | cat conftest.err >&5 | |
a848cd7e SC |
27811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27812 | (exit $ac_status); } && | |
9dd0f6c2 | 27813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27815 | (eval $ac_try) 2>&5 | |
27816 | ac_status=$? | |
27817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27818 | (exit $ac_status); }; } && | |
74b84332 | 27819 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27821 | (eval $ac_try) 2>&5 | |
27822 | ac_status=$? | |
27823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27824 | (exit $ac_status); }; }; then | |
74b84332 VS |
27825 | |
27826 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
27827 | echo "${ECHO_T}found in default search path" >&6 | |
27828 | COMPILED_X_PROGRAM=1 | |
27829 | ||
a848cd7e SC |
27830 | else |
27831 | echo "$as_me: failed program was:" >&5 | |
27832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27833 | ||
74b84332 VS |
27834 | |
27835 | echo "$as_me:$LINENO: result: no" >&5 | |
27836 | echo "${ECHO_T}no" >&6 | |
27837 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
27838 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
27839 | { (exit 1); exit 1; }; } | |
27840 | ||
27841 | ||
27842 | fi | |
27843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27844 | ||
27845 | CFLAGS=$save_CFLAGS | |
27846 | fi | |
27847 | fi | |
27848 | ||
27849 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
27850 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
27851 | libp_link="" | |
27852 | libsm_ice_link="" | |
27853 | libs_found=0 | |
27854 | for libp in "" " -lXp"; do | |
27855 | if test "$libs_found" = "0"; then | |
27856 | for libsm_ice in "" " -lSM -lICE"; do | |
27857 | if test "$libs_found" = "0"; then | |
27858 | save_LIBS="$LIBS" | |
27859 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
27860 | save_CFLAGS=$CFLAGS | |
27861 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27862 | ||
27863 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27864 | /* confdefs.h. */ |
27865 | _ACEOF | |
27866 | cat confdefs.h >>conftest.$ac_ext | |
27867 | cat >>conftest.$ac_ext <<_ACEOF | |
27868 | /* end confdefs.h. */ | |
27869 | ||
74b84332 VS |
27870 | #include <Xm/Xm.h> |
27871 | #include <Xm/List.h> | |
27872 | ||
a848cd7e SC |
27873 | int |
27874 | main () | |
27875 | { | |
74b84332 VS |
27876 | |
27877 | XmString string = NULL; | |
27878 | Widget w = NULL; | |
27879 | int position = 0; | |
27880 | XmListAddItem(w, string, position); | |
27881 | ||
a848cd7e SC |
27882 | ; |
27883 | return 0; | |
27884 | } | |
27885 | _ACEOF | |
27886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27888 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27889 | ac_status=$? |
ac1cb8d3 VS |
27890 | grep -v '^ *+' conftest.er1 >conftest.err |
27891 | rm -f conftest.er1 | |
27892 | cat conftest.err >&5 | |
a848cd7e SC |
27893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27894 | (exit $ac_status); } && | |
9dd0f6c2 | 27895 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27897 | (eval $ac_try) 2>&5 | |
27898 | ac_status=$? | |
27899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27900 | (exit $ac_status); }; } && | |
27901 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27903 | (eval $ac_try) 2>&5 | |
27904 | ac_status=$? | |
27905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27906 | (exit $ac_status); }; }; then | |
27907 | ||
27908 | libp_link="$libp" | |
27909 | libsm_ice_link="$libsm_ice" | |
27910 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
27911 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
27912 | libs_found=1 | |
27913 | ||
27914 | else | |
27915 | echo "$as_me: failed program was:" >&5 | |
27916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27917 | ||
27918 | ||
27919 | ||
27920 | fi | |
ac1cb8d3 VS |
27921 | rm -f conftest.err conftest.$ac_objext \ |
27922 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27923 | |
27924 | LIBS="$save_LIBS" | |
27925 | CFLAGS=$save_CFLAGS | |
27926 | fi | |
27927 | done | |
27928 | fi | |
27929 | done | |
27930 | ||
27931 | if test "$libs_found" = "0"; then | |
27932 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
27933 | echo "${ECHO_T}can't find the right libraries" >&6 | |
27934 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
27935 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
27936 | { (exit 1); exit 1; }; } | |
27937 | fi | |
27938 | ||
27939 | save_CFLAGS=$CFLAGS | |
27940 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27941 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
27942 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
27943 | cat >conftest.$ac_ext <<_ACEOF | |
27944 | /* confdefs.h. */ | |
27945 | _ACEOF | |
27946 | cat confdefs.h >>conftest.$ac_ext | |
27947 | cat >>conftest.$ac_ext <<_ACEOF | |
27948 | /* end confdefs.h. */ | |
27949 | ||
27950 | #include <Xm/Xm.h> | |
27951 | ||
27952 | int | |
27953 | main () | |
27954 | { | |
27955 | ||
27956 | #if XmVersion < 2000 | |
27957 | #error "Not Motif 2" | |
27958 | #endif | |
27959 | ||
27960 | ; | |
27961 | return 0; | |
27962 | } | |
27963 | _ACEOF | |
27964 | rm -f conftest.$ac_objext | |
27965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27966 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27967 | ac_status=$? |
ac1cb8d3 VS |
27968 | grep -v '^ *+' conftest.er1 >conftest.err |
27969 | rm -f conftest.er1 | |
27970 | cat conftest.err >&5 | |
a848cd7e SC |
27971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27972 | (exit $ac_status); } && | |
9dd0f6c2 | 27973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27975 | (eval $ac_try) 2>&5 | |
27976 | ac_status=$? | |
27977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27978 | (exit $ac_status); }; } && | |
27979 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27981 | (eval $ac_try) 2>&5 | |
27982 | ac_status=$? | |
27983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27984 | (exit $ac_status); }; }; then | |
27985 | ||
27986 | cat >>confdefs.h <<\_ACEOF | |
27987 | #define __WXMOTIF20__ 1 | |
27988 | _ACEOF | |
27989 | ||
27990 | echo "$as_me:$LINENO: result: found" >&5 | |
27991 | echo "${ECHO_T}found" >&6 | |
27992 | ||
27993 | else | |
27994 | echo "$as_me: failed program was:" >&5 | |
27995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27996 | ||
27997 | ||
27998 | cat >>confdefs.h <<\_ACEOF | |
27999 | #define __WXMOTIF20__ 0 | |
28000 | _ACEOF | |
28001 | ||
28002 | echo "$as_me:$LINENO: result: not found" >&5 | |
28003 | echo "${ECHO_T}not found" >&6 | |
28004 | ||
28005 | fi | |
ac1cb8d3 | 28006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28007 | CFLAGS=$save_CFLAGS |
28008 | ||
28009 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
28010 | TOOLKIT=MOTIF |
28011 | GUIDIST=MOTIF_DIST | |
28012 | fi | |
28013 | ||
74b84332 | 28014 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
28015 | if test "$wxUSE_LIBXPM" = "sys"; then |
28016 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
28017 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
28018 | ||
28019 | ac_find_libraries= | |
28020 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28021 | do | |
28022 | for ac_extension in a so sl dylib; do | |
28023 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
28024 | ac_find_libraries=$ac_dir | |
28025 | break 2 | |
28026 | fi | |
28027 | done | |
28028 | done | |
28029 | ||
28030 | if test "$ac_find_libraries" != "" ; then | |
28031 | ||
28032 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
28033 | result=$? | |
28034 | if test $result = 0; then | |
28035 | ac_path_to_link="" | |
28036 | else | |
28037 | ac_path_to_link=" -L$ac_find_libraries" | |
28038 | fi | |
28039 | ||
28040 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
28041 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
28042 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
28043 | ||
28044 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
28045 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
28046 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
28047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28048 | else | |
28049 | ||
28050 | save_CFLAGS=$CFLAGS | |
28051 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28052 | ||
28053 | cat >conftest.$ac_ext <<_ACEOF | |
28054 | /* confdefs.h. */ | |
28055 | _ACEOF | |
28056 | cat confdefs.h >>conftest.$ac_ext | |
28057 | cat >>conftest.$ac_ext <<_ACEOF | |
28058 | /* end confdefs.h. */ | |
28059 | ||
28060 | #include <X11/xpm.h> | |
28061 | ||
28062 | int | |
28063 | main () | |
28064 | { | |
28065 | ||
28066 | int version; | |
28067 | version = XpmLibraryVersion(); | |
28068 | ||
28069 | ; | |
28070 | return 0; | |
28071 | } | |
28072 | _ACEOF | |
28073 | rm -f conftest.$ac_objext | |
28074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28075 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28076 | ac_status=$? |
ac1cb8d3 VS |
28077 | grep -v '^ *+' conftest.er1 >conftest.err |
28078 | rm -f conftest.er1 | |
28079 | cat conftest.err >&5 | |
a848cd7e SC |
28080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28081 | (exit $ac_status); } && | |
9dd0f6c2 | 28082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28084 | (eval $ac_try) 2>&5 | |
28085 | ac_status=$? | |
28086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28087 | (exit $ac_status); }; } && | |
28088 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28090 | (eval $ac_try) 2>&5 | |
28091 | ac_status=$? | |
28092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28093 | (exit $ac_status); }; }; then | |
28094 | wx_cv_x11_xpm_h=yes | |
28095 | else | |
28096 | echo "$as_me: failed program was:" >&5 | |
28097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28098 | ||
28099 | wx_cv_x11_xpm_h=no | |
28100 | ||
28101 | fi | |
ac1cb8d3 | 28102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28103 | |
28104 | CFLAGS=$save_CFLAGS | |
28105 | ||
28106 | ||
28107 | fi | |
28108 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
28109 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
28110 | ||
28111 | if test $wx_cv_x11_xpm_h = "yes"; then | |
28112 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
28113 | cat >>confdefs.h <<\_ACEOF | |
28114 | #define wxHAVE_LIB_XPM 1 | |
28115 | _ACEOF | |
28116 | ||
28117 | else | |
28118 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
28119 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
28120 | fi | |
28121 | fi | |
28122 | ||
28123 | fi | |
28124 | ||
28125 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
28126 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
28127 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
28128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28129 | else | |
28130 | ac_check_lib_save_LIBS=$LIBS | |
28131 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
28132 | cat >conftest.$ac_ext <<_ACEOF | |
28133 | /* confdefs.h. */ | |
28134 | _ACEOF | |
28135 | cat confdefs.h >>conftest.$ac_ext | |
28136 | cat >>conftest.$ac_ext <<_ACEOF | |
28137 | /* end confdefs.h. */ | |
28138 | ||
28139 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28140 | #ifdef __cplusplus | |
28141 | extern "C" | |
28142 | #endif | |
28143 | /* We use char because int might match the return type of a gcc2 | |
28144 | builtin and then its argument prototype would still apply. */ | |
28145 | char XShapeQueryExtension (); | |
28146 | int | |
28147 | main () | |
28148 | { | |
28149 | XShapeQueryExtension (); | |
28150 | ; | |
28151 | return 0; | |
28152 | } | |
28153 | _ACEOF | |
28154 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28156 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28157 | ac_status=$? |
ac1cb8d3 VS |
28158 | grep -v '^ *+' conftest.er1 >conftest.err |
28159 | rm -f conftest.er1 | |
28160 | cat conftest.err >&5 | |
a848cd7e SC |
28161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28162 | (exit $ac_status); } && | |
9dd0f6c2 | 28163 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28165 | (eval $ac_try) 2>&5 | |
28166 | ac_status=$? | |
28167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28168 | (exit $ac_status); }; } && | |
28169 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28171 | (eval $ac_try) 2>&5 | |
28172 | ac_status=$? | |
28173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28174 | (exit $ac_status); }; }; then | |
28175 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
28176 | else | |
28177 | echo "$as_me: failed program was:" >&5 | |
28178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28179 | ||
28180 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
28181 | fi | |
ac1cb8d3 VS |
28182 | rm -f conftest.err conftest.$ac_objext \ |
28183 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28184 | LIBS=$ac_check_lib_save_LIBS |
28185 | fi | |
28186 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
28187 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
28188 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
28189 | ||
28190 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
28191 | wxHAVE_XEXT_LIB=1 | |
28192 | ||
28193 | fi | |
28194 | ||
28195 | ||
28196 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
28197 | save_CFLAGS="$CFLAGS" | |
28198 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28199 | ||
28200 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
28201 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
28202 | cat >conftest.$ac_ext <<_ACEOF | |
28203 | /* confdefs.h. */ | |
28204 | _ACEOF | |
28205 | cat confdefs.h >>conftest.$ac_ext | |
28206 | cat >>conftest.$ac_ext <<_ACEOF | |
28207 | /* end confdefs.h. */ | |
28208 | ||
28209 | #include <X11/Xlib.h> | |
28210 | #include <X11/extensions/shape.h> | |
28211 | ||
28212 | int | |
28213 | main () | |
28214 | { | |
28215 | ||
28216 | int dummy1, dummy2; | |
28217 | XShapeQueryExtension((Display*)NULL, | |
28218 | (int*)NULL, (int*)NULL); | |
28219 | ||
28220 | ; | |
28221 | return 0; | |
28222 | } | |
28223 | _ACEOF | |
28224 | rm -f conftest.$ac_objext | |
28225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28226 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28227 | ac_status=$? |
ac1cb8d3 VS |
28228 | grep -v '^ *+' conftest.er1 >conftest.err |
28229 | rm -f conftest.er1 | |
28230 | cat conftest.err >&5 | |
a848cd7e SC |
28231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28232 | (exit $ac_status); } && | |
9dd0f6c2 | 28233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28235 | (eval $ac_try) 2>&5 | |
28236 | ac_status=$? | |
28237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28238 | (exit $ac_status); }; } && | |
28239 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28241 | (eval $ac_try) 2>&5 | |
28242 | ac_status=$? | |
28243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28244 | (exit $ac_status); }; }; then | |
28245 | ||
28246 | cat >>confdefs.h <<\_ACEOF | |
28247 | #define HAVE_XSHAPE 1 | |
28248 | _ACEOF | |
28249 | ||
28250 | echo "$as_me:$LINENO: result: found" >&5 | |
28251 | echo "${ECHO_T}found" >&6 | |
28252 | ||
28253 | else | |
28254 | echo "$as_me: failed program was:" >&5 | |
28255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28256 | ||
28257 | ||
28258 | echo "$as_me:$LINENO: result: not found" >&5 | |
28259 | echo "${ECHO_T}not found" >&6 | |
28260 | ||
28261 | fi | |
ac1cb8d3 | 28262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28263 | CFLAGS="$save_CFLAGS" |
28264 | ||
28265 | fi | |
28266 | fi | |
28267 | ||
28268 | if test "$wxUSE_MAC" = 1; then | |
28269 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
28270 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
28271 | if test "$GCC" = yes; then | |
28272 | echo "$as_me:$LINENO: result: gcc" >&5 | |
28273 | echo "${ECHO_T}gcc" >&6 | |
28274 | CPPFLAGS_PASCAL="-fpascal-strings" | |
28275 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
28276 | echo "$as_me:$LINENO: result: xlc" >&5 | |
28277 | echo "${ECHO_T}xlc" >&6 | |
28278 | CPPFLAGS_PASCAL="-qmacpstr" | |
28279 | else | |
28280 | echo "$as_me:$LINENO: result: none" >&5 | |
28281 | echo "${ECHO_T}none" >&6 | |
28282 | fi | |
28283 | ||
1e9e8aba DE |
28284 | if test "x$wxUSE_UNIX" = "xyes"; then |
28285 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
28286 | else | |
28287 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
28288 | fi | |
a848cd7e | 28289 | |
a848cd7e SC |
28290 | TOOLKIT=MAC |
28291 | GUIDIST=MACX_DIST | |
dd21ced8 | 28292 | WXBASEPORT="_carbon" |
a848cd7e SC |
28293 | fi |
28294 | ||
28295 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
28296 | TOOLKIT=COCOA |
28297 | GUIDIST=COCOA_DIST | |
28298 | fi | |
28299 | ||
28300 | if test "$wxUSE_PM" = 1; then | |
28301 | TOOLKIT=PM | |
de59c161 RD |
28302 | GUIDIST=PM_DIST |
28303 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
28304 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
28305 | if test "${wx_cv_spbcdata+set}" = set; then | |
28306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28307 | else | |
28308 | ||
28309 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
28310 | /* confdefs.h. */ |
28311 | _ACEOF | |
28312 | cat confdefs.h >>conftest.$ac_ext | |
28313 | cat >>conftest.$ac_ext <<_ACEOF | |
28314 | /* end confdefs.h. */ | |
28315 | ||
28316 | #define INCL_PM | |
28317 | #include <os2.h> | |
28318 | ||
28319 | int | |
28320 | main () | |
28321 | { | |
28322 | ||
28323 | SPBCDATA test; | |
28324 | ||
28325 | ; | |
28326 | return 0; | |
28327 | } | |
28328 | _ACEOF | |
28329 | rm -f conftest.$ac_objext | |
28330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28331 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 28332 | ac_status=$? |
ac1cb8d3 VS |
28333 | grep -v '^ *+' conftest.er1 >conftest.err |
28334 | rm -f conftest.er1 | |
28335 | cat conftest.err >&5 | |
de59c161 RD |
28336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28337 | (exit $ac_status); } && | |
9dd0f6c2 | 28338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28340 | (eval $ac_try) 2>&5 | |
28341 | ac_status=$? | |
28342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28343 | (exit $ac_status); }; } && | |
28344 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
28345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28346 | (eval $ac_try) 2>&5 | |
28347 | ac_status=$? | |
28348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28349 | (exit $ac_status); }; }; then | |
28350 | wx_cv_spbcdata=yes | |
28351 | else | |
28352 | echo "$as_me: failed program was:" >&5 | |
28353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28354 | ||
28355 | wx_cv_spbcdata=no | |
28356 | ||
28357 | fi | |
ac1cb8d3 | 28358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
28359 | |
28360 | ||
28361 | fi | |
28362 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
28363 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
28364 | ||
28365 | if test $wx_cv_spbcdata = "yes"; then | |
28366 | cat >>confdefs.h <<\_ACEOF | |
28367 | #define HAVE_SPBCDATA 1 | |
28368 | _ACEOF | |
28369 | ||
28370 | fi | |
a848cd7e SC |
28371 | fi |
28372 | ||
28373 | if test "$TOOLKIT" = "PM" ; then | |
28374 | TOOLKIT_DIR="os2" | |
28375 | else | |
28376 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
28377 | fi | |
28378 | ||
a848cd7e | 28379 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
28380 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
28381 | WIDGET_SET=univ | |
a848cd7e SC |
28382 | fi |
28383 | ||
28384 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
28385 | DISTDIR="wx\$(TOOLKIT)" | |
28386 | else | |
28387 | USE_GUI=0 | |
28388 | ||
28389 | TOOLKIT_DIR="base" | |
28390 | ||
28391 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 28392 | TOOLKIT="MSW" |
a848cd7e SC |
28393 | fi |
28394 | ||
a848cd7e SC |
28395 | GUIDIST="BASE_DIST" |
28396 | DISTDIR="wxBase" | |
28397 | fi | |
28398 | ||
28399 | ||
28400 | ||
28401 | ||
28402 | IODBC_C_SRC="" | |
28403 | ||
28404 | ||
28405 | if test "$TOOLKIT" != "MSW" ; then | |
28406 | ||
28407 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
28408 | ||
28409 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28410 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
28411 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
28412 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28414 | fi | |
28415 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
28416 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
28417 | else | |
28418 | # Is the header compilable? | |
28419 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
28420 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
28421 | cat >conftest.$ac_ext <<_ACEOF | |
28422 | /* confdefs.h. */ | |
28423 | _ACEOF | |
28424 | cat confdefs.h >>conftest.$ac_ext | |
28425 | cat >>conftest.$ac_ext <<_ACEOF | |
28426 | /* end confdefs.h. */ | |
28427 | $ac_includes_default | |
28428 | #include <sql.h> | |
28429 | _ACEOF | |
28430 | rm -f conftest.$ac_objext | |
28431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28432 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28433 | ac_status=$? |
ac1cb8d3 VS |
28434 | grep -v '^ *+' conftest.er1 >conftest.err |
28435 | rm -f conftest.er1 | |
28436 | cat conftest.err >&5 | |
a848cd7e SC |
28437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28438 | (exit $ac_status); } && | |
9dd0f6c2 | 28439 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28441 | (eval $ac_try) 2>&5 | |
28442 | ac_status=$? | |
28443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28444 | (exit $ac_status); }; } && | |
28445 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28447 | (eval $ac_try) 2>&5 | |
28448 | ac_status=$? | |
28449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28450 | (exit $ac_status); }; }; then | |
28451 | ac_header_compiler=yes | |
28452 | else | |
28453 | echo "$as_me: failed program was:" >&5 | |
28454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28455 | ||
28456 | ac_header_compiler=no | |
28457 | fi | |
ac1cb8d3 | 28458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28459 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
28460 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28461 | ||
28462 | # Is the header present? | |
28463 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
28464 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
28465 | cat >conftest.$ac_ext <<_ACEOF | |
28466 | /* confdefs.h. */ | |
28467 | _ACEOF | |
28468 | cat confdefs.h >>conftest.$ac_ext | |
28469 | cat >>conftest.$ac_ext <<_ACEOF | |
28470 | /* end confdefs.h. */ | |
28471 | #include <sql.h> | |
28472 | _ACEOF | |
28473 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28474 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28475 | ac_status=$? | |
28476 | grep -v '^ *+' conftest.er1 >conftest.err | |
28477 | rm -f conftest.er1 | |
28478 | cat conftest.err >&5 | |
28479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28480 | (exit $ac_status); } >/dev/null; then | |
28481 | if test -s conftest.err; then | |
28482 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 28483 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
28484 | else |
28485 | ac_cpp_err= | |
28486 | fi | |
28487 | else | |
28488 | ac_cpp_err=yes | |
28489 | fi | |
28490 | if test -z "$ac_cpp_err"; then | |
28491 | ac_header_preproc=yes | |
28492 | else | |
28493 | echo "$as_me: failed program was:" >&5 | |
28494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28495 | ||
28496 | ac_header_preproc=no | |
28497 | fi | |
28498 | rm -f conftest.err conftest.$ac_ext | |
28499 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28500 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28501 | ||
28502 | # So? What about this header? | |
ac1cb8d3 VS |
28503 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
28504 | yes:no: ) | |
a848cd7e SC |
28505 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
28506 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
28507 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
28508 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
28509 | ac_header_preproc=yes | |
a848cd7e | 28510 | ;; |
ac1cb8d3 | 28511 | no:yes:* ) |
a848cd7e SC |
28512 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
28513 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
28514 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
28515 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
28516 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
28517 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
28518 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
28519 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
28520 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
28521 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
28522 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
28523 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
28524 | ( |
28525 | cat <<\_ASBOX | |
ac1cb8d3 VS |
28526 | ## ----------------------------------------- ## |
28527 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
28528 | ## ----------------------------------------- ## | |
a848cd7e SC |
28529 | _ASBOX |
28530 | ) | | |
28531 | sed "s/^/$as_me: WARNING: /" >&2 | |
28532 | ;; | |
28533 | esac | |
28534 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
28535 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
28536 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28538 | else | |
28539 | ac_cv_header_sql_h=$ac_header_preproc | |
28540 | fi | |
28541 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
28542 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
28543 | ||
28544 | fi | |
28545 | if test $ac_cv_header_sql_h = yes; then | |
28546 | found_sql_h=1 | |
28547 | fi | |
28548 | ||
28549 | ||
28550 | if test "x$found_sql_h" = "x1" ; then | |
28551 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
28552 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
28553 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
28554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28555 | else | |
28556 | ac_check_lib_save_LIBS=$LIBS | |
28557 | LIBS="-liodbc $LIBS" | |
28558 | cat >conftest.$ac_ext <<_ACEOF | |
28559 | /* confdefs.h. */ | |
28560 | _ACEOF | |
28561 | cat confdefs.h >>conftest.$ac_ext | |
28562 | cat >>conftest.$ac_ext <<_ACEOF | |
28563 | /* end confdefs.h. */ | |
28564 | ||
28565 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28566 | #ifdef __cplusplus | |
28567 | extern "C" | |
28568 | #endif | |
28569 | /* We use char because int might match the return type of a gcc2 | |
28570 | builtin and then its argument prototype would still apply. */ | |
28571 | char SQLAllocEnv (); | |
28572 | int | |
28573 | main () | |
28574 | { | |
28575 | SQLAllocEnv (); | |
28576 | ; | |
28577 | return 0; | |
28578 | } | |
28579 | _ACEOF | |
28580 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28582 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28583 | ac_status=$? |
ac1cb8d3 VS |
28584 | grep -v '^ *+' conftest.er1 >conftest.err |
28585 | rm -f conftest.er1 | |
28586 | cat conftest.err >&5 | |
a848cd7e SC |
28587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28588 | (exit $ac_status); } && | |
9dd0f6c2 | 28589 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28591 | (eval $ac_try) 2>&5 | |
28592 | ac_status=$? | |
28593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28594 | (exit $ac_status); }; } && | |
28595 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28597 | (eval $ac_try) 2>&5 | |
28598 | ac_status=$? | |
28599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28600 | (exit $ac_status); }; }; then | |
28601 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
28602 | else | |
28603 | echo "$as_me: failed program was:" >&5 | |
28604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28605 | ||
28606 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
28607 | fi | |
ac1cb8d3 VS |
28608 | rm -f conftest.err conftest.$ac_objext \ |
28609 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28610 | LIBS=$ac_check_lib_save_LIBS |
28611 | fi | |
28612 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
28613 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
28614 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
28615 | ODBC_LINK=" -liodbc" | |
28616 | else | |
28617 | ||
28618 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
28619 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
28620 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
28621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28622 | else | |
28623 | ac_check_lib_save_LIBS=$LIBS | |
28624 | LIBS="-lunixodbc $LIBS" | |
28625 | cat >conftest.$ac_ext <<_ACEOF | |
28626 | /* confdefs.h. */ | |
28627 | _ACEOF | |
28628 | cat confdefs.h >>conftest.$ac_ext | |
28629 | cat >>conftest.$ac_ext <<_ACEOF | |
28630 | /* end confdefs.h. */ | |
28631 | ||
28632 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28633 | #ifdef __cplusplus | |
28634 | extern "C" | |
28635 | #endif | |
28636 | /* We use char because int might match the return type of a gcc2 | |
28637 | builtin and then its argument prototype would still apply. */ | |
28638 | char SQLAllocEnv (); | |
28639 | int | |
28640 | main () | |
28641 | { | |
28642 | SQLAllocEnv (); | |
28643 | ; | |
28644 | return 0; | |
28645 | } | |
28646 | _ACEOF | |
28647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28649 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28650 | ac_status=$? |
ac1cb8d3 VS |
28651 | grep -v '^ *+' conftest.er1 >conftest.err |
28652 | rm -f conftest.er1 | |
28653 | cat conftest.err >&5 | |
a848cd7e SC |
28654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28655 | (exit $ac_status); } && | |
9dd0f6c2 | 28656 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28658 | (eval $ac_try) 2>&5 | |
28659 | ac_status=$? | |
28660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28661 | (exit $ac_status); }; } && | |
28662 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28664 | (eval $ac_try) 2>&5 | |
28665 | ac_status=$? | |
28666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28667 | (exit $ac_status); }; }; then | |
28668 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
28669 | else | |
28670 | echo "$as_me: failed program was:" >&5 | |
28671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28672 | ||
28673 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
28674 | fi | |
ac1cb8d3 VS |
28675 | rm -f conftest.err conftest.$ac_objext \ |
28676 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28677 | LIBS=$ac_check_lib_save_LIBS |
28678 | fi | |
28679 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
28680 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
28681 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
28682 | ODBC_LINK=" -lunixodbc" | |
28683 | else | |
28684 | ||
28685 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
28686 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
28687 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
28688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28689 | else | |
28690 | ac_check_lib_save_LIBS=$LIBS | |
28691 | LIBS="-lodbc $LIBS" | |
28692 | cat >conftest.$ac_ext <<_ACEOF | |
28693 | /* confdefs.h. */ | |
28694 | _ACEOF | |
28695 | cat confdefs.h >>conftest.$ac_ext | |
28696 | cat >>conftest.$ac_ext <<_ACEOF | |
28697 | /* end confdefs.h. */ | |
28698 | ||
28699 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28700 | #ifdef __cplusplus | |
28701 | extern "C" | |
28702 | #endif | |
28703 | /* We use char because int might match the return type of a gcc2 | |
28704 | builtin and then its argument prototype would still apply. */ | |
28705 | char SQLAllocEnv (); | |
28706 | int | |
28707 | main () | |
28708 | { | |
28709 | SQLAllocEnv (); | |
28710 | ; | |
28711 | return 0; | |
28712 | } | |
28713 | _ACEOF | |
28714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28716 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28717 | ac_status=$? |
ac1cb8d3 VS |
28718 | grep -v '^ *+' conftest.er1 >conftest.err |
28719 | rm -f conftest.er1 | |
28720 | cat conftest.err >&5 | |
a848cd7e SC |
28721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28722 | (exit $ac_status); } && | |
9dd0f6c2 | 28723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28725 | (eval $ac_try) 2>&5 | |
28726 | ac_status=$? | |
28727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28728 | (exit $ac_status); }; } && | |
28729 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28731 | (eval $ac_try) 2>&5 | |
28732 | ac_status=$? | |
28733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28734 | (exit $ac_status); }; }; then | |
28735 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
28736 | else | |
28737 | echo "$as_me: failed program was:" >&5 | |
28738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28739 | ||
28740 | ac_cv_lib_odbc_SQLAllocEnv=no | |
28741 | fi | |
ac1cb8d3 VS |
28742 | rm -f conftest.err conftest.$ac_objext \ |
28743 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28744 | LIBS=$ac_check_lib_save_LIBS |
28745 | fi | |
28746 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
28747 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
28748 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
28749 | ODBC_LINK=" -lodbc" | |
28750 | fi | |
28751 | ||
28752 | ||
28753 | fi | |
28754 | ||
28755 | ||
28756 | fi | |
28757 | ||
28758 | fi | |
28759 | if test "x$ODBC_LINK" = "x" ; then | |
28760 | if test "$wxUSE_ODBC" = "sys" ; then | |
28761 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
28762 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
28763 | { (exit 1); exit 1; }; } | |
28764 | else | |
28765 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
28766 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
28767 | wxUSE_ODBC=builtin | |
28768 | fi | |
28769 | else | |
28770 | wxUSE_ODBC=sys | |
28771 | fi | |
28772 | fi | |
a848cd7e | 28773 | |
2da0c077 RD |
28774 | if test "$wxUSE_ODBC" = "builtin" ; then |
28775 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
28776 | #define wxUSE_BUILTIN_IODBC 1 |
28777 | _ACEOF | |
28778 | ||
a848cd7e SC |
28779 | fi |
28780 | fi | |
28781 | ||
2da0c077 RD |
28782 | if test "$wxUSE_ODBC" != "no" ; then |
28783 | cat >>confdefs.h <<\_ACEOF | |
28784 | #define wxUSE_ODBC 1 | |
28785 | _ACEOF | |
28786 | ||
28787 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
28788 | ||
28789 | WXODBCFLAG="-D_IODBC_" | |
28790 | fi | |
a848cd7e | 28791 | |
01cb68df | 28792 | |
a848cd7e | 28793 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 28794 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
28795 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
28796 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
28797 | ||
28798 | ac_find_libraries= | |
28799 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28800 | do | |
28801 | for ac_extension in a so sl dylib; do | |
28802 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
28803 | ac_find_libraries=$ac_dir | |
28804 | break 2 | |
28805 | fi | |
28806 | done | |
28807 | done | |
28808 | ||
28809 | if test "$ac_find_libraries" != "" ; then | |
28810 | ||
28811 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28812 | result=$? | |
28813 | if test $result = 0; then | |
28814 | ac_path_to_link="" | |
28815 | else | |
28816 | ac_path_to_link=" -L$ac_find_libraries" | |
28817 | fi | |
28818 | ||
28819 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28820 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
28821 | fi | |
28822 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
28823 | echo "$as_me:$LINENO: result: yes" >&5 | |
28824 | echo "${ECHO_T}yes" >&6 | |
28825 | ||
28826 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
28827 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
28828 | ||
28829 | ac_find_libraries= | |
28830 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28831 | do | |
28832 | for ac_extension in a so sl dylib; do | |
28833 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
28834 | ac_find_libraries=$ac_dir | |
28835 | break 2 | |
28836 | fi | |
28837 | done | |
28838 | done | |
28839 | ||
28840 | if test "$ac_find_libraries" != "" ; then | |
28841 | echo "$as_me:$LINENO: result: yes" >&5 | |
28842 | echo "${ECHO_T}yes" >&6 | |
28843 | ||
28844 | for ac_header in X11/extensions/xf86vmode.h | |
28845 | do | |
28846 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28847 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28849 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28851 | else | |
28852 | cat >conftest.$ac_ext <<_ACEOF | |
28853 | /* confdefs.h. */ | |
28854 | _ACEOF | |
28855 | cat confdefs.h >>conftest.$ac_ext | |
28856 | cat >>conftest.$ac_ext <<_ACEOF | |
28857 | /* end confdefs.h. */ | |
28858 | ||
28859 | #if HAVE_X11_XLIB_H | |
28860 | #include <X11/Xlib.h> | |
28861 | #endif | |
28862 | ||
28863 | ||
28864 | #include <$ac_header> | |
28865 | _ACEOF | |
28866 | rm -f conftest.$ac_objext | |
28867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28868 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28869 | ac_status=$? |
ac1cb8d3 VS |
28870 | grep -v '^ *+' conftest.er1 >conftest.err |
28871 | rm -f conftest.er1 | |
28872 | cat conftest.err >&5 | |
a848cd7e SC |
28873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28874 | (exit $ac_status); } && | |
9dd0f6c2 | 28875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28877 | (eval $ac_try) 2>&5 | |
28878 | ac_status=$? | |
28879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28880 | (exit $ac_status); }; } && | |
28881 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28883 | (eval $ac_try) 2>&5 | |
28884 | ac_status=$? | |
28885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28886 | (exit $ac_status); }; }; then | |
28887 | eval "$as_ac_Header=yes" | |
28888 | else | |
28889 | echo "$as_me: failed program was:" >&5 | |
28890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28891 | ||
28892 | eval "$as_ac_Header=no" | |
28893 | fi | |
ac1cb8d3 | 28894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28895 | fi |
28896 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28897 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
28899 | cat >>confdefs.h <<_ACEOF | |
28900 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28901 | _ACEOF | |
28902 | ||
28903 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
28904 | ||
28905 | fi | |
28906 | ||
28907 | done | |
28908 | ||
28909 | else | |
28910 | echo "$as_me:$LINENO: result: no" >&5 | |
28911 | echo "${ECHO_T}no" >&6 | |
28912 | fi | |
28913 | ||
28914 | else | |
28915 | echo "$as_me:$LINENO: result: no" >&5 | |
28916 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
28917 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
28918 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
28919 | wxUSE_DISPLAY="no" |
28920 | fi | |
01cb68df RG |
28921 | elif test "$wxUSE_MSW" = 1; then |
28922 | ||
28923 | ||
28924 | for ac_header in multimon.h ddraw.h | |
28925 | do | |
28926 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 28927 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
28928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
28929 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 28931 | else |
5294a27e | 28932 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
28933 | /* confdefs.h. */ |
28934 | _ACEOF | |
28935 | cat confdefs.h >>conftest.$ac_ext | |
28936 | cat >>conftest.$ac_ext <<_ACEOF | |
28937 | /* end confdefs.h. */ | |
5294a27e VZ |
28938 | #include <windows.h> |
28939 | ||
01cb68df RG |
28940 | #include <$ac_header> |
28941 | _ACEOF | |
28942 | rm -f conftest.$ac_objext | |
28943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28944 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 28945 | ac_status=$? |
ac1cb8d3 VS |
28946 | grep -v '^ *+' conftest.er1 >conftest.err |
28947 | rm -f conftest.er1 | |
28948 | cat conftest.err >&5 | |
01cb68df RG |
28949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28950 | (exit $ac_status); } && | |
9dd0f6c2 | 28951 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28953 | (eval $ac_try) 2>&5 | |
28954 | ac_status=$? | |
28955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28956 | (exit $ac_status); }; } && | |
28957 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
28958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28959 | (eval $ac_try) 2>&5 | |
28960 | ac_status=$? | |
28961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28962 | (exit $ac_status); }; }; then | |
5294a27e | 28963 | eval "$as_ac_Header=yes" |
01cb68df RG |
28964 | else |
28965 | echo "$as_me: failed program was:" >&5 | |
28966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28967 | ||
5294a27e | 28968 | eval "$as_ac_Header=no" |
01cb68df | 28969 | fi |
ac1cb8d3 | 28970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
28971 | fi |
28972 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28973 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
28974 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28975 | cat >>confdefs.h <<_ACEOF | |
28976 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28977 | _ACEOF | |
28978 | ||
28979 | else | |
28980 | ||
5294a27e VZ |
28981 | wxUSE_DISPLAY="no" |
28982 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 28983 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
28984 | |
28985 | fi | |
28986 | ||
28987 | done | |
28988 | ||
a848cd7e SC |
28989 | fi |
28990 | fi | |
28991 | ||
28992 | ||
28993 | USE_OPENGL=0 | |
28994 | if test "$wxUSE_OPENGL" = "yes"; then | |
28995 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
28996 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
28997 | elif test "$wxUSE_MSW" = 1; then | |
28998 | OPENGL_LIBS="-lopengl32 -lglu32" | |
28999 | else | |
29000 | ||
29001 | ||
29002 | ac_find_includes= | |
29003 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
29004 | do | |
29005 | if test -f "$ac_dir/GL/gl.h"; then | |
29006 | ac_find_includes=$ac_dir | |
29007 | break | |
29008 | fi | |
29009 | done | |
29010 | ||
29011 | if test "$ac_find_includes" != "" ; then | |
29012 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
29013 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
29014 | ||
29015 | if test "x$ac_find_includes" = "x/usr/include"; then | |
29016 | ac_path_to_include="" | |
29017 | else | |
29018 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
29019 | result=$? | |
29020 | if test $result = 0; then | |
29021 | ac_path_to_include="" | |
29022 | else | |
29023 | ac_path_to_include=" -I$ac_find_includes" | |
29024 | fi | |
29025 | fi | |
29026 | ||
29027 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
29028 | fi | |
29029 | ||
29030 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29031 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
29032 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
29033 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29035 | fi | |
29036 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
29037 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
29038 | else | |
29039 | # Is the header compilable? | |
29040 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
29041 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
29042 | cat >conftest.$ac_ext <<_ACEOF | |
29043 | /* confdefs.h. */ | |
29044 | _ACEOF | |
29045 | cat confdefs.h >>conftest.$ac_ext | |
29046 | cat >>conftest.$ac_ext <<_ACEOF | |
29047 | /* end confdefs.h. */ | |
29048 | $ac_includes_default | |
29049 | #include <GL/gl.h> | |
29050 | _ACEOF | |
29051 | rm -f conftest.$ac_objext | |
29052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29053 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29054 | ac_status=$? |
ac1cb8d3 VS |
29055 | grep -v '^ *+' conftest.er1 >conftest.err |
29056 | rm -f conftest.er1 | |
29057 | cat conftest.err >&5 | |
a848cd7e SC |
29058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29059 | (exit $ac_status); } && | |
9dd0f6c2 | 29060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29062 | (eval $ac_try) 2>&5 | |
29063 | ac_status=$? | |
29064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29065 | (exit $ac_status); }; } && | |
29066 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29068 | (eval $ac_try) 2>&5 | |
29069 | ac_status=$? | |
29070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29071 | (exit $ac_status); }; }; then | |
29072 | ac_header_compiler=yes | |
29073 | else | |
29074 | echo "$as_me: failed program was:" >&5 | |
29075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29076 | ||
29077 | ac_header_compiler=no | |
29078 | fi | |
ac1cb8d3 | 29079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29080 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
29081 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29082 | ||
29083 | # Is the header present? | |
29084 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
29085 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
29086 | cat >conftest.$ac_ext <<_ACEOF | |
29087 | /* confdefs.h. */ | |
29088 | _ACEOF | |
29089 | cat confdefs.h >>conftest.$ac_ext | |
29090 | cat >>conftest.$ac_ext <<_ACEOF | |
29091 | /* end confdefs.h. */ | |
29092 | #include <GL/gl.h> | |
29093 | _ACEOF | |
29094 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29095 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29096 | ac_status=$? | |
29097 | grep -v '^ *+' conftest.er1 >conftest.err | |
29098 | rm -f conftest.er1 | |
29099 | cat conftest.err >&5 | |
29100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29101 | (exit $ac_status); } >/dev/null; then | |
29102 | if test -s conftest.err; then | |
29103 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 29104 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
29105 | else |
29106 | ac_cpp_err= | |
29107 | fi | |
29108 | else | |
29109 | ac_cpp_err=yes | |
29110 | fi | |
29111 | if test -z "$ac_cpp_err"; then | |
29112 | ac_header_preproc=yes | |
29113 | else | |
29114 | echo "$as_me: failed program was:" >&5 | |
29115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29116 | ||
29117 | ac_header_preproc=no | |
29118 | fi | |
29119 | rm -f conftest.err conftest.$ac_ext | |
29120 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29121 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29122 | ||
29123 | # So? What about this header? | |
ac1cb8d3 VS |
29124 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
29125 | yes:no: ) | |
a848cd7e SC |
29126 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
29127 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
29128 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
29129 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
29130 | ac_header_preproc=yes | |
a848cd7e | 29131 | ;; |
ac1cb8d3 | 29132 | no:yes:* ) |
a848cd7e SC |
29133 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
29134 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
29135 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
29136 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
29137 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
29138 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
29139 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
29140 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
29141 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
29142 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
29143 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
29144 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
29145 | ( |
29146 | cat <<\_ASBOX | |
ac1cb8d3 VS |
29147 | ## ----------------------------------------- ## |
29148 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29149 | ## ----------------------------------------- ## | |
a848cd7e SC |
29150 | _ASBOX |
29151 | ) | | |
29152 | sed "s/^/$as_me: WARNING: /" >&2 | |
29153 | ;; | |
29154 | esac | |
29155 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
29156 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
29157 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29159 | else | |
29160 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
29161 | fi | |
29162 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
29163 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
29164 | ||
29165 | fi | |
29166 | if test $ac_cv_header_GL_gl_h = yes; then | |
29167 | ||
29168 | found_gl=0 | |
29169 | ||
29170 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
29171 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
29172 | ||
29173 | ac_find_libraries= | |
29174 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29175 | do | |
29176 | for ac_extension in a so sl dylib; do | |
29177 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
29178 | ac_find_libraries=$ac_dir | |
29179 | break 2 | |
29180 | fi | |
29181 | done | |
29182 | done | |
29183 | ||
29184 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
29185 | echo "$as_me:$LINENO: result: yes" >&5 |
29186 | echo "${ECHO_T}yes" >&6 | |
29187 | ||
a848cd7e SC |
29188 | |
29189 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29190 | result=$? | |
29191 | if test $result = 0; then | |
29192 | ac_path_to_link="" | |
29193 | else | |
29194 | ac_path_to_link=" -L$ac_find_libraries" | |
29195 | fi | |
29196 | ||
29197 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
29198 | LDFLAGS_GL="$ac_path_to_link" | |
29199 | fi | |
29200 | ||
69120ee4 VZ |
29201 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
29202 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e SC |
29203 | |
29204 | ac_find_libraries= | |
29205 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29206 | do | |
29207 | for ac_extension in a so sl dylib; do | |
29208 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
29209 | ac_find_libraries=$ac_dir | |
29210 | break 2 | |
29211 | fi | |
29212 | done | |
29213 | done | |
29214 | ||
29215 | if test "$ac_find_libraries" != "" ; then | |
29216 | ||
29217 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29218 | result=$? | |
29219 | if test $result = 0; then | |
29220 | ac_path_to_link="" | |
29221 | else | |
29222 | ac_path_to_link=" -L$ac_find_libraries" | |
29223 | fi | |
29224 | ||
29225 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
29226 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
29227 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
29228 | fi | |
29229 | ||
29230 | found_gl=1 | |
29231 | OPENGL_LIBS="-lGL -lGLU" | |
29232 | echo "$as_me:$LINENO: result: yes" >&5 | |
29233 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
29234 | else |
29235 | echo "$as_me:$LINENO: result: no" >&5 | |
29236 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 29237 | fi |
69120ee4 VZ |
29238 | else |
29239 | echo "$as_me:$LINENO: result: no" >&5 | |
29240 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
29241 | fi |
29242 | ||
29243 | if test "$found_gl" != 1; then | |
a848cd7e SC |
29244 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
29245 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
29246 | ||
29247 | ac_find_libraries= | |
29248 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29249 | do | |
29250 | for ac_extension in a so sl dylib; do | |
29251 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
29252 | ac_find_libraries=$ac_dir | |
29253 | break 2 | |
29254 | fi | |
29255 | done | |
29256 | done | |
29257 | ||
29258 | if test "$ac_find_libraries" != "" ; then | |
29259 | ||
29260 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29261 | result=$? | |
29262 | if test $result = 0; then | |
29263 | ac_path_to_link="" | |
29264 | else | |
29265 | ac_path_to_link=" -L$ac_find_libraries" | |
29266 | fi | |
29267 | ||
29268 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
29269 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
29270 | echo "$as_me:$LINENO: result: yes" >&5 | |
29271 | echo "${ECHO_T}yes" >&6 | |
29272 | else | |
29273 | echo "$as_me:$LINENO: result: no" >&5 | |
29274 | echo "${ECHO_T}no" >&6 | |
29275 | fi | |
29276 | fi | |
29277 | ||
29278 | fi | |
29279 | ||
29280 | ||
29281 | ||
29282 | if test "x$OPENGL_LIBS" = "x"; then | |
29283 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
29284 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
29285 | { (exit 1); exit 1; }; } | |
29286 | fi | |
29287 | fi | |
29288 | ||
29289 | if test "$wxUSE_OPENGL" = "yes"; then | |
29290 | USE_OPENGL=1 | |
29291 | cat >>confdefs.h <<\_ACEOF | |
29292 | #define wxUSE_OPENGL 1 | |
29293 | _ACEOF | |
29294 | ||
29295 | cat >>confdefs.h <<\_ACEOF | |
29296 | #define wxUSE_GLCANVAS 1 | |
29297 | _ACEOF | |
29298 | ||
29299 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
29300 | fi | |
29301 | fi | |
29302 | ||
a848cd7e SC |
29303 | |
29304 | if test -n "$TOOLKIT" ; then | |
29305 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
29306 | fi | |
29307 | ||
a848cd7e SC |
29308 | |
29309 | ||
29310 | if test "$wxUSE_SHARED" = "yes"; then | |
29311 | case "${host}" in | |
29312 | *-pc-msdosdjgpp ) | |
29313 | wxUSE_SHARED=no | |
29314 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
29315 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
29316 | ;; | |
29317 | esac | |
29318 | fi | |
29319 | ||
a848cd7e | 29320 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
29321 | |
29322 | ||
29323 | found_versioning=no | |
29324 | ||
29325 | ||
29326 | if test $found_versioning = no ; then | |
29327 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
29328 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
29329 | if test "${wx_cv_version_script+set}" = set; then | |
29330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29331 | else | |
29332 | ||
29333 | echo "VER_1 { *; };" >conftest.sym | |
29334 | echo "int main() { return 0; }" >conftest.cpp | |
29335 | ||
29336 | if { ac_try=' | |
29337 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29338 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
29339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29340 | (eval $ac_try) 2>&5 | |
29341 | ac_status=$? | |
29342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29343 | (exit $ac_status); }; } ; then | |
29344 | if test -s conftest.stderr ; then | |
29345 | wx_cv_version_script=no | |
29346 | else | |
29347 | wx_cv_version_script=yes | |
29348 | fi | |
29349 | else | |
29350 | wx_cv_version_script=no | |
29351 | fi | |
e5d4b470 MW |
29352 | |
29353 | if test $wx_cv_version_script = yes | |
29354 | then | |
29355 | echo "struct B { virtual ~B() { } }; \ | |
29356 | struct D : public B { }; \ | |
29357 | void F() { D d; }" > conftest.cpp | |
29358 | ||
29359 | if { ac_try=' | |
29360 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29361 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
29362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29363 | (eval $ac_try) 2>&5 | |
29364 | ac_status=$? | |
29365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29366 | (exit $ac_status); }; } && | |
29367 | { ac_try=' | |
29368 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29369 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
29370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29371 | (eval $ac_try) 2>&5 | |
29372 | ac_status=$? | |
29373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29374 | (exit $ac_status); }; } | |
29375 | then | |
29376 | if { ac_try=' | |
29377 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29378 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
29379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29380 | (eval $ac_try) 2>&5 | |
29381 | ac_status=$? | |
29382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29383 | (exit $ac_status); }; } | |
29384 | then | |
29385 | wx_cv_version_script=yes | |
29386 | else | |
29387 | wx_cv_version_script=no | |
29388 | fi | |
29389 | fi | |
29390 | fi | |
29391 | ||
a848cd7e | 29392 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 29393 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
29394 | |
29395 | fi | |
29396 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
29397 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
29398 | if test $wx_cv_version_script = yes ; then | |
29399 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
29400 | fi | |
29401 | fi | |
29402 | ||
29403 | ||
29404 | case "${host}" in | |
29405 | *-*-linux* | *-*-gnu* ) | |
29406 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 29407 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
29408 | ;; |
29409 | ||
29410 | *-*-solaris2* ) | |
29411 | if test "$GCC" = yes ; then | |
29412 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
29413 | ||
29414 | saveLdflags="$LDFLAGS" | |
29415 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
29416 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
29417 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
29418 | cat >conftest.$ac_ext <<_ACEOF | |
29419 | /* confdefs.h. */ | |
29420 | _ACEOF | |
29421 | cat confdefs.h >>conftest.$ac_ext | |
29422 | cat >>conftest.$ac_ext <<_ACEOF | |
29423 | /* end confdefs.h. */ | |
29424 | ||
29425 | int | |
29426 | main () | |
29427 | { | |
29428 | ||
29429 | ; | |
29430 | return 0; | |
29431 | } | |
29432 | _ACEOF | |
29433 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29435 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29436 | ac_status=$? |
ac1cb8d3 VS |
29437 | grep -v '^ *+' conftest.er1 >conftest.err |
29438 | rm -f conftest.er1 | |
29439 | cat conftest.err >&5 | |
a848cd7e SC |
29440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29441 | (exit $ac_status); } && | |
9dd0f6c2 | 29442 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29444 | (eval $ac_try) 2>&5 | |
29445 | ac_status=$? | |
29446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29447 | (exit $ac_status); }; } && | |
29448 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29450 | (eval $ac_try) 2>&5 | |
29451 | ac_status=$? | |
29452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29453 | (exit $ac_status); }; }; then | |
29454 | ||
29455 | echo "$as_me:$LINENO: result: yes" >&5 | |
29456 | echo "${ECHO_T}yes" >&6 | |
29457 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 29458 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
29459 | |
29460 | else | |
29461 | echo "$as_me: failed program was:" >&5 | |
29462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29463 | ||
29464 | ||
29465 | echo "$as_me:$LINENO: result: no" >&5 | |
29466 | echo "${ECHO_T}no" >&6 | |
29467 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
29468 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
29469 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
29470 | cat >conftest.$ac_ext <<_ACEOF | |
29471 | /* confdefs.h. */ | |
29472 | _ACEOF | |
29473 | cat confdefs.h >>conftest.$ac_ext | |
29474 | cat >>conftest.$ac_ext <<_ACEOF | |
29475 | /* end confdefs.h. */ | |
29476 | ||
29477 | int | |
29478 | main () | |
29479 | { | |
29480 | ||
29481 | ; | |
29482 | return 0; | |
29483 | } | |
29484 | _ACEOF | |
29485 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29487 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29488 | ac_status=$? |
ac1cb8d3 VS |
29489 | grep -v '^ *+' conftest.er1 >conftest.err |
29490 | rm -f conftest.er1 | |
29491 | cat conftest.err >&5 | |
a848cd7e SC |
29492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29493 | (exit $ac_status); } && | |
9dd0f6c2 | 29494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29496 | (eval $ac_try) 2>&5 | |
29497 | ac_status=$? | |
29498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29499 | (exit $ac_status); }; } && | |
29500 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29502 | (eval $ac_try) 2>&5 | |
29503 | ac_status=$? | |
29504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29505 | (exit $ac_status); }; }; then | |
29506 | ||
ffa0583f | 29507 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 29508 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
29509 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
29510 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
29511 | ||
a848cd7e SC |
29512 | else |
29513 | echo "$as_me: failed program was:" >&5 | |
29514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29515 | ||
29516 | ||
29517 | echo "$as_me:$LINENO: result: no" >&5 | |
29518 | echo "${ECHO_T}no" >&6 | |
29519 | ||
29520 | fi | |
ac1cb8d3 VS |
29521 | rm -f conftest.err conftest.$ac_objext \ |
29522 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29523 | |
29524 | fi | |
ac1cb8d3 VS |
29525 | rm -f conftest.err conftest.$ac_objext \ |
29526 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29527 | LDFLAGS="$saveLdflags" |
29528 | else | |
a848cd7e | 29529 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 29530 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
29531 | fi |
29532 | ;; | |
29533 | ||
29534 | powerpc-*-darwin* ) | |
29535 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
29536 | cat <<EOF >change-install-names | |
29537 | #!/bin/sh | |
29538 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
29539 | inst_cmd="install_name_tool " | |
29540 | for i in \${libnames} ; do | |
29541 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
29542 | done | |
29543 | \${inst_cmd} \${3} | |
29544 | EOF | |
29545 | chmod +x change-install-names | |
29546 | ;; | |
29547 | ||
29548 | *-*-cygwin* | *-*-mingw32* ) | |
29549 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
29550 | ;; | |
29551 | ||
81f90336 MW |
29552 | *-*-hpux* ) |
29553 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
29554 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
29555 | ;; | |
29556 | ||
a848cd7e | 29557 | esac |
ceec2216 | 29558 | |
ffa0583f RL |
29559 | if test $wxUSE_RPATH = "no"; then |
29560 | SAMPLES_RPATH_FLAG='' | |
29561 | SAMPLES_RPATH_POSTLINK='' | |
29562 | WXCONFIG_RPATH='' | |
29563 | fi | |
29564 | ||
29565 | SHARED=1 | |
29566 | ||
29567 | else | |
29568 | ||
ceec2216 RL |
29569 | config_linkage_component="-static" |
29570 | SHARED=0 | |
ffa0583f | 29571 | |
ceec2216 | 29572 | fi |
a848cd7e | 29573 | |
a848cd7e | 29574 | |
ceec2216 RL |
29575 | UNICODE=0 |
29576 | lib_unicode_suffix= | |
29577 | WX_CHARTYPE="ansi" | |
29578 | if test "$wxUSE_UNICODE" = "yes"; then | |
29579 | lib_unicode_suffix=u | |
29580 | WX_CHARTYPE="unicode" | |
29581 | UNICODE=1 | |
a848cd7e SC |
29582 | fi |
29583 | ||
ceec2216 RL |
29584 | lib_debug_suffix= |
29585 | WX_DEBUGTYPE="release" | |
29586 | DEBUG_FLAG=0 | |
29587 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
29588 | lib_debug_suffix=d | |
29589 | WX_DEBUGTYPE="debug" | |
29590 | DEBUG_FLAG=1 | |
29591 | fi | |
a848cd7e | 29592 | |
ceec2216 RL |
29593 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
29594 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 29595 | |
ceec2216 RL |
29596 | DEBUG_INFO=0 |
29597 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
29598 | DEBUG_INFO=1 | |
29599 | fi | |
a848cd7e | 29600 | |
ceec2216 | 29601 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 29602 | |
ceec2216 | 29603 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 29604 | |
ceec2216 | 29605 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 29606 | |
ceec2216 RL |
29607 | if test "$cross_compiling" = "yes"; then |
29608 | HOST_SUFFIX="-$host_alias" | |
29609 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
29610 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
29611 | fi |
29612 | ||
dd21ced8 | 29613 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
29614 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
29615 | ||
29616 | ||
29617 | ||
1d1af5ea DE |
29618 | if test "$wxUSE_COCOA" = 1; then |
29619 | ||
29620 | ||
29621 | ac_ext=c | |
29622 | ac_cpp='$CPP $CPPFLAGS' | |
29623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29626 | ||
29627 | ac_ext=m | |
29628 | ||
29629 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
29630 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
29631 | cat >conftest.$ac_ext <<_ACEOF | |
29632 | /* confdefs.h. */ | |
29633 | _ACEOF | |
29634 | cat confdefs.h >>conftest.$ac_ext | |
29635 | cat >>conftest.$ac_ext <<_ACEOF | |
29636 | /* end confdefs.h. */ | |
29637 | #include <AppKit/NSEvent.h> | |
29638 | #include <CoreFoundation/CoreFoundation.h> | |
29639 | ||
29640 | int | |
29641 | main () | |
29642 | { | |
29643 | ||
29644 | ; | |
29645 | return 0; | |
29646 | } | |
29647 | _ACEOF | |
29648 | rm -f conftest.$ac_objext | |
29649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29650 | (eval $ac_compile) 2>conftest.er1 | |
29651 | ac_status=$? | |
29652 | grep -v '^ *+' conftest.er1 >conftest.err | |
29653 | rm -f conftest.er1 | |
29654 | cat conftest.err >&5 | |
29655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29656 | (exit $ac_status); } && | |
9dd0f6c2 | 29657 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
29658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29659 | (eval $ac_try) 2>&5 | |
29660 | ac_status=$? | |
29661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29662 | (exit $ac_status); }; } && | |
29663 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
29669 | echo "$as_me:$LINENO: result: no" >&5 | |
29670 | echo "${ECHO_T}no" >&6 | |
29671 | else | |
29672 | echo "$as_me: failed program was:" >&5 | |
29673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29674 | ||
29675 | echo "$as_me:$LINENO: result: yes" >&5 | |
29676 | echo "${ECHO_T}yes" >&6 | |
29677 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
29678 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
29679 | cat >conftest.$ac_ext <<_ACEOF | |
29680 | /* confdefs.h. */ | |
29681 | _ACEOF | |
29682 | cat confdefs.h >>conftest.$ac_ext | |
29683 | cat >>conftest.$ac_ext <<_ACEOF | |
29684 | /* end confdefs.h. */ | |
29685 | #define __Point__ 1 | |
29686 | #include <AppKit/NSEvent.h> | |
29687 | #include <CoreFoundation/CoreFoundation.h> | |
29688 | ||
29689 | int | |
29690 | main () | |
29691 | { | |
29692 | ||
29693 | ; | |
29694 | return 0; | |
29695 | } | |
29696 | _ACEOF | |
29697 | rm -f conftest.$ac_objext | |
29698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29699 | (eval $ac_compile) 2>conftest.er1 | |
29700 | ac_status=$? | |
29701 | grep -v '^ *+' conftest.er1 >conftest.err | |
29702 | rm -f conftest.er1 | |
29703 | cat conftest.err >&5 | |
29704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29705 | (exit $ac_status); } && | |
9dd0f6c2 | 29706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
29707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29708 | (eval $ac_try) 2>&5 | |
29709 | ac_status=$? | |
29710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29711 | (exit $ac_status); }; } && | |
29712 | { ac_try='test -s conftest.$ac_objext' | |
29713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29714 | (eval $ac_try) 2>&5 | |
29715 | ac_status=$? | |
29716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29717 | (exit $ac_status); }; }; then | |
29718 | echo "$as_me:$LINENO: result: yes" >&5 | |
29719 | echo "${ECHO_T}yes" >&6 | |
29720 | cat >>confdefs.h <<\_ACEOF | |
29721 | #define __Point__ 1 | |
29722 | _ACEOF | |
29723 | ||
29724 | ||
29725 | else | |
29726 | echo "$as_me: failed program was:" >&5 | |
29727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29728 | ||
29729 | { { echo "$as_me:$LINENO: error: no | |
29730 | See \`config.log' for more details." >&5 | |
29731 | echo "$as_me: error: no | |
29732 | See \`config.log' for more details." >&2;} | |
29733 | { (exit 1); exit 1; }; } | |
29734 | ||
29735 | fi | |
29736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29737 | ||
29738 | fi | |
29739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29740 | ac_ext=c | |
29741 | ac_cpp='$CPP $CPPFLAGS' | |
29742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29745 | ||
29746 | fi | |
29747 | ||
a848cd7e | 29748 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
29749 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
29750 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 29751 | |
a848cd7e | 29752 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
29753 | |
29754 | # Extract the first word of "Rez", so it can be a program name with args. | |
29755 | set dummy Rez; ac_word=$2 | |
29756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29758 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
29759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29760 | else | |
29761 | if test -n "$RESCOMP"; then | |
29762 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
29763 | else | |
29764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29765 | for as_dir in $PATH | |
29766 | do | |
29767 | IFS=$as_save_IFS | |
29768 | test -z "$as_dir" && as_dir=. | |
29769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29771 | ac_cv_prog_RESCOMP="Rez" | |
29772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29773 | break 2 | |
29774 | fi | |
29775 | done | |
29776 | done | |
29777 | ||
29778 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
29779 | fi | |
29780 | fi | |
29781 | RESCOMP=$ac_cv_prog_RESCOMP | |
29782 | if test -n "$RESCOMP"; then | |
29783 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
29784 | echo "${ECHO_T}$RESCOMP" >&6 | |
29785 | else | |
29786 | echo "$as_me:$LINENO: result: no" >&5 | |
29787 | echo "${ECHO_T}no" >&6 | |
29788 | fi | |
29789 | ||
29790 | # Extract the first word of "DeRez", so it can be a program name with args. | |
29791 | set dummy DeRez; ac_word=$2 | |
29792 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29794 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
29795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29796 | else | |
29797 | if test -n "$DEREZ"; then | |
29798 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
29799 | else | |
29800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29801 | for as_dir in $PATH | |
29802 | do | |
29803 | IFS=$as_save_IFS | |
29804 | test -z "$as_dir" && as_dir=. | |
29805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29806 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29807 | ac_cv_prog_DEREZ="DeRez" | |
29808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29809 | break 2 | |
29810 | fi | |
29811 | done | |
29812 | done | |
29813 | ||
29814 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
29815 | fi | |
29816 | fi | |
29817 | DEREZ=$ac_cv_prog_DEREZ | |
29818 | if test -n "$DEREZ"; then | |
29819 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
29820 | echo "${ECHO_T}$DEREZ" >&6 | |
29821 | else | |
29822 | echo "$as_me:$LINENO: result: no" >&5 | |
29823 | echo "${ECHO_T}no" >&6 | |
29824 | fi | |
29825 | ||
29826 | # Extract the first word of "SetFile", so it can be a program name with args. | |
29827 | set dummy SetFile; ac_word=$2 | |
29828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29830 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
29831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29832 | else | |
29833 | if test -n "$SETFILE"; then | |
29834 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
29835 | else | |
29836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29837 | for as_dir in $PATH | |
29838 | do | |
29839 | IFS=$as_save_IFS | |
29840 | test -z "$as_dir" && as_dir=. | |
29841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29842 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29843 | ac_cv_prog_SETFILE="SetFile" | |
29844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29845 | break 2 | |
29846 | fi | |
29847 | done | |
29848 | done | |
29849 | ||
29850 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
29851 | fi | |
29852 | fi | |
29853 | SETFILE=$ac_cv_prog_SETFILE | |
29854 | if test -n "$SETFILE"; then | |
29855 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
29856 | echo "${ECHO_T}$SETFILE" >&6 | |
29857 | else | |
29858 | echo "$as_me:$LINENO: result: no" >&5 | |
29859 | echo "${ECHO_T}no" >&6 | |
29860 | fi | |
29861 | ||
29862 | ||
29863 | MACSETFILE="\$(SETFILE)" | |
29864 | ||
29865 | if test "$wxUSE_MAC" = 1; then | |
1a79f136 | 29866 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e | 29867 | |
1a79f136 | 29868 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e SC |
29869 | else |
29870 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
29871 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
29872 | fi | |
29873 | else | |
ffa0583f RL |
29874 | MACSETFILE="@true" |
29875 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
29876 | |
29877 | if test "$wxUSE_PM" = 1; then | |
29878 | MACRESCOMP="emxbind -ep" | |
29879 | else | |
ffa0583f | 29880 | MACRESCOMP="@true" |
a848cd7e SC |
29881 | fi |
29882 | fi | |
29883 | ||
29884 | ||
29885 | ||
29886 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
29887 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
29888 | if test "${ac_cv_type_mode_t+set}" = set; then | |
29889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29890 | else | |
29891 | cat >conftest.$ac_ext <<_ACEOF | |
29892 | /* confdefs.h. */ | |
29893 | _ACEOF | |
29894 | cat confdefs.h >>conftest.$ac_ext | |
29895 | cat >>conftest.$ac_ext <<_ACEOF | |
29896 | /* end confdefs.h. */ | |
29897 | $ac_includes_default | |
29898 | int | |
29899 | main () | |
29900 | { | |
29901 | if ((mode_t *) 0) | |
29902 | return 0; | |
29903 | if (sizeof (mode_t)) | |
29904 | return 0; | |
29905 | ; | |
29906 | return 0; | |
29907 | } | |
29908 | _ACEOF | |
29909 | rm -f conftest.$ac_objext | |
29910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29911 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29912 | ac_status=$? |
ac1cb8d3 VS |
29913 | grep -v '^ *+' conftest.er1 >conftest.err |
29914 | rm -f conftest.er1 | |
29915 | cat conftest.err >&5 | |
a848cd7e SC |
29916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29917 | (exit $ac_status); } && | |
9dd0f6c2 | 29918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29920 | (eval $ac_try) 2>&5 | |
29921 | ac_status=$? | |
29922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29923 | (exit $ac_status); }; } && | |
29924 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29926 | (eval $ac_try) 2>&5 | |
29927 | ac_status=$? | |
29928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29929 | (exit $ac_status); }; }; then | |
29930 | ac_cv_type_mode_t=yes | |
29931 | else | |
29932 | echo "$as_me: failed program was:" >&5 | |
29933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29934 | ||
29935 | ac_cv_type_mode_t=no | |
29936 | fi | |
ac1cb8d3 | 29937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29938 | fi |
29939 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
29940 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
29941 | if test $ac_cv_type_mode_t = yes; then | |
29942 | : | |
29943 | else | |
29944 | ||
29945 | cat >>confdefs.h <<_ACEOF | |
29946 | #define mode_t int | |
29947 | _ACEOF | |
29948 | ||
29949 | fi | |
29950 | ||
29951 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
29952 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
29953 | if test "${ac_cv_type_off_t+set}" = set; then | |
29954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29955 | else | |
29956 | cat >conftest.$ac_ext <<_ACEOF | |
29957 | /* confdefs.h. */ | |
29958 | _ACEOF | |
29959 | cat confdefs.h >>conftest.$ac_ext | |
29960 | cat >>conftest.$ac_ext <<_ACEOF | |
29961 | /* end confdefs.h. */ | |
29962 | $ac_includes_default | |
29963 | int | |
29964 | main () | |
29965 | { | |
29966 | if ((off_t *) 0) | |
29967 | return 0; | |
29968 | if (sizeof (off_t)) | |
29969 | return 0; | |
29970 | ; | |
29971 | return 0; | |
29972 | } | |
29973 | _ACEOF | |
29974 | rm -f conftest.$ac_objext | |
29975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29976 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29977 | ac_status=$? |
ac1cb8d3 VS |
29978 | grep -v '^ *+' conftest.er1 >conftest.err |
29979 | rm -f conftest.er1 | |
29980 | cat conftest.err >&5 | |
a848cd7e SC |
29981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29982 | (exit $ac_status); } && | |
9dd0f6c2 | 29983 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29985 | (eval $ac_try) 2>&5 | |
29986 | ac_status=$? | |
29987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29988 | (exit $ac_status); }; } && | |
29989 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29991 | (eval $ac_try) 2>&5 | |
29992 | ac_status=$? | |
29993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29994 | (exit $ac_status); }; }; then | |
29995 | ac_cv_type_off_t=yes | |
29996 | else | |
29997 | echo "$as_me: failed program was:" >&5 | |
29998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29999 | ||
30000 | ac_cv_type_off_t=no | |
30001 | fi | |
ac1cb8d3 | 30002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30003 | fi |
30004 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
30005 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
30006 | if test $ac_cv_type_off_t = yes; then | |
30007 | : | |
30008 | else | |
30009 | ||
30010 | cat >>confdefs.h <<_ACEOF | |
30011 | #define off_t long | |
30012 | _ACEOF | |
30013 | ||
30014 | fi | |
30015 | ||
30016 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
30017 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
30018 | if test "${ac_cv_type_pid_t+set}" = set; then | |
30019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30020 | else | |
30021 | cat >conftest.$ac_ext <<_ACEOF | |
30022 | /* confdefs.h. */ | |
30023 | _ACEOF | |
30024 | cat confdefs.h >>conftest.$ac_ext | |
30025 | cat >>conftest.$ac_ext <<_ACEOF | |
30026 | /* end confdefs.h. */ | |
30027 | $ac_includes_default | |
30028 | int | |
30029 | main () | |
30030 | { | |
30031 | if ((pid_t *) 0) | |
30032 | return 0; | |
30033 | if (sizeof (pid_t)) | |
30034 | return 0; | |
30035 | ; | |
30036 | return 0; | |
30037 | } | |
30038 | _ACEOF | |
30039 | rm -f conftest.$ac_objext | |
30040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30041 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30042 | ac_status=$? |
ac1cb8d3 VS |
30043 | grep -v '^ *+' conftest.er1 >conftest.err |
30044 | rm -f conftest.er1 | |
30045 | cat conftest.err >&5 | |
a848cd7e SC |
30046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30047 | (exit $ac_status); } && | |
9dd0f6c2 | 30048 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30050 | (eval $ac_try) 2>&5 | |
30051 | ac_status=$? | |
30052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30053 | (exit $ac_status); }; } && | |
30054 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30056 | (eval $ac_try) 2>&5 | |
30057 | ac_status=$? | |
30058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30059 | (exit $ac_status); }; }; then | |
30060 | ac_cv_type_pid_t=yes | |
30061 | else | |
30062 | echo "$as_me: failed program was:" >&5 | |
30063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30064 | ||
30065 | ac_cv_type_pid_t=no | |
30066 | fi | |
ac1cb8d3 | 30067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30068 | fi |
30069 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
30070 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
30071 | if test $ac_cv_type_pid_t = yes; then | |
30072 | : | |
30073 | else | |
30074 | ||
30075 | cat >>confdefs.h <<_ACEOF | |
30076 | #define pid_t int | |
30077 | _ACEOF | |
30078 | ||
30079 | fi | |
30080 | ||
30081 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
30082 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
30083 | if test "${ac_cv_type_size_t+set}" = set; then | |
30084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30085 | else | |
30086 | cat >conftest.$ac_ext <<_ACEOF | |
30087 | /* confdefs.h. */ | |
30088 | _ACEOF | |
30089 | cat confdefs.h >>conftest.$ac_ext | |
30090 | cat >>conftest.$ac_ext <<_ACEOF | |
30091 | /* end confdefs.h. */ | |
30092 | $ac_includes_default | |
30093 | int | |
30094 | main () | |
30095 | { | |
30096 | if ((size_t *) 0) | |
30097 | return 0; | |
30098 | if (sizeof (size_t)) | |
30099 | return 0; | |
30100 | ; | |
30101 | return 0; | |
30102 | } | |
30103 | _ACEOF | |
30104 | rm -f conftest.$ac_objext | |
30105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30106 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30107 | ac_status=$? |
ac1cb8d3 VS |
30108 | grep -v '^ *+' conftest.er1 >conftest.err |
30109 | rm -f conftest.er1 | |
30110 | cat conftest.err >&5 | |
a848cd7e SC |
30111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30112 | (exit $ac_status); } && | |
9dd0f6c2 | 30113 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30115 | (eval $ac_try) 2>&5 | |
30116 | ac_status=$? | |
30117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30118 | (exit $ac_status); }; } && | |
30119 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30121 | (eval $ac_try) 2>&5 | |
30122 | ac_status=$? | |
30123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30124 | (exit $ac_status); }; }; then | |
30125 | ac_cv_type_size_t=yes | |
30126 | else | |
30127 | echo "$as_me: failed program was:" >&5 | |
30128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30129 | ||
30130 | ac_cv_type_size_t=no | |
30131 | fi | |
ac1cb8d3 | 30132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30133 | fi |
30134 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
30135 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
30136 | if test $ac_cv_type_size_t = yes; then | |
30137 | : | |
30138 | else | |
30139 | ||
30140 | cat >>confdefs.h <<_ACEOF | |
30141 | #define size_t unsigned | |
30142 | _ACEOF | |
30143 | ||
30144 | fi | |
30145 | ||
30146 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
30147 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
30148 | if test "${ac_cv_type_uid_t+set}" = set; then | |
30149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30150 | else | |
30151 | cat >conftest.$ac_ext <<_ACEOF | |
30152 | /* confdefs.h. */ | |
30153 | _ACEOF | |
30154 | cat confdefs.h >>conftest.$ac_ext | |
30155 | cat >>conftest.$ac_ext <<_ACEOF | |
30156 | /* end confdefs.h. */ | |
30157 | #include <sys/types.h> | |
30158 | ||
30159 | _ACEOF | |
30160 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
30161 | $EGREP "uid_t" >/dev/null 2>&1; then | |
30162 | ac_cv_type_uid_t=yes | |
30163 | else | |
30164 | ac_cv_type_uid_t=no | |
30165 | fi | |
30166 | rm -f conftest* | |
30167 | ||
30168 | fi | |
30169 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
30170 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
30171 | if test $ac_cv_type_uid_t = no; then | |
30172 | ||
30173 | cat >>confdefs.h <<\_ACEOF | |
30174 | #define uid_t int | |
30175 | _ACEOF | |
30176 | ||
30177 | ||
30178 | cat >>confdefs.h <<\_ACEOF | |
30179 | #define gid_t int | |
30180 | _ACEOF | |
30181 | ||
30182 | fi | |
30183 | ||
30184 | ||
d51253e8 RL |
30185 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
30186 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
30187 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
30188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30189 | else | |
30190 | cat >conftest.$ac_ext <<_ACEOF | |
30191 | /* confdefs.h. */ | |
30192 | _ACEOF | |
30193 | cat confdefs.h >>conftest.$ac_ext | |
30194 | cat >>conftest.$ac_ext <<_ACEOF | |
30195 | /* end confdefs.h. */ | |
30196 | $ac_includes_default | |
30197 | int | |
30198 | main () | |
30199 | { | |
30200 | if ((ssize_t *) 0) | |
30201 | return 0; | |
30202 | if (sizeof (ssize_t)) | |
30203 | return 0; | |
30204 | ; | |
30205 | return 0; | |
30206 | } | |
30207 | _ACEOF | |
30208 | rm -f conftest.$ac_objext | |
30209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30210 | (eval $ac_compile) 2>conftest.er1 | |
30211 | ac_status=$? | |
30212 | grep -v '^ *+' conftest.er1 >conftest.err | |
30213 | rm -f conftest.er1 | |
30214 | cat conftest.err >&5 | |
30215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30216 | (exit $ac_status); } && | |
9dd0f6c2 | 30217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
30218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30219 | (eval $ac_try) 2>&5 | |
30220 | ac_status=$? | |
30221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30222 | (exit $ac_status); }; } && | |
30223 | { ac_try='test -s conftest.$ac_objext' | |
30224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30225 | (eval $ac_try) 2>&5 | |
30226 | ac_status=$? | |
30227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30228 | (exit $ac_status); }; }; then | |
30229 | ac_cv_type_ssize_t=yes | |
30230 | else | |
30231 | echo "$as_me: failed program was:" >&5 | |
30232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30233 | ||
30234 | ac_cv_type_ssize_t=no | |
30235 | fi | |
30236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30237 | fi | |
30238 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
30239 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
30240 | if test $ac_cv_type_ssize_t = yes; then | |
30241 | ||
30242 | cat >>confdefs.h <<_ACEOF | |
30243 | #define HAVE_SSIZE_T 1 | |
30244 | _ACEOF | |
30245 | ||
30246 | ||
30247 | fi | |
30248 | ||
30249 | ||
a848cd7e SC |
30250 | |
30251 | ||
30252 | ac_ext=cc | |
30253 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30254 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30255 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30256 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30257 | ||
30258 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
30259 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
30260 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
30261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30262 | else | |
30263 | ||
30264 | cat >conftest.$ac_ext <<_ACEOF | |
30265 | /* confdefs.h. */ | |
30266 | _ACEOF | |
30267 | cat confdefs.h >>conftest.$ac_ext | |
30268 | cat >>conftest.$ac_ext <<_ACEOF | |
30269 | /* end confdefs.h. */ | |
30270 | #include <stddef.h> | |
30271 | int | |
30272 | main () | |
30273 | { | |
30274 | ||
30275 | return 0; } | |
30276 | ||
30277 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
30278 | ||
30279 | int bar() { | |
30280 | ||
30281 | ; | |
30282 | return 0; | |
30283 | } | |
30284 | _ACEOF | |
30285 | rm -f conftest.$ac_objext | |
30286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30287 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30288 | ac_status=$? |
ac1cb8d3 VS |
30289 | grep -v '^ *+' conftest.er1 >conftest.err |
30290 | rm -f conftest.er1 | |
30291 | cat conftest.err >&5 | |
a848cd7e SC |
30292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30293 | (exit $ac_status); } && | |
9dd0f6c2 | 30294 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30296 | (eval $ac_try) 2>&5 | |
30297 | ac_status=$? | |
30298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30299 | (exit $ac_status); }; } && | |
30300 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30302 | (eval $ac_try) 2>&5 | |
30303 | ac_status=$? | |
30304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30305 | (exit $ac_status); }; }; then | |
30306 | wx_cv_size_t_is_uint=no | |
30307 | else | |
30308 | echo "$as_me: failed program was:" >&5 | |
30309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30310 | ||
30311 | wx_cv_size_t_is_uint=yes | |
30312 | ||
30313 | fi | |
ac1cb8d3 | 30314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30315 | |
30316 | ||
30317 | fi | |
30318 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
30319 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
30320 | ||
30321 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
30322 | cat >>confdefs.h <<\_ACEOF | |
30323 | #define wxSIZE_T_IS_UINT 1 | |
30324 | _ACEOF | |
30325 | ||
30326 | else | |
30327 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
30328 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
30329 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
30330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30331 | else | |
30332 | cat >conftest.$ac_ext <<_ACEOF | |
30333 | /* confdefs.h. */ | |
30334 | _ACEOF | |
30335 | cat confdefs.h >>conftest.$ac_ext | |
30336 | cat >>conftest.$ac_ext <<_ACEOF | |
30337 | /* end confdefs.h. */ | |
30338 | #include <stddef.h> | |
30339 | int | |
30340 | main () | |
30341 | { | |
30342 | ||
30343 | return 0; } | |
30344 | ||
30345 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
30346 | ||
30347 | int bar() { | |
30348 | ||
30349 | ; | |
30350 | return 0; | |
30351 | } | |
30352 | _ACEOF | |
30353 | rm -f conftest.$ac_objext | |
30354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30355 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30356 | ac_status=$? |
ac1cb8d3 VS |
30357 | grep -v '^ *+' conftest.er1 >conftest.err |
30358 | rm -f conftest.er1 | |
30359 | cat conftest.err >&5 | |
a848cd7e SC |
30360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30361 | (exit $ac_status); } && | |
9dd0f6c2 | 30362 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30364 | (eval $ac_try) 2>&5 | |
30365 | ac_status=$? | |
30366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30367 | (exit $ac_status); }; } && | |
30368 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30370 | (eval $ac_try) 2>&5 | |
30371 | ac_status=$? | |
30372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30373 | (exit $ac_status); }; }; then | |
30374 | wx_cv_size_t_is_ulong=no | |
30375 | else | |
30376 | echo "$as_me: failed program was:" >&5 | |
30377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30378 | ||
30379 | wx_cv_size_t_is_ulong=yes | |
30380 | ||
30381 | fi | |
ac1cb8d3 | 30382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30383 | |
30384 | fi | |
30385 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
30386 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
30387 | ||
30388 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
30389 | cat >>confdefs.h <<\_ACEOF | |
30390 | #define wxSIZE_T_IS_ULONG 1 | |
30391 | _ACEOF | |
30392 | ||
30393 | fi | |
30394 | fi | |
30395 | ||
30396 | ac_ext=c | |
30397 | ac_cpp='$CPP $CPPFLAGS' | |
30398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30401 | ||
30402 | ||
30403 | ||
30404 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
30405 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
30406 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
30407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30408 | else | |
30409 | ||
30410 | cat >conftest.$ac_ext <<_ACEOF | |
30411 | /* confdefs.h. */ | |
30412 | _ACEOF | |
30413 | cat confdefs.h >>conftest.$ac_ext | |
30414 | cat >>conftest.$ac_ext <<_ACEOF | |
30415 | /* end confdefs.h. */ | |
30416 | #include <pwd.h> | |
30417 | int | |
30418 | main () | |
30419 | { | |
30420 | ||
30421 | char *p; | |
30422 | struct passwd *pw; | |
30423 | p = pw->pw_gecos; | |
30424 | ||
30425 | ; | |
30426 | return 0; | |
30427 | } | |
30428 | _ACEOF | |
30429 | rm -f conftest.$ac_objext | |
30430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30431 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30432 | ac_status=$? |
ac1cb8d3 VS |
30433 | grep -v '^ *+' conftest.er1 >conftest.err |
30434 | rm -f conftest.er1 | |
30435 | cat conftest.err >&5 | |
a848cd7e SC |
30436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30437 | (exit $ac_status); } && | |
9dd0f6c2 | 30438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30440 | (eval $ac_try) 2>&5 | |
30441 | ac_status=$? | |
30442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30443 | (exit $ac_status); }; } && | |
30444 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30446 | (eval $ac_try) 2>&5 | |
30447 | ac_status=$? | |
30448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30449 | (exit $ac_status); }; }; then | |
30450 | ||
30451 | wx_cv_struct_pw_gecos=yes | |
30452 | ||
30453 | else | |
30454 | echo "$as_me: failed program was:" >&5 | |
30455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30456 | ||
30457 | ||
30458 | wx_cv_struct_pw_gecos=no | |
30459 | ||
30460 | ||
30461 | fi | |
ac1cb8d3 | 30462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30463 | |
30464 | ||
30465 | fi | |
30466 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
30467 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
30468 | ||
30469 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
30470 | cat >>confdefs.h <<\_ACEOF | |
30471 | #define HAVE_PW_GECOS 1 | |
30472 | _ACEOF | |
30473 | ||
30474 | fi | |
30475 | ||
30476 | ||
47a7e797 | 30477 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
30478 | cat >>confdefs.h <<\_ACEOF |
30479 | #define wxUSE_WCHAR_T 1 | |
30480 | _ACEOF | |
30481 | ||
30482 | ||
30483 | WCSLEN_FOUND=0 | |
30484 | WCHAR_LINK= | |
30485 | ||
30486 | for ac_func in wcslen | |
30487 | do | |
30488 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30489 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30490 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30491 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30493 | else | |
30494 | cat >conftest.$ac_ext <<_ACEOF | |
30495 | /* confdefs.h. */ | |
30496 | _ACEOF | |
30497 | cat confdefs.h >>conftest.$ac_ext | |
30498 | cat >>conftest.$ac_ext <<_ACEOF | |
30499 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30500 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30501 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30502 | #define $ac_func innocuous_$ac_func | |
30503 | ||
a848cd7e SC |
30504 | /* System header to define __stub macros and hopefully few prototypes, |
30505 | which can conflict with char $ac_func (); below. | |
30506 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30507 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30508 | |
a848cd7e SC |
30509 | #ifdef __STDC__ |
30510 | # include <limits.h> | |
30511 | #else | |
30512 | # include <assert.h> | |
30513 | #endif | |
ac1cb8d3 VS |
30514 | |
30515 | #undef $ac_func | |
30516 | ||
a848cd7e SC |
30517 | /* Override any gcc2 internal prototype to avoid an error. */ |
30518 | #ifdef __cplusplus | |
30519 | extern "C" | |
30520 | { | |
30521 | #endif | |
30522 | /* We use char because int might match the return type of a gcc2 | |
30523 | builtin and then its argument prototype would still apply. */ | |
30524 | char $ac_func (); | |
30525 | /* The GNU C library defines this for functions which it implements | |
30526 | to always fail with ENOSYS. Some functions are actually named | |
30527 | something starting with __ and the normal name is an alias. */ | |
30528 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30529 | choke me | |
30530 | #else | |
30531 | char (*f) () = $ac_func; | |
30532 | #endif | |
30533 | #ifdef __cplusplus | |
30534 | } | |
30535 | #endif | |
30536 | ||
30537 | int | |
30538 | main () | |
30539 | { | |
30540 | return f != $ac_func; | |
30541 | ; | |
30542 | return 0; | |
30543 | } | |
30544 | _ACEOF | |
30545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30547 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30548 | ac_status=$? |
ac1cb8d3 VS |
30549 | grep -v '^ *+' conftest.er1 >conftest.err |
30550 | rm -f conftest.er1 | |
30551 | cat conftest.err >&5 | |
a848cd7e SC |
30552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30553 | (exit $ac_status); } && | |
9dd0f6c2 | 30554 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30556 | (eval $ac_try) 2>&5 | |
30557 | ac_status=$? | |
30558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30559 | (exit $ac_status); }; } && | |
30560 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30562 | (eval $ac_try) 2>&5 | |
30563 | ac_status=$? | |
30564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30565 | (exit $ac_status); }; }; then | |
30566 | eval "$as_ac_var=yes" | |
30567 | else | |
30568 | echo "$as_me: failed program was:" >&5 | |
30569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30570 | ||
30571 | eval "$as_ac_var=no" | |
30572 | fi | |
ac1cb8d3 VS |
30573 | rm -f conftest.err conftest.$ac_objext \ |
30574 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30575 | fi |
30576 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30577 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30578 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30579 | cat >>confdefs.h <<_ACEOF | |
30580 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30581 | _ACEOF | |
30582 | WCSLEN_FOUND=1 | |
30583 | fi | |
30584 | done | |
30585 | ||
30586 | ||
30587 | if test "$WCSLEN_FOUND" = 0; then | |
30588 | if test "$TOOLKIT" = "MSW"; then | |
30589 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
30590 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
30591 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
30592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30593 | else | |
30594 | ac_check_lib_save_LIBS=$LIBS | |
30595 | LIBS="-lmsvcrt $LIBS" | |
30596 | cat >conftest.$ac_ext <<_ACEOF | |
30597 | /* confdefs.h. */ | |
30598 | _ACEOF | |
30599 | cat confdefs.h >>conftest.$ac_ext | |
30600 | cat >>conftest.$ac_ext <<_ACEOF | |
30601 | /* end confdefs.h. */ | |
30602 | ||
30603 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30604 | #ifdef __cplusplus | |
30605 | extern "C" | |
30606 | #endif | |
30607 | /* We use char because int might match the return type of a gcc2 | |
30608 | builtin and then its argument prototype would still apply. */ | |
30609 | char wcslen (); | |
30610 | int | |
30611 | main () | |
30612 | { | |
30613 | wcslen (); | |
30614 | ; | |
30615 | return 0; | |
30616 | } | |
30617 | _ACEOF | |
30618 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30620 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30621 | ac_status=$? |
ac1cb8d3 VS |
30622 | grep -v '^ *+' conftest.er1 >conftest.err |
30623 | rm -f conftest.er1 | |
30624 | cat conftest.err >&5 | |
a848cd7e SC |
30625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30626 | (exit $ac_status); } && | |
9dd0f6c2 | 30627 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30629 | (eval $ac_try) 2>&5 | |
30630 | ac_status=$? | |
30631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30632 | (exit $ac_status); }; } && | |
30633 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30635 | (eval $ac_try) 2>&5 | |
30636 | ac_status=$? | |
30637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30638 | (exit $ac_status); }; }; then | |
30639 | ac_cv_lib_msvcrt_wcslen=yes | |
30640 | else | |
30641 | echo "$as_me: failed program was:" >&5 | |
30642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30643 | ||
30644 | ac_cv_lib_msvcrt_wcslen=no | |
30645 | fi | |
ac1cb8d3 VS |
30646 | rm -f conftest.err conftest.$ac_objext \ |
30647 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30648 | LIBS=$ac_check_lib_save_LIBS |
30649 | fi | |
30650 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
30651 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
30652 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
30653 | WCHAR_OK=1 | |
30654 | fi | |
30655 | ||
30656 | else | |
30657 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
30658 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
30659 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
30660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30661 | else | |
30662 | ac_check_lib_save_LIBS=$LIBS | |
30663 | LIBS="-lw $LIBS" | |
30664 | cat >conftest.$ac_ext <<_ACEOF | |
30665 | /* confdefs.h. */ | |
30666 | _ACEOF | |
30667 | cat confdefs.h >>conftest.$ac_ext | |
30668 | cat >>conftest.$ac_ext <<_ACEOF | |
30669 | /* end confdefs.h. */ | |
30670 | ||
30671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30672 | #ifdef __cplusplus | |
30673 | extern "C" | |
30674 | #endif | |
30675 | /* We use char because int might match the return type of a gcc2 | |
30676 | builtin and then its argument prototype would still apply. */ | |
30677 | char wcslen (); | |
30678 | int | |
30679 | main () | |
30680 | { | |
30681 | wcslen (); | |
30682 | ; | |
30683 | return 0; | |
30684 | } | |
30685 | _ACEOF | |
30686 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30688 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30689 | ac_status=$? |
ac1cb8d3 VS |
30690 | grep -v '^ *+' conftest.er1 >conftest.err |
30691 | rm -f conftest.er1 | |
30692 | cat conftest.err >&5 | |
a848cd7e SC |
30693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30694 | (exit $ac_status); } && | |
9dd0f6c2 | 30695 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30697 | (eval $ac_try) 2>&5 | |
30698 | ac_status=$? | |
30699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30700 | (exit $ac_status); }; } && | |
30701 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30703 | (eval $ac_try) 2>&5 | |
30704 | ac_status=$? | |
30705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30706 | (exit $ac_status); }; }; then | |
30707 | ac_cv_lib_w_wcslen=yes | |
30708 | else | |
30709 | echo "$as_me: failed program was:" >&5 | |
30710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30711 | ||
30712 | ac_cv_lib_w_wcslen=no | |
30713 | fi | |
ac1cb8d3 VS |
30714 | rm -f conftest.err conftest.$ac_objext \ |
30715 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30716 | LIBS=$ac_check_lib_save_LIBS |
30717 | fi | |
30718 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
30719 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
30720 | if test $ac_cv_lib_w_wcslen = yes; then | |
30721 | ||
30722 | WCHAR_LINK=" -lw" | |
30723 | WCSLEN_FOUND=1 | |
30724 | ||
30725 | fi | |
30726 | ||
30727 | fi | |
30728 | fi | |
30729 | ||
30730 | if test "$WCSLEN_FOUND" = 1; then | |
30731 | cat >>confdefs.h <<\_ACEOF | |
30732 | #define HAVE_WCSLEN 1 | |
30733 | _ACEOF | |
30734 | ||
30735 | fi | |
30736 | ||
81f90336 | 30737 | if test "$USE_HPUX" = 1; then |
473276a9 VS |
30738 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
30739 | fi | |
30740 | ||
a848cd7e SC |
30741 | |
30742 | for ac_func in wcsrtombs | |
30743 | do | |
30744 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30745 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30746 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30747 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30749 | else | |
30750 | cat >conftest.$ac_ext <<_ACEOF | |
30751 | /* confdefs.h. */ | |
30752 | _ACEOF | |
30753 | cat confdefs.h >>conftest.$ac_ext | |
30754 | cat >>conftest.$ac_ext <<_ACEOF | |
30755 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30756 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30757 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30758 | #define $ac_func innocuous_$ac_func | |
30759 | ||
a848cd7e SC |
30760 | /* System header to define __stub macros and hopefully few prototypes, |
30761 | which can conflict with char $ac_func (); below. | |
30762 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30763 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30764 | |
a848cd7e SC |
30765 | #ifdef __STDC__ |
30766 | # include <limits.h> | |
30767 | #else | |
30768 | # include <assert.h> | |
30769 | #endif | |
ac1cb8d3 VS |
30770 | |
30771 | #undef $ac_func | |
30772 | ||
a848cd7e SC |
30773 | /* Override any gcc2 internal prototype to avoid an error. */ |
30774 | #ifdef __cplusplus | |
30775 | extern "C" | |
30776 | { | |
30777 | #endif | |
30778 | /* We use char because int might match the return type of a gcc2 | |
30779 | builtin and then its argument prototype would still apply. */ | |
30780 | char $ac_func (); | |
30781 | /* The GNU C library defines this for functions which it implements | |
30782 | to always fail with ENOSYS. Some functions are actually named | |
30783 | something starting with __ and the normal name is an alias. */ | |
30784 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30785 | choke me | |
30786 | #else | |
30787 | char (*f) () = $ac_func; | |
30788 | #endif | |
30789 | #ifdef __cplusplus | |
30790 | } | |
30791 | #endif | |
30792 | ||
30793 | int | |
30794 | main () | |
30795 | { | |
30796 | return f != $ac_func; | |
30797 | ; | |
30798 | return 0; | |
30799 | } | |
30800 | _ACEOF | |
30801 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30803 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30804 | ac_status=$? |
ac1cb8d3 VS |
30805 | grep -v '^ *+' conftest.er1 >conftest.err |
30806 | rm -f conftest.er1 | |
30807 | cat conftest.err >&5 | |
a848cd7e SC |
30808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30809 | (exit $ac_status); } && | |
9dd0f6c2 | 30810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30812 | (eval $ac_try) 2>&5 | |
30813 | ac_status=$? | |
30814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30815 | (exit $ac_status); }; } && | |
30816 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30818 | (eval $ac_try) 2>&5 | |
30819 | ac_status=$? | |
30820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30821 | (exit $ac_status); }; }; then | |
30822 | eval "$as_ac_var=yes" | |
30823 | else | |
30824 | echo "$as_me: failed program was:" >&5 | |
30825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30826 | ||
30827 | eval "$as_ac_var=no" | |
30828 | fi | |
ac1cb8d3 VS |
30829 | rm -f conftest.err conftest.$ac_objext \ |
30830 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30831 | fi |
30832 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30833 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30834 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30835 | cat >>confdefs.h <<_ACEOF | |
30836 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30837 | _ACEOF | |
30838 | ||
30839 | fi | |
30840 | done | |
30841 | ||
30842 | else | |
30843 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
30844 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
30845 | fi | |
30846 | ||
30847 | ||
30848 | ||
30849 | ac_ext=cc | |
30850 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30851 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30852 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30853 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30854 | ||
30855 | ||
30856 | ||
30857 | for ac_func in vsnprintf | |
30858 | do | |
30859 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30860 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30861 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30862 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30864 | else | |
30865 | cat >conftest.$ac_ext <<_ACEOF | |
30866 | /* confdefs.h. */ | |
30867 | _ACEOF | |
30868 | cat confdefs.h >>conftest.$ac_ext | |
30869 | cat >>conftest.$ac_ext <<_ACEOF | |
30870 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30871 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30872 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30873 | #define $ac_func innocuous_$ac_func | |
30874 | ||
a848cd7e SC |
30875 | /* System header to define __stub macros and hopefully few prototypes, |
30876 | which can conflict with char $ac_func (); below. | |
30877 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30878 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30879 | |
a848cd7e SC |
30880 | #ifdef __STDC__ |
30881 | # include <limits.h> | |
30882 | #else | |
30883 | # include <assert.h> | |
30884 | #endif | |
ac1cb8d3 VS |
30885 | |
30886 | #undef $ac_func | |
30887 | ||
a848cd7e SC |
30888 | /* Override any gcc2 internal prototype to avoid an error. */ |
30889 | #ifdef __cplusplus | |
30890 | extern "C" | |
30891 | { | |
30892 | #endif | |
30893 | /* We use char because int might match the return type of a gcc2 | |
30894 | builtin and then its argument prototype would still apply. */ | |
30895 | char $ac_func (); | |
30896 | /* The GNU C library defines this for functions which it implements | |
30897 | to always fail with ENOSYS. Some functions are actually named | |
30898 | something starting with __ and the normal name is an alias. */ | |
30899 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30900 | choke me | |
30901 | #else | |
30902 | char (*f) () = $ac_func; | |
30903 | #endif | |
30904 | #ifdef __cplusplus | |
30905 | } | |
30906 | #endif | |
30907 | ||
30908 | int | |
30909 | main () | |
30910 | { | |
30911 | return f != $ac_func; | |
30912 | ; | |
30913 | return 0; | |
30914 | } | |
30915 | _ACEOF | |
30916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30918 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30919 | ac_status=$? |
ac1cb8d3 VS |
30920 | grep -v '^ *+' conftest.er1 >conftest.err |
30921 | rm -f conftest.er1 | |
30922 | cat conftest.err >&5 | |
a848cd7e SC |
30923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30924 | (exit $ac_status); } && | |
9dd0f6c2 | 30925 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30927 | (eval $ac_try) 2>&5 | |
30928 | ac_status=$? | |
30929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30930 | (exit $ac_status); }; } && | |
30931 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30933 | (eval $ac_try) 2>&5 | |
30934 | ac_status=$? | |
30935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30936 | (exit $ac_status); }; }; then | |
30937 | eval "$as_ac_var=yes" | |
30938 | else | |
30939 | echo "$as_me: failed program was:" >&5 | |
30940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30941 | ||
30942 | eval "$as_ac_var=no" | |
30943 | fi | |
ac1cb8d3 VS |
30944 | rm -f conftest.err conftest.$ac_objext \ |
30945 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30946 | fi |
30947 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30948 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30949 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30950 | cat >>confdefs.h <<_ACEOF | |
30951 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30952 | _ACEOF | |
30953 | ||
30954 | fi | |
30955 | done | |
30956 | ||
30957 | ||
30958 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
30959 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
30960 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
30961 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
30962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30963 | else | |
30964 | ||
30965 | cat >conftest.$ac_ext <<_ACEOF | |
30966 | /* confdefs.h. */ | |
30967 | _ACEOF | |
30968 | cat confdefs.h >>conftest.$ac_ext | |
30969 | cat >>conftest.$ac_ext <<_ACEOF | |
30970 | /* end confdefs.h. */ | |
30971 | ||
30972 | #include <stdio.h> | |
30973 | #include <stdarg.h> | |
30974 | ||
30975 | int | |
30976 | main () | |
30977 | { | |
30978 | ||
30979 | char *buf; | |
30980 | va_list ap; | |
30981 | vsnprintf(buf, 10u, "%s", ap); | |
30982 | ||
30983 | ; | |
30984 | return 0; | |
30985 | } | |
30986 | _ACEOF | |
30987 | rm -f conftest.$ac_objext | |
30988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30989 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30990 | ac_status=$? |
ac1cb8d3 VS |
30991 | grep -v '^ *+' conftest.er1 >conftest.err |
30992 | rm -f conftest.er1 | |
30993 | cat conftest.err >&5 | |
a848cd7e SC |
30994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30995 | (exit $ac_status); } && | |
9dd0f6c2 | 30996 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30998 | (eval $ac_try) 2>&5 | |
30999 | ac_status=$? | |
31000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31001 | (exit $ac_status); }; } && | |
31002 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31004 | (eval $ac_try) 2>&5 | |
31005 | ac_status=$? | |
31006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31007 | (exit $ac_status); }; }; then | |
31008 | wx_cv_func_vsnprintf_decl=yes | |
31009 | else | |
31010 | echo "$as_me: failed program was:" >&5 | |
31011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31012 | ||
c122b164 DE |
31013 | |
31014 | cat >conftest.$ac_ext <<_ACEOF | |
31015 | /* confdefs.h. */ | |
31016 | _ACEOF | |
31017 | cat confdefs.h >>conftest.$ac_ext | |
31018 | cat >>conftest.$ac_ext <<_ACEOF | |
31019 | /* end confdefs.h. */ | |
31020 | ||
31021 | #include <stdio.h> | |
31022 | #include <stdarg.h> | |
31023 | using namespace std; | |
31024 | ||
31025 | int | |
31026 | main () | |
31027 | { | |
31028 | ||
31029 | char *buf; | |
31030 | va_list ap; | |
31031 | vsnprintf(buf, 10u, "%s", ap); | |
31032 | ||
31033 | ; | |
31034 | return 0; | |
31035 | } | |
31036 | _ACEOF | |
31037 | rm -f conftest.$ac_objext | |
31038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31039 | (eval $ac_compile) 2>conftest.er1 | |
31040 | ac_status=$? | |
31041 | grep -v '^ *+' conftest.er1 >conftest.err | |
31042 | rm -f conftest.er1 | |
31043 | cat conftest.err >&5 | |
31044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31045 | (exit $ac_status); } && | |
9dd0f6c2 | 31046 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
31047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31048 | (eval $ac_try) 2>&5 | |
31049 | ac_status=$? | |
31050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31051 | (exit $ac_status); }; } && | |
31052 | { ac_try='test -s conftest.$ac_objext' | |
31053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31054 | (eval $ac_try) 2>&5 | |
31055 | ac_status=$? | |
31056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31057 | (exit $ac_status); }; }; then | |
31058 | wx_cv_func_vsnprintf_decl=yes | |
31059 | else | |
31060 | echo "$as_me: failed program was:" >&5 | |
31061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31062 | ||
a848cd7e SC |
31063 | wx_cv_func_vsnprintf_decl=no |
31064 | ||
31065 | fi | |
ac1cb8d3 | 31066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31067 | |
31068 | ||
c122b164 DE |
31069 | fi |
31070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31071 | ||
31072 | ||
a848cd7e SC |
31073 | fi |
31074 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
31075 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
31076 | ||
31077 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
31078 | cat >>confdefs.h <<\_ACEOF | |
31079 | #define HAVE_VSNPRINTF_DECL 1 | |
31080 | _ACEOF | |
31081 | ||
31082 | fi | |
31083 | fi | |
31084 | ||
31085 | if test "$wxUSE_UNICODE" = yes; then | |
31086 | ||
31087 | ||
31088 | ||
fbe47c7b VS |
31089 | |
31090 | ||
31091 | ||
31092 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
31093 | do |
31094 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31095 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31096 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31097 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31099 | else | |
31100 | cat >conftest.$ac_ext <<_ACEOF | |
31101 | /* confdefs.h. */ | |
31102 | _ACEOF | |
31103 | cat confdefs.h >>conftest.$ac_ext | |
31104 | cat >>conftest.$ac_ext <<_ACEOF | |
31105 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31106 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31107 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31108 | #define $ac_func innocuous_$ac_func | |
31109 | ||
a848cd7e SC |
31110 | /* System header to define __stub macros and hopefully few prototypes, |
31111 | which can conflict with char $ac_func (); below. | |
31112 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31113 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31114 | |
a848cd7e SC |
31115 | #ifdef __STDC__ |
31116 | # include <limits.h> | |
31117 | #else | |
31118 | # include <assert.h> | |
31119 | #endif | |
ac1cb8d3 VS |
31120 | |
31121 | #undef $ac_func | |
31122 | ||
a848cd7e SC |
31123 | /* Override any gcc2 internal prototype to avoid an error. */ |
31124 | #ifdef __cplusplus | |
31125 | extern "C" | |
31126 | { | |
31127 | #endif | |
31128 | /* We use char because int might match the return type of a gcc2 | |
31129 | builtin and then its argument prototype would still apply. */ | |
31130 | char $ac_func (); | |
31131 | /* The GNU C library defines this for functions which it implements | |
31132 | to always fail with ENOSYS. Some functions are actually named | |
31133 | something starting with __ and the normal name is an alias. */ | |
31134 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31135 | choke me | |
31136 | #else | |
31137 | char (*f) () = $ac_func; | |
31138 | #endif | |
31139 | #ifdef __cplusplus | |
31140 | } | |
31141 | #endif | |
31142 | ||
31143 | int | |
31144 | main () | |
31145 | { | |
31146 | return f != $ac_func; | |
31147 | ; | |
31148 | return 0; | |
31149 | } | |
31150 | _ACEOF | |
31151 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31153 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31154 | ac_status=$? |
ac1cb8d3 VS |
31155 | grep -v '^ *+' conftest.er1 >conftest.err |
31156 | rm -f conftest.er1 | |
31157 | cat conftest.err >&5 | |
a848cd7e SC |
31158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31159 | (exit $ac_status); } && | |
9dd0f6c2 | 31160 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31162 | (eval $ac_try) 2>&5 | |
31163 | ac_status=$? | |
31164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31165 | (exit $ac_status); }; } && | |
31166 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31168 | (eval $ac_try) 2>&5 | |
31169 | ac_status=$? | |
31170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31171 | (exit $ac_status); }; }; then | |
31172 | eval "$as_ac_var=yes" | |
31173 | else | |
31174 | echo "$as_me: failed program was:" >&5 | |
31175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31176 | ||
31177 | eval "$as_ac_var=no" | |
31178 | fi | |
ac1cb8d3 VS |
31179 | rm -f conftest.err conftest.$ac_objext \ |
31180 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31181 | fi |
31182 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31183 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31184 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31185 | cat >>confdefs.h <<_ACEOF | |
31186 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31187 | _ACEOF | |
31188 | ||
31189 | fi | |
31190 | done | |
31191 | ||
31192 | ||
31193 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
31194 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
31195 | cat >conftest.$ac_ext <<_ACEOF | |
31196 | /* confdefs.h. */ | |
31197 | _ACEOF | |
31198 | cat confdefs.h >>conftest.$ac_ext | |
31199 | cat >>conftest.$ac_ext <<_ACEOF | |
31200 | /* end confdefs.h. */ | |
31201 | #include <wchar.h> | |
31202 | int | |
31203 | main () | |
31204 | { | |
31205 | &_vsnwprintf; | |
31206 | ; | |
31207 | return 0; | |
31208 | } | |
31209 | _ACEOF | |
31210 | rm -f conftest.$ac_objext | |
31211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31212 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31213 | ac_status=$? |
ac1cb8d3 VS |
31214 | grep -v '^ *+' conftest.er1 >conftest.err |
31215 | rm -f conftest.er1 | |
31216 | cat conftest.err >&5 | |
a848cd7e SC |
31217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31218 | (exit $ac_status); } && | |
9dd0f6c2 | 31219 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31221 | (eval $ac_try) 2>&5 | |
31222 | ac_status=$? | |
31223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31224 | (exit $ac_status); }; } && | |
31225 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31227 | (eval $ac_try) 2>&5 | |
31228 | ac_status=$? | |
31229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31230 | (exit $ac_status); }; }; then | |
31231 | echo "$as_me:$LINENO: result: yes" >&5 | |
31232 | echo "${ECHO_T}yes" >&6 | |
31233 | cat >>confdefs.h <<\_ACEOF | |
31234 | #define HAVE__VSNWPRINTF 1 | |
31235 | _ACEOF | |
31236 | ||
31237 | else | |
31238 | echo "$as_me: failed program was:" >&5 | |
31239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31240 | ||
31241 | echo "$as_me:$LINENO: result: no" >&5 | |
31242 | echo "${ECHO_T}no" >&6 | |
31243 | fi | |
ac1cb8d3 | 31244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
31245 | fi |
31246 | ||
31247 | ac_ext=c | |
31248 | ac_cpp='$CPP $CPPFLAGS' | |
31249 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31250 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31251 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31252 | ||
31253 | ||
31254 | ||
31255 | ||
31256 | if test "$TOOLKIT" != "MSW"; then | |
31257 | ||
31258 | ||
31259 | ||
31260 | ||
31261 | ac_ext=cc | |
31262 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31263 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31264 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31265 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31266 | ||
31267 | ||
31268 | ||
31269 | ||
31270 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
31271 | if test "${with_libiconv_prefix+set}" = set; then | |
31272 | withval="$with_libiconv_prefix" | |
31273 | ||
31274 | for dir in `echo "$withval" | tr : ' '`; do | |
31275 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
31276 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
31277 | done | |
31278 | ||
31279 | fi; | |
31280 | ||
31281 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
31282 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
31283 | if test "${am_cv_func_iconv+set}" = set; then | |
31284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31285 | else | |
31286 | ||
31287 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
31288 | am_cv_lib_iconv=no | |
31289 | cat >conftest.$ac_ext <<_ACEOF | |
31290 | /* confdefs.h. */ | |
31291 | _ACEOF | |
31292 | cat confdefs.h >>conftest.$ac_ext | |
31293 | cat >>conftest.$ac_ext <<_ACEOF | |
31294 | /* end confdefs.h. */ | |
31295 | #include <stdlib.h> | |
31296 | #include <iconv.h> | |
31297 | int | |
31298 | main () | |
31299 | { | |
31300 | iconv_t cd = iconv_open("",""); | |
31301 | iconv(cd,NULL,NULL,NULL,NULL); | |
31302 | iconv_close(cd); | |
31303 | ; | |
31304 | return 0; | |
31305 | } | |
31306 | _ACEOF | |
31307 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31309 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31310 | ac_status=$? |
ac1cb8d3 VS |
31311 | grep -v '^ *+' conftest.er1 >conftest.err |
31312 | rm -f conftest.er1 | |
31313 | cat conftest.err >&5 | |
a848cd7e SC |
31314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31315 | (exit $ac_status); } && | |
9dd0f6c2 | 31316 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31318 | (eval $ac_try) 2>&5 | |
31319 | ac_status=$? | |
31320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31321 | (exit $ac_status); }; } && | |
31322 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31324 | (eval $ac_try) 2>&5 | |
31325 | ac_status=$? | |
31326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31327 | (exit $ac_status); }; }; then | |
31328 | am_cv_func_iconv=yes | |
31329 | else | |
31330 | echo "$as_me: failed program was:" >&5 | |
31331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31332 | ||
31333 | fi | |
ac1cb8d3 VS |
31334 | rm -f conftest.err conftest.$ac_objext \ |
31335 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31336 | if test "$am_cv_func_iconv" != yes; then |
31337 | am_save_LIBS="$LIBS" | |
31338 | LIBS="$LIBS -liconv" | |
31339 | cat >conftest.$ac_ext <<_ACEOF | |
31340 | /* confdefs.h. */ | |
31341 | _ACEOF | |
31342 | cat confdefs.h >>conftest.$ac_ext | |
31343 | cat >>conftest.$ac_ext <<_ACEOF | |
31344 | /* end confdefs.h. */ | |
31345 | #include <stdlib.h> | |
31346 | #include <iconv.h> | |
31347 | int | |
31348 | main () | |
31349 | { | |
31350 | iconv_t cd = iconv_open("",""); | |
31351 | iconv(cd,NULL,NULL,NULL,NULL); | |
31352 | iconv_close(cd); | |
31353 | ; | |
31354 | return 0; | |
31355 | } | |
31356 | _ACEOF | |
31357 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31359 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31360 | ac_status=$? |
ac1cb8d3 VS |
31361 | grep -v '^ *+' conftest.er1 >conftest.err |
31362 | rm -f conftest.er1 | |
31363 | cat conftest.err >&5 | |
a848cd7e SC |
31364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31365 | (exit $ac_status); } && | |
9dd0f6c2 | 31366 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31368 | (eval $ac_try) 2>&5 | |
31369 | ac_status=$? | |
31370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31371 | (exit $ac_status); }; } && | |
31372 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31374 | (eval $ac_try) 2>&5 | |
31375 | ac_status=$? | |
31376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31377 | (exit $ac_status); }; }; then | |
31378 | am_cv_lib_iconv=yes | |
31379 | am_cv_func_iconv=yes | |
31380 | else | |
31381 | echo "$as_me: failed program was:" >&5 | |
31382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31383 | ||
31384 | fi | |
ac1cb8d3 VS |
31385 | rm -f conftest.err conftest.$ac_objext \ |
31386 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31387 | LIBS="$am_save_LIBS" |
31388 | fi | |
31389 | ||
31390 | fi | |
31391 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
31392 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
31393 | if test "$am_cv_func_iconv" = yes; then | |
31394 | ||
31395 | cat >>confdefs.h <<\_ACEOF | |
31396 | #define HAVE_ICONV 1 | |
31397 | _ACEOF | |
31398 | ||
31399 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
31400 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
31401 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
31402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31403 | else | |
31404 | cat >conftest.$ac_ext <<_ACEOF | |
31405 | /* confdefs.h. */ | |
31406 | _ACEOF | |
31407 | cat confdefs.h >>conftest.$ac_ext | |
31408 | cat >>conftest.$ac_ext <<_ACEOF | |
31409 | /* end confdefs.h. */ | |
31410 | ||
31411 | #include <stdlib.h> | |
31412 | #include <iconv.h> | |
31413 | extern | |
31414 | #ifdef __cplusplus | |
31415 | "C" | |
31416 | #endif | |
31417 | #if defined(__STDC__) || defined(__cplusplus) | |
31418 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
31419 | #else | |
31420 | size_t iconv(); | |
31421 | #endif | |
31422 | ||
31423 | int | |
31424 | main () | |
31425 | { | |
31426 | ||
31427 | ; | |
31428 | return 0; | |
31429 | } | |
31430 | _ACEOF | |
31431 | rm -f conftest.$ac_objext | |
31432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31433 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31434 | ac_status=$? |
ac1cb8d3 VS |
31435 | grep -v '^ *+' conftest.er1 >conftest.err |
31436 | rm -f conftest.er1 | |
31437 | cat conftest.err >&5 | |
a848cd7e SC |
31438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31439 | (exit $ac_status); } && | |
9dd0f6c2 | 31440 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31442 | (eval $ac_try) 2>&5 | |
31443 | ac_status=$? | |
31444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31445 | (exit $ac_status); }; } && | |
31446 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31448 | (eval $ac_try) 2>&5 | |
31449 | ac_status=$? | |
31450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31451 | (exit $ac_status); }; }; then | |
31452 | wx_cv_func_iconv_const="no" | |
31453 | else | |
31454 | echo "$as_me: failed program was:" >&5 | |
31455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31456 | ||
31457 | wx_cv_func_iconv_const="yes" | |
31458 | ||
31459 | fi | |
ac1cb8d3 | 31460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31461 | |
31462 | fi | |
31463 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
31464 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
31465 | ||
31466 | iconv_const= | |
31467 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
31468 | iconv_const="const" | |
31469 | fi | |
31470 | ||
31471 | ||
31472 | cat >>confdefs.h <<_ACEOF | |
31473 | #define ICONV_CONST $iconv_const | |
31474 | _ACEOF | |
31475 | ||
31476 | fi | |
31477 | LIBICONV= | |
31478 | if test "$am_cv_lib_iconv" = yes; then | |
31479 | LIBICONV="-liconv" | |
31480 | fi | |
31481 | ||
31482 | ||
31483 | LIBS="$LIBICONV $LIBS" | |
31484 | ac_ext=c | |
31485 | ac_cpp='$CPP $CPPFLAGS' | |
31486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31489 | ||
31490 | ||
31491 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
31492 | ||
31493 | for ac_func in sigaction | |
31494 | do | |
31495 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31496 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31497 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31498 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31500 | else | |
31501 | cat >conftest.$ac_ext <<_ACEOF | |
31502 | /* confdefs.h. */ | |
31503 | _ACEOF | |
31504 | cat confdefs.h >>conftest.$ac_ext | |
31505 | cat >>conftest.$ac_ext <<_ACEOF | |
31506 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31507 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31508 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31509 | #define $ac_func innocuous_$ac_func | |
31510 | ||
a848cd7e SC |
31511 | /* System header to define __stub macros and hopefully few prototypes, |
31512 | which can conflict with char $ac_func (); below. | |
31513 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31514 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31515 | |
a848cd7e SC |
31516 | #ifdef __STDC__ |
31517 | # include <limits.h> | |
31518 | #else | |
31519 | # include <assert.h> | |
31520 | #endif | |
ac1cb8d3 VS |
31521 | |
31522 | #undef $ac_func | |
31523 | ||
a848cd7e SC |
31524 | /* Override any gcc2 internal prototype to avoid an error. */ |
31525 | #ifdef __cplusplus | |
31526 | extern "C" | |
31527 | { | |
31528 | #endif | |
31529 | /* We use char because int might match the return type of a gcc2 | |
31530 | builtin and then its argument prototype would still apply. */ | |
31531 | char $ac_func (); | |
31532 | /* The GNU C library defines this for functions which it implements | |
31533 | to always fail with ENOSYS. Some functions are actually named | |
31534 | something starting with __ and the normal name is an alias. */ | |
31535 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31536 | choke me | |
31537 | #else | |
31538 | char (*f) () = $ac_func; | |
31539 | #endif | |
31540 | #ifdef __cplusplus | |
31541 | } | |
31542 | #endif | |
31543 | ||
31544 | int | |
31545 | main () | |
31546 | { | |
31547 | return f != $ac_func; | |
31548 | ; | |
31549 | return 0; | |
31550 | } | |
31551 | _ACEOF | |
31552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31554 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31555 | ac_status=$? |
ac1cb8d3 VS |
31556 | grep -v '^ *+' conftest.er1 >conftest.err |
31557 | rm -f conftest.er1 | |
31558 | cat conftest.err >&5 | |
a848cd7e SC |
31559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31560 | (exit $ac_status); } && | |
9dd0f6c2 | 31561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31563 | (eval $ac_try) 2>&5 | |
31564 | ac_status=$? | |
31565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31566 | (exit $ac_status); }; } && | |
31567 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31569 | (eval $ac_try) 2>&5 | |
31570 | ac_status=$? | |
31571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31572 | (exit $ac_status); }; }; then | |
31573 | eval "$as_ac_var=yes" | |
31574 | else | |
31575 | echo "$as_me: failed program was:" >&5 | |
31576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31577 | ||
31578 | eval "$as_ac_var=no" | |
31579 | fi | |
ac1cb8d3 VS |
31580 | rm -f conftest.err conftest.$ac_objext \ |
31581 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31582 | fi |
31583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31584 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31585 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31586 | cat >>confdefs.h <<_ACEOF | |
31587 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31588 | _ACEOF | |
31589 | ||
31590 | fi | |
31591 | done | |
31592 | ||
31593 | ||
31594 | if test "$ac_cv_func_sigaction" = "no"; then | |
31595 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
31596 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
31597 | wxUSE_ON_FATAL_EXCEPTION=no | |
31598 | fi | |
31599 | ||
31600 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
31601 | ||
31602 | ||
31603 | ac_ext=cc | |
31604 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31605 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31606 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31607 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31608 | ||
31609 | ||
31610 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
31611 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
31612 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
31613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31614 | else | |
31615 | ||
31616 | cat >conftest.$ac_ext <<_ACEOF | |
31617 | /* confdefs.h. */ | |
31618 | _ACEOF | |
31619 | cat confdefs.h >>conftest.$ac_ext | |
31620 | cat >>conftest.$ac_ext <<_ACEOF | |
31621 | /* end confdefs.h. */ | |
31622 | #include <signal.h> | |
31623 | int | |
31624 | main () | |
31625 | { | |
31626 | ||
31627 | extern void testSigHandler(int); | |
31628 | ||
31629 | struct sigaction sa; | |
31630 | sa.sa_handler = testSigHandler; | |
31631 | ||
31632 | ; | |
31633 | return 0; | |
31634 | } | |
31635 | _ACEOF | |
31636 | rm -f conftest.$ac_objext | |
31637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31638 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31639 | ac_status=$? |
ac1cb8d3 VS |
31640 | grep -v '^ *+' conftest.er1 >conftest.err |
31641 | rm -f conftest.er1 | |
31642 | cat conftest.err >&5 | |
a848cd7e SC |
31643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31644 | (exit $ac_status); } && | |
9dd0f6c2 | 31645 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31647 | (eval $ac_try) 2>&5 | |
31648 | ac_status=$? | |
31649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31650 | (exit $ac_status); }; } && | |
31651 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31653 | (eval $ac_try) 2>&5 | |
31654 | ac_status=$? | |
31655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31656 | (exit $ac_status); }; }; then | |
31657 | ||
31658 | wx_cv_type_sa_handler=int | |
31659 | ||
31660 | else | |
31661 | echo "$as_me: failed program was:" >&5 | |
31662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31663 | ||
31664 | ||
31665 | wx_cv_type_sa_handler=void | |
31666 | ||
31667 | fi | |
ac1cb8d3 | 31668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31669 | |
31670 | fi | |
31671 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
31672 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
31673 | ||
31674 | ac_ext=c | |
31675 | ac_cpp='$CPP $CPPFLAGS' | |
31676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31679 | ||
31680 | ||
31681 | cat >>confdefs.h <<_ACEOF | |
31682 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
31683 | _ACEOF | |
31684 | ||
31685 | fi | |
31686 | fi | |
31687 | ||
eaff0f0d VZ |
31688 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
31689 | ||
31690 | ||
31691 | ac_ext=cc | |
31692 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31693 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31694 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31695 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31696 | ||
31697 | ||
31698 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
31699 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
31700 | if test "${wx_cv_func_backtrace+set}" = set; then | |
31701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31702 | else | |
31703 | ||
31704 | cat >conftest.$ac_ext <<_ACEOF | |
31705 | /* confdefs.h. */ | |
31706 | _ACEOF | |
31707 | cat confdefs.h >>conftest.$ac_ext | |
31708 | cat >>conftest.$ac_ext <<_ACEOF | |
31709 | /* end confdefs.h. */ | |
31710 | #include <execinfo.h> | |
31711 | int | |
31712 | main () | |
31713 | { | |
31714 | ||
31715 | void *trace[1]; | |
31716 | char **messages; | |
31717 | ||
31718 | backtrace(trace, 1); | |
31719 | messages = backtrace_symbols(trace, 1); | |
31720 | ||
31721 | ; | |
31722 | return 0; | |
31723 | } | |
31724 | _ACEOF | |
31725 | rm -f conftest.$ac_objext | |
31726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31727 | (eval $ac_compile) 2>conftest.er1 | |
31728 | ac_status=$? | |
31729 | grep -v '^ *+' conftest.er1 >conftest.err | |
31730 | rm -f conftest.er1 | |
31731 | cat conftest.err >&5 | |
31732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31733 | (exit $ac_status); } && | |
9dd0f6c2 | 31734 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
31735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31736 | (eval $ac_try) 2>&5 | |
31737 | ac_status=$? | |
31738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31739 | (exit $ac_status); }; } && | |
31740 | { ac_try='test -s conftest.$ac_objext' | |
31741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31742 | (eval $ac_try) 2>&5 | |
31743 | ac_status=$? | |
31744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31745 | (exit $ac_status); }; }; then | |
31746 | wx_cv_func_backtrace=yes | |
31747 | else | |
31748 | echo "$as_me: failed program was:" >&5 | |
31749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31750 | ||
31751 | wx_cv_func_backtrace=no | |
31752 | ||
31753 | fi | |
31754 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31755 | ||
31756 | ||
31757 | fi | |
31758 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
31759 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
31760 | ||
31761 | ||
31762 | if test "$wx_cv_func_backtrace" = "no"; then | |
31763 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
31764 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
31765 | wxUSE_STACKWALKER=no | |
31766 | else | |
31767 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
31768 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
31769 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
31770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31771 | else | |
31772 | ||
31773 | cat >conftest.$ac_ext <<_ACEOF | |
31774 | /* confdefs.h. */ | |
31775 | _ACEOF | |
31776 | cat confdefs.h >>conftest.$ac_ext | |
31777 | cat >>conftest.$ac_ext <<_ACEOF | |
31778 | /* end confdefs.h. */ | |
31779 | #include <cxxabi.h> | |
31780 | int | |
31781 | main () | |
31782 | { | |
31783 | ||
31784 | int rc; | |
31785 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
31786 | ||
31787 | ; | |
31788 | return 0; | |
31789 | } | |
31790 | _ACEOF | |
dfe0c803 JS |
31791 | rm -f conftest.$ac_objext conftest$ac_exeext |
31792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31793 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
31794 | ac_status=$? |
31795 | grep -v '^ *+' conftest.er1 >conftest.err | |
31796 | rm -f conftest.er1 | |
31797 | cat conftest.err >&5 | |
31798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31799 | (exit $ac_status); } && | |
9dd0f6c2 | 31800 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
31801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31802 | (eval $ac_try) 2>&5 | |
31803 | ac_status=$? | |
31804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31805 | (exit $ac_status); }; } && | |
dfe0c803 | 31806 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
31807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31808 | (eval $ac_try) 2>&5 | |
31809 | ac_status=$? | |
31810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31811 | (exit $ac_status); }; }; then | |
31812 | wx_cv_func_cxa_demangle=yes | |
31813 | else | |
31814 | echo "$as_me: failed program was:" >&5 | |
31815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31816 | ||
31817 | wx_cv_func_cxa_demangle=no | |
31818 | ||
31819 | fi | |
dfe0c803 JS |
31820 | rm -f conftest.err conftest.$ac_objext \ |
31821 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
31822 | |
31823 | ||
31824 | fi | |
31825 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
31826 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
31827 | ||
31828 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
31829 | cat >>confdefs.h <<\_ACEOF | |
31830 | #define HAVE_CXA_DEMANGLE 1 | |
31831 | _ACEOF | |
31832 | ||
31833 | fi | |
31834 | fi | |
31835 | ||
31836 | ac_ext=c | |
31837 | ac_cpp='$CPP $CPPFLAGS' | |
31838 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31839 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31840 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31841 | ||
31842 | fi | |
31843 | ||
898beab1 DE |
31844 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
31845 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
31846 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
31847 | wxUSE_STACKWALKER=no | |
31848 | fi | |
31849 | ||
31850 | ||
a848cd7e SC |
31851 | |
31852 | ||
31853 | for ac_func in mkstemp mktemp | |
31854 | do | |
31855 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31856 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31857 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31858 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31860 | else | |
31861 | cat >conftest.$ac_ext <<_ACEOF | |
31862 | /* confdefs.h. */ | |
31863 | _ACEOF | |
31864 | cat confdefs.h >>conftest.$ac_ext | |
31865 | cat >>conftest.$ac_ext <<_ACEOF | |
31866 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31867 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31868 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31869 | #define $ac_func innocuous_$ac_func | |
31870 | ||
a848cd7e SC |
31871 | /* System header to define __stub macros and hopefully few prototypes, |
31872 | which can conflict with char $ac_func (); below. | |
31873 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31874 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31875 | |
a848cd7e SC |
31876 | #ifdef __STDC__ |
31877 | # include <limits.h> | |
31878 | #else | |
31879 | # include <assert.h> | |
31880 | #endif | |
ac1cb8d3 VS |
31881 | |
31882 | #undef $ac_func | |
31883 | ||
a848cd7e SC |
31884 | /* Override any gcc2 internal prototype to avoid an error. */ |
31885 | #ifdef __cplusplus | |
31886 | extern "C" | |
31887 | { | |
31888 | #endif | |
31889 | /* We use char because int might match the return type of a gcc2 | |
31890 | builtin and then its argument prototype would still apply. */ | |
31891 | char $ac_func (); | |
31892 | /* The GNU C library defines this for functions which it implements | |
31893 | to always fail with ENOSYS. Some functions are actually named | |
31894 | something starting with __ and the normal name is an alias. */ | |
31895 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31896 | choke me | |
31897 | #else | |
31898 | char (*f) () = $ac_func; | |
31899 | #endif | |
31900 | #ifdef __cplusplus | |
31901 | } | |
31902 | #endif | |
31903 | ||
31904 | int | |
31905 | main () | |
31906 | { | |
31907 | return f != $ac_func; | |
31908 | ; | |
31909 | return 0; | |
31910 | } | |
31911 | _ACEOF | |
31912 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31913 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31914 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31915 | ac_status=$? |
ac1cb8d3 VS |
31916 | grep -v '^ *+' conftest.er1 >conftest.err |
31917 | rm -f conftest.er1 | |
31918 | cat conftest.err >&5 | |
a848cd7e SC |
31919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31920 | (exit $ac_status); } && | |
9dd0f6c2 | 31921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31923 | (eval $ac_try) 2>&5 | |
31924 | ac_status=$? | |
31925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31926 | (exit $ac_status); }; } && | |
31927 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
31933 | eval "$as_ac_var=yes" | |
31934 | else | |
31935 | echo "$as_me: failed program was:" >&5 | |
31936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31937 | ||
31938 | eval "$as_ac_var=no" | |
31939 | fi | |
ac1cb8d3 VS |
31940 | rm -f conftest.err conftest.$ac_objext \ |
31941 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31942 | fi |
31943 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31944 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31945 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31946 | cat >>confdefs.h <<_ACEOF | |
31947 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31948 | _ACEOF | |
31949 | break | |
31950 | fi | |
31951 | done | |
31952 | ||
31953 | ||
31954 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
31955 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
31956 | if test "${wx_cv_func_statfs+set}" = set; then | |
31957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31958 | else | |
31959 | cat >conftest.$ac_ext <<_ACEOF | |
31960 | /* confdefs.h. */ | |
31961 | _ACEOF | |
31962 | cat confdefs.h >>conftest.$ac_ext | |
31963 | cat >>conftest.$ac_ext <<_ACEOF | |
31964 | /* end confdefs.h. */ | |
31965 | ||
31966 | #if defined(__BSD__) | |
31967 | #include <sys/param.h> | |
31968 | #include <sys/mount.h> | |
31969 | #else | |
31970 | #include <sys/vfs.h> | |
31971 | #endif | |
31972 | ||
31973 | int | |
31974 | main () | |
31975 | { | |
31976 | ||
31977 | long l; | |
31978 | struct statfs fs; | |
31979 | statfs("/", &fs); | |
31980 | l = fs.f_bsize; | |
31981 | l += fs.f_blocks; | |
31982 | l += fs.f_bavail; | |
31983 | ||
31984 | ; | |
31985 | return 0; | |
31986 | } | |
31987 | _ACEOF | |
31988 | rm -f conftest.$ac_objext | |
31989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31990 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31991 | ac_status=$? |
ac1cb8d3 VS |
31992 | grep -v '^ *+' conftest.er1 >conftest.err |
31993 | rm -f conftest.er1 | |
31994 | cat conftest.err >&5 | |
a848cd7e SC |
31995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31996 | (exit $ac_status); } && | |
9dd0f6c2 | 31997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31999 | (eval $ac_try) 2>&5 | |
32000 | ac_status=$? | |
32001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32002 | (exit $ac_status); }; } && | |
32003 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32005 | (eval $ac_try) 2>&5 | |
32006 | ac_status=$? | |
32007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32008 | (exit $ac_status); }; }; then | |
32009 | ||
32010 | wx_cv_func_statfs=yes | |
32011 | ||
32012 | else | |
32013 | echo "$as_me: failed program was:" >&5 | |
32014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32015 | ||
32016 | ||
32017 | wx_cv_func_statfs=no | |
32018 | ||
32019 | ||
32020 | fi | |
ac1cb8d3 | 32021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32022 | |
32023 | fi | |
32024 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
32025 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
32026 | ||
32027 | if test "$wx_cv_func_statfs" = "yes"; then | |
32028 | wx_cv_type_statvfs_t="struct statfs" | |
32029 | cat >>confdefs.h <<\_ACEOF | |
32030 | #define HAVE_STATFS 1 | |
32031 | _ACEOF | |
32032 | ||
32033 | else | |
32034 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
32035 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
32036 | if test "${wx_cv_func_statvfs+set}" = set; then | |
32037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32038 | else | |
32039 | cat >conftest.$ac_ext <<_ACEOF | |
32040 | /* confdefs.h. */ | |
32041 | _ACEOF | |
32042 | cat confdefs.h >>conftest.$ac_ext | |
32043 | cat >>conftest.$ac_ext <<_ACEOF | |
32044 | /* end confdefs.h. */ | |
32045 | ||
32046 | #include <stddef.h> | |
32047 | #include <sys/statvfs.h> | |
32048 | ||
32049 | int | |
32050 | main () | |
32051 | { | |
32052 | ||
32053 | statvfs("/", NULL); | |
32054 | ||
32055 | ; | |
32056 | return 0; | |
32057 | } | |
32058 | _ACEOF | |
32059 | rm -f conftest.$ac_objext | |
32060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32061 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32062 | ac_status=$? |
ac1cb8d3 VS |
32063 | grep -v '^ *+' conftest.er1 >conftest.err |
32064 | rm -f conftest.er1 | |
32065 | cat conftest.err >&5 | |
a848cd7e SC |
32066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32067 | (exit $ac_status); } && | |
9dd0f6c2 | 32068 | { ac_try='test -z "$ac_c_werror_flag" || 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_objext' | |
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 | wx_cv_func_statvfs=yes | |
32081 | else | |
32082 | echo "$as_me: failed program was:" >&5 | |
32083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32084 | ||
32085 | wx_cv_func_statvfs=no | |
32086 | ||
32087 | fi | |
ac1cb8d3 | 32088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32089 | |
32090 | fi | |
32091 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
32092 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
32093 | ||
32094 | if test "$wx_cv_func_statvfs" = "yes"; then | |
32095 | ||
32096 | ||
32097 | ac_ext=cc | |
32098 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32099 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32100 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32101 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32102 | ||
32103 | ||
32104 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
32105 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
32106 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
32107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32108 | else | |
32109 | cat >conftest.$ac_ext <<_ACEOF | |
32110 | /* confdefs.h. */ | |
32111 | _ACEOF | |
32112 | cat confdefs.h >>conftest.$ac_ext | |
32113 | cat >>conftest.$ac_ext <<_ACEOF | |
32114 | /* end confdefs.h. */ | |
32115 | ||
32116 | #include <sys/statvfs.h> | |
32117 | ||
32118 | int | |
32119 | main () | |
32120 | { | |
32121 | ||
32122 | long l; | |
32123 | statvfs_t fs; | |
32124 | statvfs("/", &fs); | |
32125 | l = fs.f_bsize; | |
32126 | l += fs.f_blocks; | |
32127 | l += fs.f_bavail; | |
32128 | ||
32129 | ; | |
32130 | return 0; | |
32131 | } | |
32132 | _ACEOF | |
32133 | rm -f conftest.$ac_objext | |
32134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32135 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32136 | ac_status=$? |
ac1cb8d3 VS |
32137 | grep -v '^ *+' conftest.er1 >conftest.err |
32138 | rm -f conftest.er1 | |
32139 | cat conftest.err >&5 | |
a848cd7e SC |
32140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32141 | (exit $ac_status); } && | |
9dd0f6c2 | 32142 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
32148 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32150 | (eval $ac_try) 2>&5 | |
32151 | ac_status=$? | |
32152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32153 | (exit $ac_status); }; }; then | |
32154 | wx_cv_type_statvfs_t=statvfs_t | |
32155 | else | |
32156 | echo "$as_me: failed program was:" >&5 | |
32157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32158 | ||
32159 | ||
32160 | cat >conftest.$ac_ext <<_ACEOF | |
32161 | /* confdefs.h. */ | |
32162 | _ACEOF | |
32163 | cat confdefs.h >>conftest.$ac_ext | |
32164 | cat >>conftest.$ac_ext <<_ACEOF | |
32165 | /* end confdefs.h. */ | |
32166 | ||
32167 | #include <sys/statvfs.h> | |
32168 | ||
32169 | int | |
32170 | main () | |
32171 | { | |
32172 | ||
32173 | long l; | |
32174 | struct statvfs fs; | |
32175 | statvfs("/", &fs); | |
32176 | l = fs.f_bsize; | |
32177 | l += fs.f_blocks; | |
32178 | l += fs.f_bavail; | |
32179 | ||
32180 | ; | |
32181 | return 0; | |
32182 | } | |
32183 | _ACEOF | |
32184 | rm -f conftest.$ac_objext | |
32185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32186 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32187 | ac_status=$? |
ac1cb8d3 VS |
32188 | grep -v '^ *+' conftest.er1 >conftest.err |
32189 | rm -f conftest.er1 | |
32190 | cat conftest.err >&5 | |
a848cd7e SC |
32191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32192 | (exit $ac_status); } && | |
9dd0f6c2 | 32193 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32195 | (eval $ac_try) 2>&5 | |
32196 | ac_status=$? | |
32197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32198 | (exit $ac_status); }; } && | |
32199 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32201 | (eval $ac_try) 2>&5 | |
32202 | ac_status=$? | |
32203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32204 | (exit $ac_status); }; }; then | |
32205 | wx_cv_type_statvfs_t="struct statvfs" | |
32206 | else | |
32207 | echo "$as_me: failed program was:" >&5 | |
32208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32209 | ||
32210 | wx_cv_type_statvfs_t="unknown" | |
32211 | ||
32212 | fi | |
ac1cb8d3 | 32213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32214 | |
32215 | ||
32216 | fi | |
ac1cb8d3 | 32217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32218 | |
32219 | fi | |
32220 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
32221 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
32222 | ||
32223 | ac_ext=c | |
32224 | ac_cpp='$CPP $CPPFLAGS' | |
32225 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32226 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32227 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32228 | ||
32229 | ||
32230 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
32231 | cat >>confdefs.h <<\_ACEOF | |
32232 | #define HAVE_STATVFS 1 | |
32233 | _ACEOF | |
32234 | ||
32235 | fi | |
32236 | else | |
32237 | wx_cv_type_statvfs_t="unknown" | |
32238 | fi | |
32239 | fi | |
32240 | ||
32241 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
32242 | cat >>confdefs.h <<_ACEOF | |
32243 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
32244 | _ACEOF | |
32245 | ||
32246 | else | |
32247 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
32248 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
32249 | fi | |
32250 | ||
32251 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
32252 | ||
32253 | ||
32254 | for ac_func in fcntl flock | |
32255 | do | |
32256 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32257 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32258 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32259 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32261 | else | |
32262 | cat >conftest.$ac_ext <<_ACEOF | |
32263 | /* confdefs.h. */ | |
32264 | _ACEOF | |
32265 | cat confdefs.h >>conftest.$ac_ext | |
32266 | cat >>conftest.$ac_ext <<_ACEOF | |
32267 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32268 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32269 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32270 | #define $ac_func innocuous_$ac_func | |
32271 | ||
a848cd7e SC |
32272 | /* System header to define __stub macros and hopefully few prototypes, |
32273 | which can conflict with char $ac_func (); below. | |
32274 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32275 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32276 | |
a848cd7e SC |
32277 | #ifdef __STDC__ |
32278 | # include <limits.h> | |
32279 | #else | |
32280 | # include <assert.h> | |
32281 | #endif | |
ac1cb8d3 VS |
32282 | |
32283 | #undef $ac_func | |
32284 | ||
a848cd7e SC |
32285 | /* Override any gcc2 internal prototype to avoid an error. */ |
32286 | #ifdef __cplusplus | |
32287 | extern "C" | |
32288 | { | |
32289 | #endif | |
32290 | /* We use char because int might match the return type of a gcc2 | |
32291 | builtin and then its argument prototype would still apply. */ | |
32292 | char $ac_func (); | |
32293 | /* The GNU C library defines this for functions which it implements | |
32294 | to always fail with ENOSYS. Some functions are actually named | |
32295 | something starting with __ and the normal name is an alias. */ | |
32296 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32297 | choke me | |
32298 | #else | |
32299 | char (*f) () = $ac_func; | |
32300 | #endif | |
32301 | #ifdef __cplusplus | |
32302 | } | |
32303 | #endif | |
32304 | ||
32305 | int | |
32306 | main () | |
32307 | { | |
32308 | return f != $ac_func; | |
32309 | ; | |
32310 | return 0; | |
32311 | } | |
32312 | _ACEOF | |
32313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32315 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32316 | ac_status=$? |
ac1cb8d3 VS |
32317 | grep -v '^ *+' conftest.er1 >conftest.err |
32318 | rm -f conftest.er1 | |
32319 | cat conftest.err >&5 | |
a848cd7e SC |
32320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32321 | (exit $ac_status); } && | |
9dd0f6c2 | 32322 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32324 | (eval $ac_try) 2>&5 | |
32325 | ac_status=$? | |
32326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32327 | (exit $ac_status); }; } && | |
32328 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32330 | (eval $ac_try) 2>&5 | |
32331 | ac_status=$? | |
32332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32333 | (exit $ac_status); }; }; then | |
32334 | eval "$as_ac_var=yes" | |
32335 | else | |
32336 | echo "$as_me: failed program was:" >&5 | |
32337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32338 | ||
32339 | eval "$as_ac_var=no" | |
32340 | fi | |
ac1cb8d3 VS |
32341 | rm -f conftest.err conftest.$ac_objext \ |
32342 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32343 | fi |
32344 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32345 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32346 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32347 | cat >>confdefs.h <<_ACEOF | |
32348 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32349 | _ACEOF | |
32350 | break | |
32351 | fi | |
32352 | done | |
32353 | ||
32354 | ||
32355 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
32356 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
32357 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
32358 | wxUSE_SNGLINST_CHECKER=no | |
32359 | fi | |
32360 | fi | |
32361 | ||
32362 | ||
32363 | for ac_func in timegm | |
32364 | do | |
32365 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32366 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32367 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32368 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32370 | else | |
32371 | cat >conftest.$ac_ext <<_ACEOF | |
32372 | /* confdefs.h. */ | |
32373 | _ACEOF | |
32374 | cat confdefs.h >>conftest.$ac_ext | |
32375 | cat >>conftest.$ac_ext <<_ACEOF | |
32376 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32377 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32378 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32379 | #define $ac_func innocuous_$ac_func | |
32380 | ||
a848cd7e SC |
32381 | /* System header to define __stub macros and hopefully few prototypes, |
32382 | which can conflict with char $ac_func (); below. | |
32383 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32384 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32385 | |
a848cd7e SC |
32386 | #ifdef __STDC__ |
32387 | # include <limits.h> | |
32388 | #else | |
32389 | # include <assert.h> | |
32390 | #endif | |
ac1cb8d3 VS |
32391 | |
32392 | #undef $ac_func | |
32393 | ||
a848cd7e SC |
32394 | /* Override any gcc2 internal prototype to avoid an error. */ |
32395 | #ifdef __cplusplus | |
32396 | extern "C" | |
32397 | { | |
32398 | #endif | |
32399 | /* We use char because int might match the return type of a gcc2 | |
32400 | builtin and then its argument prototype would still apply. */ | |
32401 | char $ac_func (); | |
32402 | /* The GNU C library defines this for functions which it implements | |
32403 | to always fail with ENOSYS. Some functions are actually named | |
32404 | something starting with __ and the normal name is an alias. */ | |
32405 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32406 | choke me | |
32407 | #else | |
32408 | char (*f) () = $ac_func; | |
32409 | #endif | |
32410 | #ifdef __cplusplus | |
32411 | } | |
32412 | #endif | |
32413 | ||
32414 | int | |
32415 | main () | |
32416 | { | |
32417 | return f != $ac_func; | |
32418 | ; | |
32419 | return 0; | |
32420 | } | |
32421 | _ACEOF | |
32422 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32424 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32425 | ac_status=$? |
ac1cb8d3 VS |
32426 | grep -v '^ *+' conftest.er1 >conftest.err |
32427 | rm -f conftest.er1 | |
32428 | cat conftest.err >&5 | |
a848cd7e SC |
32429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32430 | (exit $ac_status); } && | |
9dd0f6c2 | 32431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32433 | (eval $ac_try) 2>&5 | |
32434 | ac_status=$? | |
32435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32436 | (exit $ac_status); }; } && | |
32437 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32439 | (eval $ac_try) 2>&5 | |
32440 | ac_status=$? | |
32441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32442 | (exit $ac_status); }; }; then | |
32443 | eval "$as_ac_var=yes" | |
32444 | else | |
32445 | echo "$as_me: failed program was:" >&5 | |
32446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32447 | ||
32448 | eval "$as_ac_var=no" | |
32449 | fi | |
ac1cb8d3 VS |
32450 | rm -f conftest.err conftest.$ac_objext \ |
32451 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32452 | fi |
32453 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32454 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32455 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32456 | cat >>confdefs.h <<_ACEOF | |
32457 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32458 | _ACEOF | |
32459 | ||
32460 | fi | |
32461 | done | |
32462 | ||
32463 | ||
32464 | ||
32465 | ||
32466 | for ac_func in putenv setenv | |
32467 | do | |
32468 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32469 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32470 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32471 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32473 | else | |
32474 | cat >conftest.$ac_ext <<_ACEOF | |
32475 | /* confdefs.h. */ | |
32476 | _ACEOF | |
32477 | cat confdefs.h >>conftest.$ac_ext | |
32478 | cat >>conftest.$ac_ext <<_ACEOF | |
32479 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32480 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32481 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32482 | #define $ac_func innocuous_$ac_func | |
32483 | ||
a848cd7e SC |
32484 | /* System header to define __stub macros and hopefully few prototypes, |
32485 | which can conflict with char $ac_func (); below. | |
32486 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32487 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32488 | |
a848cd7e SC |
32489 | #ifdef __STDC__ |
32490 | # include <limits.h> | |
32491 | #else | |
32492 | # include <assert.h> | |
32493 | #endif | |
ac1cb8d3 VS |
32494 | |
32495 | #undef $ac_func | |
32496 | ||
a848cd7e SC |
32497 | /* Override any gcc2 internal prototype to avoid an error. */ |
32498 | #ifdef __cplusplus | |
32499 | extern "C" | |
32500 | { | |
32501 | #endif | |
32502 | /* We use char because int might match the return type of a gcc2 | |
32503 | builtin and then its argument prototype would still apply. */ | |
32504 | char $ac_func (); | |
32505 | /* The GNU C library defines this for functions which it implements | |
32506 | to always fail with ENOSYS. Some functions are actually named | |
32507 | something starting with __ and the normal name is an alias. */ | |
32508 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32509 | choke me | |
32510 | #else | |
32511 | char (*f) () = $ac_func; | |
32512 | #endif | |
32513 | #ifdef __cplusplus | |
32514 | } | |
32515 | #endif | |
32516 | ||
32517 | int | |
32518 | main () | |
32519 | { | |
32520 | return f != $ac_func; | |
32521 | ; | |
32522 | return 0; | |
32523 | } | |
32524 | _ACEOF | |
32525 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32527 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32528 | ac_status=$? |
ac1cb8d3 VS |
32529 | grep -v '^ *+' conftest.er1 >conftest.err |
32530 | rm -f conftest.er1 | |
32531 | cat conftest.err >&5 | |
a848cd7e SC |
32532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32533 | (exit $ac_status); } && | |
9dd0f6c2 | 32534 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32536 | (eval $ac_try) 2>&5 | |
32537 | ac_status=$? | |
32538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32539 | (exit $ac_status); }; } && | |
32540 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32542 | (eval $ac_try) 2>&5 | |
32543 | ac_status=$? | |
32544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32545 | (exit $ac_status); }; }; then | |
32546 | eval "$as_ac_var=yes" | |
32547 | else | |
32548 | echo "$as_me: failed program was:" >&5 | |
32549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32550 | ||
32551 | eval "$as_ac_var=no" | |
32552 | fi | |
ac1cb8d3 VS |
32553 | rm -f conftest.err conftest.$ac_objext \ |
32554 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32555 | fi |
32556 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32557 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32558 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32559 | cat >>confdefs.h <<_ACEOF | |
32560 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32561 | _ACEOF | |
32562 | break | |
32563 | fi | |
32564 | done | |
32565 | ||
32566 | ||
32567 | HAVE_SOME_SLEEP_FUNC=0 | |
32568 | if test "$USE_BEOS" = 1; then | |
32569 | cat >>confdefs.h <<\_ACEOF | |
32570 | #define HAVE_SLEEP 1 | |
32571 | _ACEOF | |
32572 | ||
32573 | HAVE_SOME_SLEEP_FUNC=1 | |
32574 | fi | |
32575 | ||
32576 | if test "$USE_DARWIN" = 1; then | |
32577 | cat >>confdefs.h <<\_ACEOF | |
32578 | #define HAVE_USLEEP 1 | |
32579 | _ACEOF | |
32580 | ||
32581 | HAVE_SOME_SLEEP_FUNC=1 | |
32582 | fi | |
32583 | ||
32584 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
32585 | POSIX4_LINK= | |
32586 | ||
32587 | for ac_func in nanosleep | |
32588 | do | |
32589 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32590 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32591 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32592 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32594 | else | |
32595 | cat >conftest.$ac_ext <<_ACEOF | |
32596 | /* confdefs.h. */ | |
32597 | _ACEOF | |
32598 | cat confdefs.h >>conftest.$ac_ext | |
32599 | cat >>conftest.$ac_ext <<_ACEOF | |
32600 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32601 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32602 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32603 | #define $ac_func innocuous_$ac_func | |
32604 | ||
a848cd7e SC |
32605 | /* System header to define __stub macros and hopefully few prototypes, |
32606 | which can conflict with char $ac_func (); below. | |
32607 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32608 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32609 | |
a848cd7e SC |
32610 | #ifdef __STDC__ |
32611 | # include <limits.h> | |
32612 | #else | |
32613 | # include <assert.h> | |
32614 | #endif | |
ac1cb8d3 VS |
32615 | |
32616 | #undef $ac_func | |
32617 | ||
a848cd7e SC |
32618 | /* Override any gcc2 internal prototype to avoid an error. */ |
32619 | #ifdef __cplusplus | |
32620 | extern "C" | |
32621 | { | |
32622 | #endif | |
32623 | /* We use char because int might match the return type of a gcc2 | |
32624 | builtin and then its argument prototype would still apply. */ | |
32625 | char $ac_func (); | |
32626 | /* The GNU C library defines this for functions which it implements | |
32627 | to always fail with ENOSYS. Some functions are actually named | |
32628 | something starting with __ and the normal name is an alias. */ | |
32629 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32630 | choke me | |
32631 | #else | |
32632 | char (*f) () = $ac_func; | |
32633 | #endif | |
32634 | #ifdef __cplusplus | |
32635 | } | |
32636 | #endif | |
32637 | ||
32638 | int | |
32639 | main () | |
32640 | { | |
32641 | return f != $ac_func; | |
32642 | ; | |
32643 | return 0; | |
32644 | } | |
32645 | _ACEOF | |
32646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32648 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32649 | ac_status=$? |
ac1cb8d3 VS |
32650 | grep -v '^ *+' conftest.er1 >conftest.err |
32651 | rm -f conftest.er1 | |
32652 | cat conftest.err >&5 | |
a848cd7e SC |
32653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32654 | (exit $ac_status); } && | |
9dd0f6c2 | 32655 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32657 | (eval $ac_try) 2>&5 | |
32658 | ac_status=$? | |
32659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32660 | (exit $ac_status); }; } && | |
32661 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32663 | (eval $ac_try) 2>&5 | |
32664 | ac_status=$? | |
32665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32666 | (exit $ac_status); }; }; then | |
32667 | eval "$as_ac_var=yes" | |
32668 | else | |
32669 | echo "$as_me: failed program was:" >&5 | |
32670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32671 | ||
32672 | eval "$as_ac_var=no" | |
32673 | fi | |
ac1cb8d3 VS |
32674 | rm -f conftest.err conftest.$ac_objext \ |
32675 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32676 | fi |
32677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32678 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32679 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32680 | cat >>confdefs.h <<_ACEOF | |
32681 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32682 | _ACEOF | |
32683 | cat >>confdefs.h <<\_ACEOF | |
32684 | #define HAVE_NANOSLEEP 1 | |
32685 | _ACEOF | |
32686 | ||
32687 | else | |
32688 | ||
32689 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
32690 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
32691 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
32692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32693 | else | |
32694 | ac_check_lib_save_LIBS=$LIBS | |
32695 | LIBS="-lposix4 $LIBS" | |
32696 | cat >conftest.$ac_ext <<_ACEOF | |
32697 | /* confdefs.h. */ | |
32698 | _ACEOF | |
32699 | cat confdefs.h >>conftest.$ac_ext | |
32700 | cat >>conftest.$ac_ext <<_ACEOF | |
32701 | /* end confdefs.h. */ | |
32702 | ||
32703 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32704 | #ifdef __cplusplus | |
32705 | extern "C" | |
32706 | #endif | |
32707 | /* We use char because int might match the return type of a gcc2 | |
32708 | builtin and then its argument prototype would still apply. */ | |
32709 | char nanosleep (); | |
32710 | int | |
32711 | main () | |
32712 | { | |
32713 | nanosleep (); | |
32714 | ; | |
32715 | return 0; | |
32716 | } | |
32717 | _ACEOF | |
32718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32720 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32721 | ac_status=$? |
ac1cb8d3 VS |
32722 | grep -v '^ *+' conftest.er1 >conftest.err |
32723 | rm -f conftest.er1 | |
32724 | cat conftest.err >&5 | |
a848cd7e SC |
32725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32726 | (exit $ac_status); } && | |
9dd0f6c2 | 32727 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32729 | (eval $ac_try) 2>&5 | |
32730 | ac_status=$? | |
32731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32732 | (exit $ac_status); }; } && | |
32733 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32735 | (eval $ac_try) 2>&5 | |
32736 | ac_status=$? | |
32737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32738 | (exit $ac_status); }; }; then | |
32739 | ac_cv_lib_posix4_nanosleep=yes | |
32740 | else | |
32741 | echo "$as_me: failed program was:" >&5 | |
32742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32743 | ||
32744 | ac_cv_lib_posix4_nanosleep=no | |
32745 | fi | |
ac1cb8d3 VS |
32746 | rm -f conftest.err conftest.$ac_objext \ |
32747 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32748 | LIBS=$ac_check_lib_save_LIBS |
32749 | fi | |
32750 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
32751 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
32752 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
32753 | ||
32754 | cat >>confdefs.h <<\_ACEOF | |
32755 | #define HAVE_NANOSLEEP 1 | |
32756 | _ACEOF | |
32757 | ||
32758 | POSIX4_LINK=" -lposix4" | |
32759 | ||
32760 | else | |
32761 | ||
32762 | ||
32763 | for ac_func in usleep | |
32764 | do | |
32765 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32766 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32767 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32768 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32770 | else | |
32771 | cat >conftest.$ac_ext <<_ACEOF | |
32772 | /* confdefs.h. */ | |
32773 | _ACEOF | |
32774 | cat confdefs.h >>conftest.$ac_ext | |
32775 | cat >>conftest.$ac_ext <<_ACEOF | |
32776 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32777 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32778 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32779 | #define $ac_func innocuous_$ac_func | |
32780 | ||
a848cd7e SC |
32781 | /* System header to define __stub macros and hopefully few prototypes, |
32782 | which can conflict with char $ac_func (); below. | |
32783 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32784 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32785 | |
a848cd7e SC |
32786 | #ifdef __STDC__ |
32787 | # include <limits.h> | |
32788 | #else | |
32789 | # include <assert.h> | |
32790 | #endif | |
ac1cb8d3 VS |
32791 | |
32792 | #undef $ac_func | |
32793 | ||
a848cd7e SC |
32794 | /* Override any gcc2 internal prototype to avoid an error. */ |
32795 | #ifdef __cplusplus | |
32796 | extern "C" | |
32797 | { | |
32798 | #endif | |
32799 | /* We use char because int might match the return type of a gcc2 | |
32800 | builtin and then its argument prototype would still apply. */ | |
32801 | char $ac_func (); | |
32802 | /* The GNU C library defines this for functions which it implements | |
32803 | to always fail with ENOSYS. Some functions are actually named | |
32804 | something starting with __ and the normal name is an alias. */ | |
32805 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32806 | choke me | |
32807 | #else | |
32808 | char (*f) () = $ac_func; | |
32809 | #endif | |
32810 | #ifdef __cplusplus | |
32811 | } | |
32812 | #endif | |
32813 | ||
32814 | int | |
32815 | main () | |
32816 | { | |
32817 | return f != $ac_func; | |
32818 | ; | |
32819 | return 0; | |
32820 | } | |
32821 | _ACEOF | |
32822 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32824 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32825 | ac_status=$? |
ac1cb8d3 VS |
32826 | grep -v '^ *+' conftest.er1 >conftest.err |
32827 | rm -f conftest.er1 | |
32828 | cat conftest.err >&5 | |
a848cd7e SC |
32829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32830 | (exit $ac_status); } && | |
9dd0f6c2 | 32831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32833 | (eval $ac_try) 2>&5 | |
32834 | ac_status=$? | |
32835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32836 | (exit $ac_status); }; } && | |
32837 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32839 | (eval $ac_try) 2>&5 | |
32840 | ac_status=$? | |
32841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32842 | (exit $ac_status); }; }; then | |
32843 | eval "$as_ac_var=yes" | |
32844 | else | |
32845 | echo "$as_me: failed program was:" >&5 | |
32846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32847 | ||
32848 | eval "$as_ac_var=no" | |
32849 | fi | |
ac1cb8d3 VS |
32850 | rm -f conftest.err conftest.$ac_objext \ |
32851 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32852 | fi |
32853 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32854 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32855 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32856 | cat >>confdefs.h <<_ACEOF | |
32857 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32858 | _ACEOF | |
32859 | cat >>confdefs.h <<\_ACEOF | |
32860 | #define HAVE_USLEEP 1 | |
32861 | _ACEOF | |
32862 | ||
32863 | else | |
32864 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
32865 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
32866 | ||
32867 | fi | |
32868 | done | |
32869 | ||
32870 | ||
32871 | ||
32872 | fi | |
32873 | ||
32874 | ||
32875 | ||
32876 | fi | |
32877 | done | |
32878 | ||
32879 | fi | |
32880 | ||
32881 | ||
32882 | ||
32883 | for ac_func in uname gethostname | |
32884 | do | |
32885 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32886 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32887 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32888 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32890 | else | |
32891 | cat >conftest.$ac_ext <<_ACEOF | |
32892 | /* confdefs.h. */ | |
32893 | _ACEOF | |
32894 | cat confdefs.h >>conftest.$ac_ext | |
32895 | cat >>conftest.$ac_ext <<_ACEOF | |
32896 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32897 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32898 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32899 | #define $ac_func innocuous_$ac_func | |
32900 | ||
a848cd7e SC |
32901 | /* System header to define __stub macros and hopefully few prototypes, |
32902 | which can conflict with char $ac_func (); below. | |
32903 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32904 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32905 | |
a848cd7e SC |
32906 | #ifdef __STDC__ |
32907 | # include <limits.h> | |
32908 | #else | |
32909 | # include <assert.h> | |
32910 | #endif | |
ac1cb8d3 VS |
32911 | |
32912 | #undef $ac_func | |
32913 | ||
a848cd7e SC |
32914 | /* Override any gcc2 internal prototype to avoid an error. */ |
32915 | #ifdef __cplusplus | |
32916 | extern "C" | |
32917 | { | |
32918 | #endif | |
32919 | /* We use char because int might match the return type of a gcc2 | |
32920 | builtin and then its argument prototype would still apply. */ | |
32921 | char $ac_func (); | |
32922 | /* The GNU C library defines this for functions which it implements | |
32923 | to always fail with ENOSYS. Some functions are actually named | |
32924 | something starting with __ and the normal name is an alias. */ | |
32925 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32926 | choke me | |
32927 | #else | |
32928 | char (*f) () = $ac_func; | |
32929 | #endif | |
32930 | #ifdef __cplusplus | |
32931 | } | |
32932 | #endif | |
32933 | ||
32934 | int | |
32935 | main () | |
32936 | { | |
32937 | return f != $ac_func; | |
32938 | ; | |
32939 | return 0; | |
32940 | } | |
32941 | _ACEOF | |
32942 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32944 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32945 | ac_status=$? |
ac1cb8d3 VS |
32946 | grep -v '^ *+' conftest.er1 >conftest.err |
32947 | rm -f conftest.er1 | |
32948 | cat conftest.err >&5 | |
a848cd7e SC |
32949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32950 | (exit $ac_status); } && | |
9dd0f6c2 | 32951 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32953 | (eval $ac_try) 2>&5 | |
32954 | ac_status=$? | |
32955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32956 | (exit $ac_status); }; } && | |
32957 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32959 | (eval $ac_try) 2>&5 | |
32960 | ac_status=$? | |
32961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32962 | (exit $ac_status); }; }; then | |
32963 | eval "$as_ac_var=yes" | |
32964 | else | |
32965 | echo "$as_me: failed program was:" >&5 | |
32966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32967 | ||
32968 | eval "$as_ac_var=no" | |
32969 | fi | |
ac1cb8d3 VS |
32970 | rm -f conftest.err conftest.$ac_objext \ |
32971 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32972 | fi |
32973 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32974 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32975 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32976 | cat >>confdefs.h <<_ACEOF | |
32977 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32978 | _ACEOF | |
32979 | break | |
32980 | fi | |
32981 | done | |
32982 | ||
32983 | ||
32984 | ||
32985 | ||
32986 | ac_ext=cc | |
32987 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32988 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32989 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32990 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32991 | ||
32992 | ||
32993 | ||
32994 | for ac_func in strtok_r | |
32995 | do | |
32996 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32997 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32998 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32999 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33001 | else | |
33002 | cat >conftest.$ac_ext <<_ACEOF | |
33003 | /* confdefs.h. */ | |
33004 | _ACEOF | |
33005 | cat confdefs.h >>conftest.$ac_ext | |
33006 | cat >>conftest.$ac_ext <<_ACEOF | |
33007 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33008 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33009 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33010 | #define $ac_func innocuous_$ac_func | |
33011 | ||
a848cd7e SC |
33012 | /* System header to define __stub macros and hopefully few prototypes, |
33013 | which can conflict with char $ac_func (); below. | |
33014 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33015 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33016 | |
a848cd7e SC |
33017 | #ifdef __STDC__ |
33018 | # include <limits.h> | |
33019 | #else | |
33020 | # include <assert.h> | |
33021 | #endif | |
ac1cb8d3 VS |
33022 | |
33023 | #undef $ac_func | |
33024 | ||
a848cd7e SC |
33025 | /* Override any gcc2 internal prototype to avoid an error. */ |
33026 | #ifdef __cplusplus | |
33027 | extern "C" | |
33028 | { | |
33029 | #endif | |
33030 | /* We use char because int might match the return type of a gcc2 | |
33031 | builtin and then its argument prototype would still apply. */ | |
33032 | char $ac_func (); | |
33033 | /* The GNU C library defines this for functions which it implements | |
33034 | to always fail with ENOSYS. Some functions are actually named | |
33035 | something starting with __ and the normal name is an alias. */ | |
33036 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33037 | choke me | |
33038 | #else | |
33039 | char (*f) () = $ac_func; | |
33040 | #endif | |
33041 | #ifdef __cplusplus | |
33042 | } | |
33043 | #endif | |
33044 | ||
33045 | int | |
33046 | main () | |
33047 | { | |
33048 | return f != $ac_func; | |
33049 | ; | |
33050 | return 0; | |
33051 | } | |
33052 | _ACEOF | |
33053 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33055 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33056 | ac_status=$? |
ac1cb8d3 VS |
33057 | grep -v '^ *+' conftest.er1 >conftest.err |
33058 | rm -f conftest.er1 | |
33059 | cat conftest.err >&5 | |
a848cd7e SC |
33060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33061 | (exit $ac_status); } && | |
9dd0f6c2 | 33062 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33064 | (eval $ac_try) 2>&5 | |
33065 | ac_status=$? | |
33066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33067 | (exit $ac_status); }; } && | |
33068 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33070 | (eval $ac_try) 2>&5 | |
33071 | ac_status=$? | |
33072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33073 | (exit $ac_status); }; }; then | |
33074 | eval "$as_ac_var=yes" | |
33075 | else | |
33076 | echo "$as_me: failed program was:" >&5 | |
33077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33078 | ||
33079 | eval "$as_ac_var=no" | |
33080 | fi | |
ac1cb8d3 VS |
33081 | rm -f conftest.err conftest.$ac_objext \ |
33082 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33083 | fi |
33084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33085 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33086 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33087 | cat >>confdefs.h <<_ACEOF | |
33088 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33089 | _ACEOF | |
33090 | ||
33091 | fi | |
33092 | done | |
33093 | ||
33094 | ||
33095 | ac_ext=c | |
33096 | ac_cpp='$CPP $CPPFLAGS' | |
33097 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33098 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33099 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33100 | ||
33101 | ||
33102 | INET_LINK= | |
33103 | ||
33104 | for ac_func in inet_addr | |
33105 | do | |
33106 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33107 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33108 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33109 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33111 | else | |
33112 | cat >conftest.$ac_ext <<_ACEOF | |
33113 | /* confdefs.h. */ | |
33114 | _ACEOF | |
33115 | cat confdefs.h >>conftest.$ac_ext | |
33116 | cat >>conftest.$ac_ext <<_ACEOF | |
33117 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33118 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33119 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33120 | #define $ac_func innocuous_$ac_func | |
33121 | ||
a848cd7e SC |
33122 | /* System header to define __stub macros and hopefully few prototypes, |
33123 | which can conflict with char $ac_func (); below. | |
33124 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33125 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33126 | |
a848cd7e SC |
33127 | #ifdef __STDC__ |
33128 | # include <limits.h> | |
33129 | #else | |
33130 | # include <assert.h> | |
33131 | #endif | |
ac1cb8d3 VS |
33132 | |
33133 | #undef $ac_func | |
33134 | ||
a848cd7e SC |
33135 | /* Override any gcc2 internal prototype to avoid an error. */ |
33136 | #ifdef __cplusplus | |
33137 | extern "C" | |
33138 | { | |
33139 | #endif | |
33140 | /* We use char because int might match the return type of a gcc2 | |
33141 | builtin and then its argument prototype would still apply. */ | |
33142 | char $ac_func (); | |
33143 | /* The GNU C library defines this for functions which it implements | |
33144 | to always fail with ENOSYS. Some functions are actually named | |
33145 | something starting with __ and the normal name is an alias. */ | |
33146 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33147 | choke me | |
33148 | #else | |
33149 | char (*f) () = $ac_func; | |
33150 | #endif | |
33151 | #ifdef __cplusplus | |
33152 | } | |
33153 | #endif | |
33154 | ||
33155 | int | |
33156 | main () | |
33157 | { | |
33158 | return f != $ac_func; | |
33159 | ; | |
33160 | return 0; | |
33161 | } | |
33162 | _ACEOF | |
33163 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33165 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33166 | ac_status=$? |
ac1cb8d3 VS |
33167 | grep -v '^ *+' conftest.er1 >conftest.err |
33168 | rm -f conftest.er1 | |
33169 | cat conftest.err >&5 | |
a848cd7e SC |
33170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33171 | (exit $ac_status); } && | |
9dd0f6c2 | 33172 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33174 | (eval $ac_try) 2>&5 | |
33175 | ac_status=$? | |
33176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33177 | (exit $ac_status); }; } && | |
33178 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33180 | (eval $ac_try) 2>&5 | |
33181 | ac_status=$? | |
33182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33183 | (exit $ac_status); }; }; then | |
33184 | eval "$as_ac_var=yes" | |
33185 | else | |
33186 | echo "$as_me: failed program was:" >&5 | |
33187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33188 | ||
33189 | eval "$as_ac_var=no" | |
33190 | fi | |
ac1cb8d3 VS |
33191 | rm -f conftest.err conftest.$ac_objext \ |
33192 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33193 | fi |
33194 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33195 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33196 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33197 | cat >>confdefs.h <<_ACEOF | |
33198 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33199 | _ACEOF | |
33200 | cat >>confdefs.h <<\_ACEOF | |
33201 | #define HAVE_INET_ADDR 1 | |
33202 | _ACEOF | |
33203 | ||
33204 | else | |
33205 | ||
33206 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
33207 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
33208 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
33209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33210 | else | |
33211 | ac_check_lib_save_LIBS=$LIBS | |
33212 | LIBS="-lnsl $LIBS" | |
33213 | cat >conftest.$ac_ext <<_ACEOF | |
33214 | /* confdefs.h. */ | |
33215 | _ACEOF | |
33216 | cat confdefs.h >>conftest.$ac_ext | |
33217 | cat >>conftest.$ac_ext <<_ACEOF | |
33218 | /* end confdefs.h. */ | |
33219 | ||
33220 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33221 | #ifdef __cplusplus | |
33222 | extern "C" | |
33223 | #endif | |
33224 | /* We use char because int might match the return type of a gcc2 | |
33225 | builtin and then its argument prototype would still apply. */ | |
33226 | char inet_addr (); | |
33227 | int | |
33228 | main () | |
33229 | { | |
33230 | inet_addr (); | |
33231 | ; | |
33232 | return 0; | |
33233 | } | |
33234 | _ACEOF | |
33235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33237 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33238 | ac_status=$? |
ac1cb8d3 VS |
33239 | grep -v '^ *+' conftest.er1 >conftest.err |
33240 | rm -f conftest.er1 | |
33241 | cat conftest.err >&5 | |
a848cd7e SC |
33242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33243 | (exit $ac_status); } && | |
9dd0f6c2 | 33244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33246 | (eval $ac_try) 2>&5 | |
33247 | ac_status=$? | |
33248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33249 | (exit $ac_status); }; } && | |
33250 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33252 | (eval $ac_try) 2>&5 | |
33253 | ac_status=$? | |
33254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33255 | (exit $ac_status); }; }; then | |
33256 | ac_cv_lib_nsl_inet_addr=yes | |
33257 | else | |
33258 | echo "$as_me: failed program was:" >&5 | |
33259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33260 | ||
33261 | ac_cv_lib_nsl_inet_addr=no | |
33262 | fi | |
ac1cb8d3 VS |
33263 | rm -f conftest.err conftest.$ac_objext \ |
33264 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33265 | LIBS=$ac_check_lib_save_LIBS |
33266 | fi | |
33267 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
33268 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
33269 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
33270 | INET_LINK="nsl" | |
33271 | else | |
33272 | ||
33273 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
33274 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
33275 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
33276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33277 | else | |
33278 | ac_check_lib_save_LIBS=$LIBS | |
33279 | LIBS="-lresolv $LIBS" | |
33280 | cat >conftest.$ac_ext <<_ACEOF | |
33281 | /* confdefs.h. */ | |
33282 | _ACEOF | |
33283 | cat confdefs.h >>conftest.$ac_ext | |
33284 | cat >>conftest.$ac_ext <<_ACEOF | |
33285 | /* end confdefs.h. */ | |
33286 | ||
33287 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33288 | #ifdef __cplusplus | |
33289 | extern "C" | |
33290 | #endif | |
33291 | /* We use char because int might match the return type of a gcc2 | |
33292 | builtin and then its argument prototype would still apply. */ | |
33293 | char inet_addr (); | |
33294 | int | |
33295 | main () | |
33296 | { | |
33297 | inet_addr (); | |
33298 | ; | |
33299 | return 0; | |
33300 | } | |
33301 | _ACEOF | |
33302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33304 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33305 | ac_status=$? |
ac1cb8d3 VS |
33306 | grep -v '^ *+' conftest.er1 >conftest.err |
33307 | rm -f conftest.er1 | |
33308 | cat conftest.err >&5 | |
a848cd7e SC |
33309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33310 | (exit $ac_status); } && | |
9dd0f6c2 | 33311 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33313 | (eval $ac_try) 2>&5 | |
33314 | ac_status=$? | |
33315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33316 | (exit $ac_status); }; } && | |
33317 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33319 | (eval $ac_try) 2>&5 | |
33320 | ac_status=$? | |
33321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33322 | (exit $ac_status); }; }; then | |
33323 | ac_cv_lib_resolv_inet_addr=yes | |
33324 | else | |
33325 | echo "$as_me: failed program was:" >&5 | |
33326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33327 | ||
33328 | ac_cv_lib_resolv_inet_addr=no | |
33329 | fi | |
ac1cb8d3 VS |
33330 | rm -f conftest.err conftest.$ac_objext \ |
33331 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33332 | LIBS=$ac_check_lib_save_LIBS |
33333 | fi | |
33334 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
33335 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
33336 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
33337 | INET_LINK="resolv" | |
33338 | else | |
33339 | ||
33340 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
33341 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
33342 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
33343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33344 | else | |
33345 | ac_check_lib_save_LIBS=$LIBS | |
33346 | LIBS="-lsocket $LIBS" | |
33347 | cat >conftest.$ac_ext <<_ACEOF | |
33348 | /* confdefs.h. */ | |
33349 | _ACEOF | |
33350 | cat confdefs.h >>conftest.$ac_ext | |
33351 | cat >>conftest.$ac_ext <<_ACEOF | |
33352 | /* end confdefs.h. */ | |
33353 | ||
33354 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33355 | #ifdef __cplusplus | |
33356 | extern "C" | |
33357 | #endif | |
33358 | /* We use char because int might match the return type of a gcc2 | |
33359 | builtin and then its argument prototype would still apply. */ | |
33360 | char inet_addr (); | |
33361 | int | |
33362 | main () | |
33363 | { | |
33364 | inet_addr (); | |
33365 | ; | |
33366 | return 0; | |
33367 | } | |
33368 | _ACEOF | |
33369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33371 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33372 | ac_status=$? |
ac1cb8d3 VS |
33373 | grep -v '^ *+' conftest.er1 >conftest.err |
33374 | rm -f conftest.er1 | |
33375 | cat conftest.err >&5 | |
a848cd7e SC |
33376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33377 | (exit $ac_status); } && | |
9dd0f6c2 | 33378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33380 | (eval $ac_try) 2>&5 | |
33381 | ac_status=$? | |
33382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33383 | (exit $ac_status); }; } && | |
33384 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33386 | (eval $ac_try) 2>&5 | |
33387 | ac_status=$? | |
33388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33389 | (exit $ac_status); }; }; then | |
33390 | ac_cv_lib_socket_inet_addr=yes | |
33391 | else | |
33392 | echo "$as_me: failed program was:" >&5 | |
33393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33394 | ||
33395 | ac_cv_lib_socket_inet_addr=no | |
33396 | fi | |
ac1cb8d3 VS |
33397 | rm -f conftest.err conftest.$ac_objext \ |
33398 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33399 | LIBS=$ac_check_lib_save_LIBS |
33400 | fi | |
33401 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
33402 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
33403 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
33404 | INET_LINK="socket" | |
33405 | ||
33406 | fi | |
33407 | ||
33408 | ||
33409 | ||
33410 | fi | |
33411 | ||
33412 | ||
33413 | ||
33414 | fi | |
33415 | ||
33416 | ||
33417 | ||
33418 | fi | |
33419 | done | |
33420 | ||
33421 | ||
33422 | ||
33423 | for ac_func in inet_aton | |
33424 | do | |
33425 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33426 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33427 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33428 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33430 | else | |
33431 | cat >conftest.$ac_ext <<_ACEOF | |
33432 | /* confdefs.h. */ | |
33433 | _ACEOF | |
33434 | cat confdefs.h >>conftest.$ac_ext | |
33435 | cat >>conftest.$ac_ext <<_ACEOF | |
33436 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33437 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33438 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33439 | #define $ac_func innocuous_$ac_func | |
33440 | ||
a848cd7e SC |
33441 | /* System header to define __stub macros and hopefully few prototypes, |
33442 | which can conflict with char $ac_func (); below. | |
33443 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33444 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33445 | |
a848cd7e SC |
33446 | #ifdef __STDC__ |
33447 | # include <limits.h> | |
33448 | #else | |
33449 | # include <assert.h> | |
33450 | #endif | |
ac1cb8d3 VS |
33451 | |
33452 | #undef $ac_func | |
33453 | ||
a848cd7e SC |
33454 | /* Override any gcc2 internal prototype to avoid an error. */ |
33455 | #ifdef __cplusplus | |
33456 | extern "C" | |
33457 | { | |
33458 | #endif | |
33459 | /* We use char because int might match the return type of a gcc2 | |
33460 | builtin and then its argument prototype would still apply. */ | |
33461 | char $ac_func (); | |
33462 | /* The GNU C library defines this for functions which it implements | |
33463 | to always fail with ENOSYS. Some functions are actually named | |
33464 | something starting with __ and the normal name is an alias. */ | |
33465 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33466 | choke me | |
33467 | #else | |
33468 | char (*f) () = $ac_func; | |
33469 | #endif | |
33470 | #ifdef __cplusplus | |
33471 | } | |
33472 | #endif | |
33473 | ||
33474 | int | |
33475 | main () | |
33476 | { | |
33477 | return f != $ac_func; | |
33478 | ; | |
33479 | return 0; | |
33480 | } | |
33481 | _ACEOF | |
33482 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33484 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33485 | ac_status=$? |
ac1cb8d3 VS |
33486 | grep -v '^ *+' conftest.er1 >conftest.err |
33487 | rm -f conftest.er1 | |
33488 | cat conftest.err >&5 | |
a848cd7e SC |
33489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33490 | (exit $ac_status); } && | |
9dd0f6c2 | 33491 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33493 | (eval $ac_try) 2>&5 | |
33494 | ac_status=$? | |
33495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33496 | (exit $ac_status); }; } && | |
33497 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33499 | (eval $ac_try) 2>&5 | |
33500 | ac_status=$? | |
33501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33502 | (exit $ac_status); }; }; then | |
33503 | eval "$as_ac_var=yes" | |
33504 | else | |
33505 | echo "$as_me: failed program was:" >&5 | |
33506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33507 | ||
33508 | eval "$as_ac_var=no" | |
33509 | fi | |
ac1cb8d3 VS |
33510 | rm -f conftest.err conftest.$ac_objext \ |
33511 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33512 | fi |
33513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33514 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33515 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33516 | cat >>confdefs.h <<_ACEOF | |
33517 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33518 | _ACEOF | |
33519 | cat >>confdefs.h <<\_ACEOF | |
33520 | #define HAVE_INET_ATON 1 | |
33521 | _ACEOF | |
33522 | ||
33523 | else | |
33524 | ||
33525 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
33526 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
33527 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
33528 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
33529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33530 | else | |
33531 | ac_check_lib_save_LIBS=$LIBS | |
33532 | LIBS="-l$INET_LINK $LIBS" | |
33533 | cat >conftest.$ac_ext <<_ACEOF | |
33534 | /* confdefs.h. */ | |
33535 | _ACEOF | |
33536 | cat confdefs.h >>conftest.$ac_ext | |
33537 | cat >>conftest.$ac_ext <<_ACEOF | |
33538 | /* end confdefs.h. */ | |
33539 | ||
33540 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33541 | #ifdef __cplusplus | |
33542 | extern "C" | |
33543 | #endif | |
33544 | /* We use char because int might match the return type of a gcc2 | |
33545 | builtin and then its argument prototype would still apply. */ | |
33546 | char inet_aton (); | |
33547 | int | |
33548 | main () | |
33549 | { | |
33550 | inet_aton (); | |
33551 | ; | |
33552 | return 0; | |
33553 | } | |
33554 | _ACEOF | |
33555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33557 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33558 | ac_status=$? |
ac1cb8d3 VS |
33559 | grep -v '^ *+' conftest.er1 >conftest.err |
33560 | rm -f conftest.er1 | |
33561 | cat conftest.err >&5 | |
a848cd7e SC |
33562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33563 | (exit $ac_status); } && | |
9dd0f6c2 | 33564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33566 | (eval $ac_try) 2>&5 | |
33567 | ac_status=$? | |
33568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33569 | (exit $ac_status); }; } && | |
33570 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33572 | (eval $ac_try) 2>&5 | |
33573 | ac_status=$? | |
33574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33575 | (exit $ac_status); }; }; then | |
33576 | eval "$as_ac_Lib=yes" | |
33577 | else | |
33578 | echo "$as_me: failed program was:" >&5 | |
33579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33580 | ||
33581 | eval "$as_ac_Lib=no" | |
33582 | fi | |
ac1cb8d3 VS |
33583 | rm -f conftest.err conftest.$ac_objext \ |
33584 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33585 | LIBS=$ac_check_lib_save_LIBS |
33586 | fi | |
33587 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
33588 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
33589 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
33590 | cat >>confdefs.h <<\_ACEOF | |
33591 | #define HAVE_INET_ATON 1 | |
33592 | _ACEOF | |
33593 | ||
33594 | fi | |
33595 | ||
33596 | ||
33597 | fi | |
33598 | done | |
33599 | ||
33600 | ||
33601 | if test "x$INET_LINK" != "x"; then | |
33602 | cat >>confdefs.h <<\_ACEOF | |
33603 | #define HAVE_INET_ADDR 1 | |
33604 | _ACEOF | |
33605 | ||
33606 | INET_LINK=" -l$INET_LINK" | |
33607 | fi | |
33608 | ||
33609 | fi | |
33610 | ||
33611 | ||
33612 | ||
33613 | EXTRALIBS_ESD= | |
33614 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
33615 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
33616 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
33617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33618 | else | |
33619 | ac_check_lib_save_LIBS=$LIBS | |
33620 | LIBS="-lesd $LIBS" | |
33621 | cat >conftest.$ac_ext <<_ACEOF | |
33622 | /* confdefs.h. */ | |
33623 | _ACEOF | |
33624 | cat confdefs.h >>conftest.$ac_ext | |
33625 | cat >>conftest.$ac_ext <<_ACEOF | |
33626 | /* end confdefs.h. */ | |
33627 | ||
33628 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33629 | #ifdef __cplusplus | |
33630 | extern "C" | |
33631 | #endif | |
33632 | /* We use char because int might match the return type of a gcc2 | |
33633 | builtin and then its argument prototype would still apply. */ | |
33634 | char esd_close (); | |
33635 | int | |
33636 | main () | |
33637 | { | |
33638 | esd_close (); | |
33639 | ; | |
33640 | return 0; | |
33641 | } | |
33642 | _ACEOF | |
33643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33645 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33646 | ac_status=$? |
ac1cb8d3 VS |
33647 | grep -v '^ *+' conftest.er1 >conftest.err |
33648 | rm -f conftest.er1 | |
33649 | cat conftest.err >&5 | |
a848cd7e SC |
33650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33651 | (exit $ac_status); } && | |
9dd0f6c2 | 33652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
33658 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33660 | (eval $ac_try) 2>&5 | |
33661 | ac_status=$? | |
33662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33663 | (exit $ac_status); }; }; then | |
33664 | ac_cv_lib_esd_esd_close=yes | |
33665 | else | |
33666 | echo "$as_me: failed program was:" >&5 | |
33667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33668 | ||
33669 | ac_cv_lib_esd_esd_close=no | |
33670 | fi | |
ac1cb8d3 VS |
33671 | rm -f conftest.err conftest.$ac_objext \ |
33672 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33673 | LIBS=$ac_check_lib_save_LIBS |
33674 | fi | |
33675 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
33676 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
33677 | if test $ac_cv_lib_esd_esd_close = yes; then | |
33678 | ||
33679 | ||
33680 | for ac_header in esd.h | |
33681 | do | |
33682 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33683 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33684 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33685 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33686 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33688 | fi | |
33689 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33690 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33691 | else | |
33692 | # Is the header compilable? | |
33693 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33694 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33695 | cat >conftest.$ac_ext <<_ACEOF | |
33696 | /* confdefs.h. */ | |
33697 | _ACEOF | |
33698 | cat confdefs.h >>conftest.$ac_ext | |
33699 | cat >>conftest.$ac_ext <<_ACEOF | |
33700 | /* end confdefs.h. */ | |
33701 | $ac_includes_default | |
33702 | #include <$ac_header> | |
33703 | _ACEOF | |
33704 | rm -f conftest.$ac_objext | |
33705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33706 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33707 | ac_status=$? |
ac1cb8d3 VS |
33708 | grep -v '^ *+' conftest.er1 >conftest.err |
33709 | rm -f conftest.er1 | |
33710 | cat conftest.err >&5 | |
a848cd7e SC |
33711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33712 | (exit $ac_status); } && | |
9dd0f6c2 | 33713 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33715 | (eval $ac_try) 2>&5 | |
33716 | ac_status=$? | |
33717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33718 | (exit $ac_status); }; } && | |
33719 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33721 | (eval $ac_try) 2>&5 | |
33722 | ac_status=$? | |
33723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33724 | (exit $ac_status); }; }; then | |
33725 | ac_header_compiler=yes | |
33726 | else | |
33727 | echo "$as_me: failed program was:" >&5 | |
33728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33729 | ||
33730 | ac_header_compiler=no | |
33731 | fi | |
ac1cb8d3 | 33732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33733 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33734 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33735 | ||
33736 | # Is the header present? | |
33737 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33738 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33739 | cat >conftest.$ac_ext <<_ACEOF | |
33740 | /* confdefs.h. */ | |
33741 | _ACEOF | |
33742 | cat confdefs.h >>conftest.$ac_ext | |
33743 | cat >>conftest.$ac_ext <<_ACEOF | |
33744 | /* end confdefs.h. */ | |
33745 | #include <$ac_header> | |
33746 | _ACEOF | |
33747 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33748 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33749 | ac_status=$? | |
33750 | grep -v '^ *+' conftest.er1 >conftest.err | |
33751 | rm -f conftest.er1 | |
33752 | cat conftest.err >&5 | |
33753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33754 | (exit $ac_status); } >/dev/null; then | |
33755 | if test -s conftest.err; then | |
33756 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33757 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33758 | else |
33759 | ac_cpp_err= | |
33760 | fi | |
33761 | else | |
33762 | ac_cpp_err=yes | |
33763 | fi | |
33764 | if test -z "$ac_cpp_err"; then | |
33765 | ac_header_preproc=yes | |
33766 | else | |
33767 | echo "$as_me: failed program was:" >&5 | |
33768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33769 | ||
33770 | ac_header_preproc=no | |
33771 | fi | |
33772 | rm -f conftest.err conftest.$ac_ext | |
33773 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33774 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33775 | ||
33776 | # So? What about this header? | |
ac1cb8d3 VS |
33777 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33778 | yes:no: ) | |
a848cd7e SC |
33779 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33780 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33781 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33782 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33783 | ac_header_preproc=yes | |
a848cd7e | 33784 | ;; |
ac1cb8d3 | 33785 | no:yes:* ) |
a848cd7e SC |
33786 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33787 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33788 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33789 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33790 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33791 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33792 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33793 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33794 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33795 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33796 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33797 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33798 | ( |
33799 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33800 | ## ----------------------------------------- ## |
33801 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33802 | ## ----------------------------------------- ## | |
a848cd7e SC |
33803 | _ASBOX |
33804 | ) | | |
33805 | sed "s/^/$as_me: WARNING: /" >&2 | |
33806 | ;; | |
33807 | esac | |
33808 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33809 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33810 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33812 | else | |
ac1cb8d3 | 33813 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33814 | fi |
33815 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33816 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33817 | ||
33818 | fi | |
33819 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33820 | cat >>confdefs.h <<_ACEOF | |
33821 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33822 | _ACEOF | |
33823 | ||
33824 | EXTRALIBS_ESD="-lesd" | |
33825 | ||
33826 | fi | |
33827 | ||
33828 | done | |
33829 | ||
33830 | ||
33831 | fi | |
33832 | ||
33833 | ||
33834 | ||
33835 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
33836 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
33837 | cat >conftest.$ac_ext <<_ACEOF | |
33838 | /* confdefs.h. */ | |
33839 | _ACEOF | |
33840 | cat confdefs.h >>conftest.$ac_ext | |
33841 | cat >>conftest.$ac_ext <<_ACEOF | |
33842 | /* end confdefs.h. */ | |
33843 | #ifdef __linux__ | |
33844 | #include <linux/cdrom.h> | |
33845 | #else | |
33846 | /* For Solaris */ | |
33847 | #include <sys/cdio.h> | |
33848 | #endif | |
33849 | ||
33850 | int | |
33851 | main () | |
33852 | { | |
33853 | struct cdrom_tocentry entry, old_entry; | |
33854 | ; | |
33855 | return 0; | |
33856 | } | |
33857 | _ACEOF | |
33858 | rm -f conftest.$ac_objext | |
33859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33860 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33861 | ac_status=$? |
ac1cb8d3 VS |
33862 | grep -v '^ *+' conftest.er1 >conftest.err |
33863 | rm -f conftest.er1 | |
33864 | cat conftest.err >&5 | |
a848cd7e SC |
33865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33866 | (exit $ac_status); } && | |
9dd0f6c2 | 33867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33869 | (eval $ac_try) 2>&5 | |
33870 | ac_status=$? | |
33871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33872 | (exit $ac_status); }; } && | |
33873 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33875 | (eval $ac_try) 2>&5 | |
33876 | ac_status=$? | |
33877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33878 | (exit $ac_status); }; }; then | |
33879 | echo "$as_me:$LINENO: result: yes" >&5 | |
33880 | echo "${ECHO_T}yes" >&6 | |
33881 | cat >>confdefs.h <<\_ACEOF | |
33882 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
33883 | _ACEOF | |
33884 | ||
33885 | else | |
33886 | echo "$as_me: failed program was:" >&5 | |
33887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33888 | ||
33889 | echo "$as_me:$LINENO: result: no" >&5 | |
33890 | echo "${ECHO_T}no" >&6 | |
33891 | fi | |
ac1cb8d3 | 33892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33893 | |
33894 | ||
33895 | cat >confcache <<\_ACEOF | |
33896 | # This file is a shell script that caches the results of configure | |
33897 | # tests run on this system so they can be shared between configure | |
33898 | # scripts and configure runs, see configure's option --config-cache. | |
33899 | # It is not useful on other systems. If it contains results you don't | |
33900 | # want to keep, you may remove or edit it. | |
33901 | # | |
33902 | # config.status only pays attention to the cache file if you give it | |
33903 | # the --recheck option to rerun configure. | |
33904 | # | |
33905 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
33906 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
33907 | # following values. | |
33908 | ||
33909 | _ACEOF | |
33910 | ||
33911 | # The following way of writing the cache mishandles newlines in values, | |
33912 | # but we know of no workaround that is simple, portable, and efficient. | |
33913 | # So, don't put newlines in cache variables' values. | |
33914 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
33915 | # and sets the high bit in the cache file unless we assign to the vars. | |
33916 | { | |
33917 | (set) 2>&1 | | |
33918 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
33919 | *ac_space=\ *) | |
33920 | # `set' does not quote correctly, so add quotes (double-quote | |
33921 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
33922 | sed -n \ | |
ac1cb8d3 VS |
33923 | "s/'/'\\\\''/g; |
33924 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
33925 | ;; |
33926 | *) | |
33927 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
33928 | sed -n \ | |
ac1cb8d3 | 33929 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
33930 | ;; |
33931 | esac; | |
33932 | } | | |
33933 | sed ' | |
33934 | t clear | |
33935 | : clear | |
33936 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
33937 | t end | |
33938 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
33939 | : end' >>confcache | |
33940 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
33941 | if test -w $cache_file; then | |
33942 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
33943 | cat confcache >$cache_file | |
33944 | else | |
33945 | echo "not updating unwritable cache $cache_file" | |
33946 | fi | |
33947 | fi | |
33948 | rm -f confcache | |
33949 | ||
33950 | ||
33951 | CPP_MT_FLAG= | |
33952 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33953 | ||
33954 | ||
33955 | THREADS_LINK= | |
33956 | THREADS_CFLAGS= | |
33957 | ||
33958 | if test "$wxUSE_THREADS" = "yes" ; then | |
33959 | if test "$USE_BEOS" = 1; then | |
33960 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
33961 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
33962 | wxUSE_THREADS="no" | |
33963 | fi | |
33964 | fi | |
33965 | ||
33966 | if test "$wxUSE_THREADS" = "yes" ; then | |
33967 | ||
33968 | ||
33969 | THREAD_OPTS="-pthread" | |
33970 | case "${host}" in | |
33971 | *-*-solaris2* | *-*-sunos4* ) | |
33972 | if test "x$GCC" = "xyes"; then | |
33973 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
33974 | else | |
33975 | THREAD_OPTS="-mt $THREAD_OPTS" | |
33976 | fi | |
33977 | ;; | |
33978 | *-*-freebsd*) | |
33979 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
33980 | ;; | |
33981 | *-*-darwin* | *-*-cygwin* ) | |
33982 | THREAD_OPTS="" | |
33983 | ;; | |
33984 | *-*-aix*) | |
33985 | THREAD_OPTS="pthreads" | |
33986 | ;; | |
33987 | *-hp-hpux* ) | |
33988 | if test "x$GCC" != "xyes"; then | |
33989 | THREAD_OPTS="" | |
33990 | fi | |
33991 | ;; | |
33992 | ||
33993 | *-*-irix* ) | |
33994 | if test "x$GCC" = "xyes"; then | |
33995 | THREAD_OPTS="" | |
33996 | fi | |
33997 | ;; | |
33998 | ||
33999 | *-*-*UnixWare*) | |
34000 | if test "x$GCC" != "xyes"; then | |
34001 | THREAD_OPTS="-Ethread" | |
34002 | fi | |
34003 | ;; | |
34004 | esac | |
34005 | ||
34006 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
34007 | ||
34008 | THREADS_OK=no | |
34009 | for flag in $THREAD_OPTS; do | |
34010 | case $flag in | |
34011 | none) | |
34012 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
34013 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
34014 | ;; | |
34015 | ||
34016 | -*) | |
34017 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
34018 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
34019 | THREADS_CFLAGS="$flag" | |
34020 | ;; | |
34021 | ||
34022 | *) | |
34023 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
34024 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
34025 | THREADS_LINK="-l$flag" | |
34026 | ;; | |
34027 | esac | |
34028 | ||
34029 | save_LIBS="$LIBS" | |
34030 | save_CFLAGS="$CFLAGS" | |
34031 | LIBS="$THREADS_LINK $LIBS" | |
34032 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
34033 | ||
34034 | cat >conftest.$ac_ext <<_ACEOF | |
34035 | /* confdefs.h. */ | |
34036 | _ACEOF | |
34037 | cat confdefs.h >>conftest.$ac_ext | |
34038 | cat >>conftest.$ac_ext <<_ACEOF | |
34039 | /* end confdefs.h. */ | |
34040 | #include <pthread.h> | |
34041 | int | |
34042 | main () | |
34043 | { | |
34044 | pthread_create(0,0,0,0); | |
34045 | ; | |
34046 | return 0; | |
34047 | } | |
34048 | _ACEOF | |
34049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34051 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34052 | ac_status=$? |
ac1cb8d3 VS |
34053 | grep -v '^ *+' conftest.er1 >conftest.err |
34054 | rm -f conftest.er1 | |
34055 | cat conftest.err >&5 | |
a848cd7e SC |
34056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34057 | (exit $ac_status); } && | |
9dd0f6c2 | 34058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34060 | (eval $ac_try) 2>&5 | |
34061 | ac_status=$? | |
34062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34063 | (exit $ac_status); }; } && | |
34064 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34066 | (eval $ac_try) 2>&5 | |
34067 | ac_status=$? | |
34068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34069 | (exit $ac_status); }; }; then | |
34070 | THREADS_OK=yes | |
34071 | else | |
34072 | echo "$as_me: failed program was:" >&5 | |
34073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34074 | ||
34075 | fi | |
ac1cb8d3 VS |
34076 | rm -f conftest.err conftest.$ac_objext \ |
34077 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34078 | |
34079 | LIBS="$save_LIBS" | |
34080 | CFLAGS="$save_CFLAGS" | |
34081 | ||
34082 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
34083 | echo "${ECHO_T}$THREADS_OK" >&6 | |
34084 | if test "x$THREADS_OK" = "xyes"; then | |
34085 | break; | |
34086 | fi | |
34087 | ||
34088 | THREADS_LINK="" | |
34089 | THREADS_CFLAGS="" | |
34090 | done | |
34091 | ||
34092 | if test "x$THREADS_OK" != "xyes"; then | |
34093 | wxUSE_THREADS=no | |
34094 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
34095 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
34096 | else | |
34097 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
34098 | LIBS="$THREADS_LINK $LIBS" | |
34099 | ||
34100 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
34101 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
34102 | flag=no | |
34103 | case "${host}" in | |
34104 | *-aix*) | |
34105 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
34106 | flag="-D_THREAD_SAFE" | |
34107 | ;; | |
34108 | *-freebsd*) | |
34109 | flag="-D_THREAD_SAFE" | |
34110 | ;; | |
34111 | *-hp-hpux* ) | |
34112 | flag="-D_REENTRANT" | |
34113 | if test "x$GCC" != "xyes"; then | |
34114 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
34115 | fi | |
34116 | ;; | |
34117 | *solaris* | alpha*-osf*) | |
34118 | flag="-D_REENTRANT" | |
34119 | ;; | |
34120 | esac | |
34121 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
34122 | echo "${ECHO_T}${flag}" >&6 | |
34123 | if test "x$flag" != xno; then | |
34124 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
34125 | fi | |
34126 | ||
34127 | if test "x$THREADS_CFLAGS" != "x"; then | |
34128 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
34129 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
34130 | fi | |
34131 | fi | |
34132 | fi | |
34133 | ||
34134 | if test "$wxUSE_THREADS" = "yes" ; then | |
34135 | ||
34136 | for ac_func in thr_setconcurrency | |
34137 | do | |
34138 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34139 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34140 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34141 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34143 | else | |
34144 | cat >conftest.$ac_ext <<_ACEOF | |
34145 | /* confdefs.h. */ | |
34146 | _ACEOF | |
34147 | cat confdefs.h >>conftest.$ac_ext | |
34148 | cat >>conftest.$ac_ext <<_ACEOF | |
34149 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34150 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34152 | #define $ac_func innocuous_$ac_func | |
34153 | ||
a848cd7e SC |
34154 | /* System header to define __stub macros and hopefully few prototypes, |
34155 | which can conflict with char $ac_func (); below. | |
34156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34157 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34158 | |
a848cd7e SC |
34159 | #ifdef __STDC__ |
34160 | # include <limits.h> | |
34161 | #else | |
34162 | # include <assert.h> | |
34163 | #endif | |
ac1cb8d3 VS |
34164 | |
34165 | #undef $ac_func | |
34166 | ||
a848cd7e SC |
34167 | /* Override any gcc2 internal prototype to avoid an error. */ |
34168 | #ifdef __cplusplus | |
34169 | extern "C" | |
34170 | { | |
34171 | #endif | |
34172 | /* We use char because int might match the return type of a gcc2 | |
34173 | builtin and then its argument prototype would still apply. */ | |
34174 | char $ac_func (); | |
34175 | /* The GNU C library defines this for functions which it implements | |
34176 | to always fail with ENOSYS. Some functions are actually named | |
34177 | something starting with __ and the normal name is an alias. */ | |
34178 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34179 | choke me | |
34180 | #else | |
34181 | char (*f) () = $ac_func; | |
34182 | #endif | |
34183 | #ifdef __cplusplus | |
34184 | } | |
34185 | #endif | |
34186 | ||
34187 | int | |
34188 | main () | |
34189 | { | |
34190 | return f != $ac_func; | |
34191 | ; | |
34192 | return 0; | |
34193 | } | |
34194 | _ACEOF | |
34195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34197 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34198 | ac_status=$? |
ac1cb8d3 VS |
34199 | grep -v '^ *+' conftest.er1 >conftest.err |
34200 | rm -f conftest.er1 | |
34201 | cat conftest.err >&5 | |
a848cd7e SC |
34202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34203 | (exit $ac_status); } && | |
9dd0f6c2 | 34204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34206 | (eval $ac_try) 2>&5 | |
34207 | ac_status=$? | |
34208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34209 | (exit $ac_status); }; } && | |
34210 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34212 | (eval $ac_try) 2>&5 | |
34213 | ac_status=$? | |
34214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34215 | (exit $ac_status); }; }; then | |
34216 | eval "$as_ac_var=yes" | |
34217 | else | |
34218 | echo "$as_me: failed program was:" >&5 | |
34219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34220 | ||
34221 | eval "$as_ac_var=no" | |
34222 | fi | |
ac1cb8d3 VS |
34223 | rm -f conftest.err conftest.$ac_objext \ |
34224 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34225 | fi |
34226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34227 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34228 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34229 | cat >>confdefs.h <<_ACEOF | |
34230 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34231 | _ACEOF | |
34232 | ||
34233 | fi | |
34234 | done | |
34235 | ||
34236 | ||
34237 | ||
34238 | for ac_header in sched.h | |
34239 | do | |
34240 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
34241 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34242 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34243 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34244 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34246 | fi | |
34247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34248 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34249 | else | |
34250 | # Is the header compilable? | |
34251 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34252 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34253 | cat >conftest.$ac_ext <<_ACEOF | |
34254 | /* confdefs.h. */ | |
34255 | _ACEOF | |
34256 | cat confdefs.h >>conftest.$ac_ext | |
34257 | cat >>conftest.$ac_ext <<_ACEOF | |
34258 | /* end confdefs.h. */ | |
34259 | $ac_includes_default | |
34260 | #include <$ac_header> | |
34261 | _ACEOF | |
34262 | rm -f conftest.$ac_objext | |
34263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34264 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34265 | ac_status=$? |
ac1cb8d3 VS |
34266 | grep -v '^ *+' conftest.er1 >conftest.err |
34267 | rm -f conftest.er1 | |
34268 | cat conftest.err >&5 | |
a848cd7e SC |
34269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34270 | (exit $ac_status); } && | |
9dd0f6c2 | 34271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34273 | (eval $ac_try) 2>&5 | |
34274 | ac_status=$? | |
34275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34276 | (exit $ac_status); }; } && | |
34277 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34279 | (eval $ac_try) 2>&5 | |
34280 | ac_status=$? | |
34281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34282 | (exit $ac_status); }; }; then | |
34283 | ac_header_compiler=yes | |
34284 | else | |
34285 | echo "$as_me: failed program was:" >&5 | |
34286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34287 | ||
34288 | ac_header_compiler=no | |
34289 | fi | |
ac1cb8d3 | 34290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34291 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34292 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34293 | ||
34294 | # Is the header present? | |
34295 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34296 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34297 | cat >conftest.$ac_ext <<_ACEOF | |
34298 | /* confdefs.h. */ | |
34299 | _ACEOF | |
34300 | cat confdefs.h >>conftest.$ac_ext | |
34301 | cat >>conftest.$ac_ext <<_ACEOF | |
34302 | /* end confdefs.h. */ | |
34303 | #include <$ac_header> | |
34304 | _ACEOF | |
34305 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34306 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34307 | ac_status=$? | |
34308 | grep -v '^ *+' conftest.er1 >conftest.err | |
34309 | rm -f conftest.er1 | |
34310 | cat conftest.err >&5 | |
34311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34312 | (exit $ac_status); } >/dev/null; then | |
34313 | if test -s conftest.err; then | |
34314 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34315 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34316 | else |
34317 | ac_cpp_err= | |
34318 | fi | |
34319 | else | |
34320 | ac_cpp_err=yes | |
34321 | fi | |
34322 | if test -z "$ac_cpp_err"; then | |
34323 | ac_header_preproc=yes | |
34324 | else | |
34325 | echo "$as_me: failed program was:" >&5 | |
34326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34327 | ||
34328 | ac_header_preproc=no | |
34329 | fi | |
34330 | rm -f conftest.err conftest.$ac_ext | |
34331 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34332 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34333 | ||
34334 | # So? What about this header? | |
ac1cb8d3 VS |
34335 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34336 | yes:no: ) | |
a848cd7e SC |
34337 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34338 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34339 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34340 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34341 | ac_header_preproc=yes | |
a848cd7e | 34342 | ;; |
ac1cb8d3 | 34343 | no:yes:* ) |
a848cd7e SC |
34344 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34345 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34346 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34347 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34348 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34349 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34350 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34351 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
34352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34353 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
34354 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34355 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
34356 | ( |
34357 | cat <<\_ASBOX | |
ac1cb8d3 VS |
34358 | ## ----------------------------------------- ## |
34359 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
34360 | ## ----------------------------------------- ## | |
a848cd7e SC |
34361 | _ASBOX |
34362 | ) | | |
34363 | sed "s/^/$as_me: WARNING: /" >&2 | |
34364 | ;; | |
34365 | esac | |
34366 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34367 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34368 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34370 | else | |
ac1cb8d3 | 34371 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34372 | fi |
34373 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34374 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34375 | ||
34376 | fi | |
34377 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34378 | cat >>confdefs.h <<_ACEOF | |
34379 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34380 | _ACEOF | |
34381 | ||
34382 | fi | |
34383 | ||
34384 | done | |
34385 | ||
34386 | if test "$ac_cv_header_sched_h" = "yes"; then | |
34387 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
34388 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
34389 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
34390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34391 | else | |
34392 | cat >conftest.$ac_ext <<_ACEOF | |
34393 | /* confdefs.h. */ | |
34394 | _ACEOF | |
34395 | cat confdefs.h >>conftest.$ac_ext | |
34396 | cat >>conftest.$ac_ext <<_ACEOF | |
34397 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34398 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
34399 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34400 | #define sched_yield innocuous_sched_yield | |
34401 | ||
a848cd7e SC |
34402 | /* System header to define __stub macros and hopefully few prototypes, |
34403 | which can conflict with char sched_yield (); below. | |
34404 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34405 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34406 | |
a848cd7e SC |
34407 | #ifdef __STDC__ |
34408 | # include <limits.h> | |
34409 | #else | |
34410 | # include <assert.h> | |
34411 | #endif | |
ac1cb8d3 VS |
34412 | |
34413 | #undef sched_yield | |
34414 | ||
a848cd7e SC |
34415 | /* Override any gcc2 internal prototype to avoid an error. */ |
34416 | #ifdef __cplusplus | |
34417 | extern "C" | |
34418 | { | |
34419 | #endif | |
34420 | /* We use char because int might match the return type of a gcc2 | |
34421 | builtin and then its argument prototype would still apply. */ | |
34422 | char sched_yield (); | |
34423 | /* The GNU C library defines this for functions which it implements | |
34424 | to always fail with ENOSYS. Some functions are actually named | |
34425 | something starting with __ and the normal name is an alias. */ | |
34426 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
34427 | choke me | |
34428 | #else | |
34429 | char (*f) () = sched_yield; | |
34430 | #endif | |
34431 | #ifdef __cplusplus | |
34432 | } | |
34433 | #endif | |
34434 | ||
34435 | int | |
34436 | main () | |
34437 | { | |
34438 | return f != sched_yield; | |
34439 | ; | |
34440 | return 0; | |
34441 | } | |
34442 | _ACEOF | |
34443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34445 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34446 | ac_status=$? |
ac1cb8d3 VS |
34447 | grep -v '^ *+' conftest.er1 >conftest.err |
34448 | rm -f conftest.er1 | |
34449 | cat conftest.err >&5 | |
a848cd7e SC |
34450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34451 | (exit $ac_status); } && | |
9dd0f6c2 | 34452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34454 | (eval $ac_try) 2>&5 | |
34455 | ac_status=$? | |
34456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34457 | (exit $ac_status); }; } && | |
34458 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34460 | (eval $ac_try) 2>&5 | |
34461 | ac_status=$? | |
34462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34463 | (exit $ac_status); }; }; then | |
34464 | ac_cv_func_sched_yield=yes | |
34465 | else | |
34466 | echo "$as_me: failed program was:" >&5 | |
34467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34468 | ||
34469 | ac_cv_func_sched_yield=no | |
34470 | fi | |
ac1cb8d3 VS |
34471 | rm -f conftest.err conftest.$ac_objext \ |
34472 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34473 | fi |
34474 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
34475 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
34476 | if test $ac_cv_func_sched_yield = yes; then | |
34477 | cat >>confdefs.h <<\_ACEOF | |
34478 | #define HAVE_SCHED_YIELD 1 | |
34479 | _ACEOF | |
34480 | ||
34481 | else | |
34482 | ||
34483 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
34484 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
34485 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
34486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34487 | else | |
34488 | ac_check_lib_save_LIBS=$LIBS | |
34489 | LIBS="-lposix4 $LIBS" | |
34490 | cat >conftest.$ac_ext <<_ACEOF | |
34491 | /* confdefs.h. */ | |
34492 | _ACEOF | |
34493 | cat confdefs.h >>conftest.$ac_ext | |
34494 | cat >>conftest.$ac_ext <<_ACEOF | |
34495 | /* end confdefs.h. */ | |
34496 | ||
34497 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34498 | #ifdef __cplusplus | |
34499 | extern "C" | |
34500 | #endif | |
34501 | /* We use char because int might match the return type of a gcc2 | |
34502 | builtin and then its argument prototype would still apply. */ | |
34503 | char sched_yield (); | |
34504 | int | |
34505 | main () | |
34506 | { | |
34507 | sched_yield (); | |
34508 | ; | |
34509 | return 0; | |
34510 | } | |
34511 | _ACEOF | |
34512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34514 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34515 | ac_status=$? |
ac1cb8d3 VS |
34516 | grep -v '^ *+' conftest.er1 >conftest.err |
34517 | rm -f conftest.er1 | |
34518 | cat conftest.err >&5 | |
a848cd7e SC |
34519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34520 | (exit $ac_status); } && | |
9dd0f6c2 | 34521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34523 | (eval $ac_try) 2>&5 | |
34524 | ac_status=$? | |
34525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34526 | (exit $ac_status); }; } && | |
34527 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34529 | (eval $ac_try) 2>&5 | |
34530 | ac_status=$? | |
34531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34532 | (exit $ac_status); }; }; then | |
34533 | ac_cv_lib_posix4_sched_yield=yes | |
34534 | else | |
34535 | echo "$as_me: failed program was:" >&5 | |
34536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34537 | ||
34538 | ac_cv_lib_posix4_sched_yield=no | |
34539 | fi | |
ac1cb8d3 VS |
34540 | rm -f conftest.err conftest.$ac_objext \ |
34541 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34542 | LIBS=$ac_check_lib_save_LIBS |
34543 | fi | |
34544 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
34545 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
34546 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
34547 | cat >>confdefs.h <<\_ACEOF | |
34548 | #define HAVE_SCHED_YIELD 1 | |
34549 | _ACEOF | |
34550 | POSIX4_LINK=" -lposix4" | |
34551 | else | |
34552 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
34553 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
34554 | ||
34555 | fi | |
34556 | ||
34557 | ||
34558 | ||
34559 | fi | |
34560 | ||
34561 | fi | |
34562 | ||
34563 | HAVE_PRIOR_FUNCS=0 | |
34564 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
34565 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
34566 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
34567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34568 | else | |
34569 | cat >conftest.$ac_ext <<_ACEOF | |
34570 | /* confdefs.h. */ | |
34571 | _ACEOF | |
34572 | cat confdefs.h >>conftest.$ac_ext | |
34573 | cat >>conftest.$ac_ext <<_ACEOF | |
34574 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34575 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
34576 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34577 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
34578 | ||
a848cd7e SC |
34579 | /* System header to define __stub macros and hopefully few prototypes, |
34580 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
34581 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34582 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34583 | |
a848cd7e SC |
34584 | #ifdef __STDC__ |
34585 | # include <limits.h> | |
34586 | #else | |
34587 | # include <assert.h> | |
34588 | #endif | |
ac1cb8d3 VS |
34589 | |
34590 | #undef pthread_attr_getschedpolicy | |
34591 | ||
a848cd7e SC |
34592 | /* Override any gcc2 internal prototype to avoid an error. */ |
34593 | #ifdef __cplusplus | |
34594 | extern "C" | |
34595 | { | |
34596 | #endif | |
34597 | /* We use char because int might match the return type of a gcc2 | |
34598 | builtin and then its argument prototype would still apply. */ | |
34599 | char pthread_attr_getschedpolicy (); | |
34600 | /* The GNU C library defines this for functions which it implements | |
34601 | to always fail with ENOSYS. Some functions are actually named | |
34602 | something starting with __ and the normal name is an alias. */ | |
34603 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
34604 | choke me | |
34605 | #else | |
34606 | char (*f) () = pthread_attr_getschedpolicy; | |
34607 | #endif | |
34608 | #ifdef __cplusplus | |
34609 | } | |
34610 | #endif | |
34611 | ||
34612 | int | |
34613 | main () | |
34614 | { | |
34615 | return f != pthread_attr_getschedpolicy; | |
34616 | ; | |
34617 | return 0; | |
34618 | } | |
34619 | _ACEOF | |
34620 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34622 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34623 | ac_status=$? |
ac1cb8d3 VS |
34624 | grep -v '^ *+' conftest.er1 >conftest.err |
34625 | rm -f conftest.er1 | |
34626 | cat conftest.err >&5 | |
a848cd7e SC |
34627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34628 | (exit $ac_status); } && | |
9dd0f6c2 | 34629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34631 | (eval $ac_try) 2>&5 | |
34632 | ac_status=$? | |
34633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34634 | (exit $ac_status); }; } && | |
34635 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34637 | (eval $ac_try) 2>&5 | |
34638 | ac_status=$? | |
34639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34640 | (exit $ac_status); }; }; then | |
34641 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
34642 | else | |
34643 | echo "$as_me: failed program was:" >&5 | |
34644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34645 | ||
34646 | ac_cv_func_pthread_attr_getschedpolicy=no | |
34647 | fi | |
ac1cb8d3 VS |
34648 | rm -f conftest.err conftest.$ac_objext \ |
34649 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34650 | fi |
34651 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
34652 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
34653 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
34654 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
34655 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
34656 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
34657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34658 | else | |
34659 | cat >conftest.$ac_ext <<_ACEOF | |
34660 | /* confdefs.h. */ | |
34661 | _ACEOF | |
34662 | cat confdefs.h >>conftest.$ac_ext | |
34663 | cat >>conftest.$ac_ext <<_ACEOF | |
34664 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34665 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
34666 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34667 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
34668 | ||
a848cd7e SC |
34669 | /* System header to define __stub macros and hopefully few prototypes, |
34670 | which can conflict with char pthread_attr_setschedparam (); below. | |
34671 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34672 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34673 | |
a848cd7e SC |
34674 | #ifdef __STDC__ |
34675 | # include <limits.h> | |
34676 | #else | |
34677 | # include <assert.h> | |
34678 | #endif | |
ac1cb8d3 VS |
34679 | |
34680 | #undef pthread_attr_setschedparam | |
34681 | ||
a848cd7e SC |
34682 | /* Override any gcc2 internal prototype to avoid an error. */ |
34683 | #ifdef __cplusplus | |
34684 | extern "C" | |
34685 | { | |
34686 | #endif | |
34687 | /* We use char because int might match the return type of a gcc2 | |
34688 | builtin and then its argument prototype would still apply. */ | |
34689 | char pthread_attr_setschedparam (); | |
34690 | /* The GNU C library defines this for functions which it implements | |
34691 | to always fail with ENOSYS. Some functions are actually named | |
34692 | something starting with __ and the normal name is an alias. */ | |
34693 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
34694 | choke me | |
34695 | #else | |
34696 | char (*f) () = pthread_attr_setschedparam; | |
34697 | #endif | |
34698 | #ifdef __cplusplus | |
34699 | } | |
34700 | #endif | |
34701 | ||
34702 | int | |
34703 | main () | |
34704 | { | |
34705 | return f != pthread_attr_setschedparam; | |
34706 | ; | |
34707 | return 0; | |
34708 | } | |
34709 | _ACEOF | |
34710 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34712 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34713 | ac_status=$? |
ac1cb8d3 VS |
34714 | grep -v '^ *+' conftest.er1 >conftest.err |
34715 | rm -f conftest.er1 | |
34716 | cat conftest.err >&5 | |
a848cd7e SC |
34717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34718 | (exit $ac_status); } && | |
9dd0f6c2 | 34719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34721 | (eval $ac_try) 2>&5 | |
34722 | ac_status=$? | |
34723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34724 | (exit $ac_status); }; } && | |
34725 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34727 | (eval $ac_try) 2>&5 | |
34728 | ac_status=$? | |
34729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34730 | (exit $ac_status); }; }; then | |
34731 | ac_cv_func_pthread_attr_setschedparam=yes | |
34732 | else | |
34733 | echo "$as_me: failed program was:" >&5 | |
34734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34735 | ||
34736 | ac_cv_func_pthread_attr_setschedparam=no | |
34737 | fi | |
ac1cb8d3 VS |
34738 | rm -f conftest.err conftest.$ac_objext \ |
34739 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34740 | fi |
34741 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
34742 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
34743 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
34744 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
34745 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
34746 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
34747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34748 | else | |
34749 | cat >conftest.$ac_ext <<_ACEOF | |
34750 | /* confdefs.h. */ | |
34751 | _ACEOF | |
34752 | cat confdefs.h >>conftest.$ac_ext | |
34753 | cat >>conftest.$ac_ext <<_ACEOF | |
34754 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34755 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
34756 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34757 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
34758 | ||
a848cd7e SC |
34759 | /* System header to define __stub macros and hopefully few prototypes, |
34760 | which can conflict with char sched_get_priority_max (); below. | |
34761 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34762 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34763 | |
a848cd7e SC |
34764 | #ifdef __STDC__ |
34765 | # include <limits.h> | |
34766 | #else | |
34767 | # include <assert.h> | |
34768 | #endif | |
ac1cb8d3 VS |
34769 | |
34770 | #undef sched_get_priority_max | |
34771 | ||
a848cd7e SC |
34772 | /* Override any gcc2 internal prototype to avoid an error. */ |
34773 | #ifdef __cplusplus | |
34774 | extern "C" | |
34775 | { | |
34776 | #endif | |
34777 | /* We use char because int might match the return type of a gcc2 | |
34778 | builtin and then its argument prototype would still apply. */ | |
34779 | char sched_get_priority_max (); | |
34780 | /* The GNU C library defines this for functions which it implements | |
34781 | to always fail with ENOSYS. Some functions are actually named | |
34782 | something starting with __ and the normal name is an alias. */ | |
34783 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
34784 | choke me | |
34785 | #else | |
34786 | char (*f) () = sched_get_priority_max; | |
34787 | #endif | |
34788 | #ifdef __cplusplus | |
34789 | } | |
34790 | #endif | |
34791 | ||
34792 | int | |
34793 | main () | |
34794 | { | |
34795 | return f != sched_get_priority_max; | |
34796 | ; | |
34797 | return 0; | |
34798 | } | |
34799 | _ACEOF | |
34800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34802 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34803 | ac_status=$? |
ac1cb8d3 VS |
34804 | grep -v '^ *+' conftest.er1 >conftest.err |
34805 | rm -f conftest.er1 | |
34806 | cat conftest.err >&5 | |
a848cd7e SC |
34807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34808 | (exit $ac_status); } && | |
9dd0f6c2 | 34809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34811 | (eval $ac_try) 2>&5 | |
34812 | ac_status=$? | |
34813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34814 | (exit $ac_status); }; } && | |
34815 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34817 | (eval $ac_try) 2>&5 | |
34818 | ac_status=$? | |
34819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34820 | (exit $ac_status); }; }; then | |
34821 | ac_cv_func_sched_get_priority_max=yes | |
34822 | else | |
34823 | echo "$as_me: failed program was:" >&5 | |
34824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34825 | ||
34826 | ac_cv_func_sched_get_priority_max=no | |
34827 | fi | |
ac1cb8d3 VS |
34828 | rm -f conftest.err conftest.$ac_objext \ |
34829 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34830 | fi |
34831 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
34832 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
34833 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
34834 | HAVE_PRIOR_FUNCS=1 | |
34835 | else | |
34836 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
34837 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
34838 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
34839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34840 | else | |
34841 | ac_check_lib_save_LIBS=$LIBS | |
34842 | LIBS="-lposix4 $LIBS" | |
34843 | cat >conftest.$ac_ext <<_ACEOF | |
34844 | /* confdefs.h. */ | |
34845 | _ACEOF | |
34846 | cat confdefs.h >>conftest.$ac_ext | |
34847 | cat >>conftest.$ac_ext <<_ACEOF | |
34848 | /* end confdefs.h. */ | |
34849 | ||
34850 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34851 | #ifdef __cplusplus | |
34852 | extern "C" | |
34853 | #endif | |
34854 | /* We use char because int might match the return type of a gcc2 | |
34855 | builtin and then its argument prototype would still apply. */ | |
34856 | char sched_get_priority_max (); | |
34857 | int | |
34858 | main () | |
34859 | { | |
34860 | sched_get_priority_max (); | |
34861 | ; | |
34862 | return 0; | |
34863 | } | |
34864 | _ACEOF | |
34865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34867 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34868 | ac_status=$? |
ac1cb8d3 VS |
34869 | grep -v '^ *+' conftest.er1 >conftest.err |
34870 | rm -f conftest.er1 | |
34871 | cat conftest.err >&5 | |
a848cd7e SC |
34872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34873 | (exit $ac_status); } && | |
9dd0f6c2 | 34874 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34876 | (eval $ac_try) 2>&5 | |
34877 | ac_status=$? | |
34878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34879 | (exit $ac_status); }; } && | |
34880 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34882 | (eval $ac_try) 2>&5 | |
34883 | ac_status=$? | |
34884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34885 | (exit $ac_status); }; }; then | |
34886 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
34887 | else | |
34888 | echo "$as_me: failed program was:" >&5 | |
34889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34890 | ||
34891 | ac_cv_lib_posix4_sched_get_priority_max=no | |
34892 | fi | |
ac1cb8d3 VS |
34893 | rm -f conftest.err conftest.$ac_objext \ |
34894 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34895 | LIBS=$ac_check_lib_save_LIBS |
34896 | fi | |
34897 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
34898 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
34899 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
34900 | ||
34901 | HAVE_PRIOR_FUNCS=1 | |
34902 | POSIX4_LINK=" -lposix4" | |
34903 | ||
34904 | fi | |
34905 | ||
34906 | ||
34907 | fi | |
34908 | ||
34909 | ||
34910 | fi | |
34911 | ||
34912 | ||
34913 | fi | |
34914 | ||
34915 | ||
34916 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
34917 | cat >>confdefs.h <<\_ACEOF | |
34918 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
34919 | _ACEOF | |
34920 | ||
34921 | else | |
34922 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
34923 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
34924 | fi | |
34925 | ||
34926 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
34927 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
34928 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
34929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34930 | else | |
34931 | cat >conftest.$ac_ext <<_ACEOF | |
34932 | /* confdefs.h. */ | |
34933 | _ACEOF | |
34934 | cat confdefs.h >>conftest.$ac_ext | |
34935 | cat >>conftest.$ac_ext <<_ACEOF | |
34936 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34937 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
34938 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34939 | #define pthread_cancel innocuous_pthread_cancel | |
34940 | ||
a848cd7e SC |
34941 | /* System header to define __stub macros and hopefully few prototypes, |
34942 | which can conflict with char pthread_cancel (); below. | |
34943 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34944 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34945 | |
a848cd7e SC |
34946 | #ifdef __STDC__ |
34947 | # include <limits.h> | |
34948 | #else | |
34949 | # include <assert.h> | |
34950 | #endif | |
ac1cb8d3 VS |
34951 | |
34952 | #undef pthread_cancel | |
34953 | ||
a848cd7e SC |
34954 | /* Override any gcc2 internal prototype to avoid an error. */ |
34955 | #ifdef __cplusplus | |
34956 | extern "C" | |
34957 | { | |
34958 | #endif | |
34959 | /* We use char because int might match the return type of a gcc2 | |
34960 | builtin and then its argument prototype would still apply. */ | |
34961 | char pthread_cancel (); | |
34962 | /* The GNU C library defines this for functions which it implements | |
34963 | to always fail with ENOSYS. Some functions are actually named | |
34964 | something starting with __ and the normal name is an alias. */ | |
34965 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
34966 | choke me | |
34967 | #else | |
34968 | char (*f) () = pthread_cancel; | |
34969 | #endif | |
34970 | #ifdef __cplusplus | |
34971 | } | |
34972 | #endif | |
34973 | ||
34974 | int | |
34975 | main () | |
34976 | { | |
34977 | return f != pthread_cancel; | |
34978 | ; | |
34979 | return 0; | |
34980 | } | |
34981 | _ACEOF | |
34982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34984 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34985 | ac_status=$? |
ac1cb8d3 VS |
34986 | grep -v '^ *+' conftest.er1 >conftest.err |
34987 | rm -f conftest.er1 | |
34988 | cat conftest.err >&5 | |
a848cd7e SC |
34989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34990 | (exit $ac_status); } && | |
9dd0f6c2 | 34991 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34993 | (eval $ac_try) 2>&5 | |
34994 | ac_status=$? | |
34995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34996 | (exit $ac_status); }; } && | |
34997 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34999 | (eval $ac_try) 2>&5 | |
35000 | ac_status=$? | |
35001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35002 | (exit $ac_status); }; }; then | |
35003 | ac_cv_func_pthread_cancel=yes | |
35004 | else | |
35005 | echo "$as_me: failed program was:" >&5 | |
35006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35007 | ||
35008 | ac_cv_func_pthread_cancel=no | |
35009 | fi | |
ac1cb8d3 VS |
35010 | rm -f conftest.err conftest.$ac_objext \ |
35011 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35012 | fi |
35013 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
35014 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
35015 | if test $ac_cv_func_pthread_cancel = yes; then | |
35016 | cat >>confdefs.h <<\_ACEOF | |
35017 | #define HAVE_PTHREAD_CANCEL 1 | |
35018 | _ACEOF | |
35019 | ||
35020 | else | |
35021 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
35022 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
35023 | fi | |
35024 | ||
35025 | ||
35026 | ||
35027 | ||
35028 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
35029 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
35030 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
35031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35032 | else | |
35033 | ||
35034 | cat >conftest.$ac_ext <<_ACEOF | |
35035 | /* confdefs.h. */ | |
35036 | _ACEOF | |
35037 | cat confdefs.h >>conftest.$ac_ext | |
35038 | cat >>conftest.$ac_ext <<_ACEOF | |
35039 | /* end confdefs.h. */ | |
35040 | #include <pthread.h> | |
35041 | int | |
35042 | main () | |
35043 | { | |
35044 | ||
35045 | pthread_mutexattr_t attr; | |
35046 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
35047 | ||
35048 | ; | |
35049 | return 0; | |
35050 | } | |
35051 | _ACEOF | |
35052 | rm -f conftest.$ac_objext | |
35053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35054 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35055 | ac_status=$? |
ac1cb8d3 VS |
35056 | grep -v '^ *+' conftest.er1 >conftest.err |
35057 | rm -f conftest.er1 | |
35058 | cat conftest.err >&5 | |
a848cd7e SC |
35059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35060 | (exit $ac_status); } && | |
9dd0f6c2 | 35061 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35063 | (eval $ac_try) 2>&5 | |
35064 | ac_status=$? | |
35065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35066 | (exit $ac_status); }; } && | |
35067 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35069 | (eval $ac_try) 2>&5 | |
35070 | ac_status=$? | |
35071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35072 | (exit $ac_status); }; }; then | |
35073 | ||
35074 | wx_cv_type_pthread_mutexattr_t=yes | |
35075 | ||
35076 | else | |
35077 | echo "$as_me: failed program was:" >&5 | |
35078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35079 | ||
35080 | ||
35081 | wx_cv_type_pthread_mutexattr_t=no | |
35082 | ||
35083 | ||
35084 | fi | |
ac1cb8d3 | 35085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35086 | |
35087 | fi | |
35088 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
35089 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
35090 | ||
35091 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
35092 | cat >>confdefs.h <<\_ACEOF | |
35093 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
35094 | _ACEOF | |
35095 | ||
35096 | else | |
35097 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
35098 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
35099 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
35100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35101 | else | |
35102 | ||
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 | #include <pthread.h> | |
35110 | int | |
35111 | main () | |
35112 | { | |
35113 | ||
35114 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
35115 | ||
35116 | ; | |
35117 | return 0; | |
35118 | } | |
35119 | _ACEOF | |
35120 | rm -f conftest.$ac_objext | |
35121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35122 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35123 | ac_status=$? |
ac1cb8d3 VS |
35124 | grep -v '^ *+' conftest.er1 >conftest.err |
35125 | rm -f conftest.er1 | |
35126 | cat conftest.err >&5 | |
a848cd7e SC |
35127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35128 | (exit $ac_status); } && | |
9dd0f6c2 | 35129 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35131 | (eval $ac_try) 2>&5 | |
35132 | ac_status=$? | |
35133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35134 | (exit $ac_status); }; } && | |
35135 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35137 | (eval $ac_try) 2>&5 | |
35138 | ac_status=$? | |
35139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35140 | (exit $ac_status); }; }; then | |
35141 | ||
35142 | wx_cv_type_pthread_rec_mutex_init=yes | |
35143 | ||
35144 | else | |
35145 | echo "$as_me: failed program was:" >&5 | |
35146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35147 | ||
35148 | ||
35149 | wx_cv_type_pthread_rec_mutex_init=no | |
35150 | ||
35151 | ||
35152 | fi | |
ac1cb8d3 | 35153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35154 | |
35155 | fi | |
35156 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
35157 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
35158 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
35159 | cat >>confdefs.h <<\_ACEOF | |
35160 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
35161 | _ACEOF | |
35162 | ||
35163 | else | |
35164 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
35165 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
35166 | fi | |
35167 | fi | |
35168 | fi | |
35169 | ||
35170 | else | |
35171 | if test "$wxUSE_THREADS" = "yes" ; then | |
35172 | case "${host}" in | |
35173 | *-*-mingw32* ) | |
35174 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
35175 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
35176 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
35177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35178 | else | |
35179 | ||
35180 | CFLAGS_OLD="$CFLAGS" | |
35181 | CFLAGS="$CFLAGS -mthreads" | |
35182 | cat >conftest.$ac_ext <<_ACEOF | |
35183 | /* confdefs.h. */ | |
35184 | _ACEOF | |
35185 | cat confdefs.h >>conftest.$ac_ext | |
35186 | cat >>conftest.$ac_ext <<_ACEOF | |
35187 | /* end confdefs.h. */ | |
35188 | ||
35189 | int | |
35190 | main () | |
35191 | { | |
35192 | ||
35193 | ; | |
35194 | return 0; | |
35195 | } | |
35196 | _ACEOF | |
35197 | rm -f conftest.$ac_objext | |
35198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35199 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35200 | ac_status=$? |
ac1cb8d3 VS |
35201 | grep -v '^ *+' conftest.er1 >conftest.err |
35202 | rm -f conftest.er1 | |
35203 | cat conftest.err >&5 | |
a848cd7e SC |
35204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35205 | (exit $ac_status); } && | |
9dd0f6c2 | 35206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35208 | (eval $ac_try) 2>&5 | |
35209 | ac_status=$? | |
35210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35211 | (exit $ac_status); }; } && | |
35212 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35214 | (eval $ac_try) 2>&5 | |
35215 | ac_status=$? | |
35216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35217 | (exit $ac_status); }; }; then | |
35218 | wx_cv_cflags_mthread=yes | |
35219 | else | |
35220 | echo "$as_me: failed program was:" >&5 | |
35221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35222 | ||
35223 | wx_cv_cflags_mthread=no | |
35224 | ||
35225 | fi | |
ac1cb8d3 | 35226 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35227 | |
35228 | ||
35229 | fi | |
35230 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
35231 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
35232 | ||
35233 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
35234 | CXXFLAGS="$CXXFLAGS -mthreads" | |
35235 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
35236 | LDFLAGS="$LDFLAGS -mthreads" | |
35237 | else | |
35238 | CFLAGS="$CFLAGS_OLD" | |
35239 | fi | |
35240 | ;; | |
35241 | *-pc-os2*emx ) | |
35242 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
35243 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
35244 | LDFLAGS="$LDFLAGS -Zmt" | |
35245 | ;; | |
35246 | esac | |
35247 | fi | |
35248 | fi | |
35249 | ||
35250 | if test "$wxUSE_THREADS" = "yes"; then | |
35251 | cat >>confdefs.h <<\_ACEOF | |
35252 | #define wxUSE_THREADS 1 | |
35253 | _ACEOF | |
35254 | ||
35255 | ||
35256 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
35257 | else | |
35258 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
35259 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
35260 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
35261 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
35262 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
35263 | echo "$as_me:$LINENO: result: yes" >&5 | |
35264 | echo "${ECHO_T}yes" >&6 | |
35265 | else | |
35266 | echo "$as_me:$LINENO: result: no" >&5 | |
35267 | echo "${ECHO_T}no" >&6 | |
35268 | fi | |
35269 | fi | |
35270 | fi | |
35271 | ||
35272 | if test "$WXGTK20" = 1 ; then | |
35273 | cat >>confdefs.h <<_ACEOF | |
35274 | #define __WXGTK20__ $WXGTK20 | |
35275 | _ACEOF | |
35276 | ||
35277 | WXGTK12=1 | |
35278 | fi | |
35279 | ||
35280 | if test "$WXGTK12" = 1 ; then | |
35281 | cat >>confdefs.h <<_ACEOF | |
35282 | #define __WXGTK12__ $WXGTK12 | |
35283 | _ACEOF | |
35284 | ||
35285 | fi | |
35286 | ||
35287 | if test "$WXGTK127" = 1 ; then | |
35288 | cat >>confdefs.h <<_ACEOF | |
35289 | #define __WXGTK127__ $WXGTK127 | |
35290 | _ACEOF | |
35291 | ||
35292 | fi | |
35293 | ||
35294 | if test "$WXGPE" = 1 ; then | |
35295 | cat >>confdefs.h <<_ACEOF | |
35296 | #define __WXGPE__ $WXGPE | |
35297 | _ACEOF | |
35298 | ||
35299 | fi | |
35300 | ||
35301 | WXDEBUG= | |
35302 | ||
35303 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
35304 | WXDEBUG="-g" | |
35305 | wxUSE_OPTIMISE=no | |
35306 | fi | |
35307 | ||
35308 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
35309 | wxUSE_DEBUG_INFO=yes | |
35310 | WXDEBUG="-ggdb" | |
35311 | fi | |
35312 | ||
35313 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
35314 | cat >>confdefs.h <<\_ACEOF | |
35315 | #define WXDEBUG 1 | |
35316 | _ACEOF | |
35317 | ||
35318 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
35319 | else | |
35320 | if test "$wxUSE_GTK" = 1 ; then | |
35321 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
35322 | fi | |
35323 | fi | |
35324 | ||
35325 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
35326 | cat >>confdefs.h <<\_ACEOF | |
35327 | #define wxUSE_MEMORY_TRACING 1 | |
35328 | _ACEOF | |
35329 | ||
35330 | cat >>confdefs.h <<\_ACEOF | |
35331 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
35332 | _ACEOF | |
35333 | ||
35334 | cat >>confdefs.h <<\_ACEOF | |
35335 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
35336 | _ACEOF | |
35337 | ||
35338 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
35339 | fi | |
35340 | ||
35341 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
35342 | DMALLOC_LIBS="-ldmalloc" | |
35343 | fi | |
35344 | ||
35345 | PROFILE= | |
35346 | if test "$wxUSE_PROFILE" = "yes" ; then | |
35347 | PROFILE=" -pg" | |
35348 | fi | |
35349 | ||
35350 | CODE_GEN_FLAGS= | |
35351 | CODE_GEN_FLAGS_CXX= | |
35352 | if test "$GCC" = "yes" ; then | |
35353 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
35354 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
35355 | fi | |
35356 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
35357 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
35358 | fi | |
35359 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
35360 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
35361 | fi | |
35362 | ||
35363 | case "${host}" in | |
35364 | powerpc*-*-aix* ) | |
35365 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
35366 | ;; | |
35367 | *-hppa* ) | |
35368 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
35369 | ;; | |
35370 | esac | |
35371 | fi | |
35372 | ||
35373 | OPTIMISE= | |
35374 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
35375 | if test "$GCC" = yes ; then | |
35376 | OPTIMISE="-O0" | |
35377 | fi | |
35378 | else | |
35379 | if test "$GCC" = yes ; then | |
35380 | OPTIMISE="-O2" | |
35381 | ||
35382 | case "${host}" in | |
35383 | i586-*-*|i686-*-* ) | |
35384 | OPTIMISE="${OPTIMISE} " | |
35385 | ;; | |
35386 | esac | |
35387 | else | |
35388 | OPTIMISE="-O" | |
35389 | fi | |
35390 | fi | |
35391 | ||
35392 | ||
35393 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
35394 | cat >>confdefs.h <<\_ACEOF | |
35395 | #define WXWIN_COMPATIBILITY_2_2 1 | |
35396 | _ACEOF | |
35397 | ||
35398 | ||
35399 | WXWIN_COMPATIBILITY_2_4="yes" | |
35400 | fi | |
35401 | ||
35402 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
35403 | cat >>confdefs.h <<\_ACEOF | |
35404 | #define WXWIN_COMPATIBILITY_2_4 1 | |
35405 | _ACEOF | |
35406 | ||
35407 | fi | |
35408 | ||
35409 | ||
35410 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 35411 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
35412 | #define wxUSE_GUI 1 |
35413 | _ACEOF | |
35414 | ||
35415 | ||
370fd4c2 | 35416 | fi |
a848cd7e SC |
35417 | |
35418 | ||
35419 | if test "$wxUSE_UNIX" = "yes"; then | |
35420 | cat >>confdefs.h <<\_ACEOF | |
35421 | #define wxUSE_UNIX 1 | |
35422 | _ACEOF | |
35423 | ||
35424 | fi | |
35425 | ||
35426 | ||
35427 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
35428 | ||
35429 | HAVE_DL_FUNCS=0 | |
35430 | HAVE_SHL_FUNCS=0 | |
35431 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
35432 | if test "$USE_DARWIN" = 1; then | |
35433 | HAVE_DL_FUNCS=1 | |
47a7e797 MW |
35434 | elif test "$USE_DOS" = 1; then |
35435 | HAVE_DL_FUNCS=0 | |
a848cd7e SC |
35436 | else |
35437 | ||
35438 | for ac_func in dlopen | |
35439 | do | |
35440 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35441 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35442 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35443 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35445 | else | |
35446 | cat >conftest.$ac_ext <<_ACEOF | |
35447 | /* confdefs.h. */ | |
35448 | _ACEOF | |
35449 | cat confdefs.h >>conftest.$ac_ext | |
35450 | cat >>conftest.$ac_ext <<_ACEOF | |
35451 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35452 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35453 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35454 | #define $ac_func innocuous_$ac_func | |
35455 | ||
a848cd7e SC |
35456 | /* System header to define __stub macros and hopefully few prototypes, |
35457 | which can conflict with char $ac_func (); below. | |
35458 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35459 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35460 | |
a848cd7e SC |
35461 | #ifdef __STDC__ |
35462 | # include <limits.h> | |
35463 | #else | |
35464 | # include <assert.h> | |
35465 | #endif | |
ac1cb8d3 VS |
35466 | |
35467 | #undef $ac_func | |
35468 | ||
a848cd7e SC |
35469 | /* Override any gcc2 internal prototype to avoid an error. */ |
35470 | #ifdef __cplusplus | |
35471 | extern "C" | |
35472 | { | |
35473 | #endif | |
35474 | /* We use char because int might match the return type of a gcc2 | |
35475 | builtin and then its argument prototype would still apply. */ | |
35476 | char $ac_func (); | |
35477 | /* The GNU C library defines this for functions which it implements | |
35478 | to always fail with ENOSYS. Some functions are actually named | |
35479 | something starting with __ and the normal name is an alias. */ | |
35480 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35481 | choke me | |
35482 | #else | |
35483 | char (*f) () = $ac_func; | |
35484 | #endif | |
35485 | #ifdef __cplusplus | |
35486 | } | |
35487 | #endif | |
35488 | ||
35489 | int | |
35490 | main () | |
35491 | { | |
35492 | return f != $ac_func; | |
35493 | ; | |
35494 | return 0; | |
35495 | } | |
35496 | _ACEOF | |
35497 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35499 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35500 | ac_status=$? |
ac1cb8d3 VS |
35501 | grep -v '^ *+' conftest.er1 >conftest.err |
35502 | rm -f conftest.er1 | |
35503 | cat conftest.err >&5 | |
a848cd7e SC |
35504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35505 | (exit $ac_status); } && | |
9dd0f6c2 | 35506 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35508 | (eval $ac_try) 2>&5 | |
35509 | ac_status=$? | |
35510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35511 | (exit $ac_status); }; } && | |
35512 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35514 | (eval $ac_try) 2>&5 | |
35515 | ac_status=$? | |
35516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35517 | (exit $ac_status); }; }; then | |
35518 | eval "$as_ac_var=yes" | |
35519 | else | |
35520 | echo "$as_me: failed program was:" >&5 | |
35521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35522 | ||
35523 | eval "$as_ac_var=no" | |
35524 | fi | |
ac1cb8d3 VS |
35525 | rm -f conftest.err conftest.$ac_objext \ |
35526 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35527 | fi |
35528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35529 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35530 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35531 | cat >>confdefs.h <<_ACEOF | |
35532 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35533 | _ACEOF | |
35534 | ||
35535 | cat >>confdefs.h <<\_ACEOF | |
35536 | #define HAVE_DLOPEN 1 | |
35537 | _ACEOF | |
35538 | ||
35539 | HAVE_DL_FUNCS=1 | |
35540 | ||
35541 | else | |
35542 | ||
35543 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
35544 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
35545 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
35546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35547 | else | |
35548 | ac_check_lib_save_LIBS=$LIBS | |
35549 | LIBS="-ldl $LIBS" | |
35550 | cat >conftest.$ac_ext <<_ACEOF | |
35551 | /* confdefs.h. */ | |
35552 | _ACEOF | |
35553 | cat confdefs.h >>conftest.$ac_ext | |
35554 | cat >>conftest.$ac_ext <<_ACEOF | |
35555 | /* end confdefs.h. */ | |
35556 | ||
35557 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35558 | #ifdef __cplusplus | |
35559 | extern "C" | |
35560 | #endif | |
35561 | /* We use char because int might match the return type of a gcc2 | |
35562 | builtin and then its argument prototype would still apply. */ | |
35563 | char dlopen (); | |
35564 | int | |
35565 | main () | |
35566 | { | |
35567 | dlopen (); | |
35568 | ; | |
35569 | return 0; | |
35570 | } | |
35571 | _ACEOF | |
35572 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35574 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35575 | ac_status=$? |
ac1cb8d3 VS |
35576 | grep -v '^ *+' conftest.er1 >conftest.err |
35577 | rm -f conftest.er1 | |
35578 | cat conftest.err >&5 | |
a848cd7e SC |
35579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35580 | (exit $ac_status); } && | |
9dd0f6c2 | 35581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35583 | (eval $ac_try) 2>&5 | |
35584 | ac_status=$? | |
35585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35586 | (exit $ac_status); }; } && | |
35587 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35589 | (eval $ac_try) 2>&5 | |
35590 | ac_status=$? | |
35591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35592 | (exit $ac_status); }; }; then | |
35593 | ac_cv_lib_dl_dlopen=yes | |
35594 | else | |
35595 | echo "$as_me: failed program was:" >&5 | |
35596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35597 | ||
35598 | ac_cv_lib_dl_dlopen=no | |
35599 | fi | |
ac1cb8d3 VS |
35600 | rm -f conftest.err conftest.$ac_objext \ |
35601 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35602 | LIBS=$ac_check_lib_save_LIBS |
35603 | fi | |
35604 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
35605 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
35606 | if test $ac_cv_lib_dl_dlopen = yes; then | |
35607 | ||
35608 | cat >>confdefs.h <<\_ACEOF | |
35609 | #define HAVE_DLOPEN 1 | |
35610 | _ACEOF | |
35611 | ||
35612 | HAVE_DL_FUNCS=1 | |
35613 | DL_LINK=" -ldl$DL_LINK" | |
35614 | ||
35615 | else | |
35616 | ||
35617 | ||
35618 | for ac_func in shl_load | |
35619 | do | |
35620 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35621 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35622 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35623 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35625 | else | |
35626 | cat >conftest.$ac_ext <<_ACEOF | |
35627 | /* confdefs.h. */ | |
35628 | _ACEOF | |
35629 | cat confdefs.h >>conftest.$ac_ext | |
35630 | cat >>conftest.$ac_ext <<_ACEOF | |
35631 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35632 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35633 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35634 | #define $ac_func innocuous_$ac_func | |
35635 | ||
a848cd7e SC |
35636 | /* System header to define __stub macros and hopefully few prototypes, |
35637 | which can conflict with char $ac_func (); below. | |
35638 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35639 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35640 | |
a848cd7e SC |
35641 | #ifdef __STDC__ |
35642 | # include <limits.h> | |
35643 | #else | |
35644 | # include <assert.h> | |
35645 | #endif | |
ac1cb8d3 VS |
35646 | |
35647 | #undef $ac_func | |
35648 | ||
a848cd7e SC |
35649 | /* Override any gcc2 internal prototype to avoid an error. */ |
35650 | #ifdef __cplusplus | |
35651 | extern "C" | |
35652 | { | |
35653 | #endif | |
35654 | /* We use char because int might match the return type of a gcc2 | |
35655 | builtin and then its argument prototype would still apply. */ | |
35656 | char $ac_func (); | |
35657 | /* The GNU C library defines this for functions which it implements | |
35658 | to always fail with ENOSYS. Some functions are actually named | |
35659 | something starting with __ and the normal name is an alias. */ | |
35660 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35661 | choke me | |
35662 | #else | |
35663 | char (*f) () = $ac_func; | |
35664 | #endif | |
35665 | #ifdef __cplusplus | |
35666 | } | |
35667 | #endif | |
35668 | ||
35669 | int | |
35670 | main () | |
35671 | { | |
35672 | return f != $ac_func; | |
35673 | ; | |
35674 | return 0; | |
35675 | } | |
35676 | _ACEOF | |
35677 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35679 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35680 | ac_status=$? |
ac1cb8d3 VS |
35681 | grep -v '^ *+' conftest.er1 >conftest.err |
35682 | rm -f conftest.er1 | |
35683 | cat conftest.err >&5 | |
a848cd7e SC |
35684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35685 | (exit $ac_status); } && | |
9dd0f6c2 | 35686 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35688 | (eval $ac_try) 2>&5 | |
35689 | ac_status=$? | |
35690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35691 | (exit $ac_status); }; } && | |
35692 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35694 | (eval $ac_try) 2>&5 | |
35695 | ac_status=$? | |
35696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35697 | (exit $ac_status); }; }; then | |
35698 | eval "$as_ac_var=yes" | |
35699 | else | |
35700 | echo "$as_me: failed program was:" >&5 | |
35701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35702 | ||
35703 | eval "$as_ac_var=no" | |
35704 | fi | |
ac1cb8d3 VS |
35705 | rm -f conftest.err conftest.$ac_objext \ |
35706 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35707 | fi |
35708 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35709 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35710 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35711 | cat >>confdefs.h <<_ACEOF | |
35712 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35713 | _ACEOF | |
35714 | ||
35715 | cat >>confdefs.h <<\_ACEOF | |
35716 | #define HAVE_SHL_LOAD 1 | |
35717 | _ACEOF | |
35718 | ||
35719 | HAVE_SHL_FUNCS=1 | |
35720 | ||
35721 | else | |
35722 | ||
35723 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
35724 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
35725 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
35726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35727 | else | |
35728 | ac_check_lib_save_LIBS=$LIBS | |
35729 | LIBS="-lshl_load $LIBS" | |
35730 | cat >conftest.$ac_ext <<_ACEOF | |
35731 | /* confdefs.h. */ | |
35732 | _ACEOF | |
35733 | cat confdefs.h >>conftest.$ac_ext | |
35734 | cat >>conftest.$ac_ext <<_ACEOF | |
35735 | /* end confdefs.h. */ | |
35736 | ||
35737 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35738 | #ifdef __cplusplus | |
35739 | extern "C" | |
35740 | #endif | |
35741 | /* We use char because int might match the return type of a gcc2 | |
35742 | builtin and then its argument prototype would still apply. */ | |
35743 | char dld (); | |
35744 | int | |
35745 | main () | |
35746 | { | |
35747 | dld (); | |
35748 | ; | |
35749 | return 0; | |
35750 | } | |
35751 | _ACEOF | |
35752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35754 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35755 | ac_status=$? |
ac1cb8d3 VS |
35756 | grep -v '^ *+' conftest.er1 >conftest.err |
35757 | rm -f conftest.er1 | |
35758 | cat conftest.err >&5 | |
a848cd7e SC |
35759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35760 | (exit $ac_status); } && | |
9dd0f6c2 | 35761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35763 | (eval $ac_try) 2>&5 | |
35764 | ac_status=$? | |
35765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35766 | (exit $ac_status); }; } && | |
35767 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35769 | (eval $ac_try) 2>&5 | |
35770 | ac_status=$? | |
35771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35772 | (exit $ac_status); }; }; then | |
35773 | ac_cv_lib_shl_load_dld=yes | |
35774 | else | |
35775 | echo "$as_me: failed program was:" >&5 | |
35776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35777 | ||
35778 | ac_cv_lib_shl_load_dld=no | |
35779 | fi | |
ac1cb8d3 VS |
35780 | rm -f conftest.err conftest.$ac_objext \ |
35781 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35782 | LIBS=$ac_check_lib_save_LIBS |
35783 | fi | |
35784 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
35785 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
35786 | if test $ac_cv_lib_shl_load_dld = yes; then | |
35787 | ||
35788 | HAVE_SHL_FUNCS=1 | |
35789 | DL_LINK=" -ldld$DL_LINK" | |
35790 | ||
35791 | fi | |
35792 | ||
35793 | ||
35794 | fi | |
35795 | done | |
35796 | ||
35797 | ||
35798 | fi | |
35799 | ||
35800 | ||
35801 | fi | |
35802 | done | |
35803 | ||
35804 | ||
35805 | if test "$HAVE_DL_FUNCS" = 1; then | |
35806 | ||
35807 | for ac_func in dlerror | |
35808 | do | |
35809 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35810 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35811 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35812 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35814 | else | |
35815 | cat >conftest.$ac_ext <<_ACEOF | |
35816 | /* confdefs.h. */ | |
35817 | _ACEOF | |
35818 | cat confdefs.h >>conftest.$ac_ext | |
35819 | cat >>conftest.$ac_ext <<_ACEOF | |
35820 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35821 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35822 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35823 | #define $ac_func innocuous_$ac_func | |
35824 | ||
a848cd7e SC |
35825 | /* System header to define __stub macros and hopefully few prototypes, |
35826 | which can conflict with char $ac_func (); below. | |
35827 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35828 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35829 | |
a848cd7e SC |
35830 | #ifdef __STDC__ |
35831 | # include <limits.h> | |
35832 | #else | |
35833 | # include <assert.h> | |
35834 | #endif | |
ac1cb8d3 VS |
35835 | |
35836 | #undef $ac_func | |
35837 | ||
a848cd7e SC |
35838 | /* Override any gcc2 internal prototype to avoid an error. */ |
35839 | #ifdef __cplusplus | |
35840 | extern "C" | |
35841 | { | |
35842 | #endif | |
35843 | /* We use char because int might match the return type of a gcc2 | |
35844 | builtin and then its argument prototype would still apply. */ | |
35845 | char $ac_func (); | |
35846 | /* The GNU C library defines this for functions which it implements | |
35847 | to always fail with ENOSYS. Some functions are actually named | |
35848 | something starting with __ and the normal name is an alias. */ | |
35849 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35850 | choke me | |
35851 | #else | |
35852 | char (*f) () = $ac_func; | |
35853 | #endif | |
35854 | #ifdef __cplusplus | |
35855 | } | |
35856 | #endif | |
35857 | ||
35858 | int | |
35859 | main () | |
35860 | { | |
35861 | return f != $ac_func; | |
35862 | ; | |
35863 | return 0; | |
35864 | } | |
35865 | _ACEOF | |
35866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35868 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35869 | ac_status=$? |
ac1cb8d3 VS |
35870 | grep -v '^ *+' conftest.er1 >conftest.err |
35871 | rm -f conftest.er1 | |
35872 | cat conftest.err >&5 | |
a848cd7e SC |
35873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35874 | (exit $ac_status); } && | |
9dd0f6c2 | 35875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35877 | (eval $ac_try) 2>&5 | |
35878 | ac_status=$? | |
35879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35880 | (exit $ac_status); }; } && | |
35881 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35883 | (eval $ac_try) 2>&5 | |
35884 | ac_status=$? | |
35885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35886 | (exit $ac_status); }; }; then | |
35887 | eval "$as_ac_var=yes" | |
35888 | else | |
35889 | echo "$as_me: failed program was:" >&5 | |
35890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35891 | ||
35892 | eval "$as_ac_var=no" | |
35893 | fi | |
ac1cb8d3 VS |
35894 | rm -f conftest.err conftest.$ac_objext \ |
35895 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35896 | fi |
35897 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35898 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35899 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35900 | cat >>confdefs.h <<_ACEOF | |
35901 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35902 | _ACEOF | |
35903 | cat >>confdefs.h <<\_ACEOF | |
35904 | #define HAVE_DLERROR 1 | |
35905 | _ACEOF | |
35906 | ||
35907 | else | |
35908 | ||
35909 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
35910 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
35911 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
35912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35913 | else | |
35914 | ac_check_lib_save_LIBS=$LIBS | |
35915 | LIBS="-ldl $LIBS" | |
35916 | cat >conftest.$ac_ext <<_ACEOF | |
35917 | /* confdefs.h. */ | |
35918 | _ACEOF | |
35919 | cat confdefs.h >>conftest.$ac_ext | |
35920 | cat >>conftest.$ac_ext <<_ACEOF | |
35921 | /* end confdefs.h. */ | |
35922 | ||
35923 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35924 | #ifdef __cplusplus | |
35925 | extern "C" | |
35926 | #endif | |
35927 | /* We use char because int might match the return type of a gcc2 | |
35928 | builtin and then its argument prototype would still apply. */ | |
35929 | char dlerror (); | |
35930 | int | |
35931 | main () | |
35932 | { | |
35933 | dlerror (); | |
35934 | ; | |
35935 | return 0; | |
35936 | } | |
35937 | _ACEOF | |
35938 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35940 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35941 | ac_status=$? |
ac1cb8d3 VS |
35942 | grep -v '^ *+' conftest.er1 >conftest.err |
35943 | rm -f conftest.er1 | |
35944 | cat conftest.err >&5 | |
a848cd7e SC |
35945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35946 | (exit $ac_status); } && | |
9dd0f6c2 | 35947 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35949 | (eval $ac_try) 2>&5 | |
35950 | ac_status=$? | |
35951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35952 | (exit $ac_status); }; } && | |
35953 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35955 | (eval $ac_try) 2>&5 | |
35956 | ac_status=$? | |
35957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35958 | (exit $ac_status); }; }; then | |
35959 | ac_cv_lib_dl_dlerror=yes | |
35960 | else | |
35961 | echo "$as_me: failed program was:" >&5 | |
35962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35963 | ||
35964 | ac_cv_lib_dl_dlerror=no | |
35965 | fi | |
ac1cb8d3 VS |
35966 | rm -f conftest.err conftest.$ac_objext \ |
35967 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35968 | LIBS=$ac_check_lib_save_LIBS |
35969 | fi | |
35970 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
35971 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
35972 | if test $ac_cv_lib_dl_dlerror = yes; then | |
35973 | cat >>confdefs.h <<\_ACEOF | |
35974 | #define HAVE_DLERROR 1 | |
35975 | _ACEOF | |
35976 | ||
35977 | fi | |
35978 | ||
35979 | ||
35980 | ||
35981 | fi | |
35982 | done | |
35983 | ||
35984 | fi | |
35985 | fi | |
35986 | ||
35987 | if test "$HAVE_DL_FUNCS" = 0; then | |
35988 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 35989 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
35990 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
35991 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
35992 | wxUSE_DYNAMIC_LOADER=no | |
35993 | wxUSE_DYNLIB_CLASS=no | |
35994 | else | |
35995 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
35996 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
35997 | fi | |
35998 | fi | |
35999 | fi | |
36000 | fi | |
36001 | fi | |
36002 | ||
36003 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
36004 | cat >>confdefs.h <<\_ACEOF | |
36005 | #define wxUSE_DYNAMIC_LOADER 1 | |
36006 | _ACEOF | |
36007 | ||
36008 | fi | |
36009 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
36010 | cat >>confdefs.h <<\_ACEOF | |
36011 | #define wxUSE_DYNLIB_CLASS 1 | |
36012 | _ACEOF | |
36013 | ||
36014 | fi | |
36015 | ||
36016 | ||
36017 | ||
36018 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
36019 | if test "$wxUSE_SHARED" = "no" ; then | |
36020 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
36021 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
36022 | wxUSE_PLUGINS=no | |
36023 | fi | |
36024 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
36025 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
36026 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
36027 | wxUSE_PLUGINS=no | |
36028 | fi | |
36029 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
36030 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
36031 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
36032 | wxUSE_PLUGINS=no | |
36033 | fi | |
36034 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
36035 | cat >>confdefs.h <<\_ACEOF | |
36036 | #define wxUSE_PLUGINS 1 | |
36037 | _ACEOF | |
36038 | ||
36039 | fi | |
36040 | fi | |
36041 | ||
36042 | ||
36043 | if test "$wxUSE_STL" = "yes"; then | |
36044 | cat >>confdefs.h <<\_ACEOF | |
36045 | #define wxUSE_STL 1 | |
36046 | _ACEOF | |
36047 | ||
36048 | fi | |
36049 | ||
36050 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
36051 | cat >>confdefs.h <<\_ACEOF | |
36052 | #define wxUSE_APPLE_IEEE 1 | |
36053 | _ACEOF | |
36054 | ||
36055 | fi | |
36056 | ||
36057 | if test "$wxUSE_TIMER" = "yes"; then | |
36058 | cat >>confdefs.h <<\_ACEOF | |
36059 | #define wxUSE_TIMER 1 | |
36060 | _ACEOF | |
36061 | ||
36062 | fi | |
36063 | ||
9c112555 | 36064 | if test "$USE_UNIX" = "1" ; then |
a848cd7e SC |
36065 | |
36066 | for ac_header in sys/soundcard.h | |
36067 | do | |
36068 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36070 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36071 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36072 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36074 | fi | |
36075 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36076 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36077 | else | |
36078 | # Is the header compilable? | |
36079 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36080 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36081 | cat >conftest.$ac_ext <<_ACEOF | |
36082 | /* confdefs.h. */ | |
36083 | _ACEOF | |
36084 | cat confdefs.h >>conftest.$ac_ext | |
36085 | cat >>conftest.$ac_ext <<_ACEOF | |
36086 | /* end confdefs.h. */ | |
36087 | $ac_includes_default | |
36088 | #include <$ac_header> | |
36089 | _ACEOF | |
36090 | rm -f conftest.$ac_objext | |
36091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36092 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36093 | ac_status=$? |
ac1cb8d3 VS |
36094 | grep -v '^ *+' conftest.er1 >conftest.err |
36095 | rm -f conftest.er1 | |
36096 | cat conftest.err >&5 | |
a848cd7e SC |
36097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36098 | (exit $ac_status); } && | |
9dd0f6c2 | 36099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36101 | (eval $ac_try) 2>&5 | |
36102 | ac_status=$? | |
36103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36104 | (exit $ac_status); }; } && | |
36105 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36107 | (eval $ac_try) 2>&5 | |
36108 | ac_status=$? | |
36109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36110 | (exit $ac_status); }; }; then | |
36111 | ac_header_compiler=yes | |
36112 | else | |
36113 | echo "$as_me: failed program was:" >&5 | |
36114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36115 | ||
36116 | ac_header_compiler=no | |
36117 | fi | |
ac1cb8d3 | 36118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36119 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36120 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36121 | ||
36122 | # Is the header present? | |
36123 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36124 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36125 | cat >conftest.$ac_ext <<_ACEOF | |
36126 | /* confdefs.h. */ | |
36127 | _ACEOF | |
36128 | cat confdefs.h >>conftest.$ac_ext | |
36129 | cat >>conftest.$ac_ext <<_ACEOF | |
36130 | /* end confdefs.h. */ | |
36131 | #include <$ac_header> | |
36132 | _ACEOF | |
36133 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36134 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36135 | ac_status=$? | |
36136 | grep -v '^ *+' conftest.er1 >conftest.err | |
36137 | rm -f conftest.er1 | |
36138 | cat conftest.err >&5 | |
36139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36140 | (exit $ac_status); } >/dev/null; then | |
36141 | if test -s conftest.err; then | |
36142 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36143 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36144 | else |
36145 | ac_cpp_err= | |
36146 | fi | |
36147 | else | |
36148 | ac_cpp_err=yes | |
36149 | fi | |
36150 | if test -z "$ac_cpp_err"; then | |
36151 | ac_header_preproc=yes | |
36152 | else | |
36153 | echo "$as_me: failed program was:" >&5 | |
36154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36155 | ||
36156 | ac_header_preproc=no | |
36157 | fi | |
36158 | rm -f conftest.err conftest.$ac_ext | |
36159 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36160 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36161 | ||
36162 | # So? What about this header? | |
ac1cb8d3 VS |
36163 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36164 | yes:no: ) | |
a848cd7e SC |
36165 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36166 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36167 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36168 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36169 | ac_header_preproc=yes | |
a848cd7e | 36170 | ;; |
ac1cb8d3 | 36171 | no:yes:* ) |
a848cd7e SC |
36172 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36173 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36174 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36175 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36176 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36177 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36178 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36179 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36180 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36181 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36182 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36183 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36184 | ( |
36185 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36186 | ## ----------------------------------------- ## |
36187 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36188 | ## ----------------------------------------- ## | |
a848cd7e SC |
36189 | _ASBOX |
36190 | ) | | |
36191 | sed "s/^/$as_me: WARNING: /" >&2 | |
36192 | ;; | |
36193 | esac | |
36194 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36195 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36196 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36198 | else | |
ac1cb8d3 | 36199 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36200 | fi |
36201 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36202 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36203 | ||
36204 | fi | |
36205 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36206 | cat >>confdefs.h <<_ACEOF | |
36207 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36208 | _ACEOF | |
36209 | ||
9c112555 MW |
36210 | else |
36211 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
a848cd7e SC |
36212 | fi |
36213 | ||
36214 | done | |
36215 | ||
9c112555 MW |
36216 | fi |
36217 | WITH_PLUGIN_SDL=0 | |
36218 | if test "$wxUSE_SOUND" = "yes"; then | |
36219 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
36220 | if test "$wxUSE_LIBSDL" != "no"; then |
36221 | ||
36222 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
36223 | if test "${with_sdl_prefix+set}" = set; then | |
36224 | withval="$with_sdl_prefix" | |
36225 | sdl_prefix="$withval" | |
36226 | else | |
36227 | sdl_prefix="" | |
36228 | fi; | |
36229 | ||
36230 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
36231 | if test "${with_sdl_exec_prefix+set}" = set; then | |
36232 | withval="$with_sdl_exec_prefix" | |
36233 | sdl_exec_prefix="$withval" | |
36234 | else | |
36235 | sdl_exec_prefix="" | |
36236 | fi; | |
36237 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
36238 | if test "${enable_sdltest+set}" = set; then | |
36239 | enableval="$enable_sdltest" | |
36240 | ||
36241 | else | |
36242 | enable_sdltest=yes | |
36243 | fi; | |
36244 | ||
36245 | if test x$sdl_exec_prefix != x ; then | |
36246 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
36247 | if test x${SDL_CONFIG+set} != xset ; then | |
36248 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
36249 | fi | |
36250 | fi | |
36251 | if test x$sdl_prefix != x ; then | |
36252 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
36253 | if test x${SDL_CONFIG+set} != xset ; then | |
36254 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
36255 | fi | |
36256 | fi | |
36257 | ||
36258 | ||
36259 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
36260 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
36261 | set dummy sdl-config; ac_word=$2 | |
36262 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36264 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
36265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36266 | else | |
36267 | case $SDL_CONFIG in | |
36268 | [\\/]* | ?:[\\/]*) | |
36269 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
36270 | ;; | |
36271 | *) | |
36272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36273 | for as_dir in $PATH | |
36274 | do | |
36275 | IFS=$as_save_IFS | |
36276 | test -z "$as_dir" && as_dir=. | |
36277 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36278 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36279 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
36280 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36281 | break 2 | |
36282 | fi | |
36283 | done | |
36284 | done | |
36285 | ||
36286 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
36287 | ;; | |
36288 | esac | |
36289 | fi | |
36290 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
36291 | ||
36292 | if test -n "$SDL_CONFIG"; then | |
36293 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
36294 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
36295 | else | |
36296 | echo "$as_me:$LINENO: result: no" >&5 | |
36297 | echo "${ECHO_T}no" >&6 | |
36298 | fi | |
36299 | ||
36300 | min_sdl_version=1.2.0 | |
36301 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
36302 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
36303 | no_sdl="" | |
36304 | if test "$SDL_CONFIG" = "no" ; then | |
36305 | no_sdl=yes | |
36306 | else | |
36307 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
36308 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
36309 | ||
36310 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
36311 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
36312 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
36313 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
36314 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
36315 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
36316 | if test "x$enable_sdltest" = "xyes" ; then | |
36317 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 36318 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
36319 | ac_save_LIBS="$LIBS" |
36320 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 36321 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
36322 | LIBS="$LIBS $SDL_LIBS" |
36323 | rm -f conf.sdltest | |
36324 | if test "$cross_compiling" = yes; then | |
36325 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
36326 | else | |
36327 | cat >conftest.$ac_ext <<_ACEOF | |
36328 | /* confdefs.h. */ | |
36329 | _ACEOF | |
36330 | cat confdefs.h >>conftest.$ac_ext | |
36331 | cat >>conftest.$ac_ext <<_ACEOF | |
36332 | /* end confdefs.h. */ | |
36333 | ||
36334 | #include <stdio.h> | |
36335 | #include <stdlib.h> | |
36336 | #include <string.h> | |
36337 | #include "SDL.h" | |
36338 | ||
36339 | char* | |
36340 | my_strdup (char *str) | |
36341 | { | |
36342 | char *new_str; | |
36343 | ||
36344 | if (str) | |
36345 | { | |
36346 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
36347 | strcpy (new_str, str); | |
36348 | } | |
36349 | else | |
36350 | new_str = NULL; | |
36351 | ||
36352 | return new_str; | |
36353 | } | |
36354 | ||
36355 | int main (int argc, char *argv[]) | |
36356 | { | |
36357 | int major, minor, micro; | |
36358 | char *tmp_version; | |
36359 | ||
36360 | /* This hangs on some systems (?) | |
36361 | system ("touch conf.sdltest"); | |
36362 | */ | |
36363 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
36364 | ||
36365 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
36366 | tmp_version = my_strdup("$min_sdl_version"); | |
36367 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
36368 | printf("%s, bad version string\n", "$min_sdl_version"); | |
36369 | exit(1); | |
36370 | } | |
36371 | ||
36372 | if (($sdl_major_version > major) || | |
36373 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
36374 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
36375 | { | |
36376 | return 0; | |
36377 | } | |
36378 | else | |
36379 | { | |
36380 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
36381 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
36382 | printf("*** best to upgrade to the required version.\n"); | |
36383 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
36384 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
36385 | printf("*** config.cache before re-running configure\n"); | |
36386 | return 1; | |
36387 | } | |
36388 | } | |
36389 | ||
36390 | ||
36391 | _ACEOF | |
36392 | rm -f conftest$ac_exeext | |
36393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
36394 | (eval $ac_link) 2>&5 | |
36395 | ac_status=$? | |
36396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36397 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
36398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36399 | (eval $ac_try) 2>&5 | |
36400 | ac_status=$? | |
36401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36402 | (exit $ac_status); }; }; then | |
36403 | : | |
36404 | else | |
36405 | echo "$as_me: program exited with status $ac_status" >&5 | |
36406 | echo "$as_me: failed program was:" >&5 | |
36407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36408 | ||
36409 | ( exit $ac_status ) | |
36410 | no_sdl=yes | |
36411 | fi | |
ac1cb8d3 | 36412 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36413 | fi |
36414 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 36415 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
36416 | LIBS="$ac_save_LIBS" |
36417 | fi | |
36418 | fi | |
36419 | if test "x$no_sdl" = x ; then | |
36420 | echo "$as_me:$LINENO: result: yes" >&5 | |
36421 | echo "${ECHO_T}yes" >&6 | |
36422 | ||
36423 | EXTRALIBS_SDL="$SDL_LIBS" | |
36424 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
36425 | cat >>confdefs.h <<\_ACEOF | |
36426 | #define wxUSE_LIBSDL 1 | |
36427 | _ACEOF | |
36428 | ||
36429 | ||
36430 | else | |
36431 | echo "$as_me:$LINENO: result: no" >&5 | |
36432 | echo "${ECHO_T}no" >&6 | |
36433 | if test "$SDL_CONFIG" = "no" ; then | |
36434 | echo "*** The sdl-config script installed by SDL could not be found" | |
36435 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
36436 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
36437 | echo "*** full path to sdl-config." | |
36438 | else | |
36439 | if test -f conf.sdltest ; then | |
36440 | : | |
36441 | else | |
36442 | echo "*** Could not run SDL test program, checking why..." | |
36443 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 36444 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
36445 | LIBS="$LIBS $SDL_LIBS" |
36446 | cat >conftest.$ac_ext <<_ACEOF | |
36447 | /* confdefs.h. */ | |
36448 | _ACEOF | |
36449 | cat confdefs.h >>conftest.$ac_ext | |
36450 | cat >>conftest.$ac_ext <<_ACEOF | |
36451 | /* end confdefs.h. */ | |
36452 | ||
36453 | #include <stdio.h> | |
36454 | #include "SDL.h" | |
36455 | ||
36456 | int main(int argc, char *argv[]) | |
36457 | { return 0; } | |
36458 | #undef main | |
36459 | #define main K_and_R_C_main | |
36460 | ||
36461 | int | |
36462 | main () | |
36463 | { | |
36464 | return 0; | |
36465 | ; | |
36466 | return 0; | |
36467 | } | |
36468 | _ACEOF | |
36469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36471 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36472 | ac_status=$? |
ac1cb8d3 VS |
36473 | grep -v '^ *+' conftest.er1 >conftest.err |
36474 | rm -f conftest.er1 | |
36475 | cat conftest.err >&5 | |
a848cd7e SC |
36476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36477 | (exit $ac_status); } && | |
9dd0f6c2 | 36478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36480 | (eval $ac_try) 2>&5 | |
36481 | ac_status=$? | |
36482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36483 | (exit $ac_status); }; } && | |
36484 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36486 | (eval $ac_try) 2>&5 | |
36487 | ac_status=$? | |
36488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36489 | (exit $ac_status); }; }; then | |
36490 | echo "*** The test program compiled, but did not run. This usually means" | |
36491 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
36492 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
36493 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
36494 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
36495 | echo "*** is required on your system" | |
36496 | echo "***" | |
36497 | echo "*** If you have an old version installed, it is best to remove it, although" | |
36498 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
36499 | else | |
36500 | echo "$as_me: failed program was:" >&5 | |
36501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36502 | ||
36503 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
36504 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
36505 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
36506 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
36507 | fi | |
ac1cb8d3 VS |
36508 | rm -f conftest.err conftest.$ac_objext \ |
36509 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 36510 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 36511 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
36512 | LIBS="$ac_save_LIBS" |
36513 | fi | |
36514 | fi | |
36515 | SDL_CFLAGS="" | |
36516 | SDL_LIBS="" | |
36517 | wxUSE_LIBSDL="no" | |
36518 | fi | |
36519 | ||
36520 | ||
36521 | rm -f conf.sdltest | |
36522 | ||
36523 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
36524 | WITH_PLUGIN_SDL=1 | |
36525 | fi | |
36526 | fi | |
36527 | fi | |
36528 | ||
36529 | cat >>confdefs.h <<\_ACEOF | |
36530 | #define wxUSE_SOUND 1 | |
36531 | _ACEOF | |
36532 | ||
36533 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
36534 | fi | |
36535 | ||
d1c38808 VZ |
36536 | if test "$WXGTK20" = 1; then |
36537 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36538 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
36539 | ||
36540 | ||
36541 | succeeded=no | |
36542 | ||
36543 | if test -z "$PKG_CONFIG"; then | |
36544 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
36545 | set dummy pkg-config; ac_word=$2 | |
36546 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36548 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
36549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36550 | else | |
36551 | case $PKG_CONFIG in | |
36552 | [\\/]* | ?:[\\/]*) | |
36553 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
36554 | ;; | |
36555 | *) | |
36556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36557 | for as_dir in $PATH | |
36558 | do | |
36559 | IFS=$as_save_IFS | |
36560 | test -z "$as_dir" && as_dir=. | |
36561 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36562 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36563 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
36564 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36565 | break 2 | |
36566 | fi | |
36567 | done | |
36568 | done | |
36569 | ||
36570 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
36571 | ;; | |
36572 | esac | |
36573 | fi | |
36574 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
36575 | ||
36576 | if test -n "$PKG_CONFIG"; then | |
36577 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
36578 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
36579 | else | |
36580 | echo "$as_me:$LINENO: result: no" >&5 | |
36581 | echo "${ECHO_T}no" >&6 | |
36582 | fi | |
36583 | ||
36584 | fi | |
36585 | ||
36586 | if test "$PKG_CONFIG" = "no" ; then | |
36587 | echo "*** The pkg-config script could not be found. Make sure it is" | |
36588 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
36589 | echo "*** to the full path to pkg-config." | |
36590 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
36591 | else | |
36592 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
36593 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
36594 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
36595 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 36596 | |
ffa762ff | 36597 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
36598 | echo "$as_me:$LINENO: result: yes" >&5 |
36599 | echo "${ECHO_T}yes" >&6 | |
36600 | succeeded=yes | |
36601 | ||
36602 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
36603 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 36604 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
36605 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
36606 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
36607 | ||
36608 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
36609 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 36610 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
36611 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
36612 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
36613 | else | |
36614 | LIBGNOMEPRINTUI_CFLAGS="" | |
36615 | LIBGNOMEPRINTUI_LIBS="" | |
36616 | ## If we have a custom action on failure, don't print errors, but | |
36617 | ## do set a variable so people can do so. | |
ffa762ff | 36618 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
36619 | |
36620 | fi | |
36621 | ||
36622 | ||
36623 | ||
36624 | else | |
36625 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
36626 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
36627 | fi | |
36628 | fi | |
36629 | ||
36630 | if test $succeeded = yes; then | |
36631 | ||
d1c38808 VZ |
36632 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
36633 | cat >>confdefs.h <<\_ACEOF | |
36634 | #define wxUSE_LIBGNOMEPRINT 1 | |
36635 | _ACEOF | |
36636 | ||
36637 | ||
36638 | else | |
36639 | ||
36640 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
36641 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
36642 | wxUSE_LIBGNOMEPRINT="no" | |
36643 | ||
36644 | ||
36645 | fi | |
36646 | ||
36647 | fi | |
36648 | fi | |
36649 | fi | |
36650 | ||
36651 | ||
a848cd7e SC |
36652 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
36653 | cat >>confdefs.h <<\_ACEOF | |
36654 | #define wxUSE_CMDLINE_PARSER 1 | |
36655 | _ACEOF | |
36656 | ||
36657 | fi | |
36658 | ||
36659 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
36660 | cat >>confdefs.h <<\_ACEOF | |
36661 | #define wxUSE_STOPWATCH 1 | |
36662 | _ACEOF | |
36663 | ||
36664 | fi | |
36665 | ||
36666 | if test "$wxUSE_DATETIME" = "yes"; then | |
36667 | cat >>confdefs.h <<\_ACEOF | |
36668 | #define wxUSE_DATETIME 1 | |
36669 | _ACEOF | |
36670 | ||
36671 | fi | |
36672 | ||
36673 | if test "$wxUSE_FILE" = "yes"; then | |
36674 | cat >>confdefs.h <<\_ACEOF | |
36675 | #define wxUSE_FILE 1 | |
36676 | _ACEOF | |
36677 | ||
36678 | fi | |
36679 | ||
36680 | if test "$wxUSE_FFILE" = "yes"; then | |
36681 | cat >>confdefs.h <<\_ACEOF | |
36682 | #define wxUSE_FFILE 1 | |
36683 | _ACEOF | |
36684 | ||
36685 | fi | |
36686 | ||
36687 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
36688 | cat >>confdefs.h <<\_ACEOF | |
36689 | #define wxUSE_FILESYSTEM 1 | |
36690 | _ACEOF | |
36691 | ||
36692 | fi | |
36693 | ||
36694 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
36695 | cat >>confdefs.h <<\_ACEOF | |
36696 | #define wxUSE_FS_ZIP 1 | |
36697 | _ACEOF | |
36698 | ||
36699 | fi | |
36700 | ||
9e8e867f | 36701 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 36702 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 36703 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
36704 | _ACEOF |
36705 | ||
36706 | fi | |
36707 | ||
36708 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 36709 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
36710 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
36711 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
36712 | elif test "$wxUSE_ZLIB" = "no"; then | |
36713 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
36714 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
36715 | else | |
36716 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36717 | #define wxUSE_ZIPSTREAM 1 |
36718 | _ACEOF | |
36719 | ||
81f90336 | 36720 | fi |
a848cd7e SC |
36721 | fi |
36722 | ||
a848cd7e SC |
36723 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
36724 | cat >>confdefs.h <<\_ACEOF | |
36725 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
36726 | _ACEOF | |
36727 | ||
36728 | fi | |
36729 | ||
eaff0f0d VZ |
36730 | if test "$wxUSE_STACKWALKER" = "yes"; then |
36731 | cat >>confdefs.h <<\_ACEOF | |
36732 | #define wxUSE_STACKWALKER 1 | |
36733 | _ACEOF | |
36734 | ||
36735 | fi | |
36736 | ||
36b6448c | 36737 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
dfe0c803 JS |
36738 | if test "$USE_OS2" = "1"; then |
36739 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5 | |
36740 | echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;} | |
36741 | wxUSE_DEBUGREPORT=no | |
36742 | else | |
36743 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
36744 | #define wxUSE_DEBUGREPORT 1 |
36745 | _ACEOF | |
36746 | ||
21dfc162 MW |
36747 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
36748 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
36749 | fi | |
dfe0c803 | 36750 | fi |
36b6448c VZ |
36751 | fi |
36752 | ||
a848cd7e SC |
36753 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
36754 | cat >>confdefs.h <<\_ACEOF | |
36755 | #define wxUSE_SNGLINST_CHECKER 1 | |
36756 | _ACEOF | |
36757 | ||
36758 | fi | |
36759 | ||
36760 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
36761 | cat >>confdefs.h <<\_ACEOF | |
36762 | #define wxUSE_BUSYINFO 1 | |
36763 | _ACEOF | |
36764 | ||
36765 | fi | |
36766 | ||
36767 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
36768 | cat >>confdefs.h <<\_ACEOF | |
36769 | #define wxUSE_STD_IOSTREAM 1 | |
36770 | _ACEOF | |
36771 | ||
36772 | fi | |
36773 | ||
59746b65 MW |
36774 | if test "$wxUSE_STD_STRING" = "yes"; then |
36775 | cat >>confdefs.h <<\_ACEOF | |
36776 | #define wxUSE_STD_STRING 1 | |
36777 | _ACEOF | |
36778 | ||
36779 | fi | |
36780 | ||
07158944 VZ |
36781 | if test "$wxUSE_STDPATHS" = "yes"; then |
36782 | cat >>confdefs.h <<\_ACEOF | |
36783 | #define wxUSE_STDPATHS 1 | |
36784 | _ACEOF | |
36785 | ||
36786 | fi | |
36787 | ||
a848cd7e SC |
36788 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
36789 | cat >>confdefs.h <<\_ACEOF | |
36790 | #define wxUSE_TEXTBUFFER 1 | |
36791 | _ACEOF | |
36792 | ||
36793 | fi | |
36794 | ||
36795 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
36796 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
36797 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
36798 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
36799 | else | |
36800 | cat >>confdefs.h <<\_ACEOF | |
36801 | #define wxUSE_TEXTFILE 1 | |
36802 | _ACEOF | |
36803 | ||
36804 | fi | |
36805 | fi | |
36806 | ||
36807 | if test "$wxUSE_CONFIG" = "yes" ; then | |
36808 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
36809 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
36810 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
36811 | else | |
36812 | cat >>confdefs.h <<\_ACEOF | |
36813 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
36814 | _ACEOF |
36815 | ||
36816 | cat >>confdefs.h <<\_ACEOF | |
36817 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
36818 | _ACEOF |
36819 | ||
36820 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
36821 | fi | |
36822 | fi | |
36823 | ||
36824 | if test "$wxUSE_INTL" = "yes" ; then | |
36825 | if test "$wxUSE_FILE" != "yes"; then | |
36826 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
36827 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
36828 | else | |
36829 | cat >>confdefs.h <<\_ACEOF | |
36830 | #define wxUSE_INTL 1 | |
36831 | _ACEOF | |
36832 | ||
36833 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
36834 | GUIDIST="$GUIDIST INTL_DIST" | |
36835 | fi | |
36836 | fi | |
36837 | ||
36838 | if test "$wxUSE_LOG" = "yes"; then | |
36839 | cat >>confdefs.h <<\_ACEOF | |
36840 | #define wxUSE_LOG 1 | |
36841 | _ACEOF | |
36842 | ||
36843 | ||
36844 | if test "$wxUSE_LOGGUI" = "yes"; then | |
36845 | cat >>confdefs.h <<\_ACEOF | |
36846 | #define wxUSE_LOGGUI 1 | |
36847 | _ACEOF | |
36848 | ||
36849 | fi | |
36850 | ||
36851 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
36852 | cat >>confdefs.h <<\_ACEOF | |
36853 | #define wxUSE_LOGWINDOW 1 | |
36854 | _ACEOF | |
36855 | ||
36856 | fi | |
36857 | ||
36858 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
36859 | cat >>confdefs.h <<\_ACEOF | |
36860 | #define wxUSE_LOG_DIALOG 1 | |
36861 | _ACEOF | |
36862 | ||
36863 | fi | |
0b78747f MW |
36864 | |
36865 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
36866 | fi |
36867 | ||
36868 | if test "$wxUSE_LONGLONG" = "yes"; then | |
36869 | cat >>confdefs.h <<\_ACEOF | |
36870 | #define wxUSE_LONGLONG 1 | |
36871 | _ACEOF | |
36872 | ||
36873 | fi | |
36874 | ||
36875 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
36876 | cat >>confdefs.h <<\_ACEOF | |
36877 | #define wxUSE_GEOMETRY 1 | |
36878 | _ACEOF | |
36879 | ||
36880 | fi | |
36881 | ||
a848cd7e SC |
36882 | if test "$wxUSE_STREAMS" = "yes" ; then |
36883 | cat >>confdefs.h <<\_ACEOF | |
36884 | #define wxUSE_STREAMS 1 | |
36885 | _ACEOF | |
36886 | ||
36887 | fi | |
36888 | ||
36889 | ||
36890 | if test "$wxUSE_DATETIME" = "yes"; then | |
36891 | ||
36892 | for ac_func in strptime | |
36893 | do | |
36894 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36895 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36896 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36897 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36899 | else | |
36900 | cat >conftest.$ac_ext <<_ACEOF | |
36901 | /* confdefs.h. */ | |
36902 | _ACEOF | |
36903 | cat confdefs.h >>conftest.$ac_ext | |
36904 | cat >>conftest.$ac_ext <<_ACEOF | |
36905 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36906 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36907 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36908 | #define $ac_func innocuous_$ac_func | |
36909 | ||
a848cd7e SC |
36910 | /* System header to define __stub macros and hopefully few prototypes, |
36911 | which can conflict with char $ac_func (); below. | |
36912 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36913 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36914 | |
a848cd7e SC |
36915 | #ifdef __STDC__ |
36916 | # include <limits.h> | |
36917 | #else | |
36918 | # include <assert.h> | |
36919 | #endif | |
ac1cb8d3 VS |
36920 | |
36921 | #undef $ac_func | |
36922 | ||
a848cd7e SC |
36923 | /* Override any gcc2 internal prototype to avoid an error. */ |
36924 | #ifdef __cplusplus | |
36925 | extern "C" | |
36926 | { | |
36927 | #endif | |
36928 | /* We use char because int might match the return type of a gcc2 | |
36929 | builtin and then its argument prototype would still apply. */ | |
36930 | char $ac_func (); | |
36931 | /* The GNU C library defines this for functions which it implements | |
36932 | to always fail with ENOSYS. Some functions are actually named | |
36933 | something starting with __ and the normal name is an alias. */ | |
36934 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36935 | choke me | |
36936 | #else | |
36937 | char (*f) () = $ac_func; | |
36938 | #endif | |
36939 | #ifdef __cplusplus | |
36940 | } | |
36941 | #endif | |
36942 | ||
36943 | int | |
36944 | main () | |
36945 | { | |
36946 | return f != $ac_func; | |
36947 | ; | |
36948 | return 0; | |
36949 | } | |
36950 | _ACEOF | |
36951 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36953 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36954 | ac_status=$? |
ac1cb8d3 VS |
36955 | grep -v '^ *+' conftest.er1 >conftest.err |
36956 | rm -f conftest.er1 | |
36957 | cat conftest.err >&5 | |
a848cd7e SC |
36958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36959 | (exit $ac_status); } && | |
9dd0f6c2 | 36960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36962 | (eval $ac_try) 2>&5 | |
36963 | ac_status=$? | |
36964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36965 | (exit $ac_status); }; } && | |
36966 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36968 | (eval $ac_try) 2>&5 | |
36969 | ac_status=$? | |
36970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36971 | (exit $ac_status); }; }; then | |
36972 | eval "$as_ac_var=yes" | |
36973 | else | |
36974 | echo "$as_me: failed program was:" >&5 | |
36975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36976 | ||
36977 | eval "$as_ac_var=no" | |
36978 | fi | |
ac1cb8d3 VS |
36979 | rm -f conftest.err conftest.$ac_objext \ |
36980 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36981 | fi |
36982 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36983 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36984 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36985 | cat >>confdefs.h <<_ACEOF | |
36986 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36987 | _ACEOF | |
36988 | ||
36989 | fi | |
36990 | done | |
36991 | ||
36992 | ||
36993 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
36994 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
36995 | if test "${wx_cv_var_timezone+set}" = set; then | |
36996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36997 | else | |
36998 | ||
36999 | cat >conftest.$ac_ext <<_ACEOF | |
37000 | /* confdefs.h. */ | |
37001 | _ACEOF | |
37002 | cat confdefs.h >>conftest.$ac_ext | |
37003 | cat >>conftest.$ac_ext <<_ACEOF | |
37004 | /* end confdefs.h. */ | |
37005 | ||
37006 | #include <time.h> | |
37007 | ||
37008 | int | |
37009 | main () | |
37010 | { | |
37011 | ||
37012 | int tz; | |
37013 | tz = timezone; | |
37014 | ||
37015 | ; | |
37016 | return 0; | |
37017 | } | |
37018 | _ACEOF | |
37019 | rm -f conftest.$ac_objext | |
37020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37021 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37022 | ac_status=$? |
ac1cb8d3 VS |
37023 | grep -v '^ *+' conftest.er1 >conftest.err |
37024 | rm -f conftest.er1 | |
37025 | cat conftest.err >&5 | |
a848cd7e SC |
37026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37027 | (exit $ac_status); } && | |
9dd0f6c2 | 37028 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37030 | (eval $ac_try) 2>&5 | |
37031 | ac_status=$? | |
37032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37033 | (exit $ac_status); }; } && | |
37034 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37036 | (eval $ac_try) 2>&5 | |
37037 | ac_status=$? | |
37038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37039 | (exit $ac_status); }; }; then | |
37040 | ||
37041 | wx_cv_var_timezone=timezone | |
37042 | ||
37043 | else | |
37044 | echo "$as_me: failed program was:" >&5 | |
37045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37046 | ||
37047 | ||
37048 | cat >conftest.$ac_ext <<_ACEOF | |
37049 | /* confdefs.h. */ | |
37050 | _ACEOF | |
37051 | cat confdefs.h >>conftest.$ac_ext | |
37052 | cat >>conftest.$ac_ext <<_ACEOF | |
37053 | /* end confdefs.h. */ | |
37054 | ||
37055 | #include <time.h> | |
37056 | ||
37057 | int | |
37058 | main () | |
37059 | { | |
37060 | ||
37061 | int tz; | |
37062 | tz = _timezone; | |
37063 | ||
37064 | ; | |
37065 | return 0; | |
37066 | } | |
37067 | _ACEOF | |
37068 | rm -f conftest.$ac_objext | |
37069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37070 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37071 | ac_status=$? |
ac1cb8d3 VS |
37072 | grep -v '^ *+' conftest.er1 >conftest.err |
37073 | rm -f conftest.er1 | |
37074 | cat conftest.err >&5 | |
a848cd7e SC |
37075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37076 | (exit $ac_status); } && | |
9dd0f6c2 | 37077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37079 | (eval $ac_try) 2>&5 | |
37080 | ac_status=$? | |
37081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37082 | (exit $ac_status); }; } && | |
37083 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37085 | (eval $ac_try) 2>&5 | |
37086 | ac_status=$? | |
37087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37088 | (exit $ac_status); }; }; then | |
37089 | ||
37090 | wx_cv_var_timezone=_timezone | |
37091 | ||
37092 | else | |
37093 | echo "$as_me: failed program was:" >&5 | |
37094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37095 | ||
37096 | ||
37097 | cat >conftest.$ac_ext <<_ACEOF | |
37098 | /* confdefs.h. */ | |
37099 | _ACEOF | |
37100 | cat confdefs.h >>conftest.$ac_ext | |
37101 | cat >>conftest.$ac_ext <<_ACEOF | |
37102 | /* end confdefs.h. */ | |
37103 | ||
37104 | #include <time.h> | |
37105 | ||
37106 | int | |
37107 | main () | |
37108 | { | |
37109 | ||
37110 | int tz; | |
37111 | tz = __timezone; | |
37112 | ||
37113 | ; | |
37114 | return 0; | |
37115 | } | |
37116 | _ACEOF | |
37117 | rm -f conftest.$ac_objext | |
37118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37119 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37120 | ac_status=$? |
ac1cb8d3 VS |
37121 | grep -v '^ *+' conftest.er1 >conftest.err |
37122 | rm -f conftest.er1 | |
37123 | cat conftest.err >&5 | |
a848cd7e SC |
37124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37125 | (exit $ac_status); } && | |
9dd0f6c2 | 37126 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37128 | (eval $ac_try) 2>&5 | |
37129 | ac_status=$? | |
37130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37131 | (exit $ac_status); }; } && | |
37132 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37134 | (eval $ac_try) 2>&5 | |
37135 | ac_status=$? | |
37136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37137 | (exit $ac_status); }; }; then | |
37138 | ||
37139 | wx_cv_var_timezone=__timezone | |
37140 | ||
37141 | else | |
37142 | echo "$as_me: failed program was:" >&5 | |
37143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37144 | ||
37145 | ||
37146 | if test "$USE_DOS" = 0 ; then | |
37147 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
37148 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
37149 | fi | |
37150 | ||
37151 | ||
37152 | fi | |
ac1cb8d3 | 37153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37154 | |
37155 | ||
37156 | fi | |
ac1cb8d3 | 37157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37158 | |
37159 | ||
37160 | fi | |
ac1cb8d3 | 37161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37162 | |
37163 | ||
37164 | fi | |
37165 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
37166 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
37167 | ||
37168 | if test "x$wx_cv_var_timezone" != x ; then | |
37169 | cat >>confdefs.h <<_ACEOF | |
37170 | #define WX_TIMEZONE $wx_cv_var_timezone | |
37171 | _ACEOF | |
37172 | ||
37173 | fi | |
37174 | ||
37175 | ||
37176 | for ac_func in localtime | |
37177 | do | |
37178 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37179 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37180 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37181 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37183 | else | |
37184 | cat >conftest.$ac_ext <<_ACEOF | |
37185 | /* confdefs.h. */ | |
37186 | _ACEOF | |
37187 | cat confdefs.h >>conftest.$ac_ext | |
37188 | cat >>conftest.$ac_ext <<_ACEOF | |
37189 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37190 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37191 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37192 | #define $ac_func innocuous_$ac_func | |
37193 | ||
a848cd7e SC |
37194 | /* System header to define __stub macros and hopefully few prototypes, |
37195 | which can conflict with char $ac_func (); below. | |
37196 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37197 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37198 | |
a848cd7e SC |
37199 | #ifdef __STDC__ |
37200 | # include <limits.h> | |
37201 | #else | |
37202 | # include <assert.h> | |
37203 | #endif | |
ac1cb8d3 VS |
37204 | |
37205 | #undef $ac_func | |
37206 | ||
a848cd7e SC |
37207 | /* Override any gcc2 internal prototype to avoid an error. */ |
37208 | #ifdef __cplusplus | |
37209 | extern "C" | |
37210 | { | |
37211 | #endif | |
37212 | /* We use char because int might match the return type of a gcc2 | |
37213 | builtin and then its argument prototype would still apply. */ | |
37214 | char $ac_func (); | |
37215 | /* The GNU C library defines this for functions which it implements | |
37216 | to always fail with ENOSYS. Some functions are actually named | |
37217 | something starting with __ and the normal name is an alias. */ | |
37218 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37219 | choke me | |
37220 | #else | |
37221 | char (*f) () = $ac_func; | |
37222 | #endif | |
37223 | #ifdef __cplusplus | |
37224 | } | |
37225 | #endif | |
37226 | ||
37227 | int | |
37228 | main () | |
37229 | { | |
37230 | return f != $ac_func; | |
37231 | ; | |
37232 | return 0; | |
37233 | } | |
37234 | _ACEOF | |
37235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37237 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37238 | ac_status=$? |
ac1cb8d3 VS |
37239 | grep -v '^ *+' conftest.er1 >conftest.err |
37240 | rm -f conftest.er1 | |
37241 | cat conftest.err >&5 | |
a848cd7e SC |
37242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37243 | (exit $ac_status); } && | |
9dd0f6c2 | 37244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37246 | (eval $ac_try) 2>&5 | |
37247 | ac_status=$? | |
37248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37249 | (exit $ac_status); }; } && | |
37250 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37252 | (eval $ac_try) 2>&5 | |
37253 | ac_status=$? | |
37254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37255 | (exit $ac_status); }; }; then | |
37256 | eval "$as_ac_var=yes" | |
37257 | else | |
37258 | echo "$as_me: failed program was:" >&5 | |
37259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37260 | ||
37261 | eval "$as_ac_var=no" | |
37262 | fi | |
ac1cb8d3 VS |
37263 | rm -f conftest.err conftest.$ac_objext \ |
37264 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37265 | fi |
37266 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37267 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37268 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37269 | cat >>confdefs.h <<_ACEOF | |
37270 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37271 | _ACEOF | |
37272 | ||
37273 | fi | |
37274 | done | |
37275 | ||
37276 | ||
37277 | if test "$ac_cv_func_localtime" = "yes"; then | |
37278 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
37279 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
37280 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
37281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37282 | else | |
37283 | ||
37284 | cat >conftest.$ac_ext <<_ACEOF | |
37285 | /* confdefs.h. */ | |
37286 | _ACEOF | |
37287 | cat confdefs.h >>conftest.$ac_ext | |
37288 | cat >>conftest.$ac_ext <<_ACEOF | |
37289 | /* end confdefs.h. */ | |
37290 | ||
37291 | #include <time.h> | |
37292 | ||
37293 | int | |
37294 | main () | |
37295 | { | |
37296 | ||
37297 | struct tm tm; | |
37298 | tm.tm_gmtoff++; | |
37299 | ||
37300 | ; | |
37301 | return 0; | |
37302 | } | |
37303 | _ACEOF | |
37304 | rm -f conftest.$ac_objext | |
37305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37306 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37307 | ac_status=$? |
ac1cb8d3 VS |
37308 | grep -v '^ *+' conftest.er1 >conftest.err |
37309 | rm -f conftest.er1 | |
37310 | cat conftest.err >&5 | |
a848cd7e SC |
37311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37312 | (exit $ac_status); } && | |
9dd0f6c2 | 37313 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37315 | (eval $ac_try) 2>&5 | |
37316 | ac_status=$? | |
37317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37318 | (exit $ac_status); }; } && | |
37319 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37321 | (eval $ac_try) 2>&5 | |
37322 | ac_status=$? | |
37323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37324 | (exit $ac_status); }; }; then | |
37325 | ||
37326 | wx_cv_struct_tm_has_gmtoff=yes | |
37327 | ||
37328 | else | |
37329 | echo "$as_me: failed program was:" >&5 | |
37330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37331 | ||
37332 | wx_cv_struct_tm_has_gmtoff=no | |
37333 | ||
37334 | fi | |
ac1cb8d3 | 37335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37336 | |
37337 | fi | |
37338 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
37339 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
37340 | fi | |
37341 | ||
37342 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
37343 | cat >>confdefs.h <<\_ACEOF | |
37344 | #define WX_GMTOFF_IN_TM 1 | |
37345 | _ACEOF | |
37346 | ||
37347 | fi | |
37348 | ||
37349 | ||
37350 | ||
37351 | for ac_func in gettimeofday ftime | |
37352 | do | |
37353 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37354 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37355 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37356 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37358 | else | |
37359 | cat >conftest.$ac_ext <<_ACEOF | |
37360 | /* confdefs.h. */ | |
37361 | _ACEOF | |
37362 | cat confdefs.h >>conftest.$ac_ext | |
37363 | cat >>conftest.$ac_ext <<_ACEOF | |
37364 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37365 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37366 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37367 | #define $ac_func innocuous_$ac_func | |
37368 | ||
a848cd7e SC |
37369 | /* System header to define __stub macros and hopefully few prototypes, |
37370 | which can conflict with char $ac_func (); below. | |
37371 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37372 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37373 | |
a848cd7e SC |
37374 | #ifdef __STDC__ |
37375 | # include <limits.h> | |
37376 | #else | |
37377 | # include <assert.h> | |
37378 | #endif | |
ac1cb8d3 VS |
37379 | |
37380 | #undef $ac_func | |
37381 | ||
a848cd7e SC |
37382 | /* Override any gcc2 internal prototype to avoid an error. */ |
37383 | #ifdef __cplusplus | |
37384 | extern "C" | |
37385 | { | |
37386 | #endif | |
37387 | /* We use char because int might match the return type of a gcc2 | |
37388 | builtin and then its argument prototype would still apply. */ | |
37389 | char $ac_func (); | |
37390 | /* The GNU C library defines this for functions which it implements | |
37391 | to always fail with ENOSYS. Some functions are actually named | |
37392 | something starting with __ and the normal name is an alias. */ | |
37393 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37394 | choke me | |
37395 | #else | |
37396 | char (*f) () = $ac_func; | |
37397 | #endif | |
37398 | #ifdef __cplusplus | |
37399 | } | |
37400 | #endif | |
37401 | ||
37402 | int | |
37403 | main () | |
37404 | { | |
37405 | return f != $ac_func; | |
37406 | ; | |
37407 | return 0; | |
37408 | } | |
37409 | _ACEOF | |
37410 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37412 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37413 | ac_status=$? |
ac1cb8d3 VS |
37414 | grep -v '^ *+' conftest.er1 >conftest.err |
37415 | rm -f conftest.er1 | |
37416 | cat conftest.err >&5 | |
a848cd7e SC |
37417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37418 | (exit $ac_status); } && | |
9dd0f6c2 | 37419 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37421 | (eval $ac_try) 2>&5 | |
37422 | ac_status=$? | |
37423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37424 | (exit $ac_status); }; } && | |
37425 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37427 | (eval $ac_try) 2>&5 | |
37428 | ac_status=$? | |
37429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37430 | (exit $ac_status); }; }; then | |
37431 | eval "$as_ac_var=yes" | |
37432 | else | |
37433 | echo "$as_me: failed program was:" >&5 | |
37434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37435 | ||
37436 | eval "$as_ac_var=no" | |
37437 | fi | |
ac1cb8d3 VS |
37438 | rm -f conftest.err conftest.$ac_objext \ |
37439 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37440 | fi |
37441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37442 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37443 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37444 | cat >>confdefs.h <<_ACEOF | |
37445 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37446 | _ACEOF | |
37447 | break | |
37448 | fi | |
37449 | done | |
37450 | ||
37451 | ||
37452 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
37453 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
37454 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
37455 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
37456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37457 | else | |
37458 | ||
37459 | ||
37460 | ||
37461 | ac_ext=cc | |
37462 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37463 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37464 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37465 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37466 | ||
37467 | ||
37468 | cat >conftest.$ac_ext <<_ACEOF | |
37469 | /* confdefs.h. */ | |
37470 | _ACEOF | |
37471 | cat confdefs.h >>conftest.$ac_ext | |
37472 | cat >>conftest.$ac_ext <<_ACEOF | |
37473 | /* end confdefs.h. */ | |
37474 | ||
37475 | #include <sys/time.h> | |
37476 | #include <unistd.h> | |
37477 | ||
37478 | int | |
37479 | main () | |
37480 | { | |
37481 | ||
37482 | struct timeval tv; | |
37483 | gettimeofday(&tv, NULL); | |
37484 | ||
37485 | ; | |
37486 | return 0; | |
37487 | } | |
37488 | _ACEOF | |
37489 | rm -f conftest.$ac_objext | |
37490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37491 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37492 | ac_status=$? |
ac1cb8d3 VS |
37493 | grep -v '^ *+' conftest.er1 >conftest.err |
37494 | rm -f conftest.er1 | |
37495 | cat conftest.err >&5 | |
a848cd7e SC |
37496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37497 | (exit $ac_status); } && | |
9dd0f6c2 | 37498 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37500 | (eval $ac_try) 2>&5 | |
37501 | ac_status=$? | |
37502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37503 | (exit $ac_status); }; } && | |
37504 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37506 | (eval $ac_try) 2>&5 | |
37507 | ac_status=$? | |
37508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37509 | (exit $ac_status); }; }; then | |
37510 | wx_cv_func_gettimeofday_has_2_args=yes | |
37511 | else | |
37512 | echo "$as_me: failed program was:" >&5 | |
37513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37514 | ||
37515 | cat >conftest.$ac_ext <<_ACEOF | |
37516 | /* confdefs.h. */ | |
37517 | _ACEOF | |
37518 | cat confdefs.h >>conftest.$ac_ext | |
37519 | cat >>conftest.$ac_ext <<_ACEOF | |
37520 | /* end confdefs.h. */ | |
37521 | ||
37522 | #include <sys/time.h> | |
37523 | #include <unistd.h> | |
37524 | ||
37525 | int | |
37526 | main () | |
37527 | { | |
37528 | ||
37529 | struct timeval tv; | |
37530 | gettimeofday(&tv); | |
37531 | ||
37532 | ; | |
37533 | return 0; | |
37534 | } | |
37535 | _ACEOF | |
37536 | rm -f conftest.$ac_objext | |
37537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37538 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37539 | ac_status=$? |
ac1cb8d3 VS |
37540 | grep -v '^ *+' conftest.er1 >conftest.err |
37541 | rm -f conftest.er1 | |
37542 | cat conftest.err >&5 | |
a848cd7e SC |
37543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37544 | (exit $ac_status); } && | |
9dd0f6c2 | 37545 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37547 | (eval $ac_try) 2>&5 | |
37548 | ac_status=$? | |
37549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37550 | (exit $ac_status); }; } && | |
37551 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37553 | (eval $ac_try) 2>&5 | |
37554 | ac_status=$? | |
37555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37556 | (exit $ac_status); }; }; then | |
37557 | wx_cv_func_gettimeofday_has_2_args=no | |
37558 | else | |
37559 | echo "$as_me: failed program was:" >&5 | |
37560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37561 | ||
37562 | ||
37563 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
37564 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
37565 | wx_cv_func_gettimeofday_has_2_args=unknown | |
37566 | ||
37567 | ||
37568 | fi | |
ac1cb8d3 | 37569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37570 | |
37571 | fi | |
ac1cb8d3 | 37572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37573 | ac_ext=c |
37574 | ac_cpp='$CPP $CPPFLAGS' | |
37575 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37576 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37578 | ||
37579 | ||
37580 | fi | |
37581 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
37582 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
37583 | ||
37584 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
37585 | cat >>confdefs.h <<\_ACEOF | |
37586 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
37587 | _ACEOF | |
37588 | ||
37589 | fi | |
37590 | fi | |
37591 | ||
37592 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
37593 | fi | |
37594 | ||
37595 | ||
37596 | if test "$wxUSE_SOCKETS" = "yes"; then | |
37597 | if test "$wxUSE_MGL" = "1"; then | |
37598 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
37599 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
37600 | wxUSE_SOCKETS="no" | |
37601 | fi | |
37602 | fi | |
37603 | ||
37604 | if test "$wxUSE_SOCKETS" = "yes"; then | |
37605 | if test "$TOOLKIT" != "MSW"; then | |
37606 | echo "$as_me:$LINENO: checking for socket" >&5 | |
37607 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
37608 | if test "${ac_cv_func_socket+set}" = set; then | |
37609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37610 | else | |
37611 | cat >conftest.$ac_ext <<_ACEOF | |
37612 | /* confdefs.h. */ | |
37613 | _ACEOF | |
37614 | cat confdefs.h >>conftest.$ac_ext | |
37615 | cat >>conftest.$ac_ext <<_ACEOF | |
37616 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37617 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
37618 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37619 | #define socket innocuous_socket | |
37620 | ||
a848cd7e SC |
37621 | /* System header to define __stub macros and hopefully few prototypes, |
37622 | which can conflict with char socket (); below. | |
37623 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37624 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37625 | |
a848cd7e SC |
37626 | #ifdef __STDC__ |
37627 | # include <limits.h> | |
37628 | #else | |
37629 | # include <assert.h> | |
37630 | #endif | |
ac1cb8d3 VS |
37631 | |
37632 | #undef socket | |
37633 | ||
a848cd7e SC |
37634 | /* Override any gcc2 internal prototype to avoid an error. */ |
37635 | #ifdef __cplusplus | |
37636 | extern "C" | |
37637 | { | |
37638 | #endif | |
37639 | /* We use char because int might match the return type of a gcc2 | |
37640 | builtin and then its argument prototype would still apply. */ | |
37641 | char socket (); | |
37642 | /* The GNU C library defines this for functions which it implements | |
37643 | to always fail with ENOSYS. Some functions are actually named | |
37644 | something starting with __ and the normal name is an alias. */ | |
37645 | #if defined (__stub_socket) || defined (__stub___socket) | |
37646 | choke me | |
37647 | #else | |
37648 | char (*f) () = socket; | |
37649 | #endif | |
37650 | #ifdef __cplusplus | |
37651 | } | |
37652 | #endif | |
37653 | ||
37654 | int | |
37655 | main () | |
37656 | { | |
37657 | return f != socket; | |
37658 | ; | |
37659 | return 0; | |
37660 | } | |
37661 | _ACEOF | |
37662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37664 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37665 | ac_status=$? |
ac1cb8d3 VS |
37666 | grep -v '^ *+' conftest.er1 >conftest.err |
37667 | rm -f conftest.er1 | |
37668 | cat conftest.err >&5 | |
a848cd7e SC |
37669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37670 | (exit $ac_status); } && | |
9dd0f6c2 | 37671 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37673 | (eval $ac_try) 2>&5 | |
37674 | ac_status=$? | |
37675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37676 | (exit $ac_status); }; } && | |
37677 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37679 | (eval $ac_try) 2>&5 | |
37680 | ac_status=$? | |
37681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37682 | (exit $ac_status); }; }; then | |
37683 | ac_cv_func_socket=yes | |
37684 | else | |
37685 | echo "$as_me: failed program was:" >&5 | |
37686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37687 | ||
37688 | ac_cv_func_socket=no | |
37689 | fi | |
ac1cb8d3 VS |
37690 | rm -f conftest.err conftest.$ac_objext \ |
37691 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37692 | fi |
37693 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
37694 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
37695 | if test $ac_cv_func_socket = yes; then | |
37696 | : | |
37697 | else | |
37698 | ||
37699 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
37700 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
37701 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
37702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37703 | else | |
37704 | ac_check_lib_save_LIBS=$LIBS | |
37705 | LIBS="-lsocket $LIBS" | |
37706 | cat >conftest.$ac_ext <<_ACEOF | |
37707 | /* confdefs.h. */ | |
37708 | _ACEOF | |
37709 | cat confdefs.h >>conftest.$ac_ext | |
37710 | cat >>conftest.$ac_ext <<_ACEOF | |
37711 | /* end confdefs.h. */ | |
37712 | ||
37713 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37714 | #ifdef __cplusplus | |
37715 | extern "C" | |
37716 | #endif | |
37717 | /* We use char because int might match the return type of a gcc2 | |
37718 | builtin and then its argument prototype would still apply. */ | |
37719 | char socket (); | |
37720 | int | |
37721 | main () | |
37722 | { | |
37723 | socket (); | |
37724 | ; | |
37725 | return 0; | |
37726 | } | |
37727 | _ACEOF | |
37728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37730 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37731 | ac_status=$? |
ac1cb8d3 VS |
37732 | grep -v '^ *+' conftest.er1 >conftest.err |
37733 | rm -f conftest.er1 | |
37734 | cat conftest.err >&5 | |
a848cd7e SC |
37735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37736 | (exit $ac_status); } && | |
9dd0f6c2 | 37737 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37739 | (eval $ac_try) 2>&5 | |
37740 | ac_status=$? | |
37741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37742 | (exit $ac_status); }; } && | |
37743 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37745 | (eval $ac_try) 2>&5 | |
37746 | ac_status=$? | |
37747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37748 | (exit $ac_status); }; }; then | |
37749 | ac_cv_lib_socket_socket=yes | |
37750 | else | |
37751 | echo "$as_me: failed program was:" >&5 | |
37752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37753 | ||
37754 | ac_cv_lib_socket_socket=no | |
37755 | fi | |
ac1cb8d3 VS |
37756 | rm -f conftest.err conftest.$ac_objext \ |
37757 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37758 | LIBS=$ac_check_lib_save_LIBS |
37759 | fi | |
37760 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
37761 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
37762 | if test $ac_cv_lib_socket_socket = yes; then | |
37763 | if test "$INET_LINK" != " -lsocket"; then | |
37764 | INET_LINK="$INET_LINK -lsocket" | |
37765 | fi | |
37766 | else | |
37767 | ||
37768 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
37769 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
37770 | wxUSE_SOCKETS=no | |
37771 | ||
37772 | ||
37773 | fi | |
37774 | ||
37775 | ||
37776 | ||
37777 | fi | |
37778 | ||
37779 | fi | |
37780 | fi | |
37781 | ||
37782 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
37783 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
37784 | ac_ext=cc |
37785 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37786 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37787 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37788 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37789 | ||
37790 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
37791 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
37792 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
37793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37794 | else | |
37795 | ||
37796 | cat >conftest.$ac_ext <<_ACEOF | |
37797 | /* confdefs.h. */ | |
37798 | _ACEOF | |
37799 | cat confdefs.h >>conftest.$ac_ext | |
37800 | cat >>conftest.$ac_ext <<_ACEOF | |
37801 | /* end confdefs.h. */ | |
37802 | ||
37803 | #include <sys/types.h> | |
37804 | #include <sys/socket.h> | |
37805 | ||
37806 | int | |
37807 | main () | |
37808 | { | |
37809 | ||
37810 | socklen_t len; | |
37811 | getsockname(0, 0, &len); | |
37812 | ||
37813 | ; | |
37814 | return 0; | |
37815 | } | |
37816 | _ACEOF | |
37817 | rm -f conftest.$ac_objext | |
37818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37819 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37820 | ac_status=$? |
ac1cb8d3 VS |
37821 | grep -v '^ *+' conftest.er1 >conftest.err |
37822 | rm -f conftest.er1 | |
37823 | cat conftest.err >&5 | |
a848cd7e SC |
37824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37825 | (exit $ac_status); } && | |
9dd0f6c2 | 37826 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37828 | (eval $ac_try) 2>&5 | |
37829 | ac_status=$? | |
37830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37831 | (exit $ac_status); }; } && | |
37832 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37834 | (eval $ac_try) 2>&5 | |
37835 | ac_status=$? | |
37836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37837 | (exit $ac_status); }; }; then | |
37838 | wx_cv_type_getsockname3=socklen_t | |
37839 | else | |
37840 | echo "$as_me: failed program was:" >&5 | |
37841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37842 | ||
37843 | ||
37844 | CFLAGS_OLD="$CFLAGS" | |
37845 | if test "$GCC" = yes ; then | |
37846 | CFLAGS="$CFLAGS -Werror" | |
37847 | fi | |
37848 | ||
37849 | cat >conftest.$ac_ext <<_ACEOF | |
37850 | /* confdefs.h. */ | |
37851 | _ACEOF | |
37852 | cat confdefs.h >>conftest.$ac_ext | |
37853 | cat >>conftest.$ac_ext <<_ACEOF | |
37854 | /* end confdefs.h. */ | |
37855 | ||
37856 | #include <sys/types.h> | |
37857 | #include <sys/socket.h> | |
37858 | ||
37859 | int | |
37860 | main () | |
37861 | { | |
37862 | ||
37863 | size_t len; | |
37864 | getsockname(0, 0, &len); | |
37865 | ||
37866 | ; | |
37867 | return 0; | |
37868 | } | |
37869 | _ACEOF | |
37870 | rm -f conftest.$ac_objext | |
37871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37872 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37873 | ac_status=$? |
ac1cb8d3 VS |
37874 | grep -v '^ *+' conftest.er1 >conftest.err |
37875 | rm -f conftest.er1 | |
37876 | cat conftest.err >&5 | |
a848cd7e SC |
37877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37878 | (exit $ac_status); } && | |
9dd0f6c2 | 37879 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37881 | (eval $ac_try) 2>&5 | |
37882 | ac_status=$? | |
37883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37884 | (exit $ac_status); }; } && | |
37885 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37887 | (eval $ac_try) 2>&5 | |
37888 | ac_status=$? | |
37889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37890 | (exit $ac_status); }; }; then | |
37891 | wx_cv_type_getsockname3=size_t | |
37892 | else | |
37893 | echo "$as_me: failed program was:" >&5 | |
37894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37895 | ||
37896 | cat >conftest.$ac_ext <<_ACEOF | |
37897 | /* confdefs.h. */ | |
37898 | _ACEOF | |
37899 | cat confdefs.h >>conftest.$ac_ext | |
37900 | cat >>conftest.$ac_ext <<_ACEOF | |
37901 | /* end confdefs.h. */ | |
37902 | ||
37903 | #include <sys/types.h> | |
37904 | #include <sys/socket.h> | |
37905 | ||
37906 | int | |
37907 | main () | |
37908 | { | |
37909 | ||
37910 | int len; | |
37911 | getsockname(0, 0, &len); | |
37912 | ||
37913 | ; | |
37914 | return 0; | |
37915 | } | |
37916 | _ACEOF | |
37917 | rm -f conftest.$ac_objext | |
37918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37919 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37920 | ac_status=$? |
ac1cb8d3 VS |
37921 | grep -v '^ *+' conftest.er1 >conftest.err |
37922 | rm -f conftest.er1 | |
37923 | cat conftest.err >&5 | |
a848cd7e SC |
37924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37925 | (exit $ac_status); } && | |
9dd0f6c2 | 37926 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37928 | (eval $ac_try) 2>&5 | |
37929 | ac_status=$? | |
37930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37931 | (exit $ac_status); }; } && | |
37932 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37934 | (eval $ac_try) 2>&5 | |
37935 | ac_status=$? | |
37936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37937 | (exit $ac_status); }; }; then | |
37938 | wx_cv_type_getsockname3=int | |
37939 | else | |
37940 | echo "$as_me: failed program was:" >&5 | |
37941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37942 | ||
37943 | wx_cv_type_getsockname3=unknown | |
37944 | ||
37945 | fi | |
ac1cb8d3 | 37946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37947 | |
37948 | fi | |
ac1cb8d3 | 37949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37950 | |
37951 | CFLAGS="$CFLAGS_OLD" | |
37952 | ||
37953 | ||
37954 | fi | |
ac1cb8d3 | 37955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37956 | |
37957 | fi | |
37958 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
37959 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
37960 | ||
37961 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
37962 | wxUSE_SOCKETS=no | |
37963 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
37964 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
37965 | else | |
37966 | cat >>confdefs.h <<_ACEOF | |
37967 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
5b674b9d DE |
37968 | _ACEOF |
37969 | ||
37970 | fi | |
37971 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
37972 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
37973 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
37974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37975 | else | |
37976 | ||
37977 | cat >conftest.$ac_ext <<_ACEOF | |
37978 | /* confdefs.h. */ | |
37979 | _ACEOF | |
37980 | cat confdefs.h >>conftest.$ac_ext | |
37981 | cat >>conftest.$ac_ext <<_ACEOF | |
37982 | /* end confdefs.h. */ | |
37983 | ||
37984 | #include <sys/types.h> | |
37985 | #include <sys/socket.h> | |
37986 | ||
37987 | int | |
37988 | main () | |
37989 | { | |
37990 | ||
37991 | socklen_t len; | |
37992 | getsockopt(0, 0, 0, 0, &len); | |
37993 | ||
37994 | ; | |
37995 | return 0; | |
37996 | } | |
37997 | _ACEOF | |
37998 | rm -f conftest.$ac_objext | |
37999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38000 | (eval $ac_compile) 2>conftest.er1 | |
38001 | ac_status=$? | |
38002 | grep -v '^ *+' conftest.er1 >conftest.err | |
38003 | rm -f conftest.er1 | |
38004 | cat conftest.err >&5 | |
38005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38006 | (exit $ac_status); } && | |
9dd0f6c2 | 38007 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
38008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38009 | (eval $ac_try) 2>&5 | |
38010 | ac_status=$? | |
38011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38012 | (exit $ac_status); }; } && | |
38013 | { ac_try='test -s conftest.$ac_objext' | |
38014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38015 | (eval $ac_try) 2>&5 | |
38016 | ac_status=$? | |
38017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38018 | (exit $ac_status); }; }; then | |
38019 | wx_cv_type_getsockopt5=socklen_t | |
38020 | else | |
38021 | echo "$as_me: failed program was:" >&5 | |
38022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38023 | ||
38024 | ||
38025 | CFLAGS_OLD="$CFLAGS" | |
38026 | if test "$GCC" = yes ; then | |
38027 | CFLAGS="$CFLAGS -Werror" | |
38028 | fi | |
38029 | ||
38030 | cat >conftest.$ac_ext <<_ACEOF | |
38031 | /* confdefs.h. */ | |
38032 | _ACEOF | |
38033 | cat confdefs.h >>conftest.$ac_ext | |
38034 | cat >>conftest.$ac_ext <<_ACEOF | |
38035 | /* end confdefs.h. */ | |
38036 | ||
38037 | #include <sys/types.h> | |
38038 | #include <sys/socket.h> | |
38039 | ||
38040 | int | |
38041 | main () | |
38042 | { | |
38043 | ||
38044 | size_t len; | |
38045 | getsockopt(0, 0, 0, 0, &len); | |
38046 | ||
38047 | ; | |
38048 | return 0; | |
38049 | } | |
38050 | _ACEOF | |
38051 | rm -f conftest.$ac_objext | |
38052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38053 | (eval $ac_compile) 2>conftest.er1 | |
38054 | ac_status=$? | |
38055 | grep -v '^ *+' conftest.er1 >conftest.err | |
38056 | rm -f conftest.er1 | |
38057 | cat conftest.err >&5 | |
38058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38059 | (exit $ac_status); } && | |
9dd0f6c2 | 38060 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
38061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38062 | (eval $ac_try) 2>&5 | |
38063 | ac_status=$? | |
38064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38065 | (exit $ac_status); }; } && | |
38066 | { ac_try='test -s conftest.$ac_objext' | |
38067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38068 | (eval $ac_try) 2>&5 | |
38069 | ac_status=$? | |
38070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38071 | (exit $ac_status); }; }; then | |
38072 | wx_cv_type_getsockopt5=size_t | |
38073 | else | |
38074 | echo "$as_me: failed program was:" >&5 | |
38075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38076 | ||
38077 | cat >conftest.$ac_ext <<_ACEOF | |
38078 | /* confdefs.h. */ | |
38079 | _ACEOF | |
38080 | cat confdefs.h >>conftest.$ac_ext | |
38081 | cat >>conftest.$ac_ext <<_ACEOF | |
38082 | /* end confdefs.h. */ | |
38083 | ||
38084 | #include <sys/types.h> | |
38085 | #include <sys/socket.h> | |
38086 | ||
38087 | int | |
38088 | main () | |
38089 | { | |
38090 | ||
38091 | int len; | |
38092 | getsockopt(0, 0, 0, 0, &len); | |
38093 | ||
38094 | ; | |
38095 | return 0; | |
38096 | } | |
38097 | _ACEOF | |
38098 | rm -f conftest.$ac_objext | |
38099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38100 | (eval $ac_compile) 2>conftest.er1 | |
38101 | ac_status=$? | |
38102 | grep -v '^ *+' conftest.er1 >conftest.err | |
38103 | rm -f conftest.er1 | |
38104 | cat conftest.err >&5 | |
38105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38106 | (exit $ac_status); } && | |
9dd0f6c2 | 38107 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
38108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38109 | (eval $ac_try) 2>&5 | |
38110 | ac_status=$? | |
38111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38112 | (exit $ac_status); }; } && | |
38113 | { ac_try='test -s conftest.$ac_objext' | |
38114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38115 | (eval $ac_try) 2>&5 | |
38116 | ac_status=$? | |
38117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38118 | (exit $ac_status); }; }; then | |
38119 | wx_cv_type_getsockopt5=int | |
38120 | else | |
38121 | echo "$as_me: failed program was:" >&5 | |
38122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38123 | ||
38124 | wx_cv_type_getsockopt5=unknown | |
38125 | ||
38126 | fi | |
38127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38128 | ||
38129 | fi | |
38130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38131 | ||
38132 | CFLAGS="$CFLAGS_OLD" | |
38133 | ||
38134 | ||
38135 | fi | |
38136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38137 | ||
38138 | fi | |
38139 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
38140 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
38141 | ||
38142 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
38143 | wxUSE_SOCKETS=no | |
38144 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
38145 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
38146 | else | |
38147 | cat >>confdefs.h <<_ACEOF | |
38148 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
38149 | _ACEOF |
38150 | ||
38151 | fi | |
4d4ff94c VZ |
38152 | ac_ext=c |
38153 | ac_cpp='$CPP $CPPFLAGS' | |
38154 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38155 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38156 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38157 | ||
a848cd7e SC |
38158 | fi |
38159 | fi | |
38160 | ||
38161 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
38162 | cat >>confdefs.h <<\_ACEOF | |
38163 | #define wxUSE_SOCKETS 1 | |
38164 | _ACEOF | |
38165 | ||
38166 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
38167 | fi | |
38168 | ||
38169 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
38170 | if test "$wxUSE_SOCKETS" != "yes"; then | |
38171 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
38172 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
38173 | wxUSE_PROTOCOL=no | |
38174 | fi | |
38175 | fi | |
38176 | ||
38177 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
38178 | cat >>confdefs.h <<\_ACEOF | |
38179 | #define wxUSE_PROTOCOL 1 | |
38180 | _ACEOF | |
38181 | ||
38182 | ||
38183 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
38184 | cat >>confdefs.h <<\_ACEOF | |
38185 | #define wxUSE_PROTOCOL_HTTP 1 | |
38186 | _ACEOF | |
38187 | ||
38188 | fi | |
38189 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
38190 | cat >>confdefs.h <<\_ACEOF | |
38191 | #define wxUSE_PROTOCOL_FTP 1 | |
38192 | _ACEOF | |
38193 | ||
38194 | fi | |
38195 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
38196 | cat >>confdefs.h <<\_ACEOF | |
38197 | #define wxUSE_PROTOCOL_FILE 1 | |
38198 | _ACEOF | |
38199 | ||
38200 | fi | |
38201 | else | |
38202 | if test "$wxUSE_FS_INET" = "yes"; then | |
38203 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
38204 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
38205 | wxUSE_FS_INET="no" | |
38206 | fi | |
38207 | fi | |
38208 | ||
38209 | if test "$wxUSE_URL" = "yes"; then | |
38210 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
38211 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
38212 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
38213 | wxUSE_URL=no | |
38214 | fi | |
38215 | if test "$wxUSE_URL" = "yes"; then | |
38216 | cat >>confdefs.h <<\_ACEOF | |
38217 | #define wxUSE_URL 1 | |
38218 | _ACEOF | |
38219 | ||
38220 | fi | |
38221 | fi | |
38222 | ||
38223 | if test "$wxUSE_FS_INET" = "yes"; then | |
38224 | cat >>confdefs.h <<\_ACEOF | |
38225 | #define wxUSE_FS_INET 1 | |
38226 | _ACEOF | |
38227 | ||
38228 | fi | |
38229 | ||
38230 | ||
38231 | if test "$wxUSE_GUI" = "yes"; then | |
4cb1d3da | 38232 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a848cd7e | 38233 | |
4cb1d3da | 38234 | if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then |
a848cd7e SC |
38235 | |
38236 | for ac_header in linux/joystick.h | |
38237 | do | |
38238 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38239 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38240 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38241 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38242 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38244 | fi | |
38245 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38246 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38247 | else | |
38248 | # Is the header compilable? | |
38249 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
38250 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
38251 | cat >conftest.$ac_ext <<_ACEOF | |
38252 | /* confdefs.h. */ | |
38253 | _ACEOF | |
38254 | cat confdefs.h >>conftest.$ac_ext | |
38255 | cat >>conftest.$ac_ext <<_ACEOF | |
38256 | /* end confdefs.h. */ | |
38257 | $ac_includes_default | |
38258 | #include <$ac_header> | |
38259 | _ACEOF | |
38260 | rm -f conftest.$ac_objext | |
38261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38262 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38263 | ac_status=$? |
ac1cb8d3 VS |
38264 | grep -v '^ *+' conftest.er1 >conftest.err |
38265 | rm -f conftest.er1 | |
38266 | cat conftest.err >&5 | |
a848cd7e SC |
38267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38268 | (exit $ac_status); } && | |
9dd0f6c2 | 38269 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38271 | (eval $ac_try) 2>&5 | |
38272 | ac_status=$? | |
38273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38274 | (exit $ac_status); }; } && | |
38275 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38277 | (eval $ac_try) 2>&5 | |
38278 | ac_status=$? | |
38279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38280 | (exit $ac_status); }; }; then | |
38281 | ac_header_compiler=yes | |
38282 | else | |
38283 | echo "$as_me: failed program was:" >&5 | |
38284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38285 | ||
38286 | ac_header_compiler=no | |
38287 | fi | |
ac1cb8d3 | 38288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38289 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
38290 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
38291 | ||
38292 | # Is the header present? | |
38293 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
38294 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
38295 | cat >conftest.$ac_ext <<_ACEOF | |
38296 | /* confdefs.h. */ | |
38297 | _ACEOF | |
38298 | cat confdefs.h >>conftest.$ac_ext | |
38299 | cat >>conftest.$ac_ext <<_ACEOF | |
38300 | /* end confdefs.h. */ | |
38301 | #include <$ac_header> | |
38302 | _ACEOF | |
38303 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
38304 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
38305 | ac_status=$? | |
38306 | grep -v '^ *+' conftest.er1 >conftest.err | |
38307 | rm -f conftest.er1 | |
38308 | cat conftest.err >&5 | |
38309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38310 | (exit $ac_status); } >/dev/null; then | |
38311 | if test -s conftest.err; then | |
38312 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 38313 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
38314 | else |
38315 | ac_cpp_err= | |
38316 | fi | |
38317 | else | |
38318 | ac_cpp_err=yes | |
38319 | fi | |
38320 | if test -z "$ac_cpp_err"; then | |
38321 | ac_header_preproc=yes | |
38322 | else | |
38323 | echo "$as_me: failed program was:" >&5 | |
38324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38325 | ||
38326 | ac_header_preproc=no | |
38327 | fi | |
38328 | rm -f conftest.err conftest.$ac_ext | |
38329 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
38330 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
38331 | ||
38332 | # So? What about this header? | |
ac1cb8d3 VS |
38333 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
38334 | yes:no: ) | |
a848cd7e SC |
38335 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
38336 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
38337 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
38338 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
38339 | ac_header_preproc=yes | |
a848cd7e | 38340 | ;; |
ac1cb8d3 | 38341 | no:yes:* ) |
a848cd7e SC |
38342 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
38343 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
38344 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
38345 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
38346 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
38347 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
38348 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
38349 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
38350 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
38351 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
38352 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
38353 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
38354 | ( |
38355 | cat <<\_ASBOX | |
ac1cb8d3 VS |
38356 | ## ----------------------------------------- ## |
38357 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
38358 | ## ----------------------------------------- ## | |
a848cd7e SC |
38359 | _ASBOX |
38360 | ) | | |
38361 | sed "s/^/$as_me: WARNING: /" >&2 | |
38362 | ;; | |
38363 | esac | |
38364 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38366 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38368 | else | |
ac1cb8d3 | 38369 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
38370 | fi |
38371 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38372 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38373 | ||
38374 | fi | |
38375 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38376 | cat >>confdefs.h <<_ACEOF | |
38377 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38378 | _ACEOF | |
38379 | ||
38380 | fi | |
38381 | ||
38382 | done | |
38383 | ||
38384 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
38385 | wxUSE_JOYSTICK=no | |
38386 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
38387 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
38388 | fi | |
4cb1d3da RN |
38389 | else |
38390 | if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then | |
38391 | wxUSE_JOYSTICK=no | |
38392 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
38393 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
38394 | fi | |
a848cd7e | 38395 | fi |
a848cd7e | 38396 | |
4cb1d3da RN |
38397 | |
38398 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
38399 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38400 | #define wxUSE_JOYSTICK 1 |
38401 | _ACEOF | |
38402 | ||
4cb1d3da RN |
38403 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
38404 | fi | |
a848cd7e SC |
38405 | fi |
38406 | fi | |
38407 | ||
38408 | ||
38409 | ||
38410 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
38411 | cat >>confdefs.h <<\_ACEOF | |
38412 | #define wxUSE_FONTMAP 1 | |
38413 | _ACEOF | |
38414 | ||
38415 | fi | |
38416 | ||
38417 | if test "$wxUSE_UNICODE" = "yes" ; then | |
38418 | cat >>confdefs.h <<\_ACEOF | |
38419 | #define wxUSE_UNICODE 1 | |
38420 | _ACEOF | |
38421 | ||
38422 | ||
38423 | if test "$USE_WIN32" != 1; then | |
38424 | wxUSE_UNICODE_MSLU=no | |
38425 | fi | |
38426 | ||
38427 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
38428 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
38429 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
38430 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
38431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38432 | else | |
38433 | ac_check_lib_save_LIBS=$LIBS | |
38434 | LIBS="-lunicows $LIBS" | |
38435 | cat >conftest.$ac_ext <<_ACEOF | |
38436 | /* confdefs.h. */ | |
38437 | _ACEOF | |
38438 | cat confdefs.h >>conftest.$ac_ext | |
38439 | cat >>conftest.$ac_ext <<_ACEOF | |
38440 | /* end confdefs.h. */ | |
38441 | ||
38442 | ||
38443 | int | |
38444 | main () | |
38445 | { | |
38446 | main (); | |
38447 | ; | |
38448 | return 0; | |
38449 | } | |
38450 | _ACEOF | |
38451 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38453 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38454 | ac_status=$? |
ac1cb8d3 VS |
38455 | grep -v '^ *+' conftest.er1 >conftest.err |
38456 | rm -f conftest.er1 | |
38457 | cat conftest.err >&5 | |
a848cd7e SC |
38458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38459 | (exit $ac_status); } && | |
9dd0f6c2 | 38460 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38462 | (eval $ac_try) 2>&5 | |
38463 | ac_status=$? | |
38464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38465 | (exit $ac_status); }; } && | |
38466 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38468 | (eval $ac_try) 2>&5 | |
38469 | ac_status=$? | |
38470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38471 | (exit $ac_status); }; }; then | |
38472 | ac_cv_lib_unicows_main=yes | |
38473 | else | |
38474 | echo "$as_me: failed program was:" >&5 | |
38475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38476 | ||
38477 | ac_cv_lib_unicows_main=no | |
38478 | fi | |
ac1cb8d3 VS |
38479 | rm -f conftest.err conftest.$ac_objext \ |
38480 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38481 | LIBS=$ac_check_lib_save_LIBS |
38482 | fi | |
38483 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
38484 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
38485 | if test $ac_cv_lib_unicows_main = yes; then | |
38486 | ||
38487 | cat >>confdefs.h <<\_ACEOF | |
38488 | #define wxUSE_UNICODE_MSLU 1 | |
38489 | _ACEOF | |
38490 | ||
38491 | ||
38492 | else | |
38493 | ||
38494 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
38495 | Applications will only run on Windows NT/2000/XP!" >&5 | |
38496 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
38497 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
38498 | wxUSE_UNICODE_MSLU=no | |
38499 | ||
38500 | fi | |
38501 | ||
38502 | fi | |
38503 | fi | |
38504 | ||
38505 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
38506 | cat >>confdefs.h <<\_ACEOF | |
38507 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
38508 | _ACEOF | |
38509 | ||
38510 | fi | |
38511 | ||
38512 | ||
38513 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
38514 | cat >>confdefs.h <<\_ACEOF | |
38515 | #define wxUSE_POSTSCRIPT 1 | |
38516 | _ACEOF | |
38517 | ||
38518 | fi | |
38519 | ||
38520 | cat >>confdefs.h <<\_ACEOF | |
38521 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
38522 | _ACEOF | |
38523 | ||
38524 | ||
38525 | cat >>confdefs.h <<\_ACEOF | |
38526 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
38527 | _ACEOF | |
38528 | ||
38529 | ||
38530 | ||
38531 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
38532 | cat >>confdefs.h <<\_ACEOF | |
38533 | #define wxUSE_CONSTRAINTS 1 | |
38534 | _ACEOF | |
38535 | ||
38536 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
38537 | fi | |
38538 | ||
8a7b1113 VZ |
38539 | if test "$wxUSE_MDI" = "yes"; then |
38540 | cat >>confdefs.h <<\_ACEOF | |
38541 | #define wxUSE_MDI 1 | |
38542 | _ACEOF | |
38543 | ||
38544 | ||
38545 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
38546 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38547 | #define wxUSE_MDI_ARCHITECTURE 1 |
38548 | _ACEOF | |
38549 | ||
8a7b1113 VZ |
38550 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
38551 | fi | |
a848cd7e SC |
38552 | fi |
38553 | ||
38554 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
38555 | cat >>confdefs.h <<\_ACEOF | |
38556 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
38557 | _ACEOF | |
38558 | ||
38559 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
38560 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
38561 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
38562 | fi | |
38563 | fi | |
38564 | ||
38565 | if test "$wxUSE_HELP" = "yes"; then | |
38566 | cat >>confdefs.h <<\_ACEOF | |
38567 | #define wxUSE_HELP 1 | |
38568 | _ACEOF | |
38569 | ||
38570 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
38571 | ||
38572 | if test "$wxUSE_MSW" = 1; then | |
38573 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
38574 | cat >>confdefs.h <<\_ACEOF | |
38575 | #define wxUSE_MS_HTML_HELP 1 | |
38576 | _ACEOF | |
38577 | ||
38578 | fi | |
38579 | fi | |
38580 | ||
38581 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
38582 | if test "$wxUSE_HTML" = "yes"; then | |
38583 | cat >>confdefs.h <<\_ACEOF | |
38584 | #define wxUSE_WXHTML_HELP 1 | |
38585 | _ACEOF | |
38586 | ||
38587 | else | |
38588 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
38589 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
38590 | wxUSE_WXHTML_HELP=no | |
38591 | fi | |
38592 | fi | |
38593 | fi | |
38594 | ||
38595 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
38596 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38597 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
38598 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
38599 | else | |
38600 | cat >>confdefs.h <<\_ACEOF | |
38601 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
38602 | _ACEOF | |
38603 | ||
38604 | fi | |
38605 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
38606 | fi | |
38607 | ||
38608 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
38609 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
38610 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
38611 | { (exit 1); exit 1; }; } | |
38612 | fi | |
38613 | ||
38614 | ||
38615 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
38616 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
38617 | -o "$wxUSE_OLE" = "yes" \ | |
38618 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
38619 | ||
38620 | for ac_header in ole2.h | |
38621 | do | |
38622 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38623 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38624 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38625 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38626 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38628 | fi | |
38629 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38630 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38631 | else | |
38632 | # Is the header compilable? | |
38633 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
38634 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
38635 | cat >conftest.$ac_ext <<_ACEOF | |
38636 | /* confdefs.h. */ | |
38637 | _ACEOF | |
38638 | cat confdefs.h >>conftest.$ac_ext | |
38639 | cat >>conftest.$ac_ext <<_ACEOF | |
38640 | /* end confdefs.h. */ | |
38641 | $ac_includes_default | |
38642 | #include <$ac_header> | |
38643 | _ACEOF | |
38644 | rm -f conftest.$ac_objext | |
38645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38646 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38647 | ac_status=$? |
ac1cb8d3 VS |
38648 | grep -v '^ *+' conftest.er1 >conftest.err |
38649 | rm -f conftest.er1 | |
38650 | cat conftest.err >&5 | |
a848cd7e SC |
38651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38652 | (exit $ac_status); } && | |
9dd0f6c2 | 38653 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38655 | (eval $ac_try) 2>&5 | |
38656 | ac_status=$? | |
38657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38658 | (exit $ac_status); }; } && | |
38659 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38661 | (eval $ac_try) 2>&5 | |
38662 | ac_status=$? | |
38663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38664 | (exit $ac_status); }; }; then | |
38665 | ac_header_compiler=yes | |
38666 | else | |
38667 | echo "$as_me: failed program was:" >&5 | |
38668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38669 | ||
38670 | ac_header_compiler=no | |
38671 | fi | |
ac1cb8d3 | 38672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38673 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
38674 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
38675 | ||
38676 | # Is the header present? | |
38677 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
38678 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
38679 | cat >conftest.$ac_ext <<_ACEOF | |
38680 | /* confdefs.h. */ | |
38681 | _ACEOF | |
38682 | cat confdefs.h >>conftest.$ac_ext | |
38683 | cat >>conftest.$ac_ext <<_ACEOF | |
38684 | /* end confdefs.h. */ | |
38685 | #include <$ac_header> | |
38686 | _ACEOF | |
38687 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
38688 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
38689 | ac_status=$? | |
38690 | grep -v '^ *+' conftest.er1 >conftest.err | |
38691 | rm -f conftest.er1 | |
38692 | cat conftest.err >&5 | |
38693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38694 | (exit $ac_status); } >/dev/null; then | |
38695 | if test -s conftest.err; then | |
38696 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 38697 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
38698 | else |
38699 | ac_cpp_err= | |
38700 | fi | |
38701 | else | |
38702 | ac_cpp_err=yes | |
38703 | fi | |
38704 | if test -z "$ac_cpp_err"; then | |
38705 | ac_header_preproc=yes | |
38706 | else | |
38707 | echo "$as_me: failed program was:" >&5 | |
38708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38709 | ||
38710 | ac_header_preproc=no | |
38711 | fi | |
38712 | rm -f conftest.err conftest.$ac_ext | |
38713 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
38714 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
38715 | ||
38716 | # So? What about this header? | |
ac1cb8d3 VS |
38717 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
38718 | yes:no: ) | |
a848cd7e SC |
38719 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
38720 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
38721 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
38722 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
38723 | ac_header_preproc=yes | |
a848cd7e | 38724 | ;; |
ac1cb8d3 | 38725 | no:yes:* ) |
a848cd7e SC |
38726 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
38727 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
38728 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
38729 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
38730 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
38731 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
38732 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
38733 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
38734 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
38735 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
38736 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
38737 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
38738 | ( |
38739 | cat <<\_ASBOX | |
ac1cb8d3 VS |
38740 | ## ----------------------------------------- ## |
38741 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
38742 | ## ----------------------------------------- ## | |
a848cd7e SC |
38743 | _ASBOX |
38744 | ) | | |
38745 | sed "s/^/$as_me: WARNING: /" >&2 | |
38746 | ;; | |
38747 | esac | |
38748 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38749 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38752 | else | |
ac1cb8d3 | 38753 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
38754 | fi |
38755 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38756 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38757 | ||
38758 | fi | |
38759 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38760 | cat >>confdefs.h <<_ACEOF | |
38761 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38762 | _ACEOF | |
38763 | ||
38764 | fi | |
38765 | ||
38766 | done | |
38767 | ||
38768 | ||
38769 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
38770 | if test "$GCC" = yes ; then | |
38771 | ||
38772 | ||
38773 | ac_ext=cc | |
38774 | ac_cpp='$CXXCPP $CPPFLAGS' | |
38775 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38776 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38777 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
38778 | ||
38779 | ||
38780 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
38781 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
38782 | cat >conftest.$ac_ext <<_ACEOF | |
38783 | /* confdefs.h. */ | |
38784 | _ACEOF | |
38785 | cat confdefs.h >>conftest.$ac_ext | |
38786 | cat >>conftest.$ac_ext <<_ACEOF | |
38787 | /* end confdefs.h. */ | |
38788 | #include <windows.h> | |
38789 | #include <ole2.h> | |
38790 | int | |
38791 | main () | |
38792 | { | |
38793 | ||
38794 | ; | |
38795 | return 0; | |
38796 | } | |
38797 | _ACEOF | |
38798 | rm -f conftest.$ac_objext | |
38799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38800 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38801 | ac_status=$? |
ac1cb8d3 VS |
38802 | grep -v '^ *+' conftest.er1 >conftest.err |
38803 | rm -f conftest.er1 | |
38804 | cat conftest.err >&5 | |
a848cd7e SC |
38805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38806 | (exit $ac_status); } && | |
9dd0f6c2 | 38807 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38809 | (eval $ac_try) 2>&5 | |
38810 | ac_status=$? | |
38811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38812 | (exit $ac_status); }; } && | |
38813 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38815 | (eval $ac_try) 2>&5 | |
38816 | ac_status=$? | |
38817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38818 | (exit $ac_status); }; }; then | |
38819 | echo "$as_me:$LINENO: result: no" >&5 | |
38820 | echo "${ECHO_T}no" >&6 | |
38821 | else | |
38822 | echo "$as_me: failed program was:" >&5 | |
38823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38824 | ||
38825 | echo "$as_me:$LINENO: result: yes" >&5 | |
38826 | echo "${ECHO_T}yes" >&6 | |
38827 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
38828 | fi | |
ac1cb8d3 | 38829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38830 | ac_ext=c |
38831 | ac_cpp='$CPP $CPPFLAGS' | |
38832 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38833 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38834 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38835 | ||
a848cd7e SC |
38836 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
38837 | if test "$wxUSE_OLE" = "yes" ; then | |
38838 | cat >>confdefs.h <<\_ACEOF | |
38839 | #define wxUSE_OLE 1 | |
38840 | _ACEOF | |
38841 | ||
0b78747f | 38842 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
38843 | fi |
38844 | fi | |
38845 | ||
38846 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
38847 | cat >>confdefs.h <<\_ACEOF | |
38848 | #define wxUSE_DATAOBJ 1 | |
38849 | _ACEOF | |
38850 | ||
38851 | fi | |
38852 | else | |
38853 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
38854 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
38855 | ||
38856 | wxUSE_CLIPBOARD=no | |
38857 | wxUSE_DRAG_AND_DROP=no | |
38858 | wxUSE_DATAOBJ=no | |
38859 | wxUSE_OLE=no | |
38860 | fi | |
38861 | ||
38862 | if test "$wxUSE_METAFILE" = "yes"; then | |
38863 | cat >>confdefs.h <<\_ACEOF | |
38864 | #define wxUSE_METAFILE 1 | |
38865 | _ACEOF | |
38866 | ||
38867 | ||
38868 | cat >>confdefs.h <<\_ACEOF | |
38869 | #define wxUSE_ENH_METAFILE 1 | |
38870 | _ACEOF | |
38871 | ||
38872 | fi | |
38873 | fi | |
38874 | ||
38875 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 38876 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
38877 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
38878 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 38879 | wxUSE_IPC=no |
a848cd7e SC |
38880 | fi |
38881 | ||
0b78747f MW |
38882 | if test "$wxUSE_IPC" = "yes"; then |
38883 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38884 | #define wxUSE_IPC 1 |
38885 | _ACEOF | |
38886 | ||
0b78747f MW |
38887 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
38888 | fi | |
a848cd7e SC |
38889 | fi |
38890 | ||
38891 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
38892 | if test "$wxUSE_MGL" = 1; then | |
38893 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
38894 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
38895 | wxUSE_CLIPBOARD=no | |
38896 | fi | |
38897 | ||
38898 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
38899 | cat >>confdefs.h <<\_ACEOF | |
38900 | #define wxUSE_CLIPBOARD 1 | |
38901 | _ACEOF | |
38902 | ||
38903 | ||
38904 | cat >>confdefs.h <<\_ACEOF | |
38905 | #define wxUSE_DATAOBJ 1 | |
38906 | _ACEOF | |
38907 | ||
38908 | fi | |
38909 | fi | |
38910 | ||
38911 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
38912 | if test "$wxUSE_GTK" = 1; then | |
38913 | if test "$WXGTK12" != 1; then | |
38914 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
38915 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
38916 | wxUSE_DRAG_AND_DROP=no | |
38917 | fi | |
38918 | fi | |
38919 | ||
38920 | if test "$wxUSE_MOTIF" = 1; then | |
38921 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
38922 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
38923 | wxUSE_DRAG_AND_DROP=no | |
38924 | fi | |
38925 | ||
38926 | if test "$wxUSE_X11" = 1; then | |
38927 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
38928 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
38929 | wxUSE_DRAG_AND_DROP=no | |
38930 | fi | |
38931 | ||
38932 | if test "$wxUSE_MGL" = 1; then | |
38933 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
38934 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
38935 | wxUSE_DRAG_AND_DROP=no | |
38936 | fi | |
38937 | ||
38938 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
38939 | cat >>confdefs.h <<\_ACEOF | |
38940 | #define wxUSE_DRAG_AND_DROP 1 | |
38941 | _ACEOF | |
38942 | ||
38943 | fi | |
38944 | ||
38945 | fi | |
38946 | ||
38947 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
38948 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
38949 | fi | |
38950 | ||
38951 | if test "$wxUSE_SPLINES" = "yes" ; then | |
38952 | cat >>confdefs.h <<\_ACEOF | |
38953 | #define wxUSE_SPLINES 1 | |
38954 | _ACEOF | |
38955 | ||
38956 | fi | |
38957 | ||
fbe2ca43 SN |
38958 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
38959 | cat >>confdefs.h <<\_ACEOF | |
38960 | #define wxUSE_MOUSEWHEEL 1 | |
38961 | _ACEOF | |
38962 | ||
38963 | fi | |
38964 | ||
a848cd7e SC |
38965 | |
38966 | USES_CONTROLS=0 | |
38967 | if test "$wxUSE_CONTROLS" = "yes"; then | |
38968 | USES_CONTROLS=1 | |
38969 | fi | |
38970 | ||
38971 | if test "$wxUSE_ACCEL" = "yes"; then | |
38972 | cat >>confdefs.h <<\_ACEOF | |
38973 | #define wxUSE_ACCEL 1 | |
38974 | _ACEOF | |
38975 | ||
38976 | USES_CONTROLS=1 | |
38977 | fi | |
38978 | ||
38979 | if test "$wxUSE_BUTTON" = "yes"; then | |
38980 | cat >>confdefs.h <<\_ACEOF | |
38981 | #define wxUSE_BUTTON 1 | |
38982 | _ACEOF | |
38983 | ||
38984 | USES_CONTROLS=1 | |
38985 | fi | |
38986 | ||
38987 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
38988 | cat >>confdefs.h <<\_ACEOF | |
38989 | #define wxUSE_BMPBUTTON 1 | |
38990 | _ACEOF | |
38991 | ||
38992 | USES_CONTROLS=1 | |
38993 | fi | |
38994 | ||
38995 | if test "$wxUSE_CALCTRL" = "yes"; then | |
38996 | cat >>confdefs.h <<\_ACEOF | |
38997 | #define wxUSE_CALENDARCTRL 1 | |
38998 | _ACEOF | |
38999 | ||
39000 | USES_CONTROLS=1 | |
39001 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
39002 | fi | |
39003 | ||
39004 | if test "$wxUSE_CARET" = "yes"; then | |
39005 | cat >>confdefs.h <<\_ACEOF | |
39006 | #define wxUSE_CARET 1 | |
39007 | _ACEOF | |
39008 | ||
39009 | USES_CONTROLS=1 | |
39010 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
39011 | fi | |
39012 | ||
39013 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
39014 | cat >>confdefs.h <<\_ACEOF | |
39015 | #define wxUSE_COMBOBOX 1 | |
39016 | _ACEOF | |
39017 | ||
39018 | USES_CONTROLS=1 | |
39019 | fi | |
39020 | ||
39021 | if test "$wxUSE_CHOICE" = "yes"; then | |
39022 | cat >>confdefs.h <<\_ACEOF | |
39023 | #define wxUSE_CHOICE 1 | |
39024 | _ACEOF | |
39025 | ||
39026 | USES_CONTROLS=1 | |
39027 | fi | |
39028 | ||
92bbdbcd WS |
39029 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
39030 | cat >>confdefs.h <<\_ACEOF | |
39031 | #define wxUSE_CHOICEBOOK 1 | |
39032 | _ACEOF | |
39033 | ||
39034 | USES_CONTROLS=1 | |
39035 | fi | |
39036 | ||
a848cd7e SC |
39037 | if test "$wxUSE_CHECKBOX" = "yes"; then |
39038 | cat >>confdefs.h <<\_ACEOF | |
39039 | #define wxUSE_CHECKBOX 1 | |
39040 | _ACEOF | |
39041 | ||
39042 | USES_CONTROLS=1 | |
39043 | fi | |
39044 | ||
39045 | if test "$wxUSE_CHECKLST" = "yes"; then | |
39046 | cat >>confdefs.h <<\_ACEOF | |
39047 | #define wxUSE_CHECKLISTBOX 1 | |
39048 | _ACEOF | |
39049 | ||
39050 | USES_CONTROLS=1 | |
39051 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
39052 | fi | |
39053 | ||
da98e9be VZ |
39054 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
39055 | cat >>confdefs.h <<\_ACEOF | |
39056 | #define wxUSE_DATEPICKCTRL 1 | |
39057 | _ACEOF | |
39058 | ||
39059 | USES_CONTROLS=1 | |
39060 | fi | |
39061 | ||
a848cd7e SC |
39062 | if test "$wxUSE_DISPLAY" = "yes"; then |
39063 | cat >>confdefs.h <<\_ACEOF | |
39064 | #define wxUSE_DISPLAY 1 | |
39065 | _ACEOF | |
39066 | ||
0b78747f | 39067 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
39068 | fi |
39069 | ||
39070 | if test "$wxUSE_GAUGE" = "yes"; then | |
39071 | cat >>confdefs.h <<\_ACEOF | |
39072 | #define wxUSE_GAUGE 1 | |
39073 | _ACEOF | |
39074 | ||
39075 | USES_CONTROLS=1 | |
39076 | fi | |
39077 | ||
39078 | if test "$wxUSE_GRID" = "yes"; then | |
39079 | cat >>confdefs.h <<\_ACEOF | |
39080 | #define wxUSE_GRID 1 | |
39081 | _ACEOF | |
39082 | ||
39083 | USES_CONTROLS=1 | |
39084 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
39085 | fi | |
39086 | ||
39087 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
39088 | cat >>confdefs.h <<\_ACEOF | |
39089 | #define wxUSE_IMAGLIST 1 | |
39090 | _ACEOF | |
39091 | ||
39092 | fi | |
39093 | ||
39094 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
39095 | cat >>confdefs.h <<\_ACEOF | |
39096 | #define wxUSE_LISTBOOK 1 | |
39097 | _ACEOF | |
39098 | ||
39099 | USES_CONTROLS=1 | |
39100 | fi | |
39101 | ||
39102 | if test "$wxUSE_LISTBOX" = "yes"; then | |
39103 | cat >>confdefs.h <<\_ACEOF | |
39104 | #define wxUSE_LISTBOX 1 | |
39105 | _ACEOF | |
39106 | ||
39107 | USES_CONTROLS=1 | |
0b78747f | 39108 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
39109 | fi |
39110 | ||
39111 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
39112 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
39113 | cat >>confdefs.h <<\_ACEOF | |
39114 | #define wxUSE_LISTCTRL 1 | |
39115 | _ACEOF | |
39116 | ||
39117 | USES_CONTROLS=1 | |
39118 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
39119 | else | |
39120 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
39121 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
39122 | fi | |
39123 | fi | |
39124 | ||
39125 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
39126 | cat >>confdefs.h <<\_ACEOF | |
39127 | #define wxUSE_NOTEBOOK 1 | |
39128 | _ACEOF | |
39129 | ||
39130 | USES_CONTROLS=1 | |
39131 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
39132 | fi | |
39133 | ||
39134 | ||
39135 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
39136 | cat >>confdefs.h <<\_ACEOF | |
39137 | #define wxUSE_RADIOBOX 1 | |
39138 | _ACEOF | |
39139 | ||
39140 | USES_CONTROLS=1 | |
39141 | fi | |
39142 | ||
39143 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
39144 | cat >>confdefs.h <<\_ACEOF | |
39145 | #define wxUSE_RADIOBTN 1 | |
39146 | _ACEOF | |
39147 | ||
39148 | USES_CONTROLS=1 | |
39149 | fi | |
39150 | ||
39151 | if test "$wxUSE_SASH" = "yes"; then | |
39152 | cat >>confdefs.h <<\_ACEOF | |
39153 | #define wxUSE_SASH 1 | |
39154 | _ACEOF | |
39155 | ||
39156 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
39157 | fi | |
39158 | ||
39159 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
39160 | cat >>confdefs.h <<\_ACEOF | |
39161 | #define wxUSE_SCROLLBAR 1 | |
39162 | _ACEOF | |
39163 | ||
39164 | USES_CONTROLS=1 | |
39165 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
39166 | fi | |
39167 | ||
39168 | if test "$wxUSE_SLIDER" = "yes"; then | |
39169 | cat >>confdefs.h <<\_ACEOF | |
39170 | #define wxUSE_SLIDER 1 | |
39171 | _ACEOF | |
39172 | ||
39173 | USES_CONTROLS=1 | |
39174 | fi | |
39175 | ||
39176 | if test "$wxUSE_SPINBTN" = "yes"; then | |
39177 | cat >>confdefs.h <<\_ACEOF | |
39178 | #define wxUSE_SPINBTN 1 | |
39179 | _ACEOF | |
39180 | ||
39181 | USES_CONTROLS=1 | |
39182 | fi | |
39183 | ||
39184 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
39185 | cat >>confdefs.h <<\_ACEOF | |
39186 | #define wxUSE_SPINCTRL 1 | |
39187 | _ACEOF | |
39188 | ||
39189 | USES_CONTROLS=1 | |
39190 | fi | |
39191 | ||
39192 | if test "$wxUSE_SPLITTER" = "yes"; then | |
39193 | cat >>confdefs.h <<\_ACEOF | |
39194 | #define wxUSE_SPLITTER 1 | |
39195 | _ACEOF | |
39196 | ||
39197 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
39198 | fi | |
39199 | ||
39200 | if test "$wxUSE_STATBMP" = "yes"; then | |
39201 | cat >>confdefs.h <<\_ACEOF | |
39202 | #define wxUSE_STATBMP 1 | |
39203 | _ACEOF | |
39204 | ||
39205 | USES_CONTROLS=1 | |
39206 | fi | |
39207 | ||
39208 | if test "$wxUSE_STATBOX" = "yes"; then | |
39209 | cat >>confdefs.h <<\_ACEOF | |
39210 | #define wxUSE_STATBOX 1 | |
39211 | _ACEOF | |
39212 | ||
39213 | USES_CONTROLS=1 | |
39214 | fi | |
39215 | ||
39216 | if test "$wxUSE_STATTEXT" = "yes"; then | |
39217 | cat >>confdefs.h <<\_ACEOF | |
39218 | #define wxUSE_STATTEXT 1 | |
39219 | _ACEOF | |
39220 | ||
39221 | USES_CONTROLS=1 | |
39222 | fi | |
39223 | ||
39224 | if test "$wxUSE_STATLINE" = "yes"; then | |
39225 | cat >>confdefs.h <<\_ACEOF | |
39226 | #define wxUSE_STATLINE 1 | |
39227 | _ACEOF | |
39228 | ||
39229 | USES_CONTROLS=1 | |
39230 | fi | |
39231 | ||
39232 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
39233 | cat >>confdefs.h <<\_ACEOF |
39234 | #define wxUSE_NATIVE_STATUSBAR 1 | |
39235 | _ACEOF | |
39236 | ||
a848cd7e SC |
39237 | cat >>confdefs.h <<\_ACEOF |
39238 | #define wxUSE_STATUSBAR 1 | |
39239 | _ACEOF | |
39240 | ||
39241 | USES_CONTROLS=1 | |
39242 | ||
39243 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
39244 | fi | |
39245 | ||
39246 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
39247 | cat >>confdefs.h <<\_ACEOF | |
39248 | #define wxUSE_TAB_DIALOG 1 | |
39249 | _ACEOF | |
39250 | ||
a848cd7e SC |
39251 | fi |
39252 | ||
39253 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
39254 | cat >>confdefs.h <<\_ACEOF | |
39255 | #define wxUSE_TEXTCTRL 1 | |
39256 | _ACEOF | |
39257 | ||
39258 | USES_CONTROLS=1 | |
39259 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
39260 | fi | |
39261 | ||
39262 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
39263 | if test "$wxUSE_COCOA" = 1 ; then | |
39264 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
39265 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
39266 | wxUSE_TOGGLEBTN=no | |
39267 | fi | |
39268 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
39269 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
39270 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
39271 | wxUSE_TOGGLEBTN=no | |
39272 | fi | |
39273 | ||
39274 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
39275 | cat >>confdefs.h <<\_ACEOF | |
39276 | #define wxUSE_TOGGLEBTN 1 | |
39277 | _ACEOF | |
39278 | ||
39279 | USES_CONTROLS=1 | |
39280 | fi | |
39281 | fi | |
39282 | ||
39283 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
39284 | cat >>confdefs.h <<\_ACEOF | |
39285 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
39286 | _ACEOF | |
39287 | ||
39288 | wxUSE_TOOLBAR="yes" | |
39289 | USES_CONTROLS=1 | |
39290 | fi | |
39291 | ||
39292 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
39293 | cat >>confdefs.h <<\_ACEOF | |
39294 | #define wxUSE_TOOLBAR 1 | |
39295 | _ACEOF | |
39296 | ||
39297 | USES_CONTROLS=1 | |
39298 | ||
39299 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
39300 | wxUSE_TOOLBAR_NATIVE="yes" | |
39301 | fi | |
39302 | ||
39303 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
39304 | cat >>confdefs.h <<\_ACEOF | |
39305 | #define wxUSE_TOOLBAR_NATIVE 1 | |
39306 | _ACEOF | |
39307 | ||
39308 | USES_CONTROLS=1 | |
39309 | fi | |
39310 | ||
39311 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
39312 | fi | |
39313 | ||
39314 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
39315 | if test "$wxUSE_MOTIF" = 1; then | |
39316 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
39317 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
39318 | else | |
39319 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
39320 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
39321 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
39322 | else | |
39323 | cat >>confdefs.h <<\_ACEOF | |
39324 | #define wxUSE_TOOLTIPS 1 | |
39325 | _ACEOF | |
39326 | ||
39327 | fi | |
39328 | fi | |
39329 | fi | |
39330 | ||
39331 | if test "$wxUSE_TREECTRL" = "yes"; then | |
39332 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
39333 | cat >>confdefs.h <<\_ACEOF | |
39334 | #define wxUSE_TREECTRL 1 | |
39335 | _ACEOF | |
39336 | ||
39337 | USES_CONTROLS=1 | |
39338 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
39339 | else | |
39340 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
39341 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
39342 | fi | |
39343 | fi | |
39344 | ||
39345 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
39346 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
39347 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
39348 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
39349 | else | |
39350 | if test "$wxUSE_PM" = 1; then | |
39351 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
39352 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
39353 | else | |
39354 | cat >>confdefs.h <<\_ACEOF | |
39355 | #define wxUSE_POPUPWIN 1 | |
39356 | _ACEOF | |
39357 | ||
0b78747f | 39358 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
39359 | |
39360 | USES_CONTROLS=1 | |
39361 | fi | |
39362 | fi | |
39363 | fi | |
39364 | ||
0dcd06dd | 39365 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
39366 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
39367 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
39368 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
39369 | else | |
39370 | cat >>confdefs.h <<\_ACEOF | |
39371 | #define wxUSE_DIALUP_MANAGER 1 | |
39372 | _ACEOF | |
39373 | ||
39374 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
39375 | fi | |
39376 | fi | |
39377 | ||
a848cd7e SC |
39378 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
39379 | if test "$wxUSE_PM" = 1; then | |
39380 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
39381 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
39382 | else | |
39383 | cat >>confdefs.h <<\_ACEOF | |
39384 | #define wxUSE_TIPWINDOW 1 | |
39385 | _ACEOF | |
39386 | ||
39387 | fi | |
39388 | fi | |
39389 | ||
39390 | if test "$USES_CONTROLS" = 1; then | |
39391 | cat >>confdefs.h <<\_ACEOF | |
39392 | #define wxUSE_CONTROLS 1 | |
39393 | _ACEOF | |
39394 | ||
39395 | fi | |
39396 | ||
39397 | ||
39398 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
39399 | cat >>confdefs.h <<\_ACEOF | |
39400 | #define wxUSE_ACCESSIBILITY 1 | |
39401 | _ACEOF | |
39402 | ||
39403 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
39404 | fi | |
39405 | ||
39406 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
39407 | cat >>confdefs.h <<\_ACEOF | |
39408 | #define wxUSE_DRAGIMAGE 1 | |
39409 | _ACEOF | |
39410 | ||
39411 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
39412 | fi | |
39413 | ||
39414 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
39415 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
39416 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
39417 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
39418 | else | |
39419 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
39420 | #define wxUSE_EXCEPTIONS 1 |
39421 | _ACEOF | |
39422 | ||
07bea8f0 VS |
39423 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
39424 | fi | |
a848cd7e SC |
39425 | fi |
39426 | ||
39427 | USE_HTML=0 | |
39428 | if test "$wxUSE_HTML" = "yes"; then | |
39429 | cat >>confdefs.h <<\_ACEOF | |
39430 | #define wxUSE_HTML 1 | |
39431 | _ACEOF | |
39432 | ||
39433 | USE_HTML=1 | |
39434 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
39435 | if test "$wxUSE_MAC" = 1; then |
39436 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
39437 | fi | |
a848cd7e | 39438 | fi |
646b6ec1 | 39439 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 39440 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
39441 | old_CPPFLAGS="$CPPFLAGS" |
39442 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
39443 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
39444 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
39445 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
39446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39447 | else | |
39448 | cat >conftest.$ac_ext <<_ACEOF | |
39449 | /* confdefs.h. */ | |
39450 | _ACEOF | |
39451 | cat confdefs.h >>conftest.$ac_ext | |
39452 | cat >>conftest.$ac_ext <<_ACEOF | |
39453 | /* end confdefs.h. */ | |
39454 | #include <Carbon/Carbon.h> | |
39455 | ||
39456 | #include <WebKit/HIWebView.h> | |
39457 | _ACEOF | |
39458 | rm -f conftest.$ac_objext | |
39459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39460 | (eval $ac_compile) 2>conftest.er1 | |
39461 | ac_status=$? | |
39462 | grep -v '^ *+' conftest.er1 >conftest.err | |
39463 | rm -f conftest.er1 | |
39464 | cat conftest.err >&5 | |
39465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39466 | (exit $ac_status); } && | |
9dd0f6c2 | 39467 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
39468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39469 | (eval $ac_try) 2>&5 | |
39470 | ac_status=$? | |
39471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39472 | (exit $ac_status); }; } && | |
39473 | { ac_try='test -s conftest.$ac_objext' | |
39474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39475 | (eval $ac_try) 2>&5 | |
39476 | ac_status=$? | |
39477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39478 | (exit $ac_status); }; }; then | |
39479 | ac_cv_header_WebKit_HIWebView_h=yes | |
39480 | else | |
39481 | echo "$as_me: failed program was:" >&5 | |
39482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39483 | ||
39484 | ac_cv_header_WebKit_HIWebView_h=no | |
39485 | fi | |
39486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39487 | fi | |
39488 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
39489 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
39490 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
39491 | ||
39492 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
39493 | #define wxUSE_WEBKIT 1 |
39494 | _ACEOF | |
39495 | ||
07bea8f0 VS |
39496 | WEBKIT_LINK="-framework WebKit" |
39497 | ||
39498 | else | |
39499 | ||
39500 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
39501 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
39502 | wxUSE_WEBKIT=no | |
39503 | ||
646b6ec1 VS |
39504 | fi |
39505 | ||
07bea8f0 VS |
39506 | |
39507 | CPPFLAGS="$old_CPPFLAGS" | |
39508 | elif test "$wxUSE_COCOA" = 1; then | |
39509 | cat >>confdefs.h <<\_ACEOF | |
39510 | #define wxUSE_WEBKIT 1 | |
39511 | _ACEOF | |
39512 | ||
39513 | else | |
39514 | wxUSE_WEBKIT=no | |
39515 | fi | |
39516 | fi | |
39517 | ||
9a8f0513 VS |
39518 | USE_XRC=0 |
39519 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
39520 | if test "$wxUSE_XML" != "yes"; then |
39521 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
39522 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
39523 | wxUSE_XRC=no | |
39524 | else | |
39525 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
39526 | #define wxUSE_XRC 1 |
39527 | _ACEOF | |
39528 | ||
d2ebf0b7 VS |
39529 | USE_XRC=1 |
39530 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
39531 | fi | |
9a8f0513 | 39532 | fi |
07bea8f0 | 39533 | |
a848cd7e SC |
39534 | if test "$wxUSE_MENUS" = "yes"; then |
39535 | cat >>confdefs.h <<\_ACEOF | |
39536 | #define wxUSE_MENUS 1 | |
39537 | _ACEOF | |
39538 | ||
39539 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
39540 | fi | |
39541 | ||
39542 | if test "$wxUSE_METAFILE" = "yes"; then | |
39543 | cat >>confdefs.h <<\_ACEOF | |
39544 | #define wxUSE_METAFILE 1 | |
39545 | _ACEOF | |
39546 | ||
39547 | fi | |
39548 | ||
39549 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
39550 | cat >>confdefs.h <<\_ACEOF | |
39551 | #define wxUSE_MIMETYPE 1 | |
39552 | _ACEOF | |
39553 | ||
39554 | fi | |
39555 | ||
39556 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
39557 | cat >>confdefs.h <<\_ACEOF | |
39558 | #define wxUSE_MINIFRAME 1 | |
39559 | _ACEOF | |
39560 | ||
39561 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
39562 | fi | |
39563 | ||
39564 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
39565 | cat >>confdefs.h <<\_ACEOF | |
39566 | #define wxUSE_SYSTEM_OPTIONS 1 | |
39567 | _ACEOF | |
39568 | ||
39569 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 39570 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
39571 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
39572 | fi | |
39573 | fi | |
39574 | ||
39575 | ||
39576 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
39577 | cat >>confdefs.h <<\_ACEOF | |
39578 | #define wxUSE_VALIDATORS 1 | |
39579 | _ACEOF | |
39580 | ||
39581 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
39582 | fi | |
39583 | ||
39584 | if test "$wxUSE_PALETTE" = "yes" ; then | |
39585 | cat >>confdefs.h <<\_ACEOF | |
39586 | #define wxUSE_PALETTE 1 | |
39587 | _ACEOF | |
39588 | ||
39589 | fi | |
39590 | ||
39591 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
39592 | LIBS=" -lunicows $LIBS" | |
39593 | fi | |
39594 | ||
39595 | ||
39596 | if test "$wxUSE_IMAGE" = "yes" ; then | |
39597 | cat >>confdefs.h <<\_ACEOF | |
39598 | #define wxUSE_IMAGE 1 | |
39599 | _ACEOF | |
39600 | ||
39601 | ||
39602 | if test "$wxUSE_GIF" = "yes" ; then | |
39603 | cat >>confdefs.h <<\_ACEOF | |
39604 | #define wxUSE_GIF 1 | |
39605 | _ACEOF | |
39606 | ||
39607 | fi | |
39608 | ||
39609 | if test "$wxUSE_PCX" = "yes" ; then | |
39610 | cat >>confdefs.h <<\_ACEOF | |
39611 | #define wxUSE_PCX 1 | |
39612 | _ACEOF | |
39613 | ||
39614 | fi | |
39615 | ||
39616 | if test "$wxUSE_IFF" = "yes" ; then | |
39617 | cat >>confdefs.h <<\_ACEOF | |
39618 | #define wxUSE_IFF 1 | |
39619 | _ACEOF | |
39620 | ||
39621 | fi | |
39622 | ||
39623 | if test "$wxUSE_PNM" = "yes" ; then | |
39624 | cat >>confdefs.h <<\_ACEOF | |
39625 | #define wxUSE_PNM 1 | |
39626 | _ACEOF | |
39627 | ||
39628 | fi | |
39629 | ||
39630 | if test "$wxUSE_XPM" = "yes" ; then | |
39631 | cat >>confdefs.h <<\_ACEOF | |
39632 | #define wxUSE_XPM 1 | |
39633 | _ACEOF | |
39634 | ||
39635 | fi | |
39636 | ||
39637 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
39638 | cat >>confdefs.h <<\_ACEOF | |
39639 | #define wxUSE_ICO_CUR 1 | |
39640 | _ACEOF | |
39641 | ||
39642 | fi | |
39643 | fi | |
39644 | ||
39645 | ||
39646 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
39647 | cat >>confdefs.h <<\_ACEOF | |
39648 | #define wxUSE_CHOICEDLG 1 | |
39649 | _ACEOF | |
39650 | ||
39651 | fi | |
39652 | ||
39653 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
39654 | cat >>confdefs.h <<\_ACEOF | |
39655 | #define wxUSE_COLOURDLG 1 | |
39656 | _ACEOF | |
39657 | ||
39658 | fi | |
39659 | ||
39660 | if test "$wxUSE_FILEDLG" = "yes"; then | |
39661 | cat >>confdefs.h <<\_ACEOF | |
39662 | #define wxUSE_FILEDLG 1 | |
39663 | _ACEOF | |
39664 | ||
39665 | fi | |
39666 | ||
39667 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
39668 | cat >>confdefs.h <<\_ACEOF | |
39669 | #define wxUSE_FINDREPLDLG 1 | |
39670 | _ACEOF | |
39671 | ||
39672 | fi | |
39673 | ||
39674 | if test "$wxUSE_FONTDLG" = "yes"; then | |
39675 | cat >>confdefs.h <<\_ACEOF | |
39676 | #define wxUSE_FONTDLG 1 | |
39677 | _ACEOF | |
39678 | ||
39679 | fi | |
39680 | ||
39681 | if test "$wxUSE_DIRDLG" = "yes"; then | |
39682 | if test "$wxUSE_TREECTRL" != "yes"; then | |
39683 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
39684 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
39685 | else | |
39686 | cat >>confdefs.h <<\_ACEOF | |
39687 | #define wxUSE_DIRDLG 1 | |
39688 | _ACEOF | |
39689 | ||
39690 | fi | |
39691 | fi | |
39692 | ||
39693 | if test "$wxUSE_MSGDLG" = "yes"; then | |
39694 | cat >>confdefs.h <<\_ACEOF | |
39695 | #define wxUSE_MSGDLG 1 | |
39696 | _ACEOF | |
39697 | ||
39698 | fi | |
39699 | ||
39700 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
39701 | cat >>confdefs.h <<\_ACEOF | |
39702 | #define wxUSE_NUMBERDLG 1 | |
39703 | _ACEOF | |
39704 | ||
39705 | fi | |
39706 | ||
39707 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
39708 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
39709 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
39710 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
39711 | else | |
39712 | cat >>confdefs.h <<\_ACEOF | |
39713 | #define wxUSE_PROGRESSDLG 1 | |
39714 | _ACEOF | |
39715 | ||
39716 | fi | |
39717 | fi | |
39718 | ||
39719 | if test "$wxUSE_SPLASH" = "yes"; then | |
39720 | cat >>confdefs.h <<\_ACEOF | |
39721 | #define wxUSE_SPLASH 1 | |
39722 | _ACEOF | |
39723 | ||
2057db16 | 39724 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
39725 | fi |
39726 | ||
39727 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
39728 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
39729 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
39730 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
39731 | else | |
39732 | cat >>confdefs.h <<\_ACEOF | |
39733 | #define wxUSE_STARTUP_TIPS 1 | |
39734 | _ACEOF | |
39735 | ||
39736 | fi | |
39737 | fi | |
39738 | ||
39739 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
39740 | cat >>confdefs.h <<\_ACEOF | |
39741 | #define wxUSE_TEXTDLG 1 | |
39742 | _ACEOF | |
39743 | ||
39744 | fi | |
39745 | ||
39746 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
39747 | cat >>confdefs.h <<\_ACEOF | |
39748 | #define wxUSE_WIZARDDLG 1 | |
39749 | _ACEOF | |
39750 | ||
39751 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
39752 | fi | |
39753 | ||
39754 | ||
ce756cb0 RN |
39755 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
39756 | if test "$wxUSE_MSW" = 1; then | |
39757 | wxUSE_DIRECTSHOW="yes" | |
39758 | ||
39759 | for ac_header in dshow.h | |
39760 | do | |
39761 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
39762 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39763 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39764 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39766 | else | |
39767 | cat >conftest.$ac_ext <<_ACEOF | |
39768 | /* confdefs.h. */ | |
39769 | _ACEOF | |
39770 | cat confdefs.h >>conftest.$ac_ext | |
39771 | cat >>conftest.$ac_ext <<_ACEOF | |
39772 | /* end confdefs.h. */ | |
39773 | #include <windows.h> | |
39774 | ||
39775 | #include <$ac_header> | |
39776 | _ACEOF | |
39777 | rm -f conftest.$ac_objext | |
39778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39779 | (eval $ac_compile) 2>conftest.er1 | |
39780 | ac_status=$? | |
39781 | grep -v '^ *+' conftest.er1 >conftest.err | |
39782 | rm -f conftest.er1 | |
39783 | cat conftest.err >&5 | |
39784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39785 | (exit $ac_status); } && | |
9dd0f6c2 | 39786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ce756cb0 RN |
39787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39788 | (eval $ac_try) 2>&5 | |
39789 | ac_status=$? | |
39790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39791 | (exit $ac_status); }; } && | |
39792 | { ac_try='test -s conftest.$ac_objext' | |
39793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39794 | (eval $ac_try) 2>&5 | |
39795 | ac_status=$? | |
39796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39797 | (exit $ac_status); }; }; then | |
39798 | eval "$as_ac_Header=yes" | |
39799 | else | |
39800 | echo "$as_me: failed program was:" >&5 | |
39801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39802 | ||
39803 | eval "$as_ac_Header=no" | |
39804 | fi | |
39805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39806 | fi | |
39807 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39808 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39809 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
39810 | cat >>confdefs.h <<_ACEOF | |
39811 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
39812 | _ACEOF | |
39813 | ||
39814 | else | |
39815 | ||
39816 | wxUSE_DIRECTSHOW="no" | |
39817 | { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5 | |
39818 | echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;} | |
39819 | ||
39820 | fi | |
39821 | ||
39822 | done | |
39823 | ||
39824 | ||
39825 | if test "$wxUSE_DIRECTSHOW" = "yes"; then | |
39826 | cat >>confdefs.h <<\_ACEOF | |
39827 | #define wxUSE_DIRECTSHOW 1 | |
39828 | _ACEOF | |
39829 | ||
39830 | LIBS="$LIBS -lstrmiids" | |
39831 | fi | |
39832 | fi | |
39833 | ||
39834 | if test "$wxUSE_GTK" = 1; then | |
39835 | wxUSE_GSTREAMER="yes" | |
39836 | ||
ce756cb0 | 39837 | |
dae87f93 | 39838 | succeeded=no |
ce756cb0 | 39839 | |
dae87f93 RN |
39840 | if test -z "$PKG_CONFIG"; then |
39841 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
39842 | set dummy pkg-config; ac_word=$2 | |
39843 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39845 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
39846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39847 | else | |
39848 | case $PKG_CONFIG in | |
39849 | [\\/]* | ?:[\\/]*) | |
39850 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
39851 | ;; | |
39852 | *) | |
39853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39854 | for as_dir in $PATH | |
39855 | do | |
39856 | IFS=$as_save_IFS | |
39857 | test -z "$as_dir" && as_dir=. | |
39858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39859 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39860 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
39861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39862 | break 2 | |
39863 | fi | |
39864 | done | |
39865 | done | |
39866 | ||
39867 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
39868 | ;; | |
39869 | esac | |
39870 | fi | |
39871 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
39872 | ||
39873 | if test -n "$PKG_CONFIG"; then | |
39874 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
39875 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
39876 | else | |
39877 | echo "$as_me:$LINENO: result: no" >&5 | |
39878 | echo "${ECHO_T}no" >&6 | |
39879 | fi | |
39880 | ||
39881 | fi | |
39882 | ||
39883 | if test "$PKG_CONFIG" = "no" ; then | |
39884 | echo "*** The pkg-config script could not be found. Make sure it is" | |
39885 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
39886 | echo "*** to the full path to pkg-config." | |
39887 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
39888 | else | |
39889 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
39890 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
39891 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
39892 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
39893 | ||
39894 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
39895 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 39896 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 39897 | succeeded=yes |
ce756cb0 | 39898 | |
dae87f93 RN |
39899 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
39900 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
39901 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
39902 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
39903 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
39904 | ||
39905 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
39906 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
39907 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
39908 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
39909 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
39910 | else | |
39911 | GSTREAMER_CFLAGS="" | |
39912 | GSTREAMER_LIBS="" | |
39913 | ## If we have a custom action on failure, don't print errors, but | |
39914 | ## do set a variable so people can do so. | |
39915 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 39916 | |
dae87f93 RN |
39917 | fi |
39918 | ||
39919 | ||
39920 | ||
39921 | else | |
39922 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
39923 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
39924 | fi | |
39925 | fi | |
39926 | ||
39927 | if test $succeeded = yes; then | |
39928 | ||
39929 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
39930 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 39931 | |
ce756cb0 | 39932 | else |
dae87f93 RN |
39933 | |
39934 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
39935 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
39936 | wxUSE_GSTREAMER="no" | |
39937 | ||
39938 | fi | |
39939 | ||
39940 | ||
39941 | ||
39942 | ||
39943 | ||
39944 | if test "x$GST_INSPECT" == "x"; then | |
39945 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
39946 | set dummy gst-inspect; ac_word=$2 | |
39947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39949 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
39950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39951 | else | |
39952 | if test -n "$GST_INSPECT"; then | |
39953 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
39954 | else | |
39955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39956 | for as_dir in $PATH | |
39957 | do | |
39958 | IFS=$as_save_IFS | |
39959 | test -z "$as_dir" && as_dir=. | |
39960 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39961 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39962 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
39963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39964 | break 2 | |
ce756cb0 | 39965 | fi |
dae87f93 RN |
39966 | done |
39967 | done | |
39968 | ||
39969 | fi | |
39970 | fi | |
39971 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
39972 | if test -n "$GST_INSPECT"; then | |
39973 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
39974 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
39975 | else | |
39976 | echo "$as_me:$LINENO: result: no" >&5 | |
39977 | echo "${ECHO_T}no" >&6 | |
39978 | fi | |
39979 | ||
39980 | fi | |
39981 | ||
39982 | if test "x$GST_INSPECT" != "x"; then | |
39983 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
39984 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
39985 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
39986 | echo "$as_me:$LINENO: result: found." >&5 | |
39987 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 39988 | |
ce756cb0 | 39989 | else |
dae87f93 RN |
39990 | echo "$as_me:$LINENO: result: not found." >&5 |
39991 | echo "${ECHO_T}not found." >&6 | |
39992 | ||
39993 | wxUSE_GSTREAMER="no" | |
39994 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
39995 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
39996 | ||
39997 | fi | |
39998 | fi | |
39999 | ||
40000 | ||
40001 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
40002 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
40003 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
40004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40005 | else | |
40006 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
40007 | /* confdefs.h. */ |
40008 | _ACEOF | |
40009 | cat confdefs.h >>conftest.$ac_ext | |
40010 | cat >>conftest.$ac_ext <<_ACEOF | |
40011 | /* end confdefs.h. */ | |
dae87f93 | 40012 | #include <gst/gst.h> |
ce756cb0 | 40013 | |
dae87f93 | 40014 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
40015 | _ACEOF |
40016 | rm -f conftest.$ac_objext | |
40017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40018 | (eval $ac_compile) 2>conftest.er1 | |
40019 | ac_status=$? | |
40020 | grep -v '^ *+' conftest.er1 >conftest.err | |
40021 | rm -f conftest.er1 | |
40022 | cat conftest.err >&5 | |
40023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40024 | (exit $ac_status); } && | |
9dd0f6c2 | 40025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ce756cb0 RN |
40026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40027 | (eval $ac_try) 2>&5 | |
40028 | ac_status=$? | |
40029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40030 | (exit $ac_status); }; } && | |
40031 | { ac_try='test -s conftest.$ac_objext' | |
40032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40033 | (eval $ac_try) 2>&5 | |
40034 | ac_status=$? | |
40035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40036 | (exit $ac_status); }; }; then | |
dae87f93 | 40037 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
40038 | else |
40039 | echo "$as_me: failed program was:" >&5 | |
40040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40041 | ||
dae87f93 | 40042 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
40043 | fi |
40044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
40045 | fi |
40046 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
40047 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
40048 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
40049 | : | |
40050 | else | |
ce756cb0 | 40051 | |
dae87f93 RN |
40052 | wxUSE_GSTREAMER="no" |
40053 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
40054 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 40055 | |
dae87f93 | 40056 | fi |
ce756cb0 | 40057 | |
dae87f93 RN |
40058 | |
40059 | ||
40060 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
40061 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
40062 | ||
40063 | ac_find_libraries= | |
40064 | for ac_dir in $SEARCH_LIB /usr/lib; | |
40065 | do | |
40066 | for ac_extension in a so sl dylib; do | |
40067 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then | |
40068 | ac_find_libraries=$ac_dir | |
40069 | break 2 | |
40070 | fi | |
40071 | done | |
40072 | done | |
40073 | ||
ce756cb0 | 40074 | |
dae87f93 RN |
40075 | if test "$ac_find_libraries" = "" ; then |
40076 | echo "$as_me:$LINENO: result: no" >&5 | |
40077 | echo "${ECHO_T}no" >&6 | |
40078 | wxUSE_GSTREAMER="no" | |
40079 | else | |
40080 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 40081 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 40082 | fi |
ce756cb0 | 40083 | |
dae87f93 RN |
40084 | if test "$wxUSE_GSTREAMER" = "yes"; then |
40085 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
40086 | #define wxUSE_GSTREAMER 1 |
40087 | _ACEOF | |
40088 | ||
dae87f93 RN |
40089 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
40090 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
40091 | fi |
40092 | fi | |
40093 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
40094 | cat >>confdefs.h <<\_ACEOF | |
40095 | #define wxUSE_MEDIACTRL 1 | |
40096 | _ACEOF | |
40097 | ||
40098 | fi | |
40099 | ||
40100 | ||
a848cd7e SC |
40101 | if test "$cross_compiling" = "yes"; then |
40102 | OSINFO="\"$host\"" | |
40103 | else | |
40104 | OSINFO=`uname -s -r -m` | |
40105 | OSINFO="\"$OSINFO\"" | |
40106 | fi | |
40107 | ||
40108 | cat >>confdefs.h <<_ACEOF | |
40109 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
40110 | _ACEOF | |
40111 | ||
40112 | ||
40113 | ||
40114 | if test "x$prefix" != "xNONE"; then | |
40115 | wxPREFIX=$prefix | |
40116 | else | |
40117 | wxPREFIX=$ac_default_prefix | |
40118 | fi | |
40119 | ||
40120 | cat >>confdefs.h <<_ACEOF | |
40121 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
40122 | _ACEOF | |
40123 | ||
40124 | ||
a848cd7e SC |
40125 | |
40126 | ||
40127 | CORE_BASE_LIBS="net base" | |
40128 | CORE_GUI_LIBS="adv core" | |
40129 | ||
40130 | if test "$wxUSE_XML" = "yes" ; then | |
40131 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
40132 | fi | |
40133 | if test "$wxUSE_ODBC" != "no" ; then | |
40134 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
40135 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
40136 | fi | |
40137 | if test "$wxUSE_HTML" = "yes" ; then | |
40138 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
40139 | fi | |
61639efb VZ |
40140 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
40141 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
40142 | fi | |
9a8f0513 VS |
40143 | if test "$wxUSE_XRC" = "yes" ; then |
40144 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
40145 | fi | |
a848cd7e SC |
40146 | |
40147 | if test "$wxUSE_GUI" != "yes"; then | |
40148 | CORE_GUI_LIBS="" | |
40149 | fi | |
40150 | ||
40151 | ||
40152 | ||
40153 | ||
40154 | ||
40155 | ||
40156 | ||
40157 | ||
40158 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 40159 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
40160 | if test "$USE_DARWIN" = 1; then |
40161 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
40162 | else | |
40163 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
40164 | fi | |
07bea8f0 | 40165 | fi |
5dcf30a0 | 40166 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
40167 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
40168 | else | |
40169 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 40170 | fi |
59746b65 MW |
40171 | elif test "$USE_DARWIN" = 1; then |
40172 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System" | |
a848cd7e SC |
40173 | fi |
40174 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 40175 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
40176 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
40177 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
40178 | fi | |
a848cd7e SC |
40179 | fi |
40180 | ||
40181 | ||
40182 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
40183 | ||
40184 | have_cos=0 | |
40185 | have_floor=0 | |
40186 | ||
40187 | for ac_func in cos | |
40188 | do | |
40189 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40190 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40191 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40192 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40194 | else | |
40195 | cat >conftest.$ac_ext <<_ACEOF | |
40196 | /* confdefs.h. */ | |
40197 | _ACEOF | |
40198 | cat confdefs.h >>conftest.$ac_ext | |
40199 | cat >>conftest.$ac_ext <<_ACEOF | |
40200 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40201 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40202 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40203 | #define $ac_func innocuous_$ac_func | |
40204 | ||
a848cd7e SC |
40205 | /* System header to define __stub macros and hopefully few prototypes, |
40206 | which can conflict with char $ac_func (); below. | |
40207 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40208 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40209 | |
a848cd7e SC |
40210 | #ifdef __STDC__ |
40211 | # include <limits.h> | |
40212 | #else | |
40213 | # include <assert.h> | |
40214 | #endif | |
ac1cb8d3 VS |
40215 | |
40216 | #undef $ac_func | |
40217 | ||
a848cd7e SC |
40218 | /* Override any gcc2 internal prototype to avoid an error. */ |
40219 | #ifdef __cplusplus | |
40220 | extern "C" | |
40221 | { | |
40222 | #endif | |
40223 | /* We use char because int might match the return type of a gcc2 | |
40224 | builtin and then its argument prototype would still apply. */ | |
40225 | char $ac_func (); | |
40226 | /* The GNU C library defines this for functions which it implements | |
40227 | to always fail with ENOSYS. Some functions are actually named | |
40228 | something starting with __ and the normal name is an alias. */ | |
40229 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40230 | choke me | |
40231 | #else | |
40232 | char (*f) () = $ac_func; | |
40233 | #endif | |
40234 | #ifdef __cplusplus | |
40235 | } | |
40236 | #endif | |
40237 | ||
40238 | int | |
40239 | main () | |
40240 | { | |
40241 | return f != $ac_func; | |
40242 | ; | |
40243 | return 0; | |
40244 | } | |
40245 | _ACEOF | |
40246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40248 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40249 | ac_status=$? |
ac1cb8d3 VS |
40250 | grep -v '^ *+' conftest.er1 >conftest.err |
40251 | rm -f conftest.er1 | |
40252 | cat conftest.err >&5 | |
a848cd7e SC |
40253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40254 | (exit $ac_status); } && | |
9dd0f6c2 | 40255 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40257 | (eval $ac_try) 2>&5 | |
40258 | ac_status=$? | |
40259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40260 | (exit $ac_status); }; } && | |
40261 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40263 | (eval $ac_try) 2>&5 | |
40264 | ac_status=$? | |
40265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40266 | (exit $ac_status); }; }; then | |
40267 | eval "$as_ac_var=yes" | |
40268 | else | |
40269 | echo "$as_me: failed program was:" >&5 | |
40270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40271 | ||
40272 | eval "$as_ac_var=no" | |
40273 | fi | |
ac1cb8d3 VS |
40274 | rm -f conftest.err conftest.$ac_objext \ |
40275 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40276 | fi |
40277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40278 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40279 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40280 | cat >>confdefs.h <<_ACEOF | |
40281 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40282 | _ACEOF | |
40283 | have_cos=1 | |
40284 | fi | |
40285 | done | |
40286 | ||
40287 | ||
40288 | for ac_func in floor | |
40289 | do | |
40290 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40291 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40292 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40293 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40295 | else | |
40296 | cat >conftest.$ac_ext <<_ACEOF | |
40297 | /* confdefs.h. */ | |
40298 | _ACEOF | |
40299 | cat confdefs.h >>conftest.$ac_ext | |
40300 | cat >>conftest.$ac_ext <<_ACEOF | |
40301 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40302 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40303 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40304 | #define $ac_func innocuous_$ac_func | |
40305 | ||
a848cd7e SC |
40306 | /* System header to define __stub macros and hopefully few prototypes, |
40307 | which can conflict with char $ac_func (); below. | |
40308 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40309 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40310 | |
a848cd7e SC |
40311 | #ifdef __STDC__ |
40312 | # include <limits.h> | |
40313 | #else | |
40314 | # include <assert.h> | |
40315 | #endif | |
ac1cb8d3 VS |
40316 | |
40317 | #undef $ac_func | |
40318 | ||
a848cd7e SC |
40319 | /* Override any gcc2 internal prototype to avoid an error. */ |
40320 | #ifdef __cplusplus | |
40321 | extern "C" | |
40322 | { | |
40323 | #endif | |
40324 | /* We use char because int might match the return type of a gcc2 | |
40325 | builtin and then its argument prototype would still apply. */ | |
40326 | char $ac_func (); | |
40327 | /* The GNU C library defines this for functions which it implements | |
40328 | to always fail with ENOSYS. Some functions are actually named | |
40329 | something starting with __ and the normal name is an alias. */ | |
40330 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40331 | choke me | |
40332 | #else | |
40333 | char (*f) () = $ac_func; | |
40334 | #endif | |
40335 | #ifdef __cplusplus | |
40336 | } | |
40337 | #endif | |
40338 | ||
40339 | int | |
40340 | main () | |
40341 | { | |
40342 | return f != $ac_func; | |
40343 | ; | |
40344 | return 0; | |
40345 | } | |
40346 | _ACEOF | |
40347 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40349 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40350 | ac_status=$? |
ac1cb8d3 VS |
40351 | grep -v '^ *+' conftest.er1 >conftest.err |
40352 | rm -f conftest.er1 | |
40353 | cat conftest.err >&5 | |
a848cd7e SC |
40354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40355 | (exit $ac_status); } && | |
9dd0f6c2 | 40356 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40358 | (eval $ac_try) 2>&5 | |
40359 | ac_status=$? | |
40360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40361 | (exit $ac_status); }; } && | |
40362 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40364 | (eval $ac_try) 2>&5 | |
40365 | ac_status=$? | |
40366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40367 | (exit $ac_status); }; }; then | |
40368 | eval "$as_ac_var=yes" | |
40369 | else | |
40370 | echo "$as_me: failed program was:" >&5 | |
40371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40372 | ||
40373 | eval "$as_ac_var=no" | |
40374 | fi | |
ac1cb8d3 VS |
40375 | rm -f conftest.err conftest.$ac_objext \ |
40376 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40377 | fi |
40378 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40379 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40380 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40381 | cat >>confdefs.h <<_ACEOF | |
40382 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40383 | _ACEOF | |
40384 | have_floor=1 | |
40385 | fi | |
40386 | done | |
40387 | ||
40388 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
40389 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
40390 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
40391 | echo "$as_me:$LINENO: result: yes" >&5 | |
40392 | echo "${ECHO_T}yes" >&6 | |
40393 | else | |
40394 | echo "$as_me:$LINENO: result: no" >&5 | |
40395 | echo "${ECHO_T}no" >&6 | |
40396 | LIBS="$LIBS -lm" | |
40397 | # use different functions to avoid configure caching | |
40398 | have_sin=0 | |
40399 | have_ceil=0 | |
40400 | ||
40401 | for ac_func in sin | |
40402 | do | |
40403 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40404 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40405 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40406 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40408 | else | |
40409 | cat >conftest.$ac_ext <<_ACEOF | |
40410 | /* confdefs.h. */ | |
40411 | _ACEOF | |
40412 | cat confdefs.h >>conftest.$ac_ext | |
40413 | cat >>conftest.$ac_ext <<_ACEOF | |
40414 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40415 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40416 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40417 | #define $ac_func innocuous_$ac_func | |
40418 | ||
a848cd7e SC |
40419 | /* System header to define __stub macros and hopefully few prototypes, |
40420 | which can conflict with char $ac_func (); below. | |
40421 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40422 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40423 | |
a848cd7e SC |
40424 | #ifdef __STDC__ |
40425 | # include <limits.h> | |
40426 | #else | |
40427 | # include <assert.h> | |
40428 | #endif | |
ac1cb8d3 VS |
40429 | |
40430 | #undef $ac_func | |
40431 | ||
a848cd7e SC |
40432 | /* Override any gcc2 internal prototype to avoid an error. */ |
40433 | #ifdef __cplusplus | |
40434 | extern "C" | |
40435 | { | |
40436 | #endif | |
40437 | /* We use char because int might match the return type of a gcc2 | |
40438 | builtin and then its argument prototype would still apply. */ | |
40439 | char $ac_func (); | |
40440 | /* The GNU C library defines this for functions which it implements | |
40441 | to always fail with ENOSYS. Some functions are actually named | |
40442 | something starting with __ and the normal name is an alias. */ | |
40443 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40444 | choke me | |
40445 | #else | |
40446 | char (*f) () = $ac_func; | |
40447 | #endif | |
40448 | #ifdef __cplusplus | |
40449 | } | |
40450 | #endif | |
40451 | ||
40452 | int | |
40453 | main () | |
40454 | { | |
40455 | return f != $ac_func; | |
40456 | ; | |
40457 | return 0; | |
40458 | } | |
40459 | _ACEOF | |
40460 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40462 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40463 | ac_status=$? |
ac1cb8d3 VS |
40464 | grep -v '^ *+' conftest.er1 >conftest.err |
40465 | rm -f conftest.er1 | |
40466 | cat conftest.err >&5 | |
a848cd7e SC |
40467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40468 | (exit $ac_status); } && | |
9dd0f6c2 | 40469 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40471 | (eval $ac_try) 2>&5 | |
40472 | ac_status=$? | |
40473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40474 | (exit $ac_status); }; } && | |
40475 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40477 | (eval $ac_try) 2>&5 | |
40478 | ac_status=$? | |
40479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40480 | (exit $ac_status); }; }; then | |
40481 | eval "$as_ac_var=yes" | |
40482 | else | |
40483 | echo "$as_me: failed program was:" >&5 | |
40484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40485 | ||
40486 | eval "$as_ac_var=no" | |
40487 | fi | |
ac1cb8d3 VS |
40488 | rm -f conftest.err conftest.$ac_objext \ |
40489 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40490 | fi |
40491 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40492 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40493 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40494 | cat >>confdefs.h <<_ACEOF | |
40495 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40496 | _ACEOF | |
40497 | have_sin=1 | |
40498 | fi | |
40499 | done | |
40500 | ||
40501 | ||
40502 | for ac_func in ceil | |
40503 | do | |
40504 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40505 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40506 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40507 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40509 | else | |
40510 | cat >conftest.$ac_ext <<_ACEOF | |
40511 | /* confdefs.h. */ | |
40512 | _ACEOF | |
40513 | cat confdefs.h >>conftest.$ac_ext | |
40514 | cat >>conftest.$ac_ext <<_ACEOF | |
40515 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40516 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40517 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40518 | #define $ac_func innocuous_$ac_func | |
40519 | ||
a848cd7e SC |
40520 | /* System header to define __stub macros and hopefully few prototypes, |
40521 | which can conflict with char $ac_func (); below. | |
40522 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40523 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40524 | |
a848cd7e SC |
40525 | #ifdef __STDC__ |
40526 | # include <limits.h> | |
40527 | #else | |
40528 | # include <assert.h> | |
40529 | #endif | |
ac1cb8d3 VS |
40530 | |
40531 | #undef $ac_func | |
40532 | ||
a848cd7e SC |
40533 | /* Override any gcc2 internal prototype to avoid an error. */ |
40534 | #ifdef __cplusplus | |
40535 | extern "C" | |
40536 | { | |
40537 | #endif | |
40538 | /* We use char because int might match the return type of a gcc2 | |
40539 | builtin and then its argument prototype would still apply. */ | |
40540 | char $ac_func (); | |
40541 | /* The GNU C library defines this for functions which it implements | |
40542 | to always fail with ENOSYS. Some functions are actually named | |
40543 | something starting with __ and the normal name is an alias. */ | |
40544 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40545 | choke me | |
40546 | #else | |
40547 | char (*f) () = $ac_func; | |
40548 | #endif | |
40549 | #ifdef __cplusplus | |
40550 | } | |
40551 | #endif | |
40552 | ||
40553 | int | |
40554 | main () | |
40555 | { | |
40556 | return f != $ac_func; | |
40557 | ; | |
40558 | return 0; | |
40559 | } | |
40560 | _ACEOF | |
40561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40563 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40564 | ac_status=$? |
ac1cb8d3 VS |
40565 | grep -v '^ *+' conftest.er1 >conftest.err |
40566 | rm -f conftest.er1 | |
40567 | cat conftest.err >&5 | |
a848cd7e SC |
40568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40569 | (exit $ac_status); } && | |
9dd0f6c2 | 40570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40572 | (eval $ac_try) 2>&5 | |
40573 | ac_status=$? | |
40574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40575 | (exit $ac_status); }; } && | |
40576 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40578 | (eval $ac_try) 2>&5 | |
40579 | ac_status=$? | |
40580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40581 | (exit $ac_status); }; }; then | |
40582 | eval "$as_ac_var=yes" | |
40583 | else | |
40584 | echo "$as_me: failed program was:" >&5 | |
40585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40586 | ||
40587 | eval "$as_ac_var=no" | |
40588 | fi | |
ac1cb8d3 VS |
40589 | rm -f conftest.err conftest.$ac_objext \ |
40590 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40591 | fi |
40592 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40593 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40594 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40595 | cat >>confdefs.h <<_ACEOF | |
40596 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40597 | _ACEOF | |
40598 | have_ceil=1 | |
40599 | fi | |
40600 | done | |
40601 | ||
40602 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
40603 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
40604 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
40605 | echo "$as_me:$LINENO: result: yes" >&5 | |
40606 | echo "${ECHO_T}yes" >&6 | |
40607 | else | |
40608 | echo "$as_me:$LINENO: result: no" >&5 | |
40609 | echo "${ECHO_T}no" >&6 | |
40610 | # not sure we should warn the user, crash, etc. | |
40611 | fi | |
40612 | fi | |
40613 | ||
40614 | if test "$wxUSE_GUI" = "yes"; then | |
40615 | ||
40616 | ||
8bce5cda MW |
40617 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
40618 | dynamic erase event exec font image minimal mobile \ | |
40619 | mobile/wxedit mobile/styles propsize render \ | |
40620 | richedit rotate shaped vscroll widgets" | |
a848cd7e SC |
40621 | |
40622 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
40623 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
40624 | fi | |
0b78747f | 40625 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
40626 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
40627 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
40628 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
40629 | fi | |
40630 | fi | |
40631 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
40632 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 40633 | fi |
a848cd7e SC |
40634 | else |
40635 | SAMPLES_SUBDIRS="console" | |
40636 | fi | |
40637 | ||
40638 | ||
ceec2216 | 40639 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
40640 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
40641 | ||
40642 | if test "$GXX" = yes ; then | |
5294a27e VZ |
40643 | CWARNINGS="-Wall" |
40644 | CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy" | |
a848cd7e SC |
40645 | fi |
40646 | ||
40647 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
40648 | ||
0c3c69fc | 40649 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 40650 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 40651 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 40652 | |
95986553 DE |
40653 | if test "x$MWCC" = "xyes"; then |
40654 | ||
40655 | CC="$CC -cwd source -I-" | |
40656 | CXX="$CXX -cwd source -I-" | |
40657 | fi | |
40658 | ||
a848cd7e | 40659 | |
0c3c69fc | 40660 | LIBS=`echo $LIBS` |
a848cd7e SC |
40661 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
40662 | EXTRALIBS_XML="$EXPAT_LINK" | |
40663 | EXTRALIBS_HTML="$MSPACK_LINK" | |
40664 | EXTRALIBS_ODBC="$ODBC_LINK" | |
40665 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 40666 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
40667 | fi |
40668 | if test "$wxUSE_OPENGL" = "yes"; then | |
40669 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
40670 | fi | |
40671 | ||
40672 | LDFLAGS="$LDFLAGS $PROFILE" | |
40673 | ||
40674 | if test "$wxUSE_GTK" = 1; then | |
40675 | WXCONFIG_INCLUDE= | |
40676 | else | |
40677 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
40678 | fi | |
40679 | ||
40680 | WXCONFIG_EXTRALIBS="$LIBS" | |
40681 | ||
40682 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 40683 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
40684 | fi |
40685 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 40686 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
40687 | fi |
40688 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 40689 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
40690 | fi |
40691 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 40692 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
40693 | fi |
40694 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 40695 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
40696 | fi |
40697 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 40698 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
40699 | fi |
40700 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 40701 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
40702 | fi |
40703 | ||
40704 | for i in $wxconfig_3rdparty ; do | |
74802184 | 40705 | WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS" |
a848cd7e SC |
40706 | done |
40707 | ||
40708 | ||
40709 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
40710 | WXUNIV=1 | |
40711 | else | |
40712 | WXUNIV=0 | |
40713 | fi | |
40714 | ||
40715 | ||
40716 | ||
40717 | ||
40718 | ||
40719 | ||
40720 | ||
40721 | ||
40722 | ||
40723 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
40724 | MONOLITHIC=1 | |
40725 | else | |
40726 | MONOLITHIC=0 | |
40727 | fi | |
40728 | ||
40729 | if test $wxUSE_PLUGINS = "yes" ; then | |
40730 | USE_PLUGINS=1 | |
40731 | else | |
40732 | USE_PLUGINS=0 | |
40733 | fi | |
40734 | ||
40735 | if test $wxUSE_ODBC != "no" ; then | |
40736 | USE_ODBC=1 | |
40737 | else | |
40738 | USE_ODBC=0 | |
40739 | fi | |
40740 | ||
16358932 VZ |
40741 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
40742 | USE_QA=1 | |
40743 | else | |
40744 | USE_QA=0 | |
40745 | fi | |
40746 | ||
a848cd7e SC |
40747 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
40748 | OFFICIAL_BUILD=1 | |
40749 | else | |
40750 | OFFICIAL_BUILD=0 | |
40751 | fi | |
40752 | ||
40753 | ||
40754 | ||
40755 | ||
40756 | ||
40757 | ||
40758 | ||
40759 | ||
40760 | ||
40761 | ||
40762 | ||
40763 | ||
40764 | ||
40765 | ||
40766 | ||
40767 | ||
40768 | ||
40769 | ||
40770 | ||
ceec2216 | 40771 | |
d1c38808 | 40772 | |
a848cd7e SC |
40773 | |
40774 | ||
40775 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
40776 | ||
40777 | ||
40778 | ||
40779 | ||
40780 | ||
40781 | ||
40782 | ||
40783 | ||
4d4ff94c VZ |
40784 | case "$TOOLKIT" in |
40785 | GTK) | |
40786 | TOOLKIT_USER="GTK+" | |
40787 | if test "$WXGTK20" = 1; then | |
40788 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
40789 | fi | |
9a8f0513 | 40790 | ;; |
4d4ff94c VZ |
40791 | |
40792 | *) | |
40793 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 40794 | ;; |
4d4ff94c | 40795 | esac |
a848cd7e | 40796 | |
9a8f0513 | 40797 | |
1e9e8aba DE |
40798 | |
40799 | ||
a848cd7e SC |
40800 | if test "x$BAKEFILE_HOST" = "x"; then |
40801 | BAKEFILE_HOST="${host}" | |
40802 | fi | |
40803 | ||
40804 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
40805 | ||
40806 | if test -n "$ac_tool_prefix"; then | |
40807 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
40808 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
40809 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40811 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
40812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40813 | else | |
40814 | if test -n "$RANLIB"; then | |
40815 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
40816 | else | |
40817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40818 | for as_dir in $PATH | |
40819 | do | |
40820 | IFS=$as_save_IFS | |
40821 | test -z "$as_dir" && as_dir=. | |
40822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40823 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40824 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
40825 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40826 | break 2 | |
40827 | fi | |
40828 | done | |
40829 | done | |
40830 | ||
40831 | fi | |
40832 | fi | |
40833 | RANLIB=$ac_cv_prog_RANLIB | |
40834 | if test -n "$RANLIB"; then | |
40835 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
40836 | echo "${ECHO_T}$RANLIB" >&6 | |
40837 | else | |
40838 | echo "$as_me:$LINENO: result: no" >&5 | |
40839 | echo "${ECHO_T}no" >&6 | |
40840 | fi | |
40841 | ||
40842 | fi | |
40843 | if test -z "$ac_cv_prog_RANLIB"; then | |
40844 | ac_ct_RANLIB=$RANLIB | |
40845 | # Extract the first word of "ranlib", so it can be a program name with args. | |
40846 | set dummy ranlib; ac_word=$2 | |
40847 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40848 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40849 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
40850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40851 | else | |
40852 | if test -n "$ac_ct_RANLIB"; then | |
40853 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
40854 | else | |
40855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40856 | for as_dir in $PATH | |
40857 | do | |
40858 | IFS=$as_save_IFS | |
40859 | test -z "$as_dir" && as_dir=. | |
40860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40861 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40862 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
40863 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40864 | break 2 | |
40865 | fi | |
40866 | done | |
40867 | done | |
40868 | ||
40869 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
40870 | fi | |
40871 | fi | |
40872 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
40873 | if test -n "$ac_ct_RANLIB"; then | |
40874 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
40875 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
40876 | else | |
40877 | echo "$as_me:$LINENO: result: no" >&5 | |
40878 | echo "${ECHO_T}no" >&6 | |
40879 | fi | |
40880 | ||
40881 | RANLIB=$ac_ct_RANLIB | |
40882 | else | |
40883 | RANLIB="$ac_cv_prog_RANLIB" | |
40884 | fi | |
40885 | ||
40886 | # Find a good install program. We prefer a C program (faster), | |
40887 | # so one script is as good as another. But avoid the broken or | |
40888 | # incompatible versions: | |
40889 | # SysV /etc/install, /usr/sbin/install | |
40890 | # SunOS /usr/etc/install | |
40891 | # IRIX /sbin/install | |
40892 | # AIX /bin/install | |
40893 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
40894 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
40895 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
40896 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 40897 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
40898 | # ./install, which can be erroneously created by make from ./install.sh. |
40899 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
40900 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
40901 | if test -z "$INSTALL"; then | |
40902 | if test "${ac_cv_path_install+set}" = set; then | |
40903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40904 | else | |
40905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40906 | for as_dir in $PATH | |
40907 | do | |
40908 | IFS=$as_save_IFS | |
40909 | test -z "$as_dir" && as_dir=. | |
40910 | # Account for people who put trailing slashes in PATH elements. | |
40911 | case $as_dir/ in | |
40912 | ./ | .// | /cC/* | \ | |
40913 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 40914 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
40915 | /usr/ucb/* ) ;; |
40916 | *) | |
40917 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
40918 | # Don't use installbsd from OSF since it installs stuff as root | |
40919 | # by default. | |
40920 | for ac_prog in ginstall scoinst install; do | |
40921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
40922 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
40923 | if test $ac_prog = install && | |
40924 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
40925 | # AIX install. It has an incompatible calling convention. | |
40926 | : | |
40927 | elif test $ac_prog = install && | |
40928 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
40929 | # program-specific install script used by HP pwplus--don't use. | |
40930 | : | |
40931 | else | |
40932 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
40933 | break 3 | |
40934 | fi | |
40935 | fi | |
a848cd7e SC |
40936 | done |
40937 | done | |
40938 | ;; | |
40939 | esac | |
40940 | done | |
40941 | ||
40942 | ||
40943 | fi | |
40944 | if test "${ac_cv_path_install+set}" = set; then | |
40945 | INSTALL=$ac_cv_path_install | |
40946 | else | |
40947 | # As a last resort, use the slow shell script. We don't cache a | |
40948 | # path for INSTALL within a source directory, because that will | |
40949 | # break other packages using the cache if that directory is | |
40950 | # removed, or if the path is relative. | |
40951 | INSTALL=$ac_install_sh | |
40952 | fi | |
40953 | fi | |
40954 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
40955 | echo "${ECHO_T}$INSTALL" >&6 | |
40956 | ||
40957 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
40958 | # It thinks the first close brace ends the variable substitution. | |
40959 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
40960 | ||
40961 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
40962 | ||
40963 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
40964 | ||
40965 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
40966 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
40967 | LN_S=$as_ln_s | |
40968 | if test "$LN_S" = "ln -s"; then | |
40969 | echo "$as_me:$LINENO: result: yes" >&5 | |
40970 | echo "${ECHO_T}yes" >&6 | |
40971 | else | |
40972 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
40973 | echo "${ECHO_T}no, using $LN_S" >&6 | |
40974 | fi | |
40975 | ||
40976 | ||
40977 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
40978 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 40979 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
40980 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
40981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40982 | else | |
40983 | cat >conftest.make <<\_ACEOF | |
40984 | all: | |
40985 | @echo 'ac_maketemp="$(MAKE)"' | |
40986 | _ACEOF | |
40987 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
40988 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
40989 | if test -n "$ac_maketemp"; then | |
40990 | eval ac_cv_prog_make_${ac_make}_set=yes | |
40991 | else | |
40992 | eval ac_cv_prog_make_${ac_make}_set=no | |
40993 | fi | |
40994 | rm -f conftest.make | |
40995 | fi | |
40996 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
40997 | echo "$as_me:$LINENO: result: yes" >&5 | |
40998 | echo "${ECHO_T}yes" >&6 | |
40999 | SET_MAKE= | |
41000 | else | |
41001 | echo "$as_me:$LINENO: result: no" >&5 | |
41002 | echo "${ECHO_T}no" >&6 | |
41003 | SET_MAKE="MAKE=${MAKE-make}" | |
41004 | fi | |
41005 | ||
41006 | ||
41007 | ||
41008 | if test -n "$ac_tool_prefix"; then | |
41009 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
41010 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
41011 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41012 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41013 | if test "${ac_cv_prog_AR+set}" = set; then | |
41014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41015 | else | |
41016 | if test -n "$AR"; then | |
41017 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
41018 | else | |
41019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41020 | for as_dir in $PATH | |
41021 | do | |
41022 | IFS=$as_save_IFS | |
41023 | test -z "$as_dir" && as_dir=. | |
41024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41025 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41026 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
41027 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41028 | break 2 | |
41029 | fi | |
41030 | done | |
41031 | done | |
41032 | ||
41033 | fi | |
41034 | fi | |
41035 | AR=$ac_cv_prog_AR | |
41036 | if test -n "$AR"; then | |
41037 | echo "$as_me:$LINENO: result: $AR" >&5 | |
41038 | echo "${ECHO_T}$AR" >&6 | |
41039 | else | |
41040 | echo "$as_me:$LINENO: result: no" >&5 | |
41041 | echo "${ECHO_T}no" >&6 | |
41042 | fi | |
41043 | ||
41044 | fi | |
41045 | if test -z "$ac_cv_prog_AR"; then | |
41046 | ac_ct_AR=$AR | |
41047 | # Extract the first word of "ar", so it can be a program name with args. | |
41048 | set dummy ar; ac_word=$2 | |
41049 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41050 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41051 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
41052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41053 | else | |
41054 | if test -n "$ac_ct_AR"; then | |
41055 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
41056 | else | |
41057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41058 | for as_dir in $PATH | |
41059 | do | |
41060 | IFS=$as_save_IFS | |
41061 | test -z "$as_dir" && as_dir=. | |
41062 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41063 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41064 | ac_cv_prog_ac_ct_AR="ar" | |
41065 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41066 | break 2 | |
41067 | fi | |
41068 | done | |
41069 | done | |
41070 | ||
41071 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
41072 | fi | |
41073 | fi | |
41074 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
41075 | if test -n "$ac_ct_AR"; then | |
41076 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
41077 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
41078 | else | |
41079 | echo "$as_me:$LINENO: result: no" >&5 | |
41080 | echo "${ECHO_T}no" >&6 | |
41081 | fi | |
41082 | ||
41083 | AR=$ac_ct_AR | |
41084 | else | |
41085 | AR="$ac_cv_prog_AR" | |
41086 | fi | |
41087 | ||
41088 | if test -n "$ac_tool_prefix"; then | |
41089 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
41090 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
41091 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41093 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
41094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41095 | else | |
41096 | if test -n "$STRIP"; then | |
41097 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
41098 | else | |
41099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41100 | for as_dir in $PATH | |
41101 | do | |
41102 | IFS=$as_save_IFS | |
41103 | test -z "$as_dir" && as_dir=. | |
41104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41105 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41106 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
41107 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41108 | break 2 | |
41109 | fi | |
41110 | done | |
41111 | done | |
41112 | ||
41113 | fi | |
41114 | fi | |
41115 | STRIP=$ac_cv_prog_STRIP | |
41116 | if test -n "$STRIP"; then | |
41117 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
41118 | echo "${ECHO_T}$STRIP" >&6 | |
41119 | else | |
41120 | echo "$as_me:$LINENO: result: no" >&5 | |
41121 | echo "${ECHO_T}no" >&6 | |
41122 | fi | |
41123 | ||
41124 | fi | |
41125 | if test -z "$ac_cv_prog_STRIP"; then | |
41126 | ac_ct_STRIP=$STRIP | |
41127 | # Extract the first word of "strip", so it can be a program name with args. | |
41128 | set dummy strip; ac_word=$2 | |
41129 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41131 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
41132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41133 | else | |
41134 | if test -n "$ac_ct_STRIP"; then | |
41135 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
41136 | else | |
41137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41138 | for as_dir in $PATH | |
41139 | do | |
41140 | IFS=$as_save_IFS | |
41141 | test -z "$as_dir" && as_dir=. | |
41142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41144 | ac_cv_prog_ac_ct_STRIP="strip" | |
41145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41146 | break 2 | |
41147 | fi | |
41148 | done | |
41149 | done | |
41150 | ||
41151 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
41152 | fi | |
41153 | fi | |
41154 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
41155 | if test -n "$ac_ct_STRIP"; then | |
41156 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
41157 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
41158 | else | |
41159 | echo "$as_me:$LINENO: result: no" >&5 | |
41160 | echo "${ECHO_T}no" >&6 | |
41161 | fi | |
41162 | ||
41163 | STRIP=$ac_ct_STRIP | |
41164 | else | |
41165 | STRIP="$ac_cv_prog_STRIP" | |
41166 | fi | |
41167 | ||
41168 | if test -n "$ac_tool_prefix"; then | |
41169 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
41170 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
41171 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41173 | if test "${ac_cv_prog_NM+set}" = set; then | |
41174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41175 | else | |
41176 | if test -n "$NM"; then | |
41177 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
41178 | else | |
41179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41180 | for as_dir in $PATH | |
41181 | do | |
41182 | IFS=$as_save_IFS | |
41183 | test -z "$as_dir" && as_dir=. | |
41184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41185 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41186 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
41187 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41188 | break 2 | |
41189 | fi | |
41190 | done | |
41191 | done | |
41192 | ||
41193 | fi | |
41194 | fi | |
41195 | NM=$ac_cv_prog_NM | |
41196 | if test -n "$NM"; then | |
41197 | echo "$as_me:$LINENO: result: $NM" >&5 | |
41198 | echo "${ECHO_T}$NM" >&6 | |
41199 | else | |
41200 | echo "$as_me:$LINENO: result: no" >&5 | |
41201 | echo "${ECHO_T}no" >&6 | |
41202 | fi | |
41203 | ||
41204 | fi | |
41205 | if test -z "$ac_cv_prog_NM"; then | |
41206 | ac_ct_NM=$NM | |
41207 | # Extract the first word of "nm", so it can be a program name with args. | |
41208 | set dummy nm; ac_word=$2 | |
41209 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41211 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
41212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41213 | else | |
41214 | if test -n "$ac_ct_NM"; then | |
41215 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
41216 | else | |
41217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41218 | for as_dir in $PATH | |
41219 | do | |
41220 | IFS=$as_save_IFS | |
41221 | test -z "$as_dir" && as_dir=. | |
41222 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41223 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41224 | ac_cv_prog_ac_ct_NM="nm" | |
41225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41226 | break 2 | |
41227 | fi | |
41228 | done | |
41229 | done | |
41230 | ||
41231 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
41232 | fi | |
41233 | fi | |
41234 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
41235 | if test -n "$ac_ct_NM"; then | |
41236 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
41237 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
41238 | else | |
41239 | echo "$as_me:$LINENO: result: no" >&5 | |
41240 | echo "${ECHO_T}no" >&6 | |
41241 | fi | |
41242 | ||
41243 | NM=$ac_ct_NM | |
41244 | else | |
41245 | NM="$ac_cv_prog_NM" | |
41246 | fi | |
41247 | ||
41248 | ||
41249 | case ${BAKEFILE_HOST} in | |
41250 | *-hp-hpux* ) | |
1e9e8aba | 41251 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
41252 | ;; |
41253 | *) INSTALL_DIR="$INSTALL -d" | |
41254 | ;; | |
41255 | esac | |
41256 | ||
41257 | ||
41258 | LDFLAGS_GUI= | |
41259 | case ${BAKEFILE_HOST} in | |
41260 | *-*-cygwin* | *-*-mingw32* ) | |
41261 | LDFLAGS_GUI="-mwindows" | |
41262 | esac | |
41263 | ||
41264 | ||
41265 | fi | |
41266 | ||
41267 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
41268 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
41269 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
41270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41271 | else | |
41272 | ||
41273 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
41274 | egrep -s GNU > /dev/null); then | |
41275 | bakefile_cv_prog_makeisgnu="yes" | |
41276 | else | |
41277 | bakefile_cv_prog_makeisgnu="no" | |
41278 | fi | |
41279 | ||
41280 | fi | |
41281 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
41282 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
41283 | ||
41284 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
41285 | IF_GNU_MAKE="" | |
41286 | else | |
41287 | IF_GNU_MAKE="#" | |
41288 | fi | |
41289 | ||
41290 | ||
41291 | ||
41292 | PLATFORM_UNIX=0 | |
41293 | PLATFORM_WIN32=0 | |
41294 | PLATFORM_MSDOS=0 | |
41295 | PLATFORM_MAC=0 | |
1e9e8aba | 41296 | PLATFORM_MACOS=0 |
a848cd7e SC |
41297 | PLATFORM_MACOSX=0 |
41298 | PLATFORM_OS2=0 | |
1e9e8aba | 41299 | PLATFORM_BEOS=0 |
a848cd7e SC |
41300 | |
41301 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
41302 | case "${BAKEFILE_HOST}" in | |
41303 | *-*-cygwin* | *-*-mingw32* ) | |
41304 | PLATFORM_WIN32=1 | |
41305 | ;; | |
41306 | *-pc-msdosdjgpp ) | |
41307 | PLATFORM_MSDOS=1 | |
41308 | ;; | |
41309 | *-pc-os2_emx | *-pc-os2-emx ) | |
41310 | PLATFORM_OS2=1 | |
41311 | ;; | |
41312 | powerpc-*-darwin* ) | |
41313 | PLATFORM_MAC=1 | |
41314 | PLATFORM_MACOSX=1 | |
41315 | ;; | |
1e9e8aba DE |
41316 | *-*-beos* ) |
41317 | PLATFORM_BEOS=1 | |
41318 | ;; | |
41319 | powerpc-apple-macos* ) | |
41320 | PLATFORM_MAC=1 | |
41321 | PLATFORM_MACOS=1 | |
41322 | ;; | |
a848cd7e SC |
41323 | * ) |
41324 | PLATFORM_UNIX=1 | |
41325 | ;; | |
41326 | esac | |
41327 | else | |
41328 | case "$BAKEFILE_FORCE_PLATFORM" in | |
41329 | win32 ) | |
41330 | PLATFORM_WIN32=1 | |
41331 | ;; | |
41332 | msdos ) | |
41333 | PLATFORM_MSDOS=1 | |
41334 | ;; | |
41335 | os2 ) | |
41336 | PLATFORM_OS2=1 | |
41337 | ;; | |
41338 | darwin ) | |
41339 | PLATFORM_MAC=1 | |
41340 | PLATFORM_MACOSX=1 | |
41341 | ;; | |
41342 | unix ) | |
41343 | PLATFORM_UNIX=1 | |
41344 | ;; | |
1e9e8aba DE |
41345 | beos ) |
41346 | PLATFORM_BEOS=1 | |
41347 | ;; | |
a848cd7e SC |
41348 | * ) |
41349 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
41350 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
41351 | { (exit 1); exit 1; }; } | |
41352 | ;; | |
41353 | esac | |
41354 | fi | |
41355 | ||
41356 | ||
41357 | ||
41358 | ||
41359 | ||
41360 | ||
41361 | ||
41362 | ||
41363 | ||
1e9e8aba DE |
41364 | |
41365 | ||
a848cd7e SC |
41366 | # Check whether --enable-omf or --disable-omf was given. |
41367 | if test "${enable_omf+set}" = set; then | |
41368 | enableval="$enable_omf" | |
41369 | bk_os2_use_omf="$enableval" | |
41370 | fi; | |
41371 | ||
41372 | case "${BAKEFILE_HOST}" in | |
41373 | *-*-darwin* ) | |
41374 | CFLAGS="$CFLAGS -fno-common" | |
41375 | CXXFLAGS="$CXXFLAGS -fno-common" | |
41376 | ;; | |
41377 | ||
41378 | *-pc-os2_emx | *-pc-os2-emx ) | |
41379 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
41380 | AR=emxomfar | |
41381 | RANLIB=: | |
41382 | LDFLAGS="-Zomf $LDFLAGS" | |
41383 | CFLAGS="-Zomf $CFLAGS" | |
41384 | CXXFLAGS="-Zomf $CXXFLAGS" | |
41385 | OS2_LIBEXT="lib" | |
41386 | else | |
41387 | OS2_LIBEXT="a" | |
41388 | fi | |
41389 | ;; | |
1e9e8aba DE |
41390 | |
41391 | i*86-*-beos* ) | |
41392 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
41393 | ;; | |
a848cd7e SC |
41394 | esac |
41395 | ||
41396 | ||
41397 | SO_SUFFIX="so" | |
41398 | SO_SUFFIX_MODULE="so" | |
41399 | EXEEXT="" | |
41400 | LIBPREFIX="lib" | |
41401 | LIBEXT=".a" | |
41402 | DLLPREFIX="lib" | |
41403 | DLLPREFIX_MODULE="" | |
41404 | DLLIMP_SUFFIX="" | |
41405 | ||
41406 | case "${BAKEFILE_HOST}" in | |
41407 | *-hp-hpux* ) | |
41408 | SO_SUFFIX="sl" | |
41409 | SO_SUFFIX_MODULE="sl" | |
41410 | ;; | |
41411 | *-*-aix* ) | |
41412 | SO_SUFFIX="a" | |
41413 | SO_SUFFIX_MODULE="a" | |
41414 | ;; | |
41415 | *-*-cygwin* | *-*-mingw32* ) | |
41416 | SO_SUFFIX="dll" | |
41417 | SO_SUFFIX_MODULE="dll" | |
41418 | DLLIMP_SUFFIX="dll.a" | |
41419 | EXEEXT=".exe" | |
41420 | DLLPREFIX="" | |
41421 | ;; | |
41422 | *-pc-msdosdjgpp ) | |
41423 | EXEEXT=".exe" | |
41424 | DLLPREFIX="" | |
41425 | ;; | |
41426 | *-pc-os2_emx | *-pc-os2-emx ) | |
41427 | SO_SUFFIX="dll" | |
41428 | SO_SUFFIX_MODULE="dll" | |
41429 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
41430 | EXEEXT=".exe" | |
41431 | DLLPREFIX="" | |
41432 | LIBPREFIX="" | |
41433 | LIBEXT=".$OS2_LIBEXT" | |
41434 | ;; | |
41435 | powerpc-*-darwin* ) | |
41436 | SO_SUFFIX="dylib" | |
41437 | SO_SUFFIX_MODULE="bundle" | |
41438 | ;; | |
41439 | esac | |
41440 | ||
41441 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
41442 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
41443 | fi | |
41444 | ||
41445 | ||
41446 | ||
41447 | ||
41448 | ||
41449 | ||
41450 | ||
41451 | ||
41452 | ||
41453 | ||
41454 | ||
1e9e8aba DE |
41455 | PIC_FLAG="" |
41456 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
41457 | PIC_FLAG="-fPIC" |
41458 | fi | |
41459 | ||
1e9e8aba DE |
41460 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
41461 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
41462 | ||
a848cd7e SC |
41463 | case "${BAKEFILE_HOST}" in |
41464 | *-hp-hpux* ) | |
1e9e8aba | 41465 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
41466 | LDFLAGS="$LDFLAGS -L/usr/lib" |
41467 | ||
41468 | SHARED_LD_CC="${CC} -b -o" | |
41469 | SHARED_LD_CXX="${CXX} -b -o" | |
41470 | PIC_FLAG="+Z" | |
41471 | fi | |
41472 | ;; | |
41473 | ||
41474 | *-*-linux* ) | |
41475 | if test "x$GCC" != "xyes"; then | |
41476 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
41477 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
41478 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
41479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41480 | else | |
41481 | ||
41482 | cat >conftest.$ac_ext <<_ACEOF | |
41483 | /* confdefs.h. */ | |
41484 | _ACEOF | |
41485 | cat confdefs.h >>conftest.$ac_ext | |
41486 | cat >>conftest.$ac_ext <<_ACEOF | |
41487 | /* end confdefs.h. */ | |
41488 | ||
41489 | int | |
41490 | main () | |
41491 | { | |
41492 | ||
41493 | #ifndef __INTEL_COMPILER | |
41494 | #error Not icc | |
41495 | #endif | |
41496 | ||
41497 | ; | |
41498 | return 0; | |
41499 | } | |
41500 | _ACEOF | |
41501 | rm -f conftest.$ac_objext | |
41502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41503 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41504 | ac_status=$? |
ac1cb8d3 VS |
41505 | grep -v '^ *+' conftest.er1 >conftest.err |
41506 | rm -f conftest.er1 | |
41507 | cat conftest.err >&5 | |
a848cd7e SC |
41508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41509 | (exit $ac_status); } && | |
9dd0f6c2 | 41510 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41512 | (eval $ac_try) 2>&5 | |
41513 | ac_status=$? | |
41514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41515 | (exit $ac_status); }; } && | |
41516 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41518 | (eval $ac_try) 2>&5 | |
41519 | ac_status=$? | |
41520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41521 | (exit $ac_status); }; }; then | |
41522 | bakefile_cv_prog_icc=yes | |
41523 | else | |
41524 | echo "$as_me: failed program was:" >&5 | |
41525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41526 | ||
41527 | bakefile_cv_prog_icc=no | |
41528 | ||
41529 | fi | |
ac1cb8d3 | 41530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41531 | |
41532 | fi | |
41533 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
41534 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
41535 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
41536 | PIC_FLAG="-KPIC" | |
41537 | fi | |
41538 | fi | |
41539 | ;; | |
41540 | ||
41541 | *-*-solaris2* ) | |
41542 | if test "x$GCC" != xyes ; then | |
41543 | SHARED_LD_CC="${CC} -G -o" | |
41544 | SHARED_LD_CXX="${CXX} -G -o" | |
41545 | PIC_FLAG="-KPIC" | |
41546 | fi | |
41547 | ;; | |
41548 | ||
41549 | *-*-darwin* ) | |
41550 | ||
41551 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
41552 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
41553 | if test "${wx_cv_gcc31+set}" = set; then | |
41554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41555 | else | |
41556 | ||
41557 | cat >conftest.$ac_ext <<_ACEOF | |
41558 | /* confdefs.h. */ | |
41559 | _ACEOF | |
41560 | cat confdefs.h >>conftest.$ac_ext | |
41561 | cat >>conftest.$ac_ext <<_ACEOF | |
41562 | /* end confdefs.h. */ | |
41563 | ||
41564 | int | |
41565 | main () | |
41566 | { | |
41567 | ||
41568 | #if (__GNUC__ < 3) || \ | |
41569 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
41570 | #error old gcc | |
41571 | #endif | |
41572 | ||
41573 | ; | |
41574 | return 0; | |
41575 | } | |
41576 | _ACEOF | |
41577 | rm -f conftest.$ac_objext | |
41578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41579 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41580 | ac_status=$? |
ac1cb8d3 VS |
41581 | grep -v '^ *+' conftest.er1 >conftest.err |
41582 | rm -f conftest.er1 | |
41583 | cat conftest.err >&5 | |
a848cd7e SC |
41584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41585 | (exit $ac_status); } && | |
9dd0f6c2 | 41586 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41588 | (eval $ac_try) 2>&5 | |
41589 | ac_status=$? | |
41590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41591 | (exit $ac_status); }; } && | |
41592 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41594 | (eval $ac_try) 2>&5 | |
41595 | ac_status=$? | |
41596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41597 | (exit $ac_status); }; }; then | |
41598 | ||
41599 | wx_cv_gcc31=yes | |
41600 | ||
41601 | else | |
41602 | echo "$as_me: failed program was:" >&5 | |
41603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41604 | ||
41605 | ||
41606 | wx_cv_gcc31=no | |
41607 | ||
41608 | ||
41609 | fi | |
ac1cb8d3 | 41610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41611 | |
41612 | fi | |
41613 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
41614 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
41615 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
41616 | |
41617 | D='$' | |
41618 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
41619 | #!/bin/sh |
41620 | #----------------------------------------------------------------------------- | |
41621 | #-- Name: distrib/mac/shared-ld-sh | |
41622 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
41623 | #-- Author: Gilles Depeyrot | |
41624 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
41625 | #-- Licence: any use permitted | |
41626 | #----------------------------------------------------------------------------- | |
41627 | ||
41628 | verbose=0 | |
41629 | args="" | |
41630 | objects="" | |
41631 | linking_flag="-dynamiclib" | |
41632 | ||
473276a9 VS |
41633 | while test ${D}# -gt 0; do |
41634 | case ${D}1 in | |
a848cd7e SC |
41635 | |
41636 | -v) | |
41637 | verbose=1 | |
41638 | ;; | |
41639 | ||
41640 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
41641 | # collect these options and values | |
473276a9 | 41642 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
41643 | shift |
41644 | ;; | |
41645 | ||
41646 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
41647 | # collect these options | |
473276a9 | 41648 | args="${D}{args} ${D}1" |
a848cd7e SC |
41649 | ;; |
41650 | ||
41651 | -dynamiclib|-bundle) | |
473276a9 | 41652 | linking_flag="${D}1" |
a848cd7e SC |
41653 | ;; |
41654 | ||
41655 | -*) | |
473276a9 | 41656 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
41657 | exit 1 |
41658 | ;; | |
41659 | ||
41660 | *.o | *.a | *.dylib) | |
41661 | # collect object files | |
473276a9 | 41662 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
41663 | ;; |
41664 | ||
41665 | *) | |
473276a9 | 41666 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
41667 | exit 1 |
41668 | ;; | |
41669 | ||
41670 | esac | |
41671 | shift | |
41672 | done | |
41673 | ||
41674 | # | |
41675 | # Link one module containing all the others | |
41676 | # | |
473276a9 VS |
41677 | if test ${D}{verbose} = 1; then |
41678 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 41679 | fi |
473276a9 VS |
41680 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
41681 | status=${D}? | |
41682 | if test ${D}{status} != 0; then | |
41683 | exit ${D}{status} | |
a848cd7e SC |
41684 | fi |
41685 | ||
41686 | # | |
41687 | # Link the shared library from the single module created | |
41688 | # | |
473276a9 VS |
41689 | if test ${D}{verbose} = 1; then |
41690 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 41691 | fi |
473276a9 VS |
41692 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
41693 | status=${D}? | |
41694 | if test ${D}{status} != 0; then | |
41695 | exit ${D}{status} | |
a848cd7e SC |
41696 | fi |
41697 | ||
41698 | # | |
41699 | # Remove intermediate module | |
41700 | # | |
473276a9 | 41701 | rm -f master.${D}${D}.o |
a848cd7e SC |
41702 | |
41703 | exit 0 | |
41704 | EOF | |
473276a9 | 41705 | |
a848cd7e SC |
41706 | chmod +x shared-ld-sh |
41707 | ||
41708 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
41709 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
41710 | SHARED_LD_CXX="$SHARED_LD_CC" | |
41711 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
41712 | else | |
41713 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
41714 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
41715 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
41716 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
41717 | fi | |
41718 | ||
41719 | PIC_FLAG="-dynamic -fPIC" | |
41720 | ;; | |
41721 | ||
41722 | *-*-aix* ) | |
41723 | if test "x$GCC" != "xyes"; then | |
41724 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
41725 | set dummy makeC++SharedLib; ac_word=$2 | |
41726 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41728 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
41729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41730 | else | |
41731 | if test -n "$AIX_CXX_LD"; then | |
41732 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
41733 | else | |
41734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41735 | for as_dir in $PATH | |
41736 | do | |
41737 | IFS=$as_save_IFS | |
41738 | test -z "$as_dir" && as_dir=. | |
41739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41740 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41741 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
41742 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41743 | break 2 | |
41744 | fi | |
41745 | done | |
41746 | done | |
41747 | ||
41748 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
41749 | fi | |
41750 | fi | |
41751 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
41752 | if test -n "$AIX_CXX_LD"; then | |
41753 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
41754 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
41755 | else | |
41756 | echo "$as_me:$LINENO: result: no" >&5 | |
41757 | echo "${ECHO_T}no" >&6 | |
41758 | fi | |
41759 | ||
41760 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
41761 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
41762 | fi | |
41763 | ;; | |
41764 | ||
41765 | *-*-beos* ) | |
1e9e8aba DE |
41766 | SHARED_LD_CC="${LD} -nostart -o" |
41767 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
41768 | ;; |
41769 | ||
41770 | *-*-irix* ) | |
41771 | if test "x$GCC" != "xyes"; then | |
41772 | PIC_FLAG="-KPIC" | |
41773 | fi | |
41774 | ;; | |
41775 | ||
41776 | *-*-cygwin* | *-*-mingw32* ) | |
41777 | PIC_FLAG="" | |
1e9e8aba DE |
41778 | SHARED_LD_CC="\$(CC) -shared -o" |
41779 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
a848cd7e SC |
41780 | ;; |
41781 | ||
41782 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
41783 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
41784 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 41785 | PIC_FLAG="" |
473276a9 VS |
41786 | |
41787 | D='$' | |
41788 | cat <<EOF >dllar.sh | |
41789 | #!/bin/sh | |
41790 | # | |
41791 | # dllar - a tool to build both a .dll and an .a file | |
41792 | # from a set of object (.o) files for EMX/OS2. | |
41793 | # | |
41794 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
41795 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
41796 | # | |
41797 | # This script will accept a set of files on the command line. | |
41798 | # All the public symbols from the .o files will be exported into | |
41799 | # a .DEF file, then linker will be run (through gcc) against them to | |
41800 | # build a shared library consisting of all given .o files. All libraries | |
41801 | # (.a) will be first decompressed into component .o files then act as | |
41802 | # described above. You can optionally give a description (-d "description") | |
41803 | # which will be put into .DLL. To see the list of accepted options (as well | |
41804 | # as command-line format) simply run this program without options. The .DLL | |
41805 | # is built to be imported by name (there is no guarantee that new versions | |
41806 | # of the library you build will have same ordinals for same symbols). | |
41807 | # | |
41808 | # dllar is free software; you can redistribute it and/or modify | |
41809 | # it under the terms of the GNU General Public License as published by | |
41810 | # the Free Software Foundation; either version 2, or (at your option) | |
41811 | # any later version. | |
41812 | # | |
41813 | # dllar is distributed in the hope that it will be useful, | |
41814 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
41815 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
41816 | # GNU General Public License for more details. | |
41817 | # | |
41818 | # You should have received a copy of the GNU General Public License | |
41819 | # along with dllar; see the file COPYING. If not, write to the Free | |
41820 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
41821 | # 02111-1307, USA. | |
41822 | ||
41823 | # To successfuly run this program you will need: | |
41824 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
41825 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
41826 | # - gcc | |
41827 | # (used to build the .dll) | |
41828 | # - emxexp | |
41829 | # (used to create .def file from .o files) | |
41830 | # - emximp | |
41831 | # (used to create .a file from .def file) | |
41832 | # - GNU text utilites (cat, sort, uniq) | |
41833 | # used to process emxexp output | |
41834 | # - GNU file utilities (mv, rm) | |
41835 | # - GNU sed | |
41836 | # - lxlite (optional, see flag below) | |
41837 | # (used for general .dll cleanup) | |
41838 | # | |
41839 | ||
41840 | flag_USE_LXLITE=1; | |
41841 | ||
41842 | # | |
41843 | # helper functions | |
41844 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
41845 | # second argument (suffix to remove) is given | |
41846 | basnam(){ | |
41847 | case ${D}# in | |
41848 | 1) | |
1e9e8aba | 41849 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
41850 | ;; |
41851 | 2) | |
41852 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
41853 | ;; | |
41854 | *) | |
41855 | echo "error in basnam ${D}*" | |
41856 | exit 8 | |
41857 | ;; | |
41858 | esac | |
41859 | } | |
41860 | ||
41861 | # Cleanup temporary files and output | |
41862 | CleanUp() { | |
41863 | cd ${D}curDir | |
41864 | for i in ${D}inputFiles ; do | |
41865 | case ${D}i in | |
41866 | *!) | |
41867 | rm -rf \`basnam ${D}i !\` | |
41868 | ;; | |
41869 | *) | |
41870 | ;; | |
41871 | esac | |
41872 | done | |
41873 | ||
41874 | # Kill result in case of failure as there is just to many stupid make/nmake | |
41875 | # things out there which doesn't do this. | |
1e9e8aba | 41876 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
41877 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
41878 | fi | |
41879 | } | |
41880 | ||
41881 | # Print usage and exit script with rc=1. | |
41882 | PrintHelp() { | |
b1d22ded DE |
41883 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
41884 | echo ' [-name-mangler-script script.sh]' | |
41885 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
41886 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
41887 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 41888 | echo ' [*.o] [*.a]' |
473276a9 VS |
41889 | echo '*> "output_file" should have no extension.' |
41890 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
41891 | echo ' The import library name is derived from this and is set to "name".a,' | |
41892 | echo ' unless overridden by -import' | |
41893 | echo '*> "importlib_name" should have no extension.' | |
41894 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
41895 | echo ' This name is used as the import library name and may be longer and' | |
41896 | echo ' more descriptive than the DLL name which has to follow the old ' | |
41897 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
41898 | echo '*> "script.sh may be given to override the output_file name by a' |
41899 | echo ' different name. It is mainly useful if the regular make process' | |
41900 | echo ' of some package does not take into account OS/2 restriction of' | |
41901 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
41902 | echo ' supposed to procude a shorter name as output. The script should' | |
41903 | echo ' expect to get importlib_name without extension and should produce' | |
41904 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
41905 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
41906 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
41907 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
41908 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
41909 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
41910 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
41911 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
41912 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 41913 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 41914 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 41915 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 41916 | echo ' C runtime DLLs.' |
b1d22ded | 41917 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
41918 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
41919 | echo ' unchanged to GCC at the end of command line.' | |
41920 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
41921 | echo ' the basename for DLL and import library will be set to library name,' | |
41922 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
41923 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
41924 | echo ' library will be renamed into gcc_s.a.' | |
41925 | echo '--------' | |
41926 | echo 'Example:' | |
41927 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
41928 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
41929 | CleanUp | |
41930 | exit 1 | |
41931 | } | |
41932 | ||
41933 | # Execute a command. | |
41934 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
41935 | # @Uses Whatever CleanUp() uses. | |
41936 | doCommand() { | |
41937 | echo "${D}*" | |
41938 | eval ${D}* | |
41939 | rcCmd=${D}? | |
41940 | ||
1e9e8aba | 41941 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
41942 | echo "command failed, exit code="${D}rcCmd |
41943 | CleanUp | |
41944 | exit ${D}rcCmd | |
41945 | fi | |
41946 | } | |
41947 | ||
41948 | # main routine | |
41949 | # setup globals | |
41950 | cmdLine=${D}* | |
41951 | outFile="" | |
41952 | outimpFile="" | |
41953 | inputFiles="" | |
b1d22ded | 41954 | renameScript="" |
473276a9 VS |
41955 | description="" |
41956 | CC=gcc.exe | |
41957 | CFLAGS="-s -Zcrtdll" | |
41958 | EXTRA_CFLAGS="" | |
41959 | EXPORT_BY_ORDINALS=0 | |
41960 | exclude_symbols="" | |
41961 | library_flags="" | |
41962 | curDir=\`pwd\` | |
41963 | curDirS=curDir | |
41964 | case ${D}curDirS in | |
41965 | */) | |
41966 | ;; | |
41967 | *) | |
41968 | curDirS=${D}{curDirS}"/" | |
41969 | ;; | |
41970 | esac | |
41971 | # Parse commandline | |
41972 | libsToLink=0 | |
b1d22ded | 41973 | omfLinking=0 |
1e9e8aba | 41974 | while [ ${D}1 ]; do |
473276a9 VS |
41975 | case ${D}1 in |
41976 | -ord*) | |
41977 | EXPORT_BY_ORDINALS=1; | |
41978 | ;; | |
41979 | -o*) | |
41980 | shift | |
41981 | outFile=${D}1 | |
41982 | ;; | |
41983 | -i*) | |
41984 | shift | |
41985 | outimpFile=${D}1 | |
41986 | ;; | |
b1d22ded DE |
41987 | -name-mangler-script) |
41988 | shift | |
41989 | renameScript=${D}1 | |
41990 | ;; | |
473276a9 VS |
41991 | -d*) |
41992 | shift | |
41993 | description=${D}1 | |
41994 | ;; | |
41995 | -f*) | |
41996 | shift | |
41997 | CFLAGS=${D}1 | |
41998 | ;; | |
41999 | -c*) | |
42000 | shift | |
42001 | CC=${D}1 | |
42002 | ;; | |
42003 | -h*) | |
42004 | PrintHelp | |
42005 | ;; | |
42006 | -ex*) | |
42007 | shift | |
42008 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
42009 | ;; | |
42010 | -libf*) | |
42011 | shift | |
42012 | library_flags=${D}{library_flags}${D}1" " | |
42013 | ;; | |
42014 | -nocrt*) | |
42015 | CFLAGS="-s" | |
42016 | ;; | |
42017 | -nolxl*) | |
42018 | flag_USE_LXLITE=0 | |
42019 | ;; | |
42020 | -* | /*) | |
42021 | case ${D}1 in | |
42022 | -L* | -l*) | |
42023 | libsToLink=1 | |
42024 | ;; | |
b1d22ded DE |
42025 | -Zomf) |
42026 | omfLinking=1 | |
42027 | ;; | |
473276a9 VS |
42028 | *) |
42029 | ;; | |
42030 | esac | |
42031 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
42032 | ;; | |
b1d22ded DE |
42033 | *.dll) |
42034 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
42035 | if [ ${D}omfLinking -eq 1 ]; then | |
42036 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
42037 | else | |
42038 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
42039 | fi | |
42040 | ;; | |
473276a9 VS |
42041 | *) |
42042 | found=0; | |
1e9e8aba | 42043 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
42044 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
42045 | else | |
42046 | for file in ${D}1 ; do | |
1e9e8aba | 42047 | if [ -f ${D}file ]; then |
473276a9 VS |
42048 | inputFiles="${D}{inputFiles} ${D}file" |
42049 | found=1 | |
42050 | fi | |
42051 | done | |
1e9e8aba | 42052 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
42053 | echo "ERROR: No file(s) found: "${D}1 |
42054 | exit 8 | |
42055 | fi | |
42056 | fi | |
42057 | ;; | |
42058 | esac | |
42059 | shift | |
42060 | done # iterate cmdline words | |
42061 | ||
42062 | # | |
1e9e8aba | 42063 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
42064 | echo "dllar: no input files" |
42065 | PrintHelp | |
42066 | fi | |
42067 | ||
42068 | # Now extract all .o files from .a files | |
42069 | newInputFiles="" | |
42070 | for file in ${D}inputFiles ; do | |
42071 | case ${D}file in | |
42072 | *.a | *.lib) | |
42073 | case ${D}file in | |
42074 | *.a) | |
42075 | suffix=".a" | |
42076 | AR="ar" | |
42077 | ;; | |
42078 | *.lib) | |
42079 | suffix=".lib" | |
42080 | AR="emxomfar" | |
42081 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
42082 | ;; | |
42083 | *) | |
42084 | ;; | |
42085 | esac | |
42086 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
42087 | mkdir ${D}dirname | |
1e9e8aba | 42088 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
42089 | echo "Failed to create subdirectory ./${D}dirname" |
42090 | CleanUp | |
42091 | exit 8; | |
42092 | fi | |
42093 | # Append '!' to indicate archive | |
42094 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
42095 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
42096 | cd ${D}curDir | |
42097 | found=0; | |
42098 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 42099 | if [ -f ${D}subfile ]; then |
473276a9 | 42100 | found=1 |
1e9e8aba | 42101 | if [ -s ${D}subfile ]; then |
473276a9 VS |
42102 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
42103 | newInputFiles="${D}newInputFiles ${D}subfile" | |
42104 | fi | |
42105 | fi | |
42106 | done | |
1e9e8aba DE |
42107 | if [ ${D}found -eq 0 ]; then |
42108 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
42109 | fi |
42110 | ;; | |
42111 | *) | |
42112 | newInputFiles="${D}{newInputFiles} ${D}file" | |
42113 | ;; | |
42114 | esac | |
42115 | done | |
42116 | inputFiles="${D}newInputFiles" | |
42117 | ||
42118 | # Output filename(s). | |
42119 | do_backup=0; | |
1e9e8aba | 42120 | if [ -z ${D}outFile ]; then |
473276a9 VS |
42121 | do_backup=1; |
42122 | set outFile ${D}inputFiles; outFile=${D}2 | |
42123 | fi | |
42124 | ||
42125 | # If it is an archive, remove the '!' and the '_%' suffixes | |
42126 | case ${D}outFile in | |
42127 | *_%!) | |
42128 | outFile=\`basnam ${D}outFile _%!\` | |
42129 | ;; | |
42130 | *) | |
42131 | ;; | |
42132 | esac | |
42133 | case ${D}outFile in | |
42134 | *.dll) | |
42135 | outFile=\`basnam ${D}outFile .dll\` | |
42136 | ;; | |
42137 | *.DLL) | |
42138 | outFile=\`basnam ${D}outFile .DLL\` | |
42139 | ;; | |
42140 | *.o) | |
42141 | outFile=\`basnam ${D}outFile .o\` | |
42142 | ;; | |
42143 | *.obj) | |
42144 | outFile=\`basnam ${D}outFile .obj\` | |
42145 | ;; | |
42146 | *.a) | |
42147 | outFile=\`basnam ${D}outFile .a\` | |
42148 | ;; | |
42149 | *.lib) | |
42150 | outFile=\`basnam ${D}outFile .lib\` | |
42151 | ;; | |
42152 | *) | |
42153 | ;; | |
42154 | esac | |
42155 | case ${D}outimpFile in | |
42156 | *.a) | |
42157 | outimpFile=\`basnam ${D}outimpFile .a\` | |
42158 | ;; | |
42159 | *.lib) | |
42160 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
42161 | ;; | |
42162 | *) | |
42163 | ;; | |
42164 | esac | |
1e9e8aba | 42165 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
42166 | outimpFile=${D}outFile |
42167 | fi | |
42168 | defFile="${D}{outFile}.def" | |
42169 | arcFile="${D}{outimpFile}.a" | |
42170 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
42171 | |
42172 | #create ${D}dllFile as something matching 8.3 restrictions, | |
42173 | if [ -z ${D}renameScript ] ; then | |
42174 | dllFile="${D}outFile" | |
42175 | else | |
42176 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
42177 | fi | |
473276a9 | 42178 | |
1e9e8aba DE |
42179 | if [ ${D}do_backup -ne 0 ] ; then |
42180 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
42181 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
42182 | fi | |
1e9e8aba | 42183 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
42184 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
42185 | fi | |
42186 | fi | |
42187 | ||
42188 | # Extract public symbols from all the object files. | |
42189 | tmpdefFile=${D}{defFile}_% | |
42190 | rm -f ${D}tmpdefFile | |
42191 | for file in ${D}inputFiles ; do | |
42192 | case ${D}file in | |
42193 | *!) | |
42194 | ;; | |
42195 | *) | |
42196 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
42197 | ;; | |
42198 | esac | |
42199 | done | |
42200 | ||
42201 | # Create the def file. | |
42202 | rm -f ${D}defFile | |
42203 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
42204 | dllFile="${D}{dllFile}.dll" |
42205 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 42206 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
42207 | fi |
42208 | echo "EXPORTS" >> ${D}defFile | |
42209 | ||
42210 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
42211 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
42212 | ||
42213 | # Checks if the export is ok or not. | |
42214 | for word in ${D}exclude_symbols; do | |
42215 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
42216 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
42217 | done | |
42218 | ||
42219 | ||
1e9e8aba DE |
42220 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
42221 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
42222 | sed ' |
42223 | N | |
42224 | : loop | |
1e9e8aba | 42225 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
42226 | t loop |
42227 | ' > ${D}{tmpdefFile}% | |
42228 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
42229 | else | |
42230 | rm -f ${D}{tmpdefFile}% | |
42231 | fi | |
42232 | cat ${D}tmpdefFile >> ${D}defFile | |
42233 | rm -f ${D}tmpdefFile | |
42234 | ||
42235 | # Do linking, create implib, and apply lxlite. | |
42236 | gccCmdl=""; | |
42237 | for file in ${D}inputFiles ; do | |
42238 | case ${D}file in | |
42239 | *!) | |
42240 | ;; | |
42241 | *) | |
42242 | gccCmdl="${D}gccCmdl ${D}file" | |
42243 | ;; | |
42244 | esac | |
42245 | done | |
42246 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
42247 | touch "${D}{outFile}.dll" | |
42248 | ||
42249 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 42250 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 42251 | add_flags=""; |
1e9e8aba | 42252 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
42253 | add_flags="-ynd" |
42254 | fi | |
42255 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
42256 | fi | |
42257 | doCommand "emxomf -s -l ${D}arcFile" | |
42258 | ||
42259 | # Successful exit. | |
42260 | CleanUp 1 | |
42261 | exit 0 | |
42262 | EOF | |
42263 | ||
42264 | chmod +x dllar.sh | |
a848cd7e SC |
42265 | ;; |
42266 | ||
1e9e8aba | 42267 | powerpc-apple-macos* | \ |
a848cd7e SC |
42268 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
42269 | *-*-sunos4* | \ | |
42270 | *-*-osf* | \ | |
42271 | *-*-dgux5* | \ | |
47a7e797 MW |
42272 | *-*-sysv5* | \ |
42273 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
42274 | ;; |
42275 | ||
42276 | *) | |
42277 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
42278 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
42279 | { (exit 1); exit 1; }; } | |
42280 | esac | |
42281 | ||
2057db16 VS |
42282 | if test "x$PIC_FLAG" != "x" ; then |
42283 | PIC_FLAG="$PIC_FLAG -DPIC" | |
42284 | fi | |
42285 | ||
a848cd7e SC |
42286 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
42287 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
42288 | fi | |
42289 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
42290 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
42291 | fi | |
42292 | ||
42293 | ||
42294 | ||
42295 | ||
42296 | ||
42297 | ||
42298 | ||
42299 | ||
42300 | USE_SOVERSION=0 | |
42301 | USE_SOVERLINUX=0 | |
42302 | USE_SOVERSOLARIS=0 | |
42303 | USE_SOSYMLINKS=0 | |
42304 | USE_MACVERSION=0 | |
42305 | SONAME_FLAG= | |
42306 | ||
42307 | case "${BAKEFILE_HOST}" in | |
b1d22ded | 42308 | *-*-linux* | *-*-freebsd* ) |
5f652d0d VS |
42309 | SONAME_FLAG="-Wl,-soname," |
42310 | USE_SOVERSION=1 | |
42311 | USE_SOVERLINUX=1 | |
42312 | USE_SOSYMLINKS=1 | |
42313 | ;; | |
42314 | ||
a848cd7e SC |
42315 | *-*-solaris2* ) |
42316 | SONAME_FLAG="-h " | |
42317 | USE_SOVERSION=1 | |
42318 | USE_SOVERSOLARIS=1 | |
42319 | USE_SOSYMLINKS=1 | |
42320 | ;; | |
42321 | ||
42322 | *-*-darwin* ) | |
42323 | USE_MACVERSION=1 | |
42324 | USE_SOVERSION=1 | |
42325 | USE_SOSYMLINKS=1 | |
42326 | ;; | |
42327 | esac | |
42328 | ||
42329 | ||
42330 | ||
42331 | ||
42332 | ||
42333 | ||
42334 | ||
42335 | ||
42336 | ||
42337 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
42338 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
42339 | DEPS_TRACKING=0 | |
42340 | ||
42341 | if test "x$GCC" = "xyes"; then | |
42342 | DEPSMODE=gcc | |
42343 | DEPS_TRACKING=1 | |
42344 | case "${BAKEFILE_HOST}" in | |
42345 | powerpc-*-darwin* ) | |
42346 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
42347 | ;; | |
42348 | * ) | |
42349 | DEPSFLAG_GCC="-MMD" | |
42350 | ;; | |
42351 | esac | |
42352 | echo "$as_me:$LINENO: result: gcc" >&5 | |
42353 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 42354 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 42355 | DEPSMODE=mwcc |
b1d22ded | 42356 | DEPS_TRACKING=1 |
81f90336 | 42357 | DEPSFLAG_MWCC="-MM" |
b1d22ded DE |
42358 | echo "$as_me:$LINENO: result: mwcc" >&5 |
42359 | echo "${ECHO_T}mwcc" >&6 | |
a848cd7e SC |
42360 | else |
42361 | echo "$as_me:$LINENO: result: none" >&5 | |
42362 | echo "${ECHO_T}none" >&6 | |
42363 | fi | |
42364 | ||
42365 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
42366 | |
42367 | D='$' | |
42368 | cat <<EOF >bk-deps | |
a848cd7e SC |
42369 | #!/bin/sh |
42370 | ||
42371 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
42372 | # script. It is used to track C/C++ files dependencies in portable way. | |
42373 | # | |
42374 | # Permission is given to use this file in any way. | |
42375 | ||
473276a9 | 42376 | DEPSMODE=${DEPSMODE} |
a848cd7e | 42377 | DEPSDIR=.deps |
473276a9 | 42378 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
81f90336 | 42379 | DEPSFLAG_MWCC="${DEPSFLAG_MWCC}" |
a848cd7e | 42380 | |
473276a9 | 42381 | mkdir -p ${D}DEPSDIR |
a848cd7e | 42382 | |
473276a9 VS |
42383 | if test ${D}DEPSMODE = gcc ; then |
42384 | ${D}* ${D}{DEPSFLAG_GCC} | |
42385 | status=${D}? | |
42386 | if test ${D}{status} != 0 ; then | |
42387 | exit ${D}{status} | |
a848cd7e SC |
42388 | fi |
42389 | # move created file to the location we want it in: | |
473276a9 VS |
42390 | while test ${D}# -gt 0; do |
42391 | case "${D}1" in | |
a848cd7e SC |
42392 | -o ) |
42393 | shift | |
473276a9 | 42394 | objfile=${D}1 |
a848cd7e SC |
42395 | ;; |
42396 | -* ) | |
42397 | ;; | |
42398 | * ) | |
473276a9 | 42399 | srcfile=${D}1 |
a848cd7e SC |
42400 | ;; |
42401 | esac | |
42402 | shift | |
42403 | done | |
1e9e8aba DE |
42404 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
42405 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
42406 | if test -f ${D}depfile ; then |
42407 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
42408 | rm -f ${D}depfile | |
a848cd7e | 42409 | else |
1e9e8aba | 42410 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
42411 | if test -f ${D}depfile ; then |
42412 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
42413 | rm -f ${D}depfile | |
a848cd7e SC |
42414 | fi |
42415 | fi | |
42416 | exit 0 | |
81f90336 MW |
42417 | elif test ${D}DEPSMODE = mwcc ; then |
42418 | ${D}* | |
42419 | status=${D}? | |
42420 | if test ${D}{status} != 0 ; then | |
42421 | exit ${D}{status} | |
42422 | fi | |
42423 | # Run mwcc again with -MM and redirect into the dep file we want | |
42424 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
42425 | prevarg= | |
42426 | for arg in ${D}* ; do | |
42427 | if test "${D}prevarg" = "-o"; then | |
42428 | objfile=${D}arg | |
42429 | else | |
42430 | case "${D}arg" in | |
42431 | -* ) | |
42432 | ;; | |
42433 | * ) | |
42434 | srcfile=${D}arg | |
42435 | ;; | |
42436 | esac | |
42437 | fi | |
42438 | prevarg="${D}arg" | |
42439 | done | |
42440 | ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d | |
42441 | exit 0 | |
a848cd7e | 42442 | else |
473276a9 VS |
42443 | ${D}* |
42444 | exit ${D}? | |
a848cd7e SC |
42445 | fi |
42446 | EOF | |
473276a9 | 42447 | |
a848cd7e SC |
42448 | chmod +x bk-deps |
42449 | fi | |
42450 | ||
42451 | ||
42452 | ||
42453 | ||
42454 | RESCOMP= | |
42455 | SETFILE= | |
42456 | ||
42457 | case ${BAKEFILE_HOST} in | |
42458 | *-*-cygwin* | *-*-mingw32* ) | |
42459 | if test "$build" != "$host" ; then | |
42460 | RESCOMP=$host_alias-windres | |
42461 | else | |
42462 | # Extract the first word of "windres", so it can be a program name with args. | |
42463 | set dummy windres; ac_word=$2 | |
42464 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42466 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
42467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42468 | else | |
42469 | if test -n "$RESCOMP"; then | |
42470 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
42471 | else | |
42472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42473 | for as_dir in $PATH | |
42474 | do | |
42475 | IFS=$as_save_IFS | |
42476 | test -z "$as_dir" && as_dir=. | |
42477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42478 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42479 | ac_cv_prog_RESCOMP="windres" | |
42480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42481 | break 2 | |
42482 | fi | |
42483 | done | |
42484 | done | |
42485 | ||
42486 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
42487 | fi | |
42488 | fi | |
42489 | RESCOMP=$ac_cv_prog_RESCOMP | |
42490 | if test -n "$RESCOMP"; then | |
42491 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
42492 | echo "${ECHO_T}$RESCOMP" >&6 | |
42493 | else | |
42494 | echo "$as_me:$LINENO: result: no" >&5 | |
42495 | echo "${ECHO_T}no" >&6 | |
42496 | fi | |
42497 | ||
42498 | fi | |
42499 | ;; | |
42500 | ||
1e9e8aba | 42501 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
42502 | # Extract the first word of "Rez", so it can be a program name with args. |
42503 | set dummy Rez; ac_word=$2 | |
42504 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42506 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
42507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42508 | else | |
42509 | if test -n "$RESCOMP"; then | |
42510 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
42511 | else | |
42512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42513 | for as_dir in $PATH | |
42514 | do | |
42515 | IFS=$as_save_IFS | |
42516 | test -z "$as_dir" && as_dir=. | |
42517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42519 | ac_cv_prog_RESCOMP="Rez" | |
42520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42521 | break 2 | |
42522 | fi | |
42523 | done | |
42524 | done | |
42525 | ||
42526 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
42527 | fi | |
42528 | fi | |
42529 | RESCOMP=$ac_cv_prog_RESCOMP | |
42530 | if test -n "$RESCOMP"; then | |
42531 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
42532 | echo "${ECHO_T}$RESCOMP" >&6 | |
42533 | else | |
42534 | echo "$as_me:$LINENO: result: no" >&5 | |
42535 | echo "${ECHO_T}no" >&6 | |
42536 | fi | |
42537 | ||
42538 | # Extract the first word of "SetFile", so it can be a program name with args. | |
42539 | set dummy SetFile; ac_word=$2 | |
42540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42542 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
42543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42544 | else | |
42545 | if test -n "$SETFILE"; then | |
42546 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
42547 | else | |
42548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42549 | for as_dir in $PATH | |
42550 | do | |
42551 | IFS=$as_save_IFS | |
42552 | test -z "$as_dir" && as_dir=. | |
42553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42555 | ac_cv_prog_SETFILE="SetFile" | |
42556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42557 | break 2 | |
42558 | fi | |
42559 | done | |
42560 | done | |
42561 | ||
42562 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
42563 | fi | |
42564 | fi | |
42565 | SETFILE=$ac_cv_prog_SETFILE | |
42566 | if test -n "$SETFILE"; then | |
42567 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
42568 | echo "${ECHO_T}$SETFILE" >&6 | |
42569 | else | |
42570 | echo "$as_me:$LINENO: result: no" >&5 | |
42571 | echo "${ECHO_T}no" >&6 | |
42572 | fi | |
42573 | ||
42574 | ;; | |
42575 | esac | |
42576 | ||
42577 | ||
42578 | ||
42579 | ||
42580 | ||
fbb7dfff | 42581 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.8" |
a848cd7e | 42582 | |
dcc1b6ad | 42583 | |
fbb7dfff | 42584 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8" |
a848cd7e | 42585 | |
646b6ec1 | 42586 | |
74b84332 | 42587 | |
a848cd7e SC |
42588 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
42589 | if test "${enable_precomp_headers+set}" = set; then | |
42590 | enableval="$enable_precomp_headers" | |
42591 | bk_use_pch="$enableval" | |
42592 | fi; | |
42593 | ||
42594 | GCC_PCH=0 | |
42595 | ||
42596 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
42597 | if test "x$GCC" = "xyes"; then | |
42598 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
42599 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
42600 | cat >conftest.$ac_ext <<_ACEOF | |
42601 | /* confdefs.h. */ | |
42602 | _ACEOF | |
42603 | cat confdefs.h >>conftest.$ac_ext | |
42604 | cat >>conftest.$ac_ext <<_ACEOF | |
42605 | /* end confdefs.h. */ | |
42606 | ||
42607 | int | |
42608 | main () | |
42609 | { | |
42610 | ||
42611 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
42612 | #error "no pch support" | |
42613 | #endif | |
42614 | #if (__GNUC__ < 3) | |
42615 | #error "no pch support" | |
42616 | #endif | |
42617 | #if (__GNUC__ == 3) && \ | |
42618 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
42619 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
42620 | #error "no pch support" | |
42621 | #endif | |
42622 | ||
42623 | ; | |
42624 | return 0; | |
42625 | } | |
42626 | _ACEOF | |
42627 | rm -f conftest.$ac_objext | |
42628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42629 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42630 | ac_status=$? |
ac1cb8d3 VS |
42631 | grep -v '^ *+' conftest.er1 >conftest.err |
42632 | rm -f conftest.er1 | |
42633 | cat conftest.err >&5 | |
a848cd7e SC |
42634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42635 | (exit $ac_status); } && | |
9dd0f6c2 | 42636 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42638 | (eval $ac_try) 2>&5 | |
42639 | ac_status=$? | |
42640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42641 | (exit $ac_status); }; } && | |
42642 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42644 | (eval $ac_try) 2>&5 | |
42645 | ac_status=$? | |
42646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42647 | (exit $ac_status); }; }; then | |
42648 | ||
42649 | echo "$as_me:$LINENO: result: yes" >&5 | |
42650 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
42651 | GCC_PCH=1 |
42652 | ||
42653 | else | |
42654 | echo "$as_me: failed program was:" >&5 | |
42655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42656 | ||
42657 | ||
42658 | echo "$as_me:$LINENO: result: no" >&5 | |
42659 | echo "${ECHO_T}no" >&6 | |
42660 | ||
42661 | fi | |
ac1cb8d3 | 42662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 42663 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
42664 | |
42665 | D='$' | |
42666 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
42667 | #!/bin/sh |
42668 | ||
42669 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
42670 | # script. It is used to generated precompiled headers. | |
42671 | # | |
42672 | # Permission is given to use this file in any way. | |
42673 | ||
1e9e8aba DE |
42674 | outfile="${D}{1}" |
42675 | header="${D}{2}" | |
a848cd7e SC |
42676 | shift |
42677 | shift | |
42678 | ||
42679 | compiler= | |
42680 | headerfile= | |
1e9e8aba DE |
42681 | while test ${D}{#} -gt 0; do |
42682 | case "${D}{1}" in | |
a848cd7e | 42683 | -I* ) |
1e9e8aba DE |
42684 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
42685 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
42686 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
42687 | fi |
42688 | ;; | |
42689 | esac | |
1e9e8aba | 42690 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
42691 | shift |
42692 | done | |
42693 | ||
1e9e8aba DE |
42694 | if test "x${D}{headerfile}" = "x" ; then |
42695 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 42696 | else |
1e9e8aba DE |
42697 | if test -f ${D}{outfile} ; then |
42698 | rm -f ${D}{outfile} | |
a848cd7e | 42699 | else |
1e9e8aba | 42700 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 42701 | fi |
1e9e8aba | 42702 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
42703 | mkdir -p .deps |
42704 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
42705 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
42706 | exit ${D}{?} | |
a848cd7e SC |
42707 | fi |
42708 | EOF | |
1e9e8aba | 42709 | |
a848cd7e SC |
42710 | chmod +x bk-make-pch |
42711 | fi | |
42712 | fi | |
42713 | fi | |
42714 | ||
42715 | ||
42716 | ||
a848cd7e SC |
42717 | COND_BUILD_DEBUG="#" |
42718 | if test "x$BUILD" = "xdebug" ; then | |
42719 | COND_BUILD_DEBUG="" | |
42720 | fi | |
42721 | ||
42722 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
42723 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
42724 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
42725 | fi | |
42726 | ||
42727 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
42728 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
42729 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
42730 | fi | |
42731 | ||
42732 | COND_BUILD_DEBUG_UNICODE_0="#" | |
42733 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
42734 | COND_BUILD_DEBUG_UNICODE_0="" | |
42735 | fi | |
42736 | ||
42737 | COND_BUILD_DEBUG_UNICODE_1="#" | |
42738 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
42739 | COND_BUILD_DEBUG_UNICODE_1="" | |
42740 | fi | |
42741 | ||
42742 | COND_BUILD_RELEASE="#" | |
42743 | if test "x$BUILD" = "xrelease" ; then | |
42744 | COND_BUILD_RELEASE="" | |
42745 | fi | |
42746 | ||
42747 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
42748 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
42749 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
42750 | fi | |
42751 | ||
42752 | COND_BUILD_RELEASE_UNICODE_0="#" | |
42753 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
42754 | COND_BUILD_RELEASE_UNICODE_0="" | |
42755 | fi | |
42756 | ||
42757 | COND_BUILD_RELEASE_UNICODE_1="#" | |
42758 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
42759 | COND_BUILD_RELEASE_UNICODE_1="" | |
42760 | fi | |
42761 | ||
42762 | COND_DEBUG_FLAG_1="#" | |
42763 | if test "x$DEBUG_FLAG" = "x1" ; then | |
42764 | COND_DEBUG_FLAG_1="" | |
42765 | fi | |
42766 | ||
42767 | COND_DEBUG_INFO_0="#" | |
42768 | if test "x$DEBUG_INFO" = "x0" ; then | |
42769 | COND_DEBUG_INFO_0="" | |
42770 | fi | |
42771 | ||
42772 | COND_DEBUG_INFO_1="#" | |
42773 | if test "x$DEBUG_INFO" = "x1" ; then | |
42774 | COND_DEBUG_INFO_1="" | |
42775 | fi | |
42776 | ||
42777 | COND_DEPS_TRACKING_0="#" | |
42778 | if test "x$DEPS_TRACKING" = "x0" ; then | |
42779 | COND_DEPS_TRACKING_0="" | |
42780 | fi | |
42781 | ||
42782 | COND_DEPS_TRACKING_1="#" | |
42783 | if test "x$DEPS_TRACKING" = "x1" ; then | |
42784 | COND_DEPS_TRACKING_1="" | |
42785 | fi | |
42786 | ||
42787 | COND_GCC_PCH_1="#" | |
42788 | if test "x$GCC_PCH" = "x1" ; then | |
42789 | COND_GCC_PCH_1="" | |
42790 | fi | |
42791 | ||
42792 | COND_MONOLITHIC_0="#" | |
42793 | if test "x$MONOLITHIC" = "x0" ; then | |
42794 | COND_MONOLITHIC_0="" | |
42795 | fi | |
42796 | ||
42797 | COND_MONOLITHIC_0_SHARED_0="#" | |
42798 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
42799 | COND_MONOLITHIC_0_SHARED_0="" | |
42800 | fi | |
42801 | ||
42802 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
42803 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
42804 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
42805 | fi | |
42806 | ||
90970d69 DE |
42807 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
42808 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
42809 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
42810 | fi | |
42811 | ||
a848cd7e SC |
42812 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
42813 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42814 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
42815 | fi | |
42816 | ||
6671c68b VZ |
42817 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
42818 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
42819 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
42820 | fi | |
42821 | ||
a848cd7e SC |
42822 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
42823 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
42824 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
42825 | fi | |
42826 | ||
ceec2216 RL |
42827 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
42828 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
42829 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
42830 | fi | |
42831 | ||
a848cd7e SC |
42832 | COND_MONOLITHIC_0_SHARED_1="#" |
42833 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
42834 | COND_MONOLITHIC_0_SHARED_1="" | |
42835 | fi | |
42836 | ||
42837 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
42838 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42839 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
42840 | fi | |
42841 | ||
90970d69 DE |
42842 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
42843 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
42844 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
42845 | fi | |
42846 | ||
a848cd7e SC |
42847 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
42848 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42849 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
42850 | fi | |
42851 | ||
6671c68b VZ |
42852 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
42853 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
42854 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
42855 | fi | |
42856 | ||
a848cd7e SC |
42857 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
42858 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42859 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
42860 | fi | |
42861 | ||
ceec2216 RL |
42862 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
42863 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
42864 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
42865 | fi | |
42866 | ||
a848cd7e SC |
42867 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
42868 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
42869 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
42870 | fi | |
42871 | ||
42872 | COND_MONOLITHIC_1="#" | |
42873 | if test "x$MONOLITHIC" = "x1" ; then | |
42874 | COND_MONOLITHIC_1="" | |
42875 | fi | |
42876 | ||
42877 | COND_MONOLITHIC_1_SHARED_0="#" | |
42878 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
42879 | COND_MONOLITHIC_1_SHARED_0="" | |
42880 | fi | |
42881 | ||
42882 | COND_MONOLITHIC_1_SHARED_1="#" | |
42883 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
42884 | COND_MONOLITHIC_1_SHARED_1="" | |
42885 | fi | |
42886 | ||
42887 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
42888 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
42889 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
42890 | fi | |
42891 | ||
42892 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
42893 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
42894 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
42895 | fi | |
42896 | ||
42897 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
42898 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
42899 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
42900 | fi | |
42901 | ||
42902 | COND_PLATFORM_MACOSX_1="#" | |
42903 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
42904 | COND_PLATFORM_MACOSX_1="" | |
42905 | fi | |
42906 | ||
a30f955f VS |
42907 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
42908 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
42909 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
42910 | fi | |
42911 | ||
a848cd7e SC |
42912 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
42913 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
42914 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
42915 | fi | |
42916 | ||
42917 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
42918 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
42919 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
42920 | fi | |
42921 | ||
42922 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
42923 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
42924 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
42925 | fi | |
42926 | ||
fc480dc1 DE |
42927 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
42928 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
42929 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
42930 | fi | |
42931 | ||
1e9e8aba DE |
42932 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
42933 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42934 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
42935 | fi | |
42936 | ||
ebee3cd0 VS |
42937 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
42938 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
42939 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
42940 | fi | |
42941 | ||
42942 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
42943 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
42944 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
42945 | fi | |
42946 | ||
a848cd7e SC |
42947 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
42948 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42949 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
42950 | fi | |
42951 | ||
42952 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
42953 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
42954 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
42955 | fi | |
42956 | ||
b48a2016 DE |
42957 | COND_PLATFORM_MACOS_1="#" |
42958 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
42959 | COND_PLATFORM_MACOS_1="" | |
42960 | fi | |
42961 | ||
a848cd7e SC |
42962 | COND_PLATFORM_MAC_1="#" |
42963 | if test "x$PLATFORM_MAC" = "x1" ; then | |
42964 | COND_PLATFORM_MAC_1="" | |
42965 | fi | |
42966 | ||
83d8eb47 MW |
42967 | COND_PLATFORM_MSDOS_1="#" |
42968 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
42969 | COND_PLATFORM_MSDOS_1="" | |
42970 | fi | |
42971 | ||
a848cd7e SC |
42972 | COND_PLATFORM_OS2_1="#" |
42973 | if test "x$PLATFORM_OS2" = "x1" ; then | |
42974 | COND_PLATFORM_OS2_1="" | |
42975 | fi | |
42976 | ||
42977 | COND_PLATFORM_UNIX_0="#" | |
42978 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
42979 | COND_PLATFORM_UNIX_0="" | |
42980 | fi | |
42981 | ||
42982 | COND_PLATFORM_UNIX_1="#" | |
42983 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
42984 | COND_PLATFORM_UNIX_1="" | |
42985 | fi | |
42986 | ||
42987 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
42988 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42989 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
42990 | fi | |
42991 | ||
42992 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
42993 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
42994 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
42995 | fi | |
42996 | ||
42997 | COND_PLATFORM_WIN32_0="#" | |
42998 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
42999 | COND_PLATFORM_WIN32_0="" | |
43000 | fi | |
43001 | ||
43002 | COND_PLATFORM_WIN32_1="#" | |
43003 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
43004 | COND_PLATFORM_WIN32_1="" | |
43005 | fi | |
43006 | ||
43007 | COND_SHARED_0="#" | |
43008 | if test "x$SHARED" = "x0" ; then | |
43009 | COND_SHARED_0="" | |
43010 | fi | |
43011 | ||
ceec2216 RL |
43012 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
43013 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
43014 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
43015 | fi | |
43016 | ||
43017 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
43018 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
43019 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
43020 | fi | |
43021 | ||
43022 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
43023 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
43024 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
43025 | fi | |
43026 | ||
a848cd7e SC |
43027 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
43028 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
43029 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
43030 | fi | |
43031 | ||
43032 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
43033 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
43034 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
43035 | fi | |
43036 | ||
43037 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
43038 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
43039 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
43040 | fi | |
43041 | ||
43042 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
43043 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
43044 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
43045 | fi | |
43046 | ||
52ada004 RL |
43047 | COND_SHARED_0_USE_XRC_1="#" |
43048 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
43049 | COND_SHARED_0_USE_XRC_1="" | |
43050 | fi | |
43051 | ||
a848cd7e SC |
43052 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
43053 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
43054 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
43055 | fi | |
43056 | ||
43057 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
43058 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
43059 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
43060 | fi | |
43061 | ||
43062 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
43063 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
43064 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
43065 | fi | |
43066 | ||
43067 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
43068 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
43069 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
43070 | fi | |
43071 | ||
43072 | COND_SHARED_1="#" | |
43073 | if test "x$SHARED" = "x1" ; then | |
43074 | COND_SHARED_1="" | |
43075 | fi | |
43076 | ||
43077 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
43078 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
43079 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
43080 | fi | |
43081 | ||
52ada004 RL |
43082 | COND_SHARED_1_USE_XRC_1="#" |
43083 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
43084 | COND_SHARED_1_USE_XRC_1="" | |
43085 | fi | |
43086 | ||
a30f955f VS |
43087 | COND_TOOLKIT_="#" |
43088 | if test "x$TOOLKIT" = "x" ; then | |
43089 | COND_TOOLKIT_="" | |
43090 | fi | |
43091 | ||
a848cd7e SC |
43092 | COND_TOOLKIT_COCOA="#" |
43093 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
43094 | COND_TOOLKIT_COCOA="" | |
43095 | fi | |
43096 | ||
a49baeab DE |
43097 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
43098 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
43099 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
43100 | fi | |
43101 | ||
a848cd7e SC |
43102 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
43103 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43104 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
43105 | fi | |
43106 | ||
43107 | COND_TOOLKIT_GTK="#" | |
43108 | if test "x$TOOLKIT" = "xGTK" ; then | |
43109 | COND_TOOLKIT_GTK="" | |
43110 | fi | |
43111 | ||
43112 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
43113 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
43114 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
43115 | fi | |
43116 | ||
43117 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
43118 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43119 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
43120 | fi | |
43121 | ||
43122 | COND_TOOLKIT_MAC="#" | |
43123 | if test "x$TOOLKIT" = "xMAC" ; then | |
43124 | COND_TOOLKIT_MAC="" | |
43125 | fi | |
43126 | ||
43127 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
43128 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
43129 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
43130 | fi | |
43131 | ||
43132 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
43133 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43134 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
43135 | fi | |
43136 | ||
43137 | COND_TOOLKIT_MGL="#" | |
43138 | if test "x$TOOLKIT" = "xMGL" ; then | |
43139 | COND_TOOLKIT_MGL="" | |
43140 | fi | |
43141 | ||
43142 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
43143 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
43144 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
43145 | fi | |
43146 | ||
43147 | COND_TOOLKIT_MOTIF="#" | |
43148 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
43149 | COND_TOOLKIT_MOTIF="" | |
43150 | fi | |
43151 | ||
43152 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
43153 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
43154 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
43155 | fi | |
43156 | ||
43157 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
43158 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43159 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
43160 | fi | |
43161 | ||
43162 | COND_TOOLKIT_MSW="#" | |
43163 | if test "x$TOOLKIT" = "xMSW" ; then | |
43164 | COND_TOOLKIT_MSW="" | |
43165 | fi | |
43166 | ||
43167 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
43168 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
43169 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
43170 | fi | |
43171 | ||
43172 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
43173 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43174 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
43175 | fi | |
43176 | ||
43177 | COND_TOOLKIT_PM="#" | |
43178 | if test "x$TOOLKIT" = "xPM" ; then | |
43179 | COND_TOOLKIT_PM="" | |
43180 | fi | |
43181 | ||
43182 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
43183 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
43184 | COND_TOOLKIT_PM_USE_GUI_1="" | |
43185 | fi | |
43186 | ||
43187 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
43188 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43189 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
43190 | fi | |
43191 | ||
3fd9c298 DE |
43192 | COND_TOOLKIT_WINCE="#" |
43193 | if test "x$TOOLKIT" = "xWINCE" ; then | |
43194 | COND_TOOLKIT_WINCE="" | |
43195 | fi | |
43196 | ||
43197 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
43198 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
43199 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
43200 | fi | |
43201 | ||
43202 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
43203 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43204 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
43205 | fi | |
43206 | ||
a848cd7e SC |
43207 | COND_TOOLKIT_X11="#" |
43208 | if test "x$TOOLKIT" = "xX11" ; then | |
43209 | COND_TOOLKIT_X11="" | |
43210 | fi | |
43211 | ||
43212 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
43213 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
43214 | COND_TOOLKIT_X11_USE_GUI_1="" | |
43215 | fi | |
43216 | ||
43217 | COND_UNICODE_1="#" | |
43218 | if test "x$UNICODE" = "x1" ; then | |
43219 | COND_UNICODE_1="" | |
43220 | fi | |
43221 | ||
43222 | COND_USE_EXCEPTIONS_0="#" | |
43223 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
43224 | COND_USE_EXCEPTIONS_0="" | |
43225 | fi | |
43226 | ||
43227 | COND_USE_EXCEPTIONS_1="#" | |
43228 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
43229 | COND_USE_EXCEPTIONS_1="" | |
43230 | fi | |
43231 | ||
43232 | COND_USE_GUI_0="#" | |
43233 | if test "x$USE_GUI" = "x0" ; then | |
43234 | COND_USE_GUI_0="" | |
43235 | fi | |
43236 | ||
43237 | COND_USE_GUI_1="#" | |
43238 | if test "x$USE_GUI" = "x1" ; then | |
43239 | COND_USE_GUI_1="" | |
43240 | fi | |
43241 | ||
43242 | COND_USE_GUI_1_WXUNIV_0="#" | |
43243 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43244 | COND_USE_GUI_1_WXUNIV_0="" | |
43245 | fi | |
43246 | ||
43247 | COND_USE_GUI_1_WXUNIV_1="#" | |
43248 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
43249 | COND_USE_GUI_1_WXUNIV_1="" | |
43250 | fi | |
43251 | ||
43252 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
43253 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
43254 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
43255 | fi | |
43256 | ||
43257 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
43258 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
43259 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
43260 | fi | |
43261 | ||
43262 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
43263 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
43264 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
43265 | fi | |
43266 | ||
ceec2216 RL |
43267 | COND_USE_ODBC_1="#" |
43268 | if test "x$USE_ODBC" = "x1" ; then | |
43269 | COND_USE_ODBC_1="" | |
43270 | fi | |
43271 | ||
ffa0583f RL |
43272 | COND_USE_OPENGL_1="#" |
43273 | if test "x$USE_OPENGL" = "x1" ; then | |
43274 | COND_USE_OPENGL_1="" | |
43275 | fi | |
43276 | ||
a848cd7e SC |
43277 | COND_USE_PLUGINS_0="#" |
43278 | if test "x$USE_PLUGINS" = "x0" ; then | |
43279 | COND_USE_PLUGINS_0="" | |
43280 | fi | |
43281 | ||
0b78747f MW |
43282 | COND_USE_RTTI_0="#" |
43283 | if test "x$USE_RTTI" = "x0" ; then | |
43284 | COND_USE_RTTI_0="" | |
43285 | fi | |
43286 | ||
43287 | COND_USE_RTTI_1="#" | |
43288 | if test "x$USE_RTTI" = "x1" ; then | |
43289 | COND_USE_RTTI_1="" | |
43290 | fi | |
43291 | ||
a848cd7e SC |
43292 | COND_USE_SOSYMLINKS_1="#" |
43293 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
43294 | COND_USE_SOSYMLINKS_1="" | |
43295 | fi | |
43296 | ||
43297 | COND_USE_SOVERLINUX_1="#" | |
43298 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
43299 | COND_USE_SOVERLINUX_1="" | |
43300 | fi | |
43301 | ||
43302 | COND_USE_SOVERSION_0="#" | |
43303 | if test "x$USE_SOVERSION" = "x0" ; then | |
43304 | COND_USE_SOVERSION_0="" | |
43305 | fi | |
43306 | ||
43307 | COND_USE_SOVERSOLARIS_1="#" | |
43308 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
43309 | COND_USE_SOVERSOLARIS_1="" | |
43310 | fi | |
43311 | ||
0b78747f MW |
43312 | COND_USE_THREADS_0="#" |
43313 | if test "x$USE_THREADS" = "x0" ; then | |
43314 | COND_USE_THREADS_0="" | |
43315 | fi | |
43316 | ||
43317 | COND_USE_THREADS_1="#" | |
43318 | if test "x$USE_THREADS" = "x1" ; then | |
43319 | COND_USE_THREADS_1="" | |
43320 | fi | |
43321 | ||
a13a7f89 RL |
43322 | COND_USE_XRC_1="#" |
43323 | if test "x$USE_XRC" = "x1" ; then | |
43324 | COND_USE_XRC_1="" | |
43325 | fi | |
43326 | ||
a848cd7e SC |
43327 | COND_WITH_PLUGIN_SDL_1="#" |
43328 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
43329 | COND_WITH_PLUGIN_SDL_1="" | |
43330 | fi | |
43331 | ||
1e6eb025 VZ |
43332 | COND_WXUNIV_0="#" |
43333 | if test "x$WXUNIV" = "x0" ; then | |
43334 | COND_WXUNIV_0="" | |
43335 | fi | |
43336 | ||
a848cd7e SC |
43337 | COND_WXUNIV_1="#" |
43338 | if test "x$WXUNIV" = "x1" ; then | |
43339 | COND_WXUNIV_1="" | |
43340 | fi | |
43341 | ||
43342 | COND_WXUSE_EXPAT_BUILTIN="#" | |
43343 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
43344 | COND_WXUSE_EXPAT_BUILTIN="" | |
43345 | fi | |
43346 | ||
43347 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
43348 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
43349 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
43350 | fi | |
43351 | ||
43352 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
43353 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
43354 | COND_WXUSE_LIBPNG_BUILTIN="" | |
43355 | fi | |
43356 | ||
43357 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
43358 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
43359 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
43360 | fi | |
43361 | ||
43362 | COND_WXUSE_ODBC_BUILTIN="#" | |
43363 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
43364 | COND_WXUSE_ODBC_BUILTIN="" | |
43365 | fi | |
43366 | ||
43367 | COND_WXUSE_REGEX_BUILTIN="#" | |
43368 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
43369 | COND_WXUSE_REGEX_BUILTIN="" | |
43370 | fi | |
43371 | ||
43372 | COND_WXUSE_ZLIB_BUILTIN="#" | |
43373 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
43374 | COND_WXUSE_ZLIB_BUILTIN="" | |
43375 | fi | |
43376 | ||
43377 | ||
43378 | ||
2057db16 VS |
43379 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
43380 | { { 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 | |
43381 | 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;} | |
43382 | { (exit 1); exit 1; }; } | |
43383 | fi | |
43384 | ||
a848cd7e | 43385 | |
ceec2216 RL |
43386 | if test "$wxUSE_SHARED" = "yes"; then |
43387 | ||
43388 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
43389 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
43390 | ||
5b674b9d DE |
43391 | case "${host}" in |
43392 | *-pc-os2_emx | *-pc-os2-emx ) | |
43393 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
43394 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
43395 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
43396 | cp -p ${srcdir}/src/os2/dllar.sh . | |
43397 | ;; | |
43398 | esac | |
ceec2216 RL |
43399 | else |
43400 | ||
43401 | EXE_LINKER="$CXX -o" | |
43402 | ||
43403 | fi | |
69120ee4 VZ |
43404 | if test "$wxUSE_OMF" = "yes"; then |
43405 | case "${host}" in | |
43406 | *-pc-os2_emx | *-pc-os2-emx ) | |
43407 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
43408 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
43409 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
43410 | ;; | |
43411 | esac | |
43412 | fi | |
a848cd7e | 43413 | |
74b84332 | 43414 | GCC_PRAGMA_FLAGS="" |
c08ebc62 DE |
43415 | PCH_FLAGS="" |
43416 | if test $GCC_PCH = 1 ; then | |
43417 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
43418 | PCH_FLAGS="-DWX_PRECOMP" | |
43419 | else | |
a848cd7e SC |
43420 | case "${host}" in |
43421 | powerpc-*-darwin* ) | |
74b84332 | 43422 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 43423 | ;; |
bea8e651 | 43424 | *-*-mingw32* ) |
1f344abf VS |
43425 | if test "$wxUSE_STL" = "yes" -o \ |
43426 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
43427 | "$wxUSE_NO_RTTI" != "yes"; then | |
43428 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
43429 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
43430 | cat >conftest.$ac_ext <<_ACEOF |
43431 | /* confdefs.h. */ | |
43432 | _ACEOF | |
43433 | cat confdefs.h >>conftest.$ac_ext | |
43434 | cat >>conftest.$ac_ext <<_ACEOF | |
43435 | /* end confdefs.h. */ | |
43436 | ||
3314e67b RR |
43437 | int |
43438 | main () | |
43439 | { | |
43440 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
43441 | #error "Not GCC 3.2 or greater" | |
43442 | #endif | |
43443 | ||
43444 | ; | |
43445 | return 0; | |
43446 | } | |
43447 | _ACEOF | |
43448 | rm -f conftest.$ac_objext | |
43449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43450 | (eval $ac_compile) 2>conftest.er1 | |
43451 | ac_status=$? | |
43452 | grep -v '^ *+' conftest.er1 >conftest.err | |
43453 | rm -f conftest.er1 | |
43454 | cat conftest.err >&5 | |
43455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43456 | (exit $ac_status); } && | |
9dd0f6c2 | 43457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3314e67b RR |
43458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43459 | (eval $ac_try) 2>&5 | |
43460 | ac_status=$? | |
43461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43462 | (exit $ac_status); }; } && | |
43463 | { ac_try='test -s conftest.$ac_objext' | |
43464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43465 | (eval $ac_try) 2>&5 | |
43466 | ac_status=$? | |
43467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43468 | (exit $ac_status); }; }; then | |
43469 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
43470 | echo "$as_me:$LINENO: result: yes" >&5 | |
43471 | echo "${ECHO_T}yes" >&6 | |
43472 | else | |
43473 | echo "$as_me: failed program was:" >&5 | |
43474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43475 | ||
43476 | echo "$as_me:$LINENO: result: no" >&5 | |
43477 | echo "${ECHO_T}no" >&6 | |
43478 | fi | |
43479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43480 | fi | |
43481 | ;; | |
43482 | *-pc-os2_emx | *-pc-os2-emx ) | |
43483 | if test "$wxUSE_STL" = "yes"; then | |
43484 | echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5 | |
43485 | echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
43486 | cat >conftest.$ac_ext <<_ACEOF | |
43487 | /* confdefs.h. */ | |
43488 | _ACEOF | |
43489 | cat confdefs.h >>conftest.$ac_ext | |
43490 | cat >>conftest.$ac_ext <<_ACEOF | |
43491 | /* end confdefs.h. */ | |
43492 | ||
bea8e651 MB |
43493 | int |
43494 | main () | |
43495 | { | |
1f344abf | 43496 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
43497 | #error "Not GCC 3.2 or greater" |
43498 | #endif | |
43499 | ||
43500 | ; | |
43501 | return 0; | |
43502 | } | |
43503 | _ACEOF | |
43504 | rm -f conftest.$ac_objext | |
43505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43506 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 43507 | ac_status=$? |
ac1cb8d3 VS |
43508 | grep -v '^ *+' conftest.er1 >conftest.err |
43509 | rm -f conftest.er1 | |
43510 | cat conftest.err >&5 | |
bea8e651 MB |
43511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43512 | (exit $ac_status); } && | |
9dd0f6c2 | 43513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43515 | (eval $ac_try) 2>&5 | |
43516 | ac_status=$? | |
43517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43518 | (exit $ac_status); }; } && | |
43519 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
43520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43521 | (eval $ac_try) 2>&5 | |
43522 | ac_status=$? | |
43523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43524 | (exit $ac_status); }; }; then | |
74b84332 | 43525 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
43526 | echo "$as_me:$LINENO: result: yes" >&5 |
43527 | echo "${ECHO_T}yes" >&6 | |
43528 | else | |
43529 | echo "$as_me: failed program was:" >&5 | |
43530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43531 | ||
43532 | echo "$as_me:$LINENO: result: no" >&5 | |
43533 | echo "${ECHO_T}no" >&6 | |
43534 | fi | |
ac1cb8d3 | 43535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
43536 | fi |
43537 | ;; | |
a848cd7e SC |
43538 | esac |
43539 | fi | |
d2083416 | 43540 | CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
43541 | |
43542 | ||
43543 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
43544 | ||
43545 | ||
43546 | ||
43547 | ||
43548 | ||
43549 | ||
43550 | ||
43551 | ||
43552 | ||
43553 | ||
43554 | ||
43555 | ||
43556 | ||
43557 | ||
43558 | ||
43559 | ||
43560 | ||
43561 | ||
43562 | ||
43563 | ||
43564 | ||
43565 | ||
43566 | ||
43567 | ||
43568 | ||
43569 | ||
43570 | ||
43571 | ||
43572 | ||
43573 | ||
43574 | ||
43575 | ||
43576 | ||
43577 | ||
43578 | ||
43579 | ||
43580 | ||
43581 | ||
43582 | ||
43583 | ||
43584 | ||
43585 | ||
a848cd7e SC |
43586 | |
43587 | ||
43588 | ||
43589 | ||
43590 | ||
43591 | ||
43592 | ||
43593 | ||
43594 | ||
43595 | ||
43596 | ||
43597 | ||
43598 | ||
43599 | ||
43600 | ||
43601 | ||
43602 | ||
43603 | ||
74b84332 | 43604 | |
a848cd7e SC |
43605 | |
43606 | ||
43607 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
43608 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 43609 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
43610 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
43611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43612 | else | |
43613 | cat >conftest.make <<\_ACEOF | |
43614 | all: | |
43615 | @echo 'ac_maketemp="$(MAKE)"' | |
43616 | _ACEOF | |
43617 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
43618 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
43619 | if test -n "$ac_maketemp"; then | |
43620 | eval ac_cv_prog_make_${ac_make}_set=yes | |
43621 | else | |
43622 | eval ac_cv_prog_make_${ac_make}_set=no | |
43623 | fi | |
43624 | rm -f conftest.make | |
43625 | fi | |
43626 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
43627 | echo "$as_me:$LINENO: result: yes" >&5 | |
43628 | echo "${ECHO_T}yes" >&6 | |
43629 | SET_MAKE= | |
43630 | else | |
43631 | echo "$as_me:$LINENO: result: no" >&5 | |
43632 | echo "${ECHO_T}no" >&6 | |
43633 | SET_MAKE="MAKE=${MAKE-make}" | |
43634 | fi | |
43635 | ||
43636 | ||
a848cd7e | 43637 | |
ceec2216 RL |
43638 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
43639 | ||
a848cd7e | 43640 | |
ceec2216 | 43641 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 43642 | |
a848cd7e | 43643 | |
ceec2216 | 43644 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 43645 | |
ceec2216 RL |
43646 | |
43647 | ac_config_files="$ac_config_files version-script Makefile" | |
43648 | ||
43649 | ||
43650 | ac_config_commands="$ac_config_commands wx-config | |
43651 | " | |
a848cd7e SC |
43652 | |
43653 | ||
9103d280 RL |
43654 | |
43655 | ||
a848cd7e SC |
43656 | if test "$wxUSE_GUI" = "yes"; then |
43657 | SUBDIRS="samples demos utils contrib" | |
43658 | else SUBDIRS="samples utils" | |
43659 | fi | |
43660 | ||
43661 | ||
43662 | ||
43663 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
43664 | if test "${with_cppunit_prefix+set}" = set; then | |
43665 | withval="$with_cppunit_prefix" | |
43666 | cppunit_config_prefix="$withval" | |
43667 | else | |
43668 | cppunit_config_prefix="" | |
43669 | fi; | |
43670 | ||
43671 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
43672 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
43673 | withval="$with_cppunit_exec_prefix" | |
43674 | cppunit_config_exec_prefix="$withval" | |
43675 | else | |
43676 | cppunit_config_exec_prefix="" | |
43677 | fi; | |
43678 | ||
43679 | if test x$cppunit_config_exec_prefix != x ; then | |
43680 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
43681 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
43682 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
43683 | fi | |
43684 | fi | |
43685 | if test x$cppunit_config_prefix != x ; then | |
43686 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
43687 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
43688 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
43689 | fi | |
43690 | fi | |
43691 | ||
43692 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
43693 | set dummy cppunit-config; ac_word=$2 | |
43694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43696 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
43697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43698 | else | |
43699 | case $CPPUNIT_CONFIG in | |
43700 | [\\/]* | ?:[\\/]*) | |
43701 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
43702 | ;; | |
43703 | *) | |
43704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43705 | for as_dir in $PATH | |
43706 | do | |
43707 | IFS=$as_save_IFS | |
43708 | test -z "$as_dir" && as_dir=. | |
43709 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43710 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43711 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
43712 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43713 | break 2 | |
43714 | fi | |
43715 | done | |
43716 | done | |
43717 | ||
43718 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
43719 | ;; | |
43720 | esac | |
43721 | fi | |
43722 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
43723 | ||
43724 | if test -n "$CPPUNIT_CONFIG"; then | |
43725 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
43726 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
43727 | else | |
43728 | echo "$as_me:$LINENO: result: no" >&5 | |
43729 | echo "${ECHO_T}no" >&6 | |
43730 | fi | |
43731 | ||
43732 | cppunit_version_min=1.8.0 | |
43733 | ||
43734 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
43735 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
43736 | no_cppunit="" | |
43737 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
43738 | no_cppunit=yes | |
43739 | else | |
43740 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
43741 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
43742 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
43743 | ||
43744 | cppunit_major_version=`echo $cppunit_version | \ | |
43745 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
43746 | cppunit_minor_version=`echo $cppunit_version | \ | |
43747 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
43748 | cppunit_micro_version=`echo $cppunit_version | \ | |
43749 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
43750 | ||
43751 | cppunit_major_min=`echo $cppunit_version_min | \ | |
43752 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
43753 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
43754 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
43755 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
43756 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
43757 | ||
43758 | cppunit_version_proper=`expr \ | |
43759 | $cppunit_major_version \> $cppunit_major_min \| \ | |
43760 | $cppunit_major_version \= $cppunit_major_min \& \ | |
43761 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
43762 | $cppunit_major_version \= $cppunit_major_min \& \ | |
43763 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
43764 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
43765 | ||
43766 | if test "$cppunit_version_proper" = "1" ; then | |
43767 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
43768 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
43769 | else | |
43770 | echo "$as_me:$LINENO: result: no" >&5 | |
43771 | echo "${ECHO_T}no" >&6 | |
43772 | no_cppunit=yes | |
43773 | fi | |
43774 | fi | |
43775 | ||
43776 | if test "x$no_cppunit" = x ; then | |
c2218763 | 43777 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
43778 | else |
43779 | CPPUNIT_CFLAGS="" | |
43780 | CPPUNIT_LIBS="" | |
c2218763 | 43781 | : |
a848cd7e SC |
43782 | fi |
43783 | ||
43784 | ||
43785 | ||
43786 | ||
43787 | ||
43788 | for subdir in `echo $SUBDIRS`; do | |
43789 | if test -d ${srcdir}/${subdir} ; then | |
43790 | if test "$wxUSE_GUI" = "yes"; then | |
43791 | if test ${subdir} = "samples"; then | |
43792 | makefiles="samples/Makefile.in $makefiles" | |
43793 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
43794 | if test -d $srcdir/samples/$sample; then | |
43795 | makefiles="samples/$sample/Makefile.in $makefiles" | |
43796 | fi | |
43797 | done | |
9c112555 MW |
43798 | else |
43799 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
43800 | eval "disabled=\$$disabled_var" | |
43801 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
43802 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
43803 | fi |
43804 | else if test ${subdir} = "samples"; then | |
43805 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
43806 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
43807 | makefiles="" |
43808 | for util in HelpGen tex2rtf ; do | |
43809 | if test -d $srcdir/utils/$util ; then | |
43810 | makefiles="utils/$util/Makefile.in \ | |
43811 | utils/$util/src/Makefile.in \ | |
43812 | $makefiles" | |
43813 | fi | |
43814 | done | |
a848cd7e SC |
43815 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
43816 | fi | |
43817 | fi | |
43818 | ||
43819 | for mkin in $makefiles ; do | |
43820 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
43821 | ac_config_files="$ac_config_files $mk" | |
43822 | ||
43823 | done | |
43824 | fi | |
43825 | done | |
43826 | ||
43827 | ||
43828 | cat >confcache <<\_ACEOF | |
43829 | # This file is a shell script that caches the results of configure | |
43830 | # tests run on this system so they can be shared between configure | |
43831 | # scripts and configure runs, see configure's option --config-cache. | |
43832 | # It is not useful on other systems. If it contains results you don't | |
43833 | # want to keep, you may remove or edit it. | |
43834 | # | |
43835 | # config.status only pays attention to the cache file if you give it | |
43836 | # the --recheck option to rerun configure. | |
43837 | # | |
43838 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
43839 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
43840 | # following values. | |
43841 | ||
43842 | _ACEOF | |
43843 | ||
43844 | # The following way of writing the cache mishandles newlines in values, | |
43845 | # but we know of no workaround that is simple, portable, and efficient. | |
43846 | # So, don't put newlines in cache variables' values. | |
43847 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
43848 | # and sets the high bit in the cache file unless we assign to the vars. | |
43849 | { | |
43850 | (set) 2>&1 | | |
43851 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
43852 | *ac_space=\ *) | |
43853 | # `set' does not quote correctly, so add quotes (double-quote | |
43854 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
43855 | sed -n \ | |
ac1cb8d3 VS |
43856 | "s/'/'\\\\''/g; |
43857 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
43858 | ;; |
43859 | *) | |
43860 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
43861 | sed -n \ | |
ac1cb8d3 | 43862 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
43863 | ;; |
43864 | esac; | |
43865 | } | | |
43866 | sed ' | |
43867 | t clear | |
43868 | : clear | |
43869 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
43870 | t end | |
43871 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
43872 | : end' >>confcache | |
43873 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
43874 | if test -w $cache_file; then | |
43875 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
43876 | cat confcache >$cache_file | |
43877 | else | |
43878 | echo "not updating unwritable cache $cache_file" | |
43879 | fi | |
43880 | fi | |
43881 | rm -f confcache | |
43882 | ||
43883 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
43884 | # Let make expand exec_prefix. | |
43885 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
43886 | ||
43887 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
43888 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
43889 | # trailing colons and then remove the whole line if VPATH becomes empty | |
43890 | # (actually we leave an empty line to preserve line numbers). | |
43891 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 43892 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
43893 | s/:*\$(srcdir):*/:/; |
43894 | s/:*\${srcdir}:*/:/; | |
43895 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 43896 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 43897 | s/:*$//; |
ac1cb8d3 | 43898 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
43899 | }' |
43900 | fi | |
43901 | ||
43902 | DEFS=-DHAVE_CONFIG_H | |
43903 | ||
43904 | ac_libobjs= | |
43905 | ac_ltlibobjs= | |
43906 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
43907 | # 1. Remove the extension, and $U if already installed. | |
43908 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 43909 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
43910 | # 2. Add them. |
43911 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
43912 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
43913 | done | |
43914 | LIBOBJS=$ac_libobjs | |
43915 | ||
43916 | LTLIBOBJS=$ac_ltlibobjs | |
43917 | ||
43918 | ||
43919 | ||
43920 | : ${CONFIG_STATUS=./config.status} | |
43921 | ac_clean_files_save=$ac_clean_files | |
43922 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
43923 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
43924 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
43925 | cat >$CONFIG_STATUS <<_ACEOF | |
43926 | #! $SHELL | |
43927 | # Generated by $as_me. | |
43928 | # Run this file to recreate the current configuration. | |
43929 | # Compiler output produced by configure, useful for debugging | |
43930 | # configure, is in config.log if it exists. | |
43931 | ||
43932 | debug=false | |
43933 | ac_cs_recheck=false | |
43934 | ac_cs_silent=false | |
43935 | SHELL=\${CONFIG_SHELL-$SHELL} | |
43936 | _ACEOF | |
43937 | ||
43938 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43939 | ## --------------------- ## | |
43940 | ## M4sh Initialization. ## | |
43941 | ## --------------------- ## | |
43942 | ||
43943 | # Be Bourne compatible | |
43944 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
43945 | emulate sh | |
43946 | NULLCMD=: | |
43947 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
43948 | # is contrary to our usage. Disable this feature. | |
43949 | alias -g '${1+"$@"}'='"$@"' | |
43950 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
43951 | set -o posix | |
43952 | fi | |
ac1cb8d3 | 43953 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
43954 | |
43955 | # Support unset when possible. | |
ac1cb8d3 | 43956 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
43957 | as_unset=unset |
43958 | else | |
43959 | as_unset=false | |
43960 | fi | |
43961 | ||
43962 | ||
43963 | # Work around bugs in pre-3.0 UWIN ksh. | |
43964 | $as_unset ENV MAIL MAILPATH | |
43965 | PS1='$ ' | |
43966 | PS2='> ' | |
43967 | PS4='+ ' | |
43968 | ||
43969 | # NLS nuisances. | |
43970 | for as_var in \ | |
43971 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
43972 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
43973 | LC_TELEPHONE LC_TIME | |
43974 | do | |
ac1cb8d3 | 43975 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
43976 | eval $as_var=C; export $as_var |
43977 | else | |
43978 | $as_unset $as_var | |
43979 | fi | |
43980 | done | |
43981 | ||
43982 | # Required to use basename. | |
43983 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
43984 | as_expr=expr | |
43985 | else | |
43986 | as_expr=false | |
43987 | fi | |
43988 | ||
43989 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
43990 | as_basename=basename | |
43991 | else | |
43992 | as_basename=false | |
43993 | fi | |
43994 | ||
43995 | ||
43996 | # Name of the executable. | |
43997 | as_me=`$as_basename "$0" || | |
43998 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
43999 | X"$0" : 'X\(//\)$' \| \ | |
44000 | X"$0" : 'X\(/\)$' \| \ | |
44001 | . : '\(.\)' 2>/dev/null || | |
44002 | echo X/"$0" | | |
44003 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
44004 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
44005 | /^X\/\(\/\).*/{ s//\1/; q; } | |
44006 | s/.*/./; q'` | |
44007 | ||
44008 | ||
44009 | # PATH needs CR, and LINENO needs CR and PATH. | |
44010 | # Avoid depending upon Character Ranges. | |
44011 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
44012 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
44013 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
44014 | as_cr_digits='0123456789' | |
44015 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
44016 | ||
44017 | # The user is always right. | |
44018 | if test "${PATH_SEPARATOR+set}" != set; then | |
44019 | echo "#! /bin/sh" >conf$$.sh | |
44020 | echo "exit 0" >>conf$$.sh | |
44021 | chmod +x conf$$.sh | |
44022 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
44023 | PATH_SEPARATOR=';' | |
44024 | else | |
44025 | PATH_SEPARATOR=: | |
44026 | fi | |
44027 | rm -f conf$$.sh | |
44028 | fi | |
44029 | ||
44030 | ||
44031 | as_lineno_1=$LINENO | |
44032 | as_lineno_2=$LINENO | |
44033 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
44034 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
44035 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
44036 | # Find who we are. Look in the path if we contain no path at all | |
44037 | # relative or not. | |
44038 | case $0 in | |
44039 | *[\\/]* ) as_myself=$0 ;; | |
44040 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44041 | for as_dir in $PATH | |
44042 | do | |
44043 | IFS=$as_save_IFS | |
44044 | test -z "$as_dir" && as_dir=. | |
44045 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
44046 | done | |
44047 | ||
44048 | ;; | |
44049 | esac | |
44050 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
44051 | # in which case we are not to be found in the path. | |
44052 | if test "x$as_myself" = x; then | |
44053 | as_myself=$0 | |
44054 | fi | |
44055 | if test ! -f "$as_myself"; then | |
44056 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
44057 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
44058 | { (exit 1); exit 1; }; } | |
44059 | fi | |
44060 | case $CONFIG_SHELL in | |
44061 | '') | |
44062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44063 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
44064 | do | |
44065 | IFS=$as_save_IFS | |
44066 | test -z "$as_dir" && as_dir=. | |
44067 | for as_base in sh bash ksh sh5; do | |
44068 | case $as_dir in | |
44069 | /*) | |
44070 | if ("$as_dir/$as_base" -c ' | |
44071 | as_lineno_1=$LINENO | |
44072 | as_lineno_2=$LINENO | |
44073 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
44074 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
44075 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
44076 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
44077 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
44078 | CONFIG_SHELL=$as_dir/$as_base | |
44079 | export CONFIG_SHELL | |
44080 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
44081 | fi;; | |
44082 | esac | |
44083 | done | |
44084 | done | |
44085 | ;; | |
44086 | esac | |
44087 | ||
44088 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
44089 | # uniformly replaced by the line number. The first 'sed' inserts a | |
44090 | # line-number line before each line; the second 'sed' does the real | |
44091 | # work. The second script uses 'N' to pair each line-number line | |
44092 | # with the numbered line, and appends trailing '-' during | |
44093 | # substitution so that $LINENO is not a special case at line end. | |
44094 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
44095 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
44096 | sed '=' <$as_myself | | |
44097 | sed ' | |
44098 | N | |
44099 | s,$,-, | |
44100 | : loop | |
44101 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
44102 | t loop | |
44103 | s,-$,, | |
44104 | s,^['$as_cr_digits']*\n,, | |
44105 | ' >$as_me.lineno && | |
44106 | chmod +x $as_me.lineno || | |
44107 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
44108 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
44109 | { (exit 1); exit 1; }; } | |
44110 | ||
44111 | # Don't try to exec as it changes $[0], causing all sort of problems | |
44112 | # (the dirname of $[0] is not the place where we might find the | |
44113 | # original and so on. Autoconf is especially sensible to this). | |
44114 | . ./$as_me.lineno | |
44115 | # Exit status is that of the last command. | |
44116 | exit | |
44117 | } | |
44118 | ||
44119 | ||
44120 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
44121 | *c*,-n*) ECHO_N= ECHO_C=' | |
44122 | ' ECHO_T=' ' ;; | |
44123 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
44124 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
44125 | esac | |
44126 | ||
44127 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
44128 | as_expr=expr | |
44129 | else | |
44130 | as_expr=false | |
44131 | fi | |
44132 | ||
44133 | rm -f conf$$ conf$$.exe conf$$.file | |
44134 | echo >conf$$.file | |
44135 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
44136 | # We could just check for DJGPP; but this test a) works b) is more generic | |
44137 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
44138 | if test -f conf$$.exe; then | |
44139 | # Don't use ln at all; we don't have any links | |
44140 | as_ln_s='cp -p' | |
44141 | else | |
44142 | as_ln_s='ln -s' | |
44143 | fi | |
44144 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
44145 | as_ln_s=ln | |
44146 | else | |
44147 | as_ln_s='cp -p' | |
44148 | fi | |
44149 | rm -f conf$$ conf$$.exe conf$$.file | |
44150 | ||
44151 | if mkdir -p . 2>/dev/null; then | |
44152 | as_mkdir_p=: | |
44153 | else | |
ac1cb8d3 | 44154 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
44155 | as_mkdir_p=false |
44156 | fi | |
44157 | ||
44158 | as_executable_p="test -f" | |
44159 | ||
44160 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 44161 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
44162 | |
44163 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 44164 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
44165 | |
44166 | ||
44167 | # IFS | |
44168 | # We need space, tab and new line, in precisely that order. | |
44169 | as_nl=' | |
44170 | ' | |
44171 | IFS=" $as_nl" | |
44172 | ||
44173 | # CDPATH. | |
44174 | $as_unset CDPATH | |
44175 | ||
44176 | exec 6>&1 | |
44177 | ||
44178 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
44179 | # report actual input values of CONFIG_FILES etc. instead of their | |
44180 | # values after options handling. Logging --version etc. is OK. | |
44181 | exec 5>>config.log | |
44182 | { | |
44183 | echo | |
44184 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
44185 | ## Running $as_me. ## | |
44186 | _ASBOX | |
44187 | } >&5 | |
44188 | cat >&5 <<_CSEOF | |
44189 | ||
e0d84535 | 44190 | This file was extended by wxWidgets $as_me 2.6.0, which was |
ac1cb8d3 | 44191 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
44192 | |
44193 | CONFIG_FILES = $CONFIG_FILES | |
44194 | CONFIG_HEADERS = $CONFIG_HEADERS | |
44195 | CONFIG_LINKS = $CONFIG_LINKS | |
44196 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
44197 | $ $0 $@ | |
44198 | ||
44199 | _CSEOF | |
44200 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
44201 | echo >&5 | |
44202 | _ACEOF | |
44203 | ||
44204 | # Files that config.status was made for. | |
44205 | if test -n "$ac_config_files"; then | |
44206 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
44207 | fi | |
44208 | ||
44209 | if test -n "$ac_config_headers"; then | |
44210 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
44211 | fi | |
44212 | ||
44213 | if test -n "$ac_config_links"; then | |
44214 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
44215 | fi | |
44216 | ||
44217 | if test -n "$ac_config_commands"; then | |
44218 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
44219 | fi | |
44220 | ||
44221 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44222 | ||
44223 | ac_cs_usage="\ | |
44224 | \`$as_me' instantiates files from templates according to the | |
44225 | current configuration. | |
44226 | ||
44227 | Usage: $0 [OPTIONS] [FILE]... | |
44228 | ||
44229 | -h, --help print this help, then exit | |
44230 | -V, --version print version number, then exit | |
44231 | -q, --quiet do not print progress messages | |
44232 | -d, --debug don't remove temporary files | |
44233 | --recheck update $as_me by reconfiguring in the same conditions | |
44234 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 44235 | instantiate the configuration file FILE |
a848cd7e | 44236 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 44237 | instantiate the configuration header FILE |
a848cd7e SC |
44238 | |
44239 | Configuration files: | |
44240 | $config_files | |
44241 | ||
44242 | Configuration headers: | |
44243 | $config_headers | |
44244 | ||
44245 | Configuration commands: | |
44246 | $config_commands | |
44247 | ||
44248 | Report bugs to <bug-autoconf@gnu.org>." | |
44249 | _ACEOF | |
44250 | ||
44251 | cat >>$CONFIG_STATUS <<_ACEOF | |
44252 | ac_cs_version="\\ | |
e0d84535 | 44253 | wxWidgets config.status 2.6.0 |
ac1cb8d3 | 44254 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
44255 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
44256 | ||
ac1cb8d3 | 44257 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
44258 | This config.status script is free software; the Free Software Foundation |
44259 | gives unlimited permission to copy, distribute and modify it." | |
44260 | srcdir=$srcdir | |
44261 | INSTALL="$INSTALL" | |
44262 | _ACEOF | |
44263 | ||
44264 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44265 | # If no file are specified by the user, then we need to provide default | |
44266 | # value. By we need to know if files were specified by the user. | |
44267 | ac_need_defaults=: | |
44268 | while test $# != 0 | |
44269 | do | |
44270 | case $1 in | |
44271 | --*=*) | |
44272 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
44273 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
44274 | ac_shift=: | |
44275 | ;; | |
44276 | -*) | |
44277 | ac_option=$1 | |
44278 | ac_optarg=$2 | |
44279 | ac_shift=shift | |
44280 | ;; | |
44281 | *) # This is not an option, so the user has probably given explicit | |
44282 | # arguments. | |
44283 | ac_option=$1 | |
44284 | ac_need_defaults=false;; | |
44285 | esac | |
44286 | ||
44287 | case $ac_option in | |
44288 | # Handling of the options. | |
44289 | _ACEOF | |
44290 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44291 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
44292 | ac_cs_recheck=: ;; | |
44293 | --version | --vers* | -V ) | |
44294 | echo "$ac_cs_version"; exit 0 ;; | |
44295 | --he | --h) | |
44296 | # Conflict between --help and --header | |
44297 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
44298 | Try \`$0 --help' for more information." >&5 | |
44299 | echo "$as_me: error: ambiguous option: $1 | |
44300 | Try \`$0 --help' for more information." >&2;} | |
44301 | { (exit 1); exit 1; }; };; | |
44302 | --help | --hel | -h ) | |
44303 | echo "$ac_cs_usage"; exit 0 ;; | |
44304 | --debug | --d* | -d ) | |
44305 | debug=: ;; | |
44306 | --file | --fil | --fi | --f ) | |
44307 | $ac_shift | |
44308 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
44309 | ac_need_defaults=false;; | |
44310 | --header | --heade | --head | --hea ) | |
44311 | $ac_shift | |
44312 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
44313 | ac_need_defaults=false;; | |
44314 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
44315 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
44316 | ac_cs_silent=: ;; | |
44317 | ||
44318 | # This is an error. | |
44319 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
44320 | Try \`$0 --help' for more information." >&5 | |
44321 | echo "$as_me: error: unrecognized option: $1 | |
44322 | Try \`$0 --help' for more information." >&2;} | |
44323 | { (exit 1); exit 1; }; } ;; | |
44324 | ||
44325 | *) ac_config_targets="$ac_config_targets $1" ;; | |
44326 | ||
44327 | esac | |
44328 | shift | |
44329 | done | |
44330 | ||
44331 | ac_configure_extra_args= | |
44332 | ||
44333 | if $ac_cs_silent; then | |
44334 | exec 6>/dev/null | |
44335 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
44336 | fi | |
44337 | ||
44338 | _ACEOF | |
44339 | cat >>$CONFIG_STATUS <<_ACEOF | |
44340 | if \$ac_cs_recheck; then | |
44341 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
44342 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
44343 | fi | |
44344 | ||
44345 | _ACEOF | |
44346 | ||
44347 | cat >>$CONFIG_STATUS <<_ACEOF | |
44348 | # | |
44349 | # INIT-COMMANDS section. | |
44350 | # | |
44351 | ||
ceec2216 RL |
44352 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
44353 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
44354 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
44355 | LN_S="${LN_S}" | |
a848cd7e SC |
44356 | |
44357 | ||
44358 | _ACEOF | |
44359 | ||
44360 | ||
44361 | ||
44362 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44363 | for ac_config_target in $ac_config_targets | |
44364 | do | |
44365 | case "$ac_config_target" in | |
44366 | # Handling of arguments. | |
ceec2216 RL |
44367 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
44368 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
44369 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
44370 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
44371 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
44372 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
44373 | "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 |
44374 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
44375 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
44376 | { (exit 1); exit 1; }; };; | |
44377 | esac | |
44378 | done | |
44379 | ||
44380 | # If the user did not use the arguments to specify the items to instantiate, | |
44381 | # then the envvar interface is used. Set only those that are not. | |
44382 | # We use the long form for the default assignment because of an extremely | |
44383 | # bizarre bug on SunOS 4.1.3. | |
44384 | if $ac_need_defaults; then | |
44385 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
44386 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
44387 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
44388 | fi | |
44389 | ||
44390 | # Have a temporary directory for convenience. Make it in the build tree | |
44391 | # simply because there is no reason to put it here, and in addition, | |
44392 | # creating and moving files from /tmp can sometimes cause problems. | |
44393 | # Create a temporary directory, and hook for its removal unless debugging. | |
44394 | $debug || | |
44395 | { | |
44396 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
44397 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
44398 | } | |
44399 | ||
44400 | # Create a (secure) tmp directory for tmp files. | |
44401 | ||
44402 | { | |
44403 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
44404 | test -n "$tmp" && test -d "$tmp" | |
44405 | } || | |
44406 | { | |
44407 | tmp=./confstat$$-$RANDOM | |
44408 | (umask 077 && mkdir $tmp) | |
44409 | } || | |
44410 | { | |
44411 | echo "$me: cannot create a temporary directory in ." >&2 | |
44412 | { (exit 1); exit 1; } | |
44413 | } | |
44414 | ||
44415 | _ACEOF | |
44416 | ||
44417 | cat >>$CONFIG_STATUS <<_ACEOF | |
44418 | ||
44419 | # | |
44420 | # CONFIG_FILES section. | |
44421 | # | |
44422 | ||
44423 | # No need to generate the scripts if there are no CONFIG_FILES. | |
44424 | # This happens for instance when ./config.status config.h | |
44425 | if test -n "\$CONFIG_FILES"; then | |
44426 | # Protect against being on the right side of a sed subst in config.status. | |
44427 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
44428 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
44429 | s,@SHELL@,$SHELL,;t t | |
44430 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
44431 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
44432 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
44433 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
44434 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
44435 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
44436 | s,@exec_prefix@,$exec_prefix,;t t | |
44437 | s,@prefix@,$prefix,;t t | |
44438 | s,@program_transform_name@,$program_transform_name,;t t | |
44439 | s,@bindir@,$bindir,;t t | |
44440 | s,@sbindir@,$sbindir,;t t | |
44441 | s,@libexecdir@,$libexecdir,;t t | |
44442 | s,@datadir@,$datadir,;t t | |
44443 | s,@sysconfdir@,$sysconfdir,;t t | |
44444 | s,@sharedstatedir@,$sharedstatedir,;t t | |
44445 | s,@localstatedir@,$localstatedir,;t t | |
44446 | s,@libdir@,$libdir,;t t | |
44447 | s,@includedir@,$includedir,;t t | |
44448 | s,@oldincludedir@,$oldincludedir,;t t | |
44449 | s,@infodir@,$infodir,;t t | |
44450 | s,@mandir@,$mandir,;t t | |
44451 | s,@build_alias@,$build_alias,;t t | |
44452 | s,@host_alias@,$host_alias,;t t | |
44453 | s,@target_alias@,$target_alias,;t t | |
44454 | s,@DEFS@,$DEFS,;t t | |
44455 | s,@ECHO_C@,$ECHO_C,;t t | |
44456 | s,@ECHO_N@,$ECHO_N,;t t | |
44457 | s,@ECHO_T@,$ECHO_T,;t t | |
44458 | s,@LIBS@,$LIBS,;t t | |
44459 | s,@build@,$build,;t t | |
44460 | s,@build_cpu@,$build_cpu,;t t | |
44461 | s,@build_vendor@,$build_vendor,;t t | |
44462 | s,@build_os@,$build_os,;t t | |
44463 | s,@host@,$host,;t t | |
44464 | s,@host_cpu@,$host_cpu,;t t | |
44465 | s,@host_vendor@,$host_vendor,;t t | |
44466 | s,@host_os@,$host_os,;t t | |
44467 | s,@target@,$target,;t t | |
44468 | s,@target_cpu@,$target_cpu,;t t | |
44469 | s,@target_vendor@,$target_vendor,;t t | |
44470 | s,@target_os@,$target_os,;t t | |
44471 | s,@CC@,$CC,;t t | |
44472 | s,@CFLAGS@,$CFLAGS,;t t | |
44473 | s,@LDFLAGS@,$LDFLAGS,;t t | |
44474 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
44475 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
44476 | s,@EXEEXT@,$EXEEXT,;t t | |
44477 | s,@OBJEXT@,$OBJEXT,;t t | |
44478 | s,@CPP@,$CPP,;t t | |
44479 | s,@EGREP@,$EGREP,;t t | |
44480 | s,@CXX@,$CXX,;t t | |
44481 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
44482 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
44483 | s,@RANLIB@,$RANLIB,;t t | |
44484 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
44485 | s,@AR@,$AR,;t t | |
44486 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
44487 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
44488 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
44489 | s,@STRIP@,$STRIP,;t t | |
44490 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
44491 | s,@LN_S@,$LN_S,;t t | |
44492 | s,@CXXCPP@,$CXXCPP,;t t | |
44493 | s,@subdirs@,$subdirs,;t t | |
44494 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
44495 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
44496 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
44497 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
44498 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
44499 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
44500 | s,@X_LIBS@,$X_LIBS,;t t | |
44501 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
44502 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
44503 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
44504 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
44505 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
44506 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
44507 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
44508 | s,@RESCOMP@,$RESCOMP,;t t | |
44509 | s,@DEREZ@,$DEREZ,;t t | |
44510 | s,@SETFILE@,$SETFILE,;t t | |
44511 | s,@LIBICONV@,$LIBICONV,;t t | |
44512 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
44513 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
44514 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
44515 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
44516 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
44517 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
44518 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
44519 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
44520 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
44521 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
44522 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
44523 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
44524 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
44525 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
44526 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
44527 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
44528 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
44529 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
44530 | s,@VENDOR@,$VENDOR,;t t | |
44531 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
44532 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
44533 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
44534 | s,@WXUNIV@,$WXUNIV,;t t |
44535 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
44536 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
44537 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
44538 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
44539 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
44540 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
44541 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
44542 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
44543 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
44544 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 44545 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
44546 | s,@UNICODE@,$UNICODE,;t t |
44547 | s,@BUILD@,$BUILD,;t t | |
44548 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
44549 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
44550 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
44551 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
44552 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
44553 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
44554 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
44555 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
44556 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
44557 | s,@SET_MAKE@,$SET_MAKE,;t t | |
44558 | s,@MAKE_SET@,$MAKE_SET,;t t | |
44559 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
44560 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
44561 | s,@NM@,$NM,;t t | |
44562 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
44563 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
44564 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
44565 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
44566 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
44567 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
44568 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 44569 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
44570 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
44571 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 44572 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
44573 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
44574 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
44575 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
44576 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
44577 | s,@LIBEXT@,$LIBEXT,;t t | |
44578 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
44579 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
44580 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
44581 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
44582 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
44583 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
44584 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
44585 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
44586 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
44587 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
44588 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
44589 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
44590 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
44591 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
44592 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
44593 | s,@GCC_PCH@,$GCC_PCH,;t t | |
44594 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
44595 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
44596 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
44597 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
44598 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
44599 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
44600 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
44601 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
44602 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
44603 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
44604 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
44605 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
44606 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
44607 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
44608 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
44609 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
44610 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
44611 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 44612 | 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 | 44613 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t |
6671c68b | 44614 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t |
a848cd7e | 44615 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 44616 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
44617 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
44618 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 44619 | 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 | 44620 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t |
6671c68b | 44621 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t |
a848cd7e | 44622 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 44623 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
44624 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
44625 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
44626 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
44627 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
44628 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
44629 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
44630 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
44631 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 44632 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
44633 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
44634 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
44635 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 44636 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 44637 | 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 |
44638 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
44639 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
44640 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
44641 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 44642 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e | 44643 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
83d8eb47 | 44644 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
44645 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
44646 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
44647 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
44648 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
44649 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
44650 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
44651 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
44652 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
44653 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
44654 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
44655 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
44656 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
44657 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
44658 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
44659 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
52ada004 | 44660 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
44661 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
44662 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
44663 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
44664 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
44665 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
44666 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
52ada004 | 44667 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 44668 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 44669 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 44670 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
44671 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
44672 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
44673 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
44674 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
44675 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
44676 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
44677 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
44678 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
44679 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
44680 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
44681 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
44682 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
44683 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
44684 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
44685 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
44686 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
44687 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
44688 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
44689 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
44690 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
44691 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
44692 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
44693 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
44694 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
44695 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
44696 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
44697 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
44698 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
44699 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
44700 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
44701 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
44702 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
44703 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 44704 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 44705 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e | 44706 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
44707 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
44708 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e SC |
44709 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
44710 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
44711 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
44712 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
44713 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
44714 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 44715 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 44716 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 44717 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
44718 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
44719 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
44720 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
44721 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
44722 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
44723 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
44724 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
44725 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 44726 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
44727 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
44728 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
44729 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
44730 | s,@USE_GUI@,$USE_GUI,;t t | |
44731 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
44732 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
44733 | s,@TOOLKIT@,$TOOLKIT,;t t | |
44734 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 44735 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 44736 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
44737 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
44738 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 44739 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
44740 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
44741 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
44742 | s,@WX_VERSION@,$WX_VERSION,;t t | |
44743 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
44744 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
44745 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 44746 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
44747 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
44748 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
44749 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
44750 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 44751 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
44752 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
44753 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 44754 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 44755 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
44756 | s,@DISTDIR@,$DISTDIR,;t t |
44757 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
44758 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
44759 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
44760 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
44761 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
44762 | s,@RESFLAGS@,$RESFLAGS,;t t | |
44763 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
44764 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
44765 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
44766 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
44767 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
44768 | s,@MACSETFILE@,$MACSETFILE,;t t | |
44769 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
44770 | s,@GCC@,$GCC,;t t | |
a848cd7e | 44771 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
44772 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
44773 | s,@LIBOBJS@,$LIBOBJS,;t t | |
44774 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
44775 | CEOF | |
44776 | ||
44777 | _ACEOF | |
44778 | ||
44779 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44780 | # Split the substitutions into bite-sized pieces for seds with | |
44781 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
44782 | ac_max_sed_lines=48 | |
44783 | ac_sed_frag=1 # Number of current file. | |
44784 | ac_beg=1 # First line for current file. | |
44785 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
44786 | ac_more_lines=: | |
44787 | ac_sed_cmds= | |
44788 | while $ac_more_lines; do | |
44789 | if test $ac_beg -gt 1; then | |
44790 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
44791 | else | |
44792 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
44793 | fi | |
44794 | if test ! -s $tmp/subs.frag; then | |
44795 | ac_more_lines=false | |
44796 | else | |
44797 | # The purpose of the label and of the branching condition is to | |
44798 | # speed up the sed processing (if there are no `@' at all, there | |
44799 | # is no need to browse any of the substitutions). | |
44800 | # These are the two extra sed commands mentioned above. | |
44801 | (echo ':t | |
44802 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
44803 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 44804 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 44805 | else |
ac1cb8d3 | 44806 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
44807 | fi |
44808 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
44809 | ac_beg=$ac_end | |
44810 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
44811 | fi | |
44812 | done | |
44813 | if test -z "$ac_sed_cmds"; then | |
44814 | ac_sed_cmds=cat | |
44815 | fi | |
44816 | fi # test -n "$CONFIG_FILES" | |
44817 | ||
44818 | _ACEOF | |
44819 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44820 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
44821 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
44822 | case $ac_file in | |
44823 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
44824 | cat >$tmp/stdin |
44825 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44826 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 44827 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 44828 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
44829 | * ) ac_file_in=$ac_file.in ;; |
44830 | esac | |
44831 | ||
44832 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
44833 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
44834 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44835 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
44836 | X"$ac_file" : 'X\(//\)$' \| \ | |
44837 | X"$ac_file" : 'X\(/\)' \| \ | |
44838 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44839 | echo X"$ac_file" | |
44840 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44841 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44842 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44843 | /^X\(\/\).*/{ s//\1/; q; } | |
44844 | s/.*/./; q'` | |
44845 | { if $as_mkdir_p; then | |
44846 | mkdir -p "$ac_dir" | |
44847 | else | |
44848 | as_dir="$ac_dir" | |
44849 | as_dirs= | |
44850 | while test ! -d "$as_dir"; do | |
44851 | as_dirs="$as_dir $as_dirs" | |
44852 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44853 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44854 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
44855 | X"$as_dir" : 'X\(//\)$' \| \ | |
44856 | X"$as_dir" : 'X\(/\)' \| \ | |
44857 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44858 | echo X"$as_dir" | |
44859 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44860 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44861 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44862 | /^X\(\/\).*/{ s//\1/; q; } | |
44863 | s/.*/./; q'` | |
44864 | done | |
44865 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44866 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44867 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44868 | { (exit 1); exit 1; }; }; } | |
44869 | ||
44870 | ac_builddir=. | |
44871 | ||
44872 | if test "$ac_dir" != .; then | |
44873 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44874 | # A "../" for each directory in $ac_dir_suffix. | |
44875 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44876 | else | |
44877 | ac_dir_suffix= ac_top_builddir= | |
44878 | fi | |
44879 | ||
44880 | case $srcdir in | |
44881 | .) # No --srcdir option. We are building in place. | |
44882 | ac_srcdir=. | |
44883 | if test -z "$ac_top_builddir"; then | |
44884 | ac_top_srcdir=. | |
44885 | else | |
44886 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44887 | fi ;; | |
44888 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44889 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44890 | ac_top_srcdir=$srcdir ;; | |
44891 | *) # Relative path. | |
44892 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44893 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44894 | esac | |
ac1cb8d3 VS |
44895 | |
44896 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44897 | # the directories may not exist. | |
44898 | case `pwd` in | |
44899 | .) ac_abs_builddir="$ac_dir";; | |
44900 | *) | |
44901 | case "$ac_dir" in | |
44902 | .) ac_abs_builddir=`pwd`;; | |
44903 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44904 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44905 | esac;; | |
44906 | esac | |
44907 | case $ac_abs_builddir in | |
44908 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44909 | *) | |
44910 | case ${ac_top_builddir}. in | |
44911 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44912 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44913 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44914 | esac;; | |
44915 | esac | |
44916 | case $ac_abs_builddir in | |
44917 | .) ac_abs_srcdir=$ac_srcdir;; | |
44918 | *) | |
44919 | case $ac_srcdir in | |
44920 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44921 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44922 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44923 | esac;; | |
44924 | esac | |
44925 | case $ac_abs_builddir in | |
44926 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44927 | *) | |
44928 | case $ac_top_srcdir in | |
44929 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44930 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44931 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44932 | esac;; | |
44933 | esac | |
a848cd7e SC |
44934 | |
44935 | ||
44936 | case $INSTALL in | |
44937 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
44938 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
44939 | esac | |
44940 | ||
a848cd7e SC |
44941 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
44942 | # use $as_me), people would be surprised to read: | |
44943 | # /* config.h. Generated by config.status. */ | |
44944 | if test x"$ac_file" = x-; then | |
44945 | configure_input= | |
44946 | else | |
44947 | configure_input="$ac_file. " | |
44948 | fi | |
44949 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 44950 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
44951 | |
44952 | # First look for the input files in the build tree, otherwise in the | |
44953 | # src tree. | |
44954 | ac_file_inputs=`IFS=: | |
44955 | for f in $ac_file_in; do | |
44956 | case $f in | |
44957 | -) echo $tmp/stdin ;; | |
44958 | [\\/$]*) | |
ac1cb8d3 VS |
44959 | # Absolute (can't be DOS-style, as IFS=:) |
44960 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44961 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44962 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44963 | echo "$f";; |
a848cd7e | 44964 | *) # Relative |
ac1cb8d3 VS |
44965 | if test -f "$f"; then |
44966 | # Build tree | |
44967 | echo "$f" | |
44968 | elif test -f "$srcdir/$f"; then | |
44969 | # Source tree | |
44970 | echo "$srcdir/$f" | |
44971 | else | |
44972 | # /dev/null tree | |
44973 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44974 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44975 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44976 | fi;; |
a848cd7e SC |
44977 | esac |
44978 | done` || { (exit 1); exit 1; } | |
9dd0f6c2 DE |
44979 | |
44980 | if test x"$ac_file" != x-; then | |
44981 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
44982 | echo "$as_me: creating $ac_file" >&6;} | |
44983 | rm -f "$ac_file" | |
44984 | fi | |
a848cd7e SC |
44985 | _ACEOF |
44986 | cat >>$CONFIG_STATUS <<_ACEOF | |
44987 | sed "$ac_vpsub | |
44988 | $extrasub | |
44989 | _ACEOF | |
44990 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44991 | :t | |
44992 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
44993 | s,@configure_input@,$configure_input,;t t | |
44994 | s,@srcdir@,$ac_srcdir,;t t | |
44995 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
44996 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
44997 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
44998 | s,@builddir@,$ac_builddir,;t t | |
44999 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
45000 | s,@top_builddir@,$ac_top_builddir,;t t | |
45001 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
45002 | s,@INSTALL@,$ac_INSTALL,;t t | |
45003 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
45004 | rm -f $tmp/stdin | |
45005 | if test x"$ac_file" != x-; then | |
45006 | mv $tmp/out $ac_file | |
45007 | else | |
45008 | cat $tmp/out | |
45009 | rm -f $tmp/out | |
45010 | fi | |
45011 | ||
ceec2216 RL |
45012 | # Run the commands associated with the file. |
45013 | case $ac_file in | |
45014 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
45015 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
45016 | esac | |
a848cd7e SC |
45017 | done |
45018 | _ACEOF | |
45019 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45020 | ||
45021 | # | |
45022 | # CONFIG_HEADER section. | |
45023 | # | |
45024 | ||
45025 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
45026 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
45027 | # | |
45028 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
45029 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
45030 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
45031 | ac_dC=' ' |
45032 | ac_dD=',;t' | |
45033 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 45034 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
45035 | ac_uB='$,\1#\2define\3' |
45036 | ac_uC=' ' | |
45037 | ac_uD=',;t' | |
45038 | ||
45039 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
45040 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
45041 | case $ac_file in | |
45042 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
45043 | cat >$tmp/stdin |
45044 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
45045 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 45046 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 45047 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
45048 | * ) ac_file_in=$ac_file.in ;; |
45049 | esac | |
45050 | ||
45051 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
45052 | echo "$as_me: creating $ac_file" >&6;} | |
45053 | ||
45054 | # First look for the input files in the build tree, otherwise in the | |
45055 | # src tree. | |
45056 | ac_file_inputs=`IFS=: | |
45057 | for f in $ac_file_in; do | |
45058 | case $f in | |
45059 | -) echo $tmp/stdin ;; | |
45060 | [\\/$]*) | |
ac1cb8d3 VS |
45061 | # Absolute (can't be DOS-style, as IFS=:) |
45062 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
45063 | echo "$as_me: error: cannot find input file: $f" >&2;} |
45064 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
45065 | # Do quote $f, to prevent DOS paths from being IFS'd. |
45066 | echo "$f";; | |
a848cd7e | 45067 | *) # Relative |
ac1cb8d3 VS |
45068 | if test -f "$f"; then |
45069 | # Build tree | |
45070 | echo "$f" | |
45071 | elif test -f "$srcdir/$f"; then | |
45072 | # Source tree | |
45073 | echo "$srcdir/$f" | |
45074 | else | |
45075 | # /dev/null tree | |
45076 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
45077 | echo "$as_me: error: cannot find input file: $f" >&2;} |
45078 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 45079 | fi;; |
a848cd7e SC |
45080 | esac |
45081 | done` || { (exit 1); exit 1; } | |
45082 | # Remove the trailing spaces. | |
ac1cb8d3 | 45083 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
45084 | |
45085 | _ACEOF | |
45086 | ||
45087 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
45088 | # `conftest.undefs', that substitutes the proper values into | |
45089 | # config.h.in to produce config.h. The first handles `#define' | |
45090 | # templates, and the second `#undef' templates. | |
45091 | # And first: Protect against being on the right side of a sed subst in | |
45092 | # config.status. Protect against being in an unquoted here document | |
45093 | # in config.status. | |
45094 | rm -f conftest.defines conftest.undefs | |
45095 | # Using a here document instead of a string reduces the quoting nightmare. | |
45096 | # Putting comments in sed scripts is not portable. | |
45097 | # | |
45098 | # `end' is used to avoid that the second main sed command (meant for | |
45099 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
45100 | # See the Autoconf documentation for `clear'. | |
45101 | cat >confdef2sed.sed <<\_ACEOF | |
45102 | s/[\\&,]/\\&/g | |
45103 | s,[\\$`],\\&,g | |
45104 | t clear | |
45105 | : clear | |
ac1cb8d3 | 45106 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 45107 | t end |
ac1cb8d3 | 45108 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
45109 | : end |
45110 | _ACEOF | |
45111 | # If some macros were called several times there might be several times | |
45112 | # the same #defines, which is useless. Nevertheless, we may not want to | |
45113 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
45114 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
45115 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
45116 | rm -f confdef2sed.sed | |
45117 | ||
45118 | # This sed command replaces #undef with comments. This is necessary, for | |
45119 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
45120 | # on some systems where configure will not decide to define it. | |
45121 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 45122 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
45123 | _ACEOF |
45124 | ||
45125 | # Break up conftest.defines because some shells have a limit on the size | |
45126 | # of here documents, and old seds have small limits too (100 cmds). | |
45127 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 45128 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
45129 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
45130 | echo ' :' >>$CONFIG_STATUS | |
45131 | rm -f conftest.tail | |
45132 | while grep . conftest.defines >/dev/null | |
45133 | do | |
45134 | # Write a limited-size here document to $tmp/defines.sed. | |
45135 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
45136 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 45137 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
45138 | # Work around the forget-to-reset-the-flag bug. |
45139 | echo 't clr' >>$CONFIG_STATUS | |
45140 | echo ': clr' >>$CONFIG_STATUS | |
45141 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
45142 | echo 'CEOF | |
45143 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
45144 | rm -f $tmp/in | |
45145 | mv $tmp/out $tmp/in | |
45146 | ' >>$CONFIG_STATUS | |
45147 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
45148 | rm -f conftest.defines | |
45149 | mv conftest.tail conftest.defines | |
45150 | done | |
45151 | rm -f conftest.defines | |
45152 | echo ' fi # grep' >>$CONFIG_STATUS | |
45153 | echo >>$CONFIG_STATUS | |
45154 | ||
45155 | # Break up conftest.undefs because some shells have a limit on the size | |
45156 | # of here documents, and old seds have small limits too (100 cmds). | |
45157 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
45158 | rm -f conftest.tail | |
45159 | while grep . conftest.undefs >/dev/null | |
45160 | do | |
45161 | # Write a limited-size here document to $tmp/undefs.sed. | |
45162 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
45163 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 45164 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
45165 | # Work around the forget-to-reset-the-flag bug. |
45166 | echo 't clr' >>$CONFIG_STATUS | |
45167 | echo ': clr' >>$CONFIG_STATUS | |
45168 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
45169 | echo 'CEOF | |
45170 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
45171 | rm -f $tmp/in | |
45172 | mv $tmp/out $tmp/in | |
45173 | ' >>$CONFIG_STATUS | |
45174 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
45175 | rm -f conftest.undefs | |
45176 | mv conftest.tail conftest.undefs | |
45177 | done | |
45178 | rm -f conftest.undefs | |
45179 | ||
45180 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45181 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
45182 | # use $as_me), people would be surprised to read: | |
45183 | # /* config.h. Generated by config.status. */ | |
45184 | if test x"$ac_file" = x-; then | |
45185 | echo "/* Generated by configure. */" >$tmp/config.h | |
45186 | else | |
45187 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
45188 | fi | |
45189 | cat $tmp/in >>$tmp/config.h | |
45190 | rm -f $tmp/in | |
45191 | if test x"$ac_file" != x-; then | |
45192 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
45193 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
45194 | echo "$as_me: $ac_file is unchanged" >&6;} | |
45195 | else | |
45196 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
45197 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45198 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
45199 | X"$ac_file" : 'X\(//\)$' \| \ | |
45200 | X"$ac_file" : 'X\(/\)' \| \ | |
45201 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45202 | echo X"$ac_file" | |
45203 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45204 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45205 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45206 | /^X\(\/\).*/{ s//\1/; q; } | |
45207 | s/.*/./; q'` | |
45208 | { if $as_mkdir_p; then | |
45209 | mkdir -p "$ac_dir" | |
45210 | else | |
45211 | as_dir="$ac_dir" | |
45212 | as_dirs= | |
45213 | while test ! -d "$as_dir"; do | |
45214 | as_dirs="$as_dir $as_dirs" | |
45215 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45216 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45217 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
45218 | X"$as_dir" : 'X\(//\)$' \| \ | |
45219 | X"$as_dir" : 'X\(/\)' \| \ | |
45220 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45221 | echo X"$as_dir" | |
45222 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45223 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45224 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45225 | /^X\(\/\).*/{ s//\1/; q; } | |
45226 | s/.*/./; q'` | |
45227 | done | |
45228 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45229 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45230 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45231 | { (exit 1); exit 1; }; }; } | |
45232 | ||
45233 | rm -f $ac_file | |
45234 | mv $tmp/config.h $ac_file | |
45235 | fi | |
45236 | else | |
45237 | cat $tmp/config.h | |
45238 | rm -f $tmp/config.h | |
45239 | fi | |
45240 | done | |
45241 | _ACEOF | |
45242 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45243 | ||
45244 | # | |
45245 | # CONFIG_COMMANDS section. | |
45246 | # | |
45247 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
45248 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
45249 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
45250 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
45251 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45252 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
45253 | X"$ac_dest" : 'X\(//\)$' \| \ | |
45254 | X"$ac_dest" : 'X\(/\)' \| \ | |
45255 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45256 | echo X"$ac_dest" | |
45257 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45258 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45259 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45260 | /^X\(\/\).*/{ s//\1/; q; } | |
45261 | s/.*/./; q'` | |
ac1cb8d3 VS |
45262 | { if $as_mkdir_p; then |
45263 | mkdir -p "$ac_dir" | |
45264 | else | |
45265 | as_dir="$ac_dir" | |
45266 | as_dirs= | |
45267 | while test ! -d "$as_dir"; do | |
45268 | as_dirs="$as_dir $as_dirs" | |
45269 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45270 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
45271 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
45272 | X"$as_dir" : 'X\(//\)$' \| \ | |
45273 | X"$as_dir" : 'X\(/\)' \| \ | |
45274 | . : '\(.\)' 2>/dev/null || | |
45275 | echo X"$as_dir" | | |
45276 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45277 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45278 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45279 | /^X\(\/\).*/{ s//\1/; q; } | |
45280 | s/.*/./; q'` | |
45281 | done | |
45282 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45283 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45284 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45285 | { (exit 1); exit 1; }; }; } | |
45286 | ||
a848cd7e SC |
45287 | ac_builddir=. |
45288 | ||
45289 | if test "$ac_dir" != .; then | |
45290 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
45291 | # A "../" for each directory in $ac_dir_suffix. | |
45292 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
45293 | else | |
45294 | ac_dir_suffix= ac_top_builddir= | |
45295 | fi | |
45296 | ||
45297 | case $srcdir in | |
45298 | .) # No --srcdir option. We are building in place. | |
45299 | ac_srcdir=. | |
45300 | if test -z "$ac_top_builddir"; then | |
45301 | ac_top_srcdir=. | |
45302 | else | |
45303 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
45304 | fi ;; | |
45305 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
45306 | ac_srcdir=$srcdir$ac_dir_suffix; | |
45307 | ac_top_srcdir=$srcdir ;; | |
45308 | *) # Relative path. | |
45309 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
45310 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
45311 | esac | |
ac1cb8d3 VS |
45312 | |
45313 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
45314 | # the directories may not exist. | |
45315 | case `pwd` in | |
45316 | .) ac_abs_builddir="$ac_dir";; | |
45317 | *) | |
45318 | case "$ac_dir" in | |
45319 | .) ac_abs_builddir=`pwd`;; | |
45320 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
45321 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
45322 | esac;; | |
45323 | esac | |
45324 | case $ac_abs_builddir in | |
45325 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45326 | *) | |
45327 | case ${ac_top_builddir}. in | |
45328 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
45329 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45330 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
45331 | esac;; | |
45332 | esac | |
45333 | case $ac_abs_builddir in | |
45334 | .) ac_abs_srcdir=$ac_srcdir;; | |
45335 | *) | |
45336 | case $ac_srcdir in | |
45337 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
45338 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
45339 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
45340 | esac;; | |
45341 | esac | |
45342 | case $ac_abs_builddir in | |
45343 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45344 | *) | |
45345 | case $ac_top_srcdir in | |
45346 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
45347 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45348 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
45349 | esac;; | |
45350 | esac | |
a848cd7e SC |
45351 | |
45352 | ||
45353 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
45354 | echo "$as_me: executing $ac_dest commands" >&6;} | |
45355 | case $ac_dest in | |
ceec2216 RL |
45356 | wx-config ) rm -f wx-config |
45357 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
45358 | ;; | |
a848cd7e SC |
45359 | esac |
45360 | done | |
45361 | _ACEOF | |
45362 | ||
45363 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45364 | ||
45365 | { (exit 0); exit 0; } | |
45366 | _ACEOF | |
45367 | chmod +x $CONFIG_STATUS | |
45368 | ac_clean_files=$ac_clean_files_save | |
45369 | ||
45370 | ||
45371 | # configure is writing to config.log, and then calls config.status. | |
45372 | # config.status does its own redirection, appending to config.log. | |
45373 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
45374 | # by configure, so config.status won't be able to write to it; its | |
45375 | # output is simply discarded. So we exec the FD to /dev/null, | |
45376 | # effectively closing config.log, so it can be properly (re)opened and | |
45377 | # appended to by config.status. When coming back to configure, we | |
45378 | # need to make the FD available again. | |
45379 | if test "$no_create" != yes; then | |
45380 | ac_cs_success=: | |
45381 | ac_config_status_args= | |
45382 | test "$silent" = yes && | |
45383 | ac_config_status_args="$ac_config_status_args --quiet" | |
45384 | exec 5>/dev/null | |
45385 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
45386 | exec 5>>config.log | |
45387 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
45388 | # would make configure fail if this is the last instruction. | |
45389 | $ac_cs_success || { (exit 1); exit 1; } | |
45390 | fi | |
45391 | ||
45392 | # | |
45393 | # CONFIG_SUBDIRS section. | |
45394 | # | |
45395 | if test "$no_recursion" != yes; then | |
45396 | ||
45397 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
45398 | ac_sub_configure_args= | |
45399 | ac_prev= | |
45400 | for ac_arg in $ac_configure_args; do | |
45401 | if test -n "$ac_prev"; then | |
45402 | ac_prev= | |
45403 | continue | |
45404 | fi | |
45405 | case $ac_arg in | |
45406 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
45407 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
45408 | ac_prev=cache_file ;; | |
45409 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
45410 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
45411 | | --c=*) | |
45412 | ;; | |
45413 | --config-cache | -C) | |
45414 | ;; | |
45415 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
45416 | ac_prev=srcdir ;; | |
45417 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
45418 | ;; | |
45419 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
45420 | ac_prev=prefix ;; | |
45421 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
45422 | ;; | |
45423 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
45424 | esac | |
45425 | done | |
45426 | ||
45427 | # Always prepend --prefix to ensure using the same prefix | |
45428 | # in subdir configurations. | |
45429 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
45430 | ||
45431 | ac_popdir=`pwd` | |
45432 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
45433 | ||
45434 | # Do not complain, so a configure script can configure whichever | |
45435 | # parts of a large source tree are present. | |
45436 | test -d $srcdir/$ac_dir || continue | |
45437 | ||
45438 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
45439 | echo "$as_me: configuring in $ac_dir" >&6;} | |
45440 | { if $as_mkdir_p; then | |
45441 | mkdir -p "$ac_dir" | |
45442 | else | |
45443 | as_dir="$ac_dir" | |
45444 | as_dirs= | |
45445 | while test ! -d "$as_dir"; do | |
45446 | as_dirs="$as_dir $as_dirs" | |
45447 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45448 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45449 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
45450 | X"$as_dir" : 'X\(//\)$' \| \ | |
45451 | X"$as_dir" : 'X\(/\)' \| \ | |
45452 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45453 | echo X"$as_dir" | |
45454 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45455 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45456 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45457 | /^X\(\/\).*/{ s//\1/; q; } | |
45458 | s/.*/./; q'` | |
45459 | done | |
45460 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45461 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45462 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45463 | { (exit 1); exit 1; }; }; } | |
45464 | ||
45465 | ac_builddir=. | |
45466 | ||
45467 | if test "$ac_dir" != .; then | |
45468 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
45469 | # A "../" for each directory in $ac_dir_suffix. | |
45470 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
45471 | else | |
45472 | ac_dir_suffix= ac_top_builddir= | |
45473 | fi | |
45474 | ||
45475 | case $srcdir in | |
45476 | .) # No --srcdir option. We are building in place. | |
45477 | ac_srcdir=. | |
45478 | if test -z "$ac_top_builddir"; then | |
45479 | ac_top_srcdir=. | |
45480 | else | |
45481 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
45482 | fi ;; | |
45483 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
45484 | ac_srcdir=$srcdir$ac_dir_suffix; | |
45485 | ac_top_srcdir=$srcdir ;; | |
45486 | *) # Relative path. | |
45487 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
45488 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
45489 | esac | |
ac1cb8d3 VS |
45490 | |
45491 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
45492 | # the directories may not exist. | |
45493 | case `pwd` in | |
45494 | .) ac_abs_builddir="$ac_dir";; | |
45495 | *) | |
45496 | case "$ac_dir" in | |
45497 | .) ac_abs_builddir=`pwd`;; | |
45498 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
45499 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
45500 | esac;; | |
45501 | esac | |
45502 | case $ac_abs_builddir in | |
45503 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45504 | *) | |
45505 | case ${ac_top_builddir}. in | |
45506 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
45507 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45508 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
45509 | esac;; | |
45510 | esac | |
45511 | case $ac_abs_builddir in | |
45512 | .) ac_abs_srcdir=$ac_srcdir;; | |
45513 | *) | |
45514 | case $ac_srcdir in | |
45515 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
45516 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
45517 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
45518 | esac;; | |
45519 | esac | |
45520 | case $ac_abs_builddir in | |
45521 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45522 | *) | |
45523 | case $ac_top_srcdir in | |
45524 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
45525 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45526 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
45527 | esac;; | |
45528 | esac | |
a848cd7e SC |
45529 | |
45530 | ||
45531 | cd $ac_dir | |
45532 | ||
45533 | # Check for guested configure; otherwise get Cygnus style configure. | |
45534 | if test -f $ac_srcdir/configure.gnu; then | |
45535 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
45536 | elif test -f $ac_srcdir/configure; then | |
45537 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
45538 | elif test -f $ac_srcdir/configure.in; then | |
45539 | ac_sub_configure=$ac_configure | |
45540 | else | |
45541 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
45542 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
45543 | ac_sub_configure= | |
45544 | fi | |
45545 | ||
45546 | # The recursion is here. | |
45547 | if test -n "$ac_sub_configure"; then | |
45548 | # Make the cache file name correct relative to the subdirectory. | |
45549 | case $cache_file in | |
45550 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
45551 | *) # Relative path. | |
ac1cb8d3 | 45552 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
45553 | esac |
45554 | ||
45555 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
45556 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
45557 | # The eval makes quoting arguments work. | |
45558 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
45559 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
45560 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
45561 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
45562 | { (exit 1); exit 1; }; } | |
45563 | fi | |
45564 | ||
9dd0f6c2 | 45565 | cd "$ac_popdir" |
a848cd7e SC |
45566 | done |
45567 | fi | |
45568 | ||
45569 | ||
45570 | echo | |
77ffb593 | 45571 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 45572 | echo "" |
4d4ff94c | 45573 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 45574 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 45575 | |
77ffb593 JS |
45576 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
45577 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
45578 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 45579 | |
77ffb593 JS |
45580 | echo " What level of wxWidgets compatibility should be enabled?" |
45581 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
45582 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 45583 | |
77ffb593 | 45584 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
45585 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
45586 | echo " png ${wxUSE_LIBPNG-none}" | |
45587 | echo " regex ${wxUSE_REGEX}" | |
45588 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
45589 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
45590 | echo " xpm ${wxUSE_LIBXPM-none}" | |
45591 | fi | |
45592 | echo " zlib ${wxUSE_ZLIB}" | |
45593 | echo " odbc ${wxUSE_ODBC}" | |
45594 | echo " expat ${wxUSE_EXPAT}" | |
45595 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
45596 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 45597 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
45598 | |
45599 | echo "" | |
45600 |