]>
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. | |
dd8df4fc | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.7.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' | |
dd8df4fc VZ |
273 | PACKAGE_VERSION='2.7.0' |
274 | PACKAGE_STRING='wxWidgets 2.7.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" | |
3565d135 | 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 ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S LNDIR 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 REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS HILDON_CFLAGS HILDON_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 EXTRALIBS_HILDON 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 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 dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN 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_SOVERCYGWIN_0_USE_SOVERSION_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_MSW_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_WINCE_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_SOVERCYGWIN_1_USE_SOVERSION_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_WINDOWS_IMPLIB_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 USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC 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 | |
dd8df4fc | 797 | \`configure' configures wxWidgets 2.7.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 | |
dd8df4fc | 863 | short | recursive ) echo "Configuration of wxWidgets 2.7.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 | |
dee1a63f MB |
892 | --enable-compat24 enable wxWidgets 2.4 compatibility |
893 | --disable-compat26 disable wxWidgets 2.6 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) |
91dea314 | 962 | --enable-richtext use wxRichTextCtrl |
a848cd7e SC |
963 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
964 | --enable-prologio not available; see contrib | |
965 | --enable-resources not available; see contrib | |
966 | --enable-clipboard use wxClipboard class | |
967 | --enable-dnd use Drag'n'Drop classes | |
968 | --enable-metafile use win32 metafiles | |
969 | --enable-controls use all usual controls | |
970 | --enable-accel use accelerators | |
971 | --enable-button use wxButton class | |
972 | --enable-bmpbutton use wxBitmapButton class | |
973 | --enable-calendar use wxCalendarCtrl class | |
974 | --enable-caret use wxCaret class | |
975 | --enable-checkbox use wxCheckBox class | |
976 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
977 | --enable-choice use wxChoice class | |
92bbdbcd | 978 | --enable-choicebook use wxChoicebook class |
a848cd7e | 979 | --enable-combobox use wxComboBox class |
da98e9be | 980 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
981 | --enable-display use wxDisplay class |
982 | --enable-gauge use wxGauge class | |
983 | --enable-grid use wxGrid class | |
20e34ecc | 984 | --enable-dataviewctrl, use wxDataViewCtrl class |
a848cd7e SC |
985 | --enable-imaglist use wxImageList class |
986 | --enable-listbook use wxListbook class | |
987 | --enable-listbox use wxListBox class | |
988 | --enable-listctrl use wxListCtrl class | |
989 | --enable-notebook use wxNotebook class | |
990 | --enable-radiobox use wxRadioBox class | |
991 | --enable-radiobtn use wxRadioButton class | |
992 | --enable-sash use wxSashWindow class | |
993 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
994 | --enable-slider use wxSlider class | |
995 | --enable-spinbtn use wxSpinButton class | |
996 | --enable-spinctrl use wxSpinCtrl class | |
997 | --enable-splitter use wxSplitterWindow class | |
998 | --enable-statbmp use wxStaticBitmap class | |
999 | --enable-statbox use wxStaticBox class | |
1000 | --enable-statline use wxStaticLine class | |
1001 | --enable-stattext use wxStaticText class | |
1002 | --enable-statusbar use wxStatusBar class | |
1003 | --enable-tabdialog use wxTabControl class | |
1004 | --enable-textctrl use wxTextCtrl class | |
1005 | --enable-togglebtn use wxToggleButton class | |
1006 | --enable-toolbar use wxToolBar class | |
1007 | --enable-tbarnative use native wxToolBar class | |
1008 | --enable-tbarsmpl use wxToolBarSimple class | |
0093c2fc | 1009 | --enable-treebook use wxTreebook class |
a848cd7e SC |
1010 | --enable-treectrl use wxTreeCtrl class |
1011 | --enable-tipwindow use wxTipWindow class | |
1012 | --enable-popupwin use wxPopUpWindow class | |
1013 | --enable-commondlg use all common dialogs | |
1014 | --enable-choicedlg use wxChoiceDialog | |
1015 | --enable-coldlg use wxColourDialog | |
1016 | --enable-filedlg use wxFileDialog | |
1017 | --enable-finddlg use wxFindReplaceDialog | |
1018 | --enable-fontdlg use wxFontDialog | |
1019 | --enable-dirdlg use wxDirDialog | |
1020 | --enable-msgdlg use wxMessageDialog | |
1021 | --enable-numberdlg use wxNumberEntryDialog | |
1022 | --enable-splash use wxSplashScreen | |
1023 | --enable-textdlg use wxTextDialog | |
1024 | --enable-tipdlg use startup tips | |
1025 | --enable-progressdlg use wxProgressDialog | |
1026 | --enable-wizarddlg use wxWizard | |
1027 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1028 | --enable-miniframe use wxMiniFrame class | |
1029 | --enable-tooltips use wxToolTip class | |
1030 | --enable-splines use spline drawing code | |
fbe2ca43 | 1031 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1032 | --enable-validators use wxValidator and derived classes |
1033 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1034 | --enable-joystick use wxJoystick |
38b4a946 | 1035 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1036 | --enable-dragimage use wxDragImage |
1037 | --enable-accessibility enable accessibility support | |
38b4a946 | 1038 | --enable-dccache cache temporary wxDC objects (Win32 only) |
a848cd7e SC |
1039 | --enable-palette use wxPalette class |
1040 | --enable-image use wxImage class | |
1041 | --enable-gif use gif images (GIF file format) | |
1042 | --enable-pcx use pcx images (PCX file format) | |
1043 | --enable-iff use iff images (IFF file format) | |
1044 | --enable-pnm use pnm images (PNM file format) | |
1045 | --enable-xpm use xpm images (XPM file format) | |
1046 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1047 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1048 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1049 | --disable-largefile omit support for large files | |
1050 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1051 | --disable-gtktest Do not try to compile and run a test GTK program | |
1052 | --disable-sdltest Do not try to compile and run a test SDL program | |
1053 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1054 | --disable-precomp-headers |
1055 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1056 | |
1057 | Optional Packages: | |
1058 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1059 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1c14217d | 1060 | --without-subdirs don't generate makefiles for samples/demos/... |
f34ca037 | 1061 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1062 | --with-motif use Motif/Lesstif |
1063 | --with-mac use Mac OS X | |
1064 | --with-cocoa use Cocoa | |
1065 | --with-wine use Wine | |
1066 | --with-msw use MS-Windows | |
1067 | --with-pm use OS/2 Presentation Manager | |
1068 | --with-mgl use SciTech MGL | |
1069 | --with-microwin use MicroWindows | |
1070 | --with-x11 use X11 | |
1071 | --with-libpng use libpng (PNG image format) | |
1072 | --with-libjpeg use libjpeg (JPEG file format) | |
1073 | --with-libtiff use libtiff (TIFF file format) | |
1074 | --with-libxpm use libxpm (XPM file format) | |
1075 | --with-libmspack use libmspack (CHM help files loading) | |
1076 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1077 | --with-gnomeprint use GNOME print for printing under Unix |
3565d135 | 1078 | --with-hildon use Hildon framework for Nokia 770 |
a848cd7e SC |
1079 | --with-opengl use OpenGL (or Mesa) |
1080 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1081 | --with-regex enable support for wxRegEx class | |
1082 | --with-zlib use zlib for LZW compression | |
1083 | --with-odbc use the IODBC and wxODBC classes | |
1084 | --with-expat enable XML support using expat parser | |
ceec2216 | 1085 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1086 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1087 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1088 | --with-x use the X Window System | |
1089 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1090 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1091 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1092 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1093 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1094 | ||
1095 | Some influential environment variables: | |
dcc1b6ad VS |
1096 | CC C compiler command |
1097 | CFLAGS C compiler flags | |
1098 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1099 | nonstandard directory <lib dir> | |
1100 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1101 | headers in a nonstandard directory <include dir> | |
1102 | CPP C preprocessor | |
1103 | CXX C++ compiler command | |
1104 | CXXFLAGS C++ compiler flags | |
1105 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1106 | |
1107 | Use these variables to override the choices made by `configure' or to help | |
1108 | it to find libraries and programs with nonstandard names/locations. | |
1109 | ||
77ffb593 | 1110 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1111 | _ACEOF |
1112 | fi | |
1113 | ||
1114 | if test "$ac_init_help" = "recursive"; then | |
1115 | # If there are subdirs, report their specific --help. | |
1116 | ac_popdir=`pwd` | |
1117 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1118 | test -d $ac_dir || continue | |
1119 | ac_builddir=. | |
1120 | ||
1121 | if test "$ac_dir" != .; then | |
1122 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1123 | # A "../" for each directory in $ac_dir_suffix. | |
1124 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1125 | else | |
1126 | ac_dir_suffix= ac_top_builddir= | |
1127 | fi | |
1128 | ||
1129 | case $srcdir in | |
1130 | .) # No --srcdir option. We are building in place. | |
1131 | ac_srcdir=. | |
1132 | if test -z "$ac_top_builddir"; then | |
1133 | ac_top_srcdir=. | |
1134 | else | |
1135 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1136 | fi ;; | |
1137 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1138 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1139 | ac_top_srcdir=$srcdir ;; | |
1140 | *) # Relative path. | |
1141 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1142 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1143 | esac | |
ac1cb8d3 VS |
1144 | |
1145 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1146 | # the directories may not exist. | |
1147 | case `pwd` in | |
1148 | .) ac_abs_builddir="$ac_dir";; | |
1149 | *) | |
1150 | case "$ac_dir" in | |
1151 | .) ac_abs_builddir=`pwd`;; | |
1152 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1153 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1154 | esac;; | |
1155 | esac | |
1156 | case $ac_abs_builddir in | |
1157 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1158 | *) | |
1159 | case ${ac_top_builddir}. in | |
1160 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1161 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1162 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1163 | esac;; | |
1164 | esac | |
1165 | case $ac_abs_builddir in | |
1166 | .) ac_abs_srcdir=$ac_srcdir;; | |
1167 | *) | |
1168 | case $ac_srcdir in | |
1169 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1170 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1171 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1172 | esac;; | |
1173 | esac | |
1174 | case $ac_abs_builddir in | |
1175 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1176 | *) | |
1177 | case $ac_top_srcdir in | |
1178 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1179 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1180 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1181 | esac;; | |
1182 | esac | |
a848cd7e SC |
1183 | |
1184 | cd $ac_dir | |
1185 | # Check for guested configure; otherwise get Cygnus style configure. | |
1186 | if test -f $ac_srcdir/configure.gnu; then | |
1187 | echo | |
1188 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1189 | elif test -f $ac_srcdir/configure; then | |
1190 | echo | |
1191 | $SHELL $ac_srcdir/configure --help=recursive | |
1192 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1193 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1194 | echo |
1195 | $ac_configure --help | |
1196 | else | |
1197 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1198 | fi | |
3565d135 | 1199 | cd $ac_popdir |
a848cd7e SC |
1200 | done |
1201 | fi | |
1202 | ||
1203 | test -n "$ac_init_help" && exit 0 | |
1204 | if $ac_init_version; then | |
1205 | cat <<\_ACEOF | |
dd8df4fc | 1206 | wxWidgets configure 2.7.0 |
ac1cb8d3 | 1207 | generated by GNU Autoconf 2.59 |
a848cd7e | 1208 | |
ac1cb8d3 | 1209 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1210 | This configure script is free software; the Free Software Foundation |
1211 | gives unlimited permission to copy, distribute and modify it. | |
1212 | _ACEOF | |
1213 | exit 0 | |
1214 | fi | |
1215 | exec 5>config.log | |
1216 | cat >&5 <<_ACEOF | |
1217 | This file contains any messages produced by compilers while | |
1218 | running configure, to aid debugging if configure makes a mistake. | |
1219 | ||
dd8df4fc | 1220 | It was created by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 1221 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1222 | |
1223 | $ $0 $@ | |
1224 | ||
1225 | _ACEOF | |
1226 | { | |
1227 | cat <<_ASUNAME | |
1228 | ## --------- ## | |
1229 | ## Platform. ## | |
1230 | ## --------- ## | |
1231 | ||
1232 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1233 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1234 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1235 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1236 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1237 | ||
1238 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1239 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1240 | ||
1241 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1242 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1243 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1244 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1245 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1246 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1247 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1248 | ||
1249 | _ASUNAME | |
1250 | ||
1251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1252 | for as_dir in $PATH | |
1253 | do | |
1254 | IFS=$as_save_IFS | |
1255 | test -z "$as_dir" && as_dir=. | |
1256 | echo "PATH: $as_dir" | |
1257 | done | |
1258 | ||
1259 | } >&5 | |
1260 | ||
1261 | cat >&5 <<_ACEOF | |
1262 | ||
1263 | ||
1264 | ## ----------- ## | |
1265 | ## Core tests. ## | |
1266 | ## ----------- ## | |
1267 | ||
1268 | _ACEOF | |
1269 | ||
1270 | ||
1271 | # Keep a trace of the command line. | |
1272 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1273 | # Strip out --silent because we don't want to record it for future runs. | |
1274 | # Also quote any args containing shell meta-characters. | |
1275 | # Make two passes to allow for proper duplicate-argument suppression. | |
1276 | ac_configure_args= | |
1277 | ac_configure_args0= | |
1278 | ac_configure_args1= | |
1279 | ac_sep= | |
1280 | ac_must_keep_next=false | |
1281 | for ac_pass in 1 2 | |
1282 | do | |
1283 | for ac_arg | |
1284 | do | |
1285 | case $ac_arg in | |
1286 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1287 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1288 | | -silent | --silent | --silen | --sile | --sil) | |
1289 | continue ;; | |
1290 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1291 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1292 | esac | |
1293 | case $ac_pass in | |
1294 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1295 | 2) | |
1296 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1297 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1298 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1299 | else |
ac1cb8d3 VS |
1300 | case $ac_arg in |
1301 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1302 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1303 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1304 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1305 | case "$ac_configure_args0 " in | |
1306 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1307 | esac | |
1308 | ;; | |
1309 | -* ) ac_must_keep_next=true ;; | |
1310 | esac | |
a848cd7e SC |
1311 | fi |
1312 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1313 | # Get rid of the leading space. | |
1314 | ac_sep=" " | |
1315 | ;; | |
1316 | esac | |
1317 | done | |
1318 | done | |
1319 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1320 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1321 | ||
1322 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1323 | # config.log. We remove comments because anyway the quotes in there | |
1324 | # would cause problems or look ugly. | |
1325 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1326 | # such as our DU 5.0 friend, will then `close' the trap. | |
1327 | trap 'exit_status=$? | |
1328 | # Save into config.log some information that might help in debugging. | |
1329 | { | |
1330 | echo | |
1331 | ||
1332 | cat <<\_ASBOX | |
1333 | ## ---------------- ## | |
1334 | ## Cache variables. ## | |
1335 | ## ---------------- ## | |
1336 | _ASBOX | |
1337 | echo | |
1338 | # The following way of writing the cache mishandles newlines in values, | |
1339 | { | |
1340 | (set) 2>&1 | | |
1341 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1342 | *ac_space=\ *) | |
1343 | sed -n \ | |
ac1cb8d3 VS |
1344 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1345 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1346 | ;; |
1347 | *) | |
1348 | sed -n \ | |
ac1cb8d3 | 1349 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1350 | ;; |
1351 | esac; | |
1352 | } | |
1353 | echo | |
1354 | ||
1355 | cat <<\_ASBOX | |
1356 | ## ----------------- ## | |
1357 | ## Output variables. ## | |
1358 | ## ----------------- ## | |
1359 | _ASBOX | |
1360 | echo | |
1361 | for ac_var in $ac_subst_vars | |
1362 | do | |
1363 | eval ac_val=$`echo $ac_var` | |
1364 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1365 | done | sort | |
1366 | echo | |
1367 | ||
1368 | if test -n "$ac_subst_files"; then | |
1369 | cat <<\_ASBOX | |
1370 | ## ------------- ## | |
1371 | ## Output files. ## | |
1372 | ## ------------- ## | |
1373 | _ASBOX | |
1374 | echo | |
1375 | for ac_var in $ac_subst_files | |
1376 | do | |
1377 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1378 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1379 | done | sort |
1380 | echo | |
1381 | fi | |
1382 | ||
1383 | if test -s confdefs.h; then | |
1384 | cat <<\_ASBOX | |
1385 | ## ----------- ## | |
1386 | ## confdefs.h. ## | |
1387 | ## ----------- ## | |
1388 | _ASBOX | |
1389 | echo | |
1390 | sed "/^$/d" confdefs.h | sort | |
1391 | echo | |
1392 | fi | |
1393 | test "$ac_signal" != 0 && | |
1394 | echo "$as_me: caught signal $ac_signal" | |
1395 | echo "$as_me: exit $exit_status" | |
1396 | } >&5 | |
ac1cb8d3 | 1397 | rm -f core *.core && |
a848cd7e SC |
1398 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1399 | exit $exit_status | |
1400 | ' 0 | |
1401 | for ac_signal in 1 2 13 15; do | |
1402 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1403 | done | |
1404 | ac_signal=0 | |
1405 | ||
1406 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1407 | rm -rf conftest* confdefs.h | |
1408 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1409 | echo >confdefs.h | |
1410 | ||
1411 | # Predefined preprocessor variables. | |
1412 | ||
1413 | cat >>confdefs.h <<_ACEOF | |
1414 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1415 | _ACEOF | |
1416 | ||
1417 | ||
1418 | cat >>confdefs.h <<_ACEOF | |
1419 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1420 | _ACEOF | |
1421 | ||
1422 | ||
1423 | cat >>confdefs.h <<_ACEOF | |
1424 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1425 | _ACEOF | |
1426 | ||
1427 | ||
1428 | cat >>confdefs.h <<_ACEOF | |
1429 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1430 | _ACEOF | |
1431 | ||
1432 | ||
1433 | cat >>confdefs.h <<_ACEOF | |
1434 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1435 | _ACEOF | |
1436 | ||
1437 | ||
1438 | # Let the site file select an alternate cache file if it wants to. | |
1439 | # Prefer explicitly selected file to automatically selected ones. | |
1440 | if test -z "$CONFIG_SITE"; then | |
1441 | if test "x$prefix" != xNONE; then | |
1442 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1443 | else | |
1444 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1445 | fi | |
1446 | fi | |
1447 | for ac_site_file in $CONFIG_SITE; do | |
1448 | if test -r "$ac_site_file"; then | |
1449 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1450 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1451 | sed 's/^/| /' "$ac_site_file" >&5 | |
1452 | . "$ac_site_file" | |
1453 | fi | |
1454 | done | |
1455 | ||
1456 | if test -r "$cache_file"; then | |
1457 | # Some versions of bash will fail to source /dev/null (special | |
1458 | # files actually), so we avoid doing that. | |
1459 | if test -f "$cache_file"; then | |
1460 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1461 | echo "$as_me: loading cache $cache_file" >&6;} | |
1462 | case $cache_file in | |
1463 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1464 | *) . ./$cache_file;; | |
1465 | esac | |
1466 | fi | |
1467 | else | |
1468 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1469 | echo "$as_me: creating cache $cache_file" >&6;} | |
1470 | >$cache_file | |
1471 | fi | |
1472 | ||
1473 | # Check that the precious variables saved in the cache have kept the same | |
1474 | # value. | |
1475 | ac_cache_corrupted=false | |
1476 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1477 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1478 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1479 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1480 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1481 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1482 | case $ac_old_set,$ac_new_set in | |
1483 | set,) | |
1484 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1485 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1486 | ac_cache_corrupted=: ;; | |
1487 | ,set) | |
1488 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1489 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1490 | ac_cache_corrupted=: ;; | |
1491 | ,);; | |
1492 | *) | |
1493 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1494 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1495 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1496 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1497 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1498 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1499 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1500 | ac_cache_corrupted=: |
a848cd7e SC |
1501 | fi;; |
1502 | esac | |
1503 | # Pass precious variables to config.status. | |
1504 | if test "$ac_new_set" = set; then | |
1505 | case $ac_new_val in | |
1506 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1507 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1508 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1509 | esac | |
1510 | case " $ac_configure_args " in | |
1511 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1512 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1513 | esac | |
1514 | fi | |
1515 | done | |
1516 | if $ac_cache_corrupted; then | |
1517 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1518 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1519 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1520 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1521 | { (exit 1); exit 1; }; } | |
1522 | fi | |
1523 | ||
1524 | ac_ext=c | |
1525 | ac_cpp='$CPP $CPPFLAGS' | |
1526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
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 | ||
1554 | ||
1555 | ||
1556 | ||
1557 | ||
1558 | ||
1559 | ac_aux_dir= | |
1560 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1561 | if test -f $ac_dir/install-sh; then | |
1562 | ac_aux_dir=$ac_dir | |
1563 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1564 | break | |
1565 | elif test -f $ac_dir/install.sh; then | |
1566 | ac_aux_dir=$ac_dir | |
1567 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1568 | break | |
1569 | elif test -f $ac_dir/shtool; then | |
1570 | ac_aux_dir=$ac_dir | |
1571 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1572 | break | |
1573 | fi | |
1574 | done | |
1575 | if test -z "$ac_aux_dir"; then | |
1576 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1577 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1578 | { (exit 1); exit 1; }; } | |
1579 | fi | |
1580 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1581 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1582 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1583 | ||
1584 | # Make sure we can run config.sub. | |
1585 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1586 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1587 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1588 | { (exit 1); exit 1; }; } | |
1589 | ||
1590 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1591 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1592 | if test "${ac_cv_build+set}" = set; then | |
1593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1594 | else | |
1595 | ac_cv_build_alias=$build_alias | |
1596 | test -z "$ac_cv_build_alias" && | |
1597 | ac_cv_build_alias=`$ac_config_guess` | |
1598 | test -z "$ac_cv_build_alias" && | |
1599 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1600 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1601 | { (exit 1); exit 1; }; } | |
1602 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1603 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1604 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1605 | { (exit 1); exit 1; }; } | |
1606 | ||
1607 | fi | |
1608 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1609 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1610 | build=$ac_cv_build | |
1611 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1612 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1613 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1614 | ||
1615 | ||
1616 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1617 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1618 | if test "${ac_cv_host+set}" = set; then | |
1619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1620 | else | |
1621 | ac_cv_host_alias=$host_alias | |
1622 | test -z "$ac_cv_host_alias" && | |
1623 | ac_cv_host_alias=$ac_cv_build_alias | |
1624 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1625 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1626 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1627 | { (exit 1); exit 1; }; } | |
1628 | ||
1629 | fi | |
1630 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1631 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1632 | host=$ac_cv_host | |
1633 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1634 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1635 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1636 | ||
1637 | ||
1638 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1639 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1640 | if test "${ac_cv_target+set}" = set; then | |
1641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1642 | else | |
1643 | ac_cv_target_alias=$target_alias | |
1644 | test "x$ac_cv_target_alias" = "x" && | |
1645 | ac_cv_target_alias=$ac_cv_host_alias | |
1646 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1647 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1648 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1649 | { (exit 1); exit 1; }; } | |
1650 | ||
1651 | fi | |
1652 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1653 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1654 | target=$ac_cv_target | |
1655 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1656 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1657 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1658 | ||
1659 | ||
1660 | # The aliases save the names the user supplied, while $host etc. | |
1661 | # will get canonicalized. | |
1662 | test -n "$target_alias" && | |
1663 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1664 | NONENONEs,x,x, && | |
1665 | program_prefix=${target_alias}- | |
1666 | ||
1667 | ||
1668 | ||
ceec2216 | 1669 | wx_major_version_number=2 |
dd8df4fc VZ |
1670 | wx_minor_version_number=7 |
1671 | wx_release_number=0 | |
1672 | wx_subrelease_number=0 | |
a848cd7e | 1673 | |
ceec2216 RL |
1674 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1675 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1676 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1677 | |
ceec2216 | 1678 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1679 | |
a848cd7e SC |
1680 | |
1681 | ||
1682 | ||
1683 | USE_UNIX=1 | |
1684 | USE_OS2=0 | |
1685 | USE_WIN32=0 | |
1686 | USE_DOS=0 | |
1687 | USE_BEOS=0 | |
1688 | USE_MAC=0 | |
1689 | ||
1690 | USE_AIX= | |
1691 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1692 | USE_GNU= USE_HPUX= | |
1693 | USE_LINUX= | |
1694 | USE_NETBSD= | |
1695 | USE_OPENBSD= | |
1696 | USE_OSF= USE_SGI= | |
1697 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1698 | USE_ULTRIX= | |
1699 | USE_UNIXWARE= | |
1700 | ||
1701 | USE_ALPHA= | |
1702 | ||
1703 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1704 | ||
1705 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1706 | ||
1707 | DEFAULT_wxUSE_COCOA=0 | |
1708 | DEFAULT_wxUSE_GTK=0 | |
1709 | DEFAULT_wxUSE_MAC=0 | |
1710 | DEFAULT_wxUSE_MGL=0 | |
1711 | DEFAULT_wxUSE_MICROWIN=0 | |
1712 | DEFAULT_wxUSE_MOTIF=0 | |
1713 | DEFAULT_wxUSE_MSW=0 | |
1714 | DEFAULT_wxUSE_PM=0 | |
1715 | DEFAULT_wxUSE_X11=0 | |
1716 | ||
1717 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1719 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1720 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1721 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1722 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1723 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1724 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1725 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1726 | ||
1727 | PROGRAM_EXT= | |
1728 | SO_SUFFIX=so | |
1729 | SAMPLES_RPATH_FLAG= | |
1730 | SAMPLES_RPATH_POSTLINK= | |
1731 | ||
a03b8b04 RD |
1732 | DEFAULT_STD_FLAG=yes |
1733 | ||
a848cd7e SC |
1734 | case "${host}" in |
1735 | *-hp-hpux* ) | |
1736 | USE_HPUX=1 | |
1737 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1738 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1739 | SO_SUFFIX=sl | |
1740 | cat >>confdefs.h <<\_ACEOF | |
1741 | #define __HPUX__ 1 | |
1742 | _ACEOF | |
1743 | ||
2eef8513 | 1744 | |
c92ad099 | 1745 | CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS" |
a848cd7e SC |
1746 | ;; |
1747 | *-*-linux* ) | |
1748 | USE_LINUX=1 | |
1749 | cat >>confdefs.h <<\_ACEOF | |
1750 | #define __LINUX__ 1 | |
1751 | _ACEOF | |
1752 | ||
1753 | TMP=`uname -m` | |
1754 | if test "x$TMP" = "xalpha"; then | |
1755 | USE_ALPHA=1 | |
1756 | cat >>confdefs.h <<\_ACEOF | |
1757 | #define __ALPHA__ 1 | |
1758 | _ACEOF | |
1759 | ||
1760 | fi | |
1761 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1762 | ;; | |
1763 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1764 | USE_GNU=1 | |
1765 | TMP=`uname -m` | |
1766 | if test "x$TMP" = "xalpha"; then | |
1767 | USE_ALPHA=1 | |
1768 | cat >>confdefs.h <<\_ACEOF | |
1769 | #define __ALPHA__ 1 | |
1770 | _ACEOF | |
1771 | ||
1772 | fi | |
1773 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1774 | ;; | |
1775 | *-*-irix5* | *-*-irix6* ) | |
1776 | USE_SGI=1 | |
1777 | USE_SVR4=1 | |
1778 | cat >>confdefs.h <<\_ACEOF | |
1779 | #define __SGI__ 1 | |
1780 | _ACEOF | |
1781 | ||
1782 | cat >>confdefs.h <<\_ACEOF | |
1783 | #define __SVR4__ 1 | |
1784 | _ACEOF | |
1785 | ||
1786 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1787 | ;; | |
1788 | *-*-solaris2* ) | |
1789 | USE_SUN=1 | |
1790 | USE_SOLARIS=1 | |
1791 | USE_SVR4=1 | |
1792 | cat >>confdefs.h <<\_ACEOF | |
1793 | #define __SUN__ 1 | |
1794 | _ACEOF | |
1795 | ||
1796 | cat >>confdefs.h <<\_ACEOF | |
1797 | #define __SOLARIS__ 1 | |
1798 | _ACEOF | |
1799 | ||
1800 | cat >>confdefs.h <<\_ACEOF | |
1801 | #define __SVR4__ 1 | |
1802 | _ACEOF | |
1803 | ||
1804 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1805 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1806 | ;; | |
1807 | *-*-sunos4* ) | |
1808 | USE_SUN=1 | |
1809 | USE_SUNOS=1 | |
1810 | USE_BSD=1 | |
1811 | cat >>confdefs.h <<\_ACEOF | |
1812 | #define __SUN__ 1 | |
1813 | _ACEOF | |
1814 | ||
1815 | cat >>confdefs.h <<\_ACEOF | |
1816 | #define __SUNOS__ 1 | |
1817 | _ACEOF | |
1818 | ||
1819 | cat >>confdefs.h <<\_ACEOF | |
1820 | #define __BSD__ 1 | |
1821 | _ACEOF | |
1822 | ||
1823 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1824 | ;; | |
1825 | *-*-freebsd*) | |
1826 | USE_BSD=1 | |
1827 | USE_FREEBSD=1 | |
1828 | cat >>confdefs.h <<\_ACEOF | |
1829 | #define __FREEBSD__ 1 | |
1830 | _ACEOF | |
1831 | ||
1832 | cat >>confdefs.h <<\_ACEOF | |
1833 | #define __BSD__ 1 | |
1834 | _ACEOF | |
1835 | ||
1836 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1837 | ;; | |
1838 | *-*-openbsd*) | |
1839 | USE_BSD=1 | |
1840 | USE_OPENBSD=1 | |
1841 | cat >>confdefs.h <<\_ACEOF | |
1842 | #define __OPENBSD__ 1 | |
1843 | _ACEOF | |
1844 | ||
1845 | cat >>confdefs.h <<\_ACEOF | |
1846 | #define __BSD__ 1 | |
1847 | _ACEOF | |
1848 | ||
1849 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1850 | ;; | |
1851 | *-*-netbsd*) | |
1852 | USE_BSD=1 | |
1853 | USE_NETBSD=1 | |
1854 | cat >>confdefs.h <<\_ACEOF | |
1855 | #define __NETBSD__ 1 | |
1856 | _ACEOF | |
1857 | ||
1858 | cat >>confdefs.h <<\_ACEOF | |
1859 | #define __BSD__ 1 | |
1860 | _ACEOF | |
1861 | ||
1862 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1863 | ;; | |
1864 | *-*-osf* ) | |
1865 | USE_ALPHA=1 | |
1866 | USE_OSF=1 | |
1867 | cat >>confdefs.h <<\_ACEOF | |
1868 | #define __ALPHA__ 1 | |
1869 | _ACEOF | |
1870 | ||
1871 | cat >>confdefs.h <<\_ACEOF | |
1872 | #define __OSF__ 1 | |
1873 | _ACEOF | |
1874 | ||
1875 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1876 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1877 | ;; | |
1878 | *-*-dgux5* ) | |
1879 | USE_ALPHA=1 | |
1880 | USE_SVR4=1 | |
1881 | cat >>confdefs.h <<\_ACEOF | |
1882 | #define __ALPHA__ 1 | |
1883 | _ACEOF | |
1884 | ||
1885 | cat >>confdefs.h <<\_ACEOF | |
1886 | #define __SVR4__ 1 | |
1887 | _ACEOF | |
1888 | ||
1889 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1890 | ;; | |
1891 | *-*-sysv5* ) | |
1892 | USE_SYSV=1 | |
1893 | USE_SVR4=1 | |
1894 | cat >>confdefs.h <<\_ACEOF | |
1895 | #define __SYSV__ 1 | |
1896 | _ACEOF | |
1897 | ||
1898 | cat >>confdefs.h <<\_ACEOF | |
1899 | #define __SVR4__ 1 | |
1900 | _ACEOF | |
1901 | ||
1902 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1903 | ;; | |
1904 | *-*-aix* ) | |
1905 | USE_AIX=1 | |
1906 | USE_SYSV=1 | |
1907 | USE_SVR4=1 | |
1908 | SO_SUFFIX=a | |
1909 | cat >>confdefs.h <<\_ACEOF | |
1910 | #define __AIX__ 1 | |
1911 | _ACEOF | |
1912 | ||
1913 | cat >>confdefs.h <<\_ACEOF | |
1914 | #define __SYSV__ 1 | |
1915 | _ACEOF | |
1916 | ||
1917 | cat >>confdefs.h <<\_ACEOF | |
1918 | #define __SVR4__ 1 | |
1919 | _ACEOF | |
1920 | ||
1921 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1922 | ;; | |
1923 | ||
1924 | *-*-*UnixWare*) | |
1925 | USE_SYSV=1 | |
1926 | USE_SVR4=1 | |
1927 | USE_UNIXWARE=1 | |
1928 | cat >>confdefs.h <<\_ACEOF | |
1929 | #define __UNIXWARE__ 1 | |
1930 | _ACEOF | |
1931 | ||
1932 | ;; | |
1933 | ||
1934 | *-*-cygwin* | *-*-mingw32* ) | |
1935 | SO_SUFFIX=dll | |
1936 | PROGRAM_EXT=".exe" | |
a848cd7e | 1937 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 1938 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1939 | ;; |
1940 | ||
1941 | *-pc-msdosdjgpp ) | |
1942 | USE_UNIX=0 | |
1943 | USE_DOS=1 | |
1944 | cat >>confdefs.h <<\_ACEOF | |
1945 | #define __DOS__ 1 | |
1946 | _ACEOF | |
1947 | ||
1948 | PROGRAM_EXT=".exe" | |
1949 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1950 | ;; |
1951 | ||
1952 | *-pc-os2_emx | *-pc-os2-emx ) | |
1953 | cat >>confdefs.h <<\_ACEOF | |
1954 | #define __EMX__ 1 | |
1955 | _ACEOF | |
1956 | ||
1957 | USE_OS2=1 | |
1958 | cat >>confdefs.h <<\_ACEOF | |
1959 | #define __OS2__ 1 | |
1960 | _ACEOF | |
1961 | ||
1962 | PROGRAM_EXT=".exe" | |
1963 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1964 | CXX=gcc | |
1965 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1966 | ac_executable_extensions=".exe" | |
1967 | export ac_executable_extensions | |
1968 | ac_save_IFS="$IFS" | |
1969 | IFS='\\' | |
1970 | ac_TEMP_PATH= | |
1971 | for ac_dir in $PATH; do | |
1972 | IFS=$ac_save_IFS | |
1973 | if test -z "$ac_TEMP_PATH"; then | |
1974 | ac_TEMP_PATH="$ac_dir" | |
1975 | else | |
1976 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1977 | fi | |
1978 | done | |
1979 | export PATH="$ac_TEMP_PATH" | |
1980 | unset ac_TEMP_PATH | |
a03b8b04 | 1981 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1982 | ;; |
1983 | ||
cfda0ea8 | 1984 | *-*-darwin* ) |
a848cd7e SC |
1985 | USE_BSD=1 |
1986 | USE_DARWIN=1 | |
1987 | SO_SUFFIX=dylib | |
1988 | cat >>confdefs.h <<\_ACEOF | |
1989 | #define __BSD__ 1 | |
1990 | _ACEOF | |
1991 | ||
1992 | cat >>confdefs.h <<\_ACEOF | |
1993 | #define __DARWIN__ 1 | |
a848cd7e SC |
1994 | _ACEOF |
1995 | ||
1996 | cat >>confdefs.h <<\_ACEOF | |
1997 | #define TARGET_CARBON 1 | |
1998 | _ACEOF | |
1999 | ||
2000 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2001 | DEFAULT_STD_FLAG=no |
a848cd7e | 2002 | ;; |
1e9e8aba DE |
2003 | powerpc-apple-macos* ) |
2004 | USE_UNIX=0 | |
2005 | ac_cv_c_bigendian=yes | |
2006 | SO_SUFFIX=shlib | |
2007 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2008 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2009 | ;; |
a848cd7e SC |
2010 | |
2011 | *-*-beos* ) | |
2012 | USE_BEOS=1 | |
2013 | cat >>confdefs.h <<\_ACEOF | |
2014 | #define __BEOS__ 1 | |
2015 | _ACEOF | |
2016 | ||
2017 | ;; | |
2018 | ||
2019 | *) | |
2020 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2021 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2022 | { (exit 1); exit 1; }; } | |
2023 | esac | |
2024 | ||
2025 | ||
2026 | ||
2027 | ||
2028 | wx_arg_cache_file="configarg.cache" | |
2029 | echo "loading argument cache $wx_arg_cache_file" | |
2030 | rm -f ${wx_arg_cache_file}.tmp | |
2031 | touch ${wx_arg_cache_file}.tmp | |
2032 | touch ${wx_arg_cache_file} | |
2033 | ||
2034 | ||
2035 | DEBUG_CONFIGURE=0 | |
2036 | if test $DEBUG_CONFIGURE = 1; then | |
2037 | DEFAULT_wxUSE_UNIVERSAL=no | |
2038 | DEFAULT_wxUSE_STL=no | |
2039 | ||
2040 | DEFAULT_wxUSE_NANOX=no | |
2041 | ||
2042 | DEFAULT_wxUSE_THREADS=yes | |
2043 | ||
2044 | DEFAULT_wxUSE_SHARED=yes | |
2045 | DEFAULT_wxUSE_OPTIMISE=no | |
2046 | DEFAULT_wxUSE_PROFILE=no | |
2047 | DEFAULT_wxUSE_NO_DEPS=no | |
2048 | DEFAULT_wxUSE_NO_RTTI=no | |
2049 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2050 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2051 | DEFAULT_wxUSE_PERMISSIVE=no |
2052 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2053 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2054 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2055 | DEFAULT_wxUSE_MEM_TRACING=no | |
2056 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2057 | DEFAULT_wxUSE_DMALLOC=no | |
2058 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2059 | ||
2060 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2061 | DEFAULT_wxUSE_LOG=yes | |
2062 | DEFAULT_wxUSE_LOGWINDOW=no | |
2063 | DEFAULT_wxUSE_LOGGUI=no | |
2064 | DEFAULT_wxUSE_LOGDIALOG=no | |
2065 | ||
2066 | DEFAULT_wxUSE_GUI=yes | |
2067 | DEFAULT_wxUSE_CONTROLS=no | |
2068 | ||
2069 | DEFAULT_wxUSE_REGEX=no | |
2070 | DEFAULT_wxUSE_XML=no | |
2071 | DEFAULT_wxUSE_EXPAT=no | |
2072 | DEFAULT_wxUSE_ZLIB=no | |
2073 | DEFAULT_wxUSE_LIBPNG=no | |
2074 | DEFAULT_wxUSE_LIBJPEG=no | |
2075 | DEFAULT_wxUSE_LIBTIFF=no | |
2076 | DEFAULT_wxUSE_LIBXPM=no | |
2077 | DEFAULT_wxUSE_LIBMSPACK=no | |
2078 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2079 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
3565d135 | 2080 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e SC |
2081 | DEFAULT_wxUSE_ODBC=no |
2082 | DEFAULT_wxUSE_OPENGL=no | |
2083 | ||
2084 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2085 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2086 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2087 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2088 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2089 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2090 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2091 | DEFAULT_wxUSE_DATETIME=no | |
2092 | DEFAULT_wxUSE_TIMER=no | |
2093 | DEFAULT_wxUSE_STOPWATCH=no | |
2094 | DEFAULT_wxUSE_FILE=no | |
2095 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2096 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2097 | DEFAULT_wxUSE_TEXTBUFFER=no |
2098 | DEFAULT_wxUSE_TEXTFILE=no | |
2099 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2100 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2101 | DEFAULT_wxUSE_INTL=no |
2102 | DEFAULT_wxUSE_CONFIG=no | |
2103 | DEFAULT_wxUSE_FONTMAP=no | |
2104 | DEFAULT_wxUSE_STREAMS=no | |
2105 | DEFAULT_wxUSE_SOCKETS=no | |
2106 | DEFAULT_wxUSE_OLE=no | |
2107 | DEFAULT_wxUSE_DATAOBJ=no | |
2108 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2109 | DEFAULT_wxUSE_JOYSTICK=no | |
2110 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2111 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2112 | DEFAULT_wxUSE_LONGLONG=no | |
2113 | DEFAULT_wxUSE_GEOMETRY=no | |
2114 | ||
2115 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2116 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2117 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2118 | ||
2119 | DEFAULT_wxUSE_CLIPBOARD=no | |
2120 | DEFAULT_wxUSE_TOOLTIPS=no | |
2121 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2122 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2123 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2124 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2125 | |
8a7b1113 | 2126 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2127 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2128 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2129 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2130 | ||
2131 | DEFAULT_wxUSE_RESOURCES=no | |
2132 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2133 | DEFAULT_wxUSE_IPC=no | |
2134 | DEFAULT_wxUSE_HELP=no | |
2135 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2136 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2137 | DEFAULT_wxUSE_TREELAYOUT=no | |
2138 | DEFAULT_wxUSE_METAFILE=no | |
2139 | DEFAULT_wxUSE_MIMETYPE=no | |
2140 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2141 | DEFAULT_wxUSE_PROTOCOL=no | |
2142 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2143 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2144 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2145 | DEFAULT_wxUSE_URL=no | |
2146 | ||
2147 | DEFAULT_wxUSE_COMMONDLGS=no | |
2148 | DEFAULT_wxUSE_CHOICEDLG=no | |
2149 | DEFAULT_wxUSE_COLOURDLG=no | |
2150 | DEFAULT_wxUSE_DIRDLG=no | |
2151 | DEFAULT_wxUSE_FILEDLG=no | |
2152 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2153 | DEFAULT_wxUSE_FONTDLG=no | |
2154 | DEFAULT_wxUSE_MSGDLG=no | |
2155 | DEFAULT_wxUSE_NUMBERDLG=no | |
2156 | DEFAULT_wxUSE_TEXTDLG=no | |
2157 | DEFAULT_wxUSE_SPLASH=no | |
2158 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2159 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2160 | DEFAULT_wxUSE_WIZARDDLG=no | |
2161 | ||
2162 | DEFAULT_wxUSE_MENUS=no | |
2163 | DEFAULT_wxUSE_MINIFRAME=no | |
2164 | DEFAULT_wxUSE_HTML=no | |
91dea314 | 2165 | DEFAULT_wxUSE_RICHTEXT=no |
9a8f0513 | 2166 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2167 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2168 | DEFAULT_wxUSE_FILESYSTEM=no |
2169 | DEFAULT_wxUSE_FS_INET=no | |
2170 | DEFAULT_wxUSE_FS_ZIP=no | |
2171 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2172 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2173 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2174 | DEFAULT_wxUSE_VALIDATORS=no |
2175 | ||
2176 | DEFAULT_wxUSE_ACCEL=no | |
2177 | DEFAULT_wxUSE_BUTTON=no | |
2178 | DEFAULT_wxUSE_BMPBUTTON=no | |
2179 | DEFAULT_wxUSE_CALCTRL=no | |
2180 | DEFAULT_wxUSE_CARET=no | |
2181 | DEFAULT_wxUSE_CHECKBOX=no | |
2182 | DEFAULT_wxUSE_CHECKLST=no | |
2183 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2184 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2185 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2186 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2187 | DEFAULT_wxUSE_DISPLAY=no |
2188 | DEFAULT_wxUSE_GAUGE=no | |
2189 | DEFAULT_wxUSE_GRID=no | |
20e34ecc | 2190 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2191 | DEFAULT_wxUSE_IMAGLIST=no |
2192 | DEFAULT_wxUSE_LISTBOOK=no | |
2193 | DEFAULT_wxUSE_LISTBOX=no | |
2194 | DEFAULT_wxUSE_LISTCTRL=no | |
2195 | DEFAULT_wxUSE_NOTEBOOK=no | |
2196 | DEFAULT_wxUSE_RADIOBOX=no | |
2197 | DEFAULT_wxUSE_RADIOBTN=no | |
2198 | DEFAULT_wxUSE_SASH=no | |
2199 | DEFAULT_wxUSE_SCROLLBAR=no | |
2200 | DEFAULT_wxUSE_SLIDER=no | |
2201 | DEFAULT_wxUSE_SPINBTN=no | |
2202 | DEFAULT_wxUSE_SPINCTRL=no | |
2203 | DEFAULT_wxUSE_SPLITTER=no | |
2204 | DEFAULT_wxUSE_STATBMP=no | |
2205 | DEFAULT_wxUSE_STATBOX=no | |
2206 | DEFAULT_wxUSE_STATLINE=no | |
2207 | DEFAULT_wxUSE_STATTEXT=no | |
2208 | DEFAULT_wxUSE_STATUSBAR=yes | |
2209 | DEFAULT_wxUSE_TABDIALOG=no | |
2210 | DEFAULT_wxUSE_TEXTCTRL=no | |
2211 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2212 | DEFAULT_wxUSE_TOOLBAR=no | |
2213 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2214 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
0093c2fc | 2215 | DEFAULT_wxUSE_TREEBOOK=no |
a848cd7e SC |
2216 | DEFAULT_wxUSE_TREECTRL=no |
2217 | DEFAULT_wxUSE_POPUPWIN=no | |
2218 | DEFAULT_wxUSE_TIPWINDOW=no | |
2219 | ||
2220 | DEFAULT_wxUSE_UNICODE=no | |
2221 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2222 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2223 | ||
2224 | DEFAULT_wxUSE_PALETTE=no | |
2225 | DEFAULT_wxUSE_IMAGE=no | |
2226 | DEFAULT_wxUSE_GIF=no | |
2227 | DEFAULT_wxUSE_PCX=no | |
2228 | DEFAULT_wxUSE_PNM=no | |
2229 | DEFAULT_wxUSE_IFF=no | |
2230 | DEFAULT_wxUSE_XPM=no | |
2231 | DEFAULT_wxUSE_ICO_CUR=no | |
2232 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2233 | ||
2234 | DEFAULT_wxUSE_MONOLITHIC=no | |
2235 | DEFAULT_wxUSE_PLUGINS=no | |
2236 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2237 | else | |
2238 | DEFAULT_wxUSE_UNIVERSAL=no | |
2239 | DEFAULT_wxUSE_STL=no | |
2240 | ||
2241 | DEFAULT_wxUSE_NANOX=no | |
2242 | ||
2243 | DEFAULT_wxUSE_THREADS=yes | |
2244 | ||
2245 | DEFAULT_wxUSE_SHARED=yes | |
2246 | DEFAULT_wxUSE_OPTIMISE=yes | |
2247 | DEFAULT_wxUSE_PROFILE=no | |
2248 | DEFAULT_wxUSE_NO_DEPS=no | |
2249 | DEFAULT_wxUSE_NO_RTTI=no | |
2250 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2251 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2252 | DEFAULT_wxUSE_PERMISSIVE=no |
2253 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2254 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2255 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2256 | DEFAULT_wxUSE_MEM_TRACING=no | |
2257 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2258 | DEFAULT_wxUSE_DMALLOC=no | |
2259 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2260 | ||
2261 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2262 | DEFAULT_wxUSE_LOG=yes | |
2263 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2264 | DEFAULT_wxUSE_LOGGUI=yes | |
2265 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2266 | ||
2267 | DEFAULT_wxUSE_GUI=yes | |
2268 | ||
2269 | DEFAULT_wxUSE_REGEX=yes | |
2270 | DEFAULT_wxUSE_XML=yes | |
2271 | DEFAULT_wxUSE_EXPAT=yes | |
2272 | DEFAULT_wxUSE_ZLIB=yes | |
2273 | DEFAULT_wxUSE_LIBPNG=yes | |
2274 | DEFAULT_wxUSE_LIBJPEG=yes | |
2275 | DEFAULT_wxUSE_LIBTIFF=yes | |
2276 | DEFAULT_wxUSE_LIBXPM=yes | |
2277 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2278 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2279 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
3565d135 | 2280 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e | 2281 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2282 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2283 | |
2284 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2285 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2286 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2287 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2288 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2289 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2290 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2291 | DEFAULT_wxUSE_DATETIME=yes | |
2292 | DEFAULT_wxUSE_TIMER=yes | |
2293 | DEFAULT_wxUSE_STOPWATCH=yes | |
2294 | DEFAULT_wxUSE_FILE=yes | |
2295 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2296 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2297 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2298 | DEFAULT_wxUSE_TEXTFILE=yes | |
2299 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2300 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2301 | DEFAULT_wxUSE_INTL=yes |
2302 | DEFAULT_wxUSE_CONFIG=yes | |
2303 | DEFAULT_wxUSE_FONTMAP=yes | |
2304 | DEFAULT_wxUSE_STREAMS=yes | |
2305 | DEFAULT_wxUSE_SOCKETS=yes | |
2306 | DEFAULT_wxUSE_OLE=yes | |
2307 | DEFAULT_wxUSE_DATAOBJ=yes | |
2308 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2309 | DEFAULT_wxUSE_JOYSTICK=yes | |
2310 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2311 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2312 | DEFAULT_wxUSE_LONGLONG=yes | |
2313 | DEFAULT_wxUSE_GEOMETRY=yes | |
2314 | ||
2315 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2316 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2317 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2318 | ||
2319 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2320 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2321 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2322 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2323 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2324 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2325 | |
8a7b1113 | 2326 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2327 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2328 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2329 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2330 | ||
2331 | DEFAULT_wxUSE_RESOURCES=no | |
2332 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2333 | DEFAULT_wxUSE_IPC=yes | |
2334 | DEFAULT_wxUSE_HELP=yes | |
2335 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2336 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2337 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2338 | DEFAULT_wxUSE_METAFILE=yes | |
2339 | DEFAULT_wxUSE_MIMETYPE=yes | |
2340 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2341 | DEFAULT_wxUSE_PROTOCOL=yes | |
2342 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2343 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2344 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2345 | DEFAULT_wxUSE_URL=yes | |
2346 | ||
2347 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2348 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2349 | DEFAULT_wxUSE_COLOURDLG=yes | |
2350 | DEFAULT_wxUSE_DIRDLG=yes | |
2351 | DEFAULT_wxUSE_FILEDLG=yes | |
2352 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2353 | DEFAULT_wxUSE_FONTDLG=yes | |
2354 | DEFAULT_wxUSE_MSGDLG=yes | |
2355 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2356 | DEFAULT_wxUSE_TEXTDLG=yes | |
2357 | DEFAULT_wxUSE_SPLASH=yes | |
2358 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2359 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2360 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2361 | ||
2362 | DEFAULT_wxUSE_MENUS=yes | |
2363 | DEFAULT_wxUSE_MINIFRAME=yes | |
2364 | DEFAULT_wxUSE_HTML=yes | |
91dea314 | 2365 | DEFAULT_wxUSE_RICHTEXT=yes |
9a8f0513 | 2366 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2367 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2368 | DEFAULT_wxUSE_FILESYSTEM=yes |
2369 | DEFAULT_wxUSE_FS_INET=yes | |
2370 | DEFAULT_wxUSE_FS_ZIP=yes | |
2371 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2372 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2373 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2374 | DEFAULT_wxUSE_VALIDATORS=yes |
2375 | ||
2376 | DEFAULT_wxUSE_ACCEL=yes | |
2377 | DEFAULT_wxUSE_BUTTON=yes | |
2378 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2379 | DEFAULT_wxUSE_CALCTRL=yes | |
2380 | DEFAULT_wxUSE_CARET=yes | |
2381 | DEFAULT_wxUSE_CHECKBOX=yes | |
2382 | DEFAULT_wxUSE_CHECKLST=yes | |
2383 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2384 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2385 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2386 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2387 | DEFAULT_wxUSE_DISPLAY=yes |
2388 | DEFAULT_wxUSE_GAUGE=yes | |
2389 | DEFAULT_wxUSE_GRID=yes | |
20e34ecc | 2390 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2391 | DEFAULT_wxUSE_IMAGLIST=yes |
2392 | DEFAULT_wxUSE_LISTBOOK=yes | |
2393 | DEFAULT_wxUSE_LISTBOX=yes | |
2394 | DEFAULT_wxUSE_LISTCTRL=yes | |
2395 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2396 | DEFAULT_wxUSE_RADIOBOX=yes | |
2397 | DEFAULT_wxUSE_RADIOBTN=yes | |
2398 | DEFAULT_wxUSE_SASH=yes | |
2399 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2400 | DEFAULT_wxUSE_SLIDER=yes | |
2401 | DEFAULT_wxUSE_SPINBTN=yes | |
2402 | DEFAULT_wxUSE_SPINCTRL=yes | |
2403 | DEFAULT_wxUSE_SPLITTER=yes | |
2404 | DEFAULT_wxUSE_STATBMP=yes | |
2405 | DEFAULT_wxUSE_STATBOX=yes | |
2406 | DEFAULT_wxUSE_STATLINE=yes | |
2407 | DEFAULT_wxUSE_STATTEXT=yes | |
2408 | DEFAULT_wxUSE_STATUSBAR=yes | |
2409 | DEFAULT_wxUSE_TABDIALOG=no | |
2410 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2411 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2412 | DEFAULT_wxUSE_TOOLBAR=yes | |
2413 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2414 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
0093c2fc | 2415 | DEFAULT_wxUSE_TREEBOOK=yes |
a848cd7e SC |
2416 | DEFAULT_wxUSE_TREECTRL=yes |
2417 | DEFAULT_wxUSE_POPUPWIN=yes | |
2418 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2419 | ||
78de529b | 2420 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2421 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2422 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2423 | ||
2424 | DEFAULT_wxUSE_PALETTE=yes | |
2425 | DEFAULT_wxUSE_IMAGE=yes | |
2426 | DEFAULT_wxUSE_GIF=yes | |
2427 | DEFAULT_wxUSE_PCX=yes | |
2428 | DEFAULT_wxUSE_IFF=no | |
2429 | DEFAULT_wxUSE_PNM=yes | |
2430 | DEFAULT_wxUSE_XPM=yes | |
2431 | DEFAULT_wxUSE_ICO_CUR=yes | |
2432 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2433 | ||
2434 | DEFAULT_wxUSE_MONOLITHIC=no | |
2435 | DEFAULT_wxUSE_PLUGINS=no | |
2436 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2437 | |
f34ca037 | 2438 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2439 | fi |
2440 | ||
2441 | ||
2442 | ||
f34ca037 | 2443 | |
a848cd7e SC |
2444 | for toolkit in `echo $ALL_TOOLKITS`; do |
2445 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2446 | if test "x$LINE" != "x" ; then | |
2447 | has_toolkit_in_cache=1 | |
2448 | eval "DEFAULT_$LINE" | |
2449 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2450 | |
2451 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2452 | if test "x$LINE" != "x" ; then | |
2453 | eval "DEFAULT_$LINE" | |
2454 | fi | |
a848cd7e SC |
2455 | fi |
2456 | done | |
2457 | ||
2458 | ||
2459 | ||
2460 | enablestring= | |
2461 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2462 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2463 | no_cache=0 | |
2464 | # Check whether --enable-gui or --disable-gui was given. | |
2465 | if test "${enable_gui+set}" = set; then | |
2466 | enableval="$enable_gui" | |
2467 | ||
2468 | if test "$enableval" = yes; then | |
2469 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2470 | else | |
2471 | ac_cv_use_gui='wxUSE_GUI=no' | |
2472 | fi | |
2473 | ||
2474 | else | |
2475 | ||
2476 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2477 | if test "x$LINE" != x ; then | |
2478 | eval "DEFAULT_$LINE" | |
2479 | else | |
2480 | no_cache=1 | |
2481 | fi | |
2482 | ||
2483 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2484 | ||
2485 | fi; | |
2486 | ||
2487 | eval "$ac_cv_use_gui" | |
2488 | if test "$no_cache" != 1; then | |
2489 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2490 | fi | |
2491 | ||
2492 | if test "$wxUSE_GUI" = yes; then | |
2493 | echo "$as_me:$LINENO: result: yes" >&5 | |
2494 | echo "${ECHO_T}yes" >&6 | |
2495 | else | |
2496 | echo "$as_me:$LINENO: result: no" >&5 | |
2497 | echo "${ECHO_T}no" >&6 | |
2498 | fi | |
2499 | ||
2500 | ||
2501 | enablestring= | |
2502 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2503 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2504 | no_cache=0 | |
2505 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2506 | if test "${enable_monolithic+set}" = set; then | |
2507 | enableval="$enable_monolithic" | |
2508 | ||
2509 | if test "$enableval" = yes; then | |
2510 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2511 | else | |
2512 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2513 | fi | |
2514 | ||
2515 | else | |
2516 | ||
2517 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2518 | if test "x$LINE" != x ; then | |
2519 | eval "DEFAULT_$LINE" | |
2520 | else | |
2521 | no_cache=1 | |
2522 | fi | |
2523 | ||
2524 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2525 | ||
2526 | fi; | |
2527 | ||
2528 | eval "$ac_cv_use_monolithic" | |
2529 | if test "$no_cache" != 1; then | |
2530 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2531 | fi | |
2532 | ||
2533 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2534 | echo "$as_me:$LINENO: result: yes" >&5 | |
2535 | echo "${ECHO_T}yes" >&6 | |
2536 | else | |
2537 | echo "$as_me:$LINENO: result: no" >&5 | |
2538 | echo "${ECHO_T}no" >&6 | |
2539 | fi | |
2540 | ||
2541 | ||
2542 | enablestring= | |
2543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2544 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2545 | no_cache=0 | |
2546 | # Check whether --enable-plugins or --disable-plugins was given. | |
2547 | if test "${enable_plugins+set}" = set; then | |
2548 | enableval="$enable_plugins" | |
2549 | ||
2550 | if test "$enableval" = yes; then | |
2551 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2552 | else | |
2553 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2554 | fi | |
2555 | ||
2556 | else | |
2557 | ||
2558 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2559 | if test "x$LINE" != x ; then | |
2560 | eval "DEFAULT_$LINE" | |
2561 | else | |
2562 | no_cache=1 | |
2563 | fi | |
2564 | ||
2565 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2566 | ||
2567 | fi; | |
2568 | ||
2569 | eval "$ac_cv_use_plugins" | |
2570 | if test "$no_cache" != 1; then | |
2571 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2572 | fi | |
2573 | ||
2574 | if test "$wxUSE_PLUGINS" = yes; then | |
2575 | echo "$as_me:$LINENO: result: yes" >&5 | |
2576 | echo "${ECHO_T}yes" >&6 | |
2577 | else | |
2578 | echo "$as_me:$LINENO: result: no" >&5 | |
2579 | echo "${ECHO_T}no" >&6 | |
2580 | fi | |
2581 | ||
2582 | ||
1c14217d VZ |
2583 | withstring=without |
2584 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2585 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2586 | no_cache=0 | |
2587 | ||
2588 | # Check whether --with-subdirs or --without-subdirs was given. | |
2589 | if test "${with_subdirs+set}" = set; then | |
2590 | withval="$with_subdirs" | |
2591 | ||
2592 | if test "$withval" = yes; then | |
2593 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2594 | else | |
2595 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2596 | fi | |
2597 | ||
2598 | else | |
2599 | ||
2600 | LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}` | |
2601 | if test "x$LINE" != x ; then | |
2602 | eval "DEFAULT_$LINE" | |
2603 | else | |
2604 | no_cache=1 | |
2605 | fi | |
2606 | ||
2607 | ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2608 | ||
2609 | fi; | |
2610 | ||
2611 | eval "$ac_cv_use_subdirs" | |
2612 | if test "$no_cache" != 1; then | |
2613 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2614 | fi | |
2615 | ||
2616 | if test "$wxWITH_SUBDIRS" = yes; then | |
2617 | echo "$as_me:$LINENO: result: yes" >&5 | |
2618 | echo "${ECHO_T}yes" >&6 | |
2619 | else | |
2620 | echo "$as_me:$LINENO: result: no" >&5 | |
2621 | echo "${ECHO_T}no" >&6 | |
2622 | fi | |
2623 | ||
2624 | ||
a848cd7e SC |
2625 | if test "$wxUSE_GUI" = "yes"; then |
2626 | ||
2627 | ||
2628 | enablestring= | |
2629 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2630 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2631 | no_cache=0 | |
2632 | # Check whether --enable-universal or --disable-universal was given. | |
2633 | if test "${enable_universal+set}" = set; then | |
2634 | enableval="$enable_universal" | |
2635 | ||
2636 | if test "$enableval" = yes; then | |
2637 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2638 | else | |
2639 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2640 | fi | |
2641 | ||
2642 | else | |
2643 | ||
2644 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2645 | if test "x$LINE" != x ; then | |
2646 | eval "DEFAULT_$LINE" | |
2647 | else | |
2648 | no_cache=1 | |
2649 | fi | |
2650 | ||
2651 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2652 | ||
2653 | fi; | |
2654 | ||
2655 | eval "$ac_cv_use_universal" | |
2656 | if test "$no_cache" != 1; then | |
2657 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2658 | fi | |
2659 | ||
2660 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2661 | echo "$as_me:$LINENO: result: yes" >&5 | |
2662 | echo "${ECHO_T}yes" >&6 | |
2663 | else | |
2664 | echo "$as_me:$LINENO: result: no" >&5 | |
2665 | echo "${ECHO_T}no" >&6 | |
2666 | fi | |
2667 | ||
2668 | ||
2669 | # Check whether --with-gtk or --without-gtk was given. | |
2670 | if test "${with_gtk+set}" = set; then | |
2671 | withval="$with_gtk" | |
2672 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2673 | fi; | |
2674 | ||
2675 | # Check whether --with-motif or --without-motif was given. | |
2676 | if test "${with_motif+set}" = set; then | |
2677 | withval="$with_motif" | |
2678 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2679 | fi; | |
2680 | ||
2681 | # Check whether --with-mac or --without-mac was given. | |
2682 | if test "${with_mac+set}" = set; then | |
2683 | withval="$with_mac" | |
c228d3a4 | 2684 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2685 | fi; |
2686 | ||
2687 | # Check whether --with-cocoa or --without-cocoa was given. | |
2688 | if test "${with_cocoa+set}" = set; then | |
2689 | withval="$with_cocoa" | |
c228d3a4 | 2690 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2691 | fi; |
2692 | ||
2693 | # Check whether --with-wine or --without-wine was given. | |
2694 | if test "${with_wine+set}" = set; then | |
2695 | withval="$with_wine" | |
2696 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2697 | fi; | |
2698 | ||
2699 | # Check whether --with-msw or --without-msw was given. | |
2700 | if test "${with_msw+set}" = set; then | |
2701 | withval="$with_msw" | |
2702 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2703 | fi; | |
2704 | ||
2705 | # Check whether --with-pm or --without-pm was given. | |
2706 | if test "${with_pm+set}" = set; then | |
2707 | withval="$with_pm" | |
2708 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2709 | fi; | |
2710 | ||
2711 | # Check whether --with-mgl or --without-mgl was given. | |
2712 | if test "${with_mgl+set}" = set; then | |
2713 | withval="$with_mgl" | |
2714 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2715 | fi; | |
2716 | ||
2717 | # Check whether --with-microwin or --without-microwin was given. | |
2718 | if test "${with_microwin+set}" = set; then | |
2719 | withval="$with_microwin" | |
2720 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2721 | fi; | |
2722 | ||
2723 | # Check whether --with-x11 or --without-x11 was given. | |
2724 | if test "${with_x11+set}" = set; then | |
2725 | withval="$with_x11" | |
2726 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2727 | fi; | |
2728 | ||
2729 | enablestring= | |
2730 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2731 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2732 | no_cache=0 | |
2733 | # Check whether --enable-nanox or --disable-nanox was given. | |
2734 | if test "${enable_nanox+set}" = set; then | |
2735 | enableval="$enable_nanox" | |
2736 | ||
2737 | if test "$enableval" = yes; then | |
2738 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2739 | else | |
2740 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2741 | fi | |
2742 | ||
2743 | else | |
2744 | ||
2745 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2746 | if test "x$LINE" != x ; then | |
2747 | eval "DEFAULT_$LINE" | |
2748 | else | |
2749 | no_cache=1 | |
2750 | fi | |
2751 | ||
2752 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2753 | ||
2754 | fi; | |
2755 | ||
2756 | eval "$ac_cv_use_nanox" | |
2757 | if test "$no_cache" != 1; then | |
2758 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2759 | fi | |
2760 | ||
2761 | if test "$wxUSE_NANOX" = yes; then | |
2762 | echo "$as_me:$LINENO: result: yes" >&5 | |
2763 | echo "${ECHO_T}yes" >&6 | |
2764 | else | |
2765 | echo "$as_me:$LINENO: result: no" >&5 | |
2766 | echo "${ECHO_T}no" >&6 | |
2767 | fi | |
2768 | ||
2769 | ||
f34ca037 MW |
2770 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2771 | if test "${enable_gtk2+set}" = set; then | |
2772 | enableval="$enable_gtk2" | |
2773 | wxUSE_GTK2="$enableval" | |
2774 | fi; | |
a848cd7e | 2775 | |
a848cd7e SC |
2776 | enablestring= |
2777 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2778 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2779 | no_cache=0 | |
2780 | # Check whether --enable-gpe or --disable-gpe was given. | |
2781 | if test "${enable_gpe+set}" = set; then | |
2782 | enableval="$enable_gpe" | |
2783 | ||
2784 | if test "$enableval" = yes; then | |
2785 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2786 | else | |
2787 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2788 | fi | |
2789 | ||
2790 | else | |
2791 | ||
2792 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2793 | if test "x$LINE" != x ; then | |
2794 | eval "DEFAULT_$LINE" | |
2795 | else | |
2796 | no_cache=1 | |
2797 | fi | |
2798 | ||
2799 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2800 | ||
2801 | fi; | |
2802 | ||
2803 | eval "$ac_cv_use_gpe" | |
2804 | if test "$no_cache" != 1; then | |
2805 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2806 | fi | |
2807 | ||
2808 | if test "$wxUSE_GPE" = yes; then | |
2809 | echo "$as_me:$LINENO: result: yes" >&5 | |
2810 | echo "${ECHO_T}yes" >&6 | |
2811 | else | |
2812 | echo "$as_me:$LINENO: result: no" >&5 | |
2813 | echo "${ECHO_T}no" >&6 | |
2814 | fi | |
2815 | ||
2816 | ||
2817 | ||
2818 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2819 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2820 | no_cache=0 | |
2821 | ||
2822 | # Check whether --with-libpng or --without-libpng was given. | |
2823 | if test "${with_libpng+set}" = set; then | |
2824 | withval="$with_libpng" | |
2825 | ||
2826 | if test "$withval" = yes; then | |
2827 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2828 | elif test "$withval" = no; then | |
2829 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2830 | elif test "$withval" = sys; then | |
2831 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2832 | elif test "$withval" = builtin; then | |
2833 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2834 | else | |
2835 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2836 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2837 | { (exit 1); exit 1; }; } | |
2838 | fi | |
2839 | ||
2840 | else | |
2841 | ||
2842 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2843 | if test "x$LINE" != x ; then | |
2844 | eval "DEFAULT_$LINE" | |
2845 | else | |
2846 | no_cache=1 | |
2847 | fi | |
2848 | ||
2849 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2850 | ||
2851 | fi; | |
2852 | ||
2853 | eval "$ac_cv_use_libpng" | |
2854 | if test "$no_cache" != 1; then | |
2855 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2856 | fi | |
2857 | ||
2858 | if test "$wxUSE_LIBPNG" = yes; then | |
2859 | echo "$as_me:$LINENO: result: yes" >&5 | |
2860 | echo "${ECHO_T}yes" >&6 | |
2861 | elif test "$wxUSE_LIBPNG" = no; then | |
2862 | echo "$as_me:$LINENO: result: no" >&5 | |
2863 | echo "${ECHO_T}no" >&6 | |
2864 | elif test "$wxUSE_LIBPNG" = sys; then | |
2865 | echo "$as_me:$LINENO: result: system version" >&5 | |
2866 | echo "${ECHO_T}system version" >&6 | |
2867 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2868 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2869 | echo "${ECHO_T}builtin version" >&6 | |
2870 | else | |
2871 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2872 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2873 | { (exit 1); exit 1; }; } | |
2874 | fi | |
2875 | ||
2876 | ||
2877 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2878 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2879 | no_cache=0 | |
2880 | ||
2881 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2882 | if test "${with_libjpeg+set}" = set; then | |
2883 | withval="$with_libjpeg" | |
2884 | ||
2885 | if test "$withval" = yes; then | |
2886 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2887 | elif test "$withval" = no; then | |
2888 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2889 | elif test "$withval" = sys; then | |
2890 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2891 | elif test "$withval" = builtin; then | |
2892 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2893 | else | |
2894 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2895 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2896 | { (exit 1); exit 1; }; } | |
2897 | fi | |
2898 | ||
2899 | else | |
2900 | ||
2901 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2902 | if test "x$LINE" != x ; then | |
2903 | eval "DEFAULT_$LINE" | |
2904 | else | |
2905 | no_cache=1 | |
2906 | fi | |
2907 | ||
2908 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2909 | ||
2910 | fi; | |
2911 | ||
2912 | eval "$ac_cv_use_libjpeg" | |
2913 | if test "$no_cache" != 1; then | |
2914 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2915 | fi | |
2916 | ||
2917 | if test "$wxUSE_LIBJPEG" = yes; then | |
2918 | echo "$as_me:$LINENO: result: yes" >&5 | |
2919 | echo "${ECHO_T}yes" >&6 | |
2920 | elif test "$wxUSE_LIBJPEG" = no; then | |
2921 | echo "$as_me:$LINENO: result: no" >&5 | |
2922 | echo "${ECHO_T}no" >&6 | |
2923 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2924 | echo "$as_me:$LINENO: result: system version" >&5 | |
2925 | echo "${ECHO_T}system version" >&6 | |
2926 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2927 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2928 | echo "${ECHO_T}builtin version" >&6 | |
2929 | else | |
2930 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2931 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2932 | { (exit 1); exit 1; }; } | |
2933 | fi | |
2934 | ||
2935 | ||
2936 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2937 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2938 | no_cache=0 | |
2939 | ||
2940 | # Check whether --with-libtiff or --without-libtiff was given. | |
2941 | if test "${with_libtiff+set}" = set; then | |
2942 | withval="$with_libtiff" | |
2943 | ||
2944 | if test "$withval" = yes; then | |
2945 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2946 | elif test "$withval" = no; then | |
2947 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2948 | elif test "$withval" = sys; then | |
2949 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2950 | elif test "$withval" = builtin; then | |
2951 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2952 | else | |
2953 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2954 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2955 | { (exit 1); exit 1; }; } | |
2956 | fi | |
2957 | ||
2958 | else | |
2959 | ||
2960 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2961 | if test "x$LINE" != x ; then | |
2962 | eval "DEFAULT_$LINE" | |
2963 | else | |
2964 | no_cache=1 | |
2965 | fi | |
2966 | ||
2967 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2968 | ||
2969 | fi; | |
2970 | ||
2971 | eval "$ac_cv_use_libtiff" | |
2972 | if test "$no_cache" != 1; then | |
2973 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2974 | fi | |
2975 | ||
2976 | if test "$wxUSE_LIBTIFF" = yes; then | |
2977 | echo "$as_me:$LINENO: result: yes" >&5 | |
2978 | echo "${ECHO_T}yes" >&6 | |
2979 | elif test "$wxUSE_LIBTIFF" = no; then | |
2980 | echo "$as_me:$LINENO: result: no" >&5 | |
2981 | echo "${ECHO_T}no" >&6 | |
2982 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2983 | echo "$as_me:$LINENO: result: system version" >&5 | |
2984 | echo "${ECHO_T}system version" >&6 | |
2985 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2986 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2987 | echo "${ECHO_T}builtin version" >&6 | |
2988 | else | |
2989 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2990 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2991 | { (exit 1); exit 1; }; } | |
2992 | fi | |
2993 | ||
2994 | ||
2995 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2996 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2997 | no_cache=0 | |
2998 | ||
2999 | # Check whether --with-libxpm or --without-libxpm was given. | |
3000 | if test "${with_libxpm+set}" = set; then | |
3001 | withval="$with_libxpm" | |
3002 | ||
3003 | if test "$withval" = yes; then | |
3004 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
3005 | elif test "$withval" = no; then | |
3006 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
3007 | elif test "$withval" = sys; then | |
3008 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
3009 | elif test "$withval" = builtin; then | |
3010 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
3011 | else | |
3012 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3013 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3014 | { (exit 1); exit 1; }; } | |
3015 | fi | |
3016 | ||
3017 | else | |
3018 | ||
3019 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3020 | if test "x$LINE" != x ; then | |
3021 | eval "DEFAULT_$LINE" | |
3022 | else | |
3023 | no_cache=1 | |
3024 | fi | |
3025 | ||
3026 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3027 | ||
3028 | fi; | |
3029 | ||
3030 | eval "$ac_cv_use_libxpm" | |
3031 | if test "$no_cache" != 1; then | |
3032 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3033 | fi | |
3034 | ||
3035 | if test "$wxUSE_LIBXPM" = yes; then | |
3036 | echo "$as_me:$LINENO: result: yes" >&5 | |
3037 | echo "${ECHO_T}yes" >&6 | |
3038 | elif test "$wxUSE_LIBXPM" = no; then | |
3039 | echo "$as_me:$LINENO: result: no" >&5 | |
3040 | echo "${ECHO_T}no" >&6 | |
3041 | elif test "$wxUSE_LIBXPM" = sys; then | |
3042 | echo "$as_me:$LINENO: result: system version" >&5 | |
3043 | echo "${ECHO_T}system version" >&6 | |
3044 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3045 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3046 | echo "${ECHO_T}builtin version" >&6 | |
3047 | else | |
3048 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3049 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3050 | { (exit 1); exit 1; }; } | |
3051 | fi | |
3052 | ||
3053 | ||
1c14217d VZ |
3054 | withstring= |
3055 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3056 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3057 | no_cache=0 |
3058 | ||
3059 | # Check whether --with-libmspack or --without-libmspack was given. | |
3060 | if test "${with_libmspack+set}" = set; then | |
3061 | withval="$with_libmspack" | |
3062 | ||
3063 | if test "$withval" = yes; then | |
3064 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3065 | else | |
3066 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3067 | fi | |
3068 | ||
3069 | else | |
3070 | ||
3071 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3072 | if test "x$LINE" != x ; then | |
3073 | eval "DEFAULT_$LINE" | |
3074 | else | |
3075 | no_cache=1 | |
3076 | fi | |
3077 | ||
3078 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3079 | ||
3080 | fi; | |
3081 | ||
3082 | eval "$ac_cv_use_libmspack" | |
3083 | if test "$no_cache" != 1; then | |
3084 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3085 | fi | |
3086 | ||
3087 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3088 | echo "$as_me:$LINENO: result: yes" >&5 | |
3089 | echo "${ECHO_T}yes" >&6 | |
3090 | else | |
3091 | echo "$as_me:$LINENO: result: no" >&5 | |
3092 | echo "${ECHO_T}no" >&6 | |
3093 | fi | |
3094 | ||
3095 | ||
1c14217d VZ |
3096 | withstring= |
3097 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3098 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3099 | no_cache=0 |
3100 | ||
3101 | # Check whether --with-sdl or --without-sdl was given. | |
3102 | if test "${with_sdl+set}" = set; then | |
3103 | withval="$with_sdl" | |
3104 | ||
3105 | if test "$withval" = yes; then | |
3106 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3107 | else | |
3108 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3109 | fi | |
3110 | ||
3111 | else | |
3112 | ||
3113 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3114 | if test "x$LINE" != x ; then | |
3115 | eval "DEFAULT_$LINE" | |
3116 | else | |
3117 | no_cache=1 | |
3118 | fi | |
3119 | ||
3120 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3121 | ||
3122 | fi; | |
3123 | ||
3124 | eval "$ac_cv_use_sdl" | |
3125 | if test "$no_cache" != 1; then | |
3126 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3127 | fi | |
3128 | ||
3129 | if test "$wxUSE_LIBSDL" = yes; then | |
3130 | echo "$as_me:$LINENO: result: yes" >&5 | |
3131 | echo "${ECHO_T}yes" >&6 | |
3132 | else | |
3133 | echo "$as_me:$LINENO: result: no" >&5 | |
3134 | echo "${ECHO_T}no" >&6 | |
3135 | fi | |
3136 | ||
3137 | ||
1c14217d VZ |
3138 | withstring= |
3139 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3140 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3141 | no_cache=0 |
3142 | ||
3143 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3144 | if test "${with_gnomeprint+set}" = set; then | |
3145 | withval="$with_gnomeprint" | |
3146 | ||
3147 | if test "$withval" = yes; then | |
3148 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3149 | else | |
3150 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3151 | fi | |
3152 | ||
3153 | else | |
3154 | ||
3155 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3156 | if test "x$LINE" != x ; then | |
3157 | eval "DEFAULT_$LINE" | |
3158 | else | |
3159 | no_cache=1 | |
3160 | fi | |
3161 | ||
3162 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3163 | ||
3164 | fi; | |
3165 | ||
3166 | eval "$ac_cv_use_gnomeprint" | |
3167 | if test "$no_cache" != 1; then | |
3168 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3169 | fi | |
3170 | ||
3171 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3172 | echo "$as_me:$LINENO: result: yes" >&5 | |
3173 | echo "${ECHO_T}yes" >&6 | |
3174 | else | |
3175 | echo "$as_me:$LINENO: result: no" >&5 | |
3176 | echo "${ECHO_T}no" >&6 | |
3177 | fi | |
3178 | ||
3179 | ||
3565d135 RR |
3180 | withstring= |
3181 | echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5 | |
3182 | echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6 | |
3183 | no_cache=0 | |
3184 | ||
3185 | # Check whether --with-hildon or --without-hildon was given. | |
3186 | if test "${with_hildon+set}" = set; then | |
3187 | withval="$with_hildon" | |
3188 | ||
3189 | if test "$withval" = yes; then | |
3190 | ac_cv_use_hildon='wxUSE_LIBHILDON=yes' | |
3191 | else | |
3192 | ac_cv_use_hildon='wxUSE_LIBHILDON=no' | |
3193 | fi | |
3194 | ||
3195 | else | |
3196 | ||
3197 | LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}` | |
3198 | if test "x$LINE" != x ; then | |
3199 | eval "DEFAULT_$LINE" | |
3200 | else | |
3201 | no_cache=1 | |
3202 | fi | |
3203 | ||
3204 | ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON | |
3205 | ||
3206 | fi; | |
3207 | ||
3208 | eval "$ac_cv_use_hildon" | |
3209 | if test "$no_cache" != 1; then | |
3210 | echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp | |
3211 | fi | |
3212 | ||
3213 | if test "$wxUSE_LIBHILDON" = yes; then | |
3214 | echo "$as_me:$LINENO: result: yes" >&5 | |
3215 | echo "${ECHO_T}yes" >&6 | |
3216 | else | |
3217 | echo "$as_me:$LINENO: result: no" >&5 | |
3218 | echo "${ECHO_T}no" >&6 | |
3219 | fi | |
3220 | ||
3221 | ||
1c14217d VZ |
3222 | withstring= |
3223 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3224 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3225 | no_cache=0 |
3226 | ||
3227 | # Check whether --with-opengl or --without-opengl was given. | |
3228 | if test "${with_opengl+set}" = set; then | |
3229 | withval="$with_opengl" | |
3230 | ||
3231 | if test "$withval" = yes; then | |
3232 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3233 | else | |
3234 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3235 | fi | |
3236 | ||
3237 | else | |
3238 | ||
3239 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3240 | if test "x$LINE" != x ; then | |
3241 | eval "DEFAULT_$LINE" | |
3242 | else | |
3243 | no_cache=1 | |
3244 | fi | |
3245 | ||
3246 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3247 | ||
3248 | fi; | |
3249 | ||
3250 | eval "$ac_cv_use_opengl" | |
3251 | if test "$no_cache" != 1; then | |
3252 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3253 | fi | |
3254 | ||
3255 | if test "$wxUSE_OPENGL" = yes; then | |
3256 | echo "$as_me:$LINENO: result: yes" >&5 | |
3257 | echo "${ECHO_T}yes" >&6 | |
3258 | else | |
3259 | echo "$as_me:$LINENO: result: no" >&5 | |
3260 | echo "${ECHO_T}no" >&6 | |
3261 | fi | |
3262 | ||
3263 | ||
3264 | fi | |
3265 | ||
3266 | ||
1c14217d VZ |
3267 | withstring= |
3268 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3269 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3270 | no_cache=0 |
3271 | ||
3272 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3273 | if test "${with_dmalloc+set}" = set; then | |
3274 | withval="$with_dmalloc" | |
3275 | ||
3276 | if test "$withval" = yes; then | |
3277 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3278 | else | |
3279 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3280 | fi | |
3281 | ||
3282 | else | |
3283 | ||
3284 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3285 | if test "x$LINE" != x ; then | |
3286 | eval "DEFAULT_$LINE" | |
3287 | else | |
3288 | no_cache=1 | |
3289 | fi | |
3290 | ||
3291 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3292 | ||
3293 | fi; | |
3294 | ||
3295 | eval "$ac_cv_use_dmalloc" | |
3296 | if test "$no_cache" != 1; then | |
3297 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3298 | fi | |
3299 | ||
3300 | if test "$wxUSE_DMALLOC" = yes; then | |
3301 | echo "$as_me:$LINENO: result: yes" >&5 | |
3302 | echo "${ECHO_T}yes" >&6 | |
3303 | else | |
3304 | echo "$as_me:$LINENO: result: no" >&5 | |
3305 | echo "${ECHO_T}no" >&6 | |
3306 | fi | |
3307 | ||
3308 | ||
3309 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3310 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3311 | no_cache=0 | |
3312 | ||
3313 | # Check whether --with-regex or --without-regex was given. | |
3314 | if test "${with_regex+set}" = set; then | |
3315 | withval="$with_regex" | |
3316 | ||
3317 | if test "$withval" = yes; then | |
3318 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3319 | elif test "$withval" = no; then | |
3320 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3321 | elif test "$withval" = sys; then | |
3322 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3323 | elif test "$withval" = builtin; then | |
3324 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3325 | else | |
3326 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3327 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3328 | { (exit 1); exit 1; }; } | |
3329 | fi | |
3330 | ||
3331 | else | |
3332 | ||
3333 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3334 | if test "x$LINE" != x ; then | |
3335 | eval "DEFAULT_$LINE" | |
3336 | else | |
3337 | no_cache=1 | |
3338 | fi | |
3339 | ||
3340 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3341 | ||
3342 | fi; | |
3343 | ||
3344 | eval "$ac_cv_use_regex" | |
3345 | if test "$no_cache" != 1; then | |
3346 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3347 | fi | |
3348 | ||
3349 | if test "$wxUSE_REGEX" = yes; then | |
3350 | echo "$as_me:$LINENO: result: yes" >&5 | |
3351 | echo "${ECHO_T}yes" >&6 | |
3352 | elif test "$wxUSE_REGEX" = no; then | |
3353 | echo "$as_me:$LINENO: result: no" >&5 | |
3354 | echo "${ECHO_T}no" >&6 | |
3355 | elif test "$wxUSE_REGEX" = sys; then | |
3356 | echo "$as_me:$LINENO: result: system version" >&5 | |
3357 | echo "${ECHO_T}system version" >&6 | |
3358 | elif test "$wxUSE_REGEX" = builtin; then | |
3359 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3360 | echo "${ECHO_T}builtin version" >&6 | |
3361 | else | |
3362 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3363 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3364 | { (exit 1); exit 1; }; } | |
3365 | fi | |
3366 | ||
3367 | ||
3368 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3369 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3370 | no_cache=0 | |
3371 | ||
3372 | # Check whether --with-zlib or --without-zlib was given. | |
3373 | if test "${with_zlib+set}" = set; then | |
3374 | withval="$with_zlib" | |
3375 | ||
3376 | if test "$withval" = yes; then | |
3377 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3378 | elif test "$withval" = no; then | |
3379 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3380 | elif test "$withval" = sys; then | |
3381 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3382 | elif test "$withval" = builtin; then | |
3383 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3384 | else | |
3385 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3386 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3387 | { (exit 1); exit 1; }; } | |
3388 | fi | |
3389 | ||
3390 | else | |
3391 | ||
3392 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3393 | if test "x$LINE" != x ; then | |
3394 | eval "DEFAULT_$LINE" | |
3395 | else | |
3396 | no_cache=1 | |
3397 | fi | |
3398 | ||
3399 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3400 | ||
3401 | fi; | |
3402 | ||
3403 | eval "$ac_cv_use_zlib" | |
3404 | if test "$no_cache" != 1; then | |
3405 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3406 | fi | |
3407 | ||
3408 | if test "$wxUSE_ZLIB" = yes; then | |
3409 | echo "$as_me:$LINENO: result: yes" >&5 | |
3410 | echo "${ECHO_T}yes" >&6 | |
3411 | elif test "$wxUSE_ZLIB" = no; then | |
3412 | echo "$as_me:$LINENO: result: no" >&5 | |
3413 | echo "${ECHO_T}no" >&6 | |
3414 | elif test "$wxUSE_ZLIB" = sys; then | |
3415 | echo "$as_me:$LINENO: result: system version" >&5 | |
3416 | echo "${ECHO_T}system version" >&6 | |
3417 | elif test "$wxUSE_ZLIB" = builtin; then | |
3418 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3419 | echo "${ECHO_T}builtin version" >&6 | |
3420 | else | |
3421 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3422 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3423 | { (exit 1); exit 1; }; } | |
3424 | fi | |
3425 | ||
3426 | ||
3427 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3428 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3429 | no_cache=0 | |
3430 | ||
3431 | # Check whether --with-odbc or --without-odbc was given. | |
3432 | if test "${with_odbc+set}" = set; then | |
3433 | withval="$with_odbc" | |
3434 | ||
3435 | if test "$withval" = yes; then | |
3436 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3437 | elif test "$withval" = no; then | |
3438 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3439 | elif test "$withval" = sys; then | |
3440 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3441 | elif test "$withval" = builtin; then | |
3442 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3443 | else | |
3444 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3445 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3446 | { (exit 1); exit 1; }; } | |
3447 | fi | |
3448 | ||
3449 | else | |
3450 | ||
3451 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3452 | if test "x$LINE" != x ; then | |
3453 | eval "DEFAULT_$LINE" | |
3454 | else | |
3455 | no_cache=1 | |
3456 | fi | |
3457 | ||
3458 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3459 | ||
3460 | fi; | |
3461 | ||
3462 | eval "$ac_cv_use_odbc" | |
3463 | if test "$no_cache" != 1; then | |
3464 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3465 | fi | |
3466 | ||
3467 | if test "$wxUSE_ODBC" = yes; then | |
3468 | echo "$as_me:$LINENO: result: yes" >&5 | |
3469 | echo "${ECHO_T}yes" >&6 | |
3470 | elif test "$wxUSE_ODBC" = no; then | |
3471 | echo "$as_me:$LINENO: result: no" >&5 | |
3472 | echo "${ECHO_T}no" >&6 | |
3473 | elif test "$wxUSE_ODBC" = sys; then | |
3474 | echo "$as_me:$LINENO: result: system version" >&5 | |
3475 | echo "${ECHO_T}system version" >&6 | |
3476 | elif test "$wxUSE_ODBC" = builtin; then | |
3477 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3478 | echo "${ECHO_T}builtin version" >&6 | |
3479 | else | |
3480 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3481 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3482 | { (exit 1); exit 1; }; } | |
3483 | fi | |
3484 | ||
3485 | ||
3486 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3487 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3488 | no_cache=0 | |
3489 | ||
3490 | # Check whether --with-expat or --without-expat was given. | |
3491 | if test "${with_expat+set}" = set; then | |
3492 | withval="$with_expat" | |
3493 | ||
3494 | if test "$withval" = yes; then | |
3495 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3496 | elif test "$withval" = no; then | |
3497 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3498 | elif test "$withval" = sys; then | |
3499 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3500 | elif test "$withval" = builtin; then | |
3501 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3502 | else | |
3503 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3504 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3505 | { (exit 1); exit 1; }; } | |
3506 | fi | |
3507 | ||
3508 | else | |
3509 | ||
3510 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3511 | if test "x$LINE" != x ; then | |
3512 | eval "DEFAULT_$LINE" | |
3513 | else | |
3514 | no_cache=1 | |
3515 | fi | |
3516 | ||
3517 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3518 | ||
3519 | fi; | |
3520 | ||
3521 | eval "$ac_cv_use_expat" | |
3522 | if test "$no_cache" != 1; then | |
3523 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3524 | fi | |
3525 | ||
3526 | if test "$wxUSE_EXPAT" = yes; then | |
3527 | echo "$as_me:$LINENO: result: yes" >&5 | |
3528 | echo "${ECHO_T}yes" >&6 | |
3529 | elif test "$wxUSE_EXPAT" = no; then | |
3530 | echo "$as_me:$LINENO: result: no" >&5 | |
3531 | echo "${ECHO_T}no" >&6 | |
3532 | elif test "$wxUSE_EXPAT" = sys; then | |
3533 | echo "$as_me:$LINENO: result: system version" >&5 | |
3534 | echo "${ECHO_T}system version" >&6 | |
3535 | elif test "$wxUSE_EXPAT" = builtin; then | |
3536 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3537 | echo "${ECHO_T}builtin version" >&6 | |
3538 | else | |
3539 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3540 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3541 | { (exit 1); exit 1; }; } | |
3542 | fi | |
3543 | ||
3544 | ||
3545 | ||
3546 | ||
3547 | enablestring= | |
3548 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3549 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3550 | no_cache=0 | |
3551 | # Check whether --enable-shared or --disable-shared was given. | |
3552 | if test "${enable_shared+set}" = set; then | |
3553 | enableval="$enable_shared" | |
3554 | ||
3555 | if test "$enableval" = yes; then | |
3556 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3557 | else | |
3558 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3559 | fi | |
3560 | ||
3561 | else | |
3562 | ||
3563 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3564 | if test "x$LINE" != x ; then | |
3565 | eval "DEFAULT_$LINE" | |
3566 | else | |
3567 | no_cache=1 | |
3568 | fi | |
3569 | ||
3570 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3571 | ||
3572 | fi; | |
3573 | ||
3574 | eval "$ac_cv_use_shared" | |
3575 | if test "$no_cache" != 1; then | |
3576 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3577 | fi | |
3578 | ||
3579 | if test "$wxUSE_SHARED" = yes; then | |
3580 | echo "$as_me:$LINENO: result: yes" >&5 | |
3581 | echo "${ECHO_T}yes" >&6 | |
3582 | else | |
3583 | echo "$as_me:$LINENO: result: no" >&5 | |
3584 | echo "${ECHO_T}no" >&6 | |
3585 | fi | |
3586 | ||
3587 | ||
3588 | enablestring= | |
3589 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3590 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3591 | no_cache=0 | |
3592 | # Check whether --enable-optimise or --disable-optimise was given. | |
3593 | if test "${enable_optimise+set}" = set; then | |
3594 | enableval="$enable_optimise" | |
3595 | ||
3596 | if test "$enableval" = yes; then | |
3597 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3598 | else | |
3599 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3600 | fi | |
3601 | ||
3602 | else | |
3603 | ||
3604 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3605 | if test "x$LINE" != x ; then | |
3606 | eval "DEFAULT_$LINE" | |
3607 | else | |
3608 | no_cache=1 | |
3609 | fi | |
3610 | ||
3611 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3612 | ||
3613 | fi; | |
3614 | ||
3615 | eval "$ac_cv_use_optimise" | |
3616 | if test "$no_cache" != 1; then | |
3617 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3618 | fi | |
3619 | ||
3620 | if test "$wxUSE_OPTIMISE" = yes; then | |
3621 | echo "$as_me:$LINENO: result: yes" >&5 | |
3622 | echo "${ECHO_T}yes" >&6 | |
3623 | else | |
3624 | echo "$as_me:$LINENO: result: no" >&5 | |
3625 | echo "${ECHO_T}no" >&6 | |
3626 | fi | |
3627 | ||
3628 | ||
3629 | enablestring= | |
3630 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3631 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3632 | no_cache=0 | |
3633 | # Check whether --enable-debug or --disable-debug was given. | |
3634 | if test "${enable_debug+set}" = set; then | |
3635 | enableval="$enable_debug" | |
3636 | ||
3637 | if test "$enableval" = yes; then | |
3638 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3639 | else | |
3640 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3641 | fi | |
3642 | ||
3643 | else | |
3644 | ||
3645 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3646 | if test "x$LINE" != x ; then | |
3647 | eval "DEFAULT_$LINE" | |
3648 | else | |
3649 | no_cache=1 | |
3650 | fi | |
3651 | ||
3652 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3653 | ||
3654 | fi; | |
3655 | ||
3656 | eval "$ac_cv_use_debug" | |
3657 | if test "$no_cache" != 1; then | |
3658 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3659 | fi | |
3660 | ||
3661 | if test "$wxUSE_DEBUG" = yes; then | |
3662 | echo "$as_me:$LINENO: result: yes" >&5 | |
3663 | echo "${ECHO_T}yes" >&6 | |
3664 | else | |
3665 | echo "$as_me:$LINENO: result: no" >&5 | |
3666 | echo "${ECHO_T}no" >&6 | |
3667 | fi | |
3668 | ||
3669 | ||
3670 | enablestring= | |
3671 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3672 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3673 | no_cache=0 | |
3674 | # Check whether --enable-stl or --disable-stl was given. | |
3675 | if test "${enable_stl+set}" = set; then | |
3676 | enableval="$enable_stl" | |
3677 | ||
3678 | if test "$enableval" = yes; then | |
3679 | ac_cv_use_stl='wxUSE_STL=yes' | |
3680 | else | |
3681 | ac_cv_use_stl='wxUSE_STL=no' | |
3682 | fi | |
3683 | ||
3684 | else | |
3685 | ||
3686 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3687 | if test "x$LINE" != x ; then | |
3688 | eval "DEFAULT_$LINE" | |
3689 | else | |
3690 | no_cache=1 | |
3691 | fi | |
3692 | ||
3693 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3694 | ||
3695 | fi; | |
3696 | ||
3697 | eval "$ac_cv_use_stl" | |
3698 | if test "$no_cache" != 1; then | |
3699 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3700 | fi | |
3701 | ||
3702 | if test "$wxUSE_STL" = yes; then | |
3703 | echo "$as_me:$LINENO: result: yes" >&5 | |
3704 | echo "${ECHO_T}yes" >&6 | |
3705 | else | |
3706 | echo "$as_me:$LINENO: result: no" >&5 | |
3707 | echo "${ECHO_T}no" >&6 | |
3708 | fi | |
3709 | ||
3710 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3711 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3712 | |
3713 | enablestring= | |
3714 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3715 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3716 | no_cache=0 | |
3717 | # Check whether --enable-omf or --disable-omf was given. | |
3718 | if test "${enable_omf+set}" = set; then | |
3719 | enableval="$enable_omf" | |
3720 | ||
3721 | if test "$enableval" = yes; then | |
3722 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3723 | else | |
3724 | ac_cv_use_omf='wxUSE_OMF=no' | |
3725 | fi | |
3726 | ||
3727 | else | |
3728 | ||
3729 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3730 | if test "x$LINE" != x ; then | |
3731 | eval "DEFAULT_$LINE" | |
3732 | else | |
3733 | no_cache=1 | |
3734 | fi | |
3735 | ||
3736 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3737 | ||
3738 | fi; | |
3739 | ||
3740 | eval "$ac_cv_use_omf" | |
3741 | if test "$no_cache" != 1; then | |
3742 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3743 | fi | |
3744 | ||
3745 | if test "$wxUSE_OMF" = yes; then | |
3746 | echo "$as_me:$LINENO: result: yes" >&5 | |
3747 | echo "${ECHO_T}yes" >&6 | |
3748 | else | |
3749 | echo "$as_me:$LINENO: result: no" >&5 | |
3750 | echo "${ECHO_T}no" >&6 | |
3751 | fi | |
3752 | ||
3753 | fi | |
3754 | ||
3755 | if test "$wxUSE_DEBUG" = "yes"; then | |
3756 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3757 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3758 | BUILD=debug | |
3759 | elif test "$wxUSE_DEBUG" = "no"; then | |
3760 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3761 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3762 | BUILD=release | |
3763 | fi | |
3764 | ||
3765 | ||
3766 | enablestring= | |
3767 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3768 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3769 | no_cache=0 | |
3770 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3771 | if test "${enable_debug_flag+set}" = set; then | |
3772 | enableval="$enable_debug_flag" | |
3773 | ||
3774 | if test "$enableval" = yes; then | |
3775 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3776 | else | |
3777 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3778 | fi | |
3779 | ||
3780 | else | |
3781 | ||
3782 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3783 | if test "x$LINE" != x ; then | |
3784 | eval "DEFAULT_$LINE" | |
3785 | else | |
3786 | no_cache=1 | |
3787 | fi | |
3788 | ||
3789 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3790 | ||
3791 | fi; | |
3792 | ||
3793 | eval "$ac_cv_use_debug_flag" | |
3794 | if test "$no_cache" != 1; then | |
3795 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3796 | fi | |
3797 | ||
3798 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3799 | echo "$as_me:$LINENO: result: yes" >&5 | |
3800 | echo "${ECHO_T}yes" >&6 | |
3801 | else | |
3802 | echo "$as_me:$LINENO: result: no" >&5 | |
3803 | echo "${ECHO_T}no" >&6 | |
3804 | fi | |
3805 | ||
3806 | ||
3807 | enablestring= | |
3808 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3809 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3810 | no_cache=0 | |
3811 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3812 | if test "${enable_debug_info+set}" = set; then | |
3813 | enableval="$enable_debug_info" | |
3814 | ||
3815 | if test "$enableval" = yes; then | |
3816 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3817 | else | |
3818 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3819 | fi | |
3820 | ||
3821 | else | |
3822 | ||
3823 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3824 | if test "x$LINE" != x ; then | |
3825 | eval "DEFAULT_$LINE" | |
3826 | else | |
3827 | no_cache=1 | |
3828 | fi | |
3829 | ||
3830 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3831 | ||
3832 | fi; | |
3833 | ||
3834 | eval "$ac_cv_use_debug_info" | |
3835 | if test "$no_cache" != 1; then | |
3836 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3837 | fi | |
3838 | ||
3839 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3840 | echo "$as_me:$LINENO: result: yes" >&5 | |
3841 | echo "${ECHO_T}yes" >&6 | |
3842 | else | |
3843 | echo "$as_me:$LINENO: result: no" >&5 | |
3844 | echo "${ECHO_T}no" >&6 | |
3845 | fi | |
3846 | ||
3847 | ||
3848 | enablestring= | |
3849 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3850 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3851 | no_cache=0 | |
3852 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3853 | if test "${enable_debug_gdb+set}" = set; then | |
3854 | enableval="$enable_debug_gdb" | |
3855 | ||
3856 | if test "$enableval" = yes; then | |
3857 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3858 | else | |
3859 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3860 | fi | |
3861 | ||
3862 | else | |
3863 | ||
3864 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3865 | if test "x$LINE" != x ; then | |
3866 | eval "DEFAULT_$LINE" | |
3867 | else | |
3868 | no_cache=1 | |
3869 | fi | |
3870 | ||
3871 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3872 | ||
3873 | fi; | |
3874 | ||
3875 | eval "$ac_cv_use_debug_gdb" | |
3876 | if test "$no_cache" != 1; then | |
3877 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3878 | fi | |
3879 | ||
3880 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3881 | echo "$as_me:$LINENO: result: yes" >&5 | |
3882 | echo "${ECHO_T}yes" >&6 | |
3883 | else | |
3884 | echo "$as_me:$LINENO: result: no" >&5 | |
3885 | echo "${ECHO_T}no" >&6 | |
3886 | fi | |
3887 | ||
3888 | ||
3889 | enablestring= | |
3890 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3891 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3892 | no_cache=0 | |
3893 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3894 | if test "${enable_debug_cntxt+set}" = set; then | |
3895 | enableval="$enable_debug_cntxt" | |
3896 | ||
3897 | if test "$enableval" = yes; then | |
3898 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3899 | else | |
3900 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3901 | fi | |
3902 | ||
3903 | else | |
3904 | ||
3905 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3906 | if test "x$LINE" != x ; then | |
3907 | eval "DEFAULT_$LINE" | |
3908 | else | |
3909 | no_cache=1 | |
3910 | fi | |
3911 | ||
3912 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3913 | ||
3914 | fi; | |
3915 | ||
3916 | eval "$ac_cv_use_debug_cntxt" | |
3917 | if test "$no_cache" != 1; then | |
3918 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3919 | fi | |
3920 | ||
3921 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3922 | echo "$as_me:$LINENO: result: yes" >&5 | |
3923 | echo "${ECHO_T}yes" >&6 | |
3924 | else | |
3925 | echo "$as_me:$LINENO: result: no" >&5 | |
3926 | echo "${ECHO_T}no" >&6 | |
3927 | fi | |
3928 | ||
3929 | ||
3930 | enablestring= | |
3931 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3932 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3933 | no_cache=0 | |
3934 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3935 | if test "${enable_mem_tracing+set}" = set; then | |
3936 | enableval="$enable_mem_tracing" | |
3937 | ||
3938 | if test "$enableval" = yes; then | |
3939 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3940 | else | |
3941 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3942 | fi | |
3943 | ||
3944 | else | |
3945 | ||
3946 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3947 | if test "x$LINE" != x ; then | |
3948 | eval "DEFAULT_$LINE" | |
3949 | else | |
3950 | no_cache=1 | |
3951 | fi | |
3952 | ||
3953 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3954 | ||
3955 | fi; | |
3956 | ||
3957 | eval "$ac_cv_use_mem_tracing" | |
3958 | if test "$no_cache" != 1; then | |
3959 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3960 | fi | |
3961 | ||
3962 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3963 | echo "$as_me:$LINENO: result: yes" >&5 | |
3964 | echo "${ECHO_T}yes" >&6 | |
3965 | else | |
3966 | echo "$as_me:$LINENO: result: no" >&5 | |
3967 | echo "${ECHO_T}no" >&6 | |
3968 | fi | |
3969 | ||
3970 | ||
3971 | enablestring= | |
3972 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3973 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3974 | no_cache=0 | |
3975 | # Check whether --enable-profile or --disable-profile was given. | |
3976 | if test "${enable_profile+set}" = set; then | |
3977 | enableval="$enable_profile" | |
3978 | ||
3979 | if test "$enableval" = yes; then | |
3980 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3981 | else | |
3982 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3983 | fi | |
3984 | ||
3985 | else | |
3986 | ||
3987 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3988 | if test "x$LINE" != x ; then | |
3989 | eval "DEFAULT_$LINE" | |
3990 | else | |
3991 | no_cache=1 | |
3992 | fi | |
3993 | ||
3994 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3995 | ||
3996 | fi; | |
3997 | ||
3998 | eval "$ac_cv_use_profile" | |
3999 | if test "$no_cache" != 1; then | |
4000 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
4001 | fi | |
4002 | ||
4003 | if test "$wxUSE_PROFILE" = yes; then | |
4004 | echo "$as_me:$LINENO: result: yes" >&5 | |
4005 | echo "${ECHO_T}yes" >&6 | |
4006 | else | |
4007 | echo "$as_me:$LINENO: result: no" >&5 | |
4008 | echo "${ECHO_T}no" >&6 | |
4009 | fi | |
4010 | ||
4011 | ||
4012 | enablestring= | |
4013 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
4014 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
4015 | no_cache=0 | |
4016 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
4017 | if test "${enable_no_rtti+set}" = set; then | |
4018 | enableval="$enable_no_rtti" | |
4019 | ||
4020 | if test "$enableval" = yes; then | |
4021 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
4022 | else | |
4023 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
4024 | fi | |
4025 | ||
4026 | else | |
4027 | ||
4028 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
4029 | if test "x$LINE" != x ; then | |
4030 | eval "DEFAULT_$LINE" | |
4031 | else | |
4032 | no_cache=1 | |
4033 | fi | |
4034 | ||
4035 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
4036 | ||
4037 | fi; | |
4038 | ||
4039 | eval "$ac_cv_use_no_rtti" | |
4040 | if test "$no_cache" != 1; then | |
4041 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
4042 | fi | |
4043 | ||
4044 | if test "$wxUSE_NO_RTTI" = yes; then | |
4045 | echo "$as_me:$LINENO: result: yes" >&5 | |
4046 | echo "${ECHO_T}yes" >&6 | |
4047 | else | |
4048 | echo "$as_me:$LINENO: result: no" >&5 | |
4049 | echo "${ECHO_T}no" >&6 | |
4050 | fi | |
4051 | ||
4052 | ||
4053 | enablestring= | |
4054 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
4055 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4056 | no_cache=0 | |
4057 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4058 | if test "${enable_no_exceptions+set}" = set; then | |
4059 | enableval="$enable_no_exceptions" | |
4060 | ||
4061 | if test "$enableval" = yes; then | |
4062 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4063 | else | |
4064 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4065 | fi | |
4066 | ||
4067 | else | |
4068 | ||
4069 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
4070 | if test "x$LINE" != x ; then | |
4071 | eval "DEFAULT_$LINE" | |
4072 | else | |
4073 | no_cache=1 | |
4074 | fi | |
4075 | ||
4076 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4077 | ||
4078 | fi; | |
4079 | ||
4080 | eval "$ac_cv_use_no_exceptions" | |
4081 | if test "$no_cache" != 1; then | |
4082 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4083 | fi | |
4084 | ||
4085 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4086 | echo "$as_me:$LINENO: result: yes" >&5 | |
4087 | echo "${ECHO_T}yes" >&6 | |
4088 | else | |
4089 | echo "$as_me:$LINENO: result: no" >&5 | |
4090 | echo "${ECHO_T}no" >&6 | |
4091 | fi | |
4092 | ||
4093 | ||
4094 | enablestring= | |
4095 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4096 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4097 | no_cache=0 | |
4098 | # Check whether --enable-permissive or --disable-permissive was given. | |
4099 | if test "${enable_permissive+set}" = set; then | |
4100 | enableval="$enable_permissive" | |
4101 | ||
4102 | if test "$enableval" = yes; then | |
4103 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4104 | else | |
4105 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4106 | fi | |
4107 | ||
4108 | else | |
4109 | ||
4110 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4111 | if test "x$LINE" != x ; then | |
4112 | eval "DEFAULT_$LINE" | |
4113 | else | |
4114 | no_cache=1 | |
4115 | fi | |
4116 | ||
4117 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4118 | ||
4119 | fi; | |
4120 | ||
4121 | eval "$ac_cv_use_permissive" | |
4122 | if test "$no_cache" != 1; then | |
4123 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4124 | fi | |
4125 | ||
4126 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4127 | echo "$as_me:$LINENO: result: yes" >&5 | |
4128 | echo "${ECHO_T}yes" >&6 | |
4129 | else | |
4130 | echo "$as_me:$LINENO: result: no" >&5 | |
4131 | echo "${ECHO_T}no" >&6 | |
4132 | fi | |
4133 | ||
4134 | ||
4135 | enablestring= | |
4136 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4137 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4138 | no_cache=0 | |
4139 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4140 | if test "${enable_no_deps+set}" = set; then | |
4141 | enableval="$enable_no_deps" | |
4142 | ||
4143 | if test "$enableval" = yes; then | |
4144 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4145 | else | |
4146 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4147 | fi | |
4148 | ||
4149 | else | |
4150 | ||
4151 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4152 | if test "x$LINE" != x ; then | |
4153 | eval "DEFAULT_$LINE" | |
4154 | else | |
4155 | no_cache=1 | |
4156 | fi | |
4157 | ||
4158 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4159 | ||
4160 | fi; | |
4161 | ||
4162 | eval "$ac_cv_use_no_deps" | |
4163 | if test "$no_cache" != 1; then | |
4164 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4165 | fi | |
4166 | ||
4167 | if test "$wxUSE_NO_DEPS" = yes; then | |
4168 | echo "$as_me:$LINENO: result: yes" >&5 | |
4169 | echo "${ECHO_T}yes" >&6 | |
4170 | else | |
4171 | echo "$as_me:$LINENO: result: no" >&5 | |
4172 | echo "${ECHO_T}no" >&6 | |
4173 | fi | |
4174 | ||
4175 | ||
4176 | ||
dee1a63f MB |
4177 | enablestring=enable |
4178 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4179 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
a848cd7e | 4180 | no_cache=0 |
dee1a63f MB |
4181 | # Check whether --enable-compat24 or --disable-compat24 was given. |
4182 | if test "${enable_compat24+set}" = set; then | |
4183 | enableval="$enable_compat24" | |
a848cd7e SC |
4184 | |
4185 | if test "$enableval" = yes; then | |
dee1a63f | 4186 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' |
a848cd7e | 4187 | else |
dee1a63f | 4188 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' |
a848cd7e SC |
4189 | fi |
4190 | ||
4191 | else | |
4192 | ||
dee1a63f | 4193 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
a848cd7e SC |
4194 | if test "x$LINE" != x ; then |
4195 | eval "DEFAULT_$LINE" | |
4196 | else | |
4197 | no_cache=1 | |
4198 | fi | |
4199 | ||
dee1a63f | 4200 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 |
a848cd7e SC |
4201 | |
4202 | fi; | |
4203 | ||
dee1a63f | 4204 | eval "$ac_cv_use_compat24" |
a848cd7e | 4205 | if test "$no_cache" != 1; then |
dee1a63f | 4206 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4207 | fi |
4208 | ||
dee1a63f | 4209 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then |
a848cd7e SC |
4210 | echo "$as_me:$LINENO: result: yes" >&5 |
4211 | echo "${ECHO_T}yes" >&6 | |
4212 | else | |
4213 | echo "$as_me:$LINENO: result: no" >&5 | |
4214 | echo "${ECHO_T}no" >&6 | |
4215 | fi | |
4216 | ||
4217 | ||
4218 | enablestring=disable | |
dee1a63f MB |
4219 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
4220 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6 | |
a848cd7e | 4221 | no_cache=0 |
dee1a63f MB |
4222 | # Check whether --enable-compat26 or --disable-compat26 was given. |
4223 | if test "${enable_compat26+set}" = set; then | |
4224 | enableval="$enable_compat26" | |
a848cd7e SC |
4225 | |
4226 | if test "$enableval" = yes; then | |
dee1a63f | 4227 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 4228 | else |
dee1a63f | 4229 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
4230 | fi |
4231 | ||
4232 | else | |
4233 | ||
dee1a63f | 4234 | LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}` |
a848cd7e SC |
4235 | if test "x$LINE" != x ; then |
4236 | eval "DEFAULT_$LINE" | |
4237 | else | |
4238 | no_cache=1 | |
4239 | fi | |
4240 | ||
dee1a63f | 4241 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
4242 | |
4243 | fi; | |
4244 | ||
dee1a63f | 4245 | eval "$ac_cv_use_compat26" |
a848cd7e | 4246 | if test "$no_cache" != 1; then |
dee1a63f | 4247 | echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4248 | fi |
4249 | ||
dee1a63f | 4250 | if test "$WXWIN_COMPATIBILITY_2_6" = yes; then |
a848cd7e SC |
4251 | echo "$as_me:$LINENO: result: yes" >&5 |
4252 | echo "${ECHO_T}yes" >&6 | |
4253 | else | |
4254 | echo "$as_me:$LINENO: result: no" >&5 | |
4255 | echo "${ECHO_T}no" >&6 | |
4256 | fi | |
4257 | ||
4258 | ||
ffa0583f RL |
4259 | |
4260 | enablestring= | |
4261 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4262 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4263 | no_cache=0 | |
4264 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4265 | if test "${enable_rpath+set}" = set; then |
4266 | enableval="$enable_rpath" | |
ffa0583f RL |
4267 | |
4268 | if test "$enableval" = yes; then | |
4269 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4270 | else | |
4271 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4272 | fi | |
4273 | ||
4274 | else | |
4275 | ||
4276 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4277 | if test "x$LINE" != x ; then | |
4278 | eval "DEFAULT_$LINE" | |
4279 | else | |
4280 | no_cache=1 | |
4281 | fi | |
4282 | ||
4283 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4284 | ||
a848cd7e SC |
4285 | fi; |
4286 | ||
ffa0583f RL |
4287 | eval "$ac_cv_use_rpath" |
4288 | if test "$no_cache" != 1; then | |
4289 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4290 | fi | |
4291 | ||
4292 | if test "$wxUSE_RPATH" = yes; then | |
4293 | echo "$as_me:$LINENO: result: yes" >&5 | |
4294 | echo "${ECHO_T}yes" >&6 | |
4295 | else | |
4296 | echo "$as_me:$LINENO: result: no" >&5 | |
4297 | echo "${ECHO_T}no" >&6 | |
4298 | fi | |
4299 | ||
a848cd7e SC |
4300 | |
4301 | ||
4302 | ||
4303 | ||
4304 | enablestring= | |
4305 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4306 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4307 | no_cache=0 | |
4308 | # Check whether --enable-intl or --disable-intl was given. | |
4309 | if test "${enable_intl+set}" = set; then | |
4310 | enableval="$enable_intl" | |
4311 | ||
4312 | if test "$enableval" = yes; then | |
4313 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4314 | else | |
4315 | ac_cv_use_intl='wxUSE_INTL=no' | |
4316 | fi | |
4317 | ||
4318 | else | |
4319 | ||
4320 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4321 | if test "x$LINE" != x ; then | |
4322 | eval "DEFAULT_$LINE" | |
4323 | else | |
4324 | no_cache=1 | |
4325 | fi | |
4326 | ||
4327 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4328 | ||
4329 | fi; | |
4330 | ||
4331 | eval "$ac_cv_use_intl" | |
4332 | if test "$no_cache" != 1; then | |
4333 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4334 | fi | |
4335 | ||
4336 | if test "$wxUSE_INTL" = yes; then | |
4337 | echo "$as_me:$LINENO: result: yes" >&5 | |
4338 | echo "${ECHO_T}yes" >&6 | |
4339 | else | |
4340 | echo "$as_me:$LINENO: result: no" >&5 | |
4341 | echo "${ECHO_T}no" >&6 | |
4342 | fi | |
4343 | ||
4344 | ||
4345 | enablestring= | |
4346 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4347 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4348 | no_cache=0 | |
4349 | # Check whether --enable-config or --disable-config was given. | |
4350 | if test "${enable_config+set}" = set; then | |
4351 | enableval="$enable_config" | |
4352 | ||
4353 | if test "$enableval" = yes; then | |
4354 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4355 | else | |
4356 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4357 | fi | |
4358 | ||
4359 | else | |
4360 | ||
4361 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4362 | if test "x$LINE" != x ; then | |
4363 | eval "DEFAULT_$LINE" | |
4364 | else | |
4365 | no_cache=1 | |
4366 | fi | |
4367 | ||
4368 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4369 | ||
4370 | fi; | |
4371 | ||
4372 | eval "$ac_cv_use_config" | |
4373 | if test "$no_cache" != 1; then | |
4374 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4375 | fi | |
4376 | ||
4377 | if test "$wxUSE_CONFIG" = yes; then | |
4378 | echo "$as_me:$LINENO: result: yes" >&5 | |
4379 | echo "${ECHO_T}yes" >&6 | |
4380 | else | |
4381 | echo "$as_me:$LINENO: result: no" >&5 | |
4382 | echo "${ECHO_T}no" >&6 | |
4383 | fi | |
4384 | ||
4385 | ||
4386 | ||
4387 | enablestring= | |
4388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4389 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4390 | no_cache=0 | |
4391 | # Check whether --enable-protocols or --disable-protocols was given. | |
4392 | if test "${enable_protocols+set}" = set; then | |
4393 | enableval="$enable_protocols" | |
4394 | ||
4395 | if test "$enableval" = yes; then | |
4396 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4397 | else | |
4398 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4399 | fi | |
4400 | ||
4401 | else | |
4402 | ||
4403 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4404 | if test "x$LINE" != x ; then | |
4405 | eval "DEFAULT_$LINE" | |
4406 | else | |
4407 | no_cache=1 | |
4408 | fi | |
4409 | ||
4410 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4411 | ||
4412 | fi; | |
4413 | ||
4414 | eval "$ac_cv_use_protocols" | |
4415 | if test "$no_cache" != 1; then | |
4416 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4417 | fi | |
4418 | ||
4419 | if test "$wxUSE_PROTOCOL" = yes; then | |
4420 | echo "$as_me:$LINENO: result: yes" >&5 | |
4421 | echo "${ECHO_T}yes" >&6 | |
4422 | else | |
4423 | echo "$as_me:$LINENO: result: no" >&5 | |
4424 | echo "${ECHO_T}no" >&6 | |
4425 | fi | |
4426 | ||
4427 | ||
4428 | enablestring= | |
4429 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4430 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4431 | no_cache=0 | |
4432 | # Check whether --enable-ftp or --disable-ftp was given. | |
4433 | if test "${enable_ftp+set}" = set; then | |
4434 | enableval="$enable_ftp" | |
4435 | ||
4436 | if test "$enableval" = yes; then | |
4437 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4438 | else | |
4439 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4440 | fi | |
4441 | ||
4442 | else | |
4443 | ||
4444 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4445 | if test "x$LINE" != x ; then | |
4446 | eval "DEFAULT_$LINE" | |
4447 | else | |
4448 | no_cache=1 | |
4449 | fi | |
4450 | ||
4451 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4452 | ||
4453 | fi; | |
4454 | ||
4455 | eval "$ac_cv_use_ftp" | |
4456 | if test "$no_cache" != 1; then | |
4457 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4458 | fi | |
4459 | ||
4460 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4461 | echo "$as_me:$LINENO: result: yes" >&5 | |
4462 | echo "${ECHO_T}yes" >&6 | |
4463 | else | |
4464 | echo "$as_me:$LINENO: result: no" >&5 | |
4465 | echo "${ECHO_T}no" >&6 | |
4466 | fi | |
4467 | ||
4468 | ||
4469 | enablestring= | |
4470 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4471 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4472 | no_cache=0 | |
4473 | # Check whether --enable-http or --disable-http was given. | |
4474 | if test "${enable_http+set}" = set; then | |
4475 | enableval="$enable_http" | |
4476 | ||
4477 | if test "$enableval" = yes; then | |
4478 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4479 | else | |
4480 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4481 | fi | |
4482 | ||
4483 | else | |
4484 | ||
4485 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4486 | if test "x$LINE" != x ; then | |
4487 | eval "DEFAULT_$LINE" | |
4488 | else | |
4489 | no_cache=1 | |
4490 | fi | |
4491 | ||
4492 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4493 | ||
4494 | fi; | |
4495 | ||
4496 | eval "$ac_cv_use_http" | |
4497 | if test "$no_cache" != 1; then | |
4498 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4499 | fi | |
4500 | ||
4501 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4502 | echo "$as_me:$LINENO: result: yes" >&5 | |
4503 | echo "${ECHO_T}yes" >&6 | |
4504 | else | |
4505 | echo "$as_me:$LINENO: result: no" >&5 | |
4506 | echo "${ECHO_T}no" >&6 | |
4507 | fi | |
4508 | ||
4509 | ||
4510 | enablestring= | |
4511 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4512 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4513 | no_cache=0 | |
4514 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4515 | if test "${enable_fileproto+set}" = set; then | |
4516 | enableval="$enable_fileproto" | |
4517 | ||
4518 | if test "$enableval" = yes; then | |
4519 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4520 | else | |
4521 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4522 | fi | |
4523 | ||
4524 | else | |
4525 | ||
4526 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4527 | if test "x$LINE" != x ; then | |
4528 | eval "DEFAULT_$LINE" | |
4529 | else | |
4530 | no_cache=1 | |
4531 | fi | |
4532 | ||
4533 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4534 | ||
4535 | fi; | |
4536 | ||
4537 | eval "$ac_cv_use_fileproto" | |
4538 | if test "$no_cache" != 1; then | |
4539 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4540 | fi | |
4541 | ||
4542 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4543 | echo "$as_me:$LINENO: result: yes" >&5 | |
4544 | echo "${ECHO_T}yes" >&6 | |
4545 | else | |
4546 | echo "$as_me:$LINENO: result: no" >&5 | |
4547 | echo "${ECHO_T}no" >&6 | |
4548 | fi | |
4549 | ||
4550 | ||
4551 | enablestring= | |
4552 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4553 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4554 | no_cache=0 | |
4555 | # Check whether --enable-sockets or --disable-sockets was given. | |
4556 | if test "${enable_sockets+set}" = set; then | |
4557 | enableval="$enable_sockets" | |
4558 | ||
4559 | if test "$enableval" = yes; then | |
4560 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4561 | else | |
4562 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4563 | fi | |
4564 | ||
4565 | else | |
4566 | ||
4567 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4568 | if test "x$LINE" != x ; then | |
4569 | eval "DEFAULT_$LINE" | |
4570 | else | |
4571 | no_cache=1 | |
4572 | fi | |
4573 | ||
4574 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4575 | ||
4576 | fi; | |
4577 | ||
4578 | eval "$ac_cv_use_sockets" | |
4579 | if test "$no_cache" != 1; then | |
4580 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4581 | fi | |
4582 | ||
4583 | if test "$wxUSE_SOCKETS" = yes; then | |
4584 | echo "$as_me:$LINENO: result: yes" >&5 | |
4585 | echo "${ECHO_T}yes" >&6 | |
4586 | else | |
4587 | echo "$as_me:$LINENO: result: no" >&5 | |
4588 | echo "${ECHO_T}no" >&6 | |
4589 | fi | |
4590 | ||
4591 | ||
4592 | enablestring= | |
4593 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4594 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4595 | no_cache=0 | |
4596 | # Check whether --enable-ole or --disable-ole was given. | |
4597 | if test "${enable_ole+set}" = set; then | |
4598 | enableval="$enable_ole" | |
4599 | ||
4600 | if test "$enableval" = yes; then | |
4601 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4602 | else | |
4603 | ac_cv_use_ole='wxUSE_OLE=no' | |
4604 | fi | |
4605 | ||
4606 | else | |
4607 | ||
4608 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4609 | if test "x$LINE" != x ; then | |
4610 | eval "DEFAULT_$LINE" | |
4611 | else | |
4612 | no_cache=1 | |
4613 | fi | |
4614 | ||
4615 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4616 | ||
4617 | fi; | |
4618 | ||
4619 | eval "$ac_cv_use_ole" | |
4620 | if test "$no_cache" != 1; then | |
4621 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4622 | fi | |
4623 | ||
4624 | if test "$wxUSE_OLE" = yes; then | |
4625 | echo "$as_me:$LINENO: result: yes" >&5 | |
4626 | echo "${ECHO_T}yes" >&6 | |
4627 | else | |
4628 | echo "$as_me:$LINENO: result: no" >&5 | |
4629 | echo "${ECHO_T}no" >&6 | |
4630 | fi | |
4631 | ||
4632 | ||
4633 | enablestring= | |
4634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4635 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4636 | no_cache=0 | |
4637 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4638 | if test "${enable_dataobj+set}" = set; then | |
4639 | enableval="$enable_dataobj" | |
4640 | ||
4641 | if test "$enableval" = yes; then | |
4642 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4643 | else | |
4644 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4645 | fi | |
4646 | ||
4647 | else | |
4648 | ||
4649 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4650 | if test "x$LINE" != x ; then | |
4651 | eval "DEFAULT_$LINE" | |
4652 | else | |
4653 | no_cache=1 | |
4654 | fi | |
4655 | ||
4656 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4657 | ||
4658 | fi; | |
4659 | ||
4660 | eval "$ac_cv_use_dataobj" | |
4661 | if test "$no_cache" != 1; then | |
4662 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4663 | fi | |
4664 | ||
4665 | if test "$wxUSE_DATAOBJ" = yes; then | |
4666 | echo "$as_me:$LINENO: result: yes" >&5 | |
4667 | echo "${ECHO_T}yes" >&6 | |
4668 | else | |
4669 | echo "$as_me:$LINENO: result: no" >&5 | |
4670 | echo "${ECHO_T}no" >&6 | |
4671 | fi | |
4672 | ||
4673 | ||
4674 | ||
4675 | enablestring= | |
4676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4677 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4678 | no_cache=0 | |
4679 | # Check whether --enable-ipc or --disable-ipc was given. | |
4680 | if test "${enable_ipc+set}" = set; then | |
4681 | enableval="$enable_ipc" | |
4682 | ||
4683 | if test "$enableval" = yes; then | |
4684 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4685 | else | |
4686 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4687 | fi | |
4688 | ||
4689 | else | |
4690 | ||
4691 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4692 | if test "x$LINE" != x ; then | |
4693 | eval "DEFAULT_$LINE" | |
4694 | else | |
4695 | no_cache=1 | |
4696 | fi | |
4697 | ||
4698 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4699 | ||
4700 | fi; | |
4701 | ||
4702 | eval "$ac_cv_use_ipc" | |
4703 | if test "$no_cache" != 1; then | |
4704 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4705 | fi | |
4706 | ||
4707 | if test "$wxUSE_IPC" = yes; then | |
4708 | echo "$as_me:$LINENO: result: yes" >&5 | |
4709 | echo "${ECHO_T}yes" >&6 | |
4710 | else | |
4711 | echo "$as_me:$LINENO: result: no" >&5 | |
4712 | echo "${ECHO_T}no" >&6 | |
4713 | fi | |
4714 | ||
4715 | ||
4716 | ||
4717 | enablestring= | |
4718 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4719 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4720 | no_cache=0 | |
4721 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4722 | if test "${enable_apple_ieee+set}" = set; then | |
4723 | enableval="$enable_apple_ieee" | |
4724 | ||
4725 | if test "$enableval" = yes; then | |
4726 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4727 | else | |
4728 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4729 | fi | |
4730 | ||
4731 | else | |
4732 | ||
4733 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4734 | if test "x$LINE" != x ; then | |
4735 | eval "DEFAULT_$LINE" | |
4736 | else | |
4737 | no_cache=1 | |
4738 | fi | |
4739 | ||
4740 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4741 | ||
4742 | fi; | |
4743 | ||
4744 | eval "$ac_cv_use_apple_ieee" | |
4745 | if test "$no_cache" != 1; then | |
4746 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4747 | fi | |
4748 | ||
4749 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4750 | echo "$as_me:$LINENO: result: yes" >&5 | |
4751 | echo "${ECHO_T}yes" >&6 | |
4752 | else | |
4753 | echo "$as_me:$LINENO: result: no" >&5 | |
4754 | echo "${ECHO_T}no" >&6 | |
4755 | fi | |
4756 | ||
4757 | ||
81f90336 MW |
4758 | enablestring= |
4759 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4760 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4761 | no_cache=0 | |
4762 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4763 | if test "${enable_arcstream+set}" = set; then | |
4764 | enableval="$enable_arcstream" | |
4765 | ||
4766 | if test "$enableval" = yes; then | |
9e8e867f | 4767 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4768 | else |
9e8e867f | 4769 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4770 | fi |
4771 | ||
4772 | else | |
4773 | ||
9e8e867f | 4774 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4775 | if test "x$LINE" != x ; then |
4776 | eval "DEFAULT_$LINE" | |
4777 | else | |
4778 | no_cache=1 | |
4779 | fi | |
4780 | ||
9e8e867f | 4781 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4782 | |
4783 | fi; | |
4784 | ||
4785 | eval "$ac_cv_use_arcstream" | |
4786 | if test "$no_cache" != 1; then | |
4787 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4788 | fi | |
4789 | ||
9e8e867f | 4790 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4791 | echo "$as_me:$LINENO: result: yes" >&5 |
4792 | echo "${ECHO_T}yes" >&6 | |
4793 | else | |
4794 | echo "$as_me:$LINENO: result: no" >&5 | |
4795 | echo "${ECHO_T}no" >&6 | |
4796 | fi | |
4797 | ||
4798 | ||
a848cd7e | 4799 | enablestring= |
36b6448c VZ |
4800 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4801 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4802 | no_cache=0 |
36b6448c VZ |
4803 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4804 | if test "${enable_backtrace+set}" = set; then | |
4805 | enableval="$enable_backtrace" | |
a848cd7e SC |
4806 | |
4807 | if test "$enableval" = yes; then | |
36b6448c | 4808 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4809 | else |
36b6448c | 4810 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4811 | fi |
4812 | ||
4813 | else | |
4814 | ||
36b6448c | 4815 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4816 | if test "x$LINE" != x ; then |
4817 | eval "DEFAULT_$LINE" | |
4818 | else | |
4819 | no_cache=1 | |
4820 | fi | |
4821 | ||
36b6448c | 4822 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4823 | |
4824 | fi; | |
4825 | ||
36b6448c | 4826 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4827 | if test "$no_cache" != 1; then |
36b6448c | 4828 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4829 | fi |
4830 | ||
36b6448c | 4831 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4832 | echo "$as_me:$LINENO: result: yes" >&5 |
4833 | echo "${ECHO_T}yes" >&6 | |
4834 | else | |
4835 | echo "$as_me:$LINENO: result: no" >&5 | |
4836 | echo "${ECHO_T}no" >&6 | |
4837 | fi | |
4838 | ||
4839 | ||
eaff0f0d | 4840 | enablestring= |
36b6448c VZ |
4841 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4842 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4843 | no_cache=0 |
36b6448c VZ |
4844 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4845 | if test "${enable_catch_segvs+set}" = set; then | |
4846 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4847 | |
4848 | if test "$enableval" = yes; then | |
36b6448c | 4849 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4850 | else |
36b6448c | 4851 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4852 | fi |
4853 | ||
4854 | else | |
4855 | ||
36b6448c | 4856 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4857 | if test "x$LINE" != x ; then |
4858 | eval "DEFAULT_$LINE" | |
4859 | else | |
4860 | no_cache=1 | |
4861 | fi | |
4862 | ||
36b6448c | 4863 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4864 | |
4865 | fi; | |
4866 | ||
36b6448c | 4867 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4868 | if test "$no_cache" != 1; then |
36b6448c | 4869 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4870 | fi |
4871 | ||
36b6448c | 4872 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4873 | echo "$as_me:$LINENO: result: yes" >&5 |
4874 | echo "${ECHO_T}yes" >&6 | |
4875 | else | |
4876 | echo "$as_me:$LINENO: result: no" >&5 | |
4877 | echo "${ECHO_T}no" >&6 | |
4878 | fi | |
4879 | ||
4880 | ||
a848cd7e SC |
4881 | enablestring= |
4882 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4883 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4884 | no_cache=0 | |
4885 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4886 | if test "${enable_cmdline+set}" = set; then | |
4887 | enableval="$enable_cmdline" | |
4888 | ||
4889 | if test "$enableval" = yes; then | |
4890 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4891 | else | |
4892 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4893 | fi | |
4894 | ||
4895 | else | |
4896 | ||
4897 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4898 | if test "x$LINE" != x ; then | |
4899 | eval "DEFAULT_$LINE" | |
4900 | else | |
4901 | no_cache=1 | |
4902 | fi | |
4903 | ||
4904 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4905 | ||
4906 | fi; | |
4907 | ||
4908 | eval "$ac_cv_use_cmdline" | |
4909 | if test "$no_cache" != 1; then | |
4910 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4911 | fi | |
4912 | ||
4913 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4914 | echo "$as_me:$LINENO: result: yes" >&5 | |
4915 | echo "${ECHO_T}yes" >&6 | |
4916 | else | |
4917 | echo "$as_me:$LINENO: result: no" >&5 | |
4918 | echo "${ECHO_T}no" >&6 | |
4919 | fi | |
4920 | ||
4921 | ||
4922 | enablestring= | |
4923 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4924 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4925 | no_cache=0 | |
4926 | # Check whether --enable-datetime or --disable-datetime was given. | |
4927 | if test "${enable_datetime+set}" = set; then | |
4928 | enableval="$enable_datetime" | |
4929 | ||
4930 | if test "$enableval" = yes; then | |
4931 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4932 | else | |
4933 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4934 | fi | |
4935 | ||
4936 | else | |
4937 | ||
4938 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4939 | if test "x$LINE" != x ; then | |
4940 | eval "DEFAULT_$LINE" | |
4941 | else | |
4942 | no_cache=1 | |
4943 | fi | |
4944 | ||
4945 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4946 | ||
4947 | fi; | |
4948 | ||
4949 | eval "$ac_cv_use_datetime" | |
4950 | if test "$no_cache" != 1; then | |
4951 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4952 | fi | |
4953 | ||
4954 | if test "$wxUSE_DATETIME" = yes; then | |
4955 | echo "$as_me:$LINENO: result: yes" >&5 | |
4956 | echo "${ECHO_T}yes" >&6 | |
4957 | else | |
4958 | echo "$as_me:$LINENO: result: no" >&5 | |
4959 | echo "${ECHO_T}no" >&6 | |
4960 | fi | |
4961 | ||
4962 | ||
36b6448c VZ |
4963 | enablestring= |
4964 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
4965 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
4966 | no_cache=0 | |
4967 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
4968 | if test "${enable_debugreport+set}" = set; then | |
4969 | enableval="$enable_debugreport" | |
4970 | ||
4971 | if test "$enableval" = yes; then | |
4972 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
4973 | else | |
4974 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
4975 | fi | |
4976 | ||
4977 | else | |
4978 | ||
4979 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
4980 | if test "x$LINE" != x ; then | |
4981 | eval "DEFAULT_$LINE" | |
4982 | else | |
4983 | no_cache=1 | |
4984 | fi | |
4985 | ||
4986 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
4987 | ||
4988 | fi; | |
4989 | ||
4990 | eval "$ac_cv_use_debugreport" | |
4991 | if test "$no_cache" != 1; then | |
4992 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
4993 | fi | |
4994 | ||
4995 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
4996 | echo "$as_me:$LINENO: result: yes" >&5 | |
4997 | echo "${ECHO_T}yes" >&6 | |
4998 | else | |
4999 | echo "$as_me:$LINENO: result: no" >&5 | |
5000 | echo "${ECHO_T}no" >&6 | |
5001 | fi | |
5002 | ||
5003 | ||
a848cd7e SC |
5004 | enablestring= |
5005 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
5006 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
5007 | no_cache=0 | |
5008 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
5009 | if test "${enable_dialupman+set}" = set; then | |
5010 | enableval="$enable_dialupman" | |
5011 | ||
5012 | if test "$enableval" = yes; then | |
5013 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
5014 | else | |
5015 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
5016 | fi | |
5017 | ||
5018 | else | |
5019 | ||
5020 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
5021 | if test "x$LINE" != x ; then | |
5022 | eval "DEFAULT_$LINE" | |
5023 | else | |
5024 | no_cache=1 | |
5025 | fi | |
5026 | ||
5027 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
5028 | ||
5029 | fi; | |
5030 | ||
5031 | eval "$ac_cv_use_dialupman" | |
5032 | if test "$no_cache" != 1; then | |
5033 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
5034 | fi | |
5035 | ||
5036 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
5037 | echo "$as_me:$LINENO: result: yes" >&5 | |
5038 | echo "${ECHO_T}yes" >&6 | |
5039 | else | |
5040 | echo "$as_me:$LINENO: result: no" >&5 | |
5041 | echo "${ECHO_T}no" >&6 | |
5042 | fi | |
5043 | ||
5044 | ||
5045 | enablestring= | |
5046 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
5047 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
5048 | no_cache=0 | |
5049 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
5050 | if test "${enable_dynlib+set}" = set; then | |
5051 | enableval="$enable_dynlib" | |
5052 | ||
5053 | if test "$enableval" = yes; then | |
5054 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
5055 | else | |
5056 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5057 | fi | |
5058 | ||
5059 | else | |
5060 | ||
5061 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
5062 | if test "x$LINE" != x ; then | |
5063 | eval "DEFAULT_$LINE" | |
5064 | else | |
5065 | no_cache=1 | |
5066 | fi | |
5067 | ||
5068 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5069 | ||
5070 | fi; | |
5071 | ||
5072 | eval "$ac_cv_use_dynlib" | |
5073 | if test "$no_cache" != 1; then | |
5074 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5075 | fi | |
5076 | ||
5077 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
5078 | echo "$as_me:$LINENO: result: yes" >&5 | |
5079 | echo "${ECHO_T}yes" >&6 | |
5080 | else | |
5081 | echo "$as_me:$LINENO: result: no" >&5 | |
5082 | echo "${ECHO_T}no" >&6 | |
5083 | fi | |
5084 | ||
5085 | ||
5086 | enablestring= | |
5087 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
5088 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5089 | no_cache=0 | |
5090 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5091 | if test "${enable_dynamicloader+set}" = set; then | |
5092 | enableval="$enable_dynamicloader" | |
5093 | ||
5094 | if test "$enableval" = yes; then | |
5095 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5096 | else | |
5097 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5098 | fi | |
5099 | ||
5100 | else | |
5101 | ||
5102 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5103 | if test "x$LINE" != x ; then | |
5104 | eval "DEFAULT_$LINE" | |
5105 | else | |
5106 | no_cache=1 | |
5107 | fi | |
5108 | ||
5109 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5110 | ||
5111 | fi; | |
5112 | ||
5113 | eval "$ac_cv_use_dynamicloader" | |
5114 | if test "$no_cache" != 1; then | |
5115 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5116 | fi | |
5117 | ||
5118 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5119 | echo "$as_me:$LINENO: result: yes" >&5 | |
5120 | echo "${ECHO_T}yes" >&6 | |
5121 | else | |
5122 | echo "$as_me:$LINENO: result: no" >&5 | |
5123 | echo "${ECHO_T}no" >&6 | |
5124 | fi | |
5125 | ||
5126 | ||
5127 | enablestring= | |
5128 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5129 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5130 | no_cache=0 | |
5131 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5132 | if test "${enable_exceptions+set}" = set; then | |
5133 | enableval="$enable_exceptions" | |
5134 | ||
5135 | if test "$enableval" = yes; then | |
5136 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5137 | else | |
5138 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5139 | fi | |
5140 | ||
5141 | else | |
5142 | ||
5143 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5144 | if test "x$LINE" != x ; then | |
5145 | eval "DEFAULT_$LINE" | |
5146 | else | |
5147 | no_cache=1 | |
5148 | fi | |
5149 | ||
5150 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5151 | ||
5152 | fi; | |
5153 | ||
5154 | eval "$ac_cv_use_exceptions" | |
5155 | if test "$no_cache" != 1; then | |
5156 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5157 | fi | |
5158 | ||
5159 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5160 | echo "$as_me:$LINENO: result: yes" >&5 | |
5161 | echo "${ECHO_T}yes" >&6 | |
5162 | else | |
5163 | echo "$as_me:$LINENO: result: no" >&5 | |
5164 | echo "${ECHO_T}no" >&6 | |
5165 | fi | |
5166 | ||
5167 | ||
5168 | enablestring= | |
5169 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5170 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5171 | no_cache=0 | |
5172 | # Check whether --enable-ffile or --disable-ffile was given. | |
5173 | if test "${enable_ffile+set}" = set; then | |
5174 | enableval="$enable_ffile" | |
5175 | ||
5176 | if test "$enableval" = yes; then | |
5177 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5178 | else | |
5179 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5180 | fi | |
5181 | ||
5182 | else | |
5183 | ||
5184 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5185 | if test "x$LINE" != x ; then | |
5186 | eval "DEFAULT_$LINE" | |
5187 | else | |
5188 | no_cache=1 | |
5189 | fi | |
5190 | ||
5191 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5192 | ||
5193 | fi; | |
5194 | ||
5195 | eval "$ac_cv_use_ffile" | |
5196 | if test "$no_cache" != 1; then | |
5197 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5198 | fi | |
5199 | ||
5200 | if test "$wxUSE_FFILE" = yes; then | |
5201 | echo "$as_me:$LINENO: result: yes" >&5 | |
5202 | echo "${ECHO_T}yes" >&6 | |
5203 | else | |
5204 | echo "$as_me:$LINENO: result: no" >&5 | |
5205 | echo "${ECHO_T}no" >&6 | |
5206 | fi | |
5207 | ||
5208 | ||
5209 | enablestring= | |
5210 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5211 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5212 | no_cache=0 | |
5213 | # Check whether --enable-file or --disable-file was given. | |
5214 | if test "${enable_file+set}" = set; then | |
5215 | enableval="$enable_file" | |
5216 | ||
5217 | if test "$enableval" = yes; then | |
5218 | ac_cv_use_file='wxUSE_FILE=yes' | |
5219 | else | |
5220 | ac_cv_use_file='wxUSE_FILE=no' | |
5221 | fi | |
5222 | ||
5223 | else | |
5224 | ||
5225 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5226 | if test "x$LINE" != x ; then | |
5227 | eval "DEFAULT_$LINE" | |
5228 | else | |
5229 | no_cache=1 | |
5230 | fi | |
5231 | ||
5232 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5233 | ||
5234 | fi; | |
5235 | ||
5236 | eval "$ac_cv_use_file" | |
5237 | if test "$no_cache" != 1; then | |
5238 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5239 | fi | |
5240 | ||
5241 | if test "$wxUSE_FILE" = yes; then | |
5242 | echo "$as_me:$LINENO: result: yes" >&5 | |
5243 | echo "${ECHO_T}yes" >&6 | |
5244 | else | |
5245 | echo "$as_me:$LINENO: result: no" >&5 | |
5246 | echo "${ECHO_T}no" >&6 | |
5247 | fi | |
5248 | ||
5249 | ||
5250 | enablestring= | |
5251 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5252 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5253 | no_cache=0 | |
5254 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5255 | if test "${enable_filesystem+set}" = set; then | |
5256 | enableval="$enable_filesystem" | |
5257 | ||
5258 | if test "$enableval" = yes; then | |
5259 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5260 | else | |
5261 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5262 | fi | |
5263 | ||
5264 | else | |
5265 | ||
5266 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5267 | if test "x$LINE" != x ; then | |
5268 | eval "DEFAULT_$LINE" | |
5269 | else | |
5270 | no_cache=1 | |
5271 | fi | |
5272 | ||
5273 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5274 | ||
5275 | fi; | |
5276 | ||
5277 | eval "$ac_cv_use_filesystem" | |
5278 | if test "$no_cache" != 1; then | |
5279 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5280 | fi | |
5281 | ||
5282 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5283 | echo "$as_me:$LINENO: result: yes" >&5 | |
5284 | echo "${ECHO_T}yes" >&6 | |
5285 | else | |
5286 | echo "$as_me:$LINENO: result: no" >&5 | |
5287 | echo "${ECHO_T}no" >&6 | |
5288 | fi | |
5289 | ||
5290 | ||
5291 | enablestring= | |
5292 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5293 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5294 | no_cache=0 | |
5295 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5296 | if test "${enable_fontmap+set}" = set; then | |
5297 | enableval="$enable_fontmap" | |
5298 | ||
5299 | if test "$enableval" = yes; then | |
5300 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5301 | else | |
5302 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5303 | fi | |
5304 | ||
5305 | else | |
5306 | ||
5307 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5308 | if test "x$LINE" != x ; then | |
5309 | eval "DEFAULT_$LINE" | |
5310 | else | |
5311 | no_cache=1 | |
5312 | fi | |
5313 | ||
5314 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5315 | ||
5316 | fi; | |
5317 | ||
5318 | eval "$ac_cv_use_fontmap" | |
5319 | if test "$no_cache" != 1; then | |
5320 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5321 | fi | |
5322 | ||
5323 | if test "$wxUSE_FONTMAP" = yes; then | |
5324 | echo "$as_me:$LINENO: result: yes" >&5 | |
5325 | echo "${ECHO_T}yes" >&6 | |
5326 | else | |
5327 | echo "$as_me:$LINENO: result: no" >&5 | |
5328 | echo "${ECHO_T}no" >&6 | |
5329 | fi | |
5330 | ||
5331 | ||
5332 | enablestring= | |
5333 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5334 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5335 | no_cache=0 | |
5336 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5337 | if test "${enable_fs_inet+set}" = set; then | |
5338 | enableval="$enable_fs_inet" | |
5339 | ||
5340 | if test "$enableval" = yes; then | |
5341 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5342 | else | |
5343 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5344 | fi | |
5345 | ||
5346 | else | |
5347 | ||
5348 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5349 | if test "x$LINE" != x ; then | |
5350 | eval "DEFAULT_$LINE" | |
5351 | else | |
5352 | no_cache=1 | |
5353 | fi | |
5354 | ||
5355 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5356 | ||
5357 | fi; | |
5358 | ||
5359 | eval "$ac_cv_use_fs_inet" | |
5360 | if test "$no_cache" != 1; then | |
5361 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5362 | fi | |
5363 | ||
5364 | if test "$wxUSE_FS_INET" = yes; then | |
5365 | echo "$as_me:$LINENO: result: yes" >&5 | |
5366 | echo "${ECHO_T}yes" >&6 | |
5367 | else | |
5368 | echo "$as_me:$LINENO: result: no" >&5 | |
5369 | echo "${ECHO_T}no" >&6 | |
5370 | fi | |
5371 | ||
5372 | ||
5373 | enablestring= | |
5374 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5375 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5376 | no_cache=0 | |
5377 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5378 | if test "${enable_fs_zip+set}" = set; then | |
5379 | enableval="$enable_fs_zip" | |
5380 | ||
5381 | if test "$enableval" = yes; then | |
5382 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5383 | else | |
5384 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5385 | fi | |
5386 | ||
5387 | else | |
5388 | ||
5389 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5390 | if test "x$LINE" != x ; then | |
5391 | eval "DEFAULT_$LINE" | |
5392 | else | |
5393 | no_cache=1 | |
5394 | fi | |
5395 | ||
5396 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5397 | ||
5398 | fi; | |
5399 | ||
5400 | eval "$ac_cv_use_fs_zip" | |
5401 | if test "$no_cache" != 1; then | |
5402 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5403 | fi | |
5404 | ||
5405 | if test "$wxUSE_FS_ZIP" = yes; then | |
5406 | echo "$as_me:$LINENO: result: yes" >&5 | |
5407 | echo "${ECHO_T}yes" >&6 | |
5408 | else | |
5409 | echo "$as_me:$LINENO: result: no" >&5 | |
5410 | echo "${ECHO_T}no" >&6 | |
5411 | fi | |
5412 | ||
5413 | ||
5414 | enablestring= | |
5415 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5416 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5417 | no_cache=0 | |
5418 | # Check whether --enable-geometry or --disable-geometry was given. | |
5419 | if test "${enable_geometry+set}" = set; then | |
5420 | enableval="$enable_geometry" | |
5421 | ||
5422 | if test "$enableval" = yes; then | |
5423 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5424 | else | |
5425 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5426 | fi | |
5427 | ||
5428 | else | |
5429 | ||
5430 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5431 | if test "x$LINE" != x ; then | |
5432 | eval "DEFAULT_$LINE" | |
5433 | else | |
5434 | no_cache=1 | |
5435 | fi | |
5436 | ||
5437 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5438 | ||
5439 | fi; | |
5440 | ||
5441 | eval "$ac_cv_use_geometry" | |
5442 | if test "$no_cache" != 1; then | |
5443 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5444 | fi | |
5445 | ||
5446 | if test "$wxUSE_GEOMETRY" = yes; then | |
5447 | echo "$as_me:$LINENO: result: yes" >&5 | |
5448 | echo "${ECHO_T}yes" >&6 | |
5449 | else | |
5450 | echo "$as_me:$LINENO: result: no" >&5 | |
5451 | echo "${ECHO_T}no" >&6 | |
5452 | fi | |
5453 | ||
5454 | ||
5455 | enablestring= | |
5456 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5457 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5458 | no_cache=0 | |
5459 | # Check whether --enable-log or --disable-log was given. | |
5460 | if test "${enable_log+set}" = set; then | |
5461 | enableval="$enable_log" | |
5462 | ||
5463 | if test "$enableval" = yes; then | |
5464 | ac_cv_use_log='wxUSE_LOG=yes' | |
5465 | else | |
5466 | ac_cv_use_log='wxUSE_LOG=no' | |
5467 | fi | |
5468 | ||
5469 | else | |
5470 | ||
5471 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5472 | if test "x$LINE" != x ; then | |
5473 | eval "DEFAULT_$LINE" | |
5474 | else | |
5475 | no_cache=1 | |
5476 | fi | |
5477 | ||
5478 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5479 | ||
5480 | fi; | |
5481 | ||
5482 | eval "$ac_cv_use_log" | |
5483 | if test "$no_cache" != 1; then | |
5484 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5485 | fi | |
5486 | ||
5487 | if test "$wxUSE_LOG" = yes; then | |
5488 | echo "$as_me:$LINENO: result: yes" >&5 | |
5489 | echo "${ECHO_T}yes" >&6 | |
5490 | else | |
5491 | echo "$as_me:$LINENO: result: no" >&5 | |
5492 | echo "${ECHO_T}no" >&6 | |
5493 | fi | |
5494 | ||
5495 | ||
5496 | enablestring= | |
5497 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5498 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5499 | no_cache=0 | |
5500 | # Check whether --enable-longlong or --disable-longlong was given. | |
5501 | if test "${enable_longlong+set}" = set; then | |
5502 | enableval="$enable_longlong" | |
5503 | ||
5504 | if test "$enableval" = yes; then | |
5505 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5506 | else | |
5507 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5508 | fi | |
5509 | ||
5510 | else | |
5511 | ||
5512 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5513 | if test "x$LINE" != x ; then | |
5514 | eval "DEFAULT_$LINE" | |
5515 | else | |
5516 | no_cache=1 | |
5517 | fi | |
5518 | ||
5519 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5520 | ||
5521 | fi; | |
5522 | ||
5523 | eval "$ac_cv_use_longlong" | |
5524 | if test "$no_cache" != 1; then | |
5525 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5526 | fi | |
5527 | ||
5528 | if test "$wxUSE_LONGLONG" = yes; then | |
5529 | echo "$as_me:$LINENO: result: yes" >&5 | |
5530 | echo "${ECHO_T}yes" >&6 | |
5531 | else | |
5532 | echo "$as_me:$LINENO: result: no" >&5 | |
5533 | echo "${ECHO_T}no" >&6 | |
5534 | fi | |
5535 | ||
5536 | ||
5537 | enablestring= | |
5538 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5539 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5540 | no_cache=0 | |
5541 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5542 | if test "${enable_mimetype+set}" = set; then | |
5543 | enableval="$enable_mimetype" | |
5544 | ||
5545 | if test "$enableval" = yes; then | |
5546 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5547 | else | |
5548 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5549 | fi | |
5550 | ||
5551 | else | |
5552 | ||
5553 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5554 | if test "x$LINE" != x ; then | |
5555 | eval "DEFAULT_$LINE" | |
5556 | else | |
5557 | no_cache=1 | |
5558 | fi | |
5559 | ||
5560 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5561 | ||
5562 | fi; | |
5563 | ||
5564 | eval "$ac_cv_use_mimetype" | |
5565 | if test "$no_cache" != 1; then | |
5566 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5567 | fi | |
5568 | ||
5569 | if test "$wxUSE_MIMETYPE" = yes; then | |
5570 | echo "$as_me:$LINENO: result: yes" >&5 | |
5571 | echo "${ECHO_T}yes" >&6 | |
5572 | else | |
5573 | echo "$as_me:$LINENO: result: no" >&5 | |
5574 | echo "${ECHO_T}no" >&6 | |
5575 | fi | |
5576 | ||
5577 | ||
5578 | enablestring= | |
5579 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5580 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5581 | no_cache=0 | |
5582 | # Check whether --enable-mslu or --disable-mslu was given. | |
5583 | if test "${enable_mslu+set}" = set; then | |
5584 | enableval="$enable_mslu" | |
5585 | ||
5586 | if test "$enableval" = yes; then | |
5587 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5588 | else | |
5589 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5590 | fi | |
5591 | ||
5592 | else | |
5593 | ||
5594 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5595 | if test "x$LINE" != x ; then | |
5596 | eval "DEFAULT_$LINE" | |
5597 | else | |
5598 | no_cache=1 | |
5599 | fi | |
5600 | ||
5601 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5602 | ||
5603 | fi; | |
5604 | ||
5605 | eval "$ac_cv_use_mslu" | |
5606 | if test "$no_cache" != 1; then | |
5607 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5608 | fi | |
5609 | ||
5610 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5611 | echo "$as_me:$LINENO: result: yes" >&5 | |
5612 | echo "${ECHO_T}yes" >&6 | |
5613 | else | |
5614 | echo "$as_me:$LINENO: result: no" >&5 | |
5615 | echo "${ECHO_T}no" >&6 | |
5616 | fi | |
5617 | ||
5618 | ||
5619 | enablestring= | |
5620 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5621 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5622 | no_cache=0 | |
5623 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5624 | if test "${enable_snglinst+set}" = set; then | |
5625 | enableval="$enable_snglinst" | |
5626 | ||
5627 | if test "$enableval" = yes; then | |
5628 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5629 | else | |
5630 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5631 | fi | |
5632 | ||
5633 | else | |
5634 | ||
5635 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5636 | if test "x$LINE" != x ; then | |
5637 | eval "DEFAULT_$LINE" | |
5638 | else | |
5639 | no_cache=1 | |
5640 | fi | |
5641 | ||
5642 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5643 | ||
5644 | fi; | |
5645 | ||
5646 | eval "$ac_cv_use_snglinst" | |
5647 | if test "$no_cache" != 1; then | |
5648 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5649 | fi | |
5650 | ||
5651 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5652 | echo "$as_me:$LINENO: result: yes" >&5 | |
5653 | echo "${ECHO_T}yes" >&6 | |
5654 | else | |
5655 | echo "$as_me:$LINENO: result: no" >&5 | |
5656 | echo "${ECHO_T}no" >&6 | |
5657 | fi | |
5658 | ||
5659 | ||
5660 | enablestring= | |
07158944 VZ |
5661 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5662 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5663 | no_cache=0 |
07158944 VZ |
5664 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5665 | if test "${enable_std_iostreams+set}" = set; then | |
5666 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5667 | |
5668 | if test "$enableval" = yes; then | |
07158944 | 5669 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5670 | else |
07158944 | 5671 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5672 | fi |
5673 | ||
5674 | else | |
5675 | ||
07158944 | 5676 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5677 | if test "x$LINE" != x ; then |
5678 | eval "DEFAULT_$LINE" | |
5679 | else | |
5680 | no_cache=1 | |
5681 | fi | |
5682 | ||
07158944 | 5683 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5684 | |
5685 | fi; | |
5686 | ||
07158944 | 5687 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5688 | if test "$no_cache" != 1; then |
07158944 | 5689 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5690 | fi |
5691 | ||
07158944 | 5692 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5693 | echo "$as_me:$LINENO: result: yes" >&5 |
5694 | echo "${ECHO_T}yes" >&6 | |
5695 | else | |
5696 | echo "$as_me:$LINENO: result: no" >&5 | |
5697 | echo "${ECHO_T}no" >&6 | |
5698 | fi | |
5699 | ||
5700 | ||
59746b65 MW |
5701 | enablestring= |
5702 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5703 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5704 | no_cache=0 | |
5705 | # Check whether --enable-std_string or --disable-std_string was given. | |
5706 | if test "${enable_std_string+set}" = set; then | |
5707 | enableval="$enable_std_string" | |
5708 | ||
5709 | if test "$enableval" = yes; then | |
5710 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5711 | else | |
5712 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5713 | fi | |
5714 | ||
5715 | else | |
5716 | ||
5717 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5718 | if test "x$LINE" != x ; then | |
5719 | eval "DEFAULT_$LINE" | |
5720 | else | |
5721 | no_cache=1 | |
5722 | fi | |
5723 | ||
5724 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5725 | ||
5726 | fi; | |
5727 | ||
5728 | eval "$ac_cv_use_std_string" | |
5729 | if test "$no_cache" != 1; then | |
5730 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5731 | fi | |
5732 | ||
5733 | if test "$wxUSE_STD_STRING" = yes; then | |
5734 | echo "$as_me:$LINENO: result: yes" >&5 | |
5735 | echo "${ECHO_T}yes" >&6 | |
5736 | else | |
5737 | echo "$as_me:$LINENO: result: no" >&5 | |
5738 | echo "${ECHO_T}no" >&6 | |
5739 | fi | |
5740 | ||
5741 | ||
a848cd7e | 5742 | enablestring= |
07158944 VZ |
5743 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5744 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5745 | no_cache=0 |
07158944 VZ |
5746 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5747 | if test "${enable_stdpaths+set}" = set; then | |
5748 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5749 | |
5750 | if test "$enableval" = yes; then | |
07158944 | 5751 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5752 | else |
07158944 | 5753 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5754 | fi |
5755 | ||
5756 | else | |
5757 | ||
07158944 | 5758 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5759 | if test "x$LINE" != x ; then |
5760 | eval "DEFAULT_$LINE" | |
5761 | else | |
5762 | no_cache=1 | |
5763 | fi | |
5764 | ||
07158944 | 5765 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5766 | |
5767 | fi; | |
5768 | ||
07158944 | 5769 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5770 | if test "$no_cache" != 1; then |
07158944 | 5771 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5772 | fi |
5773 | ||
07158944 | 5774 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5775 | echo "$as_me:$LINENO: result: yes" >&5 |
5776 | echo "${ECHO_T}yes" >&6 | |
5777 | else | |
5778 | echo "$as_me:$LINENO: result: no" >&5 | |
5779 | echo "${ECHO_T}no" >&6 | |
5780 | fi | |
5781 | ||
5782 | ||
5783 | enablestring= | |
5784 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5785 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5786 | no_cache=0 | |
5787 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5788 | if test "${enable_stopwatch+set}" = set; then | |
5789 | enableval="$enable_stopwatch" | |
5790 | ||
5791 | if test "$enableval" = yes; then | |
5792 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5793 | else | |
5794 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5795 | fi | |
5796 | ||
5797 | else | |
5798 | ||
5799 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5800 | if test "x$LINE" != x ; then | |
5801 | eval "DEFAULT_$LINE" | |
5802 | else | |
5803 | no_cache=1 | |
5804 | fi | |
5805 | ||
5806 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5807 | ||
5808 | fi; | |
5809 | ||
5810 | eval "$ac_cv_use_stopwatch" | |
5811 | if test "$no_cache" != 1; then | |
5812 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5813 | fi | |
5814 | ||
5815 | if test "$wxUSE_STOPWATCH" = yes; then | |
5816 | echo "$as_me:$LINENO: result: yes" >&5 | |
5817 | echo "${ECHO_T}yes" >&6 | |
5818 | else | |
5819 | echo "$as_me:$LINENO: result: no" >&5 | |
5820 | echo "${ECHO_T}no" >&6 | |
5821 | fi | |
5822 | ||
5823 | ||
07158944 VZ |
5824 | enablestring= |
5825 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5826 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5827 | no_cache=0 | |
5828 | # Check whether --enable-streams or --disable-streams was given. | |
5829 | if test "${enable_streams+set}" = set; then | |
5830 | enableval="$enable_streams" | |
5831 | ||
5832 | if test "$enableval" = yes; then | |
5833 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5834 | else | |
5835 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5836 | fi | |
5837 | ||
5838 | else | |
5839 | ||
5840 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5841 | if test "x$LINE" != x ; then | |
5842 | eval "DEFAULT_$LINE" | |
5843 | else | |
5844 | no_cache=1 | |
5845 | fi | |
5846 | ||
5847 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5848 | ||
5849 | fi; | |
5850 | ||
5851 | eval "$ac_cv_use_streams" | |
5852 | if test "$no_cache" != 1; then | |
5853 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5854 | fi | |
5855 | ||
5856 | if test "$wxUSE_STREAMS" = yes; then | |
5857 | echo "$as_me:$LINENO: result: yes" >&5 | |
5858 | echo "${ECHO_T}yes" >&6 | |
5859 | else | |
5860 | echo "$as_me:$LINENO: result: no" >&5 | |
5861 | echo "${ECHO_T}no" >&6 | |
5862 | fi | |
5863 | ||
5864 | ||
a848cd7e SC |
5865 | enablestring= |
5866 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5867 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5868 | no_cache=0 | |
5869 | # Check whether --enable-system_options or --disable-system_options was given. | |
5870 | if test "${enable_system_options+set}" = set; then | |
5871 | enableval="$enable_system_options" | |
5872 | ||
5873 | if test "$enableval" = yes; then | |
5874 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5875 | else | |
5876 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5877 | fi | |
5878 | ||
5879 | else | |
5880 | ||
5881 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5882 | if test "x$LINE" != x ; then | |
5883 | eval "DEFAULT_$LINE" | |
5884 | else | |
5885 | no_cache=1 | |
5886 | fi | |
5887 | ||
5888 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5889 | ||
5890 | fi; | |
5891 | ||
5892 | eval "$ac_cv_use_system_options" | |
5893 | if test "$no_cache" != 1; then | |
5894 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5895 | fi | |
5896 | ||
5897 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5898 | echo "$as_me:$LINENO: result: yes" >&5 | |
5899 | echo "${ECHO_T}yes" >&6 | |
5900 | else | |
5901 | echo "$as_me:$LINENO: result: no" >&5 | |
5902 | echo "${ECHO_T}no" >&6 | |
5903 | fi | |
5904 | ||
5905 | ||
5906 | enablestring= | |
5907 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5908 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5909 | no_cache=0 | |
5910 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5911 | if test "${enable_textbuf+set}" = set; then | |
5912 | enableval="$enable_textbuf" | |
5913 | ||
5914 | if test "$enableval" = yes; then | |
5915 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5916 | else | |
5917 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5918 | fi | |
5919 | ||
5920 | else | |
5921 | ||
5922 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5923 | if test "x$LINE" != x ; then | |
5924 | eval "DEFAULT_$LINE" | |
5925 | else | |
5926 | no_cache=1 | |
5927 | fi | |
5928 | ||
5929 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5930 | ||
5931 | fi; | |
5932 | ||
5933 | eval "$ac_cv_use_textbuf" | |
5934 | if test "$no_cache" != 1; then | |
5935 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5936 | fi | |
5937 | ||
5938 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5939 | echo "$as_me:$LINENO: result: yes" >&5 | |
5940 | echo "${ECHO_T}yes" >&6 | |
5941 | else | |
5942 | echo "$as_me:$LINENO: result: no" >&5 | |
5943 | echo "${ECHO_T}no" >&6 | |
5944 | fi | |
5945 | ||
5946 | ||
5947 | enablestring= | |
5948 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5949 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5950 | no_cache=0 | |
5951 | # Check whether --enable-textfile or --disable-textfile was given. | |
5952 | if test "${enable_textfile+set}" = set; then | |
5953 | enableval="$enable_textfile" | |
5954 | ||
5955 | if test "$enableval" = yes; then | |
5956 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5957 | else | |
5958 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5959 | fi | |
5960 | ||
5961 | else | |
5962 | ||
5963 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5964 | if test "x$LINE" != x ; then | |
5965 | eval "DEFAULT_$LINE" | |
5966 | else | |
5967 | no_cache=1 | |
5968 | fi | |
5969 | ||
5970 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5971 | ||
5972 | fi; | |
5973 | ||
5974 | eval "$ac_cv_use_textfile" | |
5975 | if test "$no_cache" != 1; then | |
5976 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5977 | fi | |
5978 | ||
5979 | if test "$wxUSE_TEXTFILE" = yes; then | |
5980 | echo "$as_me:$LINENO: result: yes" >&5 | |
5981 | echo "${ECHO_T}yes" >&6 | |
5982 | else | |
5983 | echo "$as_me:$LINENO: result: no" >&5 | |
5984 | echo "${ECHO_T}no" >&6 | |
5985 | fi | |
5986 | ||
5987 | ||
5988 | enablestring= | |
5989 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5990 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5991 | no_cache=0 | |
5992 | # Check whether --enable-timer or --disable-timer was given. | |
5993 | if test "${enable_timer+set}" = set; then | |
5994 | enableval="$enable_timer" | |
5995 | ||
5996 | if test "$enableval" = yes; then | |
5997 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5998 | else | |
5999 | ac_cv_use_timer='wxUSE_TIMER=no' | |
6000 | fi | |
6001 | ||
6002 | else | |
6003 | ||
6004 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
6005 | if test "x$LINE" != x ; then | |
6006 | eval "DEFAULT_$LINE" | |
6007 | else | |
6008 | no_cache=1 | |
6009 | fi | |
6010 | ||
6011 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
6012 | ||
6013 | fi; | |
6014 | ||
6015 | eval "$ac_cv_use_timer" | |
6016 | if test "$no_cache" != 1; then | |
6017 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
6018 | fi | |
6019 | ||
6020 | if test "$wxUSE_TIMER" = yes; then | |
6021 | echo "$as_me:$LINENO: result: yes" >&5 | |
6022 | echo "${ECHO_T}yes" >&6 | |
6023 | else | |
6024 | echo "$as_me:$LINENO: result: no" >&5 | |
6025 | echo "${ECHO_T}no" >&6 | |
6026 | fi | |
6027 | ||
6028 | ||
6029 | enablestring= | |
6030 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
6031 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
6032 | no_cache=0 | |
6033 | # Check whether --enable-unicode or --disable-unicode was given. | |
6034 | if test "${enable_unicode+set}" = set; then | |
6035 | enableval="$enable_unicode" | |
6036 | ||
6037 | if test "$enableval" = yes; then | |
6038 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
6039 | else | |
6040 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
6041 | fi | |
6042 | ||
6043 | else | |
6044 | ||
6045 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
6046 | if test "x$LINE" != x ; then | |
6047 | eval "DEFAULT_$LINE" | |
6048 | else | |
6049 | no_cache=1 | |
6050 | fi | |
6051 | ||
6052 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
6053 | ||
6054 | fi; | |
6055 | ||
6056 | eval "$ac_cv_use_unicode" | |
6057 | if test "$no_cache" != 1; then | |
6058 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6059 | fi | |
6060 | ||
6061 | if test "$wxUSE_UNICODE" = yes; then | |
6062 | echo "$as_me:$LINENO: result: yes" >&5 | |
6063 | echo "${ECHO_T}yes" >&6 | |
6064 | else | |
6065 | echo "$as_me:$LINENO: result: no" >&5 | |
6066 | echo "${ECHO_T}no" >&6 | |
6067 | fi | |
6068 | ||
6069 | ||
6070 | enablestring= | |
6071 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6072 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6073 | no_cache=0 | |
6074 | # Check whether --enable-sound or --disable-sound was given. | |
6075 | if test "${enable_sound+set}" = set; then | |
6076 | enableval="$enable_sound" | |
6077 | ||
6078 | if test "$enableval" = yes; then | |
6079 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6080 | else | |
6081 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6082 | fi | |
6083 | ||
6084 | else | |
6085 | ||
6086 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6087 | if test "x$LINE" != x ; then | |
6088 | eval "DEFAULT_$LINE" | |
6089 | else | |
6090 | no_cache=1 | |
6091 | fi | |
6092 | ||
6093 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6094 | ||
6095 | fi; | |
6096 | ||
6097 | eval "$ac_cv_use_sound" | |
6098 | if test "$no_cache" != 1; then | |
6099 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6100 | fi | |
6101 | ||
6102 | if test "$wxUSE_SOUND" = yes; then | |
6103 | echo "$as_me:$LINENO: result: yes" >&5 | |
6104 | echo "${ECHO_T}yes" >&6 | |
6105 | else | |
6106 | echo "$as_me:$LINENO: result: no" >&5 | |
6107 | echo "${ECHO_T}no" >&6 | |
6108 | fi | |
6109 | ||
6110 | ||
3b57de8b RL |
6111 | enablestring= |
6112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6113 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6114 | no_cache=0 | |
6115 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6116 | if test "${enable_mediactrl+set}" = set; then | |
6117 | enableval="$enable_mediactrl" | |
6118 | ||
6119 | if test "$enableval" = yes; then | |
6120 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6121 | else | |
6122 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6123 | fi | |
6124 | ||
6125 | else | |
6126 | ||
6127 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6128 | if test "x$LINE" != x ; then | |
6129 | eval "DEFAULT_$LINE" | |
6130 | else | |
6131 | no_cache=1 | |
6132 | fi | |
6133 | ||
6134 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6135 | ||
6136 | fi; | |
6137 | ||
6138 | eval "$ac_cv_use_mediactrl" | |
6139 | if test "$no_cache" != 1; then | |
6140 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6141 | fi | |
6142 | ||
6143 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6144 | echo "$as_me:$LINENO: result: yes" >&5 | |
6145 | echo "${ECHO_T}yes" >&6 | |
6146 | else | |
6147 | echo "$as_me:$LINENO: result: no" >&5 | |
6148 | echo "${ECHO_T}no" >&6 | |
6149 | fi | |
6150 | ||
6151 | ||
a848cd7e SC |
6152 | enablestring= |
6153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6154 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6155 | no_cache=0 | |
6156 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6157 | if test "${enable_wxprintfv+set}" = set; then | |
6158 | enableval="$enable_wxprintfv" | |
6159 | ||
6160 | if test "$enableval" = yes; then | |
6161 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6162 | else | |
6163 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6164 | fi | |
6165 | ||
6166 | else | |
6167 | ||
6168 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6169 | if test "x$LINE" != x ; then | |
6170 | eval "DEFAULT_$LINE" | |
6171 | else | |
6172 | no_cache=1 | |
6173 | fi | |
6174 | ||
6175 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6176 | ||
6177 | fi; | |
6178 | ||
6179 | eval "$ac_cv_use_wxprintfv" | |
6180 | if test "$no_cache" != 1; then | |
6181 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6182 | fi | |
6183 | ||
6184 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6185 | echo "$as_me:$LINENO: result: yes" >&5 | |
6186 | echo "${ECHO_T}yes" >&6 | |
6187 | else | |
6188 | echo "$as_me:$LINENO: result: no" >&5 | |
6189 | echo "${ECHO_T}no" >&6 | |
6190 | fi | |
6191 | ||
6192 | ||
6193 | enablestring= | |
6194 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6195 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6196 | no_cache=0 | |
6197 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6198 | if test "${enable_zipstream+set}" = set; then | |
6199 | enableval="$enable_zipstream" | |
6200 | ||
6201 | if test "$enableval" = yes; then | |
6202 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6203 | else | |
6204 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6205 | fi | |
6206 | ||
6207 | else | |
6208 | ||
6209 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6210 | if test "x$LINE" != x ; then | |
6211 | eval "DEFAULT_$LINE" | |
6212 | else | |
6213 | no_cache=1 | |
6214 | fi | |
6215 | ||
6216 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6217 | ||
6218 | fi; | |
6219 | ||
6220 | eval "$ac_cv_use_zipstream" | |
6221 | if test "$no_cache" != 1; then | |
6222 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6223 | fi | |
6224 | ||
6225 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6226 | echo "$as_me:$LINENO: result: yes" >&5 | |
6227 | echo "${ECHO_T}yes" >&6 | |
6228 | else | |
6229 | echo "$as_me:$LINENO: result: no" >&5 | |
6230 | echo "${ECHO_T}no" >&6 | |
6231 | fi | |
6232 | ||
6233 | ||
a848cd7e SC |
6234 | |
6235 | enablestring= | |
6236 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6237 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6238 | no_cache=0 | |
6239 | # Check whether --enable-url or --disable-url was given. | |
6240 | if test "${enable_url+set}" = set; then | |
6241 | enableval="$enable_url" | |
6242 | ||
6243 | if test "$enableval" = yes; then | |
6244 | ac_cv_use_url='wxUSE_URL=yes' | |
6245 | else | |
6246 | ac_cv_use_url='wxUSE_URL=no' | |
6247 | fi | |
6248 | ||
6249 | else | |
6250 | ||
6251 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6252 | if test "x$LINE" != x ; then | |
6253 | eval "DEFAULT_$LINE" | |
6254 | else | |
6255 | no_cache=1 | |
6256 | fi | |
6257 | ||
6258 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6259 | ||
6260 | fi; | |
6261 | ||
6262 | eval "$ac_cv_use_url" | |
6263 | if test "$no_cache" != 1; then | |
6264 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6265 | fi | |
6266 | ||
6267 | if test "$wxUSE_URL" = yes; then | |
6268 | echo "$as_me:$LINENO: result: yes" >&5 | |
6269 | echo "${ECHO_T}yes" >&6 | |
6270 | else | |
6271 | echo "$as_me:$LINENO: result: no" >&5 | |
6272 | echo "${ECHO_T}no" >&6 | |
6273 | fi | |
6274 | ||
6275 | ||
6276 | enablestring= | |
6277 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6278 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6279 | no_cache=0 | |
6280 | # Check whether --enable-protocol or --disable-protocol was given. | |
6281 | if test "${enable_protocol+set}" = set; then | |
6282 | enableval="$enable_protocol" | |
6283 | ||
6284 | if test "$enableval" = yes; then | |
6285 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6286 | else | |
6287 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6288 | fi | |
6289 | ||
6290 | else | |
6291 | ||
6292 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6293 | if test "x$LINE" != x ; then | |
6294 | eval "DEFAULT_$LINE" | |
6295 | else | |
6296 | no_cache=1 | |
6297 | fi | |
6298 | ||
6299 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6300 | ||
6301 | fi; | |
6302 | ||
6303 | eval "$ac_cv_use_protocol" | |
6304 | if test "$no_cache" != 1; then | |
6305 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6306 | fi | |
6307 | ||
6308 | if test "$wxUSE_PROTOCOL" = yes; then | |
6309 | echo "$as_me:$LINENO: result: yes" >&5 | |
6310 | echo "${ECHO_T}yes" >&6 | |
6311 | else | |
6312 | echo "$as_me:$LINENO: result: no" >&5 | |
6313 | echo "${ECHO_T}no" >&6 | |
6314 | fi | |
6315 | ||
6316 | ||
6317 | enablestring= | |
6318 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6319 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6320 | no_cache=0 | |
6321 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6322 | if test "${enable_protocol_http+set}" = set; then | |
6323 | enableval="$enable_protocol_http" | |
6324 | ||
6325 | if test "$enableval" = yes; then | |
6326 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6327 | else | |
6328 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6329 | fi | |
6330 | ||
6331 | else | |
6332 | ||
6333 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6334 | if test "x$LINE" != x ; then | |
6335 | eval "DEFAULT_$LINE" | |
6336 | else | |
6337 | no_cache=1 | |
6338 | fi | |
6339 | ||
6340 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6341 | ||
6342 | fi; | |
6343 | ||
6344 | eval "$ac_cv_use_protocol_http" | |
6345 | if test "$no_cache" != 1; then | |
6346 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6347 | fi | |
6348 | ||
6349 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6350 | echo "$as_me:$LINENO: result: yes" >&5 | |
6351 | echo "${ECHO_T}yes" >&6 | |
6352 | else | |
6353 | echo "$as_me:$LINENO: result: no" >&5 | |
6354 | echo "${ECHO_T}no" >&6 | |
6355 | fi | |
6356 | ||
6357 | ||
6358 | enablestring= | |
6359 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6360 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6361 | no_cache=0 | |
6362 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6363 | if test "${enable_protocol_ftp+set}" = set; then | |
6364 | enableval="$enable_protocol_ftp" | |
6365 | ||
6366 | if test "$enableval" = yes; then | |
6367 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6368 | else | |
6369 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6370 | fi | |
6371 | ||
6372 | else | |
6373 | ||
6374 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6375 | if test "x$LINE" != x ; then | |
6376 | eval "DEFAULT_$LINE" | |
6377 | else | |
6378 | no_cache=1 | |
6379 | fi | |
6380 | ||
6381 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6382 | ||
6383 | fi; | |
6384 | ||
6385 | eval "$ac_cv_use_protocol_ftp" | |
6386 | if test "$no_cache" != 1; then | |
6387 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6388 | fi | |
6389 | ||
6390 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6391 | echo "$as_me:$LINENO: result: yes" >&5 | |
6392 | echo "${ECHO_T}yes" >&6 | |
6393 | else | |
6394 | echo "$as_me:$LINENO: result: no" >&5 | |
6395 | echo "${ECHO_T}no" >&6 | |
6396 | fi | |
6397 | ||
6398 | ||
6399 | enablestring= | |
6400 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6401 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6402 | no_cache=0 | |
6403 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6404 | if test "${enable_protocol_file+set}" = set; then | |
6405 | enableval="$enable_protocol_file" | |
6406 | ||
6407 | if test "$enableval" = yes; then | |
6408 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6409 | else | |
6410 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6411 | fi | |
6412 | ||
6413 | else | |
6414 | ||
6415 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6416 | if test "x$LINE" != x ; then | |
6417 | eval "DEFAULT_$LINE" | |
6418 | else | |
6419 | no_cache=1 | |
6420 | fi | |
6421 | ||
6422 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6423 | ||
6424 | fi; | |
6425 | ||
6426 | eval "$ac_cv_use_protocol_file" | |
6427 | if test "$no_cache" != 1; then | |
6428 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6429 | fi | |
6430 | ||
6431 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6432 | echo "$as_me:$LINENO: result: yes" >&5 | |
6433 | echo "${ECHO_T}yes" >&6 | |
6434 | else | |
6435 | echo "$as_me:$LINENO: result: no" >&5 | |
6436 | echo "${ECHO_T}no" >&6 | |
6437 | fi | |
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | ||
6443 | enablestring= | |
6444 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6445 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6446 | no_cache=0 | |
6447 | # Check whether --enable-threads or --disable-threads was given. | |
6448 | if test "${enable_threads+set}" = set; then | |
6449 | enableval="$enable_threads" | |
6450 | ||
6451 | if test "$enableval" = yes; then | |
6452 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6453 | else | |
6454 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6455 | fi | |
6456 | ||
6457 | else | |
6458 | ||
6459 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6460 | if test "x$LINE" != x ; then | |
6461 | eval "DEFAULT_$LINE" | |
6462 | else | |
6463 | no_cache=1 | |
6464 | fi | |
6465 | ||
6466 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6467 | ||
6468 | fi; | |
6469 | ||
6470 | eval "$ac_cv_use_threads" | |
6471 | if test "$no_cache" != 1; then | |
6472 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6473 | fi | |
6474 | ||
6475 | if test "$wxUSE_THREADS" = yes; then | |
6476 | echo "$as_me:$LINENO: result: yes" >&5 | |
6477 | echo "${ECHO_T}yes" >&6 | |
6478 | else | |
6479 | echo "$as_me:$LINENO: result: no" >&5 | |
6480 | echo "${ECHO_T}no" >&6 | |
6481 | fi | |
6482 | ||
6483 | ||
6484 | if test "$wxUSE_GUI" = "yes"; then | |
6485 | ||
6486 | ||
6487 | ||
6488 | enablestring= | |
6489 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6490 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6491 | no_cache=0 | |
6492 | # Check whether --enable-docview or --disable-docview was given. | |
6493 | if test "${enable_docview+set}" = set; then | |
6494 | enableval="$enable_docview" | |
6495 | ||
6496 | if test "$enableval" = yes; then | |
6497 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6498 | else | |
6499 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6500 | fi | |
6501 | ||
6502 | else | |
6503 | ||
6504 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6505 | if test "x$LINE" != x ; then | |
6506 | eval "DEFAULT_$LINE" | |
6507 | else | |
6508 | no_cache=1 | |
6509 | fi | |
6510 | ||
6511 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6512 | ||
6513 | fi; | |
6514 | ||
6515 | eval "$ac_cv_use_docview" | |
6516 | if test "$no_cache" != 1; then | |
6517 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6518 | fi | |
6519 | ||
6520 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6521 | echo "$as_me:$LINENO: result: yes" >&5 | |
6522 | echo "${ECHO_T}yes" >&6 | |
6523 | else | |
6524 | echo "$as_me:$LINENO: result: no" >&5 | |
6525 | echo "${ECHO_T}no" >&6 | |
6526 | fi | |
6527 | ||
6528 | ||
6529 | enablestring= | |
6530 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6531 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6532 | no_cache=0 | |
6533 | # Check whether --enable-help or --disable-help was given. | |
6534 | if test "${enable_help+set}" = set; then | |
6535 | enableval="$enable_help" | |
6536 | ||
6537 | if test "$enableval" = yes; then | |
6538 | ac_cv_use_help='wxUSE_HELP=yes' | |
6539 | else | |
6540 | ac_cv_use_help='wxUSE_HELP=no' | |
6541 | fi | |
6542 | ||
6543 | else | |
6544 | ||
6545 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6546 | if test "x$LINE" != x ; then | |
6547 | eval "DEFAULT_$LINE" | |
6548 | else | |
6549 | no_cache=1 | |
6550 | fi | |
6551 | ||
6552 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6553 | ||
6554 | fi; | |
6555 | ||
6556 | eval "$ac_cv_use_help" | |
6557 | if test "$no_cache" != 1; then | |
6558 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6559 | fi | |
6560 | ||
6561 | if test "$wxUSE_HELP" = yes; then | |
6562 | echo "$as_me:$LINENO: result: yes" >&5 | |
6563 | echo "${ECHO_T}yes" >&6 | |
6564 | else | |
6565 | echo "$as_me:$LINENO: result: no" >&5 | |
6566 | echo "${ECHO_T}no" >&6 | |
6567 | fi | |
6568 | ||
6569 | ||
6570 | enablestring= | |
6571 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6572 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6573 | no_cache=0 | |
6574 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6575 | if test "${enable_mshtmlhelp+set}" = set; then | |
6576 | enableval="$enable_mshtmlhelp" | |
6577 | ||
6578 | if test "$enableval" = yes; then | |
6579 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6580 | else | |
6581 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6582 | fi | |
6583 | ||
6584 | else | |
6585 | ||
6586 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6587 | if test "x$LINE" != x ; then | |
6588 | eval "DEFAULT_$LINE" | |
6589 | else | |
6590 | no_cache=1 | |
6591 | fi | |
6592 | ||
6593 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6594 | ||
6595 | fi; | |
6596 | ||
6597 | eval "$ac_cv_use_mshtmlhelp" | |
6598 | if test "$no_cache" != 1; then | |
6599 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6600 | fi | |
6601 | ||
6602 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6603 | echo "$as_me:$LINENO: result: yes" >&5 | |
6604 | echo "${ECHO_T}yes" >&6 | |
6605 | else | |
6606 | echo "$as_me:$LINENO: result: no" >&5 | |
6607 | echo "${ECHO_T}no" >&6 | |
6608 | fi | |
6609 | ||
6610 | ||
6611 | enablestring= | |
6612 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6613 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6614 | no_cache=0 | |
6615 | # Check whether --enable-html or --disable-html was given. | |
6616 | if test "${enable_html+set}" = set; then | |
6617 | enableval="$enable_html" | |
6618 | ||
6619 | if test "$enableval" = yes; then | |
6620 | ac_cv_use_html='wxUSE_HTML=yes' | |
6621 | else | |
6622 | ac_cv_use_html='wxUSE_HTML=no' | |
6623 | fi | |
6624 | ||
6625 | else | |
6626 | ||
6627 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6628 | if test "x$LINE" != x ; then | |
6629 | eval "DEFAULT_$LINE" | |
6630 | else | |
6631 | no_cache=1 | |
6632 | fi | |
6633 | ||
6634 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6635 | ||
6636 | fi; | |
6637 | ||
6638 | eval "$ac_cv_use_html" | |
6639 | if test "$no_cache" != 1; then | |
6640 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6641 | fi | |
6642 | ||
6643 | if test "$wxUSE_HTML" = yes; then | |
6644 | echo "$as_me:$LINENO: result: yes" >&5 | |
6645 | echo "${ECHO_T}yes" >&6 | |
6646 | else | |
6647 | echo "$as_me:$LINENO: result: no" >&5 | |
6648 | echo "${ECHO_T}no" >&6 | |
6649 | fi | |
6650 | ||
6651 | ||
6652 | enablestring= | |
6653 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6654 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6655 | no_cache=0 | |
6656 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6657 | if test "${enable_htmlhelp+set}" = set; then | |
6658 | enableval="$enable_htmlhelp" | |
6659 | ||
6660 | if test "$enableval" = yes; then | |
6661 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6662 | else | |
6663 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6664 | fi | |
6665 | ||
6666 | else | |
6667 | ||
6668 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6669 | if test "x$LINE" != x ; then | |
6670 | eval "DEFAULT_$LINE" | |
6671 | else | |
6672 | no_cache=1 | |
6673 | fi | |
6674 | ||
6675 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6676 | ||
6677 | fi; | |
6678 | ||
6679 | eval "$ac_cv_use_htmlhelp" | |
6680 | if test "$no_cache" != 1; then | |
6681 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6682 | fi | |
6683 | ||
6684 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6685 | echo "$as_me:$LINENO: result: yes" >&5 | |
6686 | echo "${ECHO_T}yes" >&6 | |
6687 | else | |
6688 | echo "$as_me:$LINENO: result: no" >&5 | |
6689 | echo "${ECHO_T}no" >&6 | |
6690 | fi | |
6691 | ||
6692 | ||
9a8f0513 VS |
6693 | enablestring= |
6694 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6695 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6696 | no_cache=0 | |
6697 | # Check whether --enable-xrc or --disable-xrc was given. | |
6698 | if test "${enable_xrc+set}" = set; then | |
6699 | enableval="$enable_xrc" | |
6700 | ||
6701 | if test "$enableval" = yes; then | |
6702 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6703 | else | |
6704 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6705 | fi | |
6706 | ||
6707 | else | |
6708 | ||
6709 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6710 | if test "x$LINE" != x ; then | |
6711 | eval "DEFAULT_$LINE" | |
6712 | else | |
6713 | no_cache=1 | |
6714 | fi | |
6715 | ||
6716 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6717 | ||
6718 | fi; | |
6719 | ||
6720 | eval "$ac_cv_use_xrc" | |
6721 | if test "$no_cache" != 1; then | |
6722 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6723 | fi | |
6724 | ||
6725 | if test "$wxUSE_XRC" = yes; then | |
6726 | echo "$as_me:$LINENO: result: yes" >&5 | |
6727 | echo "${ECHO_T}yes" >&6 | |
6728 | else | |
6729 | echo "$as_me:$LINENO: result: no" >&5 | |
6730 | echo "${ECHO_T}no" >&6 | |
6731 | fi | |
6732 | ||
6733 | ||
a848cd7e SC |
6734 | enablestring= |
6735 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6736 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6737 | no_cache=0 | |
6738 | # Check whether --enable-constraints or --disable-constraints was given. | |
6739 | if test "${enable_constraints+set}" = set; then | |
6740 | enableval="$enable_constraints" | |
6741 | ||
6742 | if test "$enableval" = yes; then | |
6743 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6744 | else | |
6745 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6746 | fi | |
6747 | ||
6748 | else | |
6749 | ||
6750 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6751 | if test "x$LINE" != x ; then | |
6752 | eval "DEFAULT_$LINE" | |
6753 | else | |
6754 | no_cache=1 | |
6755 | fi | |
6756 | ||
6757 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6758 | ||
6759 | fi; | |
6760 | ||
6761 | eval "$ac_cv_use_constraints" | |
6762 | if test "$no_cache" != 1; then | |
6763 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6764 | fi | |
6765 | ||
6766 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6767 | echo "$as_me:$LINENO: result: yes" >&5 | |
6768 | echo "${ECHO_T}yes" >&6 | |
6769 | else | |
6770 | echo "$as_me:$LINENO: result: no" >&5 | |
6771 | echo "${ECHO_T}no" >&6 | |
6772 | fi | |
6773 | ||
6774 | ||
6775 | enablestring= | |
6776 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6777 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6778 | no_cache=0 | |
6779 | # Check whether --enable-printarch or --disable-printarch was given. | |
6780 | if test "${enable_printarch+set}" = set; then | |
6781 | enableval="$enable_printarch" | |
6782 | ||
6783 | if test "$enableval" = yes; then | |
6784 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6785 | else | |
6786 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6787 | fi | |
6788 | ||
6789 | else | |
6790 | ||
6791 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6792 | if test "x$LINE" != x ; then | |
6793 | eval "DEFAULT_$LINE" | |
6794 | else | |
6795 | no_cache=1 | |
6796 | fi | |
6797 | ||
6798 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6799 | ||
6800 | fi; | |
6801 | ||
6802 | eval "$ac_cv_use_printarch" | |
6803 | if test "$no_cache" != 1; then | |
6804 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6805 | fi | |
6806 | ||
6807 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6808 | echo "$as_me:$LINENO: result: yes" >&5 | |
6809 | echo "${ECHO_T}yes" >&6 | |
6810 | else | |
6811 | echo "$as_me:$LINENO: result: no" >&5 | |
6812 | echo "${ECHO_T}no" >&6 | |
6813 | fi | |
6814 | ||
6815 | ||
6816 | enablestring= | |
6817 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6818 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6819 | no_cache=0 | |
6820 | # Check whether --enable-mdi or --disable-mdi was given. | |
6821 | if test "${enable_mdi+set}" = set; then | |
6822 | enableval="$enable_mdi" | |
6823 | ||
6824 | if test "$enableval" = yes; then | |
8a7b1113 | 6825 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6826 | else |
8a7b1113 | 6827 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6828 | fi |
6829 | ||
6830 | else | |
6831 | ||
8a7b1113 | 6832 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6833 | if test "x$LINE" != x ; then |
6834 | eval "DEFAULT_$LINE" | |
6835 | else | |
6836 | no_cache=1 | |
6837 | fi | |
6838 | ||
8a7b1113 | 6839 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6840 | |
6841 | fi; | |
6842 | ||
6843 | eval "$ac_cv_use_mdi" | |
6844 | if test "$no_cache" != 1; then | |
6845 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6846 | fi | |
6847 | ||
8a7b1113 VZ |
6848 | if test "$wxUSE_MDI" = yes; then |
6849 | echo "$as_me:$LINENO: result: yes" >&5 | |
6850 | echo "${ECHO_T}yes" >&6 | |
6851 | else | |
6852 | echo "$as_me:$LINENO: result: no" >&5 | |
6853 | echo "${ECHO_T}no" >&6 | |
6854 | fi | |
6855 | ||
6856 | ||
6857 | enablestring= | |
6858 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6859 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6860 | no_cache=0 | |
6861 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6862 | if test "${enable_mdidoc+set}" = set; then | |
6863 | enableval="$enable_mdidoc" | |
6864 | ||
6865 | if test "$enableval" = yes; then | |
6866 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6867 | else | |
6868 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6869 | fi | |
6870 | ||
6871 | else | |
6872 | ||
6873 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6874 | if test "x$LINE" != x ; then | |
6875 | eval "DEFAULT_$LINE" | |
6876 | else | |
6877 | no_cache=1 | |
6878 | fi | |
6879 | ||
6880 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6881 | ||
6882 | fi; | |
6883 | ||
6884 | eval "$ac_cv_use_mdidoc" | |
6885 | if test "$no_cache" != 1; then | |
6886 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6887 | fi | |
6888 | ||
a848cd7e SC |
6889 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6890 | echo "$as_me:$LINENO: result: yes" >&5 | |
6891 | echo "${ECHO_T}yes" >&6 | |
6892 | else | |
6893 | echo "$as_me:$LINENO: result: no" >&5 | |
6894 | echo "${ECHO_T}no" >&6 | |
6895 | fi | |
6896 | ||
6897 | ||
6898 | enablestring= | |
6899 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6900 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6901 | no_cache=0 | |
6902 | # Check whether --enable-loggui or --disable-loggui was given. | |
6903 | if test "${enable_loggui+set}" = set; then | |
6904 | enableval="$enable_loggui" | |
6905 | ||
6906 | if test "$enableval" = yes; then | |
6907 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6908 | else | |
6909 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6910 | fi | |
6911 | ||
6912 | else | |
6913 | ||
6914 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6915 | if test "x$LINE" != x ; then | |
6916 | eval "DEFAULT_$LINE" | |
6917 | else | |
6918 | no_cache=1 | |
6919 | fi | |
6920 | ||
6921 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6922 | ||
6923 | fi; | |
6924 | ||
6925 | eval "$ac_cv_use_loggui" | |
6926 | if test "$no_cache" != 1; then | |
6927 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6928 | fi | |
6929 | ||
6930 | if test "$wxUSE_LOGGUI" = yes; then | |
6931 | echo "$as_me:$LINENO: result: yes" >&5 | |
6932 | echo "${ECHO_T}yes" >&6 | |
6933 | else | |
6934 | echo "$as_me:$LINENO: result: no" >&5 | |
6935 | echo "${ECHO_T}no" >&6 | |
6936 | fi | |
6937 | ||
6938 | ||
6939 | enablestring= | |
6940 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6941 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6942 | no_cache=0 | |
6943 | # Check whether --enable-logwin or --disable-logwin was given. | |
6944 | if test "${enable_logwin+set}" = set; then | |
6945 | enableval="$enable_logwin" | |
6946 | ||
6947 | if test "$enableval" = yes; then | |
6948 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6949 | else | |
6950 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6951 | fi | |
6952 | ||
6953 | else | |
6954 | ||
6955 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6956 | if test "x$LINE" != x ; then | |
6957 | eval "DEFAULT_$LINE" | |
6958 | else | |
6959 | no_cache=1 | |
6960 | fi | |
6961 | ||
6962 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6963 | ||
6964 | fi; | |
6965 | ||
6966 | eval "$ac_cv_use_logwin" | |
6967 | if test "$no_cache" != 1; then | |
6968 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6969 | fi | |
6970 | ||
6971 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6972 | echo "$as_me:$LINENO: result: yes" >&5 | |
6973 | echo "${ECHO_T}yes" >&6 | |
6974 | else | |
6975 | echo "$as_me:$LINENO: result: no" >&5 | |
6976 | echo "${ECHO_T}no" >&6 | |
6977 | fi | |
6978 | ||
6979 | ||
6980 | enablestring= | |
6981 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6982 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6983 | no_cache=0 | |
6984 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6985 | if test "${enable_logdialog+set}" = set; then | |
6986 | enableval="$enable_logdialog" | |
6987 | ||
6988 | if test "$enableval" = yes; then | |
6989 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6990 | else | |
6991 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6992 | fi | |
6993 | ||
6994 | else | |
6995 | ||
6996 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6997 | if test "x$LINE" != x ; then | |
6998 | eval "DEFAULT_$LINE" | |
6999 | else | |
7000 | no_cache=1 | |
7001 | fi | |
7002 | ||
7003 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
7004 | ||
7005 | fi; | |
7006 | ||
7007 | eval "$ac_cv_use_logdialog" | |
7008 | if test "$no_cache" != 1; then | |
7009 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
7010 | fi | |
7011 | ||
7012 | if test "$wxUSE_LOGDIALOG" = yes; then | |
7013 | echo "$as_me:$LINENO: result: yes" >&5 | |
7014 | echo "${ECHO_T}yes" >&6 | |
7015 | else | |
7016 | echo "$as_me:$LINENO: result: no" >&5 | |
7017 | echo "${ECHO_T}no" >&6 | |
7018 | fi | |
7019 | ||
7020 | ||
646b6ec1 VS |
7021 | enablestring= |
7022 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
7023 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
7024 | no_cache=0 | |
7025 | # Check whether --enable-webkit or --disable-webkit was given. | |
7026 | if test "${enable_webkit+set}" = set; then | |
7027 | enableval="$enable_webkit" | |
7028 | ||
7029 | if test "$enableval" = yes; then | |
7030 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
7031 | else | |
7032 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
7033 | fi | |
7034 | ||
7035 | else | |
7036 | ||
7037 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
7038 | if test "x$LINE" != x ; then | |
7039 | eval "DEFAULT_$LINE" | |
7040 | else | |
7041 | no_cache=1 | |
7042 | fi | |
7043 | ||
7044 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
7045 | ||
7046 | fi; | |
7047 | ||
7048 | eval "$ac_cv_use_webkit" | |
7049 | if test "$no_cache" != 1; then | |
7050 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
7051 | fi | |
7052 | ||
7053 | if test "$wxUSE_WEBKIT" = yes; then | |
7054 | echo "$as_me:$LINENO: result: yes" >&5 | |
7055 | echo "${ECHO_T}yes" >&6 | |
7056 | else | |
7057 | echo "$as_me:$LINENO: result: no" >&5 | |
7058 | echo "${ECHO_T}no" >&6 | |
7059 | fi | |
7060 | ||
7061 | ||
91dea314 MW |
7062 | enablestring= |
7063 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
7064 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
7065 | no_cache=0 | |
7066 | # Check whether --enable-html or --disable-html was given. | |
7067 | if test "${enable_html+set}" = set; then | |
7068 | enableval="$enable_html" | |
7069 | ||
7070 | if test "$enableval" = yes; then | |
7071 | ac_cv_use_html='wxUSE_RICHTEXT=yes' | |
7072 | else | |
7073 | ac_cv_use_html='wxUSE_RICHTEXT=no' | |
7074 | fi | |
7075 | ||
7076 | else | |
7077 | ||
7078 | LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}` | |
7079 | if test "x$LINE" != x ; then | |
7080 | eval "DEFAULT_$LINE" | |
7081 | else | |
7082 | no_cache=1 | |
7083 | fi | |
7084 | ||
7085 | ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT | |
7086 | ||
7087 | fi; | |
7088 | ||
7089 | eval "$ac_cv_use_html" | |
7090 | if test "$no_cache" != 1; then | |
7091 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
7092 | fi | |
7093 | ||
7094 | if test "$wxUSE_RICHTEXT" = yes; then | |
7095 | echo "$as_me:$LINENO: result: yes" >&5 | |
7096 | echo "${ECHO_T}yes" >&6 | |
7097 | else | |
7098 | echo "$as_me:$LINENO: result: no" >&5 | |
7099 | echo "${ECHO_T}no" >&6 | |
7100 | fi | |
7101 | ||
7102 | ||
a848cd7e SC |
7103 | |
7104 | enablestring= | |
7105 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7106 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7107 | no_cache=0 | |
7108 | # Check whether --enable-postscript or --disable-postscript was given. | |
7109 | if test "${enable_postscript+set}" = set; then | |
7110 | enableval="$enable_postscript" | |
7111 | ||
7112 | if test "$enableval" = yes; then | |
7113 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7114 | else | |
7115 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7116 | fi | |
7117 | ||
7118 | else | |
7119 | ||
7120 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7121 | if test "x$LINE" != x ; then | |
7122 | eval "DEFAULT_$LINE" | |
7123 | else | |
7124 | no_cache=1 | |
7125 | fi | |
7126 | ||
7127 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7128 | ||
7129 | fi; | |
7130 | ||
7131 | eval "$ac_cv_use_postscript" | |
7132 | if test "$no_cache" != 1; then | |
7133 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7134 | fi | |
7135 | ||
7136 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7137 | echo "$as_me:$LINENO: result: yes" >&5 | |
7138 | echo "${ECHO_T}yes" >&6 | |
7139 | else | |
7140 | echo "$as_me:$LINENO: result: no" >&5 | |
7141 | echo "${ECHO_T}no" >&6 | |
7142 | fi | |
7143 | ||
7144 | ||
7145 | ||
7146 | ||
7147 | ||
7148 | enablestring= | |
7149 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7150 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7151 | no_cache=0 | |
7152 | # Check whether --enable-prologio or --disable-prologio was given. | |
7153 | if test "${enable_prologio+set}" = set; then | |
7154 | enableval="$enable_prologio" | |
7155 | ||
7156 | if test "$enableval" = yes; then | |
7157 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7158 | else | |
7159 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7160 | fi | |
7161 | ||
7162 | else | |
7163 | ||
7164 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7165 | if test "x$LINE" != x ; then | |
7166 | eval "DEFAULT_$LINE" | |
7167 | else | |
7168 | no_cache=1 | |
7169 | fi | |
7170 | ||
7171 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7172 | ||
7173 | fi; | |
7174 | ||
7175 | eval "$ac_cv_use_prologio" | |
7176 | if test "$no_cache" != 1; then | |
7177 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7178 | fi | |
7179 | ||
7180 | if test "$wxUSE_PROLOGIO" = yes; then | |
7181 | echo "$as_me:$LINENO: result: yes" >&5 | |
7182 | echo "${ECHO_T}yes" >&6 | |
7183 | else | |
7184 | echo "$as_me:$LINENO: result: no" >&5 | |
7185 | echo "${ECHO_T}no" >&6 | |
7186 | fi | |
7187 | ||
7188 | ||
7189 | enablestring= | |
7190 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7191 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7192 | no_cache=0 | |
7193 | # Check whether --enable-resources or --disable-resources was given. | |
7194 | if test "${enable_resources+set}" = set; then | |
7195 | enableval="$enable_resources" | |
7196 | ||
7197 | if test "$enableval" = yes; then | |
7198 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7199 | else | |
7200 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7201 | fi | |
7202 | ||
7203 | else | |
7204 | ||
7205 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7206 | if test "x$LINE" != x ; then | |
7207 | eval "DEFAULT_$LINE" | |
7208 | else | |
7209 | no_cache=1 | |
7210 | fi | |
7211 | ||
7212 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7213 | ||
7214 | fi; | |
7215 | ||
7216 | eval "$ac_cv_use_resources" | |
7217 | if test "$no_cache" != 1; then | |
7218 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7219 | fi | |
7220 | ||
7221 | if test "$wxUSE_RESOURCES" = yes; then | |
7222 | echo "$as_me:$LINENO: result: yes" >&5 | |
7223 | echo "${ECHO_T}yes" >&6 | |
7224 | else | |
7225 | echo "$as_me:$LINENO: result: no" >&5 | |
7226 | echo "${ECHO_T}no" >&6 | |
7227 | fi | |
7228 | ||
7229 | ||
7230 | ||
7231 | ||
7232 | enablestring= | |
7233 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7234 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7235 | no_cache=0 | |
7236 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7237 | if test "${enable_clipboard+set}" = set; then | |
7238 | enableval="$enable_clipboard" | |
7239 | ||
7240 | if test "$enableval" = yes; then | |
7241 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7242 | else | |
7243 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7244 | fi | |
7245 | ||
7246 | else | |
7247 | ||
7248 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7249 | if test "x$LINE" != x ; then | |
7250 | eval "DEFAULT_$LINE" | |
7251 | else | |
7252 | no_cache=1 | |
7253 | fi | |
7254 | ||
7255 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7256 | ||
7257 | fi; | |
7258 | ||
7259 | eval "$ac_cv_use_clipboard" | |
7260 | if test "$no_cache" != 1; then | |
7261 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7262 | fi | |
7263 | ||
7264 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7265 | echo "$as_me:$LINENO: result: yes" >&5 | |
7266 | echo "${ECHO_T}yes" >&6 | |
7267 | else | |
7268 | echo "$as_me:$LINENO: result: no" >&5 | |
7269 | echo "${ECHO_T}no" >&6 | |
7270 | fi | |
7271 | ||
7272 | ||
7273 | enablestring= | |
7274 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7275 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7276 | no_cache=0 | |
7277 | # Check whether --enable-dnd or --disable-dnd was given. | |
7278 | if test "${enable_dnd+set}" = set; then | |
7279 | enableval="$enable_dnd" | |
7280 | ||
7281 | if test "$enableval" = yes; then | |
7282 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7283 | else | |
7284 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7285 | fi | |
7286 | ||
7287 | else | |
7288 | ||
7289 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7290 | if test "x$LINE" != x ; then | |
7291 | eval "DEFAULT_$LINE" | |
7292 | else | |
7293 | no_cache=1 | |
7294 | fi | |
7295 | ||
7296 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7297 | ||
7298 | fi; | |
7299 | ||
7300 | eval "$ac_cv_use_dnd" | |
7301 | if test "$no_cache" != 1; then | |
7302 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7303 | fi | |
7304 | ||
7305 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7306 | echo "$as_me:$LINENO: result: yes" >&5 | |
7307 | echo "${ECHO_T}yes" >&6 | |
7308 | else | |
7309 | echo "$as_me:$LINENO: result: no" >&5 | |
7310 | echo "${ECHO_T}no" >&6 | |
7311 | fi | |
7312 | ||
7313 | ||
7314 | enablestring= | |
7315 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7316 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7317 | no_cache=0 | |
7318 | # Check whether --enable-metafile or --disable-metafile was given. | |
7319 | if test "${enable_metafile+set}" = set; then | |
7320 | enableval="$enable_metafile" | |
7321 | ||
7322 | if test "$enableval" = yes; then | |
7323 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7324 | else | |
7325 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7326 | fi | |
7327 | ||
7328 | else | |
7329 | ||
7330 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7331 | if test "x$LINE" != x ; then | |
7332 | eval "DEFAULT_$LINE" | |
7333 | else | |
7334 | no_cache=1 | |
7335 | fi | |
7336 | ||
7337 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7338 | ||
7339 | fi; | |
7340 | ||
7341 | eval "$ac_cv_use_metafile" | |
7342 | if test "$no_cache" != 1; then | |
7343 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7344 | fi | |
7345 | ||
7346 | if test "$wxUSE_METAFILE" = yes; then | |
7347 | echo "$as_me:$LINENO: result: yes" >&5 | |
7348 | echo "${ECHO_T}yes" >&6 | |
7349 | else | |
7350 | echo "$as_me:$LINENO: result: no" >&5 | |
7351 | echo "${ECHO_T}no" >&6 | |
7352 | fi | |
7353 | ||
7354 | ||
7355 | ||
7356 | ||
7357 | ||
7358 | enablestring= | |
7359 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7360 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7361 | no_cache=0 | |
7362 | # Check whether --enable-controls or --disable-controls was given. | |
7363 | if test "${enable_controls+set}" = set; then | |
7364 | enableval="$enable_controls" | |
7365 | ||
7366 | if test "$enableval" = yes; then | |
7367 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7368 | else | |
7369 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7370 | fi | |
7371 | ||
7372 | else | |
7373 | ||
7374 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7375 | if test "x$LINE" != x ; then | |
7376 | eval "DEFAULT_$LINE" | |
7377 | else | |
7378 | no_cache=1 | |
7379 | fi | |
7380 | ||
7381 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7382 | ||
7383 | fi; | |
7384 | ||
7385 | eval "$ac_cv_use_controls" | |
7386 | if test "$no_cache" != 1; then | |
7387 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7388 | fi | |
7389 | ||
7390 | if test "$wxUSE_CONTROLS" = yes; then | |
7391 | echo "$as_me:$LINENO: result: yes" >&5 | |
7392 | echo "${ECHO_T}yes" >&6 | |
7393 | else | |
7394 | echo "$as_me:$LINENO: result: no" >&5 | |
7395 | echo "${ECHO_T}no" >&6 | |
7396 | fi | |
7397 | ||
7398 | ||
7399 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7400 | DEFAULT_wxUSE_ACCEL=yes | |
7401 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7402 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7403 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7404 | DEFAULT_wxUSE_CARET=yes |
7405 | DEFAULT_wxUSE_COMBOBOX=yes | |
7406 | DEFAULT_wxUSE_CHECKBOX=yes | |
7407 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7408 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7409 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7410 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7411 | DEFAULT_wxUSE_GAUGE=yes |
7412 | DEFAULT_wxUSE_GRID=yes | |
20e34ecc | 7413 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7414 | DEFAULT_wxUSE_IMAGLIST=yes |
7415 | DEFAULT_wxUSE_LISTBOOK=yes | |
7416 | DEFAULT_wxUSE_LISTBOX=yes | |
7417 | DEFAULT_wxUSE_LISTCTRL=yes | |
7418 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7419 | DEFAULT_wxUSE_RADIOBOX=yes | |
7420 | DEFAULT_wxUSE_RADIOBTN=yes | |
7421 | DEFAULT_wxUSE_SASH=yes | |
7422 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7423 | DEFAULT_wxUSE_SLIDER=yes | |
7424 | DEFAULT_wxUSE_SPINBTN=yes | |
7425 | DEFAULT_wxUSE_SPINCTRL=yes | |
7426 | DEFAULT_wxUSE_SPLITTER=yes | |
7427 | DEFAULT_wxUSE_STATBMP=yes | |
7428 | DEFAULT_wxUSE_STATBOX=yes | |
7429 | DEFAULT_wxUSE_STATLINE=yes | |
7430 | DEFAULT_wxUSE_STATUSBAR=yes | |
7431 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7432 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7433 | DEFAULT_wxUSE_TOOLBAR=yes | |
7434 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7435 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7436 | DEFAULT_wxUSE_TOOLTIPS=yes | |
0093c2fc | 7437 | DEFAULT_wxUSE_TREEBOOK=yes |
a848cd7e SC |
7438 | DEFAULT_wxUSE_TREECTRL=yes |
7439 | DEFAULT_wxUSE_POPUPWIN=yes | |
7440 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7441 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7442 | DEFAULT_wxUSE_ACCEL=no | |
7443 | DEFAULT_wxUSE_BMPBUTTON=no | |
7444 | DEFAULT_wxUSE_BUTTON=no | |
7445 | DEFAULT_wxUSE_CALCTRL=no | |
7446 | DEFAULT_wxUSE_CARET=no | |
7447 | DEFAULT_wxUSE_COMBOBOX=no | |
7448 | DEFAULT_wxUSE_CHECKBOX=no | |
7449 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7450 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7451 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7452 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7453 | DEFAULT_wxUSE_GAUGE=no |
7454 | DEFAULT_wxUSE_GRID=no | |
20e34ecc | 7455 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7456 | DEFAULT_wxUSE_IMAGLIST=no |
7457 | DEFAULT_wxUSE_LISTBOOK=no | |
7458 | DEFAULT_wxUSE_LISTBOX=no | |
7459 | DEFAULT_wxUSE_LISTCTRL=no | |
7460 | DEFAULT_wxUSE_NOTEBOOK=no | |
7461 | DEFAULT_wxUSE_RADIOBOX=no | |
7462 | DEFAULT_wxUSE_RADIOBTN=no | |
7463 | DEFAULT_wxUSE_SASH=no | |
7464 | DEFAULT_wxUSE_SCROLLBAR=no | |
7465 | DEFAULT_wxUSE_SLIDER=no | |
7466 | DEFAULT_wxUSE_SPINBTN=no | |
7467 | DEFAULT_wxUSE_SPINCTRL=no | |
7468 | DEFAULT_wxUSE_SPLITTER=no | |
7469 | DEFAULT_wxUSE_STATBMP=no | |
7470 | DEFAULT_wxUSE_STATBOX=no | |
7471 | DEFAULT_wxUSE_STATLINE=no | |
7472 | DEFAULT_wxUSE_STATUSBAR=no | |
7473 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7474 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7475 | DEFAULT_wxUSE_TOOLBAR=no | |
7476 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7477 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7478 | DEFAULT_wxUSE_TOOLTIPS=no | |
0093c2fc | 7479 | DEFAULT_wxUSE_TREEBOOK=no |
a848cd7e SC |
7480 | DEFAULT_wxUSE_TREECTRL=no |
7481 | DEFAULT_wxUSE_POPUPWIN=no | |
7482 | DEFAULT_wxUSE_TIPWINDOW=no | |
7483 | fi | |
7484 | ||
a848cd7e SC |
7485 | |
7486 | enablestring= | |
7487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7488 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7489 | no_cache=0 | |
7490 | # Check whether --enable-accel or --disable-accel was given. | |
7491 | if test "${enable_accel+set}" = set; then | |
7492 | enableval="$enable_accel" | |
7493 | ||
7494 | if test "$enableval" = yes; then | |
7495 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7496 | else | |
7497 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7498 | fi | |
7499 | ||
7500 | else | |
7501 | ||
7502 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7503 | if test "x$LINE" != x ; then | |
7504 | eval "DEFAULT_$LINE" | |
7505 | else | |
7506 | no_cache=1 | |
7507 | fi | |
7508 | ||
7509 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7510 | ||
7511 | fi; | |
7512 | ||
7513 | eval "$ac_cv_use_accel" | |
7514 | if test "$no_cache" != 1; then | |
7515 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7516 | fi | |
7517 | ||
7518 | if test "$wxUSE_ACCEL" = yes; then | |
7519 | echo "$as_me:$LINENO: result: yes" >&5 | |
7520 | echo "${ECHO_T}yes" >&6 | |
7521 | else | |
7522 | echo "$as_me:$LINENO: result: no" >&5 | |
7523 | echo "${ECHO_T}no" >&6 | |
7524 | fi | |
7525 | ||
7526 | ||
7527 | enablestring= | |
7528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7529 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7530 | no_cache=0 | |
7531 | # Check whether --enable-button or --disable-button was given. | |
7532 | if test "${enable_button+set}" = set; then | |
7533 | enableval="$enable_button" | |
7534 | ||
7535 | if test "$enableval" = yes; then | |
7536 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7537 | else | |
7538 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7539 | fi | |
7540 | ||
7541 | else | |
7542 | ||
7543 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7544 | if test "x$LINE" != x ; then | |
7545 | eval "DEFAULT_$LINE" | |
7546 | else | |
7547 | no_cache=1 | |
7548 | fi | |
7549 | ||
7550 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7551 | ||
7552 | fi; | |
7553 | ||
7554 | eval "$ac_cv_use_button" | |
7555 | if test "$no_cache" != 1; then | |
7556 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7557 | fi | |
7558 | ||
7559 | if test "$wxUSE_BUTTON" = yes; then | |
7560 | echo "$as_me:$LINENO: result: yes" >&5 | |
7561 | echo "${ECHO_T}yes" >&6 | |
7562 | else | |
7563 | echo "$as_me:$LINENO: result: no" >&5 | |
7564 | echo "${ECHO_T}no" >&6 | |
7565 | fi | |
7566 | ||
7567 | ||
7568 | enablestring= | |
7569 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7570 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7571 | no_cache=0 | |
7572 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7573 | if test "${enable_bmpbutton+set}" = set; then | |
7574 | enableval="$enable_bmpbutton" | |
7575 | ||
7576 | if test "$enableval" = yes; then | |
7577 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7578 | else | |
7579 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7580 | fi | |
7581 | ||
7582 | else | |
7583 | ||
7584 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7585 | if test "x$LINE" != x ; then | |
7586 | eval "DEFAULT_$LINE" | |
7587 | else | |
7588 | no_cache=1 | |
7589 | fi | |
7590 | ||
7591 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7592 | ||
7593 | fi; | |
7594 | ||
7595 | eval "$ac_cv_use_bmpbutton" | |
7596 | if test "$no_cache" != 1; then | |
7597 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7598 | fi | |
7599 | ||
7600 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7601 | echo "$as_me:$LINENO: result: yes" >&5 | |
7602 | echo "${ECHO_T}yes" >&6 | |
7603 | else | |
7604 | echo "$as_me:$LINENO: result: no" >&5 | |
7605 | echo "${ECHO_T}no" >&6 | |
7606 | fi | |
7607 | ||
7608 | ||
7609 | enablestring= | |
7610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7611 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7612 | no_cache=0 | |
7613 | # Check whether --enable-calendar or --disable-calendar was given. | |
7614 | if test "${enable_calendar+set}" = set; then | |
7615 | enableval="$enable_calendar" | |
7616 | ||
7617 | if test "$enableval" = yes; then | |
7618 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7619 | else | |
7620 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7621 | fi | |
7622 | ||
7623 | else | |
7624 | ||
7625 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7626 | if test "x$LINE" != x ; then | |
7627 | eval "DEFAULT_$LINE" | |
7628 | else | |
7629 | no_cache=1 | |
7630 | fi | |
7631 | ||
7632 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7633 | ||
7634 | fi; | |
7635 | ||
7636 | eval "$ac_cv_use_calendar" | |
7637 | if test "$no_cache" != 1; then | |
7638 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7639 | fi | |
7640 | ||
7641 | if test "$wxUSE_CALCTRL" = yes; then | |
7642 | echo "$as_me:$LINENO: result: yes" >&5 | |
7643 | echo "${ECHO_T}yes" >&6 | |
7644 | else | |
7645 | echo "$as_me:$LINENO: result: no" >&5 | |
7646 | echo "${ECHO_T}no" >&6 | |
7647 | fi | |
7648 | ||
7649 | ||
7650 | enablestring= | |
7651 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7652 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7653 | no_cache=0 | |
7654 | # Check whether --enable-caret or --disable-caret was given. | |
7655 | if test "${enable_caret+set}" = set; then | |
7656 | enableval="$enable_caret" | |
7657 | ||
7658 | if test "$enableval" = yes; then | |
7659 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7660 | else | |
7661 | ac_cv_use_caret='wxUSE_CARET=no' | |
7662 | fi | |
7663 | ||
7664 | else | |
7665 | ||
7666 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7667 | if test "x$LINE" != x ; then | |
7668 | eval "DEFAULT_$LINE" | |
7669 | else | |
7670 | no_cache=1 | |
7671 | fi | |
7672 | ||
7673 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7674 | ||
7675 | fi; | |
7676 | ||
7677 | eval "$ac_cv_use_caret" | |
7678 | if test "$no_cache" != 1; then | |
7679 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7680 | fi | |
7681 | ||
7682 | if test "$wxUSE_CARET" = yes; then | |
7683 | echo "$as_me:$LINENO: result: yes" >&5 | |
7684 | echo "${ECHO_T}yes" >&6 | |
7685 | else | |
7686 | echo "$as_me:$LINENO: result: no" >&5 | |
7687 | echo "${ECHO_T}no" >&6 | |
7688 | fi | |
7689 | ||
7690 | ||
7691 | enablestring= | |
7692 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7693 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7694 | no_cache=0 | |
7695 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7696 | if test "${enable_checkbox+set}" = set; then | |
7697 | enableval="$enable_checkbox" | |
7698 | ||
7699 | if test "$enableval" = yes; then | |
7700 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7701 | else | |
7702 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7703 | fi | |
7704 | ||
7705 | else | |
7706 | ||
7707 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7708 | if test "x$LINE" != x ; then | |
7709 | eval "DEFAULT_$LINE" | |
7710 | else | |
7711 | no_cache=1 | |
7712 | fi | |
7713 | ||
7714 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7715 | ||
7716 | fi; | |
7717 | ||
7718 | eval "$ac_cv_use_checkbox" | |
7719 | if test "$no_cache" != 1; then | |
7720 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7721 | fi | |
7722 | ||
7723 | if test "$wxUSE_CHECKBOX" = yes; then | |
7724 | echo "$as_me:$LINENO: result: yes" >&5 | |
7725 | echo "${ECHO_T}yes" >&6 | |
7726 | else | |
7727 | echo "$as_me:$LINENO: result: no" >&5 | |
7728 | echo "${ECHO_T}no" >&6 | |
7729 | fi | |
7730 | ||
7731 | ||
7732 | enablestring= | |
7733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7734 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7735 | no_cache=0 | |
7736 | # Check whether --enable-checklst or --disable-checklst was given. | |
7737 | if test "${enable_checklst+set}" = set; then | |
7738 | enableval="$enable_checklst" | |
7739 | ||
7740 | if test "$enableval" = yes; then | |
7741 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7742 | else | |
7743 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7744 | fi | |
7745 | ||
7746 | else | |
7747 | ||
7748 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7749 | if test "x$LINE" != x ; then | |
7750 | eval "DEFAULT_$LINE" | |
7751 | else | |
7752 | no_cache=1 | |
7753 | fi | |
7754 | ||
7755 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7756 | ||
7757 | fi; | |
7758 | ||
7759 | eval "$ac_cv_use_checklst" | |
7760 | if test "$no_cache" != 1; then | |
7761 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7762 | fi | |
7763 | ||
7764 | if test "$wxUSE_CHECKLST" = yes; then | |
7765 | echo "$as_me:$LINENO: result: yes" >&5 | |
7766 | echo "${ECHO_T}yes" >&6 | |
7767 | else | |
7768 | echo "$as_me:$LINENO: result: no" >&5 | |
7769 | echo "${ECHO_T}no" >&6 | |
7770 | fi | |
7771 | ||
7772 | ||
7773 | enablestring= | |
7774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7775 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7776 | no_cache=0 | |
7777 | # Check whether --enable-choice or --disable-choice was given. | |
7778 | if test "${enable_choice+set}" = set; then | |
7779 | enableval="$enable_choice" | |
7780 | ||
7781 | if test "$enableval" = yes; then | |
7782 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7783 | else | |
7784 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7785 | fi | |
7786 | ||
7787 | else | |
7788 | ||
7789 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7790 | if test "x$LINE" != x ; then | |
7791 | eval "DEFAULT_$LINE" | |
7792 | else | |
7793 | no_cache=1 | |
7794 | fi | |
7795 | ||
7796 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7797 | ||
7798 | fi; | |
7799 | ||
7800 | eval "$ac_cv_use_choice" | |
7801 | if test "$no_cache" != 1; then | |
7802 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7803 | fi | |
7804 | ||
7805 | if test "$wxUSE_CHOICE" = yes; then | |
7806 | echo "$as_me:$LINENO: result: yes" >&5 | |
7807 | echo "${ECHO_T}yes" >&6 | |
7808 | else | |
7809 | echo "$as_me:$LINENO: result: no" >&5 | |
7810 | echo "${ECHO_T}no" >&6 | |
7811 | fi | |
7812 | ||
7813 | ||
92bbdbcd WS |
7814 | enablestring= |
7815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7816 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7817 | no_cache=0 | |
7818 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7819 | if test "${enable_choicebook+set}" = set; then | |
7820 | enableval="$enable_choicebook" | |
7821 | ||
7822 | if test "$enableval" = yes; then | |
7823 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7824 | else | |
7825 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7826 | fi | |
7827 | ||
7828 | else | |
7829 | ||
7830 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7831 | if test "x$LINE" != x ; then | |
7832 | eval "DEFAULT_$LINE" | |
7833 | else | |
7834 | no_cache=1 | |
7835 | fi | |
7836 | ||
7837 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7838 | ||
7839 | fi; | |
7840 | ||
7841 | eval "$ac_cv_use_choicebook" | |
7842 | if test "$no_cache" != 1; then | |
7843 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7844 | fi | |
7845 | ||
7846 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7847 | echo "$as_me:$LINENO: result: yes" >&5 | |
7848 | echo "${ECHO_T}yes" >&6 | |
7849 | else | |
7850 | echo "$as_me:$LINENO: result: no" >&5 | |
7851 | echo "${ECHO_T}no" >&6 | |
7852 | fi | |
7853 | ||
7854 | ||
a848cd7e SC |
7855 | enablestring= |
7856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7857 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7858 | no_cache=0 | |
7859 | # Check whether --enable-combobox or --disable-combobox was given. | |
7860 | if test "${enable_combobox+set}" = set; then | |
7861 | enableval="$enable_combobox" | |
7862 | ||
7863 | if test "$enableval" = yes; then | |
7864 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7865 | else | |
7866 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7867 | fi | |
7868 | ||
7869 | else | |
7870 | ||
7871 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7872 | if test "x$LINE" != x ; then | |
7873 | eval "DEFAULT_$LINE" | |
7874 | else | |
7875 | no_cache=1 | |
7876 | fi | |
7877 | ||
7878 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7879 | ||
7880 | fi; | |
7881 | ||
7882 | eval "$ac_cv_use_combobox" | |
7883 | if test "$no_cache" != 1; then | |
7884 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7885 | fi | |
7886 | ||
7887 | if test "$wxUSE_COMBOBOX" = yes; then | |
7888 | echo "$as_me:$LINENO: result: yes" >&5 | |
7889 | echo "${ECHO_T}yes" >&6 | |
7890 | else | |
7891 | echo "$as_me:$LINENO: result: no" >&5 | |
7892 | echo "${ECHO_T}no" >&6 | |
7893 | fi | |
7894 | ||
7895 | ||
da98e9be VZ |
7896 | enablestring= |
7897 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7898 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7899 | no_cache=0 | |
7900 | # Check whether --enable-datepick or --disable-datepick was given. | |
7901 | if test "${enable_datepick+set}" = set; then | |
7902 | enableval="$enable_datepick" | |
7903 | ||
7904 | if test "$enableval" = yes; then | |
7905 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7906 | else | |
7907 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7908 | fi | |
7909 | ||
7910 | else | |
7911 | ||
7912 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7913 | if test "x$LINE" != x ; then | |
7914 | eval "DEFAULT_$LINE" | |
7915 | else | |
7916 | no_cache=1 | |
7917 | fi | |
7918 | ||
7919 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7920 | ||
7921 | fi; | |
7922 | ||
7923 | eval "$ac_cv_use_datepick" | |
7924 | if test "$no_cache" != 1; then | |
7925 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7926 | fi | |
7927 | ||
7928 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7929 | echo "$as_me:$LINENO: result: yes" >&5 | |
7930 | echo "${ECHO_T}yes" >&6 | |
7931 | else | |
7932 | echo "$as_me:$LINENO: result: no" >&5 | |
7933 | echo "${ECHO_T}no" >&6 | |
7934 | fi | |
7935 | ||
7936 | ||
a848cd7e SC |
7937 | enablestring= |
7938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7939 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7940 | no_cache=0 | |
7941 | # Check whether --enable-display or --disable-display was given. | |
7942 | if test "${enable_display+set}" = set; then | |
7943 | enableval="$enable_display" | |
7944 | ||
7945 | if test "$enableval" = yes; then | |
7946 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7947 | else | |
7948 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7949 | fi | |
7950 | ||
7951 | else | |
7952 | ||
7953 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7954 | if test "x$LINE" != x ; then | |
7955 | eval "DEFAULT_$LINE" | |
7956 | else | |
7957 | no_cache=1 | |
7958 | fi | |
7959 | ||
7960 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7961 | ||
7962 | fi; | |
7963 | ||
7964 | eval "$ac_cv_use_display" | |
7965 | if test "$no_cache" != 1; then | |
7966 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7967 | fi | |
7968 | ||
7969 | if test "$wxUSE_DISPLAY" = yes; then | |
7970 | echo "$as_me:$LINENO: result: yes" >&5 | |
7971 | echo "${ECHO_T}yes" >&6 | |
7972 | else | |
7973 | echo "$as_me:$LINENO: result: no" >&5 | |
7974 | echo "${ECHO_T}no" >&6 | |
7975 | fi | |
7976 | ||
7977 | ||
7978 | enablestring= | |
7979 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7980 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7981 | no_cache=0 | |
7982 | # Check whether --enable-gauge or --disable-gauge was given. | |
7983 | if test "${enable_gauge+set}" = set; then | |
7984 | enableval="$enable_gauge" | |
7985 | ||
7986 | if test "$enableval" = yes; then | |
7987 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7988 | else | |
7989 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7990 | fi | |
7991 | ||
7992 | else | |
7993 | ||
7994 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7995 | if test "x$LINE" != x ; then | |
7996 | eval "DEFAULT_$LINE" | |
7997 | else | |
7998 | no_cache=1 | |
7999 | fi | |
8000 | ||
8001 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
8002 | ||
8003 | fi; | |
8004 | ||
8005 | eval "$ac_cv_use_gauge" | |
8006 | if test "$no_cache" != 1; then | |
8007 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
8008 | fi | |
8009 | ||
8010 | if test "$wxUSE_GAUGE" = yes; then | |
8011 | echo "$as_me:$LINENO: result: yes" >&5 | |
8012 | echo "${ECHO_T}yes" >&6 | |
8013 | else | |
8014 | echo "$as_me:$LINENO: result: no" >&5 | |
8015 | echo "${ECHO_T}no" >&6 | |
8016 | fi | |
8017 | ||
8018 | ||
8019 | enablestring= | |
8020 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
8021 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
8022 | no_cache=0 | |
8023 | # Check whether --enable-grid or --disable-grid was given. | |
8024 | if test "${enable_grid+set}" = set; then | |
8025 | enableval="$enable_grid" | |
8026 | ||
8027 | if test "$enableval" = yes; then | |
8028 | ac_cv_use_grid='wxUSE_GRID=yes' | |
8029 | else | |
8030 | ac_cv_use_grid='wxUSE_GRID=no' | |
8031 | fi | |
8032 | ||
8033 | else | |
8034 | ||
8035 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
8036 | if test "x$LINE" != x ; then | |
8037 | eval "DEFAULT_$LINE" | |
8038 | else | |
8039 | no_cache=1 | |
8040 | fi | |
8041 | ||
8042 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
8043 | ||
8044 | fi; | |
8045 | ||
8046 | eval "$ac_cv_use_grid" | |
8047 | if test "$no_cache" != 1; then | |
8048 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
8049 | fi | |
8050 | ||
8051 | if test "$wxUSE_GRID" = yes; then | |
8052 | echo "$as_me:$LINENO: result: yes" >&5 | |
8053 | echo "${ECHO_T}yes" >&6 | |
8054 | else | |
8055 | echo "$as_me:$LINENO: result: no" >&5 | |
8056 | echo "${ECHO_T}no" >&6 | |
8057 | fi | |
8058 | ||
8059 | ||
20e34ecc RR |
8060 | enablestring= |
8061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5 | |
8062 | echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6 | |
8063 | no_cache=0 | |
8064 | # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given. | |
8065 | if test "${enable_dataviewctrl+set}" = set; then | |
8066 | enableval="$enable_dataviewctrl" | |
8067 | ||
8068 | if test "$enableval" = yes; then | |
8069 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes' | |
8070 | else | |
8071 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no' | |
8072 | fi | |
8073 | ||
8074 | else | |
8075 | ||
8076 | LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}` | |
8077 | if test "x$LINE" != x ; then | |
8078 | eval "DEFAULT_$LINE" | |
8079 | else | |
8080 | no_cache=1 | |
8081 | fi | |
8082 | ||
8083 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL | |
8084 | ||
8085 | fi; | |
8086 | ||
8087 | eval "$ac_cv_use_dataviewctrl" | |
8088 | if test "$no_cache" != 1; then | |
8089 | echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp | |
8090 | fi | |
8091 | ||
8092 | if test "$wxUSE_DATAVIEWCTRL" = yes; then | |
8093 | echo "$as_me:$LINENO: result: yes" >&5 | |
8094 | echo "${ECHO_T}yes" >&6 | |
8095 | else | |
8096 | echo "$as_me:$LINENO: result: no" >&5 | |
8097 | echo "${ECHO_T}no" >&6 | |
8098 | fi | |
8099 | ||
8100 | ||
a848cd7e SC |
8101 | enablestring= |
8102 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
8103 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
8104 | no_cache=0 | |
8105 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
8106 | if test "${enable_imaglist+set}" = set; then | |
8107 | enableval="$enable_imaglist" | |
8108 | ||
8109 | if test "$enableval" = yes; then | |
8110 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
8111 | else | |
8112 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
8113 | fi | |
8114 | ||
8115 | else | |
8116 | ||
8117 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
8118 | if test "x$LINE" != x ; then | |
8119 | eval "DEFAULT_$LINE" | |
8120 | else | |
8121 | no_cache=1 | |
8122 | fi | |
8123 | ||
8124 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
8125 | ||
8126 | fi; | |
8127 | ||
8128 | eval "$ac_cv_use_imaglist" | |
8129 | if test "$no_cache" != 1; then | |
8130 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
8131 | fi | |
8132 | ||
8133 | if test "$wxUSE_IMAGLIST" = yes; then | |
8134 | echo "$as_me:$LINENO: result: yes" >&5 | |
8135 | echo "${ECHO_T}yes" >&6 | |
8136 | else | |
8137 | echo "$as_me:$LINENO: result: no" >&5 | |
8138 | echo "${ECHO_T}no" >&6 | |
8139 | fi | |
8140 | ||
8141 | ||
8142 | enablestring= | |
8143 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
8144 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
8145 | no_cache=0 | |
8146 | # Check whether --enable-listbook or --disable-listbook was given. | |
8147 | if test "${enable_listbook+set}" = set; then | |
8148 | enableval="$enable_listbook" | |
8149 | ||
8150 | if test "$enableval" = yes; then | |
8151 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
8152 | else | |
8153 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
8154 | fi | |
8155 | ||
8156 | else | |
8157 | ||
8158 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
8159 | if test "x$LINE" != x ; then | |
8160 | eval "DEFAULT_$LINE" | |
8161 | else | |
8162 | no_cache=1 | |
8163 | fi | |
8164 | ||
8165 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
8166 | ||
8167 | fi; | |
8168 | ||
8169 | eval "$ac_cv_use_listbook" | |
8170 | if test "$no_cache" != 1; then | |
8171 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
8172 | fi | |
8173 | ||
8174 | if test "$wxUSE_LISTBOOK" = yes; then | |
8175 | echo "$as_me:$LINENO: result: yes" >&5 | |
8176 | echo "${ECHO_T}yes" >&6 | |
8177 | else | |
8178 | echo "$as_me:$LINENO: result: no" >&5 | |
8179 | echo "${ECHO_T}no" >&6 | |
8180 | fi | |
8181 | ||
8182 | ||
8183 | enablestring= | |
8184 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8185 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8186 | no_cache=0 | |
8187 | # Check whether --enable-listbox or --disable-listbox was given. | |
8188 | if test "${enable_listbox+set}" = set; then | |
8189 | enableval="$enable_listbox" | |
8190 | ||
8191 | if test "$enableval" = yes; then | |
8192 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8193 | else | |
8194 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8195 | fi | |
8196 | ||
8197 | else | |
8198 | ||
8199 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8200 | if test "x$LINE" != x ; then | |
8201 | eval "DEFAULT_$LINE" | |
8202 | else | |
8203 | no_cache=1 | |
8204 | fi | |
8205 | ||
8206 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8207 | ||
8208 | fi; | |
8209 | ||
8210 | eval "$ac_cv_use_listbox" | |
8211 | if test "$no_cache" != 1; then | |
8212 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8213 | fi | |
8214 | ||
8215 | if test "$wxUSE_LISTBOX" = yes; then | |
8216 | echo "$as_me:$LINENO: result: yes" >&5 | |
8217 | echo "${ECHO_T}yes" >&6 | |
8218 | else | |
8219 | echo "$as_me:$LINENO: result: no" >&5 | |
8220 | echo "${ECHO_T}no" >&6 | |
8221 | fi | |
8222 | ||
8223 | ||
8224 | enablestring= | |
8225 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8226 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8227 | no_cache=0 | |
8228 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8229 | if test "${enable_listctrl+set}" = set; then | |
8230 | enableval="$enable_listctrl" | |
8231 | ||
8232 | if test "$enableval" = yes; then | |
8233 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8234 | else | |
8235 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8236 | fi | |
8237 | ||
8238 | else | |
8239 | ||
8240 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8241 | if test "x$LINE" != x ; then | |
8242 | eval "DEFAULT_$LINE" | |
8243 | else | |
8244 | no_cache=1 | |
8245 | fi | |
8246 | ||
8247 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8248 | ||
8249 | fi; | |
8250 | ||
8251 | eval "$ac_cv_use_listctrl" | |
8252 | if test "$no_cache" != 1; then | |
8253 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8254 | fi | |
8255 | ||
8256 | if test "$wxUSE_LISTCTRL" = yes; then | |
8257 | echo "$as_me:$LINENO: result: yes" >&5 | |
8258 | echo "${ECHO_T}yes" >&6 | |
8259 | else | |
8260 | echo "$as_me:$LINENO: result: no" >&5 | |
8261 | echo "${ECHO_T}no" >&6 | |
8262 | fi | |
8263 | ||
8264 | ||
8265 | enablestring= | |
8266 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8267 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8268 | no_cache=0 | |
8269 | # Check whether --enable-notebook or --disable-notebook was given. | |
8270 | if test "${enable_notebook+set}" = set; then | |
8271 | enableval="$enable_notebook" | |
8272 | ||
8273 | if test "$enableval" = yes; then | |
8274 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8275 | else | |
8276 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8277 | fi | |
8278 | ||
8279 | else | |
8280 | ||
8281 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8282 | if test "x$LINE" != x ; then | |
8283 | eval "DEFAULT_$LINE" | |
8284 | else | |
8285 | no_cache=1 | |
8286 | fi | |
8287 | ||
8288 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8289 | ||
8290 | fi; | |
8291 | ||
8292 | eval "$ac_cv_use_notebook" | |
8293 | if test "$no_cache" != 1; then | |
8294 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8295 | fi | |
8296 | ||
8297 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8298 | echo "$as_me:$LINENO: result: yes" >&5 | |
8299 | echo "${ECHO_T}yes" >&6 | |
8300 | else | |
8301 | echo "$as_me:$LINENO: result: no" >&5 | |
8302 | echo "${ECHO_T}no" >&6 | |
8303 | fi | |
8304 | ||
8305 | ||
8306 | enablestring= | |
8307 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8308 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8309 | no_cache=0 | |
8310 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8311 | if test "${enable_radiobox+set}" = set; then | |
8312 | enableval="$enable_radiobox" | |
8313 | ||
8314 | if test "$enableval" = yes; then | |
8315 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8316 | else | |
8317 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8318 | fi | |
8319 | ||
8320 | else | |
8321 | ||
8322 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8323 | if test "x$LINE" != x ; then | |
8324 | eval "DEFAULT_$LINE" | |
8325 | else | |
8326 | no_cache=1 | |
8327 | fi | |
8328 | ||
8329 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8330 | ||
8331 | fi; | |
8332 | ||
8333 | eval "$ac_cv_use_radiobox" | |
8334 | if test "$no_cache" != 1; then | |
8335 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8336 | fi | |
8337 | ||
8338 | if test "$wxUSE_RADIOBOX" = yes; then | |
8339 | echo "$as_me:$LINENO: result: yes" >&5 | |
8340 | echo "${ECHO_T}yes" >&6 | |
8341 | else | |
8342 | echo "$as_me:$LINENO: result: no" >&5 | |
8343 | echo "${ECHO_T}no" >&6 | |
8344 | fi | |
8345 | ||
8346 | ||
8347 | enablestring= | |
8348 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8349 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8350 | no_cache=0 | |
8351 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8352 | if test "${enable_radiobtn+set}" = set; then | |
8353 | enableval="$enable_radiobtn" | |
8354 | ||
8355 | if test "$enableval" = yes; then | |
8356 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8357 | else | |
8358 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8359 | fi | |
8360 | ||
8361 | else | |
8362 | ||
8363 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8364 | if test "x$LINE" != x ; then | |
8365 | eval "DEFAULT_$LINE" | |
8366 | else | |
8367 | no_cache=1 | |
8368 | fi | |
8369 | ||
8370 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8371 | ||
8372 | fi; | |
8373 | ||
8374 | eval "$ac_cv_use_radiobtn" | |
8375 | if test "$no_cache" != 1; then | |
8376 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8377 | fi | |
8378 | ||
8379 | if test "$wxUSE_RADIOBTN" = yes; then | |
8380 | echo "$as_me:$LINENO: result: yes" >&5 | |
8381 | echo "${ECHO_T}yes" >&6 | |
8382 | else | |
8383 | echo "$as_me:$LINENO: result: no" >&5 | |
8384 | echo "${ECHO_T}no" >&6 | |
8385 | fi | |
8386 | ||
8387 | ||
8388 | enablestring= | |
8389 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8390 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8391 | no_cache=0 | |
8392 | # Check whether --enable-sash or --disable-sash was given. | |
8393 | if test "${enable_sash+set}" = set; then | |
8394 | enableval="$enable_sash" | |
8395 | ||
8396 | if test "$enableval" = yes; then | |
8397 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8398 | else | |
8399 | ac_cv_use_sash='wxUSE_SASH=no' | |
8400 | fi | |
8401 | ||
8402 | else | |
8403 | ||
8404 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8405 | if test "x$LINE" != x ; then | |
8406 | eval "DEFAULT_$LINE" | |
8407 | else | |
8408 | no_cache=1 | |
8409 | fi | |
8410 | ||
8411 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8412 | ||
8413 | fi; | |
8414 | ||
8415 | eval "$ac_cv_use_sash" | |
8416 | if test "$no_cache" != 1; then | |
8417 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8418 | fi | |
8419 | ||
8420 | if test "$wxUSE_SASH" = yes; then | |
8421 | echo "$as_me:$LINENO: result: yes" >&5 | |
8422 | echo "${ECHO_T}yes" >&6 | |
8423 | else | |
8424 | echo "$as_me:$LINENO: result: no" >&5 | |
8425 | echo "${ECHO_T}no" >&6 | |
8426 | fi | |
8427 | ||
8428 | ||
8429 | enablestring= | |
8430 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8431 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8432 | no_cache=0 | |
8433 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8434 | if test "${enable_scrollbar+set}" = set; then | |
8435 | enableval="$enable_scrollbar" | |
8436 | ||
8437 | if test "$enableval" = yes; then | |
8438 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8439 | else | |
8440 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8441 | fi | |
8442 | ||
8443 | else | |
8444 | ||
8445 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8446 | if test "x$LINE" != x ; then | |
8447 | eval "DEFAULT_$LINE" | |
8448 | else | |
8449 | no_cache=1 | |
8450 | fi | |
8451 | ||
8452 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8453 | ||
8454 | fi; | |
8455 | ||
8456 | eval "$ac_cv_use_scrollbar" | |
8457 | if test "$no_cache" != 1; then | |
8458 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8459 | fi | |
8460 | ||
8461 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8462 | echo "$as_me:$LINENO: result: yes" >&5 | |
8463 | echo "${ECHO_T}yes" >&6 | |
8464 | else | |
8465 | echo "$as_me:$LINENO: result: no" >&5 | |
8466 | echo "${ECHO_T}no" >&6 | |
8467 | fi | |
8468 | ||
8469 | ||
8470 | enablestring= | |
8471 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8472 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8473 | no_cache=0 | |
8474 | # Check whether --enable-slider or --disable-slider was given. | |
8475 | if test "${enable_slider+set}" = set; then | |
8476 | enableval="$enable_slider" | |
8477 | ||
8478 | if test "$enableval" = yes; then | |
8479 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8480 | else | |
8481 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8482 | fi | |
8483 | ||
8484 | else | |
8485 | ||
8486 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8487 | if test "x$LINE" != x ; then | |
8488 | eval "DEFAULT_$LINE" | |
8489 | else | |
8490 | no_cache=1 | |
8491 | fi | |
8492 | ||
8493 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8494 | ||
8495 | fi; | |
8496 | ||
8497 | eval "$ac_cv_use_slider" | |
8498 | if test "$no_cache" != 1; then | |
8499 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8500 | fi | |
8501 | ||
8502 | if test "$wxUSE_SLIDER" = yes; then | |
8503 | echo "$as_me:$LINENO: result: yes" >&5 | |
8504 | echo "${ECHO_T}yes" >&6 | |
8505 | else | |
8506 | echo "$as_me:$LINENO: result: no" >&5 | |
8507 | echo "${ECHO_T}no" >&6 | |
8508 | fi | |
8509 | ||
8510 | ||
8511 | enablestring= | |
8512 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8513 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8514 | no_cache=0 | |
8515 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8516 | if test "${enable_spinbtn+set}" = set; then | |
8517 | enableval="$enable_spinbtn" | |
8518 | ||
8519 | if test "$enableval" = yes; then | |
8520 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8521 | else | |
8522 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8523 | fi | |
8524 | ||
8525 | else | |
8526 | ||
8527 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8528 | if test "x$LINE" != x ; then | |
8529 | eval "DEFAULT_$LINE" | |
8530 | else | |
8531 | no_cache=1 | |
8532 | fi | |
8533 | ||
8534 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8535 | ||
8536 | fi; | |
8537 | ||
8538 | eval "$ac_cv_use_spinbtn" | |
8539 | if test "$no_cache" != 1; then | |
8540 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8541 | fi | |
8542 | ||
8543 | if test "$wxUSE_SPINBTN" = yes; then | |
8544 | echo "$as_me:$LINENO: result: yes" >&5 | |
8545 | echo "${ECHO_T}yes" >&6 | |
8546 | else | |
8547 | echo "$as_me:$LINENO: result: no" >&5 | |
8548 | echo "${ECHO_T}no" >&6 | |
8549 | fi | |
8550 | ||
8551 | ||
8552 | enablestring= | |
8553 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8554 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8555 | no_cache=0 | |
8556 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8557 | if test "${enable_spinctrl+set}" = set; then | |
8558 | enableval="$enable_spinctrl" | |
8559 | ||
8560 | if test "$enableval" = yes; then | |
8561 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8562 | else | |
8563 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8564 | fi | |
8565 | ||
8566 | else | |
8567 | ||
8568 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8569 | if test "x$LINE" != x ; then | |
8570 | eval "DEFAULT_$LINE" | |
8571 | else | |
8572 | no_cache=1 | |
8573 | fi | |
8574 | ||
8575 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8576 | ||
8577 | fi; | |
8578 | ||
8579 | eval "$ac_cv_use_spinctrl" | |
8580 | if test "$no_cache" != 1; then | |
8581 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8582 | fi | |
8583 | ||
8584 | if test "$wxUSE_SPINCTRL" = yes; then | |
8585 | echo "$as_me:$LINENO: result: yes" >&5 | |
8586 | echo "${ECHO_T}yes" >&6 | |
8587 | else | |
8588 | echo "$as_me:$LINENO: result: no" >&5 | |
8589 | echo "${ECHO_T}no" >&6 | |
8590 | fi | |
8591 | ||
8592 | ||
8593 | enablestring= | |
8594 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8595 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8596 | no_cache=0 | |
8597 | # Check whether --enable-splitter or --disable-splitter was given. | |
8598 | if test "${enable_splitter+set}" = set; then | |
8599 | enableval="$enable_splitter" | |
8600 | ||
8601 | if test "$enableval" = yes; then | |
8602 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8603 | else | |
8604 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8605 | fi | |
8606 | ||
8607 | else | |
8608 | ||
8609 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8610 | if test "x$LINE" != x ; then | |
8611 | eval "DEFAULT_$LINE" | |
8612 | else | |
8613 | no_cache=1 | |
8614 | fi | |
8615 | ||
8616 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8617 | ||
8618 | fi; | |
8619 | ||
8620 | eval "$ac_cv_use_splitter" | |
8621 | if test "$no_cache" != 1; then | |
8622 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8623 | fi | |
8624 | ||
8625 | if test "$wxUSE_SPLITTER" = yes; then | |
8626 | echo "$as_me:$LINENO: result: yes" >&5 | |
8627 | echo "${ECHO_T}yes" >&6 | |
8628 | else | |
8629 | echo "$as_me:$LINENO: result: no" >&5 | |
8630 | echo "${ECHO_T}no" >&6 | |
8631 | fi | |
8632 | ||
8633 | ||
8634 | enablestring= | |
8635 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8636 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8637 | no_cache=0 | |
8638 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8639 | if test "${enable_statbmp+set}" = set; then | |
8640 | enableval="$enable_statbmp" | |
8641 | ||
8642 | if test "$enableval" = yes; then | |
8643 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8644 | else | |
8645 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8646 | fi | |
8647 | ||
8648 | else | |
8649 | ||
8650 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8651 | if test "x$LINE" != x ; then | |
8652 | eval "DEFAULT_$LINE" | |
8653 | else | |
8654 | no_cache=1 | |
8655 | fi | |
8656 | ||
8657 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8658 | ||
8659 | fi; | |
8660 | ||
8661 | eval "$ac_cv_use_statbmp" | |
8662 | if test "$no_cache" != 1; then | |
8663 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8664 | fi | |
8665 | ||
8666 | if test "$wxUSE_STATBMP" = yes; then | |
8667 | echo "$as_me:$LINENO: result: yes" >&5 | |
8668 | echo "${ECHO_T}yes" >&6 | |
8669 | else | |
8670 | echo "$as_me:$LINENO: result: no" >&5 | |
8671 | echo "${ECHO_T}no" >&6 | |
8672 | fi | |
8673 | ||
8674 | ||
8675 | enablestring= | |
8676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8677 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8678 | no_cache=0 | |
8679 | # Check whether --enable-statbox or --disable-statbox was given. | |
8680 | if test "${enable_statbox+set}" = set; then | |
8681 | enableval="$enable_statbox" | |
8682 | ||
8683 | if test "$enableval" = yes; then | |
8684 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8685 | else | |
8686 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8687 | fi | |
8688 | ||
8689 | else | |
8690 | ||
8691 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8692 | if test "x$LINE" != x ; then | |
8693 | eval "DEFAULT_$LINE" | |
8694 | else | |
8695 | no_cache=1 | |
8696 | fi | |
8697 | ||
8698 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8699 | ||
8700 | fi; | |
8701 | ||
8702 | eval "$ac_cv_use_statbox" | |
8703 | if test "$no_cache" != 1; then | |
8704 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8705 | fi | |
8706 | ||
8707 | if test "$wxUSE_STATBOX" = yes; then | |
8708 | echo "$as_me:$LINENO: result: yes" >&5 | |
8709 | echo "${ECHO_T}yes" >&6 | |
8710 | else | |
8711 | echo "$as_me:$LINENO: result: no" >&5 | |
8712 | echo "${ECHO_T}no" >&6 | |
8713 | fi | |
8714 | ||
8715 | ||
8716 | enablestring= | |
8717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8718 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8719 | no_cache=0 | |
8720 | # Check whether --enable-statline or --disable-statline was given. | |
8721 | if test "${enable_statline+set}" = set; then | |
8722 | enableval="$enable_statline" | |
8723 | ||
8724 | if test "$enableval" = yes; then | |
8725 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8726 | else | |
8727 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8728 | fi | |
8729 | ||
8730 | else | |
8731 | ||
8732 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8733 | if test "x$LINE" != x ; then | |
8734 | eval "DEFAULT_$LINE" | |
8735 | else | |
8736 | no_cache=1 | |
8737 | fi | |
8738 | ||
8739 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8740 | ||
8741 | fi; | |
8742 | ||
8743 | eval "$ac_cv_use_statline" | |
8744 | if test "$no_cache" != 1; then | |
8745 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8746 | fi | |
8747 | ||
8748 | if test "$wxUSE_STATLINE" = yes; then | |
8749 | echo "$as_me:$LINENO: result: yes" >&5 | |
8750 | echo "${ECHO_T}yes" >&6 | |
8751 | else | |
8752 | echo "$as_me:$LINENO: result: no" >&5 | |
8753 | echo "${ECHO_T}no" >&6 | |
8754 | fi | |
8755 | ||
8756 | ||
8757 | enablestring= | |
8758 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8759 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8760 | no_cache=0 | |
8761 | # Check whether --enable-stattext or --disable-stattext was given. | |
8762 | if test "${enable_stattext+set}" = set; then | |
8763 | enableval="$enable_stattext" | |
8764 | ||
8765 | if test "$enableval" = yes; then | |
8766 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8767 | else | |
8768 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8769 | fi | |
8770 | ||
8771 | else | |
8772 | ||
8773 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8774 | if test "x$LINE" != x ; then | |
8775 | eval "DEFAULT_$LINE" | |
8776 | else | |
8777 | no_cache=1 | |
8778 | fi | |
8779 | ||
8780 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8781 | ||
8782 | fi; | |
8783 | ||
8784 | eval "$ac_cv_use_stattext" | |
8785 | if test "$no_cache" != 1; then | |
8786 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8787 | fi | |
8788 | ||
8789 | if test "$wxUSE_STATTEXT" = yes; then | |
8790 | echo "$as_me:$LINENO: result: yes" >&5 | |
8791 | echo "${ECHO_T}yes" >&6 | |
8792 | else | |
8793 | echo "$as_me:$LINENO: result: no" >&5 | |
8794 | echo "${ECHO_T}no" >&6 | |
8795 | fi | |
8796 | ||
8797 | ||
8798 | enablestring= | |
8799 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8800 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8801 | no_cache=0 | |
8802 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8803 | if test "${enable_statusbar+set}" = set; then | |
8804 | enableval="$enable_statusbar" | |
8805 | ||
8806 | if test "$enableval" = yes; then | |
8807 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8808 | else | |
8809 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8810 | fi | |
8811 | ||
8812 | else | |
8813 | ||
8814 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8815 | if test "x$LINE" != x ; then | |
8816 | eval "DEFAULT_$LINE" | |
8817 | else | |
8818 | no_cache=1 | |
8819 | fi | |
8820 | ||
8821 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8822 | ||
8823 | fi; | |
8824 | ||
8825 | eval "$ac_cv_use_statusbar" | |
8826 | if test "$no_cache" != 1; then | |
8827 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8828 | fi | |
8829 | ||
8830 | if test "$wxUSE_STATUSBAR" = yes; then | |
8831 | echo "$as_me:$LINENO: result: yes" >&5 | |
8832 | echo "${ECHO_T}yes" >&6 | |
8833 | else | |
8834 | echo "$as_me:$LINENO: result: no" >&5 | |
8835 | echo "${ECHO_T}no" >&6 | |
8836 | fi | |
8837 | ||
8838 | ||
8839 | enablestring= | |
8840 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8841 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8842 | no_cache=0 | |
8843 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8844 | if test "${enable_tabdialog+set}" = set; then | |
8845 | enableval="$enable_tabdialog" | |
8846 | ||
8847 | if test "$enableval" = yes; then | |
8848 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8849 | else | |
8850 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8851 | fi | |
8852 | ||
8853 | else | |
8854 | ||
8855 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8856 | if test "x$LINE" != x ; then | |
8857 | eval "DEFAULT_$LINE" | |
8858 | else | |
8859 | no_cache=1 | |
8860 | fi | |
8861 | ||
8862 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8863 | ||
8864 | fi; | |
8865 | ||
8866 | eval "$ac_cv_use_tabdialog" | |
8867 | if test "$no_cache" != 1; then | |
8868 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8869 | fi | |
8870 | ||
8871 | if test "$wxUSE_TABDIALOG" = yes; then | |
8872 | echo "$as_me:$LINENO: result: yes" >&5 | |
8873 | echo "${ECHO_T}yes" >&6 | |
8874 | else | |
8875 | echo "$as_me:$LINENO: result: no" >&5 | |
8876 | echo "${ECHO_T}no" >&6 | |
8877 | fi | |
8878 | ||
8879 | ||
8880 | enablestring= | |
8881 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8882 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8883 | no_cache=0 | |
8884 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8885 | if test "${enable_textctrl+set}" = set; then | |
8886 | enableval="$enable_textctrl" | |
8887 | ||
8888 | if test "$enableval" = yes; then | |
8889 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8890 | else | |
8891 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8892 | fi | |
8893 | ||
8894 | else | |
8895 | ||
8896 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8897 | if test "x$LINE" != x ; then | |
8898 | eval "DEFAULT_$LINE" | |
8899 | else | |
8900 | no_cache=1 | |
8901 | fi | |
8902 | ||
8903 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8904 | ||
8905 | fi; | |
8906 | ||
8907 | eval "$ac_cv_use_textctrl" | |
8908 | if test "$no_cache" != 1; then | |
8909 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8910 | fi | |
8911 | ||
8912 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8913 | echo "$as_me:$LINENO: result: yes" >&5 | |
8914 | echo "${ECHO_T}yes" >&6 | |
8915 | else | |
8916 | echo "$as_me:$LINENO: result: no" >&5 | |
8917 | echo "${ECHO_T}no" >&6 | |
8918 | fi | |
8919 | ||
8920 | ||
8921 | enablestring= | |
8922 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8923 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8924 | no_cache=0 | |
8925 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8926 | if test "${enable_togglebtn+set}" = set; then | |
8927 | enableval="$enable_togglebtn" | |
8928 | ||
8929 | if test "$enableval" = yes; then | |
8930 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8931 | else | |
8932 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8933 | fi | |
8934 | ||
8935 | else | |
8936 | ||
8937 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8938 | if test "x$LINE" != x ; then | |
8939 | eval "DEFAULT_$LINE" | |
8940 | else | |
8941 | no_cache=1 | |
8942 | fi | |
8943 | ||
8944 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8945 | ||
8946 | fi; | |
8947 | ||
8948 | eval "$ac_cv_use_togglebtn" | |
8949 | if test "$no_cache" != 1; then | |
8950 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8951 | fi | |
8952 | ||
8953 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8954 | echo "$as_me:$LINENO: result: yes" >&5 | |
8955 | echo "${ECHO_T}yes" >&6 | |
8956 | else | |
8957 | echo "$as_me:$LINENO: result: no" >&5 | |
8958 | echo "${ECHO_T}no" >&6 | |
8959 | fi | |
8960 | ||
8961 | ||
8962 | enablestring= | |
8963 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8964 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8965 | no_cache=0 | |
8966 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8967 | if test "${enable_toolbar+set}" = set; then | |
8968 | enableval="$enable_toolbar" | |
8969 | ||
8970 | if test "$enableval" = yes; then | |
8971 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8972 | else | |
8973 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8974 | fi | |
8975 | ||
8976 | else | |
8977 | ||
8978 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8979 | if test "x$LINE" != x ; then | |
8980 | eval "DEFAULT_$LINE" | |
8981 | else | |
8982 | no_cache=1 | |
8983 | fi | |
8984 | ||
8985 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8986 | ||
8987 | fi; | |
8988 | ||
8989 | eval "$ac_cv_use_toolbar" | |
8990 | if test "$no_cache" != 1; then | |
8991 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8992 | fi | |
8993 | ||
8994 | if test "$wxUSE_TOOLBAR" = yes; then | |
8995 | echo "$as_me:$LINENO: result: yes" >&5 | |
8996 | echo "${ECHO_T}yes" >&6 | |
8997 | else | |
8998 | echo "$as_me:$LINENO: result: no" >&5 | |
8999 | echo "${ECHO_T}no" >&6 | |
9000 | fi | |
9001 | ||
9002 | ||
9003 | enablestring= | |
9004 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
9005 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
9006 | no_cache=0 | |
9007 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
9008 | if test "${enable_tbarnative+set}" = set; then | |
9009 | enableval="$enable_tbarnative" | |
9010 | ||
9011 | if test "$enableval" = yes; then | |
9012 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
9013 | else | |
9014 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
9015 | fi | |
9016 | ||
9017 | else | |
9018 | ||
9019 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
9020 | if test "x$LINE" != x ; then | |
9021 | eval "DEFAULT_$LINE" | |
9022 | else | |
9023 | no_cache=1 | |
9024 | fi | |
9025 | ||
9026 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
9027 | ||
9028 | fi; | |
9029 | ||
9030 | eval "$ac_cv_use_tbarnative" | |
9031 | if test "$no_cache" != 1; then | |
9032 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
9033 | fi | |
9034 | ||
9035 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
9036 | echo "$as_me:$LINENO: result: yes" >&5 | |
9037 | echo "${ECHO_T}yes" >&6 | |
9038 | else | |
9039 | echo "$as_me:$LINENO: result: no" >&5 | |
9040 | echo "${ECHO_T}no" >&6 | |
9041 | fi | |
9042 | ||
9043 | ||
9044 | enablestring= | |
9045 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
9046 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
9047 | no_cache=0 | |
9048 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
9049 | if test "${enable_tbarsmpl+set}" = set; then | |
9050 | enableval="$enable_tbarsmpl" | |
9051 | ||
9052 | if test "$enableval" = yes; then | |
9053 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
9054 | else | |
9055 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
9056 | fi | |
9057 | ||
9058 | else | |
9059 | ||
9060 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
9061 | if test "x$LINE" != x ; then | |
9062 | eval "DEFAULT_$LINE" | |
9063 | else | |
9064 | no_cache=1 | |
9065 | fi | |
9066 | ||
9067 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
9068 | ||
9069 | fi; | |
9070 | ||
9071 | eval "$ac_cv_use_tbarsmpl" | |
9072 | if test "$no_cache" != 1; then | |
9073 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
9074 | fi | |
9075 | ||
9076 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
9077 | echo "$as_me:$LINENO: result: yes" >&5 | |
9078 | echo "${ECHO_T}yes" >&6 | |
9079 | else | |
9080 | echo "$as_me:$LINENO: result: no" >&5 | |
9081 | echo "${ECHO_T}no" >&6 | |
9082 | fi | |
9083 | ||
9084 | ||
0093c2fc VZ |
9085 | enablestring= |
9086 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5 | |
9087 | echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6 | |
9088 | no_cache=0 | |
9089 | # Check whether --enable-treebook or --disable-treebook was given. | |
9090 | if test "${enable_treebook+set}" = set; then | |
9091 | enableval="$enable_treebook" | |
9092 | ||
9093 | if test "$enableval" = yes; then | |
9094 | ac_cv_use_treebook='wxUSE_TREEBOOK=yes' | |
9095 | else | |
9096 | ac_cv_use_treebook='wxUSE_TREEBOOK=no' | |
9097 | fi | |
9098 | ||
9099 | else | |
9100 | ||
9101 | LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}` | |
9102 | if test "x$LINE" != x ; then | |
9103 | eval "DEFAULT_$LINE" | |
9104 | else | |
9105 | no_cache=1 | |
9106 | fi | |
9107 | ||
9108 | ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK | |
9109 | ||
9110 | fi; | |
9111 | ||
9112 | eval "$ac_cv_use_treebook" | |
9113 | if test "$no_cache" != 1; then | |
9114 | echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp | |
9115 | fi | |
9116 | ||
9117 | if test "$wxUSE_TREEBOOK" = yes; then | |
9118 | echo "$as_me:$LINENO: result: yes" >&5 | |
9119 | echo "${ECHO_T}yes" >&6 | |
9120 | else | |
9121 | echo "$as_me:$LINENO: result: no" >&5 | |
9122 | echo "${ECHO_T}no" >&6 | |
9123 | fi | |
9124 | ||
9125 | ||
a848cd7e SC |
9126 | enablestring= |
9127 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
9128 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
9129 | no_cache=0 | |
9130 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
9131 | if test "${enable_treectrl+set}" = set; then | |
9132 | enableval="$enable_treectrl" | |
9133 | ||
9134 | if test "$enableval" = yes; then | |
9135 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
9136 | else | |
9137 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
9138 | fi | |
9139 | ||
9140 | else | |
9141 | ||
9142 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
9143 | if test "x$LINE" != x ; then | |
9144 | eval "DEFAULT_$LINE" | |
9145 | else | |
9146 | no_cache=1 | |
9147 | fi | |
9148 | ||
9149 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
9150 | ||
9151 | fi; | |
9152 | ||
9153 | eval "$ac_cv_use_treectrl" | |
9154 | if test "$no_cache" != 1; then | |
9155 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
9156 | fi | |
9157 | ||
9158 | if test "$wxUSE_TREECTRL" = yes; then | |
9159 | echo "$as_me:$LINENO: result: yes" >&5 | |
9160 | echo "${ECHO_T}yes" >&6 | |
9161 | else | |
9162 | echo "$as_me:$LINENO: result: no" >&5 | |
9163 | echo "${ECHO_T}no" >&6 | |
9164 | fi | |
9165 | ||
9166 | ||
9167 | enablestring= | |
9168 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
9169 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9170 | no_cache=0 | |
9171 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
9172 | if test "${enable_tipwindow+set}" = set; then | |
9173 | enableval="$enable_tipwindow" | |
9174 | ||
9175 | if test "$enableval" = yes; then | |
9176 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
9177 | else | |
9178 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
9179 | fi | |
9180 | ||
9181 | else | |
9182 | ||
9183 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
9184 | if test "x$LINE" != x ; then | |
9185 | eval "DEFAULT_$LINE" | |
9186 | else | |
9187 | no_cache=1 | |
9188 | fi | |
9189 | ||
9190 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9191 | ||
9192 | fi; | |
9193 | ||
9194 | eval "$ac_cv_use_tipwindow" | |
9195 | if test "$no_cache" != 1; then | |
9196 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
9197 | fi | |
9198 | ||
9199 | if test "$wxUSE_TIPWINDOW" = yes; then | |
9200 | echo "$as_me:$LINENO: result: yes" >&5 | |
9201 | echo "${ECHO_T}yes" >&6 | |
9202 | else | |
9203 | echo "$as_me:$LINENO: result: no" >&5 | |
9204 | echo "${ECHO_T}no" >&6 | |
9205 | fi | |
9206 | ||
9207 | ||
9208 | enablestring= | |
9209 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
9210 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9211 | no_cache=0 | |
9212 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
9213 | if test "${enable_popupwin+set}" = set; then | |
9214 | enableval="$enable_popupwin" | |
9215 | ||
9216 | if test "$enableval" = yes; then | |
9217 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
9218 | else | |
9219 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
9220 | fi | |
9221 | ||
9222 | else | |
9223 | ||
9224 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9225 | if test "x$LINE" != x ; then | |
9226 | eval "DEFAULT_$LINE" | |
9227 | else | |
9228 | no_cache=1 | |
9229 | fi | |
9230 | ||
9231 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9232 | ||
9233 | fi; | |
9234 | ||
9235 | eval "$ac_cv_use_popupwin" | |
9236 | if test "$no_cache" != 1; then | |
9237 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9238 | fi | |
9239 | ||
9240 | if test "$wxUSE_POPUPWIN" = yes; then | |
9241 | echo "$as_me:$LINENO: result: yes" >&5 | |
9242 | echo "${ECHO_T}yes" >&6 | |
9243 | else | |
9244 | echo "$as_me:$LINENO: result: no" >&5 | |
9245 | echo "${ECHO_T}no" >&6 | |
9246 | fi | |
9247 | ||
9248 | ||
9249 | ||
9250 | ||
9251 | enablestring= | |
9252 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9253 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9254 | no_cache=0 | |
9255 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9256 | if test "${enable_commondlg+set}" = set; then | |
9257 | enableval="$enable_commondlg" | |
9258 | ||
9259 | if test "$enableval" = yes; then | |
9260 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9261 | else | |
9262 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9263 | fi | |
9264 | ||
9265 | else | |
9266 | ||
9267 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9268 | if test "x$LINE" != x ; then | |
9269 | eval "DEFAULT_$LINE" | |
9270 | else | |
9271 | no_cache=1 | |
9272 | fi | |
9273 | ||
9274 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9275 | ||
9276 | fi; | |
9277 | ||
9278 | eval "$ac_cv_use_commondlg" | |
9279 | if test "$no_cache" != 1; then | |
9280 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9281 | fi | |
9282 | ||
9283 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9284 | echo "$as_me:$LINENO: result: yes" >&5 | |
9285 | echo "${ECHO_T}yes" >&6 | |
9286 | else | |
9287 | echo "$as_me:$LINENO: result: no" >&5 | |
9288 | echo "${ECHO_T}no" >&6 | |
9289 | fi | |
9290 | ||
9291 | ||
9292 | enablestring= | |
9293 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9294 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9295 | no_cache=0 | |
9296 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9297 | if test "${enable_choicedlg+set}" = set; then | |
9298 | enableval="$enable_choicedlg" | |
9299 | ||
9300 | if test "$enableval" = yes; then | |
9301 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9302 | else | |
9303 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9304 | fi | |
9305 | ||
9306 | else | |
9307 | ||
9308 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9309 | if test "x$LINE" != x ; then | |
9310 | eval "DEFAULT_$LINE" | |
9311 | else | |
9312 | no_cache=1 | |
9313 | fi | |
9314 | ||
9315 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9316 | ||
9317 | fi; | |
9318 | ||
9319 | eval "$ac_cv_use_choicedlg" | |
9320 | if test "$no_cache" != 1; then | |
9321 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9322 | fi | |
9323 | ||
9324 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9325 | echo "$as_me:$LINENO: result: yes" >&5 | |
9326 | echo "${ECHO_T}yes" >&6 | |
9327 | else | |
9328 | echo "$as_me:$LINENO: result: no" >&5 | |
9329 | echo "${ECHO_T}no" >&6 | |
9330 | fi | |
9331 | ||
9332 | ||
9333 | enablestring= | |
9334 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9335 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9336 | no_cache=0 | |
9337 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9338 | if test "${enable_coldlg+set}" = set; then | |
9339 | enableval="$enable_coldlg" | |
9340 | ||
9341 | if test "$enableval" = yes; then | |
9342 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9343 | else | |
9344 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9345 | fi | |
9346 | ||
9347 | else | |
9348 | ||
9349 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9350 | if test "x$LINE" != x ; then | |
9351 | eval "DEFAULT_$LINE" | |
9352 | else | |
9353 | no_cache=1 | |
9354 | fi | |
9355 | ||
9356 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9357 | ||
9358 | fi; | |
9359 | ||
9360 | eval "$ac_cv_use_coldlg" | |
9361 | if test "$no_cache" != 1; then | |
9362 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9363 | fi | |
9364 | ||
9365 | if test "$wxUSE_COLOURDLG" = yes; then | |
9366 | echo "$as_me:$LINENO: result: yes" >&5 | |
9367 | echo "${ECHO_T}yes" >&6 | |
9368 | else | |
9369 | echo "$as_me:$LINENO: result: no" >&5 | |
9370 | echo "${ECHO_T}no" >&6 | |
9371 | fi | |
9372 | ||
9373 | ||
9374 | enablestring= | |
9375 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9376 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9377 | no_cache=0 | |
9378 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9379 | if test "${enable_filedlg+set}" = set; then | |
9380 | enableval="$enable_filedlg" | |
9381 | ||
9382 | if test "$enableval" = yes; then | |
9383 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9384 | else | |
9385 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9386 | fi | |
9387 | ||
9388 | else | |
9389 | ||
9390 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9391 | if test "x$LINE" != x ; then | |
9392 | eval "DEFAULT_$LINE" | |
9393 | else | |
9394 | no_cache=1 | |
9395 | fi | |
9396 | ||
9397 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9398 | ||
9399 | fi; | |
9400 | ||
9401 | eval "$ac_cv_use_filedlg" | |
9402 | if test "$no_cache" != 1; then | |
9403 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9404 | fi | |
9405 | ||
9406 | if test "$wxUSE_FILEDLG" = yes; then | |
9407 | echo "$as_me:$LINENO: result: yes" >&5 | |
9408 | echo "${ECHO_T}yes" >&6 | |
9409 | else | |
9410 | echo "$as_me:$LINENO: result: no" >&5 | |
9411 | echo "${ECHO_T}no" >&6 | |
9412 | fi | |
9413 | ||
9414 | ||
9415 | enablestring= | |
9416 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9417 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9418 | no_cache=0 | |
9419 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9420 | if test "${enable_finddlg+set}" = set; then | |
9421 | enableval="$enable_finddlg" | |
9422 | ||
9423 | if test "$enableval" = yes; then | |
9424 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9425 | else | |
9426 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9427 | fi | |
9428 | ||
9429 | else | |
9430 | ||
9431 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9432 | if test "x$LINE" != x ; then | |
9433 | eval "DEFAULT_$LINE" | |
9434 | else | |
9435 | no_cache=1 | |
9436 | fi | |
9437 | ||
9438 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9439 | ||
9440 | fi; | |
9441 | ||
9442 | eval "$ac_cv_use_finddlg" | |
9443 | if test "$no_cache" != 1; then | |
9444 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9445 | fi | |
9446 | ||
9447 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9448 | echo "$as_me:$LINENO: result: yes" >&5 | |
9449 | echo "${ECHO_T}yes" >&6 | |
9450 | else | |
9451 | echo "$as_me:$LINENO: result: no" >&5 | |
9452 | echo "${ECHO_T}no" >&6 | |
9453 | fi | |
9454 | ||
9455 | ||
9456 | enablestring= | |
9457 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9458 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9459 | no_cache=0 | |
9460 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9461 | if test "${enable_fontdlg+set}" = set; then | |
9462 | enableval="$enable_fontdlg" | |
9463 | ||
9464 | if test "$enableval" = yes; then | |
9465 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9466 | else | |
9467 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9468 | fi | |
9469 | ||
9470 | else | |
9471 | ||
9472 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9473 | if test "x$LINE" != x ; then | |
9474 | eval "DEFAULT_$LINE" | |
9475 | else | |
9476 | no_cache=1 | |
9477 | fi | |
9478 | ||
9479 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9480 | ||
9481 | fi; | |
9482 | ||
9483 | eval "$ac_cv_use_fontdlg" | |
9484 | if test "$no_cache" != 1; then | |
9485 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9486 | fi | |
9487 | ||
9488 | if test "$wxUSE_FONTDLG" = yes; then | |
9489 | echo "$as_me:$LINENO: result: yes" >&5 | |
9490 | echo "${ECHO_T}yes" >&6 | |
9491 | else | |
9492 | echo "$as_me:$LINENO: result: no" >&5 | |
9493 | echo "${ECHO_T}no" >&6 | |
9494 | fi | |
9495 | ||
9496 | ||
9497 | enablestring= | |
9498 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9499 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9500 | no_cache=0 | |
9501 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9502 | if test "${enable_dirdlg+set}" = set; then | |
9503 | enableval="$enable_dirdlg" | |
9504 | ||
9505 | if test "$enableval" = yes; then | |
9506 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9507 | else | |
9508 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9509 | fi | |
9510 | ||
9511 | else | |
9512 | ||
9513 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9514 | if test "x$LINE" != x ; then | |
9515 | eval "DEFAULT_$LINE" | |
9516 | else | |
9517 | no_cache=1 | |
9518 | fi | |
9519 | ||
9520 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9521 | ||
9522 | fi; | |
9523 | ||
9524 | eval "$ac_cv_use_dirdlg" | |
9525 | if test "$no_cache" != 1; then | |
9526 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9527 | fi | |
9528 | ||
9529 | if test "$wxUSE_DIRDLG" = yes; then | |
9530 | echo "$as_me:$LINENO: result: yes" >&5 | |
9531 | echo "${ECHO_T}yes" >&6 | |
9532 | else | |
9533 | echo "$as_me:$LINENO: result: no" >&5 | |
9534 | echo "${ECHO_T}no" >&6 | |
9535 | fi | |
9536 | ||
9537 | ||
9538 | enablestring= | |
9539 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9540 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9541 | no_cache=0 | |
9542 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9543 | if test "${enable_msgdlg+set}" = set; then | |
9544 | enableval="$enable_msgdlg" | |
9545 | ||
9546 | if test "$enableval" = yes; then | |
9547 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9548 | else | |
9549 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9550 | fi | |
9551 | ||
9552 | else | |
9553 | ||
9554 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9555 | if test "x$LINE" != x ; then | |
9556 | eval "DEFAULT_$LINE" | |
9557 | else | |
9558 | no_cache=1 | |
9559 | fi | |
9560 | ||
9561 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9562 | ||
9563 | fi; | |
9564 | ||
9565 | eval "$ac_cv_use_msgdlg" | |
9566 | if test "$no_cache" != 1; then | |
9567 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9568 | fi | |
9569 | ||
9570 | if test "$wxUSE_MSGDLG" = yes; then | |
9571 | echo "$as_me:$LINENO: result: yes" >&5 | |
9572 | echo "${ECHO_T}yes" >&6 | |
9573 | else | |
9574 | echo "$as_me:$LINENO: result: no" >&5 | |
9575 | echo "${ECHO_T}no" >&6 | |
9576 | fi | |
9577 | ||
9578 | ||
9579 | enablestring= | |
9580 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9581 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9582 | no_cache=0 | |
9583 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9584 | if test "${enable_numberdlg+set}" = set; then | |
9585 | enableval="$enable_numberdlg" | |
9586 | ||
9587 | if test "$enableval" = yes; then | |
9588 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9589 | else | |
9590 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9591 | fi | |
9592 | ||
9593 | else | |
9594 | ||
9595 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9596 | if test "x$LINE" != x ; then | |
9597 | eval "DEFAULT_$LINE" | |
9598 | else | |
9599 | no_cache=1 | |
9600 | fi | |
9601 | ||
9602 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9603 | ||
9604 | fi; | |
9605 | ||
9606 | eval "$ac_cv_use_numberdlg" | |
9607 | if test "$no_cache" != 1; then | |
9608 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9609 | fi | |
9610 | ||
9611 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9612 | echo "$as_me:$LINENO: result: yes" >&5 | |
9613 | echo "${ECHO_T}yes" >&6 | |
9614 | else | |
9615 | echo "$as_me:$LINENO: result: no" >&5 | |
9616 | echo "${ECHO_T}no" >&6 | |
9617 | fi | |
9618 | ||
9619 | ||
9620 | enablestring= | |
9621 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9622 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9623 | no_cache=0 | |
9624 | # Check whether --enable-splash or --disable-splash was given. | |
9625 | if test "${enable_splash+set}" = set; then | |
9626 | enableval="$enable_splash" | |
9627 | ||
9628 | if test "$enableval" = yes; then | |
9629 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9630 | else | |
9631 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9632 | fi | |
9633 | ||
9634 | else | |
9635 | ||
9636 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9637 | if test "x$LINE" != x ; then | |
9638 | eval "DEFAULT_$LINE" | |
9639 | else | |
9640 | no_cache=1 | |
9641 | fi | |
9642 | ||
9643 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9644 | ||
9645 | fi; | |
9646 | ||
9647 | eval "$ac_cv_use_splash" | |
9648 | if test "$no_cache" != 1; then | |
9649 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9650 | fi | |
9651 | ||
9652 | if test "$wxUSE_SPLASH" = yes; then | |
9653 | echo "$as_me:$LINENO: result: yes" >&5 | |
9654 | echo "${ECHO_T}yes" >&6 | |
9655 | else | |
9656 | echo "$as_me:$LINENO: result: no" >&5 | |
9657 | echo "${ECHO_T}no" >&6 | |
9658 | fi | |
9659 | ||
9660 | ||
9661 | enablestring= | |
9662 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9663 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9664 | no_cache=0 | |
9665 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9666 | if test "${enable_textdlg+set}" = set; then | |
9667 | enableval="$enable_textdlg" | |
9668 | ||
9669 | if test "$enableval" = yes; then | |
9670 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9671 | else | |
9672 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9673 | fi | |
9674 | ||
9675 | else | |
9676 | ||
9677 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9678 | if test "x$LINE" != x ; then | |
9679 | eval "DEFAULT_$LINE" | |
9680 | else | |
9681 | no_cache=1 | |
9682 | fi | |
9683 | ||
9684 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9685 | ||
9686 | fi; | |
9687 | ||
9688 | eval "$ac_cv_use_textdlg" | |
9689 | if test "$no_cache" != 1; then | |
9690 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9691 | fi | |
9692 | ||
9693 | if test "$wxUSE_TEXTDLG" = yes; then | |
9694 | echo "$as_me:$LINENO: result: yes" >&5 | |
9695 | echo "${ECHO_T}yes" >&6 | |
9696 | else | |
9697 | echo "$as_me:$LINENO: result: no" >&5 | |
9698 | echo "${ECHO_T}no" >&6 | |
9699 | fi | |
9700 | ||
9701 | ||
9702 | enablestring= | |
9703 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9704 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9705 | no_cache=0 | |
9706 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9707 | if test "${enable_tipdlg+set}" = set; then | |
9708 | enableval="$enable_tipdlg" | |
9709 | ||
9710 | if test "$enableval" = yes; then | |
9711 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9712 | else | |
9713 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9714 | fi | |
9715 | ||
9716 | else | |
9717 | ||
9718 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9719 | if test "x$LINE" != x ; then | |
9720 | eval "DEFAULT_$LINE" | |
9721 | else | |
9722 | no_cache=1 | |
9723 | fi | |
9724 | ||
9725 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9726 | ||
9727 | fi; | |
9728 | ||
9729 | eval "$ac_cv_use_tipdlg" | |
9730 | if test "$no_cache" != 1; then | |
9731 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9732 | fi | |
9733 | ||
9734 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9735 | echo "$as_me:$LINENO: result: yes" >&5 | |
9736 | echo "${ECHO_T}yes" >&6 | |
9737 | else | |
9738 | echo "$as_me:$LINENO: result: no" >&5 | |
9739 | echo "${ECHO_T}no" >&6 | |
9740 | fi | |
9741 | ||
9742 | ||
9743 | enablestring= | |
9744 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9745 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9746 | no_cache=0 | |
9747 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9748 | if test "${enable_progressdlg+set}" = set; then | |
9749 | enableval="$enable_progressdlg" | |
9750 | ||
9751 | if test "$enableval" = yes; then | |
9752 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9753 | else | |
9754 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9755 | fi | |
9756 | ||
9757 | else | |
9758 | ||
9759 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9760 | if test "x$LINE" != x ; then | |
9761 | eval "DEFAULT_$LINE" | |
9762 | else | |
9763 | no_cache=1 | |
9764 | fi | |
9765 | ||
9766 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9767 | ||
9768 | fi; | |
9769 | ||
9770 | eval "$ac_cv_use_progressdlg" | |
9771 | if test "$no_cache" != 1; then | |
9772 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9773 | fi | |
9774 | ||
9775 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9776 | echo "$as_me:$LINENO: result: yes" >&5 | |
9777 | echo "${ECHO_T}yes" >&6 | |
9778 | else | |
9779 | echo "$as_me:$LINENO: result: no" >&5 | |
9780 | echo "${ECHO_T}no" >&6 | |
9781 | fi | |
9782 | ||
9783 | ||
9784 | enablestring= | |
9785 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9786 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9787 | no_cache=0 | |
9788 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9789 | if test "${enable_wizarddlg+set}" = set; then | |
9790 | enableval="$enable_wizarddlg" | |
9791 | ||
9792 | if test "$enableval" = yes; then | |
9793 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9794 | else | |
9795 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9796 | fi | |
9797 | ||
9798 | else | |
9799 | ||
9800 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9801 | if test "x$LINE" != x ; then | |
9802 | eval "DEFAULT_$LINE" | |
9803 | else | |
9804 | no_cache=1 | |
9805 | fi | |
9806 | ||
9807 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9808 | ||
9809 | fi; | |
9810 | ||
9811 | eval "$ac_cv_use_wizarddlg" | |
9812 | if test "$no_cache" != 1; then | |
9813 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9814 | fi | |
9815 | ||
9816 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9817 | echo "$as_me:$LINENO: result: yes" >&5 | |
9818 | echo "${ECHO_T}yes" >&6 | |
9819 | else | |
9820 | echo "$as_me:$LINENO: result: no" >&5 | |
9821 | echo "${ECHO_T}no" >&6 | |
9822 | fi | |
9823 | ||
9824 | ||
9825 | ||
9826 | ||
9827 | enablestring= | |
9828 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9829 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9830 | no_cache=0 | |
9831 | # Check whether --enable-menus or --disable-menus was given. | |
9832 | if test "${enable_menus+set}" = set; then | |
9833 | enableval="$enable_menus" | |
9834 | ||
9835 | if test "$enableval" = yes; then | |
9836 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9837 | else | |
9838 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9839 | fi | |
9840 | ||
9841 | else | |
9842 | ||
9843 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9844 | if test "x$LINE" != x ; then | |
9845 | eval "DEFAULT_$LINE" | |
9846 | else | |
9847 | no_cache=1 | |
9848 | fi | |
9849 | ||
9850 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9851 | ||
9852 | fi; | |
9853 | ||
9854 | eval "$ac_cv_use_menus" | |
9855 | if test "$no_cache" != 1; then | |
9856 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9857 | fi | |
9858 | ||
9859 | if test "$wxUSE_MENUS" = yes; then | |
9860 | echo "$as_me:$LINENO: result: yes" >&5 | |
9861 | echo "${ECHO_T}yes" >&6 | |
9862 | else | |
9863 | echo "$as_me:$LINENO: result: no" >&5 | |
9864 | echo "${ECHO_T}no" >&6 | |
9865 | fi | |
9866 | ||
9867 | ||
9868 | enablestring= | |
9869 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9870 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9871 | no_cache=0 | |
9872 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9873 | if test "${enable_miniframe+set}" = set; then | |
9874 | enableval="$enable_miniframe" | |
9875 | ||
9876 | if test "$enableval" = yes; then | |
9877 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9878 | else | |
9879 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9880 | fi | |
9881 | ||
9882 | else | |
9883 | ||
9884 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9885 | if test "x$LINE" != x ; then | |
9886 | eval "DEFAULT_$LINE" | |
9887 | else | |
9888 | no_cache=1 | |
9889 | fi | |
9890 | ||
9891 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9892 | ||
9893 | fi; | |
9894 | ||
9895 | eval "$ac_cv_use_miniframe" | |
9896 | if test "$no_cache" != 1; then | |
9897 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9898 | fi | |
9899 | ||
9900 | if test "$wxUSE_MINIFRAME" = yes; then | |
9901 | echo "$as_me:$LINENO: result: yes" >&5 | |
9902 | echo "${ECHO_T}yes" >&6 | |
9903 | else | |
9904 | echo "$as_me:$LINENO: result: no" >&5 | |
9905 | echo "${ECHO_T}no" >&6 | |
9906 | fi | |
9907 | ||
9908 | ||
9909 | enablestring= | |
9910 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9911 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9912 | no_cache=0 | |
9913 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9914 | if test "${enable_tooltips+set}" = set; then | |
9915 | enableval="$enable_tooltips" | |
9916 | ||
9917 | if test "$enableval" = yes; then | |
9918 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9919 | else | |
9920 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9921 | fi | |
9922 | ||
9923 | else | |
9924 | ||
9925 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9926 | if test "x$LINE" != x ; then | |
9927 | eval "DEFAULT_$LINE" | |
9928 | else | |
9929 | no_cache=1 | |
9930 | fi | |
9931 | ||
9932 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9933 | ||
9934 | fi; | |
9935 | ||
9936 | eval "$ac_cv_use_tooltips" | |
9937 | if test "$no_cache" != 1; then | |
9938 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9939 | fi | |
9940 | ||
9941 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9942 | echo "$as_me:$LINENO: result: yes" >&5 | |
9943 | echo "${ECHO_T}yes" >&6 | |
9944 | else | |
9945 | echo "$as_me:$LINENO: result: no" >&5 | |
9946 | echo "${ECHO_T}no" >&6 | |
9947 | fi | |
9948 | ||
9949 | ||
9950 | enablestring= | |
9951 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9952 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9953 | no_cache=0 | |
9954 | # Check whether --enable-splines or --disable-splines was given. | |
9955 | if test "${enable_splines+set}" = set; then | |
9956 | enableval="$enable_splines" | |
9957 | ||
9958 | if test "$enableval" = yes; then | |
9959 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9960 | else | |
9961 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9962 | fi | |
9963 | ||
9964 | else | |
9965 | ||
9966 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9967 | if test "x$LINE" != x ; then | |
9968 | eval "DEFAULT_$LINE" | |
9969 | else | |
9970 | no_cache=1 | |
9971 | fi | |
9972 | ||
9973 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9974 | ||
9975 | fi; | |
9976 | ||
9977 | eval "$ac_cv_use_splines" | |
9978 | if test "$no_cache" != 1; then | |
9979 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9980 | fi | |
9981 | ||
9982 | if test "$wxUSE_SPLINES" = yes; then | |
9983 | echo "$as_me:$LINENO: result: yes" >&5 | |
9984 | echo "${ECHO_T}yes" >&6 | |
9985 | else | |
9986 | echo "$as_me:$LINENO: result: no" >&5 | |
9987 | echo "${ECHO_T}no" >&6 | |
9988 | fi | |
9989 | ||
9990 | ||
fbe2ca43 SN |
9991 | enablestring= |
9992 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
9993 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
9994 | no_cache=0 | |
9995 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
9996 | if test "${enable_mousewheel+set}" = set; then | |
9997 | enableval="$enable_mousewheel" | |
9998 | ||
9999 | if test "$enableval" = yes; then | |
10000 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
10001 | else | |
10002 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
10003 | fi | |
10004 | ||
10005 | else | |
10006 | ||
10007 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
10008 | if test "x$LINE" != x ; then | |
10009 | eval "DEFAULT_$LINE" | |
10010 | else | |
10011 | no_cache=1 | |
10012 | fi | |
10013 | ||
10014 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
10015 | ||
10016 | fi; | |
10017 | ||
10018 | eval "$ac_cv_use_mousewheel" | |
10019 | if test "$no_cache" != 1; then | |
10020 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
10021 | fi | |
10022 | ||
10023 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
10024 | echo "$as_me:$LINENO: result: yes" >&5 | |
10025 | echo "${ECHO_T}yes" >&6 | |
10026 | else | |
10027 | echo "$as_me:$LINENO: result: no" >&5 | |
10028 | echo "${ECHO_T}no" >&6 | |
10029 | fi | |
10030 | ||
10031 | ||
a848cd7e SC |
10032 | enablestring= |
10033 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
10034 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10035 | no_cache=0 | |
10036 | # Check whether --enable-validators or --disable-validators was given. | |
10037 | if test "${enable_validators+set}" = set; then | |
10038 | enableval="$enable_validators" | |
10039 | ||
10040 | if test "$enableval" = yes; then | |
10041 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
10042 | else | |
10043 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
10044 | fi | |
10045 | ||
10046 | else | |
10047 | ||
10048 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
10049 | if test "x$LINE" != x ; then | |
10050 | eval "DEFAULT_$LINE" | |
10051 | else | |
10052 | no_cache=1 | |
10053 | fi | |
10054 | ||
10055 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10056 | ||
10057 | fi; | |
10058 | ||
10059 | eval "$ac_cv_use_validators" | |
10060 | if test "$no_cache" != 1; then | |
10061 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
10062 | fi | |
10063 | ||
10064 | if test "$wxUSE_VALIDATORS" = yes; then | |
10065 | echo "$as_me:$LINENO: result: yes" >&5 | |
10066 | echo "${ECHO_T}yes" >&6 | |
10067 | else | |
10068 | echo "$as_me:$LINENO: result: no" >&5 | |
10069 | echo "${ECHO_T}no" >&6 | |
10070 | fi | |
10071 | ||
10072 | ||
10073 | enablestring= | |
10074 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
10075 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10076 | no_cache=0 | |
10077 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
10078 | if test "${enable_busyinfo+set}" = set; then | |
10079 | enableval="$enable_busyinfo" | |
10080 | ||
10081 | if test "$enableval" = yes; then | |
10082 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
10083 | else | |
10084 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
10085 | fi | |
10086 | ||
10087 | else | |
10088 | ||
10089 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
10090 | if test "x$LINE" != x ; then | |
10091 | eval "DEFAULT_$LINE" | |
10092 | else | |
10093 | no_cache=1 | |
10094 | fi | |
10095 | ||
10096 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10097 | ||
10098 | fi; | |
10099 | ||
10100 | eval "$ac_cv_use_busyinfo" | |
10101 | if test "$no_cache" != 1; then | |
10102 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
10103 | fi | |
10104 | ||
10105 | if test "$wxUSE_BUSYINFO" = yes; then | |
10106 | echo "$as_me:$LINENO: result: yes" >&5 | |
10107 | echo "${ECHO_T}yes" >&6 | |
10108 | else | |
10109 | echo "$as_me:$LINENO: result: no" >&5 | |
10110 | echo "${ECHO_T}no" >&6 | |
10111 | fi | |
10112 | ||
10113 | ||
10114 | enablestring= | |
10115 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
10116 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
10117 | no_cache=0 | |
10118 | # Check whether --enable-joystick or --disable-joystick was given. | |
10119 | if test "${enable_joystick+set}" = set; then | |
10120 | enableval="$enable_joystick" | |
10121 | ||
10122 | if test "$enableval" = yes; then | |
10123 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
10124 | else | |
10125 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
10126 | fi | |
10127 | ||
10128 | else | |
10129 | ||
10130 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
10131 | if test "x$LINE" != x ; then | |
10132 | eval "DEFAULT_$LINE" | |
10133 | else | |
10134 | no_cache=1 | |
10135 | fi | |
10136 | ||
10137 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
10138 | ||
10139 | fi; | |
10140 | ||
10141 | eval "$ac_cv_use_joystick" | |
10142 | if test "$no_cache" != 1; then | |
10143 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
10144 | fi | |
10145 | ||
10146 | if test "$wxUSE_JOYSTICK" = yes; then | |
10147 | echo "$as_me:$LINENO: result: yes" >&5 | |
10148 | echo "${ECHO_T}yes" >&6 | |
10149 | else | |
10150 | echo "$as_me:$LINENO: result: no" >&5 | |
10151 | echo "${ECHO_T}no" >&6 | |
10152 | fi | |
10153 | ||
10154 | ||
10155 | enablestring= | |
10156 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
10157 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
10158 | no_cache=0 | |
10159 | # Check whether --enable-metafile or --disable-metafile was given. | |
10160 | if test "${enable_metafile+set}" = set; then | |
10161 | enableval="$enable_metafile" | |
10162 | ||
10163 | if test "$enableval" = yes; then | |
10164 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
10165 | else | |
10166 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
10167 | fi | |
10168 | ||
10169 | else | |
10170 | ||
10171 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
10172 | if test "x$LINE" != x ; then | |
10173 | eval "DEFAULT_$LINE" | |
10174 | else | |
10175 | no_cache=1 | |
10176 | fi | |
10177 | ||
10178 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
10179 | ||
10180 | fi; | |
10181 | ||
10182 | eval "$ac_cv_use_metafile" | |
10183 | if test "$no_cache" != 1; then | |
10184 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
10185 | fi | |
10186 | ||
10187 | if test "$wxUSE_METAFILE" = yes; then | |
10188 | echo "$as_me:$LINENO: result: yes" >&5 | |
10189 | echo "${ECHO_T}yes" >&6 | |
10190 | else | |
10191 | echo "$as_me:$LINENO: result: no" >&5 | |
10192 | echo "${ECHO_T}no" >&6 | |
10193 | fi | |
10194 | ||
10195 | ||
10196 | enablestring= | |
10197 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
10198 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
10199 | no_cache=0 | |
10200 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
10201 | if test "${enable_dragimage+set}" = set; then | |
10202 | enableval="$enable_dragimage" | |
10203 | ||
10204 | if test "$enableval" = yes; then | |
10205 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
10206 | else | |
10207 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
10208 | fi | |
10209 | ||
10210 | else | |
10211 | ||
10212 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
10213 | if test "x$LINE" != x ; then | |
10214 | eval "DEFAULT_$LINE" | |
10215 | else | |
10216 | no_cache=1 | |
10217 | fi | |
10218 | ||
10219 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
10220 | ||
10221 | fi; | |
10222 | ||
10223 | eval "$ac_cv_use_dragimage" | |
10224 | if test "$no_cache" != 1; then | |
10225 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10226 | fi | |
10227 | ||
10228 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10229 | echo "$as_me:$LINENO: result: yes" >&5 | |
10230 | echo "${ECHO_T}yes" >&6 | |
10231 | else | |
10232 | echo "$as_me:$LINENO: result: no" >&5 | |
10233 | echo "${ECHO_T}no" >&6 | |
10234 | fi | |
10235 | ||
10236 | ||
10237 | enablestring= | |
10238 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10239 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10240 | no_cache=0 | |
10241 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10242 | if test "${enable_accessibility+set}" = set; then | |
10243 | enableval="$enable_accessibility" | |
10244 | ||
10245 | if test "$enableval" = yes; then | |
10246 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10247 | else | |
10248 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10249 | fi | |
10250 | ||
10251 | else | |
10252 | ||
10253 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10254 | if test "x$LINE" != x ; then | |
10255 | eval "DEFAULT_$LINE" | |
10256 | else | |
10257 | no_cache=1 | |
10258 | fi | |
10259 | ||
10260 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10261 | ||
10262 | fi; | |
10263 | ||
10264 | eval "$ac_cv_use_accessibility" | |
10265 | if test "$no_cache" != 1; then | |
10266 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10267 | fi | |
10268 | ||
10269 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10270 | echo "$as_me:$LINENO: result: yes" >&5 | |
10271 | echo "${ECHO_T}yes" >&6 | |
10272 | else | |
10273 | echo "$as_me:$LINENO: result: no" >&5 | |
10274 | echo "${ECHO_T}no" >&6 | |
10275 | fi | |
10276 | ||
10277 | ||
38b4a946 VZ |
10278 | if test "$wxUSE_MSW" = "1"; then |
10279 | ||
10280 | enablestring= | |
10281 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10282 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10283 | no_cache=0 | |
10284 | # Check whether --enable-dccache or --disable-dccache was given. | |
10285 | if test "${enable_dccache+set}" = set; then | |
10286 | enableval="$enable_dccache" | |
10287 | ||
10288 | if test "$enableval" = yes; then | |
10289 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10290 | else | |
10291 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10292 | fi | |
10293 | ||
10294 | else | |
10295 | ||
10296 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10297 | if test "x$LINE" != x ; then | |
10298 | eval "DEFAULT_$LINE" | |
10299 | else | |
10300 | no_cache=1 | |
10301 | fi | |
10302 | ||
10303 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10304 | ||
10305 | fi; | |
10306 | ||
10307 | eval "$ac_cv_use_dccache" | |
10308 | if test "$no_cache" != 1; then | |
10309 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10310 | fi | |
10311 | ||
10312 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10313 | echo "$as_me:$LINENO: result: yes" >&5 | |
10314 | echo "${ECHO_T}yes" >&6 | |
10315 | else | |
10316 | echo "$as_me:$LINENO: result: no" >&5 | |
10317 | echo "${ECHO_T}no" >&6 | |
10318 | fi | |
10319 | ||
10320 | fi | |
10321 | ||
a848cd7e SC |
10322 | |
10323 | ||
10324 | enablestring= | |
10325 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10326 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10327 | no_cache=0 | |
10328 | # Check whether --enable-palette or --disable-palette was given. | |
10329 | if test "${enable_palette+set}" = set; then | |
10330 | enableval="$enable_palette" | |
10331 | ||
10332 | if test "$enableval" = yes; then | |
10333 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10334 | else | |
10335 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10336 | fi | |
10337 | ||
10338 | else | |
10339 | ||
10340 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10341 | if test "x$LINE" != x ; then | |
10342 | eval "DEFAULT_$LINE" | |
10343 | else | |
10344 | no_cache=1 | |
10345 | fi | |
10346 | ||
10347 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10348 | ||
10349 | fi; | |
10350 | ||
10351 | eval "$ac_cv_use_palette" | |
10352 | if test "$no_cache" != 1; then | |
10353 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10354 | fi | |
10355 | ||
10356 | if test "$wxUSE_PALETTE" = yes; then | |
10357 | echo "$as_me:$LINENO: result: yes" >&5 | |
10358 | echo "${ECHO_T}yes" >&6 | |
10359 | else | |
10360 | echo "$as_me:$LINENO: result: no" >&5 | |
10361 | echo "${ECHO_T}no" >&6 | |
10362 | fi | |
10363 | ||
10364 | ||
10365 | enablestring= | |
10366 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10367 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10368 | no_cache=0 | |
10369 | # Check whether --enable-image or --disable-image was given. | |
10370 | if test "${enable_image+set}" = set; then | |
10371 | enableval="$enable_image" | |
10372 | ||
10373 | if test "$enableval" = yes; then | |
10374 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10375 | else | |
10376 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10377 | fi | |
10378 | ||
10379 | else | |
10380 | ||
10381 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10382 | if test "x$LINE" != x ; then | |
10383 | eval "DEFAULT_$LINE" | |
10384 | else | |
10385 | no_cache=1 | |
10386 | fi | |
10387 | ||
10388 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10389 | ||
10390 | fi; | |
10391 | ||
10392 | eval "$ac_cv_use_image" | |
10393 | if test "$no_cache" != 1; then | |
10394 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10395 | fi | |
10396 | ||
10397 | if test "$wxUSE_IMAGE" = yes; then | |
10398 | echo "$as_me:$LINENO: result: yes" >&5 | |
10399 | echo "${ECHO_T}yes" >&6 | |
10400 | else | |
10401 | echo "$as_me:$LINENO: result: no" >&5 | |
10402 | echo "${ECHO_T}no" >&6 | |
10403 | fi | |
10404 | ||
10405 | ||
10406 | enablestring= | |
10407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10408 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10409 | no_cache=0 | |
10410 | # Check whether --enable-gif or --disable-gif was given. | |
10411 | if test "${enable_gif+set}" = set; then | |
10412 | enableval="$enable_gif" | |
10413 | ||
10414 | if test "$enableval" = yes; then | |
10415 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10416 | else | |
10417 | ac_cv_use_gif='wxUSE_GIF=no' | |
10418 | fi | |
10419 | ||
10420 | else | |
10421 | ||
10422 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10423 | if test "x$LINE" != x ; then | |
10424 | eval "DEFAULT_$LINE" | |
10425 | else | |
10426 | no_cache=1 | |
10427 | fi | |
10428 | ||
10429 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10430 | ||
10431 | fi; | |
10432 | ||
10433 | eval "$ac_cv_use_gif" | |
10434 | if test "$no_cache" != 1; then | |
10435 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10436 | fi | |
10437 | ||
10438 | if test "$wxUSE_GIF" = yes; then | |
10439 | echo "$as_me:$LINENO: result: yes" >&5 | |
10440 | echo "${ECHO_T}yes" >&6 | |
10441 | else | |
10442 | echo "$as_me:$LINENO: result: no" >&5 | |
10443 | echo "${ECHO_T}no" >&6 | |
10444 | fi | |
10445 | ||
10446 | ||
10447 | enablestring= | |
10448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10449 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10450 | no_cache=0 | |
10451 | # Check whether --enable-pcx or --disable-pcx was given. | |
10452 | if test "${enable_pcx+set}" = set; then | |
10453 | enableval="$enable_pcx" | |
10454 | ||
10455 | if test "$enableval" = yes; then | |
10456 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10457 | else | |
10458 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10459 | fi | |
10460 | ||
10461 | else | |
10462 | ||
10463 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10464 | if test "x$LINE" != x ; then | |
10465 | eval "DEFAULT_$LINE" | |
10466 | else | |
10467 | no_cache=1 | |
10468 | fi | |
10469 | ||
10470 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10471 | ||
10472 | fi; | |
10473 | ||
10474 | eval "$ac_cv_use_pcx" | |
10475 | if test "$no_cache" != 1; then | |
10476 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10477 | fi | |
10478 | ||
10479 | if test "$wxUSE_PCX" = yes; then | |
10480 | echo "$as_me:$LINENO: result: yes" >&5 | |
10481 | echo "${ECHO_T}yes" >&6 | |
10482 | else | |
10483 | echo "$as_me:$LINENO: result: no" >&5 | |
10484 | echo "${ECHO_T}no" >&6 | |
10485 | fi | |
10486 | ||
10487 | ||
10488 | enablestring= | |
10489 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10490 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10491 | no_cache=0 | |
10492 | # Check whether --enable-iff or --disable-iff was given. | |
10493 | if test "${enable_iff+set}" = set; then | |
10494 | enableval="$enable_iff" | |
10495 | ||
10496 | if test "$enableval" = yes; then | |
10497 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10498 | else | |
10499 | ac_cv_use_iff='wxUSE_IFF=no' | |
10500 | fi | |
10501 | ||
10502 | else | |
10503 | ||
10504 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10505 | if test "x$LINE" != x ; then | |
10506 | eval "DEFAULT_$LINE" | |
10507 | else | |
10508 | no_cache=1 | |
10509 | fi | |
10510 | ||
10511 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10512 | ||
10513 | fi; | |
10514 | ||
10515 | eval "$ac_cv_use_iff" | |
10516 | if test "$no_cache" != 1; then | |
10517 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10518 | fi | |
10519 | ||
10520 | if test "$wxUSE_IFF" = yes; then | |
10521 | echo "$as_me:$LINENO: result: yes" >&5 | |
10522 | echo "${ECHO_T}yes" >&6 | |
10523 | else | |
10524 | echo "$as_me:$LINENO: result: no" >&5 | |
10525 | echo "${ECHO_T}no" >&6 | |
10526 | fi | |
10527 | ||
10528 | ||
10529 | enablestring= | |
10530 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10531 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10532 | no_cache=0 | |
10533 | # Check whether --enable-pnm or --disable-pnm was given. | |
10534 | if test "${enable_pnm+set}" = set; then | |
10535 | enableval="$enable_pnm" | |
10536 | ||
10537 | if test "$enableval" = yes; then | |
10538 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10539 | else | |
10540 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10541 | fi | |
10542 | ||
10543 | else | |
10544 | ||
10545 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10546 | if test "x$LINE" != x ; then | |
10547 | eval "DEFAULT_$LINE" | |
10548 | else | |
10549 | no_cache=1 | |
10550 | fi | |
10551 | ||
10552 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10553 | ||
10554 | fi; | |
10555 | ||
10556 | eval "$ac_cv_use_pnm" | |
10557 | if test "$no_cache" != 1; then | |
10558 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10559 | fi | |
10560 | ||
10561 | if test "$wxUSE_PNM" = yes; then | |
10562 | echo "$as_me:$LINENO: result: yes" >&5 | |
10563 | echo "${ECHO_T}yes" >&6 | |
10564 | else | |
10565 | echo "$as_me:$LINENO: result: no" >&5 | |
10566 | echo "${ECHO_T}no" >&6 | |
10567 | fi | |
10568 | ||
10569 | ||
10570 | enablestring= | |
10571 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10572 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10573 | no_cache=0 | |
10574 | # Check whether --enable-xpm or --disable-xpm was given. | |
10575 | if test "${enable_xpm+set}" = set; then | |
10576 | enableval="$enable_xpm" | |
10577 | ||
10578 | if test "$enableval" = yes; then | |
10579 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10580 | else | |
10581 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10582 | fi | |
10583 | ||
10584 | else | |
10585 | ||
10586 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10587 | if test "x$LINE" != x ; then | |
10588 | eval "DEFAULT_$LINE" | |
10589 | else | |
10590 | no_cache=1 | |
10591 | fi | |
10592 | ||
10593 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10594 | ||
10595 | fi; | |
10596 | ||
10597 | eval "$ac_cv_use_xpm" | |
10598 | if test "$no_cache" != 1; then | |
10599 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10600 | fi | |
10601 | ||
10602 | if test "$wxUSE_XPM" = yes; then | |
10603 | echo "$as_me:$LINENO: result: yes" >&5 | |
10604 | echo "${ECHO_T}yes" >&6 | |
10605 | else | |
10606 | echo "$as_me:$LINENO: result: no" >&5 | |
10607 | echo "${ECHO_T}no" >&6 | |
10608 | fi | |
10609 | ||
10610 | ||
10611 | enablestring= | |
10612 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10613 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10614 | no_cache=0 | |
10615 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10616 | if test "${enable_ico_cur+set}" = set; then | |
10617 | enableval="$enable_ico_cur" | |
10618 | ||
10619 | if test "$enableval" = yes; then | |
10620 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10621 | else | |
10622 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10623 | fi | |
10624 | ||
10625 | else | |
10626 | ||
10627 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10628 | if test "x$LINE" != x ; then | |
10629 | eval "DEFAULT_$LINE" | |
10630 | else | |
10631 | no_cache=1 | |
10632 | fi | |
10633 | ||
10634 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10635 | ||
10636 | fi; | |
10637 | ||
10638 | eval "$ac_cv_use_ico_cur" | |
10639 | if test "$no_cache" != 1; then | |
10640 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10641 | fi | |
10642 | ||
10643 | if test "$wxUSE_ICO_CUR" = yes; then | |
10644 | echo "$as_me:$LINENO: result: yes" >&5 | |
10645 | echo "${ECHO_T}yes" >&6 | |
10646 | else | |
10647 | echo "$as_me:$LINENO: result: no" >&5 | |
10648 | echo "${ECHO_T}no" >&6 | |
10649 | fi | |
10650 | ||
10651 | ||
10652 | fi | |
10653 | ||
10654 | ||
10655 | ||
ceec2216 RL |
10656 | # Check whether --with-flavour or --without-flavour was given. |
10657 | if test "${with_flavour+set}" = set; then | |
10658 | withval="$with_flavour" | |
10659 | WX_FLAVOUR="$withval" | |
10660 | fi; | |
10661 | ||
10662 | ||
10663 | ||
a848cd7e SC |
10664 | enablestring= |
10665 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10666 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10667 | no_cache=0 | |
10668 | # Check whether --enable-official_build or --disable-official_build was given. | |
10669 | if test "${enable_official_build+set}" = set; then | |
10670 | enableval="$enable_official_build" | |
10671 | ||
10672 | if test "$enableval" = yes; then | |
10673 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10674 | else | |
10675 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10676 | fi | |
10677 | ||
10678 | else | |
10679 | ||
10680 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10681 | if test "x$LINE" != x ; then | |
10682 | eval "DEFAULT_$LINE" | |
10683 | else | |
10684 | no_cache=1 | |
10685 | fi | |
10686 | ||
10687 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10688 | ||
10689 | fi; | |
10690 | ||
10691 | eval "$ac_cv_use_official_build" | |
10692 | if test "$no_cache" != 1; then | |
10693 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10694 | fi | |
10695 | ||
10696 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10697 | echo "$as_me:$LINENO: result: yes" >&5 | |
10698 | echo "${ECHO_T}yes" >&6 | |
10699 | else | |
10700 | echo "$as_me:$LINENO: result: no" >&5 | |
10701 | echo "${ECHO_T}no" >&6 | |
10702 | fi | |
10703 | ||
10704 | # Check whether --enable-vendor or --disable-vendor was given. | |
10705 | if test "${enable_vendor+set}" = set; then | |
10706 | enableval="$enable_vendor" | |
10707 | VENDOR="$enableval" | |
10708 | fi; | |
10709 | if test "x$VENDOR" = "x"; then | |
10710 | VENDOR="custom" | |
10711 | fi | |
10712 | ||
a848cd7e SC |
10713 | |
10714 | ||
10715 | ||
10716 | echo "saving argument cache $wx_arg_cache_file" | |
10717 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10718 | ||
10719 | ||
10720 | ||
10721 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10722 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10723 | ||
10724 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10725 | if test "$wxUSE_WINE" = "yes"; then | |
10726 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10727 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10728 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10729 | wxUSE_SHARED=no | |
10730 | fi | |
10731 | ||
f597b41c | 10732 | |
a848cd7e SC |
10733 | if test "$wxUSE_GUI" = "yes"; then |
10734 | ||
10735 | if test "$USE_BEOS" = 1; then | |
10736 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10737 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10738 | { (exit 1); exit 1; }; } | |
10739 | fi | |
10740 | ||
10741 | if test "$TOOLKIT_GIVEN" = 1; then | |
10742 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10743 | var=wxUSE_$toolkit | |
10744 | eval "value=\$${var}" | |
f34ca037 MW |
10745 | if test "x$value" = "xno"; then |
10746 | eval "$var=0" | |
10747 | elif test "x$value" != "x"; then | |
10748 | eval "$var=1" | |
10749 | fi | |
10750 | ||
10751 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10752 | eval "wx${toolkit}_VERSION=$value" | |
10753 | fi | |
a848cd7e SC |
10754 | done |
10755 | else | |
10756 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10757 | if test "$has_toolkit_in_cache" != 1; then | |
10758 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10759 | else | |
10760 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10761 | |
10762 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10763 | if test "x$version" != "x"; then | |
10764 | eval "wx${toolkit}_VERSION=$version" | |
10765 | fi | |
a848cd7e SC |
10766 | fi |
10767 | eval "wxUSE_$toolkit=\$${var}" | |
10768 | done | |
10769 | fi | |
10770 | ||
10771 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10772 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10773 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10774 | ||
10775 | case "${host}" in | |
10776 | *-pc-os2_emx | *-pc-os2-emx ) | |
10777 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10778 | esac | |
10779 | ||
10780 | case "$NUM_TOOLKITS" in | |
10781 | 1) | |
10782 | ;; | |
10783 | 0) | |
10784 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10785 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10786 | { (exit 1); exit 1; }; } | |
10787 | ;; | |
10788 | *) | |
10789 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10790 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10791 | { (exit 1); exit 1; }; } | |
10792 | esac | |
10793 | ||
f34ca037 MW |
10794 | # to be removed when --disable-gtk2 isn't needed |
10795 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10796 | wxGTK_VERSION=2 | |
10797 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10798 | wxGTK_VERSION=1 | |
10799 | fi | |
10800 | ||
a848cd7e SC |
10801 | for toolkit in `echo $ALL_TOOLKITS`; do |
10802 | var=wxUSE_$toolkit | |
10803 | eval "value=\$${var}" | |
10804 | if test "x$value" != x; then | |
10805 | cache_var=CACHE_$toolkit | |
10806 | eval "cache=\$${cache_var}" | |
10807 | if test "$cache" = 1; then | |
10808 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10809 | eval "version=\$wx${toolkit}_VERSION" |
10810 | if test "x$version" != "x"; then | |
10811 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10812 | fi | |
a848cd7e SC |
10813 | fi |
10814 | if test "$value" = 1; then | |
10815 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10816 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10817 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10818 | fi | |
10819 | fi | |
10820 | done | |
10821 | else | |
10822 | if test "x$host_alias" != "x"; then | |
10823 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10824 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10825 | else | |
10826 | echo "$as_me:$LINENO: result: base only" >&5 | |
10827 | echo "${ECHO_T}base only" >&6 | |
10828 | fi | |
10829 | fi | |
10830 | ||
10831 | wants_win32=0 | |
10832 | doesnt_want_win32=0 | |
10833 | case "${host}" in | |
10834 | *-*-cygwin*) | |
10835 | if test "$wxUSE_MSW" = 1 ; then | |
10836 | wants_win32=1 | |
7275146d | 10837 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
10838 | else |
10839 | doesnt_want_win32=1 | |
10840 | fi | |
10841 | ;; | |
10842 | *-*-mingw*) | |
10843 | wants_win32=1 | |
10844 | ;; | |
10845 | esac | |
10846 | ||
10847 | if test "$wxUSE_WINE" = "yes"; then | |
10848 | wants_win32=1 | |
10849 | CC=winegcc | |
10850 | CXX=wineg++ | |
a848cd7e SC |
10851 | LDFLAGS_GUI="-mwindows" |
10852 | fi | |
10853 | ||
10854 | if test "$wants_win32" = 1 ; then | |
10855 | USE_UNIX=0 | |
10856 | USE_WIN32=1 | |
10857 | cat >>confdefs.h <<\_ACEOF | |
10858 | #define __WIN32__ 1 | |
10859 | _ACEOF | |
10860 | ||
10861 | cat >>confdefs.h <<\_ACEOF | |
10862 | #define __WIN95__ 1 | |
10863 | _ACEOF | |
10864 | ||
10865 | cat >>confdefs.h <<\_ACEOF | |
10866 | #define __WINDOWS__ 1 | |
10867 | _ACEOF | |
10868 | ||
10869 | cat >>confdefs.h <<\_ACEOF | |
10870 | #define __GNUWIN32__ 1 | |
10871 | _ACEOF | |
10872 | ||
10873 | cat >>confdefs.h <<\_ACEOF | |
10874 | #define STRICT 1 | |
10875 | _ACEOF | |
10876 | ||
10877 | cat >>confdefs.h <<\_ACEOF | |
10878 | #define WINVER 0x0400 | |
10879 | _ACEOF | |
10880 | ||
10881 | fi | |
10882 | if test "$doesnt_want_win32" = 1 ; then | |
10883 | USE_UNIX=1 | |
10884 | USE_WIN32=0 | |
10885 | fi | |
10886 | ||
10887 | if test "$USE_UNIX" = 1 ; then | |
10888 | wxUSE_UNIX=yes | |
10889 | cat >>confdefs.h <<\_ACEOF | |
10890 | #define __UNIX__ 1 | |
10891 | _ACEOF | |
10892 | ||
10893 | fi | |
10894 | ||
10895 | ||
10896 | cat >confcache <<\_ACEOF | |
10897 | # This file is a shell script that caches the results of configure | |
10898 | # tests run on this system so they can be shared between configure | |
10899 | # scripts and configure runs, see configure's option --config-cache. | |
10900 | # It is not useful on other systems. If it contains results you don't | |
10901 | # want to keep, you may remove or edit it. | |
10902 | # | |
10903 | # config.status only pays attention to the cache file if you give it | |
10904 | # the --recheck option to rerun configure. | |
10905 | # | |
10906 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10907 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10908 | # following values. | |
10909 | ||
10910 | _ACEOF | |
10911 | ||
10912 | # The following way of writing the cache mishandles newlines in values, | |
10913 | # but we know of no workaround that is simple, portable, and efficient. | |
10914 | # So, don't put newlines in cache variables' values. | |
10915 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10916 | # and sets the high bit in the cache file unless we assign to the vars. | |
10917 | { | |
10918 | (set) 2>&1 | | |
10919 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10920 | *ac_space=\ *) | |
10921 | # `set' does not quote correctly, so add quotes (double-quote | |
10922 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10923 | sed -n \ | |
ac1cb8d3 VS |
10924 | "s/'/'\\\\''/g; |
10925 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10926 | ;; |
10927 | *) | |
10928 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10929 | sed -n \ | |
ac1cb8d3 | 10930 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10931 | ;; |
10932 | esac; | |
10933 | } | | |
10934 | sed ' | |
10935 | t clear | |
10936 | : clear | |
10937 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10938 | t end | |
10939 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10940 | : end' >>confcache | |
10941 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10942 | if test -w $cache_file; then | |
10943 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10944 | cat confcache >$cache_file | |
10945 | else | |
10946 | echo "not updating unwritable cache $cache_file" | |
10947 | fi | |
10948 | fi | |
10949 | rm -f confcache | |
10950 | ||
a848cd7e | 10951 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
10952 | |
10953 | ||
3006edc0 | 10954 | |
6dcfc289 | 10955 | ac_ext=c |
a848cd7e SC |
10956 | ac_cpp='$CPP $CPPFLAGS' |
10957 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10958 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10959 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10960 | if test -n "$ac_tool_prefix"; then | |
10961 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10962 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10965 | if test "${ac_cv_prog_CC+set}" = set; then | |
10966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10967 | else | |
10968 | if test -n "$CC"; then | |
10969 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10970 | else | |
10971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10972 | for as_dir in $PATH | |
10973 | do | |
10974 | IFS=$as_save_IFS | |
10975 | test -z "$as_dir" && as_dir=. | |
10976 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10977 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10978 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10980 | break 2 | |
10981 | fi | |
10982 | done | |
10983 | done | |
10984 | ||
10985 | fi | |
10986 | fi | |
10987 | CC=$ac_cv_prog_CC | |
10988 | if test -n "$CC"; then | |
10989 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10990 | echo "${ECHO_T}$CC" >&6 | |
10991 | else | |
10992 | echo "$as_me:$LINENO: result: no" >&5 | |
10993 | echo "${ECHO_T}no" >&6 | |
10994 | fi | |
10995 | ||
10996 | fi | |
10997 | if test -z "$ac_cv_prog_CC"; then | |
10998 | ac_ct_CC=$CC | |
10999 | # Extract the first word of "gcc", so it can be a program name with args. | |
11000 | set dummy gcc; ac_word=$2 | |
11001 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11003 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11005 | else | |
11006 | if test -n "$ac_ct_CC"; then | |
11007 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11008 | else | |
11009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11010 | for as_dir in $PATH | |
11011 | do | |
11012 | IFS=$as_save_IFS | |
11013 | test -z "$as_dir" && as_dir=. | |
11014 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11015 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11016 | ac_cv_prog_ac_ct_CC="gcc" | |
11017 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11018 | break 2 | |
11019 | fi | |
11020 | done | |
11021 | done | |
11022 | ||
11023 | fi | |
11024 | fi | |
11025 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11026 | if test -n "$ac_ct_CC"; then | |
11027 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11028 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11029 | else | |
11030 | echo "$as_me:$LINENO: result: no" >&5 | |
11031 | echo "${ECHO_T}no" >&6 | |
11032 | fi | |
11033 | ||
11034 | CC=$ac_ct_CC | |
11035 | else | |
11036 | CC="$ac_cv_prog_CC" | |
11037 | fi | |
11038 | ||
11039 | if test -z "$CC"; then | |
11040 | if test -n "$ac_tool_prefix"; then | |
11041 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
11042 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
11043 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11045 | if test "${ac_cv_prog_CC+set}" = set; then | |
11046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11047 | else | |
11048 | if test -n "$CC"; then | |
11049 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11050 | else | |
11051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11052 | for as_dir in $PATH | |
11053 | do | |
11054 | IFS=$as_save_IFS | |
11055 | test -z "$as_dir" && as_dir=. | |
11056 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11057 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11058 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
11059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11060 | break 2 | |
11061 | fi | |
11062 | done | |
11063 | done | |
11064 | ||
11065 | fi | |
11066 | fi | |
11067 | CC=$ac_cv_prog_CC | |
11068 | if test -n "$CC"; then | |
11069 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11070 | echo "${ECHO_T}$CC" >&6 | |
11071 | else | |
11072 | echo "$as_me:$LINENO: result: no" >&5 | |
11073 | echo "${ECHO_T}no" >&6 | |
11074 | fi | |
11075 | ||
11076 | fi | |
11077 | if test -z "$ac_cv_prog_CC"; then | |
11078 | ac_ct_CC=$CC | |
11079 | # Extract the first word of "cc", so it can be a program name with args. | |
11080 | set dummy cc; ac_word=$2 | |
11081 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11083 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11085 | else | |
11086 | if test -n "$ac_ct_CC"; then | |
11087 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11088 | else | |
11089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11090 | for as_dir in $PATH | |
11091 | do | |
11092 | IFS=$as_save_IFS | |
11093 | test -z "$as_dir" && as_dir=. | |
11094 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11095 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11096 | ac_cv_prog_ac_ct_CC="cc" | |
11097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11098 | break 2 | |
11099 | fi | |
11100 | done | |
11101 | done | |
11102 | ||
11103 | fi | |
11104 | fi | |
11105 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11106 | if test -n "$ac_ct_CC"; then | |
11107 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11108 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11109 | else | |
11110 | echo "$as_me:$LINENO: result: no" >&5 | |
11111 | echo "${ECHO_T}no" >&6 | |
11112 | fi | |
11113 | ||
11114 | CC=$ac_ct_CC | |
11115 | else | |
11116 | CC="$ac_cv_prog_CC" | |
11117 | fi | |
11118 | ||
11119 | fi | |
11120 | if test -z "$CC"; then | |
11121 | # Extract the first word of "cc", so it can be a program name with args. | |
11122 | set dummy cc; ac_word=$2 | |
11123 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11124 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11125 | if test "${ac_cv_prog_CC+set}" = set; then | |
11126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11127 | else | |
11128 | if test -n "$CC"; then | |
11129 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11130 | else | |
11131 | ac_prog_rejected=no | |
11132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11133 | for as_dir in $PATH | |
11134 | do | |
11135 | IFS=$as_save_IFS | |
11136 | test -z "$as_dir" && as_dir=. | |
11137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11138 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11139 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
11140 | ac_prog_rejected=yes | |
11141 | continue | |
11142 | fi | |
11143 | ac_cv_prog_CC="cc" | |
11144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11145 | break 2 | |
11146 | fi | |
11147 | done | |
11148 | done | |
11149 | ||
11150 | if test $ac_prog_rejected = yes; then | |
11151 | # We found a bogon in the path, so make sure we never use it. | |
11152 | set dummy $ac_cv_prog_CC | |
11153 | shift | |
11154 | if test $# != 0; then | |
11155 | # We chose a different compiler from the bogus one. | |
11156 | # However, it has the same basename, so the bogon will be chosen | |
11157 | # first if we set CC to just the basename; use the full file name. | |
11158 | shift | |
11159 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
11160 | fi | |
11161 | fi | |
11162 | fi | |
11163 | fi | |
11164 | CC=$ac_cv_prog_CC | |
11165 | if test -n "$CC"; then | |
11166 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11167 | echo "${ECHO_T}$CC" >&6 | |
11168 | else | |
11169 | echo "$as_me:$LINENO: result: no" >&5 | |
11170 | echo "${ECHO_T}no" >&6 | |
11171 | fi | |
11172 | ||
11173 | fi | |
11174 | if test -z "$CC"; then | |
11175 | if test -n "$ac_tool_prefix"; then | |
11176 | for ac_prog in cl | |
11177 | do | |
11178 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11179 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11180 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11182 | if test "${ac_cv_prog_CC+set}" = set; then | |
11183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11184 | else | |
11185 | if test -n "$CC"; then | |
11186 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11187 | else | |
11188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11189 | for as_dir in $PATH | |
11190 | do | |
11191 | IFS=$as_save_IFS | |
11192 | test -z "$as_dir" && as_dir=. | |
11193 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11194 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11195 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
11196 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11197 | break 2 | |
11198 | fi | |
11199 | done | |
11200 | done | |
11201 | ||
11202 | fi | |
11203 | fi | |
11204 | CC=$ac_cv_prog_CC | |
11205 | if test -n "$CC"; then | |
11206 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11207 | echo "${ECHO_T}$CC" >&6 | |
11208 | else | |
11209 | echo "$as_me:$LINENO: result: no" >&5 | |
11210 | echo "${ECHO_T}no" >&6 | |
11211 | fi | |
11212 | ||
11213 | test -n "$CC" && break | |
11214 | done | |
11215 | fi | |
11216 | if test -z "$CC"; then | |
11217 | ac_ct_CC=$CC | |
11218 | for ac_prog in cl | |
11219 | do | |
11220 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11221 | set dummy $ac_prog; ac_word=$2 | |
11222 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11223 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11224 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11226 | else | |
11227 | if test -n "$ac_ct_CC"; then | |
11228 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11229 | else | |
11230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11231 | for as_dir in $PATH | |
11232 | do | |
11233 | IFS=$as_save_IFS | |
11234 | test -z "$as_dir" && as_dir=. | |
11235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11236 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11237 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11239 | break 2 | |
11240 | fi | |
11241 | done | |
11242 | done | |
11243 | ||
11244 | fi | |
11245 | fi | |
11246 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11247 | if test -n "$ac_ct_CC"; then | |
11248 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11249 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11250 | else | |
11251 | echo "$as_me:$LINENO: result: no" >&5 | |
11252 | echo "${ECHO_T}no" >&6 | |
11253 | fi | |
11254 | ||
11255 | test -n "$ac_ct_CC" && break | |
11256 | done | |
11257 | ||
11258 | CC=$ac_ct_CC | |
11259 | fi | |
11260 | ||
11261 | fi | |
11262 | ||
11263 | ||
11264 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11265 | See \`config.log' for more details." >&5 | |
11266 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11267 | See \`config.log' for more details." >&2;} | |
11268 | { (exit 1); exit 1; }; } | |
11269 | ||
11270 | # Provide some information about the compiler. | |
11271 | echo "$as_me:$LINENO:" \ | |
11272 | "checking for C compiler version" >&5 | |
11273 | ac_compiler=`set X $ac_compile; echo $2` | |
11274 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11275 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11276 | ac_status=$? | |
11277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11278 | (exit $ac_status); } | |
11279 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11280 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11281 | ac_status=$? | |
11282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11283 | (exit $ac_status); } | |
11284 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11285 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11286 | ac_status=$? | |
11287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11288 | (exit $ac_status); } | |
11289 | ||
11290 | cat >conftest.$ac_ext <<_ACEOF | |
11291 | /* confdefs.h. */ | |
11292 | _ACEOF | |
11293 | cat confdefs.h >>conftest.$ac_ext | |
11294 | cat >>conftest.$ac_ext <<_ACEOF | |
11295 | /* end confdefs.h. */ | |
11296 | ||
11297 | int | |
11298 | main () | |
11299 | { | |
11300 | ||
11301 | ; | |
11302 | return 0; | |
11303 | } | |
11304 | _ACEOF | |
11305 | ac_clean_files_save=$ac_clean_files | |
11306 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11307 | # Try to create an executable without -o first, disregard a.out. | |
11308 | # It will help us diagnose broken compilers, and finding out an intuition | |
11309 | # of exeext. | |
ac1cb8d3 VS |
11310 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11311 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11312 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11313 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11314 | (eval $ac_link_default) 2>&5 | |
11315 | ac_status=$? | |
11316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11317 | (exit $ac_status); }; then | |
11318 | # Find the output, starting from the most likely. This scheme is | |
11319 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11320 | # resort. | |
11321 | ||
11322 | # Be careful to initialize this variable, since it used to be cached. | |
11323 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11324 | ac_cv_exeext= | |
11325 | # b.out is created by i960 compilers. | |
11326 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11327 | do | |
11328 | test -f "$ac_file" || continue | |
11329 | case $ac_file in | |
11330 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11331 | ;; |
a848cd7e | 11332 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11333 | # This is the source file. |
11334 | ;; | |
a848cd7e | 11335 | [ab].out ) |
ac1cb8d3 VS |
11336 | # We found the default executable, but exeext='' is most |
11337 | # certainly right. | |
11338 | break;; | |
a848cd7e | 11339 | *.* ) |
ac1cb8d3 VS |
11340 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11341 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11342 | # but it would be cool to find out if it's true. Does anybody | |
11343 | # maintain Libtool? --akim. | |
11344 | export ac_cv_exeext | |
11345 | break;; | |
a848cd7e | 11346 | * ) |
ac1cb8d3 | 11347 | break;; |
a848cd7e SC |
11348 | esac |
11349 | done | |
11350 | else | |
11351 | echo "$as_me: failed program was:" >&5 | |
11352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11353 | ||
11354 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11355 | See \`config.log' for more details." >&5 | |
11356 | echo "$as_me: error: C compiler cannot create executables | |
11357 | See \`config.log' for more details." >&2;} | |
11358 | { (exit 77); exit 77; }; } | |
11359 | fi | |
11360 | ||
11361 | ac_exeext=$ac_cv_exeext | |
11362 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11363 | echo "${ECHO_T}$ac_file" >&6 | |
11364 | ||
11365 | # Check the compiler produces executables we can run. If not, either | |
11366 | # the compiler is broken, or we cross compile. | |
11367 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11368 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11369 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11370 | # If not cross compiling, check that we can run a simple program. | |
11371 | if test "$cross_compiling" != yes; then | |
11372 | if { ac_try='./$ac_file' | |
11373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11374 | (eval $ac_try) 2>&5 | |
11375 | ac_status=$? | |
11376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11377 | (exit $ac_status); }; }; then | |
11378 | cross_compiling=no | |
11379 | else | |
11380 | if test "$cross_compiling" = maybe; then | |
11381 | cross_compiling=yes | |
11382 | else | |
11383 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11384 | If you meant to cross compile, use \`--host'. | |
11385 | See \`config.log' for more details." >&5 | |
11386 | echo "$as_me: error: cannot run C compiled programs. | |
11387 | If you meant to cross compile, use \`--host'. | |
11388 | See \`config.log' for more details." >&2;} | |
11389 | { (exit 1); exit 1; }; } | |
11390 | fi | |
11391 | fi | |
11392 | fi | |
11393 | echo "$as_me:$LINENO: result: yes" >&5 | |
11394 | echo "${ECHO_T}yes" >&6 | |
11395 | ||
11396 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11397 | ac_clean_files=$ac_clean_files_save | |
11398 | # Check the compiler produces executables we can run. If not, either | |
11399 | # the compiler is broken, or we cross compile. | |
11400 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11401 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11402 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11403 | echo "${ECHO_T}$cross_compiling" >&6 | |
11404 | ||
11405 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11406 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11408 | (eval $ac_link) 2>&5 | |
11409 | ac_status=$? | |
11410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11411 | (exit $ac_status); }; then | |
11412 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11413 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11414 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11415 | # `rm'. | |
11416 | for ac_file in conftest.exe conftest conftest.*; do | |
11417 | test -f "$ac_file" || continue | |
11418 | case $ac_file in | |
11419 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11420 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11421 | export ac_cv_exeext |
11422 | break;; | |
a848cd7e SC |
11423 | * ) break;; |
11424 | esac | |
11425 | done | |
11426 | else | |
11427 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11428 | See \`config.log' for more details." >&5 | |
11429 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11430 | See \`config.log' for more details." >&2;} | |
11431 | { (exit 1); exit 1; }; } | |
11432 | fi | |
11433 | ||
11434 | rm -f conftest$ac_cv_exeext | |
11435 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11436 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11437 | ||
11438 | rm -f conftest.$ac_ext | |
11439 | EXEEXT=$ac_cv_exeext | |
11440 | ac_exeext=$EXEEXT | |
11441 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11442 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11443 | if test "${ac_cv_objext+set}" = set; then | |
11444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11445 | else | |
11446 | cat >conftest.$ac_ext <<_ACEOF | |
11447 | /* confdefs.h. */ | |
11448 | _ACEOF | |
11449 | cat confdefs.h >>conftest.$ac_ext | |
11450 | cat >>conftest.$ac_ext <<_ACEOF | |
11451 | /* end confdefs.h. */ | |
11452 | ||
11453 | int | |
11454 | main () | |
11455 | { | |
11456 | ||
11457 | ; | |
11458 | return 0; | |
11459 | } | |
11460 | _ACEOF | |
11461 | rm -f conftest.o conftest.obj | |
11462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11463 | (eval $ac_compile) 2>&5 | |
11464 | ac_status=$? | |
11465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11466 | (exit $ac_status); }; then | |
11467 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11468 | case $ac_file in | |
11469 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11470 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11471 | break;; | |
11472 | esac | |
11473 | done | |
11474 | else | |
11475 | echo "$as_me: failed program was:" >&5 | |
11476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11477 | ||
11478 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11479 | See \`config.log' for more details." >&5 | |
11480 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11481 | See \`config.log' for more details." >&2;} | |
11482 | { (exit 1); exit 1; }; } | |
11483 | fi | |
11484 | ||
11485 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11486 | fi | |
11487 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11488 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11489 | OBJEXT=$ac_cv_objext | |
11490 | ac_objext=$OBJEXT | |
11491 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11492 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11493 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11495 | else | |
11496 | cat >conftest.$ac_ext <<_ACEOF | |
11497 | /* confdefs.h. */ | |
11498 | _ACEOF | |
11499 | cat confdefs.h >>conftest.$ac_ext | |
11500 | cat >>conftest.$ac_ext <<_ACEOF | |
11501 | /* end confdefs.h. */ | |
11502 | ||
11503 | int | |
11504 | main () | |
11505 | { | |
11506 | #ifndef __GNUC__ | |
11507 | choke me | |
11508 | #endif | |
11509 | ||
11510 | ; | |
11511 | return 0; | |
11512 | } | |
11513 | _ACEOF | |
11514 | rm -f conftest.$ac_objext | |
11515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11516 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11517 | ac_status=$? |
ac1cb8d3 VS |
11518 | grep -v '^ *+' conftest.er1 >conftest.err |
11519 | rm -f conftest.er1 | |
11520 | cat conftest.err >&5 | |
a848cd7e SC |
11521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11522 | (exit $ac_status); } && | |
3565d135 RR |
11523 | { ac_try='test -z "$ac_c_werror_flag" |
11524 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11526 | (eval $ac_try) 2>&5 | |
11527 | ac_status=$? | |
11528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11529 | (exit $ac_status); }; } && | |
11530 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11532 | (eval $ac_try) 2>&5 | |
11533 | ac_status=$? | |
11534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11535 | (exit $ac_status); }; }; then | |
11536 | ac_compiler_gnu=yes | |
11537 | else | |
11538 | echo "$as_me: failed program was:" >&5 | |
11539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11540 | ||
11541 | ac_compiler_gnu=no | |
11542 | fi | |
ac1cb8d3 | 11543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11544 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11545 | ||
11546 | fi | |
11547 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11548 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11549 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11550 | ac_test_CFLAGS=${CFLAGS+set} | |
11551 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 11552 | CFLAGS="-g" |
a848cd7e SC |
11553 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11554 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11555 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11557 | else | |
11558 | cat >conftest.$ac_ext <<_ACEOF | |
11559 | /* confdefs.h. */ | |
11560 | _ACEOF | |
11561 | cat confdefs.h >>conftest.$ac_ext | |
11562 | cat >>conftest.$ac_ext <<_ACEOF | |
11563 | /* end confdefs.h. */ | |
11564 | ||
11565 | int | |
11566 | main () | |
11567 | { | |
11568 | ||
11569 | ; | |
11570 | return 0; | |
11571 | } | |
11572 | _ACEOF | |
11573 | rm -f conftest.$ac_objext | |
11574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11575 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11576 | ac_status=$? |
ac1cb8d3 VS |
11577 | grep -v '^ *+' conftest.er1 >conftest.err |
11578 | rm -f conftest.er1 | |
11579 | cat conftest.err >&5 | |
a848cd7e SC |
11580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11581 | (exit $ac_status); } && | |
3565d135 RR |
11582 | { ac_try='test -z "$ac_c_werror_flag" |
11583 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11585 | (eval $ac_try) 2>&5 | |
11586 | ac_status=$? | |
11587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11588 | (exit $ac_status); }; } && | |
11589 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11591 | (eval $ac_try) 2>&5 | |
11592 | ac_status=$? | |
11593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11594 | (exit $ac_status); }; }; then | |
11595 | ac_cv_prog_cc_g=yes | |
11596 | else | |
11597 | echo "$as_me: failed program was:" >&5 | |
11598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11599 | ||
11600 | ac_cv_prog_cc_g=no | |
11601 | fi | |
ac1cb8d3 | 11602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11603 | fi |
11604 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11605 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11606 | if test "$ac_test_CFLAGS" = set; then | |
11607 | CFLAGS=$ac_save_CFLAGS | |
11608 | elif test $ac_cv_prog_cc_g = yes; then | |
11609 | if test "$GCC" = yes; then | |
11610 | CFLAGS="-g -O2" | |
11611 | else | |
11612 | CFLAGS="-g" | |
11613 | fi | |
11614 | else | |
11615 | if test "$GCC" = yes; then | |
11616 | CFLAGS="-O2" | |
11617 | else | |
11618 | CFLAGS= | |
11619 | fi | |
11620 | fi | |
11621 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11622 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11623 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11625 | else | |
11626 | ac_cv_prog_cc_stdc=no | |
11627 | ac_save_CC=$CC | |
11628 | cat >conftest.$ac_ext <<_ACEOF | |
11629 | /* confdefs.h. */ | |
11630 | _ACEOF | |
11631 | cat confdefs.h >>conftest.$ac_ext | |
11632 | cat >>conftest.$ac_ext <<_ACEOF | |
11633 | /* end confdefs.h. */ | |
11634 | #include <stdarg.h> | |
11635 | #include <stdio.h> | |
11636 | #include <sys/types.h> | |
11637 | #include <sys/stat.h> | |
11638 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11639 | struct buf { int x; }; | |
11640 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11641 | static char *e (p, i) | |
11642 | char **p; | |
11643 | int i; | |
11644 | { | |
11645 | return p[i]; | |
11646 | } | |
11647 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11648 | { | |
11649 | char *s; | |
11650 | va_list v; | |
11651 | va_start (v,p); | |
11652 | s = g (p, va_arg (v,int)); | |
11653 | va_end (v); | |
11654 | return s; | |
11655 | } | |
ac1cb8d3 VS |
11656 | |
11657 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11658 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11659 | These don't provoke an error unfortunately, instead are silently treated | |
11660 | as 'x'. The following induces an error, until -std1 is added to get | |
11661 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11662 | array size at least. It's necessary to write '\x00'==0 to get something | |
11663 | that's true only with -std1. */ | |
11664 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11665 | ||
a848cd7e SC |
11666 | int test (int i, double x); |
11667 | struct s1 {int (*f) (int a);}; | |
11668 | struct s2 {int (*f) (double a);}; | |
11669 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11670 | int argc; | |
11671 | char **argv; | |
11672 | int | |
11673 | main () | |
11674 | { | |
11675 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11676 | ; | |
11677 | return 0; | |
11678 | } | |
11679 | _ACEOF | |
11680 | # Don't try gcc -ansi; that turns off useful extensions and | |
11681 | # breaks some systems' header files. | |
11682 | # AIX -qlanglvl=ansi | |
11683 | # Ultrix and OSF/1 -std1 | |
11684 | # HP-UX 10.20 and later -Ae | |
11685 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11686 | # SVR4 -Xc -D__EXTENSIONS__ | |
11687 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11688 | do | |
11689 | CC="$ac_save_CC $ac_arg" | |
11690 | rm -f conftest.$ac_objext | |
11691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11692 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11693 | ac_status=$? |
ac1cb8d3 VS |
11694 | grep -v '^ *+' conftest.er1 >conftest.err |
11695 | rm -f conftest.er1 | |
11696 | cat conftest.err >&5 | |
a848cd7e SC |
11697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11698 | (exit $ac_status); } && | |
3565d135 RR |
11699 | { ac_try='test -z "$ac_c_werror_flag" |
11700 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11702 | (eval $ac_try) 2>&5 | |
11703 | ac_status=$? | |
11704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11705 | (exit $ac_status); }; } && | |
11706 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11708 | (eval $ac_try) 2>&5 | |
11709 | ac_status=$? | |
11710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11711 | (exit $ac_status); }; }; then | |
11712 | ac_cv_prog_cc_stdc=$ac_arg | |
11713 | break | |
11714 | else | |
11715 | echo "$as_me: failed program was:" >&5 | |
11716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11717 | ||
11718 | fi | |
ac1cb8d3 | 11719 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11720 | done |
11721 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11722 | CC=$ac_save_CC | |
11723 | ||
11724 | fi | |
11725 | ||
11726 | case "x$ac_cv_prog_cc_stdc" in | |
11727 | x|xno) | |
11728 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11729 | echo "${ECHO_T}none needed" >&6 ;; | |
11730 | *) | |
11731 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11732 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11733 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11734 | esac | |
11735 | ||
11736 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11737 | # in C++ we need to declare it. In case someone uses the same compiler | |
11738 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11739 | # the declaration of exit, since it's the most demanding environment. | |
11740 | cat >conftest.$ac_ext <<_ACEOF | |
11741 | #ifndef __cplusplus | |
11742 | choke me | |
11743 | #endif | |
11744 | _ACEOF | |
11745 | rm -f conftest.$ac_objext | |
11746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11747 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11748 | ac_status=$? |
ac1cb8d3 VS |
11749 | grep -v '^ *+' conftest.er1 >conftest.err |
11750 | rm -f conftest.er1 | |
11751 | cat conftest.err >&5 | |
a848cd7e SC |
11752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11753 | (exit $ac_status); } && | |
3565d135 RR |
11754 | { ac_try='test -z "$ac_c_werror_flag" |
11755 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11757 | (eval $ac_try) 2>&5 | |
11758 | ac_status=$? | |
11759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11760 | (exit $ac_status); }; } && | |
11761 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11763 | (eval $ac_try) 2>&5 | |
11764 | ac_status=$? | |
11765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11766 | (exit $ac_status); }; }; then | |
11767 | for ac_declaration in \ | |
ac1cb8d3 | 11768 | '' \ |
a848cd7e SC |
11769 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11770 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11771 | 'extern "C" void exit (int) throw ();' \ | |
11772 | 'extern "C" void exit (int);' \ | |
11773 | 'void exit (int);' | |
11774 | do | |
11775 | cat >conftest.$ac_ext <<_ACEOF | |
11776 | /* confdefs.h. */ | |
11777 | _ACEOF | |
11778 | cat confdefs.h >>conftest.$ac_ext | |
11779 | cat >>conftest.$ac_ext <<_ACEOF | |
11780 | /* end confdefs.h. */ | |
de59c161 | 11781 | $ac_declaration |
ac1cb8d3 | 11782 | #include <stdlib.h> |
a848cd7e SC |
11783 | int |
11784 | main () | |
11785 | { | |
11786 | exit (42); | |
11787 | ; | |
11788 | return 0; | |
11789 | } | |
11790 | _ACEOF | |
11791 | rm -f conftest.$ac_objext | |
11792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11793 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11794 | ac_status=$? |
ac1cb8d3 VS |
11795 | grep -v '^ *+' conftest.er1 >conftest.err |
11796 | rm -f conftest.er1 | |
11797 | cat conftest.err >&5 | |
a848cd7e SC |
11798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11799 | (exit $ac_status); } && | |
3565d135 RR |
11800 | { ac_try='test -z "$ac_c_werror_flag" |
11801 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
11807 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11809 | (eval $ac_try) 2>&5 | |
11810 | ac_status=$? | |
11811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11812 | (exit $ac_status); }; }; then | |
11813 | : | |
11814 | else | |
11815 | echo "$as_me: failed program was:" >&5 | |
11816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11817 | ||
11818 | continue | |
11819 | fi | |
ac1cb8d3 | 11820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11821 | cat >conftest.$ac_ext <<_ACEOF |
11822 | /* confdefs.h. */ | |
11823 | _ACEOF | |
11824 | cat confdefs.h >>conftest.$ac_ext | |
11825 | cat >>conftest.$ac_ext <<_ACEOF | |
11826 | /* end confdefs.h. */ | |
11827 | $ac_declaration | |
11828 | int | |
11829 | main () | |
11830 | { | |
11831 | exit (42); | |
11832 | ; | |
11833 | return 0; | |
11834 | } | |
11835 | _ACEOF | |
11836 | rm -f conftest.$ac_objext | |
11837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11838 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11839 | ac_status=$? |
ac1cb8d3 VS |
11840 | grep -v '^ *+' conftest.er1 >conftest.err |
11841 | rm -f conftest.er1 | |
11842 | cat conftest.err >&5 | |
a848cd7e SC |
11843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11844 | (exit $ac_status); } && | |
3565d135 RR |
11845 | { ac_try='test -z "$ac_c_werror_flag" |
11846 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11848 | (eval $ac_try) 2>&5 | |
11849 | ac_status=$? | |
11850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11851 | (exit $ac_status); }; } && | |
11852 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11854 | (eval $ac_try) 2>&5 | |
11855 | ac_status=$? | |
11856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11857 | (exit $ac_status); }; }; then | |
11858 | break | |
11859 | else | |
11860 | echo "$as_me: failed program was:" >&5 | |
11861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11862 | ||
11863 | fi | |
ac1cb8d3 | 11864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11865 | done |
11866 | rm -f conftest* | |
11867 | if test -n "$ac_declaration"; then | |
11868 | echo '#ifdef __cplusplus' >>confdefs.h | |
11869 | echo $ac_declaration >>confdefs.h | |
11870 | echo '#endif' >>confdefs.h | |
11871 | fi | |
11872 | ||
11873 | else | |
11874 | echo "$as_me: failed program was:" >&5 | |
11875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11876 | ||
11877 | fi | |
ac1cb8d3 | 11878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11879 | ac_ext=c |
11880 | ac_cpp='$CPP $CPPFLAGS' | |
11881 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11882 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11883 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11884 | ||
ab0ad5f1 VZ |
11885 | |
11886 | ||
11887 | ac_ext=c | |
11888 | ac_cpp='$CPP $CPPFLAGS' | |
11889 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11890 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11891 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11892 | ||
11893 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
11894 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
11895 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
11896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11897 | else | |
11898 | cat >conftest.$ac_ext <<_ACEOF | |
11899 | /* confdefs.h. */ | |
11900 | _ACEOF | |
11901 | cat confdefs.h >>conftest.$ac_ext | |
11902 | cat >>conftest.$ac_ext <<_ACEOF | |
11903 | /* end confdefs.h. */ | |
11904 | ||
11905 | int | |
11906 | main () | |
11907 | { | |
11908 | ||
11909 | #ifndef __INTEL_COMPILER | |
11910 | choke me | |
11911 | #endif | |
11912 | ||
11913 | ; | |
11914 | return 0; | |
11915 | } | |
11916 | _ACEOF | |
11917 | rm -f conftest.$ac_objext | |
11918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11919 | (eval $ac_compile) 2>conftest.er1 | |
11920 | ac_status=$? | |
11921 | grep -v '^ *+' conftest.er1 >conftest.err | |
11922 | rm -f conftest.er1 | |
11923 | cat conftest.err >&5 | |
11924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11925 | (exit $ac_status); } && | |
3565d135 RR |
11926 | { ac_try='test -z "$ac_c_werror_flag" |
11927 | || test ! -s conftest.err' | |
ab0ad5f1 VZ |
11928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11929 | (eval $ac_try) 2>&5 | |
11930 | ac_status=$? | |
11931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11932 | (exit $ac_status); }; } && | |
11933 | { ac_try='test -s conftest.$ac_objext' | |
11934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11935 | (eval $ac_try) 2>&5 | |
11936 | ac_status=$? | |
11937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11938 | (exit $ac_status); }; }; then | |
11939 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
11940 | else | |
11941 | echo "$as_me: failed program was:" >&5 | |
11942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11943 | ||
11944 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
11945 | ||
11946 | fi | |
11947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11948 | ||
11949 | ||
11950 | fi | |
11951 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
11952 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
11953 | ac_ext=c | |
11954 | ac_cpp='$CPP $CPPFLAGS' | |
11955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11958 | ||
11959 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
11960 | :; INTELCC=yes | |
11961 | else | |
11962 | :; | |
11963 | fi | |
11964 | ||
11965 | ||
11966 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
11967 | if test "xCC" = "xC"; then |
11968 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 11969 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 11970 | if test "${bakefile_cv_c_exto+set}" = set; then |
480ccd21 DE |
11971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11972 | else | |
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 | ||
11980 | int | |
11981 | main () | |
11982 | { | |
11983 | ||
11984 | ; | |
11985 | return 0; | |
11986 | } | |
11987 | _ACEOF | |
11988 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11990 | (eval $ac_compile) 2>&5 | |
11991 | ac_status=$? | |
11992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11993 | (exit $ac_status); }; then | |
11994 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11995 | case $ac_file in | |
11996 | conftest.$ac_ext.o) | |
0093c2fc | 11997 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
11998 | ;; |
11999 | *) | |
12000 | ;; | |
12001 | esac | |
12002 | done | |
12003 | else | |
12004 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12005 | See \`config.log' for more details." >&5 | |
12006 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12007 | See \`config.log' for more details." >&2;} | |
12008 | { (exit 1); exit 1; }; } | |
12009 | ||
12010 | fi | |
12011 | ||
12012 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12013 | ||
12014 | fi | |
0093c2fc VZ |
12015 | echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
12016 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6 | |
12017 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
480ccd21 | 12018 | if test "c" = "c"; then |
0093c2fc | 12019 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
12020 | fi |
12021 | if test "c" = "cxx"; then | |
0093c2fc | 12022 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
12023 | fi |
12024 | fi | |
12025 | ||
0093c2fc | 12026 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
12027 | unset ac_cv_prog_cc_g |
12028 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 12029 | ac_save_CFLAGS=$CFLAGS |
8aeeb05c | 12030 | CFLAGS="-g" |
480ccd21 DE |
12031 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12032 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12033 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12035 | else | |
12036 | cat >conftest.$ac_ext <<_ACEOF | |
12037 | /* confdefs.h. */ | |
12038 | _ACEOF | |
12039 | cat confdefs.h >>conftest.$ac_ext | |
12040 | cat >>conftest.$ac_ext <<_ACEOF | |
12041 | /* end confdefs.h. */ | |
12042 | ||
12043 | int | |
12044 | main () | |
12045 | { | |
12046 | ||
12047 | ; | |
12048 | return 0; | |
12049 | } | |
12050 | _ACEOF | |
12051 | rm -f conftest.$ac_objext | |
12052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12053 | (eval $ac_compile) 2>conftest.er1 | |
12054 | ac_status=$? | |
12055 | grep -v '^ *+' conftest.er1 >conftest.err | |
12056 | rm -f conftest.er1 | |
12057 | cat conftest.err >&5 | |
12058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12059 | (exit $ac_status); } && | |
3565d135 RR |
12060 | { ac_try='test -z "$ac_c_werror_flag" |
12061 | || test ! -s conftest.err' | |
480ccd21 DE |
12062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12063 | (eval $ac_try) 2>&5 | |
12064 | ac_status=$? | |
12065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12066 | (exit $ac_status); }; } && | |
12067 | { ac_try='test -s conftest.$ac_objext' | |
12068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12069 | (eval $ac_try) 2>&5 | |
12070 | ac_status=$? | |
12071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12072 | (exit $ac_status); }; }; then | |
12073 | ac_cv_prog_cc_g=yes | |
12074 | else | |
12075 | echo "$as_me: failed program was:" >&5 | |
12076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12077 | ||
12078 | ac_cv_prog_cc_g=no | |
12079 | fi | |
12080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12081 | fi | |
12082 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12083 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12084 | if test "$ac_test_CFLAGS" = set; then | |
12085 | CFLAGS=$ac_save_CFLAGS | |
12086 | elif test $ac_cv_prog_cc_g = yes; then | |
12087 | if test "$GCC" = yes; then | |
12088 | CFLAGS="-g -O2" | |
12089 | else | |
12090 | CFLAGS="-g" | |
12091 | fi | |
12092 | else | |
12093 | if test "$GCC" = yes; then | |
12094 | CFLAGS="-O2" | |
12095 | else | |
12096 | CFLAGS= | |
12097 | fi | |
12098 | fi | |
3006edc0 | 12099 | fi |
ab0ad5f1 | 12100 | fi |
3006edc0 VZ |
12101 | |
12102 | case `uname -s` in | |
12103 | AIX*) | |
12104 | ac_ext=c | |
12105 | ac_cpp='$CPP $CPPFLAGS' | |
12106 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12107 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12108 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12109 | ||
12110 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12111 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12112 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
12113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12114 | else | |
12115 | cat >conftest.$ac_ext <<_ACEOF | |
12116 | /* confdefs.h. */ | |
12117 | _ACEOF | |
12118 | cat confdefs.h >>conftest.$ac_ext | |
12119 | cat >>conftest.$ac_ext <<_ACEOF | |
12120 | /* end confdefs.h. */ | |
12121 | ||
12122 | int | |
12123 | main () | |
12124 | { | |
12125 | #ifndef __xlC__ | |
12126 | choke me | |
12127 | #endif | |
12128 | ||
12129 | ; | |
12130 | return 0; | |
12131 | } | |
12132 | _ACEOF | |
12133 | rm -f conftest.$ac_objext | |
12134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12135 | (eval $ac_compile) 2>conftest.er1 | |
12136 | ac_status=$? | |
12137 | grep -v '^ *+' conftest.er1 >conftest.err | |
12138 | rm -f conftest.er1 | |
12139 | cat conftest.err >&5 | |
12140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12141 | (exit $ac_status); } && | |
3565d135 RR |
12142 | { ac_try='test -z "$ac_c_werror_flag" |
12143 | || test ! -s conftest.err' | |
3006edc0 VZ |
12144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12145 | (eval $ac_try) 2>&5 | |
12146 | ac_status=$? | |
12147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12148 | (exit $ac_status); }; } && | |
12149 | { ac_try='test -s conftest.$ac_objext' | |
12150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12151 | (eval $ac_try) 2>&5 | |
12152 | ac_status=$? | |
12153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12154 | (exit $ac_status); }; }; then | |
0093c2fc | 12155 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
12156 | else |
12157 | echo "$as_me: failed program was:" >&5 | |
12158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12159 | ||
0093c2fc | 12160 | bakefile_compiler_xlc=no |
3006edc0 VZ |
12161 | fi |
12162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12163 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
12164 | |
12165 | fi | |
0093c2fc VZ |
12166 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12167 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
3006edc0 | 12168 | |
0093c2fc | 12169 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
12170 | ac_ext=c |
12171 | ac_cpp='$CPP $CPPFLAGS' | |
12172 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12173 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12174 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12175 | ||
12176 | ||
12177 | ;; | |
12178 | ||
12179 | Darwin) | |
12180 | ac_ext=c | |
95986553 DE |
12181 | ac_cpp='$CPP $CPPFLAGS' |
12182 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12183 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12184 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12185 | ||
12186 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
12187 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
12188 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
12189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12190 | else | |
12191 | cat >conftest.$ac_ext <<_ACEOF | |
12192 | /* confdefs.h. */ | |
12193 | _ACEOF | |
12194 | cat confdefs.h >>conftest.$ac_ext | |
12195 | cat >>conftest.$ac_ext <<_ACEOF | |
12196 | /* end confdefs.h. */ | |
12197 | ||
12198 | int | |
12199 | main () | |
12200 | { | |
12201 | #ifndef __MWERKS__ | |
12202 | choke me | |
12203 | #endif | |
12204 | ||
12205 | ; | |
12206 | return 0; | |
12207 | } | |
12208 | _ACEOF | |
12209 | rm -f conftest.$ac_objext | |
12210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12211 | (eval $ac_compile) 2>conftest.er1 | |
12212 | ac_status=$? | |
12213 | grep -v '^ *+' conftest.er1 >conftest.err | |
12214 | rm -f conftest.er1 | |
12215 | cat conftest.err >&5 | |
12216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12217 | (exit $ac_status); } && | |
3565d135 RR |
12218 | { ac_try='test -z "$ac_c_werror_flag" |
12219 | || test ! -s conftest.err' | |
95986553 DE |
12220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12221 | (eval $ac_try) 2>&5 | |
12222 | ac_status=$? | |
12223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12224 | (exit $ac_status); }; } && | |
12225 | { ac_try='test -s conftest.$ac_objext' | |
12226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12227 | (eval $ac_try) 2>&5 | |
12228 | ac_status=$? | |
12229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12230 | (exit $ac_status); }; }; then | |
12231 | bakefile_compiler_mwerks=yes | |
12232 | else | |
12233 | echo "$as_me: failed program was:" >&5 | |
12234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12235 | ||
12236 | bakefile_compiler_mwerks=no | |
12237 | fi | |
12238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12239 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
12240 | ||
12241 | fi | |
12242 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
12243 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
12244 | ||
0e6fa1d9 | 12245 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
12246 | ac_ext=c |
12247 | ac_cpp='$CPP $CPPFLAGS' | |
12248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12251 | ||
12252 | ||
3006edc0 | 12253 | ac_ext=c |
9273ffba DE |
12254 | ac_cpp='$CPP $CPPFLAGS' |
12255 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12256 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12257 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12258 | ||
12259 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12260 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12261 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
12262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12263 | else | |
12264 | cat >conftest.$ac_ext <<_ACEOF | |
12265 | /* confdefs.h. */ | |
12266 | _ACEOF | |
12267 | cat confdefs.h >>conftest.$ac_ext | |
12268 | cat >>conftest.$ac_ext <<_ACEOF | |
12269 | /* end confdefs.h. */ | |
12270 | ||
12271 | int | |
12272 | main () | |
12273 | { | |
12274 | #ifndef __xlC__ | |
12275 | choke me | |
12276 | #endif | |
12277 | ||
12278 | ; | |
12279 | return 0; | |
12280 | } | |
12281 | _ACEOF | |
12282 | rm -f conftest.$ac_objext | |
12283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12284 | (eval $ac_compile) 2>conftest.er1 | |
12285 | ac_status=$? | |
12286 | grep -v '^ *+' conftest.er1 >conftest.err | |
12287 | rm -f conftest.er1 | |
12288 | cat conftest.err >&5 | |
12289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12290 | (exit $ac_status); } && | |
3565d135 RR |
12291 | { ac_try='test -z "$ac_c_werror_flag" |
12292 | || test ! -s conftest.err' | |
9273ffba DE |
12293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12294 | (eval $ac_try) 2>&5 | |
12295 | ac_status=$? | |
12296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12297 | (exit $ac_status); }; } && | |
12298 | { ac_try='test -s conftest.$ac_objext' | |
12299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12300 | (eval $ac_try) 2>&5 | |
12301 | ac_status=$? | |
12302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12303 | (exit $ac_status); }; }; then | |
0093c2fc | 12304 | bakefile_compiler_xlc=yes |
9273ffba DE |
12305 | else |
12306 | echo "$as_me: failed program was:" >&5 | |
12307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12308 | ||
0093c2fc | 12309 | bakefile_compiler_xlc=no |
9273ffba DE |
12310 | fi |
12311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12312 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
12313 | |
12314 | fi | |
0093c2fc VZ |
12315 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12316 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
9273ffba | 12317 | |
0093c2fc | 12318 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
12319 | ac_ext=c |
12320 | ac_cpp='$CPP $CPPFLAGS' | |
12321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12324 | ||
12325 | ||
3006edc0 VZ |
12326 | ;; |
12327 | ||
12328 | IRIX*) | |
a848cd7e | 12329 | |
6dcfc289 | 12330 | |
0ad5d837 VZ |
12331 | ac_ext=c |
12332 | ac_cpp='$CPP $CPPFLAGS' | |
12333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12336 | ||
12337 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12338 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12339 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12341 | else | |
12342 | cat >conftest.$ac_ext <<_ACEOF | |
12343 | /* confdefs.h. */ | |
12344 | _ACEOF | |
12345 | cat confdefs.h >>conftest.$ac_ext | |
12346 | cat >>conftest.$ac_ext <<_ACEOF | |
12347 | /* end confdefs.h. */ | |
12348 | ||
12349 | int | |
12350 | main () | |
12351 | { | |
12352 | ||
12353 | #ifndef _SGI_COMPILER_VERSION | |
12354 | choke me | |
12355 | #endif | |
12356 | ||
12357 | ; | |
12358 | return 0; | |
12359 | } | |
12360 | _ACEOF | |
12361 | rm -f conftest.$ac_objext | |
12362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12363 | (eval $ac_compile) 2>conftest.er1 | |
12364 | ac_status=$? | |
12365 | grep -v '^ *+' conftest.er1 >conftest.err | |
12366 | rm -f conftest.er1 | |
12367 | cat conftest.err >&5 | |
12368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12369 | (exit $ac_status); } && | |
3565d135 RR |
12370 | { ac_try='test -z "$ac_c_werror_flag" |
12371 | || test ! -s conftest.err' | |
0ad5d837 VZ |
12372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12373 | (eval $ac_try) 2>&5 | |
12374 | ac_status=$? | |
12375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12376 | (exit $ac_status); }; } && | |
12377 | { ac_try='test -s conftest.$ac_objext' | |
12378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12379 | (eval $ac_try) 2>&5 | |
12380 | ac_status=$? | |
12381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12382 | (exit $ac_status); }; }; then | |
12383 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
12384 | else | |
12385 | echo "$as_me: failed program was:" >&5 | |
12386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12387 | ||
12388 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
12389 | ||
12390 | fi | |
12391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12392 | ||
12393 | ||
12394 | fi | |
12395 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
12396 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
12397 | ac_ext=c | |
12398 | ac_cpp='$CPP $CPPFLAGS' | |
12399 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12400 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12401 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12402 | ||
12403 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
12404 | :; SGICC=yes | |
12405 | else | |
12406 | :; | |
12407 | fi | |
12408 | ||
12409 | ||
3006edc0 VZ |
12410 | ;; |
12411 | ||
0093c2fc | 12412 | HP-UX*) |
3006edc0 VZ |
12413 | |
12414 | ||
12415 | ac_ext=c | |
12416 | ac_cpp='$CPP $CPPFLAGS' | |
12417 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12418 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12419 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12420 | ||
0093c2fc VZ |
12421 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
12422 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
12423 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
3006edc0 VZ |
12424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12425 | else | |
12426 | cat >conftest.$ac_ext <<_ACEOF | |
12427 | /* confdefs.h. */ | |
12428 | _ACEOF | |
12429 | cat confdefs.h >>conftest.$ac_ext | |
12430 | cat >>conftest.$ac_ext <<_ACEOF | |
12431 | /* end confdefs.h. */ | |
12432 | ||
12433 | int | |
12434 | main () | |
12435 | { | |
12436 | ||
0093c2fc | 12437 | #ifndef __HP_cc |
3006edc0 VZ |
12438 | choke me |
12439 | #endif | |
12440 | ||
12441 | ; | |
12442 | return 0; | |
12443 | } | |
12444 | _ACEOF | |
12445 | rm -f conftest.$ac_objext | |
12446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12447 | (eval $ac_compile) 2>conftest.er1 | |
12448 | ac_status=$? | |
12449 | grep -v '^ *+' conftest.er1 >conftest.err | |
12450 | rm -f conftest.er1 | |
12451 | cat conftest.err >&5 | |
12452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12453 | (exit $ac_status); } && | |
3565d135 RR |
12454 | { ac_try='test -z "$ac_c_werror_flag" |
12455 | || test ! -s conftest.err' | |
3006edc0 VZ |
12456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12457 | (eval $ac_try) 2>&5 | |
12458 | ac_status=$? | |
12459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12460 | (exit $ac_status); }; } && | |
12461 | { ac_try='test -s conftest.$ac_objext' | |
12462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12463 | (eval $ac_try) 2>&5 | |
12464 | ac_status=$? | |
12465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12466 | (exit $ac_status); }; }; then | |
0093c2fc | 12467 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 VZ |
12468 | else |
12469 | echo "$as_me: failed program was:" >&5 | |
12470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12471 | ||
0093c2fc | 12472 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
12473 | |
12474 | fi | |
12475 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12476 | ||
12477 | ||
12478 | fi | |
0093c2fc VZ |
12479 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
12480 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
3006edc0 VZ |
12481 | ac_ext=c |
12482 | ac_cpp='$CPP $CPPFLAGS' | |
12483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12486 | ||
0093c2fc VZ |
12487 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
12488 | :; HPCC=yes | |
a1aa0349 VZ |
12489 | else |
12490 | :; | |
12491 | fi | |
12492 | ||
12493 | ||
12494 | ;; | |
12495 | ||
0093c2fc | 12496 | OSF1) |
a1aa0349 VZ |
12497 | |
12498 | ||
12499 | ac_ext=c | |
12500 | ac_cpp='$CPP $CPPFLAGS' | |
12501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12504 | ||
0093c2fc VZ |
12505 | echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
12506 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6 | |
12507 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then | |
a1aa0349 VZ |
12508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12509 | else | |
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 | ||
12517 | int | |
12518 | main () | |
12519 | { | |
12520 | ||
0093c2fc | 12521 | #ifndef __DECC |
a1aa0349 VZ |
12522 | choke me |
12523 | #endif | |
12524 | ||
12525 | ; | |
12526 | return 0; | |
12527 | } | |
12528 | _ACEOF | |
12529 | rm -f conftest.$ac_objext | |
12530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12531 | (eval $ac_compile) 2>conftest.er1 | |
12532 | ac_status=$? | |
12533 | grep -v '^ *+' conftest.er1 >conftest.err | |
12534 | rm -f conftest.er1 | |
12535 | cat conftest.err >&5 | |
12536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12537 | (exit $ac_status); } && | |
3565d135 RR |
12538 | { ac_try='test -z "$ac_c_werror_flag" |
12539 | || test ! -s conftest.err' | |
a1aa0349 VZ |
12540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12541 | (eval $ac_try) 2>&5 | |
12542 | ac_status=$? | |
12543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12544 | (exit $ac_status); }; } && | |
12545 | { ac_try='test -s conftest.$ac_objext' | |
12546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12547 | (eval $ac_try) 2>&5 | |
12548 | ac_status=$? | |
12549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12550 | (exit $ac_status); }; }; then | |
0093c2fc | 12551 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 VZ |
12552 | else |
12553 | echo "$as_me: failed program was:" >&5 | |
12554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12555 | ||
0093c2fc | 12556 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
12557 | |
12558 | fi | |
12559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12560 | ||
12561 | ||
12562 | fi | |
0093c2fc VZ |
12563 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
12564 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6 | |
a1aa0349 VZ |
12565 | ac_ext=c |
12566 | ac_cpp='$CPP $CPPFLAGS' | |
12567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12570 | ||
0093c2fc VZ |
12571 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
12572 | :; COMPAQCC=yes | |
12573 | else | |
12574 | :; | |
12575 | fi | |
12576 | ||
12577 | ||
12578 | ;; | |
12579 | ||
12580 | SunOS) | |
12581 | ||
12582 | ||
12583 | ac_ext=c | |
12584 | ac_cpp='$CPP $CPPFLAGS' | |
12585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12588 | ||
12589 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
12590 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
12591 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
12592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12593 | else | |
12594 | cat >conftest.$ac_ext <<_ACEOF | |
12595 | /* confdefs.h. */ | |
12596 | _ACEOF | |
12597 | cat confdefs.h >>conftest.$ac_ext | |
12598 | cat >>conftest.$ac_ext <<_ACEOF | |
12599 | /* end confdefs.h. */ | |
12600 | ||
12601 | int | |
12602 | main () | |
12603 | { | |
12604 | ||
12605 | #ifndef __SUNPRO_C | |
12606 | choke me | |
12607 | #endif | |
12608 | ||
12609 | ; | |
12610 | return 0; | |
12611 | } | |
12612 | _ACEOF | |
12613 | rm -f conftest.$ac_objext | |
12614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12615 | (eval $ac_compile) 2>conftest.er1 | |
12616 | ac_status=$? | |
12617 | grep -v '^ *+' conftest.er1 >conftest.err | |
12618 | rm -f conftest.er1 | |
12619 | cat conftest.err >&5 | |
12620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12621 | (exit $ac_status); } && | |
3565d135 RR |
12622 | { ac_try='test -z "$ac_c_werror_flag" |
12623 | || test ! -s conftest.err' | |
0093c2fc VZ |
12624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12625 | (eval $ac_try) 2>&5 | |
12626 | ac_status=$? | |
12627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12628 | (exit $ac_status); }; } && | |
12629 | { ac_try='test -s conftest.$ac_objext' | |
12630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12631 | (eval $ac_try) 2>&5 | |
12632 | ac_status=$? | |
12633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12634 | (exit $ac_status); }; }; then | |
12635 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
12636 | else | |
12637 | echo "$as_me: failed program was:" >&5 | |
12638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12639 | ||
12640 | bakefile_cv_c_compiler___SUNPRO_C=no | |
12641 | ||
12642 | fi | |
12643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12644 | ||
12645 | ||
12646 | fi | |
12647 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
12648 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
12649 | ac_ext=c | |
12650 | ac_cpp='$CPP $CPPFLAGS' | |
12651 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12652 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12653 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12654 | ||
12655 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
12656 | :; SUNCC=yes | |
3006edc0 VZ |
12657 | else |
12658 | :; | |
12659 | fi | |
12660 | ||
12661 | ||
12662 | ;; | |
12663 | esac | |
ab0ad5f1 | 12664 | fi |
a9e5b1f0 MW |
12665 | |
12666 | ||
3006edc0 | 12667 | |
a848cd7e SC |
12668 | ac_ext=c |
12669 | ac_cpp='$CPP $CPPFLAGS' | |
12670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12673 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
12674 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
12675 | # On Suns, sometimes $CPP names a directory. | |
12676 | if test -n "$CPP" && test -d "$CPP"; then | |
12677 | CPP= | |
12678 | fi | |
12679 | if test -z "$CPP"; then | |
12680 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12682 | else | |
12683 | # Double quotes because CPP needs to be expanded | |
12684 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12685 | do | |
12686 | ac_preproc_ok=false | |
12687 | for ac_c_preproc_warn_flag in '' yes | |
12688 | do | |
12689 | # Use a header file that comes with gcc, so configuring glibc | |
12690 | # with a fresh cross-compiler works. | |
12691 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12692 | # <limits.h> exists even on freestanding compilers. | |
12693 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12694 | # not just through cpp. "Syntax error" is here to catch this case. | |
12695 | cat >conftest.$ac_ext <<_ACEOF | |
12696 | /* confdefs.h. */ | |
12697 | _ACEOF | |
12698 | cat confdefs.h >>conftest.$ac_ext | |
12699 | cat >>conftest.$ac_ext <<_ACEOF | |
12700 | /* end confdefs.h. */ | |
12701 | #ifdef __STDC__ | |
12702 | # include <limits.h> | |
12703 | #else | |
12704 | # include <assert.h> | |
12705 | #endif | |
ac1cb8d3 | 12706 | Syntax error |
a848cd7e SC |
12707 | _ACEOF |
12708 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12709 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12710 | ac_status=$? | |
12711 | grep -v '^ *+' conftest.er1 >conftest.err | |
12712 | rm -f conftest.er1 | |
12713 | cat conftest.err >&5 | |
12714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12715 | (exit $ac_status); } >/dev/null; then | |
12716 | if test -s conftest.err; then | |
12717 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12718 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12719 | else |
12720 | ac_cpp_err= | |
12721 | fi | |
12722 | else | |
12723 | ac_cpp_err=yes | |
12724 | fi | |
12725 | if test -z "$ac_cpp_err"; then | |
12726 | : | |
12727 | else | |
12728 | echo "$as_me: failed program was:" >&5 | |
12729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12730 | ||
12731 | # Broken: fails on valid input. | |
12732 | continue | |
12733 | fi | |
12734 | rm -f conftest.err conftest.$ac_ext | |
12735 | ||
12736 | # OK, works on sane cases. Now check whether non-existent headers | |
12737 | # can be detected and how. | |
12738 | cat >conftest.$ac_ext <<_ACEOF | |
12739 | /* confdefs.h. */ | |
12740 | _ACEOF | |
12741 | cat confdefs.h >>conftest.$ac_ext | |
12742 | cat >>conftest.$ac_ext <<_ACEOF | |
12743 | /* end confdefs.h. */ | |
12744 | #include <ac_nonexistent.h> | |
12745 | _ACEOF | |
12746 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12747 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12748 | ac_status=$? | |
12749 | grep -v '^ *+' conftest.er1 >conftest.err | |
12750 | rm -f conftest.er1 | |
12751 | cat conftest.err >&5 | |
12752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12753 | (exit $ac_status); } >/dev/null; then | |
12754 | if test -s conftest.err; then | |
12755 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12756 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12757 | else |
12758 | ac_cpp_err= | |
12759 | fi | |
12760 | else | |
12761 | ac_cpp_err=yes | |
12762 | fi | |
12763 | if test -z "$ac_cpp_err"; then | |
12764 | # Broken: success on invalid input. | |
12765 | continue | |
12766 | else | |
12767 | echo "$as_me: failed program was:" >&5 | |
12768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12769 | ||
12770 | # Passes both tests. | |
12771 | ac_preproc_ok=: | |
12772 | break | |
12773 | fi | |
12774 | rm -f conftest.err conftest.$ac_ext | |
12775 | ||
12776 | done | |
12777 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12778 | rm -f conftest.err conftest.$ac_ext | |
12779 | if $ac_preproc_ok; then | |
12780 | break | |
12781 | fi | |
12782 | ||
12783 | done | |
12784 | ac_cv_prog_CPP=$CPP | |
12785 | ||
12786 | fi | |
12787 | CPP=$ac_cv_prog_CPP | |
12788 | else | |
12789 | ac_cv_prog_CPP=$CPP | |
12790 | fi | |
12791 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12792 | echo "${ECHO_T}$CPP" >&6 | |
12793 | ac_preproc_ok=false | |
12794 | for ac_c_preproc_warn_flag in '' yes | |
12795 | do | |
12796 | # Use a header file that comes with gcc, so configuring glibc | |
12797 | # with a fresh cross-compiler works. | |
12798 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12799 | # <limits.h> exists even on freestanding compilers. | |
12800 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12801 | # not just through cpp. "Syntax error" is here to catch this case. | |
12802 | cat >conftest.$ac_ext <<_ACEOF | |
12803 | /* confdefs.h. */ | |
12804 | _ACEOF | |
12805 | cat confdefs.h >>conftest.$ac_ext | |
12806 | cat >>conftest.$ac_ext <<_ACEOF | |
12807 | /* end confdefs.h. */ | |
12808 | #ifdef __STDC__ | |
12809 | # include <limits.h> | |
12810 | #else | |
12811 | # include <assert.h> | |
12812 | #endif | |
ac1cb8d3 | 12813 | Syntax error |
a848cd7e SC |
12814 | _ACEOF |
12815 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12816 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12817 | ac_status=$? | |
12818 | grep -v '^ *+' conftest.er1 >conftest.err | |
12819 | rm -f conftest.er1 | |
12820 | cat conftest.err >&5 | |
12821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12822 | (exit $ac_status); } >/dev/null; then | |
12823 | if test -s conftest.err; then | |
12824 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12825 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12826 | else |
12827 | ac_cpp_err= | |
12828 | fi | |
12829 | else | |
12830 | ac_cpp_err=yes | |
12831 | fi | |
12832 | if test -z "$ac_cpp_err"; then | |
12833 | : | |
12834 | else | |
12835 | echo "$as_me: failed program was:" >&5 | |
12836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12837 | ||
12838 | # Broken: fails on valid input. | |
12839 | continue | |
12840 | fi | |
12841 | rm -f conftest.err conftest.$ac_ext | |
12842 | ||
12843 | # OK, works on sane cases. Now check whether non-existent headers | |
12844 | # can be detected and how. | |
12845 | cat >conftest.$ac_ext <<_ACEOF | |
12846 | /* confdefs.h. */ | |
12847 | _ACEOF | |
12848 | cat confdefs.h >>conftest.$ac_ext | |
12849 | cat >>conftest.$ac_ext <<_ACEOF | |
12850 | /* end confdefs.h. */ | |
12851 | #include <ac_nonexistent.h> | |
12852 | _ACEOF | |
12853 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12854 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12855 | ac_status=$? | |
12856 | grep -v '^ *+' conftest.er1 >conftest.err | |
12857 | rm -f conftest.er1 | |
12858 | cat conftest.err >&5 | |
12859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12860 | (exit $ac_status); } >/dev/null; then | |
12861 | if test -s conftest.err; then | |
12862 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12863 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12864 | else |
12865 | ac_cpp_err= | |
12866 | fi | |
12867 | else | |
12868 | ac_cpp_err=yes | |
12869 | fi | |
12870 | if test -z "$ac_cpp_err"; then | |
12871 | # Broken: success on invalid input. | |
12872 | continue | |
12873 | else | |
12874 | echo "$as_me: failed program was:" >&5 | |
12875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12876 | ||
12877 | # Passes both tests. | |
12878 | ac_preproc_ok=: | |
12879 | break | |
12880 | fi | |
12881 | rm -f conftest.err conftest.$ac_ext | |
12882 | ||
12883 | done | |
12884 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12885 | rm -f conftest.err conftest.$ac_ext | |
12886 | if $ac_preproc_ok; then | |
12887 | : | |
12888 | else | |
12889 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12890 | See \`config.log' for more details." >&5 | |
12891 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12892 | See \`config.log' for more details." >&2;} | |
12893 | { (exit 1); exit 1; }; } | |
12894 | fi | |
12895 | ||
12896 | ac_ext=c | |
12897 | ac_cpp='$CPP $CPPFLAGS' | |
12898 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12899 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12900 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12901 | ||
12902 | ||
12903 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12904 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12905 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12907 | else | |
12908 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12909 | then ac_cv_prog_egrep='grep -E' | |
12910 | else ac_cv_prog_egrep='egrep' | |
12911 | fi | |
12912 | fi | |
12913 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12914 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12915 | EGREP=$ac_cv_prog_egrep | |
12916 | ||
12917 | ||
12918 | if test $ac_cv_c_compiler_gnu = yes; then | |
12919 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12920 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12921 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12923 | else | |
12924 | ac_pattern="Autoconf.*'x'" | |
12925 | cat >conftest.$ac_ext <<_ACEOF | |
12926 | /* confdefs.h. */ | |
12927 | _ACEOF | |
12928 | cat confdefs.h >>conftest.$ac_ext | |
12929 | cat >>conftest.$ac_ext <<_ACEOF | |
12930 | /* end confdefs.h. */ | |
12931 | #include <sgtty.h> | |
12932 | Autoconf TIOCGETP | |
12933 | _ACEOF | |
12934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12935 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12936 | ac_cv_prog_gcc_traditional=yes | |
12937 | else | |
12938 | ac_cv_prog_gcc_traditional=no | |
12939 | fi | |
12940 | rm -f conftest* | |
12941 | ||
12942 | ||
12943 | if test $ac_cv_prog_gcc_traditional = no; then | |
12944 | cat >conftest.$ac_ext <<_ACEOF | |
12945 | /* confdefs.h. */ | |
12946 | _ACEOF | |
12947 | cat confdefs.h >>conftest.$ac_ext | |
12948 | cat >>conftest.$ac_ext <<_ACEOF | |
12949 | /* end confdefs.h. */ | |
12950 | #include <termio.h> | |
12951 | Autoconf TCGETA | |
12952 | _ACEOF | |
12953 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12954 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12955 | ac_cv_prog_gcc_traditional=yes | |
12956 | fi | |
12957 | rm -f conftest* | |
12958 | ||
12959 | fi | |
12960 | fi | |
12961 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12962 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12963 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12964 | CC="$CC -traditional" | |
12965 | fi | |
12966 | fi | |
12967 | ||
12968 | ||
12969 | ||
12970 | ||
12971 | ac_ext=cc | |
12972 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12973 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12974 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12975 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12976 | ||
12977 | ||
12978 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
12979 | |
12980 | ||
3006edc0 | 12981 | |
6dcfc289 | 12982 | ac_ext=cc |
a848cd7e SC |
12983 | ac_cpp='$CXXCPP $CPPFLAGS' |
12984 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12985 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12986 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12987 | if test -n "$ac_tool_prefix"; then | |
12988 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12989 | do | |
12990 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12991 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12992 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12994 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12996 | else | |
12997 | if test -n "$CXX"; then | |
12998 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
12999 | else | |
13000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13001 | for as_dir in $PATH | |
13002 | do | |
13003 | IFS=$as_save_IFS | |
13004 | test -z "$as_dir" && as_dir=. | |
13005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13006 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13007 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
13008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13009 | break 2 | |
13010 | fi | |
13011 | done | |
13012 | done | |
13013 | ||
13014 | fi | |
13015 | fi | |
13016 | CXX=$ac_cv_prog_CXX | |
13017 | if test -n "$CXX"; then | |
13018 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
13019 | echo "${ECHO_T}$CXX" >&6 | |
13020 | else | |
13021 | echo "$as_me:$LINENO: result: no" >&5 | |
13022 | echo "${ECHO_T}no" >&6 | |
13023 | fi | |
13024 | ||
13025 | test -n "$CXX" && break | |
13026 | done | |
13027 | fi | |
13028 | if test -z "$CXX"; then | |
13029 | ac_ct_CXX=$CXX | |
13030 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13031 | do | |
13032 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13033 | set dummy $ac_prog; ac_word=$2 | |
13034 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13035 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13036 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
13037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13038 | else | |
13039 | if test -n "$ac_ct_CXX"; then | |
13040 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
13041 | else | |
13042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13043 | for as_dir in $PATH | |
13044 | do | |
13045 | IFS=$as_save_IFS | |
13046 | test -z "$as_dir" && as_dir=. | |
13047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13048 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13049 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
13050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13051 | break 2 | |
13052 | fi | |
13053 | done | |
13054 | done | |
13055 | ||
13056 | fi | |
13057 | fi | |
13058 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
13059 | if test -n "$ac_ct_CXX"; then | |
13060 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
13061 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
13062 | else | |
13063 | echo "$as_me:$LINENO: result: no" >&5 | |
13064 | echo "${ECHO_T}no" >&6 | |
13065 | fi | |
13066 | ||
13067 | test -n "$ac_ct_CXX" && break | |
13068 | done | |
13069 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
13070 | ||
13071 | CXX=$ac_ct_CXX | |
13072 | fi | |
13073 | ||
13074 | ||
13075 | # Provide some information about the compiler. | |
13076 | echo "$as_me:$LINENO:" \ | |
13077 | "checking for C++ compiler version" >&5 | |
13078 | ac_compiler=`set X $ac_compile; echo $2` | |
13079 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
13080 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
13081 | ac_status=$? | |
13082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13083 | (exit $ac_status); } | |
13084 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
13085 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
13086 | ac_status=$? | |
13087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13088 | (exit $ac_status); } | |
13089 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
13090 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
13091 | ac_status=$? | |
13092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13093 | (exit $ac_status); } | |
13094 | ||
13095 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
13096 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
13097 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
13098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13099 | else | |
13100 | cat >conftest.$ac_ext <<_ACEOF | |
13101 | /* confdefs.h. */ | |
13102 | _ACEOF | |
13103 | cat confdefs.h >>conftest.$ac_ext | |
13104 | cat >>conftest.$ac_ext <<_ACEOF | |
13105 | /* end confdefs.h. */ | |
13106 | ||
13107 | int | |
13108 | main () | |
13109 | { | |
13110 | #ifndef __GNUC__ | |
13111 | choke me | |
13112 | #endif | |
13113 | ||
13114 | ; | |
13115 | return 0; | |
13116 | } | |
13117 | _ACEOF | |
13118 | rm -f conftest.$ac_objext | |
13119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13120 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13121 | ac_status=$? |
ac1cb8d3 VS |
13122 | grep -v '^ *+' conftest.er1 >conftest.err |
13123 | rm -f conftest.er1 | |
13124 | cat conftest.err >&5 | |
a848cd7e SC |
13125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13126 | (exit $ac_status); } && | |
3565d135 RR |
13127 | { ac_try='test -z "$ac_cxx_werror_flag" |
13128 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13130 | (eval $ac_try) 2>&5 | |
13131 | ac_status=$? | |
13132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13133 | (exit $ac_status); }; } && | |
13134 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13136 | (eval $ac_try) 2>&5 | |
13137 | ac_status=$? | |
13138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13139 | (exit $ac_status); }; }; then | |
13140 | ac_compiler_gnu=yes | |
13141 | else | |
13142 | echo "$as_me: failed program was:" >&5 | |
13143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13144 | ||
13145 | ac_compiler_gnu=no | |
13146 | fi | |
ac1cb8d3 | 13147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13148 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
13149 | ||
13150 | fi | |
13151 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
13152 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
13153 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
13154 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
13155 | ac_save_CXXFLAGS=$CXXFLAGS | |
13156 | CXXFLAGS="-g" | |
13157 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
13158 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
13159 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
13160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13161 | else | |
13162 | cat >conftest.$ac_ext <<_ACEOF | |
13163 | /* confdefs.h. */ | |
13164 | _ACEOF | |
13165 | cat confdefs.h >>conftest.$ac_ext | |
13166 | cat >>conftest.$ac_ext <<_ACEOF | |
13167 | /* end confdefs.h. */ | |
13168 | ||
13169 | int | |
13170 | main () | |
13171 | { | |
13172 | ||
13173 | ; | |
13174 | return 0; | |
13175 | } | |
13176 | _ACEOF | |
13177 | rm -f conftest.$ac_objext | |
13178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13179 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13180 | ac_status=$? |
ac1cb8d3 VS |
13181 | grep -v '^ *+' conftest.er1 >conftest.err |
13182 | rm -f conftest.er1 | |
13183 | cat conftest.err >&5 | |
a848cd7e SC |
13184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13185 | (exit $ac_status); } && | |
3565d135 RR |
13186 | { ac_try='test -z "$ac_cxx_werror_flag" |
13187 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13189 | (eval $ac_try) 2>&5 | |
13190 | ac_status=$? | |
13191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13192 | (exit $ac_status); }; } && | |
13193 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13195 | (eval $ac_try) 2>&5 | |
13196 | ac_status=$? | |
13197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13198 | (exit $ac_status); }; }; then | |
13199 | ac_cv_prog_cxx_g=yes | |
13200 | else | |
13201 | echo "$as_me: failed program was:" >&5 | |
13202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13203 | ||
13204 | ac_cv_prog_cxx_g=no | |
13205 | fi | |
ac1cb8d3 | 13206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13207 | fi |
13208 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13209 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13210 | if test "$ac_test_CXXFLAGS" = set; then | |
13211 | CXXFLAGS=$ac_save_CXXFLAGS | |
13212 | elif test $ac_cv_prog_cxx_g = yes; then | |
13213 | if test "$GXX" = yes; then | |
8aeeb05c | 13214 | CXXFLAGS="-g -O2" |
a848cd7e | 13215 | else |
8aeeb05c | 13216 | CXXFLAGS="-g" |
a848cd7e SC |
13217 | fi |
13218 | else | |
13219 | if test "$GXX" = yes; then | |
13220 | CXXFLAGS="-O2" | |
13221 | else | |
13222 | CXXFLAGS= | |
13223 | fi | |
13224 | fi | |
13225 | for ac_declaration in \ | |
ac1cb8d3 | 13226 | '' \ |
a848cd7e SC |
13227 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
13228 | 'extern "C" void std::exit (int); using std::exit;' \ | |
13229 | 'extern "C" void exit (int) throw ();' \ | |
13230 | 'extern "C" void exit (int);' \ | |
13231 | 'void exit (int);' | |
13232 | do | |
13233 | cat >conftest.$ac_ext <<_ACEOF | |
13234 | /* confdefs.h. */ | |
13235 | _ACEOF | |
13236 | cat confdefs.h >>conftest.$ac_ext | |
13237 | cat >>conftest.$ac_ext <<_ACEOF | |
13238 | /* end confdefs.h. */ | |
de59c161 | 13239 | $ac_declaration |
ac1cb8d3 | 13240 | #include <stdlib.h> |
a848cd7e SC |
13241 | int |
13242 | main () | |
13243 | { | |
13244 | exit (42); | |
13245 | ; | |
13246 | return 0; | |
13247 | } | |
13248 | _ACEOF | |
13249 | rm -f conftest.$ac_objext | |
13250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13251 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13252 | ac_status=$? |
ac1cb8d3 VS |
13253 | grep -v '^ *+' conftest.er1 >conftest.err |
13254 | rm -f conftest.er1 | |
13255 | cat conftest.err >&5 | |
a848cd7e SC |
13256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13257 | (exit $ac_status); } && | |
3565d135 RR |
13258 | { ac_try='test -z "$ac_cxx_werror_flag" |
13259 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13261 | (eval $ac_try) 2>&5 | |
13262 | ac_status=$? | |
13263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13264 | (exit $ac_status); }; } && | |
13265 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13267 | (eval $ac_try) 2>&5 | |
13268 | ac_status=$? | |
13269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13270 | (exit $ac_status); }; }; then | |
13271 | : | |
13272 | else | |
13273 | echo "$as_me: failed program was:" >&5 | |
13274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13275 | ||
13276 | continue | |
13277 | fi | |
ac1cb8d3 | 13278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13279 | cat >conftest.$ac_ext <<_ACEOF |
13280 | /* confdefs.h. */ | |
13281 | _ACEOF | |
13282 | cat confdefs.h >>conftest.$ac_ext | |
13283 | cat >>conftest.$ac_ext <<_ACEOF | |
13284 | /* end confdefs.h. */ | |
13285 | $ac_declaration | |
13286 | int | |
13287 | main () | |
13288 | { | |
13289 | exit (42); | |
13290 | ; | |
13291 | return 0; | |
13292 | } | |
13293 | _ACEOF | |
13294 | rm -f conftest.$ac_objext | |
13295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13296 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13297 | ac_status=$? |
ac1cb8d3 VS |
13298 | grep -v '^ *+' conftest.er1 >conftest.err |
13299 | rm -f conftest.er1 | |
13300 | cat conftest.err >&5 | |
a848cd7e SC |
13301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13302 | (exit $ac_status); } && | |
3565d135 RR |
13303 | { ac_try='test -z "$ac_cxx_werror_flag" |
13304 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13306 | (eval $ac_try) 2>&5 | |
13307 | ac_status=$? | |
13308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13309 | (exit $ac_status); }; } && | |
13310 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13312 | (eval $ac_try) 2>&5 | |
13313 | ac_status=$? | |
13314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13315 | (exit $ac_status); }; }; then | |
13316 | break | |
13317 | else | |
13318 | echo "$as_me: failed program was:" >&5 | |
13319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13320 | ||
13321 | fi | |
ac1cb8d3 | 13322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13323 | done |
13324 | rm -f conftest* | |
13325 | if test -n "$ac_declaration"; then | |
13326 | echo '#ifdef __cplusplus' >>confdefs.h | |
13327 | echo $ac_declaration >>confdefs.h | |
13328 | echo '#endif' >>confdefs.h | |
13329 | fi | |
13330 | ||
13331 | ac_ext=cc | |
13332 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13333 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13334 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13335 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13336 | ||
ab0ad5f1 VZ |
13337 | |
13338 | ||
13339 | ac_ext=cc | |
13340 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13341 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13342 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13343 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13344 | ||
13345 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
13346 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
13347 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
13348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13349 | else | |
13350 | cat >conftest.$ac_ext <<_ACEOF | |
13351 | /* confdefs.h. */ | |
13352 | _ACEOF | |
13353 | cat confdefs.h >>conftest.$ac_ext | |
13354 | cat >>conftest.$ac_ext <<_ACEOF | |
13355 | /* end confdefs.h. */ | |
13356 | ||
13357 | int | |
13358 | main () | |
13359 | { | |
13360 | ||
13361 | #ifndef __INTEL_COMPILER | |
13362 | choke me | |
13363 | #endif | |
13364 | ||
13365 | ; | |
13366 | return 0; | |
13367 | } | |
13368 | _ACEOF | |
13369 | rm -f conftest.$ac_objext | |
13370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13371 | (eval $ac_compile) 2>conftest.er1 | |
13372 | ac_status=$? | |
13373 | grep -v '^ *+' conftest.er1 >conftest.err | |
13374 | rm -f conftest.er1 | |
13375 | cat conftest.err >&5 | |
13376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13377 | (exit $ac_status); } && | |
3565d135 RR |
13378 | { ac_try='test -z "$ac_cxx_werror_flag" |
13379 | || test ! -s conftest.err' | |
ab0ad5f1 VZ |
13380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13381 | (eval $ac_try) 2>&5 | |
13382 | ac_status=$? | |
13383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13384 | (exit $ac_status); }; } && | |
13385 | { ac_try='test -s conftest.$ac_objext' | |
13386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13387 | (eval $ac_try) 2>&5 | |
13388 | ac_status=$? | |
13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13390 | (exit $ac_status); }; }; then | |
13391 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
13392 | else | |
13393 | echo "$as_me: failed program was:" >&5 | |
13394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13395 | ||
13396 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
13397 | ||
13398 | fi | |
13399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13400 | ||
13401 | ||
13402 | fi | |
13403 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
13404 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
13405 | ac_ext=cc | |
13406 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13407 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13408 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13409 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13410 | ||
13411 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
13412 | :; INTELCXX=yes | |
13413 | else | |
13414 | :; | |
13415 | fi | |
13416 | ||
13417 | ||
3006edc0 VZ |
13418 | if test "x$GCXX" != "xyes"; then |
13419 | if test "xCXX" = "xC"; then | |
13420 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 13421 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 13422 | if test "${bakefile_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
13423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13424 | else | |
13425 | cat >conftest.$ac_ext <<_ACEOF | |
13426 | /* confdefs.h. */ | |
13427 | _ACEOF | |
13428 | cat confdefs.h >>conftest.$ac_ext | |
13429 | cat >>conftest.$ac_ext <<_ACEOF | |
13430 | /* end confdefs.h. */ | |
13431 | ||
13432 | int | |
13433 | main () | |
13434 | { | |
13435 | ||
13436 | ; | |
13437 | return 0; | |
13438 | } | |
13439 | _ACEOF | |
13440 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
13441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13442 | (eval $ac_compile) 2>&5 | |
13443 | ac_status=$? | |
13444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13445 | (exit $ac_status); }; then | |
13446 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
13447 | case $ac_file in | |
13448 | conftest.$ac_ext.o) | |
0093c2fc | 13449 | bakefile_cv_cxx_exto="-ext o" |
480ccd21 DE |
13450 | ;; |
13451 | *) | |
13452 | ;; | |
13453 | esac | |
13454 | done | |
13455 | else | |
13456 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
13457 | See \`config.log' for more details." >&5 | |
13458 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
13459 | See \`config.log' for more details." >&2;} | |
13460 | { (exit 1); exit 1; }; } | |
13461 | ||
13462 | fi | |
13463 | ||
13464 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
13465 | ||
13466 | fi | |
0093c2fc VZ |
13467 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5 |
13468 | echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6 | |
13469 | if test "x$bakefile_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 13470 | if test "cxx" = "c"; then |
0093c2fc | 13471 | CFLAGS="$bakefile_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
13472 | fi |
13473 | if test "cxx" = "cxx"; then | |
0093c2fc | 13474 | CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
13475 | fi |
13476 | fi | |
13477 | ||
0093c2fc | 13478 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
13479 | unset ac_cv_prog_cc_g |
13480 | ac_test_CFLAGS=${CFLAGS+set} | |
13481 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 13482 | CFLAGS="-g" |
3006edc0 VZ |
13483 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
13484 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
13485 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
13486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13487 | else | |
13488 | cat >conftest.$ac_ext <<_ACEOF | |
13489 | /* confdefs.h. */ | |
13490 | _ACEOF | |
13491 | cat confdefs.h >>conftest.$ac_ext | |
13492 | cat >>conftest.$ac_ext <<_ACEOF | |
13493 | /* end confdefs.h. */ | |
13494 | ||
13495 | int | |
13496 | main () | |
13497 | { | |
13498 | ||
13499 | ; | |
13500 | return 0; | |
13501 | } | |
13502 | _ACEOF | |
13503 | rm -f conftest.$ac_objext | |
13504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13505 | (eval $ac_compile) 2>conftest.er1 | |
13506 | ac_status=$? | |
13507 | grep -v '^ *+' conftest.er1 >conftest.err | |
13508 | rm -f conftest.er1 | |
13509 | cat conftest.err >&5 | |
13510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13511 | (exit $ac_status); } && | |
3565d135 RR |
13512 | { ac_try='test -z "$ac_cxx_werror_flag" |
13513 | || test ! -s conftest.err' | |
480ccd21 DE |
13514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13515 | (eval $ac_try) 2>&5 | |
13516 | ac_status=$? | |
13517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13518 | (exit $ac_status); }; } && | |
13519 | { ac_try='test -s conftest.$ac_objext' | |
13520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13521 | (eval $ac_try) 2>&5 | |
13522 | ac_status=$? | |
13523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13524 | (exit $ac_status); }; }; then | |
3006edc0 | 13525 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
13526 | else |
13527 | echo "$as_me: failed program was:" >&5 | |
13528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13529 | ||
3006edc0 | 13530 | ac_cv_prog_cc_g=no |
480ccd21 DE |
13531 | fi |
13532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13533 | fi | |
3006edc0 VZ |
13534 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
13535 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
13536 | if test "$ac_test_CFLAGS" = set; then | |
13537 | CFLAGS=$ac_save_CFLAGS | |
13538 | elif test $ac_cv_prog_cc_g = yes; then | |
13539 | if test "$GCC" = yes; then | |
13540 | CFLAGS="-g -O2" | |
480ccd21 | 13541 | else |
3006edc0 | 13542 | CFLAGS="-g" |
480ccd21 DE |
13543 | fi |
13544 | else | |
3006edc0 VZ |
13545 | if test "$GCC" = yes; then |
13546 | CFLAGS="-O2" | |
480ccd21 | 13547 | else |
3006edc0 | 13548 | CFLAGS= |
480ccd21 DE |
13549 | fi |
13550 | fi | |
3006edc0 | 13551 | fi |
ab0ad5f1 | 13552 | fi |
3006edc0 VZ |
13553 | |
13554 | case `uname -s` in | |
13555 | AIX*) | |
13556 | ac_ext=cc | |
13557 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13558 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13559 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13560 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13561 | ||
13562 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13563 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13564 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
13565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13566 | else | |
13567 | cat >conftest.$ac_ext <<_ACEOF | |
13568 | /* confdefs.h. */ | |
13569 | _ACEOF | |
13570 | cat confdefs.h >>conftest.$ac_ext | |
13571 | cat >>conftest.$ac_ext <<_ACEOF | |
13572 | /* end confdefs.h. */ | |
13573 | ||
13574 | int | |
13575 | main () | |
13576 | { | |
13577 | #ifndef __xlC__ | |
13578 | choke me | |
13579 | #endif | |
13580 | ||
13581 | ; | |
13582 | return 0; | |
13583 | } | |
13584 | _ACEOF | |
13585 | rm -f conftest.$ac_objext | |
13586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13587 | (eval $ac_compile) 2>conftest.er1 | |
13588 | ac_status=$? | |
13589 | grep -v '^ *+' conftest.er1 >conftest.err | |
13590 | rm -f conftest.er1 | |
13591 | cat conftest.err >&5 | |
13592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13593 | (exit $ac_status); } && | |
3565d135 RR |
13594 | { ac_try='test -z "$ac_cxx_werror_flag" |
13595 | || test ! -s conftest.err' | |
3006edc0 VZ |
13596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13597 | (eval $ac_try) 2>&5 | |
13598 | ac_status=$? | |
13599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13600 | (exit $ac_status); }; } && | |
13601 | { ac_try='test -s conftest.$ac_objext' | |
13602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13603 | (eval $ac_try) 2>&5 | |
13604 | ac_status=$? | |
13605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13606 | (exit $ac_status); }; }; then | |
0093c2fc | 13607 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
13608 | else |
13609 | echo "$as_me: failed program was:" >&5 | |
13610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13611 | ||
0093c2fc | 13612 | bakefile_compiler_xlc=no |
3006edc0 VZ |
13613 | fi |
13614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13615 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
13616 | |
13617 | fi | |
0093c2fc VZ |
13618 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13619 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 13620 | |
0093c2fc | 13621 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
13622 | ac_ext=cc |
13623 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13624 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13625 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13626 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13627 | ||
13628 | ||
13629 | ;; | |
13630 | ||
13631 | Darwin) | |
13632 | ac_ext=cc | |
95986553 DE |
13633 | ac_cpp='$CXXCPP $CPPFLAGS' |
13634 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13635 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13636 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13637 | ||
13638 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
13639 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
13640 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
13641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13642 | else | |
13643 | cat >conftest.$ac_ext <<_ACEOF | |
13644 | /* confdefs.h. */ | |
13645 | _ACEOF | |
13646 | cat confdefs.h >>conftest.$ac_ext | |
13647 | cat >>conftest.$ac_ext <<_ACEOF | |
13648 | /* end confdefs.h. */ | |
13649 | ||
13650 | int | |
13651 | main () | |
13652 | { | |
13653 | #ifndef __MWERKS__ | |
13654 | choke me | |
13655 | #endif | |
13656 | ||
13657 | ; | |
13658 | return 0; | |
13659 | } | |
13660 | _ACEOF | |
13661 | rm -f conftest.$ac_objext | |
13662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13663 | (eval $ac_compile) 2>conftest.er1 | |
13664 | ac_status=$? | |
13665 | grep -v '^ *+' conftest.er1 >conftest.err | |
13666 | rm -f conftest.er1 | |
13667 | cat conftest.err >&5 | |
13668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13669 | (exit $ac_status); } && | |
3565d135 RR |
13670 | { ac_try='test -z "$ac_cxx_werror_flag" |
13671 | || test ! -s conftest.err' | |
95986553 DE |
13672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13673 | (eval $ac_try) 2>&5 | |
13674 | ac_status=$? | |
13675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13676 | (exit $ac_status); }; } && | |
13677 | { ac_try='test -s conftest.$ac_objext' | |
13678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13679 | (eval $ac_try) 2>&5 | |
13680 | ac_status=$? | |
13681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13682 | (exit $ac_status); }; }; then | |
13683 | bakefile_compiler_mwerks=yes | |
13684 | else | |
13685 | echo "$as_me: failed program was:" >&5 | |
13686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13687 | ||
13688 | bakefile_compiler_mwerks=no | |
13689 | fi | |
13690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13691 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
13692 | ||
13693 | fi | |
13694 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
13695 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
13696 | ||
0e6fa1d9 | 13697 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
13698 | ac_ext=cc |
13699 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13700 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13701 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13702 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13703 | ||
13704 | ||
3006edc0 | 13705 | ac_ext=cc |
9273ffba DE |
13706 | ac_cpp='$CXXCPP $CPPFLAGS' |
13707 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13708 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13709 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13710 | ||
13711 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13712 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13713 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
13714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13715 | else | |
13716 | cat >conftest.$ac_ext <<_ACEOF | |
13717 | /* confdefs.h. */ | |
13718 | _ACEOF | |
13719 | cat confdefs.h >>conftest.$ac_ext | |
13720 | cat >>conftest.$ac_ext <<_ACEOF | |
13721 | /* end confdefs.h. */ | |
13722 | ||
13723 | int | |
13724 | main () | |
13725 | { | |
13726 | #ifndef __xlC__ | |
13727 | choke me | |
13728 | #endif | |
13729 | ||
13730 | ; | |
13731 | return 0; | |
13732 | } | |
13733 | _ACEOF | |
13734 | rm -f conftest.$ac_objext | |
13735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13736 | (eval $ac_compile) 2>conftest.er1 | |
13737 | ac_status=$? | |
13738 | grep -v '^ *+' conftest.er1 >conftest.err | |
13739 | rm -f conftest.er1 | |
13740 | cat conftest.err >&5 | |
13741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13742 | (exit $ac_status); } && | |
3565d135 RR |
13743 | { ac_try='test -z "$ac_cxx_werror_flag" |
13744 | || test ! -s conftest.err' | |
9273ffba DE |
13745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13746 | (eval $ac_try) 2>&5 | |
13747 | ac_status=$? | |
13748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13749 | (exit $ac_status); }; } && | |
13750 | { ac_try='test -s conftest.$ac_objext' | |
13751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13752 | (eval $ac_try) 2>&5 | |
13753 | ac_status=$? | |
13754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13755 | (exit $ac_status); }; }; then | |
0093c2fc | 13756 | bakefile_compiler_xlc=yes |
9273ffba DE |
13757 | else |
13758 | echo "$as_me: failed program was:" >&5 | |
13759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13760 | ||
0093c2fc | 13761 | bakefile_compiler_xlc=no |
9273ffba DE |
13762 | fi |
13763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13764 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
13765 | |
13766 | fi | |
0093c2fc VZ |
13767 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13768 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 13769 | |
0093c2fc | 13770 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
13771 | ac_ext=cc |
13772 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13773 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13774 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13775 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13776 | ||
13777 | ||
3006edc0 VZ |
13778 | ;; |
13779 | ||
13780 | IRIX*) | |
95986553 | 13781 | |
6dcfc289 | 13782 | |
0ad5d837 VZ |
13783 | ac_ext=cc |
13784 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13785 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13786 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13787 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13788 | ||
13789 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
13790 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
13791 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
13792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13793 | else | |
13794 | cat >conftest.$ac_ext <<_ACEOF | |
13795 | /* confdefs.h. */ | |
13796 | _ACEOF | |
13797 | cat confdefs.h >>conftest.$ac_ext | |
13798 | cat >>conftest.$ac_ext <<_ACEOF | |
13799 | /* end confdefs.h. */ | |
13800 | ||
13801 | int | |
13802 | main () | |
13803 | { | |
13804 | ||
13805 | #ifndef _SGI_COMPILER_VERSION | |
13806 | choke me | |
13807 | #endif | |
13808 | ||
13809 | ; | |
13810 | return 0; | |
13811 | } | |
13812 | _ACEOF | |
13813 | rm -f conftest.$ac_objext | |
13814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13815 | (eval $ac_compile) 2>conftest.er1 | |
13816 | ac_status=$? | |
13817 | grep -v '^ *+' conftest.er1 >conftest.err | |
13818 | rm -f conftest.er1 | |
13819 | cat conftest.err >&5 | |
13820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13821 | (exit $ac_status); } && | |
3565d135 RR |
13822 | { ac_try='test -z "$ac_cxx_werror_flag" |
13823 | || test ! -s conftest.err' | |
0ad5d837 VZ |
13824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13825 | (eval $ac_try) 2>&5 | |
13826 | ac_status=$? | |
13827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13828 | (exit $ac_status); }; } && | |
13829 | { ac_try='test -s conftest.$ac_objext' | |
13830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13831 | (eval $ac_try) 2>&5 | |
13832 | ac_status=$? | |
13833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13834 | (exit $ac_status); }; }; then | |
13835 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
13836 | else | |
13837 | echo "$as_me: failed program was:" >&5 | |
13838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13839 | ||
13840 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
13841 | ||
13842 | fi | |
13843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13844 | ||
13845 | ||
13846 | fi | |
13847 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
13848 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
13849 | ac_ext=cc | |
13850 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13851 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13852 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13853 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13854 | ||
13855 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
13856 | :; SGICXX=yes | |
13857 | else | |
13858 | :; | |
13859 | fi | |
13860 | ||
13861 | ||
3006edc0 VZ |
13862 | ;; |
13863 | ||
0093c2fc | 13864 | HP-UX*) |
3006edc0 VZ |
13865 | |
13866 | ||
13867 | ac_ext=cc | |
13868 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13869 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13870 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13871 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13872 | ||
0093c2fc VZ |
13873 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
13874 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
13875 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
3006edc0 VZ |
13876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13877 | else | |
13878 | cat >conftest.$ac_ext <<_ACEOF | |
13879 | /* confdefs.h. */ | |
13880 | _ACEOF | |
13881 | cat confdefs.h >>conftest.$ac_ext | |
13882 | cat >>conftest.$ac_ext <<_ACEOF | |
13883 | /* end confdefs.h. */ | |
13884 | ||
13885 | int | |
13886 | main () | |
13887 | { | |
13888 | ||
0093c2fc | 13889 | #ifndef __HP_aCC |
3006edc0 VZ |
13890 | choke me |
13891 | #endif | |
13892 | ||
13893 | ; | |
13894 | return 0; | |
13895 | } | |
13896 | _ACEOF | |
13897 | rm -f conftest.$ac_objext | |
13898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13899 | (eval $ac_compile) 2>conftest.er1 | |
13900 | ac_status=$? | |
13901 | grep -v '^ *+' conftest.er1 >conftest.err | |
13902 | rm -f conftest.er1 | |
13903 | cat conftest.err >&5 | |
13904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13905 | (exit $ac_status); } && | |
3565d135 RR |
13906 | { ac_try='test -z "$ac_cxx_werror_flag" |
13907 | || test ! -s conftest.err' | |
3006edc0 VZ |
13908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13909 | (eval $ac_try) 2>&5 | |
13910 | ac_status=$? | |
13911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13912 | (exit $ac_status); }; } && | |
13913 | { ac_try='test -s conftest.$ac_objext' | |
13914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13915 | (eval $ac_try) 2>&5 | |
13916 | ac_status=$? | |
13917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13918 | (exit $ac_status); }; }; then | |
0093c2fc | 13919 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 VZ |
13920 | else |
13921 | echo "$as_me: failed program was:" >&5 | |
13922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13923 | ||
0093c2fc | 13924 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
13925 | |
13926 | fi | |
13927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13928 | ||
13929 | ||
13930 | fi | |
0093c2fc VZ |
13931 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
13932 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
3006edc0 VZ |
13933 | ac_ext=cc |
13934 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13935 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13936 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13937 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13938 | ||
0093c2fc VZ |
13939 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
13940 | :; HPCXX=yes | |
a1aa0349 VZ |
13941 | else |
13942 | :; | |
13943 | fi | |
13944 | ||
13945 | ||
13946 | ;; | |
13947 | ||
0093c2fc | 13948 | OSF1) |
a1aa0349 VZ |
13949 | |
13950 | ||
13951 | ac_ext=cc | |
13952 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13953 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13954 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13955 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13956 | ||
0093c2fc VZ |
13957 | echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
13958 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6 | |
13959 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then | |
a1aa0349 VZ |
13960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13961 | else | |
13962 | cat >conftest.$ac_ext <<_ACEOF | |
13963 | /* confdefs.h. */ | |
13964 | _ACEOF | |
13965 | cat confdefs.h >>conftest.$ac_ext | |
13966 | cat >>conftest.$ac_ext <<_ACEOF | |
13967 | /* end confdefs.h. */ | |
13968 | ||
13969 | int | |
13970 | main () | |
13971 | { | |
13972 | ||
0093c2fc | 13973 | #ifndef __DECCXX |
a1aa0349 VZ |
13974 | choke me |
13975 | #endif | |
13976 | ||
13977 | ; | |
13978 | return 0; | |
13979 | } | |
13980 | _ACEOF | |
13981 | rm -f conftest.$ac_objext | |
13982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13983 | (eval $ac_compile) 2>conftest.er1 | |
13984 | ac_status=$? | |
13985 | grep -v '^ *+' conftest.er1 >conftest.err | |
13986 | rm -f conftest.er1 | |
13987 | cat conftest.err >&5 | |
13988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13989 | (exit $ac_status); } && | |
3565d135 RR |
13990 | { ac_try='test -z "$ac_cxx_werror_flag" |
13991 | || test ! -s conftest.err' | |
a1aa0349 VZ |
13992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13993 | (eval $ac_try) 2>&5 | |
13994 | ac_status=$? | |
13995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13996 | (exit $ac_status); }; } && | |
13997 | { ac_try='test -s conftest.$ac_objext' | |
13998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13999 | (eval $ac_try) 2>&5 | |
14000 | ac_status=$? | |
14001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14002 | (exit $ac_status); }; }; then | |
0093c2fc | 14003 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 VZ |
14004 | else |
14005 | echo "$as_me: failed program was:" >&5 | |
14006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14007 | ||
0093c2fc | 14008 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
14009 | |
14010 | fi | |
14011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14012 | ||
14013 | ||
14014 | fi | |
0093c2fc VZ |
14015 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
14016 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6 | |
a1aa0349 VZ |
14017 | ac_ext=cc |
14018 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14019 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14020 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14021 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14022 | ||
0093c2fc VZ |
14023 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
14024 | :; COMPAQCXX=yes | |
14025 | else | |
14026 | :; | |
14027 | fi | |
14028 | ||
14029 | ||
14030 | ;; | |
14031 | ||
14032 | SunOS) | |
14033 | ||
14034 | ||
14035 | ac_ext=cc | |
14036 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14037 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14038 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14039 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14040 | ||
14041 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
14042 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
14043 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
14044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14045 | else | |
14046 | cat >conftest.$ac_ext <<_ACEOF | |
14047 | /* confdefs.h. */ | |
14048 | _ACEOF | |
14049 | cat confdefs.h >>conftest.$ac_ext | |
14050 | cat >>conftest.$ac_ext <<_ACEOF | |
14051 | /* end confdefs.h. */ | |
14052 | ||
14053 | int | |
14054 | main () | |
14055 | { | |
14056 | ||
14057 | #ifndef __SUNPRO_CC | |
14058 | choke me | |
14059 | #endif | |
14060 | ||
14061 | ; | |
14062 | return 0; | |
14063 | } | |
14064 | _ACEOF | |
14065 | rm -f conftest.$ac_objext | |
14066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14067 | (eval $ac_compile) 2>conftest.er1 | |
14068 | ac_status=$? | |
14069 | grep -v '^ *+' conftest.er1 >conftest.err | |
14070 | rm -f conftest.er1 | |
14071 | cat conftest.err >&5 | |
14072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14073 | (exit $ac_status); } && | |
3565d135 RR |
14074 | { ac_try='test -z "$ac_cxx_werror_flag" |
14075 | || test ! -s conftest.err' | |
0093c2fc VZ |
14076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14077 | (eval $ac_try) 2>&5 | |
14078 | ac_status=$? | |
14079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14080 | (exit $ac_status); }; } && | |
14081 | { ac_try='test -s conftest.$ac_objext' | |
14082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14083 | (eval $ac_try) 2>&5 | |
14084 | ac_status=$? | |
14085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14086 | (exit $ac_status); }; }; then | |
14087 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
14088 | else | |
14089 | echo "$as_me: failed program was:" >&5 | |
14090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14091 | ||
14092 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
14093 | ||
14094 | fi | |
14095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14096 | ||
14097 | ||
14098 | fi | |
14099 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
14100 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
14101 | ac_ext=cc | |
14102 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14103 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14104 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14105 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14106 | ||
14107 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
14108 | :; SUNCXX=yes | |
3006edc0 VZ |
14109 | else |
14110 | :; | |
ab0ad5f1 | 14111 | fi |
a9e5b1f0 MW |
14112 | |
14113 | ||
3006edc0 VZ |
14114 | ;; |
14115 | esac | |
14116 | fi | |
14117 | ||
14118 | ||
14119 | ||
a848cd7e SC |
14120 | ac_ext=c |
14121 | ac_cpp='$CPP $CPPFLAGS' | |
14122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14125 | ||
14126 | ||
a848cd7e SC |
14127 | if test -n "$ac_tool_prefix"; then |
14128 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
14129 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
14130 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14131 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14132 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
14133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14134 | else | |
14135 | if test -n "$RANLIB"; then | |
14136 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
14137 | else | |
14138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14139 | for as_dir in $PATH | |
14140 | do | |
14141 | IFS=$as_save_IFS | |
14142 | test -z "$as_dir" && as_dir=. | |
14143 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14144 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14145 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
14146 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14147 | break 2 | |
14148 | fi | |
14149 | done | |
14150 | done | |
14151 | ||
14152 | fi | |
14153 | fi | |
14154 | RANLIB=$ac_cv_prog_RANLIB | |
14155 | if test -n "$RANLIB"; then | |
14156 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
14157 | echo "${ECHO_T}$RANLIB" >&6 | |
14158 | else | |
14159 | echo "$as_me:$LINENO: result: no" >&5 | |
14160 | echo "${ECHO_T}no" >&6 | |
14161 | fi | |
14162 | ||
14163 | fi | |
14164 | if test -z "$ac_cv_prog_RANLIB"; then | |
14165 | ac_ct_RANLIB=$RANLIB | |
14166 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14167 | set dummy ranlib; ac_word=$2 | |
14168 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14170 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
14171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14172 | else | |
14173 | if test -n "$ac_ct_RANLIB"; then | |
14174 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
14175 | else | |
14176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14177 | for as_dir in $PATH | |
14178 | do | |
14179 | IFS=$as_save_IFS | |
14180 | test -z "$as_dir" && as_dir=. | |
14181 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14182 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14183 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
14184 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14185 | break 2 | |
14186 | fi | |
14187 | done | |
14188 | done | |
14189 | ||
14190 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
14191 | fi | |
14192 | fi | |
14193 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
14194 | if test -n "$ac_ct_RANLIB"; then | |
14195 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
14196 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
14197 | else | |
14198 | echo "$as_me:$LINENO: result: no" >&5 | |
14199 | echo "${ECHO_T}no" >&6 | |
14200 | fi | |
14201 | ||
14202 | RANLIB=$ac_ct_RANLIB | |
14203 | else | |
14204 | RANLIB="$ac_cv_prog_RANLIB" | |
14205 | fi | |
14206 | ||
14207 | ||
8c80d384 DE |
14208 | if test -n "$ac_tool_prefix"; then |
14209 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
14210 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
14211 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14212 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14213 | if test "${ac_cv_prog_AR+set}" = set; then | |
14214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14215 | else | |
14216 | if test -n "$AR"; then | |
14217 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
14218 | else | |
14219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14220 | for as_dir in $PATH | |
14221 | do | |
14222 | IFS=$as_save_IFS | |
14223 | test -z "$as_dir" && as_dir=. | |
14224 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14225 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14226 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
14227 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14228 | break 2 | |
14229 | fi | |
14230 | done | |
14231 | done | |
14232 | ||
14233 | fi | |
14234 | fi | |
14235 | AR=$ac_cv_prog_AR | |
14236 | if test -n "$AR"; then | |
14237 | echo "$as_me:$LINENO: result: $AR" >&5 | |
14238 | echo "${ECHO_T}$AR" >&6 | |
14239 | else | |
14240 | echo "$as_me:$LINENO: result: no" >&5 | |
14241 | echo "${ECHO_T}no" >&6 | |
14242 | fi | |
14243 | ||
8c80d384 DE |
14244 | fi |
14245 | if test -z "$ac_cv_prog_AR"; then | |
14246 | ac_ct_AR=$AR | |
14247 | # Extract the first word of "ar", so it can be a program name with args. | |
14248 | set dummy ar; ac_word=$2 | |
14249 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14251 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
14252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14253 | else | |
14254 | if test -n "$ac_ct_AR"; then | |
14255 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
14256 | else | |
14257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14258 | for as_dir in $PATH | |
14259 | do | |
14260 | IFS=$as_save_IFS | |
14261 | test -z "$as_dir" && as_dir=. | |
14262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14263 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14264 | ac_cv_prog_ac_ct_AR="ar" | |
14265 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14266 | break 2 | |
14267 | fi | |
14268 | done | |
14269 | done | |
14270 | ||
14271 | fi | |
14272 | fi | |
14273 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
14274 | if test -n "$ac_ct_AR"; then | |
14275 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
14276 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
14277 | else | |
14278 | echo "$as_me:$LINENO: result: no" >&5 | |
14279 | echo "${ECHO_T}no" >&6 | |
14280 | fi | |
14281 | ||
14282 | AR=$ac_ct_AR | |
14283 | else | |
14284 | AR="$ac_cv_prog_AR" | |
14285 | fi | |
14286 | ||
a848cd7e | 14287 | if test "x$AR" = "x" ; then |
77ffb593 JS |
14288 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
14289 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
14290 | { (exit 1); exit 1; }; } |
14291 | fi | |
14292 | ||
14293 | # Find a good install program. We prefer a C program (faster), | |
14294 | # so one script is as good as another. But avoid the broken or | |
14295 | # incompatible versions: | |
14296 | # SysV /etc/install, /usr/sbin/install | |
14297 | # SunOS /usr/etc/install | |
14298 | # IRIX /sbin/install | |
14299 | # AIX /bin/install | |
14300 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14301 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14302 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14303 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 14304 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
14305 | # ./install, which can be erroneously created by make from ./install.sh. |
14306 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
14307 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
14308 | if test -z "$INSTALL"; then | |
14309 | if test "${ac_cv_path_install+set}" = set; then | |
14310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14311 | else | |
14312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14313 | for as_dir in $PATH | |
14314 | do | |
14315 | IFS=$as_save_IFS | |
14316 | test -z "$as_dir" && as_dir=. | |
14317 | # Account for people who put trailing slashes in PATH elements. | |
14318 | case $as_dir/ in | |
14319 | ./ | .// | /cC/* | \ | |
14320 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 14321 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
14322 | /usr/ucb/* ) ;; |
14323 | *) | |
14324 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14325 | # Don't use installbsd from OSF since it installs stuff as root | |
14326 | # by default. | |
14327 | for ac_prog in ginstall scoinst install; do | |
14328 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
14329 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
14330 | if test $ac_prog = install && | |
14331 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14332 | # AIX install. It has an incompatible calling convention. | |
14333 | : | |
14334 | elif test $ac_prog = install && | |
14335 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14336 | # program-specific install script used by HP pwplus--don't use. | |
14337 | : | |
14338 | else | |
14339 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14340 | break 3 | |
14341 | fi | |
14342 | fi | |
a848cd7e SC |
14343 | done |
14344 | done | |
14345 | ;; | |
14346 | esac | |
14347 | done | |
14348 | ||
14349 | ||
14350 | fi | |
14351 | if test "${ac_cv_path_install+set}" = set; then | |
14352 | INSTALL=$ac_cv_path_install | |
14353 | else | |
14354 | # As a last resort, use the slow shell script. We don't cache a | |
14355 | # path for INSTALL within a source directory, because that will | |
14356 | # break other packages using the cache if that directory is | |
14357 | # removed, or if the path is relative. | |
14358 | INSTALL=$ac_install_sh | |
14359 | fi | |
14360 | fi | |
14361 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
14362 | echo "${ECHO_T}$INSTALL" >&6 | |
14363 | ||
14364 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14365 | # It thinks the first close brace ends the variable substitution. | |
14366 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14367 | ||
14368 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14369 | ||
14370 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14371 | ||
14372 | ||
14373 | case ${INSTALL} in | |
14374 | /* ) # Absolute | |
14375 | ;; | |
14376 | ?:* ) # Drive letter, considered as absolute. | |
14377 | ;; | |
14378 | *) | |
14379 | INSTALL=`pwd`/${INSTALL} ;; | |
14380 | esac | |
14381 | ||
a848cd7e SC |
14382 | |
14383 | case "${host}" in | |
14384 | ||
cfda0ea8 | 14385 | *-*-darwin* ) |
a848cd7e SC |
14386 | INSTALL_PROGRAM="cp -fp" |
14387 | INSTALL_DATA="cp -fp" | |
14388 | ;; | |
14389 | *) | |
14390 | ;; | |
14391 | esac | |
14392 | ||
8c80d384 DE |
14393 | if test -n "$ac_tool_prefix"; then |
14394 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14395 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
14396 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14397 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14398 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
14399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14400 | else | |
14401 | if test -n "$STRIP"; then | |
14402 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14403 | else | |
14404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14405 | for as_dir in $PATH | |
14406 | do | |
14407 | IFS=$as_save_IFS | |
14408 | test -z "$as_dir" && as_dir=. | |
14409 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14410 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14411 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
14412 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14413 | break 2 | |
14414 | fi | |
14415 | done | |
14416 | done | |
14417 | ||
a848cd7e SC |
14418 | fi |
14419 | fi | |
14420 | STRIP=$ac_cv_prog_STRIP | |
14421 | if test -n "$STRIP"; then | |
14422 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
14423 | echo "${ECHO_T}$STRIP" >&6 | |
14424 | else | |
14425 | echo "$as_me:$LINENO: result: no" >&5 | |
14426 | echo "${ECHO_T}no" >&6 | |
14427 | fi | |
14428 | ||
8c80d384 DE |
14429 | fi |
14430 | if test -z "$ac_cv_prog_STRIP"; then | |
14431 | ac_ct_STRIP=$STRIP | |
14432 | # Extract the first word of "strip", so it can be a program name with args. | |
14433 | set dummy strip; ac_word=$2 | |
14434 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14436 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
14437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14438 | else | |
14439 | if test -n "$ac_ct_STRIP"; then | |
14440 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
14441 | else | |
14442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14443 | for as_dir in $PATH | |
14444 | do | |
14445 | IFS=$as_save_IFS | |
14446 | test -z "$as_dir" && as_dir=. | |
14447 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14448 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14449 | ac_cv_prog_ac_ct_STRIP="strip" | |
14450 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14451 | break 2 | |
14452 | fi | |
14453 | done | |
14454 | done | |
14455 | ||
14456 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
14457 | fi | |
14458 | fi | |
14459 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
14460 | if test -n "$ac_ct_STRIP"; then | |
14461 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
14462 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
14463 | else | |
14464 | echo "$as_me:$LINENO: result: no" >&5 | |
14465 | echo "${ECHO_T}no" >&6 | |
14466 | fi | |
14467 | ||
14468 | STRIP=$ac_ct_STRIP | |
14469 | else | |
14470 | STRIP="$ac_cv_prog_STRIP" | |
14471 | fi | |
14472 | ||
14473 | ||
14474 | if test "$wxUSE_WINE" = "yes"; then | |
14475 | if test -n "$ac_tool_prefix"; then | |
14476 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
14477 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
14478 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14480 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8c80d384 DE |
14481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14482 | else | |
8ced02f6 DE |
14483 | if test -n "$WINDRES"; then |
14484 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8c80d384 DE |
14485 | else |
14486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14487 | for as_dir in $PATH | |
14488 | do | |
14489 | IFS=$as_save_IFS | |
14490 | test -z "$as_dir" && as_dir=. | |
14491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 14493 | ac_cv_prog_WINDRES="${ac_tool_prefix}wrc" |
8c80d384 DE |
14494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14495 | break 2 | |
14496 | fi | |
14497 | done | |
14498 | done | |
14499 | ||
14500 | fi | |
14501 | fi | |
8ced02f6 DE |
14502 | WINDRES=$ac_cv_prog_WINDRES |
14503 | if test -n "$WINDRES"; then | |
14504 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14505 | echo "${ECHO_T}$WINDRES" >&6 | |
8c80d384 DE |
14506 | else |
14507 | echo "$as_me:$LINENO: result: no" >&5 | |
14508 | echo "${ECHO_T}no" >&6 | |
14509 | fi | |
14510 | ||
14511 | fi | |
8ced02f6 DE |
14512 | if test -z "$ac_cv_prog_WINDRES"; then |
14513 | ac_ct_WINDRES=$WINDRES | |
8c80d384 DE |
14514 | # Extract the first word of "wrc", so it can be a program name with args. |
14515 | set dummy wrc; ac_word=$2 | |
14516 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14518 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8c80d384 DE |
14519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14520 | else | |
8ced02f6 DE |
14521 | if test -n "$ac_ct_WINDRES"; then |
14522 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8c80d384 DE |
14523 | else |
14524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14525 | for as_dir in $PATH | |
14526 | do | |
14527 | IFS=$as_save_IFS | |
14528 | test -z "$as_dir" && as_dir=. | |
14529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14530 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 14531 | ac_cv_prog_ac_ct_WINDRES="wrc" |
8c80d384 DE |
14532 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14533 | break 2 | |
14534 | fi | |
14535 | done | |
14536 | done | |
14537 | ||
14538 | fi | |
14539 | fi | |
8ced02f6 DE |
14540 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
14541 | if test -n "$ac_ct_WINDRES"; then | |
14542 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14543 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
8c80d384 DE |
14544 | else |
14545 | echo "$as_me:$LINENO: result: no" >&5 | |
14546 | echo "${ECHO_T}no" >&6 | |
14547 | fi | |
14548 | ||
8ced02f6 | 14549 | WINDRES=$ac_ct_WINDRES |
8c80d384 | 14550 | else |
8ced02f6 | 14551 | WINDRES="$ac_cv_prog_WINDRES" |
8c80d384 DE |
14552 | fi |
14553 | ||
004ee6da | 14554 | RESCOMP="$WINDRES" |
8c80d384 DE |
14555 | else |
14556 | case "${host}" in | |
14557 | *-*-cygwin* | *-*-mingw32* ) | |
004ee6da RL |
14558 | if test -n "$ac_tool_prefix"; then |
14559 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
14560 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
14561 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14563 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
14564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14565 | else | |
14566 | if test -n "$WINDRES"; then | |
14567 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
14568 | else | |
14569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14570 | for as_dir in $PATH | |
14571 | do | |
14572 | IFS=$as_save_IFS | |
14573 | test -z "$as_dir" && as_dir=. | |
14574 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14575 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14576 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
14577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14578 | break 2 | |
14579 | fi | |
14580 | done | |
14581 | done | |
14582 | ||
14583 | fi | |
14584 | fi | |
14585 | WINDRES=$ac_cv_prog_WINDRES | |
14586 | if test -n "$WINDRES"; then | |
14587 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14588 | echo "${ECHO_T}$WINDRES" >&6 | |
14589 | else | |
14590 | echo "$as_me:$LINENO: result: no" >&5 | |
14591 | echo "${ECHO_T}no" >&6 | |
14592 | fi | |
14593 | ||
14594 | fi | |
14595 | if test -z "$ac_cv_prog_WINDRES"; then | |
14596 | ac_ct_WINDRES=$WINDRES | |
14597 | # Extract the first word of "windres", so it can be a program name with args. | |
14598 | set dummy windres; ac_word=$2 | |
14599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14601 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
14602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14603 | else | |
14604 | if test -n "$ac_ct_WINDRES"; then | |
14605 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
14606 | else | |
14607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14608 | for as_dir in $PATH | |
14609 | do | |
14610 | IFS=$as_save_IFS | |
14611 | test -z "$as_dir" && as_dir=. | |
14612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14613 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14614 | ac_cv_prog_ac_ct_WINDRES="windres" | |
14615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14616 | break 2 | |
14617 | fi | |
14618 | done | |
14619 | done | |
14620 | ||
14621 | fi | |
14622 | fi | |
14623 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
14624 | if test -n "$ac_ct_WINDRES"; then | |
14625 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14626 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
14627 | else | |
14628 | echo "$as_me:$LINENO: result: no" >&5 | |
14629 | echo "${ECHO_T}no" >&6 | |
14630 | fi | |
14631 | ||
14632 | WINDRES=$ac_ct_WINDRES | |
14633 | else | |
14634 | WINDRES="$ac_cv_prog_WINDRES" | |
14635 | fi | |
14636 | ||
14637 | RESCOMP="$WINDRES" | |
14638 | if test -n "$ac_tool_prefix"; then | |
8c80d384 DE |
14639 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
14640 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
14641 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14642 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14643 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
14644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14645 | else | |
14646 | if test -n "$DLLTOOL"; then | |
14647 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
14648 | else | |
14649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14650 | for as_dir in $PATH | |
14651 | do | |
14652 | IFS=$as_save_IFS | |
14653 | test -z "$as_dir" && as_dir=. | |
14654 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14655 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14656 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
14657 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14658 | break 2 | |
14659 | fi | |
14660 | done | |
14661 | done | |
14662 | ||
14663 | fi | |
14664 | fi | |
14665 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
14666 | if test -n "$DLLTOOL"; then | |
14667 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
14668 | echo "${ECHO_T}$DLLTOOL" >&6 | |
14669 | else | |
14670 | echo "$as_me:$LINENO: result: no" >&5 | |
14671 | echo "${ECHO_T}no" >&6 | |
14672 | fi | |
14673 | ||
14674 | fi | |
14675 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
14676 | ac_ct_DLLTOOL=$DLLTOOL | |
14677 | # Extract the first word of "dlltool", so it can be a program name with args. | |
14678 | set dummy dlltool; ac_word=$2 | |
14679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14681 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
14682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14683 | else | |
14684 | if test -n "$ac_ct_DLLTOOL"; then | |
14685 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
14686 | else | |
14687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14688 | for as_dir in $PATH | |
14689 | do | |
14690 | IFS=$as_save_IFS | |
14691 | test -z "$as_dir" && as_dir=. | |
14692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14694 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
14695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14696 | break 2 | |
14697 | fi | |
14698 | done | |
14699 | done | |
14700 | ||
14701 | fi | |
14702 | fi | |
14703 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
14704 | if test -n "$ac_ct_DLLTOOL"; then | |
14705 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
14706 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
14707 | else | |
14708 | echo "$as_me:$LINENO: result: no" >&5 | |
14709 | echo "${ECHO_T}no" >&6 | |
14710 | fi | |
14711 | ||
14712 | DLLTOOL=$ac_ct_DLLTOOL | |
14713 | else | |
14714 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
14715 | fi | |
14716 | ||
14717 | ;; | |
14718 | esac | |
14719 | fi | |
a848cd7e SC |
14720 | |
14721 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
14722 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
14723 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
14724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14725 | else | |
14726 | ||
14727 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
14728 | egrep -s GNU > /dev/null); then | |
14729 | wx_cv_prog_makeisgnu="yes" | |
14730 | else | |
14731 | wx_cv_prog_makeisgnu="no" | |
14732 | fi | |
14733 | ||
14734 | fi | |
14735 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
14736 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
14737 | ||
14738 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
14739 | IF_GNU_MAKE="" | |
14740 | else | |
14741 | IF_GNU_MAKE="#" | |
14742 | fi | |
14743 | ||
14744 | ||
14745 | ||
14746 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
14747 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
14748 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
14749 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
14750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14751 | else | |
14752 | ||
14753 | cat - << EOF > confMake | |
14754 | check : file | |
14755 | cp \$? \$@ | |
14756 | cp \$? final_file | |
14757 | EOF | |
14758 | ||
14759 | if test ! -d sub ; then | |
14760 | mkdir sub | |
14761 | fi | |
14762 | echo dummy > sub/file | |
14763 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
14764 | RESULT=$? | |
14765 | rm -f sub/file check final_file confMake | |
14766 | rmdir sub | |
14767 | if test "$RESULT" = 0; then | |
14768 | wx_cv_prog_makevpath="yes" | |
14769 | else | |
14770 | wx_cv_prog_makevpath="no" | |
14771 | fi | |
14772 | ||
14773 | fi | |
14774 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
14775 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
14776 | ||
14777 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
14778 | { { echo "$as_me:$LINENO: error: | |
14779 | You need a make-utility that is able to use the variable | |
14780 | VPATH correctly. | |
14781 | If your version of make does not support VPATH correctly, | |
14782 | please install GNU-make (possibly as gmake), and start | |
14783 | configure with the following command: | |
14784 | export MAKE=gmake; ./configure for sh-type shells | |
14785 | setenv MAKE gmake; ./configure for csh-type shells | |
14786 | Also please do remember to use gmake in this case every time | |
14787 | you are trying to compile. | |
14788 | " >&5 | |
14789 | echo "$as_me: error: | |
14790 | You need a make-utility that is able to use the variable | |
14791 | VPATH correctly. | |
14792 | If your version of make does not support VPATH correctly, | |
14793 | please install GNU-make (possibly as gmake), and start | |
14794 | configure with the following command: | |
14795 | export MAKE=gmake; ./configure for sh-type shells | |
14796 | setenv MAKE gmake; ./configure for csh-type shells | |
14797 | Also please do remember to use gmake in this case every time | |
14798 | you are trying to compile. | |
14799 | " >&2;} | |
14800 | { (exit 1); exit 1; }; } | |
14801 | fi fi | |
14802 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
14803 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
14804 | LN_S=$as_ln_s | |
14805 | if test "$LN_S" = "ln -s"; then | |
14806 | echo "$as_me:$LINENO: result: yes" >&5 | |
14807 | echo "${ECHO_T}yes" >&6 | |
14808 | else | |
14809 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
14810 | echo "${ECHO_T}no, using $LN_S" >&6 | |
14811 | fi | |
14812 | ||
14813 | ||
bcaab0f9 MW |
14814 | for ac_prog in lndir |
14815 | do | |
14816 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14817 | set dummy $ac_prog; ac_word=$2 | |
14818 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14819 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14820 | if test "${ac_cv_prog_LNDIR+set}" = set; then | |
14821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14822 | else | |
14823 | if test -n "$LNDIR"; then | |
14824 | ac_cv_prog_LNDIR="$LNDIR" # Let the user override the test. | |
14825 | else | |
14826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14827 | for as_dir in $PATH | |
14828 | do | |
14829 | IFS=$as_save_IFS | |
14830 | test -z "$as_dir" && as_dir=. | |
14831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14832 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14833 | ac_cv_prog_LNDIR="$ac_prog" | |
14834 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14835 | break 2 | |
14836 | fi | |
14837 | done | |
14838 | done | |
14839 | ||
14840 | fi | |
14841 | fi | |
14842 | LNDIR=$ac_cv_prog_LNDIR | |
14843 | if test -n "$LNDIR"; then | |
14844 | echo "$as_me:$LINENO: result: $LNDIR" >&5 | |
14845 | echo "${ECHO_T}$LNDIR" >&6 | |
14846 | else | |
14847 | echo "$as_me:$LINENO: result: no" >&5 | |
14848 | echo "${ECHO_T}no" >&6 | |
14849 | fi | |
14850 | ||
14851 | test -n "$LNDIR" && break | |
14852 | done | |
91dea314 | 14853 | test -n "$LNDIR" || LNDIR="cp -pR" |
bcaab0f9 MW |
14854 | |
14855 | ||
14856 | ||
a848cd7e | 14857 | |
2113bc77 | 14858 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
c92ad099 | 14859 | CXXFLAGS="-qunique $CXXFLAGS" |
9273ffba DE |
14860 | fi |
14861 | ||
4d7ec9f1 DE |
14862 | case "${host}" in |
14863 | powerpc-*-darwin* ) | |
14864 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
14865 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
14866 | cat >conftest.$ac_ext <<_ACEOF | |
14867 | /* confdefs.h. */ | |
14868 | _ACEOF | |
14869 | cat confdefs.h >>conftest.$ac_ext | |
14870 | cat >>conftest.$ac_ext <<_ACEOF | |
14871 | /* end confdefs.h. */ | |
14872 | ||
14873 | int | |
14874 | main () | |
14875 | { | |
14876 | #ifndef __POWERPC__ | |
14877 | choke me for lack of PowerPC | |
14878 | #endif | |
14879 | ||
14880 | ; | |
14881 | return 0; | |
14882 | } | |
14883 | _ACEOF | |
14884 | rm -f conftest.$ac_objext | |
14885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14886 | (eval $ac_compile) 2>conftest.er1 | |
14887 | ac_status=$? | |
14888 | grep -v '^ *+' conftest.er1 >conftest.err | |
14889 | rm -f conftest.er1 | |
14890 | cat conftest.err >&5 | |
14891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14892 | (exit $ac_status); } && | |
3565d135 RR |
14893 | { ac_try='test -z "$ac_c_werror_flag" |
14894 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
14895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14896 | (eval $ac_try) 2>&5 | |
14897 | ac_status=$? | |
14898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14899 | (exit $ac_status); }; } && | |
14900 | { ac_try='test -s conftest.$ac_objext' | |
14901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14902 | (eval $ac_try) 2>&5 | |
14903 | ac_status=$? | |
14904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14905 | (exit $ac_status); }; }; then | |
14906 | echo "$as_me:$LINENO: result: yes" >&5 | |
14907 | echo "${ECHO_T}yes" >&6 | |
14908 | else | |
14909 | echo "$as_me: failed program was:" >&5 | |
14910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14911 | ||
14912 | echo "$as_me:$LINENO: result: no" >&5 | |
14913 | echo "${ECHO_T}no" >&6 | |
14914 | cat >>confdefs.h <<\_ACEOF | |
14915 | #define __POWERPC__ 1 | |
14916 | _ACEOF | |
14917 | ||
14918 | ||
14919 | fi | |
14920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
14921 | ;; |
14922 | esac | |
14923 | ||
14924 | case "${host}" in | |
14925 | *-*-darwin* ) | |
4d7ec9f1 DE |
14926 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
14927 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
14928 | cat >conftest.$ac_ext <<_ACEOF | |
14929 | /* confdefs.h. */ | |
14930 | _ACEOF | |
14931 | cat confdefs.h >>conftest.$ac_ext | |
14932 | cat >>conftest.$ac_ext <<_ACEOF | |
14933 | /* end confdefs.h. */ | |
14934 | #include <CoreFoundation/CFBase.h> | |
14935 | ||
14936 | int | |
14937 | main () | |
14938 | { | |
14939 | ||
14940 | ; | |
14941 | return 0; | |
14942 | } | |
14943 | _ACEOF | |
14944 | rm -f conftest.$ac_objext | |
14945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14946 | (eval $ac_compile) 2>conftest.er1 | |
14947 | ac_status=$? | |
14948 | grep -v '^ *+' conftest.er1 >conftest.err | |
14949 | rm -f conftest.er1 | |
14950 | cat conftest.err >&5 | |
14951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14952 | (exit $ac_status); } && | |
3565d135 RR |
14953 | { ac_try='test -z "$ac_c_werror_flag" |
14954 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
14955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14956 | (eval $ac_try) 2>&5 | |
14957 | ac_status=$? | |
14958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14959 | (exit $ac_status); }; } && | |
14960 | { ac_try='test -s conftest.$ac_objext' | |
14961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14962 | (eval $ac_try) 2>&5 | |
14963 | ac_status=$? | |
14964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14965 | (exit $ac_status); }; }; then | |
14966 | echo "$as_me:$LINENO: result: yes" >&5 | |
14967 | echo "${ECHO_T}yes" >&6 | |
14968 | else | |
14969 | echo "$as_me: failed program was:" >&5 | |
14970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14971 | ||
14972 | echo "$as_me:$LINENO: result: no" >&5 | |
14973 | echo "${ECHO_T}no" >&6 | |
14974 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
14975 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
14976 | cat >conftest.$ac_ext <<_ACEOF | |
14977 | /* confdefs.h. */ | |
14978 | _ACEOF | |
14979 | cat confdefs.h >>conftest.$ac_ext | |
14980 | cat >>conftest.$ac_ext <<_ACEOF | |
14981 | /* end confdefs.h. */ | |
14982 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
14983 | #include <CoreFoundation/CFBase.h> | |
14984 | ||
14985 | int | |
14986 | main () | |
14987 | { | |
14988 | ||
14989 | ; | |
14990 | return 0; | |
14991 | } | |
14992 | _ACEOF | |
14993 | rm -f conftest.$ac_objext | |
14994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14995 | (eval $ac_compile) 2>conftest.er1 | |
14996 | ac_status=$? | |
14997 | grep -v '^ *+' conftest.er1 >conftest.err | |
14998 | rm -f conftest.er1 | |
14999 | cat conftest.err >&5 | |
15000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15001 | (exit $ac_status); } && | |
3565d135 RR |
15002 | { ac_try='test -z "$ac_c_werror_flag" |
15003 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
15004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15005 | (eval $ac_try) 2>&5 | |
15006 | ac_status=$? | |
15007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15008 | (exit $ac_status); }; } && | |
15009 | { ac_try='test -s conftest.$ac_objext' | |
15010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15011 | (eval $ac_try) 2>&5 | |
15012 | ac_status=$? | |
15013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15014 | (exit $ac_status); }; }; then | |
15015 | echo "$as_me:$LINENO: result: yes" >&5 | |
15016 | echo "${ECHO_T}yes" >&6 | |
c92ad099 | 15017 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" |
4d7ec9f1 DE |
15018 | else |
15019 | echo "$as_me: failed program was:" >&5 | |
15020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15021 | ||
15022 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
15023 | See \`config.log' for more details." >&5 | |
15024 | echo "$as_me: error: no. CoreFoundation not available. | |
15025 | See \`config.log' for more details." >&2;} | |
15026 | { (exit 1); exit 1; }; } | |
15027 | ||
15028 | fi | |
15029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15030 | ||
15031 | ||
15032 | fi | |
15033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15034 | ;; | |
15035 | esac | |
15036 | ||
a848cd7e SC |
15037 | case "${host}" in |
15038 | *-pc-os2_emx | *-pc-os2-emx ) | |
15039 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
15040 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
15041 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
15042 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
15043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15044 | else | |
15045 | ac_check_lib_save_LIBS=$LIBS | |
15046 | LIBS="-lcExt $LIBS" | |
15047 | cat >conftest.$ac_ext <<_ACEOF | |
15048 | /* confdefs.h. */ | |
15049 | _ACEOF | |
15050 | cat confdefs.h >>conftest.$ac_ext | |
15051 | cat >>conftest.$ac_ext <<_ACEOF | |
15052 | /* end confdefs.h. */ | |
15053 | ||
15054 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15055 | #ifdef __cplusplus | |
15056 | extern "C" | |
15057 | #endif | |
15058 | /* We use char because int might match the return type of a gcc2 | |
15059 | builtin and then its argument prototype would still apply. */ | |
15060 | char drand48 (); | |
15061 | int | |
15062 | main () | |
15063 | { | |
15064 | drand48 (); | |
15065 | ; | |
15066 | return 0; | |
15067 | } | |
15068 | _ACEOF | |
15069 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15071 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15072 | ac_status=$? |
ac1cb8d3 VS |
15073 | grep -v '^ *+' conftest.er1 >conftest.err |
15074 | rm -f conftest.er1 | |
15075 | cat conftest.err >&5 | |
a848cd7e SC |
15076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15077 | (exit $ac_status); } && | |
3565d135 RR |
15078 | { ac_try='test -z "$ac_c_werror_flag" |
15079 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15081 | (eval $ac_try) 2>&5 | |
15082 | ac_status=$? | |
15083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15084 | (exit $ac_status); }; } && | |
15085 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15087 | (eval $ac_try) 2>&5 | |
15088 | ac_status=$? | |
15089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15090 | (exit $ac_status); }; }; then | |
15091 | ac_cv_lib_cExt_drand48=yes | |
15092 | else | |
15093 | echo "$as_me: failed program was:" >&5 | |
15094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15095 | ||
15096 | ac_cv_lib_cExt_drand48=no | |
15097 | fi | |
ac1cb8d3 VS |
15098 | rm -f conftest.err conftest.$ac_objext \ |
15099 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15100 | LIBS=$ac_check_lib_save_LIBS |
15101 | fi | |
15102 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
15103 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
15104 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
15105 | LIBS="$LIBS -lcExt" | |
15106 | fi | |
15107 | ||
15108 | else | |
15109 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
15110 | fi | |
69120ee4 VZ |
15111 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
15112 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
15113 | if test "${wx_cv_gccversion+set}" = set; then |
15114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15115 | else | |
15116 | ||
391a765e VS |
15117 | if test "$cross_compiling" = yes; then |
15118 | wx_cv_gccversion="EMX2" | |
15119 | ||
15120 | else | |
15121 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
15122 | /* confdefs.h. */ |
15123 | _ACEOF | |
15124 | cat confdefs.h >>conftest.$ac_ext | |
15125 | cat >>conftest.$ac_ext <<_ACEOF | |
15126 | /* end confdefs.h. */ | |
15127 | ||
391a765e | 15128 | #include <stdio.h> |
a848cd7e | 15129 | |
391a765e VS |
15130 | int main() |
15131 | { | |
15132 | FILE *f=fopen("conftestval", "w"); | |
15133 | if (!f) exit(1); | |
15134 | fprintf(f, | |
a848cd7e | 15135 | #if (__GNUC__ < 3) |
391a765e VS |
15136 | "EMX2" |
15137 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
15138 | "EMX3" | |
15139 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
15140 | "Innotek5" | |
15141 | #else | |
15142 | "Innotek6" | |
a848cd7e | 15143 | #endif |
391a765e VS |
15144 | ); |
15145 | exit(0); | |
15146 | } | |
a848cd7e | 15147 | |
a848cd7e | 15148 | _ACEOF |
391a765e VS |
15149 | rm -f conftest$ac_exeext |
15150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15151 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
15152 | ac_status=$? |
15153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 15154 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
15155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15156 | (eval $ac_try) 2>&5 | |
15157 | ac_status=$? | |
15158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15159 | (exit $ac_status); }; }; then | |
391a765e | 15160 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 15161 | else |
391a765e VS |
15162 | echo "$as_me: program exited with status $ac_status" >&5 |
15163 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
15164 | sed 's/^/| /' conftest.$ac_ext >&5 |
15165 | ||
391a765e VS |
15166 | ( exit $ac_status ) |
15167 | wx_cv_gccversion="EMX2" | |
a848cd7e | 15168 | fi |
391a765e | 15169 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15170 | fi |
a848cd7e SC |
15171 | |
15172 | fi | |
15173 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
15174 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 15175 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
15176 | LIBS="$LIBS -lstdcpp" |
15177 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
15178 | else | |
391a765e | 15179 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 15180 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
15181 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
15182 | else | |
15183 | LIBS="$LIBS -lstdc++" | |
15184 | fi | |
15185 | fi | |
94acd38e DE |
15186 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
15187 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
15188 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
15189 | wxUSE_OMF=yes | |
2da0c077 | 15190 | enable_omf=yes |
a848cd7e SC |
15191 | fi |
15192 | ;; | |
15193 | *) | |
15194 | ||
15195 | ||
15196 | ||
15197 | ac_ext=cc | |
15198 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15199 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15200 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15201 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15202 | ||
15203 | ||
95986553 | 15204 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
15205 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
15206 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
15207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15208 | else | |
15209 | ||
15210 | cat >conftest.$ac_ext <<_ACEOF | |
15211 | /* confdefs.h. */ | |
15212 | _ACEOF | |
15213 | cat confdefs.h >>conftest.$ac_ext | |
15214 | cat >>conftest.$ac_ext <<_ACEOF | |
15215 | /* end confdefs.h. */ | |
15216 | ||
15217 | #include <string.h> | |
15218 | ||
15219 | int | |
15220 | main () | |
15221 | { | |
15222 | ||
15223 | strcasecmp("foo", "bar"); | |
15224 | ||
15225 | ; | |
15226 | return 0; | |
15227 | } | |
15228 | _ACEOF | |
15229 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15231 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15232 | ac_status=$? |
ac1cb8d3 VS |
15233 | grep -v '^ *+' conftest.er1 >conftest.err |
15234 | rm -f conftest.er1 | |
15235 | cat conftest.err >&5 | |
a848cd7e SC |
15236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15237 | (exit $ac_status); } && | |
3565d135 RR |
15238 | { ac_try='test -z "$ac_cxx_werror_flag" |
15239 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15241 | (eval $ac_try) 2>&5 | |
15242 | ac_status=$? | |
15243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15244 | (exit $ac_status); }; } && | |
15245 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15247 | (eval $ac_try) 2>&5 | |
15248 | ac_status=$? | |
15249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15250 | (exit $ac_status); }; }; then | |
15251 | ac_cv_string_strcasecmp=yes | |
15252 | else | |
15253 | echo "$as_me: failed program was:" >&5 | |
15254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15255 | ||
15256 | ac_cv_string_strcasecmp=no | |
15257 | ||
15258 | fi | |
ac1cb8d3 VS |
15259 | rm -f conftest.err conftest.$ac_objext \ |
15260 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15261 | |
15262 | fi | |
15263 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
15264 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
15265 | ||
15266 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
15267 | cat >>confdefs.h <<\_ACEOF | |
15268 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
15269 | _ACEOF | |
15270 | ||
15271 | else | |
15272 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
15273 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
15274 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
15275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15276 | else | |
15277 | ||
15278 | cat >conftest.$ac_ext <<_ACEOF | |
15279 | /* confdefs.h. */ | |
15280 | _ACEOF | |
15281 | cat confdefs.h >>conftest.$ac_ext | |
15282 | cat >>conftest.$ac_ext <<_ACEOF | |
15283 | /* end confdefs.h. */ | |
15284 | ||
15285 | #include <strings.h> | |
15286 | ||
15287 | int | |
15288 | main () | |
15289 | { | |
15290 | ||
15291 | strcasecmp("foo", "bar"); | |
15292 | ||
15293 | ; | |
15294 | return 0; | |
15295 | } | |
15296 | _ACEOF | |
15297 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15299 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15300 | ac_status=$? |
ac1cb8d3 VS |
15301 | grep -v '^ *+' conftest.er1 >conftest.err |
15302 | rm -f conftest.er1 | |
15303 | cat conftest.err >&5 | |
a848cd7e SC |
15304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15305 | (exit $ac_status); } && | |
3565d135 RR |
15306 | { ac_try='test -z "$ac_cxx_werror_flag" |
15307 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15309 | (eval $ac_try) 2>&5 | |
15310 | ac_status=$? | |
15311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15312 | (exit $ac_status); }; } && | |
15313 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15315 | (eval $ac_try) 2>&5 | |
15316 | ac_status=$? | |
15317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15318 | (exit $ac_status); }; }; then | |
15319 | ac_cv_strings_strcasecmp=yes | |
15320 | else | |
15321 | echo "$as_me: failed program was:" >&5 | |
15322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15323 | ||
15324 | ac_cv_strings_strcasecmp=no | |
15325 | ||
15326 | fi | |
ac1cb8d3 VS |
15327 | rm -f conftest.err conftest.$ac_objext \ |
15328 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15329 | |
15330 | fi | |
15331 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
15332 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
15333 | ||
0c3c69fc | 15334 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
15335 | cat >>confdefs.h <<\_ACEOF |
15336 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
15337 | _ACEOF | |
15338 | ||
15339 | else | |
15340 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
15341 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
15342 | { (exit 1); exit 1; }; } | |
15343 | fi | |
15344 | fi | |
15345 | ||
15346 | ac_ext=c | |
15347 | ac_cpp='$CPP $CPPFLAGS' | |
15348 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15349 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15350 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15351 | ||
15352 | ;; | |
15353 | esac | |
15354 | ||
15355 | ||
15356 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
15357 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
15358 | if test "${ac_cv_header_stdc+set}" = set; then | |
15359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15360 | else | |
15361 | cat >conftest.$ac_ext <<_ACEOF | |
15362 | /* confdefs.h. */ | |
15363 | _ACEOF | |
15364 | cat confdefs.h >>conftest.$ac_ext | |
15365 | cat >>conftest.$ac_ext <<_ACEOF | |
15366 | /* end confdefs.h. */ | |
15367 | #include <stdlib.h> | |
15368 | #include <stdarg.h> | |
15369 | #include <string.h> | |
15370 | #include <float.h> | |
15371 | ||
15372 | int | |
15373 | main () | |
15374 | { | |
15375 | ||
15376 | ; | |
15377 | return 0; | |
15378 | } | |
15379 | _ACEOF | |
15380 | rm -f conftest.$ac_objext | |
15381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15382 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15383 | ac_status=$? |
ac1cb8d3 VS |
15384 | grep -v '^ *+' conftest.er1 >conftest.err |
15385 | rm -f conftest.er1 | |
15386 | cat conftest.err >&5 | |
a848cd7e SC |
15387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15388 | (exit $ac_status); } && | |
3565d135 RR |
15389 | { ac_try='test -z "$ac_c_werror_flag" |
15390 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15392 | (eval $ac_try) 2>&5 | |
15393 | ac_status=$? | |
15394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15395 | (exit $ac_status); }; } && | |
15396 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15398 | (eval $ac_try) 2>&5 | |
15399 | ac_status=$? | |
15400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15401 | (exit $ac_status); }; }; then | |
15402 | ac_cv_header_stdc=yes | |
15403 | else | |
15404 | echo "$as_me: failed program was:" >&5 | |
15405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15406 | ||
15407 | ac_cv_header_stdc=no | |
15408 | fi | |
ac1cb8d3 | 15409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15410 | |
15411 | if test $ac_cv_header_stdc = yes; then | |
15412 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15413 | cat >conftest.$ac_ext <<_ACEOF | |
15414 | /* confdefs.h. */ | |
15415 | _ACEOF | |
15416 | cat confdefs.h >>conftest.$ac_ext | |
15417 | cat >>conftest.$ac_ext <<_ACEOF | |
15418 | /* end confdefs.h. */ | |
15419 | #include <string.h> | |
15420 | ||
15421 | _ACEOF | |
15422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15423 | $EGREP "memchr" >/dev/null 2>&1; then | |
15424 | : | |
15425 | else | |
15426 | ac_cv_header_stdc=no | |
15427 | fi | |
15428 | rm -f conftest* | |
15429 | ||
15430 | fi | |
15431 | ||
15432 | if test $ac_cv_header_stdc = yes; then | |
15433 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15434 | cat >conftest.$ac_ext <<_ACEOF | |
15435 | /* confdefs.h. */ | |
15436 | _ACEOF | |
15437 | cat confdefs.h >>conftest.$ac_ext | |
15438 | cat >>conftest.$ac_ext <<_ACEOF | |
15439 | /* end confdefs.h. */ | |
15440 | #include <stdlib.h> | |
15441 | ||
15442 | _ACEOF | |
15443 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15444 | $EGREP "free" >/dev/null 2>&1; then | |
15445 | : | |
15446 | else | |
15447 | ac_cv_header_stdc=no | |
15448 | fi | |
15449 | rm -f conftest* | |
15450 | ||
15451 | fi | |
15452 | ||
15453 | if test $ac_cv_header_stdc = yes; then | |
15454 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15455 | if test "$cross_compiling" = yes; then | |
15456 | : | |
15457 | else | |
15458 | cat >conftest.$ac_ext <<_ACEOF | |
15459 | /* confdefs.h. */ | |
15460 | _ACEOF | |
15461 | cat confdefs.h >>conftest.$ac_ext | |
15462 | cat >>conftest.$ac_ext <<_ACEOF | |
15463 | /* end confdefs.h. */ | |
15464 | #include <ctype.h> | |
15465 | #if ((' ' & 0x0FF) == 0x020) | |
15466 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15467 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15468 | #else | |
15469 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
15470 | (('a' <= (c) && (c) <= 'i') \ |
15471 | || ('j' <= (c) && (c) <= 'r') \ | |
15472 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
15473 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
15474 | #endif | |
15475 | ||
15476 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15477 | int | |
15478 | main () | |
15479 | { | |
15480 | int i; | |
15481 | for (i = 0; i < 256; i++) | |
15482 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 15483 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
15484 | exit(2); |
15485 | exit (0); | |
15486 | } | |
15487 | _ACEOF | |
15488 | rm -f conftest$ac_exeext | |
15489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15490 | (eval $ac_link) 2>&5 | |
15491 | ac_status=$? | |
15492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15493 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15495 | (eval $ac_try) 2>&5 | |
15496 | ac_status=$? | |
15497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15498 | (exit $ac_status); }; }; then | |
15499 | : | |
15500 | else | |
15501 | echo "$as_me: program exited with status $ac_status" >&5 | |
15502 | echo "$as_me: failed program was:" >&5 | |
15503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15504 | ||
15505 | ( exit $ac_status ) | |
15506 | ac_cv_header_stdc=no | |
15507 | fi | |
ac1cb8d3 | 15508 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15509 | fi |
15510 | fi | |
15511 | fi | |
15512 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
15513 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
15514 | if test $ac_cv_header_stdc = yes; then | |
15515 | ||
15516 | cat >>confdefs.h <<\_ACEOF | |
15517 | #define STDC_HEADERS 1 | |
15518 | _ACEOF | |
15519 | ||
15520 | fi | |
15521 | ||
15522 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
15523 | ||
15524 | ||
15525 | ||
15526 | ||
15527 | ||
15528 | ||
15529 | ||
15530 | ||
15531 | ||
15532 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 15533 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
15534 | do |
15535 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15536 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15537 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15538 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15540 | else | |
15541 | cat >conftest.$ac_ext <<_ACEOF | |
15542 | /* confdefs.h. */ | |
15543 | _ACEOF | |
15544 | cat confdefs.h >>conftest.$ac_ext | |
15545 | cat >>conftest.$ac_ext <<_ACEOF | |
15546 | /* end confdefs.h. */ | |
15547 | $ac_includes_default | |
15548 | ||
15549 | #include <$ac_header> | |
15550 | _ACEOF | |
15551 | rm -f conftest.$ac_objext | |
15552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15553 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15554 | ac_status=$? |
ac1cb8d3 VS |
15555 | grep -v '^ *+' conftest.er1 >conftest.err |
15556 | rm -f conftest.er1 | |
15557 | cat conftest.err >&5 | |
a848cd7e SC |
15558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15559 | (exit $ac_status); } && | |
3565d135 RR |
15560 | { ac_try='test -z "$ac_c_werror_flag" |
15561 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15563 | (eval $ac_try) 2>&5 | |
15564 | ac_status=$? | |
15565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15566 | (exit $ac_status); }; } && | |
15567 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15569 | (eval $ac_try) 2>&5 | |
15570 | ac_status=$? | |
15571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15572 | (exit $ac_status); }; }; then | |
15573 | eval "$as_ac_Header=yes" | |
15574 | else | |
15575 | echo "$as_me: failed program was:" >&5 | |
15576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15577 | ||
15578 | eval "$as_ac_Header=no" | |
15579 | fi | |
ac1cb8d3 | 15580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15581 | fi |
15582 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15583 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15584 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15585 | cat >>confdefs.h <<_ACEOF | |
15586 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15587 | _ACEOF | |
15588 | ||
15589 | fi | |
15590 | ||
15591 | done | |
15592 | ||
15593 | ||
15594 | ||
15595 | for ac_header in stdlib.h | |
15596 | do | |
15597 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15598 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15599 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15600 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15601 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15603 | fi | |
15604 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15605 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15606 | else | |
15607 | # Is the header compilable? | |
15608 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15609 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15610 | cat >conftest.$ac_ext <<_ACEOF | |
15611 | /* confdefs.h. */ | |
15612 | _ACEOF | |
15613 | cat confdefs.h >>conftest.$ac_ext | |
15614 | cat >>conftest.$ac_ext <<_ACEOF | |
15615 | /* end confdefs.h. */ | |
15616 | $ac_includes_default | |
15617 | #include <$ac_header> | |
15618 | _ACEOF | |
15619 | rm -f conftest.$ac_objext | |
15620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15621 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15622 | ac_status=$? |
ac1cb8d3 VS |
15623 | grep -v '^ *+' conftest.er1 >conftest.err |
15624 | rm -f conftest.er1 | |
15625 | cat conftest.err >&5 | |
a848cd7e SC |
15626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15627 | (exit $ac_status); } && | |
3565d135 RR |
15628 | { ac_try='test -z "$ac_c_werror_flag" |
15629 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15631 | (eval $ac_try) 2>&5 | |
15632 | ac_status=$? | |
15633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15634 | (exit $ac_status); }; } && | |
15635 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15637 | (eval $ac_try) 2>&5 | |
15638 | ac_status=$? | |
15639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15640 | (exit $ac_status); }; }; then | |
15641 | ac_header_compiler=yes | |
15642 | else | |
15643 | echo "$as_me: failed program was:" >&5 | |
15644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15645 | ||
15646 | ac_header_compiler=no | |
15647 | fi | |
ac1cb8d3 | 15648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15649 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15650 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15651 | ||
15652 | # Is the header present? | |
15653 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15654 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15655 | cat >conftest.$ac_ext <<_ACEOF | |
15656 | /* confdefs.h. */ | |
15657 | _ACEOF | |
15658 | cat confdefs.h >>conftest.$ac_ext | |
15659 | cat >>conftest.$ac_ext <<_ACEOF | |
15660 | /* end confdefs.h. */ | |
15661 | #include <$ac_header> | |
15662 | _ACEOF | |
15663 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15664 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15665 | ac_status=$? | |
15666 | grep -v '^ *+' conftest.er1 >conftest.err | |
15667 | rm -f conftest.er1 | |
15668 | cat conftest.err >&5 | |
15669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15670 | (exit $ac_status); } >/dev/null; then | |
15671 | if test -s conftest.err; then | |
15672 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15673 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15674 | else |
15675 | ac_cpp_err= | |
15676 | fi | |
15677 | else | |
15678 | ac_cpp_err=yes | |
15679 | fi | |
15680 | if test -z "$ac_cpp_err"; then | |
15681 | ac_header_preproc=yes | |
15682 | else | |
15683 | echo "$as_me: failed program was:" >&5 | |
15684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15685 | ||
15686 | ac_header_preproc=no | |
15687 | fi | |
15688 | rm -f conftest.err conftest.$ac_ext | |
15689 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15690 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15691 | ||
15692 | # So? What about this header? | |
ac1cb8d3 VS |
15693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15694 | yes:no: ) | |
a848cd7e SC |
15695 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15696 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15697 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15698 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15699 | ac_header_preproc=yes | |
a848cd7e | 15700 | ;; |
ac1cb8d3 | 15701 | no:yes:* ) |
a848cd7e SC |
15702 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15703 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15704 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15705 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15706 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15707 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15708 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15709 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15710 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15711 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15712 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15713 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15714 | ( |
15715 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15716 | ## ----------------------------------------- ## |
15717 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15718 | ## ----------------------------------------- ## | |
a848cd7e SC |
15719 | _ASBOX |
15720 | ) | | |
15721 | sed "s/^/$as_me: WARNING: /" >&2 | |
15722 | ;; | |
15723 | esac | |
15724 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15725 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15726 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15728 | else | |
ac1cb8d3 | 15729 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15730 | fi |
15731 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15732 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15733 | ||
15734 | fi | |
15735 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15736 | cat >>confdefs.h <<_ACEOF | |
15737 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15738 | _ACEOF | |
15739 | ||
15740 | fi | |
15741 | ||
15742 | done | |
15743 | ||
15744 | ||
15745 | for ac_header in malloc.h | |
15746 | do | |
15747 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15748 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15749 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15750 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15751 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15753 | fi | |
15754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15755 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15756 | else | |
15757 | # Is the header compilable? | |
15758 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15759 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15760 | cat >conftest.$ac_ext <<_ACEOF | |
15761 | /* confdefs.h. */ | |
15762 | _ACEOF | |
15763 | cat confdefs.h >>conftest.$ac_ext | |
15764 | cat >>conftest.$ac_ext <<_ACEOF | |
15765 | /* end confdefs.h. */ | |
15766 | $ac_includes_default | |
15767 | #include <$ac_header> | |
15768 | _ACEOF | |
15769 | rm -f conftest.$ac_objext | |
15770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15771 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15772 | ac_status=$? |
ac1cb8d3 VS |
15773 | grep -v '^ *+' conftest.er1 >conftest.err |
15774 | rm -f conftest.er1 | |
15775 | cat conftest.err >&5 | |
a848cd7e SC |
15776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15777 | (exit $ac_status); } && | |
3565d135 RR |
15778 | { ac_try='test -z "$ac_c_werror_flag" |
15779 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15781 | (eval $ac_try) 2>&5 | |
15782 | ac_status=$? | |
15783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15784 | (exit $ac_status); }; } && | |
15785 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15787 | (eval $ac_try) 2>&5 | |
15788 | ac_status=$? | |
15789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15790 | (exit $ac_status); }; }; then | |
15791 | ac_header_compiler=yes | |
15792 | else | |
15793 | echo "$as_me: failed program was:" >&5 | |
15794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15795 | ||
15796 | ac_header_compiler=no | |
15797 | fi | |
ac1cb8d3 | 15798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15799 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15800 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15801 | ||
15802 | # Is the header present? | |
15803 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15804 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15805 | cat >conftest.$ac_ext <<_ACEOF | |
15806 | /* confdefs.h. */ | |
15807 | _ACEOF | |
15808 | cat confdefs.h >>conftest.$ac_ext | |
15809 | cat >>conftest.$ac_ext <<_ACEOF | |
15810 | /* end confdefs.h. */ | |
15811 | #include <$ac_header> | |
15812 | _ACEOF | |
15813 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15814 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15815 | ac_status=$? | |
15816 | grep -v '^ *+' conftest.er1 >conftest.err | |
15817 | rm -f conftest.er1 | |
15818 | cat conftest.err >&5 | |
15819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15820 | (exit $ac_status); } >/dev/null; then | |
15821 | if test -s conftest.err; then | |
15822 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15823 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15824 | else |
15825 | ac_cpp_err= | |
15826 | fi | |
15827 | else | |
15828 | ac_cpp_err=yes | |
15829 | fi | |
15830 | if test -z "$ac_cpp_err"; then | |
15831 | ac_header_preproc=yes | |
15832 | else | |
15833 | echo "$as_me: failed program was:" >&5 | |
15834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15835 | ||
15836 | ac_header_preproc=no | |
15837 | fi | |
15838 | rm -f conftest.err conftest.$ac_ext | |
15839 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15840 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15841 | ||
15842 | # So? What about this header? | |
ac1cb8d3 VS |
15843 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15844 | yes:no: ) | |
a848cd7e SC |
15845 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15846 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15847 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15848 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15849 | ac_header_preproc=yes | |
a848cd7e | 15850 | ;; |
ac1cb8d3 | 15851 | no:yes:* ) |
a848cd7e SC |
15852 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15853 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15854 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15855 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15856 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15857 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15858 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15859 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15860 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15861 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15862 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15863 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15864 | ( |
15865 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15866 | ## ----------------------------------------- ## |
15867 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15868 | ## ----------------------------------------- ## | |
a848cd7e SC |
15869 | _ASBOX |
15870 | ) | | |
15871 | sed "s/^/$as_me: WARNING: /" >&2 | |
15872 | ;; | |
15873 | esac | |
15874 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15875 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15878 | else | |
ac1cb8d3 | 15879 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15880 | fi |
15881 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15882 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15883 | ||
15884 | fi | |
15885 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15886 | cat >>confdefs.h <<_ACEOF | |
15887 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15888 | _ACEOF | |
15889 | ||
15890 | fi | |
15891 | ||
15892 | done | |
15893 | ||
15894 | ||
15895 | for ac_header in unistd.h | |
15896 | do | |
15897 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15899 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15903 | fi | |
15904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15905 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15906 | else | |
15907 | # Is the header compilable? | |
15908 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15909 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15910 | cat >conftest.$ac_ext <<_ACEOF | |
15911 | /* confdefs.h. */ | |
15912 | _ACEOF | |
15913 | cat confdefs.h >>conftest.$ac_ext | |
15914 | cat >>conftest.$ac_ext <<_ACEOF | |
15915 | /* end confdefs.h. */ | |
15916 | $ac_includes_default | |
15917 | #include <$ac_header> | |
15918 | _ACEOF | |
15919 | rm -f conftest.$ac_objext | |
15920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15921 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15922 | ac_status=$? |
ac1cb8d3 VS |
15923 | grep -v '^ *+' conftest.er1 >conftest.err |
15924 | rm -f conftest.er1 | |
15925 | cat conftest.err >&5 | |
a848cd7e SC |
15926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15927 | (exit $ac_status); } && | |
3565d135 RR |
15928 | { ac_try='test -z "$ac_c_werror_flag" |
15929 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15931 | (eval $ac_try) 2>&5 | |
15932 | ac_status=$? | |
15933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15934 | (exit $ac_status); }; } && | |
15935 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15937 | (eval $ac_try) 2>&5 | |
15938 | ac_status=$? | |
15939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15940 | (exit $ac_status); }; }; then | |
15941 | ac_header_compiler=yes | |
15942 | else | |
15943 | echo "$as_me: failed program was:" >&5 | |
15944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15945 | ||
15946 | ac_header_compiler=no | |
15947 | fi | |
ac1cb8d3 | 15948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15949 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15950 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15951 | ||
15952 | # Is the header present? | |
15953 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15954 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15955 | cat >conftest.$ac_ext <<_ACEOF | |
15956 | /* confdefs.h. */ | |
15957 | _ACEOF | |
15958 | cat confdefs.h >>conftest.$ac_ext | |
15959 | cat >>conftest.$ac_ext <<_ACEOF | |
15960 | /* end confdefs.h. */ | |
15961 | #include <$ac_header> | |
15962 | _ACEOF | |
15963 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15964 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15965 | ac_status=$? | |
15966 | grep -v '^ *+' conftest.er1 >conftest.err | |
15967 | rm -f conftest.er1 | |
15968 | cat conftest.err >&5 | |
15969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15970 | (exit $ac_status); } >/dev/null; then | |
15971 | if test -s conftest.err; then | |
15972 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15973 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15974 | else |
15975 | ac_cpp_err= | |
15976 | fi | |
15977 | else | |
15978 | ac_cpp_err=yes | |
15979 | fi | |
15980 | if test -z "$ac_cpp_err"; then | |
15981 | ac_header_preproc=yes | |
15982 | else | |
15983 | echo "$as_me: failed program was:" >&5 | |
15984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15985 | ||
15986 | ac_header_preproc=no | |
15987 | fi | |
15988 | rm -f conftest.err conftest.$ac_ext | |
15989 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15990 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15991 | ||
15992 | # So? What about this header? | |
ac1cb8d3 VS |
15993 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15994 | yes:no: ) | |
a848cd7e SC |
15995 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15996 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15997 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15998 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15999 | ac_header_preproc=yes | |
a848cd7e | 16000 | ;; |
ac1cb8d3 | 16001 | no:yes:* ) |
a848cd7e SC |
16002 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16003 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16004 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16005 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16006 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16007 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16008 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16009 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16010 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16011 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16012 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16013 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16014 | ( |
16015 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16016 | ## ----------------------------------------- ## |
16017 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16018 | ## ----------------------------------------- ## | |
a848cd7e SC |
16019 | _ASBOX |
16020 | ) | | |
16021 | sed "s/^/$as_me: WARNING: /" >&2 | |
16022 | ;; | |
16023 | esac | |
16024 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16026 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16028 | else | |
ac1cb8d3 | 16029 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16030 | fi |
16031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16032 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16033 | ||
16034 | fi | |
16035 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16036 | cat >>confdefs.h <<_ACEOF | |
16037 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16038 | _ACEOF | |
16039 | ||
16040 | fi | |
16041 | ||
16042 | done | |
16043 | ||
16044 | ||
16045 | for ac_header in wchar.h | |
16046 | do | |
16047 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16048 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16049 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16053 | fi | |
16054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16055 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16056 | else | |
16057 | # Is the header compilable? | |
16058 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16059 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16060 | cat >conftest.$ac_ext <<_ACEOF | |
16061 | /* confdefs.h. */ | |
16062 | _ACEOF | |
16063 | cat confdefs.h >>conftest.$ac_ext | |
16064 | cat >>conftest.$ac_ext <<_ACEOF | |
16065 | /* end confdefs.h. */ | |
16066 | $ac_includes_default | |
16067 | #include <$ac_header> | |
16068 | _ACEOF | |
16069 | rm -f conftest.$ac_objext | |
16070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16071 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16072 | ac_status=$? |
ac1cb8d3 VS |
16073 | grep -v '^ *+' conftest.er1 >conftest.err |
16074 | rm -f conftest.er1 | |
16075 | cat conftest.err >&5 | |
a848cd7e SC |
16076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16077 | (exit $ac_status); } && | |
3565d135 RR |
16078 | { ac_try='test -z "$ac_c_werror_flag" |
16079 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16081 | (eval $ac_try) 2>&5 | |
16082 | ac_status=$? | |
16083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16084 | (exit $ac_status); }; } && | |
16085 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16087 | (eval $ac_try) 2>&5 | |
16088 | ac_status=$? | |
16089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16090 | (exit $ac_status); }; }; then | |
16091 | ac_header_compiler=yes | |
16092 | else | |
16093 | echo "$as_me: failed program was:" >&5 | |
16094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16095 | ||
16096 | ac_header_compiler=no | |
16097 | fi | |
ac1cb8d3 | 16098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16099 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16100 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16101 | ||
16102 | # Is the header present? | |
16103 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16104 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16105 | cat >conftest.$ac_ext <<_ACEOF | |
16106 | /* confdefs.h. */ | |
16107 | _ACEOF | |
16108 | cat confdefs.h >>conftest.$ac_ext | |
16109 | cat >>conftest.$ac_ext <<_ACEOF | |
16110 | /* end confdefs.h. */ | |
16111 | #include <$ac_header> | |
16112 | _ACEOF | |
16113 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16114 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16115 | ac_status=$? | |
16116 | grep -v '^ *+' conftest.er1 >conftest.err | |
16117 | rm -f conftest.er1 | |
16118 | cat conftest.err >&5 | |
16119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16120 | (exit $ac_status); } >/dev/null; then | |
16121 | if test -s conftest.err; then | |
16122 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16123 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16124 | else |
16125 | ac_cpp_err= | |
16126 | fi | |
16127 | else | |
16128 | ac_cpp_err=yes | |
16129 | fi | |
16130 | if test -z "$ac_cpp_err"; then | |
16131 | ac_header_preproc=yes | |
16132 | else | |
16133 | echo "$as_me: failed program was:" >&5 | |
16134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16135 | ||
16136 | ac_header_preproc=no | |
16137 | fi | |
16138 | rm -f conftest.err conftest.$ac_ext | |
16139 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16140 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16141 | ||
16142 | # So? What about this header? | |
ac1cb8d3 VS |
16143 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16144 | yes:no: ) | |
a848cd7e SC |
16145 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16146 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16147 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16148 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16149 | ac_header_preproc=yes | |
a848cd7e | 16150 | ;; |
ac1cb8d3 | 16151 | no:yes:* ) |
a848cd7e SC |
16152 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16153 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16154 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16155 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16156 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16157 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16158 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16159 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16160 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16161 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16162 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16163 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16164 | ( |
16165 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16166 | ## ----------------------------------------- ## |
16167 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16168 | ## ----------------------------------------- ## | |
a848cd7e SC |
16169 | _ASBOX |
16170 | ) | | |
16171 | sed "s/^/$as_me: WARNING: /" >&2 | |
16172 | ;; | |
16173 | esac | |
16174 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16176 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16178 | else | |
ac1cb8d3 | 16179 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16180 | fi |
16181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16182 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16183 | ||
16184 | fi | |
16185 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16186 | cat >>confdefs.h <<_ACEOF | |
16187 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16188 | _ACEOF | |
16189 | ||
16190 | fi | |
16191 | ||
16192 | done | |
16193 | ||
16194 | ||
16195 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
16196 | ||
16197 | for ac_header in wcstr.h | |
16198 | do | |
16199 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16200 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16201 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16202 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16203 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16205 | fi | |
16206 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16207 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16208 | else | |
16209 | # Is the header compilable? | |
16210 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16211 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16212 | cat >conftest.$ac_ext <<_ACEOF | |
16213 | /* confdefs.h. */ | |
16214 | _ACEOF | |
16215 | cat confdefs.h >>conftest.$ac_ext | |
16216 | cat >>conftest.$ac_ext <<_ACEOF | |
16217 | /* end confdefs.h. */ | |
16218 | $ac_includes_default | |
16219 | #include <$ac_header> | |
16220 | _ACEOF | |
16221 | rm -f conftest.$ac_objext | |
16222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16223 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16224 | ac_status=$? |
ac1cb8d3 VS |
16225 | grep -v '^ *+' conftest.er1 >conftest.err |
16226 | rm -f conftest.er1 | |
16227 | cat conftest.err >&5 | |
a848cd7e SC |
16228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16229 | (exit $ac_status); } && | |
3565d135 RR |
16230 | { ac_try='test -z "$ac_c_werror_flag" |
16231 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16233 | (eval $ac_try) 2>&5 | |
16234 | ac_status=$? | |
16235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16236 | (exit $ac_status); }; } && | |
16237 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16239 | (eval $ac_try) 2>&5 | |
16240 | ac_status=$? | |
16241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16242 | (exit $ac_status); }; }; then | |
16243 | ac_header_compiler=yes | |
16244 | else | |
16245 | echo "$as_me: failed program was:" >&5 | |
16246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16247 | ||
16248 | ac_header_compiler=no | |
16249 | fi | |
ac1cb8d3 | 16250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16251 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16252 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16253 | ||
16254 | # Is the header present? | |
16255 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16256 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16257 | cat >conftest.$ac_ext <<_ACEOF | |
16258 | /* confdefs.h. */ | |
16259 | _ACEOF | |
16260 | cat confdefs.h >>conftest.$ac_ext | |
16261 | cat >>conftest.$ac_ext <<_ACEOF | |
16262 | /* end confdefs.h. */ | |
16263 | #include <$ac_header> | |
16264 | _ACEOF | |
16265 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16266 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16267 | ac_status=$? | |
16268 | grep -v '^ *+' conftest.er1 >conftest.err | |
16269 | rm -f conftest.er1 | |
16270 | cat conftest.err >&5 | |
16271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16272 | (exit $ac_status); } >/dev/null; then | |
16273 | if test -s conftest.err; then | |
16274 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16275 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16276 | else |
16277 | ac_cpp_err= | |
16278 | fi | |
16279 | else | |
16280 | ac_cpp_err=yes | |
16281 | fi | |
16282 | if test -z "$ac_cpp_err"; then | |
16283 | ac_header_preproc=yes | |
16284 | else | |
16285 | echo "$as_me: failed program was:" >&5 | |
16286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16287 | ||
16288 | ac_header_preproc=no | |
16289 | fi | |
16290 | rm -f conftest.err conftest.$ac_ext | |
16291 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16292 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16293 | ||
16294 | # So? What about this header? | |
ac1cb8d3 VS |
16295 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16296 | yes:no: ) | |
a848cd7e SC |
16297 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16298 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16299 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16300 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16301 | ac_header_preproc=yes | |
a848cd7e | 16302 | ;; |
ac1cb8d3 | 16303 | no:yes:* ) |
a848cd7e SC |
16304 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16305 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16306 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16307 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16308 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16309 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16310 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16311 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16312 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16313 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16314 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16315 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16316 | ( |
16317 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16318 | ## ----------------------------------------- ## |
16319 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16320 | ## ----------------------------------------- ## | |
a848cd7e SC |
16321 | _ASBOX |
16322 | ) | | |
16323 | sed "s/^/$as_me: WARNING: /" >&2 | |
16324 | ;; | |
16325 | esac | |
16326 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16327 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16328 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16330 | else | |
ac1cb8d3 | 16331 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16332 | fi |
16333 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16334 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16335 | ||
16336 | fi | |
16337 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16338 | cat >>confdefs.h <<_ACEOF | |
16339 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16340 | _ACEOF | |
16341 | ||
16342 | fi | |
16343 | ||
16344 | done | |
16345 | ||
16346 | fi | |
16347 | ||
16348 | ||
16349 | for ac_header in fnmatch.h | |
16350 | do | |
16351 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16352 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16353 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16354 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16355 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16357 | fi | |
16358 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16359 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16360 | else | |
16361 | # Is the header compilable? | |
16362 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16363 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16364 | cat >conftest.$ac_ext <<_ACEOF | |
16365 | /* confdefs.h. */ | |
16366 | _ACEOF | |
16367 | cat confdefs.h >>conftest.$ac_ext | |
16368 | cat >>conftest.$ac_ext <<_ACEOF | |
16369 | /* end confdefs.h. */ | |
16370 | $ac_includes_default | |
16371 | #include <$ac_header> | |
16372 | _ACEOF | |
16373 | rm -f conftest.$ac_objext | |
16374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16375 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16376 | ac_status=$? |
ac1cb8d3 VS |
16377 | grep -v '^ *+' conftest.er1 >conftest.err |
16378 | rm -f conftest.er1 | |
16379 | cat conftest.err >&5 | |
a848cd7e SC |
16380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16381 | (exit $ac_status); } && | |
3565d135 RR |
16382 | { ac_try='test -z "$ac_c_werror_flag" |
16383 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16385 | (eval $ac_try) 2>&5 | |
16386 | ac_status=$? | |
16387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16388 | (exit $ac_status); }; } && | |
16389 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16391 | (eval $ac_try) 2>&5 | |
16392 | ac_status=$? | |
16393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16394 | (exit $ac_status); }; }; then | |
16395 | ac_header_compiler=yes | |
16396 | else | |
16397 | echo "$as_me: failed program was:" >&5 | |
16398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16399 | ||
16400 | ac_header_compiler=no | |
16401 | fi | |
ac1cb8d3 | 16402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16403 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16404 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16405 | ||
16406 | # Is the header present? | |
16407 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16408 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16409 | cat >conftest.$ac_ext <<_ACEOF | |
16410 | /* confdefs.h. */ | |
16411 | _ACEOF | |
16412 | cat confdefs.h >>conftest.$ac_ext | |
16413 | cat >>conftest.$ac_ext <<_ACEOF | |
16414 | /* end confdefs.h. */ | |
16415 | #include <$ac_header> | |
16416 | _ACEOF | |
16417 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16418 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16419 | ac_status=$? | |
16420 | grep -v '^ *+' conftest.er1 >conftest.err | |
16421 | rm -f conftest.er1 | |
16422 | cat conftest.err >&5 | |
16423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16424 | (exit $ac_status); } >/dev/null; then | |
16425 | if test -s conftest.err; then | |
16426 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16427 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16428 | else |
16429 | ac_cpp_err= | |
16430 | fi | |
16431 | else | |
16432 | ac_cpp_err=yes | |
16433 | fi | |
16434 | if test -z "$ac_cpp_err"; then | |
16435 | ac_header_preproc=yes | |
16436 | else | |
16437 | echo "$as_me: failed program was:" >&5 | |
16438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16439 | ||
16440 | ac_header_preproc=no | |
16441 | fi | |
16442 | rm -f conftest.err conftest.$ac_ext | |
16443 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16444 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16445 | ||
16446 | # So? What about this header? | |
ac1cb8d3 VS |
16447 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16448 | yes:no: ) | |
a848cd7e SC |
16449 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16450 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16451 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16452 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16453 | ac_header_preproc=yes | |
a848cd7e | 16454 | ;; |
ac1cb8d3 | 16455 | no:yes:* ) |
a848cd7e SC |
16456 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16457 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16458 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16459 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16460 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16461 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16462 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16463 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16464 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16465 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16466 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16467 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16468 | ( |
16469 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16470 | ## ----------------------------------------- ## |
16471 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16472 | ## ----------------------------------------- ## | |
a848cd7e SC |
16473 | _ASBOX |
16474 | ) | | |
16475 | sed "s/^/$as_me: WARNING: /" >&2 | |
16476 | ;; | |
16477 | esac | |
16478 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16479 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16480 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16482 | else | |
ac1cb8d3 | 16483 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16484 | fi |
16485 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16486 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16487 | ||
16488 | fi | |
16489 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16490 | cat >>confdefs.h <<_ACEOF | |
16491 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16492 | _ACEOF | |
16493 | ||
16494 | fi | |
16495 | ||
16496 | done | |
16497 | ||
16498 | ||
a848cd7e SC |
16499 | |
16500 | for ac_header in langinfo.h | |
16501 | do | |
16502 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16503 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16504 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16505 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16506 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16508 | fi | |
16509 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16510 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16511 | else | |
16512 | # Is the header compilable? | |
16513 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16514 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16515 | cat >conftest.$ac_ext <<_ACEOF | |
16516 | /* confdefs.h. */ | |
16517 | _ACEOF | |
16518 | cat confdefs.h >>conftest.$ac_ext | |
16519 | cat >>conftest.$ac_ext <<_ACEOF | |
16520 | /* end confdefs.h. */ | |
16521 | $ac_includes_default | |
16522 | #include <$ac_header> | |
16523 | _ACEOF | |
16524 | rm -f conftest.$ac_objext | |
16525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16526 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16527 | ac_status=$? |
ac1cb8d3 VS |
16528 | grep -v '^ *+' conftest.er1 >conftest.err |
16529 | rm -f conftest.er1 | |
16530 | cat conftest.err >&5 | |
a848cd7e SC |
16531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16532 | (exit $ac_status); } && | |
3565d135 RR |
16533 | { ac_try='test -z "$ac_c_werror_flag" |
16534 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16536 | (eval $ac_try) 2>&5 | |
16537 | ac_status=$? | |
16538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16539 | (exit $ac_status); }; } && | |
16540 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16542 | (eval $ac_try) 2>&5 | |
16543 | ac_status=$? | |
16544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16545 | (exit $ac_status); }; }; then | |
16546 | ac_header_compiler=yes | |
16547 | else | |
16548 | echo "$as_me: failed program was:" >&5 | |
16549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16550 | ||
16551 | ac_header_compiler=no | |
16552 | fi | |
ac1cb8d3 | 16553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16554 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16555 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16556 | ||
16557 | # Is the header present? | |
16558 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16559 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16560 | cat >conftest.$ac_ext <<_ACEOF | |
16561 | /* confdefs.h. */ | |
16562 | _ACEOF | |
16563 | cat confdefs.h >>conftest.$ac_ext | |
16564 | cat >>conftest.$ac_ext <<_ACEOF | |
16565 | /* end confdefs.h. */ | |
16566 | #include <$ac_header> | |
16567 | _ACEOF | |
16568 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16569 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16570 | ac_status=$? | |
16571 | grep -v '^ *+' conftest.er1 >conftest.err | |
16572 | rm -f conftest.er1 | |
16573 | cat conftest.err >&5 | |
16574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16575 | (exit $ac_status); } >/dev/null; then | |
16576 | if test -s conftest.err; then | |
16577 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16578 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16579 | else |
16580 | ac_cpp_err= | |
16581 | fi | |
16582 | else | |
16583 | ac_cpp_err=yes | |
16584 | fi | |
16585 | if test -z "$ac_cpp_err"; then | |
16586 | ac_header_preproc=yes | |
16587 | else | |
16588 | echo "$as_me: failed program was:" >&5 | |
16589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16590 | ||
16591 | ac_header_preproc=no | |
16592 | fi | |
16593 | rm -f conftest.err conftest.$ac_ext | |
16594 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16595 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16596 | ||
16597 | # So? What about this header? | |
ac1cb8d3 VS |
16598 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16599 | yes:no: ) | |
a848cd7e SC |
16600 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16601 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16602 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16603 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16604 | ac_header_preproc=yes | |
a848cd7e | 16605 | ;; |
ac1cb8d3 | 16606 | no:yes:* ) |
a848cd7e SC |
16607 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16608 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16609 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16610 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16611 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16612 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16613 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16614 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16615 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16616 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16617 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16618 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16619 | ( |
16620 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16621 | ## ----------------------------------------- ## |
16622 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16623 | ## ----------------------------------------- ## | |
a848cd7e SC |
16624 | _ASBOX |
16625 | ) | | |
16626 | sed "s/^/$as_me: WARNING: /" >&2 | |
16627 | ;; | |
16628 | esac | |
16629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16633 | else | |
ac1cb8d3 | 16634 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16635 | fi |
16636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16637 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16638 | ||
16639 | fi | |
16640 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16641 | cat >>confdefs.h <<_ACEOF | |
16642 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16643 | _ACEOF | |
16644 | ||
16645 | fi | |
16646 | ||
16647 | done | |
16648 | ||
16649 | ||
16650 | case "${host}" in | |
16651 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
16652 | if test $ac_cv_header_langinfo_h = "yes" \ |
16653 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
16654 | -o "$wx_cv_gccversion" = "EMX3" \ | |
16655 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
16656 | LIBS="$LIBS -lintl" |
16657 | fi | |
16658 | ;; | |
16659 | esac | |
16660 | ||
a848cd7e SC |
16661 | |
16662 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
16663 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
16664 | if test "${ac_cv_c_const+set}" = set; then | |
16665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16666 | else | |
16667 | cat >conftest.$ac_ext <<_ACEOF | |
16668 | /* confdefs.h. */ | |
16669 | _ACEOF | |
16670 | cat confdefs.h >>conftest.$ac_ext | |
16671 | cat >>conftest.$ac_ext <<_ACEOF | |
16672 | /* end confdefs.h. */ | |
16673 | ||
16674 | int | |
16675 | main () | |
16676 | { | |
16677 | /* FIXME: Include the comments suggested by Paul. */ | |
16678 | #ifndef __cplusplus | |
16679 | /* Ultrix mips cc rejects this. */ | |
16680 | typedef int charset[2]; | |
16681 | const charset x; | |
16682 | /* SunOS 4.1.1 cc rejects this. */ | |
16683 | char const *const *ccp; | |
16684 | char **p; | |
16685 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
16686 | struct point {int x, y;}; | |
16687 | static struct point const zero = {0,0}; | |
16688 | /* AIX XL C 1.02.0.0 rejects this. | |
16689 | It does not let you subtract one const X* pointer from another in | |
16690 | an arm of an if-expression whose if-part is not a constant | |
16691 | expression */ | |
16692 | const char *g = "string"; | |
16693 | ccp = &g + (g ? g-g : 0); | |
16694 | /* HPUX 7.0 cc rejects these. */ | |
16695 | ++ccp; | |
16696 | p = (char**) ccp; | |
16697 | ccp = (char const *const *) p; | |
16698 | { /* SCO 3.2v4 cc rejects this. */ | |
16699 | char *t; | |
16700 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
16701 | ||
16702 | *t++ = 0; | |
16703 | } | |
16704 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
16705 | int x[] = {25, 17}; | |
16706 | const int *foo = &x[0]; | |
16707 | ++foo; | |
16708 | } | |
16709 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
16710 | typedef const int *iptr; | |
16711 | iptr p = 0; | |
16712 | ++p; | |
16713 | } | |
16714 | { /* AIX XL C 1.02.0.0 rejects this saying | |
16715 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
16716 | struct s { int j; const int *ap[3]; }; | |
16717 | struct s *b; b->j = 5; | |
16718 | } | |
16719 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
16720 | const int foo = 10; | |
16721 | } | |
16722 | #endif | |
16723 | ||
16724 | ; | |
16725 | return 0; | |
16726 | } | |
16727 | _ACEOF | |
16728 | rm -f conftest.$ac_objext | |
16729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16730 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16731 | ac_status=$? |
ac1cb8d3 VS |
16732 | grep -v '^ *+' conftest.er1 >conftest.err |
16733 | rm -f conftest.er1 | |
16734 | cat conftest.err >&5 | |
a848cd7e SC |
16735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16736 | (exit $ac_status); } && | |
3565d135 RR |
16737 | { ac_try='test -z "$ac_c_werror_flag" |
16738 | || 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_c_const=yes | |
16751 | else | |
16752 | echo "$as_me: failed program was:" >&5 | |
16753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16754 | ||
16755 | ac_cv_c_const=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_c_const" >&5 | |
16760 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
16761 | if test $ac_cv_c_const = no; then | |
16762 | ||
16763 | cat >>confdefs.h <<\_ACEOF | |
16764 | #define const | |
16765 | _ACEOF | |
16766 | ||
16767 | fi | |
16768 | ||
16769 | echo "$as_me:$LINENO: checking for inline" >&5 | |
16770 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
16771 | if test "${ac_cv_c_inline+set}" = set; then | |
16772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16773 | else | |
16774 | ac_cv_c_inline=no | |
16775 | for ac_kw in inline __inline__ __inline; do | |
16776 | cat >conftest.$ac_ext <<_ACEOF | |
16777 | /* confdefs.h. */ | |
16778 | _ACEOF | |
16779 | cat confdefs.h >>conftest.$ac_ext | |
16780 | cat >>conftest.$ac_ext <<_ACEOF | |
16781 | /* end confdefs.h. */ | |
16782 | #ifndef __cplusplus | |
16783 | typedef int foo_t; | |
16784 | static $ac_kw foo_t static_foo () {return 0; } | |
16785 | $ac_kw foo_t foo () {return 0; } | |
16786 | #endif | |
16787 | ||
16788 | _ACEOF | |
16789 | rm -f conftest.$ac_objext | |
16790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16791 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16792 | ac_status=$? |
ac1cb8d3 VS |
16793 | grep -v '^ *+' conftest.er1 >conftest.err |
16794 | rm -f conftest.er1 | |
16795 | cat conftest.err >&5 | |
a848cd7e SC |
16796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16797 | (exit $ac_status); } && | |
3565d135 RR |
16798 | { ac_try='test -z "$ac_c_werror_flag" |
16799 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16801 | (eval $ac_try) 2>&5 | |
16802 | ac_status=$? | |
16803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16804 | (exit $ac_status); }; } && | |
16805 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16807 | (eval $ac_try) 2>&5 | |
16808 | ac_status=$? | |
16809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16810 | (exit $ac_status); }; }; then | |
16811 | ac_cv_c_inline=$ac_kw; break | |
16812 | else | |
16813 | echo "$as_me: failed program was:" >&5 | |
16814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16815 | ||
16816 | fi | |
ac1cb8d3 | 16817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16818 | done |
16819 | ||
16820 | fi | |
16821 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
16822 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
16823 | |
16824 | ||
a848cd7e SC |
16825 | case $ac_cv_c_inline in |
16826 | inline | yes) ;; | |
ac1cb8d3 VS |
16827 | *) |
16828 | case $ac_cv_c_inline in | |
16829 | no) ac_val=;; | |
16830 | *) ac_val=$ac_cv_c_inline;; | |
16831 | esac | |
16832 | cat >>confdefs.h <<_ACEOF | |
16833 | #ifndef __cplusplus | |
16834 | #define inline $ac_val | |
16835 | #endif | |
de59c161 | 16836 | _ACEOF |
ac1cb8d3 | 16837 | ;; |
a848cd7e SC |
16838 | esac |
16839 | ||
16840 | ||
16841 | echo "$as_me:$LINENO: checking for char" >&5 | |
16842 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
16843 | if test "${ac_cv_type_char+set}" = set; then | |
16844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16845 | else | |
16846 | cat >conftest.$ac_ext <<_ACEOF | |
16847 | /* confdefs.h. */ | |
16848 | _ACEOF | |
16849 | cat confdefs.h >>conftest.$ac_ext | |
16850 | cat >>conftest.$ac_ext <<_ACEOF | |
16851 | /* end confdefs.h. */ | |
16852 | $ac_includes_default | |
16853 | int | |
16854 | main () | |
16855 | { | |
16856 | if ((char *) 0) | |
16857 | return 0; | |
16858 | if (sizeof (char)) | |
16859 | return 0; | |
16860 | ; | |
16861 | return 0; | |
16862 | } | |
16863 | _ACEOF | |
16864 | rm -f conftest.$ac_objext | |
16865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16866 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16867 | ac_status=$? |
ac1cb8d3 VS |
16868 | grep -v '^ *+' conftest.er1 >conftest.err |
16869 | rm -f conftest.er1 | |
16870 | cat conftest.err >&5 | |
a848cd7e SC |
16871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16872 | (exit $ac_status); } && | |
3565d135 RR |
16873 | { ac_try='test -z "$ac_c_werror_flag" |
16874 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16876 | (eval $ac_try) 2>&5 | |
16877 | ac_status=$? | |
16878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16879 | (exit $ac_status); }; } && | |
16880 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16882 | (eval $ac_try) 2>&5 | |
16883 | ac_status=$? | |
16884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16885 | (exit $ac_status); }; }; then | |
16886 | ac_cv_type_char=yes | |
16887 | else | |
16888 | echo "$as_me: failed program was:" >&5 | |
16889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16890 | ||
16891 | ac_cv_type_char=no | |
16892 | fi | |
ac1cb8d3 | 16893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16894 | fi |
16895 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
16896 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
16897 | ||
16898 | echo "$as_me:$LINENO: checking size of char" >&5 | |
16899 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
16900 | if test "${ac_cv_sizeof_char+set}" = set; then | |
16901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16902 | else | |
16903 | if test "$ac_cv_type_char" = yes; then | |
16904 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16905 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16906 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16907 | # This bug is HP SR number 8606223364. | |
16908 | if test "$cross_compiling" = yes; then | |
16909 | # Depending upon the size, compute the lo and hi bounds. | |
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 (char))) >= 0)]; | |
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); } && | |
3565d135 RR |
16936 | { ac_try='test -z "$ac_c_werror_flag" |
16937 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16939 | (eval $ac_try) 2>&5 | |
16940 | ac_status=$? | |
16941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16942 | (exit $ac_status); }; } && | |
16943 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16945 | (eval $ac_try) 2>&5 | |
16946 | ac_status=$? | |
16947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16948 | (exit $ac_status); }; }; then | |
16949 | ac_lo=0 ac_mid=0 | |
16950 | while :; do | |
16951 | cat >conftest.$ac_ext <<_ACEOF | |
16952 | /* confdefs.h. */ | |
16953 | _ACEOF | |
16954 | cat confdefs.h >>conftest.$ac_ext | |
16955 | cat >>conftest.$ac_ext <<_ACEOF | |
16956 | /* end confdefs.h. */ | |
16957 | $ac_includes_default | |
16958 | int | |
16959 | main () | |
16960 | { | |
16961 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16962 | test_array [0] = 0 | |
16963 | ||
16964 | ; | |
16965 | return 0; | |
16966 | } | |
16967 | _ACEOF | |
16968 | rm -f conftest.$ac_objext | |
16969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16970 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16971 | ac_status=$? |
ac1cb8d3 VS |
16972 | grep -v '^ *+' conftest.er1 >conftest.err |
16973 | rm -f conftest.er1 | |
16974 | cat conftest.err >&5 | |
a848cd7e SC |
16975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16976 | (exit $ac_status); } && | |
3565d135 RR |
16977 | { ac_try='test -z "$ac_c_werror_flag" |
16978 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16980 | (eval $ac_try) 2>&5 | |
16981 | ac_status=$? | |
16982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16983 | (exit $ac_status); }; } && | |
16984 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16986 | (eval $ac_try) 2>&5 | |
16987 | ac_status=$? | |
16988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16989 | (exit $ac_status); }; }; then | |
16990 | ac_hi=$ac_mid; break | |
16991 | else | |
16992 | echo "$as_me: failed program was:" >&5 | |
16993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16994 | ||
16995 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16996 | if test $ac_lo -le $ac_mid; then |
16997 | ac_lo= ac_hi= | |
16998 | break | |
16999 | fi | |
17000 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17001 | fi |
ac1cb8d3 | 17002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17003 | done |
17004 | else | |
17005 | echo "$as_me: failed program was:" >&5 | |
17006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17007 | ||
17008 | cat >conftest.$ac_ext <<_ACEOF | |
17009 | /* confdefs.h. */ | |
17010 | _ACEOF | |
17011 | cat confdefs.h >>conftest.$ac_ext | |
17012 | cat >>conftest.$ac_ext <<_ACEOF | |
17013 | /* end confdefs.h. */ | |
17014 | $ac_includes_default | |
17015 | int | |
17016 | main () | |
17017 | { | |
17018 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
17019 | test_array [0] = 0 | |
17020 | ||
17021 | ; | |
17022 | return 0; | |
17023 | } | |
17024 | _ACEOF | |
17025 | rm -f conftest.$ac_objext | |
17026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17027 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17028 | ac_status=$? |
ac1cb8d3 VS |
17029 | grep -v '^ *+' conftest.er1 >conftest.err |
17030 | rm -f conftest.er1 | |
17031 | cat conftest.err >&5 | |
a848cd7e SC |
17032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17033 | (exit $ac_status); } && | |
3565d135 RR |
17034 | { ac_try='test -z "$ac_c_werror_flag" |
17035 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17037 | (eval $ac_try) 2>&5 | |
17038 | ac_status=$? | |
17039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17040 | (exit $ac_status); }; } && | |
17041 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17043 | (eval $ac_try) 2>&5 | |
17044 | ac_status=$? | |
17045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17046 | (exit $ac_status); }; }; then | |
17047 | ac_hi=-1 ac_mid=-1 | |
17048 | while :; do | |
17049 | cat >conftest.$ac_ext <<_ACEOF | |
17050 | /* confdefs.h. */ | |
17051 | _ACEOF | |
17052 | cat confdefs.h >>conftest.$ac_ext | |
17053 | cat >>conftest.$ac_ext <<_ACEOF | |
17054 | /* end confdefs.h. */ | |
17055 | $ac_includes_default | |
17056 | int | |
17057 | main () | |
17058 | { | |
17059 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
17060 | test_array [0] = 0 | |
17061 | ||
17062 | ; | |
17063 | return 0; | |
17064 | } | |
17065 | _ACEOF | |
17066 | rm -f conftest.$ac_objext | |
17067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17068 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17069 | ac_status=$? |
ac1cb8d3 VS |
17070 | grep -v '^ *+' conftest.er1 >conftest.err |
17071 | rm -f conftest.er1 | |
17072 | cat conftest.err >&5 | |
a848cd7e SC |
17073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17074 | (exit $ac_status); } && | |
3565d135 RR |
17075 | { ac_try='test -z "$ac_c_werror_flag" |
17076 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17078 | (eval $ac_try) 2>&5 | |
17079 | ac_status=$? | |
17080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17081 | (exit $ac_status); }; } && | |
17082 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17084 | (eval $ac_try) 2>&5 | |
17085 | ac_status=$? | |
17086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17087 | (exit $ac_status); }; }; then | |
17088 | ac_lo=$ac_mid; break | |
17089 | else | |
17090 | echo "$as_me: failed program was:" >&5 | |
17091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17092 | ||
17093 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17094 | if test $ac_mid -le $ac_hi; then |
17095 | ac_lo= ac_hi= | |
17096 | break | |
17097 | fi | |
17098 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17099 | fi |
ac1cb8d3 | 17100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17101 | done |
17102 | else | |
17103 | echo "$as_me: failed program was:" >&5 | |
17104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17105 | ||
17106 | ac_lo= ac_hi= | |
17107 | fi | |
ac1cb8d3 | 17108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17109 | fi |
ac1cb8d3 | 17110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17111 | # Binary search between lo and hi bounds. |
17112 | while test "x$ac_lo" != "x$ac_hi"; do | |
17113 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17114 | cat >conftest.$ac_ext <<_ACEOF | |
17115 | /* confdefs.h. */ | |
17116 | _ACEOF | |
17117 | cat confdefs.h >>conftest.$ac_ext | |
17118 | cat >>conftest.$ac_ext <<_ACEOF | |
17119 | /* end confdefs.h. */ | |
17120 | $ac_includes_default | |
17121 | int | |
17122 | main () | |
17123 | { | |
17124 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17125 | test_array [0] = 0 | |
17126 | ||
17127 | ; | |
17128 | return 0; | |
17129 | } | |
17130 | _ACEOF | |
17131 | rm -f conftest.$ac_objext | |
17132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17133 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17134 | ac_status=$? |
ac1cb8d3 VS |
17135 | grep -v '^ *+' conftest.er1 >conftest.err |
17136 | rm -f conftest.er1 | |
17137 | cat conftest.err >&5 | |
a848cd7e SC |
17138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17139 | (exit $ac_status); } && | |
3565d135 RR |
17140 | { ac_try='test -z "$ac_c_werror_flag" |
17141 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17143 | (eval $ac_try) 2>&5 | |
17144 | ac_status=$? | |
17145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17146 | (exit $ac_status); }; } && | |
17147 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17149 | (eval $ac_try) 2>&5 | |
17150 | ac_status=$? | |
17151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17152 | (exit $ac_status); }; }; then | |
17153 | ac_hi=$ac_mid | |
17154 | else | |
17155 | echo "$as_me: failed program was:" >&5 | |
17156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17157 | ||
17158 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17159 | fi | |
ac1cb8d3 | 17160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17161 | done |
17162 | case $ac_lo in | |
17163 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
17164 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17165 | See \`config.log' for more details." >&5 | |
17166 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17167 | See \`config.log' for more details." >&2;} | |
17168 | { (exit 1); exit 1; }; } ;; | |
17169 | esac | |
17170 | else | |
17171 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
17172 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17173 | See \`config.log' for more details." >&5 | |
17174 | echo "$as_me: error: cannot run test program while cross compiling | |
17175 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17176 | { (exit 1); exit 1; }; } |
17177 | else | |
17178 | cat >conftest.$ac_ext <<_ACEOF | |
17179 | /* confdefs.h. */ | |
17180 | _ACEOF | |
17181 | cat confdefs.h >>conftest.$ac_ext | |
17182 | cat >>conftest.$ac_ext <<_ACEOF | |
17183 | /* end confdefs.h. */ | |
17184 | $ac_includes_default | |
17185 | long longval () { return (long) (sizeof (char)); } | |
17186 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
17187 | #include <stdio.h> | |
17188 | #include <stdlib.h> | |
17189 | int | |
17190 | main () | |
17191 | { | |
17192 | ||
17193 | FILE *f = fopen ("conftest.val", "w"); | |
17194 | if (! f) | |
17195 | exit (1); | |
17196 | if (((long) (sizeof (char))) < 0) | |
17197 | { | |
17198 | long i = longval (); | |
17199 | if (i != ((long) (sizeof (char)))) | |
17200 | exit (1); | |
17201 | fprintf (f, "%ld\n", i); | |
17202 | } | |
17203 | else | |
17204 | { | |
17205 | unsigned long i = ulongval (); | |
17206 | if (i != ((long) (sizeof (char)))) | |
17207 | exit (1); | |
17208 | fprintf (f, "%lu\n", i); | |
17209 | } | |
17210 | exit (ferror (f) || fclose (f) != 0); | |
17211 | ||
17212 | ; | |
17213 | return 0; | |
17214 | } | |
17215 | _ACEOF | |
17216 | rm -f conftest$ac_exeext | |
17217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17218 | (eval $ac_link) 2>&5 | |
17219 | ac_status=$? | |
17220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17221 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17223 | (eval $ac_try) 2>&5 | |
17224 | ac_status=$? | |
17225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17226 | (exit $ac_status); }; }; then | |
17227 | ac_cv_sizeof_char=`cat conftest.val` | |
17228 | else | |
17229 | echo "$as_me: program exited with status $ac_status" >&5 | |
17230 | echo "$as_me: failed program was:" >&5 | |
17231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17232 | ||
17233 | ( exit $ac_status ) | |
17234 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17235 | See \`config.log' for more details." >&5 | |
17236 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17237 | See \`config.log' for more details." >&2;} | |
17238 | { (exit 1); exit 1; }; } | |
17239 | fi | |
ac1cb8d3 | 17240 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17241 | fi |
17242 | fi | |
17243 | rm -f conftest.val | |
17244 | else | |
17245 | ac_cv_sizeof_char=0 | |
17246 | fi | |
17247 | fi | |
17248 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
17249 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
17250 | cat >>confdefs.h <<_ACEOF | |
17251 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
17252 | _ACEOF | |
17253 | ||
17254 | ||
17255 | echo "$as_me:$LINENO: checking for short" >&5 | |
17256 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
17257 | if test "${ac_cv_type_short+set}" = set; then | |
17258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17259 | else | |
17260 | cat >conftest.$ac_ext <<_ACEOF | |
17261 | /* confdefs.h. */ | |
17262 | _ACEOF | |
17263 | cat confdefs.h >>conftest.$ac_ext | |
17264 | cat >>conftest.$ac_ext <<_ACEOF | |
17265 | /* end confdefs.h. */ | |
17266 | $ac_includes_default | |
17267 | int | |
17268 | main () | |
17269 | { | |
17270 | if ((short *) 0) | |
17271 | return 0; | |
17272 | if (sizeof (short)) | |
17273 | return 0; | |
17274 | ; | |
17275 | return 0; | |
17276 | } | |
17277 | _ACEOF | |
17278 | rm -f conftest.$ac_objext | |
17279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17280 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17281 | ac_status=$? |
ac1cb8d3 VS |
17282 | grep -v '^ *+' conftest.er1 >conftest.err |
17283 | rm -f conftest.er1 | |
17284 | cat conftest.err >&5 | |
a848cd7e SC |
17285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17286 | (exit $ac_status); } && | |
3565d135 RR |
17287 | { ac_try='test -z "$ac_c_werror_flag" |
17288 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17290 | (eval $ac_try) 2>&5 | |
17291 | ac_status=$? | |
17292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17293 | (exit $ac_status); }; } && | |
17294 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17296 | (eval $ac_try) 2>&5 | |
17297 | ac_status=$? | |
17298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17299 | (exit $ac_status); }; }; then | |
17300 | ac_cv_type_short=yes | |
17301 | else | |
17302 | echo "$as_me: failed program was:" >&5 | |
17303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17304 | ||
17305 | ac_cv_type_short=no | |
17306 | fi | |
ac1cb8d3 | 17307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17308 | fi |
17309 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
17310 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
17311 | ||
17312 | echo "$as_me:$LINENO: checking size of short" >&5 | |
17313 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
17314 | if test "${ac_cv_sizeof_short+set}" = set; then | |
17315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17316 | else | |
17317 | if test "$ac_cv_type_short" = yes; then | |
17318 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17319 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17320 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17321 | # This bug is HP SR number 8606223364. | |
17322 | if test "$cross_compiling" = yes; then | |
17323 | # Depending upon the size, compute the lo and hi bounds. | |
17324 | cat >conftest.$ac_ext <<_ACEOF | |
17325 | /* confdefs.h. */ | |
17326 | _ACEOF | |
17327 | cat confdefs.h >>conftest.$ac_ext | |
17328 | cat >>conftest.$ac_ext <<_ACEOF | |
17329 | /* end confdefs.h. */ | |
17330 | $ac_includes_default | |
17331 | int | |
17332 | main () | |
17333 | { | |
17334 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
17335 | test_array [0] = 0 | |
17336 | ||
17337 | ; | |
17338 | return 0; | |
17339 | } | |
17340 | _ACEOF | |
17341 | rm -f conftest.$ac_objext | |
17342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17343 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17344 | ac_status=$? |
ac1cb8d3 VS |
17345 | grep -v '^ *+' conftest.er1 >conftest.err |
17346 | rm -f conftest.er1 | |
17347 | cat conftest.err >&5 | |
a848cd7e SC |
17348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17349 | (exit $ac_status); } && | |
3565d135 RR |
17350 | { ac_try='test -z "$ac_c_werror_flag" |
17351 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17353 | (eval $ac_try) 2>&5 | |
17354 | ac_status=$? | |
17355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17356 | (exit $ac_status); }; } && | |
17357 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17359 | (eval $ac_try) 2>&5 | |
17360 | ac_status=$? | |
17361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17362 | (exit $ac_status); }; }; then | |
17363 | ac_lo=0 ac_mid=0 | |
17364 | while :; do | |
17365 | cat >conftest.$ac_ext <<_ACEOF | |
17366 | /* confdefs.h. */ | |
17367 | _ACEOF | |
17368 | cat confdefs.h >>conftest.$ac_ext | |
17369 | cat >>conftest.$ac_ext <<_ACEOF | |
17370 | /* end confdefs.h. */ | |
17371 | $ac_includes_default | |
17372 | int | |
17373 | main () | |
17374 | { | |
17375 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17376 | test_array [0] = 0 | |
17377 | ||
17378 | ; | |
17379 | return 0; | |
17380 | } | |
17381 | _ACEOF | |
17382 | rm -f conftest.$ac_objext | |
17383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17384 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17385 | ac_status=$? |
ac1cb8d3 VS |
17386 | grep -v '^ *+' conftest.er1 >conftest.err |
17387 | rm -f conftest.er1 | |
17388 | cat conftest.err >&5 | |
a848cd7e SC |
17389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17390 | (exit $ac_status); } && | |
3565d135 RR |
17391 | { ac_try='test -z "$ac_c_werror_flag" |
17392 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17394 | (eval $ac_try) 2>&5 | |
17395 | ac_status=$? | |
17396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17397 | (exit $ac_status); }; } && | |
17398 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17400 | (eval $ac_try) 2>&5 | |
17401 | ac_status=$? | |
17402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17403 | (exit $ac_status); }; }; then | |
17404 | ac_hi=$ac_mid; break | |
17405 | else | |
17406 | echo "$as_me: failed program was:" >&5 | |
17407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17408 | ||
17409 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17410 | if test $ac_lo -le $ac_mid; then |
17411 | ac_lo= ac_hi= | |
17412 | break | |
17413 | fi | |
17414 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17415 | fi |
ac1cb8d3 | 17416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17417 | done |
17418 | else | |
17419 | echo "$as_me: failed program was:" >&5 | |
17420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17421 | ||
17422 | cat >conftest.$ac_ext <<_ACEOF | |
17423 | /* confdefs.h. */ | |
17424 | _ACEOF | |
17425 | cat confdefs.h >>conftest.$ac_ext | |
17426 | cat >>conftest.$ac_ext <<_ACEOF | |
17427 | /* end confdefs.h. */ | |
17428 | $ac_includes_default | |
17429 | int | |
17430 | main () | |
17431 | { | |
17432 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
17433 | test_array [0] = 0 | |
17434 | ||
17435 | ; | |
17436 | return 0; | |
17437 | } | |
17438 | _ACEOF | |
17439 | rm -f conftest.$ac_objext | |
17440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17441 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17442 | ac_status=$? |
ac1cb8d3 VS |
17443 | grep -v '^ *+' conftest.er1 >conftest.err |
17444 | rm -f conftest.er1 | |
17445 | cat conftest.err >&5 | |
a848cd7e SC |
17446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17447 | (exit $ac_status); } && | |
3565d135 RR |
17448 | { ac_try='test -z "$ac_c_werror_flag" |
17449 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17451 | (eval $ac_try) 2>&5 | |
17452 | ac_status=$? | |
17453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17454 | (exit $ac_status); }; } && | |
17455 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17457 | (eval $ac_try) 2>&5 | |
17458 | ac_status=$? | |
17459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17460 | (exit $ac_status); }; }; then | |
17461 | ac_hi=-1 ac_mid=-1 | |
17462 | while :; do | |
17463 | cat >conftest.$ac_ext <<_ACEOF | |
17464 | /* confdefs.h. */ | |
17465 | _ACEOF | |
17466 | cat confdefs.h >>conftest.$ac_ext | |
17467 | cat >>conftest.$ac_ext <<_ACEOF | |
17468 | /* end confdefs.h. */ | |
17469 | $ac_includes_default | |
17470 | int | |
17471 | main () | |
17472 | { | |
17473 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
17474 | test_array [0] = 0 | |
17475 | ||
17476 | ; | |
17477 | return 0; | |
17478 | } | |
17479 | _ACEOF | |
17480 | rm -f conftest.$ac_objext | |
17481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17482 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17483 | ac_status=$? |
ac1cb8d3 VS |
17484 | grep -v '^ *+' conftest.er1 >conftest.err |
17485 | rm -f conftest.er1 | |
17486 | cat conftest.err >&5 | |
a848cd7e SC |
17487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17488 | (exit $ac_status); } && | |
3565d135 RR |
17489 | { ac_try='test -z "$ac_c_werror_flag" |
17490 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17492 | (eval $ac_try) 2>&5 | |
17493 | ac_status=$? | |
17494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17495 | (exit $ac_status); }; } && | |
17496 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17498 | (eval $ac_try) 2>&5 | |
17499 | ac_status=$? | |
17500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17501 | (exit $ac_status); }; }; then | |
17502 | ac_lo=$ac_mid; break | |
17503 | else | |
17504 | echo "$as_me: failed program was:" >&5 | |
17505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17506 | ||
17507 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17508 | if test $ac_mid -le $ac_hi; then |
17509 | ac_lo= ac_hi= | |
17510 | break | |
17511 | fi | |
17512 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17513 | fi |
ac1cb8d3 | 17514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17515 | done |
17516 | else | |
17517 | echo "$as_me: failed program was:" >&5 | |
17518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17519 | ||
17520 | ac_lo= ac_hi= | |
17521 | fi | |
ac1cb8d3 | 17522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17523 | fi |
ac1cb8d3 | 17524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17525 | # Binary search between lo and hi bounds. |
17526 | while test "x$ac_lo" != "x$ac_hi"; do | |
17527 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17528 | cat >conftest.$ac_ext <<_ACEOF | |
17529 | /* confdefs.h. */ | |
17530 | _ACEOF | |
17531 | cat confdefs.h >>conftest.$ac_ext | |
17532 | cat >>conftest.$ac_ext <<_ACEOF | |
17533 | /* end confdefs.h. */ | |
17534 | $ac_includes_default | |
17535 | int | |
17536 | main () | |
17537 | { | |
17538 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17539 | test_array [0] = 0 | |
17540 | ||
17541 | ; | |
17542 | return 0; | |
17543 | } | |
17544 | _ACEOF | |
17545 | rm -f conftest.$ac_objext | |
17546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17547 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17548 | ac_status=$? |
ac1cb8d3 VS |
17549 | grep -v '^ *+' conftest.er1 >conftest.err |
17550 | rm -f conftest.er1 | |
17551 | cat conftest.err >&5 | |
a848cd7e SC |
17552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17553 | (exit $ac_status); } && | |
3565d135 RR |
17554 | { ac_try='test -z "$ac_c_werror_flag" |
17555 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17557 | (eval $ac_try) 2>&5 | |
17558 | ac_status=$? | |
17559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17560 | (exit $ac_status); }; } && | |
17561 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17563 | (eval $ac_try) 2>&5 | |
17564 | ac_status=$? | |
17565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17566 | (exit $ac_status); }; }; then | |
17567 | ac_hi=$ac_mid | |
17568 | else | |
17569 | echo "$as_me: failed program was:" >&5 | |
17570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17571 | ||
17572 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17573 | fi | |
ac1cb8d3 | 17574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17575 | done |
17576 | case $ac_lo in | |
17577 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
17578 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17579 | See \`config.log' for more details." >&5 | |
17580 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17581 | See \`config.log' for more details." >&2;} | |
17582 | { (exit 1); exit 1; }; } ;; | |
17583 | esac | |
17584 | else | |
17585 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
17586 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17587 | See \`config.log' for more details." >&5 | |
17588 | echo "$as_me: error: cannot run test program while cross compiling | |
17589 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17590 | { (exit 1); exit 1; }; } |
17591 | else | |
17592 | cat >conftest.$ac_ext <<_ACEOF | |
17593 | /* confdefs.h. */ | |
17594 | _ACEOF | |
17595 | cat confdefs.h >>conftest.$ac_ext | |
17596 | cat >>conftest.$ac_ext <<_ACEOF | |
17597 | /* end confdefs.h. */ | |
17598 | $ac_includes_default | |
17599 | long longval () { return (long) (sizeof (short)); } | |
17600 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
17601 | #include <stdio.h> | |
17602 | #include <stdlib.h> | |
17603 | int | |
17604 | main () | |
17605 | { | |
17606 | ||
17607 | FILE *f = fopen ("conftest.val", "w"); | |
17608 | if (! f) | |
17609 | exit (1); | |
17610 | if (((long) (sizeof (short))) < 0) | |
17611 | { | |
17612 | long i = longval (); | |
17613 | if (i != ((long) (sizeof (short)))) | |
17614 | exit (1); | |
17615 | fprintf (f, "%ld\n", i); | |
17616 | } | |
17617 | else | |
17618 | { | |
17619 | unsigned long i = ulongval (); | |
17620 | if (i != ((long) (sizeof (short)))) | |
17621 | exit (1); | |
17622 | fprintf (f, "%lu\n", i); | |
17623 | } | |
17624 | exit (ferror (f) || fclose (f) != 0); | |
17625 | ||
17626 | ; | |
17627 | return 0; | |
17628 | } | |
17629 | _ACEOF | |
17630 | rm -f conftest$ac_exeext | |
17631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17632 | (eval $ac_link) 2>&5 | |
17633 | ac_status=$? | |
17634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17635 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17637 | (eval $ac_try) 2>&5 | |
17638 | ac_status=$? | |
17639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17640 | (exit $ac_status); }; }; then | |
17641 | ac_cv_sizeof_short=`cat conftest.val` | |
17642 | else | |
17643 | echo "$as_me: program exited with status $ac_status" >&5 | |
17644 | echo "$as_me: failed program was:" >&5 | |
17645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17646 | ||
17647 | ( exit $ac_status ) | |
17648 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17649 | See \`config.log' for more details." >&5 | |
17650 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17651 | See \`config.log' for more details." >&2;} | |
17652 | { (exit 1); exit 1; }; } | |
17653 | fi | |
ac1cb8d3 | 17654 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17655 | fi |
17656 | fi | |
17657 | rm -f conftest.val | |
17658 | else | |
17659 | ac_cv_sizeof_short=0 | |
17660 | fi | |
17661 | fi | |
17662 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
17663 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
17664 | cat >>confdefs.h <<_ACEOF | |
17665 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
17666 | _ACEOF | |
17667 | ||
17668 | ||
17669 | echo "$as_me:$LINENO: checking for void *" >&5 | |
17670 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
17671 | if test "${ac_cv_type_void_p+set}" = set; then | |
17672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17673 | else | |
17674 | cat >conftest.$ac_ext <<_ACEOF | |
17675 | /* confdefs.h. */ | |
17676 | _ACEOF | |
17677 | cat confdefs.h >>conftest.$ac_ext | |
17678 | cat >>conftest.$ac_ext <<_ACEOF | |
17679 | /* end confdefs.h. */ | |
17680 | $ac_includes_default | |
17681 | int | |
17682 | main () | |
17683 | { | |
17684 | if ((void * *) 0) | |
17685 | return 0; | |
17686 | if (sizeof (void *)) | |
17687 | return 0; | |
17688 | ; | |
17689 | return 0; | |
17690 | } | |
17691 | _ACEOF | |
17692 | rm -f conftest.$ac_objext | |
17693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17694 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17695 | ac_status=$? |
ac1cb8d3 VS |
17696 | grep -v '^ *+' conftest.er1 >conftest.err |
17697 | rm -f conftest.er1 | |
17698 | cat conftest.err >&5 | |
a848cd7e SC |
17699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17700 | (exit $ac_status); } && | |
3565d135 RR |
17701 | { ac_try='test -z "$ac_c_werror_flag" |
17702 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17704 | (eval $ac_try) 2>&5 | |
17705 | ac_status=$? | |
17706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17707 | (exit $ac_status); }; } && | |
17708 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17714 | ac_cv_type_void_p=yes | |
17715 | else | |
17716 | echo "$as_me: failed program was:" >&5 | |
17717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17718 | ||
17719 | ac_cv_type_void_p=no | |
17720 | fi | |
ac1cb8d3 | 17721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17722 | fi |
17723 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
17724 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
17725 | ||
17726 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
17727 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
17728 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
17729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17730 | else | |
17731 | if test "$ac_cv_type_void_p" = yes; then | |
17732 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17733 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17734 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17735 | # This bug is HP SR number 8606223364. | |
17736 | if test "$cross_compiling" = yes; then | |
17737 | # Depending upon the size, compute the lo and hi bounds. | |
17738 | cat >conftest.$ac_ext <<_ACEOF | |
17739 | /* confdefs.h. */ | |
17740 | _ACEOF | |
17741 | cat confdefs.h >>conftest.$ac_ext | |
17742 | cat >>conftest.$ac_ext <<_ACEOF | |
17743 | /* end confdefs.h. */ | |
17744 | $ac_includes_default | |
17745 | int | |
17746 | main () | |
17747 | { | |
17748 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
17749 | test_array [0] = 0 | |
17750 | ||
17751 | ; | |
17752 | return 0; | |
17753 | } | |
17754 | _ACEOF | |
17755 | rm -f conftest.$ac_objext | |
17756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17757 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17758 | ac_status=$? |
ac1cb8d3 VS |
17759 | grep -v '^ *+' conftest.er1 >conftest.err |
17760 | rm -f conftest.er1 | |
17761 | cat conftest.err >&5 | |
a848cd7e SC |
17762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17763 | (exit $ac_status); } && | |
3565d135 RR |
17764 | { ac_try='test -z "$ac_c_werror_flag" |
17765 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17767 | (eval $ac_try) 2>&5 | |
17768 | ac_status=$? | |
17769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17770 | (exit $ac_status); }; } && | |
17771 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17773 | (eval $ac_try) 2>&5 | |
17774 | ac_status=$? | |
17775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17776 | (exit $ac_status); }; }; then | |
17777 | ac_lo=0 ac_mid=0 | |
17778 | while :; do | |
17779 | cat >conftest.$ac_ext <<_ACEOF | |
17780 | /* confdefs.h. */ | |
17781 | _ACEOF | |
17782 | cat confdefs.h >>conftest.$ac_ext | |
17783 | cat >>conftest.$ac_ext <<_ACEOF | |
17784 | /* end confdefs.h. */ | |
17785 | $ac_includes_default | |
17786 | int | |
17787 | main () | |
17788 | { | |
17789 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17790 | test_array [0] = 0 | |
17791 | ||
17792 | ; | |
17793 | return 0; | |
17794 | } | |
17795 | _ACEOF | |
17796 | rm -f conftest.$ac_objext | |
17797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17798 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17799 | ac_status=$? |
ac1cb8d3 VS |
17800 | grep -v '^ *+' conftest.er1 >conftest.err |
17801 | rm -f conftest.er1 | |
17802 | cat conftest.err >&5 | |
a848cd7e SC |
17803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17804 | (exit $ac_status); } && | |
3565d135 RR |
17805 | { ac_try='test -z "$ac_c_werror_flag" |
17806 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17808 | (eval $ac_try) 2>&5 | |
17809 | ac_status=$? | |
17810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17811 | (exit $ac_status); }; } && | |
17812 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17818 | ac_hi=$ac_mid; break | |
17819 | else | |
17820 | echo "$as_me: failed program was:" >&5 | |
17821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17822 | ||
17823 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17824 | if test $ac_lo -le $ac_mid; then |
17825 | ac_lo= ac_hi= | |
17826 | break | |
17827 | fi | |
17828 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17829 | fi |
ac1cb8d3 | 17830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17831 | done |
17832 | else | |
17833 | echo "$as_me: failed program was:" >&5 | |
17834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17835 | ||
17836 | cat >conftest.$ac_ext <<_ACEOF | |
17837 | /* confdefs.h. */ | |
17838 | _ACEOF | |
17839 | cat confdefs.h >>conftest.$ac_ext | |
17840 | cat >>conftest.$ac_ext <<_ACEOF | |
17841 | /* end confdefs.h. */ | |
17842 | $ac_includes_default | |
17843 | int | |
17844 | main () | |
17845 | { | |
17846 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
17847 | test_array [0] = 0 | |
17848 | ||
17849 | ; | |
17850 | return 0; | |
17851 | } | |
17852 | _ACEOF | |
17853 | rm -f conftest.$ac_objext | |
17854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17855 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17856 | ac_status=$? |
ac1cb8d3 VS |
17857 | grep -v '^ *+' conftest.er1 >conftest.err |
17858 | rm -f conftest.er1 | |
17859 | cat conftest.err >&5 | |
a848cd7e SC |
17860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17861 | (exit $ac_status); } && | |
3565d135 RR |
17862 | { ac_try='test -z "$ac_c_werror_flag" |
17863 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17865 | (eval $ac_try) 2>&5 | |
17866 | ac_status=$? | |
17867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17868 | (exit $ac_status); }; } && | |
17869 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17871 | (eval $ac_try) 2>&5 | |
17872 | ac_status=$? | |
17873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17874 | (exit $ac_status); }; }; then | |
17875 | ac_hi=-1 ac_mid=-1 | |
17876 | while :; do | |
17877 | cat >conftest.$ac_ext <<_ACEOF | |
17878 | /* confdefs.h. */ | |
17879 | _ACEOF | |
17880 | cat confdefs.h >>conftest.$ac_ext | |
17881 | cat >>conftest.$ac_ext <<_ACEOF | |
17882 | /* end confdefs.h. */ | |
17883 | $ac_includes_default | |
17884 | int | |
17885 | main () | |
17886 | { | |
17887 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
17888 | test_array [0] = 0 | |
17889 | ||
17890 | ; | |
17891 | return 0; | |
17892 | } | |
17893 | _ACEOF | |
17894 | rm -f conftest.$ac_objext | |
17895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17896 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17897 | ac_status=$? |
ac1cb8d3 VS |
17898 | grep -v '^ *+' conftest.er1 >conftest.err |
17899 | rm -f conftest.er1 | |
17900 | cat conftest.err >&5 | |
a848cd7e SC |
17901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17902 | (exit $ac_status); } && | |
3565d135 RR |
17903 | { ac_try='test -z "$ac_c_werror_flag" |
17904 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17906 | (eval $ac_try) 2>&5 | |
17907 | ac_status=$? | |
17908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17909 | (exit $ac_status); }; } && | |
17910 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17912 | (eval $ac_try) 2>&5 | |
17913 | ac_status=$? | |
17914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17915 | (exit $ac_status); }; }; then | |
17916 | ac_lo=$ac_mid; break | |
17917 | else | |
17918 | echo "$as_me: failed program was:" >&5 | |
17919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17920 | ||
17921 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17922 | if test $ac_mid -le $ac_hi; then |
17923 | ac_lo= ac_hi= | |
17924 | break | |
17925 | fi | |
17926 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17927 | fi |
ac1cb8d3 | 17928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17929 | done |
17930 | else | |
17931 | echo "$as_me: failed program was:" >&5 | |
17932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17933 | ||
17934 | ac_lo= ac_hi= | |
17935 | fi | |
ac1cb8d3 | 17936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17937 | fi |
ac1cb8d3 | 17938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17939 | # Binary search between lo and hi bounds. |
17940 | while test "x$ac_lo" != "x$ac_hi"; do | |
17941 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17942 | cat >conftest.$ac_ext <<_ACEOF | |
17943 | /* confdefs.h. */ | |
17944 | _ACEOF | |
17945 | cat confdefs.h >>conftest.$ac_ext | |
17946 | cat >>conftest.$ac_ext <<_ACEOF | |
17947 | /* end confdefs.h. */ | |
17948 | $ac_includes_default | |
17949 | int | |
17950 | main () | |
17951 | { | |
17952 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17953 | test_array [0] = 0 | |
17954 | ||
17955 | ; | |
17956 | return 0; | |
17957 | } | |
17958 | _ACEOF | |
17959 | rm -f conftest.$ac_objext | |
17960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17961 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17962 | ac_status=$? |
ac1cb8d3 VS |
17963 | grep -v '^ *+' conftest.er1 >conftest.err |
17964 | rm -f conftest.er1 | |
17965 | cat conftest.err >&5 | |
a848cd7e SC |
17966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17967 | (exit $ac_status); } && | |
3565d135 RR |
17968 | { ac_try='test -z "$ac_c_werror_flag" |
17969 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17971 | (eval $ac_try) 2>&5 | |
17972 | ac_status=$? | |
17973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17974 | (exit $ac_status); }; } && | |
17975 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17977 | (eval $ac_try) 2>&5 | |
17978 | ac_status=$? | |
17979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17980 | (exit $ac_status); }; }; then | |
17981 | ac_hi=$ac_mid | |
17982 | else | |
17983 | echo "$as_me: failed program was:" >&5 | |
17984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17985 | ||
17986 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17987 | fi | |
ac1cb8d3 | 17988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17989 | done |
17990 | case $ac_lo in | |
17991 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
17992 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
17993 | See \`config.log' for more details." >&5 | |
17994 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
17995 | See \`config.log' for more details." >&2;} | |
17996 | { (exit 1); exit 1; }; } ;; | |
17997 | esac | |
17998 | else | |
17999 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
18000 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18001 | See \`config.log' for more details." >&5 | |
18002 | echo "$as_me: error: cannot run test program while cross compiling | |
18003 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18004 | { (exit 1); exit 1; }; } |
18005 | else | |
18006 | cat >conftest.$ac_ext <<_ACEOF | |
18007 | /* confdefs.h. */ | |
18008 | _ACEOF | |
18009 | cat confdefs.h >>conftest.$ac_ext | |
18010 | cat >>conftest.$ac_ext <<_ACEOF | |
18011 | /* end confdefs.h. */ | |
18012 | $ac_includes_default | |
18013 | long longval () { return (long) (sizeof (void *)); } | |
18014 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
18015 | #include <stdio.h> | |
18016 | #include <stdlib.h> | |
18017 | int | |
18018 | main () | |
18019 | { | |
18020 | ||
18021 | FILE *f = fopen ("conftest.val", "w"); | |
18022 | if (! f) | |
18023 | exit (1); | |
18024 | if (((long) (sizeof (void *))) < 0) | |
18025 | { | |
18026 | long i = longval (); | |
18027 | if (i != ((long) (sizeof (void *)))) | |
18028 | exit (1); | |
18029 | fprintf (f, "%ld\n", i); | |
18030 | } | |
18031 | else | |
18032 | { | |
18033 | unsigned long i = ulongval (); | |
18034 | if (i != ((long) (sizeof (void *)))) | |
18035 | exit (1); | |
18036 | fprintf (f, "%lu\n", i); | |
18037 | } | |
18038 | exit (ferror (f) || fclose (f) != 0); | |
18039 | ||
18040 | ; | |
18041 | return 0; | |
18042 | } | |
18043 | _ACEOF | |
18044 | rm -f conftest$ac_exeext | |
18045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18046 | (eval $ac_link) 2>&5 | |
18047 | ac_status=$? | |
18048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18049 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18051 | (eval $ac_try) 2>&5 | |
18052 | ac_status=$? | |
18053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18054 | (exit $ac_status); }; }; then | |
18055 | ac_cv_sizeof_void_p=`cat conftest.val` | |
18056 | else | |
18057 | echo "$as_me: program exited with status $ac_status" >&5 | |
18058 | echo "$as_me: failed program was:" >&5 | |
18059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18060 | ||
18061 | ( exit $ac_status ) | |
18062 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18063 | See \`config.log' for more details." >&5 | |
18064 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18065 | See \`config.log' for more details." >&2;} | |
18066 | { (exit 1); exit 1; }; } | |
18067 | fi | |
ac1cb8d3 | 18068 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18069 | fi |
18070 | fi | |
18071 | rm -f conftest.val | |
18072 | else | |
18073 | ac_cv_sizeof_void_p=0 | |
18074 | fi | |
18075 | fi | |
18076 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
18077 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
18078 | cat >>confdefs.h <<_ACEOF | |
18079 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
18080 | _ACEOF | |
18081 | ||
18082 | ||
18083 | echo "$as_me:$LINENO: checking for int" >&5 | |
18084 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
18085 | if test "${ac_cv_type_int+set}" = set; then | |
18086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18087 | else | |
18088 | cat >conftest.$ac_ext <<_ACEOF | |
18089 | /* confdefs.h. */ | |
18090 | _ACEOF | |
18091 | cat confdefs.h >>conftest.$ac_ext | |
18092 | cat >>conftest.$ac_ext <<_ACEOF | |
18093 | /* end confdefs.h. */ | |
18094 | $ac_includes_default | |
18095 | int | |
18096 | main () | |
18097 | { | |
18098 | if ((int *) 0) | |
18099 | return 0; | |
18100 | if (sizeof (int)) | |
18101 | return 0; | |
18102 | ; | |
18103 | return 0; | |
18104 | } | |
18105 | _ACEOF | |
18106 | rm -f conftest.$ac_objext | |
18107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18108 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18109 | ac_status=$? |
ac1cb8d3 VS |
18110 | grep -v '^ *+' conftest.er1 >conftest.err |
18111 | rm -f conftest.er1 | |
18112 | cat conftest.err >&5 | |
a848cd7e SC |
18113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18114 | (exit $ac_status); } && | |
3565d135 RR |
18115 | { ac_try='test -z "$ac_c_werror_flag" |
18116 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18118 | (eval $ac_try) 2>&5 | |
18119 | ac_status=$? | |
18120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18121 | (exit $ac_status); }; } && | |
18122 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18124 | (eval $ac_try) 2>&5 | |
18125 | ac_status=$? | |
18126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18127 | (exit $ac_status); }; }; then | |
18128 | ac_cv_type_int=yes | |
18129 | else | |
18130 | echo "$as_me: failed program was:" >&5 | |
18131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18132 | ||
18133 | ac_cv_type_int=no | |
18134 | fi | |
ac1cb8d3 | 18135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18136 | fi |
18137 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
18138 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
18139 | ||
18140 | echo "$as_me:$LINENO: checking size of int" >&5 | |
18141 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
18142 | if test "${ac_cv_sizeof_int+set}" = set; then | |
18143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18144 | else | |
18145 | if test "$ac_cv_type_int" = yes; then | |
18146 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18147 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18148 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18149 | # This bug is HP SR number 8606223364. | |
18150 | if test "$cross_compiling" = yes; then | |
18151 | # Depending upon the size, compute the lo and hi bounds. | |
18152 | cat >conftest.$ac_ext <<_ACEOF | |
18153 | /* confdefs.h. */ | |
18154 | _ACEOF | |
18155 | cat confdefs.h >>conftest.$ac_ext | |
18156 | cat >>conftest.$ac_ext <<_ACEOF | |
18157 | /* end confdefs.h. */ | |
18158 | $ac_includes_default | |
18159 | int | |
18160 | main () | |
18161 | { | |
18162 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
18163 | test_array [0] = 0 | |
18164 | ||
18165 | ; | |
18166 | return 0; | |
18167 | } | |
18168 | _ACEOF | |
18169 | rm -f conftest.$ac_objext | |
18170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18171 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18172 | ac_status=$? |
ac1cb8d3 VS |
18173 | grep -v '^ *+' conftest.er1 >conftest.err |
18174 | rm -f conftest.er1 | |
18175 | cat conftest.err >&5 | |
a848cd7e SC |
18176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18177 | (exit $ac_status); } && | |
3565d135 RR |
18178 | { ac_try='test -z "$ac_c_werror_flag" |
18179 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18181 | (eval $ac_try) 2>&5 | |
18182 | ac_status=$? | |
18183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18184 | (exit $ac_status); }; } && | |
18185 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18187 | (eval $ac_try) 2>&5 | |
18188 | ac_status=$? | |
18189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18190 | (exit $ac_status); }; }; then | |
18191 | ac_lo=0 ac_mid=0 | |
18192 | while :; do | |
18193 | cat >conftest.$ac_ext <<_ACEOF | |
18194 | /* confdefs.h. */ | |
18195 | _ACEOF | |
18196 | cat confdefs.h >>conftest.$ac_ext | |
18197 | cat >>conftest.$ac_ext <<_ACEOF | |
18198 | /* end confdefs.h. */ | |
18199 | $ac_includes_default | |
18200 | int | |
18201 | main () | |
18202 | { | |
18203 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18204 | test_array [0] = 0 | |
18205 | ||
18206 | ; | |
18207 | return 0; | |
18208 | } | |
18209 | _ACEOF | |
18210 | rm -f conftest.$ac_objext | |
18211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18212 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18213 | ac_status=$? |
ac1cb8d3 VS |
18214 | grep -v '^ *+' conftest.er1 >conftest.err |
18215 | rm -f conftest.er1 | |
18216 | cat conftest.err >&5 | |
a848cd7e SC |
18217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18218 | (exit $ac_status); } && | |
3565d135 RR |
18219 | { ac_try='test -z "$ac_c_werror_flag" |
18220 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18222 | (eval $ac_try) 2>&5 | |
18223 | ac_status=$? | |
18224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18225 | (exit $ac_status); }; } && | |
18226 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18228 | (eval $ac_try) 2>&5 | |
18229 | ac_status=$? | |
18230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18231 | (exit $ac_status); }; }; then | |
18232 | ac_hi=$ac_mid; break | |
18233 | else | |
18234 | echo "$as_me: failed program was:" >&5 | |
18235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18236 | ||
18237 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18238 | if test $ac_lo -le $ac_mid; then |
18239 | ac_lo= ac_hi= | |
18240 | break | |
18241 | fi | |
18242 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18243 | fi |
ac1cb8d3 | 18244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18245 | done |
18246 | else | |
18247 | echo "$as_me: failed program was:" >&5 | |
18248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18249 | ||
18250 | cat >conftest.$ac_ext <<_ACEOF | |
18251 | /* confdefs.h. */ | |
18252 | _ACEOF | |
18253 | cat confdefs.h >>conftest.$ac_ext | |
18254 | cat >>conftest.$ac_ext <<_ACEOF | |
18255 | /* end confdefs.h. */ | |
18256 | $ac_includes_default | |
18257 | int | |
18258 | main () | |
18259 | { | |
18260 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
18261 | test_array [0] = 0 | |
18262 | ||
18263 | ; | |
18264 | return 0; | |
18265 | } | |
18266 | _ACEOF | |
18267 | rm -f conftest.$ac_objext | |
18268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18269 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18270 | ac_status=$? |
ac1cb8d3 VS |
18271 | grep -v '^ *+' conftest.er1 >conftest.err |
18272 | rm -f conftest.er1 | |
18273 | cat conftest.err >&5 | |
a848cd7e SC |
18274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18275 | (exit $ac_status); } && | |
3565d135 RR |
18276 | { ac_try='test -z "$ac_c_werror_flag" |
18277 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18279 | (eval $ac_try) 2>&5 | |
18280 | ac_status=$? | |
18281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18282 | (exit $ac_status); }; } && | |
18283 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18285 | (eval $ac_try) 2>&5 | |
18286 | ac_status=$? | |
18287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18288 | (exit $ac_status); }; }; then | |
18289 | ac_hi=-1 ac_mid=-1 | |
18290 | while :; do | |
18291 | cat >conftest.$ac_ext <<_ACEOF | |
18292 | /* confdefs.h. */ | |
18293 | _ACEOF | |
18294 | cat confdefs.h >>conftest.$ac_ext | |
18295 | cat >>conftest.$ac_ext <<_ACEOF | |
18296 | /* end confdefs.h. */ | |
18297 | $ac_includes_default | |
18298 | int | |
18299 | main () | |
18300 | { | |
18301 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
18302 | test_array [0] = 0 | |
18303 | ||
18304 | ; | |
18305 | return 0; | |
18306 | } | |
18307 | _ACEOF | |
18308 | rm -f conftest.$ac_objext | |
18309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18310 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18311 | ac_status=$? |
ac1cb8d3 VS |
18312 | grep -v '^ *+' conftest.er1 >conftest.err |
18313 | rm -f conftest.er1 | |
18314 | cat conftest.err >&5 | |
a848cd7e SC |
18315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18316 | (exit $ac_status); } && | |
3565d135 RR |
18317 | { ac_try='test -z "$ac_c_werror_flag" |
18318 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18320 | (eval $ac_try) 2>&5 | |
18321 | ac_status=$? | |
18322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18323 | (exit $ac_status); }; } && | |
18324 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18326 | (eval $ac_try) 2>&5 | |
18327 | ac_status=$? | |
18328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18329 | (exit $ac_status); }; }; then | |
18330 | ac_lo=$ac_mid; break | |
18331 | else | |
18332 | echo "$as_me: failed program was:" >&5 | |
18333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18334 | ||
18335 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18336 | if test $ac_mid -le $ac_hi; then |
18337 | ac_lo= ac_hi= | |
18338 | break | |
18339 | fi | |
18340 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18341 | fi |
ac1cb8d3 | 18342 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18343 | done |
18344 | else | |
18345 | echo "$as_me: failed program was:" >&5 | |
18346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18347 | ||
18348 | ac_lo= ac_hi= | |
18349 | fi | |
ac1cb8d3 | 18350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18351 | fi |
ac1cb8d3 | 18352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18353 | # Binary search between lo and hi bounds. |
18354 | while test "x$ac_lo" != "x$ac_hi"; do | |
18355 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18356 | cat >conftest.$ac_ext <<_ACEOF | |
18357 | /* confdefs.h. */ | |
18358 | _ACEOF | |
18359 | cat confdefs.h >>conftest.$ac_ext | |
18360 | cat >>conftest.$ac_ext <<_ACEOF | |
18361 | /* end confdefs.h. */ | |
18362 | $ac_includes_default | |
18363 | int | |
18364 | main () | |
18365 | { | |
18366 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18367 | test_array [0] = 0 | |
18368 | ||
18369 | ; | |
18370 | return 0; | |
18371 | } | |
18372 | _ACEOF | |
18373 | rm -f conftest.$ac_objext | |
18374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18375 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18376 | ac_status=$? |
ac1cb8d3 VS |
18377 | grep -v '^ *+' conftest.er1 >conftest.err |
18378 | rm -f conftest.er1 | |
18379 | cat conftest.err >&5 | |
a848cd7e SC |
18380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18381 | (exit $ac_status); } && | |
3565d135 RR |
18382 | { ac_try='test -z "$ac_c_werror_flag" |
18383 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18385 | (eval $ac_try) 2>&5 | |
18386 | ac_status=$? | |
18387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18388 | (exit $ac_status); }; } && | |
18389 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18391 | (eval $ac_try) 2>&5 | |
18392 | ac_status=$? | |
18393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18394 | (exit $ac_status); }; }; then | |
18395 | ac_hi=$ac_mid | |
18396 | else | |
18397 | echo "$as_me: failed program was:" >&5 | |
18398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18399 | ||
18400 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18401 | fi | |
ac1cb8d3 | 18402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18403 | done |
18404 | case $ac_lo in | |
18405 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
18406 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18407 | See \`config.log' for more details." >&5 | |
18408 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18409 | See \`config.log' for more details." >&2;} | |
18410 | { (exit 1); exit 1; }; } ;; | |
18411 | esac | |
18412 | else | |
18413 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
18414 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18415 | See \`config.log' for more details." >&5 | |
18416 | echo "$as_me: error: cannot run test program while cross compiling | |
18417 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18418 | { (exit 1); exit 1; }; } |
18419 | else | |
18420 | cat >conftest.$ac_ext <<_ACEOF | |
18421 | /* confdefs.h. */ | |
18422 | _ACEOF | |
18423 | cat confdefs.h >>conftest.$ac_ext | |
18424 | cat >>conftest.$ac_ext <<_ACEOF | |
18425 | /* end confdefs.h. */ | |
18426 | $ac_includes_default | |
18427 | long longval () { return (long) (sizeof (int)); } | |
18428 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
18429 | #include <stdio.h> | |
18430 | #include <stdlib.h> | |
18431 | int | |
18432 | main () | |
18433 | { | |
18434 | ||
18435 | FILE *f = fopen ("conftest.val", "w"); | |
18436 | if (! f) | |
18437 | exit (1); | |
18438 | if (((long) (sizeof (int))) < 0) | |
18439 | { | |
18440 | long i = longval (); | |
18441 | if (i != ((long) (sizeof (int)))) | |
18442 | exit (1); | |
18443 | fprintf (f, "%ld\n", i); | |
18444 | } | |
18445 | else | |
18446 | { | |
18447 | unsigned long i = ulongval (); | |
18448 | if (i != ((long) (sizeof (int)))) | |
18449 | exit (1); | |
18450 | fprintf (f, "%lu\n", i); | |
18451 | } | |
18452 | exit (ferror (f) || fclose (f) != 0); | |
18453 | ||
18454 | ; | |
18455 | return 0; | |
18456 | } | |
18457 | _ACEOF | |
18458 | rm -f conftest$ac_exeext | |
18459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18460 | (eval $ac_link) 2>&5 | |
18461 | ac_status=$? | |
18462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18463 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18465 | (eval $ac_try) 2>&5 | |
18466 | ac_status=$? | |
18467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18468 | (exit $ac_status); }; }; then | |
18469 | ac_cv_sizeof_int=`cat conftest.val` | |
18470 | else | |
18471 | echo "$as_me: program exited with status $ac_status" >&5 | |
18472 | echo "$as_me: failed program was:" >&5 | |
18473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18474 | ||
18475 | ( exit $ac_status ) | |
18476 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18477 | See \`config.log' for more details." >&5 | |
18478 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18479 | See \`config.log' for more details." >&2;} | |
18480 | { (exit 1); exit 1; }; } | |
18481 | fi | |
ac1cb8d3 | 18482 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18483 | fi |
18484 | fi | |
18485 | rm -f conftest.val | |
18486 | else | |
18487 | ac_cv_sizeof_int=0 | |
18488 | fi | |
18489 | fi | |
18490 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
18491 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
18492 | cat >>confdefs.h <<_ACEOF | |
18493 | #define SIZEOF_INT $ac_cv_sizeof_int | |
18494 | _ACEOF | |
18495 | ||
18496 | ||
18497 | echo "$as_me:$LINENO: checking for long" >&5 | |
18498 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
18499 | if test "${ac_cv_type_long+set}" = set; then | |
18500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18501 | else | |
18502 | cat >conftest.$ac_ext <<_ACEOF | |
18503 | /* confdefs.h. */ | |
18504 | _ACEOF | |
18505 | cat confdefs.h >>conftest.$ac_ext | |
18506 | cat >>conftest.$ac_ext <<_ACEOF | |
18507 | /* end confdefs.h. */ | |
18508 | $ac_includes_default | |
18509 | int | |
18510 | main () | |
18511 | { | |
18512 | if ((long *) 0) | |
18513 | return 0; | |
18514 | if (sizeof (long)) | |
18515 | return 0; | |
18516 | ; | |
18517 | return 0; | |
18518 | } | |
18519 | _ACEOF | |
18520 | rm -f conftest.$ac_objext | |
18521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18522 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18523 | ac_status=$? |
ac1cb8d3 VS |
18524 | grep -v '^ *+' conftest.er1 >conftest.err |
18525 | rm -f conftest.er1 | |
18526 | cat conftest.err >&5 | |
a848cd7e SC |
18527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18528 | (exit $ac_status); } && | |
3565d135 RR |
18529 | { ac_try='test -z "$ac_c_werror_flag" |
18530 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18532 | (eval $ac_try) 2>&5 | |
18533 | ac_status=$? | |
18534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18535 | (exit $ac_status); }; } && | |
18536 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18538 | (eval $ac_try) 2>&5 | |
18539 | ac_status=$? | |
18540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18541 | (exit $ac_status); }; }; then | |
18542 | ac_cv_type_long=yes | |
18543 | else | |
18544 | echo "$as_me: failed program was:" >&5 | |
18545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18546 | ||
18547 | ac_cv_type_long=no | |
18548 | fi | |
ac1cb8d3 | 18549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18550 | fi |
18551 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
18552 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
18553 | ||
18554 | echo "$as_me:$LINENO: checking size of long" >&5 | |
18555 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
18556 | if test "${ac_cv_sizeof_long+set}" = set; then | |
18557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18558 | else | |
18559 | if test "$ac_cv_type_long" = yes; then | |
18560 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18561 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18562 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18563 | # This bug is HP SR number 8606223364. | |
18564 | if test "$cross_compiling" = yes; then | |
18565 | # Depending upon the size, compute the lo and hi bounds. | |
18566 | cat >conftest.$ac_ext <<_ACEOF | |
18567 | /* confdefs.h. */ | |
18568 | _ACEOF | |
18569 | cat confdefs.h >>conftest.$ac_ext | |
18570 | cat >>conftest.$ac_ext <<_ACEOF | |
18571 | /* end confdefs.h. */ | |
18572 | $ac_includes_default | |
18573 | int | |
18574 | main () | |
18575 | { | |
18576 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
18577 | test_array [0] = 0 | |
18578 | ||
18579 | ; | |
18580 | return 0; | |
18581 | } | |
18582 | _ACEOF | |
18583 | rm -f conftest.$ac_objext | |
18584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18585 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18586 | ac_status=$? |
ac1cb8d3 VS |
18587 | grep -v '^ *+' conftest.er1 >conftest.err |
18588 | rm -f conftest.er1 | |
18589 | cat conftest.err >&5 | |
a848cd7e SC |
18590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18591 | (exit $ac_status); } && | |
3565d135 RR |
18592 | { ac_try='test -z "$ac_c_werror_flag" |
18593 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18595 | (eval $ac_try) 2>&5 | |
18596 | ac_status=$? | |
18597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18598 | (exit $ac_status); }; } && | |
18599 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18601 | (eval $ac_try) 2>&5 | |
18602 | ac_status=$? | |
18603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18604 | (exit $ac_status); }; }; then | |
18605 | ac_lo=0 ac_mid=0 | |
18606 | while :; do | |
18607 | cat >conftest.$ac_ext <<_ACEOF | |
18608 | /* confdefs.h. */ | |
18609 | _ACEOF | |
18610 | cat confdefs.h >>conftest.$ac_ext | |
18611 | cat >>conftest.$ac_ext <<_ACEOF | |
18612 | /* end confdefs.h. */ | |
18613 | $ac_includes_default | |
18614 | int | |
18615 | main () | |
18616 | { | |
18617 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18618 | test_array [0] = 0 | |
18619 | ||
18620 | ; | |
18621 | return 0; | |
18622 | } | |
18623 | _ACEOF | |
18624 | rm -f conftest.$ac_objext | |
18625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18626 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18627 | ac_status=$? |
ac1cb8d3 VS |
18628 | grep -v '^ *+' conftest.er1 >conftest.err |
18629 | rm -f conftest.er1 | |
18630 | cat conftest.err >&5 | |
a848cd7e SC |
18631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18632 | (exit $ac_status); } && | |
3565d135 RR |
18633 | { ac_try='test -z "$ac_c_werror_flag" |
18634 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18636 | (eval $ac_try) 2>&5 | |
18637 | ac_status=$? | |
18638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18639 | (exit $ac_status); }; } && | |
18640 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18642 | (eval $ac_try) 2>&5 | |
18643 | ac_status=$? | |
18644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18645 | (exit $ac_status); }; }; then | |
18646 | ac_hi=$ac_mid; break | |
18647 | else | |
18648 | echo "$as_me: failed program was:" >&5 | |
18649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18650 | ||
18651 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18652 | if test $ac_lo -le $ac_mid; then |
18653 | ac_lo= ac_hi= | |
18654 | break | |
18655 | fi | |
18656 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18657 | fi |
ac1cb8d3 | 18658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18659 | done |
18660 | else | |
18661 | echo "$as_me: failed program was:" >&5 | |
18662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18663 | ||
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 | int | |
18672 | main () | |
18673 | { | |
18674 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
18675 | test_array [0] = 0 | |
18676 | ||
18677 | ; | |
18678 | return 0; | |
18679 | } | |
18680 | _ACEOF | |
18681 | rm -f conftest.$ac_objext | |
18682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18683 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18684 | ac_status=$? |
ac1cb8d3 VS |
18685 | grep -v '^ *+' conftest.er1 >conftest.err |
18686 | rm -f conftest.er1 | |
18687 | cat conftest.err >&5 | |
a848cd7e SC |
18688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18689 | (exit $ac_status); } && | |
3565d135 RR |
18690 | { ac_try='test -z "$ac_c_werror_flag" |
18691 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18693 | (eval $ac_try) 2>&5 | |
18694 | ac_status=$? | |
18695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18696 | (exit $ac_status); }; } && | |
18697 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18699 | (eval $ac_try) 2>&5 | |
18700 | ac_status=$? | |
18701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18702 | (exit $ac_status); }; }; then | |
18703 | ac_hi=-1 ac_mid=-1 | |
18704 | while :; do | |
18705 | cat >conftest.$ac_ext <<_ACEOF | |
18706 | /* confdefs.h. */ | |
18707 | _ACEOF | |
18708 | cat confdefs.h >>conftest.$ac_ext | |
18709 | cat >>conftest.$ac_ext <<_ACEOF | |
18710 | /* end confdefs.h. */ | |
18711 | $ac_includes_default | |
18712 | int | |
18713 | main () | |
18714 | { | |
18715 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
18716 | test_array [0] = 0 | |
18717 | ||
18718 | ; | |
18719 | return 0; | |
18720 | } | |
18721 | _ACEOF | |
18722 | rm -f conftest.$ac_objext | |
18723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18724 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18725 | ac_status=$? |
ac1cb8d3 VS |
18726 | grep -v '^ *+' conftest.er1 >conftest.err |
18727 | rm -f conftest.er1 | |
18728 | cat conftest.err >&5 | |
a848cd7e SC |
18729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18730 | (exit $ac_status); } && | |
3565d135 RR |
18731 | { ac_try='test -z "$ac_c_werror_flag" |
18732 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18734 | (eval $ac_try) 2>&5 | |
18735 | ac_status=$? | |
18736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18737 | (exit $ac_status); }; } && | |
18738 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18740 | (eval $ac_try) 2>&5 | |
18741 | ac_status=$? | |
18742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18743 | (exit $ac_status); }; }; then | |
18744 | ac_lo=$ac_mid; break | |
18745 | else | |
18746 | echo "$as_me: failed program was:" >&5 | |
18747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18748 | ||
18749 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18750 | if test $ac_mid -le $ac_hi; then |
18751 | ac_lo= ac_hi= | |
18752 | break | |
18753 | fi | |
18754 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18755 | fi |
ac1cb8d3 | 18756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18757 | done |
18758 | else | |
18759 | echo "$as_me: failed program was:" >&5 | |
18760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18761 | ||
18762 | ac_lo= ac_hi= | |
18763 | fi | |
ac1cb8d3 | 18764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18765 | fi |
ac1cb8d3 | 18766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18767 | # Binary search between lo and hi bounds. |
18768 | while test "x$ac_lo" != "x$ac_hi"; do | |
18769 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18770 | cat >conftest.$ac_ext <<_ACEOF | |
18771 | /* confdefs.h. */ | |
18772 | _ACEOF | |
18773 | cat confdefs.h >>conftest.$ac_ext | |
18774 | cat >>conftest.$ac_ext <<_ACEOF | |
18775 | /* end confdefs.h. */ | |
18776 | $ac_includes_default | |
18777 | int | |
18778 | main () | |
18779 | { | |
18780 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18781 | test_array [0] = 0 | |
18782 | ||
18783 | ; | |
18784 | return 0; | |
18785 | } | |
18786 | _ACEOF | |
18787 | rm -f conftest.$ac_objext | |
18788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18789 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18790 | ac_status=$? |
ac1cb8d3 VS |
18791 | grep -v '^ *+' conftest.er1 >conftest.err |
18792 | rm -f conftest.er1 | |
18793 | cat conftest.err >&5 | |
a848cd7e SC |
18794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18795 | (exit $ac_status); } && | |
3565d135 RR |
18796 | { ac_try='test -z "$ac_c_werror_flag" |
18797 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18799 | (eval $ac_try) 2>&5 | |
18800 | ac_status=$? | |
18801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18802 | (exit $ac_status); }; } && | |
18803 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18805 | (eval $ac_try) 2>&5 | |
18806 | ac_status=$? | |
18807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18808 | (exit $ac_status); }; }; then | |
18809 | ac_hi=$ac_mid | |
18810 | else | |
18811 | echo "$as_me: failed program was:" >&5 | |
18812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18813 | ||
18814 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18815 | fi | |
ac1cb8d3 | 18816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18817 | done |
18818 | case $ac_lo in | |
18819 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
18820 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18821 | See \`config.log' for more details." >&5 | |
18822 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18823 | See \`config.log' for more details." >&2;} | |
18824 | { (exit 1); exit 1; }; } ;; | |
18825 | esac | |
18826 | else | |
18827 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
18828 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18829 | See \`config.log' for more details." >&5 | |
18830 | echo "$as_me: error: cannot run test program while cross compiling | |
18831 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18832 | { (exit 1); exit 1; }; } |
18833 | else | |
18834 | cat >conftest.$ac_ext <<_ACEOF | |
18835 | /* confdefs.h. */ | |
18836 | _ACEOF | |
18837 | cat confdefs.h >>conftest.$ac_ext | |
18838 | cat >>conftest.$ac_ext <<_ACEOF | |
18839 | /* end confdefs.h. */ | |
18840 | $ac_includes_default | |
18841 | long longval () { return (long) (sizeof (long)); } | |
18842 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
18843 | #include <stdio.h> | |
18844 | #include <stdlib.h> | |
18845 | int | |
18846 | main () | |
18847 | { | |
18848 | ||
18849 | FILE *f = fopen ("conftest.val", "w"); | |
18850 | if (! f) | |
18851 | exit (1); | |
18852 | if (((long) (sizeof (long))) < 0) | |
18853 | { | |
18854 | long i = longval (); | |
18855 | if (i != ((long) (sizeof (long)))) | |
18856 | exit (1); | |
18857 | fprintf (f, "%ld\n", i); | |
18858 | } | |
18859 | else | |
18860 | { | |
18861 | unsigned long i = ulongval (); | |
18862 | if (i != ((long) (sizeof (long)))) | |
18863 | exit (1); | |
18864 | fprintf (f, "%lu\n", i); | |
18865 | } | |
18866 | exit (ferror (f) || fclose (f) != 0); | |
18867 | ||
18868 | ; | |
18869 | return 0; | |
18870 | } | |
18871 | _ACEOF | |
18872 | rm -f conftest$ac_exeext | |
18873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18874 | (eval $ac_link) 2>&5 | |
18875 | ac_status=$? | |
18876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18877 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18879 | (eval $ac_try) 2>&5 | |
18880 | ac_status=$? | |
18881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18882 | (exit $ac_status); }; }; then | |
18883 | ac_cv_sizeof_long=`cat conftest.val` | |
18884 | else | |
18885 | echo "$as_me: program exited with status $ac_status" >&5 | |
18886 | echo "$as_me: failed program was:" >&5 | |
18887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18888 | ||
18889 | ( exit $ac_status ) | |
18890 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18891 | See \`config.log' for more details." >&5 | |
18892 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18893 | See \`config.log' for more details." >&2;} | |
18894 | { (exit 1); exit 1; }; } | |
18895 | fi | |
ac1cb8d3 | 18896 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18897 | fi |
18898 | fi | |
18899 | rm -f conftest.val | |
18900 | else | |
18901 | ac_cv_sizeof_long=0 | |
18902 | fi | |
18903 | fi | |
18904 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
18905 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
18906 | cat >>confdefs.h <<_ACEOF | |
18907 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
18908 | _ACEOF | |
18909 | ||
18910 | ||
18911 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
18912 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
18913 | if test "${ac_cv_type_size_t+set}" = set; then | |
18914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18915 | else | |
18916 | cat >conftest.$ac_ext <<_ACEOF | |
18917 | /* confdefs.h. */ | |
18918 | _ACEOF | |
18919 | cat confdefs.h >>conftest.$ac_ext | |
18920 | cat >>conftest.$ac_ext <<_ACEOF | |
18921 | /* end confdefs.h. */ | |
18922 | $ac_includes_default | |
18923 | int | |
18924 | main () | |
18925 | { | |
18926 | if ((size_t *) 0) | |
18927 | return 0; | |
18928 | if (sizeof (size_t)) | |
18929 | return 0; | |
18930 | ; | |
18931 | return 0; | |
18932 | } | |
18933 | _ACEOF | |
18934 | rm -f conftest.$ac_objext | |
18935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18936 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18937 | ac_status=$? |
ac1cb8d3 VS |
18938 | grep -v '^ *+' conftest.er1 >conftest.err |
18939 | rm -f conftest.er1 | |
18940 | cat conftest.err >&5 | |
a848cd7e SC |
18941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18942 | (exit $ac_status); } && | |
3565d135 RR |
18943 | { ac_try='test -z "$ac_c_werror_flag" |
18944 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18946 | (eval $ac_try) 2>&5 | |
18947 | ac_status=$? | |
18948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18949 | (exit $ac_status); }; } && | |
18950 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18952 | (eval $ac_try) 2>&5 | |
18953 | ac_status=$? | |
18954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18955 | (exit $ac_status); }; }; then | |
18956 | ac_cv_type_size_t=yes | |
18957 | else | |
18958 | echo "$as_me: failed program was:" >&5 | |
18959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18960 | ||
18961 | ac_cv_type_size_t=no | |
18962 | fi | |
ac1cb8d3 | 18963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18964 | fi |
18965 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
18966 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
18967 | ||
18968 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
18969 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
18970 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
18971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18972 | else | |
18973 | if test "$ac_cv_type_size_t" = yes; then | |
18974 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18975 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18976 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18977 | # This bug is HP SR number 8606223364. | |
18978 | if test "$cross_compiling" = yes; then | |
18979 | # Depending upon the size, compute the lo and hi bounds. | |
18980 | cat >conftest.$ac_ext <<_ACEOF | |
18981 | /* confdefs.h. */ | |
18982 | _ACEOF | |
18983 | cat confdefs.h >>conftest.$ac_ext | |
18984 | cat >>conftest.$ac_ext <<_ACEOF | |
18985 | /* end confdefs.h. */ | |
18986 | $ac_includes_default | |
18987 | int | |
18988 | main () | |
18989 | { | |
18990 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
18991 | test_array [0] = 0 | |
18992 | ||
18993 | ; | |
18994 | return 0; | |
18995 | } | |
18996 | _ACEOF | |
18997 | rm -f conftest.$ac_objext | |
18998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18999 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19000 | ac_status=$? |
ac1cb8d3 VS |
19001 | grep -v '^ *+' conftest.er1 >conftest.err |
19002 | rm -f conftest.er1 | |
19003 | cat conftest.err >&5 | |
a848cd7e SC |
19004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19005 | (exit $ac_status); } && | |
3565d135 RR |
19006 | { ac_try='test -z "$ac_c_werror_flag" |
19007 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19009 | (eval $ac_try) 2>&5 | |
19010 | ac_status=$? | |
19011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19012 | (exit $ac_status); }; } && | |
19013 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19015 | (eval $ac_try) 2>&5 | |
19016 | ac_status=$? | |
19017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19018 | (exit $ac_status); }; }; then | |
19019 | ac_lo=0 ac_mid=0 | |
19020 | while :; do | |
19021 | cat >conftest.$ac_ext <<_ACEOF | |
19022 | /* confdefs.h. */ | |
19023 | _ACEOF | |
19024 | cat confdefs.h >>conftest.$ac_ext | |
19025 | cat >>conftest.$ac_ext <<_ACEOF | |
19026 | /* end confdefs.h. */ | |
19027 | $ac_includes_default | |
19028 | int | |
19029 | main () | |
19030 | { | |
19031 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19032 | test_array [0] = 0 | |
19033 | ||
19034 | ; | |
19035 | return 0; | |
19036 | } | |
19037 | _ACEOF | |
19038 | rm -f conftest.$ac_objext | |
19039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19040 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19041 | ac_status=$? |
ac1cb8d3 VS |
19042 | grep -v '^ *+' conftest.er1 >conftest.err |
19043 | rm -f conftest.er1 | |
19044 | cat conftest.err >&5 | |
a848cd7e SC |
19045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19046 | (exit $ac_status); } && | |
3565d135 RR |
19047 | { ac_try='test -z "$ac_c_werror_flag" |
19048 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19050 | (eval $ac_try) 2>&5 | |
19051 | ac_status=$? | |
19052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19053 | (exit $ac_status); }; } && | |
19054 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19056 | (eval $ac_try) 2>&5 | |
19057 | ac_status=$? | |
19058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19059 | (exit $ac_status); }; }; then | |
19060 | ac_hi=$ac_mid; break | |
19061 | else | |
19062 | echo "$as_me: failed program was:" >&5 | |
19063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19064 | ||
19065 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19066 | if test $ac_lo -le $ac_mid; then |
19067 | ac_lo= ac_hi= | |
19068 | break | |
19069 | fi | |
19070 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19071 | fi |
ac1cb8d3 | 19072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19073 | done |
19074 | else | |
19075 | echo "$as_me: failed program was:" >&5 | |
19076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19077 | ||
19078 | cat >conftest.$ac_ext <<_ACEOF | |
19079 | /* confdefs.h. */ | |
19080 | _ACEOF | |
19081 | cat confdefs.h >>conftest.$ac_ext | |
19082 | cat >>conftest.$ac_ext <<_ACEOF | |
19083 | /* end confdefs.h. */ | |
19084 | $ac_includes_default | |
19085 | int | |
19086 | main () | |
19087 | { | |
19088 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
19089 | test_array [0] = 0 | |
19090 | ||
19091 | ; | |
19092 | return 0; | |
19093 | } | |
19094 | _ACEOF | |
19095 | rm -f conftest.$ac_objext | |
19096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19097 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19098 | ac_status=$? |
ac1cb8d3 VS |
19099 | grep -v '^ *+' conftest.er1 >conftest.err |
19100 | rm -f conftest.er1 | |
19101 | cat conftest.err >&5 | |
a848cd7e SC |
19102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19103 | (exit $ac_status); } && | |
3565d135 RR |
19104 | { ac_try='test -z "$ac_c_werror_flag" |
19105 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19107 | (eval $ac_try) 2>&5 | |
19108 | ac_status=$? | |
19109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19110 | (exit $ac_status); }; } && | |
19111 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19113 | (eval $ac_try) 2>&5 | |
19114 | ac_status=$? | |
19115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19116 | (exit $ac_status); }; }; then | |
19117 | ac_hi=-1 ac_mid=-1 | |
19118 | while :; do | |
19119 | cat >conftest.$ac_ext <<_ACEOF | |
19120 | /* confdefs.h. */ | |
19121 | _ACEOF | |
19122 | cat confdefs.h >>conftest.$ac_ext | |
19123 | cat >>conftest.$ac_ext <<_ACEOF | |
19124 | /* end confdefs.h. */ | |
19125 | $ac_includes_default | |
19126 | int | |
19127 | main () | |
19128 | { | |
19129 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
19130 | test_array [0] = 0 | |
19131 | ||
19132 | ; | |
19133 | return 0; | |
19134 | } | |
19135 | _ACEOF | |
19136 | rm -f conftest.$ac_objext | |
19137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19138 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19139 | ac_status=$? |
ac1cb8d3 VS |
19140 | grep -v '^ *+' conftest.er1 >conftest.err |
19141 | rm -f conftest.er1 | |
19142 | cat conftest.err >&5 | |
a848cd7e SC |
19143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19144 | (exit $ac_status); } && | |
3565d135 RR |
19145 | { ac_try='test -z "$ac_c_werror_flag" |
19146 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19148 | (eval $ac_try) 2>&5 | |
19149 | ac_status=$? | |
19150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19151 | (exit $ac_status); }; } && | |
19152 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19154 | (eval $ac_try) 2>&5 | |
19155 | ac_status=$? | |
19156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19157 | (exit $ac_status); }; }; then | |
19158 | ac_lo=$ac_mid; break | |
19159 | else | |
19160 | echo "$as_me: failed program was:" >&5 | |
19161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19162 | ||
19163 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19164 | if test $ac_mid -le $ac_hi; then |
19165 | ac_lo= ac_hi= | |
19166 | break | |
19167 | fi | |
19168 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19169 | fi |
ac1cb8d3 | 19170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19171 | done |
19172 | else | |
19173 | echo "$as_me: failed program was:" >&5 | |
19174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19175 | ||
19176 | ac_lo= ac_hi= | |
19177 | fi | |
ac1cb8d3 | 19178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19179 | fi |
ac1cb8d3 | 19180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19181 | # Binary search between lo and hi bounds. |
19182 | while test "x$ac_lo" != "x$ac_hi"; do | |
19183 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19184 | cat >conftest.$ac_ext <<_ACEOF | |
19185 | /* confdefs.h. */ | |
19186 | _ACEOF | |
19187 | cat confdefs.h >>conftest.$ac_ext | |
19188 | cat >>conftest.$ac_ext <<_ACEOF | |
19189 | /* end confdefs.h. */ | |
19190 | $ac_includes_default | |
19191 | int | |
19192 | main () | |
19193 | { | |
19194 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19195 | test_array [0] = 0 | |
19196 | ||
19197 | ; | |
19198 | return 0; | |
19199 | } | |
19200 | _ACEOF | |
19201 | rm -f conftest.$ac_objext | |
19202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19203 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19204 | ac_status=$? |
ac1cb8d3 VS |
19205 | grep -v '^ *+' conftest.er1 >conftest.err |
19206 | rm -f conftest.er1 | |
19207 | cat conftest.err >&5 | |
a848cd7e SC |
19208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19209 | (exit $ac_status); } && | |
3565d135 RR |
19210 | { ac_try='test -z "$ac_c_werror_flag" |
19211 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19213 | (eval $ac_try) 2>&5 | |
19214 | ac_status=$? | |
19215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19216 | (exit $ac_status); }; } && | |
19217 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19219 | (eval $ac_try) 2>&5 | |
19220 | ac_status=$? | |
19221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19222 | (exit $ac_status); }; }; then | |
19223 | ac_hi=$ac_mid | |
19224 | else | |
19225 | echo "$as_me: failed program was:" >&5 | |
19226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19227 | ||
19228 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19229 | fi | |
ac1cb8d3 | 19230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19231 | done |
19232 | case $ac_lo in | |
19233 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
19234 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19235 | See \`config.log' for more details." >&5 | |
19236 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19237 | See \`config.log' for more details." >&2;} | |
19238 | { (exit 1); exit 1; }; } ;; | |
19239 | esac | |
19240 | else | |
19241 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
19242 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19243 | See \`config.log' for more details." >&5 | |
19244 | echo "$as_me: error: cannot run test program while cross compiling | |
19245 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19246 | { (exit 1); exit 1; }; } |
19247 | else | |
19248 | cat >conftest.$ac_ext <<_ACEOF | |
19249 | /* confdefs.h. */ | |
19250 | _ACEOF | |
19251 | cat confdefs.h >>conftest.$ac_ext | |
19252 | cat >>conftest.$ac_ext <<_ACEOF | |
19253 | /* end confdefs.h. */ | |
19254 | $ac_includes_default | |
19255 | long longval () { return (long) (sizeof (size_t)); } | |
19256 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
19257 | #include <stdio.h> | |
19258 | #include <stdlib.h> | |
19259 | int | |
19260 | main () | |
19261 | { | |
19262 | ||
19263 | FILE *f = fopen ("conftest.val", "w"); | |
19264 | if (! f) | |
19265 | exit (1); | |
19266 | if (((long) (sizeof (size_t))) < 0) | |
19267 | { | |
19268 | long i = longval (); | |
19269 | if (i != ((long) (sizeof (size_t)))) | |
19270 | exit (1); | |
19271 | fprintf (f, "%ld\n", i); | |
19272 | } | |
19273 | else | |
19274 | { | |
19275 | unsigned long i = ulongval (); | |
19276 | if (i != ((long) (sizeof (size_t)))) | |
19277 | exit (1); | |
19278 | fprintf (f, "%lu\n", i); | |
19279 | } | |
19280 | exit (ferror (f) || fclose (f) != 0); | |
19281 | ||
19282 | ; | |
19283 | return 0; | |
19284 | } | |
19285 | _ACEOF | |
19286 | rm -f conftest$ac_exeext | |
19287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19288 | (eval $ac_link) 2>&5 | |
19289 | ac_status=$? | |
19290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19291 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19293 | (eval $ac_try) 2>&5 | |
19294 | ac_status=$? | |
19295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19296 | (exit $ac_status); }; }; then | |
19297 | ac_cv_sizeof_size_t=`cat conftest.val` | |
19298 | else | |
19299 | echo "$as_me: program exited with status $ac_status" >&5 | |
19300 | echo "$as_me: failed program was:" >&5 | |
19301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19302 | ||
19303 | ( exit $ac_status ) | |
19304 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19305 | See \`config.log' for more details." >&5 | |
19306 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19307 | See \`config.log' for more details." >&2;} | |
19308 | { (exit 1); exit 1; }; } | |
19309 | fi | |
ac1cb8d3 | 19310 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19311 | fi |
19312 | fi | |
19313 | rm -f conftest.val | |
19314 | else | |
19315 | ac_cv_sizeof_size_t=0 | |
19316 | fi | |
19317 | fi | |
19318 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
19319 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
19320 | cat >>confdefs.h <<_ACEOF | |
19321 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
19322 | _ACEOF | |
19323 | ||
19324 | ||
19325 | ||
19326 | case "${host}" in | |
19327 | arm-*-linux* ) | |
19328 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19329 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19330 | if test "${ac_cv_type_long_long+set}" = set; then | |
19331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19332 | else | |
19333 | cat >conftest.$ac_ext <<_ACEOF | |
19334 | /* confdefs.h. */ | |
19335 | _ACEOF | |
19336 | cat confdefs.h >>conftest.$ac_ext | |
19337 | cat >>conftest.$ac_ext <<_ACEOF | |
19338 | /* end confdefs.h. */ | |
19339 | $ac_includes_default | |
19340 | int | |
19341 | main () | |
19342 | { | |
19343 | if ((long long *) 0) | |
19344 | return 0; | |
19345 | if (sizeof (long long)) | |
19346 | return 0; | |
19347 | ; | |
19348 | return 0; | |
19349 | } | |
19350 | _ACEOF | |
19351 | rm -f conftest.$ac_objext | |
19352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19353 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19354 | ac_status=$? |
ac1cb8d3 VS |
19355 | grep -v '^ *+' conftest.er1 >conftest.err |
19356 | rm -f conftest.er1 | |
19357 | cat conftest.err >&5 | |
a848cd7e SC |
19358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19359 | (exit $ac_status); } && | |
3565d135 RR |
19360 | { ac_try='test -z "$ac_c_werror_flag" |
19361 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19363 | (eval $ac_try) 2>&5 | |
19364 | ac_status=$? | |
19365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19366 | (exit $ac_status); }; } && | |
19367 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19369 | (eval $ac_try) 2>&5 | |
19370 | ac_status=$? | |
19371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19372 | (exit $ac_status); }; }; then | |
19373 | ac_cv_type_long_long=yes | |
19374 | else | |
19375 | echo "$as_me: failed program was:" >&5 | |
19376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19377 | ||
19378 | ac_cv_type_long_long=no | |
19379 | fi | |
ac1cb8d3 | 19380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19381 | fi |
19382 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19383 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19384 | ||
19385 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19386 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19387 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19389 | else | |
19390 | if test "$ac_cv_type_long_long" = yes; then | |
19391 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19392 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19393 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19394 | # This bug is HP SR number 8606223364. | |
19395 | if test "$cross_compiling" = yes; then | |
19396 | # Depending upon the size, compute the lo and hi bounds. | |
19397 | cat >conftest.$ac_ext <<_ACEOF | |
19398 | /* confdefs.h. */ | |
19399 | _ACEOF | |
19400 | cat confdefs.h >>conftest.$ac_ext | |
19401 | cat >>conftest.$ac_ext <<_ACEOF | |
19402 | /* end confdefs.h. */ | |
19403 | $ac_includes_default | |
19404 | int | |
19405 | main () | |
19406 | { | |
19407 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19408 | test_array [0] = 0 | |
19409 | ||
19410 | ; | |
19411 | return 0; | |
19412 | } | |
19413 | _ACEOF | |
19414 | rm -f conftest.$ac_objext | |
19415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19416 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19417 | ac_status=$? |
ac1cb8d3 VS |
19418 | grep -v '^ *+' conftest.er1 >conftest.err |
19419 | rm -f conftest.er1 | |
19420 | cat conftest.err >&5 | |
a848cd7e SC |
19421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19422 | (exit $ac_status); } && | |
3565d135 RR |
19423 | { ac_try='test -z "$ac_c_werror_flag" |
19424 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19426 | (eval $ac_try) 2>&5 | |
19427 | ac_status=$? | |
19428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19429 | (exit $ac_status); }; } && | |
19430 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19432 | (eval $ac_try) 2>&5 | |
19433 | ac_status=$? | |
19434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19435 | (exit $ac_status); }; }; then | |
19436 | ac_lo=0 ac_mid=0 | |
19437 | while :; do | |
19438 | cat >conftest.$ac_ext <<_ACEOF | |
19439 | /* confdefs.h. */ | |
19440 | _ACEOF | |
19441 | cat confdefs.h >>conftest.$ac_ext | |
19442 | cat >>conftest.$ac_ext <<_ACEOF | |
19443 | /* end confdefs.h. */ | |
19444 | $ac_includes_default | |
19445 | int | |
19446 | main () | |
19447 | { | |
19448 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19449 | test_array [0] = 0 | |
19450 | ||
19451 | ; | |
19452 | return 0; | |
19453 | } | |
19454 | _ACEOF | |
19455 | rm -f conftest.$ac_objext | |
19456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19457 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19458 | ac_status=$? |
ac1cb8d3 VS |
19459 | grep -v '^ *+' conftest.er1 >conftest.err |
19460 | rm -f conftest.er1 | |
19461 | cat conftest.err >&5 | |
a848cd7e SC |
19462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19463 | (exit $ac_status); } && | |
3565d135 RR |
19464 | { ac_try='test -z "$ac_c_werror_flag" |
19465 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19467 | (eval $ac_try) 2>&5 | |
19468 | ac_status=$? | |
19469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19470 | (exit $ac_status); }; } && | |
19471 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19473 | (eval $ac_try) 2>&5 | |
19474 | ac_status=$? | |
19475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19476 | (exit $ac_status); }; }; then | |
19477 | ac_hi=$ac_mid; break | |
19478 | else | |
19479 | echo "$as_me: failed program was:" >&5 | |
19480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19481 | ||
19482 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19483 | if test $ac_lo -le $ac_mid; then |
19484 | ac_lo= ac_hi= | |
19485 | break | |
19486 | fi | |
19487 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19488 | fi |
ac1cb8d3 | 19489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19490 | done |
19491 | else | |
19492 | echo "$as_me: failed program was:" >&5 | |
19493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19494 | ||
19495 | cat >conftest.$ac_ext <<_ACEOF | |
19496 | /* confdefs.h. */ | |
19497 | _ACEOF | |
19498 | cat confdefs.h >>conftest.$ac_ext | |
19499 | cat >>conftest.$ac_ext <<_ACEOF | |
19500 | /* end confdefs.h. */ | |
19501 | $ac_includes_default | |
19502 | int | |
19503 | main () | |
19504 | { | |
19505 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19506 | test_array [0] = 0 | |
19507 | ||
19508 | ; | |
19509 | return 0; | |
19510 | } | |
19511 | _ACEOF | |
19512 | rm -f conftest.$ac_objext | |
19513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19514 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19515 | ac_status=$? |
ac1cb8d3 VS |
19516 | grep -v '^ *+' conftest.er1 >conftest.err |
19517 | rm -f conftest.er1 | |
19518 | cat conftest.err >&5 | |
a848cd7e SC |
19519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19520 | (exit $ac_status); } && | |
3565d135 RR |
19521 | { ac_try='test -z "$ac_c_werror_flag" |
19522 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19524 | (eval $ac_try) 2>&5 | |
19525 | ac_status=$? | |
19526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19527 | (exit $ac_status); }; } && | |
19528 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19530 | (eval $ac_try) 2>&5 | |
19531 | ac_status=$? | |
19532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19533 | (exit $ac_status); }; }; then | |
19534 | ac_hi=-1 ac_mid=-1 | |
19535 | while :; do | |
19536 | cat >conftest.$ac_ext <<_ACEOF | |
19537 | /* confdefs.h. */ | |
19538 | _ACEOF | |
19539 | cat confdefs.h >>conftest.$ac_ext | |
19540 | cat >>conftest.$ac_ext <<_ACEOF | |
19541 | /* end confdefs.h. */ | |
19542 | $ac_includes_default | |
19543 | int | |
19544 | main () | |
19545 | { | |
19546 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19547 | test_array [0] = 0 | |
19548 | ||
19549 | ; | |
19550 | return 0; | |
19551 | } | |
19552 | _ACEOF | |
19553 | rm -f conftest.$ac_objext | |
19554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19555 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19556 | ac_status=$? |
ac1cb8d3 VS |
19557 | grep -v '^ *+' conftest.er1 >conftest.err |
19558 | rm -f conftest.er1 | |
19559 | cat conftest.err >&5 | |
a848cd7e SC |
19560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19561 | (exit $ac_status); } && | |
3565d135 RR |
19562 | { ac_try='test -z "$ac_c_werror_flag" |
19563 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19565 | (eval $ac_try) 2>&5 | |
19566 | ac_status=$? | |
19567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19568 | (exit $ac_status); }; } && | |
19569 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19571 | (eval $ac_try) 2>&5 | |
19572 | ac_status=$? | |
19573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19574 | (exit $ac_status); }; }; then | |
19575 | ac_lo=$ac_mid; break | |
19576 | else | |
19577 | echo "$as_me: failed program was:" >&5 | |
19578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19579 | ||
19580 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19581 | if test $ac_mid -le $ac_hi; then |
19582 | ac_lo= ac_hi= | |
19583 | break | |
19584 | fi | |
19585 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19586 | fi |
ac1cb8d3 | 19587 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19588 | done |
19589 | else | |
19590 | echo "$as_me: failed program was:" >&5 | |
19591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19592 | ||
19593 | ac_lo= ac_hi= | |
19594 | fi | |
ac1cb8d3 | 19595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19596 | fi |
ac1cb8d3 | 19597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19598 | # Binary search between lo and hi bounds. |
19599 | while test "x$ac_lo" != "x$ac_hi"; do | |
19600 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19601 | cat >conftest.$ac_ext <<_ACEOF | |
19602 | /* confdefs.h. */ | |
19603 | _ACEOF | |
19604 | cat confdefs.h >>conftest.$ac_ext | |
19605 | cat >>conftest.$ac_ext <<_ACEOF | |
19606 | /* end confdefs.h. */ | |
19607 | $ac_includes_default | |
19608 | int | |
19609 | main () | |
19610 | { | |
19611 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19612 | test_array [0] = 0 | |
19613 | ||
19614 | ; | |
19615 | return 0; | |
19616 | } | |
19617 | _ACEOF | |
19618 | rm -f conftest.$ac_objext | |
19619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19620 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19621 | ac_status=$? |
ac1cb8d3 VS |
19622 | grep -v '^ *+' conftest.er1 >conftest.err |
19623 | rm -f conftest.er1 | |
19624 | cat conftest.err >&5 | |
a848cd7e SC |
19625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19626 | (exit $ac_status); } && | |
3565d135 RR |
19627 | { ac_try='test -z "$ac_c_werror_flag" |
19628 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19630 | (eval $ac_try) 2>&5 | |
19631 | ac_status=$? | |
19632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19633 | (exit $ac_status); }; } && | |
19634 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19636 | (eval $ac_try) 2>&5 | |
19637 | ac_status=$? | |
19638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19639 | (exit $ac_status); }; }; then | |
19640 | ac_hi=$ac_mid | |
19641 | else | |
19642 | echo "$as_me: failed program was:" >&5 | |
19643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19644 | ||
19645 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19646 | fi | |
ac1cb8d3 | 19647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19648 | done |
19649 | case $ac_lo in | |
19650 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19651 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19652 | See \`config.log' for more details." >&5 | |
19653 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19654 | See \`config.log' for more details." >&2;} | |
19655 | { (exit 1); exit 1; }; } ;; | |
19656 | esac | |
19657 | else | |
19658 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
19659 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19660 | See \`config.log' for more details." >&5 | |
19661 | echo "$as_me: error: cannot run test program while cross compiling | |
19662 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19663 | { (exit 1); exit 1; }; } |
19664 | else | |
19665 | cat >conftest.$ac_ext <<_ACEOF | |
19666 | /* confdefs.h. */ | |
19667 | _ACEOF | |
19668 | cat confdefs.h >>conftest.$ac_ext | |
19669 | cat >>conftest.$ac_ext <<_ACEOF | |
19670 | /* end confdefs.h. */ | |
19671 | $ac_includes_default | |
19672 | long longval () { return (long) (sizeof (long long)); } | |
19673 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19674 | #include <stdio.h> | |
19675 | #include <stdlib.h> | |
19676 | int | |
19677 | main () | |
19678 | { | |
19679 | ||
19680 | FILE *f = fopen ("conftest.val", "w"); | |
19681 | if (! f) | |
19682 | exit (1); | |
19683 | if (((long) (sizeof (long long))) < 0) | |
19684 | { | |
19685 | long i = longval (); | |
19686 | if (i != ((long) (sizeof (long long)))) | |
19687 | exit (1); | |
19688 | fprintf (f, "%ld\n", i); | |
19689 | } | |
19690 | else | |
19691 | { | |
19692 | unsigned long i = ulongval (); | |
19693 | if (i != ((long) (sizeof (long long)))) | |
19694 | exit (1); | |
19695 | fprintf (f, "%lu\n", i); | |
19696 | } | |
19697 | exit (ferror (f) || fclose (f) != 0); | |
19698 | ||
19699 | ; | |
19700 | return 0; | |
19701 | } | |
19702 | _ACEOF | |
19703 | rm -f conftest$ac_exeext | |
19704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19705 | (eval $ac_link) 2>&5 | |
19706 | ac_status=$? | |
19707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19708 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19710 | (eval $ac_try) 2>&5 | |
19711 | ac_status=$? | |
19712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19713 | (exit $ac_status); }; }; then | |
19714 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19715 | else | |
19716 | echo "$as_me: program exited with status $ac_status" >&5 | |
19717 | echo "$as_me: failed program was:" >&5 | |
19718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19719 | ||
19720 | ( exit $ac_status ) | |
19721 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19722 | See \`config.log' for more details." >&5 | |
19723 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19724 | See \`config.log' for more details." >&2;} | |
19725 | { (exit 1); exit 1; }; } | |
19726 | fi | |
ac1cb8d3 | 19727 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19728 | fi |
19729 | fi | |
19730 | rm -f conftest.val | |
19731 | else | |
19732 | ac_cv_sizeof_long_long=0 | |
19733 | fi | |
19734 | fi | |
19735 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19736 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19737 | cat >>confdefs.h <<_ACEOF | |
19738 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19739 | _ACEOF | |
19740 | ||
19741 | ||
19742 | ;; | |
19743 | *-hp-hpux* ) | |
19744 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19745 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19746 | if test "${ac_cv_type_long_long+set}" = set; then | |
19747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19748 | else | |
19749 | cat >conftest.$ac_ext <<_ACEOF | |
19750 | /* confdefs.h. */ | |
19751 | _ACEOF | |
19752 | cat confdefs.h >>conftest.$ac_ext | |
19753 | cat >>conftest.$ac_ext <<_ACEOF | |
19754 | /* end confdefs.h. */ | |
19755 | $ac_includes_default | |
19756 | int | |
19757 | main () | |
19758 | { | |
19759 | if ((long long *) 0) | |
19760 | return 0; | |
19761 | if (sizeof (long long)) | |
19762 | return 0; | |
19763 | ; | |
19764 | return 0; | |
19765 | } | |
19766 | _ACEOF | |
19767 | rm -f conftest.$ac_objext | |
19768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19769 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19770 | ac_status=$? |
ac1cb8d3 VS |
19771 | grep -v '^ *+' conftest.er1 >conftest.err |
19772 | rm -f conftest.er1 | |
19773 | cat conftest.err >&5 | |
a848cd7e SC |
19774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19775 | (exit $ac_status); } && | |
3565d135 RR |
19776 | { ac_try='test -z "$ac_c_werror_flag" |
19777 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19779 | (eval $ac_try) 2>&5 | |
19780 | ac_status=$? | |
19781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19782 | (exit $ac_status); }; } && | |
19783 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19785 | (eval $ac_try) 2>&5 | |
19786 | ac_status=$? | |
19787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19788 | (exit $ac_status); }; }; then | |
19789 | ac_cv_type_long_long=yes | |
19790 | else | |
19791 | echo "$as_me: failed program was:" >&5 | |
19792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19793 | ||
19794 | ac_cv_type_long_long=no | |
19795 | fi | |
ac1cb8d3 | 19796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19797 | fi |
19798 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19799 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19800 | ||
19801 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19802 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19803 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19805 | else | |
19806 | if test "$ac_cv_type_long_long" = yes; then | |
19807 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19808 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19809 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19810 | # This bug is HP SR number 8606223364. | |
19811 | if test "$cross_compiling" = yes; then | |
19812 | # Depending upon the size, compute the lo and hi bounds. | |
19813 | cat >conftest.$ac_ext <<_ACEOF | |
19814 | /* confdefs.h. */ | |
19815 | _ACEOF | |
19816 | cat confdefs.h >>conftest.$ac_ext | |
19817 | cat >>conftest.$ac_ext <<_ACEOF | |
19818 | /* end confdefs.h. */ | |
19819 | $ac_includes_default | |
19820 | int | |
19821 | main () | |
19822 | { | |
19823 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19824 | test_array [0] = 0 | |
19825 | ||
19826 | ; | |
19827 | return 0; | |
19828 | } | |
19829 | _ACEOF | |
19830 | rm -f conftest.$ac_objext | |
19831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19832 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19833 | ac_status=$? |
ac1cb8d3 VS |
19834 | grep -v '^ *+' conftest.er1 >conftest.err |
19835 | rm -f conftest.er1 | |
19836 | cat conftest.err >&5 | |
a848cd7e SC |
19837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19838 | (exit $ac_status); } && | |
3565d135 RR |
19839 | { ac_try='test -z "$ac_c_werror_flag" |
19840 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19842 | (eval $ac_try) 2>&5 | |
19843 | ac_status=$? | |
19844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19845 | (exit $ac_status); }; } && | |
19846 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19848 | (eval $ac_try) 2>&5 | |
19849 | ac_status=$? | |
19850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19851 | (exit $ac_status); }; }; then | |
19852 | ac_lo=0 ac_mid=0 | |
19853 | while :; do | |
19854 | cat >conftest.$ac_ext <<_ACEOF | |
19855 | /* confdefs.h. */ | |
19856 | _ACEOF | |
19857 | cat confdefs.h >>conftest.$ac_ext | |
19858 | cat >>conftest.$ac_ext <<_ACEOF | |
19859 | /* end confdefs.h. */ | |
19860 | $ac_includes_default | |
19861 | int | |
19862 | main () | |
19863 | { | |
19864 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19865 | test_array [0] = 0 | |
19866 | ||
19867 | ; | |
19868 | return 0; | |
19869 | } | |
19870 | _ACEOF | |
19871 | rm -f conftest.$ac_objext | |
19872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19873 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19874 | ac_status=$? |
ac1cb8d3 VS |
19875 | grep -v '^ *+' conftest.er1 >conftest.err |
19876 | rm -f conftest.er1 | |
19877 | cat conftest.err >&5 | |
a848cd7e SC |
19878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19879 | (exit $ac_status); } && | |
3565d135 RR |
19880 | { ac_try='test -z "$ac_c_werror_flag" |
19881 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19883 | (eval $ac_try) 2>&5 | |
19884 | ac_status=$? | |
19885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19886 | (exit $ac_status); }; } && | |
19887 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19889 | (eval $ac_try) 2>&5 | |
19890 | ac_status=$? | |
19891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19892 | (exit $ac_status); }; }; then | |
19893 | ac_hi=$ac_mid; break | |
19894 | else | |
19895 | echo "$as_me: failed program was:" >&5 | |
19896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19897 | ||
19898 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19899 | if test $ac_lo -le $ac_mid; then |
19900 | ac_lo= ac_hi= | |
19901 | break | |
19902 | fi | |
19903 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19904 | fi |
ac1cb8d3 | 19905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19906 | done |
19907 | else | |
19908 | echo "$as_me: failed program was:" >&5 | |
19909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19910 | ||
19911 | cat >conftest.$ac_ext <<_ACEOF | |
19912 | /* confdefs.h. */ | |
19913 | _ACEOF | |
19914 | cat confdefs.h >>conftest.$ac_ext | |
19915 | cat >>conftest.$ac_ext <<_ACEOF | |
19916 | /* end confdefs.h. */ | |
19917 | $ac_includes_default | |
19918 | int | |
19919 | main () | |
19920 | { | |
19921 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19922 | test_array [0] = 0 | |
19923 | ||
19924 | ; | |
19925 | return 0; | |
19926 | } | |
19927 | _ACEOF | |
19928 | rm -f conftest.$ac_objext | |
19929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19930 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19931 | ac_status=$? |
ac1cb8d3 VS |
19932 | grep -v '^ *+' conftest.er1 >conftest.err |
19933 | rm -f conftest.er1 | |
19934 | cat conftest.err >&5 | |
a848cd7e SC |
19935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19936 | (exit $ac_status); } && | |
3565d135 RR |
19937 | { ac_try='test -z "$ac_c_werror_flag" |
19938 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19940 | (eval $ac_try) 2>&5 | |
19941 | ac_status=$? | |
19942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19943 | (exit $ac_status); }; } && | |
19944 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19946 | (eval $ac_try) 2>&5 | |
19947 | ac_status=$? | |
19948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19949 | (exit $ac_status); }; }; then | |
19950 | ac_hi=-1 ac_mid=-1 | |
19951 | while :; do | |
19952 | cat >conftest.$ac_ext <<_ACEOF | |
19953 | /* confdefs.h. */ | |
19954 | _ACEOF | |
19955 | cat confdefs.h >>conftest.$ac_ext | |
19956 | cat >>conftest.$ac_ext <<_ACEOF | |
19957 | /* end confdefs.h. */ | |
19958 | $ac_includes_default | |
19959 | int | |
19960 | main () | |
19961 | { | |
19962 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19963 | test_array [0] = 0 | |
19964 | ||
19965 | ; | |
19966 | return 0; | |
19967 | } | |
19968 | _ACEOF | |
19969 | rm -f conftest.$ac_objext | |
19970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19971 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19972 | ac_status=$? |
ac1cb8d3 VS |
19973 | grep -v '^ *+' conftest.er1 >conftest.err |
19974 | rm -f conftest.er1 | |
19975 | cat conftest.err >&5 | |
a848cd7e SC |
19976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19977 | (exit $ac_status); } && | |
3565d135 RR |
19978 | { ac_try='test -z "$ac_c_werror_flag" |
19979 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19981 | (eval $ac_try) 2>&5 | |
19982 | ac_status=$? | |
19983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19984 | (exit $ac_status); }; } && | |
19985 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19987 | (eval $ac_try) 2>&5 | |
19988 | ac_status=$? | |
19989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19990 | (exit $ac_status); }; }; then | |
19991 | ac_lo=$ac_mid; break | |
19992 | else | |
19993 | echo "$as_me: failed program was:" >&5 | |
19994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19995 | ||
19996 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19997 | if test $ac_mid -le $ac_hi; then |
19998 | ac_lo= ac_hi= | |
19999 | break | |
20000 | fi | |
20001 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20002 | fi |
ac1cb8d3 | 20003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20004 | done |
20005 | else | |
20006 | echo "$as_me: failed program was:" >&5 | |
20007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20008 | ||
20009 | ac_lo= ac_hi= | |
20010 | fi | |
ac1cb8d3 | 20011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20012 | fi |
ac1cb8d3 | 20013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20014 | # Binary search between lo and hi bounds. |
20015 | while test "x$ac_lo" != "x$ac_hi"; do | |
20016 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20017 | cat >conftest.$ac_ext <<_ACEOF | |
20018 | /* confdefs.h. */ | |
20019 | _ACEOF | |
20020 | cat confdefs.h >>conftest.$ac_ext | |
20021 | cat >>conftest.$ac_ext <<_ACEOF | |
20022 | /* end confdefs.h. */ | |
20023 | $ac_includes_default | |
20024 | int | |
20025 | main () | |
20026 | { | |
20027 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20028 | test_array [0] = 0 | |
20029 | ||
20030 | ; | |
20031 | return 0; | |
20032 | } | |
20033 | _ACEOF | |
20034 | rm -f conftest.$ac_objext | |
20035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20036 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20037 | ac_status=$? |
ac1cb8d3 VS |
20038 | grep -v '^ *+' conftest.er1 >conftest.err |
20039 | rm -f conftest.er1 | |
20040 | cat conftest.err >&5 | |
a848cd7e SC |
20041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20042 | (exit $ac_status); } && | |
3565d135 RR |
20043 | { ac_try='test -z "$ac_c_werror_flag" |
20044 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20046 | (eval $ac_try) 2>&5 | |
20047 | ac_status=$? | |
20048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20049 | (exit $ac_status); }; } && | |
20050 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20052 | (eval $ac_try) 2>&5 | |
20053 | ac_status=$? | |
20054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20055 | (exit $ac_status); }; }; then | |
20056 | ac_hi=$ac_mid | |
20057 | else | |
20058 | echo "$as_me: failed program was:" >&5 | |
20059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20060 | ||
20061 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20062 | fi | |
ac1cb8d3 | 20063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20064 | done |
20065 | case $ac_lo in | |
20066 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20067 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20068 | See \`config.log' for more details." >&5 | |
20069 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20070 | See \`config.log' for more details." >&2;} | |
20071 | { (exit 1); exit 1; }; } ;; | |
20072 | esac | |
20073 | else | |
20074 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
20075 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20076 | See \`config.log' for more details." >&5 | |
20077 | echo "$as_me: error: cannot run test program while cross compiling | |
20078 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
20079 | { (exit 1); exit 1; }; } |
20080 | else | |
20081 | cat >conftest.$ac_ext <<_ACEOF | |
20082 | /* confdefs.h. */ | |
20083 | _ACEOF | |
20084 | cat confdefs.h >>conftest.$ac_ext | |
20085 | cat >>conftest.$ac_ext <<_ACEOF | |
20086 | /* end confdefs.h. */ | |
20087 | $ac_includes_default | |
20088 | long longval () { return (long) (sizeof (long long)); } | |
20089 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20090 | #include <stdio.h> | |
20091 | #include <stdlib.h> | |
20092 | int | |
20093 | main () | |
20094 | { | |
20095 | ||
20096 | FILE *f = fopen ("conftest.val", "w"); | |
20097 | if (! f) | |
20098 | exit (1); | |
20099 | if (((long) (sizeof (long long))) < 0) | |
20100 | { | |
20101 | long i = longval (); | |
20102 | if (i != ((long) (sizeof (long long)))) | |
20103 | exit (1); | |
20104 | fprintf (f, "%ld\n", i); | |
20105 | } | |
20106 | else | |
20107 | { | |
20108 | unsigned long i = ulongval (); | |
20109 | if (i != ((long) (sizeof (long long)))) | |
20110 | exit (1); | |
20111 | fprintf (f, "%lu\n", i); | |
20112 | } | |
20113 | exit (ferror (f) || fclose (f) != 0); | |
20114 | ||
20115 | ; | |
20116 | return 0; | |
20117 | } | |
20118 | _ACEOF | |
20119 | rm -f conftest$ac_exeext | |
20120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20121 | (eval $ac_link) 2>&5 | |
20122 | ac_status=$? | |
20123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20124 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20126 | (eval $ac_try) 2>&5 | |
20127 | ac_status=$? | |
20128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20129 | (exit $ac_status); }; }; then | |
20130 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20131 | else | |
20132 | echo "$as_me: program exited with status $ac_status" >&5 | |
20133 | echo "$as_me: failed program was:" >&5 | |
20134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20135 | ||
20136 | ( exit $ac_status ) | |
20137 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20138 | See \`config.log' for more details." >&5 | |
20139 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20140 | See \`config.log' for more details." >&2;} | |
20141 | { (exit 1); exit 1; }; } | |
20142 | fi | |
ac1cb8d3 | 20143 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20144 | fi |
20145 | fi | |
20146 | rm -f conftest.val | |
20147 | else | |
20148 | ac_cv_sizeof_long_long=0 | |
20149 | fi | |
20150 | fi | |
20151 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20152 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20153 | cat >>confdefs.h <<_ACEOF | |
20154 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20155 | _ACEOF | |
20156 | ||
20157 | ||
20158 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
c92ad099 | 20159 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" |
a848cd7e SC |
20160 | fi |
20161 | ;; | |
20162 | * ) | |
20163 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20164 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20165 | if test "${ac_cv_type_long_long+set}" = set; then | |
20166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20167 | else | |
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 | $ac_includes_default | |
20175 | int | |
20176 | main () | |
20177 | { | |
20178 | if ((long long *) 0) | |
20179 | return 0; | |
20180 | if (sizeof (long long)) | |
20181 | return 0; | |
20182 | ; | |
20183 | return 0; | |
20184 | } | |
20185 | _ACEOF | |
20186 | rm -f conftest.$ac_objext | |
20187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20188 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20189 | ac_status=$? |
ac1cb8d3 VS |
20190 | grep -v '^ *+' conftest.er1 >conftest.err |
20191 | rm -f conftest.er1 | |
20192 | cat conftest.err >&5 | |
a848cd7e SC |
20193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20194 | (exit $ac_status); } && | |
3565d135 RR |
20195 | { ac_try='test -z "$ac_c_werror_flag" |
20196 | || 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 | ac_cv_type_long_long=yes | |
20209 | else | |
20210 | echo "$as_me: failed program was:" >&5 | |
20211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20212 | ||
20213 | ac_cv_type_long_long=no | |
20214 | fi | |
ac1cb8d3 | 20215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20216 | fi |
20217 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20218 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20219 | ||
20220 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20221 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20222 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20224 | else | |
20225 | if test "$ac_cv_type_long_long" = yes; then | |
20226 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20227 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20228 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20229 | # This bug is HP SR number 8606223364. | |
20230 | if test "$cross_compiling" = yes; then | |
20231 | # Depending upon the size, compute the lo and hi bounds. | |
20232 | cat >conftest.$ac_ext <<_ACEOF | |
20233 | /* confdefs.h. */ | |
20234 | _ACEOF | |
20235 | cat confdefs.h >>conftest.$ac_ext | |
20236 | cat >>conftest.$ac_ext <<_ACEOF | |
20237 | /* end confdefs.h. */ | |
20238 | $ac_includes_default | |
20239 | int | |
20240 | main () | |
20241 | { | |
20242 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20243 | test_array [0] = 0 | |
20244 | ||
20245 | ; | |
20246 | return 0; | |
20247 | } | |
20248 | _ACEOF | |
20249 | rm -f conftest.$ac_objext | |
20250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20251 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20252 | ac_status=$? |
ac1cb8d3 VS |
20253 | grep -v '^ *+' conftest.er1 >conftest.err |
20254 | rm -f conftest.er1 | |
20255 | cat conftest.err >&5 | |
a848cd7e SC |
20256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20257 | (exit $ac_status); } && | |
3565d135 RR |
20258 | { ac_try='test -z "$ac_c_werror_flag" |
20259 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20261 | (eval $ac_try) 2>&5 | |
20262 | ac_status=$? | |
20263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20264 | (exit $ac_status); }; } && | |
20265 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20267 | (eval $ac_try) 2>&5 | |
20268 | ac_status=$? | |
20269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20270 | (exit $ac_status); }; }; then | |
20271 | ac_lo=0 ac_mid=0 | |
20272 | while :; do | |
20273 | cat >conftest.$ac_ext <<_ACEOF | |
20274 | /* confdefs.h. */ | |
20275 | _ACEOF | |
20276 | cat confdefs.h >>conftest.$ac_ext | |
20277 | cat >>conftest.$ac_ext <<_ACEOF | |
20278 | /* end confdefs.h. */ | |
20279 | $ac_includes_default | |
20280 | int | |
20281 | main () | |
20282 | { | |
20283 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20284 | test_array [0] = 0 | |
20285 | ||
20286 | ; | |
20287 | return 0; | |
20288 | } | |
20289 | _ACEOF | |
20290 | rm -f conftest.$ac_objext | |
20291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20292 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20293 | ac_status=$? |
ac1cb8d3 VS |
20294 | grep -v '^ *+' conftest.er1 >conftest.err |
20295 | rm -f conftest.er1 | |
20296 | cat conftest.err >&5 | |
a848cd7e SC |
20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20298 | (exit $ac_status); } && | |
3565d135 RR |
20299 | { ac_try='test -z "$ac_c_werror_flag" |
20300 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20302 | (eval $ac_try) 2>&5 | |
20303 | ac_status=$? | |
20304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20305 | (exit $ac_status); }; } && | |
20306 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20308 | (eval $ac_try) 2>&5 | |
20309 | ac_status=$? | |
20310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20311 | (exit $ac_status); }; }; then | |
20312 | ac_hi=$ac_mid; break | |
20313 | else | |
20314 | echo "$as_me: failed program was:" >&5 | |
20315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20316 | ||
20317 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20318 | if test $ac_lo -le $ac_mid; then |
20319 | ac_lo= ac_hi= | |
20320 | break | |
20321 | fi | |
20322 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20323 | fi |
ac1cb8d3 | 20324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20325 | done |
20326 | else | |
20327 | echo "$as_me: failed program was:" >&5 | |
20328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20329 | ||
20330 | cat >conftest.$ac_ext <<_ACEOF | |
20331 | /* confdefs.h. */ | |
20332 | _ACEOF | |
20333 | cat confdefs.h >>conftest.$ac_ext | |
20334 | cat >>conftest.$ac_ext <<_ACEOF | |
20335 | /* end confdefs.h. */ | |
20336 | $ac_includes_default | |
20337 | int | |
20338 | main () | |
20339 | { | |
20340 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20341 | test_array [0] = 0 | |
20342 | ||
20343 | ; | |
20344 | return 0; | |
20345 | } | |
20346 | _ACEOF | |
20347 | rm -f conftest.$ac_objext | |
20348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20349 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20350 | ac_status=$? |
ac1cb8d3 VS |
20351 | grep -v '^ *+' conftest.er1 >conftest.err |
20352 | rm -f conftest.er1 | |
20353 | cat conftest.err >&5 | |
a848cd7e SC |
20354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20355 | (exit $ac_status); } && | |
3565d135 RR |
20356 | { ac_try='test -z "$ac_c_werror_flag" |
20357 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20359 | (eval $ac_try) 2>&5 | |
20360 | ac_status=$? | |
20361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20362 | (exit $ac_status); }; } && | |
20363 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20365 | (eval $ac_try) 2>&5 | |
20366 | ac_status=$? | |
20367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20368 | (exit $ac_status); }; }; then | |
20369 | ac_hi=-1 ac_mid=-1 | |
20370 | while :; do | |
20371 | cat >conftest.$ac_ext <<_ACEOF | |
20372 | /* confdefs.h. */ | |
20373 | _ACEOF | |
20374 | cat confdefs.h >>conftest.$ac_ext | |
20375 | cat >>conftest.$ac_ext <<_ACEOF | |
20376 | /* end confdefs.h. */ | |
20377 | $ac_includes_default | |
20378 | int | |
20379 | main () | |
20380 | { | |
20381 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20382 | test_array [0] = 0 | |
20383 | ||
20384 | ; | |
20385 | return 0; | |
20386 | } | |
20387 | _ACEOF | |
20388 | rm -f conftest.$ac_objext | |
20389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20390 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20391 | ac_status=$? |
ac1cb8d3 VS |
20392 | grep -v '^ *+' conftest.er1 >conftest.err |
20393 | rm -f conftest.er1 | |
20394 | cat conftest.err >&5 | |
a848cd7e SC |
20395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20396 | (exit $ac_status); } && | |
3565d135 RR |
20397 | { ac_try='test -z "$ac_c_werror_flag" |
20398 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20400 | (eval $ac_try) 2>&5 | |
20401 | ac_status=$? | |
20402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20403 | (exit $ac_status); }; } && | |
20404 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20406 | (eval $ac_try) 2>&5 | |
20407 | ac_status=$? | |
20408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20409 | (exit $ac_status); }; }; then | |
20410 | ac_lo=$ac_mid; break | |
20411 | else | |
20412 | echo "$as_me: failed program was:" >&5 | |
20413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20414 | ||
20415 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20416 | if test $ac_mid -le $ac_hi; then |
20417 | ac_lo= ac_hi= | |
20418 | break | |
20419 | fi | |
20420 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20421 | fi |
ac1cb8d3 | 20422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20423 | done |
20424 | else | |
20425 | echo "$as_me: failed program was:" >&5 | |
20426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20427 | ||
20428 | ac_lo= ac_hi= | |
20429 | fi | |
ac1cb8d3 | 20430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20431 | fi |
ac1cb8d3 | 20432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20433 | # Binary search between lo and hi bounds. |
20434 | while test "x$ac_lo" != "x$ac_hi"; do | |
20435 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20436 | cat >conftest.$ac_ext <<_ACEOF | |
20437 | /* confdefs.h. */ | |
20438 | _ACEOF | |
20439 | cat confdefs.h >>conftest.$ac_ext | |
20440 | cat >>conftest.$ac_ext <<_ACEOF | |
20441 | /* end confdefs.h. */ | |
20442 | $ac_includes_default | |
20443 | int | |
20444 | main () | |
20445 | { | |
20446 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20447 | test_array [0] = 0 | |
20448 | ||
20449 | ; | |
20450 | return 0; | |
20451 | } | |
20452 | _ACEOF | |
20453 | rm -f conftest.$ac_objext | |
20454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20455 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20456 | ac_status=$? |
ac1cb8d3 VS |
20457 | grep -v '^ *+' conftest.er1 >conftest.err |
20458 | rm -f conftest.er1 | |
20459 | cat conftest.err >&5 | |
a848cd7e SC |
20460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20461 | (exit $ac_status); } && | |
3565d135 RR |
20462 | { ac_try='test -z "$ac_c_werror_flag" |
20463 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20465 | (eval $ac_try) 2>&5 | |
20466 | ac_status=$? | |
20467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20468 | (exit $ac_status); }; } && | |
20469 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20471 | (eval $ac_try) 2>&5 | |
20472 | ac_status=$? | |
20473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20474 | (exit $ac_status); }; }; then | |
20475 | ac_hi=$ac_mid | |
20476 | else | |
20477 | echo "$as_me: failed program was:" >&5 | |
20478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20479 | ||
20480 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20481 | fi | |
ac1cb8d3 | 20482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20483 | done |
20484 | case $ac_lo in | |
20485 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20486 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20487 | See \`config.log' for more details." >&5 | |
20488 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20489 | See \`config.log' for more details." >&2;} | |
20490 | { (exit 1); exit 1; }; } ;; | |
20491 | esac | |
20492 | else | |
20493 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
20494 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20495 | See \`config.log' for more details." >&5 | |
20496 | echo "$as_me: error: cannot run test program while cross compiling | |
20497 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
20498 | { (exit 1); exit 1; }; } |
20499 | else | |
20500 | cat >conftest.$ac_ext <<_ACEOF | |
20501 | /* confdefs.h. */ | |
20502 | _ACEOF | |
20503 | cat confdefs.h >>conftest.$ac_ext | |
20504 | cat >>conftest.$ac_ext <<_ACEOF | |
20505 | /* end confdefs.h. */ | |
20506 | $ac_includes_default | |
20507 | long longval () { return (long) (sizeof (long long)); } | |
20508 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20509 | #include <stdio.h> | |
20510 | #include <stdlib.h> | |
20511 | int | |
20512 | main () | |
20513 | { | |
20514 | ||
20515 | FILE *f = fopen ("conftest.val", "w"); | |
20516 | if (! f) | |
20517 | exit (1); | |
20518 | if (((long) (sizeof (long long))) < 0) | |
20519 | { | |
20520 | long i = longval (); | |
20521 | if (i != ((long) (sizeof (long long)))) | |
20522 | exit (1); | |
20523 | fprintf (f, "%ld\n", i); | |
20524 | } | |
20525 | else | |
20526 | { | |
20527 | unsigned long i = ulongval (); | |
20528 | if (i != ((long) (sizeof (long long)))) | |
20529 | exit (1); | |
20530 | fprintf (f, "%lu\n", i); | |
20531 | } | |
20532 | exit (ferror (f) || fclose (f) != 0); | |
20533 | ||
20534 | ; | |
20535 | return 0; | |
20536 | } | |
20537 | _ACEOF | |
20538 | rm -f conftest$ac_exeext | |
20539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20540 | (eval $ac_link) 2>&5 | |
20541 | ac_status=$? | |
20542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20543 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20545 | (eval $ac_try) 2>&5 | |
20546 | ac_status=$? | |
20547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20548 | (exit $ac_status); }; }; then | |
20549 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20550 | else | |
20551 | echo "$as_me: program exited with status $ac_status" >&5 | |
20552 | echo "$as_me: failed program was:" >&5 | |
20553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20554 | ||
20555 | ( exit $ac_status ) | |
20556 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20557 | See \`config.log' for more details." >&5 | |
20558 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20559 | See \`config.log' for more details." >&2;} | |
20560 | { (exit 1); exit 1; }; } | |
20561 | fi | |
ac1cb8d3 | 20562 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20563 | fi |
20564 | fi | |
20565 | rm -f conftest.val | |
20566 | else | |
20567 | ac_cv_sizeof_long_long=0 | |
20568 | fi | |
20569 | fi | |
20570 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20571 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20572 | cat >>confdefs.h <<_ACEOF | |
20573 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20574 | _ACEOF | |
20575 | ||
20576 | ||
20577 | esac | |
20578 | ||
238ecede MW |
20579 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
20580 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
20581 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
20582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20583 | else | |
20584 | cat >conftest.$ac_ext <<_ACEOF | |
20585 | /* confdefs.h. */ | |
20586 | _ACEOF | |
20587 | cat confdefs.h >>conftest.$ac_ext | |
20588 | cat >>conftest.$ac_ext <<_ACEOF | |
20589 | /* end confdefs.h. */ | |
20590 | ||
83d8eb47 MW |
20591 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20592 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20593 | # error "fake wchar_t" |
20594 | #endif | |
20595 | #ifdef HAVE_WCHAR_H | |
20596 | # ifdef __CYGWIN__ | |
20597 | # include <stddef.h> | |
20598 | # endif | |
20599 | # include <wchar.h> | |
20600 | #endif | |
20601 | #ifdef HAVE_STDLIB_H | |
20602 | # include <stdlib.h> | |
20603 | #endif | |
20604 | #include <stdio.h> | |
20605 | ||
20606 | ||
20607 | ||
20608 | int | |
20609 | main () | |
20610 | { | |
20611 | if ((wchar_t *) 0) | |
20612 | return 0; | |
20613 | if (sizeof (wchar_t)) | |
20614 | return 0; | |
20615 | ; | |
20616 | return 0; | |
20617 | } | |
20618 | _ACEOF | |
20619 | rm -f conftest.$ac_objext | |
20620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20621 | (eval $ac_compile) 2>conftest.er1 | |
20622 | ac_status=$? | |
20623 | grep -v '^ *+' conftest.er1 >conftest.err | |
20624 | rm -f conftest.er1 | |
20625 | cat conftest.err >&5 | |
20626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20627 | (exit $ac_status); } && | |
3565d135 RR |
20628 | { ac_try='test -z "$ac_c_werror_flag" |
20629 | || test ! -s conftest.err' | |
238ecede MW |
20630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20631 | (eval $ac_try) 2>&5 | |
20632 | ac_status=$? | |
20633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20634 | (exit $ac_status); }; } && | |
20635 | { ac_try='test -s conftest.$ac_objext' | |
20636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20637 | (eval $ac_try) 2>&5 | |
20638 | ac_status=$? | |
20639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20640 | (exit $ac_status); }; }; then | |
20641 | ac_cv_type_wchar_t=yes | |
20642 | else | |
20643 | echo "$as_me: failed program was:" >&5 | |
20644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20645 | ||
20646 | ac_cv_type_wchar_t=no | |
20647 | fi | |
20648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20649 | fi | |
20650 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
20651 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
20652 | ||
a848cd7e SC |
20653 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
20654 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 20655 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
20656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20657 | else | |
238ecede MW |
20658 | if test "$ac_cv_type_wchar_t" = yes; then |
20659 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20660 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20661 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20662 | # This bug is HP SR number 8606223364. | |
20663 | if test "$cross_compiling" = yes; then | |
20664 | # Depending upon the size, compute the lo and hi bounds. | |
20665 | cat >conftest.$ac_ext <<_ACEOF | |
20666 | /* confdefs.h. */ | |
20667 | _ACEOF | |
20668 | cat confdefs.h >>conftest.$ac_ext | |
20669 | cat >>conftest.$ac_ext <<_ACEOF | |
20670 | /* end confdefs.h. */ | |
20671 | ||
83d8eb47 MW |
20672 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20673 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20674 | # error "fake wchar_t" |
20675 | #endif | |
20676 | #ifdef HAVE_WCHAR_H | |
20677 | # ifdef __CYGWIN__ | |
20678 | # include <stddef.h> | |
20679 | # endif | |
20680 | # include <wchar.h> | |
20681 | #endif | |
20682 | #ifdef HAVE_STDLIB_H | |
20683 | # include <stdlib.h> | |
20684 | #endif | |
20685 | #include <stdio.h> | |
20686 | ||
20687 | ||
20688 | ||
20689 | int | |
20690 | main () | |
20691 | { | |
20692 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
20693 | test_array [0] = 0 | |
20694 | ||
20695 | ; | |
20696 | return 0; | |
20697 | } | |
20698 | _ACEOF | |
20699 | rm -f conftest.$ac_objext | |
20700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20701 | (eval $ac_compile) 2>conftest.er1 | |
20702 | ac_status=$? | |
20703 | grep -v '^ *+' conftest.er1 >conftest.err | |
20704 | rm -f conftest.er1 | |
20705 | cat conftest.err >&5 | |
20706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20707 | (exit $ac_status); } && | |
3565d135 RR |
20708 | { ac_try='test -z "$ac_c_werror_flag" |
20709 | || test ! -s conftest.err' | |
238ecede MW |
20710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20711 | (eval $ac_try) 2>&5 | |
20712 | ac_status=$? | |
20713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20714 | (exit $ac_status); }; } && | |
20715 | { ac_try='test -s conftest.$ac_objext' | |
20716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20717 | (eval $ac_try) 2>&5 | |
20718 | ac_status=$? | |
20719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20720 | (exit $ac_status); }; }; then | |
20721 | ac_lo=0 ac_mid=0 | |
20722 | while :; do | |
20723 | cat >conftest.$ac_ext <<_ACEOF | |
20724 | /* confdefs.h. */ | |
20725 | _ACEOF | |
20726 | cat confdefs.h >>conftest.$ac_ext | |
20727 | cat >>conftest.$ac_ext <<_ACEOF | |
20728 | /* end confdefs.h. */ | |
20729 | ||
83d8eb47 MW |
20730 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20731 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20732 | # error "fake wchar_t" |
20733 | #endif | |
20734 | #ifdef HAVE_WCHAR_H | |
20735 | # ifdef __CYGWIN__ | |
20736 | # include <stddef.h> | |
20737 | # endif | |
20738 | # include <wchar.h> | |
20739 | #endif | |
20740 | #ifdef HAVE_STDLIB_H | |
20741 | # include <stdlib.h> | |
20742 | #endif | |
20743 | #include <stdio.h> | |
20744 | ||
20745 | ||
20746 | ||
20747 | int | |
20748 | main () | |
20749 | { | |
20750 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20751 | test_array [0] = 0 | |
20752 | ||
20753 | ; | |
20754 | return 0; | |
20755 | } | |
20756 | _ACEOF | |
20757 | rm -f conftest.$ac_objext | |
20758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20759 | (eval $ac_compile) 2>conftest.er1 | |
20760 | ac_status=$? | |
20761 | grep -v '^ *+' conftest.er1 >conftest.err | |
20762 | rm -f conftest.er1 | |
20763 | cat conftest.err >&5 | |
20764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20765 | (exit $ac_status); } && | |
3565d135 RR |
20766 | { ac_try='test -z "$ac_c_werror_flag" |
20767 | || test ! -s conftest.err' | |
238ecede MW |
20768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20769 | (eval $ac_try) 2>&5 | |
20770 | ac_status=$? | |
20771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20772 | (exit $ac_status); }; } && | |
20773 | { ac_try='test -s conftest.$ac_objext' | |
20774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20775 | (eval $ac_try) 2>&5 | |
20776 | ac_status=$? | |
20777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20778 | (exit $ac_status); }; }; then | |
20779 | ac_hi=$ac_mid; break | |
20780 | else | |
20781 | echo "$as_me: failed program was:" >&5 | |
20782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20783 | ||
20784 | ac_lo=`expr $ac_mid + 1` | |
20785 | if test $ac_lo -le $ac_mid; then | |
20786 | ac_lo= ac_hi= | |
20787 | break | |
20788 | fi | |
20789 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
20790 | fi | |
20791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20792 | done | |
20793 | else | |
20794 | echo "$as_me: failed program was:" >&5 | |
20795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20796 | ||
20797 | cat >conftest.$ac_ext <<_ACEOF | |
20798 | /* confdefs.h. */ | |
20799 | _ACEOF | |
20800 | cat confdefs.h >>conftest.$ac_ext | |
20801 | cat >>conftest.$ac_ext <<_ACEOF | |
20802 | /* end confdefs.h. */ | |
20803 | ||
83d8eb47 MW |
20804 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20805 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20806 | # error "fake wchar_t" |
20807 | #endif | |
20808 | #ifdef HAVE_WCHAR_H | |
20809 | # ifdef __CYGWIN__ | |
20810 | # include <stddef.h> | |
20811 | # endif | |
20812 | # include <wchar.h> | |
20813 | #endif | |
20814 | #ifdef HAVE_STDLIB_H | |
20815 | # include <stdlib.h> | |
20816 | #endif | |
20817 | #include <stdio.h> | |
20818 | ||
20819 | ||
20820 | ||
20821 | int | |
20822 | main () | |
20823 | { | |
20824 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
20825 | test_array [0] = 0 | |
20826 | ||
20827 | ; | |
20828 | return 0; | |
20829 | } | |
20830 | _ACEOF | |
20831 | rm -f conftest.$ac_objext | |
20832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20833 | (eval $ac_compile) 2>conftest.er1 | |
20834 | ac_status=$? | |
20835 | grep -v '^ *+' conftest.er1 >conftest.err | |
20836 | rm -f conftest.er1 | |
20837 | cat conftest.err >&5 | |
20838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20839 | (exit $ac_status); } && | |
3565d135 RR |
20840 | { ac_try='test -z "$ac_c_werror_flag" |
20841 | || test ! -s conftest.err' | |
238ecede MW |
20842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20843 | (eval $ac_try) 2>&5 | |
20844 | ac_status=$? | |
20845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20846 | (exit $ac_status); }; } && | |
20847 | { ac_try='test -s conftest.$ac_objext' | |
20848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20849 | (eval $ac_try) 2>&5 | |
20850 | ac_status=$? | |
20851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20852 | (exit $ac_status); }; }; then | |
20853 | ac_hi=-1 ac_mid=-1 | |
20854 | while :; do | |
20855 | cat >conftest.$ac_ext <<_ACEOF | |
20856 | /* confdefs.h. */ | |
20857 | _ACEOF | |
20858 | cat confdefs.h >>conftest.$ac_ext | |
20859 | cat >>conftest.$ac_ext <<_ACEOF | |
20860 | /* end confdefs.h. */ | |
20861 | ||
83d8eb47 MW |
20862 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20863 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20864 | # error "fake wchar_t" |
20865 | #endif | |
20866 | #ifdef HAVE_WCHAR_H | |
20867 | # ifdef __CYGWIN__ | |
20868 | # include <stddef.h> | |
20869 | # endif | |
20870 | # include <wchar.h> | |
20871 | #endif | |
20872 | #ifdef HAVE_STDLIB_H | |
20873 | # include <stdlib.h> | |
20874 | #endif | |
20875 | #include <stdio.h> | |
20876 | ||
20877 | ||
20878 | ||
20879 | int | |
20880 | main () | |
20881 | { | |
20882 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
20883 | test_array [0] = 0 | |
20884 | ||
20885 | ; | |
20886 | return 0; | |
20887 | } | |
20888 | _ACEOF | |
20889 | rm -f conftest.$ac_objext | |
20890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20891 | (eval $ac_compile) 2>conftest.er1 | |
20892 | ac_status=$? | |
20893 | grep -v '^ *+' conftest.er1 >conftest.err | |
20894 | rm -f conftest.er1 | |
20895 | cat conftest.err >&5 | |
20896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20897 | (exit $ac_status); } && | |
3565d135 RR |
20898 | { ac_try='test -z "$ac_c_werror_flag" |
20899 | || test ! -s conftest.err' | |
238ecede MW |
20900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20901 | (eval $ac_try) 2>&5 | |
20902 | ac_status=$? | |
20903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20904 | (exit $ac_status); }; } && | |
20905 | { ac_try='test -s conftest.$ac_objext' | |
20906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20907 | (eval $ac_try) 2>&5 | |
20908 | ac_status=$? | |
20909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20910 | (exit $ac_status); }; }; then | |
20911 | ac_lo=$ac_mid; break | |
20912 | else | |
20913 | echo "$as_me: failed program was:" >&5 | |
20914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20915 | ||
20916 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
20917 | if test $ac_mid -le $ac_hi; then | |
20918 | ac_lo= ac_hi= | |
20919 | break | |
20920 | fi | |
20921 | ac_mid=`expr 2 '*' $ac_mid` | |
20922 | fi | |
20923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20924 | done | |
20925 | else | |
20926 | echo "$as_me: failed program was:" >&5 | |
20927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20928 | ||
20929 | ac_lo= ac_hi= | |
20930 | fi | |
20931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20932 | fi | |
20933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20934 | # Binary search between lo and hi bounds. | |
20935 | while test "x$ac_lo" != "x$ac_hi"; do | |
20936 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20937 | cat >conftest.$ac_ext <<_ACEOF | |
20938 | /* confdefs.h. */ | |
20939 | _ACEOF | |
20940 | cat confdefs.h >>conftest.$ac_ext | |
20941 | cat >>conftest.$ac_ext <<_ACEOF | |
20942 | /* end confdefs.h. */ | |
20943 | ||
83d8eb47 MW |
20944 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20945 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20946 | # error "fake wchar_t" |
20947 | #endif | |
20948 | #ifdef HAVE_WCHAR_H | |
20949 | # ifdef __CYGWIN__ | |
20950 | # include <stddef.h> | |
20951 | # endif | |
20952 | # include <wchar.h> | |
20953 | #endif | |
20954 | #ifdef HAVE_STDLIB_H | |
20955 | # include <stdlib.h> | |
20956 | #endif | |
20957 | #include <stdio.h> | |
a848cd7e | 20958 | |
a848cd7e | 20959 | |
a848cd7e | 20960 | |
238ecede MW |
20961 | int |
20962 | main () | |
20963 | { | |
20964 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20965 | test_array [0] = 0 | |
a848cd7e | 20966 | |
238ecede MW |
20967 | ; |
20968 | return 0; | |
20969 | } | |
20970 | _ACEOF | |
20971 | rm -f conftest.$ac_objext | |
20972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20973 | (eval $ac_compile) 2>conftest.er1 | |
20974 | ac_status=$? | |
20975 | grep -v '^ *+' conftest.er1 >conftest.err | |
20976 | rm -f conftest.er1 | |
20977 | cat conftest.err >&5 | |
20978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20979 | (exit $ac_status); } && | |
3565d135 RR |
20980 | { ac_try='test -z "$ac_c_werror_flag" |
20981 | || test ! -s conftest.err' | |
238ecede MW |
20982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20983 | (eval $ac_try) 2>&5 | |
20984 | ac_status=$? | |
20985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20986 | (exit $ac_status); }; } && | |
20987 | { ac_try='test -s conftest.$ac_objext' | |
20988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20989 | (eval $ac_try) 2>&5 | |
20990 | ac_status=$? | |
20991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20992 | (exit $ac_status); }; }; then | |
20993 | ac_hi=$ac_mid | |
20994 | else | |
20995 | echo "$as_me: failed program was:" >&5 | |
20996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20997 | ||
20998 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20999 | fi | |
21000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21001 | done | |
21002 | case $ac_lo in | |
21003 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
21004 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
21005 | See \`config.log' for more details." >&5 | |
21006 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21007 | See \`config.log' for more details." >&2;} | |
21008 | { (exit 1); exit 1; }; } ;; | |
21009 | esac | |
21010 | else | |
21011 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
21012 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
21013 | See \`config.log' for more details." >&5 | |
21014 | echo "$as_me: error: cannot run test program while cross compiling | |
21015 | See \`config.log' for more details." >&2;} | |
238ecede | 21016 | { (exit 1); exit 1; }; } |
a848cd7e SC |
21017 | else |
21018 | cat >conftest.$ac_ext <<_ACEOF | |
21019 | /* confdefs.h. */ | |
21020 | _ACEOF | |
21021 | cat confdefs.h >>conftest.$ac_ext | |
21022 | cat >>conftest.$ac_ext <<_ACEOF | |
21023 | /* end confdefs.h. */ | |
21024 | ||
83d8eb47 MW |
21025 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21026 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21027 | # error "fake wchar_t" |
21028 | #endif | |
21029 | #ifdef HAVE_WCHAR_H | |
21030 | # ifdef __CYGWIN__ | |
21031 | # include <stddef.h> | |
21032 | # endif | |
21033 | # include <wchar.h> | |
21034 | #endif | |
21035 | #ifdef HAVE_STDLIB_H | |
21036 | # include <stdlib.h> | |
21037 | #endif | |
21038 | #include <stdio.h> | |
21039 | ||
21040 | ||
21041 | ||
21042 | long longval () { return (long) (sizeof (wchar_t)); } | |
21043 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
21044 | #include <stdio.h> | |
21045 | #include <stdlib.h> | |
21046 | int | |
21047 | main () | |
21048 | { | |
a848cd7e | 21049 | |
238ecede MW |
21050 | FILE *f = fopen ("conftest.val", "w"); |
21051 | if (! f) | |
21052 | exit (1); | |
21053 | if (((long) (sizeof (wchar_t))) < 0) | |
21054 | { | |
21055 | long i = longval (); | |
21056 | if (i != ((long) (sizeof (wchar_t)))) | |
21057 | exit (1); | |
21058 | fprintf (f, "%ld\n", i); | |
21059 | } | |
21060 | else | |
21061 | { | |
21062 | unsigned long i = ulongval (); | |
21063 | if (i != ((long) (sizeof (wchar_t)))) | |
21064 | exit (1); | |
21065 | fprintf (f, "%lu\n", i); | |
21066 | } | |
21067 | exit (ferror (f) || fclose (f) != 0); | |
21068 | ||
21069 | ; | |
21070 | return 0; | |
21071 | } | |
a848cd7e SC |
21072 | _ACEOF |
21073 | rm -f conftest$ac_exeext | |
21074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21075 | (eval $ac_link) 2>&5 | |
21076 | ac_status=$? | |
21077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21078 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21080 | (eval $ac_try) 2>&5 | |
21081 | ac_status=$? | |
21082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21083 | (exit $ac_status); }; }; then | |
238ecede | 21084 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
21085 | else |
21086 | echo "$as_me: program exited with status $ac_status" >&5 | |
21087 | echo "$as_me: failed program was:" >&5 | |
21088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21089 | ||
21090 | ( exit $ac_status ) | |
238ecede MW |
21091 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
21092 | See \`config.log' for more details." >&5 | |
21093 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21094 | See \`config.log' for more details." >&2;} | |
21095 | { (exit 1); exit 1; }; } | |
a848cd7e | 21096 | fi |
ac1cb8d3 | 21097 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21098 | fi |
a848cd7e | 21099 | fi |
238ecede MW |
21100 | rm -f conftest.val |
21101 | else | |
21102 | ac_cv_sizeof_wchar_t=0 | |
21103 | fi | |
21104 | fi | |
21105 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
21106 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 21107 | cat >>confdefs.h <<_ACEOF |
238ecede | 21108 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
21109 | _ACEOF |
21110 | ||
21111 | ||
47a7e797 MW |
21112 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
21113 | wxUSE_WCHAR_T=yes | |
21114 | else | |
21115 | wxUSE_WCHAR_T=no | |
21116 | fi | |
238ecede | 21117 | |
ba3d13e1 VZ |
21118 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
21119 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
21120 | if test "${wx_cv_func_va_copy+set}" = set; then | |
21121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21122 | else | |
21123 | ||
21124 | cat >conftest.$ac_ext <<_ACEOF | |
21125 | ||
21126 | #include <stdarg.h> | |
21127 | void foo(char *f, ...) | |
21128 | { | |
21129 | va_list ap1, ap2; | |
21130 | va_start(ap1, f); | |
21131 | va_copy(ap2, ap1); | |
21132 | va_end(ap2); | |
21133 | va_end(ap1); | |
21134 | } | |
5886b072 VZ |
21135 | int main() |
21136 | { | |
b902e639 VZ |
21137 | foo("hi", 17); |
21138 | return 0; | |
5886b072 | 21139 | } |
ba3d13e1 VZ |
21140 | _ACEOF |
21141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21143 | (eval $ac_link) 2>conftest.er1 | |
21144 | ac_status=$? | |
21145 | grep -v '^ *+' conftest.er1 >conftest.err | |
21146 | rm -f conftest.er1 | |
21147 | cat conftest.err >&5 | |
21148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21149 | (exit $ac_status); } && | |
3565d135 RR |
21150 | { ac_try='test -z "$ac_c_werror_flag" |
21151 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
21152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21153 | (eval $ac_try) 2>&5 | |
21154 | ac_status=$? | |
21155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21156 | (exit $ac_status); }; } && | |
21157 | { ac_try='test -s conftest$ac_exeext' | |
21158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21159 | (eval $ac_try) 2>&5 | |
21160 | ac_status=$? | |
21161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21162 | (exit $ac_status); }; }; then | |
21163 | wx_cv_func_va_copy=yes | |
21164 | else | |
21165 | echo "$as_me: failed program was:" >&5 | |
21166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21167 | ||
21168 | wx_cv_func_va_copy=no | |
21169 | ||
21170 | fi | |
21171 | rm -f conftest.err conftest.$ac_objext \ | |
21172 | conftest$ac_exeext conftest.$ac_ext | |
21173 | ||
21174 | ||
21175 | fi | |
21176 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
21177 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
21178 | ||
21179 | if test $wx_cv_func_va_copy = "yes"; then | |
21180 | cat >>confdefs.h <<\_ACEOF | |
21181 | #define HAVE_VA_COPY 1 | |
21182 | _ACEOF | |
21183 | ||
21184 | else | |
21185 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
21186 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
21187 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
21188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21189 | else | |
21190 | ||
21191 | if test "$cross_compiling" = yes; then | |
21192 | wx_cv_type_va_list_lvalue=yes | |
21193 | ||
21194 | else | |
21195 | cat >conftest.$ac_ext <<_ACEOF | |
21196 | ||
21197 | #include <stdarg.h> | |
21198 | int foo(char *f, ...) | |
21199 | { | |
21200 | va_list ap1, ap2; | |
21201 | va_start(ap1, f); | |
21202 | ap2 = ap1; | |
21203 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
21204 | return 1; | |
21205 | va_end(ap2); | |
21206 | va_end(ap1); | |
21207 | return 0; | |
21208 | } | |
21209 | int main() | |
21210 | { | |
21211 | return foo("hi", 17); | |
21212 | } | |
21213 | _ACEOF | |
21214 | rm -f conftest$ac_exeext | |
21215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21216 | (eval $ac_link) 2>&5 | |
21217 | ac_status=$? | |
21218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21219 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21221 | (eval $ac_try) 2>&5 | |
21222 | ac_status=$? | |
21223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21224 | (exit $ac_status); }; }; then | |
21225 | wx_cv_type_va_list_lvalue=yes | |
21226 | else | |
21227 | echo "$as_me: program exited with status $ac_status" >&5 | |
21228 | echo "$as_me: failed program was:" >&5 | |
21229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21230 | ||
21231 | ( exit $ac_status ) | |
21232 | wx_cv_type_va_list_lvalue=no | |
21233 | fi | |
21234 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21235 | fi | |
21236 | ||
21237 | ||
21238 | fi | |
21239 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
21240 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
21241 | ||
21242 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
21243 | cat >>confdefs.h <<\_ACEOF | |
21244 | #define VA_LIST_IS_ARRAY 1 | |
21245 | _ACEOF | |
21246 | ||
21247 | fi | |
21248 | fi | |
21249 | ||
a848cd7e SC |
21250 | # Check whether --enable-largefile or --disable-largefile was given. |
21251 | if test "${enable_largefile+set}" = set; then | |
21252 | enableval="$enable_largefile" | |
21253 | ||
21254 | fi; | |
21255 | if test "$enable_largefile" != no; then | |
21256 | wx_largefile=no | |
21257 | ||
21258 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
21259 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
21260 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
21261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21262 | else | |
21263 | ||
21264 | cat >conftest.$ac_ext <<_ACEOF | |
21265 | /* confdefs.h. */ | |
21266 | _ACEOF | |
21267 | cat confdefs.h >>conftest.$ac_ext | |
21268 | cat >>conftest.$ac_ext <<_ACEOF | |
21269 | /* end confdefs.h. */ | |
21270 | #define _FILE_OFFSET_BITS 64 | |
21271 | #include <sys/types.h> | |
21272 | int | |
21273 | main () | |
21274 | { | |
21275 | typedef struct { | |
21276 | unsigned int field: sizeof(off_t) == 8; | |
21277 | } wxlf; | |
21278 | ||
21279 | ; | |
21280 | return 0; | |
21281 | } | |
21282 | _ACEOF | |
21283 | rm -f conftest.$ac_objext | |
21284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21285 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21286 | ac_status=$? |
ac1cb8d3 VS |
21287 | grep -v '^ *+' conftest.er1 >conftest.err |
21288 | rm -f conftest.er1 | |
21289 | cat conftest.err >&5 | |
a848cd7e SC |
21290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21291 | (exit $ac_status); } && | |
3565d135 RR |
21292 | { ac_try='test -z "$ac_c_werror_flag" |
21293 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21295 | (eval $ac_try) 2>&5 | |
21296 | ac_status=$? | |
21297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21298 | (exit $ac_status); }; } && | |
21299 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21301 | (eval $ac_try) 2>&5 | |
21302 | ac_status=$? | |
21303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21304 | (exit $ac_status); }; }; then | |
21305 | ac_cv_sys_file_offset_bits=64 | |
21306 | else | |
21307 | echo "$as_me: failed program was:" >&5 | |
21308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21309 | ||
21310 | ac_cv_sys_file_offset_bits=no | |
21311 | fi | |
ac1cb8d3 | 21312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21313 | |
21314 | ||
21315 | fi | |
21316 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
21317 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21318 | ||
21319 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
21320 | wx_largefile=yes | |
21321 | cat >>confdefs.h <<_ACEOF | |
21322 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
21323 | _ACEOF | |
21324 | ||
21325 | fi | |
21326 | ||
21327 | if test "x$wx_largefile" != "xyes"; then | |
21328 | ||
21329 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
21330 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
21331 | if test "${ac_cv_sys_large_files+set}" = set; then | |
21332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21333 | else | |
21334 | ||
21335 | cat >conftest.$ac_ext <<_ACEOF | |
21336 | /* confdefs.h. */ | |
21337 | _ACEOF | |
21338 | cat confdefs.h >>conftest.$ac_ext | |
21339 | cat >>conftest.$ac_ext <<_ACEOF | |
21340 | /* end confdefs.h. */ | |
21341 | #define _LARGE_FILES 1 | |
21342 | #include <sys/types.h> | |
21343 | int | |
21344 | main () | |
21345 | { | |
21346 | typedef struct { | |
21347 | unsigned int field: sizeof(off_t) == 8; | |
21348 | } wxlf; | |
21349 | ||
21350 | ; | |
21351 | return 0; | |
21352 | } | |
21353 | _ACEOF | |
21354 | rm -f conftest.$ac_objext | |
21355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21356 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21357 | ac_status=$? |
ac1cb8d3 VS |
21358 | grep -v '^ *+' conftest.er1 >conftest.err |
21359 | rm -f conftest.er1 | |
21360 | cat conftest.err >&5 | |
a848cd7e SC |
21361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21362 | (exit $ac_status); } && | |
3565d135 RR |
21363 | { ac_try='test -z "$ac_c_werror_flag" |
21364 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21366 | (eval $ac_try) 2>&5 | |
21367 | ac_status=$? | |
21368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21369 | (exit $ac_status); }; } && | |
21370 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
21376 | ac_cv_sys_large_files=1 | |
21377 | else | |
21378 | echo "$as_me: failed program was:" >&5 | |
21379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21380 | ||
21381 | ac_cv_sys_large_files=no | |
21382 | fi | |
ac1cb8d3 | 21383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21384 | |
21385 | ||
21386 | fi | |
21387 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
21388 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
21389 | ||
21390 | if test "$ac_cv_sys_large_files" != no; then | |
21391 | wx_largefile=yes | |
21392 | cat >>confdefs.h <<_ACEOF | |
21393 | #define _LARGE_FILES $ac_cv_sys_large_files | |
21394 | _ACEOF | |
21395 | ||
21396 | fi | |
21397 | ||
21398 | fi | |
21399 | ||
21400 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
21401 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21402 | if test "x$wx_largefile" = "xyes"; then | |
21403 | cat >>confdefs.h <<\_ACEOF | |
21404 | #define HAVE_LARGEFILE_SUPPORT 1 | |
21405 | _ACEOF | |
21406 | ||
21407 | fi | |
21408 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
21409 | echo "${ECHO_T}$wx_largefile" >&6 | |
21410 | fi | |
21411 | ||
5b674b9d DE |
21412 | |
21413 | if test "x$wx_largefile" = "xyes"; then | |
21414 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
5ff751d6 | 21415 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" |
00421666 MW |
21416 | |
21417 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
21418 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
21419 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
21420 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
21421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21422 | else | |
21423 | ||
21424 | ||
21425 | ||
21426 | ac_ext=cc | |
21427 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21428 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21429 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21430 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21431 | ||
21432 | cat >conftest.$ac_ext <<_ACEOF | |
21433 | /* confdefs.h. */ | |
21434 | _ACEOF | |
21435 | cat confdefs.h >>conftest.$ac_ext | |
21436 | cat >>conftest.$ac_ext <<_ACEOF | |
21437 | /* end confdefs.h. */ | |
21438 | ||
21439 | int | |
21440 | main () | |
21441 | { | |
21442 | ||
21443 | #ifndef __STDC_EXT__ | |
21444 | choke me | |
21445 | #endif | |
21446 | ||
21447 | ; | |
21448 | return 0; | |
21449 | } | |
21450 | _ACEOF | |
21451 | rm -f conftest.$ac_objext | |
21452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21453 | (eval $ac_compile) 2>conftest.er1 | |
21454 | ac_status=$? | |
21455 | grep -v '^ *+' conftest.er1 >conftest.err | |
21456 | rm -f conftest.er1 | |
21457 | cat conftest.err >&5 | |
21458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21459 | (exit $ac_status); } && | |
3565d135 RR |
21460 | { ac_try='test -z "$ac_cxx_werror_flag" |
21461 | || test ! -s conftest.err' | |
00421666 MW |
21462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21463 | (eval $ac_try) 2>&5 | |
21464 | ac_status=$? | |
21465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21466 | (exit $ac_status); }; } && | |
21467 | { ac_try='test -s conftest.$ac_objext' | |
21468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21469 | (eval $ac_try) 2>&5 | |
21470 | ac_status=$? | |
21471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21472 | (exit $ac_status); }; }; then | |
21473 | wx_cv_STDC_EXT_required=no | |
21474 | else | |
21475 | echo "$as_me: failed program was:" >&5 | |
21476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21477 | ||
21478 | wx_cv_STDC_EXT_required=yes | |
21479 | ||
21480 | fi | |
21481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21482 | ac_ext=c | |
21483 | ac_cpp='$CPP $CPPFLAGS' | |
21484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21487 | ||
21488 | ||
21489 | ||
21490 | fi | |
21491 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
21492 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
21493 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
5ff751d6 | 21494 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" |
00421666 MW |
21495 | fi |
21496 | fi | |
5b674b9d | 21497 | else |
5ff751d6 | 21498 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES" |
5b674b9d DE |
21499 | fi |
21500 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
21501 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
21502 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
21503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21504 | else | |
21505 | while :; do | |
21506 | ac_cv_sys_largefile_source=no | |
21507 | cat >conftest.$ac_ext <<_ACEOF | |
21508 | /* confdefs.h. */ | |
21509 | _ACEOF | |
21510 | cat confdefs.h >>conftest.$ac_ext | |
21511 | cat >>conftest.$ac_ext <<_ACEOF | |
21512 | /* end confdefs.h. */ | |
21513 | #include <stdio.h> | |
21514 | int | |
21515 | main () | |
21516 | { | |
21517 | return !fseeko; | |
21518 | ; | |
21519 | return 0; | |
21520 | } | |
21521 | _ACEOF | |
21522 | rm -f conftest.$ac_objext | |
21523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21524 | (eval $ac_compile) 2>conftest.er1 | |
21525 | ac_status=$? | |
21526 | grep -v '^ *+' conftest.er1 >conftest.err | |
21527 | rm -f conftest.er1 | |
21528 | cat conftest.err >&5 | |
21529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21530 | (exit $ac_status); } && | |
3565d135 RR |
21531 | { ac_try='test -z "$ac_c_werror_flag" |
21532 | || test ! -s conftest.err' | |
5294a27e VZ |
21533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21534 | (eval $ac_try) 2>&5 | |
21535 | ac_status=$? | |
21536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21537 | (exit $ac_status); }; } && | |
21538 | { ac_try='test -s conftest.$ac_objext' | |
21539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21540 | (eval $ac_try) 2>&5 | |
21541 | ac_status=$? | |
21542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21543 | (exit $ac_status); }; }; then | |
21544 | break | |
21545 | else | |
21546 | echo "$as_me: failed program was:" >&5 | |
21547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21548 | ||
21549 | fi | |
21550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21551 | cat >conftest.$ac_ext <<_ACEOF | |
21552 | /* confdefs.h. */ | |
21553 | _ACEOF | |
21554 | cat confdefs.h >>conftest.$ac_ext | |
21555 | cat >>conftest.$ac_ext <<_ACEOF | |
21556 | /* end confdefs.h. */ | |
21557 | #define _LARGEFILE_SOURCE 1 | |
21558 | #include <stdio.h> | |
21559 | int | |
21560 | main () | |
21561 | { | |
21562 | return !fseeko; | |
21563 | ; | |
21564 | return 0; | |
21565 | } | |
21566 | _ACEOF | |
21567 | rm -f conftest.$ac_objext | |
21568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21569 | (eval $ac_compile) 2>conftest.er1 | |
21570 | ac_status=$? | |
21571 | grep -v '^ *+' conftest.er1 >conftest.err | |
21572 | rm -f conftest.er1 | |
21573 | cat conftest.err >&5 | |
21574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21575 | (exit $ac_status); } && | |
3565d135 RR |
21576 | { ac_try='test -z "$ac_c_werror_flag" |
21577 | || test ! -s conftest.err' | |
5294a27e VZ |
21578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21579 | (eval $ac_try) 2>&5 | |
21580 | ac_status=$? | |
21581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21582 | (exit $ac_status); }; } && | |
21583 | { ac_try='test -s conftest.$ac_objext' | |
21584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21585 | (eval $ac_try) 2>&5 | |
21586 | ac_status=$? | |
21587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21588 | (exit $ac_status); }; }; then | |
21589 | ac_cv_sys_largefile_source=1; break | |
21590 | else | |
21591 | echo "$as_me: failed program was:" >&5 | |
21592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21593 | ||
21594 | fi | |
21595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21596 | break | |
21597 | done | |
21598 | fi | |
21599 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
21600 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
21601 | if test "$ac_cv_sys_largefile_source" != no; then | |
21602 | ||
21603 | cat >>confdefs.h <<_ACEOF | |
21604 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
21605 | _ACEOF | |
21606 | ||
21607 | fi | |
21608 | rm -f conftest* | |
21609 | ||
21610 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
21611 | # in glibc 2.1.3, but that breaks too many other things. | |
21612 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
21613 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
21614 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
21615 | if test "${ac_cv_func_fseeko+set}" = set; then | |
21616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21617 | else | |
21618 | cat >conftest.$ac_ext <<_ACEOF | |
21619 | /* confdefs.h. */ | |
21620 | _ACEOF | |
21621 | cat confdefs.h >>conftest.$ac_ext | |
21622 | cat >>conftest.$ac_ext <<_ACEOF | |
21623 | /* end confdefs.h. */ | |
21624 | #include <stdio.h> | |
21625 | int | |
21626 | main () | |
21627 | { | |
21628 | return fseeko && fseeko (stdin, 0, 0); | |
21629 | ; | |
21630 | return 0; | |
21631 | } | |
21632 | _ACEOF | |
21633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21635 | (eval $ac_link) 2>conftest.er1 | |
21636 | ac_status=$? | |
21637 | grep -v '^ *+' conftest.er1 >conftest.err | |
21638 | rm -f conftest.er1 | |
21639 | cat conftest.err >&5 | |
21640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21641 | (exit $ac_status); } && | |
3565d135 RR |
21642 | { ac_try='test -z "$ac_c_werror_flag" |
21643 | || test ! -s conftest.err' | |
5294a27e VZ |
21644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21645 | (eval $ac_try) 2>&5 | |
21646 | ac_status=$? | |
21647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21648 | (exit $ac_status); }; } && | |
21649 | { ac_try='test -s conftest$ac_exeext' | |
21650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21651 | (eval $ac_try) 2>&5 | |
21652 | ac_status=$? | |
21653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21654 | (exit $ac_status); }; }; then | |
21655 | ac_cv_func_fseeko=yes | |
21656 | else | |
21657 | echo "$as_me: failed program was:" >&5 | |
21658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21659 | ||
21660 | ac_cv_func_fseeko=no | |
21661 | fi | |
21662 | rm -f conftest.err conftest.$ac_objext \ | |
21663 | conftest$ac_exeext conftest.$ac_ext | |
21664 | fi | |
21665 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
21666 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
21667 | if test $ac_cv_func_fseeko = yes; then | |
21668 | ||
21669 | cat >>confdefs.h <<\_ACEOF | |
21670 | #define HAVE_FSEEKO 1 | |
21671 | _ACEOF | |
21672 | ||
21673 | fi | |
21674 | ||
5b674b9d | 21675 | if test "$ac_cv_sys_largefile_source" != no; then |
5ff751d6 | 21676 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" |
a848cd7e | 21677 | fi |
a848cd7e SC |
21678 | fi |
21679 | ||
21680 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
21681 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
21682 | if test "${ac_cv_c_bigendian+set}" = set; then | |
21683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21684 | else | |
21685 | ac_cv_c_bigendian=unknown | |
21686 | # See if sys/param.h defines the BYTE_ORDER macro. | |
21687 | cat >conftest.$ac_ext <<_ACEOF | |
21688 | /* confdefs.h. */ | |
21689 | _ACEOF | |
21690 | cat confdefs.h >>conftest.$ac_ext | |
21691 | cat >>conftest.$ac_ext <<_ACEOF | |
21692 | /* end confdefs.h. */ | |
21693 | #include <sys/types.h> | |
21694 | #include <sys/param.h> | |
21695 | int | |
21696 | main () | |
21697 | { | |
21698 | ||
21699 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
21700 | bogus endian macros | |
21701 | #endif | |
21702 | ; | |
21703 | return 0; | |
21704 | } | |
21705 | _ACEOF | |
21706 | rm -f conftest.$ac_objext | |
21707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21708 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21709 | ac_status=$? |
ac1cb8d3 VS |
21710 | grep -v '^ *+' conftest.er1 >conftest.err |
21711 | rm -f conftest.er1 | |
21712 | cat conftest.err >&5 | |
a848cd7e SC |
21713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21714 | (exit $ac_status); } && | |
3565d135 RR |
21715 | { ac_try='test -z "$ac_c_werror_flag" |
21716 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21718 | (eval $ac_try) 2>&5 | |
21719 | ac_status=$? | |
21720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21721 | (exit $ac_status); }; } && | |
21722 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21724 | (eval $ac_try) 2>&5 | |
21725 | ac_status=$? | |
21726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21727 | (exit $ac_status); }; }; then | |
21728 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
21729 | cat >conftest.$ac_ext <<_ACEOF | |
21730 | /* confdefs.h. */ | |
21731 | _ACEOF | |
21732 | cat confdefs.h >>conftest.$ac_ext | |
21733 | cat >>conftest.$ac_ext <<_ACEOF | |
21734 | /* end confdefs.h. */ | |
21735 | #include <sys/types.h> | |
21736 | #include <sys/param.h> | |
21737 | int | |
21738 | main () | |
21739 | { | |
21740 | ||
21741 | #if BYTE_ORDER != BIG_ENDIAN | |
21742 | not big endian | |
21743 | #endif | |
21744 | ; | |
21745 | return 0; | |
21746 | } | |
21747 | _ACEOF | |
21748 | rm -f conftest.$ac_objext | |
21749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21750 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21751 | ac_status=$? |
ac1cb8d3 VS |
21752 | grep -v '^ *+' conftest.er1 >conftest.err |
21753 | rm -f conftest.er1 | |
21754 | cat conftest.err >&5 | |
a848cd7e SC |
21755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21756 | (exit $ac_status); } && | |
3565d135 RR |
21757 | { ac_try='test -z "$ac_c_werror_flag" |
21758 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21760 | (eval $ac_try) 2>&5 | |
21761 | ac_status=$? | |
21762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21763 | (exit $ac_status); }; } && | |
21764 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21766 | (eval $ac_try) 2>&5 | |
21767 | ac_status=$? | |
21768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21769 | (exit $ac_status); }; }; then | |
21770 | ac_cv_c_bigendian=yes | |
21771 | else | |
21772 | echo "$as_me: failed program was:" >&5 | |
21773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21774 | ||
21775 | ac_cv_c_bigendian=no | |
21776 | fi | |
ac1cb8d3 | 21777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21778 | else |
21779 | echo "$as_me: failed program was:" >&5 | |
21780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21781 | ||
21782 | fi | |
ac1cb8d3 | 21783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21784 | if test $ac_cv_c_bigendian = unknown; then |
21785 | if test "$cross_compiling" = yes; then | |
21786 | ac_cv_c_bigendian=unknown | |
21787 | else | |
21788 | cat >conftest.$ac_ext <<_ACEOF | |
21789 | /* confdefs.h. */ | |
21790 | _ACEOF | |
21791 | cat confdefs.h >>conftest.$ac_ext | |
21792 | cat >>conftest.$ac_ext <<_ACEOF | |
21793 | /* end confdefs.h. */ | |
21794 | main () { | |
21795 | /* Are we little or big endian? From Harbison&Steele. */ | |
21796 | union | |
21797 | { | |
21798 | long l; | |
21799 | char c[sizeof (long)]; | |
21800 | } u; | |
21801 | u.l = 1; | |
21802 | exit (u.c[sizeof (long) - 1] == 1); | |
21803 | } | |
21804 | _ACEOF | |
21805 | rm -f conftest$ac_exeext | |
21806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21807 | (eval $ac_link) 2>&5 | |
21808 | ac_status=$? | |
21809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21810 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21812 | (eval $ac_try) 2>&5 | |
21813 | ac_status=$? | |
21814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21815 | (exit $ac_status); }; }; then | |
21816 | ac_cv_c_bigendian=no | |
21817 | else | |
21818 | echo "$as_me: program exited with status $ac_status" >&5 | |
21819 | echo "$as_me: failed program was:" >&5 | |
21820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21821 | ||
21822 | ( exit $ac_status ) | |
21823 | ac_cv_c_bigendian=yes | |
21824 | fi | |
ac1cb8d3 | 21825 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21826 | fi |
21827 | fi | |
21828 | fi | |
21829 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
21830 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
21831 | if test $ac_cv_c_bigendian = unknown; then | |
21832 | { 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 | |
21833 | 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;} | |
21834 | fi | |
21835 | if test $ac_cv_c_bigendian = yes; then | |
21836 | cat >>confdefs.h <<\_ACEOF | |
21837 | #define WORDS_BIGENDIAN 1 | |
21838 | _ACEOF | |
21839 | ||
21840 | fi | |
21841 | ||
21842 | ||
21843 | ac_ext=cc | |
21844 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21845 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21846 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21847 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21848 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
21849 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
21850 | if test -z "$CXXCPP"; then | |
21851 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
21852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21853 | else | |
21854 | # Double quotes because CXXCPP needs to be expanded | |
21855 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
21856 | do | |
21857 | ac_preproc_ok=false | |
21858 | for ac_cxx_preproc_warn_flag in '' yes | |
21859 | do | |
21860 | # Use a header file that comes with gcc, so configuring glibc | |
21861 | # with a fresh cross-compiler works. | |
21862 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21863 | # <limits.h> exists even on freestanding compilers. | |
21864 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21865 | # not just through cpp. "Syntax error" is here to catch this case. | |
21866 | cat >conftest.$ac_ext <<_ACEOF | |
21867 | /* confdefs.h. */ | |
21868 | _ACEOF | |
21869 | cat confdefs.h >>conftest.$ac_ext | |
21870 | cat >>conftest.$ac_ext <<_ACEOF | |
21871 | /* end confdefs.h. */ | |
21872 | #ifdef __STDC__ | |
21873 | # include <limits.h> | |
21874 | #else | |
21875 | # include <assert.h> | |
21876 | #endif | |
ac1cb8d3 | 21877 | Syntax error |
a848cd7e SC |
21878 | _ACEOF |
21879 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21880 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21881 | ac_status=$? | |
21882 | grep -v '^ *+' conftest.er1 >conftest.err | |
21883 | rm -f conftest.er1 | |
21884 | cat conftest.err >&5 | |
21885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21886 | (exit $ac_status); } >/dev/null; then | |
21887 | if test -s conftest.err; then | |
21888 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21889 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21890 | else |
21891 | ac_cpp_err= | |
21892 | fi | |
21893 | else | |
21894 | ac_cpp_err=yes | |
21895 | fi | |
21896 | if test -z "$ac_cpp_err"; then | |
21897 | : | |
21898 | else | |
21899 | echo "$as_me: failed program was:" >&5 | |
21900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21901 | ||
21902 | # Broken: fails on valid input. | |
21903 | continue | |
21904 | fi | |
21905 | rm -f conftest.err conftest.$ac_ext | |
21906 | ||
21907 | # OK, works on sane cases. Now check whether non-existent headers | |
21908 | # can be detected and how. | |
21909 | cat >conftest.$ac_ext <<_ACEOF | |
21910 | /* confdefs.h. */ | |
21911 | _ACEOF | |
21912 | cat confdefs.h >>conftest.$ac_ext | |
21913 | cat >>conftest.$ac_ext <<_ACEOF | |
21914 | /* end confdefs.h. */ | |
21915 | #include <ac_nonexistent.h> | |
21916 | _ACEOF | |
21917 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21918 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21919 | ac_status=$? | |
21920 | grep -v '^ *+' conftest.er1 >conftest.err | |
21921 | rm -f conftest.er1 | |
21922 | cat conftest.err >&5 | |
21923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21924 | (exit $ac_status); } >/dev/null; then | |
21925 | if test -s conftest.err; then | |
21926 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21927 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21928 | else |
21929 | ac_cpp_err= | |
21930 | fi | |
21931 | else | |
21932 | ac_cpp_err=yes | |
21933 | fi | |
21934 | if test -z "$ac_cpp_err"; then | |
21935 | # Broken: success on invalid input. | |
21936 | continue | |
21937 | else | |
21938 | echo "$as_me: failed program was:" >&5 | |
21939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21940 | ||
21941 | # Passes both tests. | |
21942 | ac_preproc_ok=: | |
21943 | break | |
21944 | fi | |
21945 | rm -f conftest.err conftest.$ac_ext | |
21946 | ||
21947 | done | |
21948 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
21949 | rm -f conftest.err conftest.$ac_ext | |
21950 | if $ac_preproc_ok; then | |
21951 | break | |
21952 | fi | |
21953 | ||
21954 | done | |
21955 | ac_cv_prog_CXXCPP=$CXXCPP | |
21956 | ||
21957 | fi | |
21958 | CXXCPP=$ac_cv_prog_CXXCPP | |
21959 | else | |
21960 | ac_cv_prog_CXXCPP=$CXXCPP | |
21961 | fi | |
21962 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
21963 | echo "${ECHO_T}$CXXCPP" >&6 | |
21964 | ac_preproc_ok=false | |
21965 | for ac_cxx_preproc_warn_flag in '' yes | |
21966 | do | |
21967 | # Use a header file that comes with gcc, so configuring glibc | |
21968 | # with a fresh cross-compiler works. | |
21969 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21970 | # <limits.h> exists even on freestanding compilers. | |
21971 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21972 | # not just through cpp. "Syntax error" is here to catch this case. | |
21973 | cat >conftest.$ac_ext <<_ACEOF | |
21974 | /* confdefs.h. */ | |
21975 | _ACEOF | |
21976 | cat confdefs.h >>conftest.$ac_ext | |
21977 | cat >>conftest.$ac_ext <<_ACEOF | |
21978 | /* end confdefs.h. */ | |
21979 | #ifdef __STDC__ | |
21980 | # include <limits.h> | |
21981 | #else | |
21982 | # include <assert.h> | |
21983 | #endif | |
ac1cb8d3 | 21984 | Syntax error |
a848cd7e SC |
21985 | _ACEOF |
21986 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21987 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21988 | ac_status=$? | |
21989 | grep -v '^ *+' conftest.er1 >conftest.err | |
21990 | rm -f conftest.er1 | |
21991 | cat conftest.err >&5 | |
21992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21993 | (exit $ac_status); } >/dev/null; then | |
21994 | if test -s conftest.err; then | |
21995 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21996 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21997 | else |
21998 | ac_cpp_err= | |
21999 | fi | |
22000 | else | |
22001 | ac_cpp_err=yes | |
22002 | fi | |
22003 | if test -z "$ac_cpp_err"; then | |
22004 | : | |
22005 | else | |
22006 | echo "$as_me: failed program was:" >&5 | |
22007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22008 | ||
22009 | # Broken: fails on valid input. | |
22010 | continue | |
22011 | fi | |
22012 | rm -f conftest.err conftest.$ac_ext | |
22013 | ||
22014 | # OK, works on sane cases. Now check whether non-existent headers | |
22015 | # can be detected and how. | |
22016 | cat >conftest.$ac_ext <<_ACEOF | |
22017 | /* confdefs.h. */ | |
22018 | _ACEOF | |
22019 | cat confdefs.h >>conftest.$ac_ext | |
22020 | cat >>conftest.$ac_ext <<_ACEOF | |
22021 | /* end confdefs.h. */ | |
22022 | #include <ac_nonexistent.h> | |
22023 | _ACEOF | |
22024 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22025 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22026 | ac_status=$? | |
22027 | grep -v '^ *+' conftest.er1 >conftest.err | |
22028 | rm -f conftest.er1 | |
22029 | cat conftest.err >&5 | |
22030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22031 | (exit $ac_status); } >/dev/null; then | |
22032 | if test -s conftest.err; then | |
22033 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22034 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22035 | else |
22036 | ac_cpp_err= | |
22037 | fi | |
22038 | else | |
22039 | ac_cpp_err=yes | |
22040 | fi | |
22041 | if test -z "$ac_cpp_err"; then | |
22042 | # Broken: success on invalid input. | |
22043 | continue | |
22044 | else | |
22045 | echo "$as_me: failed program was:" >&5 | |
22046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22047 | ||
22048 | # Passes both tests. | |
22049 | ac_preproc_ok=: | |
22050 | break | |
22051 | fi | |
22052 | rm -f conftest.err conftest.$ac_ext | |
22053 | ||
22054 | done | |
22055 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22056 | rm -f conftest.err conftest.$ac_ext | |
22057 | if $ac_preproc_ok; then | |
22058 | : | |
22059 | else | |
22060 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
22061 | See \`config.log' for more details." >&5 | |
22062 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
22063 | See \`config.log' for more details." >&2;} | |
22064 | { (exit 1); exit 1; }; } | |
22065 | fi | |
22066 | ||
22067 | ac_ext=cc | |
22068 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22069 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22070 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22071 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22072 | ||
22073 | ||
22074 | ||
22075 | ||
22076 | ||
22077 | ac_ext=cc | |
22078 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22079 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22080 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22081 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22082 | ||
22083 | ||
22084 | ||
22085 | for ac_header in iostream | |
22086 | do | |
22087 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22088 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22089 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22090 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22091 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22093 | fi | |
22094 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22095 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22096 | else | |
22097 | # Is the header compilable? | |
22098 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22099 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22100 | cat >conftest.$ac_ext <<_ACEOF | |
22101 | /* confdefs.h. */ | |
22102 | _ACEOF | |
22103 | cat confdefs.h >>conftest.$ac_ext | |
22104 | cat >>conftest.$ac_ext <<_ACEOF | |
22105 | /* end confdefs.h. */ | |
22106 | $ac_includes_default | |
22107 | #include <$ac_header> | |
22108 | _ACEOF | |
22109 | rm -f conftest.$ac_objext | |
22110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22111 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22112 | ac_status=$? |
ac1cb8d3 VS |
22113 | grep -v '^ *+' conftest.er1 >conftest.err |
22114 | rm -f conftest.er1 | |
22115 | cat conftest.err >&5 | |
a848cd7e SC |
22116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22117 | (exit $ac_status); } && | |
3565d135 RR |
22118 | { ac_try='test -z "$ac_cxx_werror_flag" |
22119 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
22125 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22127 | (eval $ac_try) 2>&5 | |
22128 | ac_status=$? | |
22129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22130 | (exit $ac_status); }; }; then | |
22131 | ac_header_compiler=yes | |
22132 | else | |
22133 | echo "$as_me: failed program was:" >&5 | |
22134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22135 | ||
22136 | ac_header_compiler=no | |
22137 | fi | |
ac1cb8d3 | 22138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22139 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22140 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22141 | ||
22142 | # Is the header present? | |
22143 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22144 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22145 | cat >conftest.$ac_ext <<_ACEOF | |
22146 | /* confdefs.h. */ | |
22147 | _ACEOF | |
22148 | cat confdefs.h >>conftest.$ac_ext | |
22149 | cat >>conftest.$ac_ext <<_ACEOF | |
22150 | /* end confdefs.h. */ | |
22151 | #include <$ac_header> | |
22152 | _ACEOF | |
22153 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22154 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22155 | ac_status=$? | |
22156 | grep -v '^ *+' conftest.er1 >conftest.err | |
22157 | rm -f conftest.er1 | |
22158 | cat conftest.err >&5 | |
22159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22160 | (exit $ac_status); } >/dev/null; then | |
22161 | if test -s conftest.err; then | |
22162 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22163 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22164 | else |
22165 | ac_cpp_err= | |
22166 | fi | |
22167 | else | |
22168 | ac_cpp_err=yes | |
22169 | fi | |
22170 | if test -z "$ac_cpp_err"; then | |
22171 | ac_header_preproc=yes | |
22172 | else | |
22173 | echo "$as_me: failed program was:" >&5 | |
22174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22175 | ||
22176 | ac_header_preproc=no | |
22177 | fi | |
22178 | rm -f conftest.err conftest.$ac_ext | |
22179 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22180 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22181 | ||
22182 | # So? What about this header? | |
ac1cb8d3 VS |
22183 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22184 | yes:no: ) | |
a848cd7e SC |
22185 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22186 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22187 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22188 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22189 | ac_header_preproc=yes | |
a848cd7e | 22190 | ;; |
ac1cb8d3 | 22191 | no:yes:* ) |
a848cd7e SC |
22192 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22193 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22194 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22195 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22196 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22197 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22198 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22199 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22200 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22201 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22202 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22203 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22204 | ( |
22205 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22206 | ## ----------------------------------------- ## |
22207 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22208 | ## ----------------------------------------- ## | |
a848cd7e SC |
22209 | _ASBOX |
22210 | ) | | |
22211 | sed "s/^/$as_me: WARNING: /" >&2 | |
22212 | ;; | |
22213 | esac | |
22214 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22215 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22216 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22218 | else | |
ac1cb8d3 | 22219 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22220 | fi |
22221 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22222 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22223 | ||
22224 | fi | |
22225 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22226 | cat >>confdefs.h <<_ACEOF | |
22227 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22228 | _ACEOF | |
22229 | ||
22230 | fi | |
22231 | ||
22232 | done | |
22233 | ||
22234 | ||
22235 | if test "$ac_cv_header_iostream" = "yes" ; then | |
22236 | : | |
22237 | else | |
22238 | cat >>confdefs.h <<\_ACEOF | |
22239 | #define wxUSE_IOSTREAMH 1 | |
22240 | _ACEOF | |
22241 | ||
22242 | fi | |
22243 | ||
22244 | ac_ext=c | |
22245 | ac_cpp='$CPP $CPPFLAGS' | |
22246 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22247 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22248 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22249 | ||
22250 | ||
22251 | ||
22252 | ||
22253 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
22254 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
22255 | if test "${wx_cv_cpp_bool+set}" = set; then | |
22256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22257 | else | |
22258 | ||
22259 | ||
22260 | ||
22261 | ac_ext=cc | |
22262 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22263 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22264 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22265 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22266 | ||
22267 | ||
22268 | cat >conftest.$ac_ext <<_ACEOF | |
22269 | /* confdefs.h. */ | |
22270 | _ACEOF | |
22271 | cat confdefs.h >>conftest.$ac_ext | |
22272 | cat >>conftest.$ac_ext <<_ACEOF | |
22273 | /* end confdefs.h. */ | |
22274 | ||
22275 | ||
22276 | int | |
22277 | main () | |
22278 | { | |
22279 | ||
22280 | bool b = true; | |
22281 | ||
22282 | return 0; | |
22283 | ||
22284 | ; | |
22285 | return 0; | |
22286 | } | |
22287 | _ACEOF | |
22288 | rm -f conftest.$ac_objext | |
22289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22290 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22291 | ac_status=$? |
ac1cb8d3 VS |
22292 | grep -v '^ *+' conftest.er1 >conftest.err |
22293 | rm -f conftest.er1 | |
22294 | cat conftest.err >&5 | |
a848cd7e SC |
22295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22296 | (exit $ac_status); } && | |
3565d135 RR |
22297 | { ac_try='test -z "$ac_cxx_werror_flag" |
22298 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22300 | (eval $ac_try) 2>&5 | |
22301 | ac_status=$? | |
22302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22303 | (exit $ac_status); }; } && | |
22304 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22306 | (eval $ac_try) 2>&5 | |
22307 | ac_status=$? | |
22308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22309 | (exit $ac_status); }; }; then | |
22310 | ||
22311 | wx_cv_cpp_bool=yes | |
22312 | ||
22313 | else | |
22314 | echo "$as_me: failed program was:" >&5 | |
22315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22316 | ||
22317 | ||
22318 | wx_cv_cpp_bool=no | |
22319 | ||
22320 | ||
22321 | fi | |
ac1cb8d3 | 22322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22323 | |
22324 | ac_ext=c | |
22325 | ac_cpp='$CPP $CPPFLAGS' | |
22326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22329 | ||
22330 | ||
22331 | fi | |
22332 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
22333 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
22334 | ||
22335 | if test "$wx_cv_cpp_bool" = "yes"; then | |
22336 | cat >>confdefs.h <<\_ACEOF | |
22337 | #define HAVE_BOOL 1 | |
22338 | _ACEOF | |
22339 | ||
22340 | fi | |
22341 | ||
22342 | ||
22343 | ||
22344 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
22345 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
22346 | if test "${wx_cv_explicit+set}" = set; then | |
22347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22348 | else | |
22349 | ||
22350 | ||
22351 | ||
22352 | ac_ext=cc | |
22353 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22354 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22355 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22356 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22357 | ||
22358 | ||
22359 | cat >conftest.$ac_ext <<_ACEOF | |
22360 | /* confdefs.h. */ | |
22361 | _ACEOF | |
22362 | cat confdefs.h >>conftest.$ac_ext | |
22363 | cat >>conftest.$ac_ext <<_ACEOF | |
22364 | /* end confdefs.h. */ | |
22365 | ||
22366 | class Foo { public: explicit Foo(int) {} }; | |
22367 | ||
22368 | int | |
22369 | main () | |
22370 | { | |
22371 | ||
22372 | return 0; | |
22373 | ||
22374 | ; | |
22375 | return 0; | |
22376 | } | |
22377 | _ACEOF | |
22378 | rm -f conftest.$ac_objext | |
22379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22380 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22381 | ac_status=$? |
ac1cb8d3 VS |
22382 | grep -v '^ *+' conftest.er1 >conftest.err |
22383 | rm -f conftest.er1 | |
22384 | cat conftest.err >&5 | |
a848cd7e SC |
22385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22386 | (exit $ac_status); } && | |
3565d135 RR |
22387 | { ac_try='test -z "$ac_cxx_werror_flag" |
22388 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22390 | (eval $ac_try) 2>&5 | |
22391 | ac_status=$? | |
22392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22393 | (exit $ac_status); }; } && | |
22394 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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 | ||
22401 | cat >conftest.$ac_ext <<_ACEOF | |
22402 | /* confdefs.h. */ | |
22403 | _ACEOF | |
22404 | cat confdefs.h >>conftest.$ac_ext | |
22405 | cat >>conftest.$ac_ext <<_ACEOF | |
22406 | /* end confdefs.h. */ | |
22407 | ||
22408 | class Foo { public: explicit Foo(int) {} }; | |
22409 | static void TakeFoo(const Foo& foo) { } | |
22410 | ||
22411 | int | |
22412 | main () | |
22413 | { | |
22414 | ||
22415 | TakeFoo(17); | |
22416 | return 0; | |
22417 | ||
22418 | ; | |
22419 | return 0; | |
22420 | } | |
22421 | _ACEOF | |
22422 | rm -f conftest.$ac_objext | |
22423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22424 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22425 | ac_status=$? |
ac1cb8d3 VS |
22426 | grep -v '^ *+' conftest.er1 >conftest.err |
22427 | rm -f conftest.er1 | |
22428 | cat conftest.err >&5 | |
a848cd7e SC |
22429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22430 | (exit $ac_status); } && | |
3565d135 RR |
22431 | { ac_try='test -z "$ac_cxx_werror_flag" |
22432 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22434 | (eval $ac_try) 2>&5 | |
22435 | ac_status=$? | |
22436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22437 | (exit $ac_status); }; } && | |
22438 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22440 | (eval $ac_try) 2>&5 | |
22441 | ac_status=$? | |
22442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22443 | (exit $ac_status); }; }; then | |
22444 | wx_cv_explicit=no | |
22445 | else | |
22446 | echo "$as_me: failed program was:" >&5 | |
22447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22448 | ||
22449 | wx_cv_explicit=yes | |
22450 | ||
22451 | fi | |
ac1cb8d3 | 22452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22453 | |
22454 | else | |
22455 | echo "$as_me: failed program was:" >&5 | |
22456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22457 | ||
22458 | wx_cv_explicit=no | |
22459 | ||
22460 | fi | |
ac1cb8d3 | 22461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22462 | |
22463 | ac_ext=c | |
22464 | ac_cpp='$CPP $CPPFLAGS' | |
22465 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22466 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22467 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22468 | ||
22469 | ||
22470 | fi | |
22471 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
22472 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
22473 | ||
22474 | if test "$wx_cv_explicit" = "yes"; then | |
22475 | cat >>confdefs.h <<\_ACEOF | |
22476 | #define HAVE_EXPLICIT 1 | |
22477 | _ACEOF | |
22478 | ||
22479 | fi | |
22480 | ||
22481 | ||
22482 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
22483 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
22484 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
22485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22486 | else | |
22487 | ||
22488 | ||
22489 | ac_ext=cc | |
22490 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22491 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22492 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22493 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22494 | ||
22495 | cat >conftest.$ac_ext <<_ACEOF | |
22496 | /* confdefs.h. */ | |
22497 | _ACEOF | |
22498 | cat confdefs.h >>conftest.$ac_ext | |
22499 | cat >>conftest.$ac_ext <<_ACEOF | |
22500 | /* end confdefs.h. */ | |
22501 | ||
22502 | int | |
22503 | main () | |
22504 | { | |
22505 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
22506 | ; | |
22507 | return 0; | |
22508 | } | |
22509 | _ACEOF | |
22510 | rm -f conftest.$ac_objext | |
22511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22512 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22513 | ac_status=$? |
ac1cb8d3 VS |
22514 | grep -v '^ *+' conftest.er1 >conftest.err |
22515 | rm -f conftest.er1 | |
22516 | cat conftest.err >&5 | |
a848cd7e SC |
22517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22518 | (exit $ac_status); } && | |
3565d135 RR |
22519 | { ac_try='test -z "$ac_cxx_werror_flag" |
22520 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22522 | (eval $ac_try) 2>&5 | |
22523 | ac_status=$? | |
22524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22525 | (exit $ac_status); }; } && | |
22526 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22528 | (eval $ac_try) 2>&5 | |
22529 | ac_status=$? | |
22530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22531 | (exit $ac_status); }; }; then | |
22532 | ac_cv_cxx_const_cast=yes | |
22533 | else | |
22534 | echo "$as_me: failed program was:" >&5 | |
22535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22536 | ||
22537 | ac_cv_cxx_const_cast=no | |
22538 | fi | |
ac1cb8d3 | 22539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22540 | ac_ext=c |
22541 | ac_cpp='$CPP $CPPFLAGS' | |
22542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22545 | ||
22546 | ||
22547 | fi | |
22548 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
22549 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
22550 | if test "$ac_cv_cxx_const_cast" = yes; then | |
22551 | ||
22552 | cat >>confdefs.h <<\_ACEOF | |
22553 | #define HAVE_CONST_CAST | |
22554 | _ACEOF | |
22555 | ||
22556 | fi | |
22557 | ||
7714864e RL |
22558 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
22559 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
22560 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
22561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22562 | else | |
22563 | ||
22564 | ||
22565 | ac_ext=cc | |
22566 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22567 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22568 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22569 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22570 | ||
22571 | cat >conftest.$ac_ext <<_ACEOF | |
22572 | /* confdefs.h. */ | |
22573 | _ACEOF | |
22574 | cat confdefs.h >>conftest.$ac_ext | |
22575 | cat >>conftest.$ac_ext <<_ACEOF | |
22576 | /* end confdefs.h. */ | |
22577 | #include <typeinfo> | |
22578 | class Base { public : Base () {} virtual void f () = 0;}; | |
22579 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22580 | class Unrelated { public : Unrelated () {} }; | |
22581 | int g (Unrelated&) { return 0; } | |
22582 | int | |
22583 | main () | |
22584 | { | |
22585 | ||
22586 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
22587 | ; | |
22588 | return 0; | |
22589 | } | |
22590 | _ACEOF | |
22591 | rm -f conftest.$ac_objext | |
22592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22593 | (eval $ac_compile) 2>conftest.er1 | |
22594 | ac_status=$? | |
22595 | grep -v '^ *+' conftest.er1 >conftest.err | |
22596 | rm -f conftest.er1 | |
22597 | cat conftest.err >&5 | |
22598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22599 | (exit $ac_status); } && | |
3565d135 RR |
22600 | { ac_try='test -z "$ac_cxx_werror_flag" |
22601 | || test ! -s conftest.err' | |
7714864e RL |
22602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22603 | (eval $ac_try) 2>&5 | |
22604 | ac_status=$? | |
22605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22606 | (exit $ac_status); }; } && | |
22607 | { ac_try='test -s conftest.$ac_objext' | |
22608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22609 | (eval $ac_try) 2>&5 | |
22610 | ac_status=$? | |
22611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22612 | (exit $ac_status); }; }; then | |
22613 | ac_cv_cxx_reinterpret_cast=yes | |
22614 | else | |
22615 | echo "$as_me: failed program was:" >&5 | |
22616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22617 | ||
22618 | ac_cv_cxx_reinterpret_cast=no | |
22619 | fi | |
22620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22621 | ac_ext=c | |
22622 | ac_cpp='$CPP $CPPFLAGS' | |
22623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22626 | ||
22627 | ||
22628 | fi | |
22629 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
22630 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
22631 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
22632 | ||
22633 | cat >>confdefs.h <<\_ACEOF | |
22634 | #define HAVE_REINTERPRET_CAST | |
22635 | _ACEOF | |
22636 | ||
22637 | fi | |
22638 | ||
a848cd7e SC |
22639 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
22640 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
22641 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
22642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22643 | else | |
22644 | ||
22645 | ||
22646 | ac_ext=cc | |
22647 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22648 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22649 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22650 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22651 | ||
22652 | cat >conftest.$ac_ext <<_ACEOF | |
22653 | /* confdefs.h. */ | |
22654 | _ACEOF | |
22655 | cat confdefs.h >>conftest.$ac_ext | |
22656 | cat >>conftest.$ac_ext <<_ACEOF | |
22657 | /* end confdefs.h. */ | |
22658 | #include <typeinfo> | |
22659 | class Base { public : Base () {} virtual void f () = 0; }; | |
22660 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22661 | int g (Derived&) { return 0; } | |
22662 | int | |
22663 | main () | |
22664 | { | |
22665 | ||
22666 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
22667 | ; | |
22668 | return 0; | |
22669 | } | |
22670 | _ACEOF | |
22671 | rm -f conftest.$ac_objext | |
22672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22673 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22674 | ac_status=$? |
ac1cb8d3 VS |
22675 | grep -v '^ *+' conftest.er1 >conftest.err |
22676 | rm -f conftest.er1 | |
22677 | cat conftest.err >&5 | |
a848cd7e SC |
22678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22679 | (exit $ac_status); } && | |
3565d135 RR |
22680 | { ac_try='test -z "$ac_cxx_werror_flag" |
22681 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22683 | (eval $ac_try) 2>&5 | |
22684 | ac_status=$? | |
22685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22686 | (exit $ac_status); }; } && | |
22687 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22689 | (eval $ac_try) 2>&5 | |
22690 | ac_status=$? | |
22691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22692 | (exit $ac_status); }; }; then | |
22693 | ac_cv_cxx_static_cast=yes | |
22694 | else | |
22695 | echo "$as_me: failed program was:" >&5 | |
22696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22697 | ||
22698 | ac_cv_cxx_static_cast=no | |
22699 | fi | |
ac1cb8d3 | 22700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22701 | ac_ext=c |
22702 | ac_cpp='$CPP $CPPFLAGS' | |
22703 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22704 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22705 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22706 | ||
22707 | ||
22708 | fi | |
22709 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
22710 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
22711 | if test "$ac_cv_cxx_static_cast" = yes; then | |
22712 | ||
22713 | cat >>confdefs.h <<\_ACEOF | |
22714 | #define HAVE_STATIC_CAST | |
22715 | _ACEOF | |
22716 | ||
22717 | fi | |
22718 | ||
22719 | ||
3c28b7cb | 22720 | if test "x$SUNCXX" = xyes; then |
c92ad099 | 22721 | CXXFLAGS="-features=tmplife $CXXFLAGS" |
3c28b7cb MW |
22722 | fi |
22723 | ||
9122d155 | 22724 | if test "x$SUNCC" = xyes; then |
c92ad099 | 22725 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
22726 | fi |
22727 | ||
0ad5d837 | 22728 | if test "x$SGICC" = "xyes"; then |
c92ad099 | 22729 | CFLAGS="-woff 3970 $CFLAGS" |
0ad5d837 VZ |
22730 | fi |
22731 | if test "x$SGICXX" = "xyes"; then | |
c92ad099 | 22732 | CXXFLAGS="-woff 3970 $CXXFLAGS" |
0ad5d837 VZ |
22733 | fi |
22734 | ||
2eef8513 | 22735 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 22736 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
22737 | fi |
22738 | if test "x$HPCXX" = "xyes"; then | |
c92ad099 | 22739 | CXXFLAGS="+W 2340 $CXXFLAGS" |
2eef8513 VZ |
22740 | fi |
22741 | ||
22742 | if test "x$COMPAQCXX" = "xyes"; then | |
22743 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
22744 | fi | |
22745 | ||
f56c22b4 | 22746 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
a848cd7e SC |
22747 | ac_ext=cc |
22748 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22749 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22750 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22751 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22752 | ||
22753 | ||
f56c22b4 MW |
22754 | if test "$wxUSE_UNICODE" = "yes"; then |
22755 | std_string="std::wstring" | |
22756 | char_type="wchar_t" | |
22757 | else | |
22758 | std_string="std::string" | |
22759 | char_type="char" | |
22760 | fi | |
22761 | ||
22762 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
22763 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
22764 | cat >conftest.$ac_ext <<_ACEOF |
22765 | /* confdefs.h. */ | |
22766 | _ACEOF | |
22767 | cat confdefs.h >>conftest.$ac_ext | |
22768 | cat >>conftest.$ac_ext <<_ACEOF | |
22769 | /* end confdefs.h. */ | |
22770 | #include <string> | |
a848cd7e SC |
22771 | int |
22772 | main () | |
22773 | { | |
f56c22b4 | 22774 | $std_string foo; |
a848cd7e SC |
22775 | ; |
22776 | return 0; | |
22777 | } | |
22778 | _ACEOF | |
22779 | rm -f conftest.$ac_objext | |
22780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22781 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22782 | ac_status=$? |
ac1cb8d3 VS |
22783 | grep -v '^ *+' conftest.er1 >conftest.err |
22784 | rm -f conftest.er1 | |
22785 | cat conftest.err >&5 | |
a848cd7e SC |
22786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22787 | (exit $ac_status); } && | |
3565d135 RR |
22788 | { ac_try='test -z "$ac_cxx_werror_flag" |
22789 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22791 | (eval $ac_try) 2>&5 | |
22792 | ac_status=$? | |
22793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22794 | (exit $ac_status); }; } && | |
22795 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22797 | (eval $ac_try) 2>&5 | |
22798 | ac_status=$? | |
22799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22800 | (exit $ac_status); }; }; then | |
22801 | echo "$as_me:$LINENO: result: yes" >&5 | |
22802 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
22803 | cat >>confdefs.h <<\_ACEOF |
22804 | #define HAVE_STD_WSTRING 1 | |
22805 | _ACEOF | |
22806 | ||
a848cd7e SC |
22807 | else |
22808 | echo "$as_me: failed program was:" >&5 | |
22809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22810 | ||
22811 | echo "$as_me:$LINENO: result: no" >&5 | |
22812 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
22813 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
22814 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
22815 | cat >conftest.$ac_ext <<_ACEOF |
22816 | /* confdefs.h. */ | |
22817 | _ACEOF | |
22818 | cat confdefs.h >>conftest.$ac_ext | |
22819 | cat >>conftest.$ac_ext <<_ACEOF | |
22820 | /* end confdefs.h. */ | |
22821 | ||
22822 | #ifdef HAVE_WCHAR_H | |
22823 | # ifdef __CYGWIN__ | |
22824 | # include <stddef.h> | |
22825 | # endif | |
22826 | # include <wchar.h> | |
22827 | #endif | |
22828 | #ifdef HAVE_STDLIB_H | |
22829 | # include <stdlib.h> | |
22830 | #endif | |
22831 | #include <stdio.h> | |
22832 | #include <string> | |
22833 | ||
22834 | int | |
22835 | main () | |
22836 | { | |
f56c22b4 MW |
22837 | std::basic_string<$char_type> foo; |
22838 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
22839 | ; |
22840 | return 0; | |
22841 | } | |
22842 | _ACEOF | |
22843 | rm -f conftest.$ac_objext | |
22844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22845 | (eval $ac_compile) 2>conftest.er1 | |
22846 | ac_status=$? | |
22847 | grep -v '^ *+' conftest.er1 >conftest.err | |
22848 | rm -f conftest.er1 | |
22849 | cat conftest.err >&5 | |
22850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22851 | (exit $ac_status); } && | |
3565d135 RR |
22852 | { ac_try='test -z "$ac_cxx_werror_flag" |
22853 | || test ! -s conftest.err' | |
0a08f02a MB |
22854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22855 | (eval $ac_try) 2>&5 | |
22856 | ac_status=$? | |
22857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22858 | (exit $ac_status); }; } && | |
22859 | { ac_try='test -s conftest.$ac_objext' | |
22860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22861 | (eval $ac_try) 2>&5 | |
22862 | ac_status=$? | |
22863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22864 | (exit $ac_status); }; }; then | |
22865 | echo "$as_me:$LINENO: result: yes" >&5 | |
22866 | echo "${ECHO_T}yes" >&6 | |
22867 | else | |
22868 | echo "$as_me: failed program was:" >&5 | |
22869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22870 | ||
22871 | echo "$as_me:$LINENO: result: no" >&5 | |
22872 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 22873 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
22874 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
22875 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
22876 | { (exit 1); exit 1; }; } | |
22877 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
22878 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
22879 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 22880 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
22881 | else |
22882 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
22883 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
22884 | wxUSE_STD_STRING=no | |
22885 | fi | |
22886 | ||
0a08f02a | 22887 | |
a848cd7e | 22888 | fi |
ac1cb8d3 | 22889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22890 | |
0a08f02a MB |
22891 | fi |
22892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22893 | ||
22894 | ac_ext=c | |
22895 | ac_cpp='$CPP $CPPFLAGS' | |
22896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
f56c22b4 MW |
22898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
22899 | ||
22900 | fi | |
22901 | ||
22902 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
22903 | ac_ext=cc | |
22904 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22905 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22906 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22907 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22908 | ||
22909 | ||
22910 | echo "$as_me:$LINENO: checking for std::istream" >&5 | |
22911 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
22912 | if test "${ac_cv_type_std__istream+set}" = set; then | |
22913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22914 | else | |
22915 | cat >conftest.$ac_ext <<_ACEOF | |
22916 | /* confdefs.h. */ | |
22917 | _ACEOF | |
22918 | cat confdefs.h >>conftest.$ac_ext | |
22919 | cat >>conftest.$ac_ext <<_ACEOF | |
22920 | /* end confdefs.h. */ | |
22921 | #include <iostream> | |
22922 | ||
22923 | int | |
22924 | main () | |
22925 | { | |
22926 | if ((std::istream *) 0) | |
22927 | return 0; | |
22928 | if (sizeof (std::istream)) | |
22929 | return 0; | |
22930 | ; | |
22931 | return 0; | |
22932 | } | |
22933 | _ACEOF | |
22934 | rm -f conftest.$ac_objext | |
22935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22936 | (eval $ac_compile) 2>conftest.er1 | |
22937 | ac_status=$? | |
22938 | grep -v '^ *+' conftest.er1 >conftest.err | |
22939 | rm -f conftest.er1 | |
22940 | cat conftest.err >&5 | |
22941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22942 | (exit $ac_status); } && | |
3565d135 RR |
22943 | { ac_try='test -z "$ac_cxx_werror_flag" |
22944 | || test ! -s conftest.err' | |
f56c22b4 MW |
22945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22946 | (eval $ac_try) 2>&5 | |
22947 | ac_status=$? | |
22948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22949 | (exit $ac_status); }; } && | |
22950 | { ac_try='test -s conftest.$ac_objext' | |
22951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22952 | (eval $ac_try) 2>&5 | |
22953 | ac_status=$? | |
22954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22955 | (exit $ac_status); }; }; then | |
22956 | ac_cv_type_std__istream=yes | |
22957 | else | |
22958 | echo "$as_me: failed program was:" >&5 | |
22959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22960 | ||
22961 | ac_cv_type_std__istream=no | |
22962 | fi | |
22963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22964 | fi | |
22965 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
22966 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
22967 | if test $ac_cv_type_std__istream = yes; then | |
22968 | ||
22969 | cat >>confdefs.h <<_ACEOF | |
22970 | #define HAVE_STD__ISTREAM 1 | |
22971 | _ACEOF | |
22972 | ||
22973 | ||
22974 | else | |
22975 | wxUSE_STD_IOSTREAM=no | |
22976 | fi | |
22977 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
22978 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
22979 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
22980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22981 | else | |
22982 | cat >conftest.$ac_ext <<_ACEOF | |
22983 | /* confdefs.h. */ | |
22984 | _ACEOF | |
22985 | cat confdefs.h >>conftest.$ac_ext | |
22986 | cat >>conftest.$ac_ext <<_ACEOF | |
22987 | /* end confdefs.h. */ | |
22988 | #include <iostream> | |
22989 | ||
22990 | int | |
22991 | main () | |
22992 | { | |
22993 | if ((std::ostream *) 0) | |
22994 | return 0; | |
22995 | if (sizeof (std::ostream)) | |
22996 | return 0; | |
22997 | ; | |
22998 | return 0; | |
22999 | } | |
23000 | _ACEOF | |
23001 | rm -f conftest.$ac_objext | |
23002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23003 | (eval $ac_compile) 2>conftest.er1 | |
23004 | ac_status=$? | |
23005 | grep -v '^ *+' conftest.er1 >conftest.err | |
23006 | rm -f conftest.er1 | |
23007 | cat conftest.err >&5 | |
23008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23009 | (exit $ac_status); } && | |
3565d135 RR |
23010 | { ac_try='test -z "$ac_cxx_werror_flag" |
23011 | || test ! -s conftest.err' | |
f56c22b4 MW |
23012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23013 | (eval $ac_try) 2>&5 | |
23014 | ac_status=$? | |
23015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23016 | (exit $ac_status); }; } && | |
23017 | { ac_try='test -s conftest.$ac_objext' | |
23018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23019 | (eval $ac_try) 2>&5 | |
23020 | ac_status=$? | |
23021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23022 | (exit $ac_status); }; }; then | |
23023 | ac_cv_type_std__ostream=yes | |
23024 | else | |
23025 | echo "$as_me: failed program was:" >&5 | |
23026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23027 | ||
23028 | ac_cv_type_std__ostream=no | |
23029 | fi | |
23030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23031 | fi | |
23032 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
23033 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
23034 | if test $ac_cv_type_std__ostream = yes; then | |
23035 | ||
23036 | cat >>confdefs.h <<_ACEOF | |
23037 | #define HAVE_STD__OSTREAM 1 | |
23038 | _ACEOF | |
23039 | ||
23040 | ||
23041 | else | |
23042 | wxUSE_STD_IOSTREAM=no | |
23043 | fi | |
23044 | ||
23045 | ||
23046 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
23047 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
23048 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
23049 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
23050 | { (exit 1); exit 1; }; } | |
23051 | else | |
23052 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 23053 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 23054 | fi |
f56c22b4 MW |
23055 | fi |
23056 | ||
23057 | ac_ext=c | |
23058 | ac_cpp='$CPP $CPPFLAGS' | |
23059 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23060 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
0a08f02a MB |
23061 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
23062 | ||
23063 | fi | |
23064 | ||
23065 | if test "$wxUSE_STL" = "yes"; then | |
23066 | ac_ext=cc | |
23067 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23068 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23069 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23070 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23071 | ||
23072 | ||
23073 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
23074 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
23075 | cat >conftest.$ac_ext <<_ACEOF |
23076 | /* confdefs.h. */ | |
23077 | _ACEOF | |
23078 | cat confdefs.h >>conftest.$ac_ext | |
23079 | cat >>conftest.$ac_ext <<_ACEOF | |
23080 | /* end confdefs.h. */ | |
23081 | #include <string> | |
0a08f02a MB |
23082 | #include <functional> |
23083 | #include <algorithm> | |
23084 | #include <vector> | |
23085 | #include <list> | |
a848cd7e SC |
23086 | int |
23087 | main () | |
23088 | { | |
0a08f02a MB |
23089 | std::vector<int> moo; |
23090 | std::list<int> foo; | |
23091 | std::vector<int>::iterator it = | |
23092 | std::find_if(moo.begin(), moo.end(), | |
23093 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
23094 | ; |
23095 | return 0; | |
23096 | } | |
23097 | _ACEOF | |
23098 | rm -f conftest.$ac_objext | |
23099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23100 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23101 | ac_status=$? |
ac1cb8d3 VS |
23102 | grep -v '^ *+' conftest.er1 >conftest.err |
23103 | rm -f conftest.er1 | |
23104 | cat conftest.err >&5 | |
a848cd7e SC |
23105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23106 | (exit $ac_status); } && | |
3565d135 RR |
23107 | { ac_try='test -z "$ac_cxx_werror_flag" |
23108 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23110 | (eval $ac_try) 2>&5 | |
23111 | ac_status=$? | |
23112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23113 | (exit $ac_status); }; } && | |
23114 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23116 | (eval $ac_try) 2>&5 | |
23117 | ac_status=$? | |
23118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23119 | (exit $ac_status); }; }; then | |
23120 | echo "$as_me:$LINENO: result: yes" >&5 | |
23121 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
23122 | else |
23123 | echo "$as_me: failed program was:" >&5 | |
23124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23125 | ||
23126 | echo "$as_me:$LINENO: result: no" >&5 | |
23127 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
23128 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
23129 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
23130 | { (exit 1); exit 1; }; } | |
a848cd7e | 23131 | fi |
ac1cb8d3 | 23132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23133 | |
23134 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
23135 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
23136 | cat >conftest.$ac_ext <<_ACEOF | |
23137 | /* confdefs.h. */ | |
23138 | _ACEOF | |
23139 | cat confdefs.h >>conftest.$ac_ext | |
23140 | cat >>conftest.$ac_ext <<_ACEOF | |
23141 | /* end confdefs.h. */ | |
23142 | #include <string> | |
23143 | int | |
23144 | main () | |
23145 | { | |
23146 | std::string foo, bar; | |
23147 | foo.compare(bar); | |
23148 | foo.compare(1, 1, bar); | |
23149 | foo.compare(1, 1, bar, 1, 1); | |
23150 | foo.compare(""); | |
23151 | foo.compare(1, 1, ""); | |
23152 | foo.compare(1, 1, "", 2); | |
23153 | ; | |
23154 | return 0; | |
23155 | } | |
23156 | _ACEOF | |
23157 | rm -f conftest.$ac_objext | |
23158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23159 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23160 | ac_status=$? |
ac1cb8d3 VS |
23161 | grep -v '^ *+' conftest.er1 >conftest.err |
23162 | rm -f conftest.er1 | |
23163 | cat conftest.err >&5 | |
a848cd7e SC |
23164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23165 | (exit $ac_status); } && | |
3565d135 RR |
23166 | { ac_try='test -z "$ac_cxx_werror_flag" |
23167 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23169 | (eval $ac_try) 2>&5 | |
23170 | ac_status=$? | |
23171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23172 | (exit $ac_status); }; } && | |
23173 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23175 | (eval $ac_try) 2>&5 | |
23176 | ac_status=$? | |
23177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23178 | (exit $ac_status); }; }; then | |
23179 | echo "$as_me:$LINENO: result: yes" >&5 | |
23180 | echo "${ECHO_T}yes" >&6 | |
23181 | cat >>confdefs.h <<\_ACEOF | |
23182 | #define HAVE_STD_STRING_COMPARE 1 | |
23183 | _ACEOF | |
23184 | ||
23185 | else | |
23186 | echo "$as_me: failed program was:" >&5 | |
23187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23188 | ||
23189 | echo "$as_me:$LINENO: result: no" >&5 | |
23190 | echo "${ECHO_T}no" >&6 | |
23191 | fi | |
ac1cb8d3 | 23192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23193 | |
23194 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23195 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23196 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23197 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23199 | fi | |
23200 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23201 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23202 | else | |
23203 | # Is the header compilable? | |
23204 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
23205 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
23206 | cat >conftest.$ac_ext <<_ACEOF | |
23207 | /* confdefs.h. */ | |
23208 | _ACEOF | |
23209 | cat confdefs.h >>conftest.$ac_ext | |
23210 | cat >>conftest.$ac_ext <<_ACEOF | |
23211 | /* end confdefs.h. */ | |
23212 | $ac_includes_default | |
23213 | #include <hash_map> | |
23214 | _ACEOF | |
23215 | rm -f conftest.$ac_objext | |
23216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23217 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23218 | ac_status=$? |
ac1cb8d3 VS |
23219 | grep -v '^ *+' conftest.er1 >conftest.err |
23220 | rm -f conftest.er1 | |
23221 | cat conftest.err >&5 | |
bdcade0a MB |
23222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23223 | (exit $ac_status); } && | |
3565d135 RR |
23224 | { ac_try='test -z "$ac_cxx_werror_flag" |
23225 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23227 | (eval $ac_try) 2>&5 | |
23228 | ac_status=$? | |
23229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23230 | (exit $ac_status); }; } && | |
23231 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23233 | (eval $ac_try) 2>&5 | |
23234 | ac_status=$? | |
23235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23236 | (exit $ac_status); }; }; then | |
23237 | ac_header_compiler=yes | |
23238 | else | |
23239 | echo "$as_me: failed program was:" >&5 | |
23240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23241 | ||
23242 | ac_header_compiler=no | |
23243 | fi | |
ac1cb8d3 | 23244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23245 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23246 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23247 | ||
23248 | # Is the header present? | |
23249 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
23250 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
23251 | cat >conftest.$ac_ext <<_ACEOF | |
23252 | /* confdefs.h. */ | |
23253 | _ACEOF | |
23254 | cat confdefs.h >>conftest.$ac_ext | |
23255 | cat >>conftest.$ac_ext <<_ACEOF | |
23256 | /* end confdefs.h. */ | |
23257 | #include <hash_map> | |
23258 | _ACEOF | |
23259 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23260 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23261 | ac_status=$? | |
23262 | grep -v '^ *+' conftest.er1 >conftest.err | |
23263 | rm -f conftest.er1 | |
23264 | cat conftest.err >&5 | |
23265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23266 | (exit $ac_status); } >/dev/null; then | |
23267 | if test -s conftest.err; then | |
23268 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23269 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23270 | else |
23271 | ac_cpp_err= | |
23272 | fi | |
23273 | else | |
23274 | ac_cpp_err=yes | |
23275 | fi | |
23276 | if test -z "$ac_cpp_err"; then | |
23277 | ac_header_preproc=yes | |
23278 | else | |
23279 | echo "$as_me: failed program was:" >&5 | |
23280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23281 | ||
23282 | ac_header_preproc=no | |
23283 | fi | |
23284 | rm -f conftest.err conftest.$ac_ext | |
23285 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23286 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23287 | ||
23288 | # So? What about this header? | |
ac1cb8d3 VS |
23289 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23290 | yes:no: ) | |
bdcade0a MB |
23291 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23292 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23293 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
23294 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
23295 | ac_header_preproc=yes | |
bdcade0a | 23296 | ;; |
ac1cb8d3 | 23297 | no:yes:* ) |
bdcade0a MB |
23298 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
23299 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23300 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
23301 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
23302 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
23303 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
23304 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23305 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23306 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
23307 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23308 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
23309 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23310 | ( |
23311 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23312 | ## ----------------------------------------- ## |
23313 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23314 | ## ----------------------------------------- ## | |
bdcade0a MB |
23315 | _ASBOX |
23316 | ) | | |
23317 | sed "s/^/$as_me: WARNING: /" >&2 | |
23318 | ;; | |
23319 | esac | |
23320 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23321 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23322 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23324 | else | |
23325 | ac_cv_header_hash_map=$ac_header_preproc | |
23326 | fi | |
23327 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23328 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23329 | ||
23330 | fi | |
23331 | if test $ac_cv_header_hash_map = yes; then | |
23332 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23333 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23334 | cat >conftest.$ac_ext <<_ACEOF | |
23335 | /* confdefs.h. */ | |
23336 | _ACEOF | |
23337 | cat confdefs.h >>conftest.$ac_ext | |
23338 | cat >>conftest.$ac_ext <<_ACEOF | |
23339 | /* end confdefs.h. */ | |
23340 | #include <hash_map> | |
23341 | #include <hash_set> | |
23342 | int | |
23343 | main () | |
23344 | { | |
23345 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
23346 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
23347 | ; | |
23348 | return 0; | |
23349 | } | |
23350 | _ACEOF | |
23351 | rm -f conftest.$ac_objext | |
23352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23353 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23354 | ac_status=$? |
ac1cb8d3 VS |
23355 | grep -v '^ *+' conftest.er1 >conftest.err |
23356 | rm -f conftest.er1 | |
23357 | cat conftest.err >&5 | |
bdcade0a MB |
23358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23359 | (exit $ac_status); } && | |
3565d135 RR |
23360 | { ac_try='test -z "$ac_cxx_werror_flag" |
23361 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23363 | (eval $ac_try) 2>&5 | |
23364 | ac_status=$? | |
23365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23366 | (exit $ac_status); }; } && | |
23367 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23369 | (eval $ac_try) 2>&5 | |
23370 | ac_status=$? | |
23371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23372 | (exit $ac_status); }; }; then | |
23373 | echo "$as_me:$LINENO: result: yes" >&5 | |
23374 | echo "${ECHO_T}yes" >&6 | |
23375 | cat >>confdefs.h <<\_ACEOF | |
23376 | #define HAVE_HASH_MAP 1 | |
23377 | _ACEOF | |
23378 | ||
23379 | cat >>confdefs.h <<\_ACEOF | |
23380 | #define HAVE_STD_HASH_MAP 1 | |
23381 | _ACEOF | |
23382 | ||
23383 | else | |
23384 | echo "$as_me: failed program was:" >&5 | |
23385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23386 | ||
23387 | echo "$as_me:$LINENO: result: no" >&5 | |
23388 | echo "${ECHO_T}no" >&6 | |
23389 | fi | |
ac1cb8d3 | 23390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23391 | |
23392 | fi | |
23393 | ||
23394 | ||
23395 | ||
23396 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23397 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23398 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23399 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23401 | fi | |
23402 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23403 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23404 | else | |
23405 | # Is the header compilable? | |
23406 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
23407 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
23408 | cat >conftest.$ac_ext <<_ACEOF | |
23409 | /* confdefs.h. */ | |
23410 | _ACEOF | |
23411 | cat confdefs.h >>conftest.$ac_ext | |
23412 | cat >>conftest.$ac_ext <<_ACEOF | |
23413 | /* end confdefs.h. */ | |
23414 | $ac_includes_default | |
23415 | #include <ext/hash_map> | |
23416 | _ACEOF | |
23417 | rm -f conftest.$ac_objext | |
23418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23419 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23420 | ac_status=$? |
ac1cb8d3 VS |
23421 | grep -v '^ *+' conftest.er1 >conftest.err |
23422 | rm -f conftest.er1 | |
23423 | cat conftest.err >&5 | |
bdcade0a MB |
23424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23425 | (exit $ac_status); } && | |
3565d135 RR |
23426 | { ac_try='test -z "$ac_cxx_werror_flag" |
23427 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23429 | (eval $ac_try) 2>&5 | |
23430 | ac_status=$? | |
23431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23432 | (exit $ac_status); }; } && | |
23433 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23435 | (eval $ac_try) 2>&5 | |
23436 | ac_status=$? | |
23437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23438 | (exit $ac_status); }; }; then | |
23439 | ac_header_compiler=yes | |
23440 | else | |
23441 | echo "$as_me: failed program was:" >&5 | |
23442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23443 | ||
23444 | ac_header_compiler=no | |
23445 | fi | |
ac1cb8d3 | 23446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23447 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23448 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23449 | ||
23450 | # Is the header present? | |
23451 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
23452 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
23453 | cat >conftest.$ac_ext <<_ACEOF | |
23454 | /* confdefs.h. */ | |
23455 | _ACEOF | |
23456 | cat confdefs.h >>conftest.$ac_ext | |
23457 | cat >>conftest.$ac_ext <<_ACEOF | |
23458 | /* end confdefs.h. */ | |
23459 | #include <ext/hash_map> | |
23460 | _ACEOF | |
23461 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23462 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23463 | ac_status=$? | |
23464 | grep -v '^ *+' conftest.er1 >conftest.err | |
23465 | rm -f conftest.er1 | |
23466 | cat conftest.err >&5 | |
23467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23468 | (exit $ac_status); } >/dev/null; then | |
23469 | if test -s conftest.err; then | |
23470 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23471 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23472 | else |
23473 | ac_cpp_err= | |
23474 | fi | |
23475 | else | |
23476 | ac_cpp_err=yes | |
23477 | fi | |
23478 | if test -z "$ac_cpp_err"; then | |
23479 | ac_header_preproc=yes | |
23480 | else | |
23481 | echo "$as_me: failed program was:" >&5 | |
23482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23483 | ||
23484 | ac_header_preproc=no | |
23485 | fi | |
23486 | rm -f conftest.err conftest.$ac_ext | |
23487 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23488 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23489 | ||
23490 | # So? What about this header? | |
ac1cb8d3 VS |
23491 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23492 | yes:no: ) | |
bdcade0a MB |
23493 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23494 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23495 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
23496 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
23497 | ac_header_preproc=yes | |
bdcade0a | 23498 | ;; |
ac1cb8d3 | 23499 | no:yes:* ) |
bdcade0a MB |
23500 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
23501 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23502 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
23503 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
23504 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
23505 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
23506 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23507 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23508 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
23509 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23510 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
23511 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23512 | ( |
23513 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23514 | ## ----------------------------------------- ## |
23515 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23516 | ## ----------------------------------------- ## | |
bdcade0a MB |
23517 | _ASBOX |
23518 | ) | | |
23519 | sed "s/^/$as_me: WARNING: /" >&2 | |
23520 | ;; | |
23521 | esac | |
23522 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23523 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23524 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23526 | else | |
23527 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
23528 | fi | |
23529 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23530 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23531 | ||
23532 | fi | |
23533 | if test $ac_cv_header_ext_hash_map = yes; then | |
23534 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23535 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23536 | cat >conftest.$ac_ext <<_ACEOF | |
23537 | /* confdefs.h. */ | |
23538 | _ACEOF | |
23539 | cat confdefs.h >>conftest.$ac_ext | |
23540 | cat >>conftest.$ac_ext <<_ACEOF | |
23541 | /* end confdefs.h. */ | |
23542 | #include <ext/hash_map> | |
23543 | #include <ext/hash_set> | |
23544 | int | |
23545 | main () | |
23546 | { | |
23547 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
23548 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
23549 | ; | |
23550 | return 0; | |
23551 | } | |
23552 | _ACEOF | |
23553 | rm -f conftest.$ac_objext | |
23554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23555 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23556 | ac_status=$? |
ac1cb8d3 VS |
23557 | grep -v '^ *+' conftest.er1 >conftest.err |
23558 | rm -f conftest.er1 | |
23559 | cat conftest.err >&5 | |
bdcade0a MB |
23560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23561 | (exit $ac_status); } && | |
3565d135 RR |
23562 | { ac_try='test -z "$ac_cxx_werror_flag" |
23563 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23565 | (eval $ac_try) 2>&5 | |
23566 | ac_status=$? | |
23567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23568 | (exit $ac_status); }; } && | |
23569 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23571 | (eval $ac_try) 2>&5 | |
23572 | ac_status=$? | |
23573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23574 | (exit $ac_status); }; }; then | |
23575 | echo "$as_me:$LINENO: result: yes" >&5 | |
23576 | echo "${ECHO_T}yes" >&6 | |
23577 | cat >>confdefs.h <<\_ACEOF | |
23578 | #define HAVE_EXT_HASH_MAP 1 | |
23579 | _ACEOF | |
23580 | ||
23581 | cat >>confdefs.h <<\_ACEOF | |
23582 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
23583 | _ACEOF | |
23584 | ||
23585 | else | |
23586 | echo "$as_me: failed program was:" >&5 | |
23587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23588 | ||
23589 | echo "$as_me:$LINENO: result: no" >&5 | |
23590 | echo "${ECHO_T}no" >&6 | |
23591 | fi | |
ac1cb8d3 | 23592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23593 | |
23594 | fi | |
23595 | ||
23596 | ||
a848cd7e SC |
23597 | |
23598 | ac_ext=c | |
23599 | ac_cpp='$CPP $CPPFLAGS' | |
23600 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23601 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23602 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23603 | ||
23604 | fi | |
23605 | ||
23606 | ||
23607 | SEARCH_INCLUDE="\ | |
23608 | /usr/local/include \ | |
23609 | \ | |
23610 | /usr/Motif-2.1/include \ | |
23611 | /usr/Motif-1.2/include \ | |
23612 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
23613 | \ |
23614 | /usr/dt/include \ | |
23615 | /usr/openwin/include \ | |
23616 | \ | |
23617 | /usr/include/Xm \ | |
23618 | \ | |
23619 | /usr/X11R6/include \ | |
23620 | /usr/X11R6.4/include \ | |
23621 | /usr/X11R5/include \ | |
23622 | /usr/X11R4/include \ | |
23623 | \ | |
23624 | /usr/include/X11R6 \ | |
23625 | /usr/include/X11R5 \ | |
23626 | /usr/include/X11R4 \ | |
23627 | \ | |
23628 | /usr/local/X11R6/include \ | |
23629 | /usr/local/X11R5/include \ | |
23630 | /usr/local/X11R4/include \ | |
23631 | \ | |
23632 | /usr/local/include/X11R6 \ | |
23633 | /usr/local/include/X11R5 \ | |
23634 | /usr/local/include/X11R4 \ | |
23635 | \ | |
23636 | /usr/X11/include \ | |
23637 | /usr/include/X11 \ | |
23638 | /usr/local/X11/include \ | |
23639 | /usr/local/include/X11 \ | |
23640 | \ | |
a848cd7e | 23641 | /usr/XFree86/include/X11 \ |
e051b34e MW |
23642 | /usr/pkg/include \ |
23643 | \ | |
a848cd7e SC |
23644 | /usr/openwin/share/include" |
23645 | ||
6f9cf1e6 | 23646 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 23647 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
23648 | |
23649 | case "${host}" in | |
23650 | *-*-irix6* ) | |
23651 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
23652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23653 | else | |
23654 | ||
c687b303 VZ |
23655 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
23656 | for e in a so sl dylib dll.a; do | |
23657 | libc="$d/libc.$e" | |
23658 | if test -f $libc; then | |
23659 | save_LIBS="$LIBS" | |
23660 | LIBS="$libc" | |
23661 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
23662 | int main() { return 0; } |
23663 | _ACEOF | |
23664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23666 | (eval $ac_link) 2>conftest.er1 | |
23667 | ac_status=$? | |
23668 | grep -v '^ *+' conftest.er1 >conftest.err | |
23669 | rm -f conftest.er1 | |
23670 | cat conftest.err >&5 | |
23671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23672 | (exit $ac_status); } && | |
3565d135 RR |
23673 | { ac_try='test -z "$ac_c_werror_flag" |
23674 | || test ! -s conftest.err' | |
0ad5d837 VZ |
23675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23676 | (eval $ac_try) 2>&5 | |
23677 | ac_status=$? | |
23678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23679 | (exit $ac_status); }; } && | |
23680 | { ac_try='test -s conftest$ac_exeext' | |
23681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23682 | (eval $ac_try) 2>&5 | |
23683 | ac_status=$? | |
23684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23685 | (exit $ac_status); }; }; then | |
23686 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
23687 | else | |
23688 | echo "$as_me: failed program was:" >&5 | |
23689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23690 | ||
23691 | fi | |
23692 | rm -f conftest.err conftest.$ac_objext \ | |
23693 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
23694 | LIBS="$save_LIBS" |
23695 | if test "x$wx_cv_std_libpath" != "x"; then | |
23696 | break 2 | |
23697 | fi | |
23698 | fi | |
23699 | done | |
23700 | done | |
23701 | if test "x$wx_cv_std_libpath" = "x"; then | |
23702 | wx_cv_std_libpath="lib" | |
0ad5d837 | 23703 | fi |
0ad5d837 VZ |
23704 | |
23705 | ||
23706 | fi | |
6f9cf1e6 MW |
23707 | |
23708 | ;; | |
23709 | ||
23710 | *-*-solaris2* ) | |
23711 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
23712 | wx_cv_std_libpath="lib/64" | |
23713 | else | |
23714 | wx_cv_std_libpath="lib" | |
23715 | fi | |
23716 | ;; | |
23717 | ||
23718 | *-*-linux* ) | |
23719 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
23720 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
23721 | wx_cv_std_libpath="lib64" | |
23722 | else | |
23723 | wx_cv_std_libpath="lib" | |
23724 | fi | |
c687b303 VZ |
23725 | ;; |
23726 | ||
23727 | *) | |
23728 | wx_cv_std_libpath="lib"; | |
23729 | ;; | |
23730 | esac | |
0ad5d837 | 23731 | |
6f9cf1e6 MW |
23732 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
23733 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
23734 | ||
23735 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 23736 | |
3eca31dc MW |
23737 | if test "$build" != "$host" -a "$GCC" = yes; then |
23738 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
23739 | cross_root=`dirname $cross_root` | |
23740 | cross_root=`dirname $cross_root` | |
23741 | ||
23742 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
23743 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 23744 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
23745 | |
23746 | if test -z "$PKG_CONFIG_PATH"; then | |
23747 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
23748 | export PKG_CONFIG_PATH | |
23749 | fi | |
23750 | ||
23751 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
23752 | ||
23753 | ac_find_includes= | |
23754 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
23755 | do | |
23756 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
23757 | ac_find_includes=$ac_dir | |
23758 | break | |
23759 | fi | |
23760 | done | |
23761 | ||
23762 | x_includes=$ac_find_includes | |
23763 | fi | |
23764 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
23765 | ||
0ad5d837 VZ |
23766 | ac_find_libraries= |
23767 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
23768 | do |
23769 | for ac_extension in a so sl dylib dll.a; do | |
23770 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
23771 | ac_find_libraries=$ac_dir | |
23772 | break 2 | |
23773 | fi | |
23774 | done | |
23775 | done | |
23776 | ||
23777 | x_libraries=$ac_find_libraries | |
23778 | fi | |
23779 | fi | |
23780 | fi | |
23781 | ||
a848cd7e SC |
23782 | |
23783 | cat >confcache <<\_ACEOF | |
23784 | # This file is a shell script that caches the results of configure | |
23785 | # tests run on this system so they can be shared between configure | |
23786 | # scripts and configure runs, see configure's option --config-cache. | |
23787 | # It is not useful on other systems. If it contains results you don't | |
23788 | # want to keep, you may remove or edit it. | |
23789 | # | |
23790 | # config.status only pays attention to the cache file if you give it | |
23791 | # the --recheck option to rerun configure. | |
23792 | # | |
23793 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23794 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23795 | # following values. | |
23796 | ||
23797 | _ACEOF | |
23798 | ||
23799 | # The following way of writing the cache mishandles newlines in values, | |
23800 | # but we know of no workaround that is simple, portable, and efficient. | |
23801 | # So, don't put newlines in cache variables' values. | |
23802 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
23803 | # and sets the high bit in the cache file unless we assign to the vars. | |
23804 | { | |
23805 | (set) 2>&1 | | |
23806 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
23807 | *ac_space=\ *) | |
23808 | # `set' does not quote correctly, so add quotes (double-quote | |
23809 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23810 | sed -n \ | |
ac1cb8d3 VS |
23811 | "s/'/'\\\\''/g; |
23812 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
23813 | ;; |
23814 | *) | |
23815 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23816 | sed -n \ | |
ac1cb8d3 | 23817 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
23818 | ;; |
23819 | esac; | |
23820 | } | | |
23821 | sed ' | |
23822 | t clear | |
23823 | : clear | |
23824 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23825 | t end | |
23826 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23827 | : end' >>confcache | |
23828 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
23829 | if test -w $cache_file; then | |
23830 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
23831 | cat confcache >$cache_file | |
23832 | else | |
23833 | echo "not updating unwritable cache $cache_file" | |
23834 | fi | |
23835 | fi | |
23836 | rm -f confcache | |
23837 | ||
23838 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
23839 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
23840 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
23841 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
23842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23843 | else | |
23844 | ||
23845 | cat >conftest.$ac_ext <<_ACEOF | |
23846 | /* confdefs.h. */ | |
23847 | _ACEOF | |
23848 | cat confdefs.h >>conftest.$ac_ext | |
23849 | cat >>conftest.$ac_ext <<_ACEOF | |
23850 | /* end confdefs.h. */ | |
23851 | #include <features.h> | |
23852 | int | |
23853 | main () | |
23854 | { | |
23855 | ||
23856 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 23857 | not glibc 2.1 |
a848cd7e SC |
23858 | #endif |
23859 | ||
23860 | ; | |
23861 | return 0; | |
23862 | } | |
23863 | _ACEOF | |
23864 | rm -f conftest.$ac_objext | |
23865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23866 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23867 | ac_status=$? |
ac1cb8d3 VS |
23868 | grep -v '^ *+' conftest.er1 >conftest.err |
23869 | rm -f conftest.er1 | |
23870 | cat conftest.err >&5 | |
a848cd7e SC |
23871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23872 | (exit $ac_status); } && | |
3565d135 RR |
23873 | { ac_try='test -z "$ac_c_werror_flag" |
23874 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
23880 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23882 | (eval $ac_try) 2>&5 | |
23883 | ac_status=$? | |
23884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23885 | (exit $ac_status); }; }; then | |
23886 | ||
23887 | wx_cv_lib_glibc21=yes | |
23888 | ||
23889 | else | |
23890 | echo "$as_me: failed program was:" >&5 | |
23891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23892 | ||
23893 | ||
23894 | wx_cv_lib_glibc21=no | |
23895 | ||
23896 | ||
23897 | fi | |
ac1cb8d3 | 23898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23899 | |
23900 | fi | |
23901 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
23902 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
23903 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
23904 | cat >>confdefs.h <<\_ACEOF | |
23905 | #define wxHAVE_GLIBC2 1 | |
23906 | _ACEOF | |
23907 | ||
23908 | fi | |
23909 | fi | |
23910 | ||
23911 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
23912 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
23913 | cat >>confdefs.h <<\_ACEOF | |
23914 | #define _GNU_SOURCE 1 | |
23915 | _ACEOF | |
23916 | ||
23917 | fi | |
23918 | fi | |
23919 | ||
23920 | ||
23921 | ||
23922 | if test "$wxUSE_REGEX" != "no"; then | |
23923 | cat >>confdefs.h <<\_ACEOF | |
23924 | #define wxUSE_REGEX 1 | |
23925 | _ACEOF | |
23926 | ||
23927 | ||
23928 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
23929 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
23930 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
23931 | wxUSE_REGEX=builtin | |
23932 | fi | |
23933 | ||
23934 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
23935 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23936 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
23937 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
23938 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23940 | fi | |
23941 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
23942 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
23943 | else | |
23944 | # Is the header compilable? | |
23945 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
23946 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
23947 | cat >conftest.$ac_ext <<_ACEOF | |
23948 | /* confdefs.h. */ | |
23949 | _ACEOF | |
23950 | cat confdefs.h >>conftest.$ac_ext | |
23951 | cat >>conftest.$ac_ext <<_ACEOF | |
23952 | /* end confdefs.h. */ | |
23953 | $ac_includes_default | |
23954 | #include <regex.h> | |
23955 | _ACEOF | |
23956 | rm -f conftest.$ac_objext | |
23957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23958 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23959 | ac_status=$? |
ac1cb8d3 VS |
23960 | grep -v '^ *+' conftest.er1 >conftest.err |
23961 | rm -f conftest.er1 | |
23962 | cat conftest.err >&5 | |
a848cd7e SC |
23963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23964 | (exit $ac_status); } && | |
3565d135 RR |
23965 | { ac_try='test -z "$ac_c_werror_flag" |
23966 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23968 | (eval $ac_try) 2>&5 | |
23969 | ac_status=$? | |
23970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23971 | (exit $ac_status); }; } && | |
23972 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23974 | (eval $ac_try) 2>&5 | |
23975 | ac_status=$? | |
23976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23977 | (exit $ac_status); }; }; then | |
23978 | ac_header_compiler=yes | |
23979 | else | |
23980 | echo "$as_me: failed program was:" >&5 | |
23981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23982 | ||
23983 | ac_header_compiler=no | |
23984 | fi | |
ac1cb8d3 | 23985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23986 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23987 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23988 | ||
23989 | # Is the header present? | |
23990 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
23991 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
23992 | cat >conftest.$ac_ext <<_ACEOF | |
23993 | /* confdefs.h. */ | |
23994 | _ACEOF | |
23995 | cat confdefs.h >>conftest.$ac_ext | |
23996 | cat >>conftest.$ac_ext <<_ACEOF | |
23997 | /* end confdefs.h. */ | |
23998 | #include <regex.h> | |
23999 | _ACEOF | |
24000 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24001 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24002 | ac_status=$? | |
24003 | grep -v '^ *+' conftest.er1 >conftest.err | |
24004 | rm -f conftest.er1 | |
24005 | cat conftest.err >&5 | |
24006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24007 | (exit $ac_status); } >/dev/null; then | |
24008 | if test -s conftest.err; then | |
24009 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24010 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24011 | else |
24012 | ac_cpp_err= | |
24013 | fi | |
24014 | else | |
24015 | ac_cpp_err=yes | |
24016 | fi | |
24017 | if test -z "$ac_cpp_err"; then | |
24018 | ac_header_preproc=yes | |
24019 | else | |
24020 | echo "$as_me: failed program was:" >&5 | |
24021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24022 | ||
24023 | ac_header_preproc=no | |
24024 | fi | |
24025 | rm -f conftest.err conftest.$ac_ext | |
24026 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24027 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24028 | ||
24029 | # So? What about this header? | |
ac1cb8d3 VS |
24030 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24031 | yes:no: ) | |
a848cd7e SC |
24032 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24033 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24034 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
24035 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
24036 | ac_header_preproc=yes | |
a848cd7e | 24037 | ;; |
ac1cb8d3 | 24038 | no:yes:* ) |
a848cd7e SC |
24039 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
24040 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24041 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
24042 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
24043 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
24044 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
24045 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24046 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24047 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
24048 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24049 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
24050 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24051 | ( |
24052 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24053 | ## ----------------------------------------- ## |
24054 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24055 | ## ----------------------------------------- ## | |
a848cd7e SC |
24056 | _ASBOX |
24057 | ) | | |
24058 | sed "s/^/$as_me: WARNING: /" >&2 | |
24059 | ;; | |
24060 | esac | |
24061 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24062 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24063 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24065 | else | |
24066 | ac_cv_header_regex_h=$ac_header_preproc | |
24067 | fi | |
24068 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24069 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24070 | ||
24071 | fi | |
24072 | if test $ac_cv_header_regex_h = yes; then | |
24073 | ||
ab0f0edd MW |
24074 | |
24075 | for ac_func in regcomp re_search | |
a848cd7e SC |
24076 | do |
24077 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24078 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24079 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24080 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24082 | else | |
24083 | cat >conftest.$ac_ext <<_ACEOF | |
24084 | /* confdefs.h. */ | |
24085 | _ACEOF | |
24086 | cat confdefs.h >>conftest.$ac_ext | |
24087 | cat >>conftest.$ac_ext <<_ACEOF | |
24088 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24089 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24090 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24091 | #define $ac_func innocuous_$ac_func | |
24092 | ||
a848cd7e SC |
24093 | /* System header to define __stub macros and hopefully few prototypes, |
24094 | which can conflict with char $ac_func (); below. | |
24095 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24096 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24097 | |
a848cd7e SC |
24098 | #ifdef __STDC__ |
24099 | # include <limits.h> | |
24100 | #else | |
24101 | # include <assert.h> | |
24102 | #endif | |
ac1cb8d3 VS |
24103 | |
24104 | #undef $ac_func | |
24105 | ||
a848cd7e SC |
24106 | /* Override any gcc2 internal prototype to avoid an error. */ |
24107 | #ifdef __cplusplus | |
24108 | extern "C" | |
24109 | { | |
24110 | #endif | |
24111 | /* We use char because int might match the return type of a gcc2 | |
24112 | builtin and then its argument prototype would still apply. */ | |
24113 | char $ac_func (); | |
24114 | /* The GNU C library defines this for functions which it implements | |
24115 | to always fail with ENOSYS. Some functions are actually named | |
24116 | something starting with __ and the normal name is an alias. */ | |
24117 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24118 | choke me | |
24119 | #else | |
24120 | char (*f) () = $ac_func; | |
24121 | #endif | |
24122 | #ifdef __cplusplus | |
24123 | } | |
24124 | #endif | |
24125 | ||
24126 | int | |
24127 | main () | |
24128 | { | |
24129 | return f != $ac_func; | |
24130 | ; | |
24131 | return 0; | |
24132 | } | |
24133 | _ACEOF | |
24134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24136 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24137 | ac_status=$? |
ac1cb8d3 VS |
24138 | grep -v '^ *+' conftest.er1 >conftest.err |
24139 | rm -f conftest.er1 | |
24140 | cat conftest.err >&5 | |
a848cd7e SC |
24141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24142 | (exit $ac_status); } && | |
3565d135 RR |
24143 | { ac_try='test -z "$ac_c_werror_flag" |
24144 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24146 | (eval $ac_try) 2>&5 | |
24147 | ac_status=$? | |
24148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24149 | (exit $ac_status); }; } && | |
24150 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24152 | (eval $ac_try) 2>&5 | |
24153 | ac_status=$? | |
24154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24155 | (exit $ac_status); }; }; then | |
24156 | eval "$as_ac_var=yes" | |
24157 | else | |
24158 | echo "$as_me: failed program was:" >&5 | |
24159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24160 | ||
24161 | eval "$as_ac_var=no" | |
24162 | fi | |
ac1cb8d3 VS |
24163 | rm -f conftest.err conftest.$ac_objext \ |
24164 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24165 | fi |
24166 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24167 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24168 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24169 | cat >>confdefs.h <<_ACEOF | |
24170 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24171 | _ACEOF | |
24172 | ||
24173 | fi | |
24174 | done | |
24175 | ||
24176 | fi | |
24177 | ||
24178 | ||
24179 | ||
24180 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
24181 | if test "$wxUSE_REGEX" = "sys" ; then | |
24182 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
24183 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
24184 | { (exit 1); exit 1; }; } | |
24185 | else | |
24186 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
24187 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
24188 | wxUSE_REGEX=builtin | |
24189 | fi | |
24190 | else | |
24191 | wxUSE_REGEX=sys | |
24192 | cat >>confdefs.h <<\_ACEOF | |
24193 | #define WX_NO_REGEX_ADVANCED 1 | |
24194 | _ACEOF | |
24195 | ||
24196 | fi | |
24197 | fi | |
24198 | fi | |
24199 | ||
24200 | ||
24201 | ZLIB_LINK= | |
24202 | if test "$wxUSE_ZLIB" != "no" ; then | |
24203 | cat >>confdefs.h <<\_ACEOF | |
24204 | #define wxUSE_ZLIB 1 | |
24205 | _ACEOF | |
24206 | ||
24207 | ||
24208 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
24209 | if test "$USE_DARWIN" = 1; then | |
24210 | system_zlib_h_ok="yes" | |
24211 | else | |
24212 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
24213 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
24214 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24216 | else | |
24217 | if test "$cross_compiling" = yes; then | |
24218 | unset ac_cv_header_zlib_h | |
24219 | ||
24220 | else | |
24221 | cat >conftest.$ac_ext <<_ACEOF | |
24222 | /* confdefs.h. */ | |
24223 | _ACEOF | |
24224 | cat confdefs.h >>conftest.$ac_ext | |
24225 | cat >>conftest.$ac_ext <<_ACEOF | |
24226 | /* end confdefs.h. */ | |
24227 | ||
24228 | #include <zlib.h> | |
24229 | #include <stdio.h> | |
24230 | ||
24231 | int main() | |
24232 | { | |
24233 | FILE *f=fopen("conftestval", "w"); | |
24234 | if (!f) exit(1); | |
24235 | fprintf(f, "%s", | |
24236 | ZLIB_VERSION[0] == '1' && | |
24237 | (ZLIB_VERSION[2] > '1' || | |
24238 | (ZLIB_VERSION[2] == '1' && | |
24239 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
24240 | exit(0); | |
24241 | } | |
24242 | ||
24243 | _ACEOF | |
24244 | rm -f conftest$ac_exeext | |
24245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24246 | (eval $ac_link) 2>&5 | |
24247 | ac_status=$? | |
24248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24249 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24251 | (eval $ac_try) 2>&5 | |
24252 | ac_status=$? | |
24253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24254 | (exit $ac_status); }; }; then | |
24255 | ac_cv_header_zlib_h=`cat conftestval` | |
24256 | else | |
24257 | echo "$as_me: program exited with status $ac_status" >&5 | |
24258 | echo "$as_me: failed program was:" >&5 | |
24259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24260 | ||
24261 | ( exit $ac_status ) | |
24262 | ac_cv_header_zlib_h=no | |
24263 | fi | |
ac1cb8d3 | 24264 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24265 | fi |
24266 | ||
24267 | fi | |
24268 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24269 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24270 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24271 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24272 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24273 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24275 | fi | |
24276 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24277 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24278 | else | |
24279 | # Is the header compilable? | |
24280 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
24281 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
24282 | cat >conftest.$ac_ext <<_ACEOF | |
24283 | /* confdefs.h. */ | |
24284 | _ACEOF | |
24285 | cat confdefs.h >>conftest.$ac_ext | |
24286 | cat >>conftest.$ac_ext <<_ACEOF | |
24287 | /* end confdefs.h. */ | |
24288 | $ac_includes_default | |
24289 | #include <zlib.h> | |
24290 | _ACEOF | |
24291 | rm -f conftest.$ac_objext | |
24292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24293 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24294 | ac_status=$? |
ac1cb8d3 VS |
24295 | grep -v '^ *+' conftest.er1 >conftest.err |
24296 | rm -f conftest.er1 | |
24297 | cat conftest.err >&5 | |
a848cd7e SC |
24298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24299 | (exit $ac_status); } && | |
3565d135 RR |
24300 | { ac_try='test -z "$ac_c_werror_flag" |
24301 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24303 | (eval $ac_try) 2>&5 | |
24304 | ac_status=$? | |
24305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24306 | (exit $ac_status); }; } && | |
24307 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24309 | (eval $ac_try) 2>&5 | |
24310 | ac_status=$? | |
24311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24312 | (exit $ac_status); }; }; then | |
24313 | ac_header_compiler=yes | |
24314 | else | |
24315 | echo "$as_me: failed program was:" >&5 | |
24316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24317 | ||
24318 | ac_header_compiler=no | |
24319 | fi | |
ac1cb8d3 | 24320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24321 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24322 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24323 | ||
24324 | # Is the header present? | |
24325 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
24326 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
24327 | cat >conftest.$ac_ext <<_ACEOF | |
24328 | /* confdefs.h. */ | |
24329 | _ACEOF | |
24330 | cat confdefs.h >>conftest.$ac_ext | |
24331 | cat >>conftest.$ac_ext <<_ACEOF | |
24332 | /* end confdefs.h. */ | |
24333 | #include <zlib.h> | |
24334 | _ACEOF | |
24335 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24336 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24337 | ac_status=$? | |
24338 | grep -v '^ *+' conftest.er1 >conftest.err | |
24339 | rm -f conftest.er1 | |
24340 | cat conftest.err >&5 | |
24341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24342 | (exit $ac_status); } >/dev/null; then | |
24343 | if test -s conftest.err; then | |
24344 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24345 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24346 | else |
24347 | ac_cpp_err= | |
24348 | fi | |
24349 | else | |
24350 | ac_cpp_err=yes | |
24351 | fi | |
24352 | if test -z "$ac_cpp_err"; then | |
24353 | ac_header_preproc=yes | |
24354 | else | |
24355 | echo "$as_me: failed program was:" >&5 | |
24356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24357 | ||
24358 | ac_header_preproc=no | |
24359 | fi | |
24360 | rm -f conftest.err conftest.$ac_ext | |
24361 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24362 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24363 | ||
24364 | # So? What about this header? | |
ac1cb8d3 VS |
24365 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24366 | yes:no: ) | |
a848cd7e SC |
24367 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24368 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24369 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
24370 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
24371 | ac_header_preproc=yes | |
a848cd7e | 24372 | ;; |
ac1cb8d3 | 24373 | no:yes:* ) |
a848cd7e SC |
24374 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
24375 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24376 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
24377 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
24378 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
24379 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
24380 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24381 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24382 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
24383 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24384 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
24385 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24386 | ( |
24387 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24388 | ## ----------------------------------------- ## |
24389 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24390 | ## ----------------------------------------- ## | |
a848cd7e SC |
24391 | _ASBOX |
24392 | ) | | |
24393 | sed "s/^/$as_me: WARNING: /" >&2 | |
24394 | ;; | |
24395 | esac | |
24396 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24397 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24398 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24400 | else | |
24401 | ac_cv_header_zlib_h=$ac_header_preproc | |
24402 | fi | |
24403 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24404 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24405 | ||
24406 | fi | |
24407 | ||
24408 | ||
24409 | ||
24410 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
24411 | fi | |
24412 | ||
24413 | if test "$system_zlib_h_ok" = "yes"; then | |
24414 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
24415 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
24416 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
24417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24418 | else | |
24419 | ac_check_lib_save_LIBS=$LIBS | |
24420 | LIBS="-lz $LIBS" | |
24421 | cat >conftest.$ac_ext <<_ACEOF | |
24422 | /* confdefs.h. */ | |
24423 | _ACEOF | |
24424 | cat confdefs.h >>conftest.$ac_ext | |
24425 | cat >>conftest.$ac_ext <<_ACEOF | |
24426 | /* end confdefs.h. */ | |
24427 | ||
24428 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24429 | #ifdef __cplusplus | |
24430 | extern "C" | |
24431 | #endif | |
24432 | /* We use char because int might match the return type of a gcc2 | |
24433 | builtin and then its argument prototype would still apply. */ | |
24434 | char deflate (); | |
24435 | int | |
24436 | main () | |
24437 | { | |
24438 | deflate (); | |
24439 | ; | |
24440 | return 0; | |
24441 | } | |
24442 | _ACEOF | |
24443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24445 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24446 | ac_status=$? |
ac1cb8d3 VS |
24447 | grep -v '^ *+' conftest.er1 >conftest.err |
24448 | rm -f conftest.er1 | |
24449 | cat conftest.err >&5 | |
a848cd7e SC |
24450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24451 | (exit $ac_status); } && | |
3565d135 RR |
24452 | { ac_try='test -z "$ac_c_werror_flag" |
24453 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24455 | (eval $ac_try) 2>&5 | |
24456 | ac_status=$? | |
24457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24458 | (exit $ac_status); }; } && | |
24459 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24461 | (eval $ac_try) 2>&5 | |
24462 | ac_status=$? | |
24463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24464 | (exit $ac_status); }; }; then | |
24465 | ac_cv_lib_z_deflate=yes | |
24466 | else | |
24467 | echo "$as_me: failed program was:" >&5 | |
24468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24469 | ||
24470 | ac_cv_lib_z_deflate=no | |
24471 | fi | |
ac1cb8d3 VS |
24472 | rm -f conftest.err conftest.$ac_objext \ |
24473 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24474 | LIBS=$ac_check_lib_save_LIBS |
24475 | fi | |
24476 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
24477 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
24478 | if test $ac_cv_lib_z_deflate = yes; then | |
24479 | ZLIB_LINK=" -lz" | |
24480 | fi | |
24481 | ||
24482 | fi | |
24483 | ||
24484 | if test "x$ZLIB_LINK" = "x" ; then | |
24485 | if test "$wxUSE_ZLIB" = "sys" ; then | |
24486 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
24487 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
24488 | { (exit 1); exit 1; }; } | |
24489 | else | |
24490 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
24491 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
24492 | wxUSE_ZLIB=builtin | |
24493 | fi | |
24494 | else | |
24495 | wxUSE_ZLIB=sys | |
24496 | fi | |
24497 | fi | |
24498 | fi | |
24499 | ||
24500 | ||
24501 | PNG_LINK= | |
24502 | if test "$wxUSE_LIBPNG" != "no" ; then | |
24503 | cat >>confdefs.h <<\_ACEOF | |
24504 | #define wxUSE_LIBPNG 1 | |
24505 | _ACEOF | |
24506 | ||
24507 | ||
24508 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
24509 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
24510 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
24511 | wxUSE_LIBPNG=sys | |
24512 | fi | |
24513 | ||
24514 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
24515 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
24516 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
24517 | wxUSE_LIBPNG=builtin | |
24518 | fi | |
24519 | ||
24520 | if test "$wxUSE_MGL" != 1 ; then | |
24521 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
24522 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
24523 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
24524 | if test "${ac_cv_header_png_h+set}" = set; then | |
24525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24526 | else | |
24527 | if test "$cross_compiling" = yes; then | |
24528 | unset ac_cv_header_png_h | |
24529 | ||
24530 | else | |
24531 | cat >conftest.$ac_ext <<_ACEOF | |
24532 | /* confdefs.h. */ | |
24533 | _ACEOF | |
24534 | cat confdefs.h >>conftest.$ac_ext | |
24535 | cat >>conftest.$ac_ext <<_ACEOF | |
24536 | /* end confdefs.h. */ | |
24537 | ||
24538 | #include <png.h> | |
24539 | #include <stdio.h> | |
24540 | ||
24541 | int main() | |
24542 | { | |
24543 | FILE *f=fopen("conftestval", "w"); | |
24544 | if (!f) exit(1); | |
24545 | fprintf(f, "%s", | |
24546 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
24547 | exit(0); | |
24548 | } | |
24549 | ||
24550 | _ACEOF | |
24551 | rm -f conftest$ac_exeext | |
24552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24553 | (eval $ac_link) 2>&5 | |
24554 | ac_status=$? | |
24555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24556 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24558 | (eval $ac_try) 2>&5 | |
24559 | ac_status=$? | |
24560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24561 | (exit $ac_status); }; }; then | |
24562 | ac_cv_header_png_h=`cat conftestval` | |
24563 | else | |
24564 | echo "$as_me: program exited with status $ac_status" >&5 | |
24565 | echo "$as_me: failed program was:" >&5 | |
24566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24567 | ||
24568 | ( exit $ac_status ) | |
24569 | ac_cv_header_png_h=no | |
24570 | fi | |
ac1cb8d3 | 24571 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24572 | fi |
24573 | ||
24574 | fi | |
24575 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24576 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24577 | if test "${ac_cv_header_png_h+set}" = set; then | |
24578 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
24579 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
24580 | if test "${ac_cv_header_png_h+set}" = set; then | |
24581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24582 | fi | |
24583 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24584 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24585 | else | |
24586 | # Is the header compilable? | |
24587 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
24588 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
24589 | cat >conftest.$ac_ext <<_ACEOF | |
24590 | /* confdefs.h. */ | |
24591 | _ACEOF | |
24592 | cat confdefs.h >>conftest.$ac_ext | |
24593 | cat >>conftest.$ac_ext <<_ACEOF | |
24594 | /* end confdefs.h. */ | |
24595 | $ac_includes_default | |
24596 | #include <png.h> | |
24597 | _ACEOF | |
24598 | rm -f conftest.$ac_objext | |
24599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24600 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24601 | ac_status=$? |
ac1cb8d3 VS |
24602 | grep -v '^ *+' conftest.er1 >conftest.err |
24603 | rm -f conftest.er1 | |
24604 | cat conftest.err >&5 | |
a848cd7e SC |
24605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24606 | (exit $ac_status); } && | |
3565d135 RR |
24607 | { ac_try='test -z "$ac_c_werror_flag" |
24608 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24610 | (eval $ac_try) 2>&5 | |
24611 | ac_status=$? | |
24612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24613 | (exit $ac_status); }; } && | |
24614 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24616 | (eval $ac_try) 2>&5 | |
24617 | ac_status=$? | |
24618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24619 | (exit $ac_status); }; }; then | |
24620 | ac_header_compiler=yes | |
24621 | else | |
24622 | echo "$as_me: failed program was:" >&5 | |
24623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24624 | ||
24625 | ac_header_compiler=no | |
24626 | fi | |
ac1cb8d3 | 24627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24628 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24629 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24630 | ||
24631 | # Is the header present? | |
24632 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
24633 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
24634 | cat >conftest.$ac_ext <<_ACEOF | |
24635 | /* confdefs.h. */ | |
24636 | _ACEOF | |
24637 | cat confdefs.h >>conftest.$ac_ext | |
24638 | cat >>conftest.$ac_ext <<_ACEOF | |
24639 | /* end confdefs.h. */ | |
24640 | #include <png.h> | |
24641 | _ACEOF | |
24642 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24643 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24644 | ac_status=$? | |
24645 | grep -v '^ *+' conftest.er1 >conftest.err | |
24646 | rm -f conftest.er1 | |
24647 | cat conftest.err >&5 | |
24648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24649 | (exit $ac_status); } >/dev/null; then | |
24650 | if test -s conftest.err; then | |
24651 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24652 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24653 | else |
24654 | ac_cpp_err= | |
24655 | fi | |
24656 | else | |
24657 | ac_cpp_err=yes | |
24658 | fi | |
24659 | if test -z "$ac_cpp_err"; then | |
24660 | ac_header_preproc=yes | |
24661 | else | |
24662 | echo "$as_me: failed program was:" >&5 | |
24663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24664 | ||
24665 | ac_header_preproc=no | |
24666 | fi | |
24667 | rm -f conftest.err conftest.$ac_ext | |
24668 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24669 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24670 | ||
24671 | # So? What about this header? | |
ac1cb8d3 VS |
24672 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24673 | yes:no: ) | |
a848cd7e SC |
24674 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24675 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24676 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
24677 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
24678 | ac_header_preproc=yes | |
a848cd7e | 24679 | ;; |
ac1cb8d3 | 24680 | no:yes:* ) |
a848cd7e SC |
24681 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
24682 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24683 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
24684 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
24685 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
24686 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
24687 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24688 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24689 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
24690 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24691 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
24692 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24693 | ( |
24694 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24695 | ## ----------------------------------------- ## |
24696 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24697 | ## ----------------------------------------- ## | |
a848cd7e SC |
24698 | _ASBOX |
24699 | ) | | |
24700 | sed "s/^/$as_me: WARNING: /" >&2 | |
24701 | ;; | |
24702 | esac | |
24703 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
24704 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
24705 | if test "${ac_cv_header_png_h+set}" = set; then | |
24706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24707 | else | |
24708 | ac_cv_header_png_h=$ac_header_preproc | |
24709 | fi | |
24710 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24711 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24712 | ||
24713 | fi | |
24714 | ||
24715 | ||
24716 | ||
24717 | if test "$ac_cv_header_png_h" = "yes"; then | |
24718 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
24719 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
24720 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
24721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24722 | else | |
24723 | ac_check_lib_save_LIBS=$LIBS | |
24724 | LIBS="-lpng -lz -lm $LIBS" | |
24725 | cat >conftest.$ac_ext <<_ACEOF | |
24726 | /* confdefs.h. */ | |
24727 | _ACEOF | |
24728 | cat confdefs.h >>conftest.$ac_ext | |
24729 | cat >>conftest.$ac_ext <<_ACEOF | |
24730 | /* end confdefs.h. */ | |
24731 | ||
24732 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24733 | #ifdef __cplusplus | |
24734 | extern "C" | |
24735 | #endif | |
24736 | /* We use char because int might match the return type of a gcc2 | |
24737 | builtin and then its argument prototype would still apply. */ | |
24738 | char png_check_sig (); | |
24739 | int | |
24740 | main () | |
24741 | { | |
24742 | png_check_sig (); | |
24743 | ; | |
24744 | return 0; | |
24745 | } | |
24746 | _ACEOF | |
24747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24749 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24750 | ac_status=$? |
ac1cb8d3 VS |
24751 | grep -v '^ *+' conftest.er1 >conftest.err |
24752 | rm -f conftest.er1 | |
24753 | cat conftest.err >&5 | |
a848cd7e SC |
24754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24755 | (exit $ac_status); } && | |
3565d135 RR |
24756 | { ac_try='test -z "$ac_c_werror_flag" |
24757 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24759 | (eval $ac_try) 2>&5 | |
24760 | ac_status=$? | |
24761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24762 | (exit $ac_status); }; } && | |
24763 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24765 | (eval $ac_try) 2>&5 | |
24766 | ac_status=$? | |
24767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24768 | (exit $ac_status); }; }; then | |
24769 | ac_cv_lib_png_png_check_sig=yes | |
24770 | else | |
24771 | echo "$as_me: failed program was:" >&5 | |
24772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24773 | ||
24774 | ac_cv_lib_png_png_check_sig=no | |
24775 | fi | |
ac1cb8d3 VS |
24776 | rm -f conftest.err conftest.$ac_objext \ |
24777 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24778 | LIBS=$ac_check_lib_save_LIBS |
24779 | fi | |
24780 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
24781 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
24782 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
24783 | PNG_LINK=" -lpng -lz" | |
24784 | fi | |
24785 | ||
24786 | fi | |
24787 | ||
24788 | if test "x$PNG_LINK" = "x" ; then | |
24789 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
24790 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
24791 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
24792 | { (exit 1); exit 1; }; } | |
24793 | else | |
24794 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
24795 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
24796 | wxUSE_LIBPNG=builtin | |
24797 | fi | |
24798 | else | |
24799 | wxUSE_LIBPNG=sys | |
24800 | fi | |
24801 | fi | |
24802 | fi | |
24803 | ||
24804 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
24805 | fi | |
24806 | ||
24807 | ||
24808 | JPEG_LINK= | |
24809 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
24810 | cat >>confdefs.h <<\_ACEOF | |
24811 | #define wxUSE_LIBJPEG 1 | |
24812 | _ACEOF | |
24813 | ||
24814 | ||
24815 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
24816 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
24817 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
24818 | wxUSE_LIBJPEG=sys | |
24819 | fi | |
24820 | ||
24821 | if test "$wxUSE_MGL" != 1 ; then | |
24822 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
24823 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
24824 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
24825 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
24826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24827 | else | |
24828 | cat >conftest.$ac_ext <<_ACEOF | |
24829 | /* confdefs.h. */ | |
24830 | _ACEOF | |
24831 | cat confdefs.h >>conftest.$ac_ext | |
24832 | cat >>conftest.$ac_ext <<_ACEOF | |
24833 | /* end confdefs.h. */ | |
24834 | ||
24835 | #undef HAVE_STDLIB_H | |
24836 | #include <stdio.h> | |
24837 | #include <jpeglib.h> | |
24838 | ||
24839 | int | |
24840 | main () | |
24841 | { | |
24842 | ||
24843 | ||
24844 | ; | |
24845 | return 0; | |
24846 | } | |
24847 | _ACEOF | |
24848 | rm -f conftest.$ac_objext | |
24849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24850 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24851 | ac_status=$? |
ac1cb8d3 VS |
24852 | grep -v '^ *+' conftest.er1 >conftest.err |
24853 | rm -f conftest.er1 | |
24854 | cat conftest.err >&5 | |
a848cd7e SC |
24855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24856 | (exit $ac_status); } && | |
3565d135 RR |
24857 | { ac_try='test -z "$ac_c_werror_flag" |
24858 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24860 | (eval $ac_try) 2>&5 | |
24861 | ac_status=$? | |
24862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24863 | (exit $ac_status); }; } && | |
24864 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24866 | (eval $ac_try) 2>&5 | |
24867 | ac_status=$? | |
24868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24869 | (exit $ac_status); }; }; then | |
24870 | ac_cv_header_jpeglib_h=yes | |
24871 | else | |
24872 | echo "$as_me: failed program was:" >&5 | |
24873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24874 | ||
24875 | ac_cv_header_jpeglib_h=no | |
24876 | ||
24877 | fi | |
ac1cb8d3 | 24878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24879 | |
24880 | fi | |
24881 | ||
24882 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
24883 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
24884 | ||
24885 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
24886 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
24887 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
24888 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
24889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24890 | else | |
24891 | ac_check_lib_save_LIBS=$LIBS | |
24892 | LIBS="-ljpeg $LIBS" | |
24893 | cat >conftest.$ac_ext <<_ACEOF | |
24894 | /* confdefs.h. */ | |
24895 | _ACEOF | |
24896 | cat confdefs.h >>conftest.$ac_ext | |
24897 | cat >>conftest.$ac_ext <<_ACEOF | |
24898 | /* end confdefs.h. */ | |
24899 | ||
24900 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24901 | #ifdef __cplusplus | |
24902 | extern "C" | |
24903 | #endif | |
24904 | /* We use char because int might match the return type of a gcc2 | |
24905 | builtin and then its argument prototype would still apply. */ | |
24906 | char jpeg_read_header (); | |
24907 | int | |
24908 | main () | |
24909 | { | |
24910 | jpeg_read_header (); | |
24911 | ; | |
24912 | return 0; | |
24913 | } | |
24914 | _ACEOF | |
24915 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24917 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24918 | ac_status=$? |
ac1cb8d3 VS |
24919 | grep -v '^ *+' conftest.er1 >conftest.err |
24920 | rm -f conftest.er1 | |
24921 | cat conftest.err >&5 | |
a848cd7e SC |
24922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24923 | (exit $ac_status); } && | |
3565d135 RR |
24924 | { ac_try='test -z "$ac_c_werror_flag" |
24925 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24927 | (eval $ac_try) 2>&5 | |
24928 | ac_status=$? | |
24929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24930 | (exit $ac_status); }; } && | |
24931 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24933 | (eval $ac_try) 2>&5 | |
24934 | ac_status=$? | |
24935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24936 | (exit $ac_status); }; }; then | |
24937 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
24938 | else | |
24939 | echo "$as_me: failed program was:" >&5 | |
24940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24941 | ||
24942 | ac_cv_lib_jpeg_jpeg_read_header=no | |
24943 | fi | |
ac1cb8d3 VS |
24944 | rm -f conftest.err conftest.$ac_objext \ |
24945 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24946 | LIBS=$ac_check_lib_save_LIBS |
24947 | fi | |
24948 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
24949 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
24950 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
24951 | JPEG_LINK=" -ljpeg" | |
24952 | fi | |
24953 | ||
24954 | fi | |
24955 | ||
24956 | if test "x$JPEG_LINK" = "x" ; then | |
24957 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
24958 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
24959 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
24960 | { (exit 1); exit 1; }; } | |
24961 | else | |
24962 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
24963 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
24964 | wxUSE_LIBJPEG=builtin | |
24965 | fi | |
24966 | else | |
24967 | wxUSE_LIBJPEG=sys | |
24968 | fi | |
24969 | fi | |
24970 | fi | |
24971 | fi | |
24972 | ||
24973 | ||
24974 | TIFF_LINK= | |
24975 | TIFF_PREREQ_LINKS=-lm | |
24976 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
24977 | cat >>confdefs.h <<\_ACEOF | |
24978 | #define wxUSE_LIBTIFF 1 | |
24979 | _ACEOF | |
24980 | ||
24981 | ||
24982 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
24983 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
24984 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
24985 | fi | |
24986 | if test "$wxUSE_ZLIB" = "sys"; then | |
24987 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
24988 | fi | |
24989 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24990 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
24991 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
24992 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24994 | fi | |
24995 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
24996 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
24997 | else | |
24998 | # Is the header compilable? | |
24999 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
25000 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
25001 | cat >conftest.$ac_ext <<_ACEOF | |
25002 | /* confdefs.h. */ | |
25003 | _ACEOF | |
25004 | cat confdefs.h >>conftest.$ac_ext | |
25005 | cat >>conftest.$ac_ext <<_ACEOF | |
25006 | /* end confdefs.h. */ | |
25007 | $ac_includes_default | |
25008 | #include <tiffio.h> | |
25009 | _ACEOF | |
25010 | rm -f conftest.$ac_objext | |
25011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25012 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25013 | ac_status=$? |
ac1cb8d3 VS |
25014 | grep -v '^ *+' conftest.er1 >conftest.err |
25015 | rm -f conftest.er1 | |
25016 | cat conftest.err >&5 | |
a848cd7e SC |
25017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25018 | (exit $ac_status); } && | |
3565d135 RR |
25019 | { ac_try='test -z "$ac_c_werror_flag" |
25020 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25022 | (eval $ac_try) 2>&5 | |
25023 | ac_status=$? | |
25024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25025 | (exit $ac_status); }; } && | |
25026 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25028 | (eval $ac_try) 2>&5 | |
25029 | ac_status=$? | |
25030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25031 | (exit $ac_status); }; }; then | |
25032 | ac_header_compiler=yes | |
25033 | else | |
25034 | echo "$as_me: failed program was:" >&5 | |
25035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25036 | ||
25037 | ac_header_compiler=no | |
25038 | fi | |
ac1cb8d3 | 25039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25040 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25041 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25042 | ||
25043 | # Is the header present? | |
25044 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
25045 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
25046 | cat >conftest.$ac_ext <<_ACEOF | |
25047 | /* confdefs.h. */ | |
25048 | _ACEOF | |
25049 | cat confdefs.h >>conftest.$ac_ext | |
25050 | cat >>conftest.$ac_ext <<_ACEOF | |
25051 | /* end confdefs.h. */ | |
25052 | #include <tiffio.h> | |
25053 | _ACEOF | |
25054 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25055 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25056 | ac_status=$? | |
25057 | grep -v '^ *+' conftest.er1 >conftest.err | |
25058 | rm -f conftest.er1 | |
25059 | cat conftest.err >&5 | |
25060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25061 | (exit $ac_status); } >/dev/null; then | |
25062 | if test -s conftest.err; then | |
25063 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25064 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25065 | else |
25066 | ac_cpp_err= | |
25067 | fi | |
25068 | else | |
25069 | ac_cpp_err=yes | |
25070 | fi | |
25071 | if test -z "$ac_cpp_err"; then | |
25072 | ac_header_preproc=yes | |
25073 | else | |
25074 | echo "$as_me: failed program was:" >&5 | |
25075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25076 | ||
25077 | ac_header_preproc=no | |
25078 | fi | |
25079 | rm -f conftest.err conftest.$ac_ext | |
25080 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25081 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25082 | ||
25083 | # So? What about this header? | |
ac1cb8d3 VS |
25084 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25085 | yes:no: ) | |
a848cd7e SC |
25086 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25087 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25088 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
25089 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
25090 | ac_header_preproc=yes | |
a848cd7e | 25091 | ;; |
ac1cb8d3 | 25092 | no:yes:* ) |
a848cd7e SC |
25093 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
25094 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25095 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
25096 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
25097 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
25098 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
25099 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25100 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25101 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
25102 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25103 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
25104 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25105 | ( |
25106 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25107 | ## ----------------------------------------- ## |
25108 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25109 | ## ----------------------------------------- ## | |
a848cd7e SC |
25110 | _ASBOX |
25111 | ) | | |
25112 | sed "s/^/$as_me: WARNING: /" >&2 | |
25113 | ;; | |
25114 | esac | |
25115 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25116 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25117 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25119 | else | |
25120 | ac_cv_header_tiffio_h=$ac_header_preproc | |
25121 | fi | |
25122 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25123 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25124 | ||
25125 | fi | |
25126 | if test $ac_cv_header_tiffio_h = yes; then | |
25127 | ||
25128 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
25129 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
25130 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
25131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25132 | else | |
25133 | ac_check_lib_save_LIBS=$LIBS | |
25134 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
25135 | cat >conftest.$ac_ext <<_ACEOF | |
25136 | /* confdefs.h. */ | |
25137 | _ACEOF | |
25138 | cat confdefs.h >>conftest.$ac_ext | |
25139 | cat >>conftest.$ac_ext <<_ACEOF | |
25140 | /* end confdefs.h. */ | |
25141 | ||
25142 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25143 | #ifdef __cplusplus | |
25144 | extern "C" | |
25145 | #endif | |
25146 | /* We use char because int might match the return type of a gcc2 | |
25147 | builtin and then its argument prototype would still apply. */ | |
25148 | char TIFFError (); | |
25149 | int | |
25150 | main () | |
25151 | { | |
25152 | TIFFError (); | |
25153 | ; | |
25154 | return 0; | |
25155 | } | |
25156 | _ACEOF | |
25157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25159 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25160 | ac_status=$? |
ac1cb8d3 VS |
25161 | grep -v '^ *+' conftest.er1 >conftest.err |
25162 | rm -f conftest.er1 | |
25163 | cat conftest.err >&5 | |
a848cd7e SC |
25164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25165 | (exit $ac_status); } && | |
3565d135 RR |
25166 | { ac_try='test -z "$ac_c_werror_flag" |
25167 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25169 | (eval $ac_try) 2>&5 | |
25170 | ac_status=$? | |
25171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25172 | (exit $ac_status); }; } && | |
25173 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25175 | (eval $ac_try) 2>&5 | |
25176 | ac_status=$? | |
25177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25178 | (exit $ac_status); }; }; then | |
25179 | ac_cv_lib_tiff_TIFFError=yes | |
25180 | else | |
25181 | echo "$as_me: failed program was:" >&5 | |
25182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25183 | ||
25184 | ac_cv_lib_tiff_TIFFError=no | |
25185 | fi | |
ac1cb8d3 VS |
25186 | rm -f conftest.err conftest.$ac_objext \ |
25187 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25188 | LIBS=$ac_check_lib_save_LIBS |
25189 | fi | |
25190 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
25191 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
25192 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
25193 | TIFF_LINK=" -ltiff" | |
25194 | fi | |
25195 | ||
25196 | ||
25197 | ||
25198 | fi | |
25199 | ||
25200 | ||
25201 | ||
25202 | if test "x$TIFF_LINK" = "x" ; then | |
25203 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
25204 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
25205 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
25206 | { (exit 1); exit 1; }; } | |
25207 | else | |
25208 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
25209 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
25210 | wxUSE_LIBTIFF=builtin | |
25211 | fi | |
25212 | else | |
25213 | wxUSE_LIBTIFF=sys | |
25214 | fi | |
25215 | fi | |
25216 | fi | |
25217 | ||
25218 | ||
47a7e797 MW |
25219 | if test "$wxUSE_WCHAR_T" != "yes"; then |
25220 | if test "$wxUSE_EXPAT" != "no"; then | |
25221 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
25222 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
25223 | wxUSE_EXPAT=no | |
25224 | fi | |
25225 | if test "$wxUSE_XML" != "no"; then | |
25226 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
25227 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
25228 | wxUSE_XML=no | |
25229 | fi | |
25230 | fi | |
25231 | ||
a848cd7e SC |
25232 | if test "$wxUSE_EXPAT" != "no"; then |
25233 | wxUSE_XML=yes | |
25234 | cat >>confdefs.h <<\_ACEOF | |
25235 | #define wxUSE_EXPAT 1 | |
25236 | _ACEOF | |
25237 | ||
25238 | cat >>confdefs.h <<\_ACEOF | |
25239 | #define wxUSE_XML 1 | |
25240 | _ACEOF | |
25241 | ||
25242 | ||
25243 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
25244 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25245 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25246 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25247 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25249 | fi | |
25250 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25251 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25252 | else | |
25253 | # Is the header compilable? | |
25254 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
25255 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
25256 | cat >conftest.$ac_ext <<_ACEOF | |
25257 | /* confdefs.h. */ | |
25258 | _ACEOF | |
25259 | cat confdefs.h >>conftest.$ac_ext | |
25260 | cat >>conftest.$ac_ext <<_ACEOF | |
25261 | /* end confdefs.h. */ | |
25262 | $ac_includes_default | |
25263 | #include <expat.h> | |
25264 | _ACEOF | |
25265 | rm -f conftest.$ac_objext | |
25266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25267 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25268 | ac_status=$? |
ac1cb8d3 VS |
25269 | grep -v '^ *+' conftest.er1 >conftest.err |
25270 | rm -f conftest.er1 | |
25271 | cat conftest.err >&5 | |
a848cd7e SC |
25272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25273 | (exit $ac_status); } && | |
3565d135 RR |
25274 | { ac_try='test -z "$ac_c_werror_flag" |
25275 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25277 | (eval $ac_try) 2>&5 | |
25278 | ac_status=$? | |
25279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25280 | (exit $ac_status); }; } && | |
25281 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25283 | (eval $ac_try) 2>&5 | |
25284 | ac_status=$? | |
25285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25286 | (exit $ac_status); }; }; then | |
25287 | ac_header_compiler=yes | |
25288 | else | |
25289 | echo "$as_me: failed program was:" >&5 | |
25290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25291 | ||
25292 | ac_header_compiler=no | |
25293 | fi | |
ac1cb8d3 | 25294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25295 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25296 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25297 | ||
25298 | # Is the header present? | |
25299 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
25300 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
25301 | cat >conftest.$ac_ext <<_ACEOF | |
25302 | /* confdefs.h. */ | |
25303 | _ACEOF | |
25304 | cat confdefs.h >>conftest.$ac_ext | |
25305 | cat >>conftest.$ac_ext <<_ACEOF | |
25306 | /* end confdefs.h. */ | |
25307 | #include <expat.h> | |
25308 | _ACEOF | |
25309 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25310 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25311 | ac_status=$? | |
25312 | grep -v '^ *+' conftest.er1 >conftest.err | |
25313 | rm -f conftest.er1 | |
25314 | cat conftest.err >&5 | |
25315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25316 | (exit $ac_status); } >/dev/null; then | |
25317 | if test -s conftest.err; then | |
25318 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25319 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25320 | else |
25321 | ac_cpp_err= | |
25322 | fi | |
25323 | else | |
25324 | ac_cpp_err=yes | |
25325 | fi | |
25326 | if test -z "$ac_cpp_err"; then | |
25327 | ac_header_preproc=yes | |
25328 | else | |
25329 | echo "$as_me: failed program was:" >&5 | |
25330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25331 | ||
25332 | ac_header_preproc=no | |
25333 | fi | |
25334 | rm -f conftest.err conftest.$ac_ext | |
25335 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25336 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25337 | ||
25338 | # So? What about this header? | |
ac1cb8d3 VS |
25339 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25340 | yes:no: ) | |
a848cd7e SC |
25341 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25342 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25343 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
25344 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
25345 | ac_header_preproc=yes | |
a848cd7e | 25346 | ;; |
ac1cb8d3 | 25347 | no:yes:* ) |
a848cd7e SC |
25348 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
25349 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25350 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
25351 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
25352 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
25353 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
25354 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25355 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25356 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
25357 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25358 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
25359 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25360 | ( |
25361 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25362 | ## ----------------------------------------- ## |
25363 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25364 | ## ----------------------------------------- ## | |
a848cd7e SC |
25365 | _ASBOX |
25366 | ) | | |
25367 | sed "s/^/$as_me: WARNING: /" >&2 | |
25368 | ;; | |
25369 | esac | |
25370 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25371 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25372 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25374 | else | |
25375 | ac_cv_header_expat_h=$ac_header_preproc | |
25376 | fi | |
25377 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25378 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25379 | ||
25380 | fi | |
25381 | if test $ac_cv_header_expat_h = yes; then | |
25382 | found_expat_h=1 | |
25383 | fi | |
25384 | ||
25385 | ||
25386 | if test "x$found_expat_h" = "x1"; then | |
25387 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
25388 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
25389 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
25390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25391 | else | |
25392 | ||
25393 | ||
25394 | ||
25395 | ac_ext=cc | |
25396 | ac_cpp='$CXXCPP $CPPFLAGS' | |
25397 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25398 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25399 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25400 | ||
25401 | cat >conftest.$ac_ext <<_ACEOF | |
25402 | /* confdefs.h. */ | |
25403 | _ACEOF | |
25404 | cat confdefs.h >>conftest.$ac_ext | |
25405 | cat >>conftest.$ac_ext <<_ACEOF | |
25406 | /* end confdefs.h. */ | |
25407 | #include <expat.h> | |
25408 | int | |
25409 | main () | |
25410 | { | |
25411 | ||
25412 | ; | |
25413 | return 0; | |
25414 | } | |
25415 | _ACEOF | |
25416 | rm -f conftest.$ac_objext | |
25417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25418 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25419 | ac_status=$? |
ac1cb8d3 VS |
25420 | grep -v '^ *+' conftest.er1 >conftest.err |
25421 | rm -f conftest.er1 | |
25422 | cat conftest.err >&5 | |
a848cd7e SC |
25423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25424 | (exit $ac_status); } && | |
3565d135 RR |
25425 | { ac_try='test -z "$ac_cxx_werror_flag" |
25426 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25428 | (eval $ac_try) 2>&5 | |
25429 | ac_status=$? | |
25430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25431 | (exit $ac_status); }; } && | |
25432 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25434 | (eval $ac_try) 2>&5 | |
25435 | ac_status=$? | |
25436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25437 | (exit $ac_status); }; }; then | |
25438 | wx_cv_expat_is_not_broken=yes | |
25439 | else | |
25440 | echo "$as_me: failed program was:" >&5 | |
25441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25442 | ||
25443 | wx_cv_expat_is_not_broken=no | |
25444 | ||
25445 | fi | |
ac1cb8d3 | 25446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25447 | ac_ext=c |
25448 | ac_cpp='$CPP $CPPFLAGS' | |
25449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25452 | ||
25453 | ||
25454 | ||
25455 | fi | |
25456 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
25457 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
25458 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
25459 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
25460 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
25461 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
25462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25463 | else | |
25464 | ac_check_lib_save_LIBS=$LIBS | |
25465 | LIBS="-lexpat $LIBS" | |
25466 | cat >conftest.$ac_ext <<_ACEOF | |
25467 | /* confdefs.h. */ | |
25468 | _ACEOF | |
25469 | cat confdefs.h >>conftest.$ac_ext | |
25470 | cat >>conftest.$ac_ext <<_ACEOF | |
25471 | /* end confdefs.h. */ | |
25472 | ||
25473 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25474 | #ifdef __cplusplus | |
25475 | extern "C" | |
25476 | #endif | |
25477 | /* We use char because int might match the return type of a gcc2 | |
25478 | builtin and then its argument prototype would still apply. */ | |
25479 | char XML_ParserCreate (); | |
25480 | int | |
25481 | main () | |
25482 | { | |
25483 | XML_ParserCreate (); | |
25484 | ; | |
25485 | return 0; | |
25486 | } | |
25487 | _ACEOF | |
25488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25490 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25491 | ac_status=$? |
ac1cb8d3 VS |
25492 | grep -v '^ *+' conftest.er1 >conftest.err |
25493 | rm -f conftest.er1 | |
25494 | cat conftest.err >&5 | |
a848cd7e SC |
25495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25496 | (exit $ac_status); } && | |
3565d135 RR |
25497 | { ac_try='test -z "$ac_c_werror_flag" |
25498 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25500 | (eval $ac_try) 2>&5 | |
25501 | ac_status=$? | |
25502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25503 | (exit $ac_status); }; } && | |
25504 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25506 | (eval $ac_try) 2>&5 | |
25507 | ac_status=$? | |
25508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25509 | (exit $ac_status); }; }; then | |
25510 | ac_cv_lib_expat_XML_ParserCreate=yes | |
25511 | else | |
25512 | echo "$as_me: failed program was:" >&5 | |
25513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25514 | ||
25515 | ac_cv_lib_expat_XML_ParserCreate=no | |
25516 | fi | |
ac1cb8d3 VS |
25517 | rm -f conftest.err conftest.$ac_objext \ |
25518 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25519 | LIBS=$ac_check_lib_save_LIBS |
25520 | fi | |
25521 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
25522 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
25523 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
25524 | EXPAT_LINK=" -lexpat" | |
25525 | fi | |
25526 | ||
25527 | fi | |
25528 | fi | |
25529 | if test "x$EXPAT_LINK" = "x" ; then | |
25530 | if test "$wxUSE_EXPAT" = "sys" ; then | |
25531 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
25532 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
25533 | { (exit 1); exit 1; }; } | |
25534 | else | |
25535 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
25536 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
25537 | wxUSE_EXPAT=builtin | |
25538 | fi | |
25539 | else | |
25540 | wxUSE_EXPAT=sys | |
25541 | fi | |
25542 | fi | |
25543 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
25544 | ||
25545 | ||
25546 | subdirs="$subdirs src/expat" | |
25547 | ||
25548 | fi | |
25549 | fi | |
25550 | ||
25551 | ||
25552 | ||
25553 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
25554 | if test "${ac_cv_header_mspack_h+set}" = set; then |
25555 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25556 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25557 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25559 | fi | |
25560 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25561 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25562 | else | |
25563 | # Is the header compilable? | |
25564 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
25565 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
25566 | cat >conftest.$ac_ext <<_ACEOF | |
25567 | /* confdefs.h. */ | |
25568 | _ACEOF | |
25569 | cat confdefs.h >>conftest.$ac_ext | |
25570 | cat >>conftest.$ac_ext <<_ACEOF | |
25571 | /* end confdefs.h. */ | |
25572 | $ac_includes_default | |
25573 | #include <mspack.h> | |
25574 | _ACEOF | |
25575 | rm -f conftest.$ac_objext | |
25576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25577 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25578 | ac_status=$? |
ac1cb8d3 VS |
25579 | grep -v '^ *+' conftest.er1 >conftest.err |
25580 | rm -f conftest.er1 | |
25581 | cat conftest.err >&5 | |
a848cd7e SC |
25582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25583 | (exit $ac_status); } && | |
3565d135 RR |
25584 | { ac_try='test -z "$ac_c_werror_flag" |
25585 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25587 | (eval $ac_try) 2>&5 | |
25588 | ac_status=$? | |
25589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25590 | (exit $ac_status); }; } && | |
25591 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25593 | (eval $ac_try) 2>&5 | |
25594 | ac_status=$? | |
25595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25596 | (exit $ac_status); }; }; then | |
25597 | ac_header_compiler=yes | |
25598 | else | |
25599 | echo "$as_me: failed program was:" >&5 | |
25600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25601 | ||
25602 | ac_header_compiler=no | |
25603 | fi | |
ac1cb8d3 | 25604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25605 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25606 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25607 | ||
25608 | # Is the header present? | |
25609 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
25610 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
25611 | cat >conftest.$ac_ext <<_ACEOF | |
25612 | /* confdefs.h. */ | |
25613 | _ACEOF | |
25614 | cat confdefs.h >>conftest.$ac_ext | |
25615 | cat >>conftest.$ac_ext <<_ACEOF | |
25616 | /* end confdefs.h. */ | |
25617 | #include <mspack.h> | |
25618 | _ACEOF | |
25619 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25620 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25621 | ac_status=$? | |
25622 | grep -v '^ *+' conftest.er1 >conftest.err | |
25623 | rm -f conftest.er1 | |
25624 | cat conftest.err >&5 | |
25625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25626 | (exit $ac_status); } >/dev/null; then | |
25627 | if test -s conftest.err; then | |
25628 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25629 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25630 | else |
25631 | ac_cpp_err= | |
25632 | fi | |
25633 | else | |
25634 | ac_cpp_err=yes | |
25635 | fi | |
25636 | if test -z "$ac_cpp_err"; then | |
25637 | ac_header_preproc=yes | |
25638 | else | |
25639 | echo "$as_me: failed program was:" >&5 | |
25640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25641 | ||
25642 | ac_header_preproc=no | |
25643 | fi | |
25644 | rm -f conftest.err conftest.$ac_ext | |
25645 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25646 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25647 | ||
25648 | # So? What about this header? | |
ac1cb8d3 VS |
25649 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25650 | yes:no: ) | |
a848cd7e SC |
25651 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25652 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25653 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
25654 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
25655 | ac_header_preproc=yes | |
a848cd7e | 25656 | ;; |
ac1cb8d3 | 25657 | no:yes:* ) |
a848cd7e SC |
25658 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
25659 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25660 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
25661 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
25662 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
25663 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
25664 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25665 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25666 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
25667 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25668 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
25669 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25670 | ( |
25671 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25672 | ## ----------------------------------------- ## |
25673 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25674 | ## ----------------------------------------- ## | |
a848cd7e SC |
25675 | _ASBOX |
25676 | ) | | |
25677 | sed "s/^/$as_me: WARNING: /" >&2 | |
25678 | ;; | |
25679 | esac | |
25680 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25681 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25682 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25684 | else | |
25685 | ac_cv_header_mspack_h=$ac_header_preproc | |
25686 | fi | |
25687 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25688 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25689 | ||
25690 | fi | |
25691 | if test $ac_cv_header_mspack_h = yes; then | |
25692 | found_mspack_h=1 | |
25693 | fi | |
25694 | ||
25695 | ||
25696 | if test "x$found_mspack_h" = "x1"; then | |
25697 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
25698 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
25699 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
25700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25701 | else | |
25702 | ac_check_lib_save_LIBS=$LIBS | |
25703 | LIBS="-lmspack $LIBS" | |
25704 | cat >conftest.$ac_ext <<_ACEOF | |
25705 | /* confdefs.h. */ | |
25706 | _ACEOF | |
25707 | cat confdefs.h >>conftest.$ac_ext | |
25708 | cat >>conftest.$ac_ext <<_ACEOF | |
25709 | /* end confdefs.h. */ | |
25710 | ||
25711 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25712 | #ifdef __cplusplus | |
25713 | extern "C" | |
25714 | #endif | |
25715 | /* We use char because int might match the return type of a gcc2 | |
25716 | builtin and then its argument prototype would still apply. */ | |
25717 | char mspack_create_chm_decompressor (); | |
25718 | int | |
25719 | main () | |
25720 | { | |
25721 | mspack_create_chm_decompressor (); | |
25722 | ; | |
25723 | return 0; | |
25724 | } | |
25725 | _ACEOF | |
25726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25728 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25729 | ac_status=$? |
ac1cb8d3 VS |
25730 | grep -v '^ *+' conftest.er1 >conftest.err |
25731 | rm -f conftest.er1 | |
25732 | cat conftest.err >&5 | |
a848cd7e SC |
25733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25734 | (exit $ac_status); } && | |
3565d135 RR |
25735 | { ac_try='test -z "$ac_c_werror_flag" |
25736 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25738 | (eval $ac_try) 2>&5 | |
25739 | ac_status=$? | |
25740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25741 | (exit $ac_status); }; } && | |
25742 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25744 | (eval $ac_try) 2>&5 | |
25745 | ac_status=$? | |
25746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25747 | (exit $ac_status); }; }; then | |
25748 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
25749 | else | |
25750 | echo "$as_me: failed program was:" >&5 | |
25751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25752 | ||
25753 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
25754 | fi | |
ac1cb8d3 VS |
25755 | rm -f conftest.err conftest.$ac_objext \ |
25756 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25757 | LIBS=$ac_check_lib_save_LIBS |
25758 | fi | |
25759 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
25760 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
25761 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
25762 | MSPACK_LINK=" -lmspack" | |
25763 | fi | |
25764 | ||
25765 | fi | |
25766 | if test "x$MSPACK_LINK" = "x" ; then | |
25767 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
25768 | fi |
25769 | fi | |
25770 | ||
25771 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
25772 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
25773 | #define wxUSE_LIBMSPACK 1 |
25774 | _ACEOF | |
25775 | ||
a848cd7e SC |
25776 | fi |
25777 | ||
25778 | ||
25779 | ||
25780 | AFMINSTALL= | |
25781 | WIN32INSTALL= | |
25782 | ||
25783 | TOOLKIT= | |
25784 | TOOLKIT_INCLUDE= | |
25785 | WIDGET_SET= | |
25786 | ||
25787 | if test "$USE_WIN32" = 1 ; then | |
25788 | ||
25789 | for ac_header in w32api.h | |
25790 | do | |
25791 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25792 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25793 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25794 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25795 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25797 | fi | |
25798 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25799 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25800 | else | |
25801 | # Is the header compilable? | |
25802 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
25803 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
25804 | cat >conftest.$ac_ext <<_ACEOF | |
25805 | /* confdefs.h. */ | |
25806 | _ACEOF | |
25807 | cat confdefs.h >>conftest.$ac_ext | |
25808 | cat >>conftest.$ac_ext <<_ACEOF | |
25809 | /* end confdefs.h. */ | |
25810 | $ac_includes_default | |
25811 | #include <$ac_header> | |
25812 | _ACEOF | |
25813 | rm -f conftest.$ac_objext | |
25814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25815 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25816 | ac_status=$? |
ac1cb8d3 VS |
25817 | grep -v '^ *+' conftest.er1 >conftest.err |
25818 | rm -f conftest.er1 | |
25819 | cat conftest.err >&5 | |
a848cd7e SC |
25820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25821 | (exit $ac_status); } && | |
3565d135 RR |
25822 | { ac_try='test -z "$ac_c_werror_flag" |
25823 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25825 | (eval $ac_try) 2>&5 | |
25826 | ac_status=$? | |
25827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25828 | (exit $ac_status); }; } && | |
25829 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25831 | (eval $ac_try) 2>&5 | |
25832 | ac_status=$? | |
25833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25834 | (exit $ac_status); }; }; then | |
25835 | ac_header_compiler=yes | |
25836 | else | |
25837 | echo "$as_me: failed program was:" >&5 | |
25838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25839 | ||
25840 | ac_header_compiler=no | |
25841 | fi | |
ac1cb8d3 | 25842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25843 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25844 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25845 | ||
25846 | # Is the header present? | |
25847 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
25848 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
25849 | cat >conftest.$ac_ext <<_ACEOF | |
25850 | /* confdefs.h. */ | |
25851 | _ACEOF | |
25852 | cat confdefs.h >>conftest.$ac_ext | |
25853 | cat >>conftest.$ac_ext <<_ACEOF | |
25854 | /* end confdefs.h. */ | |
25855 | #include <$ac_header> | |
25856 | _ACEOF | |
25857 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25858 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25859 | ac_status=$? | |
25860 | grep -v '^ *+' conftest.er1 >conftest.err | |
25861 | rm -f conftest.er1 | |
25862 | cat conftest.err >&5 | |
25863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25864 | (exit $ac_status); } >/dev/null; then | |
25865 | if test -s conftest.err; then | |
25866 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25867 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25868 | else |
25869 | ac_cpp_err= | |
25870 | fi | |
25871 | else | |
25872 | ac_cpp_err=yes | |
25873 | fi | |
25874 | if test -z "$ac_cpp_err"; then | |
25875 | ac_header_preproc=yes | |
25876 | else | |
25877 | echo "$as_me: failed program was:" >&5 | |
25878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25879 | ||
25880 | ac_header_preproc=no | |
25881 | fi | |
25882 | rm -f conftest.err conftest.$ac_ext | |
25883 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25884 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25885 | ||
25886 | # So? What about this header? | |
ac1cb8d3 VS |
25887 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25888 | yes:no: ) | |
a848cd7e SC |
25889 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
25890 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25891 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
25892 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
25893 | ac_header_preproc=yes | |
a848cd7e | 25894 | ;; |
ac1cb8d3 | 25895 | no:yes:* ) |
a848cd7e SC |
25896 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
25897 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25898 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
25899 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
25900 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
25901 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
25902 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
25903 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25904 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
25905 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25906 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
25907 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25908 | ( |
25909 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25910 | ## ----------------------------------------- ## |
25911 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25912 | ## ----------------------------------------- ## | |
a848cd7e SC |
25913 | _ASBOX |
25914 | ) | | |
25915 | sed "s/^/$as_me: WARNING: /" >&2 | |
25916 | ;; | |
25917 | esac | |
25918 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25919 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25920 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25922 | else | |
ac1cb8d3 | 25923 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
25924 | fi |
25925 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25926 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25927 | ||
25928 | fi | |
25929 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25930 | cat >>confdefs.h <<_ACEOF | |
25931 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25932 | _ACEOF | |
25933 | ||
25934 | fi | |
25935 | ||
25936 | done | |
25937 | ||
25938 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25939 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
25940 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
25941 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25943 | fi | |
25944 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
25945 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
25946 | else | |
25947 | # Is the header compilable? | |
25948 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
25949 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
25950 | cat >conftest.$ac_ext <<_ACEOF | |
25951 | /* confdefs.h. */ | |
25952 | _ACEOF | |
25953 | cat confdefs.h >>conftest.$ac_ext | |
25954 | cat >>conftest.$ac_ext <<_ACEOF | |
25955 | /* end confdefs.h. */ | |
25956 | $ac_includes_default | |
25957 | #include <windows.h> | |
25958 | _ACEOF | |
25959 | rm -f conftest.$ac_objext | |
25960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25961 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25962 | ac_status=$? |
ac1cb8d3 VS |
25963 | grep -v '^ *+' conftest.er1 >conftest.err |
25964 | rm -f conftest.er1 | |
25965 | cat conftest.err >&5 | |
a848cd7e SC |
25966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25967 | (exit $ac_status); } && | |
3565d135 RR |
25968 | { ac_try='test -z "$ac_c_werror_flag" |
25969 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25971 | (eval $ac_try) 2>&5 | |
25972 | ac_status=$? | |
25973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25974 | (exit $ac_status); }; } && | |
25975 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25977 | (eval $ac_try) 2>&5 | |
25978 | ac_status=$? | |
25979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25980 | (exit $ac_status); }; }; then | |
25981 | ac_header_compiler=yes | |
25982 | else | |
25983 | echo "$as_me: failed program was:" >&5 | |
25984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25985 | ||
25986 | ac_header_compiler=no | |
25987 | fi | |
ac1cb8d3 | 25988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25989 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25990 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25991 | ||
25992 | # Is the header present? | |
25993 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
25994 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
25995 | cat >conftest.$ac_ext <<_ACEOF | |
25996 | /* confdefs.h. */ | |
25997 | _ACEOF | |
25998 | cat confdefs.h >>conftest.$ac_ext | |
25999 | cat >>conftest.$ac_ext <<_ACEOF | |
26000 | /* end confdefs.h. */ | |
26001 | #include <windows.h> | |
26002 | _ACEOF | |
26003 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26004 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26005 | ac_status=$? | |
26006 | grep -v '^ *+' conftest.er1 >conftest.err | |
26007 | rm -f conftest.er1 | |
26008 | cat conftest.err >&5 | |
26009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26010 | (exit $ac_status); } >/dev/null; then | |
26011 | if test -s conftest.err; then | |
26012 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26013 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26014 | else |
26015 | ac_cpp_err= | |
26016 | fi | |
26017 | else | |
26018 | ac_cpp_err=yes | |
26019 | fi | |
26020 | if test -z "$ac_cpp_err"; then | |
26021 | ac_header_preproc=yes | |
26022 | else | |
26023 | echo "$as_me: failed program was:" >&5 | |
26024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26025 | ||
26026 | ac_header_preproc=no | |
26027 | fi | |
26028 | rm -f conftest.err conftest.$ac_ext | |
26029 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26030 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26031 | ||
26032 | # So? What about this header? | |
ac1cb8d3 VS |
26033 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26034 | yes:no: ) | |
a848cd7e SC |
26035 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26036 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26037 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
26038 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
26039 | ac_header_preproc=yes | |
a848cd7e | 26040 | ;; |
ac1cb8d3 | 26041 | no:yes:* ) |
a848cd7e SC |
26042 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
26043 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26044 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
26045 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
26046 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
26047 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
26048 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26049 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26050 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
26051 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26052 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
26053 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26054 | ( |
26055 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26056 | ## ----------------------------------------- ## |
26057 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26058 | ## ----------------------------------------- ## | |
a848cd7e SC |
26059 | _ASBOX |
26060 | ) | | |
26061 | sed "s/^/$as_me: WARNING: /" >&2 | |
26062 | ;; | |
26063 | esac | |
26064 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26065 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26066 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26068 | else | |
26069 | ac_cv_header_windows_h=$ac_header_preproc | |
26070 | fi | |
26071 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26072 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26073 | ||
26074 | fi | |
26075 | if test $ac_cv_header_windows_h = yes; then | |
26076 | : | |
26077 | else | |
26078 | ||
26079 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
26080 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
26081 | { (exit 1); exit 1; }; } | |
26082 | ||
26083 | fi | |
26084 | ||
26085 | ||
26086 | ||
26087 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
26088 | ||
26089 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
26090 | LIBS="$LIBS -loleacc" | |
26091 | fi | |
26092 | ||
26093 | case "${host}" in | |
26094 | *-*-cygwin* ) | |
26095 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
26096 | esac |
26097 | ||
26098 | if test "$wxUSE_ODBC" = "sys" ; then | |
26099 | wxUSE_ODBC = "yes" | |
26100 | fi | |
26101 | if test "$wxUSE_ODBC" = "yes" ; then | |
26102 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
26103 | cat >>confdefs.h <<\_ACEOF | |
26104 | #define wxUSE_ODBC 1 | |
26105 | _ACEOF | |
26106 | ||
26107 | fi | |
26108 | ||
370d2fd7 | 26109 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
a848cd7e SC |
26110 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
26111 | ||
004ee6da | 26112 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
370d2fd7 | 26113 | |
a848cd7e SC |
26114 | WIN32INSTALL=win32install |
26115 | fi | |
26116 | ||
26117 | if test "$wxUSE_GUI" = "yes"; then | |
26118 | USE_GUI=1 | |
26119 | ||
26120 | GUI_TK_LIBRARY= | |
26121 | ||
26122 | WXGTK12= | |
26123 | WXGTK127= | |
26124 | WXGTK20= | |
26125 | WXGPE= | |
26126 | ||
207bc66c RN |
26127 | if test "$wxUSE_COCOA" = 1 ; then |
26128 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
26129 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
26130 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
26131 | wxUSE_PRINTING_ARCHITECTURE=no | |
26132 | fi | |
26133 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
26134 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
26135 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
26136 | wxUSE_DRAG_AND_DROP=no | |
26137 | fi | |
26138 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
26139 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
26140 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
26141 | wxUSE_DRAGIMAGE=no | |
26142 | fi | |
26143 | fi | |
26144 | ||
a848cd7e SC |
26145 | if test "$wxUSE_MSW" = 1 ; then |
26146 | TOOLKIT=MSW | |
26147 | GUIDIST=MSW_DIST | |
26148 | ||
ceec2216 | 26149 | case "${host}" in |
a848cd7e SC |
26150 | *-*-mingw32* ) |
26151 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
26152 | esac | |
26153 | fi | |
26154 | ||
26155 | if test "$wxUSE_GTK" = 1; then | |
26156 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
26157 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
26158 | ||
26159 | gtk_version_cached=1 | |
26160 | if test "${wx_cv_lib_gtk+set}" = set; then | |
26161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26162 | else | |
26163 | ||
26164 | gtk_version_cached=0 | |
26165 | echo "$as_me:$LINENO: result: " >&5 | |
26166 | echo "${ECHO_T}" >&6 | |
26167 | ||
26168 | GTK_MODULES= | |
26169 | if test "$wxUSE_THREADS" = "yes"; then | |
26170 | GTK_MODULES=gthread | |
26171 | fi | |
26172 | ||
f597b41c | 26173 | wx_cv_lib_gtk= |
5001df0d MW |
26174 | if test "x$wxGTK_VERSION" != "x1" |
26175 | then | |
26176 | case "${host}" in | |
26177 | *-*-solaris2* ) | |
26178 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
5ff751d6 | 26179 | enable_gtktest=no |
5001df0d MW |
26180 | fi |
26181 | esac | |
26182 | ||
a848cd7e SC |
26183 | # Check whether --enable-gtktest or --disable-gtktest was given. |
26184 | if test "${enable_gtktest+set}" = set; then | |
26185 | enableval="$enable_gtktest" | |
26186 | ||
26187 | else | |
26188 | enable_gtktest=yes | |
26189 | fi; | |
26190 | ||
26191 | pkg_config_args=gtk+-2.0 | |
26192 | for module in . $GTK_MODULES | |
26193 | do | |
26194 | case "$module" in | |
26195 | gthread) | |
26196 | pkg_config_args="$pkg_config_args gthread-2.0" | |
26197 | ;; | |
26198 | esac | |
26199 | done | |
26200 | ||
26201 | no_gtk="" | |
26202 | ||
26203 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26204 | set dummy pkg-config; ac_word=$2 | |
26205 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26206 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26207 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26209 | else | |
26210 | case $PKG_CONFIG in | |
26211 | [\\/]* | ?:[\\/]*) | |
26212 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26213 | ;; | |
26214 | *) | |
26215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26216 | for as_dir in $PATH | |
26217 | do | |
26218 | IFS=$as_save_IFS | |
26219 | test -z "$as_dir" && as_dir=. | |
26220 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26221 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26222 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26223 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26224 | break 2 | |
26225 | fi | |
26226 | done | |
26227 | done | |
26228 | ||
26229 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26230 | ;; | |
26231 | esac | |
26232 | fi | |
26233 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26234 | ||
26235 | if test -n "$PKG_CONFIG"; then | |
26236 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26237 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26238 | else | |
26239 | echo "$as_me:$LINENO: result: no" >&5 | |
26240 | echo "${ECHO_T}no" >&6 | |
26241 | fi | |
26242 | ||
26243 | ||
26244 | if test x$PKG_CONFIG != xno ; then | |
26245 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
26246 | : | |
26247 | else | |
c2218763 | 26248 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
26249 | no_gtk=yes |
26250 | PKG_CONFIG=no | |
26251 | fi | |
26252 | else | |
26253 | no_gtk=yes | |
26254 | fi | |
26255 | ||
26256 | min_gtk_version=2.0.0 | |
26257 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
26258 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
26259 | ||
26260 | if test x$PKG_CONFIG != xno ; then | |
26261 | ## don't try to run the test against uninstalled libtool libs | |
26262 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
26263 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
26264 | enable_gtktest=no | |
26265 | fi | |
26266 | ||
26267 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
26268 | : | |
26269 | else | |
26270 | no_gtk=yes | |
26271 | fi | |
26272 | fi | |
26273 | ||
26274 | if test x"$no_gtk" = x ; then | |
26275 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
26276 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
26277 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26278 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26279 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26280 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26281 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26282 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26283 | if test "x$enable_gtktest" = "xyes" ; then | |
26284 | ac_save_CFLAGS="$CFLAGS" | |
26285 | ac_save_LIBS="$LIBS" | |
26286 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26287 | LIBS="$GTK_LIBS $LIBS" | |
26288 | rm -f conf.gtktest | |
26289 | if test "$cross_compiling" = yes; then | |
26290 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26291 | else | |
26292 | cat >conftest.$ac_ext <<_ACEOF | |
26293 | /* confdefs.h. */ | |
26294 | _ACEOF | |
26295 | cat confdefs.h >>conftest.$ac_ext | |
26296 | cat >>conftest.$ac_ext <<_ACEOF | |
26297 | /* end confdefs.h. */ | |
26298 | ||
26299 | #include <gtk/gtk.h> | |
26300 | #include <stdio.h> | |
26301 | #include <stdlib.h> | |
26302 | ||
26303 | int | |
26304 | main () | |
26305 | { | |
26306 | int major, minor, micro; | |
26307 | char *tmp_version; | |
26308 | ||
26309 | system ("touch conf.gtktest"); | |
26310 | ||
26311 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26312 | tmp_version = g_strdup("$min_gtk_version"); | |
26313 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26314 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26315 | exit(1); | |
26316 | } | |
26317 | ||
26318 | if ((gtk_major_version != $gtk_config_major_version) || | |
26319 | (gtk_minor_version != $gtk_config_minor_version) || | |
26320 | (gtk_micro_version != $gtk_config_micro_version)) | |
26321 | { | |
26322 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26323 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26324 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26325 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
26326 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26327 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26328 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26329 | printf("*** required on your system.\n"); | |
26330 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
26331 | printf("*** to point to the correct configuration files\n"); | |
26332 | } | |
26333 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26334 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26335 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26336 | { | |
26337 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26338 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26339 | printf("*** library (version %d.%d.%d)\n", | |
26340 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26341 | } | |
26342 | else | |
26343 | { | |
26344 | if ((gtk_major_version > major) || | |
26345 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26346 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26347 | { | |
26348 | return 0; | |
26349 | } | |
26350 | else | |
26351 | { | |
26352 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26353 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26354 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26355 | major, minor, micro); | |
26356 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26357 | printf("***\n"); | |
26358 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26359 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
26360 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26361 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
26362 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
26363 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26364 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26365 | } | |
26366 | } | |
26367 | return 1; | |
26368 | } | |
26369 | ||
26370 | _ACEOF | |
26371 | rm -f conftest$ac_exeext | |
26372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26373 | (eval $ac_link) 2>&5 | |
26374 | ac_status=$? | |
26375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26376 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26378 | (eval $ac_try) 2>&5 | |
26379 | ac_status=$? | |
26380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26381 | (exit $ac_status); }; }; then | |
26382 | : | |
26383 | else | |
26384 | echo "$as_me: program exited with status $ac_status" >&5 | |
26385 | echo "$as_me: failed program was:" >&5 | |
26386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26387 | ||
26388 | ( exit $ac_status ) | |
26389 | no_gtk=yes | |
26390 | fi | |
ac1cb8d3 | 26391 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26392 | fi |
26393 | CFLAGS="$ac_save_CFLAGS" | |
26394 | LIBS="$ac_save_LIBS" | |
26395 | fi | |
26396 | fi | |
26397 | if test "x$no_gtk" = x ; then | |
26398 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
26399 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
26400 | wx_cv_lib_gtk=2.0 | |
26401 | else | |
26402 | echo "$as_me:$LINENO: result: no" >&5 | |
26403 | echo "${ECHO_T}no" >&6 | |
26404 | if test "$PKG_CONFIG" = "no" ; then | |
26405 | echo "*** A new enough version of pkg-config was not found." | |
26406 | echo "*** See http://pkgconfig.sourceforge.net" | |
26407 | else | |
26408 | if test -f conf.gtktest ; then | |
26409 | : | |
26410 | else | |
26411 | echo "*** Could not run GTK+ test program, checking why..." | |
26412 | ac_save_CFLAGS="$CFLAGS" | |
26413 | ac_save_LIBS="$LIBS" | |
26414 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26415 | LIBS="$LIBS $GTK_LIBS" | |
26416 | cat >conftest.$ac_ext <<_ACEOF | |
26417 | /* confdefs.h. */ | |
26418 | _ACEOF | |
26419 | cat confdefs.h >>conftest.$ac_ext | |
26420 | cat >>conftest.$ac_ext <<_ACEOF | |
26421 | /* end confdefs.h. */ | |
26422 | ||
26423 | #include <gtk/gtk.h> | |
26424 | #include <stdio.h> | |
26425 | ||
26426 | int | |
26427 | main () | |
26428 | { | |
26429 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26430 | ; | |
26431 | return 0; | |
26432 | } | |
26433 | _ACEOF | |
26434 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26436 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26437 | ac_status=$? |
ac1cb8d3 VS |
26438 | grep -v '^ *+' conftest.er1 >conftest.err |
26439 | rm -f conftest.er1 | |
26440 | cat conftest.err >&5 | |
a848cd7e SC |
26441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26442 | (exit $ac_status); } && | |
3565d135 RR |
26443 | { ac_try='test -z "$ac_c_werror_flag" |
26444 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26446 | (eval $ac_try) 2>&5 | |
26447 | ac_status=$? | |
26448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26449 | (exit $ac_status); }; } && | |
26450 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26452 | (eval $ac_try) 2>&5 | |
26453 | ac_status=$? | |
26454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26455 | (exit $ac_status); }; }; then | |
26456 | echo "*** The test program compiled, but did not run. This usually means" | |
26457 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
26458 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
26459 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26460 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26461 | echo "*** is required on your system" | |
26462 | echo "***" | |
26463 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26464 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26465 | else | |
26466 | echo "$as_me: failed program was:" >&5 | |
26467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26468 | ||
26469 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26470 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
26471 | fi | |
ac1cb8d3 VS |
26472 | rm -f conftest.err conftest.$ac_objext \ |
26473 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26474 | CFLAGS="$ac_save_CFLAGS" |
26475 | LIBS="$ac_save_LIBS" | |
26476 | fi | |
26477 | fi | |
26478 | GTK_CFLAGS="" | |
26479 | GTK_LIBS="" | |
26480 | : | |
26481 | fi | |
26482 | ||
26483 | ||
26484 | rm -f conf.gtktest | |
26485 | ||
5001df0d MW |
26486 | |
26487 | case "${host}" in | |
26488 | *-*-solaris2* ) | |
26489 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
26490 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
26491 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
26492 | fi | |
26493 | if test "$wxUSE_SHARED" != "yes"; then | |
26494 | GTK_LIBS="$GTK_LIBS -lX11" | |
26495 | fi | |
26496 | esac | |
f597b41c MW |
26497 | fi |
26498 | ||
f34ca037 MW |
26499 | if test -z "$wx_cv_lib_gtk"; then |
26500 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
26501 | |
26502 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26503 | if test "${with_gtk_prefix+set}" = set; then | |
26504 | withval="$with_gtk_prefix" | |
26505 | gtk_config_prefix="$withval" | |
26506 | else | |
26507 | gtk_config_prefix="" | |
26508 | fi; | |
26509 | ||
26510 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26511 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26512 | withval="$with_gtk_exec_prefix" | |
26513 | gtk_config_exec_prefix="$withval" | |
26514 | else | |
26515 | gtk_config_exec_prefix="" | |
26516 | fi; | |
26517 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26518 | if test "${enable_gtktest+set}" = set; then | |
26519 | enableval="$enable_gtktest" | |
26520 | ||
26521 | else | |
26522 | enable_gtktest=yes | |
26523 | fi; | |
26524 | ||
26525 | for module in . $GTK_MODULES | |
26526 | do | |
26527 | case "$module" in | |
26528 | gthread) | |
26529 | gtk_config_args="$gtk_config_args gthread" | |
26530 | ;; | |
26531 | esac | |
26532 | done | |
26533 | ||
26534 | if test x$gtk_config_exec_prefix != x ; then | |
26535 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26536 | if test x${GTK_CONFIG+set} != xset ; then | |
26537 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26538 | fi | |
26539 | fi | |
26540 | if test x$gtk_config_prefix != x ; then | |
26541 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26542 | if test x${GTK_CONFIG+set} != xset ; then | |
26543 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26544 | fi | |
26545 | fi | |
26546 | ||
26547 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26548 | set dummy gtk-config; ac_word=$2 | |
26549 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26551 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26553 | else | |
26554 | case $GTK_CONFIG in | |
26555 | [\\/]* | ?:[\\/]*) | |
26556 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26557 | ;; | |
26558 | *) | |
26559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26560 | for as_dir in $PATH | |
26561 | do | |
26562 | IFS=$as_save_IFS | |
26563 | test -z "$as_dir" && as_dir=. | |
26564 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26565 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26566 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26567 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26568 | break 2 | |
26569 | fi | |
26570 | done | |
26571 | done | |
26572 | ||
26573 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26574 | ;; | |
26575 | esac | |
26576 | fi | |
26577 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26578 | ||
26579 | if test -n "$GTK_CONFIG"; then | |
26580 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26581 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26582 | else | |
26583 | echo "$as_me:$LINENO: result: no" >&5 | |
26584 | echo "${ECHO_T}no" >&6 | |
26585 | fi | |
26586 | ||
26587 | min_gtk_version=1.2.7 | |
26588 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
26589 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
26590 | no_gtk="" | |
26591 | if test "$GTK_CONFIG" = "no" ; then | |
26592 | no_gtk=yes | |
26593 | else | |
26594 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
26595 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
26596 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26597 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26598 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26599 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26600 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26601 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26602 | if test "x$enable_gtktest" = "xyes" ; then | |
26603 | ac_save_CFLAGS="$CFLAGS" | |
26604 | ac_save_LIBS="$LIBS" | |
26605 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26606 | LIBS="$GTK_LIBS $LIBS" | |
26607 | rm -f conf.gtktest | |
26608 | if test "$cross_compiling" = yes; then | |
26609 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26610 | else | |
26611 | cat >conftest.$ac_ext <<_ACEOF | |
26612 | /* confdefs.h. */ | |
26613 | _ACEOF | |
26614 | cat confdefs.h >>conftest.$ac_ext | |
26615 | cat >>conftest.$ac_ext <<_ACEOF | |
26616 | /* end confdefs.h. */ | |
26617 | ||
26618 | #include <gtk/gtk.h> | |
26619 | #include <stdio.h> | |
26620 | #include <stdlib.h> | |
26621 | ||
26622 | int | |
26623 | main () | |
26624 | { | |
26625 | int major, minor, micro; | |
26626 | char *tmp_version; | |
26627 | ||
26628 | system ("touch conf.gtktest"); | |
26629 | ||
26630 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26631 | tmp_version = g_strdup("$min_gtk_version"); | |
26632 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26633 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26634 | exit(1); | |
26635 | } | |
26636 | ||
26637 | if ((gtk_major_version != $gtk_config_major_version) || | |
26638 | (gtk_minor_version != $gtk_config_minor_version) || | |
26639 | (gtk_micro_version != $gtk_config_micro_version)) | |
26640 | { | |
26641 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26642 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26643 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26644 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26645 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26646 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26647 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26648 | printf("*** required on your system.\n"); | |
26649 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26650 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26651 | printf("*** before re-running configure\n"); | |
26652 | } | |
26653 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26654 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26655 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26656 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26657 | { | |
26658 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26659 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26660 | printf("*** library (version %d.%d.%d)\n", | |
26661 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26662 | } | |
26663 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26664 | else | |
26665 | { | |
26666 | if ((gtk_major_version > major) || | |
26667 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26668 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26669 | { | |
26670 | return 0; | |
26671 | } | |
26672 | else | |
26673 | { | |
26674 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26675 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26676 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26677 | major, minor, micro); | |
26678 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26679 | printf("***\n"); | |
26680 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26681 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
26682 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26683 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
26684 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
26685 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26686 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26687 | } | |
26688 | } | |
26689 | return 1; | |
26690 | } | |
26691 | ||
26692 | _ACEOF | |
26693 | rm -f conftest$ac_exeext | |
26694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26695 | (eval $ac_link) 2>&5 | |
26696 | ac_status=$? | |
26697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26698 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26700 | (eval $ac_try) 2>&5 | |
26701 | ac_status=$? | |
26702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26703 | (exit $ac_status); }; }; then | |
26704 | : | |
26705 | else | |
26706 | echo "$as_me: program exited with status $ac_status" >&5 | |
26707 | echo "$as_me: failed program was:" >&5 | |
26708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26709 | ||
26710 | ( exit $ac_status ) | |
26711 | no_gtk=yes | |
26712 | fi | |
ac1cb8d3 | 26713 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26714 | fi |
26715 | CFLAGS="$ac_save_CFLAGS" | |
26716 | LIBS="$ac_save_LIBS" | |
26717 | fi | |
26718 | fi | |
26719 | if test "x$no_gtk" = x ; then | |
26720 | echo "$as_me:$LINENO: result: yes" >&5 | |
26721 | echo "${ECHO_T}yes" >&6 | |
26722 | wx_cv_lib_gtk=1.2.7 | |
26723 | else | |
26724 | echo "$as_me:$LINENO: result: no" >&5 | |
26725 | echo "${ECHO_T}no" >&6 | |
26726 | if test "$GTK_CONFIG" = "no" ; then | |
26727 | echo "*** The gtk-config script installed by GTK could not be found" | |
26728 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
26729 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
26730 | echo "*** full path to gtk-config." | |
26731 | else | |
26732 | if test -f conf.gtktest ; then | |
26733 | : | |
26734 | else | |
26735 | echo "*** Could not run GTK test program, checking why..." | |
26736 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26737 | LIBS="$LIBS $GTK_LIBS" | |
26738 | cat >conftest.$ac_ext <<_ACEOF | |
26739 | /* confdefs.h. */ | |
26740 | _ACEOF | |
26741 | cat confdefs.h >>conftest.$ac_ext | |
26742 | cat >>conftest.$ac_ext <<_ACEOF | |
26743 | /* end confdefs.h. */ | |
26744 | ||
26745 | #include <gtk/gtk.h> | |
26746 | #include <stdio.h> | |
26747 | ||
26748 | int | |
26749 | main () | |
26750 | { | |
26751 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26752 | ; | |
26753 | return 0; | |
26754 | } | |
26755 | _ACEOF | |
26756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26758 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26759 | ac_status=$? |
ac1cb8d3 VS |
26760 | grep -v '^ *+' conftest.er1 >conftest.err |
26761 | rm -f conftest.er1 | |
26762 | cat conftest.err >&5 | |
a848cd7e SC |
26763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26764 | (exit $ac_status); } && | |
3565d135 RR |
26765 | { ac_try='test -z "$ac_c_werror_flag" |
26766 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26768 | (eval $ac_try) 2>&5 | |
26769 | ac_status=$? | |
26770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26771 | (exit $ac_status); }; } && | |
26772 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26774 | (eval $ac_try) 2>&5 | |
26775 | ac_status=$? | |
26776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26777 | (exit $ac_status); }; }; then | |
26778 | echo "*** The test program compiled, but did not run. This usually means" | |
26779 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
26780 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
26781 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26782 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26783 | echo "*** is required on your system" | |
26784 | echo "***" | |
26785 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26786 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26787 | echo "***" | |
26788 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
26789 | echo "*** came with the system with the command" | |
26790 | echo "***" | |
26791 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
26792 | else | |
26793 | echo "$as_me: failed program was:" >&5 | |
26794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26795 | ||
26796 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26797 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
26798 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
26799 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
26800 | fi | |
ac1cb8d3 VS |
26801 | rm -f conftest.err conftest.$ac_objext \ |
26802 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26803 | CFLAGS="$ac_save_CFLAGS" |
26804 | LIBS="$ac_save_LIBS" | |
26805 | fi | |
26806 | fi | |
26807 | GTK_CFLAGS="" | |
26808 | GTK_LIBS="" | |
26809 | : | |
26810 | fi | |
26811 | ||
26812 | ||
26813 | rm -f conf.gtktest | |
26814 | ||
26815 | ||
f34ca037 | 26816 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
26817 | |
26818 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26819 | if test "${with_gtk_prefix+set}" = set; then | |
26820 | withval="$with_gtk_prefix" | |
26821 | gtk_config_prefix="$withval" | |
26822 | else | |
26823 | gtk_config_prefix="" | |
26824 | fi; | |
26825 | ||
26826 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26827 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26828 | withval="$with_gtk_exec_prefix" | |
26829 | gtk_config_exec_prefix="$withval" | |
26830 | else | |
26831 | gtk_config_exec_prefix="" | |
26832 | fi; | |
26833 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26834 | if test "${enable_gtktest+set}" = set; then | |
26835 | enableval="$enable_gtktest" | |
26836 | ||
26837 | else | |
26838 | enable_gtktest=yes | |
26839 | fi; | |
26840 | ||
26841 | for module in . $GTK_MODULES | |
26842 | do | |
26843 | case "$module" in | |
26844 | gthread) | |
26845 | gtk_config_args="$gtk_config_args gthread" | |
26846 | ;; | |
26847 | esac | |
26848 | done | |
26849 | ||
26850 | if test x$gtk_config_exec_prefix != x ; then | |
26851 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26852 | if test x${GTK_CONFIG+set} != xset ; then | |
26853 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26854 | fi | |
26855 | fi | |
26856 | if test x$gtk_config_prefix != x ; then | |
26857 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26858 | if test x${GTK_CONFIG+set} != xset ; then | |
26859 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26860 | fi | |
26861 | fi | |
26862 | ||
26863 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26864 | set dummy gtk-config; ac_word=$2 | |
26865 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26867 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26869 | else | |
26870 | case $GTK_CONFIG in | |
26871 | [\\/]* | ?:[\\/]*) | |
26872 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26873 | ;; | |
26874 | *) | |
26875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26876 | for as_dir in $PATH | |
26877 | do | |
26878 | IFS=$as_save_IFS | |
26879 | test -z "$as_dir" && as_dir=. | |
26880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26882 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26884 | break 2 | |
26885 | fi | |
26886 | done | |
26887 | done | |
26888 | ||
26889 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26890 | ;; | |
26891 | esac | |
26892 | fi | |
26893 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26894 | ||
26895 | if test -n "$GTK_CONFIG"; then | |
26896 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26897 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26898 | else | |
26899 | echo "$as_me:$LINENO: result: no" >&5 | |
26900 | echo "${ECHO_T}no" >&6 | |
26901 | fi | |
26902 | ||
26903 | min_gtk_version=1.2.3 | |
26904 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
26905 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
26906 | no_gtk="" | |
26907 | if test "$GTK_CONFIG" = "no" ; then | |
26908 | no_gtk=yes | |
26909 | else | |
26910 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
26911 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
26912 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26913 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26914 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26915 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26916 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26917 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26918 | if test "x$enable_gtktest" = "xyes" ; then | |
26919 | ac_save_CFLAGS="$CFLAGS" | |
26920 | ac_save_LIBS="$LIBS" | |
26921 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26922 | LIBS="$GTK_LIBS $LIBS" | |
26923 | rm -f conf.gtktest | |
26924 | if test "$cross_compiling" = yes; then | |
26925 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26926 | else | |
26927 | cat >conftest.$ac_ext <<_ACEOF | |
26928 | /* confdefs.h. */ | |
26929 | _ACEOF | |
26930 | cat confdefs.h >>conftest.$ac_ext | |
26931 | cat >>conftest.$ac_ext <<_ACEOF | |
26932 | /* end confdefs.h. */ | |
26933 | ||
26934 | #include <gtk/gtk.h> | |
26935 | #include <stdio.h> | |
26936 | #include <stdlib.h> | |
26937 | ||
26938 | int | |
26939 | main () | |
26940 | { | |
26941 | int major, minor, micro; | |
26942 | char *tmp_version; | |
26943 | ||
26944 | system ("touch conf.gtktest"); | |
26945 | ||
26946 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26947 | tmp_version = g_strdup("$min_gtk_version"); | |
26948 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26949 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26950 | exit(1); | |
26951 | } | |
26952 | ||
26953 | if ((gtk_major_version != $gtk_config_major_version) || | |
26954 | (gtk_minor_version != $gtk_config_minor_version) || | |
26955 | (gtk_micro_version != $gtk_config_micro_version)) | |
26956 | { | |
26957 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26958 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26959 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26960 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26961 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26962 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26963 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26964 | printf("*** required on your system.\n"); | |
26965 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26966 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26967 | printf("*** before re-running configure\n"); | |
26968 | } | |
26969 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26970 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26971 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26972 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26973 | { | |
26974 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26975 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26976 | printf("*** library (version %d.%d.%d)\n", | |
26977 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26978 | } | |
26979 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26980 | else | |
26981 | { | |
26982 | if ((gtk_major_version > major) || | |
26983 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26984 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26985 | { | |
26986 | return 0; | |
26987 | } | |
26988 | else | |
26989 | { | |
26990 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26991 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26992 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26993 | major, minor, micro); | |
26994 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26995 | printf("***\n"); | |
26996 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26997 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
26998 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26999 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27000 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27001 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27002 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27003 | } | |
27004 | } | |
27005 | return 1; | |
27006 | } | |
27007 | ||
27008 | _ACEOF | |
27009 | rm -f conftest$ac_exeext | |
27010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27011 | (eval $ac_link) 2>&5 | |
27012 | ac_status=$? | |
27013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27014 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27016 | (eval $ac_try) 2>&5 | |
27017 | ac_status=$? | |
27018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27019 | (exit $ac_status); }; }; then | |
27020 | : | |
27021 | else | |
27022 | echo "$as_me: program exited with status $ac_status" >&5 | |
27023 | echo "$as_me: failed program was:" >&5 | |
27024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27025 | ||
27026 | ( exit $ac_status ) | |
27027 | no_gtk=yes | |
27028 | fi | |
ac1cb8d3 | 27029 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27030 | fi |
27031 | CFLAGS="$ac_save_CFLAGS" | |
27032 | LIBS="$ac_save_LIBS" | |
27033 | fi | |
27034 | fi | |
27035 | if test "x$no_gtk" = x ; then | |
27036 | echo "$as_me:$LINENO: result: yes" >&5 | |
27037 | echo "${ECHO_T}yes" >&6 | |
27038 | wx_cv_lib_gtk=1.2.3 | |
27039 | else | |
27040 | echo "$as_me:$LINENO: result: no" >&5 | |
27041 | echo "${ECHO_T}no" >&6 | |
27042 | if test "$GTK_CONFIG" = "no" ; then | |
27043 | echo "*** The gtk-config script installed by GTK could not be found" | |
27044 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27045 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27046 | echo "*** full path to gtk-config." | |
27047 | else | |
27048 | if test -f conf.gtktest ; then | |
27049 | : | |
27050 | else | |
27051 | echo "*** Could not run GTK test program, checking why..." | |
27052 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27053 | LIBS="$LIBS $GTK_LIBS" | |
27054 | cat >conftest.$ac_ext <<_ACEOF | |
27055 | /* confdefs.h. */ | |
27056 | _ACEOF | |
27057 | cat confdefs.h >>conftest.$ac_ext | |
27058 | cat >>conftest.$ac_ext <<_ACEOF | |
27059 | /* end confdefs.h. */ | |
27060 | ||
27061 | #include <gtk/gtk.h> | |
27062 | #include <stdio.h> | |
27063 | ||
27064 | int | |
27065 | main () | |
27066 | { | |
27067 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27068 | ; | |
27069 | return 0; | |
27070 | } | |
27071 | _ACEOF | |
27072 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27074 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27075 | ac_status=$? |
ac1cb8d3 VS |
27076 | grep -v '^ *+' conftest.er1 >conftest.err |
27077 | rm -f conftest.er1 | |
27078 | cat conftest.err >&5 | |
a848cd7e SC |
27079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27080 | (exit $ac_status); } && | |
3565d135 RR |
27081 | { ac_try='test -z "$ac_c_werror_flag" |
27082 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27084 | (eval $ac_try) 2>&5 | |
27085 | ac_status=$? | |
27086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27087 | (exit $ac_status); }; } && | |
27088 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27090 | (eval $ac_try) 2>&5 | |
27091 | ac_status=$? | |
27092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27093 | (exit $ac_status); }; }; then | |
27094 | echo "*** The test program compiled, but did not run. This usually means" | |
27095 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27096 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27097 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27098 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27099 | echo "*** is required on your system" | |
27100 | echo "***" | |
27101 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27102 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27103 | echo "***" | |
27104 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27105 | echo "*** came with the system with the command" | |
27106 | echo "***" | |
27107 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27108 | else | |
27109 | echo "$as_me: failed program was:" >&5 | |
27110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27111 | ||
27112 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27113 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27114 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27115 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27116 | fi | |
ac1cb8d3 VS |
27117 | rm -f conftest.err conftest.$ac_objext \ |
27118 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27119 | CFLAGS="$ac_save_CFLAGS" |
27120 | LIBS="$ac_save_LIBS" | |
27121 | fi | |
27122 | fi | |
27123 | GTK_CFLAGS="" | |
27124 | GTK_LIBS="" | |
27125 | : | |
27126 | fi | |
27127 | ||
27128 | ||
27129 | rm -f conf.gtktest | |
27130 | ||
f34ca037 | 27131 | fi |
a848cd7e SC |
27132 | fi |
27133 | fi | |
27134 | ||
27135 | if test -z "$wx_cv_lib_gtk"; then | |
27136 | wx_cv_lib_gtk=none | |
27137 | else | |
27138 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 27139 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
27140 | fi |
27141 | ||
27142 | ||
27143 | fi | |
27144 | ||
27145 | ||
27146 | if test "$gtk_version_cached" = 1; then | |
27147 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
27148 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
27149 | fi | |
27150 | ||
27151 | case "$wx_cv_lib_gtk" in | |
27152 | 2.0) WXGTK20=1 | |
27153 | TOOLKIT_VERSION=2 | |
27154 | ;; | |
27155 | 1.2.7) WXGTK127=1 | |
27156 | WXGTK12=1 | |
27157 | ;; | |
27158 | 1.2.3) WXGTK12=1 | |
27159 | ;; | |
27160 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
27161 | The development files for GTK+ were not found. For GTK+ 2, please |
27162 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27163 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27164 | and that the version is 1.2.3 or above. Also check that the | |
27165 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27166 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27167 | " >&5 |
27168 | echo "$as_me: error: | |
f597b41c MW |
27169 | The development files for GTK+ were not found. For GTK+ 2, please |
27170 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27171 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27172 | and that the version is 1.2.3 or above. Also check that the | |
27173 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27174 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27175 | " >&2;} |
27176 | { (exit 1); exit 1; }; } | |
27177 | ;; | |
27178 | esac | |
27179 | ||
27180 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
27181 | save_CFLAGS="$CFLAGS" |
27182 | save_LIBS="$LIBS" | |
c92ad099 | 27183 | CFLAGS="$wx_cv_cflags_gtk $CFLAGS" |
abc736fd | 27184 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 27185 | |
d12aef51 VZ |
27186 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
27187 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
27188 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
27189 | /* confdefs.h. */ |
27190 | _ACEOF | |
27191 | cat confdefs.h >>conftest.$ac_ext | |
27192 | cat >>conftest.$ac_ext <<_ACEOF | |
27193 | /* end confdefs.h. */ | |
304205f1 | 27194 | |
d12aef51 | 27195 | #include <gtk/gtk.h> |
304205f1 | 27196 | |
d12aef51 VZ |
27197 | int |
27198 | main () | |
27199 | { | |
304205f1 | 27200 | |
d12aef51 | 27201 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
27202 | |
27203 | ; | |
27204 | return 0; | |
27205 | } | |
27206 | _ACEOF | |
27207 | rm -f conftest.$ac_objext | |
27208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27209 | (eval $ac_compile) 2>conftest.er1 | |
27210 | ac_status=$? | |
27211 | grep -v '^ *+' conftest.er1 >conftest.err | |
27212 | rm -f conftest.er1 | |
27213 | cat conftest.err >&5 | |
27214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27215 | (exit $ac_status); } && | |
3565d135 RR |
27216 | { ac_try='test -z "$ac_c_werror_flag" |
27217 | || test ! -s conftest.err' | |
abc736fd MW |
27218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27219 | (eval $ac_try) 2>&5 | |
27220 | ac_status=$? | |
27221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27222 | (exit $ac_status); }; } && | |
27223 | { ac_try='test -s conftest.$ac_objext' | |
27224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27225 | (eval $ac_try) 2>&5 | |
27226 | ac_status=$? | |
27227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27228 | (exit $ac_status); }; }; then | |
27229 | ||
27230 | echo "$as_me:$LINENO: result: no" >&5 | |
27231 | echo "${ECHO_T}no" >&6 | |
27232 | ||
27233 | else | |
27234 | echo "$as_me: failed program was:" >&5 | |
27235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27236 | ||
27237 | ||
27238 | cat >>confdefs.h <<\_ACEOF | |
27239 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
27240 | _ACEOF | |
27241 | ||
27242 | echo "$as_me:$LINENO: result: yes" >&5 | |
27243 | echo "${ECHO_T}yes" >&6 | |
27244 | ||
27245 | fi | |
27246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27247 | ||
9755e73b VS |
27248 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
27249 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
27250 | cat >conftest.$ac_ext <<_ACEOF | |
27251 | /* confdefs.h. */ | |
27252 | _ACEOF | |
27253 | cat confdefs.h >>conftest.$ac_ext | |
27254 | cat >>conftest.$ac_ext <<_ACEOF | |
27255 | /* end confdefs.h. */ | |
27256 | ||
27257 | #include <gtk/gtk.h> | |
27258 | ||
27259 | int | |
27260 | main () | |
27261 | { | |
27262 | ||
27263 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 27264 | Not GTK+ 2.4 |
9755e73b VS |
27265 | #endif |
27266 | ||
27267 | ; | |
27268 | return 0; | |
27269 | } | |
27270 | _ACEOF | |
27271 | rm -f conftest.$ac_objext | |
27272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27273 | (eval $ac_compile) 2>conftest.er1 | |
27274 | ac_status=$? | |
27275 | grep -v '^ *+' conftest.er1 >conftest.err | |
27276 | rm -f conftest.er1 | |
27277 | cat conftest.err >&5 | |
27278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27279 | (exit $ac_status); } && | |
3565d135 RR |
27280 | { ac_try='test -z "$ac_c_werror_flag" |
27281 | || test ! -s conftest.err' | |
9755e73b VS |
27282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27283 | (eval $ac_try) 2>&5 | |
27284 | ac_status=$? | |
27285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27286 | (exit $ac_status); }; } && | |
27287 | { ac_try='test -s conftest.$ac_objext' | |
27288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27289 | (eval $ac_try) 2>&5 | |
27290 | ac_status=$? | |
27291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27292 | (exit $ac_status); }; }; then | |
27293 | ||
27294 | cat >>confdefs.h <<\_ACEOF | |
27295 | #define __WXGTK24__ 1 | |
27296 | _ACEOF | |
27297 | ||
27298 | echo "$as_me:$LINENO: result: yes" >&5 | |
27299 | echo "${ECHO_T}yes" >&6 | |
27300 | ||
27301 | else | |
27302 | echo "$as_me: failed program was:" >&5 | |
27303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27304 | ||
27305 | ||
27306 | echo "$as_me:$LINENO: result: no" >&5 | |
27307 | echo "${ECHO_T}no" >&6 | |
27308 | ||
27309 | fi | |
27310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27311 | ||
304205f1 VS |
27312 | CFLAGS="$save_CFLAGS" |
27313 | LIBS="$save_LIBS" | |
a848cd7e SC |
27314 | else |
27315 | if test "$wxUSE_UNICODE" = "yes"; then | |
27316 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
27317 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
27318 | wxUSE_UNICODE=no | |
27319 | fi | |
27320 | fi | |
27321 | ||
27322 | if test "$USE_DARWIN" != 1; then | |
27323 | ||
27324 | for ac_func in poll | |
27325 | do | |
27326 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27327 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27328 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27329 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27331 | else | |
27332 | cat >conftest.$ac_ext <<_ACEOF | |
27333 | /* confdefs.h. */ | |
27334 | _ACEOF | |
27335 | cat confdefs.h >>conftest.$ac_ext | |
27336 | cat >>conftest.$ac_ext <<_ACEOF | |
27337 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27338 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
27339 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27340 | #define $ac_func innocuous_$ac_func | |
27341 | ||
a848cd7e SC |
27342 | /* System header to define __stub macros and hopefully few prototypes, |
27343 | which can conflict with char $ac_func (); below. | |
27344 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27345 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27346 | |
a848cd7e SC |
27347 | #ifdef __STDC__ |
27348 | # include <limits.h> | |
27349 | #else | |
27350 | # include <assert.h> | |
27351 | #endif | |
ac1cb8d3 VS |
27352 | |
27353 | #undef $ac_func | |
27354 | ||
a848cd7e SC |
27355 | /* Override any gcc2 internal prototype to avoid an error. */ |
27356 | #ifdef __cplusplus | |
27357 | extern "C" | |
27358 | { | |
27359 | #endif | |
27360 | /* We use char because int might match the return type of a gcc2 | |
27361 | builtin and then its argument prototype would still apply. */ | |
27362 | char $ac_func (); | |
27363 | /* The GNU C library defines this for functions which it implements | |
27364 | to always fail with ENOSYS. Some functions are actually named | |
27365 | something starting with __ and the normal name is an alias. */ | |
27366 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27367 | choke me | |
27368 | #else | |
27369 | char (*f) () = $ac_func; | |
27370 | #endif | |
27371 | #ifdef __cplusplus | |
27372 | } | |
27373 | #endif | |
27374 | ||
27375 | int | |
27376 | main () | |
27377 | { | |
27378 | return f != $ac_func; | |
27379 | ; | |
27380 | return 0; | |
27381 | } | |
27382 | _ACEOF | |
27383 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27385 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27386 | ac_status=$? |
ac1cb8d3 VS |
27387 | grep -v '^ *+' conftest.er1 >conftest.err |
27388 | rm -f conftest.er1 | |
27389 | cat conftest.err >&5 | |
a848cd7e SC |
27390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27391 | (exit $ac_status); } && | |
3565d135 RR |
27392 | { ac_try='test -z "$ac_c_werror_flag" |
27393 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27395 | (eval $ac_try) 2>&5 | |
27396 | ac_status=$? | |
27397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27398 | (exit $ac_status); }; } && | |
27399 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27401 | (eval $ac_try) 2>&5 | |
27402 | ac_status=$? | |
27403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27404 | (exit $ac_status); }; }; then | |
27405 | eval "$as_ac_var=yes" | |
27406 | else | |
27407 | echo "$as_me: failed program was:" >&5 | |
27408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27409 | ||
27410 | eval "$as_ac_var=no" | |
27411 | fi | |
ac1cb8d3 VS |
27412 | rm -f conftest.err conftest.$ac_objext \ |
27413 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27414 | fi |
27415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27416 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27417 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27418 | cat >>confdefs.h <<_ACEOF | |
27419 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27420 | _ACEOF | |
27421 | ||
27422 | fi | |
27423 | done | |
27424 | ||
27425 | fi | |
27426 | ||
27427 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
27428 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
27429 | ||
27430 | AFMINSTALL=afminstall | |
27431 | TOOLKIT=GTK | |
27432 | GUIDIST=GTK_DIST | |
27433 | ||
27434 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
27435 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
27436 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
27437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27438 | else | |
27439 | ac_check_lib_save_LIBS=$LIBS | |
27440 | LIBS="-lgdk $LIBS" | |
27441 | cat >conftest.$ac_ext <<_ACEOF | |
27442 | /* confdefs.h. */ | |
27443 | _ACEOF | |
27444 | cat confdefs.h >>conftest.$ac_ext | |
27445 | cat >>conftest.$ac_ext <<_ACEOF | |
27446 | /* end confdefs.h. */ | |
27447 | ||
27448 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27449 | #ifdef __cplusplus | |
27450 | extern "C" | |
27451 | #endif | |
27452 | /* We use char because int might match the return type of a gcc2 | |
27453 | builtin and then its argument prototype would still apply. */ | |
27454 | char gdk_im_open (); | |
27455 | int | |
27456 | main () | |
27457 | { | |
27458 | gdk_im_open (); | |
27459 | ; | |
27460 | return 0; | |
27461 | } | |
27462 | _ACEOF | |
27463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27465 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27466 | ac_status=$? |
ac1cb8d3 VS |
27467 | grep -v '^ *+' conftest.er1 >conftest.err |
27468 | rm -f conftest.er1 | |
27469 | cat conftest.err >&5 | |
a848cd7e SC |
27470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27471 | (exit $ac_status); } && | |
3565d135 RR |
27472 | { ac_try='test -z "$ac_c_werror_flag" |
27473 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27475 | (eval $ac_try) 2>&5 | |
27476 | ac_status=$? | |
27477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27478 | (exit $ac_status); }; } && | |
27479 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27481 | (eval $ac_try) 2>&5 | |
27482 | ac_status=$? | |
27483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27484 | (exit $ac_status); }; }; then | |
27485 | ac_cv_lib_gdk_gdk_im_open=yes | |
27486 | else | |
27487 | echo "$as_me: failed program was:" >&5 | |
27488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27489 | ||
27490 | ac_cv_lib_gdk_gdk_im_open=no | |
27491 | fi | |
ac1cb8d3 VS |
27492 | rm -f conftest.err conftest.$ac_objext \ |
27493 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27494 | LIBS=$ac_check_lib_save_LIBS |
27495 | fi | |
27496 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
27497 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
27498 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
27499 | cat >>confdefs.h <<\_ACEOF | |
27500 | #define HAVE_XIM 1 | |
27501 | _ACEOF | |
27502 | ||
27503 | fi | |
27504 | ||
27505 | ||
27506 | ||
27507 | if test "$wxUSE_GPE" = "yes"; then | |
27508 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
27509 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
27510 | ||
0ad5d837 VZ |
27511 | ac_find_libraries= |
27512 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 27513 | do |
3eca31dc | 27514 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
27515 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
27516 | ac_find_libraries=$ac_dir | |
27517 | break 2 | |
27518 | fi | |
27519 | done | |
27520 | done | |
27521 | ||
27522 | if test "$ac_find_libraries" != "" ; then | |
27523 | ||
0ad5d837 | 27524 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
27525 | ac_path_to_link="" |
27526 | else | |
0ad5d837 VZ |
27527 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
27528 | result=$? | |
27529 | if test $result = 0; then | |
27530 | ac_path_to_link="" | |
27531 | else | |
27532 | ac_path_to_link=" -L$ac_find_libraries" | |
27533 | fi | |
a848cd7e SC |
27534 | fi |
27535 | ||
27536 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
27537 | WXGPE=1 | |
0ad5d837 VZ |
27538 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
27539 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
27540 | else |
27541 | echo "$as_me:$LINENO: result: not found" >&5 | |
27542 | echo "${ECHO_T}not found" >&6 | |
27543 | fi | |
27544 | ||
27545 | fi | |
27546 | fi | |
27547 | ||
27548 | if test "$wxUSE_MGL" = 1; then | |
27549 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
27550 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
27551 | if test "x$MGL_ROOT" = x ; then | |
27552 | echo "$as_me:$LINENO: result: not found" >&5 | |
27553 | echo "${ECHO_T}not found" >&6 | |
27554 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
27555 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
27556 | { (exit 1); exit 1; }; } | |
27557 | else | |
27558 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
27559 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
27560 | fi | |
27561 | ||
27562 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
27563 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
27564 | case "${host}" in | |
27565 | *-*-linux* ) | |
27566 | if test "x$wxUSE_SHARED" = xyes ; then | |
27567 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
27568 | else | |
27569 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
27570 | fi | |
27571 | ;; | |
27572 | *-pc-msdosdjgpp ) | |
27573 | mgl_os_candidates="dos32/dj2" | |
27574 | ;; | |
27575 | *) | |
27576 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
27577 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
27578 | { (exit 1); exit 1; }; } | |
27579 | esac | |
27580 | ||
27581 | mgl_lib_type="" | |
27582 | mgl_os="" | |
27583 | ||
27584 | for mgl_os_i in $mgl_os_candidates ; do | |
27585 | if test "x$mgl_os" = x ; then | |
27586 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
27587 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
27588 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
27589 | mgl_lib_type=debug | |
27590 | mgl_os=$mgl_os_i | |
27591 | fi | |
27592 | fi | |
27593 | if test "x$mgl_lib_type" = x ; then | |
27594 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
27595 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
27596 | mgl_lib_type=release | |
27597 | mgl_os=$mgl_os_i | |
27598 | fi | |
27599 | fi | |
27600 | fi | |
27601 | done | |
27602 | ||
27603 | if test "x$mgl_os" = x ; then | |
27604 | echo "$as_me:$LINENO: result: not found" >&5 | |
27605 | echo "${ECHO_T}not found" >&6 | |
27606 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
27607 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
27608 | { (exit 1); exit 1; }; } | |
27609 | fi | |
27610 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
27611 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
27612 | ||
27613 | wxUSE_UNIVERSAL="yes" | |
27614 | ||
27615 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
27616 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
27617 | ||
27618 | AFMINSTALL=afminstall | |
27619 | TOOLKIT=MGL | |
27620 | GUIDIST=MGL_DIST | |
27621 | fi | |
27622 | ||
27623 | if test "$wxUSE_MICROWIN" = 1; then | |
27624 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
27625 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
27626 | if test "x$MICROWINDOWS" = x ; then | |
27627 | echo "$as_me:$LINENO: result: not found" >&5 | |
27628 | echo "${ECHO_T}not found" >&6 | |
27629 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
27630 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
27631 | { (exit 1); exit 1; }; } | |
27632 | else | |
27633 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
27634 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
27635 | fi | |
27636 | ||
27637 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
27638 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
27639 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
27640 | else | |
27641 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
27642 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
27643 | { (exit 1); exit 1; }; } | |
27644 | fi | |
27645 | ||
27646 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
27647 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
27648 | ||
27649 | wxUSE_UNIVERSAL="yes" | |
27650 | ||
27651 | AFMINSTALL=afminstall | |
27652 | TOOLKIT=MICROWIN | |
27653 | GUIDIST=MICROWIN_DIST | |
27654 | ||
27655 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
27656 | fi | |
27657 | ||
74b84332 | 27658 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
3565d135 | 27659 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
27660 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
27661 | ||
27662 | ||
27663 | # Check whether --with-x or --without-x was given. | |
27664 | if test "${with_x+set}" = set; then | |
27665 | withval="$with_x" | |
27666 | ||
27667 | fi; | |
27668 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
27669 | if test "x$with_x" = xno; then | |
27670 | # The user explicitly disabled X. | |
27671 | have_x=disabled | |
27672 | else | |
27673 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
27674 | # Both variables are already set. | |
27675 | have_x=yes | |
27676 | else | |
27677 | if test "${ac_cv_have_x+set}" = set; then | |
27678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27679 | else | |
27680 | # One or both of the vars are not set, and there is no cached value. | |
27681 | ac_x_includes=no ac_x_libraries=no | |
27682 | rm -fr conftest.dir | |
27683 | if mkdir conftest.dir; then | |
27684 | cd conftest.dir | |
27685 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
27686 | cat >Imakefile <<'_ACEOF' | |
27687 | acfindx: | |
27688 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
27689 | _ACEOF | |
27690 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
27691 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
27692 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
27693 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
27694 | for ac_extension in a so sl; do | |
27695 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
27696 | test -f $ac_im_libdir/libX11.$ac_extension; then |
27697 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
27698 | fi |
27699 | done | |
27700 | # Screen out bogus values from the imake configuration. They are | |
27701 | # bogus both because they are the default anyway, and because | |
27702 | # using them would break gcc on systems where it needs fixed includes. | |
27703 | case $ac_im_incroot in | |
27704 | /usr/include) ;; | |
27705 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
27706 | esac | |
27707 | case $ac_im_usrlibdir in | |
27708 | /usr/lib | /lib) ;; | |
27709 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
27710 | esac | |
27711 | fi | |
27712 | cd .. | |
27713 | rm -fr conftest.dir | |
27714 | fi | |
27715 | ||
27716 | # Standard set of common directories for X headers. | |
27717 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
27718 | ac_x_header_dirs=' | |
27719 | /usr/X11/include | |
27720 | /usr/X11R6/include | |
27721 | /usr/X11R5/include | |
27722 | /usr/X11R4/include | |
27723 | ||
27724 | /usr/include/X11 | |
27725 | /usr/include/X11R6 | |
27726 | /usr/include/X11R5 | |
27727 | /usr/include/X11R4 | |
27728 | ||
27729 | /usr/local/X11/include | |
27730 | /usr/local/X11R6/include | |
27731 | /usr/local/X11R5/include | |
27732 | /usr/local/X11R4/include | |
27733 | ||
27734 | /usr/local/include/X11 | |
27735 | /usr/local/include/X11R6 | |
27736 | /usr/local/include/X11R5 | |
27737 | /usr/local/include/X11R4 | |
27738 | ||
27739 | /usr/X386/include | |
27740 | /usr/x386/include | |
27741 | /usr/XFree86/include/X11 | |
27742 | ||
27743 | /usr/include | |
27744 | /usr/local/include | |
27745 | /usr/unsupported/include | |
27746 | /usr/athena/include | |
27747 | /usr/local/x11r5/include | |
27748 | /usr/lpp/Xamples/include | |
27749 | ||
27750 | /usr/openwin/include | |
27751 | /usr/openwin/share/include' | |
27752 | ||
27753 | if test "$ac_x_includes" = no; then | |
3565d135 | 27754 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
27755 | # First, try using that file with no special directory specified. |
27756 | cat >conftest.$ac_ext <<_ACEOF | |
27757 | /* confdefs.h. */ | |
27758 | _ACEOF | |
27759 | cat confdefs.h >>conftest.$ac_ext | |
27760 | cat >>conftest.$ac_ext <<_ACEOF | |
27761 | /* end confdefs.h. */ | |
3565d135 | 27762 | #include <X11/Intrinsic.h> |
a848cd7e SC |
27763 | _ACEOF |
27764 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27765 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27766 | ac_status=$? | |
27767 | grep -v '^ *+' conftest.er1 >conftest.err | |
27768 | rm -f conftest.er1 | |
27769 | cat conftest.err >&5 | |
27770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27771 | (exit $ac_status); } >/dev/null; then | |
27772 | if test -s conftest.err; then | |
27773 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27774 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27775 | else |
27776 | ac_cpp_err= | |
27777 | fi | |
27778 | else | |
27779 | ac_cpp_err=yes | |
27780 | fi | |
27781 | if test -z "$ac_cpp_err"; then | |
27782 | # We can compile using X headers with no special include directory. | |
27783 | ac_x_includes= | |
27784 | else | |
27785 | echo "$as_me: failed program was:" >&5 | |
27786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27787 | ||
27788 | for ac_dir in $ac_x_header_dirs; do | |
3565d135 | 27789 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
a848cd7e SC |
27790 | ac_x_includes=$ac_dir |
27791 | break | |
27792 | fi | |
27793 | done | |
27794 | fi | |
27795 | rm -f conftest.err conftest.$ac_ext | |
27796 | fi # $ac_x_includes = no | |
27797 | ||
27798 | if test "$ac_x_libraries" = no; then | |
27799 | # Check for the libraries. | |
27800 | # See if we find them without any special options. | |
27801 | # Don't add to $LIBS permanently. | |
27802 | ac_save_LIBS=$LIBS | |
3565d135 | 27803 | LIBS="-lXt $LIBS" |
a848cd7e SC |
27804 | cat >conftest.$ac_ext <<_ACEOF |
27805 | /* confdefs.h. */ | |
27806 | _ACEOF | |
27807 | cat confdefs.h >>conftest.$ac_ext | |
27808 | cat >>conftest.$ac_ext <<_ACEOF | |
27809 | /* end confdefs.h. */ | |
3565d135 | 27810 | #include <X11/Intrinsic.h> |
a848cd7e SC |
27811 | int |
27812 | main () | |
27813 | { | |
3565d135 | 27814 | XtMalloc (0) |
a848cd7e SC |
27815 | ; |
27816 | return 0; | |
27817 | } | |
27818 | _ACEOF | |
27819 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27821 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27822 | ac_status=$? |
ac1cb8d3 VS |
27823 | grep -v '^ *+' conftest.er1 >conftest.err |
27824 | rm -f conftest.er1 | |
27825 | cat conftest.err >&5 | |
a848cd7e SC |
27826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27827 | (exit $ac_status); } && | |
3565d135 RR |
27828 | { ac_try='test -z "$ac_c_werror_flag" |
27829 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27831 | (eval $ac_try) 2>&5 | |
27832 | ac_status=$? | |
27833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27834 | (exit $ac_status); }; } && | |
27835 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27837 | (eval $ac_try) 2>&5 | |
27838 | ac_status=$? | |
27839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27840 | (exit $ac_status); }; }; then | |
27841 | LIBS=$ac_save_LIBS | |
27842 | # We can link X programs with no special library path. | |
27843 | ac_x_libraries= | |
27844 | else | |
27845 | echo "$as_me: failed program was:" >&5 | |
27846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27847 | ||
27848 | LIBS=$ac_save_LIBS | |
27849 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
27850 | do | |
27851 | # Don't even attempt the hair of trying to link an X program! | |
27852 | for ac_extension in a so sl; do | |
3565d135 | 27853 | if test -r $ac_dir/libXt.$ac_extension; then |
a848cd7e SC |
27854 | ac_x_libraries=$ac_dir |
27855 | break 2 | |
27856 | fi | |
27857 | done | |
27858 | done | |
27859 | fi | |
ac1cb8d3 VS |
27860 | rm -f conftest.err conftest.$ac_objext \ |
27861 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27862 | fi # $ac_x_libraries = no |
27863 | ||
27864 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
27865 | # Didn't find X anywhere. Cache the known absence of X. | |
27866 | ac_cv_have_x="have_x=no" | |
27867 | else | |
27868 | # Record where we found X for the cache. | |
27869 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 27870 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
27871 | fi |
27872 | fi | |
27873 | ||
27874 | fi | |
27875 | eval "$ac_cv_have_x" | |
27876 | fi # $with_x != no | |
27877 | ||
27878 | if test "$have_x" != yes; then | |
27879 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
27880 | echo "${ECHO_T}$have_x" >&6 | |
27881 | no_x=yes | |
27882 | else | |
27883 | # If each of the values was on the command line, it overrides each guess. | |
27884 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
27885 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
27886 | # Update the cache value to reflect the command line values. | |
27887 | ac_cv_have_x="have_x=yes \ | |
27888 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
3565d135 RR |
27889 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
27890 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
27891 | fi |
27892 | ||
27893 | if test "$no_x" = yes; then | |
27894 | # Not all programs may use this symbol, but it does not hurt to define it. | |
27895 | ||
27896 | cat >>confdefs.h <<\_ACEOF | |
27897 | #define X_DISPLAY_MISSING 1 | |
27898 | _ACEOF | |
27899 | ||
27900 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
27901 | else | |
27902 | if test -n "$x_includes"; then | |
27903 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
27904 | fi | |
27905 | ||
27906 | # It would also be nice to do this for all -L options, not just this one. | |
27907 | if test -n "$x_libraries"; then | |
27908 | X_LIBS="$X_LIBS -L$x_libraries" | |
27909 | # For Solaris; some versions of Sun CC require a space after -R and | |
27910 | # others require no space. Words are not sufficient . . . . | |
27911 | case `(uname -sr) 2>/dev/null` in | |
27912 | "SunOS 5"*) | |
27913 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
27914 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
27915 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
27916 | cat >conftest.$ac_ext <<_ACEOF | |
27917 | /* confdefs.h. */ | |
27918 | _ACEOF | |
27919 | cat confdefs.h >>conftest.$ac_ext | |
27920 | cat >>conftest.$ac_ext <<_ACEOF | |
27921 | /* end confdefs.h. */ | |
27922 | ||
27923 | int | |
27924 | main () | |
27925 | { | |
27926 | ||
27927 | ; | |
27928 | return 0; | |
27929 | } | |
27930 | _ACEOF | |
27931 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27933 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27934 | ac_status=$? |
ac1cb8d3 VS |
27935 | grep -v '^ *+' conftest.er1 >conftest.err |
27936 | rm -f conftest.er1 | |
27937 | cat conftest.err >&5 | |
a848cd7e SC |
27938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27939 | (exit $ac_status); } && | |
3565d135 RR |
27940 | { ac_try='test -z "$ac_c_werror_flag" |
27941 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27943 | (eval $ac_try) 2>&5 | |
27944 | ac_status=$? | |
27945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27946 | (exit $ac_status); }; } && | |
27947 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27949 | (eval $ac_try) 2>&5 | |
27950 | ac_status=$? | |
27951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27952 | (exit $ac_status); }; }; then | |
27953 | ac_R_nospace=yes | |
27954 | else | |
27955 | echo "$as_me: failed program was:" >&5 | |
27956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27957 | ||
27958 | ac_R_nospace=no | |
27959 | fi | |
ac1cb8d3 VS |
27960 | rm -f conftest.err conftest.$ac_objext \ |
27961 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27962 | if test $ac_R_nospace = yes; then |
27963 | echo "$as_me:$LINENO: result: no" >&5 | |
27964 | echo "${ECHO_T}no" >&6 | |
27965 | X_LIBS="$X_LIBS -R$x_libraries" | |
27966 | else | |
27967 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
27968 | cat >conftest.$ac_ext <<_ACEOF | |
27969 | /* confdefs.h. */ | |
27970 | _ACEOF | |
27971 | cat confdefs.h >>conftest.$ac_ext | |
27972 | cat >>conftest.$ac_ext <<_ACEOF | |
27973 | /* end confdefs.h. */ | |
27974 | ||
27975 | int | |
27976 | main () | |
27977 | { | |
27978 | ||
27979 | ; | |
27980 | return 0; | |
27981 | } | |
27982 | _ACEOF | |
27983 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27985 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27986 | ac_status=$? |
ac1cb8d3 VS |
27987 | grep -v '^ *+' conftest.er1 >conftest.err |
27988 | rm -f conftest.er1 | |
27989 | cat conftest.err >&5 | |
a848cd7e SC |
27990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27991 | (exit $ac_status); } && | |
3565d135 RR |
27992 | { ac_try='test -z "$ac_c_werror_flag" |
27993 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27995 | (eval $ac_try) 2>&5 | |
27996 | ac_status=$? | |
27997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27998 | (exit $ac_status); }; } && | |
27999 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28001 | (eval $ac_try) 2>&5 | |
28002 | ac_status=$? | |
28003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28004 | (exit $ac_status); }; }; then | |
28005 | ac_R_space=yes | |
28006 | else | |
28007 | echo "$as_me: failed program was:" >&5 | |
28008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28009 | ||
28010 | ac_R_space=no | |
28011 | fi | |
ac1cb8d3 VS |
28012 | rm -f conftest.err conftest.$ac_objext \ |
28013 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28014 | if test $ac_R_space = yes; then |
28015 | echo "$as_me:$LINENO: result: yes" >&5 | |
28016 | echo "${ECHO_T}yes" >&6 | |
28017 | X_LIBS="$X_LIBS -R $x_libraries" | |
28018 | else | |
28019 | echo "$as_me:$LINENO: result: neither works" >&5 | |
28020 | echo "${ECHO_T}neither works" >&6 | |
28021 | fi | |
28022 | fi | |
28023 | LIBS=$ac_xsave_LIBS | |
28024 | esac | |
28025 | fi | |
28026 | ||
28027 | # Check for system-dependent libraries X programs must link with. | |
28028 | # Do this before checking for the system-independent R6 libraries | |
28029 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
28030 | ||
28031 | if test "$ISC" = yes; then | |
28032 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
28033 | else | |
28034 | # Martyn Johnson says this is needed for Ultrix, if the X | |
28035 | # libraries were built with DECnet support. And Karl Berry says | |
28036 | # the Alpha needs dnet_stub (dnet does not exist). | |
28037 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
28038 | cat >conftest.$ac_ext <<_ACEOF | |
28039 | /* confdefs.h. */ | |
28040 | _ACEOF | |
28041 | cat confdefs.h >>conftest.$ac_ext | |
28042 | cat >>conftest.$ac_ext <<_ACEOF | |
28043 | /* end confdefs.h. */ | |
28044 | ||
28045 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28046 | #ifdef __cplusplus | |
28047 | extern "C" | |
28048 | #endif | |
28049 | /* We use char because int might match the return type of a gcc2 | |
28050 | builtin and then its argument prototype would still apply. */ | |
28051 | char XOpenDisplay (); | |
28052 | int | |
28053 | main () | |
28054 | { | |
28055 | XOpenDisplay (); | |
28056 | ; | |
28057 | return 0; | |
28058 | } | |
28059 | _ACEOF | |
28060 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28062 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28063 | ac_status=$? |
ac1cb8d3 VS |
28064 | grep -v '^ *+' conftest.er1 >conftest.err |
28065 | rm -f conftest.er1 | |
28066 | cat conftest.err >&5 | |
a848cd7e SC |
28067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28068 | (exit $ac_status); } && | |
3565d135 RR |
28069 | { ac_try='test -z "$ac_c_werror_flag" |
28070 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28072 | (eval $ac_try) 2>&5 | |
28073 | ac_status=$? | |
28074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28075 | (exit $ac_status); }; } && | |
28076 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28078 | (eval $ac_try) 2>&5 | |
28079 | ac_status=$? | |
28080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28081 | (exit $ac_status); }; }; then | |
28082 | : | |
28083 | else | |
28084 | echo "$as_me: failed program was:" >&5 | |
28085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28086 | ||
28087 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
28088 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
28089 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
28090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28091 | else | |
28092 | ac_check_lib_save_LIBS=$LIBS | |
28093 | LIBS="-ldnet $LIBS" | |
28094 | cat >conftest.$ac_ext <<_ACEOF | |
28095 | /* confdefs.h. */ | |
28096 | _ACEOF | |
28097 | cat confdefs.h >>conftest.$ac_ext | |
28098 | cat >>conftest.$ac_ext <<_ACEOF | |
28099 | /* end confdefs.h. */ | |
28100 | ||
28101 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28102 | #ifdef __cplusplus | |
28103 | extern "C" | |
28104 | #endif | |
28105 | /* We use char because int might match the return type of a gcc2 | |
28106 | builtin and then its argument prototype would still apply. */ | |
28107 | char dnet_ntoa (); | |
28108 | int | |
28109 | main () | |
28110 | { | |
28111 | dnet_ntoa (); | |
28112 | ; | |
28113 | return 0; | |
28114 | } | |
28115 | _ACEOF | |
28116 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28118 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28119 | ac_status=$? |
ac1cb8d3 VS |
28120 | grep -v '^ *+' conftest.er1 >conftest.err |
28121 | rm -f conftest.er1 | |
28122 | cat conftest.err >&5 | |
a848cd7e SC |
28123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28124 | (exit $ac_status); } && | |
3565d135 RR |
28125 | { ac_try='test -z "$ac_c_werror_flag" |
28126 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28128 | (eval $ac_try) 2>&5 | |
28129 | ac_status=$? | |
28130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28131 | (exit $ac_status); }; } && | |
28132 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28134 | (eval $ac_try) 2>&5 | |
28135 | ac_status=$? | |
28136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28137 | (exit $ac_status); }; }; then | |
28138 | ac_cv_lib_dnet_dnet_ntoa=yes | |
28139 | else | |
28140 | echo "$as_me: failed program was:" >&5 | |
28141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28142 | ||
28143 | ac_cv_lib_dnet_dnet_ntoa=no | |
28144 | fi | |
ac1cb8d3 VS |
28145 | rm -f conftest.err conftest.$ac_objext \ |
28146 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28147 | LIBS=$ac_check_lib_save_LIBS |
28148 | fi | |
28149 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
28150 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
28151 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
28152 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
28153 | fi | |
28154 | ||
28155 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
28156 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
28157 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
28158 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
28159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28160 | else | |
28161 | ac_check_lib_save_LIBS=$LIBS | |
28162 | LIBS="-ldnet_stub $LIBS" | |
28163 | cat >conftest.$ac_ext <<_ACEOF | |
28164 | /* confdefs.h. */ | |
28165 | _ACEOF | |
28166 | cat confdefs.h >>conftest.$ac_ext | |
28167 | cat >>conftest.$ac_ext <<_ACEOF | |
28168 | /* end confdefs.h. */ | |
28169 | ||
28170 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28171 | #ifdef __cplusplus | |
28172 | extern "C" | |
28173 | #endif | |
28174 | /* We use char because int might match the return type of a gcc2 | |
28175 | builtin and then its argument prototype would still apply. */ | |
28176 | char dnet_ntoa (); | |
28177 | int | |
28178 | main () | |
28179 | { | |
28180 | dnet_ntoa (); | |
28181 | ; | |
28182 | return 0; | |
28183 | } | |
28184 | _ACEOF | |
28185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28187 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28188 | ac_status=$? |
ac1cb8d3 VS |
28189 | grep -v '^ *+' conftest.er1 >conftest.err |
28190 | rm -f conftest.er1 | |
28191 | cat conftest.err >&5 | |
a848cd7e SC |
28192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28193 | (exit $ac_status); } && | |
3565d135 RR |
28194 | { ac_try='test -z "$ac_c_werror_flag" |
28195 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28197 | (eval $ac_try) 2>&5 | |
28198 | ac_status=$? | |
28199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28200 | (exit $ac_status); }; } && | |
28201 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28203 | (eval $ac_try) 2>&5 | |
28204 | ac_status=$? | |
28205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28206 | (exit $ac_status); }; }; then | |
28207 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
28208 | else | |
28209 | echo "$as_me: failed program was:" >&5 | |
28210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28211 | ||
28212 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
28213 | fi | |
ac1cb8d3 VS |
28214 | rm -f conftest.err conftest.$ac_objext \ |
28215 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28216 | LIBS=$ac_check_lib_save_LIBS |
28217 | fi | |
28218 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
28219 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
28220 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
28221 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
28222 | fi | |
28223 | ||
28224 | fi | |
28225 | fi | |
ac1cb8d3 VS |
28226 | rm -f conftest.err conftest.$ac_objext \ |
28227 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28228 | LIBS="$ac_xsave_LIBS" |
28229 | ||
28230 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
28231 | # to get the SysV transport functions. | |
28232 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
28233 | # needs -lnsl. | |
28234 | # The nsl library prevents programs from opening the X display | |
28235 | # on Irix 5.2, according to T.E. Dickey. | |
28236 | # The functions gethostbyname, getservbyname, and inet_addr are | |
28237 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
28238 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
28239 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
28240 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
28241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28242 | else | |
28243 | cat >conftest.$ac_ext <<_ACEOF | |
28244 | /* confdefs.h. */ | |
28245 | _ACEOF | |
28246 | cat confdefs.h >>conftest.$ac_ext | |
28247 | cat >>conftest.$ac_ext <<_ACEOF | |
28248 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28249 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
28250 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28251 | #define gethostbyname innocuous_gethostbyname | |
28252 | ||
a848cd7e SC |
28253 | /* System header to define __stub macros and hopefully few prototypes, |
28254 | which can conflict with char gethostbyname (); below. | |
28255 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28256 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28257 | |
a848cd7e SC |
28258 | #ifdef __STDC__ |
28259 | # include <limits.h> | |
28260 | #else | |
28261 | # include <assert.h> | |
28262 | #endif | |
ac1cb8d3 VS |
28263 | |
28264 | #undef gethostbyname | |
28265 | ||
a848cd7e SC |
28266 | /* Override any gcc2 internal prototype to avoid an error. */ |
28267 | #ifdef __cplusplus | |
28268 | extern "C" | |
28269 | { | |
28270 | #endif | |
28271 | /* We use char because int might match the return type of a gcc2 | |
28272 | builtin and then its argument prototype would still apply. */ | |
28273 | char gethostbyname (); | |
28274 | /* The GNU C library defines this for functions which it implements | |
28275 | to always fail with ENOSYS. Some functions are actually named | |
28276 | something starting with __ and the normal name is an alias. */ | |
28277 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
28278 | choke me | |
28279 | #else | |
28280 | char (*f) () = gethostbyname; | |
28281 | #endif | |
28282 | #ifdef __cplusplus | |
28283 | } | |
28284 | #endif | |
28285 | ||
28286 | int | |
28287 | main () | |
28288 | { | |
28289 | return f != gethostbyname; | |
28290 | ; | |
28291 | return 0; | |
28292 | } | |
28293 | _ACEOF | |
28294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28296 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28297 | ac_status=$? |
ac1cb8d3 VS |
28298 | grep -v '^ *+' conftest.er1 >conftest.err |
28299 | rm -f conftest.er1 | |
28300 | cat conftest.err >&5 | |
a848cd7e SC |
28301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28302 | (exit $ac_status); } && | |
3565d135 RR |
28303 | { ac_try='test -z "$ac_c_werror_flag" |
28304 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28306 | (eval $ac_try) 2>&5 | |
28307 | ac_status=$? | |
28308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28309 | (exit $ac_status); }; } && | |
28310 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28312 | (eval $ac_try) 2>&5 | |
28313 | ac_status=$? | |
28314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28315 | (exit $ac_status); }; }; then | |
28316 | ac_cv_func_gethostbyname=yes | |
28317 | else | |
28318 | echo "$as_me: failed program was:" >&5 | |
28319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28320 | ||
28321 | ac_cv_func_gethostbyname=no | |
28322 | fi | |
ac1cb8d3 VS |
28323 | rm -f conftest.err conftest.$ac_objext \ |
28324 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28325 | fi |
28326 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
28327 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
28328 | ||
28329 | if test $ac_cv_func_gethostbyname = no; then | |
28330 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
28331 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
28332 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
28333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28334 | else | |
28335 | ac_check_lib_save_LIBS=$LIBS | |
28336 | LIBS="-lnsl $LIBS" | |
28337 | cat >conftest.$ac_ext <<_ACEOF | |
28338 | /* confdefs.h. */ | |
28339 | _ACEOF | |
28340 | cat confdefs.h >>conftest.$ac_ext | |
28341 | cat >>conftest.$ac_ext <<_ACEOF | |
28342 | /* end confdefs.h. */ | |
28343 | ||
28344 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28345 | #ifdef __cplusplus | |
28346 | extern "C" | |
28347 | #endif | |
28348 | /* We use char because int might match the return type of a gcc2 | |
28349 | builtin and then its argument prototype would still apply. */ | |
28350 | char gethostbyname (); | |
28351 | int | |
28352 | main () | |
28353 | { | |
28354 | gethostbyname (); | |
28355 | ; | |
28356 | return 0; | |
28357 | } | |
28358 | _ACEOF | |
28359 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
28361 | (eval $ac_link) 2>conftest.er1 |
28362 | ac_status=$? | |
28363 | grep -v '^ *+' conftest.er1 >conftest.err | |
28364 | rm -f conftest.er1 | |
28365 | cat conftest.err >&5 | |
28366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28367 | (exit $ac_status); } && | |
3565d135 RR |
28368 | { ac_try='test -z "$ac_c_werror_flag" |
28369 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28371 | (eval $ac_try) 2>&5 | |
28372 | ac_status=$? | |
28373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28374 | (exit $ac_status); }; } && | |
28375 | { ac_try='test -s conftest$ac_exeext' | |
28376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28377 | (eval $ac_try) 2>&5 | |
28378 | ac_status=$? | |
28379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28380 | (exit $ac_status); }; }; then | |
28381 | ac_cv_lib_nsl_gethostbyname=yes | |
28382 | else | |
28383 | echo "$as_me: failed program was:" >&5 | |
28384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28385 | ||
28386 | ac_cv_lib_nsl_gethostbyname=no | |
28387 | fi | |
28388 | rm -f conftest.err conftest.$ac_objext \ | |
28389 | conftest$ac_exeext conftest.$ac_ext | |
28390 | LIBS=$ac_check_lib_save_LIBS | |
28391 | fi | |
28392 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
28393 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
28394 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
28395 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
28396 | fi | |
28397 | ||
28398 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
28399 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
28400 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
28401 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
28402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28403 | else | |
28404 | ac_check_lib_save_LIBS=$LIBS | |
28405 | LIBS="-lbsd $LIBS" | |
28406 | cat >conftest.$ac_ext <<_ACEOF | |
28407 | /* confdefs.h. */ | |
28408 | _ACEOF | |
28409 | cat confdefs.h >>conftest.$ac_ext | |
28410 | cat >>conftest.$ac_ext <<_ACEOF | |
28411 | /* end confdefs.h. */ | |
28412 | ||
28413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28414 | #ifdef __cplusplus | |
28415 | extern "C" | |
28416 | #endif | |
28417 | /* We use char because int might match the return type of a gcc2 | |
28418 | builtin and then its argument prototype would still apply. */ | |
28419 | char gethostbyname (); | |
28420 | int | |
28421 | main () | |
28422 | { | |
28423 | gethostbyname (); | |
28424 | ; | |
28425 | return 0; | |
28426 | } | |
28427 | _ACEOF | |
28428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28430 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 28431 | ac_status=$? |
ac1cb8d3 VS |
28432 | grep -v '^ *+' conftest.er1 >conftest.err |
28433 | rm -f conftest.er1 | |
28434 | cat conftest.err >&5 | |
a848cd7e SC |
28435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28436 | (exit $ac_status); } && | |
3565d135 RR |
28437 | { ac_try='test -z "$ac_c_werror_flag" |
28438 | || test ! -s conftest.err' | |
a848cd7e SC |
28439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28440 | (eval $ac_try) 2>&5 | |
28441 | ac_status=$? | |
28442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
28443 | (exit $ac_status); }; } && |
28444 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28446 | (eval $ac_try) 2>&5 | |
28447 | ac_status=$? | |
28448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28449 | (exit $ac_status); }; }; then | |
28450 | ac_cv_lib_bsd_gethostbyname=yes | |
28451 | else | |
28452 | echo "$as_me: failed program was:" >&5 | |
28453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28454 | ||
28455 | ac_cv_lib_bsd_gethostbyname=no | |
28456 | fi | |
ac1cb8d3 VS |
28457 | rm -f conftest.err conftest.$ac_objext \ |
28458 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28459 | LIBS=$ac_check_lib_save_LIBS |
28460 | fi | |
28461 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
28462 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
28463 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
28464 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
28465 | fi | |
28466 | ||
28467 | fi | |
28468 | fi | |
28469 | ||
28470 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
28471 | # socket/setsockopt and other routines are undefined under SCO ODT | |
28472 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
28473 | # on later versions), says Simon Leinen: it contains gethostby* | |
28474 | # variants that don't use the name server (or something). -lsocket | |
28475 | # must be given before -lnsl if both are needed. We assume that | |
28476 | # if connect needs -lnsl, so does gethostbyname. | |
28477 | echo "$as_me:$LINENO: checking for connect" >&5 | |
28478 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
28479 | if test "${ac_cv_func_connect+set}" = set; then | |
28480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28481 | else | |
28482 | cat >conftest.$ac_ext <<_ACEOF | |
28483 | /* confdefs.h. */ | |
28484 | _ACEOF | |
28485 | cat confdefs.h >>conftest.$ac_ext | |
28486 | cat >>conftest.$ac_ext <<_ACEOF | |
28487 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28488 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
28489 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28490 | #define connect innocuous_connect | |
28491 | ||
a848cd7e SC |
28492 | /* System header to define __stub macros and hopefully few prototypes, |
28493 | which can conflict with char connect (); below. | |
28494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28495 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28496 | |
a848cd7e SC |
28497 | #ifdef __STDC__ |
28498 | # include <limits.h> | |
28499 | #else | |
28500 | # include <assert.h> | |
28501 | #endif | |
ac1cb8d3 VS |
28502 | |
28503 | #undef connect | |
28504 | ||
a848cd7e SC |
28505 | /* Override any gcc2 internal prototype to avoid an error. */ |
28506 | #ifdef __cplusplus | |
28507 | extern "C" | |
28508 | { | |
28509 | #endif | |
28510 | /* We use char because int might match the return type of a gcc2 | |
28511 | builtin and then its argument prototype would still apply. */ | |
28512 | char connect (); | |
28513 | /* The GNU C library defines this for functions which it implements | |
28514 | to always fail with ENOSYS. Some functions are actually named | |
28515 | something starting with __ and the normal name is an alias. */ | |
28516 | #if defined (__stub_connect) || defined (__stub___connect) | |
28517 | choke me | |
28518 | #else | |
28519 | char (*f) () = connect; | |
28520 | #endif | |
28521 | #ifdef __cplusplus | |
28522 | } | |
28523 | #endif | |
28524 | ||
28525 | int | |
28526 | main () | |
28527 | { | |
28528 | return f != connect; | |
28529 | ; | |
28530 | return 0; | |
28531 | } | |
28532 | _ACEOF | |
28533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28535 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28536 | ac_status=$? |
ac1cb8d3 VS |
28537 | grep -v '^ *+' conftest.er1 >conftest.err |
28538 | rm -f conftest.er1 | |
28539 | cat conftest.err >&5 | |
a848cd7e SC |
28540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28541 | (exit $ac_status); } && | |
3565d135 RR |
28542 | { ac_try='test -z "$ac_c_werror_flag" |
28543 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28545 | (eval $ac_try) 2>&5 | |
28546 | ac_status=$? | |
28547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28548 | (exit $ac_status); }; } && | |
28549 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28551 | (eval $ac_try) 2>&5 | |
28552 | ac_status=$? | |
28553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28554 | (exit $ac_status); }; }; then | |
28555 | ac_cv_func_connect=yes | |
28556 | else | |
28557 | echo "$as_me: failed program was:" >&5 | |
28558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28559 | ||
28560 | ac_cv_func_connect=no | |
28561 | fi | |
ac1cb8d3 VS |
28562 | rm -f conftest.err conftest.$ac_objext \ |
28563 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28564 | fi |
28565 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
28566 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
28567 | ||
28568 | if test $ac_cv_func_connect = no; then | |
28569 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
28570 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
28571 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
28572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28573 | else | |
28574 | ac_check_lib_save_LIBS=$LIBS | |
28575 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
28576 | cat >conftest.$ac_ext <<_ACEOF | |
28577 | /* confdefs.h. */ | |
28578 | _ACEOF | |
28579 | cat confdefs.h >>conftest.$ac_ext | |
28580 | cat >>conftest.$ac_ext <<_ACEOF | |
28581 | /* end confdefs.h. */ | |
28582 | ||
28583 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28584 | #ifdef __cplusplus | |
28585 | extern "C" | |
28586 | #endif | |
28587 | /* We use char because int might match the return type of a gcc2 | |
28588 | builtin and then its argument prototype would still apply. */ | |
28589 | char connect (); | |
28590 | int | |
28591 | main () | |
28592 | { | |
28593 | connect (); | |
28594 | ; | |
28595 | return 0; | |
28596 | } | |
28597 | _ACEOF | |
28598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28600 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28601 | ac_status=$? |
ac1cb8d3 VS |
28602 | grep -v '^ *+' conftest.er1 >conftest.err |
28603 | rm -f conftest.er1 | |
28604 | cat conftest.err >&5 | |
a848cd7e SC |
28605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28606 | (exit $ac_status); } && | |
3565d135 RR |
28607 | { ac_try='test -z "$ac_c_werror_flag" |
28608 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28610 | (eval $ac_try) 2>&5 | |
28611 | ac_status=$? | |
28612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28613 | (exit $ac_status); }; } && | |
28614 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28616 | (eval $ac_try) 2>&5 | |
28617 | ac_status=$? | |
28618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28619 | (exit $ac_status); }; }; then | |
28620 | ac_cv_lib_socket_connect=yes | |
28621 | else | |
28622 | echo "$as_me: failed program was:" >&5 | |
28623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28624 | ||
28625 | ac_cv_lib_socket_connect=no | |
28626 | fi | |
ac1cb8d3 VS |
28627 | rm -f conftest.err conftest.$ac_objext \ |
28628 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28629 | LIBS=$ac_check_lib_save_LIBS |
28630 | fi | |
28631 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
28632 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
28633 | if test $ac_cv_lib_socket_connect = yes; then | |
28634 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
28635 | fi | |
28636 | ||
28637 | fi | |
28638 | ||
28639 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
28640 | echo "$as_me:$LINENO: checking for remove" >&5 | |
28641 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
28642 | if test "${ac_cv_func_remove+set}" = set; then | |
28643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28644 | else | |
28645 | cat >conftest.$ac_ext <<_ACEOF | |
28646 | /* confdefs.h. */ | |
28647 | _ACEOF | |
28648 | cat confdefs.h >>conftest.$ac_ext | |
28649 | cat >>conftest.$ac_ext <<_ACEOF | |
28650 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28651 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
28652 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28653 | #define remove innocuous_remove | |
28654 | ||
a848cd7e SC |
28655 | /* System header to define __stub macros and hopefully few prototypes, |
28656 | which can conflict with char remove (); below. | |
28657 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28658 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28659 | |
a848cd7e SC |
28660 | #ifdef __STDC__ |
28661 | # include <limits.h> | |
28662 | #else | |
28663 | # include <assert.h> | |
28664 | #endif | |
ac1cb8d3 VS |
28665 | |
28666 | #undef remove | |
28667 | ||
a848cd7e SC |
28668 | /* Override any gcc2 internal prototype to avoid an error. */ |
28669 | #ifdef __cplusplus | |
28670 | extern "C" | |
28671 | { | |
28672 | #endif | |
28673 | /* We use char because int might match the return type of a gcc2 | |
28674 | builtin and then its argument prototype would still apply. */ | |
28675 | char remove (); | |
28676 | /* The GNU C library defines this for functions which it implements | |
28677 | to always fail with ENOSYS. Some functions are actually named | |
28678 | something starting with __ and the normal name is an alias. */ | |
28679 | #if defined (__stub_remove) || defined (__stub___remove) | |
28680 | choke me | |
28681 | #else | |
28682 | char (*f) () = remove; | |
28683 | #endif | |
28684 | #ifdef __cplusplus | |
28685 | } | |
28686 | #endif | |
28687 | ||
28688 | int | |
28689 | main () | |
28690 | { | |
28691 | return f != remove; | |
28692 | ; | |
28693 | return 0; | |
28694 | } | |
28695 | _ACEOF | |
28696 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28698 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28699 | ac_status=$? |
ac1cb8d3 VS |
28700 | grep -v '^ *+' conftest.er1 >conftest.err |
28701 | rm -f conftest.er1 | |
28702 | cat conftest.err >&5 | |
a848cd7e SC |
28703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28704 | (exit $ac_status); } && | |
3565d135 RR |
28705 | { ac_try='test -z "$ac_c_werror_flag" |
28706 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28708 | (eval $ac_try) 2>&5 | |
28709 | ac_status=$? | |
28710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28711 | (exit $ac_status); }; } && | |
28712 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28714 | (eval $ac_try) 2>&5 | |
28715 | ac_status=$? | |
28716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28717 | (exit $ac_status); }; }; then | |
28718 | ac_cv_func_remove=yes | |
28719 | else | |
28720 | echo "$as_me: failed program was:" >&5 | |
28721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28722 | ||
28723 | ac_cv_func_remove=no | |
28724 | fi | |
ac1cb8d3 VS |
28725 | rm -f conftest.err conftest.$ac_objext \ |
28726 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28727 | fi |
28728 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
28729 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
28730 | ||
28731 | if test $ac_cv_func_remove = no; then | |
28732 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
28733 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
28734 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
28735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28736 | else | |
28737 | ac_check_lib_save_LIBS=$LIBS | |
28738 | LIBS="-lposix $LIBS" | |
28739 | cat >conftest.$ac_ext <<_ACEOF | |
28740 | /* confdefs.h. */ | |
28741 | _ACEOF | |
28742 | cat confdefs.h >>conftest.$ac_ext | |
28743 | cat >>conftest.$ac_ext <<_ACEOF | |
28744 | /* end confdefs.h. */ | |
28745 | ||
28746 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28747 | #ifdef __cplusplus | |
28748 | extern "C" | |
28749 | #endif | |
28750 | /* We use char because int might match the return type of a gcc2 | |
28751 | builtin and then its argument prototype would still apply. */ | |
28752 | char remove (); | |
28753 | int | |
28754 | main () | |
28755 | { | |
28756 | remove (); | |
28757 | ; | |
28758 | return 0; | |
28759 | } | |
28760 | _ACEOF | |
28761 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28763 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28764 | ac_status=$? |
ac1cb8d3 VS |
28765 | grep -v '^ *+' conftest.er1 >conftest.err |
28766 | rm -f conftest.er1 | |
28767 | cat conftest.err >&5 | |
a848cd7e SC |
28768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28769 | (exit $ac_status); } && | |
3565d135 RR |
28770 | { ac_try='test -z "$ac_c_werror_flag" |
28771 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28773 | (eval $ac_try) 2>&5 | |
28774 | ac_status=$? | |
28775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28776 | (exit $ac_status); }; } && | |
28777 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28779 | (eval $ac_try) 2>&5 | |
28780 | ac_status=$? | |
28781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28782 | (exit $ac_status); }; }; then | |
28783 | ac_cv_lib_posix_remove=yes | |
28784 | else | |
28785 | echo "$as_me: failed program was:" >&5 | |
28786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28787 | ||
28788 | ac_cv_lib_posix_remove=no | |
28789 | fi | |
ac1cb8d3 VS |
28790 | rm -f conftest.err conftest.$ac_objext \ |
28791 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28792 | LIBS=$ac_check_lib_save_LIBS |
28793 | fi | |
28794 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
28795 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
28796 | if test $ac_cv_lib_posix_remove = yes; then | |
28797 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
28798 | fi | |
28799 | ||
28800 | fi | |
28801 | ||
28802 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
28803 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
28804 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
28805 | if test "${ac_cv_func_shmat+set}" = set; then | |
28806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28807 | else | |
28808 | cat >conftest.$ac_ext <<_ACEOF | |
28809 | /* confdefs.h. */ | |
28810 | _ACEOF | |
28811 | cat confdefs.h >>conftest.$ac_ext | |
28812 | cat >>conftest.$ac_ext <<_ACEOF | |
28813 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28814 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
28815 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28816 | #define shmat innocuous_shmat | |
28817 | ||
a848cd7e SC |
28818 | /* System header to define __stub macros and hopefully few prototypes, |
28819 | which can conflict with char shmat (); below. | |
28820 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28821 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28822 | |
a848cd7e SC |
28823 | #ifdef __STDC__ |
28824 | # include <limits.h> | |
28825 | #else | |
28826 | # include <assert.h> | |
28827 | #endif | |
ac1cb8d3 VS |
28828 | |
28829 | #undef shmat | |
28830 | ||
a848cd7e SC |
28831 | /* Override any gcc2 internal prototype to avoid an error. */ |
28832 | #ifdef __cplusplus | |
28833 | extern "C" | |
28834 | { | |
28835 | #endif | |
28836 | /* We use char because int might match the return type of a gcc2 | |
28837 | builtin and then its argument prototype would still apply. */ | |
28838 | char shmat (); | |
28839 | /* The GNU C library defines this for functions which it implements | |
28840 | to always fail with ENOSYS. Some functions are actually named | |
28841 | something starting with __ and the normal name is an alias. */ | |
28842 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
28843 | choke me | |
28844 | #else | |
28845 | char (*f) () = shmat; | |
28846 | #endif | |
28847 | #ifdef __cplusplus | |
28848 | } | |
28849 | #endif | |
28850 | ||
28851 | int | |
28852 | main () | |
28853 | { | |
28854 | return f != shmat; | |
28855 | ; | |
28856 | return 0; | |
28857 | } | |
28858 | _ACEOF | |
28859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28861 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28862 | ac_status=$? |
ac1cb8d3 VS |
28863 | grep -v '^ *+' conftest.er1 >conftest.err |
28864 | rm -f conftest.er1 | |
28865 | cat conftest.err >&5 | |
a848cd7e SC |
28866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28867 | (exit $ac_status); } && | |
3565d135 RR |
28868 | { ac_try='test -z "$ac_c_werror_flag" |
28869 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28871 | (eval $ac_try) 2>&5 | |
28872 | ac_status=$? | |
28873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28874 | (exit $ac_status); }; } && | |
28875 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
28881 | ac_cv_func_shmat=yes | |
28882 | else | |
28883 | echo "$as_me: failed program was:" >&5 | |
28884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28885 | ||
28886 | ac_cv_func_shmat=no | |
28887 | fi | |
ac1cb8d3 VS |
28888 | rm -f conftest.err conftest.$ac_objext \ |
28889 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28890 | fi |
28891 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
28892 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
28893 | ||
28894 | if test $ac_cv_func_shmat = no; then | |
28895 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
28896 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
28897 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
28898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28899 | else | |
28900 | ac_check_lib_save_LIBS=$LIBS | |
28901 | LIBS="-lipc $LIBS" | |
28902 | cat >conftest.$ac_ext <<_ACEOF | |
28903 | /* confdefs.h. */ | |
28904 | _ACEOF | |
28905 | cat confdefs.h >>conftest.$ac_ext | |
28906 | cat >>conftest.$ac_ext <<_ACEOF | |
28907 | /* end confdefs.h. */ | |
28908 | ||
28909 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28910 | #ifdef __cplusplus | |
28911 | extern "C" | |
28912 | #endif | |
28913 | /* We use char because int might match the return type of a gcc2 | |
28914 | builtin and then its argument prototype would still apply. */ | |
28915 | char shmat (); | |
28916 | int | |
28917 | main () | |
28918 | { | |
28919 | shmat (); | |
28920 | ; | |
28921 | return 0; | |
28922 | } | |
28923 | _ACEOF | |
28924 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28926 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28927 | ac_status=$? |
ac1cb8d3 VS |
28928 | grep -v '^ *+' conftest.er1 >conftest.err |
28929 | rm -f conftest.er1 | |
28930 | cat conftest.err >&5 | |
a848cd7e SC |
28931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28932 | (exit $ac_status); } && | |
3565d135 RR |
28933 | { ac_try='test -z "$ac_c_werror_flag" |
28934 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28936 | (eval $ac_try) 2>&5 | |
28937 | ac_status=$? | |
28938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28939 | (exit $ac_status); }; } && | |
28940 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28942 | (eval $ac_try) 2>&5 | |
28943 | ac_status=$? | |
28944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28945 | (exit $ac_status); }; }; then | |
28946 | ac_cv_lib_ipc_shmat=yes | |
28947 | else | |
28948 | echo "$as_me: failed program was:" >&5 | |
28949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28950 | ||
28951 | ac_cv_lib_ipc_shmat=no | |
28952 | fi | |
ac1cb8d3 VS |
28953 | rm -f conftest.err conftest.$ac_objext \ |
28954 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28955 | LIBS=$ac_check_lib_save_LIBS |
28956 | fi | |
28957 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
28958 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
28959 | if test $ac_cv_lib_ipc_shmat = yes; then | |
28960 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
28961 | fi | |
28962 | ||
28963 | fi | |
28964 | fi | |
28965 | ||
28966 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
28967 | ac_save_LDFLAGS=$LDFLAGS | |
28968 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
28969 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
28970 | # check for ICE first), but we must link in the order -lSM -lICE or | |
28971 | # we get undefined symbols. So assume we have SM if we have ICE. | |
28972 | # These have to be linked with before -lX11, unlike the other | |
28973 | # libraries we check for below, so use a different variable. | |
28974 | # John Interrante, Karl Berry | |
28975 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
28976 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
28977 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
28978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28979 | else | |
28980 | ac_check_lib_save_LIBS=$LIBS | |
28981 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
28982 | cat >conftest.$ac_ext <<_ACEOF | |
28983 | /* confdefs.h. */ | |
28984 | _ACEOF | |
28985 | cat confdefs.h >>conftest.$ac_ext | |
28986 | cat >>conftest.$ac_ext <<_ACEOF | |
28987 | /* end confdefs.h. */ | |
28988 | ||
28989 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28990 | #ifdef __cplusplus | |
28991 | extern "C" | |
28992 | #endif | |
28993 | /* We use char because int might match the return type of a gcc2 | |
28994 | builtin and then its argument prototype would still apply. */ | |
28995 | char IceConnectionNumber (); | |
28996 | int | |
28997 | main () | |
28998 | { | |
28999 | IceConnectionNumber (); | |
29000 | ; | |
29001 | return 0; | |
29002 | } | |
29003 | _ACEOF | |
29004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29006 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29007 | ac_status=$? |
ac1cb8d3 VS |
29008 | grep -v '^ *+' conftest.er1 >conftest.err |
29009 | rm -f conftest.er1 | |
29010 | cat conftest.err >&5 | |
a848cd7e SC |
29011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29012 | (exit $ac_status); } && | |
3565d135 RR |
29013 | { ac_try='test -z "$ac_c_werror_flag" |
29014 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29016 | (eval $ac_try) 2>&5 | |
29017 | ac_status=$? | |
29018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29019 | (exit $ac_status); }; } && | |
29020 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29022 | (eval $ac_try) 2>&5 | |
29023 | ac_status=$? | |
29024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29025 | (exit $ac_status); }; }; then | |
29026 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
29027 | else | |
29028 | echo "$as_me: failed program was:" >&5 | |
29029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29030 | ||
29031 | ac_cv_lib_ICE_IceConnectionNumber=no | |
29032 | fi | |
ac1cb8d3 VS |
29033 | rm -f conftest.err conftest.$ac_objext \ |
29034 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29035 | LIBS=$ac_check_lib_save_LIBS |
29036 | fi | |
29037 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
29038 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
29039 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
29040 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
29041 | fi | |
29042 | ||
29043 | LDFLAGS=$ac_save_LDFLAGS | |
29044 | ||
29045 | fi | |
29046 | ||
29047 | ||
29048 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
29049 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
29050 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
29051 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
29052 | fi |
29053 | ||
74b84332 VS |
29054 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
29055 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
29056 | AFMINSTALL=afminstall |
29057 | COMPILED_X_PROGRAM=0 | |
29058 | ||
74b84332 VS |
29059 | fi |
29060 | ||
29061 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
29062 | if test "$wxUSE_NANOX" = "yes"; then |
29063 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
29064 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
29065 | if test "x$MICROWIN" = x ; then | |
29066 | echo "$as_me:$LINENO: result: not found" >&5 | |
29067 | echo "${ECHO_T}not found" >&6 | |
29068 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
29069 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
29070 | { (exit 1); exit 1; }; } | |
29071 | else | |
29072 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
29073 | echo "${ECHO_T}$MICROWIN" >&6 | |
29074 | cat >>confdefs.h <<\_ACEOF | |
29075 | #define wxUSE_NANOX 1 | |
29076 | _ACEOF | |
29077 | ||
29078 | fi | |
29079 | fi | |
29080 | ||
29081 | if test "$wxUSE_UNICODE" = "yes"; then | |
29082 | ||
29083 | succeeded=no | |
29084 | ||
29085 | if test -z "$PKG_CONFIG"; then | |
29086 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29087 | set dummy pkg-config; ac_word=$2 | |
29088 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29090 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29092 | else | |
29093 | case $PKG_CONFIG in | |
29094 | [\\/]* | ?:[\\/]*) | |
29095 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29096 | ;; | |
29097 | *) | |
29098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29099 | for as_dir in $PATH | |
29100 | do | |
29101 | IFS=$as_save_IFS | |
29102 | test -z "$as_dir" && as_dir=. | |
29103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29104 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29105 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29106 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29107 | break 2 | |
29108 | fi | |
29109 | done | |
29110 | done | |
29111 | ||
29112 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29113 | ;; | |
29114 | esac | |
29115 | fi | |
29116 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29117 | ||
29118 | if test -n "$PKG_CONFIG"; then | |
29119 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29120 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29121 | else | |
29122 | echo "$as_me:$LINENO: result: no" >&5 | |
29123 | echo "${ECHO_T}no" >&6 | |
29124 | fi | |
29125 | ||
29126 | fi | |
29127 | ||
29128 | if test "$PKG_CONFIG" = "no" ; then | |
29129 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29130 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29131 | echo "*** to the full path to pkg-config." | |
29132 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29133 | else | |
29134 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29135 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29136 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
29137 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
29138 | ||
29139 | if $PKG_CONFIG --exists "pangox" ; then | |
29140 | echo "$as_me:$LINENO: result: yes" >&5 | |
29141 | echo "${ECHO_T}yes" >&6 | |
29142 | succeeded=yes | |
29143 | ||
29144 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
29145 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
29146 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
29147 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
29148 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
29149 | ||
29150 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
29151 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
29152 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
29153 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
29154 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
29155 | else | |
29156 | PANGOX_CFLAGS="" | |
29157 | PANGOX_LIBS="" | |
29158 | ## If we have a custom action on failure, don't print errors, but | |
29159 | ## do set a variable so people can do so. | |
29160 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
29161 | ||
29162 | fi | |
29163 | ||
29164 | ||
29165 | ||
29166 | else | |
29167 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29168 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29169 | fi | |
29170 | fi | |
29171 | ||
29172 | if test $succeeded = yes; then | |
29173 | ||
c92ad099 | 29174 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29175 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
29176 | ||
29177 | else | |
29178 | ||
29179 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
29180 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
29181 | { (exit 1); exit 1; }; } | |
29182 | ||
29183 | ||
29184 | fi | |
29185 | ||
29186 | ||
29187 | succeeded=no | |
29188 | ||
29189 | if test -z "$PKG_CONFIG"; then | |
29190 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29191 | set dummy pkg-config; ac_word=$2 | |
29192 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29193 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29194 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29196 | else | |
29197 | case $PKG_CONFIG in | |
29198 | [\\/]* | ?:[\\/]*) | |
29199 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29200 | ;; | |
29201 | *) | |
29202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29203 | for as_dir in $PATH | |
29204 | do | |
29205 | IFS=$as_save_IFS | |
29206 | test -z "$as_dir" && as_dir=. | |
29207 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29208 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29209 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29210 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29211 | break 2 | |
29212 | fi | |
29213 | done | |
29214 | done | |
29215 | ||
29216 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29217 | ;; | |
29218 | esac | |
29219 | fi | |
29220 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29221 | ||
29222 | if test -n "$PKG_CONFIG"; then | |
29223 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29224 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29225 | else | |
29226 | echo "$as_me:$LINENO: result: no" >&5 | |
29227 | echo "${ECHO_T}no" >&6 | |
29228 | fi | |
29229 | ||
29230 | fi | |
29231 | ||
29232 | if test "$PKG_CONFIG" = "no" ; then | |
29233 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29234 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29235 | echo "*** to the full path to pkg-config." | |
29236 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29237 | else | |
29238 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29239 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29240 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
29241 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
29242 | ||
29243 | if $PKG_CONFIG --exists "pangoft2" ; then | |
29244 | echo "$as_me:$LINENO: result: yes" >&5 | |
29245 | echo "${ECHO_T}yes" >&6 | |
29246 | succeeded=yes | |
29247 | ||
29248 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
29249 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
29250 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
29251 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
29252 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
29253 | ||
29254 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
29255 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
29256 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
29257 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
29258 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
29259 | else | |
29260 | PANGOFT2_CFLAGS="" | |
29261 | PANGOFT2_LIBS="" | |
29262 | ## If we have a custom action on failure, don't print errors, but | |
29263 | ## do set a variable so people can do so. | |
29264 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
29265 | ||
29266 | fi | |
29267 | ||
29268 | ||
29269 | ||
29270 | else | |
29271 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29272 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29273 | fi | |
29274 | fi | |
29275 | ||
29276 | if test $succeeded = yes; then | |
29277 | ||
c92ad099 | 29278 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29279 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
29280 | ||
29281 | else | |
29282 | ||
29283 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
29284 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
29285 | wxUSE_PRINTING_ARCHITECTURE="no" | |
29286 | ||
29287 | ||
29288 | fi | |
29289 | ||
29290 | ||
29291 | succeeded=no | |
29292 | ||
29293 | if test -z "$PKG_CONFIG"; then | |
29294 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29295 | set dummy pkg-config; ac_word=$2 | |
29296 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29298 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29300 | else | |
29301 | case $PKG_CONFIG in | |
29302 | [\\/]* | ?:[\\/]*) | |
29303 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29304 | ;; | |
29305 | *) | |
29306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29307 | for as_dir in $PATH | |
29308 | do | |
29309 | IFS=$as_save_IFS | |
29310 | test -z "$as_dir" && as_dir=. | |
29311 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29312 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29313 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29314 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29315 | break 2 | |
29316 | fi | |
29317 | done | |
29318 | done | |
29319 | ||
29320 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29321 | ;; | |
29322 | esac | |
29323 | fi | |
29324 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29325 | ||
29326 | if test -n "$PKG_CONFIG"; then | |
29327 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29328 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29329 | else | |
29330 | echo "$as_me:$LINENO: result: no" >&5 | |
29331 | echo "${ECHO_T}no" >&6 | |
29332 | fi | |
29333 | ||
29334 | fi | |
29335 | ||
29336 | if test "$PKG_CONFIG" = "no" ; then | |
29337 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29338 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29339 | echo "*** to the full path to pkg-config." | |
29340 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29341 | else | |
29342 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29343 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29344 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
29345 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
29346 | ||
29347 | if $PKG_CONFIG --exists "pangoxft" ; then | |
29348 | echo "$as_me:$LINENO: result: yes" >&5 | |
29349 | echo "${ECHO_T}yes" >&6 | |
29350 | succeeded=yes | |
29351 | ||
29352 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
29353 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
29354 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
29355 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
29356 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
29357 | ||
29358 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
29359 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
29360 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
29361 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
29362 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
29363 | else | |
29364 | PANGOXFT_CFLAGS="" | |
29365 | PANGOXFT_LIBS="" | |
29366 | ## If we have a custom action on failure, don't print errors, but | |
29367 | ## do set a variable so people can do so. | |
29368 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
29369 | ||
29370 | fi | |
29371 | ||
29372 | ||
29373 | ||
29374 | else | |
29375 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29376 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29377 | fi | |
29378 | fi | |
29379 | ||
29380 | if test $succeeded = yes; then | |
29381 | ||
4ae1af05 MB |
29382 | cat >>confdefs.h <<\_ACEOF |
29383 | #define HAVE_PANGO_XFT 1 | |
29384 | _ACEOF | |
29385 | ||
c92ad099 | 29386 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29387 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
29388 | ||
29389 | else | |
29390 | ||
29391 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
29392 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
29393 | ||
29394 | ||
29395 | fi | |
29396 | ||
304205f1 VS |
29397 | save_CFLAGS="$CFLAGS" |
29398 | save_LIBS="$LIBS" | |
c92ad099 | 29399 | CFLAGS="$PANGOX_CFLAGS $CFLAGS" |
304205f1 VS |
29400 | LIBS="$LIBS $PANGOX_LIBS" |
29401 | ||
29402 | for ac_func in pango_font_family_is_monospace | |
29403 | do | |
29404 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29405 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29406 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29407 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29409 | else | |
29410 | cat >conftest.$ac_ext <<_ACEOF | |
29411 | /* confdefs.h. */ | |
29412 | _ACEOF | |
29413 | cat confdefs.h >>conftest.$ac_ext | |
29414 | cat >>conftest.$ac_ext <<_ACEOF | |
29415 | /* end confdefs.h. */ | |
29416 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
29417 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29418 | #define $ac_func innocuous_$ac_func | |
29419 | ||
29420 | /* System header to define __stub macros and hopefully few prototypes, | |
29421 | which can conflict with char $ac_func (); below. | |
29422 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29423 | <limits.h> exists even on freestanding compilers. */ | |
29424 | ||
29425 | #ifdef __STDC__ | |
29426 | # include <limits.h> | |
29427 | #else | |
29428 | # include <assert.h> | |
29429 | #endif | |
29430 | ||
29431 | #undef $ac_func | |
29432 | ||
29433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29434 | #ifdef __cplusplus | |
29435 | extern "C" | |
29436 | { | |
29437 | #endif | |
29438 | /* We use char because int might match the return type of a gcc2 | |
29439 | builtin and then its argument prototype would still apply. */ | |
29440 | char $ac_func (); | |
29441 | /* The GNU C library defines this for functions which it implements | |
29442 | to always fail with ENOSYS. Some functions are actually named | |
29443 | something starting with __ and the normal name is an alias. */ | |
29444 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29445 | choke me | |
29446 | #else | |
29447 | char (*f) () = $ac_func; | |
29448 | #endif | |
29449 | #ifdef __cplusplus | |
29450 | } | |
29451 | #endif | |
29452 | ||
29453 | int | |
29454 | main () | |
29455 | { | |
29456 | return f != $ac_func; | |
29457 | ; | |
29458 | return 0; | |
29459 | } | |
29460 | _ACEOF | |
29461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29463 | (eval $ac_link) 2>conftest.er1 | |
29464 | ac_status=$? | |
29465 | grep -v '^ *+' conftest.er1 >conftest.err | |
29466 | rm -f conftest.er1 | |
29467 | cat conftest.err >&5 | |
29468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29469 | (exit $ac_status); } && | |
3565d135 RR |
29470 | { ac_try='test -z "$ac_c_werror_flag" |
29471 | || test ! -s conftest.err' | |
304205f1 VS |
29472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29473 | (eval $ac_try) 2>&5 | |
29474 | ac_status=$? | |
29475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29476 | (exit $ac_status); }; } && | |
29477 | { ac_try='test -s conftest$ac_exeext' | |
29478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29479 | (eval $ac_try) 2>&5 | |
29480 | ac_status=$? | |
29481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29482 | (exit $ac_status); }; }; then | |
29483 | eval "$as_ac_var=yes" | |
29484 | else | |
29485 | echo "$as_me: failed program was:" >&5 | |
29486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29487 | ||
29488 | eval "$as_ac_var=no" | |
29489 | fi | |
29490 | rm -f conftest.err conftest.$ac_objext \ | |
29491 | conftest$ac_exeext conftest.$ac_ext | |
29492 | fi | |
29493 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29494 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29495 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29496 | cat >>confdefs.h <<_ACEOF | |
29497 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29498 | _ACEOF | |
29499 | ||
29500 | fi | |
29501 | done | |
29502 | ||
29503 | CFLAGS="$save_CFLAGS" | |
29504 | LIBS="$save_LIBS" | |
a848cd7e SC |
29505 | fi |
29506 | ||
29507 | wxUSE_UNIVERSAL="yes" | |
29508 | ||
29509 | if test "$wxUSE_NANOX" = "yes"; then | |
29510 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
29511 | 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" | |
29512 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
29513 | else | |
29514 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
29515 | fi | |
29516 | ||
a848cd7e SC |
29517 | TOOLKIT=X11 |
29518 | GUIDIST=X11_DIST | |
29519 | fi | |
29520 | ||
29521 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
29522 | if test "$wxUSE_UNICODE" = "yes"; then |
29523 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
29524 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
29525 | { (exit 1); exit 1; }; } | |
29526 | fi | |
29527 | ||
74b84332 VS |
29528 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
29529 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 29530 | |
74b84332 VS |
29531 | ac_find_includes= |
29532 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
29533 | do | |
29534 | if test -f "$ac_dir/Xm/Xm.h"; then | |
29535 | ac_find_includes=$ac_dir | |
29536 | break | |
29537 | fi | |
29538 | done | |
a848cd7e | 29539 | |
74b84332 VS |
29540 | if test "$ac_find_includes" != "" ; then |
29541 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
29542 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
29543 | ||
29544 | if test "x$ac_find_includes" = "x/usr/include"; then | |
29545 | ac_path_to_include="" | |
29546 | else | |
29547 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
29548 | result=$? | |
29549 | if test $result = 0; then | |
29550 | ac_path_to_include="" | |
29551 | else | |
29552 | ac_path_to_include=" -I$ac_find_includes" | |
29553 | fi | |
a848cd7e SC |
29554 | fi |
29555 | ||
74b84332 VS |
29556 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
29557 | else | |
e051b34e | 29558 | save_CFLAGS=$CFLAGS |
c92ad099 | 29559 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
e051b34e | 29560 | |
74b84332 | 29561 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29562 | /* confdefs.h. */ |
29563 | _ACEOF | |
29564 | cat confdefs.h >>conftest.$ac_ext | |
29565 | cat >>conftest.$ac_ext <<_ACEOF | |
29566 | /* end confdefs.h. */ | |
29567 | ||
74b84332 VS |
29568 | #include <Xm/Xm.h> |
29569 | ||
a848cd7e SC |
29570 | int |
29571 | main () | |
29572 | { | |
29573 | ||
74b84332 VS |
29574 | int version; |
29575 | version = xmUseVersion; | |
29576 | ||
a848cd7e SC |
29577 | ; |
29578 | return 0; | |
29579 | } | |
29580 | _ACEOF | |
74b84332 VS |
29581 | rm -f conftest.$ac_objext |
29582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29583 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 29584 | ac_status=$? |
ac1cb8d3 VS |
29585 | grep -v '^ *+' conftest.er1 >conftest.err |
29586 | rm -f conftest.er1 | |
29587 | cat conftest.err >&5 | |
a848cd7e SC |
29588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29589 | (exit $ac_status); } && | |
3565d135 RR |
29590 | { ac_try='test -z "$ac_c_werror_flag" |
29591 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29593 | (eval $ac_try) 2>&5 | |
29594 | ac_status=$? | |
29595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29596 | (exit $ac_status); }; } && | |
74b84332 | 29597 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
29598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29599 | (eval $ac_try) 2>&5 | |
29600 | ac_status=$? | |
29601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29602 | (exit $ac_status); }; }; then | |
74b84332 VS |
29603 | |
29604 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
29605 | echo "${ECHO_T}found in default search path" >&6 | |
29606 | COMPILED_X_PROGRAM=1 | |
29607 | ||
a848cd7e SC |
29608 | else |
29609 | echo "$as_me: failed program was:" >&5 | |
29610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29611 | ||
a848cd7e | 29612 | |
74b84332 VS |
29613 | echo "$as_me:$LINENO: result: no" >&5 |
29614 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
29615 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
29616 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 29617 | { (exit 1); exit 1; }; } |
a848cd7e | 29618 | |
a848cd7e | 29619 | |
a848cd7e | 29620 | fi |
74b84332 | 29621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e MW |
29622 | |
29623 | CFLAGS=$save_CFLAGS | |
74b84332 VS |
29624 | fi |
29625 | ||
0ad5d837 VZ |
29626 | |
29627 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
29628 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
29629 | ||
0ad5d837 VZ |
29630 | ac_find_libraries= |
29631 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 29632 | do |
3eca31dc | 29633 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
29634 | if test -f "$ac_dir/libXm.$ac_extension"; then |
29635 | ac_find_libraries=$ac_dir | |
29636 | break 2 | |
a848cd7e | 29637 | fi |
74b84332 VS |
29638 | done |
29639 | done | |
a848cd7e | 29640 | |
0ad5d837 VZ |
29641 | |
29642 | if test "x$ac_find_libraries" != "x" ; then | |
29643 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
29644 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 29645 | |
74b84332 | 29646 | |
0ad5d837 | 29647 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 29648 | ac_path_to_link="" |
a848cd7e | 29649 | else |
0ad5d837 VZ |
29650 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
29651 | result=$? | |
29652 | if test $result = 0; then | |
29653 | ac_path_to_link="" | |
29654 | else | |
29655 | ac_path_to_link=" -L$ac_find_libraries" | |
29656 | fi | |
74b84332 VS |
29657 | fi |
29658 | ||
0ad5d837 VZ |
29659 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
29660 | else | |
29661 | save_CFLAGS=$CFLAGS | |
c92ad099 | 29662 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
6f9cf1e6 MW |
29663 | save_LIBS="$LIBS" |
29664 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 29665 | |
0ad5d837 | 29666 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29667 | /* confdefs.h. */ |
29668 | _ACEOF | |
29669 | cat confdefs.h >>conftest.$ac_ext | |
29670 | cat >>conftest.$ac_ext <<_ACEOF | |
29671 | /* end confdefs.h. */ | |
29672 | ||
0ad5d837 | 29673 | #include <Xm/Xm.h> |
74b84332 | 29674 | |
a848cd7e SC |
29675 | int |
29676 | main () | |
29677 | { | |
74b84332 | 29678 | |
0ad5d837 VZ |
29679 | int version; |
29680 | version = xmUseVersion; | |
74b84332 | 29681 | |
a848cd7e SC |
29682 | ; |
29683 | return 0; | |
29684 | } | |
29685 | _ACEOF | |
0ad5d837 VZ |
29686 | rm -f conftest.$ac_objext conftest$ac_exeext |
29687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29688 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 29689 | ac_status=$? |
ac1cb8d3 VS |
29690 | grep -v '^ *+' conftest.er1 >conftest.err |
29691 | rm -f conftest.er1 | |
29692 | cat conftest.err >&5 | |
a848cd7e SC |
29693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29694 | (exit $ac_status); } && | |
3565d135 RR |
29695 | { ac_try='test -z "$ac_c_werror_flag" |
29696 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29698 | (eval $ac_try) 2>&5 | |
29699 | ac_status=$? | |
29700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29701 | (exit $ac_status); }; } && | |
0ad5d837 | 29702 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29704 | (eval $ac_try) 2>&5 | |
29705 | ac_status=$? | |
29706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29707 | (exit $ac_status); }; }; then | |
74b84332 | 29708 | |
0ad5d837 | 29709 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 29710 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 29711 | COMPILED_X_PROGRAM=1 |
74b84332 | 29712 | |
a848cd7e SC |
29713 | else |
29714 | echo "$as_me: failed program was:" >&5 | |
29715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29716 | ||
74b84332 | 29717 | |
6f9cf1e6 | 29718 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 29719 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 29720 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
29721 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
29722 | { (exit 1); exit 1; }; } | |
29723 | ||
29724 | ||
29725 | fi | |
0ad5d837 VZ |
29726 | rm -f conftest.err conftest.$ac_objext \ |
29727 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 29728 | |
0ad5d837 | 29729 | CFLAGS=$save_CFLAGS |
6f9cf1e6 | 29730 | LIBS="$save_LIBS" |
74b84332 VS |
29731 | fi |
29732 | ||
29733 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
29734 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
29735 | libp_link="" | |
29736 | libsm_ice_link="" | |
29737 | libs_found=0 | |
29738 | for libp in "" " -lXp"; do | |
29739 | if test "$libs_found" = "0"; then | |
29740 | for libsm_ice in "" " -lSM -lICE"; do | |
29741 | if test "$libs_found" = "0"; then | |
29742 | save_LIBS="$LIBS" | |
29743 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
29744 | save_CFLAGS=$CFLAGS | |
c92ad099 | 29745 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
74b84332 VS |
29746 | |
29747 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
29748 | /* confdefs.h. */ |
29749 | _ACEOF | |
29750 | cat confdefs.h >>conftest.$ac_ext | |
29751 | cat >>conftest.$ac_ext <<_ACEOF | |
29752 | /* end confdefs.h. */ | |
29753 | ||
74b84332 VS |
29754 | #include <Xm/Xm.h> |
29755 | #include <Xm/List.h> | |
29756 | ||
a848cd7e SC |
29757 | int |
29758 | main () | |
29759 | { | |
74b84332 VS |
29760 | |
29761 | XmString string = NULL; | |
29762 | Widget w = NULL; | |
29763 | int position = 0; | |
29764 | XmListAddItem(w, string, position); | |
29765 | ||
a848cd7e SC |
29766 | ; |
29767 | return 0; | |
29768 | } | |
29769 | _ACEOF | |
29770 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29772 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29773 | ac_status=$? |
ac1cb8d3 VS |
29774 | grep -v '^ *+' conftest.er1 >conftest.err |
29775 | rm -f conftest.er1 | |
29776 | cat conftest.err >&5 | |
a848cd7e SC |
29777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29778 | (exit $ac_status); } && | |
3565d135 RR |
29779 | { ac_try='test -z "$ac_c_werror_flag" |
29780 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29782 | (eval $ac_try) 2>&5 | |
29783 | ac_status=$? | |
29784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29785 | (exit $ac_status); }; } && | |
29786 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29788 | (eval $ac_try) 2>&5 | |
29789 | ac_status=$? | |
29790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29791 | (exit $ac_status); }; }; then | |
29792 | ||
29793 | libp_link="$libp" | |
29794 | libsm_ice_link="$libsm_ice" | |
29795 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
29796 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
29797 | libs_found=1 | |
29798 | ||
29799 | else | |
29800 | echo "$as_me: failed program was:" >&5 | |
29801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29802 | ||
29803 | ||
29804 | ||
29805 | fi | |
ac1cb8d3 VS |
29806 | rm -f conftest.err conftest.$ac_objext \ |
29807 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29808 | |
29809 | LIBS="$save_LIBS" | |
29810 | CFLAGS=$save_CFLAGS | |
29811 | fi | |
29812 | done | |
29813 | fi | |
29814 | done | |
29815 | ||
29816 | if test "$libs_found" = "0"; then | |
29817 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
29818 | echo "${ECHO_T}can't find the right libraries" >&6 | |
29819 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
29820 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
29821 | { (exit 1); exit 1; }; } | |
29822 | fi | |
29823 | ||
62fa8b3a MW |
29824 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
29825 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
29826 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
29827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29828 | else | |
29829 | ac_check_lib_save_LIBS=$LIBS | |
29830 | LIBS="-lSgm $LIBS" | |
29831 | cat >conftest.$ac_ext <<_ACEOF | |
29832 | /* confdefs.h. */ | |
29833 | _ACEOF | |
29834 | cat confdefs.h >>conftest.$ac_ext | |
29835 | cat >>conftest.$ac_ext <<_ACEOF | |
29836 | /* end confdefs.h. */ | |
29837 | ||
29838 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29839 | #ifdef __cplusplus | |
29840 | extern "C" | |
29841 | #endif | |
29842 | /* We use char because int might match the return type of a gcc2 | |
29843 | builtin and then its argument prototype would still apply. */ | |
29844 | char SgCreateList (); | |
29845 | int | |
29846 | main () | |
29847 | { | |
29848 | SgCreateList (); | |
29849 | ; | |
29850 | return 0; | |
29851 | } | |
29852 | _ACEOF | |
29853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29855 | (eval $ac_link) 2>conftest.er1 | |
29856 | ac_status=$? | |
29857 | grep -v '^ *+' conftest.er1 >conftest.err | |
29858 | rm -f conftest.er1 | |
29859 | cat conftest.err >&5 | |
29860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29861 | (exit $ac_status); } && | |
3565d135 RR |
29862 | { ac_try='test -z "$ac_c_werror_flag" |
29863 | || test ! -s conftest.err' | |
62fa8b3a MW |
29864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29865 | (eval $ac_try) 2>&5 | |
29866 | ac_status=$? | |
29867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29868 | (exit $ac_status); }; } && | |
29869 | { ac_try='test -s conftest$ac_exeext' | |
29870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29871 | (eval $ac_try) 2>&5 | |
29872 | ac_status=$? | |
29873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29874 | (exit $ac_status); }; }; then | |
29875 | ac_cv_lib_Sgm_SgCreateList=yes | |
29876 | else | |
29877 | echo "$as_me: failed program was:" >&5 | |
29878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29879 | ||
29880 | ac_cv_lib_Sgm_SgCreateList=no | |
29881 | fi | |
29882 | rm -f conftest.err conftest.$ac_objext \ | |
29883 | conftest$ac_exeext conftest.$ac_ext | |
29884 | LIBS=$ac_check_lib_save_LIBS | |
29885 | fi | |
29886 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
29887 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
29888 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
29889 | libsgm_link=" -lSgm" | |
29890 | fi | |
29891 | ||
29892 | ||
a848cd7e | 29893 | save_CFLAGS=$CFLAGS |
c92ad099 | 29894 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
0ad5d837 | 29895 | |
a848cd7e SC |
29896 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
29897 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
29898 | if test "${wx_cv_lib_motif2+set}" = set; then |
29899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29900 | else | |
29901 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
29902 | /* confdefs.h. */ |
29903 | _ACEOF | |
29904 | cat confdefs.h >>conftest.$ac_ext | |
29905 | cat >>conftest.$ac_ext <<_ACEOF | |
29906 | /* end confdefs.h. */ | |
29907 | ||
0ad5d837 | 29908 | #include <Xm/Xm.h> |
a848cd7e SC |
29909 | |
29910 | int | |
29911 | main () | |
29912 | { | |
29913 | ||
0ad5d837 VZ |
29914 | #if XmVersion < 2000 |
29915 | Not Motif 2 | |
29916 | #endif | |
a848cd7e SC |
29917 | |
29918 | ; | |
29919 | return 0; | |
29920 | } | |
29921 | _ACEOF | |
29922 | rm -f conftest.$ac_objext | |
29923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29924 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29925 | ac_status=$? |
ac1cb8d3 VS |
29926 | grep -v '^ *+' conftest.er1 >conftest.err |
29927 | rm -f conftest.er1 | |
29928 | cat conftest.err >&5 | |
a848cd7e SC |
29929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29930 | (exit $ac_status); } && | |
3565d135 RR |
29931 | { ac_try='test -z "$ac_c_werror_flag" |
29932 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29934 | (eval $ac_try) 2>&5 | |
29935 | ac_status=$? | |
29936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29937 | (exit $ac_status); }; } && | |
29938 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29940 | (eval $ac_try) 2>&5 | |
29941 | ac_status=$? | |
29942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29943 | (exit $ac_status); }; }; then | |
0ad5d837 | 29944 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
29945 | else |
29946 | echo "$as_me: failed program was:" >&5 | |
29947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29948 | ||
0ad5d837 VZ |
29949 | wx_cv_lib_motif2="no" |
29950 | fi | |
29951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29952 | fi | |
29953 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
29954 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
29955 | if test "$wx_cv_lib_motif2" = "yes"; then | |
29956 | cat >>confdefs.h <<\_ACEOF | |
29957 | #define __WXMOTIF20__ 1 | |
29958 | _ACEOF | |
a848cd7e | 29959 | |
0ad5d837 VZ |
29960 | else |
29961 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
29962 | #define __WXMOTIF20__ 0 |
29963 | _ACEOF | |
29964 | ||
0ad5d837 | 29965 | fi |
2113bc77 MW |
29966 | |
29967 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
29968 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
29969 | if test "${wx_cv_lib_lesstif+set}" = set; then |
29970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29971 | else | |
29972 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
29973 | /* confdefs.h. */ |
29974 | _ACEOF | |
29975 | cat confdefs.h >>conftest.$ac_ext | |
29976 | cat >>conftest.$ac_ext <<_ACEOF | |
29977 | /* end confdefs.h. */ | |
29978 | ||
0ad5d837 | 29979 | #include <Xm/Xm.h> |
2113bc77 MW |
29980 | |
29981 | int | |
29982 | main () | |
29983 | { | |
29984 | ||
0ad5d837 VZ |
29985 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
29986 | Not Lesstif | |
29987 | #endif | |
2113bc77 MW |
29988 | |
29989 | ; | |
29990 | return 0; | |
29991 | } | |
29992 | _ACEOF | |
29993 | rm -f conftest.$ac_objext | |
29994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29995 | (eval $ac_compile) 2>conftest.er1 | |
29996 | ac_status=$? | |
29997 | grep -v '^ *+' conftest.er1 >conftest.err | |
29998 | rm -f conftest.er1 | |
29999 | cat conftest.err >&5 | |
30000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30001 | (exit $ac_status); } && | |
3565d135 RR |
30002 | { ac_try='test -z "$ac_c_werror_flag" |
30003 | || test ! -s conftest.err' | |
2113bc77 MW |
30004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30005 | (eval $ac_try) 2>&5 | |
30006 | ac_status=$? | |
30007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30008 | (exit $ac_status); }; } && | |
30009 | { ac_try='test -s conftest.$ac_objext' | |
30010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30011 | (eval $ac_try) 2>&5 | |
30012 | ac_status=$? | |
30013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30014 | (exit $ac_status); }; }; then | |
0ad5d837 | 30015 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
30016 | else |
30017 | echo "$as_me: failed program was:" >&5 | |
30018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30019 | ||
0ad5d837 VZ |
30020 | wx_cv_lib_lesstif="no" |
30021 | fi | |
30022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 30023 | |
0ad5d837 VZ |
30024 | fi |
30025 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
30026 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
30027 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
30028 | cat >>confdefs.h <<\_ACEOF | |
30029 | #define __WXLESSTIF__ 1 | |
30030 | _ACEOF | |
30031 | ||
30032 | else | |
30033 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
30034 | #define __WXLESSTIF__ 0 |
30035 | _ACEOF | |
30036 | ||
0ad5d837 | 30037 | fi |
2113bc77 | 30038 | |
a848cd7e SC |
30039 | CFLAGS=$save_CFLAGS |
30040 | ||
62fa8b3a | 30041 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
30042 | TOOLKIT=MOTIF |
30043 | GUIDIST=MOTIF_DIST | |
30044 | fi | |
30045 | ||
74b84332 | 30046 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
30047 | if test "$wxUSE_LIBXPM" = "sys"; then |
30048 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
30049 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
30050 | ||
0ad5d837 VZ |
30051 | ac_find_libraries= |
30052 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30053 | do |
3eca31dc | 30054 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30055 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
30056 | ac_find_libraries=$ac_dir | |
30057 | break 2 | |
30058 | fi | |
30059 | done | |
30060 | done | |
30061 | ||
30062 | if test "$ac_find_libraries" != "" ; then | |
30063 | ||
0ad5d837 | 30064 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30065 | ac_path_to_link="" |
30066 | else | |
0ad5d837 VZ |
30067 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
30068 | result=$? | |
30069 | if test $result = 0; then | |
30070 | ac_path_to_link="" | |
30071 | else | |
30072 | ac_path_to_link=" -L$ac_find_libraries" | |
30073 | fi | |
a848cd7e SC |
30074 | fi |
30075 | ||
30076 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
30077 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
30078 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
30079 | |
30080 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
30081 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
30082 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
30083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30084 | else | |
30085 | ||
30086 | save_CFLAGS=$CFLAGS | |
c92ad099 | 30087 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
a848cd7e SC |
30088 | |
30089 | cat >conftest.$ac_ext <<_ACEOF | |
30090 | /* confdefs.h. */ | |
30091 | _ACEOF | |
30092 | cat confdefs.h >>conftest.$ac_ext | |
30093 | cat >>conftest.$ac_ext <<_ACEOF | |
30094 | /* end confdefs.h. */ | |
30095 | ||
30096 | #include <X11/xpm.h> | |
30097 | ||
30098 | int | |
30099 | main () | |
30100 | { | |
30101 | ||
30102 | int version; | |
30103 | version = XpmLibraryVersion(); | |
30104 | ||
30105 | ; | |
30106 | return 0; | |
30107 | } | |
30108 | _ACEOF | |
30109 | rm -f conftest.$ac_objext | |
30110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30111 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30112 | ac_status=$? |
ac1cb8d3 VS |
30113 | grep -v '^ *+' conftest.er1 >conftest.err |
30114 | rm -f conftest.er1 | |
30115 | cat conftest.err >&5 | |
a848cd7e SC |
30116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30117 | (exit $ac_status); } && | |
3565d135 RR |
30118 | { ac_try='test -z "$ac_c_werror_flag" |
30119 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
30125 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30127 | (eval $ac_try) 2>&5 | |
30128 | ac_status=$? | |
30129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30130 | (exit $ac_status); }; }; then | |
30131 | wx_cv_x11_xpm_h=yes | |
30132 | else | |
30133 | echo "$as_me: failed program was:" >&5 | |
30134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30135 | ||
30136 | wx_cv_x11_xpm_h=no | |
30137 | ||
30138 | fi | |
ac1cb8d3 | 30139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30140 | |
30141 | CFLAGS=$save_CFLAGS | |
30142 | ||
30143 | ||
30144 | fi | |
30145 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
30146 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
30147 | ||
30148 | if test $wx_cv_x11_xpm_h = "yes"; then | |
30149 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
30150 | cat >>confdefs.h <<\_ACEOF | |
30151 | #define wxHAVE_LIB_XPM 1 | |
30152 | _ACEOF | |
30153 | ||
30154 | else | |
30155 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
30156 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
30157 | fi | |
30158 | fi | |
30159 | ||
30160 | fi | |
30161 | ||
30162 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
30163 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
30164 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
30165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30166 | else | |
30167 | ac_check_lib_save_LIBS=$LIBS | |
30168 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
30169 | cat >conftest.$ac_ext <<_ACEOF | |
30170 | /* confdefs.h. */ | |
30171 | _ACEOF | |
30172 | cat confdefs.h >>conftest.$ac_ext | |
30173 | cat >>conftest.$ac_ext <<_ACEOF | |
30174 | /* end confdefs.h. */ | |
30175 | ||
30176 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30177 | #ifdef __cplusplus | |
30178 | extern "C" | |
30179 | #endif | |
30180 | /* We use char because int might match the return type of a gcc2 | |
30181 | builtin and then its argument prototype would still apply. */ | |
30182 | char XShapeQueryExtension (); | |
30183 | int | |
30184 | main () | |
30185 | { | |
30186 | XShapeQueryExtension (); | |
30187 | ; | |
30188 | return 0; | |
30189 | } | |
30190 | _ACEOF | |
30191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30193 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30194 | ac_status=$? |
ac1cb8d3 VS |
30195 | grep -v '^ *+' conftest.er1 >conftest.err |
30196 | rm -f conftest.er1 | |
30197 | cat conftest.err >&5 | |
a848cd7e SC |
30198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30199 | (exit $ac_status); } && | |
3565d135 RR |
30200 | { ac_try='test -z "$ac_c_werror_flag" |
30201 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30203 | (eval $ac_try) 2>&5 | |
30204 | ac_status=$? | |
30205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30206 | (exit $ac_status); }; } && | |
30207 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30209 | (eval $ac_try) 2>&5 | |
30210 | ac_status=$? | |
30211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30212 | (exit $ac_status); }; }; then | |
30213 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
30214 | else | |
30215 | echo "$as_me: failed program was:" >&5 | |
30216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30217 | ||
30218 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
30219 | fi | |
ac1cb8d3 VS |
30220 | rm -f conftest.err conftest.$ac_objext \ |
30221 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30222 | LIBS=$ac_check_lib_save_LIBS |
30223 | fi | |
30224 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
30225 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
30226 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
30227 | ||
30228 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
30229 | wxHAVE_XEXT_LIB=1 | |
30230 | ||
30231 | fi | |
30232 | ||
30233 | ||
30234 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
30235 | save_CFLAGS="$CFLAGS" | |
c92ad099 | 30236 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
a848cd7e SC |
30237 | |
30238 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
30239 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
30240 | cat >conftest.$ac_ext <<_ACEOF | |
30241 | /* confdefs.h. */ | |
30242 | _ACEOF | |
30243 | cat confdefs.h >>conftest.$ac_ext | |
30244 | cat >>conftest.$ac_ext <<_ACEOF | |
30245 | /* end confdefs.h. */ | |
30246 | ||
30247 | #include <X11/Xlib.h> | |
30248 | #include <X11/extensions/shape.h> | |
30249 | ||
30250 | int | |
30251 | main () | |
30252 | { | |
30253 | ||
30254 | int dummy1, dummy2; | |
30255 | XShapeQueryExtension((Display*)NULL, | |
30256 | (int*)NULL, (int*)NULL); | |
30257 | ||
30258 | ; | |
30259 | return 0; | |
30260 | } | |
30261 | _ACEOF | |
30262 | rm -f conftest.$ac_objext | |
30263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30264 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30265 | ac_status=$? |
ac1cb8d3 VS |
30266 | grep -v '^ *+' conftest.er1 >conftest.err |
30267 | rm -f conftest.er1 | |
30268 | cat conftest.err >&5 | |
a848cd7e SC |
30269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30270 | (exit $ac_status); } && | |
3565d135 RR |
30271 | { ac_try='test -z "$ac_c_werror_flag" |
30272 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30274 | (eval $ac_try) 2>&5 | |
30275 | ac_status=$? | |
30276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30277 | (exit $ac_status); }; } && | |
30278 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30280 | (eval $ac_try) 2>&5 | |
30281 | ac_status=$? | |
30282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30283 | (exit $ac_status); }; }; then | |
30284 | ||
30285 | cat >>confdefs.h <<\_ACEOF | |
30286 | #define HAVE_XSHAPE 1 | |
30287 | _ACEOF | |
30288 | ||
30289 | echo "$as_me:$LINENO: result: found" >&5 | |
30290 | echo "${ECHO_T}found" >&6 | |
30291 | ||
30292 | else | |
30293 | echo "$as_me: failed program was:" >&5 | |
30294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30295 | ||
30296 | ||
30297 | echo "$as_me:$LINENO: result: not found" >&5 | |
30298 | echo "${ECHO_T}not found" >&6 | |
30299 | ||
30300 | fi | |
ac1cb8d3 | 30301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30302 | CFLAGS="$save_CFLAGS" |
30303 | ||
30304 | fi | |
30305 | fi | |
30306 | ||
30307 | if test "$wxUSE_MAC" = 1; then | |
30308 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
30309 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
30310 | if test "$GCC" = yes; then | |
30311 | echo "$as_me:$LINENO: result: gcc" >&5 | |
30312 | echo "${ECHO_T}gcc" >&6 | |
30313 | CPPFLAGS_PASCAL="-fpascal-strings" | |
30314 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
30315 | echo "$as_me:$LINENO: result: xlc" >&5 | |
30316 | echo "${ECHO_T}xlc" >&6 | |
30317 | CPPFLAGS_PASCAL="-qmacpstr" | |
30318 | else | |
30319 | echo "$as_me:$LINENO: result: none" >&5 | |
30320 | echo "${ECHO_T}none" >&6 | |
30321 | fi | |
30322 | ||
1e9e8aba | 30323 | if test "x$wxUSE_UNIX" = "xyes"; then |
c92ad099 | 30324 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 30325 | else |
c92ad099 | 30326 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 30327 | fi |
a848cd7e | 30328 | |
a848cd7e SC |
30329 | TOOLKIT=MAC |
30330 | GUIDIST=MACX_DIST | |
dd21ced8 | 30331 | WXBASEPORT="_carbon" |
a848cd7e SC |
30332 | fi |
30333 | ||
30334 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
30335 | TOOLKIT=COCOA |
30336 | GUIDIST=COCOA_DIST | |
30337 | fi | |
30338 | ||
30339 | if test "$wxUSE_PM" = 1; then | |
30340 | TOOLKIT=PM | |
de59c161 RD |
30341 | GUIDIST=PM_DIST |
30342 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
30343 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
30344 | if test "${wx_cv_spbcdata+set}" = set; then | |
30345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30346 | else | |
30347 | ||
30348 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
30349 | /* confdefs.h. */ |
30350 | _ACEOF | |
30351 | cat confdefs.h >>conftest.$ac_ext | |
30352 | cat >>conftest.$ac_ext <<_ACEOF | |
30353 | /* end confdefs.h. */ | |
30354 | ||
30355 | #define INCL_PM | |
30356 | #include <os2.h> | |
30357 | ||
30358 | int | |
30359 | main () | |
30360 | { | |
30361 | ||
30362 | SPBCDATA test; | |
30363 | ||
30364 | ; | |
30365 | return 0; | |
30366 | } | |
30367 | _ACEOF | |
30368 | rm -f conftest.$ac_objext | |
30369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30370 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 30371 | ac_status=$? |
ac1cb8d3 VS |
30372 | grep -v '^ *+' conftest.er1 >conftest.err |
30373 | rm -f conftest.er1 | |
30374 | cat conftest.err >&5 | |
de59c161 RD |
30375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30376 | (exit $ac_status); } && | |
3565d135 RR |
30377 | { ac_try='test -z "$ac_c_werror_flag" |
30378 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30380 | (eval $ac_try) 2>&5 | |
30381 | ac_status=$? | |
30382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30383 | (exit $ac_status); }; } && | |
30384 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
30385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30386 | (eval $ac_try) 2>&5 | |
30387 | ac_status=$? | |
30388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30389 | (exit $ac_status); }; }; then | |
30390 | wx_cv_spbcdata=yes | |
30391 | else | |
30392 | echo "$as_me: failed program was:" >&5 | |
30393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30394 | ||
30395 | wx_cv_spbcdata=no | |
30396 | ||
30397 | fi | |
ac1cb8d3 | 30398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
30399 | |
30400 | ||
30401 | fi | |
30402 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
30403 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
30404 | ||
30405 | if test $wx_cv_spbcdata = "yes"; then | |
30406 | cat >>confdefs.h <<\_ACEOF | |
30407 | #define HAVE_SPBCDATA 1 | |
30408 | _ACEOF | |
30409 | ||
30410 | fi | |
a848cd7e SC |
30411 | fi |
30412 | ||
30413 | if test "$TOOLKIT" = "PM" ; then | |
30414 | TOOLKIT_DIR="os2" | |
30415 | else | |
30416 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
30417 | fi | |
30418 | ||
a848cd7e | 30419 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
30420 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
30421 | WIDGET_SET=univ | |
a848cd7e SC |
30422 | fi |
30423 | ||
30424 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
30425 | DISTDIR="wx\$(TOOLKIT)" | |
30426 | else | |
30427 | USE_GUI=0 | |
30428 | ||
30429 | TOOLKIT_DIR="base" | |
30430 | ||
30431 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 30432 | TOOLKIT="MSW" |
a848cd7e SC |
30433 | fi |
30434 | ||
a848cd7e SC |
30435 | GUIDIST="BASE_DIST" |
30436 | DISTDIR="wxBase" | |
30437 | fi | |
30438 | ||
30439 | ||
d12aef51 VZ |
30440 | if test "$wxUSE_GUI" = "yes"; then |
30441 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
30442 | ||
30443 | for ac_header in X11/Xlib.h | |
30444 | do | |
30445 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30446 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30447 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30448 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30449 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30451 | fi | |
30452 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30453 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30454 | else | |
30455 | # Is the header compilable? | |
30456 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
30457 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
30458 | cat >conftest.$ac_ext <<_ACEOF | |
30459 | /* confdefs.h. */ | |
30460 | _ACEOF | |
30461 | cat confdefs.h >>conftest.$ac_ext | |
30462 | cat >>conftest.$ac_ext <<_ACEOF | |
30463 | /* end confdefs.h. */ | |
30464 | $ac_includes_default | |
30465 | #include <$ac_header> | |
30466 | _ACEOF | |
30467 | rm -f conftest.$ac_objext | |
30468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30469 | (eval $ac_compile) 2>conftest.er1 | |
30470 | ac_status=$? | |
30471 | grep -v '^ *+' conftest.er1 >conftest.err | |
30472 | rm -f conftest.er1 | |
30473 | cat conftest.err >&5 | |
30474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30475 | (exit $ac_status); } && | |
3565d135 RR |
30476 | { ac_try='test -z "$ac_c_werror_flag" |
30477 | || test ! -s conftest.err' | |
d12aef51 VZ |
30478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30479 | (eval $ac_try) 2>&5 | |
30480 | ac_status=$? | |
30481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30482 | (exit $ac_status); }; } && | |
30483 | { ac_try='test -s conftest.$ac_objext' | |
30484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30485 | (eval $ac_try) 2>&5 | |
30486 | ac_status=$? | |
30487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30488 | (exit $ac_status); }; }; then | |
30489 | ac_header_compiler=yes | |
30490 | else | |
30491 | echo "$as_me: failed program was:" >&5 | |
30492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30493 | ||
30494 | ac_header_compiler=no | |
30495 | fi | |
30496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30497 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
30498 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30499 | ||
30500 | # Is the header present? | |
30501 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
30502 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
30503 | cat >conftest.$ac_ext <<_ACEOF | |
30504 | /* confdefs.h. */ | |
30505 | _ACEOF | |
30506 | cat confdefs.h >>conftest.$ac_ext | |
30507 | cat >>conftest.$ac_ext <<_ACEOF | |
30508 | /* end confdefs.h. */ | |
30509 | #include <$ac_header> | |
30510 | _ACEOF | |
30511 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30512 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30513 | ac_status=$? | |
30514 | grep -v '^ *+' conftest.er1 >conftest.err | |
30515 | rm -f conftest.er1 | |
30516 | cat conftest.err >&5 | |
30517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30518 | (exit $ac_status); } >/dev/null; then | |
30519 | if test -s conftest.err; then | |
30520 | ac_cpp_err=$ac_c_preproc_warn_flag | |
30521 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
30522 | else | |
30523 | ac_cpp_err= | |
30524 | fi | |
30525 | else | |
30526 | ac_cpp_err=yes | |
30527 | fi | |
30528 | if test -z "$ac_cpp_err"; then | |
30529 | ac_header_preproc=yes | |
30530 | else | |
30531 | echo "$as_me: failed program was:" >&5 | |
30532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30533 | ||
30534 | ac_header_preproc=no | |
30535 | fi | |
30536 | rm -f conftest.err conftest.$ac_ext | |
30537 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30538 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30539 | ||
30540 | # So? What about this header? | |
30541 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
30542 | yes:no: ) | |
30543 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
30544 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
30545 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
30546 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
30547 | ac_header_preproc=yes | |
30548 | ;; | |
30549 | no:yes:* ) | |
30550 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
30551 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
30552 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
30553 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
30554 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
30555 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
30556 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
30557 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
30558 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
30559 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
30560 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
30561 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
30562 | ( | |
30563 | cat <<\_ASBOX | |
30564 | ## ----------------------------------------- ## | |
30565 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30566 | ## ----------------------------------------- ## | |
30567 | _ASBOX | |
30568 | ) | | |
30569 | sed "s/^/$as_me: WARNING: /" >&2 | |
30570 | ;; | |
30571 | esac | |
30572 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30573 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30574 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30576 | else | |
30577 | eval "$as_ac_Header=\$ac_header_preproc" | |
30578 | fi | |
30579 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30580 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30581 | ||
30582 | fi | |
30583 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30584 | cat >>confdefs.h <<_ACEOF | |
30585 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30586 | _ACEOF | |
30587 | ||
30588 | fi | |
30589 | ||
30590 | done | |
30591 | ||
30592 | ||
30593 | for ac_header in X11/XKBlib.h | |
30594 | do | |
30595 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30596 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30597 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30598 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30600 | else | |
30601 | cat >conftest.$ac_ext <<_ACEOF | |
30602 | /* confdefs.h. */ | |
30603 | _ACEOF | |
30604 | cat confdefs.h >>conftest.$ac_ext | |
30605 | cat >>conftest.$ac_ext <<_ACEOF | |
30606 | /* end confdefs.h. */ | |
30607 | ||
30608 | #if HAVE_X11_XLIB_H | |
30609 | #include <X11/Xlib.h> | |
30610 | #endif | |
30611 | ||
30612 | ||
30613 | #include <$ac_header> | |
30614 | _ACEOF | |
30615 | rm -f conftest.$ac_objext | |
30616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30617 | (eval $ac_compile) 2>conftest.er1 | |
30618 | ac_status=$? | |
30619 | grep -v '^ *+' conftest.er1 >conftest.err | |
30620 | rm -f conftest.er1 | |
30621 | cat conftest.err >&5 | |
30622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30623 | (exit $ac_status); } && | |
3565d135 RR |
30624 | { ac_try='test -z "$ac_c_werror_flag" |
30625 | || test ! -s conftest.err' | |
d12aef51 VZ |
30626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30627 | (eval $ac_try) 2>&5 | |
30628 | ac_status=$? | |
30629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30630 | (exit $ac_status); }; } && | |
30631 | { ac_try='test -s conftest.$ac_objext' | |
30632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30633 | (eval $ac_try) 2>&5 | |
30634 | ac_status=$? | |
30635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30636 | (exit $ac_status); }; }; then | |
30637 | eval "$as_ac_Header=yes" | |
30638 | else | |
30639 | echo "$as_me: failed program was:" >&5 | |
30640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30641 | ||
30642 | eval "$as_ac_Header=no" | |
30643 | fi | |
30644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30645 | fi | |
30646 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30647 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30648 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30649 | cat >>confdefs.h <<_ACEOF | |
30650 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30651 | _ACEOF | |
30652 | ||
30653 | fi | |
30654 | ||
30655 | done | |
30656 | ||
30657 | fi | |
30658 | fi | |
30659 | ||
a848cd7e SC |
30660 | |
30661 | ||
30662 | IODBC_C_SRC="" | |
30663 | ||
30664 | ||
30665 | if test "$TOOLKIT" != "MSW" ; then | |
30666 | ||
30667 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
30668 | ||
30669 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30670 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
30671 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
30672 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30674 | fi | |
30675 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
30676 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
30677 | else | |
30678 | # Is the header compilable? | |
30679 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
30680 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
30681 | cat >conftest.$ac_ext <<_ACEOF | |
30682 | /* confdefs.h. */ | |
30683 | _ACEOF | |
30684 | cat confdefs.h >>conftest.$ac_ext | |
30685 | cat >>conftest.$ac_ext <<_ACEOF | |
30686 | /* end confdefs.h. */ | |
30687 | $ac_includes_default | |
30688 | #include <sql.h> | |
30689 | _ACEOF | |
30690 | rm -f conftest.$ac_objext | |
30691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30692 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30693 | ac_status=$? |
ac1cb8d3 VS |
30694 | grep -v '^ *+' conftest.er1 >conftest.err |
30695 | rm -f conftest.er1 | |
30696 | cat conftest.err >&5 | |
a848cd7e SC |
30697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30698 | (exit $ac_status); } && | |
3565d135 RR |
30699 | { ac_try='test -z "$ac_c_werror_flag" |
30700 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30702 | (eval $ac_try) 2>&5 | |
30703 | ac_status=$? | |
30704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30705 | (exit $ac_status); }; } && | |
30706 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30708 | (eval $ac_try) 2>&5 | |
30709 | ac_status=$? | |
30710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30711 | (exit $ac_status); }; }; then | |
30712 | ac_header_compiler=yes | |
30713 | else | |
30714 | echo "$as_me: failed program was:" >&5 | |
30715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30716 | ||
30717 | ac_header_compiler=no | |
30718 | fi | |
ac1cb8d3 | 30719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30720 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
30721 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30722 | ||
30723 | # Is the header present? | |
30724 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
30725 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
30726 | cat >conftest.$ac_ext <<_ACEOF | |
30727 | /* confdefs.h. */ | |
30728 | _ACEOF | |
30729 | cat confdefs.h >>conftest.$ac_ext | |
30730 | cat >>conftest.$ac_ext <<_ACEOF | |
30731 | /* end confdefs.h. */ | |
30732 | #include <sql.h> | |
30733 | _ACEOF | |
30734 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30735 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30736 | ac_status=$? | |
30737 | grep -v '^ *+' conftest.er1 >conftest.err | |
30738 | rm -f conftest.er1 | |
30739 | cat conftest.err >&5 | |
30740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30741 | (exit $ac_status); } >/dev/null; then | |
30742 | if test -s conftest.err; then | |
30743 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 30744 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
30745 | else |
30746 | ac_cpp_err= | |
30747 | fi | |
30748 | else | |
30749 | ac_cpp_err=yes | |
30750 | fi | |
30751 | if test -z "$ac_cpp_err"; then | |
30752 | ac_header_preproc=yes | |
30753 | else | |
30754 | echo "$as_me: failed program was:" >&5 | |
30755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30756 | ||
30757 | ac_header_preproc=no | |
30758 | fi | |
30759 | rm -f conftest.err conftest.$ac_ext | |
30760 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30761 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30762 | ||
30763 | # So? What about this header? | |
ac1cb8d3 VS |
30764 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
30765 | yes:no: ) | |
a848cd7e SC |
30766 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
30767 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
30768 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
30769 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
30770 | ac_header_preproc=yes | |
a848cd7e | 30771 | ;; |
ac1cb8d3 | 30772 | no:yes:* ) |
a848cd7e SC |
30773 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
30774 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
30775 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
30776 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
30777 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
30778 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
30779 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
30780 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
30781 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
30782 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
30783 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
30784 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
30785 | ( |
30786 | cat <<\_ASBOX | |
ac1cb8d3 VS |
30787 | ## ----------------------------------------- ## |
30788 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30789 | ## ----------------------------------------- ## | |
a848cd7e SC |
30790 | _ASBOX |
30791 | ) | | |
30792 | sed "s/^/$as_me: WARNING: /" >&2 | |
30793 | ;; | |
30794 | esac | |
30795 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
30796 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
30797 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30799 | else | |
30800 | ac_cv_header_sql_h=$ac_header_preproc | |
30801 | fi | |
30802 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
30803 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
30804 | ||
30805 | fi | |
30806 | if test $ac_cv_header_sql_h = yes; then | |
30807 | found_sql_h=1 | |
30808 | fi | |
30809 | ||
30810 | ||
30811 | if test "x$found_sql_h" = "x1" ; then | |
30812 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
30813 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
30814 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
30815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30816 | else | |
30817 | ac_check_lib_save_LIBS=$LIBS | |
30818 | LIBS="-liodbc $LIBS" | |
30819 | cat >conftest.$ac_ext <<_ACEOF | |
30820 | /* confdefs.h. */ | |
30821 | _ACEOF | |
30822 | cat confdefs.h >>conftest.$ac_ext | |
30823 | cat >>conftest.$ac_ext <<_ACEOF | |
30824 | /* end confdefs.h. */ | |
30825 | ||
30826 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30827 | #ifdef __cplusplus | |
30828 | extern "C" | |
30829 | #endif | |
30830 | /* We use char because int might match the return type of a gcc2 | |
30831 | builtin and then its argument prototype would still apply. */ | |
30832 | char SQLAllocEnv (); | |
30833 | int | |
30834 | main () | |
30835 | { | |
30836 | SQLAllocEnv (); | |
30837 | ; | |
30838 | return 0; | |
30839 | } | |
30840 | _ACEOF | |
30841 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30843 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30844 | ac_status=$? |
ac1cb8d3 VS |
30845 | grep -v '^ *+' conftest.er1 >conftest.err |
30846 | rm -f conftest.er1 | |
30847 | cat conftest.err >&5 | |
a848cd7e SC |
30848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30849 | (exit $ac_status); } && | |
3565d135 RR |
30850 | { ac_try='test -z "$ac_c_werror_flag" |
30851 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30853 | (eval $ac_try) 2>&5 | |
30854 | ac_status=$? | |
30855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30856 | (exit $ac_status); }; } && | |
30857 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30859 | (eval $ac_try) 2>&5 | |
30860 | ac_status=$? | |
30861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30862 | (exit $ac_status); }; }; then | |
30863 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
30864 | else | |
30865 | echo "$as_me: failed program was:" >&5 | |
30866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30867 | ||
30868 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
30869 | fi | |
ac1cb8d3 VS |
30870 | rm -f conftest.err conftest.$ac_objext \ |
30871 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30872 | LIBS=$ac_check_lib_save_LIBS |
30873 | fi | |
30874 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
30875 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
30876 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
30877 | ODBC_LINK=" -liodbc" | |
30878 | else | |
30879 | ||
30880 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
30881 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
30882 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
30883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30884 | else | |
30885 | ac_check_lib_save_LIBS=$LIBS | |
30886 | LIBS="-lunixodbc $LIBS" | |
30887 | cat >conftest.$ac_ext <<_ACEOF | |
30888 | /* confdefs.h. */ | |
30889 | _ACEOF | |
30890 | cat confdefs.h >>conftest.$ac_ext | |
30891 | cat >>conftest.$ac_ext <<_ACEOF | |
30892 | /* end confdefs.h. */ | |
30893 | ||
30894 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30895 | #ifdef __cplusplus | |
30896 | extern "C" | |
30897 | #endif | |
30898 | /* We use char because int might match the return type of a gcc2 | |
30899 | builtin and then its argument prototype would still apply. */ | |
30900 | char SQLAllocEnv (); | |
30901 | int | |
30902 | main () | |
30903 | { | |
30904 | SQLAllocEnv (); | |
30905 | ; | |
30906 | return 0; | |
30907 | } | |
30908 | _ACEOF | |
30909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30911 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30912 | ac_status=$? |
ac1cb8d3 VS |
30913 | grep -v '^ *+' conftest.er1 >conftest.err |
30914 | rm -f conftest.er1 | |
30915 | cat conftest.err >&5 | |
a848cd7e SC |
30916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30917 | (exit $ac_status); } && | |
3565d135 RR |
30918 | { ac_try='test -z "$ac_c_werror_flag" |
30919 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30921 | (eval $ac_try) 2>&5 | |
30922 | ac_status=$? | |
30923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30924 | (exit $ac_status); }; } && | |
30925 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
30931 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
30932 | else | |
30933 | echo "$as_me: failed program was:" >&5 | |
30934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30935 | ||
30936 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
30937 | fi | |
ac1cb8d3 VS |
30938 | rm -f conftest.err conftest.$ac_objext \ |
30939 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30940 | LIBS=$ac_check_lib_save_LIBS |
30941 | fi | |
30942 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
30943 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
30944 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
30945 | ODBC_LINK=" -lunixodbc" | |
30946 | else | |
30947 | ||
30948 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
30949 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
30950 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
30951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30952 | else | |
30953 | ac_check_lib_save_LIBS=$LIBS | |
30954 | LIBS="-lodbc $LIBS" | |
30955 | cat >conftest.$ac_ext <<_ACEOF | |
30956 | /* confdefs.h. */ | |
30957 | _ACEOF | |
30958 | cat confdefs.h >>conftest.$ac_ext | |
30959 | cat >>conftest.$ac_ext <<_ACEOF | |
30960 | /* end confdefs.h. */ | |
30961 | ||
30962 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30963 | #ifdef __cplusplus | |
30964 | extern "C" | |
30965 | #endif | |
30966 | /* We use char because int might match the return type of a gcc2 | |
30967 | builtin and then its argument prototype would still apply. */ | |
30968 | char SQLAllocEnv (); | |
30969 | int | |
30970 | main () | |
30971 | { | |
30972 | SQLAllocEnv (); | |
30973 | ; | |
30974 | return 0; | |
30975 | } | |
30976 | _ACEOF | |
30977 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30978 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30979 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30980 | ac_status=$? |
ac1cb8d3 VS |
30981 | grep -v '^ *+' conftest.er1 >conftest.err |
30982 | rm -f conftest.er1 | |
30983 | cat conftest.err >&5 | |
a848cd7e SC |
30984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30985 | (exit $ac_status); } && | |
3565d135 RR |
30986 | { ac_try='test -z "$ac_c_werror_flag" |
30987 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30989 | (eval $ac_try) 2>&5 | |
30990 | ac_status=$? | |
30991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30992 | (exit $ac_status); }; } && | |
30993 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30995 | (eval $ac_try) 2>&5 | |
30996 | ac_status=$? | |
30997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30998 | (exit $ac_status); }; }; then | |
30999 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
31000 | else | |
31001 | echo "$as_me: failed program was:" >&5 | |
31002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31003 | ||
31004 | ac_cv_lib_odbc_SQLAllocEnv=no | |
31005 | fi | |
ac1cb8d3 VS |
31006 | rm -f conftest.err conftest.$ac_objext \ |
31007 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31008 | LIBS=$ac_check_lib_save_LIBS |
31009 | fi | |
31010 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
31011 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
31012 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
31013 | ODBC_LINK=" -lodbc" | |
31014 | fi | |
31015 | ||
31016 | ||
31017 | fi | |
31018 | ||
31019 | ||
31020 | fi | |
31021 | ||
31022 | fi | |
31023 | if test "x$ODBC_LINK" = "x" ; then | |
31024 | if test "$wxUSE_ODBC" = "sys" ; then | |
31025 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
31026 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
31027 | { (exit 1); exit 1; }; } | |
31028 | else | |
31029 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
31030 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
31031 | wxUSE_ODBC=builtin | |
31032 | fi | |
31033 | else | |
31034 | wxUSE_ODBC=sys | |
31035 | fi | |
31036 | fi | |
a848cd7e | 31037 | |
2da0c077 RD |
31038 | if test "$wxUSE_ODBC" = "builtin" ; then |
31039 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
31040 | #define wxUSE_BUILTIN_IODBC 1 |
31041 | _ACEOF | |
31042 | ||
a848cd7e SC |
31043 | fi |
31044 | fi | |
31045 | ||
2da0c077 RD |
31046 | if test "$wxUSE_ODBC" != "no" ; then |
31047 | cat >>confdefs.h <<\_ACEOF | |
31048 | #define wxUSE_ODBC 1 | |
31049 | _ACEOF | |
31050 | ||
31051 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
31052 | ||
5ff751d6 | 31053 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_" |
2da0c077 | 31054 | fi |
a848cd7e | 31055 | |
01cb68df | 31056 | |
a848cd7e | 31057 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 31058 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
31059 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
31060 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
31061 | ||
0ad5d837 VZ |
31062 | ac_find_libraries= |
31063 | for ac_dir in $SEARCH_LIB; | |
31064 | do | |
31065 | for ac_extension in a so sl dylib dll.a; do | |
31066 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
31067 | ac_find_libraries=$ac_dir | |
31068 | break 2 | |
31069 | fi | |
31070 | done | |
31071 | done | |
31072 | ||
a848cd7e SC |
31073 | if test "$ac_find_libraries" != "" ; then |
31074 | ||
0ad5d837 | 31075 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31076 | ac_path_to_link="" |
31077 | else | |
0ad5d837 VZ |
31078 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31079 | result=$? | |
31080 | if test $result = 0; then | |
31081 | ac_path_to_link="" | |
31082 | else | |
31083 | ac_path_to_link=" -L$ac_find_libraries" | |
31084 | fi | |
a848cd7e SC |
31085 | fi |
31086 | ||
31087 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31088 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
31089 | fi | |
31090 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
31091 | echo "$as_me:$LINENO: result: yes" >&5 | |
31092 | echo "${ECHO_T}yes" >&6 | |
31093 | ||
31094 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
31095 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
31096 | ||
0ad5d837 VZ |
31097 | ac_find_libraries= |
31098 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31099 | do |
3eca31dc | 31100 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31101 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
31102 | ac_find_libraries=$ac_dir | |
31103 | break 2 | |
31104 | fi | |
31105 | done | |
31106 | done | |
31107 | ||
31108 | if test "$ac_find_libraries" != "" ; then | |
31109 | echo "$as_me:$LINENO: result: yes" >&5 | |
31110 | echo "${ECHO_T}yes" >&6 | |
31111 | ||
31112 | for ac_header in X11/extensions/xf86vmode.h | |
31113 | do | |
31114 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31115 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31116 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31117 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31119 | else | |
31120 | cat >conftest.$ac_ext <<_ACEOF | |
31121 | /* confdefs.h. */ | |
31122 | _ACEOF | |
31123 | cat confdefs.h >>conftest.$ac_ext | |
31124 | cat >>conftest.$ac_ext <<_ACEOF | |
31125 | /* end confdefs.h. */ | |
31126 | ||
31127 | #if HAVE_X11_XLIB_H | |
31128 | #include <X11/Xlib.h> | |
31129 | #endif | |
31130 | ||
31131 | ||
31132 | #include <$ac_header> | |
31133 | _ACEOF | |
31134 | rm -f conftest.$ac_objext | |
31135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31136 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31137 | ac_status=$? |
ac1cb8d3 VS |
31138 | grep -v '^ *+' conftest.er1 >conftest.err |
31139 | rm -f conftest.er1 | |
31140 | cat conftest.err >&5 | |
a848cd7e SC |
31141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31142 | (exit $ac_status); } && | |
3565d135 RR |
31143 | { ac_try='test -z "$ac_c_werror_flag" |
31144 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31146 | (eval $ac_try) 2>&5 | |
31147 | ac_status=$? | |
31148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31149 | (exit $ac_status); }; } && | |
31150 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31152 | (eval $ac_try) 2>&5 | |
31153 | ac_status=$? | |
31154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31155 | (exit $ac_status); }; }; then | |
31156 | eval "$as_ac_Header=yes" | |
31157 | else | |
31158 | echo "$as_me: failed program was:" >&5 | |
31159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31160 | ||
31161 | eval "$as_ac_Header=no" | |
31162 | fi | |
ac1cb8d3 | 31163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31164 | fi |
31165 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31166 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31167 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31168 | cat >>confdefs.h <<_ACEOF | |
31169 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31170 | _ACEOF | |
31171 | ||
31172 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
31173 | ||
31174 | fi | |
31175 | ||
31176 | done | |
31177 | ||
31178 | else | |
31179 | echo "$as_me:$LINENO: result: no" >&5 | |
31180 | echo "${ECHO_T}no" >&6 | |
31181 | fi | |
31182 | ||
31183 | else | |
31184 | echo "$as_me:$LINENO: result: no" >&5 | |
31185 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
31186 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
31187 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
31188 | wxUSE_DISPLAY="no" |
31189 | fi | |
01cb68df RG |
31190 | elif test "$wxUSE_MSW" = 1; then |
31191 | ||
31192 | ||
31193 | for ac_header in multimon.h ddraw.h | |
31194 | do | |
31195 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 31196 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
31197 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
31198 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 31200 | else |
5294a27e | 31201 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
31202 | /* confdefs.h. */ |
31203 | _ACEOF | |
31204 | cat confdefs.h >>conftest.$ac_ext | |
31205 | cat >>conftest.$ac_ext <<_ACEOF | |
31206 | /* end confdefs.h. */ | |
5294a27e VZ |
31207 | #include <windows.h> |
31208 | ||
01cb68df RG |
31209 | #include <$ac_header> |
31210 | _ACEOF | |
31211 | rm -f conftest.$ac_objext | |
31212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31213 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 31214 | ac_status=$? |
ac1cb8d3 VS |
31215 | grep -v '^ *+' conftest.er1 >conftest.err |
31216 | rm -f conftest.er1 | |
31217 | cat conftest.err >&5 | |
01cb68df RG |
31218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31219 | (exit $ac_status); } && | |
3565d135 RR |
31220 | { ac_try='test -z "$ac_c_werror_flag" |
31221 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31223 | (eval $ac_try) 2>&5 | |
31224 | ac_status=$? | |
31225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31226 | (exit $ac_status); }; } && | |
31227 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
31228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31229 | (eval $ac_try) 2>&5 | |
31230 | ac_status=$? | |
31231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31232 | (exit $ac_status); }; }; then | |
5294a27e | 31233 | eval "$as_ac_Header=yes" |
01cb68df RG |
31234 | else |
31235 | echo "$as_me: failed program was:" >&5 | |
31236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31237 | ||
5294a27e | 31238 | eval "$as_ac_Header=no" |
01cb68df | 31239 | fi |
ac1cb8d3 | 31240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
31241 | fi |
31242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31243 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
31244 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31245 | cat >>confdefs.h <<_ACEOF | |
31246 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31247 | _ACEOF | |
31248 | ||
31249 | else | |
31250 | ||
5294a27e VZ |
31251 | wxUSE_DISPLAY="no" |
31252 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 31253 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
31254 | |
31255 | fi | |
31256 | ||
31257 | done | |
31258 | ||
a848cd7e SC |
31259 | fi |
31260 | fi | |
31261 | ||
31262 | ||
31263 | USE_OPENGL=0 | |
31264 | if test "$wxUSE_OPENGL" = "yes"; then | |
31265 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
31266 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
31267 | elif test "$wxUSE_MSW" = 1; then | |
31268 | OPENGL_LIBS="-lopengl32 -lglu32" | |
31269 | else | |
31270 | ||
31271 | ||
31272 | ac_find_includes= | |
31273 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
31274 | do | |
31275 | if test -f "$ac_dir/GL/gl.h"; then | |
31276 | ac_find_includes=$ac_dir | |
31277 | break | |
31278 | fi | |
31279 | done | |
31280 | ||
31281 | if test "$ac_find_includes" != "" ; then | |
31282 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
31283 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
31284 | ||
31285 | if test "x$ac_find_includes" = "x/usr/include"; then | |
31286 | ac_path_to_include="" | |
31287 | else | |
31288 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
31289 | result=$? | |
31290 | if test $result = 0; then | |
31291 | ac_path_to_include="" | |
31292 | else | |
31293 | ac_path_to_include=" -I$ac_find_includes" | |
31294 | fi | |
31295 | fi | |
31296 | ||
c92ad099 | 31297 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" |
a848cd7e SC |
31298 | fi |
31299 | ||
31300 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31301 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31302 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31303 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31305 | fi | |
31306 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31307 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31308 | else | |
31309 | # Is the header compilable? | |
31310 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
31311 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
31312 | cat >conftest.$ac_ext <<_ACEOF | |
31313 | /* confdefs.h. */ | |
31314 | _ACEOF | |
31315 | cat confdefs.h >>conftest.$ac_ext | |
31316 | cat >>conftest.$ac_ext <<_ACEOF | |
31317 | /* end confdefs.h. */ | |
31318 | $ac_includes_default | |
31319 | #include <GL/gl.h> | |
31320 | _ACEOF | |
31321 | rm -f conftest.$ac_objext | |
31322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31323 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31324 | ac_status=$? |
ac1cb8d3 VS |
31325 | grep -v '^ *+' conftest.er1 >conftest.err |
31326 | rm -f conftest.er1 | |
31327 | cat conftest.err >&5 | |
a848cd7e SC |
31328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31329 | (exit $ac_status); } && | |
3565d135 RR |
31330 | { ac_try='test -z "$ac_c_werror_flag" |
31331 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31333 | (eval $ac_try) 2>&5 | |
31334 | ac_status=$? | |
31335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31336 | (exit $ac_status); }; } && | |
31337 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31339 | (eval $ac_try) 2>&5 | |
31340 | ac_status=$? | |
31341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31342 | (exit $ac_status); }; }; then | |
31343 | ac_header_compiler=yes | |
31344 | else | |
31345 | echo "$as_me: failed program was:" >&5 | |
31346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31347 | ||
31348 | ac_header_compiler=no | |
31349 | fi | |
ac1cb8d3 | 31350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31351 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31352 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31353 | ||
31354 | # Is the header present? | |
31355 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
31356 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
31357 | cat >conftest.$ac_ext <<_ACEOF | |
31358 | /* confdefs.h. */ | |
31359 | _ACEOF | |
31360 | cat confdefs.h >>conftest.$ac_ext | |
31361 | cat >>conftest.$ac_ext <<_ACEOF | |
31362 | /* end confdefs.h. */ | |
31363 | #include <GL/gl.h> | |
31364 | _ACEOF | |
31365 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31366 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31367 | ac_status=$? | |
31368 | grep -v '^ *+' conftest.er1 >conftest.err | |
31369 | rm -f conftest.er1 | |
31370 | cat conftest.err >&5 | |
31371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31372 | (exit $ac_status); } >/dev/null; then | |
31373 | if test -s conftest.err; then | |
31374 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31375 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31376 | else |
31377 | ac_cpp_err= | |
31378 | fi | |
31379 | else | |
31380 | ac_cpp_err=yes | |
31381 | fi | |
31382 | if test -z "$ac_cpp_err"; then | |
31383 | ac_header_preproc=yes | |
31384 | else | |
31385 | echo "$as_me: failed program was:" >&5 | |
31386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31387 | ||
31388 | ac_header_preproc=no | |
31389 | fi | |
31390 | rm -f conftest.err conftest.$ac_ext | |
31391 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31392 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31393 | ||
31394 | # So? What about this header? | |
ac1cb8d3 VS |
31395 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31396 | yes:no: ) | |
a848cd7e SC |
31397 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31398 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31399 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
31400 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
31401 | ac_header_preproc=yes | |
a848cd7e | 31402 | ;; |
ac1cb8d3 | 31403 | no:yes:* ) |
a848cd7e SC |
31404 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
31405 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31406 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
31407 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
31408 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
31409 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
31410 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31411 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31412 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
31413 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31414 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
31415 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31416 | ( |
31417 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31418 | ## ----------------------------------------- ## |
31419 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31420 | ## ----------------------------------------- ## | |
a848cd7e SC |
31421 | _ASBOX |
31422 | ) | | |
31423 | sed "s/^/$as_me: WARNING: /" >&2 | |
31424 | ;; | |
31425 | esac | |
31426 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31427 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31428 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31430 | else | |
31431 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
31432 | fi | |
31433 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31434 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31435 | ||
31436 | fi | |
31437 | if test $ac_cv_header_GL_gl_h = yes; then | |
31438 | ||
31439 | found_gl=0 | |
31440 | ||
31441 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
31442 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
31443 | ||
0ad5d837 VZ |
31444 | ac_find_libraries= |
31445 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31446 | do |
3eca31dc | 31447 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31448 | if test -f "$ac_dir/libGL.$ac_extension"; then |
31449 | ac_find_libraries=$ac_dir | |
31450 | break 2 | |
31451 | fi | |
31452 | done | |
31453 | done | |
31454 | ||
31455 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
31456 | echo "$as_me:$LINENO: result: yes" >&5 |
31457 | echo "${ECHO_T}yes" >&6 | |
31458 | ||
a848cd7e | 31459 | |
0ad5d837 | 31460 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31461 | ac_path_to_link="" |
31462 | else | |
0ad5d837 VZ |
31463 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31464 | result=$? | |
31465 | if test $result = 0; then | |
31466 | ac_path_to_link="" | |
31467 | else | |
31468 | ac_path_to_link=" -L$ac_find_libraries" | |
31469 | fi | |
a848cd7e SC |
31470 | fi |
31471 | ||
31472 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31473 | LDFLAGS_GL="$ac_path_to_link" | |
31474 | fi | |
31475 | ||
69120ee4 VZ |
31476 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
31477 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 31478 | |
0ad5d837 VZ |
31479 | ac_find_libraries= |
31480 | for ac_dir in $SEARCH_LIB; | |
31481 | do | |
31482 | for ac_extension in a so sl dylib dll.a; do | |
31483 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
31484 | ac_find_libraries=$ac_dir | |
31485 | break 2 | |
31486 | fi | |
31487 | done | |
31488 | done | |
31489 | ||
a848cd7e SC |
31490 | if test "$ac_find_libraries" != "" ; then |
31491 | ||
0ad5d837 | 31492 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31493 | ac_path_to_link="" |
31494 | else | |
0ad5d837 VZ |
31495 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31496 | result=$? | |
31497 | if test $result = 0; then | |
31498 | ac_path_to_link="" | |
31499 | else | |
31500 | ac_path_to_link=" -L$ac_find_libraries" | |
31501 | fi | |
a848cd7e SC |
31502 | fi |
31503 | ||
31504 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
31505 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
31506 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
31507 | fi | |
31508 | ||
31509 | found_gl=1 | |
31510 | OPENGL_LIBS="-lGL -lGLU" | |
31511 | echo "$as_me:$LINENO: result: yes" >&5 | |
31512 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
31513 | else |
31514 | echo "$as_me:$LINENO: result: no" >&5 | |
31515 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 31516 | fi |
69120ee4 VZ |
31517 | else |
31518 | echo "$as_me:$LINENO: result: no" >&5 | |
31519 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
31520 | fi |
31521 | ||
31522 | if test "$found_gl" != 1; then | |
a848cd7e SC |
31523 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
31524 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
31525 | ||
0ad5d837 VZ |
31526 | ac_find_libraries= |
31527 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31528 | do |
3eca31dc | 31529 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31530 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
31531 | ac_find_libraries=$ac_dir | |
31532 | break 2 | |
31533 | fi | |
31534 | done | |
31535 | done | |
31536 | ||
31537 | if test "$ac_find_libraries" != "" ; then | |
31538 | ||
0ad5d837 | 31539 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31540 | ac_path_to_link="" |
31541 | else | |
0ad5d837 VZ |
31542 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31543 | result=$? | |
31544 | if test $result = 0; then | |
31545 | ac_path_to_link="" | |
31546 | else | |
31547 | ac_path_to_link=" -L$ac_find_libraries" | |
31548 | fi | |
a848cd7e SC |
31549 | fi |
31550 | ||
31551 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
31552 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
31553 | echo "$as_me:$LINENO: result: yes" >&5 | |
31554 | echo "${ECHO_T}yes" >&6 | |
31555 | else | |
31556 | echo "$as_me:$LINENO: result: no" >&5 | |
31557 | echo "${ECHO_T}no" >&6 | |
31558 | fi | |
31559 | fi | |
31560 | ||
31561 | fi | |
31562 | ||
31563 | ||
31564 | ||
31565 | if test "x$OPENGL_LIBS" = "x"; then | |
31566 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
31567 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
31568 | { (exit 1); exit 1; }; } | |
31569 | fi | |
31570 | fi | |
31571 | ||
31572 | if test "$wxUSE_OPENGL" = "yes"; then | |
31573 | USE_OPENGL=1 | |
31574 | cat >>confdefs.h <<\_ACEOF | |
31575 | #define wxUSE_OPENGL 1 | |
31576 | _ACEOF | |
31577 | ||
31578 | cat >>confdefs.h <<\_ACEOF | |
31579 | #define wxUSE_GLCANVAS 1 | |
31580 | _ACEOF | |
31581 | ||
31582 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
31583 | fi | |
31584 | fi | |
31585 | ||
a848cd7e SC |
31586 | |
31587 | if test -n "$TOOLKIT" ; then | |
31588 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
31589 | fi | |
31590 | ||
a848cd7e SC |
31591 | |
31592 | ||
31593 | if test "$wxUSE_SHARED" = "yes"; then | |
31594 | case "${host}" in | |
31595 | *-pc-msdosdjgpp ) | |
31596 | wxUSE_SHARED=no | |
31597 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
31598 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
31599 | ;; | |
31600 | esac | |
31601 | fi | |
31602 | ||
a848cd7e | 31603 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
31604 | |
31605 | ||
31606 | found_versioning=no | |
31607 | ||
31608 | ||
31609 | if test $found_versioning = no ; then | |
31610 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
31611 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
31612 | if test "${wx_cv_version_script+set}" = set; then | |
31613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31614 | else | |
31615 | ||
31616 | echo "VER_1 { *; };" >conftest.sym | |
31617 | echo "int main() { return 0; }" >conftest.cpp | |
31618 | ||
31619 | if { ac_try=' | |
31620 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31621 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
31622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31623 | (eval $ac_try) 2>&5 | |
31624 | ac_status=$? | |
31625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31626 | (exit $ac_status); }; } ; then | |
31627 | if test -s conftest.stderr ; then | |
31628 | wx_cv_version_script=no | |
31629 | else | |
31630 | wx_cv_version_script=yes | |
31631 | fi | |
31632 | else | |
31633 | wx_cv_version_script=no | |
31634 | fi | |
e5d4b470 MW |
31635 | |
31636 | if test $wx_cv_version_script = yes | |
31637 | then | |
31638 | echo "struct B { virtual ~B() { } }; \ | |
31639 | struct D : public B { }; \ | |
31640 | void F() { D d; }" > conftest.cpp | |
31641 | ||
31642 | if { ac_try=' | |
31643 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31644 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
31645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31646 | (eval $ac_try) 2>&5 | |
31647 | ac_status=$? | |
31648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31649 | (exit $ac_status); }; } && | |
31650 | { ac_try=' | |
31651 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31652 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
31653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31654 | (eval $ac_try) 2>&5 | |
31655 | ac_status=$? | |
31656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31657 | (exit $ac_status); }; } | |
31658 | then | |
31659 | if { ac_try=' | |
31660 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31661 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
31662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31663 | (eval $ac_try) 2>&5 | |
31664 | ac_status=$? | |
31665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31666 | (exit $ac_status); }; } | |
31667 | then | |
31668 | wx_cv_version_script=yes | |
31669 | else | |
31670 | wx_cv_version_script=no | |
31671 | fi | |
31672 | fi | |
31673 | fi | |
31674 | ||
a848cd7e | 31675 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 31676 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
31677 | |
31678 | fi | |
31679 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
31680 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
31681 | if test $wx_cv_version_script = yes ; then | |
31682 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
31683 | fi | |
31684 | fi | |
31685 | ||
31686 | ||
31687 | case "${host}" in | |
31688 | *-*-linux* | *-*-gnu* ) | |
31689 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 31690 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 31691 | ;; |
a848cd7e SC |
31692 | |
31693 | *-*-solaris2* ) | |
31694 | if test "$GCC" = yes ; then | |
c92ad099 | 31695 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
a848cd7e SC |
31696 | |
31697 | saveLdflags="$LDFLAGS" | |
31698 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
31699 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
31700 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
31701 | cat >conftest.$ac_ext <<_ACEOF | |
31702 | /* confdefs.h. */ | |
31703 | _ACEOF | |
31704 | cat confdefs.h >>conftest.$ac_ext | |
31705 | cat >>conftest.$ac_ext <<_ACEOF | |
31706 | /* end confdefs.h. */ | |
31707 | ||
31708 | int | |
31709 | main () | |
31710 | { | |
31711 | ||
31712 | ; | |
31713 | return 0; | |
31714 | } | |
31715 | _ACEOF | |
31716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31718 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31719 | ac_status=$? |
ac1cb8d3 VS |
31720 | grep -v '^ *+' conftest.er1 >conftest.err |
31721 | rm -f conftest.er1 | |
31722 | cat conftest.err >&5 | |
a848cd7e SC |
31723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31724 | (exit $ac_status); } && | |
3565d135 RR |
31725 | { ac_try='test -z "$ac_c_werror_flag" |
31726 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31728 | (eval $ac_try) 2>&5 | |
31729 | ac_status=$? | |
31730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31731 | (exit $ac_status); }; } && | |
31732 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31734 | (eval $ac_try) 2>&5 | |
31735 | ac_status=$? | |
31736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31737 | (exit $ac_status); }; }; then | |
31738 | ||
31739 | echo "$as_me:$LINENO: result: yes" >&5 | |
31740 | echo "${ECHO_T}yes" >&6 | |
31741 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 31742 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
31743 | |
31744 | else | |
31745 | echo "$as_me: failed program was:" >&5 | |
31746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31747 | ||
31748 | ||
31749 | echo "$as_me:$LINENO: result: no" >&5 | |
31750 | echo "${ECHO_T}no" >&6 | |
31751 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
31752 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
31753 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
31754 | cat >conftest.$ac_ext <<_ACEOF | |
31755 | /* confdefs.h. */ | |
31756 | _ACEOF | |
31757 | cat confdefs.h >>conftest.$ac_ext | |
31758 | cat >>conftest.$ac_ext <<_ACEOF | |
31759 | /* end confdefs.h. */ | |
31760 | ||
31761 | int | |
31762 | main () | |
31763 | { | |
31764 | ||
31765 | ; | |
31766 | return 0; | |
31767 | } | |
31768 | _ACEOF | |
31769 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31771 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31772 | ac_status=$? |
ac1cb8d3 VS |
31773 | grep -v '^ *+' conftest.er1 >conftest.err |
31774 | rm -f conftest.er1 | |
31775 | cat conftest.err >&5 | |
a848cd7e SC |
31776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31777 | (exit $ac_status); } && | |
3565d135 RR |
31778 | { ac_try='test -z "$ac_c_werror_flag" |
31779 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31781 | (eval $ac_try) 2>&5 | |
31782 | ac_status=$? | |
31783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31784 | (exit $ac_status); }; } && | |
31785 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31787 | (eval $ac_try) 2>&5 | |
31788 | ac_status=$? | |
31789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31790 | (exit $ac_status); }; }; then | |
31791 | ||
ffa0583f | 31792 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 31793 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
31794 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
31795 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
31796 | ||
a848cd7e SC |
31797 | else |
31798 | echo "$as_me: failed program was:" >&5 | |
31799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31800 | ||
31801 | ||
31802 | echo "$as_me:$LINENO: result: no" >&5 | |
31803 | echo "${ECHO_T}no" >&6 | |
31804 | ||
31805 | fi | |
ac1cb8d3 VS |
31806 | rm -f conftest.err conftest.$ac_objext \ |
31807 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31808 | |
31809 | fi | |
ac1cb8d3 VS |
31810 | rm -f conftest.err conftest.$ac_objext \ |
31811 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31812 | LDFLAGS="$saveLdflags" |
31813 | else | |
a848cd7e | 31814 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 31815 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
31816 | fi |
31817 | ;; | |
31818 | ||
cfda0ea8 | 31819 | *-*-darwin* ) |
0caebc27 MW |
31820 | install_name_tool=`which install_name_tool` |
31821 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
31822 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
31823 | cat <<EOF >change-install-names | |
a848cd7e SC |
31824 | #!/bin/sh |
31825 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
31826 | inst_cmd="install_name_tool " | |
31827 | for i in \${libnames} ; do | |
31828 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
31829 | done | |
31830 | \${inst_cmd} \${3} | |
31831 | EOF | |
0caebc27 MW |
31832 | chmod +x change-install-names |
31833 | fi | |
a848cd7e SC |
31834 | ;; |
31835 | ||
31836 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 VZ |
31837 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
31838 | ;; | |
a848cd7e | 31839 | |
81f90336 MW |
31840 | *-*-hpux* ) |
31841 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
31842 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
5ff751d6 | 31843 | ;; |
81f90336 | 31844 | |
a848cd7e | 31845 | esac |
ceec2216 | 31846 | |
ffa0583f RL |
31847 | if test $wxUSE_RPATH = "no"; then |
31848 | SAMPLES_RPATH_FLAG='' | |
31849 | SAMPLES_RPATH_POSTLINK='' | |
31850 | WXCONFIG_RPATH='' | |
31851 | fi | |
31852 | ||
31853 | SHARED=1 | |
31854 | ||
31855 | else | |
31856 | ||
ceec2216 RL |
31857 | config_linkage_component="-static" |
31858 | SHARED=0 | |
ffa0583f | 31859 | |
ceec2216 | 31860 | fi |
a848cd7e | 31861 | |
a848cd7e | 31862 | |
ceec2216 RL |
31863 | UNICODE=0 |
31864 | lib_unicode_suffix= | |
31865 | WX_CHARTYPE="ansi" | |
31866 | if test "$wxUSE_UNICODE" = "yes"; then | |
31867 | lib_unicode_suffix=u | |
31868 | WX_CHARTYPE="unicode" | |
31869 | UNICODE=1 | |
a848cd7e SC |
31870 | fi |
31871 | ||
ceec2216 RL |
31872 | lib_debug_suffix= |
31873 | WX_DEBUGTYPE="release" | |
31874 | DEBUG_FLAG=0 | |
31875 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
31876 | lib_debug_suffix=d | |
31877 | WX_DEBUGTYPE="debug" | |
31878 | DEBUG_FLAG=1 | |
31879 | fi | |
a848cd7e | 31880 | |
ceec2216 RL |
31881 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
31882 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 31883 | |
ceec2216 RL |
31884 | DEBUG_INFO=0 |
31885 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
31886 | DEBUG_INFO=1 | |
31887 | fi | |
a848cd7e | 31888 | |
ceec2216 | 31889 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 31890 | |
ceec2216 | 31891 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 31892 | |
ceec2216 | 31893 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 31894 | |
ceec2216 RL |
31895 | if test "$cross_compiling" = "yes"; then |
31896 | HOST_SUFFIX="-$host_alias" | |
31897 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
31898 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
31899 | fi |
31900 | ||
dd21ced8 | 31901 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
31902 | if test "${TOOLKIT_DIR}" = "os2"; then |
31903 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
31904 | else | |
31905 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
31906 | fi | |
ceec2216 RL |
31907 | |
31908 | ||
31909 | ||
1d1af5ea DE |
31910 | if test "$wxUSE_COCOA" = 1; then |
31911 | ||
31912 | ||
31913 | ac_ext=c | |
31914 | ac_cpp='$CPP $CPPFLAGS' | |
31915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31918 | ||
31919 | ac_ext=m | |
31920 | ||
31921 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
31922 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
31923 | cat >conftest.$ac_ext <<_ACEOF | |
31924 | /* confdefs.h. */ | |
31925 | _ACEOF | |
31926 | cat confdefs.h >>conftest.$ac_ext | |
31927 | cat >>conftest.$ac_ext <<_ACEOF | |
31928 | /* end confdefs.h. */ | |
31929 | #include <AppKit/NSEvent.h> | |
31930 | #include <CoreFoundation/CoreFoundation.h> | |
31931 | ||
31932 | int | |
31933 | main () | |
31934 | { | |
31935 | ||
31936 | ; | |
31937 | return 0; | |
31938 | } | |
31939 | _ACEOF | |
31940 | rm -f conftest.$ac_objext | |
31941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31942 | (eval $ac_compile) 2>conftest.er1 | |
31943 | ac_status=$? | |
31944 | grep -v '^ *+' conftest.er1 >conftest.err | |
31945 | rm -f conftest.er1 | |
31946 | cat conftest.err >&5 | |
31947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31948 | (exit $ac_status); } && | |
3565d135 RR |
31949 | { ac_try='test -z "$ac_c_werror_flag" |
31950 | || test ! -s conftest.err' | |
1d1af5ea DE |
31951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31952 | (eval $ac_try) 2>&5 | |
31953 | ac_status=$? | |
31954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31955 | (exit $ac_status); }; } && | |
31956 | { ac_try='test -s conftest.$ac_objext' | |
31957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31958 | (eval $ac_try) 2>&5 | |
31959 | ac_status=$? | |
31960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31961 | (exit $ac_status); }; }; then | |
31962 | echo "$as_me:$LINENO: result: no" >&5 | |
31963 | echo "${ECHO_T}no" >&6 | |
31964 | else | |
31965 | echo "$as_me: failed program was:" >&5 | |
31966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31967 | ||
31968 | echo "$as_me:$LINENO: result: yes" >&5 | |
31969 | echo "${ECHO_T}yes" >&6 | |
31970 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
31971 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
31972 | cat >conftest.$ac_ext <<_ACEOF | |
31973 | /* confdefs.h. */ | |
31974 | _ACEOF | |
31975 | cat confdefs.h >>conftest.$ac_ext | |
31976 | cat >>conftest.$ac_ext <<_ACEOF | |
31977 | /* end confdefs.h. */ | |
31978 | #define __Point__ 1 | |
31979 | #include <AppKit/NSEvent.h> | |
31980 | #include <CoreFoundation/CoreFoundation.h> | |
31981 | ||
31982 | int | |
31983 | main () | |
31984 | { | |
31985 | ||
31986 | ; | |
31987 | return 0; | |
31988 | } | |
31989 | _ACEOF | |
31990 | rm -f conftest.$ac_objext | |
31991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31992 | (eval $ac_compile) 2>conftest.er1 | |
31993 | ac_status=$? | |
31994 | grep -v '^ *+' conftest.er1 >conftest.err | |
31995 | rm -f conftest.er1 | |
31996 | cat conftest.err >&5 | |
31997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31998 | (exit $ac_status); } && | |
3565d135 RR |
31999 | { ac_try='test -z "$ac_c_werror_flag" |
32000 | || test ! -s conftest.err' | |
1d1af5ea DE |
32001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32002 | (eval $ac_try) 2>&5 | |
32003 | ac_status=$? | |
32004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32005 | (exit $ac_status); }; } && | |
32006 | { ac_try='test -s conftest.$ac_objext' | |
32007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32008 | (eval $ac_try) 2>&5 | |
32009 | ac_status=$? | |
32010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32011 | (exit $ac_status); }; }; then | |
32012 | echo "$as_me:$LINENO: result: yes" >&5 | |
32013 | echo "${ECHO_T}yes" >&6 | |
32014 | cat >>confdefs.h <<\_ACEOF | |
32015 | #define __Point__ 1 | |
32016 | _ACEOF | |
32017 | ||
32018 | ||
32019 | else | |
32020 | echo "$as_me: failed program was:" >&5 | |
32021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32022 | ||
32023 | { { echo "$as_me:$LINENO: error: no | |
32024 | See \`config.log' for more details." >&5 | |
32025 | echo "$as_me: error: no | |
32026 | See \`config.log' for more details." >&2;} | |
32027 | { (exit 1); exit 1; }; } | |
32028 | ||
32029 | fi | |
32030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32031 | ||
32032 | fi | |
32033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32034 | ac_ext=c | |
32035 | ac_cpp='$CPP $CPPFLAGS' | |
32036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32039 | ||
32040 | fi | |
32041 | ||
a848cd7e | 32042 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
32043 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
32044 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 32045 | |
a848cd7e | 32046 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
32047 | |
32048 | # Extract the first word of "Rez", so it can be a program name with args. | |
32049 | set dummy Rez; ac_word=$2 | |
32050 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32051 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 32052 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
32053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32054 | else | |
8ced02f6 DE |
32055 | if test -n "$REZ"; then |
32056 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
32057 | else |
32058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32059 | for as_dir in $PATH | |
32060 | do | |
32061 | IFS=$as_save_IFS | |
32062 | test -z "$as_dir" && as_dir=. | |
32063 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32064 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 32065 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
32066 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
32067 | break 2 | |
32068 | fi | |
32069 | done | |
32070 | done | |
32071 | ||
8ced02f6 | 32072 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
32073 | fi |
32074 | fi | |
8ced02f6 DE |
32075 | REZ=$ac_cv_prog_REZ |
32076 | if test -n "$REZ"; then | |
32077 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
32078 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
32079 | else |
32080 | echo "$as_me:$LINENO: result: no" >&5 | |
32081 | echo "${ECHO_T}no" >&6 | |
32082 | fi | |
32083 | ||
32084 | # Extract the first word of "DeRez", so it can be a program name with args. | |
32085 | set dummy DeRez; ac_word=$2 | |
32086 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32088 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
32089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32090 | else | |
32091 | if test -n "$DEREZ"; then | |
32092 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
32093 | else | |
32094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32095 | for as_dir in $PATH | |
32096 | do | |
32097 | IFS=$as_save_IFS | |
32098 | test -z "$as_dir" && as_dir=. | |
32099 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32100 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32101 | ac_cv_prog_DEREZ="DeRez" | |
32102 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32103 | break 2 | |
32104 | fi | |
32105 | done | |
32106 | done | |
32107 | ||
32108 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
32109 | fi | |
32110 | fi | |
32111 | DEREZ=$ac_cv_prog_DEREZ | |
32112 | if test -n "$DEREZ"; then | |
32113 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
32114 | echo "${ECHO_T}$DEREZ" >&6 | |
32115 | else | |
32116 | echo "$as_me:$LINENO: result: no" >&5 | |
32117 | echo "${ECHO_T}no" >&6 | |
32118 | fi | |
32119 | ||
32120 | # Extract the first word of "SetFile", so it can be a program name with args. | |
32121 | set dummy SetFile; ac_word=$2 | |
32122 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32123 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32124 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
32125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32126 | else | |
32127 | if test -n "$SETFILE"; then | |
32128 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
32129 | else | |
32130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32131 | for as_dir in $PATH | |
32132 | do | |
32133 | IFS=$as_save_IFS | |
32134 | test -z "$as_dir" && as_dir=. | |
32135 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32136 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32137 | ac_cv_prog_SETFILE="SetFile" | |
32138 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32139 | break 2 | |
32140 | fi | |
32141 | done | |
32142 | done | |
32143 | ||
32144 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
32145 | fi | |
32146 | fi | |
32147 | SETFILE=$ac_cv_prog_SETFILE | |
32148 | if test -n "$SETFILE"; then | |
32149 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
32150 | echo "${ECHO_T}$SETFILE" >&6 | |
32151 | else | |
32152 | echo "$as_me:$LINENO: result: no" >&5 | |
32153 | echo "${ECHO_T}no" >&6 | |
32154 | fi | |
32155 | ||
32156 | ||
32157 | MACSETFILE="\$(SETFILE)" | |
32158 | ||
32159 | if test "$wxUSE_MAC" = 1; then | |
8ced02f6 | 32160 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
004ee6da RL |
32161 | RESCOMP="$REZ" |
32162 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
a848cd7e | 32163 | else |
004ee6da RL |
32164 | POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" |
32165 | RESCOMP="echo -n \| $REZ" | |
32166 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
a848cd7e | 32167 | fi |
004ee6da | 32168 | |
a848cd7e | 32169 | else |
ffa0583f | 32170 | MACSETFILE="@true" |
a848cd7e | 32171 | |
8ced02f6 | 32172 | if test "$wxUSE_PM" = 1; then |
004ee6da RL |
32173 | RESCOMP="emxbind" |
32174 | WXCONFIG_RESFLAGS="-ep" | |
32175 | ||
32176 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
a848cd7e | 32177 | else |
8ced02f6 | 32178 | POSTLINK_COMMAND="@true" |
a848cd7e | 32179 | fi |
004ee6da | 32180 | |
a848cd7e SC |
32181 | fi |
32182 | ||
32183 | ||
32184 | ||
32185 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
32186 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
32187 | if test "${ac_cv_type_mode_t+set}" = set; then | |
32188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32189 | else | |
32190 | cat >conftest.$ac_ext <<_ACEOF | |
32191 | /* confdefs.h. */ | |
32192 | _ACEOF | |
32193 | cat confdefs.h >>conftest.$ac_ext | |
32194 | cat >>conftest.$ac_ext <<_ACEOF | |
32195 | /* end confdefs.h. */ | |
32196 | $ac_includes_default | |
32197 | int | |
32198 | main () | |
32199 | { | |
32200 | if ((mode_t *) 0) | |
32201 | return 0; | |
32202 | if (sizeof (mode_t)) | |
32203 | return 0; | |
32204 | ; | |
32205 | return 0; | |
32206 | } | |
32207 | _ACEOF | |
32208 | rm -f conftest.$ac_objext | |
32209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32210 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32211 | ac_status=$? |
ac1cb8d3 VS |
32212 | grep -v '^ *+' conftest.er1 >conftest.err |
32213 | rm -f conftest.er1 | |
32214 | cat conftest.err >&5 | |
a848cd7e SC |
32215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32216 | (exit $ac_status); } && | |
3565d135 RR |
32217 | { ac_try='test -z "$ac_c_werror_flag" |
32218 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32220 | (eval $ac_try) 2>&5 | |
32221 | ac_status=$? | |
32222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32223 | (exit $ac_status); }; } && | |
32224 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32226 | (eval $ac_try) 2>&5 | |
32227 | ac_status=$? | |
32228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32229 | (exit $ac_status); }; }; then | |
32230 | ac_cv_type_mode_t=yes | |
32231 | else | |
32232 | echo "$as_me: failed program was:" >&5 | |
32233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32234 | ||
32235 | ac_cv_type_mode_t=no | |
32236 | fi | |
ac1cb8d3 | 32237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32238 | fi |
32239 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
32240 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
32241 | if test $ac_cv_type_mode_t = yes; then | |
32242 | : | |
32243 | else | |
32244 | ||
32245 | cat >>confdefs.h <<_ACEOF | |
32246 | #define mode_t int | |
32247 | _ACEOF | |
32248 | ||
32249 | fi | |
32250 | ||
32251 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
32252 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
32253 | if test "${ac_cv_type_off_t+set}" = set; then | |
32254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32255 | else | |
32256 | cat >conftest.$ac_ext <<_ACEOF | |
32257 | /* confdefs.h. */ | |
32258 | _ACEOF | |
32259 | cat confdefs.h >>conftest.$ac_ext | |
32260 | cat >>conftest.$ac_ext <<_ACEOF | |
32261 | /* end confdefs.h. */ | |
32262 | $ac_includes_default | |
32263 | int | |
32264 | main () | |
32265 | { | |
32266 | if ((off_t *) 0) | |
32267 | return 0; | |
32268 | if (sizeof (off_t)) | |
32269 | return 0; | |
32270 | ; | |
32271 | return 0; | |
32272 | } | |
32273 | _ACEOF | |
32274 | rm -f conftest.$ac_objext | |
32275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32276 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32277 | ac_status=$? |
ac1cb8d3 VS |
32278 | grep -v '^ *+' conftest.er1 >conftest.err |
32279 | rm -f conftest.er1 | |
32280 | cat conftest.err >&5 | |
a848cd7e SC |
32281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32282 | (exit $ac_status); } && | |
3565d135 RR |
32283 | { ac_try='test -z "$ac_c_werror_flag" |
32284 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32286 | (eval $ac_try) 2>&5 | |
32287 | ac_status=$? | |
32288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32289 | (exit $ac_status); }; } && | |
32290 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32292 | (eval $ac_try) 2>&5 | |
32293 | ac_status=$? | |
32294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32295 | (exit $ac_status); }; }; then | |
32296 | ac_cv_type_off_t=yes | |
32297 | else | |
32298 | echo "$as_me: failed program was:" >&5 | |
32299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32300 | ||
32301 | ac_cv_type_off_t=no | |
32302 | fi | |
ac1cb8d3 | 32303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32304 | fi |
32305 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
32306 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
32307 | if test $ac_cv_type_off_t = yes; then | |
32308 | : | |
32309 | else | |
32310 | ||
32311 | cat >>confdefs.h <<_ACEOF | |
32312 | #define off_t long | |
32313 | _ACEOF | |
32314 | ||
32315 | fi | |
32316 | ||
32317 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
32318 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
32319 | if test "${ac_cv_type_pid_t+set}" = set; then | |
32320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32321 | else | |
32322 | cat >conftest.$ac_ext <<_ACEOF | |
32323 | /* confdefs.h. */ | |
32324 | _ACEOF | |
32325 | cat confdefs.h >>conftest.$ac_ext | |
32326 | cat >>conftest.$ac_ext <<_ACEOF | |
32327 | /* end confdefs.h. */ | |
32328 | $ac_includes_default | |
32329 | int | |
32330 | main () | |
32331 | { | |
32332 | if ((pid_t *) 0) | |
32333 | return 0; | |
32334 | if (sizeof (pid_t)) | |
32335 | return 0; | |
32336 | ; | |
32337 | return 0; | |
32338 | } | |
32339 | _ACEOF | |
32340 | rm -f conftest.$ac_objext | |
32341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32342 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32343 | ac_status=$? |
ac1cb8d3 VS |
32344 | grep -v '^ *+' conftest.er1 >conftest.err |
32345 | rm -f conftest.er1 | |
32346 | cat conftest.err >&5 | |
a848cd7e SC |
32347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32348 | (exit $ac_status); } && | |
3565d135 RR |
32349 | { ac_try='test -z "$ac_c_werror_flag" |
32350 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32352 | (eval $ac_try) 2>&5 | |
32353 | ac_status=$? | |
32354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32355 | (exit $ac_status); }; } && | |
32356 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32358 | (eval $ac_try) 2>&5 | |
32359 | ac_status=$? | |
32360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32361 | (exit $ac_status); }; }; then | |
32362 | ac_cv_type_pid_t=yes | |
32363 | else | |
32364 | echo "$as_me: failed program was:" >&5 | |
32365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32366 | ||
32367 | ac_cv_type_pid_t=no | |
32368 | fi | |
ac1cb8d3 | 32369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32370 | fi |
32371 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
32372 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
32373 | if test $ac_cv_type_pid_t = yes; then | |
32374 | : | |
32375 | else | |
32376 | ||
32377 | cat >>confdefs.h <<_ACEOF | |
32378 | #define pid_t int | |
32379 | _ACEOF | |
32380 | ||
32381 | fi | |
32382 | ||
32383 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
32384 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
32385 | if test "${ac_cv_type_size_t+set}" = set; then | |
32386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32387 | else | |
32388 | cat >conftest.$ac_ext <<_ACEOF | |
32389 | /* confdefs.h. */ | |
32390 | _ACEOF | |
32391 | cat confdefs.h >>conftest.$ac_ext | |
32392 | cat >>conftest.$ac_ext <<_ACEOF | |
32393 | /* end confdefs.h. */ | |
32394 | $ac_includes_default | |
32395 | int | |
32396 | main () | |
32397 | { | |
32398 | if ((size_t *) 0) | |
32399 | return 0; | |
32400 | if (sizeof (size_t)) | |
32401 | return 0; | |
32402 | ; | |
32403 | return 0; | |
32404 | } | |
32405 | _ACEOF | |
32406 | rm -f conftest.$ac_objext | |
32407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32408 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32409 | ac_status=$? |
ac1cb8d3 VS |
32410 | grep -v '^ *+' conftest.er1 >conftest.err |
32411 | rm -f conftest.er1 | |
32412 | cat conftest.err >&5 | |
a848cd7e SC |
32413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32414 | (exit $ac_status); } && | |
3565d135 RR |
32415 | { ac_try='test -z "$ac_c_werror_flag" |
32416 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32418 | (eval $ac_try) 2>&5 | |
32419 | ac_status=$? | |
32420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32421 | (exit $ac_status); }; } && | |
32422 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32424 | (eval $ac_try) 2>&5 | |
32425 | ac_status=$? | |
32426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32427 | (exit $ac_status); }; }; then | |
32428 | ac_cv_type_size_t=yes | |
32429 | else | |
32430 | echo "$as_me: failed program was:" >&5 | |
32431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32432 | ||
32433 | ac_cv_type_size_t=no | |
32434 | fi | |
ac1cb8d3 | 32435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32436 | fi |
32437 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
32438 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
32439 | if test $ac_cv_type_size_t = yes; then | |
32440 | : | |
32441 | else | |
32442 | ||
32443 | cat >>confdefs.h <<_ACEOF | |
32444 | #define size_t unsigned | |
32445 | _ACEOF | |
32446 | ||
32447 | fi | |
32448 | ||
32449 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
32450 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
32451 | if test "${ac_cv_type_uid_t+set}" = set; then | |
32452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32453 | else | |
32454 | cat >conftest.$ac_ext <<_ACEOF | |
32455 | /* confdefs.h. */ | |
32456 | _ACEOF | |
32457 | cat confdefs.h >>conftest.$ac_ext | |
32458 | cat >>conftest.$ac_ext <<_ACEOF | |
32459 | /* end confdefs.h. */ | |
32460 | #include <sys/types.h> | |
32461 | ||
32462 | _ACEOF | |
32463 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
32464 | $EGREP "uid_t" >/dev/null 2>&1; then | |
32465 | ac_cv_type_uid_t=yes | |
32466 | else | |
32467 | ac_cv_type_uid_t=no | |
32468 | fi | |
32469 | rm -f conftest* | |
32470 | ||
32471 | fi | |
32472 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
32473 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
32474 | if test $ac_cv_type_uid_t = no; then | |
32475 | ||
32476 | cat >>confdefs.h <<\_ACEOF | |
32477 | #define uid_t int | |
32478 | _ACEOF | |
32479 | ||
32480 | ||
32481 | cat >>confdefs.h <<\_ACEOF | |
32482 | #define gid_t int | |
32483 | _ACEOF | |
32484 | ||
32485 | fi | |
32486 | ||
32487 | ||
d51253e8 RL |
32488 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
32489 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
32490 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
32491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32492 | else | |
32493 | cat >conftest.$ac_ext <<_ACEOF | |
32494 | /* confdefs.h. */ | |
32495 | _ACEOF | |
32496 | cat confdefs.h >>conftest.$ac_ext | |
32497 | cat >>conftest.$ac_ext <<_ACEOF | |
32498 | /* end confdefs.h. */ | |
32499 | $ac_includes_default | |
32500 | int | |
32501 | main () | |
32502 | { | |
32503 | if ((ssize_t *) 0) | |
32504 | return 0; | |
32505 | if (sizeof (ssize_t)) | |
32506 | return 0; | |
32507 | ; | |
32508 | return 0; | |
32509 | } | |
32510 | _ACEOF | |
32511 | rm -f conftest.$ac_objext | |
32512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32513 | (eval $ac_compile) 2>conftest.er1 | |
32514 | ac_status=$? | |
32515 | grep -v '^ *+' conftest.er1 >conftest.err | |
32516 | rm -f conftest.er1 | |
32517 | cat conftest.err >&5 | |
32518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32519 | (exit $ac_status); } && | |
3565d135 RR |
32520 | { ac_try='test -z "$ac_c_werror_flag" |
32521 | || test ! -s conftest.err' | |
d51253e8 RL |
32522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32523 | (eval $ac_try) 2>&5 | |
32524 | ac_status=$? | |
32525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32526 | (exit $ac_status); }; } && | |
32527 | { ac_try='test -s conftest.$ac_objext' | |
32528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32529 | (eval $ac_try) 2>&5 | |
32530 | ac_status=$? | |
32531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32532 | (exit $ac_status); }; }; then | |
32533 | ac_cv_type_ssize_t=yes | |
32534 | else | |
32535 | echo "$as_me: failed program was:" >&5 | |
32536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32537 | ||
32538 | ac_cv_type_ssize_t=no | |
32539 | fi | |
32540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32541 | fi | |
32542 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
32543 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
32544 | if test $ac_cv_type_ssize_t = yes; then | |
32545 | ||
32546 | cat >>confdefs.h <<_ACEOF | |
32547 | #define HAVE_SSIZE_T 1 | |
32548 | _ACEOF | |
32549 | ||
32550 | ||
32551 | fi | |
32552 | ||
32553 | ||
a848cd7e SC |
32554 | |
32555 | ||
32556 | ac_ext=cc | |
32557 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32558 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32559 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32560 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32561 | ||
32562 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
32563 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
32564 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
32565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32566 | else | |
32567 | ||
32568 | cat >conftest.$ac_ext <<_ACEOF | |
32569 | /* confdefs.h. */ | |
32570 | _ACEOF | |
32571 | cat confdefs.h >>conftest.$ac_ext | |
32572 | cat >>conftest.$ac_ext <<_ACEOF | |
32573 | /* end confdefs.h. */ | |
32574 | #include <stddef.h> | |
32575 | int | |
32576 | main () | |
32577 | { | |
32578 | ||
32579 | return 0; } | |
32580 | ||
32581 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
32582 | ||
32583 | int bar() { | |
32584 | ||
32585 | ; | |
32586 | return 0; | |
32587 | } | |
32588 | _ACEOF | |
32589 | rm -f conftest.$ac_objext | |
32590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32591 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32592 | ac_status=$? |
ac1cb8d3 VS |
32593 | grep -v '^ *+' conftest.er1 >conftest.err |
32594 | rm -f conftest.er1 | |
32595 | cat conftest.err >&5 | |
a848cd7e SC |
32596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32597 | (exit $ac_status); } && | |
3565d135 RR |
32598 | { ac_try='test -z "$ac_cxx_werror_flag" |
32599 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32601 | (eval $ac_try) 2>&5 | |
32602 | ac_status=$? | |
32603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32604 | (exit $ac_status); }; } && | |
32605 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32607 | (eval $ac_try) 2>&5 | |
32608 | ac_status=$? | |
32609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32610 | (exit $ac_status); }; }; then | |
32611 | wx_cv_size_t_is_uint=no | |
32612 | else | |
32613 | echo "$as_me: failed program was:" >&5 | |
32614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32615 | ||
32616 | wx_cv_size_t_is_uint=yes | |
32617 | ||
32618 | fi | |
ac1cb8d3 | 32619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32620 | |
32621 | ||
32622 | fi | |
32623 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
32624 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
32625 | ||
32626 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
32627 | cat >>confdefs.h <<\_ACEOF | |
32628 | #define wxSIZE_T_IS_UINT 1 | |
32629 | _ACEOF | |
32630 | ||
32631 | else | |
32632 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
32633 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
32634 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
32635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32636 | else | |
32637 | cat >conftest.$ac_ext <<_ACEOF | |
32638 | /* confdefs.h. */ | |
32639 | _ACEOF | |
32640 | cat confdefs.h >>conftest.$ac_ext | |
32641 | cat >>conftest.$ac_ext <<_ACEOF | |
32642 | /* end confdefs.h. */ | |
32643 | #include <stddef.h> | |
32644 | int | |
32645 | main () | |
32646 | { | |
32647 | ||
32648 | return 0; } | |
32649 | ||
32650 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
32651 | ||
32652 | int bar() { | |
32653 | ||
32654 | ; | |
32655 | return 0; | |
32656 | } | |
32657 | _ACEOF | |
32658 | rm -f conftest.$ac_objext | |
32659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32660 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32661 | ac_status=$? |
ac1cb8d3 VS |
32662 | grep -v '^ *+' conftest.er1 >conftest.err |
32663 | rm -f conftest.er1 | |
32664 | cat conftest.err >&5 | |
a848cd7e SC |
32665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32666 | (exit $ac_status); } && | |
3565d135 RR |
32667 | { ac_try='test -z "$ac_cxx_werror_flag" |
32668 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32670 | (eval $ac_try) 2>&5 | |
32671 | ac_status=$? | |
32672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32673 | (exit $ac_status); }; } && | |
32674 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32676 | (eval $ac_try) 2>&5 | |
32677 | ac_status=$? | |
32678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32679 | (exit $ac_status); }; }; then | |
32680 | wx_cv_size_t_is_ulong=no | |
32681 | else | |
32682 | echo "$as_me: failed program was:" >&5 | |
32683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32684 | ||
32685 | wx_cv_size_t_is_ulong=yes | |
32686 | ||
32687 | fi | |
ac1cb8d3 | 32688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32689 | |
32690 | fi | |
32691 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
32692 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
32693 | ||
32694 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
32695 | cat >>confdefs.h <<\_ACEOF | |
32696 | #define wxSIZE_T_IS_ULONG 1 | |
32697 | _ACEOF | |
32698 | ||
32699 | fi | |
32700 | fi | |
32701 | ||
32702 | ac_ext=c | |
32703 | ac_cpp='$CPP $CPPFLAGS' | |
32704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32707 | ||
32708 | ||
32709 | ||
32710 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
32711 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
32712 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
32713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32714 | else | |
32715 | ||
32716 | cat >conftest.$ac_ext <<_ACEOF | |
32717 | /* confdefs.h. */ | |
32718 | _ACEOF | |
32719 | cat confdefs.h >>conftest.$ac_ext | |
32720 | cat >>conftest.$ac_ext <<_ACEOF | |
32721 | /* end confdefs.h. */ | |
32722 | #include <pwd.h> | |
32723 | int | |
32724 | main () | |
32725 | { | |
32726 | ||
32727 | char *p; | |
32728 | struct passwd *pw; | |
32729 | p = pw->pw_gecos; | |
32730 | ||
32731 | ; | |
32732 | return 0; | |
32733 | } | |
32734 | _ACEOF | |
32735 | rm -f conftest.$ac_objext | |
32736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32737 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32738 | ac_status=$? |
ac1cb8d3 VS |
32739 | grep -v '^ *+' conftest.er1 >conftest.err |
32740 | rm -f conftest.er1 | |
32741 | cat conftest.err >&5 | |
a848cd7e SC |
32742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32743 | (exit $ac_status); } && | |
3565d135 RR |
32744 | { ac_try='test -z "$ac_c_werror_flag" |
32745 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32747 | (eval $ac_try) 2>&5 | |
32748 | ac_status=$? | |
32749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32750 | (exit $ac_status); }; } && | |
32751 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32753 | (eval $ac_try) 2>&5 | |
32754 | ac_status=$? | |
32755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32756 | (exit $ac_status); }; }; then | |
32757 | ||
32758 | wx_cv_struct_pw_gecos=yes | |
32759 | ||
32760 | else | |
32761 | echo "$as_me: failed program was:" >&5 | |
32762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32763 | ||
32764 | ||
32765 | wx_cv_struct_pw_gecos=no | |
32766 | ||
32767 | ||
32768 | fi | |
ac1cb8d3 | 32769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32770 | |
32771 | ||
32772 | fi | |
32773 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
32774 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
32775 | ||
32776 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
32777 | cat >>confdefs.h <<\_ACEOF | |
32778 | #define HAVE_PW_GECOS 1 | |
32779 | _ACEOF | |
32780 | ||
32781 | fi | |
32782 | ||
32783 | ||
47a7e797 | 32784 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
32785 | cat >>confdefs.h <<\_ACEOF |
32786 | #define wxUSE_WCHAR_T 1 | |
32787 | _ACEOF | |
32788 | ||
32789 | ||
32790 | WCSLEN_FOUND=0 | |
32791 | WCHAR_LINK= | |
32792 | ||
32793 | for ac_func in wcslen | |
32794 | do | |
32795 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32796 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32797 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32798 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32800 | else | |
32801 | cat >conftest.$ac_ext <<_ACEOF | |
32802 | /* confdefs.h. */ | |
32803 | _ACEOF | |
32804 | cat confdefs.h >>conftest.$ac_ext | |
32805 | cat >>conftest.$ac_ext <<_ACEOF | |
32806 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32807 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32809 | #define $ac_func innocuous_$ac_func | |
32810 | ||
a848cd7e SC |
32811 | /* System header to define __stub macros and hopefully few prototypes, |
32812 | which can conflict with char $ac_func (); below. | |
32813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32814 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32815 | |
a848cd7e SC |
32816 | #ifdef __STDC__ |
32817 | # include <limits.h> | |
32818 | #else | |
32819 | # include <assert.h> | |
32820 | #endif | |
ac1cb8d3 VS |
32821 | |
32822 | #undef $ac_func | |
32823 | ||
a848cd7e SC |
32824 | /* Override any gcc2 internal prototype to avoid an error. */ |
32825 | #ifdef __cplusplus | |
32826 | extern "C" | |
32827 | { | |
32828 | #endif | |
32829 | /* We use char because int might match the return type of a gcc2 | |
32830 | builtin and then its argument prototype would still apply. */ | |
32831 | char $ac_func (); | |
32832 | /* The GNU C library defines this for functions which it implements | |
32833 | to always fail with ENOSYS. Some functions are actually named | |
32834 | something starting with __ and the normal name is an alias. */ | |
32835 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32836 | choke me | |
32837 | #else | |
32838 | char (*f) () = $ac_func; | |
32839 | #endif | |
32840 | #ifdef __cplusplus | |
32841 | } | |
32842 | #endif | |
32843 | ||
32844 | int | |
32845 | main () | |
32846 | { | |
32847 | return f != $ac_func; | |
32848 | ; | |
32849 | return 0; | |
32850 | } | |
32851 | _ACEOF | |
32852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32854 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32855 | ac_status=$? |
ac1cb8d3 VS |
32856 | grep -v '^ *+' conftest.er1 >conftest.err |
32857 | rm -f conftest.er1 | |
32858 | cat conftest.err >&5 | |
a848cd7e SC |
32859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32860 | (exit $ac_status); } && | |
3565d135 RR |
32861 | { ac_try='test -z "$ac_c_werror_flag" |
32862 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32864 | (eval $ac_try) 2>&5 | |
32865 | ac_status=$? | |
32866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32867 | (exit $ac_status); }; } && | |
32868 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32870 | (eval $ac_try) 2>&5 | |
32871 | ac_status=$? | |
32872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32873 | (exit $ac_status); }; }; then | |
32874 | eval "$as_ac_var=yes" | |
32875 | else | |
32876 | echo "$as_me: failed program was:" >&5 | |
32877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32878 | ||
32879 | eval "$as_ac_var=no" | |
32880 | fi | |
ac1cb8d3 VS |
32881 | rm -f conftest.err conftest.$ac_objext \ |
32882 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32883 | fi |
32884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32885 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32886 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32887 | cat >>confdefs.h <<_ACEOF | |
32888 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32889 | _ACEOF | |
32890 | WCSLEN_FOUND=1 | |
32891 | fi | |
32892 | done | |
32893 | ||
32894 | ||
32895 | if test "$WCSLEN_FOUND" = 0; then | |
32896 | if test "$TOOLKIT" = "MSW"; then | |
32897 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
32898 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
32899 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
32900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32901 | else | |
32902 | ac_check_lib_save_LIBS=$LIBS | |
32903 | LIBS="-lmsvcrt $LIBS" | |
32904 | cat >conftest.$ac_ext <<_ACEOF | |
32905 | /* confdefs.h. */ | |
32906 | _ACEOF | |
32907 | cat confdefs.h >>conftest.$ac_ext | |
32908 | cat >>conftest.$ac_ext <<_ACEOF | |
32909 | /* end confdefs.h. */ | |
32910 | ||
32911 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32912 | #ifdef __cplusplus | |
32913 | extern "C" | |
32914 | #endif | |
32915 | /* We use char because int might match the return type of a gcc2 | |
32916 | builtin and then its argument prototype would still apply. */ | |
32917 | char wcslen (); | |
32918 | int | |
32919 | main () | |
32920 | { | |
32921 | wcslen (); | |
32922 | ; | |
32923 | return 0; | |
32924 | } | |
32925 | _ACEOF | |
32926 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32928 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32929 | ac_status=$? |
ac1cb8d3 VS |
32930 | grep -v '^ *+' conftest.er1 >conftest.err |
32931 | rm -f conftest.er1 | |
32932 | cat conftest.err >&5 | |
a848cd7e SC |
32933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32934 | (exit $ac_status); } && | |
3565d135 RR |
32935 | { ac_try='test -z "$ac_c_werror_flag" |
32936 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32938 | (eval $ac_try) 2>&5 | |
32939 | ac_status=$? | |
32940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32941 | (exit $ac_status); }; } && | |
32942 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32944 | (eval $ac_try) 2>&5 | |
32945 | ac_status=$? | |
32946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32947 | (exit $ac_status); }; }; then | |
32948 | ac_cv_lib_msvcrt_wcslen=yes | |
32949 | else | |
32950 | echo "$as_me: failed program was:" >&5 | |
32951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32952 | ||
32953 | ac_cv_lib_msvcrt_wcslen=no | |
32954 | fi | |
ac1cb8d3 VS |
32955 | rm -f conftest.err conftest.$ac_objext \ |
32956 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32957 | LIBS=$ac_check_lib_save_LIBS |
32958 | fi | |
32959 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
32960 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
32961 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
32962 | WCHAR_OK=1 | |
32963 | fi | |
32964 | ||
32965 | else | |
32966 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
32967 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
32968 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
32969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32970 | else | |
32971 | ac_check_lib_save_LIBS=$LIBS | |
32972 | LIBS="-lw $LIBS" | |
32973 | cat >conftest.$ac_ext <<_ACEOF | |
32974 | /* confdefs.h. */ | |
32975 | _ACEOF | |
32976 | cat confdefs.h >>conftest.$ac_ext | |
32977 | cat >>conftest.$ac_ext <<_ACEOF | |
32978 | /* end confdefs.h. */ | |
32979 | ||
32980 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32981 | #ifdef __cplusplus | |
32982 | extern "C" | |
32983 | #endif | |
32984 | /* We use char because int might match the return type of a gcc2 | |
32985 | builtin and then its argument prototype would still apply. */ | |
32986 | char wcslen (); | |
32987 | int | |
32988 | main () | |
32989 | { | |
32990 | wcslen (); | |
32991 | ; | |
32992 | return 0; | |
32993 | } | |
32994 | _ACEOF | |
32995 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32996 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32997 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32998 | ac_status=$? |
ac1cb8d3 VS |
32999 | grep -v '^ *+' conftest.er1 >conftest.err |
33000 | rm -f conftest.er1 | |
33001 | cat conftest.err >&5 | |
a848cd7e SC |
33002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33003 | (exit $ac_status); } && | |
3565d135 RR |
33004 | { ac_try='test -z "$ac_c_werror_flag" |
33005 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33007 | (eval $ac_try) 2>&5 | |
33008 | ac_status=$? | |
33009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33010 | (exit $ac_status); }; } && | |
33011 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33013 | (eval $ac_try) 2>&5 | |
33014 | ac_status=$? | |
33015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33016 | (exit $ac_status); }; }; then | |
33017 | ac_cv_lib_w_wcslen=yes | |
33018 | else | |
33019 | echo "$as_me: failed program was:" >&5 | |
33020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33021 | ||
33022 | ac_cv_lib_w_wcslen=no | |
33023 | fi | |
ac1cb8d3 VS |
33024 | rm -f conftest.err conftest.$ac_objext \ |
33025 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33026 | LIBS=$ac_check_lib_save_LIBS |
33027 | fi | |
33028 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
33029 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
33030 | if test $ac_cv_lib_w_wcslen = yes; then | |
33031 | ||
33032 | WCHAR_LINK=" -lw" | |
33033 | WCSLEN_FOUND=1 | |
33034 | ||
33035 | fi | |
33036 | ||
33037 | fi | |
33038 | fi | |
33039 | ||
33040 | if test "$WCSLEN_FOUND" = 1; then | |
33041 | cat >>confdefs.h <<\_ACEOF | |
33042 | #define HAVE_WCSLEN 1 | |
33043 | _ACEOF | |
33044 | ||
33045 | fi | |
33046 | ||
efdf6afe | 33047 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
c92ad099 | 33048 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" |
473276a9 VS |
33049 | fi |
33050 | ||
efdf6afe VZ |
33051 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
33052 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
33053 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
33054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33055 | else | |
33056 | cat >conftest.$ac_ext <<_ACEOF | |
33057 | /* confdefs.h. */ | |
33058 | _ACEOF | |
33059 | cat confdefs.h >>conftest.$ac_ext | |
33060 | cat >>conftest.$ac_ext <<_ACEOF | |
33061 | /* end confdefs.h. */ | |
33062 | #include <wchar.h> | |
33063 | ||
33064 | int | |
33065 | main () | |
33066 | { | |
33067 | if ((mbstate_t *) 0) | |
33068 | return 0; | |
33069 | if (sizeof (mbstate_t)) | |
33070 | return 0; | |
33071 | ; | |
33072 | return 0; | |
33073 | } | |
33074 | _ACEOF | |
33075 | rm -f conftest.$ac_objext | |
33076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33077 | (eval $ac_compile) 2>conftest.er1 | |
33078 | ac_status=$? | |
33079 | grep -v '^ *+' conftest.er1 >conftest.err | |
33080 | rm -f conftest.er1 | |
33081 | cat conftest.err >&5 | |
33082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33083 | (exit $ac_status); } && | |
3565d135 RR |
33084 | { ac_try='test -z "$ac_c_werror_flag" |
33085 | || test ! -s conftest.err' | |
efdf6afe VZ |
33086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33087 | (eval $ac_try) 2>&5 | |
33088 | ac_status=$? | |
33089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33090 | (exit $ac_status); }; } && | |
33091 | { ac_try='test -s conftest.$ac_objext' | |
33092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33093 | (eval $ac_try) 2>&5 | |
33094 | ac_status=$? | |
33095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33096 | (exit $ac_status); }; }; then | |
33097 | ac_cv_type_mbstate_t=yes | |
33098 | else | |
33099 | echo "$as_me: failed program was:" >&5 | |
33100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33101 | ||
33102 | ac_cv_type_mbstate_t=no | |
33103 | fi | |
33104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33105 | fi | |
33106 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
33107 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
33108 | if test $ac_cv_type_mbstate_t = yes; then | |
33109 | ||
33110 | cat >>confdefs.h <<_ACEOF | |
33111 | #define HAVE_MBSTATE_T 1 | |
33112 | _ACEOF | |
33113 | ||
a848cd7e SC |
33114 | |
33115 | for ac_func in wcsrtombs | |
33116 | do | |
33117 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33118 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33119 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33120 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33122 | else | |
33123 | cat >conftest.$ac_ext <<_ACEOF | |
33124 | /* confdefs.h. */ | |
33125 | _ACEOF | |
33126 | cat confdefs.h >>conftest.$ac_ext | |
33127 | cat >>conftest.$ac_ext <<_ACEOF | |
33128 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33129 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33130 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33131 | #define $ac_func innocuous_$ac_func | |
33132 | ||
a848cd7e SC |
33133 | /* System header to define __stub macros and hopefully few prototypes, |
33134 | which can conflict with char $ac_func (); below. | |
33135 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33136 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33137 | |
a848cd7e SC |
33138 | #ifdef __STDC__ |
33139 | # include <limits.h> | |
33140 | #else | |
33141 | # include <assert.h> | |
33142 | #endif | |
ac1cb8d3 VS |
33143 | |
33144 | #undef $ac_func | |
33145 | ||
a848cd7e SC |
33146 | /* Override any gcc2 internal prototype to avoid an error. */ |
33147 | #ifdef __cplusplus | |
33148 | extern "C" | |
33149 | { | |
33150 | #endif | |
33151 | /* We use char because int might match the return type of a gcc2 | |
33152 | builtin and then its argument prototype would still apply. */ | |
33153 | char $ac_func (); | |
33154 | /* The GNU C library defines this for functions which it implements | |
33155 | to always fail with ENOSYS. Some functions are actually named | |
33156 | something starting with __ and the normal name is an alias. */ | |
33157 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33158 | choke me | |
33159 | #else | |
33160 | char (*f) () = $ac_func; | |
33161 | #endif | |
33162 | #ifdef __cplusplus | |
33163 | } | |
33164 | #endif | |
33165 | ||
33166 | int | |
33167 | main () | |
33168 | { | |
33169 | return f != $ac_func; | |
33170 | ; | |
33171 | return 0; | |
33172 | } | |
33173 | _ACEOF | |
33174 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33176 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33177 | ac_status=$? |
ac1cb8d3 VS |
33178 | grep -v '^ *+' conftest.er1 >conftest.err |
33179 | rm -f conftest.er1 | |
33180 | cat conftest.err >&5 | |
a848cd7e SC |
33181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33182 | (exit $ac_status); } && | |
3565d135 RR |
33183 | { ac_try='test -z "$ac_c_werror_flag" |
33184 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33186 | (eval $ac_try) 2>&5 | |
33187 | ac_status=$? | |
33188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33189 | (exit $ac_status); }; } && | |
33190 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33192 | (eval $ac_try) 2>&5 | |
33193 | ac_status=$? | |
33194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33195 | (exit $ac_status); }; }; then | |
33196 | eval "$as_ac_var=yes" | |
33197 | else | |
33198 | echo "$as_me: failed program was:" >&5 | |
33199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33200 | ||
33201 | eval "$as_ac_var=no" | |
33202 | fi | |
ac1cb8d3 VS |
33203 | rm -f conftest.err conftest.$ac_objext \ |
33204 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33205 | fi |
33206 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33207 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33208 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33209 | cat >>confdefs.h <<_ACEOF | |
33210 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33211 | _ACEOF | |
33212 | ||
33213 | fi | |
33214 | done | |
33215 | ||
efdf6afe VZ |
33216 | fi |
33217 | ||
a848cd7e SC |
33218 | else |
33219 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
33220 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
33221 | fi | |
33222 | ||
33223 | ||
33224 | ||
33225 | ac_ext=cc | |
33226 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33227 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33228 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33229 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33230 | ||
33231 | ||
33232 | ||
4a767dd5 VZ |
33233 | |
33234 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
33235 | do |
33236 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33237 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33238 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33239 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33241 | else | |
33242 | cat >conftest.$ac_ext <<_ACEOF | |
33243 | /* confdefs.h. */ | |
33244 | _ACEOF | |
33245 | cat confdefs.h >>conftest.$ac_ext | |
33246 | cat >>conftest.$ac_ext <<_ACEOF | |
33247 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33248 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33249 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33250 | #define $ac_func innocuous_$ac_func | |
33251 | ||
a848cd7e SC |
33252 | /* System header to define __stub macros and hopefully few prototypes, |
33253 | which can conflict with char $ac_func (); below. | |
33254 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33255 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33256 | |
a848cd7e SC |
33257 | #ifdef __STDC__ |
33258 | # include <limits.h> | |
33259 | #else | |
33260 | # include <assert.h> | |
33261 | #endif | |
ac1cb8d3 VS |
33262 | |
33263 | #undef $ac_func | |
33264 | ||
a848cd7e SC |
33265 | /* Override any gcc2 internal prototype to avoid an error. */ |
33266 | #ifdef __cplusplus | |
33267 | extern "C" | |
33268 | { | |
33269 | #endif | |
33270 | /* We use char because int might match the return type of a gcc2 | |
33271 | builtin and then its argument prototype would still apply. */ | |
33272 | char $ac_func (); | |
33273 | /* The GNU C library defines this for functions which it implements | |
33274 | to always fail with ENOSYS. Some functions are actually named | |
33275 | something starting with __ and the normal name is an alias. */ | |
33276 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33277 | choke me | |
33278 | #else | |
33279 | char (*f) () = $ac_func; | |
33280 | #endif | |
33281 | #ifdef __cplusplus | |
33282 | } | |
33283 | #endif | |
33284 | ||
33285 | int | |
33286 | main () | |
33287 | { | |
33288 | return f != $ac_func; | |
33289 | ; | |
33290 | return 0; | |
33291 | } | |
33292 | _ACEOF | |
33293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33295 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33296 | ac_status=$? |
ac1cb8d3 VS |
33297 | grep -v '^ *+' conftest.er1 >conftest.err |
33298 | rm -f conftest.er1 | |
33299 | cat conftest.err >&5 | |
a848cd7e SC |
33300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33301 | (exit $ac_status); } && | |
3565d135 RR |
33302 | { ac_try='test -z "$ac_cxx_werror_flag" |
33303 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33305 | (eval $ac_try) 2>&5 | |
33306 | ac_status=$? | |
33307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33308 | (exit $ac_status); }; } && | |
33309 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33311 | (eval $ac_try) 2>&5 | |
33312 | ac_status=$? | |
33313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33314 | (exit $ac_status); }; }; then | |
33315 | eval "$as_ac_var=yes" | |
33316 | else | |
33317 | echo "$as_me: failed program was:" >&5 | |
33318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33319 | ||
33320 | eval "$as_ac_var=no" | |
33321 | fi | |
ac1cb8d3 VS |
33322 | rm -f conftest.err conftest.$ac_objext \ |
33323 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33324 | fi |
33325 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33326 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33327 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33328 | cat >>confdefs.h <<_ACEOF | |
33329 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33330 | _ACEOF | |
33331 | ||
33332 | fi | |
33333 | done | |
33334 | ||
33335 | ||
33336 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
33337 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
33338 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
33339 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
33340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33341 | else | |
33342 | ||
efdf6afe | 33343 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
33344 | /* confdefs.h. */ |
33345 | _ACEOF | |
33346 | cat confdefs.h >>conftest.$ac_ext | |
33347 | cat >>conftest.$ac_ext <<_ACEOF | |
33348 | /* end confdefs.h. */ | |
33349 | ||
33350 | #include <stdio.h> | |
33351 | #include <stdarg.h> | |
efdf6afe VZ |
33352 | #ifdef __MSL__ |
33353 | #if __MSL__ >= 0x6000 | |
33354 | namespace std {} | |
33355 | using namespace std; | |
33356 | #endif | |
33357 | #endif | |
a848cd7e SC |
33358 | |
33359 | int | |
33360 | main () | |
33361 | { | |
33362 | ||
33363 | char *buf; | |
33364 | va_list ap; | |
62fa8b3a | 33365 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
33366 | |
33367 | ; | |
33368 | return 0; | |
33369 | } | |
33370 | _ACEOF | |
33371 | rm -f conftest.$ac_objext | |
33372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33373 | (eval $ac_compile) 2>conftest.er1 | |
33374 | ac_status=$? | |
33375 | grep -v '^ *+' conftest.er1 >conftest.err | |
33376 | rm -f conftest.er1 | |
33377 | cat conftest.err >&5 | |
33378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33379 | (exit $ac_status); } && | |
3565d135 RR |
33380 | { ac_try='test -z "$ac_cxx_werror_flag" |
33381 | || test ! -s conftest.err' | |
c122b164 DE |
33382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33383 | (eval $ac_try) 2>&5 | |
33384 | ac_status=$? | |
33385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33386 | (exit $ac_status); }; } && | |
33387 | { ac_try='test -s conftest.$ac_objext' | |
33388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33389 | (eval $ac_try) 2>&5 | |
33390 | ac_status=$? | |
33391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33392 | (exit $ac_status); }; }; then | |
33393 | wx_cv_func_vsnprintf_decl=yes | |
33394 | else | |
33395 | echo "$as_me: failed program was:" >&5 | |
33396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33397 | ||
a848cd7e SC |
33398 | wx_cv_func_vsnprintf_decl=no |
33399 | ||
33400 | fi | |
ac1cb8d3 | 33401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33402 | |
33403 | ||
33404 | fi | |
33405 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
33406 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
33407 | ||
33408 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
33409 | cat >>confdefs.h <<\_ACEOF | |
33410 | #define HAVE_VSNPRINTF_DECL 1 | |
33411 | _ACEOF | |
33412 | ||
62fa8b3a MW |
33413 | |
33414 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
33415 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
33416 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
33417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33418 | else | |
33419 | ||
33420 | cat >conftest.$ac_ext <<_ACEOF | |
33421 | /* confdefs.h. */ | |
33422 | _ACEOF | |
33423 | cat confdefs.h >>conftest.$ac_ext | |
33424 | cat >>conftest.$ac_ext <<_ACEOF | |
33425 | /* end confdefs.h. */ | |
33426 | ||
33427 | #include <stdio.h> | |
33428 | #include <stdarg.h> | |
33429 | #ifdef __MSL__ | |
33430 | #if __MSL__ >= 0x6000 | |
33431 | namespace std {} | |
33432 | using namespace std; | |
33433 | #endif | |
33434 | #endif | |
33435 | ||
33436 | int | |
33437 | main () | |
33438 | { | |
33439 | ||
33440 | char *buf; | |
33441 | va_list ap; | |
33442 | const char *fmt = "%s"; | |
33443 | vsnprintf(buf, 10u, fmt, ap); | |
33444 | ||
33445 | ; | |
33446 | return 0; | |
33447 | } | |
33448 | _ACEOF | |
33449 | rm -f conftest.$ac_objext | |
33450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33451 | (eval $ac_compile) 2>conftest.er1 | |
33452 | ac_status=$? | |
33453 | grep -v '^ *+' conftest.er1 >conftest.err | |
33454 | rm -f conftest.er1 | |
33455 | cat conftest.err >&5 | |
33456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33457 | (exit $ac_status); } && | |
3565d135 RR |
33458 | { ac_try='test -z "$ac_cxx_werror_flag" |
33459 | || test ! -s conftest.err' | |
62fa8b3a MW |
33460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33461 | (eval $ac_try) 2>&5 | |
33462 | ac_status=$? | |
33463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33464 | (exit $ac_status); }; } && | |
33465 | { ac_try='test -s conftest.$ac_objext' | |
33466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33467 | (eval $ac_try) 2>&5 | |
33468 | ac_status=$? | |
33469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33470 | (exit $ac_status); }; }; then | |
33471 | wx_cv_func_broken_vsnprintf_decl=no | |
33472 | else | |
33473 | echo "$as_me: failed program was:" >&5 | |
33474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33475 | ||
33476 | wx_cv_func_broken_vsnprintf_decl=yes | |
33477 | ||
33478 | fi | |
33479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33480 | ||
33481 | ||
33482 | fi | |
33483 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
33484 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
33485 | ||
33486 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
33487 | cat >>confdefs.h <<\_ACEOF | |
33488 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
33489 | _ACEOF | |
33490 | ||
33491 | fi | |
a848cd7e SC |
33492 | fi |
33493 | fi | |
33494 | ||
4a767dd5 VZ |
33495 | if test "$ac_cv_func_snprintf" = "yes"; then |
33496 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
33497 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
33498 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
33499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33500 | else | |
33501 | ||
33502 | cat >conftest.$ac_ext <<_ACEOF | |
33503 | /* confdefs.h. */ | |
33504 | _ACEOF | |
33505 | cat confdefs.h >>conftest.$ac_ext | |
33506 | cat >>conftest.$ac_ext <<_ACEOF | |
33507 | /* end confdefs.h. */ | |
33508 | ||
33509 | #include <stdio.h> | |
33510 | #include <stdarg.h> | |
33511 | #ifdef __MSL__ | |
33512 | #if __MSL__ >= 0x6000 | |
33513 | namespace std {} | |
33514 | using namespace std; | |
33515 | #endif | |
33516 | #endif | |
33517 | ||
33518 | int | |
33519 | main () | |
33520 | { | |
33521 | ||
33522 | char *buf; | |
62fa8b3a | 33523 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
33524 | |
33525 | ; | |
33526 | return 0; | |
33527 | } | |
33528 | _ACEOF | |
33529 | rm -f conftest.$ac_objext | |
33530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33531 | (eval $ac_compile) 2>conftest.er1 | |
33532 | ac_status=$? | |
33533 | grep -v '^ *+' conftest.er1 >conftest.err | |
33534 | rm -f conftest.er1 | |
33535 | cat conftest.err >&5 | |
33536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33537 | (exit $ac_status); } && | |
3565d135 RR |
33538 | { ac_try='test -z "$ac_cxx_werror_flag" |
33539 | || test ! -s conftest.err' | |
4a767dd5 VZ |
33540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33541 | (eval $ac_try) 2>&5 | |
33542 | ac_status=$? | |
33543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33544 | (exit $ac_status); }; } && | |
33545 | { ac_try='test -s conftest.$ac_objext' | |
33546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33547 | (eval $ac_try) 2>&5 | |
33548 | ac_status=$? | |
33549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33550 | (exit $ac_status); }; }; then | |
33551 | wx_cv_func_snprintf_decl=yes | |
33552 | else | |
33553 | echo "$as_me: failed program was:" >&5 | |
33554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33555 | ||
33556 | wx_cv_func_snprintf_decl=no | |
33557 | ||
33558 | fi | |
33559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33560 | ||
33561 | ||
33562 | fi | |
33563 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
33564 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
33565 | ||
33566 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
33567 | cat >>confdefs.h <<\_ACEOF | |
33568 | #define HAVE_SNPRINTF_DECL 1 | |
33569 | _ACEOF | |
33570 | ||
62fa8b3a MW |
33571 | |
33572 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
33573 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
33574 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
33575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33576 | else | |
33577 | ||
33578 | cat >conftest.$ac_ext <<_ACEOF | |
33579 | /* confdefs.h. */ | |
33580 | _ACEOF | |
33581 | cat confdefs.h >>conftest.$ac_ext | |
33582 | cat >>conftest.$ac_ext <<_ACEOF | |
33583 | /* end confdefs.h. */ | |
33584 | ||
33585 | #include <stdio.h> | |
33586 | #include <stdarg.h> | |
33587 | #ifdef __MSL__ | |
33588 | #if __MSL__ >= 0x6000 | |
33589 | namespace std {} | |
33590 | using namespace std; | |
33591 | #endif | |
33592 | #endif | |
33593 | ||
33594 | int | |
33595 | main () | |
33596 | { | |
33597 | ||
33598 | char *buf; | |
33599 | const char *fmt = "%s"; | |
33600 | snprintf(buf, 10u, fmt, "wx"); | |
33601 | ||
33602 | ; | |
33603 | return 0; | |
33604 | } | |
33605 | _ACEOF | |
33606 | rm -f conftest.$ac_objext | |
33607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33608 | (eval $ac_compile) 2>conftest.er1 | |
33609 | ac_status=$? | |
33610 | grep -v '^ *+' conftest.er1 >conftest.err | |
33611 | rm -f conftest.er1 | |
33612 | cat conftest.err >&5 | |
33613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33614 | (exit $ac_status); } && | |
3565d135 RR |
33615 | { ac_try='test -z "$ac_cxx_werror_flag" |
33616 | || test ! -s conftest.err' | |
62fa8b3a MW |
33617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33618 | (eval $ac_try) 2>&5 | |
33619 | ac_status=$? | |
33620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33621 | (exit $ac_status); }; } && | |
33622 | { ac_try='test -s conftest.$ac_objext' | |
33623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33624 | (eval $ac_try) 2>&5 | |
33625 | ac_status=$? | |
33626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33627 | (exit $ac_status); }; }; then | |
33628 | wx_cv_func_broken_snprintf_decl=no | |
33629 | else | |
33630 | echo "$as_me: failed program was:" >&5 | |
33631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33632 | ||
33633 | wx_cv_func_broken_snprintf_decl=yes | |
33634 | ||
33635 | fi | |
33636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33637 | ||
33638 | ||
33639 | fi | |
33640 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
33641 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
33642 | ||
33643 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
33644 | cat >>confdefs.h <<\_ACEOF | |
33645 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
33646 | _ACEOF | |
33647 | ||
33648 | fi | |
4a767dd5 VZ |
33649 | fi |
33650 | fi | |
33651 | ||
a848cd7e SC |
33652 | if test "$wxUSE_UNICODE" = yes; then |
33653 | ||
33654 | ||
33655 | ||
fbe47c7b VS |
33656 | |
33657 | ||
33658 | ||
33659 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
33660 | do |
33661 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33662 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33663 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33664 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33666 | else | |
33667 | cat >conftest.$ac_ext <<_ACEOF | |
33668 | /* confdefs.h. */ | |
33669 | _ACEOF | |
33670 | cat confdefs.h >>conftest.$ac_ext | |
33671 | cat >>conftest.$ac_ext <<_ACEOF | |
33672 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33673 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33674 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33675 | #define $ac_func innocuous_$ac_func | |
33676 | ||
a848cd7e SC |
33677 | /* System header to define __stub macros and hopefully few prototypes, |
33678 | which can conflict with char $ac_func (); below. | |
33679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33680 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33681 | |
a848cd7e SC |
33682 | #ifdef __STDC__ |
33683 | # include <limits.h> | |
33684 | #else | |
33685 | # include <assert.h> | |
33686 | #endif | |
ac1cb8d3 VS |
33687 | |
33688 | #undef $ac_func | |
33689 | ||
a848cd7e SC |
33690 | /* Override any gcc2 internal prototype to avoid an error. */ |
33691 | #ifdef __cplusplus | |
33692 | extern "C" | |
33693 | { | |
33694 | #endif | |
33695 | /* We use char because int might match the return type of a gcc2 | |
33696 | builtin and then its argument prototype would still apply. */ | |
33697 | char $ac_func (); | |
33698 | /* The GNU C library defines this for functions which it implements | |
33699 | to always fail with ENOSYS. Some functions are actually named | |
33700 | something starting with __ and the normal name is an alias. */ | |
33701 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33702 | choke me | |
33703 | #else | |
33704 | char (*f) () = $ac_func; | |
33705 | #endif | |
33706 | #ifdef __cplusplus | |
33707 | } | |
33708 | #endif | |
33709 | ||
33710 | int | |
33711 | main () | |
33712 | { | |
33713 | return f != $ac_func; | |
33714 | ; | |
33715 | return 0; | |
33716 | } | |
33717 | _ACEOF | |
33718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33720 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33721 | ac_status=$? |
ac1cb8d3 VS |
33722 | grep -v '^ *+' conftest.er1 >conftest.err |
33723 | rm -f conftest.er1 | |
33724 | cat conftest.err >&5 | |
a848cd7e SC |
33725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33726 | (exit $ac_status); } && | |
3565d135 RR |
33727 | { ac_try='test -z "$ac_cxx_werror_flag" |
33728 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33730 | (eval $ac_try) 2>&5 | |
33731 | ac_status=$? | |
33732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33733 | (exit $ac_status); }; } && | |
33734 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33736 | (eval $ac_try) 2>&5 | |
33737 | ac_status=$? | |
33738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33739 | (exit $ac_status); }; }; then | |
33740 | eval "$as_ac_var=yes" | |
33741 | else | |
33742 | echo "$as_me: failed program was:" >&5 | |
33743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33744 | ||
33745 | eval "$as_ac_var=no" | |
33746 | fi | |
ac1cb8d3 VS |
33747 | rm -f conftest.err conftest.$ac_objext \ |
33748 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33749 | fi |
33750 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33751 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33752 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33753 | cat >>confdefs.h <<_ACEOF | |
33754 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33755 | _ACEOF | |
33756 | ||
33757 | fi | |
33758 | done | |
33759 | ||
33760 | ||
33761 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
33762 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
33763 | cat >conftest.$ac_ext <<_ACEOF | |
33764 | /* confdefs.h. */ | |
33765 | _ACEOF | |
33766 | cat confdefs.h >>conftest.$ac_ext | |
33767 | cat >>conftest.$ac_ext <<_ACEOF | |
33768 | /* end confdefs.h. */ | |
33769 | #include <wchar.h> | |
33770 | int | |
33771 | main () | |
33772 | { | |
33773 | &_vsnwprintf; | |
33774 | ; | |
33775 | return 0; | |
33776 | } | |
33777 | _ACEOF | |
33778 | rm -f conftest.$ac_objext | |
33779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33780 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33781 | ac_status=$? |
ac1cb8d3 VS |
33782 | grep -v '^ *+' conftest.er1 >conftest.err |
33783 | rm -f conftest.er1 | |
33784 | cat conftest.err >&5 | |
a848cd7e SC |
33785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33786 | (exit $ac_status); } && | |
3565d135 RR |
33787 | { ac_try='test -z "$ac_cxx_werror_flag" |
33788 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33790 | (eval $ac_try) 2>&5 | |
33791 | ac_status=$? | |
33792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33793 | (exit $ac_status); }; } && | |
33794 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33796 | (eval $ac_try) 2>&5 | |
33797 | ac_status=$? | |
33798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33799 | (exit $ac_status); }; }; then | |
33800 | echo "$as_me:$LINENO: result: yes" >&5 | |
33801 | echo "${ECHO_T}yes" >&6 | |
33802 | cat >>confdefs.h <<\_ACEOF | |
33803 | #define HAVE__VSNWPRINTF 1 | |
33804 | _ACEOF | |
33805 | ||
33806 | else | |
33807 | echo "$as_me: failed program was:" >&5 | |
33808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33809 | ||
33810 | echo "$as_me:$LINENO: result: no" >&5 | |
33811 | echo "${ECHO_T}no" >&6 | |
33812 | fi | |
ac1cb8d3 | 33813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
33814 | fi |
33815 | ||
33816 | ac_ext=c | |
33817 | ac_cpp='$CPP $CPPFLAGS' | |
33818 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33819 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33820 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33821 | ||
33822 | ||
6ebeb4c7 VZ |
33823 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
33824 | ||
33825 | for ac_func in fnmatch | |
33826 | do | |
33827 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33828 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33829 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33830 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33832 | else | |
33833 | cat >conftest.$ac_ext <<_ACEOF | |
33834 | /* confdefs.h. */ | |
33835 | _ACEOF | |
33836 | cat confdefs.h >>conftest.$ac_ext | |
33837 | cat >>conftest.$ac_ext <<_ACEOF | |
33838 | /* end confdefs.h. */ | |
33839 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
33840 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33841 | #define $ac_func innocuous_$ac_func | |
33842 | ||
33843 | /* System header to define __stub macros and hopefully few prototypes, | |
33844 | which can conflict with char $ac_func (); below. | |
33845 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33846 | <limits.h> exists even on freestanding compilers. */ | |
33847 | ||
33848 | #ifdef __STDC__ | |
33849 | # include <limits.h> | |
33850 | #else | |
33851 | # include <assert.h> | |
33852 | #endif | |
33853 | ||
33854 | #undef $ac_func | |
33855 | ||
33856 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33857 | #ifdef __cplusplus | |
33858 | extern "C" | |
33859 | { | |
33860 | #endif | |
33861 | /* We use char because int might match the return type of a gcc2 | |
33862 | builtin and then its argument prototype would still apply. */ | |
33863 | char $ac_func (); | |
33864 | /* The GNU C library defines this for functions which it implements | |
33865 | to always fail with ENOSYS. Some functions are actually named | |
33866 | something starting with __ and the normal name is an alias. */ | |
33867 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33868 | choke me | |
33869 | #else | |
33870 | char (*f) () = $ac_func; | |
33871 | #endif | |
33872 | #ifdef __cplusplus | |
33873 | } | |
33874 | #endif | |
33875 | ||
33876 | int | |
33877 | main () | |
33878 | { | |
33879 | return f != $ac_func; | |
33880 | ; | |
33881 | return 0; | |
33882 | } | |
33883 | _ACEOF | |
33884 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33886 | (eval $ac_link) 2>conftest.er1 | |
33887 | ac_status=$? | |
33888 | grep -v '^ *+' conftest.er1 >conftest.err | |
33889 | rm -f conftest.er1 | |
33890 | cat conftest.err >&5 | |
33891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33892 | (exit $ac_status); } && | |
3565d135 RR |
33893 | { ac_try='test -z "$ac_c_werror_flag" |
33894 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
33895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33896 | (eval $ac_try) 2>&5 | |
33897 | ac_status=$? | |
33898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33899 | (exit $ac_status); }; } && | |
33900 | { ac_try='test -s conftest$ac_exeext' | |
33901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33902 | (eval $ac_try) 2>&5 | |
33903 | ac_status=$? | |
33904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33905 | (exit $ac_status); }; }; then | |
33906 | eval "$as_ac_var=yes" | |
33907 | else | |
33908 | echo "$as_me: failed program was:" >&5 | |
33909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33910 | ||
33911 | eval "$as_ac_var=no" | |
33912 | fi | |
33913 | rm -f conftest.err conftest.$ac_objext \ | |
33914 | conftest$ac_exeext conftest.$ac_ext | |
33915 | fi | |
33916 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33917 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33918 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33919 | cat >>confdefs.h <<_ACEOF | |
33920 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33921 | _ACEOF | |
33922 | ||
33923 | fi | |
33924 | done | |
33925 | ||
33926 | fi | |
33927 | ||
33928 | if test "$wxUSE_FILE" = "yes"; then | |
33929 | ||
33930 | for ac_func in fsync | |
33931 | do | |
33932 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33933 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33934 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33935 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33937 | else | |
33938 | cat >conftest.$ac_ext <<_ACEOF | |
33939 | /* confdefs.h. */ | |
33940 | _ACEOF | |
33941 | cat confdefs.h >>conftest.$ac_ext | |
33942 | cat >>conftest.$ac_ext <<_ACEOF | |
33943 | /* end confdefs.h. */ | |
33944 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
33945 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33946 | #define $ac_func innocuous_$ac_func | |
33947 | ||
33948 | /* System header to define __stub macros and hopefully few prototypes, | |
33949 | which can conflict with char $ac_func (); below. | |
33950 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33951 | <limits.h> exists even on freestanding compilers. */ | |
33952 | ||
33953 | #ifdef __STDC__ | |
33954 | # include <limits.h> | |
33955 | #else | |
33956 | # include <assert.h> | |
33957 | #endif | |
33958 | ||
33959 | #undef $ac_func | |
33960 | ||
33961 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33962 | #ifdef __cplusplus | |
33963 | extern "C" | |
33964 | { | |
33965 | #endif | |
33966 | /* We use char because int might match the return type of a gcc2 | |
33967 | builtin and then its argument prototype would still apply. */ | |
33968 | char $ac_func (); | |
33969 | /* The GNU C library defines this for functions which it implements | |
33970 | to always fail with ENOSYS. Some functions are actually named | |
33971 | something starting with __ and the normal name is an alias. */ | |
33972 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33973 | choke me | |
33974 | #else | |
33975 | char (*f) () = $ac_func; | |
33976 | #endif | |
33977 | #ifdef __cplusplus | |
33978 | } | |
33979 | #endif | |
33980 | ||
33981 | int | |
33982 | main () | |
33983 | { | |
33984 | return f != $ac_func; | |
33985 | ; | |
33986 | return 0; | |
33987 | } | |
33988 | _ACEOF | |
33989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33991 | (eval $ac_link) 2>conftest.er1 | |
33992 | ac_status=$? | |
33993 | grep -v '^ *+' conftest.er1 >conftest.err | |
33994 | rm -f conftest.er1 | |
33995 | cat conftest.err >&5 | |
33996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33997 | (exit $ac_status); } && | |
3565d135 RR |
33998 | { ac_try='test -z "$ac_c_werror_flag" |
33999 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
34000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34001 | (eval $ac_try) 2>&5 | |
34002 | ac_status=$? | |
34003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34004 | (exit $ac_status); }; } && | |
34005 | { ac_try='test -s conftest$ac_exeext' | |
34006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34007 | (eval $ac_try) 2>&5 | |
34008 | ac_status=$? | |
34009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34010 | (exit $ac_status); }; }; then | |
34011 | eval "$as_ac_var=yes" | |
34012 | else | |
34013 | echo "$as_me: failed program was:" >&5 | |
34014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34015 | ||
34016 | eval "$as_ac_var=no" | |
34017 | fi | |
34018 | rm -f conftest.err conftest.$ac_objext \ | |
34019 | conftest$ac_exeext conftest.$ac_ext | |
34020 | fi | |
34021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34022 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34023 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34024 | cat >>confdefs.h <<_ACEOF | |
34025 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34026 | _ACEOF | |
34027 | ||
34028 | fi | |
34029 | done | |
34030 | ||
34031 | fi | |
a848cd7e SC |
34032 | |
34033 | ||
34034 | if test "$TOOLKIT" != "MSW"; then | |
34035 | ||
34036 | ||
34037 | ||
34038 | ||
34039 | ac_ext=cc | |
34040 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34041 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34042 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34043 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34044 | ||
34045 | ||
34046 | ||
34047 | ||
34048 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
34049 | if test "${with_libiconv_prefix+set}" = set; then | |
34050 | withval="$with_libiconv_prefix" | |
34051 | ||
34052 | for dir in `echo "$withval" | tr : ' '`; do | |
34053 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
34054 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
34055 | done | |
34056 | ||
34057 | fi; | |
34058 | ||
34059 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
34060 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
34061 | if test "${am_cv_func_iconv+set}" = set; then | |
34062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34063 | else | |
34064 | ||
34065 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
34066 | am_cv_lib_iconv=no | |
34067 | cat >conftest.$ac_ext <<_ACEOF | |
34068 | /* confdefs.h. */ | |
34069 | _ACEOF | |
34070 | cat confdefs.h >>conftest.$ac_ext | |
34071 | cat >>conftest.$ac_ext <<_ACEOF | |
34072 | /* end confdefs.h. */ | |
34073 | #include <stdlib.h> | |
34074 | #include <iconv.h> | |
34075 | int | |
34076 | main () | |
34077 | { | |
34078 | iconv_t cd = iconv_open("",""); | |
34079 | iconv(cd,NULL,NULL,NULL,NULL); | |
34080 | iconv_close(cd); | |
34081 | ; | |
34082 | return 0; | |
34083 | } | |
34084 | _ACEOF | |
34085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34087 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34088 | ac_status=$? |
ac1cb8d3 VS |
34089 | grep -v '^ *+' conftest.er1 >conftest.err |
34090 | rm -f conftest.er1 | |
34091 | cat conftest.err >&5 | |
a848cd7e SC |
34092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34093 | (exit $ac_status); } && | |
3565d135 RR |
34094 | { ac_try='test -z "$ac_cxx_werror_flag" |
34095 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34097 | (eval $ac_try) 2>&5 | |
34098 | ac_status=$? | |
34099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34100 | (exit $ac_status); }; } && | |
34101 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34103 | (eval $ac_try) 2>&5 | |
34104 | ac_status=$? | |
34105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34106 | (exit $ac_status); }; }; then | |
34107 | am_cv_func_iconv=yes | |
34108 | else | |
34109 | echo "$as_me: failed program was:" >&5 | |
34110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34111 | ||
34112 | fi | |
ac1cb8d3 VS |
34113 | rm -f conftest.err conftest.$ac_objext \ |
34114 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34115 | if test "$am_cv_func_iconv" != yes; then |
34116 | am_save_LIBS="$LIBS" | |
34117 | LIBS="$LIBS -liconv" | |
34118 | cat >conftest.$ac_ext <<_ACEOF | |
34119 | /* confdefs.h. */ | |
34120 | _ACEOF | |
34121 | cat confdefs.h >>conftest.$ac_ext | |
34122 | cat >>conftest.$ac_ext <<_ACEOF | |
34123 | /* end confdefs.h. */ | |
34124 | #include <stdlib.h> | |
34125 | #include <iconv.h> | |
34126 | int | |
34127 | main () | |
34128 | { | |
34129 | iconv_t cd = iconv_open("",""); | |
34130 | iconv(cd,NULL,NULL,NULL,NULL); | |
34131 | iconv_close(cd); | |
34132 | ; | |
34133 | return 0; | |
34134 | } | |
34135 | _ACEOF | |
34136 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34138 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34139 | ac_status=$? |
ac1cb8d3 VS |
34140 | grep -v '^ *+' conftest.er1 >conftest.err |
34141 | rm -f conftest.er1 | |
34142 | cat conftest.err >&5 | |
a848cd7e SC |
34143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34144 | (exit $ac_status); } && | |
3565d135 RR |
34145 | { ac_try='test -z "$ac_cxx_werror_flag" |
34146 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34148 | (eval $ac_try) 2>&5 | |
34149 | ac_status=$? | |
34150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34151 | (exit $ac_status); }; } && | |
34152 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34154 | (eval $ac_try) 2>&5 | |
34155 | ac_status=$? | |
34156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34157 | (exit $ac_status); }; }; then | |
34158 | am_cv_lib_iconv=yes | |
34159 | am_cv_func_iconv=yes | |
34160 | else | |
34161 | echo "$as_me: failed program was:" >&5 | |
34162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34163 | ||
34164 | fi | |
ac1cb8d3 VS |
34165 | rm -f conftest.err conftest.$ac_objext \ |
34166 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34167 | LIBS="$am_save_LIBS" |
34168 | fi | |
34169 | ||
34170 | fi | |
34171 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
34172 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
34173 | if test "$am_cv_func_iconv" = yes; then | |
34174 | ||
34175 | cat >>confdefs.h <<\_ACEOF | |
34176 | #define HAVE_ICONV 1 | |
34177 | _ACEOF | |
34178 | ||
34179 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
34180 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
34181 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
34182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34183 | else | |
34184 | cat >conftest.$ac_ext <<_ACEOF | |
34185 | /* confdefs.h. */ | |
34186 | _ACEOF | |
34187 | cat confdefs.h >>conftest.$ac_ext | |
34188 | cat >>conftest.$ac_ext <<_ACEOF | |
34189 | /* end confdefs.h. */ | |
34190 | ||
34191 | #include <stdlib.h> | |
34192 | #include <iconv.h> | |
34193 | extern | |
34194 | #ifdef __cplusplus | |
34195 | "C" | |
34196 | #endif | |
34197 | #if defined(__STDC__) || defined(__cplusplus) | |
34198 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
34199 | #else | |
34200 | size_t iconv(); | |
34201 | #endif | |
34202 | ||
34203 | int | |
34204 | main () | |
34205 | { | |
34206 | ||
34207 | ; | |
34208 | return 0; | |
34209 | } | |
34210 | _ACEOF | |
34211 | rm -f conftest.$ac_objext | |
34212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34213 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34214 | ac_status=$? |
ac1cb8d3 VS |
34215 | grep -v '^ *+' conftest.er1 >conftest.err |
34216 | rm -f conftest.er1 | |
34217 | cat conftest.err >&5 | |
a848cd7e SC |
34218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34219 | (exit $ac_status); } && | |
3565d135 RR |
34220 | { ac_try='test -z "$ac_cxx_werror_flag" |
34221 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34223 | (eval $ac_try) 2>&5 | |
34224 | ac_status=$? | |
34225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34226 | (exit $ac_status); }; } && | |
34227 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34229 | (eval $ac_try) 2>&5 | |
34230 | ac_status=$? | |
34231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34232 | (exit $ac_status); }; }; then | |
34233 | wx_cv_func_iconv_const="no" | |
34234 | else | |
34235 | echo "$as_me: failed program was:" >&5 | |
34236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34237 | ||
34238 | wx_cv_func_iconv_const="yes" | |
34239 | ||
34240 | fi | |
ac1cb8d3 | 34241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34242 | |
34243 | fi | |
34244 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
34245 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
34246 | ||
34247 | iconv_const= | |
34248 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
34249 | iconv_const="const" | |
34250 | fi | |
34251 | ||
34252 | ||
34253 | cat >>confdefs.h <<_ACEOF | |
34254 | #define ICONV_CONST $iconv_const | |
34255 | _ACEOF | |
34256 | ||
34257 | fi | |
34258 | LIBICONV= | |
34259 | if test "$am_cv_lib_iconv" = yes; then | |
34260 | LIBICONV="-liconv" | |
34261 | fi | |
34262 | ||
34263 | ||
34264 | LIBS="$LIBICONV $LIBS" | |
34265 | ac_ext=c | |
34266 | ac_cpp='$CPP $CPPFLAGS' | |
34267 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34268 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34269 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34270 | ||
34271 | ||
34272 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
34273 | ||
34274 | for ac_func in sigaction | |
34275 | do | |
34276 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34277 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34278 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34279 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34281 | else | |
34282 | cat >conftest.$ac_ext <<_ACEOF | |
34283 | /* confdefs.h. */ | |
34284 | _ACEOF | |
34285 | cat confdefs.h >>conftest.$ac_ext | |
34286 | cat >>conftest.$ac_ext <<_ACEOF | |
34287 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34288 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34289 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34290 | #define $ac_func innocuous_$ac_func | |
34291 | ||
a848cd7e SC |
34292 | /* System header to define __stub macros and hopefully few prototypes, |
34293 | which can conflict with char $ac_func (); below. | |
34294 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34295 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34296 | |
a848cd7e SC |
34297 | #ifdef __STDC__ |
34298 | # include <limits.h> | |
34299 | #else | |
34300 | # include <assert.h> | |
34301 | #endif | |
ac1cb8d3 VS |
34302 | |
34303 | #undef $ac_func | |
34304 | ||
a848cd7e SC |
34305 | /* Override any gcc2 internal prototype to avoid an error. */ |
34306 | #ifdef __cplusplus | |
34307 | extern "C" | |
34308 | { | |
34309 | #endif | |
34310 | /* We use char because int might match the return type of a gcc2 | |
34311 | builtin and then its argument prototype would still apply. */ | |
34312 | char $ac_func (); | |
34313 | /* The GNU C library defines this for functions which it implements | |
34314 | to always fail with ENOSYS. Some functions are actually named | |
34315 | something starting with __ and the normal name is an alias. */ | |
34316 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34317 | choke me | |
34318 | #else | |
34319 | char (*f) () = $ac_func; | |
34320 | #endif | |
34321 | #ifdef __cplusplus | |
34322 | } | |
34323 | #endif | |
34324 | ||
34325 | int | |
34326 | main () | |
34327 | { | |
34328 | return f != $ac_func; | |
34329 | ; | |
34330 | return 0; | |
34331 | } | |
34332 | _ACEOF | |
34333 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34335 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34336 | ac_status=$? |
ac1cb8d3 VS |
34337 | grep -v '^ *+' conftest.er1 >conftest.err |
34338 | rm -f conftest.er1 | |
34339 | cat conftest.err >&5 | |
a848cd7e SC |
34340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34341 | (exit $ac_status); } && | |
3565d135 RR |
34342 | { ac_try='test -z "$ac_c_werror_flag" |
34343 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34345 | (eval $ac_try) 2>&5 | |
34346 | ac_status=$? | |
34347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34348 | (exit $ac_status); }; } && | |
34349 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34351 | (eval $ac_try) 2>&5 | |
34352 | ac_status=$? | |
34353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34354 | (exit $ac_status); }; }; then | |
34355 | eval "$as_ac_var=yes" | |
34356 | else | |
34357 | echo "$as_me: failed program was:" >&5 | |
34358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34359 | ||
34360 | eval "$as_ac_var=no" | |
34361 | fi | |
ac1cb8d3 VS |
34362 | rm -f conftest.err conftest.$ac_objext \ |
34363 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34364 | fi |
34365 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34366 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34367 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34368 | cat >>confdefs.h <<_ACEOF | |
34369 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34370 | _ACEOF | |
34371 | ||
34372 | fi | |
34373 | done | |
34374 | ||
34375 | ||
34376 | if test "$ac_cv_func_sigaction" = "no"; then | |
34377 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
34378 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
34379 | wxUSE_ON_FATAL_EXCEPTION=no | |
34380 | fi | |
34381 | ||
34382 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
34383 | ||
34384 | ||
34385 | ac_ext=cc | |
34386 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34387 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34388 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34389 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34390 | ||
34391 | ||
34392 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
34393 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
34394 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
34395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34396 | else | |
34397 | ||
34398 | cat >conftest.$ac_ext <<_ACEOF | |
34399 | /* confdefs.h. */ | |
34400 | _ACEOF | |
34401 | cat confdefs.h >>conftest.$ac_ext | |
34402 | cat >>conftest.$ac_ext <<_ACEOF | |
34403 | /* end confdefs.h. */ | |
34404 | #include <signal.h> | |
34405 | int | |
34406 | main () | |
34407 | { | |
34408 | ||
34409 | extern void testSigHandler(int); | |
34410 | ||
34411 | struct sigaction sa; | |
34412 | sa.sa_handler = testSigHandler; | |
34413 | ||
34414 | ; | |
34415 | return 0; | |
34416 | } | |
34417 | _ACEOF | |
34418 | rm -f conftest.$ac_objext | |
34419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34420 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34421 | ac_status=$? |
ac1cb8d3 VS |
34422 | grep -v '^ *+' conftest.er1 >conftest.err |
34423 | rm -f conftest.er1 | |
34424 | cat conftest.err >&5 | |
a848cd7e SC |
34425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34426 | (exit $ac_status); } && | |
3565d135 RR |
34427 | { ac_try='test -z "$ac_cxx_werror_flag" |
34428 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34430 | (eval $ac_try) 2>&5 | |
34431 | ac_status=$? | |
34432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34433 | (exit $ac_status); }; } && | |
34434 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34436 | (eval $ac_try) 2>&5 | |
34437 | ac_status=$? | |
34438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34439 | (exit $ac_status); }; }; then | |
34440 | ||
34441 | wx_cv_type_sa_handler=int | |
34442 | ||
34443 | else | |
34444 | echo "$as_me: failed program was:" >&5 | |
34445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34446 | ||
34447 | ||
34448 | wx_cv_type_sa_handler=void | |
34449 | ||
34450 | fi | |
ac1cb8d3 | 34451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34452 | |
34453 | fi | |
34454 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
34455 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
34456 | ||
34457 | ac_ext=c | |
34458 | ac_cpp='$CPP $CPPFLAGS' | |
34459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34462 | ||
34463 | ||
34464 | cat >>confdefs.h <<_ACEOF | |
34465 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
34466 | _ACEOF | |
34467 | ||
34468 | fi | |
34469 | fi | |
34470 | ||
eaff0f0d VZ |
34471 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
34472 | ||
34473 | ||
34474 | ac_ext=cc | |
34475 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34476 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34477 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34478 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34479 | ||
34480 | ||
34481 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
34482 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
34483 | if test "${wx_cv_func_backtrace+set}" = set; then | |
34484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34485 | else | |
34486 | ||
34487 | cat >conftest.$ac_ext <<_ACEOF | |
34488 | /* confdefs.h. */ | |
34489 | _ACEOF | |
34490 | cat confdefs.h >>conftest.$ac_ext | |
34491 | cat >>conftest.$ac_ext <<_ACEOF | |
34492 | /* end confdefs.h. */ | |
34493 | #include <execinfo.h> | |
34494 | int | |
34495 | main () | |
34496 | { | |
34497 | ||
34498 | void *trace[1]; | |
34499 | char **messages; | |
34500 | ||
34501 | backtrace(trace, 1); | |
34502 | messages = backtrace_symbols(trace, 1); | |
34503 | ||
34504 | ; | |
34505 | return 0; | |
34506 | } | |
34507 | _ACEOF | |
34508 | rm -f conftest.$ac_objext | |
34509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34510 | (eval $ac_compile) 2>conftest.er1 | |
34511 | ac_status=$? | |
34512 | grep -v '^ *+' conftest.er1 >conftest.err | |
34513 | rm -f conftest.er1 | |
34514 | cat conftest.err >&5 | |
34515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34516 | (exit $ac_status); } && | |
3565d135 RR |
34517 | { ac_try='test -z "$ac_cxx_werror_flag" |
34518 | || test ! -s conftest.err' | |
eaff0f0d VZ |
34519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34520 | (eval $ac_try) 2>&5 | |
34521 | ac_status=$? | |
34522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34523 | (exit $ac_status); }; } && | |
34524 | { ac_try='test -s conftest.$ac_objext' | |
34525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34526 | (eval $ac_try) 2>&5 | |
34527 | ac_status=$? | |
34528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34529 | (exit $ac_status); }; }; then | |
34530 | wx_cv_func_backtrace=yes | |
34531 | else | |
34532 | echo "$as_me: failed program was:" >&5 | |
34533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34534 | ||
34535 | wx_cv_func_backtrace=no | |
34536 | ||
34537 | fi | |
34538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34539 | ||
34540 | ||
34541 | fi | |
34542 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
34543 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
34544 | ||
34545 | ||
34546 | if test "$wx_cv_func_backtrace" = "no"; then | |
34547 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
34548 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
34549 | wxUSE_STACKWALKER=no | |
34550 | else | |
34551 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
34552 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
34553 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
34554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34555 | else | |
34556 | ||
34557 | cat >conftest.$ac_ext <<_ACEOF | |
34558 | /* confdefs.h. */ | |
34559 | _ACEOF | |
34560 | cat confdefs.h >>conftest.$ac_ext | |
34561 | cat >>conftest.$ac_ext <<_ACEOF | |
34562 | /* end confdefs.h. */ | |
34563 | #include <cxxabi.h> | |
34564 | int | |
34565 | main () | |
34566 | { | |
34567 | ||
34568 | int rc; | |
34569 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
34570 | ||
34571 | ; | |
34572 | return 0; | |
34573 | } | |
34574 | _ACEOF | |
dfe0c803 JS |
34575 | rm -f conftest.$ac_objext conftest$ac_exeext |
34576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34577 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
34578 | ac_status=$? |
34579 | grep -v '^ *+' conftest.er1 >conftest.err | |
34580 | rm -f conftest.er1 | |
34581 | cat conftest.err >&5 | |
34582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34583 | (exit $ac_status); } && | |
3565d135 RR |
34584 | { ac_try='test -z "$ac_cxx_werror_flag" |
34585 | || test ! -s conftest.err' | |
eaff0f0d VZ |
34586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34587 | (eval $ac_try) 2>&5 | |
34588 | ac_status=$? | |
34589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34590 | (exit $ac_status); }; } && | |
dfe0c803 | 34591 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
34592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34593 | (eval $ac_try) 2>&5 | |
34594 | ac_status=$? | |
34595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34596 | (exit $ac_status); }; }; then | |
34597 | wx_cv_func_cxa_demangle=yes | |
34598 | else | |
34599 | echo "$as_me: failed program was:" >&5 | |
34600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34601 | ||
34602 | wx_cv_func_cxa_demangle=no | |
34603 | ||
34604 | fi | |
dfe0c803 JS |
34605 | rm -f conftest.err conftest.$ac_objext \ |
34606 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
34607 | |
34608 | ||
34609 | fi | |
34610 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
34611 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
34612 | ||
34613 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
34614 | cat >>confdefs.h <<\_ACEOF | |
34615 | #define HAVE_CXA_DEMANGLE 1 | |
34616 | _ACEOF | |
34617 | ||
34618 | fi | |
34619 | fi | |
34620 | ||
34621 | ac_ext=c | |
34622 | ac_cpp='$CPP $CPPFLAGS' | |
34623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34626 | ||
34627 | fi | |
34628 | ||
898beab1 DE |
34629 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
34630 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
34631 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
34632 | wxUSE_STACKWALKER=no | |
34633 | fi | |
34634 | ||
34635 | ||
a848cd7e SC |
34636 | |
34637 | ||
34638 | for ac_func in mkstemp mktemp | |
34639 | do | |
34640 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34641 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34642 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34643 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34645 | else | |
34646 | cat >conftest.$ac_ext <<_ACEOF | |
34647 | /* confdefs.h. */ | |
34648 | _ACEOF | |
34649 | cat confdefs.h >>conftest.$ac_ext | |
34650 | cat >>conftest.$ac_ext <<_ACEOF | |
34651 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34652 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34653 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34654 | #define $ac_func innocuous_$ac_func | |
34655 | ||
a848cd7e SC |
34656 | /* System header to define __stub macros and hopefully few prototypes, |
34657 | which can conflict with char $ac_func (); below. | |
34658 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34659 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34660 | |
a848cd7e SC |
34661 | #ifdef __STDC__ |
34662 | # include <limits.h> | |
34663 | #else | |
34664 | # include <assert.h> | |
34665 | #endif | |
ac1cb8d3 VS |
34666 | |
34667 | #undef $ac_func | |
34668 | ||
a848cd7e SC |
34669 | /* Override any gcc2 internal prototype to avoid an error. */ |
34670 | #ifdef __cplusplus | |
34671 | extern "C" | |
34672 | { | |
34673 | #endif | |
34674 | /* We use char because int might match the return type of a gcc2 | |
34675 | builtin and then its argument prototype would still apply. */ | |
34676 | char $ac_func (); | |
34677 | /* The GNU C library defines this for functions which it implements | |
34678 | to always fail with ENOSYS. Some functions are actually named | |
34679 | something starting with __ and the normal name is an alias. */ | |
34680 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34681 | choke me | |
34682 | #else | |
34683 | char (*f) () = $ac_func; | |
34684 | #endif | |
34685 | #ifdef __cplusplus | |
34686 | } | |
34687 | #endif | |
34688 | ||
34689 | int | |
34690 | main () | |
34691 | { | |
34692 | return f != $ac_func; | |
34693 | ; | |
34694 | return 0; | |
34695 | } | |
34696 | _ACEOF | |
34697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34699 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34700 | ac_status=$? |
ac1cb8d3 VS |
34701 | grep -v '^ *+' conftest.er1 >conftest.err |
34702 | rm -f conftest.er1 | |
34703 | cat conftest.err >&5 | |
a848cd7e SC |
34704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34705 | (exit $ac_status); } && | |
3565d135 RR |
34706 | { ac_try='test -z "$ac_c_werror_flag" |
34707 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34709 | (eval $ac_try) 2>&5 | |
34710 | ac_status=$? | |
34711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34712 | (exit $ac_status); }; } && | |
34713 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34715 | (eval $ac_try) 2>&5 | |
34716 | ac_status=$? | |
34717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34718 | (exit $ac_status); }; }; then | |
34719 | eval "$as_ac_var=yes" | |
34720 | else | |
34721 | echo "$as_me: failed program was:" >&5 | |
34722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34723 | ||
34724 | eval "$as_ac_var=no" | |
34725 | fi | |
ac1cb8d3 VS |
34726 | rm -f conftest.err conftest.$ac_objext \ |
34727 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34728 | fi |
34729 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34730 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34731 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34732 | cat >>confdefs.h <<_ACEOF | |
34733 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34734 | _ACEOF | |
34735 | break | |
34736 | fi | |
34737 | done | |
34738 | ||
34739 | ||
34740 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
34741 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
34742 | if test "${wx_cv_func_statfs+set}" = set; then | |
34743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34744 | else | |
34745 | cat >conftest.$ac_ext <<_ACEOF | |
34746 | /* confdefs.h. */ | |
34747 | _ACEOF | |
34748 | cat confdefs.h >>conftest.$ac_ext | |
34749 | cat >>conftest.$ac_ext <<_ACEOF | |
34750 | /* end confdefs.h. */ | |
34751 | ||
34752 | #if defined(__BSD__) | |
84ae7ca4 VZ |
34753 | #include <sys/param.h> |
34754 | #include <sys/mount.h> | |
a848cd7e | 34755 | #else |
84ae7ca4 | 34756 | #include <sys/vfs.h> |
a848cd7e SC |
34757 | #endif |
34758 | ||
34759 | int | |
34760 | main () | |
34761 | { | |
34762 | ||
34763 | long l; | |
34764 | struct statfs fs; | |
34765 | statfs("/", &fs); | |
34766 | l = fs.f_bsize; | |
34767 | l += fs.f_blocks; | |
34768 | l += fs.f_bavail; | |
34769 | ||
34770 | ; | |
34771 | return 0; | |
34772 | } | |
34773 | _ACEOF | |
34774 | rm -f conftest.$ac_objext | |
34775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34776 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34777 | ac_status=$? |
ac1cb8d3 VS |
34778 | grep -v '^ *+' conftest.er1 >conftest.err |
34779 | rm -f conftest.er1 | |
34780 | cat conftest.err >&5 | |
a848cd7e SC |
34781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34782 | (exit $ac_status); } && | |
3565d135 RR |
34783 | { ac_try='test -z "$ac_c_werror_flag" |
34784 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34786 | (eval $ac_try) 2>&5 | |
34787 | ac_status=$? | |
34788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34789 | (exit $ac_status); }; } && | |
34790 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34792 | (eval $ac_try) 2>&5 | |
34793 | ac_status=$? | |
34794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34795 | (exit $ac_status); }; }; then | |
84ae7ca4 | 34796 | wx_cv_func_statfs=yes |
a848cd7e SC |
34797 | else |
34798 | echo "$as_me: failed program was:" >&5 | |
34799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34800 | ||
84ae7ca4 | 34801 | wx_cv_func_statfs=no |
a848cd7e SC |
34802 | |
34803 | fi | |
ac1cb8d3 | 34804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34805 | |
34806 | fi | |
34807 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
34808 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
34809 | ||
34810 | if test "$wx_cv_func_statfs" = "yes"; then | |
84ae7ca4 VZ |
34811 | |
34812 | ||
34813 | ac_ext=cc | |
34814 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34815 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34816 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34817 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34818 | ||
34819 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 | |
34820 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 | |
34821 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
34822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34823 | else | |
0683aca6 VZ |
34824 | cat >conftest.$ac_ext <<_ACEOF |
34825 | /* confdefs.h. */ | |
34826 | _ACEOF | |
34827 | cat confdefs.h >>conftest.$ac_ext | |
34828 | cat >>conftest.$ac_ext <<_ACEOF | |
34829 | /* end confdefs.h. */ | |
84ae7ca4 | 34830 | |
0683aca6 VZ |
34831 | #if defined(__BSD__) |
34832 | #include <sys/param.h> | |
34833 | #include <sys/mount.h> | |
34834 | #else | |
34835 | #include <sys/vfs.h> | |
34836 | #endif | |
34837 | ||
34838 | int | |
34839 | main () | |
34840 | { | |
34841 | ||
34842 | struct statfs fs; | |
34843 | statfs("", &fs); | |
34844 | ||
34845 | ; | |
34846 | return 0; | |
34847 | } | |
34848 | _ACEOF | |
34849 | rm -f conftest.$ac_objext | |
34850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34851 | (eval $ac_compile) 2>conftest.er1 | |
34852 | ac_status=$? | |
34853 | grep -v '^ *+' conftest.er1 >conftest.err | |
34854 | rm -f conftest.er1 | |
34855 | cat conftest.err >&5 | |
34856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34857 | (exit $ac_status); } && | |
3565d135 RR |
34858 | { ac_try='test -z "$ac_cxx_werror_flag" |
34859 | || test ! -s conftest.err' | |
0683aca6 VZ |
34860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34861 | (eval $ac_try) 2>&5 | |
34862 | ac_status=$? | |
34863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34864 | (exit $ac_status); }; } && | |
34865 | { ac_try='test -s conftest.$ac_objext' | |
34866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34867 | (eval $ac_try) 2>&5 | |
34868 | ac_status=$? | |
34869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34870 | (exit $ac_status); }; }; then | |
34871 | wx_cv_func_statfs_decl=yes | |
34872 | else | |
34873 | echo "$as_me: failed program was:" >&5 | |
34874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34875 | ||
34876 | wx_cv_func_statfs_decl=no | |
34877 | ||
34878 | fi | |
34879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
34880 | |
34881 | fi | |
34882 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
34883 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
34884 | ac_ext=c | |
34885 | ac_cpp='$CPP $CPPFLAGS' | |
34886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34889 | ||
34890 | ||
34891 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
34892 | cat >>confdefs.h <<\_ACEOF | |
34893 | #define HAVE_STATFS_DECL 1 | |
34894 | _ACEOF | |
34895 | ||
34896 | fi | |
34897 | ||
a848cd7e SC |
34898 | wx_cv_type_statvfs_t="struct statfs" |
34899 | cat >>confdefs.h <<\_ACEOF | |
34900 | #define HAVE_STATFS 1 | |
34901 | _ACEOF | |
34902 | ||
34903 | else | |
34904 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
34905 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
34906 | if test "${wx_cv_func_statvfs+set}" = set; then | |
34907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34908 | else | |
34909 | cat >conftest.$ac_ext <<_ACEOF | |
34910 | /* confdefs.h. */ | |
34911 | _ACEOF | |
34912 | cat confdefs.h >>conftest.$ac_ext | |
34913 | cat >>conftest.$ac_ext <<_ACEOF | |
34914 | /* end confdefs.h. */ | |
34915 | ||
34916 | #include <stddef.h> | |
34917 | #include <sys/statvfs.h> | |
34918 | ||
34919 | int | |
34920 | main () | |
34921 | { | |
34922 | ||
34923 | statvfs("/", NULL); | |
34924 | ||
34925 | ; | |
34926 | return 0; | |
34927 | } | |
34928 | _ACEOF | |
34929 | rm -f conftest.$ac_objext | |
34930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34931 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34932 | ac_status=$? |
ac1cb8d3 VS |
34933 | grep -v '^ *+' conftest.er1 >conftest.err |
34934 | rm -f conftest.er1 | |
34935 | cat conftest.err >&5 | |
a848cd7e SC |
34936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34937 | (exit $ac_status); } && | |
3565d135 RR |
34938 | { ac_try='test -z "$ac_c_werror_flag" |
34939 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34941 | (eval $ac_try) 2>&5 | |
34942 | ac_status=$? | |
34943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34944 | (exit $ac_status); }; } && | |
34945 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34947 | (eval $ac_try) 2>&5 | |
34948 | ac_status=$? | |
34949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34950 | (exit $ac_status); }; }; then | |
34951 | wx_cv_func_statvfs=yes | |
34952 | else | |
34953 | echo "$as_me: failed program was:" >&5 | |
34954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34955 | ||
34956 | wx_cv_func_statvfs=no | |
34957 | ||
34958 | fi | |
ac1cb8d3 | 34959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34960 | |
34961 | fi | |
34962 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
34963 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
34964 | ||
34965 | if test "$wx_cv_func_statvfs" = "yes"; then | |
34966 | ||
34967 | ||
34968 | ac_ext=cc | |
34969 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34970 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34971 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34972 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34973 | ||
34974 | ||
34975 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
34976 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
34977 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
34978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34979 | else | |
34980 | cat >conftest.$ac_ext <<_ACEOF | |
34981 | /* confdefs.h. */ | |
34982 | _ACEOF | |
34983 | cat confdefs.h >>conftest.$ac_ext | |
34984 | cat >>conftest.$ac_ext <<_ACEOF | |
34985 | /* end confdefs.h. */ | |
34986 | ||
34987 | #include <sys/statvfs.h> | |
34988 | ||
34989 | int | |
34990 | main () | |
34991 | { | |
34992 | ||
34993 | long l; | |
34994 | statvfs_t fs; | |
34995 | statvfs("/", &fs); | |
34996 | l = fs.f_bsize; | |
34997 | l += fs.f_blocks; | |
34998 | l += fs.f_bavail; | |
34999 | ||
35000 | ; | |
35001 | return 0; | |
35002 | } | |
35003 | _ACEOF | |
35004 | rm -f conftest.$ac_objext | |
35005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35006 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35007 | ac_status=$? |
ac1cb8d3 VS |
35008 | grep -v '^ *+' conftest.er1 >conftest.err |
35009 | rm -f conftest.er1 | |
35010 | cat conftest.err >&5 | |
a848cd7e SC |
35011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35012 | (exit $ac_status); } && | |
3565d135 RR |
35013 | { ac_try='test -z "$ac_cxx_werror_flag" |
35014 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35016 | (eval $ac_try) 2>&5 | |
35017 | ac_status=$? | |
35018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35019 | (exit $ac_status); }; } && | |
35020 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35022 | (eval $ac_try) 2>&5 | |
35023 | ac_status=$? | |
35024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35025 | (exit $ac_status); }; }; then | |
35026 | wx_cv_type_statvfs_t=statvfs_t | |
35027 | else | |
35028 | echo "$as_me: failed program was:" >&5 | |
35029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35030 | ||
35031 | ||
35032 | cat >conftest.$ac_ext <<_ACEOF | |
35033 | /* confdefs.h. */ | |
35034 | _ACEOF | |
35035 | cat confdefs.h >>conftest.$ac_ext | |
35036 | cat >>conftest.$ac_ext <<_ACEOF | |
35037 | /* end confdefs.h. */ | |
35038 | ||
35039 | #include <sys/statvfs.h> | |
35040 | ||
35041 | int | |
35042 | main () | |
35043 | { | |
35044 | ||
35045 | long l; | |
35046 | struct statvfs fs; | |
35047 | statvfs("/", &fs); | |
35048 | l = fs.f_bsize; | |
35049 | l += fs.f_blocks; | |
35050 | l += fs.f_bavail; | |
35051 | ||
35052 | ; | |
35053 | return 0; | |
35054 | } | |
35055 | _ACEOF | |
35056 | rm -f conftest.$ac_objext | |
35057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35058 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35059 | ac_status=$? |
ac1cb8d3 VS |
35060 | grep -v '^ *+' conftest.er1 >conftest.err |
35061 | rm -f conftest.er1 | |
35062 | cat conftest.err >&5 | |
a848cd7e SC |
35063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35064 | (exit $ac_status); } && | |
3565d135 RR |
35065 | { ac_try='test -z "$ac_cxx_werror_flag" |
35066 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35068 | (eval $ac_try) 2>&5 | |
35069 | ac_status=$? | |
35070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35071 | (exit $ac_status); }; } && | |
35072 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35074 | (eval $ac_try) 2>&5 | |
35075 | ac_status=$? | |
35076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35077 | (exit $ac_status); }; }; then | |
35078 | wx_cv_type_statvfs_t="struct statvfs" | |
35079 | else | |
35080 | echo "$as_me: failed program was:" >&5 | |
35081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35082 | ||
35083 | wx_cv_type_statvfs_t="unknown" | |
35084 | ||
35085 | fi | |
ac1cb8d3 | 35086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35087 | |
35088 | ||
35089 | fi | |
ac1cb8d3 | 35090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35091 | |
35092 | fi | |
35093 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
35094 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
35095 | ||
35096 | ac_ext=c | |
35097 | ac_cpp='$CPP $CPPFLAGS' | |
35098 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35099 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35100 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35101 | ||
35102 | ||
35103 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
35104 | cat >>confdefs.h <<\_ACEOF | |
35105 | #define HAVE_STATVFS 1 | |
35106 | _ACEOF | |
35107 | ||
35108 | fi | |
35109 | else | |
35110 | wx_cv_type_statvfs_t="unknown" | |
35111 | fi | |
35112 | fi | |
35113 | ||
35114 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
35115 | cat >>confdefs.h <<_ACEOF | |
35116 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
35117 | _ACEOF | |
35118 | ||
35119 | else | |
35120 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
35121 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
35122 | fi | |
35123 | ||
35124 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
35125 | ||
35126 | ||
35127 | for ac_func in fcntl flock | |
35128 | do | |
35129 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35130 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35131 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35132 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35134 | else | |
35135 | cat >conftest.$ac_ext <<_ACEOF | |
35136 | /* confdefs.h. */ | |
35137 | _ACEOF | |
35138 | cat confdefs.h >>conftest.$ac_ext | |
35139 | cat >>conftest.$ac_ext <<_ACEOF | |
35140 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35141 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35142 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35143 | #define $ac_func innocuous_$ac_func | |
35144 | ||
a848cd7e SC |
35145 | /* System header to define __stub macros and hopefully few prototypes, |
35146 | which can conflict with char $ac_func (); below. | |
35147 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35148 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35149 | |
a848cd7e SC |
35150 | #ifdef __STDC__ |
35151 | # include <limits.h> | |
35152 | #else | |
35153 | # include <assert.h> | |
35154 | #endif | |
ac1cb8d3 VS |
35155 | |
35156 | #undef $ac_func | |
35157 | ||
a848cd7e SC |
35158 | /* Override any gcc2 internal prototype to avoid an error. */ |
35159 | #ifdef __cplusplus | |
35160 | extern "C" | |
35161 | { | |
35162 | #endif | |
35163 | /* We use char because int might match the return type of a gcc2 | |
35164 | builtin and then its argument prototype would still apply. */ | |
35165 | char $ac_func (); | |
35166 | /* The GNU C library defines this for functions which it implements | |
35167 | to always fail with ENOSYS. Some functions are actually named | |
35168 | something starting with __ and the normal name is an alias. */ | |
35169 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35170 | choke me | |
35171 | #else | |
35172 | char (*f) () = $ac_func; | |
35173 | #endif | |
35174 | #ifdef __cplusplus | |
35175 | } | |
35176 | #endif | |
35177 | ||
35178 | int | |
35179 | main () | |
35180 | { | |
35181 | return f != $ac_func; | |
35182 | ; | |
35183 | return 0; | |
35184 | } | |
35185 | _ACEOF | |
35186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35188 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35189 | ac_status=$? |
ac1cb8d3 VS |
35190 | grep -v '^ *+' conftest.er1 >conftest.err |
35191 | rm -f conftest.er1 | |
35192 | cat conftest.err >&5 | |
a848cd7e SC |
35193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35194 | (exit $ac_status); } && | |
3565d135 RR |
35195 | { ac_try='test -z "$ac_c_werror_flag" |
35196 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35198 | (eval $ac_try) 2>&5 | |
35199 | ac_status=$? | |
35200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35201 | (exit $ac_status); }; } && | |
35202 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35204 | (eval $ac_try) 2>&5 | |
35205 | ac_status=$? | |
35206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35207 | (exit $ac_status); }; }; then | |
35208 | eval "$as_ac_var=yes" | |
35209 | else | |
35210 | echo "$as_me: failed program was:" >&5 | |
35211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35212 | ||
35213 | eval "$as_ac_var=no" | |
35214 | fi | |
ac1cb8d3 VS |
35215 | rm -f conftest.err conftest.$ac_objext \ |
35216 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35217 | fi |
35218 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35219 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35220 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35221 | cat >>confdefs.h <<_ACEOF | |
35222 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35223 | _ACEOF | |
35224 | break | |
35225 | fi | |
35226 | done | |
35227 | ||
35228 | ||
35229 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
35230 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
35231 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
35232 | wxUSE_SNGLINST_CHECKER=no | |
35233 | fi | |
35234 | fi | |
35235 | ||
35236 | ||
35237 | for ac_func in timegm | |
35238 | do | |
35239 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35240 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35241 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35242 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35244 | else | |
35245 | cat >conftest.$ac_ext <<_ACEOF | |
35246 | /* confdefs.h. */ | |
35247 | _ACEOF | |
35248 | cat confdefs.h >>conftest.$ac_ext | |
35249 | cat >>conftest.$ac_ext <<_ACEOF | |
35250 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35251 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35252 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35253 | #define $ac_func innocuous_$ac_func | |
35254 | ||
a848cd7e SC |
35255 | /* System header to define __stub macros and hopefully few prototypes, |
35256 | which can conflict with char $ac_func (); below. | |
35257 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35258 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35259 | |
a848cd7e SC |
35260 | #ifdef __STDC__ |
35261 | # include <limits.h> | |
35262 | #else | |
35263 | # include <assert.h> | |
35264 | #endif | |
ac1cb8d3 VS |
35265 | |
35266 | #undef $ac_func | |
35267 | ||
a848cd7e SC |
35268 | /* Override any gcc2 internal prototype to avoid an error. */ |
35269 | #ifdef __cplusplus | |
35270 | extern "C" | |
35271 | { | |
35272 | #endif | |
35273 | /* We use char because int might match the return type of a gcc2 | |
35274 | builtin and then its argument prototype would still apply. */ | |
35275 | char $ac_func (); | |
35276 | /* The GNU C library defines this for functions which it implements | |
35277 | to always fail with ENOSYS. Some functions are actually named | |
35278 | something starting with __ and the normal name is an alias. */ | |
35279 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35280 | choke me | |
35281 | #else | |
35282 | char (*f) () = $ac_func; | |
35283 | #endif | |
35284 | #ifdef __cplusplus | |
35285 | } | |
35286 | #endif | |
35287 | ||
35288 | int | |
35289 | main () | |
35290 | { | |
35291 | return f != $ac_func; | |
35292 | ; | |
35293 | return 0; | |
35294 | } | |
35295 | _ACEOF | |
35296 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35298 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35299 | ac_status=$? |
ac1cb8d3 VS |
35300 | grep -v '^ *+' conftest.er1 >conftest.err |
35301 | rm -f conftest.er1 | |
35302 | cat conftest.err >&5 | |
a848cd7e SC |
35303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35304 | (exit $ac_status); } && | |
3565d135 RR |
35305 | { ac_try='test -z "$ac_c_werror_flag" |
35306 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35308 | (eval $ac_try) 2>&5 | |
35309 | ac_status=$? | |
35310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35311 | (exit $ac_status); }; } && | |
35312 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35314 | (eval $ac_try) 2>&5 | |
35315 | ac_status=$? | |
35316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35317 | (exit $ac_status); }; }; then | |
35318 | eval "$as_ac_var=yes" | |
35319 | else | |
35320 | echo "$as_me: failed program was:" >&5 | |
35321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35322 | ||
35323 | eval "$as_ac_var=no" | |
35324 | fi | |
ac1cb8d3 VS |
35325 | rm -f conftest.err conftest.$ac_objext \ |
35326 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35327 | fi |
35328 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35329 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35330 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35331 | cat >>confdefs.h <<_ACEOF | |
35332 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35333 | _ACEOF | |
35334 | ||
35335 | fi | |
35336 | done | |
35337 | ||
35338 | ||
35339 | ||
35340 | ||
35341 | for ac_func in putenv setenv | |
35342 | do | |
35343 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35344 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35345 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35346 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35348 | else | |
35349 | cat >conftest.$ac_ext <<_ACEOF | |
35350 | /* confdefs.h. */ | |
35351 | _ACEOF | |
35352 | cat confdefs.h >>conftest.$ac_ext | |
35353 | cat >>conftest.$ac_ext <<_ACEOF | |
35354 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35355 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35356 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35357 | #define $ac_func innocuous_$ac_func | |
35358 | ||
a848cd7e SC |
35359 | /* System header to define __stub macros and hopefully few prototypes, |
35360 | which can conflict with char $ac_func (); below. | |
35361 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35362 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35363 | |
a848cd7e SC |
35364 | #ifdef __STDC__ |
35365 | # include <limits.h> | |
35366 | #else | |
35367 | # include <assert.h> | |
35368 | #endif | |
ac1cb8d3 VS |
35369 | |
35370 | #undef $ac_func | |
35371 | ||
a848cd7e SC |
35372 | /* Override any gcc2 internal prototype to avoid an error. */ |
35373 | #ifdef __cplusplus | |
35374 | extern "C" | |
35375 | { | |
35376 | #endif | |
35377 | /* We use char because int might match the return type of a gcc2 | |
35378 | builtin and then its argument prototype would still apply. */ | |
35379 | char $ac_func (); | |
35380 | /* The GNU C library defines this for functions which it implements | |
35381 | to always fail with ENOSYS. Some functions are actually named | |
35382 | something starting with __ and the normal name is an alias. */ | |
35383 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35384 | choke me | |
35385 | #else | |
35386 | char (*f) () = $ac_func; | |
35387 | #endif | |
35388 | #ifdef __cplusplus | |
35389 | } | |
35390 | #endif | |
35391 | ||
35392 | int | |
35393 | main () | |
35394 | { | |
35395 | return f != $ac_func; | |
35396 | ; | |
35397 | return 0; | |
35398 | } | |
35399 | _ACEOF | |
35400 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35402 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35403 | ac_status=$? |
ac1cb8d3 VS |
35404 | grep -v '^ *+' conftest.er1 >conftest.err |
35405 | rm -f conftest.er1 | |
35406 | cat conftest.err >&5 | |
a848cd7e SC |
35407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35408 | (exit $ac_status); } && | |
3565d135 RR |
35409 | { ac_try='test -z "$ac_c_werror_flag" |
35410 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35412 | (eval $ac_try) 2>&5 | |
35413 | ac_status=$? | |
35414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35415 | (exit $ac_status); }; } && | |
35416 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35418 | (eval $ac_try) 2>&5 | |
35419 | ac_status=$? | |
35420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35421 | (exit $ac_status); }; }; then | |
35422 | eval "$as_ac_var=yes" | |
35423 | else | |
35424 | echo "$as_me: failed program was:" >&5 | |
35425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35426 | ||
35427 | eval "$as_ac_var=no" | |
35428 | fi | |
ac1cb8d3 VS |
35429 | rm -f conftest.err conftest.$ac_objext \ |
35430 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35431 | fi |
35432 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35433 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35434 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35435 | cat >>confdefs.h <<_ACEOF | |
35436 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35437 | _ACEOF | |
35438 | break | |
35439 | fi | |
35440 | done | |
35441 | ||
35442 | ||
35443 | HAVE_SOME_SLEEP_FUNC=0 | |
35444 | if test "$USE_BEOS" = 1; then | |
35445 | cat >>confdefs.h <<\_ACEOF | |
35446 | #define HAVE_SLEEP 1 | |
35447 | _ACEOF | |
35448 | ||
35449 | HAVE_SOME_SLEEP_FUNC=1 | |
35450 | fi | |
35451 | ||
35452 | if test "$USE_DARWIN" = 1; then | |
35453 | cat >>confdefs.h <<\_ACEOF | |
35454 | #define HAVE_USLEEP 1 | |
35455 | _ACEOF | |
35456 | ||
35457 | HAVE_SOME_SLEEP_FUNC=1 | |
35458 | fi | |
35459 | ||
35460 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
35461 | POSIX4_LINK= | |
35462 | ||
35463 | for ac_func in nanosleep | |
35464 | do | |
35465 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35466 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35467 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35468 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35470 | else | |
35471 | cat >conftest.$ac_ext <<_ACEOF | |
35472 | /* confdefs.h. */ | |
35473 | _ACEOF | |
35474 | cat confdefs.h >>conftest.$ac_ext | |
35475 | cat >>conftest.$ac_ext <<_ACEOF | |
35476 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35477 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35478 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35479 | #define $ac_func innocuous_$ac_func | |
35480 | ||
a848cd7e SC |
35481 | /* System header to define __stub macros and hopefully few prototypes, |
35482 | which can conflict with char $ac_func (); below. | |
35483 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35484 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35485 | |
a848cd7e SC |
35486 | #ifdef __STDC__ |
35487 | # include <limits.h> | |
35488 | #else | |
35489 | # include <assert.h> | |
35490 | #endif | |
ac1cb8d3 VS |
35491 | |
35492 | #undef $ac_func | |
35493 | ||
a848cd7e SC |
35494 | /* Override any gcc2 internal prototype to avoid an error. */ |
35495 | #ifdef __cplusplus | |
35496 | extern "C" | |
35497 | { | |
35498 | #endif | |
35499 | /* We use char because int might match the return type of a gcc2 | |
35500 | builtin and then its argument prototype would still apply. */ | |
35501 | char $ac_func (); | |
35502 | /* The GNU C library defines this for functions which it implements | |
35503 | to always fail with ENOSYS. Some functions are actually named | |
35504 | something starting with __ and the normal name is an alias. */ | |
35505 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35506 | choke me | |
35507 | #else | |
35508 | char (*f) () = $ac_func; | |
35509 | #endif | |
35510 | #ifdef __cplusplus | |
35511 | } | |
35512 | #endif | |
35513 | ||
35514 | int | |
35515 | main () | |
35516 | { | |
35517 | return f != $ac_func; | |
35518 | ; | |
35519 | return 0; | |
35520 | } | |
35521 | _ACEOF | |
35522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35524 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35525 | ac_status=$? |
ac1cb8d3 VS |
35526 | grep -v '^ *+' conftest.er1 >conftest.err |
35527 | rm -f conftest.er1 | |
35528 | cat conftest.err >&5 | |
a848cd7e SC |
35529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35530 | (exit $ac_status); } && | |
3565d135 RR |
35531 | { ac_try='test -z "$ac_c_werror_flag" |
35532 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35534 | (eval $ac_try) 2>&5 | |
35535 | ac_status=$? | |
35536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35537 | (exit $ac_status); }; } && | |
35538 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35540 | (eval $ac_try) 2>&5 | |
35541 | ac_status=$? | |
35542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35543 | (exit $ac_status); }; }; then | |
35544 | eval "$as_ac_var=yes" | |
35545 | else | |
35546 | echo "$as_me: failed program was:" >&5 | |
35547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35548 | ||
35549 | eval "$as_ac_var=no" | |
35550 | fi | |
ac1cb8d3 VS |
35551 | rm -f conftest.err conftest.$ac_objext \ |
35552 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35553 | fi |
35554 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35555 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35556 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35557 | cat >>confdefs.h <<_ACEOF | |
35558 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35559 | _ACEOF | |
35560 | cat >>confdefs.h <<\_ACEOF | |
35561 | #define HAVE_NANOSLEEP 1 | |
35562 | _ACEOF | |
35563 | ||
35564 | else | |
35565 | ||
35566 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
35567 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
35568 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
35569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35570 | else | |
35571 | ac_check_lib_save_LIBS=$LIBS | |
35572 | LIBS="-lposix4 $LIBS" | |
35573 | cat >conftest.$ac_ext <<_ACEOF | |
35574 | /* confdefs.h. */ | |
35575 | _ACEOF | |
35576 | cat confdefs.h >>conftest.$ac_ext | |
35577 | cat >>conftest.$ac_ext <<_ACEOF | |
35578 | /* end confdefs.h. */ | |
35579 | ||
35580 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35581 | #ifdef __cplusplus | |
35582 | extern "C" | |
35583 | #endif | |
35584 | /* We use char because int might match the return type of a gcc2 | |
35585 | builtin and then its argument prototype would still apply. */ | |
35586 | char nanosleep (); | |
35587 | int | |
35588 | main () | |
35589 | { | |
35590 | nanosleep (); | |
35591 | ; | |
35592 | return 0; | |
35593 | } | |
35594 | _ACEOF | |
35595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35597 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35598 | ac_status=$? |
ac1cb8d3 VS |
35599 | grep -v '^ *+' conftest.er1 >conftest.err |
35600 | rm -f conftest.er1 | |
35601 | cat conftest.err >&5 | |
a848cd7e SC |
35602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35603 | (exit $ac_status); } && | |
3565d135 RR |
35604 | { ac_try='test -z "$ac_c_werror_flag" |
35605 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35607 | (eval $ac_try) 2>&5 | |
35608 | ac_status=$? | |
35609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35610 | (exit $ac_status); }; } && | |
35611 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35613 | (eval $ac_try) 2>&5 | |
35614 | ac_status=$? | |
35615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35616 | (exit $ac_status); }; }; then | |
35617 | ac_cv_lib_posix4_nanosleep=yes | |
35618 | else | |
35619 | echo "$as_me: failed program was:" >&5 | |
35620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35621 | ||
35622 | ac_cv_lib_posix4_nanosleep=no | |
35623 | fi | |
ac1cb8d3 VS |
35624 | rm -f conftest.err conftest.$ac_objext \ |
35625 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35626 | LIBS=$ac_check_lib_save_LIBS |
35627 | fi | |
35628 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
35629 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
35630 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
35631 | ||
35632 | cat >>confdefs.h <<\_ACEOF | |
35633 | #define HAVE_NANOSLEEP 1 | |
35634 | _ACEOF | |
35635 | ||
35636 | POSIX4_LINK=" -lposix4" | |
35637 | ||
35638 | else | |
35639 | ||
35640 | ||
35641 | for ac_func in usleep | |
35642 | do | |
35643 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35644 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35645 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35646 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35648 | else | |
35649 | cat >conftest.$ac_ext <<_ACEOF | |
35650 | /* confdefs.h. */ | |
35651 | _ACEOF | |
35652 | cat confdefs.h >>conftest.$ac_ext | |
35653 | cat >>conftest.$ac_ext <<_ACEOF | |
35654 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35655 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35656 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35657 | #define $ac_func innocuous_$ac_func | |
35658 | ||
a848cd7e SC |
35659 | /* System header to define __stub macros and hopefully few prototypes, |
35660 | which can conflict with char $ac_func (); below. | |
35661 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35662 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35663 | |
a848cd7e SC |
35664 | #ifdef __STDC__ |
35665 | # include <limits.h> | |
35666 | #else | |
35667 | # include <assert.h> | |
35668 | #endif | |
ac1cb8d3 VS |
35669 | |
35670 | #undef $ac_func | |
35671 | ||
a848cd7e SC |
35672 | /* Override any gcc2 internal prototype to avoid an error. */ |
35673 | #ifdef __cplusplus | |
35674 | extern "C" | |
35675 | { | |
35676 | #endif | |
35677 | /* We use char because int might match the return type of a gcc2 | |
35678 | builtin and then its argument prototype would still apply. */ | |
35679 | char $ac_func (); | |
35680 | /* The GNU C library defines this for functions which it implements | |
35681 | to always fail with ENOSYS. Some functions are actually named | |
35682 | something starting with __ and the normal name is an alias. */ | |
35683 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35684 | choke me | |
35685 | #else | |
35686 | char (*f) () = $ac_func; | |
35687 | #endif | |
35688 | #ifdef __cplusplus | |
35689 | } | |
35690 | #endif | |
35691 | ||
35692 | int | |
35693 | main () | |
35694 | { | |
35695 | return f != $ac_func; | |
35696 | ; | |
35697 | return 0; | |
35698 | } | |
35699 | _ACEOF | |
35700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35702 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35703 | ac_status=$? |
ac1cb8d3 VS |
35704 | grep -v '^ *+' conftest.er1 >conftest.err |
35705 | rm -f conftest.er1 | |
35706 | cat conftest.err >&5 | |
a848cd7e SC |
35707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35708 | (exit $ac_status); } && | |
3565d135 RR |
35709 | { ac_try='test -z "$ac_c_werror_flag" |
35710 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35712 | (eval $ac_try) 2>&5 | |
35713 | ac_status=$? | |
35714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35715 | (exit $ac_status); }; } && | |
35716 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35718 | (eval $ac_try) 2>&5 | |
35719 | ac_status=$? | |
35720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35721 | (exit $ac_status); }; }; then | |
35722 | eval "$as_ac_var=yes" | |
35723 | else | |
35724 | echo "$as_me: failed program was:" >&5 | |
35725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35726 | ||
35727 | eval "$as_ac_var=no" | |
35728 | fi | |
ac1cb8d3 VS |
35729 | rm -f conftest.err conftest.$ac_objext \ |
35730 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35731 | fi |
35732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35733 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35734 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35735 | cat >>confdefs.h <<_ACEOF | |
35736 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35737 | _ACEOF | |
35738 | cat >>confdefs.h <<\_ACEOF | |
35739 | #define HAVE_USLEEP 1 | |
35740 | _ACEOF | |
35741 | ||
35742 | else | |
35743 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
35744 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
35745 | ||
35746 | fi | |
35747 | done | |
35748 | ||
35749 | ||
35750 | ||
35751 | fi | |
35752 | ||
35753 | ||
35754 | ||
35755 | fi | |
35756 | done | |
35757 | ||
35758 | fi | |
35759 | ||
35760 | ||
35761 | ||
35762 | for ac_func in uname gethostname | |
35763 | do | |
35764 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35765 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35766 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35767 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35769 | else | |
35770 | cat >conftest.$ac_ext <<_ACEOF | |
35771 | /* confdefs.h. */ | |
35772 | _ACEOF | |
35773 | cat confdefs.h >>conftest.$ac_ext | |
35774 | cat >>conftest.$ac_ext <<_ACEOF | |
35775 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35776 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35777 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35778 | #define $ac_func innocuous_$ac_func | |
35779 | ||
a848cd7e SC |
35780 | /* System header to define __stub macros and hopefully few prototypes, |
35781 | which can conflict with char $ac_func (); below. | |
35782 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35783 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35784 | |
a848cd7e SC |
35785 | #ifdef __STDC__ |
35786 | # include <limits.h> | |
35787 | #else | |
35788 | # include <assert.h> | |
35789 | #endif | |
ac1cb8d3 VS |
35790 | |
35791 | #undef $ac_func | |
35792 | ||
a848cd7e SC |
35793 | /* Override any gcc2 internal prototype to avoid an error. */ |
35794 | #ifdef __cplusplus | |
35795 | extern "C" | |
35796 | { | |
35797 | #endif | |
35798 | /* We use char because int might match the return type of a gcc2 | |
35799 | builtin and then its argument prototype would still apply. */ | |
35800 | char $ac_func (); | |
35801 | /* The GNU C library defines this for functions which it implements | |
35802 | to always fail with ENOSYS. Some functions are actually named | |
35803 | something starting with __ and the normal name is an alias. */ | |
35804 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35805 | choke me | |
35806 | #else | |
35807 | char (*f) () = $ac_func; | |
35808 | #endif | |
35809 | #ifdef __cplusplus | |
35810 | } | |
35811 | #endif | |
35812 | ||
35813 | int | |
35814 | main () | |
35815 | { | |
35816 | return f != $ac_func; | |
35817 | ; | |
35818 | return 0; | |
35819 | } | |
35820 | _ACEOF | |
35821 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35823 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35824 | ac_status=$? |
ac1cb8d3 VS |
35825 | grep -v '^ *+' conftest.er1 >conftest.err |
35826 | rm -f conftest.er1 | |
35827 | cat conftest.err >&5 | |
a848cd7e SC |
35828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35829 | (exit $ac_status); } && | |
3565d135 RR |
35830 | { ac_try='test -z "$ac_c_werror_flag" |
35831 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35833 | (eval $ac_try) 2>&5 | |
35834 | ac_status=$? | |
35835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35836 | (exit $ac_status); }; } && | |
35837 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35839 | (eval $ac_try) 2>&5 | |
35840 | ac_status=$? | |
35841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35842 | (exit $ac_status); }; }; then | |
35843 | eval "$as_ac_var=yes" | |
35844 | else | |
35845 | echo "$as_me: failed program was:" >&5 | |
35846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35847 | ||
35848 | eval "$as_ac_var=no" | |
35849 | fi | |
ac1cb8d3 VS |
35850 | rm -f conftest.err conftest.$ac_objext \ |
35851 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35852 | fi |
35853 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35854 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35855 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35856 | cat >>confdefs.h <<_ACEOF | |
35857 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35858 | _ACEOF | |
35859 | break | |
35860 | fi | |
35861 | done | |
35862 | ||
35863 | ||
35864 | ||
35865 | ||
35866 | ac_ext=cc | |
35867 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35868 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35869 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35870 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35871 | ||
35872 | ||
35873 | ||
35874 | for ac_func in strtok_r | |
35875 | do | |
35876 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35877 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35878 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35879 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35881 | else | |
35882 | cat >conftest.$ac_ext <<_ACEOF | |
35883 | /* confdefs.h. */ | |
35884 | _ACEOF | |
35885 | cat confdefs.h >>conftest.$ac_ext | |
35886 | cat >>conftest.$ac_ext <<_ACEOF | |
35887 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35888 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35889 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35890 | #define $ac_func innocuous_$ac_func | |
35891 | ||
a848cd7e SC |
35892 | /* System header to define __stub macros and hopefully few prototypes, |
35893 | which can conflict with char $ac_func (); below. | |
35894 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35895 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35896 | |
a848cd7e SC |
35897 | #ifdef __STDC__ |
35898 | # include <limits.h> | |
35899 | #else | |
35900 | # include <assert.h> | |
35901 | #endif | |
ac1cb8d3 VS |
35902 | |
35903 | #undef $ac_func | |
35904 | ||
a848cd7e SC |
35905 | /* Override any gcc2 internal prototype to avoid an error. */ |
35906 | #ifdef __cplusplus | |
35907 | extern "C" | |
35908 | { | |
35909 | #endif | |
35910 | /* We use char because int might match the return type of a gcc2 | |
35911 | builtin and then its argument prototype would still apply. */ | |
35912 | char $ac_func (); | |
35913 | /* The GNU C library defines this for functions which it implements | |
35914 | to always fail with ENOSYS. Some functions are actually named | |
35915 | something starting with __ and the normal name is an alias. */ | |
35916 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35917 | choke me | |
35918 | #else | |
35919 | char (*f) () = $ac_func; | |
35920 | #endif | |
35921 | #ifdef __cplusplus | |
35922 | } | |
35923 | #endif | |
35924 | ||
35925 | int | |
35926 | main () | |
35927 | { | |
35928 | return f != $ac_func; | |
35929 | ; | |
35930 | return 0; | |
35931 | } | |
35932 | _ACEOF | |
35933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35935 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35936 | ac_status=$? |
ac1cb8d3 VS |
35937 | grep -v '^ *+' conftest.er1 >conftest.err |
35938 | rm -f conftest.er1 | |
35939 | cat conftest.err >&5 | |
a848cd7e SC |
35940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35941 | (exit $ac_status); } && | |
3565d135 RR |
35942 | { ac_try='test -z "$ac_cxx_werror_flag" |
35943 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35945 | (eval $ac_try) 2>&5 | |
35946 | ac_status=$? | |
35947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35948 | (exit $ac_status); }; } && | |
35949 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35951 | (eval $ac_try) 2>&5 | |
35952 | ac_status=$? | |
35953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35954 | (exit $ac_status); }; }; then | |
35955 | eval "$as_ac_var=yes" | |
35956 | else | |
35957 | echo "$as_me: failed program was:" >&5 | |
35958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35959 | ||
35960 | eval "$as_ac_var=no" | |
35961 | fi | |
ac1cb8d3 VS |
35962 | rm -f conftest.err conftest.$ac_objext \ |
35963 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35964 | fi |
35965 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35966 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35967 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35968 | cat >>confdefs.h <<_ACEOF | |
35969 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35970 | _ACEOF | |
35971 | ||
35972 | fi | |
35973 | done | |
35974 | ||
35975 | ||
35976 | ac_ext=c | |
35977 | ac_cpp='$CPP $CPPFLAGS' | |
35978 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35979 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35980 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35981 | ||
35982 | ||
35983 | INET_LINK= | |
35984 | ||
35985 | for ac_func in inet_addr | |
35986 | do | |
35987 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35988 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35989 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35990 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35992 | else | |
35993 | cat >conftest.$ac_ext <<_ACEOF | |
35994 | /* confdefs.h. */ | |
35995 | _ACEOF | |
35996 | cat confdefs.h >>conftest.$ac_ext | |
35997 | cat >>conftest.$ac_ext <<_ACEOF | |
35998 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35999 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36000 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36001 | #define $ac_func innocuous_$ac_func | |
36002 | ||
a848cd7e SC |
36003 | /* System header to define __stub macros and hopefully few prototypes, |
36004 | which can conflict with char $ac_func (); below. | |
36005 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36006 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36007 | |
a848cd7e SC |
36008 | #ifdef __STDC__ |
36009 | # include <limits.h> | |
36010 | #else | |
36011 | # include <assert.h> | |
36012 | #endif | |
ac1cb8d3 VS |
36013 | |
36014 | #undef $ac_func | |
36015 | ||
a848cd7e SC |
36016 | /* Override any gcc2 internal prototype to avoid an error. */ |
36017 | #ifdef __cplusplus | |
36018 | extern "C" | |
36019 | { | |
36020 | #endif | |
36021 | /* We use char because int might match the return type of a gcc2 | |
36022 | builtin and then its argument prototype would still apply. */ | |
36023 | char $ac_func (); | |
36024 | /* The GNU C library defines this for functions which it implements | |
36025 | to always fail with ENOSYS. Some functions are actually named | |
36026 | something starting with __ and the normal name is an alias. */ | |
36027 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36028 | choke me | |
36029 | #else | |
36030 | char (*f) () = $ac_func; | |
36031 | #endif | |
36032 | #ifdef __cplusplus | |
36033 | } | |
36034 | #endif | |
36035 | ||
36036 | int | |
36037 | main () | |
36038 | { | |
36039 | return f != $ac_func; | |
36040 | ; | |
36041 | return 0; | |
36042 | } | |
36043 | _ACEOF | |
36044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36046 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36047 | ac_status=$? |
ac1cb8d3 VS |
36048 | grep -v '^ *+' conftest.er1 >conftest.err |
36049 | rm -f conftest.er1 | |
36050 | cat conftest.err >&5 | |
a848cd7e SC |
36051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36052 | (exit $ac_status); } && | |
3565d135 RR |
36053 | { ac_try='test -z "$ac_c_werror_flag" |
36054 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36056 | (eval $ac_try) 2>&5 | |
36057 | ac_status=$? | |
36058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36059 | (exit $ac_status); }; } && | |
36060 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36062 | (eval $ac_try) 2>&5 | |
36063 | ac_status=$? | |
36064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36065 | (exit $ac_status); }; }; then | |
36066 | eval "$as_ac_var=yes" | |
36067 | else | |
36068 | echo "$as_me: failed program was:" >&5 | |
36069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36070 | ||
36071 | eval "$as_ac_var=no" | |
36072 | fi | |
ac1cb8d3 VS |
36073 | rm -f conftest.err conftest.$ac_objext \ |
36074 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36075 | fi |
36076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36077 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36078 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36079 | cat >>confdefs.h <<_ACEOF | |
36080 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36081 | _ACEOF | |
36082 | cat >>confdefs.h <<\_ACEOF | |
36083 | #define HAVE_INET_ADDR 1 | |
36084 | _ACEOF | |
36085 | ||
36086 | else | |
36087 | ||
36088 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
36089 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
36090 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
36091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36092 | else | |
36093 | ac_check_lib_save_LIBS=$LIBS | |
36094 | LIBS="-lnsl $LIBS" | |
36095 | cat >conftest.$ac_ext <<_ACEOF | |
36096 | /* confdefs.h. */ | |
36097 | _ACEOF | |
36098 | cat confdefs.h >>conftest.$ac_ext | |
36099 | cat >>conftest.$ac_ext <<_ACEOF | |
36100 | /* end confdefs.h. */ | |
36101 | ||
36102 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36103 | #ifdef __cplusplus | |
36104 | extern "C" | |
36105 | #endif | |
36106 | /* We use char because int might match the return type of a gcc2 | |
36107 | builtin and then its argument prototype would still apply. */ | |
36108 | char inet_addr (); | |
36109 | int | |
36110 | main () | |
36111 | { | |
36112 | inet_addr (); | |
36113 | ; | |
36114 | return 0; | |
36115 | } | |
36116 | _ACEOF | |
36117 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36119 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36120 | ac_status=$? |
ac1cb8d3 VS |
36121 | grep -v '^ *+' conftest.er1 >conftest.err |
36122 | rm -f conftest.er1 | |
36123 | cat conftest.err >&5 | |
a848cd7e SC |
36124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36125 | (exit $ac_status); } && | |
3565d135 RR |
36126 | { ac_try='test -z "$ac_c_werror_flag" |
36127 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36129 | (eval $ac_try) 2>&5 | |
36130 | ac_status=$? | |
36131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36132 | (exit $ac_status); }; } && | |
36133 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36135 | (eval $ac_try) 2>&5 | |
36136 | ac_status=$? | |
36137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36138 | (exit $ac_status); }; }; then | |
36139 | ac_cv_lib_nsl_inet_addr=yes | |
36140 | else | |
36141 | echo "$as_me: failed program was:" >&5 | |
36142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36143 | ||
36144 | ac_cv_lib_nsl_inet_addr=no | |
36145 | fi | |
ac1cb8d3 VS |
36146 | rm -f conftest.err conftest.$ac_objext \ |
36147 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36148 | LIBS=$ac_check_lib_save_LIBS |
36149 | fi | |
36150 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
36151 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
36152 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
36153 | INET_LINK="nsl" | |
36154 | else | |
36155 | ||
36156 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
36157 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
36158 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
36159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36160 | else | |
36161 | ac_check_lib_save_LIBS=$LIBS | |
36162 | LIBS="-lresolv $LIBS" | |
36163 | cat >conftest.$ac_ext <<_ACEOF | |
36164 | /* confdefs.h. */ | |
36165 | _ACEOF | |
36166 | cat confdefs.h >>conftest.$ac_ext | |
36167 | cat >>conftest.$ac_ext <<_ACEOF | |
36168 | /* end confdefs.h. */ | |
36169 | ||
36170 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36171 | #ifdef __cplusplus | |
36172 | extern "C" | |
36173 | #endif | |
36174 | /* We use char because int might match the return type of a gcc2 | |
36175 | builtin and then its argument prototype would still apply. */ | |
36176 | char inet_addr (); | |
36177 | int | |
36178 | main () | |
36179 | { | |
36180 | inet_addr (); | |
36181 | ; | |
36182 | return 0; | |
36183 | } | |
36184 | _ACEOF | |
36185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36187 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36188 | ac_status=$? |
ac1cb8d3 VS |
36189 | grep -v '^ *+' conftest.er1 >conftest.err |
36190 | rm -f conftest.er1 | |
36191 | cat conftest.err >&5 | |
a848cd7e SC |
36192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36193 | (exit $ac_status); } && | |
3565d135 RR |
36194 | { ac_try='test -z "$ac_c_werror_flag" |
36195 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36197 | (eval $ac_try) 2>&5 | |
36198 | ac_status=$? | |
36199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36200 | (exit $ac_status); }; } && | |
36201 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36203 | (eval $ac_try) 2>&5 | |
36204 | ac_status=$? | |
36205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36206 | (exit $ac_status); }; }; then | |
36207 | ac_cv_lib_resolv_inet_addr=yes | |
36208 | else | |
36209 | echo "$as_me: failed program was:" >&5 | |
36210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36211 | ||
36212 | ac_cv_lib_resolv_inet_addr=no | |
36213 | fi | |
ac1cb8d3 VS |
36214 | rm -f conftest.err conftest.$ac_objext \ |
36215 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36216 | LIBS=$ac_check_lib_save_LIBS |
36217 | fi | |
36218 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
36219 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
36220 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
36221 | INET_LINK="resolv" | |
36222 | else | |
36223 | ||
36224 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
36225 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
36226 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
36227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36228 | else | |
36229 | ac_check_lib_save_LIBS=$LIBS | |
36230 | LIBS="-lsocket $LIBS" | |
36231 | cat >conftest.$ac_ext <<_ACEOF | |
36232 | /* confdefs.h. */ | |
36233 | _ACEOF | |
36234 | cat confdefs.h >>conftest.$ac_ext | |
36235 | cat >>conftest.$ac_ext <<_ACEOF | |
36236 | /* end confdefs.h. */ | |
36237 | ||
36238 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36239 | #ifdef __cplusplus | |
36240 | extern "C" | |
36241 | #endif | |
36242 | /* We use char because int might match the return type of a gcc2 | |
36243 | builtin and then its argument prototype would still apply. */ | |
36244 | char inet_addr (); | |
36245 | int | |
36246 | main () | |
36247 | { | |
36248 | inet_addr (); | |
36249 | ; | |
36250 | return 0; | |
36251 | } | |
36252 | _ACEOF | |
36253 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36255 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36256 | ac_status=$? |
ac1cb8d3 VS |
36257 | grep -v '^ *+' conftest.er1 >conftest.err |
36258 | rm -f conftest.er1 | |
36259 | cat conftest.err >&5 | |
a848cd7e SC |
36260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36261 | (exit $ac_status); } && | |
3565d135 RR |
36262 | { ac_try='test -z "$ac_c_werror_flag" |
36263 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36265 | (eval $ac_try) 2>&5 | |
36266 | ac_status=$? | |
36267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36268 | (exit $ac_status); }; } && | |
36269 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36271 | (eval $ac_try) 2>&5 | |
36272 | ac_status=$? | |
36273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36274 | (exit $ac_status); }; }; then | |
36275 | ac_cv_lib_socket_inet_addr=yes | |
36276 | else | |
36277 | echo "$as_me: failed program was:" >&5 | |
36278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36279 | ||
36280 | ac_cv_lib_socket_inet_addr=no | |
36281 | fi | |
ac1cb8d3 VS |
36282 | rm -f conftest.err conftest.$ac_objext \ |
36283 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36284 | LIBS=$ac_check_lib_save_LIBS |
36285 | fi | |
36286 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
36287 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
36288 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
36289 | INET_LINK="socket" | |
36290 | ||
36291 | fi | |
36292 | ||
36293 | ||
36294 | ||
36295 | fi | |
36296 | ||
36297 | ||
36298 | ||
36299 | fi | |
36300 | ||
36301 | ||
36302 | ||
36303 | fi | |
36304 | done | |
36305 | ||
36306 | ||
36307 | ||
36308 | for ac_func in inet_aton | |
36309 | do | |
36310 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36311 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36312 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36313 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36315 | else | |
36316 | cat >conftest.$ac_ext <<_ACEOF | |
36317 | /* confdefs.h. */ | |
36318 | _ACEOF | |
36319 | cat confdefs.h >>conftest.$ac_ext | |
36320 | cat >>conftest.$ac_ext <<_ACEOF | |
36321 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36322 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36323 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36324 | #define $ac_func innocuous_$ac_func | |
36325 | ||
a848cd7e SC |
36326 | /* System header to define __stub macros and hopefully few prototypes, |
36327 | which can conflict with char $ac_func (); below. | |
36328 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36329 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36330 | |
a848cd7e SC |
36331 | #ifdef __STDC__ |
36332 | # include <limits.h> | |
36333 | #else | |
36334 | # include <assert.h> | |
36335 | #endif | |
ac1cb8d3 VS |
36336 | |
36337 | #undef $ac_func | |
36338 | ||
a848cd7e SC |
36339 | /* Override any gcc2 internal prototype to avoid an error. */ |
36340 | #ifdef __cplusplus | |
36341 | extern "C" | |
36342 | { | |
36343 | #endif | |
36344 | /* We use char because int might match the return type of a gcc2 | |
36345 | builtin and then its argument prototype would still apply. */ | |
36346 | char $ac_func (); | |
36347 | /* The GNU C library defines this for functions which it implements | |
36348 | to always fail with ENOSYS. Some functions are actually named | |
36349 | something starting with __ and the normal name is an alias. */ | |
36350 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36351 | choke me | |
36352 | #else | |
36353 | char (*f) () = $ac_func; | |
36354 | #endif | |
36355 | #ifdef __cplusplus | |
36356 | } | |
36357 | #endif | |
36358 | ||
36359 | int | |
36360 | main () | |
36361 | { | |
36362 | return f != $ac_func; | |
36363 | ; | |
36364 | return 0; | |
36365 | } | |
36366 | _ACEOF | |
36367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36369 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36370 | ac_status=$? |
ac1cb8d3 VS |
36371 | grep -v '^ *+' conftest.er1 >conftest.err |
36372 | rm -f conftest.er1 | |
36373 | cat conftest.err >&5 | |
a848cd7e SC |
36374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36375 | (exit $ac_status); } && | |
3565d135 RR |
36376 | { ac_try='test -z "$ac_c_werror_flag" |
36377 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36379 | (eval $ac_try) 2>&5 | |
36380 | ac_status=$? | |
36381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36382 | (exit $ac_status); }; } && | |
36383 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36385 | (eval $ac_try) 2>&5 | |
36386 | ac_status=$? | |
36387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36388 | (exit $ac_status); }; }; then | |
36389 | eval "$as_ac_var=yes" | |
36390 | else | |
36391 | echo "$as_me: failed program was:" >&5 | |
36392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36393 | ||
36394 | eval "$as_ac_var=no" | |
36395 | fi | |
ac1cb8d3 VS |
36396 | rm -f conftest.err conftest.$ac_objext \ |
36397 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36398 | fi |
36399 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36400 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36401 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36402 | cat >>confdefs.h <<_ACEOF | |
36403 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36404 | _ACEOF | |
36405 | cat >>confdefs.h <<\_ACEOF | |
36406 | #define HAVE_INET_ATON 1 | |
36407 | _ACEOF | |
36408 | ||
36409 | else | |
36410 | ||
36411 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
36412 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
36413 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
36414 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
36415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36416 | else | |
36417 | ac_check_lib_save_LIBS=$LIBS | |
36418 | LIBS="-l$INET_LINK $LIBS" | |
36419 | cat >conftest.$ac_ext <<_ACEOF | |
36420 | /* confdefs.h. */ | |
36421 | _ACEOF | |
36422 | cat confdefs.h >>conftest.$ac_ext | |
36423 | cat >>conftest.$ac_ext <<_ACEOF | |
36424 | /* end confdefs.h. */ | |
36425 | ||
36426 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36427 | #ifdef __cplusplus | |
36428 | extern "C" | |
36429 | #endif | |
36430 | /* We use char because int might match the return type of a gcc2 | |
36431 | builtin and then its argument prototype would still apply. */ | |
36432 | char inet_aton (); | |
36433 | int | |
36434 | main () | |
36435 | { | |
36436 | inet_aton (); | |
36437 | ; | |
36438 | return 0; | |
36439 | } | |
36440 | _ACEOF | |
36441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36443 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36444 | ac_status=$? |
ac1cb8d3 VS |
36445 | grep -v '^ *+' conftest.er1 >conftest.err |
36446 | rm -f conftest.er1 | |
36447 | cat conftest.err >&5 | |
a848cd7e SC |
36448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36449 | (exit $ac_status); } && | |
3565d135 RR |
36450 | { ac_try='test -z "$ac_c_werror_flag" |
36451 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36453 | (eval $ac_try) 2>&5 | |
36454 | ac_status=$? | |
36455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36456 | (exit $ac_status); }; } && | |
36457 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36459 | (eval $ac_try) 2>&5 | |
36460 | ac_status=$? | |
36461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36462 | (exit $ac_status); }; }; then | |
36463 | eval "$as_ac_Lib=yes" | |
36464 | else | |
36465 | echo "$as_me: failed program was:" >&5 | |
36466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36467 | ||
36468 | eval "$as_ac_Lib=no" | |
36469 | fi | |
ac1cb8d3 VS |
36470 | rm -f conftest.err conftest.$ac_objext \ |
36471 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36472 | LIBS=$ac_check_lib_save_LIBS |
36473 | fi | |
36474 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
36475 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
36476 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
36477 | cat >>confdefs.h <<\_ACEOF | |
36478 | #define HAVE_INET_ATON 1 | |
36479 | _ACEOF | |
36480 | ||
36481 | fi | |
36482 | ||
36483 | ||
36484 | fi | |
36485 | done | |
36486 | ||
36487 | ||
36488 | if test "x$INET_LINK" != "x"; then | |
36489 | cat >>confdefs.h <<\_ACEOF | |
36490 | #define HAVE_INET_ADDR 1 | |
36491 | _ACEOF | |
36492 | ||
36493 | INET_LINK=" -l$INET_LINK" | |
36494 | fi | |
36495 | ||
36496 | fi | |
36497 | ||
36498 | ||
36499 | ||
36500 | EXTRALIBS_ESD= | |
36501 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
36502 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
36503 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
36504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36505 | else | |
36506 | ac_check_lib_save_LIBS=$LIBS | |
36507 | LIBS="-lesd $LIBS" | |
36508 | cat >conftest.$ac_ext <<_ACEOF | |
36509 | /* confdefs.h. */ | |
36510 | _ACEOF | |
36511 | cat confdefs.h >>conftest.$ac_ext | |
36512 | cat >>conftest.$ac_ext <<_ACEOF | |
36513 | /* end confdefs.h. */ | |
36514 | ||
36515 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36516 | #ifdef __cplusplus | |
36517 | extern "C" | |
36518 | #endif | |
36519 | /* We use char because int might match the return type of a gcc2 | |
36520 | builtin and then its argument prototype would still apply. */ | |
36521 | char esd_close (); | |
36522 | int | |
36523 | main () | |
36524 | { | |
36525 | esd_close (); | |
36526 | ; | |
36527 | return 0; | |
36528 | } | |
36529 | _ACEOF | |
36530 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36532 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36533 | ac_status=$? |
ac1cb8d3 VS |
36534 | grep -v '^ *+' conftest.er1 >conftest.err |
36535 | rm -f conftest.er1 | |
36536 | cat conftest.err >&5 | |
a848cd7e SC |
36537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36538 | (exit $ac_status); } && | |
3565d135 RR |
36539 | { ac_try='test -z "$ac_c_werror_flag" |
36540 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36542 | (eval $ac_try) 2>&5 | |
36543 | ac_status=$? | |
36544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36545 | (exit $ac_status); }; } && | |
36546 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36548 | (eval $ac_try) 2>&5 | |
36549 | ac_status=$? | |
36550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36551 | (exit $ac_status); }; }; then | |
36552 | ac_cv_lib_esd_esd_close=yes | |
36553 | else | |
36554 | echo "$as_me: failed program was:" >&5 | |
36555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36556 | ||
36557 | ac_cv_lib_esd_esd_close=no | |
36558 | fi | |
ac1cb8d3 VS |
36559 | rm -f conftest.err conftest.$ac_objext \ |
36560 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36561 | LIBS=$ac_check_lib_save_LIBS |
36562 | fi | |
36563 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
36564 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
36565 | if test $ac_cv_lib_esd_esd_close = yes; then | |
36566 | ||
36567 | ||
36568 | for ac_header in esd.h | |
36569 | do | |
36570 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36571 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36572 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36573 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36574 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36576 | fi | |
36577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36578 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36579 | else | |
36580 | # Is the header compilable? | |
36581 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36582 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36583 | cat >conftest.$ac_ext <<_ACEOF | |
36584 | /* confdefs.h. */ | |
36585 | _ACEOF | |
36586 | cat confdefs.h >>conftest.$ac_ext | |
36587 | cat >>conftest.$ac_ext <<_ACEOF | |
36588 | /* end confdefs.h. */ | |
36589 | $ac_includes_default | |
36590 | #include <$ac_header> | |
36591 | _ACEOF | |
36592 | rm -f conftest.$ac_objext | |
36593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36594 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36595 | ac_status=$? |
ac1cb8d3 VS |
36596 | grep -v '^ *+' conftest.er1 >conftest.err |
36597 | rm -f conftest.er1 | |
36598 | cat conftest.err >&5 | |
a848cd7e SC |
36599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36600 | (exit $ac_status); } && | |
3565d135 RR |
36601 | { ac_try='test -z "$ac_c_werror_flag" |
36602 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36604 | (eval $ac_try) 2>&5 | |
36605 | ac_status=$? | |
36606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36607 | (exit $ac_status); }; } && | |
36608 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36610 | (eval $ac_try) 2>&5 | |
36611 | ac_status=$? | |
36612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36613 | (exit $ac_status); }; }; then | |
36614 | ac_header_compiler=yes | |
36615 | else | |
36616 | echo "$as_me: failed program was:" >&5 | |
36617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36618 | ||
36619 | ac_header_compiler=no | |
36620 | fi | |
ac1cb8d3 | 36621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36622 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36623 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36624 | ||
36625 | # Is the header present? | |
36626 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36627 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36628 | cat >conftest.$ac_ext <<_ACEOF | |
36629 | /* confdefs.h. */ | |
36630 | _ACEOF | |
36631 | cat confdefs.h >>conftest.$ac_ext | |
36632 | cat >>conftest.$ac_ext <<_ACEOF | |
36633 | /* end confdefs.h. */ | |
36634 | #include <$ac_header> | |
36635 | _ACEOF | |
36636 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36637 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36638 | ac_status=$? | |
36639 | grep -v '^ *+' conftest.er1 >conftest.err | |
36640 | rm -f conftest.er1 | |
36641 | cat conftest.err >&5 | |
36642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36643 | (exit $ac_status); } >/dev/null; then | |
36644 | if test -s conftest.err; then | |
36645 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36646 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36647 | else |
36648 | ac_cpp_err= | |
36649 | fi | |
36650 | else | |
36651 | ac_cpp_err=yes | |
36652 | fi | |
36653 | if test -z "$ac_cpp_err"; then | |
36654 | ac_header_preproc=yes | |
36655 | else | |
36656 | echo "$as_me: failed program was:" >&5 | |
36657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36658 | ||
36659 | ac_header_preproc=no | |
36660 | fi | |
36661 | rm -f conftest.err conftest.$ac_ext | |
36662 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36663 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36664 | ||
36665 | # So? What about this header? | |
ac1cb8d3 VS |
36666 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36667 | yes:no: ) | |
a848cd7e SC |
36668 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36669 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36670 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36671 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36672 | ac_header_preproc=yes | |
a848cd7e | 36673 | ;; |
ac1cb8d3 | 36674 | no:yes:* ) |
a848cd7e SC |
36675 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36676 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36677 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36678 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36679 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36680 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36681 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36682 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36683 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36684 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36685 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36686 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36687 | ( |
36688 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36689 | ## ----------------------------------------- ## |
36690 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36691 | ## ----------------------------------------- ## | |
a848cd7e SC |
36692 | _ASBOX |
36693 | ) | | |
36694 | sed "s/^/$as_me: WARNING: /" >&2 | |
36695 | ;; | |
36696 | esac | |
36697 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36698 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36699 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36701 | else | |
ac1cb8d3 | 36702 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36703 | fi |
36704 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36705 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36706 | ||
36707 | fi | |
36708 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36709 | cat >>confdefs.h <<_ACEOF | |
36710 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36711 | _ACEOF | |
36712 | ||
36713 | EXTRALIBS_ESD="-lesd" | |
36714 | ||
36715 | fi | |
36716 | ||
36717 | done | |
36718 | ||
36719 | ||
36720 | fi | |
36721 | ||
36722 | ||
36723 | ||
36724 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
36725 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
36726 | cat >conftest.$ac_ext <<_ACEOF | |
36727 | /* confdefs.h. */ | |
36728 | _ACEOF | |
36729 | cat confdefs.h >>conftest.$ac_ext | |
36730 | cat >>conftest.$ac_ext <<_ACEOF | |
36731 | /* end confdefs.h. */ | |
36732 | #ifdef __linux__ | |
36733 | #include <linux/cdrom.h> | |
36734 | #else | |
36735 | /* For Solaris */ | |
36736 | #include <sys/cdio.h> | |
36737 | #endif | |
36738 | ||
36739 | int | |
36740 | main () | |
36741 | { | |
36742 | struct cdrom_tocentry entry, old_entry; | |
36743 | ; | |
36744 | return 0; | |
36745 | } | |
36746 | _ACEOF | |
36747 | rm -f conftest.$ac_objext | |
36748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36749 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36750 | ac_status=$? |
ac1cb8d3 VS |
36751 | grep -v '^ *+' conftest.er1 >conftest.err |
36752 | rm -f conftest.er1 | |
36753 | cat conftest.err >&5 | |
a848cd7e SC |
36754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36755 | (exit $ac_status); } && | |
3565d135 RR |
36756 | { ac_try='test -z "$ac_c_werror_flag" |
36757 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36759 | (eval $ac_try) 2>&5 | |
36760 | ac_status=$? | |
36761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36762 | (exit $ac_status); }; } && | |
36763 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36765 | (eval $ac_try) 2>&5 | |
36766 | ac_status=$? | |
36767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36768 | (exit $ac_status); }; }; then | |
36769 | echo "$as_me:$LINENO: result: yes" >&5 | |
36770 | echo "${ECHO_T}yes" >&6 | |
36771 | cat >>confdefs.h <<\_ACEOF | |
36772 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
36773 | _ACEOF | |
36774 | ||
36775 | else | |
36776 | echo "$as_me: failed program was:" >&5 | |
36777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36778 | ||
36779 | echo "$as_me:$LINENO: result: no" >&5 | |
36780 | echo "${ECHO_T}no" >&6 | |
36781 | fi | |
ac1cb8d3 | 36782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36783 | |
36784 | ||
36785 | cat >confcache <<\_ACEOF | |
36786 | # This file is a shell script that caches the results of configure | |
36787 | # tests run on this system so they can be shared between configure | |
36788 | # scripts and configure runs, see configure's option --config-cache. | |
36789 | # It is not useful on other systems. If it contains results you don't | |
36790 | # want to keep, you may remove or edit it. | |
36791 | # | |
36792 | # config.status only pays attention to the cache file if you give it | |
36793 | # the --recheck option to rerun configure. | |
36794 | # | |
36795 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
36796 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
36797 | # following values. | |
36798 | ||
36799 | _ACEOF | |
36800 | ||
36801 | # The following way of writing the cache mishandles newlines in values, | |
36802 | # but we know of no workaround that is simple, portable, and efficient. | |
36803 | # So, don't put newlines in cache variables' values. | |
36804 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
36805 | # and sets the high bit in the cache file unless we assign to the vars. | |
36806 | { | |
36807 | (set) 2>&1 | | |
36808 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
36809 | *ac_space=\ *) | |
36810 | # `set' does not quote correctly, so add quotes (double-quote | |
36811 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
36812 | sed -n \ | |
ac1cb8d3 VS |
36813 | "s/'/'\\\\''/g; |
36814 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
36815 | ;; |
36816 | *) | |
36817 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
36818 | sed -n \ | |
ac1cb8d3 | 36819 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
36820 | ;; |
36821 | esac; | |
36822 | } | | |
36823 | sed ' | |
36824 | t clear | |
36825 | : clear | |
36826 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
36827 | t end | |
36828 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
36829 | : end' >>confcache | |
36830 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
36831 | if test -w $cache_file; then | |
36832 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
36833 | cat confcache >$cache_file | |
36834 | else | |
36835 | echo "not updating unwritable cache $cache_file" | |
36836 | fi | |
36837 | fi | |
36838 | rm -f confcache | |
36839 | ||
36840 | ||
a848cd7e SC |
36841 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
36842 | ||
36843 | ||
36844 | THREADS_LINK= | |
36845 | THREADS_CFLAGS= | |
36846 | ||
36847 | if test "$wxUSE_THREADS" = "yes" ; then | |
36848 | if test "$USE_BEOS" = 1; then | |
36849 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
36850 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
36851 | wxUSE_THREADS="no" | |
36852 | fi | |
36853 | fi | |
36854 | ||
36855 | if test "$wxUSE_THREADS" = "yes" ; then | |
36856 | ||
36857 | ||
36858 | THREAD_OPTS="-pthread" | |
36859 | case "${host}" in | |
36860 | *-*-solaris2* | *-*-sunos4* ) | |
36861 | if test "x$GCC" = "xyes"; then | |
36862 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
36863 | else | |
36864 | THREAD_OPTS="-mt $THREAD_OPTS" | |
36865 | fi | |
36866 | ;; | |
36867 | *-*-freebsd*) | |
36868 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
36869 | ;; | |
36870 | *-*-darwin* | *-*-cygwin* ) | |
36871 | THREAD_OPTS="" | |
36872 | ;; | |
36873 | *-*-aix*) | |
36874 | THREAD_OPTS="pthreads" | |
36875 | ;; | |
36876 | *-hp-hpux* ) | |
00421666 MW |
36877 | if test "x$GCC" = "xyes"; then |
36878 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
36879 | THREAD_OPTS="" | |
36880 | else | |
0093c2fc | 36881 | THREAD_OPTS="-mt" |
a848cd7e SC |
36882 | fi |
36883 | ;; | |
36884 | ||
36885 | *-*-irix* ) | |
36886 | if test "x$GCC" = "xyes"; then | |
36887 | THREAD_OPTS="" | |
36888 | fi | |
36889 | ;; | |
36890 | ||
36891 | *-*-*UnixWare*) | |
36892 | if test "x$GCC" != "xyes"; then | |
36893 | THREAD_OPTS="-Ethread" | |
36894 | fi | |
36895 | ;; | |
36896 | esac | |
36897 | ||
36898 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
36899 | ||
36900 | THREADS_OK=no | |
36901 | for flag in $THREAD_OPTS; do | |
36902 | case $flag in | |
36903 | none) | |
36904 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
36905 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
36906 | ;; | |
36907 | ||
36908 | -*) | |
36909 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
36910 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
36911 | THREADS_CFLAGS="$flag" | |
36912 | ;; | |
36913 | ||
36914 | *) | |
36915 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
36916 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
36917 | THREADS_LINK="-l$flag" | |
36918 | ;; | |
36919 | esac | |
36920 | ||
36921 | save_LIBS="$LIBS" | |
36922 | save_CFLAGS="$CFLAGS" | |
36923 | LIBS="$THREADS_LINK $LIBS" | |
36924 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
36925 | ||
36926 | cat >conftest.$ac_ext <<_ACEOF | |
36927 | /* confdefs.h. */ | |
36928 | _ACEOF | |
36929 | cat confdefs.h >>conftest.$ac_ext | |
36930 | cat >>conftest.$ac_ext <<_ACEOF | |
36931 | /* end confdefs.h. */ | |
36932 | #include <pthread.h> | |
36933 | int | |
36934 | main () | |
36935 | { | |
36936 | pthread_create(0,0,0,0); | |
36937 | ; | |
36938 | return 0; | |
36939 | } | |
36940 | _ACEOF | |
36941 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36943 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36944 | ac_status=$? |
ac1cb8d3 VS |
36945 | grep -v '^ *+' conftest.er1 >conftest.err |
36946 | rm -f conftest.er1 | |
36947 | cat conftest.err >&5 | |
a848cd7e SC |
36948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36949 | (exit $ac_status); } && | |
3565d135 RR |
36950 | { ac_try='test -z "$ac_c_werror_flag" |
36951 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36953 | (eval $ac_try) 2>&5 | |
36954 | ac_status=$? | |
36955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36956 | (exit $ac_status); }; } && | |
36957 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36959 | (eval $ac_try) 2>&5 | |
36960 | ac_status=$? | |
36961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36962 | (exit $ac_status); }; }; then | |
36963 | THREADS_OK=yes | |
36964 | else | |
36965 | echo "$as_me: failed program was:" >&5 | |
36966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36967 | ||
36968 | fi | |
ac1cb8d3 VS |
36969 | rm -f conftest.err conftest.$ac_objext \ |
36970 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36971 | |
36972 | LIBS="$save_LIBS" | |
36973 | CFLAGS="$save_CFLAGS" | |
36974 | ||
36975 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
36976 | echo "${ECHO_T}$THREADS_OK" >&6 | |
36977 | if test "x$THREADS_OK" = "xyes"; then | |
36978 | break; | |
36979 | fi | |
36980 | ||
36981 | THREADS_LINK="" | |
36982 | THREADS_CFLAGS="" | |
36983 | done | |
36984 | ||
36985 | if test "x$THREADS_OK" != "xyes"; then | |
36986 | wxUSE_THREADS=no | |
36987 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
36988 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
36989 | else | |
36990 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
36991 | LIBS="$THREADS_LINK $LIBS" | |
36992 | ||
36993 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
36994 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
36995 | flag=no | |
36996 | case "${host}" in | |
36997 | *-aix*) | |
36998 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
36999 | flag="-D_THREAD_SAFE" | |
37000 | ;; | |
37001 | *-freebsd*) | |
37002 | flag="-D_THREAD_SAFE" | |
37003 | ;; | |
37004 | *-hp-hpux* ) | |
37005 | flag="-D_REENTRANT" | |
37006 | if test "x$GCC" != "xyes"; then | |
37007 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
37008 | fi | |
37009 | ;; | |
37010 | *solaris* | alpha*-osf*) | |
37011 | flag="-D_REENTRANT" | |
37012 | ;; | |
37013 | esac | |
37014 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
37015 | echo "${ECHO_T}${flag}" >&6 | |
37016 | if test "x$flag" != xno; then | |
37017 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
37018 | fi | |
37019 | ||
5ff751d6 | 37020 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS" |
a848cd7e SC |
37021 | fi |
37022 | fi | |
37023 | ||
37024 | if test "$wxUSE_THREADS" = "yes" ; then | |
37025 | ||
37026 | for ac_func in thr_setconcurrency | |
37027 | do | |
37028 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37029 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37030 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37031 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37033 | else | |
37034 | cat >conftest.$ac_ext <<_ACEOF | |
37035 | /* confdefs.h. */ | |
37036 | _ACEOF | |
37037 | cat confdefs.h >>conftest.$ac_ext | |
37038 | cat >>conftest.$ac_ext <<_ACEOF | |
37039 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37040 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37041 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37042 | #define $ac_func innocuous_$ac_func | |
37043 | ||
a848cd7e SC |
37044 | /* System header to define __stub macros and hopefully few prototypes, |
37045 | which can conflict with char $ac_func (); below. | |
37046 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37047 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37048 | |
a848cd7e SC |
37049 | #ifdef __STDC__ |
37050 | # include <limits.h> | |
37051 | #else | |
37052 | # include <assert.h> | |
37053 | #endif | |
ac1cb8d3 VS |
37054 | |
37055 | #undef $ac_func | |
37056 | ||
a848cd7e SC |
37057 | /* Override any gcc2 internal prototype to avoid an error. */ |
37058 | #ifdef __cplusplus | |
37059 | extern "C" | |
37060 | { | |
37061 | #endif | |
37062 | /* We use char because int might match the return type of a gcc2 | |
37063 | builtin and then its argument prototype would still apply. */ | |
37064 | char $ac_func (); | |
37065 | /* The GNU C library defines this for functions which it implements | |
37066 | to always fail with ENOSYS. Some functions are actually named | |
37067 | something starting with __ and the normal name is an alias. */ | |
37068 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37069 | choke me | |
37070 | #else | |
37071 | char (*f) () = $ac_func; | |
37072 | #endif | |
37073 | #ifdef __cplusplus | |
37074 | } | |
37075 | #endif | |
37076 | ||
37077 | int | |
37078 | main () | |
37079 | { | |
37080 | return f != $ac_func; | |
37081 | ; | |
37082 | return 0; | |
37083 | } | |
37084 | _ACEOF | |
37085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37087 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37088 | ac_status=$? |
ac1cb8d3 VS |
37089 | grep -v '^ *+' conftest.er1 >conftest.err |
37090 | rm -f conftest.er1 | |
37091 | cat conftest.err >&5 | |
a848cd7e SC |
37092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37093 | (exit $ac_status); } && | |
3565d135 RR |
37094 | { ac_try='test -z "$ac_c_werror_flag" |
37095 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37097 | (eval $ac_try) 2>&5 | |
37098 | ac_status=$? | |
37099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37100 | (exit $ac_status); }; } && | |
37101 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37103 | (eval $ac_try) 2>&5 | |
37104 | ac_status=$? | |
37105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37106 | (exit $ac_status); }; }; then | |
37107 | eval "$as_ac_var=yes" | |
37108 | else | |
37109 | echo "$as_me: failed program was:" >&5 | |
37110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37111 | ||
37112 | eval "$as_ac_var=no" | |
37113 | fi | |
ac1cb8d3 VS |
37114 | rm -f conftest.err conftest.$ac_objext \ |
37115 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37116 | fi |
37117 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37118 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37119 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37120 | cat >>confdefs.h <<_ACEOF | |
37121 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37122 | _ACEOF | |
37123 | ||
37124 | fi | |
37125 | done | |
37126 | ||
37127 | ||
6ebeb4c7 VZ |
37128 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
37129 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
37130 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
37131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37132 | else | |
37133 | ||
37134 | cat >conftest.$ac_ext <<_ACEOF | |
37135 | /* confdefs.h. */ | |
37136 | _ACEOF | |
37137 | cat confdefs.h >>conftest.$ac_ext | |
37138 | cat >>conftest.$ac_ext <<_ACEOF | |
37139 | /* end confdefs.h. */ | |
37140 | #include <pthread.h> | |
37141 | void ThreadCleanupFunc(void *p); | |
37142 | ||
37143 | int | |
37144 | main () | |
37145 | { | |
37146 | ||
37147 | void *p; | |
37148 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
37149 | pthread_cleanup_pop(0); | |
37150 | ||
37151 | ; | |
37152 | return 0; | |
37153 | } | |
37154 | _ACEOF | |
37155 | rm -f conftest.$ac_objext | |
37156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37157 | (eval $ac_compile) 2>conftest.er1 | |
37158 | ac_status=$? | |
37159 | grep -v '^ *+' conftest.er1 >conftest.err | |
37160 | rm -f conftest.er1 | |
37161 | cat conftest.err >&5 | |
37162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37163 | (exit $ac_status); } && | |
3565d135 RR |
37164 | { ac_try='test -z "$ac_c_werror_flag" |
37165 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
37166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37167 | (eval $ac_try) 2>&5 | |
37168 | ac_status=$? | |
37169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37170 | (exit $ac_status); }; } && | |
37171 | { ac_try='test -s conftest.$ac_objext' | |
37172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37173 | (eval $ac_try) 2>&5 | |
37174 | ac_status=$? | |
37175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37176 | (exit $ac_status); }; }; then | |
37177 | ||
37178 | wx_cv_func_pthread_cleanup=yes | |
37179 | ||
37180 | else | |
37181 | echo "$as_me: failed program was:" >&5 | |
37182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37183 | ||
37184 | ||
37185 | wx_cv_func_pthread_cleanup=no | |
37186 | ||
37187 | ||
37188 | fi | |
37189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37190 | ||
37191 | fi | |
37192 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
37193 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
37194 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
37195 | cat >>confdefs.h <<\_ACEOF | |
37196 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
37197 | _ACEOF | |
37198 | ||
37199 | fi | |
37200 | ||
a848cd7e SC |
37201 | |
37202 | for ac_header in sched.h | |
37203 | do | |
37204 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37205 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37206 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37207 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37208 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37210 | fi | |
37211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37212 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37213 | else | |
37214 | # Is the header compilable? | |
37215 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37216 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37217 | cat >conftest.$ac_ext <<_ACEOF | |
37218 | /* confdefs.h. */ | |
37219 | _ACEOF | |
37220 | cat confdefs.h >>conftest.$ac_ext | |
37221 | cat >>conftest.$ac_ext <<_ACEOF | |
37222 | /* end confdefs.h. */ | |
37223 | $ac_includes_default | |
37224 | #include <$ac_header> | |
37225 | _ACEOF | |
37226 | rm -f conftest.$ac_objext | |
37227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37228 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37229 | ac_status=$? |
ac1cb8d3 VS |
37230 | grep -v '^ *+' conftest.er1 >conftest.err |
37231 | rm -f conftest.er1 | |
37232 | cat conftest.err >&5 | |
a848cd7e SC |
37233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37234 | (exit $ac_status); } && | |
3565d135 RR |
37235 | { ac_try='test -z "$ac_c_werror_flag" |
37236 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37238 | (eval $ac_try) 2>&5 | |
37239 | ac_status=$? | |
37240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37241 | (exit $ac_status); }; } && | |
37242 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37244 | (eval $ac_try) 2>&5 | |
37245 | ac_status=$? | |
37246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37247 | (exit $ac_status); }; }; then | |
37248 | ac_header_compiler=yes | |
37249 | else | |
37250 | echo "$as_me: failed program was:" >&5 | |
37251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37252 | ||
37253 | ac_header_compiler=no | |
37254 | fi | |
ac1cb8d3 | 37255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37256 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37257 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37258 | ||
37259 | # Is the header present? | |
37260 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37261 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37262 | cat >conftest.$ac_ext <<_ACEOF | |
37263 | /* confdefs.h. */ | |
37264 | _ACEOF | |
37265 | cat confdefs.h >>conftest.$ac_ext | |
37266 | cat >>conftest.$ac_ext <<_ACEOF | |
37267 | /* end confdefs.h. */ | |
37268 | #include <$ac_header> | |
37269 | _ACEOF | |
37270 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37271 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37272 | ac_status=$? | |
37273 | grep -v '^ *+' conftest.er1 >conftest.err | |
37274 | rm -f conftest.er1 | |
37275 | cat conftest.err >&5 | |
37276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37277 | (exit $ac_status); } >/dev/null; then | |
37278 | if test -s conftest.err; then | |
37279 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37280 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37281 | else |
37282 | ac_cpp_err= | |
37283 | fi | |
37284 | else | |
37285 | ac_cpp_err=yes | |
37286 | fi | |
37287 | if test -z "$ac_cpp_err"; then | |
37288 | ac_header_preproc=yes | |
37289 | else | |
37290 | echo "$as_me: failed program was:" >&5 | |
37291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37292 | ||
37293 | ac_header_preproc=no | |
37294 | fi | |
37295 | rm -f conftest.err conftest.$ac_ext | |
37296 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37297 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37298 | ||
37299 | # So? What about this header? | |
ac1cb8d3 VS |
37300 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37301 | yes:no: ) | |
a848cd7e SC |
37302 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37303 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37304 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37305 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37306 | ac_header_preproc=yes | |
a848cd7e | 37307 | ;; |
ac1cb8d3 | 37308 | no:yes:* ) |
a848cd7e SC |
37309 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37310 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37311 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37312 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37313 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37314 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37315 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37316 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37317 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37318 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37319 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37320 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37321 | ( |
37322 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37323 | ## ----------------------------------------- ## |
37324 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37325 | ## ----------------------------------------- ## | |
a848cd7e SC |
37326 | _ASBOX |
37327 | ) | | |
37328 | sed "s/^/$as_me: WARNING: /" >&2 | |
37329 | ;; | |
37330 | esac | |
37331 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37332 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37333 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37335 | else | |
ac1cb8d3 | 37336 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37337 | fi |
37338 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37339 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37340 | ||
37341 | fi | |
37342 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37343 | cat >>confdefs.h <<_ACEOF | |
37344 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37345 | _ACEOF | |
37346 | ||
37347 | fi | |
37348 | ||
37349 | done | |
37350 | ||
37351 | if test "$ac_cv_header_sched_h" = "yes"; then | |
37352 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
37353 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
37354 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
37355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37356 | else | |
37357 | cat >conftest.$ac_ext <<_ACEOF | |
37358 | /* confdefs.h. */ | |
37359 | _ACEOF | |
37360 | cat confdefs.h >>conftest.$ac_ext | |
37361 | cat >>conftest.$ac_ext <<_ACEOF | |
37362 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37363 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
37364 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37365 | #define sched_yield innocuous_sched_yield | |
37366 | ||
a848cd7e SC |
37367 | /* System header to define __stub macros and hopefully few prototypes, |
37368 | which can conflict with char sched_yield (); below. | |
37369 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37370 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37371 | |
a848cd7e SC |
37372 | #ifdef __STDC__ |
37373 | # include <limits.h> | |
37374 | #else | |
37375 | # include <assert.h> | |
37376 | #endif | |
ac1cb8d3 VS |
37377 | |
37378 | #undef sched_yield | |
37379 | ||
a848cd7e SC |
37380 | /* Override any gcc2 internal prototype to avoid an error. */ |
37381 | #ifdef __cplusplus | |
37382 | extern "C" | |
37383 | { | |
37384 | #endif | |
37385 | /* We use char because int might match the return type of a gcc2 | |
37386 | builtin and then its argument prototype would still apply. */ | |
37387 | char sched_yield (); | |
37388 | /* The GNU C library defines this for functions which it implements | |
37389 | to always fail with ENOSYS. Some functions are actually named | |
37390 | something starting with __ and the normal name is an alias. */ | |
37391 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
37392 | choke me | |
37393 | #else | |
37394 | char (*f) () = sched_yield; | |
37395 | #endif | |
37396 | #ifdef __cplusplus | |
37397 | } | |
37398 | #endif | |
37399 | ||
37400 | int | |
37401 | main () | |
37402 | { | |
37403 | return f != sched_yield; | |
37404 | ; | |
37405 | return 0; | |
37406 | } | |
37407 | _ACEOF | |
37408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37410 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37411 | ac_status=$? |
ac1cb8d3 VS |
37412 | grep -v '^ *+' conftest.er1 >conftest.err |
37413 | rm -f conftest.er1 | |
37414 | cat conftest.err >&5 | |
a848cd7e SC |
37415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37416 | (exit $ac_status); } && | |
3565d135 RR |
37417 | { ac_try='test -z "$ac_c_werror_flag" |
37418 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37420 | (eval $ac_try) 2>&5 | |
37421 | ac_status=$? | |
37422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37423 | (exit $ac_status); }; } && | |
37424 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37426 | (eval $ac_try) 2>&5 | |
37427 | ac_status=$? | |
37428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37429 | (exit $ac_status); }; }; then | |
37430 | ac_cv_func_sched_yield=yes | |
37431 | else | |
37432 | echo "$as_me: failed program was:" >&5 | |
37433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37434 | ||
37435 | ac_cv_func_sched_yield=no | |
37436 | fi | |
ac1cb8d3 VS |
37437 | rm -f conftest.err conftest.$ac_objext \ |
37438 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37439 | fi |
37440 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
37441 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
37442 | if test $ac_cv_func_sched_yield = yes; then | |
37443 | cat >>confdefs.h <<\_ACEOF | |
37444 | #define HAVE_SCHED_YIELD 1 | |
37445 | _ACEOF | |
37446 | ||
37447 | else | |
37448 | ||
37449 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
37450 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
37451 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
37452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37453 | else | |
37454 | ac_check_lib_save_LIBS=$LIBS | |
37455 | LIBS="-lposix4 $LIBS" | |
37456 | cat >conftest.$ac_ext <<_ACEOF | |
37457 | /* confdefs.h. */ | |
37458 | _ACEOF | |
37459 | cat confdefs.h >>conftest.$ac_ext | |
37460 | cat >>conftest.$ac_ext <<_ACEOF | |
37461 | /* end confdefs.h. */ | |
37462 | ||
37463 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37464 | #ifdef __cplusplus | |
37465 | extern "C" | |
37466 | #endif | |
37467 | /* We use char because int might match the return type of a gcc2 | |
37468 | builtin and then its argument prototype would still apply. */ | |
37469 | char sched_yield (); | |
37470 | int | |
37471 | main () | |
37472 | { | |
37473 | sched_yield (); | |
37474 | ; | |
37475 | return 0; | |
37476 | } | |
37477 | _ACEOF | |
37478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37480 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37481 | ac_status=$? |
ac1cb8d3 VS |
37482 | grep -v '^ *+' conftest.er1 >conftest.err |
37483 | rm -f conftest.er1 | |
37484 | cat conftest.err >&5 | |
a848cd7e SC |
37485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37486 | (exit $ac_status); } && | |
3565d135 RR |
37487 | { ac_try='test -z "$ac_c_werror_flag" |
37488 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37490 | (eval $ac_try) 2>&5 | |
37491 | ac_status=$? | |
37492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37493 | (exit $ac_status); }; } && | |
37494 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37496 | (eval $ac_try) 2>&5 | |
37497 | ac_status=$? | |
37498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37499 | (exit $ac_status); }; }; then | |
37500 | ac_cv_lib_posix4_sched_yield=yes | |
37501 | else | |
37502 | echo "$as_me: failed program was:" >&5 | |
37503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37504 | ||
37505 | ac_cv_lib_posix4_sched_yield=no | |
37506 | fi | |
ac1cb8d3 VS |
37507 | rm -f conftest.err conftest.$ac_objext \ |
37508 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37509 | LIBS=$ac_check_lib_save_LIBS |
37510 | fi | |
37511 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
37512 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
37513 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
37514 | cat >>confdefs.h <<\_ACEOF | |
37515 | #define HAVE_SCHED_YIELD 1 | |
37516 | _ACEOF | |
37517 | POSIX4_LINK=" -lposix4" | |
37518 | else | |
37519 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
37520 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
37521 | ||
37522 | fi | |
37523 | ||
37524 | ||
37525 | ||
37526 | fi | |
37527 | ||
37528 | fi | |
37529 | ||
37530 | HAVE_PRIOR_FUNCS=0 | |
37531 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
37532 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
37533 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
37534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37535 | else | |
37536 | cat >conftest.$ac_ext <<_ACEOF | |
37537 | /* confdefs.h. */ | |
37538 | _ACEOF | |
37539 | cat confdefs.h >>conftest.$ac_ext | |
37540 | cat >>conftest.$ac_ext <<_ACEOF | |
37541 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37542 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
37543 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37544 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
37545 | ||
a848cd7e SC |
37546 | /* System header to define __stub macros and hopefully few prototypes, |
37547 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
37548 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37549 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37550 | |
a848cd7e SC |
37551 | #ifdef __STDC__ |
37552 | # include <limits.h> | |
37553 | #else | |
37554 | # include <assert.h> | |
37555 | #endif | |
ac1cb8d3 VS |
37556 | |
37557 | #undef pthread_attr_getschedpolicy | |
37558 | ||
a848cd7e SC |
37559 | /* Override any gcc2 internal prototype to avoid an error. */ |
37560 | #ifdef __cplusplus | |
37561 | extern "C" | |
37562 | { | |
37563 | #endif | |
37564 | /* We use char because int might match the return type of a gcc2 | |
37565 | builtin and then its argument prototype would still apply. */ | |
37566 | char pthread_attr_getschedpolicy (); | |
37567 | /* The GNU C library defines this for functions which it implements | |
37568 | to always fail with ENOSYS. Some functions are actually named | |
37569 | something starting with __ and the normal name is an alias. */ | |
37570 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
37571 | choke me | |
37572 | #else | |
37573 | char (*f) () = pthread_attr_getschedpolicy; | |
37574 | #endif | |
37575 | #ifdef __cplusplus | |
37576 | } | |
37577 | #endif | |
37578 | ||
37579 | int | |
37580 | main () | |
37581 | { | |
37582 | return f != pthread_attr_getschedpolicy; | |
37583 | ; | |
37584 | return 0; | |
37585 | } | |
37586 | _ACEOF | |
37587 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37589 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37590 | ac_status=$? |
ac1cb8d3 VS |
37591 | grep -v '^ *+' conftest.er1 >conftest.err |
37592 | rm -f conftest.er1 | |
37593 | cat conftest.err >&5 | |
a848cd7e SC |
37594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37595 | (exit $ac_status); } && | |
3565d135 RR |
37596 | { ac_try='test -z "$ac_c_werror_flag" |
37597 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37599 | (eval $ac_try) 2>&5 | |
37600 | ac_status=$? | |
37601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37602 | (exit $ac_status); }; } && | |
37603 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37605 | (eval $ac_try) 2>&5 | |
37606 | ac_status=$? | |
37607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37608 | (exit $ac_status); }; }; then | |
37609 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
37610 | else | |
37611 | echo "$as_me: failed program was:" >&5 | |
37612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37613 | ||
37614 | ac_cv_func_pthread_attr_getschedpolicy=no | |
37615 | fi | |
ac1cb8d3 VS |
37616 | rm -f conftest.err conftest.$ac_objext \ |
37617 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37618 | fi |
37619 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
37620 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
37621 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
37622 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
37623 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
37624 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
37625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37626 | else | |
37627 | cat >conftest.$ac_ext <<_ACEOF | |
37628 | /* confdefs.h. */ | |
37629 | _ACEOF | |
37630 | cat confdefs.h >>conftest.$ac_ext | |
37631 | cat >>conftest.$ac_ext <<_ACEOF | |
37632 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37633 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
37634 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37635 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
37636 | ||
a848cd7e SC |
37637 | /* System header to define __stub macros and hopefully few prototypes, |
37638 | which can conflict with char pthread_attr_setschedparam (); below. | |
37639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37640 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37641 | |
a848cd7e SC |
37642 | #ifdef __STDC__ |
37643 | # include <limits.h> | |
37644 | #else | |
37645 | # include <assert.h> | |
37646 | #endif | |
ac1cb8d3 VS |
37647 | |
37648 | #undef pthread_attr_setschedparam | |
37649 | ||
a848cd7e SC |
37650 | /* Override any gcc2 internal prototype to avoid an error. */ |
37651 | #ifdef __cplusplus | |
37652 | extern "C" | |
37653 | { | |
37654 | #endif | |
37655 | /* We use char because int might match the return type of a gcc2 | |
37656 | builtin and then its argument prototype would still apply. */ | |
37657 | char pthread_attr_setschedparam (); | |
37658 | /* The GNU C library defines this for functions which it implements | |
37659 | to always fail with ENOSYS. Some functions are actually named | |
37660 | something starting with __ and the normal name is an alias. */ | |
37661 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
37662 | choke me | |
37663 | #else | |
37664 | char (*f) () = pthread_attr_setschedparam; | |
37665 | #endif | |
37666 | #ifdef __cplusplus | |
37667 | } | |
37668 | #endif | |
37669 | ||
37670 | int | |
37671 | main () | |
37672 | { | |
37673 | return f != pthread_attr_setschedparam; | |
37674 | ; | |
37675 | return 0; | |
37676 | } | |
37677 | _ACEOF | |
37678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37680 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37681 | ac_status=$? |
ac1cb8d3 VS |
37682 | grep -v '^ *+' conftest.er1 >conftest.err |
37683 | rm -f conftest.er1 | |
37684 | cat conftest.err >&5 | |
a848cd7e SC |
37685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37686 | (exit $ac_status); } && | |
3565d135 RR |
37687 | { ac_try='test -z "$ac_c_werror_flag" |
37688 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37690 | (eval $ac_try) 2>&5 | |
37691 | ac_status=$? | |
37692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37693 | (exit $ac_status); }; } && | |
37694 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37696 | (eval $ac_try) 2>&5 | |
37697 | ac_status=$? | |
37698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37699 | (exit $ac_status); }; }; then | |
37700 | ac_cv_func_pthread_attr_setschedparam=yes | |
37701 | else | |
37702 | echo "$as_me: failed program was:" >&5 | |
37703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37704 | ||
37705 | ac_cv_func_pthread_attr_setschedparam=no | |
37706 | fi | |
ac1cb8d3 VS |
37707 | rm -f conftest.err conftest.$ac_objext \ |
37708 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37709 | fi |
37710 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
37711 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
37712 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
37713 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
37714 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
37715 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
37716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37717 | else | |
37718 | cat >conftest.$ac_ext <<_ACEOF | |
37719 | /* confdefs.h. */ | |
37720 | _ACEOF | |
37721 | cat confdefs.h >>conftest.$ac_ext | |
37722 | cat >>conftest.$ac_ext <<_ACEOF | |
37723 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37724 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
37725 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37726 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
37727 | ||
a848cd7e SC |
37728 | /* System header to define __stub macros and hopefully few prototypes, |
37729 | which can conflict with char sched_get_priority_max (); below. | |
37730 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37731 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37732 | |
a848cd7e SC |
37733 | #ifdef __STDC__ |
37734 | # include <limits.h> | |
37735 | #else | |
37736 | # include <assert.h> | |
37737 | #endif | |
ac1cb8d3 VS |
37738 | |
37739 | #undef sched_get_priority_max | |
37740 | ||
a848cd7e SC |
37741 | /* Override any gcc2 internal prototype to avoid an error. */ |
37742 | #ifdef __cplusplus | |
37743 | extern "C" | |
37744 | { | |
37745 | #endif | |
37746 | /* We use char because int might match the return type of a gcc2 | |
37747 | builtin and then its argument prototype would still apply. */ | |
37748 | char sched_get_priority_max (); | |
37749 | /* The GNU C library defines this for functions which it implements | |
37750 | to always fail with ENOSYS. Some functions are actually named | |
37751 | something starting with __ and the normal name is an alias. */ | |
37752 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
37753 | choke me | |
37754 | #else | |
37755 | char (*f) () = sched_get_priority_max; | |
37756 | #endif | |
37757 | #ifdef __cplusplus | |
37758 | } | |
37759 | #endif | |
37760 | ||
37761 | int | |
37762 | main () | |
37763 | { | |
37764 | return f != sched_get_priority_max; | |
37765 | ; | |
37766 | return 0; | |
37767 | } | |
37768 | _ACEOF | |
37769 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37771 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37772 | ac_status=$? |
ac1cb8d3 VS |
37773 | grep -v '^ *+' conftest.er1 >conftest.err |
37774 | rm -f conftest.er1 | |
37775 | cat conftest.err >&5 | |
a848cd7e SC |
37776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37777 | (exit $ac_status); } && | |
3565d135 RR |
37778 | { ac_try='test -z "$ac_c_werror_flag" |
37779 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37781 | (eval $ac_try) 2>&5 | |
37782 | ac_status=$? | |
37783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37784 | (exit $ac_status); }; } && | |
37785 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37787 | (eval $ac_try) 2>&5 | |
37788 | ac_status=$? | |
37789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37790 | (exit $ac_status); }; }; then | |
37791 | ac_cv_func_sched_get_priority_max=yes | |
37792 | else | |
37793 | echo "$as_me: failed program was:" >&5 | |
37794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37795 | ||
37796 | ac_cv_func_sched_get_priority_max=no | |
37797 | fi | |
ac1cb8d3 VS |
37798 | rm -f conftest.err conftest.$ac_objext \ |
37799 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37800 | fi |
37801 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
37802 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
37803 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
37804 | HAVE_PRIOR_FUNCS=1 | |
37805 | else | |
37806 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
37807 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
37808 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
37809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37810 | else | |
37811 | ac_check_lib_save_LIBS=$LIBS | |
37812 | LIBS="-lposix4 $LIBS" | |
37813 | cat >conftest.$ac_ext <<_ACEOF | |
37814 | /* confdefs.h. */ | |
37815 | _ACEOF | |
37816 | cat confdefs.h >>conftest.$ac_ext | |
37817 | cat >>conftest.$ac_ext <<_ACEOF | |
37818 | /* end confdefs.h. */ | |
37819 | ||
37820 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37821 | #ifdef __cplusplus | |
37822 | extern "C" | |
37823 | #endif | |
37824 | /* We use char because int might match the return type of a gcc2 | |
37825 | builtin and then its argument prototype would still apply. */ | |
37826 | char sched_get_priority_max (); | |
37827 | int | |
37828 | main () | |
37829 | { | |
37830 | sched_get_priority_max (); | |
37831 | ; | |
37832 | return 0; | |
37833 | } | |
37834 | _ACEOF | |
37835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37837 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37838 | ac_status=$? |
ac1cb8d3 VS |
37839 | grep -v '^ *+' conftest.er1 >conftest.err |
37840 | rm -f conftest.er1 | |
37841 | cat conftest.err >&5 | |
a848cd7e SC |
37842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37843 | (exit $ac_status); } && | |
3565d135 RR |
37844 | { ac_try='test -z "$ac_c_werror_flag" |
37845 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37847 | (eval $ac_try) 2>&5 | |
37848 | ac_status=$? | |
37849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37850 | (exit $ac_status); }; } && | |
37851 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37853 | (eval $ac_try) 2>&5 | |
37854 | ac_status=$? | |
37855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37856 | (exit $ac_status); }; }; then | |
37857 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
37858 | else | |
37859 | echo "$as_me: failed program was:" >&5 | |
37860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37861 | ||
37862 | ac_cv_lib_posix4_sched_get_priority_max=no | |
37863 | fi | |
ac1cb8d3 VS |
37864 | rm -f conftest.err conftest.$ac_objext \ |
37865 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37866 | LIBS=$ac_check_lib_save_LIBS |
37867 | fi | |
37868 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
37869 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
37870 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
37871 | ||
37872 | HAVE_PRIOR_FUNCS=1 | |
37873 | POSIX4_LINK=" -lposix4" | |
37874 | ||
37875 | fi | |
37876 | ||
37877 | ||
37878 | fi | |
37879 | ||
37880 | ||
37881 | fi | |
37882 | ||
37883 | ||
37884 | fi | |
37885 | ||
37886 | ||
37887 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
37888 | cat >>confdefs.h <<\_ACEOF | |
37889 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
37890 | _ACEOF | |
37891 | ||
37892 | else | |
37893 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
37894 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
37895 | fi | |
37896 | ||
37897 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
37898 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
37899 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
37900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37901 | else | |
37902 | cat >conftest.$ac_ext <<_ACEOF | |
37903 | /* confdefs.h. */ | |
37904 | _ACEOF | |
37905 | cat confdefs.h >>conftest.$ac_ext | |
37906 | cat >>conftest.$ac_ext <<_ACEOF | |
37907 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37908 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
37909 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37910 | #define pthread_cancel innocuous_pthread_cancel | |
37911 | ||
a848cd7e SC |
37912 | /* System header to define __stub macros and hopefully few prototypes, |
37913 | which can conflict with char pthread_cancel (); below. | |
37914 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37915 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37916 | |
a848cd7e SC |
37917 | #ifdef __STDC__ |
37918 | # include <limits.h> | |
37919 | #else | |
37920 | # include <assert.h> | |
37921 | #endif | |
ac1cb8d3 VS |
37922 | |
37923 | #undef pthread_cancel | |
37924 | ||
a848cd7e SC |
37925 | /* Override any gcc2 internal prototype to avoid an error. */ |
37926 | #ifdef __cplusplus | |
37927 | extern "C" | |
37928 | { | |
37929 | #endif | |
37930 | /* We use char because int might match the return type of a gcc2 | |
37931 | builtin and then its argument prototype would still apply. */ | |
37932 | char pthread_cancel (); | |
37933 | /* The GNU C library defines this for functions which it implements | |
37934 | to always fail with ENOSYS. Some functions are actually named | |
37935 | something starting with __ and the normal name is an alias. */ | |
37936 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
37937 | choke me | |
37938 | #else | |
37939 | char (*f) () = pthread_cancel; | |
37940 | #endif | |
37941 | #ifdef __cplusplus | |
37942 | } | |
37943 | #endif | |
37944 | ||
37945 | int | |
37946 | main () | |
37947 | { | |
37948 | return f != pthread_cancel; | |
37949 | ; | |
37950 | return 0; | |
37951 | } | |
37952 | _ACEOF | |
37953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37955 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37956 | ac_status=$? |
ac1cb8d3 VS |
37957 | grep -v '^ *+' conftest.er1 >conftest.err |
37958 | rm -f conftest.er1 | |
37959 | cat conftest.err >&5 | |
a848cd7e SC |
37960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37961 | (exit $ac_status); } && | |
3565d135 RR |
37962 | { ac_try='test -z "$ac_c_werror_flag" |
37963 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37965 | (eval $ac_try) 2>&5 | |
37966 | ac_status=$? | |
37967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37968 | (exit $ac_status); }; } && | |
37969 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37971 | (eval $ac_try) 2>&5 | |
37972 | ac_status=$? | |
37973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37974 | (exit $ac_status); }; }; then | |
37975 | ac_cv_func_pthread_cancel=yes | |
37976 | else | |
37977 | echo "$as_me: failed program was:" >&5 | |
37978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37979 | ||
37980 | ac_cv_func_pthread_cancel=no | |
37981 | fi | |
ac1cb8d3 VS |
37982 | rm -f conftest.err conftest.$ac_objext \ |
37983 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37984 | fi |
37985 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
37986 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
37987 | if test $ac_cv_func_pthread_cancel = yes; then | |
37988 | cat >>confdefs.h <<\_ACEOF | |
37989 | #define HAVE_PTHREAD_CANCEL 1 | |
37990 | _ACEOF | |
37991 | ||
37992 | else | |
37993 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
37994 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
37995 | fi | |
37996 | ||
37997 | ||
abc736fd MW |
37998 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
37999 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
38000 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
38001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38002 | else | |
38003 | cat >conftest.$ac_ext <<_ACEOF | |
38004 | /* confdefs.h. */ | |
38005 | _ACEOF | |
38006 | cat confdefs.h >>conftest.$ac_ext | |
38007 | cat >>conftest.$ac_ext <<_ACEOF | |
38008 | /* end confdefs.h. */ | |
38009 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
38010 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38011 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
38012 | ||
38013 | /* System header to define __stub macros and hopefully few prototypes, | |
38014 | which can conflict with char pthread_attr_setstacksize (); below. | |
38015 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38016 | <limits.h> exists even on freestanding compilers. */ | |
38017 | ||
38018 | #ifdef __STDC__ | |
38019 | # include <limits.h> | |
38020 | #else | |
38021 | # include <assert.h> | |
38022 | #endif | |
38023 | ||
38024 | #undef pthread_attr_setstacksize | |
38025 | ||
38026 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38027 | #ifdef __cplusplus | |
38028 | extern "C" | |
38029 | { | |
38030 | #endif | |
38031 | /* We use char because int might match the return type of a gcc2 | |
38032 | builtin and then its argument prototype would still apply. */ | |
38033 | char pthread_attr_setstacksize (); | |
38034 | /* The GNU C library defines this for functions which it implements | |
38035 | to always fail with ENOSYS. Some functions are actually named | |
38036 | something starting with __ and the normal name is an alias. */ | |
38037 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
38038 | choke me | |
38039 | #else | |
38040 | char (*f) () = pthread_attr_setstacksize; | |
38041 | #endif | |
38042 | #ifdef __cplusplus | |
38043 | } | |
38044 | #endif | |
38045 | ||
38046 | int | |
38047 | main () | |
38048 | { | |
38049 | return f != pthread_attr_setstacksize; | |
38050 | ; | |
38051 | return 0; | |
38052 | } | |
38053 | _ACEOF | |
38054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38056 | (eval $ac_link) 2>conftest.er1 | |
38057 | ac_status=$? | |
38058 | grep -v '^ *+' conftest.er1 >conftest.err | |
38059 | rm -f conftest.er1 | |
38060 | cat conftest.err >&5 | |
38061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38062 | (exit $ac_status); } && | |
3565d135 RR |
38063 | { ac_try='test -z "$ac_c_werror_flag" |
38064 | || test ! -s conftest.err' | |
abc736fd MW |
38065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38066 | (eval $ac_try) 2>&5 | |
38067 | ac_status=$? | |
38068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38069 | (exit $ac_status); }; } && | |
38070 | { ac_try='test -s conftest$ac_exeext' | |
38071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38072 | (eval $ac_try) 2>&5 | |
38073 | ac_status=$? | |
38074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38075 | (exit $ac_status); }; }; then | |
38076 | ac_cv_func_pthread_attr_setstacksize=yes | |
38077 | else | |
38078 | echo "$as_me: failed program was:" >&5 | |
38079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38080 | ||
38081 | ac_cv_func_pthread_attr_setstacksize=no | |
38082 | fi | |
38083 | rm -f conftest.err conftest.$ac_objext \ | |
38084 | conftest$ac_exeext conftest.$ac_ext | |
38085 | fi | |
38086 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
38087 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
38088 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
38089 | cat >>confdefs.h <<\_ACEOF | |
38090 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
38091 | _ACEOF | |
38092 | ||
38093 | fi | |
38094 | ||
a848cd7e SC |
38095 | |
38096 | ||
38097 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
38098 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
38099 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
38100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38101 | else | |
38102 | ||
38103 | cat >conftest.$ac_ext <<_ACEOF | |
38104 | /* confdefs.h. */ | |
38105 | _ACEOF | |
38106 | cat confdefs.h >>conftest.$ac_ext | |
38107 | cat >>conftest.$ac_ext <<_ACEOF | |
38108 | /* end confdefs.h. */ | |
38109 | #include <pthread.h> | |
38110 | int | |
38111 | main () | |
38112 | { | |
38113 | ||
38114 | pthread_mutexattr_t attr; | |
38115 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38116 | ||
38117 | ; | |
38118 | return 0; | |
38119 | } | |
38120 | _ACEOF | |
38121 | rm -f conftest.$ac_objext | |
38122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38123 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38124 | ac_status=$? |
ac1cb8d3 VS |
38125 | grep -v '^ *+' conftest.er1 >conftest.err |
38126 | rm -f conftest.er1 | |
38127 | cat conftest.err >&5 | |
a848cd7e SC |
38128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38129 | (exit $ac_status); } && | |
3565d135 RR |
38130 | { ac_try='test -z "$ac_c_werror_flag" |
38131 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38133 | (eval $ac_try) 2>&5 | |
38134 | ac_status=$? | |
38135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38136 | (exit $ac_status); }; } && | |
38137 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38139 | (eval $ac_try) 2>&5 | |
38140 | ac_status=$? | |
38141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38142 | (exit $ac_status); }; }; then | |
123dca7d | 38143 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
38144 | else |
38145 | echo "$as_me: failed program was:" >&5 | |
38146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38147 | ||
123dca7d | 38148 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
38149 | |
38150 | fi | |
ac1cb8d3 | 38151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38152 | |
38153 | fi | |
38154 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
38155 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
38156 | ||
38157 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
38158 | cat >>confdefs.h <<\_ACEOF | |
38159 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
38160 | _ACEOF | |
38161 | ||
123dca7d VZ |
38162 | |
38163 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
38164 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
38165 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
38166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38167 | else | |
38168 | ||
38169 | cat >conftest.$ac_ext <<_ACEOF | |
38170 | /* confdefs.h. */ | |
38171 | _ACEOF | |
38172 | cat confdefs.h >>conftest.$ac_ext | |
38173 | cat >>conftest.$ac_ext <<_ACEOF | |
38174 | /* end confdefs.h. */ | |
38175 | #include <pthread.h> | |
38176 | int | |
38177 | main () | |
38178 | { | |
38179 | ||
38180 | pthread_mutexattr_t attr; | |
38181 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38182 | ||
38183 | ; | |
38184 | return 0; | |
38185 | } | |
38186 | _ACEOF | |
38187 | rm -f conftest.$ac_objext | |
38188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38189 | (eval $ac_compile) 2>conftest.er1 | |
38190 | ac_status=$? | |
38191 | grep -v '^ *+' conftest.er1 >conftest.err | |
38192 | rm -f conftest.er1 | |
38193 | cat conftest.err >&5 | |
38194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38195 | (exit $ac_status); } && | |
3565d135 RR |
38196 | { ac_try='test -z "$ac_c_werror_flag" |
38197 | || test ! -s conftest.err' | |
123dca7d VZ |
38198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38199 | (eval $ac_try) 2>&5 | |
38200 | ac_status=$? | |
38201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38202 | (exit $ac_status); }; } && | |
38203 | { ac_try='test -s conftest.$ac_objext' | |
38204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38205 | (eval $ac_try) 2>&5 | |
38206 | ac_status=$? | |
38207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38208 | (exit $ac_status); }; }; then | |
38209 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
38210 | else | |
38211 | echo "$as_me: failed program was:" >&5 | |
38212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38213 | ||
38214 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
38215 | ||
38216 | fi | |
38217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38218 | ||
38219 | fi | |
38220 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
38221 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
38222 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
38223 | cat >>confdefs.h <<\_ACEOF | |
38224 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
38225 | _ACEOF | |
38226 | ||
38227 | fi | |
a848cd7e SC |
38228 | else |
38229 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
38230 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
38231 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
38232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38233 | else | |
38234 | ||
38235 | cat >conftest.$ac_ext <<_ACEOF | |
38236 | /* confdefs.h. */ | |
38237 | _ACEOF | |
38238 | cat confdefs.h >>conftest.$ac_ext | |
38239 | cat >>conftest.$ac_ext <<_ACEOF | |
38240 | /* end confdefs.h. */ | |
38241 | #include <pthread.h> | |
38242 | int | |
38243 | main () | |
38244 | { | |
38245 | ||
38246 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
38247 | ||
38248 | ; | |
38249 | return 0; | |
38250 | } | |
38251 | _ACEOF | |
38252 | rm -f conftest.$ac_objext | |
38253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38254 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38255 | ac_status=$? |
ac1cb8d3 VS |
38256 | grep -v '^ *+' conftest.er1 >conftest.err |
38257 | rm -f conftest.er1 | |
38258 | cat conftest.err >&5 | |
a848cd7e SC |
38259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38260 | (exit $ac_status); } && | |
3565d135 RR |
38261 | { ac_try='test -z "$ac_c_werror_flag" |
38262 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38264 | (eval $ac_try) 2>&5 | |
38265 | ac_status=$? | |
38266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38267 | (exit $ac_status); }; } && | |
38268 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38270 | (eval $ac_try) 2>&5 | |
38271 | ac_status=$? | |
38272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38273 | (exit $ac_status); }; }; then | |
38274 | ||
38275 | wx_cv_type_pthread_rec_mutex_init=yes | |
38276 | ||
38277 | else | |
38278 | echo "$as_me: failed program was:" >&5 | |
38279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38280 | ||
38281 | ||
38282 | wx_cv_type_pthread_rec_mutex_init=no | |
38283 | ||
38284 | ||
38285 | fi | |
ac1cb8d3 | 38286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38287 | |
38288 | fi | |
38289 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
38290 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
38291 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
38292 | cat >>confdefs.h <<\_ACEOF | |
38293 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
38294 | _ACEOF | |
38295 | ||
38296 | else | |
38297 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
38298 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
38299 | fi | |
38300 | fi | |
38301 | fi | |
38302 | ||
38303 | else | |
38304 | if test "$wxUSE_THREADS" = "yes" ; then | |
38305 | case "${host}" in | |
38306 | *-*-mingw32* ) | |
38307 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
38308 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
38309 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
38310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38311 | else | |
38312 | ||
38313 | CFLAGS_OLD="$CFLAGS" | |
c92ad099 | 38314 | CFLAGS="-mthreads $CFLAGS" |
a848cd7e SC |
38315 | cat >conftest.$ac_ext <<_ACEOF |
38316 | /* confdefs.h. */ | |
38317 | _ACEOF | |
38318 | cat confdefs.h >>conftest.$ac_ext | |
38319 | cat >>conftest.$ac_ext <<_ACEOF | |
38320 | /* end confdefs.h. */ | |
38321 | ||
38322 | int | |
38323 | main () | |
38324 | { | |
38325 | ||
38326 | ; | |
38327 | return 0; | |
38328 | } | |
38329 | _ACEOF | |
38330 | rm -f conftest.$ac_objext | |
38331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38332 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38333 | ac_status=$? |
ac1cb8d3 VS |
38334 | grep -v '^ *+' conftest.er1 >conftest.err |
38335 | rm -f conftest.er1 | |
38336 | cat conftest.err >&5 | |
a848cd7e SC |
38337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38338 | (exit $ac_status); } && | |
3565d135 RR |
38339 | { ac_try='test -z "$ac_c_werror_flag" |
38340 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38342 | (eval $ac_try) 2>&5 | |
38343 | ac_status=$? | |
38344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38345 | (exit $ac_status); }; } && | |
38346 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38348 | (eval $ac_try) 2>&5 | |
38349 | ac_status=$? | |
38350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38351 | (exit $ac_status); }; }; then | |
38352 | wx_cv_cflags_mthread=yes | |
38353 | else | |
38354 | echo "$as_me: failed program was:" >&5 | |
38355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38356 | ||
38357 | wx_cv_cflags_mthread=no | |
38358 | ||
38359 | fi | |
ac1cb8d3 | 38360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38361 | |
38362 | ||
38363 | fi | |
38364 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
38365 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
38366 | ||
38367 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
5ff751d6 | 38368 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads" |
a848cd7e SC |
38369 | LDFLAGS="$LDFLAGS -mthreads" |
38370 | else | |
38371 | CFLAGS="$CFLAGS_OLD" | |
38372 | fi | |
38373 | ;; | |
38374 | *-pc-os2*emx ) | |
5ff751d6 VZ |
38375 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
38376 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
a848cd7e SC |
38377 | LDFLAGS="$LDFLAGS -Zmt" |
38378 | ;; | |
38379 | esac | |
38380 | fi | |
38381 | fi | |
38382 | ||
004ee6da RL |
38383 | echo "$as_me:$LINENO: checking for localtime_r" >&5 |
38384 | echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 | |
38385 | if test "${ac_cv_func_localtime_r+set}" = set; then | |
a848cd7e SC |
38386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
38387 | else | |
38388 | cat >conftest.$ac_ext <<_ACEOF | |
38389 | /* confdefs.h. */ | |
38390 | _ACEOF | |
38391 | cat confdefs.h >>conftest.$ac_ext | |
38392 | cat >>conftest.$ac_ext <<_ACEOF | |
38393 | /* end confdefs.h. */ | |
004ee6da | 38394 | /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. |
ac1cb8d3 | 38395 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
004ee6da | 38396 | #define localtime_r innocuous_localtime_r |
ac1cb8d3 | 38397 | |
a848cd7e | 38398 | /* System header to define __stub macros and hopefully few prototypes, |
004ee6da | 38399 | which can conflict with char localtime_r (); below. |
a848cd7e SC |
38400 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
38401 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38402 | |
a848cd7e SC |
38403 | #ifdef __STDC__ |
38404 | # include <limits.h> | |
38405 | #else | |
38406 | # include <assert.h> | |
38407 | #endif | |
ac1cb8d3 | 38408 | |
004ee6da | 38409 | #undef localtime_r |
ac1cb8d3 | 38410 | |
a848cd7e SC |
38411 | /* Override any gcc2 internal prototype to avoid an error. */ |
38412 | #ifdef __cplusplus | |
38413 | extern "C" | |
38414 | { | |
38415 | #endif | |
38416 | /* We use char because int might match the return type of a gcc2 | |
38417 | builtin and then its argument prototype would still apply. */ | |
004ee6da | 38418 | char localtime_r (); |
a848cd7e SC |
38419 | /* The GNU C library defines this for functions which it implements |
38420 | to always fail with ENOSYS. Some functions are actually named | |
38421 | something starting with __ and the normal name is an alias. */ | |
004ee6da | 38422 | #if defined (__stub_localtime_r) || defined (__stub___localtime_r) |
a848cd7e SC |
38423 | choke me |
38424 | #else | |
004ee6da | 38425 | char (*f) () = localtime_r; |
a848cd7e SC |
38426 | #endif |
38427 | #ifdef __cplusplus | |
38428 | } | |
38429 | #endif | |
38430 | ||
38431 | int | |
38432 | main () | |
38433 | { | |
004ee6da RL |
38434 | return f != localtime_r; |
38435 | ; | |
38436 | return 0; | |
38437 | } | |
38438 | _ACEOF | |
38439 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38441 | (eval $ac_link) 2>conftest.er1 | |
38442 | ac_status=$? | |
38443 | grep -v '^ *+' conftest.er1 >conftest.err | |
38444 | rm -f conftest.er1 | |
38445 | cat conftest.err >&5 | |
38446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38447 | (exit $ac_status); } && | |
3565d135 RR |
38448 | { ac_try='test -z "$ac_c_werror_flag" |
38449 | || test ! -s conftest.err' | |
004ee6da RL |
38450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38451 | (eval $ac_try) 2>&5 | |
38452 | ac_status=$? | |
38453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38454 | (exit $ac_status); }; } && | |
38455 | { ac_try='test -s conftest$ac_exeext' | |
38456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38457 | (eval $ac_try) 2>&5 | |
38458 | ac_status=$? | |
38459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38460 | (exit $ac_status); }; }; then | |
38461 | ac_cv_func_localtime_r=yes | |
38462 | else | |
38463 | echo "$as_me: failed program was:" >&5 | |
38464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38465 | ||
38466 | ac_cv_func_localtime_r=no | |
38467 | fi | |
38468 | rm -f conftest.err conftest.$ac_objext \ | |
38469 | conftest$ac_exeext conftest.$ac_ext | |
38470 | fi | |
38471 | echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 | |
38472 | echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 | |
38473 | if test $ac_cv_func_localtime_r = yes; then | |
38474 | cat >>confdefs.h <<\_ACEOF | |
38475 | #define HAVE_LOCALTIME_R 1 | |
38476 | _ACEOF | |
38477 | ||
38478 | fi | |
38479 | ||
38480 | echo "$as_me:$LINENO: checking for gmtime_r" >&5 | |
38481 | echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6 | |
38482 | if test "${ac_cv_func_gmtime_r+set}" = set; then | |
38483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38484 | else | |
38485 | cat >conftest.$ac_ext <<_ACEOF | |
38486 | /* confdefs.h. */ | |
38487 | _ACEOF | |
38488 | cat confdefs.h >>conftest.$ac_ext | |
38489 | cat >>conftest.$ac_ext <<_ACEOF | |
38490 | /* end confdefs.h. */ | |
38491 | /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. | |
38492 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38493 | #define gmtime_r innocuous_gmtime_r | |
38494 | ||
38495 | /* System header to define __stub macros and hopefully few prototypes, | |
38496 | which can conflict with char gmtime_r (); below. | |
38497 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38498 | <limits.h> exists even on freestanding compilers. */ | |
38499 | ||
38500 | #ifdef __STDC__ | |
38501 | # include <limits.h> | |
38502 | #else | |
38503 | # include <assert.h> | |
38504 | #endif | |
38505 | ||
38506 | #undef gmtime_r | |
38507 | ||
38508 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38509 | #ifdef __cplusplus | |
38510 | extern "C" | |
38511 | { | |
38512 | #endif | |
38513 | /* We use char because int might match the return type of a gcc2 | |
38514 | builtin and then its argument prototype would still apply. */ | |
38515 | char gmtime_r (); | |
38516 | /* The GNU C library defines this for functions which it implements | |
38517 | to always fail with ENOSYS. Some functions are actually named | |
38518 | something starting with __ and the normal name is an alias. */ | |
38519 | #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) | |
38520 | choke me | |
38521 | #else | |
38522 | char (*f) () = gmtime_r; | |
38523 | #endif | |
38524 | #ifdef __cplusplus | |
38525 | } | |
38526 | #endif | |
38527 | ||
38528 | int | |
38529 | main () | |
38530 | { | |
38531 | return f != gmtime_r; | |
38532 | ; | |
38533 | return 0; | |
38534 | } | |
38535 | _ACEOF | |
38536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38538 | (eval $ac_link) 2>conftest.er1 | |
38539 | ac_status=$? | |
38540 | grep -v '^ *+' conftest.er1 >conftest.err | |
38541 | rm -f conftest.er1 | |
38542 | cat conftest.err >&5 | |
38543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38544 | (exit $ac_status); } && | |
3565d135 RR |
38545 | { ac_try='test -z "$ac_c_werror_flag" |
38546 | || test ! -s conftest.err' | |
004ee6da RL |
38547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38548 | (eval $ac_try) 2>&5 | |
38549 | ac_status=$? | |
38550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38551 | (exit $ac_status); }; } && | |
38552 | { ac_try='test -s conftest$ac_exeext' | |
38553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38554 | (eval $ac_try) 2>&5 | |
38555 | ac_status=$? | |
38556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38557 | (exit $ac_status); }; }; then | |
38558 | ac_cv_func_gmtime_r=yes | |
38559 | else | |
38560 | echo "$as_me: failed program was:" >&5 | |
38561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38562 | ||
38563 | ac_cv_func_gmtime_r=no | |
38564 | fi | |
38565 | rm -f conftest.err conftest.$ac_objext \ | |
38566 | conftest$ac_exeext conftest.$ac_ext | |
38567 | fi | |
38568 | echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 | |
38569 | echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6 | |
38570 | if test $ac_cv_func_gmtime_r = yes; then | |
38571 | cat >>confdefs.h <<\_ACEOF | |
38572 | #define HAVE_GMTIME_R 1 | |
38573 | _ACEOF | |
38574 | ||
38575 | fi | |
38576 | ||
38577 | echo "$as_me:$LINENO: checking for readdir_r" >&5 | |
38578 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6 | |
38579 | if test "${ac_cv_func_readdir_r+set}" = set; then | |
38580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38581 | else | |
38582 | cat >conftest.$ac_ext <<_ACEOF | |
38583 | /* confdefs.h. */ | |
38584 | _ACEOF | |
38585 | cat confdefs.h >>conftest.$ac_ext | |
38586 | cat >>conftest.$ac_ext <<_ACEOF | |
38587 | /* end confdefs.h. */ | |
38588 | /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r. | |
38589 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38590 | #define readdir_r innocuous_readdir_r | |
38591 | ||
38592 | /* System header to define __stub macros and hopefully few prototypes, | |
38593 | which can conflict with char readdir_r (); below. | |
38594 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38595 | <limits.h> exists even on freestanding compilers. */ | |
38596 | ||
38597 | #ifdef __STDC__ | |
38598 | # include <limits.h> | |
38599 | #else | |
38600 | # include <assert.h> | |
38601 | #endif | |
38602 | ||
38603 | #undef readdir_r | |
38604 | ||
38605 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38606 | #ifdef __cplusplus | |
38607 | extern "C" | |
38608 | { | |
38609 | #endif | |
38610 | /* We use char because int might match the return type of a gcc2 | |
38611 | builtin and then its argument prototype would still apply. */ | |
38612 | char readdir_r (); | |
38613 | /* The GNU C library defines this for functions which it implements | |
38614 | to always fail with ENOSYS. Some functions are actually named | |
38615 | something starting with __ and the normal name is an alias. */ | |
38616 | #if defined (__stub_readdir_r) || defined (__stub___readdir_r) | |
38617 | choke me | |
38618 | #else | |
38619 | char (*f) () = readdir_r; | |
38620 | #endif | |
38621 | #ifdef __cplusplus | |
38622 | } | |
38623 | #endif | |
38624 | ||
38625 | int | |
38626 | main () | |
38627 | { | |
38628 | return f != readdir_r; | |
38629 | ; | |
38630 | return 0; | |
38631 | } | |
38632 | _ACEOF | |
38633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38635 | (eval $ac_link) 2>conftest.er1 | |
38636 | ac_status=$? | |
38637 | grep -v '^ *+' conftest.er1 >conftest.err | |
38638 | rm -f conftest.er1 | |
38639 | cat conftest.err >&5 | |
38640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38641 | (exit $ac_status); } && | |
3565d135 RR |
38642 | { ac_try='test -z "$ac_c_werror_flag" |
38643 | || test ! -s conftest.err' | |
004ee6da RL |
38644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38645 | (eval $ac_try) 2>&5 | |
38646 | ac_status=$? | |
38647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38648 | (exit $ac_status); }; } && | |
38649 | { ac_try='test -s conftest$ac_exeext' | |
38650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38651 | (eval $ac_try) 2>&5 | |
38652 | ac_status=$? | |
38653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38654 | (exit $ac_status); }; }; then | |
38655 | ac_cv_func_readdir_r=yes | |
38656 | else | |
38657 | echo "$as_me: failed program was:" >&5 | |
38658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38659 | ||
38660 | ac_cv_func_readdir_r=no | |
38661 | fi | |
38662 | rm -f conftest.err conftest.$ac_objext \ | |
38663 | conftest$ac_exeext conftest.$ac_ext | |
38664 | fi | |
38665 | echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5 | |
38666 | echo "${ECHO_T}$ac_cv_func_readdir_r" >&6 | |
38667 | if test $ac_cv_func_readdir_r = yes; then | |
38668 | cat >>confdefs.h <<\_ACEOF | |
38669 | #define HAVE_READDIR_R 1 | |
38670 | _ACEOF | |
38671 | ||
38672 | fi | |
38673 | ||
004ee6da | 38674 | |
004ee6da RL |
38675 | |
38676 | ||
38677 | ac_ext=c | |
38678 | ac_cpp='$CPP $CPPFLAGS' | |
38679 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38680 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38681 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38682 | ||
38683 | echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 | |
38684 | echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6 | |
38685 | ||
38686 | if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then | |
38687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38688 | else | |
38689 | ||
38690 | ||
38691 | ################################################################ | |
38692 | ||
38693 | ac_cv_func_which_gethostbyname_r=unknown | |
38694 | ||
38695 | # | |
38696 | # ONE ARGUMENT (sanity check) | |
38697 | # | |
38698 | ||
38699 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
38700 | # a single argument. If it actually compiles, then we can assume that | |
38701 | # netdb.h is not declaring the function, and the compiler is thereby | |
38702 | # assuming an implicit prototype. In which case, we're out of luck. | |
38703 | # | |
38704 | cat >conftest.$ac_ext <<_ACEOF | |
38705 | /* confdefs.h. */ | |
38706 | _ACEOF | |
38707 | cat confdefs.h >>conftest.$ac_ext | |
38708 | cat >>conftest.$ac_ext <<_ACEOF | |
38709 | /* end confdefs.h. */ | |
38710 | #include <netdb.h> | |
38711 | int | |
38712 | main () | |
38713 | { | |
38714 | ||
38715 | char *name = "www.gnu.org"; | |
38716 | (void)gethostbyname_r(name) /* ; */ | |
38717 | ||
38718 | ; | |
38719 | return 0; | |
38720 | } | |
38721 | _ACEOF | |
38722 | rm -f conftest.$ac_objext | |
38723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38724 | (eval $ac_compile) 2>conftest.er1 | |
38725 | ac_status=$? | |
38726 | grep -v '^ *+' conftest.er1 >conftest.err | |
38727 | rm -f conftest.er1 | |
38728 | cat conftest.err >&5 | |
38729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38730 | (exit $ac_status); } && | |
3565d135 RR |
38731 | { ac_try='test -z "$ac_c_werror_flag" |
38732 | || test ! -s conftest.err' | |
004ee6da RL |
38733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38734 | (eval $ac_try) 2>&5 | |
38735 | ac_status=$? | |
38736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38737 | (exit $ac_status); }; } && | |
38738 | { ac_try='test -s conftest.$ac_objext' | |
38739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38740 | (eval $ac_try) 2>&5 | |
38741 | ac_status=$? | |
38742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38743 | (exit $ac_status); }; }; then | |
38744 | ac_cv_func_which_gethostbyname_r=no | |
38745 | else | |
38746 | echo "$as_me: failed program was:" >&5 | |
38747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38748 | ||
38749 | fi | |
38750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38751 | ||
38752 | # | |
38753 | # SIX ARGUMENTS | |
38754 | # (e.g. Linux) | |
38755 | # | |
38756 | ||
38757 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38758 | ||
38759 | cat >conftest.$ac_ext <<_ACEOF | |
38760 | /* confdefs.h. */ | |
38761 | _ACEOF | |
38762 | cat confdefs.h >>conftest.$ac_ext | |
38763 | cat >>conftest.$ac_ext <<_ACEOF | |
38764 | /* end confdefs.h. */ | |
38765 | #include <netdb.h> | |
38766 | int | |
38767 | main () | |
38768 | { | |
38769 | ||
38770 | char *name = "www.gnu.org"; | |
38771 | struct hostent ret, *retp; | |
38772 | char buf[1024]; | |
38773 | int buflen = 1024; | |
38774 | int my_h_errno; | |
38775 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
38776 | ||
38777 | ; | |
38778 | return 0; | |
38779 | } | |
38780 | _ACEOF | |
38781 | rm -f conftest.$ac_objext | |
38782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38783 | (eval $ac_compile) 2>conftest.er1 | |
38784 | ac_status=$? | |
38785 | grep -v '^ *+' conftest.er1 >conftest.err | |
38786 | rm -f conftest.er1 | |
38787 | cat conftest.err >&5 | |
38788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38789 | (exit $ac_status); } && | |
3565d135 RR |
38790 | { ac_try='test -z "$ac_c_werror_flag" |
38791 | || test ! -s conftest.err' | |
004ee6da RL |
38792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38793 | (eval $ac_try) 2>&5 | |
38794 | ac_status=$? | |
38795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38796 | (exit $ac_status); }; } && | |
38797 | { ac_try='test -s conftest.$ac_objext' | |
38798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38799 | (eval $ac_try) 2>&5 | |
38800 | ac_status=$? | |
38801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38802 | (exit $ac_status); }; }; then | |
38803 | ac_cv_func_which_gethostbyname_r=six | |
38804 | else | |
38805 | echo "$as_me: failed program was:" >&5 | |
38806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38807 | ||
38808 | fi | |
38809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38810 | ||
38811 | fi | |
38812 | ||
38813 | # | |
38814 | # FIVE ARGUMENTS | |
38815 | # (e.g. Solaris) | |
38816 | # | |
38817 | ||
38818 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38819 | ||
38820 | cat >conftest.$ac_ext <<_ACEOF | |
38821 | /* confdefs.h. */ | |
38822 | _ACEOF | |
38823 | cat confdefs.h >>conftest.$ac_ext | |
38824 | cat >>conftest.$ac_ext <<_ACEOF | |
38825 | /* end confdefs.h. */ | |
38826 | #include <netdb.h> | |
38827 | int | |
38828 | main () | |
38829 | { | |
38830 | ||
38831 | char *name = "www.gnu.org"; | |
38832 | struct hostent ret; | |
38833 | char buf[1024]; | |
38834 | int buflen = 1024; | |
38835 | int my_h_errno; | |
38836 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
38837 | ||
38838 | ; | |
38839 | return 0; | |
38840 | } | |
38841 | _ACEOF | |
38842 | rm -f conftest.$ac_objext | |
38843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38844 | (eval $ac_compile) 2>conftest.er1 | |
38845 | ac_status=$? | |
38846 | grep -v '^ *+' conftest.er1 >conftest.err | |
38847 | rm -f conftest.er1 | |
38848 | cat conftest.err >&5 | |
38849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38850 | (exit $ac_status); } && | |
3565d135 RR |
38851 | { ac_try='test -z "$ac_c_werror_flag" |
38852 | || test ! -s conftest.err' | |
004ee6da RL |
38853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38854 | (eval $ac_try) 2>&5 | |
38855 | ac_status=$? | |
38856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38857 | (exit $ac_status); }; } && | |
38858 | { ac_try='test -s conftest.$ac_objext' | |
38859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38860 | (eval $ac_try) 2>&5 | |
38861 | ac_status=$? | |
38862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38863 | (exit $ac_status); }; }; then | |
38864 | ac_cv_func_which_gethostbyname_r=five | |
38865 | else | |
38866 | echo "$as_me: failed program was:" >&5 | |
38867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38868 | ||
38869 | fi | |
38870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38871 | ||
38872 | fi | |
38873 | ||
38874 | # | |
38875 | # THREE ARGUMENTS | |
38876 | # (e.g. AIX, HP-UX, Tru64) | |
38877 | # | |
38878 | ||
38879 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38880 | ||
38881 | cat >conftest.$ac_ext <<_ACEOF | |
38882 | /* confdefs.h. */ | |
38883 | _ACEOF | |
38884 | cat confdefs.h >>conftest.$ac_ext | |
38885 | cat >>conftest.$ac_ext <<_ACEOF | |
38886 | /* end confdefs.h. */ | |
38887 | #include <netdb.h> | |
38888 | int | |
38889 | main () | |
38890 | { | |
38891 | ||
38892 | char *name = "www.gnu.org"; | |
38893 | struct hostent ret; | |
38894 | struct hostent_data data; | |
38895 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
38896 | ||
38897 | ; | |
38898 | return 0; | |
38899 | } | |
38900 | _ACEOF | |
38901 | rm -f conftest.$ac_objext | |
38902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38903 | (eval $ac_compile) 2>conftest.er1 | |
38904 | ac_status=$? | |
38905 | grep -v '^ *+' conftest.er1 >conftest.err | |
38906 | rm -f conftest.er1 | |
38907 | cat conftest.err >&5 | |
38908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38909 | (exit $ac_status); } && | |
3565d135 RR |
38910 | { ac_try='test -z "$ac_c_werror_flag" |
38911 | || test ! -s conftest.err' | |
004ee6da RL |
38912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38913 | (eval $ac_try) 2>&5 | |
38914 | ac_status=$? | |
38915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38916 | (exit $ac_status); }; } && | |
38917 | { ac_try='test -s conftest.$ac_objext' | |
38918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38919 | (eval $ac_try) 2>&5 | |
38920 | ac_status=$? | |
38921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38922 | (exit $ac_status); }; }; then | |
38923 | ac_cv_func_which_gethostbyname_r=three | |
38924 | else | |
38925 | echo "$as_me: failed program was:" >&5 | |
38926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38927 | ||
38928 | fi | |
38929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38930 | ||
38931 | fi | |
38932 | ||
38933 | ################################################################ | |
38934 | ||
38935 | ||
38936 | fi | |
38937 | ||
38938 | case "$ac_cv_func_which_gethostbyname_r" in | |
38939 | three) | |
38940 | echo "$as_me:$LINENO: result: three" >&5 | |
38941 | echo "${ECHO_T}three" >&6 | |
38942 | cat >>confdefs.h <<\_ACEOF | |
38943 | #define HAVE_FUNC_GETHOSTBYNAME_R_3 1 | |
38944 | _ACEOF | |
38945 | ||
38946 | ;; | |
38947 | ||
38948 | five) | |
38949 | echo "$as_me:$LINENO: result: five" >&5 | |
38950 | echo "${ECHO_T}five" >&6 | |
38951 | cat >>confdefs.h <<\_ACEOF | |
38952 | #define HAVE_FUNC_GETHOSTBYNAME_R_5 1 | |
38953 | _ACEOF | |
38954 | ||
38955 | ;; | |
38956 | ||
38957 | six) | |
38958 | echo "$as_me:$LINENO: result: six" >&5 | |
38959 | echo "${ECHO_T}six" >&6 | |
38960 | cat >>confdefs.h <<\_ACEOF | |
38961 | #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 | |
38962 | _ACEOF | |
38963 | ||
38964 | ;; | |
38965 | ||
38966 | no) | |
38967 | echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 | |
38968 | echo "${ECHO_T}cannot find function declaration in netdb.h" >&6 | |
38969 | ;; | |
38970 | ||
38971 | unknown) | |
38972 | echo "$as_me:$LINENO: result: can't tell" >&5 | |
38973 | echo "${ECHO_T}can't tell" >&6 | |
38974 | ;; | |
38975 | ||
38976 | *) | |
38977 | { { echo "$as_me:$LINENO: error: internal error" >&5 | |
38978 | echo "$as_me: error: internal error" >&2;} | |
38979 | { (exit 1); exit 1; }; } | |
38980 | ;; | |
38981 | esac | |
38982 | ||
38983 | ac_ext=c | |
38984 | ac_cpp='$CPP $CPPFLAGS' | |
38985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38988 | ||
38989 | ||
38990 | ||
38991 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
38992 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then | |
38993 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
38994 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
38995 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
38996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38997 | else | |
38998 | cat >conftest.$ac_ext <<_ACEOF | |
38999 | /* confdefs.h. */ | |
39000 | _ACEOF | |
39001 | cat confdefs.h >>conftest.$ac_ext | |
39002 | cat >>conftest.$ac_ext <<_ACEOF | |
39003 | /* end confdefs.h. */ | |
39004 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
39005 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39006 | #define gethostbyname innocuous_gethostbyname | |
39007 | ||
39008 | /* System header to define __stub macros and hopefully few prototypes, | |
39009 | which can conflict with char gethostbyname (); below. | |
39010 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39011 | <limits.h> exists even on freestanding compilers. */ | |
39012 | ||
39013 | #ifdef __STDC__ | |
39014 | # include <limits.h> | |
39015 | #else | |
39016 | # include <assert.h> | |
39017 | #endif | |
39018 | ||
39019 | #undef gethostbyname | |
39020 | ||
39021 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39022 | #ifdef __cplusplus | |
39023 | extern "C" | |
39024 | { | |
39025 | #endif | |
39026 | /* We use char because int might match the return type of a gcc2 | |
39027 | builtin and then its argument prototype would still apply. */ | |
39028 | char gethostbyname (); | |
39029 | /* The GNU C library defines this for functions which it implements | |
39030 | to always fail with ENOSYS. Some functions are actually named | |
39031 | something starting with __ and the normal name is an alias. */ | |
39032 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
39033 | choke me | |
39034 | #else | |
39035 | char (*f) () = gethostbyname; | |
39036 | #endif | |
39037 | #ifdef __cplusplus | |
39038 | } | |
39039 | #endif | |
39040 | ||
39041 | int | |
39042 | main () | |
39043 | { | |
39044 | return f != gethostbyname; | |
39045 | ; | |
39046 | return 0; | |
39047 | } | |
39048 | _ACEOF | |
39049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39051 | (eval $ac_link) 2>conftest.er1 | |
39052 | ac_status=$? | |
39053 | grep -v '^ *+' conftest.er1 >conftest.err | |
39054 | rm -f conftest.er1 | |
39055 | cat conftest.err >&5 | |
39056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39057 | (exit $ac_status); } && | |
3565d135 RR |
39058 | { ac_try='test -z "$ac_c_werror_flag" |
39059 | || test ! -s conftest.err' | |
004ee6da RL |
39060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39061 | (eval $ac_try) 2>&5 | |
39062 | ac_status=$? | |
39063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39064 | (exit $ac_status); }; } && | |
39065 | { ac_try='test -s conftest$ac_exeext' | |
39066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39067 | (eval $ac_try) 2>&5 | |
39068 | ac_status=$? | |
39069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39070 | (exit $ac_status); }; }; then | |
39071 | ac_cv_func_gethostbyname=yes | |
39072 | else | |
39073 | echo "$as_me: failed program was:" >&5 | |
39074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39075 | ||
39076 | ac_cv_func_gethostbyname=no | |
39077 | fi | |
39078 | rm -f conftest.err conftest.$ac_objext \ | |
39079 | conftest$ac_exeext conftest.$ac_ext | |
39080 | fi | |
39081 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
39082 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
39083 | if test $ac_cv_func_gethostbyname = yes; then | |
39084 | cat >>confdefs.h <<\_ACEOF | |
39085 | #define HAVE_GETHOSTBYNAME 1 | |
39086 | _ACEOF | |
39087 | ||
39088 | fi | |
39089 | ||
39090 | fi | |
39091 | echo "$as_me:$LINENO: checking for getservbyname_r" >&5 | |
39092 | echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6 | |
004ee6da RL |
39093 | if test "${ac_cv_func_getservbyname_r+set}" = set; then |
39094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39095 | else | |
39096 | cat >conftest.$ac_ext <<_ACEOF | |
39097 | /* confdefs.h. */ | |
39098 | _ACEOF | |
39099 | cat confdefs.h >>conftest.$ac_ext | |
39100 | cat >>conftest.$ac_ext <<_ACEOF | |
39101 | /* end confdefs.h. */ | |
39102 | /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r. | |
39103 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39104 | #define getservbyname_r innocuous_getservbyname_r | |
39105 | ||
39106 | /* System header to define __stub macros and hopefully few prototypes, | |
39107 | which can conflict with char getservbyname_r (); below. | |
39108 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39109 | <limits.h> exists even on freestanding compilers. */ | |
39110 | ||
39111 | #ifdef __STDC__ | |
39112 | # include <limits.h> | |
39113 | #else | |
39114 | # include <assert.h> | |
39115 | #endif | |
39116 | ||
39117 | #undef getservbyname_r | |
39118 | ||
39119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39120 | #ifdef __cplusplus | |
39121 | extern "C" | |
39122 | { | |
39123 | #endif | |
39124 | /* We use char because int might match the return type of a gcc2 | |
39125 | builtin and then its argument prototype would still apply. */ | |
39126 | char getservbyname_r (); | |
39127 | /* The GNU C library defines this for functions which it implements | |
39128 | to always fail with ENOSYS. Some functions are actually named | |
39129 | something starting with __ and the normal name is an alias. */ | |
39130 | #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r) | |
39131 | choke me | |
39132 | #else | |
39133 | char (*f) () = getservbyname_r; | |
39134 | #endif | |
39135 | #ifdef __cplusplus | |
39136 | } | |
39137 | #endif | |
39138 | ||
39139 | int | |
39140 | main () | |
39141 | { | |
39142 | return f != getservbyname_r; | |
39143 | ; | |
39144 | return 0; | |
39145 | } | |
39146 | _ACEOF | |
39147 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39149 | (eval $ac_link) 2>conftest.er1 | |
39150 | ac_status=$? | |
39151 | grep -v '^ *+' conftest.er1 >conftest.err | |
39152 | rm -f conftest.er1 | |
39153 | cat conftest.err >&5 | |
39154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39155 | (exit $ac_status); } && | |
3565d135 RR |
39156 | { ac_try='test -z "$ac_c_werror_flag" |
39157 | || test ! -s conftest.err' | |
004ee6da RL |
39158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39159 | (eval $ac_try) 2>&5 | |
39160 | ac_status=$? | |
39161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39162 | (exit $ac_status); }; } && | |
39163 | { ac_try='test -s conftest$ac_exeext' | |
39164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39165 | (eval $ac_try) 2>&5 | |
39166 | ac_status=$? | |
39167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39168 | (exit $ac_status); }; }; then | |
39169 | ac_cv_func_getservbyname_r=yes | |
39170 | else | |
39171 | echo "$as_me: failed program was:" >&5 | |
39172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39173 | ||
39174 | ac_cv_func_getservbyname_r=no | |
39175 | fi | |
39176 | rm -f conftest.err conftest.$ac_objext \ | |
39177 | conftest$ac_exeext conftest.$ac_ext | |
39178 | fi | |
39179 | echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5 | |
39180 | echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6 | |
39181 | if test $ac_cv_func_getservbyname_r = yes; then | |
99879bbf | 39182 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39183 | /* confdefs.h. */ |
39184 | _ACEOF | |
39185 | cat confdefs.h >>conftest.$ac_ext | |
39186 | cat >>conftest.$ac_ext <<_ACEOF | |
39187 | /* end confdefs.h. */ | |
99879bbf | 39188 | #include <netdb.h> |
004ee6da RL |
39189 | int |
39190 | main () | |
39191 | { | |
39192 | ||
99879bbf MR |
39193 | char *name; |
39194 | char *proto; | |
39195 | struct servent *se; | |
39196 | struct servent_data data; | |
39197 | (void) getservbyname_r(name, proto, se, &data); | |
004ee6da RL |
39198 | |
39199 | ; | |
39200 | return 0; | |
39201 | } | |
39202 | _ACEOF | |
39203 | rm -f conftest.$ac_objext | |
39204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39205 | (eval $ac_compile) 2>conftest.er1 | |
39206 | ac_status=$? | |
39207 | grep -v '^ *+' conftest.er1 >conftest.err | |
39208 | rm -f conftest.er1 | |
39209 | cat conftest.err >&5 | |
39210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39211 | (exit $ac_status); } && | |
3565d135 RR |
39212 | { ac_try='test -z "$ac_c_werror_flag" |
39213 | || test ! -s conftest.err' | |
004ee6da RL |
39214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39215 | (eval $ac_try) 2>&5 | |
39216 | ac_status=$? | |
39217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39218 | (exit $ac_status); }; } && | |
39219 | { ac_try='test -s conftest.$ac_objext' | |
39220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39221 | (eval $ac_try) 2>&5 | |
39222 | ac_status=$? | |
39223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39224 | (exit $ac_status); }; }; then | |
39225 | ac_cv_func_which_getservbyname_r=four | |
39226 | else | |
39227 | echo "$as_me: failed program was:" >&5 | |
39228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39229 | ||
99879bbf | 39230 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39231 | /* confdefs.h. */ |
39232 | _ACEOF | |
39233 | cat confdefs.h >>conftest.$ac_ext | |
39234 | cat >>conftest.$ac_ext <<_ACEOF | |
39235 | /* end confdefs.h. */ | |
99879bbf | 39236 | #include <netdb.h> |
004ee6da RL |
39237 | int |
39238 | main () | |
39239 | { | |
39240 | ||
99879bbf MR |
39241 | char *name; |
39242 | char *proto; | |
39243 | struct servent *se, *res; | |
39244 | char buffer[2048]; | |
39245 | int buflen = 2048; | |
39246 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res); | |
004ee6da RL |
39247 | |
39248 | ; | |
39249 | return 0; | |
39250 | } | |
39251 | _ACEOF | |
39252 | rm -f conftest.$ac_objext | |
39253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39254 | (eval $ac_compile) 2>conftest.er1 | |
39255 | ac_status=$? | |
39256 | grep -v '^ *+' conftest.er1 >conftest.err | |
39257 | rm -f conftest.er1 | |
39258 | cat conftest.err >&5 | |
39259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39260 | (exit $ac_status); } && | |
3565d135 RR |
39261 | { ac_try='test -z "$ac_c_werror_flag" |
39262 | || test ! -s conftest.err' | |
004ee6da RL |
39263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39264 | (eval $ac_try) 2>&5 | |
39265 | ac_status=$? | |
39266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39267 | (exit $ac_status); }; } && | |
39268 | { ac_try='test -s conftest.$ac_objext' | |
39269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39270 | (eval $ac_try) 2>&5 | |
39271 | ac_status=$? | |
39272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39273 | (exit $ac_status); }; }; then | |
39274 | ac_cv_func_which_getservbyname_r=six | |
39275 | else | |
39276 | echo "$as_me: failed program was:" >&5 | |
39277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39278 | ||
99879bbf | 39279 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39280 | /* confdefs.h. */ |
39281 | _ACEOF | |
39282 | cat confdefs.h >>conftest.$ac_ext | |
39283 | cat >>conftest.$ac_ext <<_ACEOF | |
39284 | /* end confdefs.h. */ | |
99879bbf | 39285 | #include <netdb.h> |
004ee6da RL |
39286 | int |
39287 | main () | |
39288 | { | |
39289 | ||
99879bbf MR |
39290 | char *name; |
39291 | char *proto; | |
39292 | struct servent *se; | |
39293 | char buffer[2048]; | |
39294 | int buflen = 2048; | |
39295 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
39296 | |
39297 | ; | |
39298 | return 0; | |
39299 | } | |
39300 | _ACEOF | |
39301 | rm -f conftest.$ac_objext | |
39302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39303 | (eval $ac_compile) 2>conftest.er1 | |
39304 | ac_status=$? | |
39305 | grep -v '^ *+' conftest.er1 >conftest.err | |
39306 | rm -f conftest.er1 | |
39307 | cat conftest.err >&5 | |
39308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39309 | (exit $ac_status); } && | |
3565d135 RR |
39310 | { ac_try='test -z "$ac_c_werror_flag" |
39311 | || test ! -s conftest.err' | |
004ee6da RL |
39312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39313 | (eval $ac_try) 2>&5 | |
39314 | ac_status=$? | |
39315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39316 | (exit $ac_status); }; } && | |
39317 | { ac_try='test -s conftest.$ac_objext' | |
39318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39319 | (eval $ac_try) 2>&5 | |
39320 | ac_status=$? | |
39321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39322 | (exit $ac_status); }; }; then | |
39323 | ac_cv_func_which_getservbyname_r=five | |
39324 | else | |
39325 | echo "$as_me: failed program was:" >&5 | |
39326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39327 | ||
39328 | ac_cv_func_which_getservbyname_r=no | |
99879bbf | 39329 | |
004ee6da RL |
39330 | fi |
39331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39332 | ||
004ee6da RL |
39333 | fi |
39334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39335 | ||
004ee6da RL |
39336 | fi |
39337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
004ee6da RL |
39338 | else |
39339 | ac_cv_func_which_getservbyname_r=no | |
39340 | fi | |
39341 | ||
004ee6da RL |
39342 | |
39343 | if test $ac_cv_func_which_getservbyname_r = six; then | |
39344 | cat >>confdefs.h <<\_ACEOF | |
39345 | #define HAVE_FUNC_GETSERVBYNAME_R_6 1 | |
39346 | _ACEOF | |
39347 | ||
39348 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
39349 | cat >>confdefs.h <<\_ACEOF | |
39350 | #define HAVE_FUNC_GETSERVBYNAME_R_5 1 | |
39351 | _ACEOF | |
39352 | ||
39353 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
39354 | cat >>confdefs.h <<\_ACEOF | |
39355 | #define HAVE_FUNC_GETSERVBYNAME_R_4 1 | |
39356 | _ACEOF | |
39357 | ||
004ee6da RL |
39358 | fi |
39359 | ||
39360 | ||
39361 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
39362 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then | |
39363 | ||
39364 | for ac_func in getservbyname | |
39365 | do | |
39366 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39367 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39368 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39369 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39371 | else | |
39372 | cat >conftest.$ac_ext <<_ACEOF | |
39373 | /* confdefs.h. */ | |
39374 | _ACEOF | |
39375 | cat confdefs.h >>conftest.$ac_ext | |
39376 | cat >>conftest.$ac_ext <<_ACEOF | |
39377 | /* end confdefs.h. */ | |
39378 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
39379 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39380 | #define $ac_func innocuous_$ac_func | |
39381 | ||
39382 | /* System header to define __stub macros and hopefully few prototypes, | |
39383 | which can conflict with char $ac_func (); below. | |
39384 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39385 | <limits.h> exists even on freestanding compilers. */ | |
39386 | ||
39387 | #ifdef __STDC__ | |
39388 | # include <limits.h> | |
39389 | #else | |
39390 | # include <assert.h> | |
39391 | #endif | |
39392 | ||
39393 | #undef $ac_func | |
39394 | ||
39395 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39396 | #ifdef __cplusplus | |
39397 | extern "C" | |
39398 | { | |
39399 | #endif | |
39400 | /* We use char because int might match the return type of a gcc2 | |
39401 | builtin and then its argument prototype would still apply. */ | |
39402 | char $ac_func (); | |
39403 | /* The GNU C library defines this for functions which it implements | |
39404 | to always fail with ENOSYS. Some functions are actually named | |
39405 | something starting with __ and the normal name is an alias. */ | |
39406 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39407 | choke me | |
39408 | #else | |
39409 | char (*f) () = $ac_func; | |
39410 | #endif | |
39411 | #ifdef __cplusplus | |
39412 | } | |
39413 | #endif | |
39414 | ||
39415 | int | |
39416 | main () | |
39417 | { | |
39418 | return f != $ac_func; | |
39419 | ; | |
39420 | return 0; | |
39421 | } | |
39422 | _ACEOF | |
39423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39425 | (eval $ac_link) 2>conftest.er1 | |
39426 | ac_status=$? | |
39427 | grep -v '^ *+' conftest.er1 >conftest.err | |
39428 | rm -f conftest.er1 | |
39429 | cat conftest.err >&5 | |
39430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39431 | (exit $ac_status); } && | |
3565d135 RR |
39432 | { ac_try='test -z "$ac_c_werror_flag" |
39433 | || test ! -s conftest.err' | |
004ee6da RL |
39434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39435 | (eval $ac_try) 2>&5 | |
39436 | ac_status=$? | |
39437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39438 | (exit $ac_status); }; } && | |
39439 | { ac_try='test -s conftest$ac_exeext' | |
39440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39441 | (eval $ac_try) 2>&5 | |
39442 | ac_status=$? | |
39443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39444 | (exit $ac_status); }; }; then | |
39445 | eval "$as_ac_var=yes" | |
39446 | else | |
39447 | echo "$as_me: failed program was:" >&5 | |
39448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39449 | ||
39450 | eval "$as_ac_var=no" | |
39451 | fi | |
39452 | rm -f conftest.err conftest.$ac_objext \ | |
39453 | conftest$ac_exeext conftest.$ac_ext | |
39454 | fi | |
39455 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39456 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39457 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39458 | cat >>confdefs.h <<_ACEOF | |
39459 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39460 | _ACEOF | |
39461 | cat >>confdefs.h <<\_ACEOF | |
39462 | #define HAVE_GETSERVBYNAME 1 | |
39463 | _ACEOF | |
39464 | ||
39465 | fi | |
39466 | done | |
39467 | ||
39468 | fi | |
39469 | ||
004ee6da RL |
39470 | if test "$wxUSE_THREADS" = "yes"; then |
39471 | cat >>confdefs.h <<\_ACEOF | |
39472 | #define wxUSE_THREADS 1 | |
39473 | _ACEOF | |
39474 | ||
39475 | ||
39476 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
39477 | else | |
39478 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
39479 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
39480 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
39481 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
39482 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
39483 | echo "$as_me:$LINENO: result: yes" >&5 | |
39484 | echo "${ECHO_T}yes" >&6 | |
39485 | else | |
39486 | echo "$as_me:$LINENO: result: no" >&5 | |
39487 | echo "${ECHO_T}no" >&6 | |
39488 | fi | |
39489 | fi | |
39490 | fi | |
39491 | ||
39492 | if test "$WXGTK20" = 1 ; then | |
39493 | cat >>confdefs.h <<_ACEOF | |
39494 | #define __WXGTK20__ $WXGTK20 | |
39495 | _ACEOF | |
39496 | ||
39497 | WXGTK12=1 | |
39498 | fi | |
39499 | ||
39500 | if test "$WXGTK12" = 1 ; then | |
39501 | cat >>confdefs.h <<_ACEOF | |
39502 | #define __WXGTK12__ $WXGTK12 | |
39503 | _ACEOF | |
39504 | ||
39505 | fi | |
39506 | ||
39507 | if test "$WXGTK127" = 1 ; then | |
39508 | cat >>confdefs.h <<_ACEOF | |
39509 | #define __WXGTK127__ $WXGTK127 | |
39510 | _ACEOF | |
39511 | ||
39512 | fi | |
39513 | ||
39514 | if test "$WXGPE" = 1 ; then | |
39515 | cat >>confdefs.h <<_ACEOF | |
39516 | #define __WXGPE__ $WXGPE | |
39517 | _ACEOF | |
39518 | ||
39519 | fi | |
39520 | ||
39521 | DEBUG_CFLAGS= | |
39522 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
39523 | DEBUG_CFLAGS="-g" | |
39524 | wxUSE_OPTIMISE=no | |
39525 | fi | |
39526 | ||
39527 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
39528 | wxUSE_DEBUG_INFO=yes | |
39529 | if test "$GCC" = yes; then | |
39530 | DEBUG_CFLAGS="-ggdb" | |
39531 | fi | |
39532 | fi | |
39533 | ||
39534 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
39535 | cat >>confdefs.h <<\_ACEOF | |
39536 | #define WXDEBUG 1 | |
39537 | _ACEOF | |
39538 | ||
39539 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__" | |
39540 | else | |
39541 | if test "$wxUSE_GTK" = 1 ; then | |
99879bbf MR |
39542 | if test "x$wxGTK_VERSION" = "x1" ; then |
39543 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
39544 | fi | |
004ee6da RL |
39545 | fi |
39546 | fi | |
39547 | ||
39548 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
39549 | cat >>confdefs.h <<\_ACEOF | |
39550 | #define wxUSE_MEMORY_TRACING 1 | |
39551 | _ACEOF | |
39552 | ||
39553 | cat >>confdefs.h <<\_ACEOF | |
39554 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
39555 | _ACEOF | |
39556 | ||
39557 | cat >>confdefs.h <<\_ACEOF | |
39558 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
39559 | _ACEOF | |
39560 | ||
39561 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
39562 | fi | |
39563 | ||
39564 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
39565 | DMALLOC_LIBS="-ldmallocthcxx" | |
39566 | fi | |
39567 | ||
39568 | PROFILE_FLAGS= | |
39569 | if test "$wxUSE_PROFILE" = "yes" ; then | |
39570 | PROFILE_FLAGS=" -pg" | |
39571 | fi | |
39572 | ||
39573 | if test "$GCC" = "yes" ; then | |
39574 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
39575 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti" | |
39576 | fi | |
39577 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
39578 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
39579 | fi | |
39580 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
39581 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
39582 | fi | |
39583 | ||
39584 | case "${host}" in | |
39585 | powerpc*-*-aix* ) | |
39586 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
39587 | ;; | |
39588 | *-hppa* ) | |
39589 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
39590 | ;; | |
39591 | esac | |
39592 | fi | |
39593 | ||
39594 | OPTIMISE_CFLAGS= | |
39595 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
39596 | if test "$GCC" = yes ; then | |
39597 | OPTIMISE_CFLAGS="-O0" | |
39598 | fi | |
39599 | else | |
39600 | if test "$GCC" = yes ; then | |
39601 | OPTIMISE_CFLAGS="-O2" | |
39602 | else | |
39603 | OPTIMISE_CFLAGS="-O" | |
39604 | fi | |
39605 | fi | |
39606 | ||
39607 | ||
39608 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then | |
39609 | cat >>confdefs.h <<\_ACEOF | |
39610 | #define WXWIN_COMPATIBILITY_2_4 1 | |
39611 | _ACEOF | |
39612 | ||
39613 | ||
39614 | WXWIN_COMPATIBILITY_2_6="yes" | |
39615 | fi | |
39616 | ||
39617 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then | |
39618 | cat >>confdefs.h <<\_ACEOF | |
39619 | #define WXWIN_COMPATIBILITY_2_6 1 | |
39620 | _ACEOF | |
39621 | ||
39622 | fi | |
39623 | ||
39624 | ||
39625 | if test "$wxUSE_GUI" = "yes"; then | |
39626 | cat >>confdefs.h <<\_ACEOF | |
39627 | #define wxUSE_GUI 1 | |
39628 | _ACEOF | |
39629 | ||
39630 | ||
39631 | fi | |
39632 | ||
39633 | ||
39634 | if test "$wxUSE_UNIX" = "yes"; then | |
39635 | cat >>confdefs.h <<\_ACEOF | |
39636 | #define wxUSE_UNIX 1 | |
39637 | _ACEOF | |
39638 | ||
39639 | fi | |
39640 | ||
39641 | ||
39642 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
39643 | ||
39644 | HAVE_DL_FUNCS=0 | |
39645 | HAVE_SHL_FUNCS=0 | |
39646 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
39647 | if test "$USE_DARWIN" = 1; then | |
39648 | HAVE_DL_FUNCS=1 | |
39649 | elif test "$USE_DOS" = 1; then | |
39650 | HAVE_DL_FUNCS=0 | |
39651 | else | |
39652 | ||
39653 | for ac_func in dlopen | |
39654 | do | |
39655 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39656 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39657 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39658 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39660 | else | |
39661 | cat >conftest.$ac_ext <<_ACEOF | |
39662 | /* confdefs.h. */ | |
39663 | _ACEOF | |
39664 | cat confdefs.h >>conftest.$ac_ext | |
39665 | cat >>conftest.$ac_ext <<_ACEOF | |
39666 | /* end confdefs.h. */ | |
39667 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
39668 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39669 | #define $ac_func innocuous_$ac_func | |
39670 | ||
39671 | /* System header to define __stub macros and hopefully few prototypes, | |
39672 | which can conflict with char $ac_func (); below. | |
39673 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39674 | <limits.h> exists even on freestanding compilers. */ | |
39675 | ||
39676 | #ifdef __STDC__ | |
39677 | # include <limits.h> | |
39678 | #else | |
39679 | # include <assert.h> | |
39680 | #endif | |
39681 | ||
39682 | #undef $ac_func | |
39683 | ||
39684 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39685 | #ifdef __cplusplus | |
39686 | extern "C" | |
39687 | { | |
39688 | #endif | |
39689 | /* We use char because int might match the return type of a gcc2 | |
39690 | builtin and then its argument prototype would still apply. */ | |
39691 | char $ac_func (); | |
39692 | /* The GNU C library defines this for functions which it implements | |
39693 | to always fail with ENOSYS. Some functions are actually named | |
39694 | something starting with __ and the normal name is an alias. */ | |
39695 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39696 | choke me | |
39697 | #else | |
39698 | char (*f) () = $ac_func; | |
39699 | #endif | |
39700 | #ifdef __cplusplus | |
39701 | } | |
39702 | #endif | |
39703 | ||
39704 | int | |
39705 | main () | |
39706 | { | |
39707 | return f != $ac_func; | |
a848cd7e SC |
39708 | ; |
39709 | return 0; | |
39710 | } | |
39711 | _ACEOF | |
39712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39714 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39715 | ac_status=$? |
ac1cb8d3 VS |
39716 | grep -v '^ *+' conftest.er1 >conftest.err |
39717 | rm -f conftest.er1 | |
39718 | cat conftest.err >&5 | |
a848cd7e SC |
39719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39720 | (exit $ac_status); } && | |
3565d135 RR |
39721 | { ac_try='test -z "$ac_c_werror_flag" |
39722 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39724 | (eval $ac_try) 2>&5 | |
39725 | ac_status=$? | |
39726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39727 | (exit $ac_status); }; } && | |
39728 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39730 | (eval $ac_try) 2>&5 | |
39731 | ac_status=$? | |
39732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39733 | (exit $ac_status); }; }; then | |
39734 | eval "$as_ac_var=yes" | |
39735 | else | |
39736 | echo "$as_me: failed program was:" >&5 | |
39737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39738 | ||
39739 | eval "$as_ac_var=no" | |
39740 | fi | |
ac1cb8d3 VS |
39741 | rm -f conftest.err conftest.$ac_objext \ |
39742 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39743 | fi |
39744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39745 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39746 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39747 | cat >>confdefs.h <<_ACEOF | |
39748 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39749 | _ACEOF | |
39750 | ||
39751 | cat >>confdefs.h <<\_ACEOF | |
39752 | #define HAVE_DLOPEN 1 | |
39753 | _ACEOF | |
39754 | ||
39755 | HAVE_DL_FUNCS=1 | |
39756 | ||
39757 | else | |
39758 | ||
39759 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
39760 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
39761 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
39762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39763 | else | |
39764 | ac_check_lib_save_LIBS=$LIBS | |
39765 | LIBS="-ldl $LIBS" | |
39766 | cat >conftest.$ac_ext <<_ACEOF | |
39767 | /* confdefs.h. */ | |
39768 | _ACEOF | |
39769 | cat confdefs.h >>conftest.$ac_ext | |
39770 | cat >>conftest.$ac_ext <<_ACEOF | |
39771 | /* end confdefs.h. */ | |
39772 | ||
39773 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39774 | #ifdef __cplusplus | |
39775 | extern "C" | |
39776 | #endif | |
39777 | /* We use char because int might match the return type of a gcc2 | |
39778 | builtin and then its argument prototype would still apply. */ | |
39779 | char dlopen (); | |
39780 | int | |
39781 | main () | |
39782 | { | |
39783 | dlopen (); | |
39784 | ; | |
39785 | return 0; | |
39786 | } | |
39787 | _ACEOF | |
39788 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39790 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39791 | ac_status=$? |
ac1cb8d3 VS |
39792 | grep -v '^ *+' conftest.er1 >conftest.err |
39793 | rm -f conftest.er1 | |
39794 | cat conftest.err >&5 | |
a848cd7e SC |
39795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39796 | (exit $ac_status); } && | |
3565d135 RR |
39797 | { ac_try='test -z "$ac_c_werror_flag" |
39798 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39800 | (eval $ac_try) 2>&5 | |
39801 | ac_status=$? | |
39802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39803 | (exit $ac_status); }; } && | |
39804 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39806 | (eval $ac_try) 2>&5 | |
39807 | ac_status=$? | |
39808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39809 | (exit $ac_status); }; }; then | |
39810 | ac_cv_lib_dl_dlopen=yes | |
39811 | else | |
39812 | echo "$as_me: failed program was:" >&5 | |
39813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39814 | ||
39815 | ac_cv_lib_dl_dlopen=no | |
39816 | fi | |
ac1cb8d3 VS |
39817 | rm -f conftest.err conftest.$ac_objext \ |
39818 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39819 | LIBS=$ac_check_lib_save_LIBS |
39820 | fi | |
39821 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
39822 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
39823 | if test $ac_cv_lib_dl_dlopen = yes; then | |
39824 | ||
39825 | cat >>confdefs.h <<\_ACEOF | |
39826 | #define HAVE_DLOPEN 1 | |
39827 | _ACEOF | |
39828 | ||
39829 | HAVE_DL_FUNCS=1 | |
39830 | DL_LINK=" -ldl$DL_LINK" | |
39831 | ||
39832 | else | |
39833 | ||
39834 | ||
39835 | for ac_func in shl_load | |
39836 | do | |
39837 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39838 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39839 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39840 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39842 | else | |
39843 | cat >conftest.$ac_ext <<_ACEOF | |
39844 | /* confdefs.h. */ | |
39845 | _ACEOF | |
39846 | cat confdefs.h >>conftest.$ac_ext | |
39847 | cat >>conftest.$ac_ext <<_ACEOF | |
39848 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39849 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39850 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39851 | #define $ac_func innocuous_$ac_func | |
39852 | ||
a848cd7e SC |
39853 | /* System header to define __stub macros and hopefully few prototypes, |
39854 | which can conflict with char $ac_func (); below. | |
39855 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39856 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39857 | |
a848cd7e SC |
39858 | #ifdef __STDC__ |
39859 | # include <limits.h> | |
39860 | #else | |
39861 | # include <assert.h> | |
39862 | #endif | |
ac1cb8d3 VS |
39863 | |
39864 | #undef $ac_func | |
39865 | ||
a848cd7e SC |
39866 | /* Override any gcc2 internal prototype to avoid an error. */ |
39867 | #ifdef __cplusplus | |
39868 | extern "C" | |
39869 | { | |
39870 | #endif | |
39871 | /* We use char because int might match the return type of a gcc2 | |
39872 | builtin and then its argument prototype would still apply. */ | |
39873 | char $ac_func (); | |
39874 | /* The GNU C library defines this for functions which it implements | |
39875 | to always fail with ENOSYS. Some functions are actually named | |
39876 | something starting with __ and the normal name is an alias. */ | |
39877 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39878 | choke me | |
39879 | #else | |
39880 | char (*f) () = $ac_func; | |
39881 | #endif | |
39882 | #ifdef __cplusplus | |
39883 | } | |
39884 | #endif | |
39885 | ||
39886 | int | |
39887 | main () | |
39888 | { | |
39889 | return f != $ac_func; | |
39890 | ; | |
39891 | return 0; | |
39892 | } | |
39893 | _ACEOF | |
39894 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39896 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39897 | ac_status=$? |
ac1cb8d3 VS |
39898 | grep -v '^ *+' conftest.er1 >conftest.err |
39899 | rm -f conftest.er1 | |
39900 | cat conftest.err >&5 | |
a848cd7e SC |
39901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39902 | (exit $ac_status); } && | |
3565d135 RR |
39903 | { ac_try='test -z "$ac_c_werror_flag" |
39904 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39906 | (eval $ac_try) 2>&5 | |
39907 | ac_status=$? | |
39908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39909 | (exit $ac_status); }; } && | |
39910 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39912 | (eval $ac_try) 2>&5 | |
39913 | ac_status=$? | |
39914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39915 | (exit $ac_status); }; }; then | |
39916 | eval "$as_ac_var=yes" | |
39917 | else | |
39918 | echo "$as_me: failed program was:" >&5 | |
39919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39920 | ||
39921 | eval "$as_ac_var=no" | |
39922 | fi | |
ac1cb8d3 VS |
39923 | rm -f conftest.err conftest.$ac_objext \ |
39924 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39925 | fi |
39926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39927 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39928 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39929 | cat >>confdefs.h <<_ACEOF | |
39930 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39931 | _ACEOF | |
39932 | ||
39933 | cat >>confdefs.h <<\_ACEOF | |
39934 | #define HAVE_SHL_LOAD 1 | |
39935 | _ACEOF | |
39936 | ||
39937 | HAVE_SHL_FUNCS=1 | |
39938 | ||
39939 | else | |
39940 | ||
39941 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
39942 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
39943 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
39944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39945 | else | |
39946 | ac_check_lib_save_LIBS=$LIBS | |
39947 | LIBS="-lshl_load $LIBS" | |
39948 | cat >conftest.$ac_ext <<_ACEOF | |
39949 | /* confdefs.h. */ | |
39950 | _ACEOF | |
39951 | cat confdefs.h >>conftest.$ac_ext | |
39952 | cat >>conftest.$ac_ext <<_ACEOF | |
39953 | /* end confdefs.h. */ | |
39954 | ||
39955 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39956 | #ifdef __cplusplus | |
39957 | extern "C" | |
39958 | #endif | |
39959 | /* We use char because int might match the return type of a gcc2 | |
39960 | builtin and then its argument prototype would still apply. */ | |
39961 | char dld (); | |
39962 | int | |
39963 | main () | |
39964 | { | |
39965 | dld (); | |
39966 | ; | |
39967 | return 0; | |
39968 | } | |
39969 | _ACEOF | |
39970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39972 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39973 | ac_status=$? |
ac1cb8d3 VS |
39974 | grep -v '^ *+' conftest.er1 >conftest.err |
39975 | rm -f conftest.er1 | |
39976 | cat conftest.err >&5 | |
a848cd7e SC |
39977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39978 | (exit $ac_status); } && | |
3565d135 RR |
39979 | { ac_try='test -z "$ac_c_werror_flag" |
39980 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39982 | (eval $ac_try) 2>&5 | |
39983 | ac_status=$? | |
39984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39985 | (exit $ac_status); }; } && | |
39986 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39988 | (eval $ac_try) 2>&5 | |
39989 | ac_status=$? | |
39990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39991 | (exit $ac_status); }; }; then | |
39992 | ac_cv_lib_shl_load_dld=yes | |
39993 | else | |
39994 | echo "$as_me: failed program was:" >&5 | |
39995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39996 | ||
39997 | ac_cv_lib_shl_load_dld=no | |
39998 | fi | |
ac1cb8d3 VS |
39999 | rm -f conftest.err conftest.$ac_objext \ |
40000 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40001 | LIBS=$ac_check_lib_save_LIBS |
40002 | fi | |
40003 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
40004 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
40005 | if test $ac_cv_lib_shl_load_dld = yes; then | |
40006 | ||
40007 | HAVE_SHL_FUNCS=1 | |
40008 | DL_LINK=" -ldld$DL_LINK" | |
40009 | ||
40010 | fi | |
40011 | ||
40012 | ||
40013 | fi | |
40014 | done | |
40015 | ||
40016 | ||
40017 | fi | |
40018 | ||
40019 | ||
40020 | fi | |
40021 | done | |
40022 | ||
40023 | ||
40024 | if test "$HAVE_DL_FUNCS" = 1; then | |
40025 | ||
40026 | for ac_func in dlerror | |
40027 | do | |
40028 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40029 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40030 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40031 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40033 | else | |
40034 | cat >conftest.$ac_ext <<_ACEOF | |
40035 | /* confdefs.h. */ | |
40036 | _ACEOF | |
40037 | cat confdefs.h >>conftest.$ac_ext | |
40038 | cat >>conftest.$ac_ext <<_ACEOF | |
40039 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40040 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40041 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40042 | #define $ac_func innocuous_$ac_func | |
40043 | ||
a848cd7e SC |
40044 | /* System header to define __stub macros and hopefully few prototypes, |
40045 | which can conflict with char $ac_func (); below. | |
40046 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40047 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40048 | |
a848cd7e SC |
40049 | #ifdef __STDC__ |
40050 | # include <limits.h> | |
40051 | #else | |
40052 | # include <assert.h> | |
40053 | #endif | |
ac1cb8d3 VS |
40054 | |
40055 | #undef $ac_func | |
40056 | ||
a848cd7e SC |
40057 | /* Override any gcc2 internal prototype to avoid an error. */ |
40058 | #ifdef __cplusplus | |
40059 | extern "C" | |
40060 | { | |
40061 | #endif | |
40062 | /* We use char because int might match the return type of a gcc2 | |
40063 | builtin and then its argument prototype would still apply. */ | |
40064 | char $ac_func (); | |
40065 | /* The GNU C library defines this for functions which it implements | |
40066 | to always fail with ENOSYS. Some functions are actually named | |
40067 | something starting with __ and the normal name is an alias. */ | |
40068 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40069 | choke me | |
40070 | #else | |
40071 | char (*f) () = $ac_func; | |
40072 | #endif | |
40073 | #ifdef __cplusplus | |
40074 | } | |
40075 | #endif | |
40076 | ||
40077 | int | |
40078 | main () | |
40079 | { | |
40080 | return f != $ac_func; | |
40081 | ; | |
40082 | return 0; | |
40083 | } | |
40084 | _ACEOF | |
40085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40087 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40088 | ac_status=$? |
ac1cb8d3 VS |
40089 | grep -v '^ *+' conftest.er1 >conftest.err |
40090 | rm -f conftest.er1 | |
40091 | cat conftest.err >&5 | |
a848cd7e SC |
40092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40093 | (exit $ac_status); } && | |
3565d135 RR |
40094 | { ac_try='test -z "$ac_c_werror_flag" |
40095 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40097 | (eval $ac_try) 2>&5 | |
40098 | ac_status=$? | |
40099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40100 | (exit $ac_status); }; } && | |
40101 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40103 | (eval $ac_try) 2>&5 | |
40104 | ac_status=$? | |
40105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40106 | (exit $ac_status); }; }; then | |
40107 | eval "$as_ac_var=yes" | |
40108 | else | |
40109 | echo "$as_me: failed program was:" >&5 | |
40110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40111 | ||
40112 | eval "$as_ac_var=no" | |
40113 | fi | |
ac1cb8d3 VS |
40114 | rm -f conftest.err conftest.$ac_objext \ |
40115 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40116 | fi |
40117 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40118 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40119 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40120 | cat >>confdefs.h <<_ACEOF | |
40121 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40122 | _ACEOF | |
40123 | cat >>confdefs.h <<\_ACEOF | |
40124 | #define HAVE_DLERROR 1 | |
40125 | _ACEOF | |
40126 | ||
40127 | else | |
40128 | ||
40129 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
40130 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
40131 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
40132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40133 | else | |
40134 | ac_check_lib_save_LIBS=$LIBS | |
40135 | LIBS="-ldl $LIBS" | |
40136 | cat >conftest.$ac_ext <<_ACEOF | |
40137 | /* confdefs.h. */ | |
40138 | _ACEOF | |
40139 | cat confdefs.h >>conftest.$ac_ext | |
40140 | cat >>conftest.$ac_ext <<_ACEOF | |
40141 | /* end confdefs.h. */ | |
40142 | ||
40143 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40144 | #ifdef __cplusplus | |
40145 | extern "C" | |
40146 | #endif | |
40147 | /* We use char because int might match the return type of a gcc2 | |
40148 | builtin and then its argument prototype would still apply. */ | |
40149 | char dlerror (); | |
40150 | int | |
40151 | main () | |
40152 | { | |
40153 | dlerror (); | |
40154 | ; | |
40155 | return 0; | |
40156 | } | |
40157 | _ACEOF | |
40158 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40160 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40161 | ac_status=$? |
ac1cb8d3 VS |
40162 | grep -v '^ *+' conftest.er1 >conftest.err |
40163 | rm -f conftest.er1 | |
40164 | cat conftest.err >&5 | |
a848cd7e SC |
40165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40166 | (exit $ac_status); } && | |
3565d135 RR |
40167 | { ac_try='test -z "$ac_c_werror_flag" |
40168 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40170 | (eval $ac_try) 2>&5 | |
40171 | ac_status=$? | |
40172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40173 | (exit $ac_status); }; } && | |
40174 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40176 | (eval $ac_try) 2>&5 | |
40177 | ac_status=$? | |
40178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40179 | (exit $ac_status); }; }; then | |
40180 | ac_cv_lib_dl_dlerror=yes | |
40181 | else | |
40182 | echo "$as_me: failed program was:" >&5 | |
40183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40184 | ||
40185 | ac_cv_lib_dl_dlerror=no | |
40186 | fi | |
ac1cb8d3 VS |
40187 | rm -f conftest.err conftest.$ac_objext \ |
40188 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40189 | LIBS=$ac_check_lib_save_LIBS |
40190 | fi | |
40191 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
40192 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
40193 | if test $ac_cv_lib_dl_dlerror = yes; then | |
40194 | cat >>confdefs.h <<\_ACEOF | |
40195 | #define HAVE_DLERROR 1 | |
40196 | _ACEOF | |
40197 | ||
40198 | fi | |
40199 | ||
40200 | ||
40201 | ||
40202 | fi | |
40203 | done | |
40204 | ||
40205 | fi | |
40206 | fi | |
40207 | ||
40208 | if test "$HAVE_DL_FUNCS" = 0; then | |
40209 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 40210 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
40211 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
40212 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
40213 | wxUSE_DYNAMIC_LOADER=no | |
40214 | wxUSE_DYNLIB_CLASS=no | |
40215 | else | |
40216 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
40217 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
40218 | fi | |
40219 | fi | |
40220 | fi | |
40221 | fi | |
40222 | fi | |
40223 | ||
40224 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
40225 | cat >>confdefs.h <<\_ACEOF | |
40226 | #define wxUSE_DYNAMIC_LOADER 1 | |
40227 | _ACEOF | |
40228 | ||
40229 | fi | |
40230 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
40231 | cat >>confdefs.h <<\_ACEOF | |
40232 | #define wxUSE_DYNLIB_CLASS 1 | |
40233 | _ACEOF | |
40234 | ||
40235 | fi | |
40236 | ||
40237 | ||
40238 | ||
40239 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40240 | if test "$wxUSE_SHARED" = "no" ; then | |
40241 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
40242 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
40243 | wxUSE_PLUGINS=no | |
40244 | fi | |
40245 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
40246 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
40247 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
40248 | wxUSE_PLUGINS=no | |
40249 | fi | |
40250 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
40251 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
40252 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
40253 | wxUSE_PLUGINS=no | |
40254 | fi | |
40255 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40256 | cat >>confdefs.h <<\_ACEOF | |
40257 | #define wxUSE_PLUGINS 1 | |
40258 | _ACEOF | |
40259 | ||
40260 | fi | |
40261 | fi | |
40262 | ||
40263 | ||
40264 | if test "$wxUSE_STL" = "yes"; then | |
40265 | cat >>confdefs.h <<\_ACEOF | |
40266 | #define wxUSE_STL 1 | |
40267 | _ACEOF | |
40268 | ||
40269 | fi | |
40270 | ||
40271 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
40272 | cat >>confdefs.h <<\_ACEOF | |
40273 | #define wxUSE_APPLE_IEEE 1 | |
40274 | _ACEOF | |
40275 | ||
40276 | fi | |
40277 | ||
40278 | if test "$wxUSE_TIMER" = "yes"; then | |
40279 | cat >>confdefs.h <<\_ACEOF | |
40280 | #define wxUSE_TIMER 1 | |
40281 | _ACEOF | |
40282 | ||
40283 | fi | |
40284 | ||
9c112555 | 40285 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
40286 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
40287 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
40288 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 40289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 40290 | else |
d12aef51 VZ |
40291 | |
40292 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40293 | /* confdefs.h. */ |
40294 | _ACEOF | |
40295 | cat confdefs.h >>conftest.$ac_ext | |
40296 | cat >>conftest.$ac_ext <<_ACEOF | |
40297 | /* end confdefs.h. */ | |
d12aef51 VZ |
40298 | |
40299 | #include <sys/soundcard.h> | |
40300 | ||
40301 | int | |
40302 | main () | |
40303 | { | |
40304 | ||
40305 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40306 | ||
40307 | ; | |
40308 | return 0; | |
40309 | } | |
a848cd7e | 40310 | _ACEOF |
d12aef51 VZ |
40311 | rm -f conftest.$ac_objext conftest$ac_exeext |
40312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40313 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 40314 | ac_status=$? |
ac1cb8d3 VS |
40315 | grep -v '^ *+' conftest.er1 >conftest.err |
40316 | rm -f conftest.er1 | |
40317 | cat conftest.err >&5 | |
a848cd7e SC |
40318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40319 | (exit $ac_status); } && | |
3565d135 RR |
40320 | { ac_try='test -z "$ac_c_werror_flag" |
40321 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40323 | (eval $ac_try) 2>&5 | |
40324 | ac_status=$? | |
40325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40326 | (exit $ac_status); }; } && | |
d12aef51 | 40327 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
40328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40329 | (eval $ac_try) 2>&5 | |
40330 | ac_status=$? | |
40331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40332 | (exit $ac_status); }; }; then | |
d12aef51 | 40333 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
40334 | else |
40335 | echo "$as_me: failed program was:" >&5 | |
40336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40337 | ||
a848cd7e | 40338 | |
d12aef51 VZ |
40339 | saveLibs="$LIBS" |
40340 | LIBS="$saveLibs -lossaudio" | |
40341 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40342 | /* confdefs.h. */ |
40343 | _ACEOF | |
40344 | cat confdefs.h >>conftest.$ac_ext | |
40345 | cat >>conftest.$ac_ext <<_ACEOF | |
40346 | /* end confdefs.h. */ | |
d12aef51 VZ |
40347 | |
40348 | #include <sys/soundcard.h> | |
40349 | ||
40350 | int | |
40351 | main () | |
40352 | { | |
40353 | ||
40354 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40355 | ||
40356 | ; | |
40357 | return 0; | |
40358 | } | |
a848cd7e | 40359 | _ACEOF |
d12aef51 VZ |
40360 | rm -f conftest.$ac_objext conftest$ac_exeext |
40361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40362 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
40363 | ac_status=$? |
40364 | grep -v '^ *+' conftest.er1 >conftest.err | |
40365 | rm -f conftest.er1 | |
40366 | cat conftest.err >&5 | |
40367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 40368 | (exit $ac_status); } && |
3565d135 RR |
40369 | { ac_try='test -z "$ac_c_werror_flag" |
40370 | || test ! -s conftest.err' | |
d12aef51 VZ |
40371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40372 | (eval $ac_try) 2>&5 | |
40373 | ac_status=$? | |
40374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40375 | (exit $ac_status); }; } && | |
40376 | { ac_try='test -s conftest$ac_exeext' | |
40377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40378 | (eval $ac_try) 2>&5 | |
40379 | ac_status=$? | |
40380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40381 | (exit $ac_status); }; }; then | |
40382 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
40383 | else |
40384 | echo "$as_me: failed program was:" >&5 | |
40385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40386 | ||
a848cd7e | 40387 | |
d12aef51 VZ |
40388 | LIBS="$saveLibs" |
40389 | ac_cv_header_sys_soundcard=no | |
40390 | ||
40391 | ||
a848cd7e | 40392 | fi |
d12aef51 VZ |
40393 | rm -f conftest.err conftest.$ac_objext \ |
40394 | conftest$ac_exeext conftest.$ac_ext | |
40395 | ||
a848cd7e SC |
40396 | |
40397 | fi | |
d12aef51 VZ |
40398 | rm -f conftest.err conftest.$ac_objext \ |
40399 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40400 | |
40401 | fi | |
d12aef51 VZ |
40402 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
40403 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 40404 | |
d12aef51 VZ |
40405 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
40406 | cat >>confdefs.h <<\_ACEOF | |
40407 | #define HAVE_SYS_SOUNDCARD_H 1 | |
40408 | _ACEOF | |
a848cd7e | 40409 | |
d12aef51 VZ |
40410 | else |
40411 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
40412 | fi | |
9c112555 MW |
40413 | fi |
40414 | WITH_PLUGIN_SDL=0 | |
40415 | if test "$wxUSE_SOUND" = "yes"; then | |
40416 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
40417 | if test "$wxUSE_LIBSDL" != "no"; then |
40418 | ||
40419 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
40420 | if test "${with_sdl_prefix+set}" = set; then | |
40421 | withval="$with_sdl_prefix" | |
40422 | sdl_prefix="$withval" | |
40423 | else | |
40424 | sdl_prefix="" | |
40425 | fi; | |
40426 | ||
40427 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
40428 | if test "${with_sdl_exec_prefix+set}" = set; then | |
40429 | withval="$with_sdl_exec_prefix" | |
40430 | sdl_exec_prefix="$withval" | |
40431 | else | |
40432 | sdl_exec_prefix="" | |
40433 | fi; | |
40434 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
40435 | if test "${enable_sdltest+set}" = set; then | |
40436 | enableval="$enable_sdltest" | |
40437 | ||
40438 | else | |
40439 | enable_sdltest=yes | |
40440 | fi; | |
40441 | ||
40442 | if test x$sdl_exec_prefix != x ; then | |
40443 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
40444 | if test x${SDL_CONFIG+set} != xset ; then | |
40445 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
40446 | fi | |
40447 | fi | |
40448 | if test x$sdl_prefix != x ; then | |
40449 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
40450 | if test x${SDL_CONFIG+set} != xset ; then | |
40451 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
40452 | fi | |
40453 | fi | |
40454 | ||
40455 | ||
40456 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
40457 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
40458 | set dummy sdl-config; ac_word=$2 | |
40459 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40460 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40461 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
40462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40463 | else | |
40464 | case $SDL_CONFIG in | |
40465 | [\\/]* | ?:[\\/]*) | |
40466 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
40467 | ;; | |
40468 | *) | |
40469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40470 | for as_dir in $PATH | |
40471 | do | |
40472 | IFS=$as_save_IFS | |
40473 | test -z "$as_dir" && as_dir=. | |
40474 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40475 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40476 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40477 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40478 | break 2 | |
40479 | fi | |
40480 | done | |
40481 | done | |
40482 | ||
40483 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
40484 | ;; | |
40485 | esac | |
40486 | fi | |
40487 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
40488 | ||
40489 | if test -n "$SDL_CONFIG"; then | |
40490 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
40491 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
40492 | else | |
40493 | echo "$as_me:$LINENO: result: no" >&5 | |
40494 | echo "${ECHO_T}no" >&6 | |
40495 | fi | |
40496 | ||
40497 | min_sdl_version=1.2.0 | |
40498 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
40499 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
40500 | no_sdl="" | |
40501 | if test "$SDL_CONFIG" = "no" ; then | |
40502 | no_sdl=yes | |
40503 | else | |
40504 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
40505 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
40506 | ||
40507 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
40508 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
40509 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
40510 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
40511 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
40512 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
40513 | if test "x$enable_sdltest" = "xyes" ; then | |
40514 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 40515 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
40516 | ac_save_LIBS="$LIBS" |
40517 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 40518 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
40519 | LIBS="$LIBS $SDL_LIBS" |
40520 | rm -f conf.sdltest | |
40521 | if test "$cross_compiling" = yes; then | |
40522 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
40523 | else | |
40524 | cat >conftest.$ac_ext <<_ACEOF | |
40525 | /* confdefs.h. */ | |
40526 | _ACEOF | |
40527 | cat confdefs.h >>conftest.$ac_ext | |
40528 | cat >>conftest.$ac_ext <<_ACEOF | |
40529 | /* end confdefs.h. */ | |
40530 | ||
40531 | #include <stdio.h> | |
40532 | #include <stdlib.h> | |
40533 | #include <string.h> | |
40534 | #include "SDL.h" | |
40535 | ||
40536 | char* | |
40537 | my_strdup (char *str) | |
40538 | { | |
40539 | char *new_str; | |
40540 | ||
40541 | if (str) | |
40542 | { | |
40543 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
40544 | strcpy (new_str, str); | |
40545 | } | |
40546 | else | |
40547 | new_str = NULL; | |
40548 | ||
40549 | return new_str; | |
40550 | } | |
40551 | ||
40552 | int main (int argc, char *argv[]) | |
40553 | { | |
40554 | int major, minor, micro; | |
40555 | char *tmp_version; | |
40556 | ||
40557 | /* This hangs on some systems (?) | |
40558 | system ("touch conf.sdltest"); | |
40559 | */ | |
40560 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
40561 | ||
40562 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
40563 | tmp_version = my_strdup("$min_sdl_version"); | |
40564 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
40565 | printf("%s, bad version string\n", "$min_sdl_version"); | |
40566 | exit(1); | |
40567 | } | |
40568 | ||
40569 | if (($sdl_major_version > major) || | |
40570 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
40571 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
40572 | { | |
40573 | return 0; | |
40574 | } | |
40575 | else | |
40576 | { | |
40577 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
40578 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
40579 | printf("*** best to upgrade to the required version.\n"); | |
40580 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
40581 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
40582 | printf("*** config.cache before re-running configure\n"); | |
40583 | return 1; | |
40584 | } | |
40585 | } | |
40586 | ||
40587 | ||
40588 | _ACEOF | |
40589 | rm -f conftest$ac_exeext | |
40590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40591 | (eval $ac_link) 2>&5 | |
40592 | ac_status=$? | |
40593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40594 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
40595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40596 | (eval $ac_try) 2>&5 | |
40597 | ac_status=$? | |
40598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40599 | (exit $ac_status); }; }; then | |
40600 | : | |
40601 | else | |
40602 | echo "$as_me: program exited with status $ac_status" >&5 | |
40603 | echo "$as_me: failed program was:" >&5 | |
40604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40605 | ||
40606 | ( exit $ac_status ) | |
40607 | no_sdl=yes | |
40608 | fi | |
ac1cb8d3 | 40609 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40610 | fi |
40611 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 40612 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
40613 | LIBS="$ac_save_LIBS" |
40614 | fi | |
40615 | fi | |
40616 | if test "x$no_sdl" = x ; then | |
40617 | echo "$as_me:$LINENO: result: yes" >&5 | |
40618 | echo "${ECHO_T}yes" >&6 | |
40619 | ||
40620 | EXTRALIBS_SDL="$SDL_LIBS" | |
c92ad099 | 40621 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
a848cd7e SC |
40622 | cat >>confdefs.h <<\_ACEOF |
40623 | #define wxUSE_LIBSDL 1 | |
40624 | _ACEOF | |
40625 | ||
40626 | ||
40627 | else | |
40628 | echo "$as_me:$LINENO: result: no" >&5 | |
40629 | echo "${ECHO_T}no" >&6 | |
40630 | if test "$SDL_CONFIG" = "no" ; then | |
40631 | echo "*** The sdl-config script installed by SDL could not be found" | |
40632 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
40633 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
40634 | echo "*** full path to sdl-config." | |
40635 | else | |
40636 | if test -f conf.sdltest ; then | |
40637 | : | |
40638 | else | |
40639 | echo "*** Could not run SDL test program, checking why..." | |
40640 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 40641 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
40642 | LIBS="$LIBS $SDL_LIBS" |
40643 | cat >conftest.$ac_ext <<_ACEOF | |
40644 | /* confdefs.h. */ | |
40645 | _ACEOF | |
40646 | cat confdefs.h >>conftest.$ac_ext | |
40647 | cat >>conftest.$ac_ext <<_ACEOF | |
40648 | /* end confdefs.h. */ | |
40649 | ||
40650 | #include <stdio.h> | |
40651 | #include "SDL.h" | |
40652 | ||
40653 | int main(int argc, char *argv[]) | |
40654 | { return 0; } | |
40655 | #undef main | |
40656 | #define main K_and_R_C_main | |
40657 | ||
40658 | int | |
40659 | main () | |
40660 | { | |
40661 | return 0; | |
40662 | ; | |
40663 | return 0; | |
40664 | } | |
40665 | _ACEOF | |
40666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40668 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40669 | ac_status=$? |
ac1cb8d3 VS |
40670 | grep -v '^ *+' conftest.er1 >conftest.err |
40671 | rm -f conftest.er1 | |
40672 | cat conftest.err >&5 | |
a848cd7e SC |
40673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40674 | (exit $ac_status); } && | |
3565d135 RR |
40675 | { ac_try='test -z "$ac_c_werror_flag" |
40676 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40678 | (eval $ac_try) 2>&5 | |
40679 | ac_status=$? | |
40680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40681 | (exit $ac_status); }; } && | |
40682 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40684 | (eval $ac_try) 2>&5 | |
40685 | ac_status=$? | |
40686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40687 | (exit $ac_status); }; }; then | |
40688 | echo "*** The test program compiled, but did not run. This usually means" | |
40689 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
40690 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
40691 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
40692 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
40693 | echo "*** is required on your system" | |
40694 | echo "***" | |
40695 | echo "*** If you have an old version installed, it is best to remove it, although" | |
40696 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
40697 | else | |
40698 | echo "$as_me: failed program was:" >&5 | |
40699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40700 | ||
40701 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
40702 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
40703 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
40704 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
40705 | fi | |
ac1cb8d3 VS |
40706 | rm -f conftest.err conftest.$ac_objext \ |
40707 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 40708 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 40709 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
40710 | LIBS="$ac_save_LIBS" |
40711 | fi | |
40712 | fi | |
40713 | SDL_CFLAGS="" | |
40714 | SDL_LIBS="" | |
40715 | wxUSE_LIBSDL="no" | |
40716 | fi | |
40717 | ||
40718 | ||
40719 | rm -f conf.sdltest | |
40720 | ||
40721 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
40722 | WITH_PLUGIN_SDL=1 | |
40723 | fi | |
40724 | fi | |
40725 | fi | |
40726 | ||
40727 | cat >>confdefs.h <<\_ACEOF | |
40728 | #define wxUSE_SOUND 1 | |
40729 | _ACEOF | |
40730 | ||
40731 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
40732 | fi | |
40733 | ||
d1c38808 VZ |
40734 | if test "$WXGTK20" = 1; then |
40735 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
40736 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
40737 | ||
40738 | ||
40739 | succeeded=no | |
40740 | ||
40741 | if test -z "$PKG_CONFIG"; then | |
40742 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
40743 | set dummy pkg-config; ac_word=$2 | |
40744 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40745 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40746 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
40747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40748 | else | |
40749 | case $PKG_CONFIG in | |
40750 | [\\/]* | ?:[\\/]*) | |
40751 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
40752 | ;; | |
40753 | *) | |
40754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40755 | for as_dir in $PATH | |
40756 | do | |
40757 | IFS=$as_save_IFS | |
40758 | test -z "$as_dir" && as_dir=. | |
40759 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40760 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40761 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40763 | break 2 | |
40764 | fi | |
40765 | done | |
40766 | done | |
40767 | ||
40768 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
40769 | ;; | |
40770 | esac | |
40771 | fi | |
40772 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
40773 | ||
40774 | if test -n "$PKG_CONFIG"; then | |
40775 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
40776 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
40777 | else | |
40778 | echo "$as_me:$LINENO: result: no" >&5 | |
40779 | echo "${ECHO_T}no" >&6 | |
40780 | fi | |
40781 | ||
40782 | fi | |
40783 | ||
40784 | if test "$PKG_CONFIG" = "no" ; then | |
40785 | echo "*** The pkg-config script could not be found. Make sure it is" | |
40786 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
40787 | echo "*** to the full path to pkg-config." | |
40788 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
40789 | else | |
40790 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
40791 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
40792 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
40793 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 40794 | |
ffa762ff | 40795 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
40796 | echo "$as_me:$LINENO: result: yes" >&5 |
40797 | echo "${ECHO_T}yes" >&6 | |
40798 | succeeded=yes | |
40799 | ||
40800 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
40801 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 40802 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40803 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
40804 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
40805 | ||
40806 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
40807 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 40808 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40809 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
40810 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
40811 | else | |
40812 | LIBGNOMEPRINTUI_CFLAGS="" | |
40813 | LIBGNOMEPRINTUI_LIBS="" | |
40814 | ## If we have a custom action on failure, don't print errors, but | |
40815 | ## do set a variable so people can do so. | |
ffa762ff | 40816 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40817 | |
40818 | fi | |
40819 | ||
40820 | ||
40821 | ||
40822 | else | |
40823 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
40824 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
40825 | fi | |
40826 | fi | |
40827 | ||
40828 | if test $succeeded = yes; then | |
40829 | ||
c92ad099 | 40830 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
d1c38808 VZ |
40831 | cat >>confdefs.h <<\_ACEOF |
40832 | #define wxUSE_LIBGNOMEPRINT 1 | |
40833 | _ACEOF | |
40834 | ||
40835 | ||
40836 | else | |
40837 | ||
40838 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
40839 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
40840 | wxUSE_LIBGNOMEPRINT="no" | |
40841 | ||
40842 | ||
40843 | fi | |
40844 | ||
40845 | fi | |
40846 | fi | |
40847 | fi | |
40848 | ||
3565d135 RR |
40849 | if test "$WXGTK20" = 1; then |
40850 | if test "$wxUSE_LIBHILDON" = "yes" ; then | |
40851 | ||
40852 | succeeded=no | |
40853 | ||
40854 | if test -z "$PKG_CONFIG"; then | |
40855 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
40856 | set dummy pkg-config; ac_word=$2 | |
40857 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40858 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40859 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
40860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40861 | else | |
40862 | case $PKG_CONFIG in | |
40863 | [\\/]* | ?:[\\/]*) | |
40864 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
40865 | ;; | |
40866 | *) | |
40867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40868 | for as_dir in $PATH | |
40869 | do | |
40870 | IFS=$as_save_IFS | |
40871 | test -z "$as_dir" && as_dir=. | |
40872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40874 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40876 | break 2 | |
40877 | fi | |
40878 | done | |
40879 | done | |
40880 | ||
40881 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
40882 | ;; | |
40883 | esac | |
40884 | fi | |
40885 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
40886 | ||
40887 | if test -n "$PKG_CONFIG"; then | |
40888 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
40889 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
40890 | else | |
40891 | echo "$as_me:$LINENO: result: no" >&5 | |
40892 | echo "${ECHO_T}no" >&6 | |
40893 | fi | |
40894 | ||
40895 | fi | |
40896 | ||
40897 | if test "$PKG_CONFIG" = "no" ; then | |
40898 | echo "*** The pkg-config script could not be found. Make sure it is" | |
40899 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
40900 | echo "*** to the full path to pkg-config." | |
40901 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
40902 | else | |
40903 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
40904 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
40905 | echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5 | |
40906 | echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6 | |
40907 | ||
40908 | if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then | |
40909 | echo "$as_me:$LINENO: result: yes" >&5 | |
40910 | echo "${ECHO_T}yes" >&6 | |
40911 | succeeded=yes | |
40912 | ||
40913 | echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5 | |
40914 | echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6 | |
40915 | HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"` | |
40916 | echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5 | |
40917 | echo "${ECHO_T}$HILDON_CFLAGS" >&6 | |
40918 | ||
40919 | echo "$as_me:$LINENO: checking HILDON_LIBS" >&5 | |
40920 | echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6 | |
40921 | HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"` | |
40922 | echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5 | |
40923 | echo "${ECHO_T}$HILDON_LIBS" >&6 | |
40924 | else | |
40925 | HILDON_CFLAGS="" | |
40926 | HILDON_LIBS="" | |
40927 | ## If we have a custom action on failure, don't print errors, but | |
40928 | ## do set a variable so people can do so. | |
40929 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
40930 | ||
40931 | fi | |
40932 | ||
40933 | ||
40934 | ||
40935 | else | |
40936 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
40937 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
40938 | fi | |
40939 | fi | |
40940 | ||
40941 | if test $succeeded = yes; then | |
40942 | ||
40943 | EXTRALIBS_HILDON="$HILDON_LIBS" | |
40944 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" | |
40945 | cat >>confdefs.h <<\_ACEOF | |
40946 | #define wxUSE_LIBHILDON 1 | |
40947 | _ACEOF | |
40948 | ||
40949 | ||
40950 | else | |
40951 | ||
40952 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 | |
40953 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
40954 | wxUSE_LIBHILDON="no" | |
40955 | ||
40956 | ||
40957 | fi | |
40958 | ||
40959 | fi | |
40960 | fi | |
d1c38808 | 40961 | |
a848cd7e SC |
40962 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
40963 | cat >>confdefs.h <<\_ACEOF | |
40964 | #define wxUSE_CMDLINE_PARSER 1 | |
40965 | _ACEOF | |
40966 | ||
40967 | fi | |
40968 | ||
40969 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
40970 | cat >>confdefs.h <<\_ACEOF | |
40971 | #define wxUSE_STOPWATCH 1 | |
40972 | _ACEOF | |
40973 | ||
40974 | fi | |
40975 | ||
40976 | if test "$wxUSE_DATETIME" = "yes"; then | |
40977 | cat >>confdefs.h <<\_ACEOF | |
40978 | #define wxUSE_DATETIME 1 | |
40979 | _ACEOF | |
40980 | ||
40981 | fi | |
40982 | ||
40983 | if test "$wxUSE_FILE" = "yes"; then | |
40984 | cat >>confdefs.h <<\_ACEOF | |
40985 | #define wxUSE_FILE 1 | |
40986 | _ACEOF | |
40987 | ||
40988 | fi | |
40989 | ||
40990 | if test "$wxUSE_FFILE" = "yes"; then | |
40991 | cat >>confdefs.h <<\_ACEOF | |
40992 | #define wxUSE_FFILE 1 | |
40993 | _ACEOF | |
40994 | ||
40995 | fi | |
40996 | ||
40997 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
40998 | cat >>confdefs.h <<\_ACEOF | |
40999 | #define wxUSE_FILESYSTEM 1 | |
41000 | _ACEOF | |
41001 | ||
41002 | fi | |
41003 | ||
41004 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
41005 | cat >>confdefs.h <<\_ACEOF | |
41006 | #define wxUSE_FS_ZIP 1 | |
41007 | _ACEOF | |
41008 | ||
41009 | fi | |
41010 | ||
9e8e867f | 41011 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 41012 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 41013 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
41014 | _ACEOF |
41015 | ||
41016 | fi | |
41017 | ||
41018 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 41019 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
41020 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
41021 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
41022 | elif test "$wxUSE_ZLIB" = "no"; then | |
41023 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
41024 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
41025 | else | |
41026 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41027 | #define wxUSE_ZIPSTREAM 1 |
41028 | _ACEOF | |
41029 | ||
81f90336 | 41030 | fi |
a848cd7e SC |
41031 | fi |
41032 | ||
a848cd7e | 41033 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
41034 | if test "$USE_UNIX" != 1; then |
41035 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
41036 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
41037 | wxUSE_ON_FATAL_EXCEPTION=no | |
41038 | else | |
41039 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41040 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
41041 | _ACEOF | |
41042 | ||
18228ab4 | 41043 | fi |
a848cd7e SC |
41044 | fi |
41045 | ||
eaff0f0d VZ |
41046 | if test "$wxUSE_STACKWALKER" = "yes"; then |
41047 | cat >>confdefs.h <<\_ACEOF | |
41048 | #define wxUSE_STACKWALKER 1 | |
41049 | _ACEOF | |
41050 | ||
41051 | fi | |
41052 | ||
36b6448c | 41053 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
41054 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
41055 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
41056 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
41057 | wxUSE_DEBUGREPORT=no |
41058 | else | |
41059 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
41060 | #define wxUSE_DEBUGREPORT 1 |
41061 | _ACEOF | |
41062 | ||
21dfc162 MW |
41063 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
41064 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
41065 | fi | |
dfe0c803 | 41066 | fi |
36b6448c VZ |
41067 | fi |
41068 | ||
a848cd7e SC |
41069 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
41070 | cat >>confdefs.h <<\_ACEOF | |
41071 | #define wxUSE_SNGLINST_CHECKER 1 | |
41072 | _ACEOF | |
41073 | ||
41074 | fi | |
41075 | ||
41076 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
41077 | cat >>confdefs.h <<\_ACEOF | |
41078 | #define wxUSE_BUSYINFO 1 | |
41079 | _ACEOF | |
41080 | ||
41081 | fi | |
41082 | ||
41083 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
41084 | cat >>confdefs.h <<\_ACEOF | |
41085 | #define wxUSE_STD_IOSTREAM 1 | |
41086 | _ACEOF | |
41087 | ||
41088 | fi | |
41089 | ||
59746b65 MW |
41090 | if test "$wxUSE_STD_STRING" = "yes"; then |
41091 | cat >>confdefs.h <<\_ACEOF | |
41092 | #define wxUSE_STD_STRING 1 | |
41093 | _ACEOF | |
41094 | ||
41095 | fi | |
41096 | ||
07158944 VZ |
41097 | if test "$wxUSE_STDPATHS" = "yes"; then |
41098 | cat >>confdefs.h <<\_ACEOF | |
41099 | #define wxUSE_STDPATHS 1 | |
41100 | _ACEOF | |
41101 | ||
41102 | fi | |
41103 | ||
a848cd7e SC |
41104 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
41105 | cat >>confdefs.h <<\_ACEOF | |
41106 | #define wxUSE_TEXTBUFFER 1 | |
41107 | _ACEOF | |
41108 | ||
41109 | fi | |
41110 | ||
41111 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
41112 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
41113 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
41114 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
41115 | else | |
41116 | cat >>confdefs.h <<\_ACEOF | |
41117 | #define wxUSE_TEXTFILE 1 | |
41118 | _ACEOF | |
41119 | ||
41120 | fi | |
41121 | fi | |
41122 | ||
41123 | if test "$wxUSE_CONFIG" = "yes" ; then | |
41124 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
41125 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
41126 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
41127 | else | |
41128 | cat >>confdefs.h <<\_ACEOF | |
41129 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
41130 | _ACEOF |
41131 | ||
41132 | cat >>confdefs.h <<\_ACEOF | |
41133 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
41134 | _ACEOF |
41135 | ||
41136 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
41137 | fi | |
41138 | fi | |
41139 | ||
41140 | if test "$wxUSE_INTL" = "yes" ; then | |
41141 | if test "$wxUSE_FILE" != "yes"; then | |
41142 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
41143 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
41144 | else | |
41145 | cat >>confdefs.h <<\_ACEOF | |
41146 | #define wxUSE_INTL 1 | |
41147 | _ACEOF | |
41148 | ||
41149 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
41150 | GUIDIST="$GUIDIST INTL_DIST" | |
41151 | fi | |
41152 | fi | |
41153 | ||
41154 | if test "$wxUSE_LOG" = "yes"; then | |
41155 | cat >>confdefs.h <<\_ACEOF | |
41156 | #define wxUSE_LOG 1 | |
41157 | _ACEOF | |
41158 | ||
41159 | ||
41160 | if test "$wxUSE_LOGGUI" = "yes"; then | |
41161 | cat >>confdefs.h <<\_ACEOF | |
41162 | #define wxUSE_LOGGUI 1 | |
41163 | _ACEOF | |
41164 | ||
41165 | fi | |
41166 | ||
41167 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
41168 | cat >>confdefs.h <<\_ACEOF | |
41169 | #define wxUSE_LOGWINDOW 1 | |
41170 | _ACEOF | |
41171 | ||
41172 | fi | |
41173 | ||
41174 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
41175 | cat >>confdefs.h <<\_ACEOF | |
41176 | #define wxUSE_LOG_DIALOG 1 | |
41177 | _ACEOF | |
41178 | ||
41179 | fi | |
0b78747f MW |
41180 | |
41181 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
41182 | fi |
41183 | ||
41184 | if test "$wxUSE_LONGLONG" = "yes"; then | |
41185 | cat >>confdefs.h <<\_ACEOF | |
41186 | #define wxUSE_LONGLONG 1 | |
41187 | _ACEOF | |
41188 | ||
41189 | fi | |
41190 | ||
41191 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
41192 | cat >>confdefs.h <<\_ACEOF | |
41193 | #define wxUSE_GEOMETRY 1 | |
41194 | _ACEOF | |
41195 | ||
41196 | fi | |
41197 | ||
a848cd7e SC |
41198 | if test "$wxUSE_STREAMS" = "yes" ; then |
41199 | cat >>confdefs.h <<\_ACEOF | |
41200 | #define wxUSE_STREAMS 1 | |
41201 | _ACEOF | |
41202 | ||
41203 | fi | |
41204 | ||
41205 | ||
41206 | if test "$wxUSE_DATETIME" = "yes"; then | |
41207 | ||
41208 | for ac_func in strptime | |
41209 | do | |
41210 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41211 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41212 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41213 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41215 | else | |
41216 | cat >conftest.$ac_ext <<_ACEOF | |
41217 | /* confdefs.h. */ | |
41218 | _ACEOF | |
41219 | cat confdefs.h >>conftest.$ac_ext | |
41220 | cat >>conftest.$ac_ext <<_ACEOF | |
41221 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41222 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41223 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41224 | #define $ac_func innocuous_$ac_func | |
41225 | ||
a848cd7e SC |
41226 | /* System header to define __stub macros and hopefully few prototypes, |
41227 | which can conflict with char $ac_func (); below. | |
41228 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41229 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41230 | |
a848cd7e SC |
41231 | #ifdef __STDC__ |
41232 | # include <limits.h> | |
41233 | #else | |
41234 | # include <assert.h> | |
41235 | #endif | |
ac1cb8d3 VS |
41236 | |
41237 | #undef $ac_func | |
41238 | ||
a848cd7e SC |
41239 | /* Override any gcc2 internal prototype to avoid an error. */ |
41240 | #ifdef __cplusplus | |
41241 | extern "C" | |
41242 | { | |
41243 | #endif | |
41244 | /* We use char because int might match the return type of a gcc2 | |
41245 | builtin and then its argument prototype would still apply. */ | |
41246 | char $ac_func (); | |
41247 | /* The GNU C library defines this for functions which it implements | |
41248 | to always fail with ENOSYS. Some functions are actually named | |
41249 | something starting with __ and the normal name is an alias. */ | |
41250 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41251 | choke me | |
41252 | #else | |
41253 | char (*f) () = $ac_func; | |
41254 | #endif | |
41255 | #ifdef __cplusplus | |
41256 | } | |
41257 | #endif | |
41258 | ||
41259 | int | |
41260 | main () | |
41261 | { | |
41262 | return f != $ac_func; | |
41263 | ; | |
41264 | return 0; | |
41265 | } | |
41266 | _ACEOF | |
41267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41269 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41270 | ac_status=$? |
ac1cb8d3 VS |
41271 | grep -v '^ *+' conftest.er1 >conftest.err |
41272 | rm -f conftest.er1 | |
41273 | cat conftest.err >&5 | |
a848cd7e SC |
41274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41275 | (exit $ac_status); } && | |
3565d135 RR |
41276 | { ac_try='test -z "$ac_c_werror_flag" |
41277 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41279 | (eval $ac_try) 2>&5 | |
41280 | ac_status=$? | |
41281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41282 | (exit $ac_status); }; } && | |
41283 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41285 | (eval $ac_try) 2>&5 | |
41286 | ac_status=$? | |
41287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41288 | (exit $ac_status); }; }; then | |
41289 | eval "$as_ac_var=yes" | |
41290 | else | |
41291 | echo "$as_me: failed program was:" >&5 | |
41292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41293 | ||
41294 | eval "$as_ac_var=no" | |
41295 | fi | |
ac1cb8d3 VS |
41296 | rm -f conftest.err conftest.$ac_objext \ |
41297 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41298 | fi |
41299 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41300 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41301 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41302 | cat >>confdefs.h <<_ACEOF | |
41303 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41304 | _ACEOF | |
41305 | ||
41306 | fi | |
41307 | done | |
41308 | ||
f536f005 VZ |
41309 | if test "$ac_cv_func_strptime" = "yes"; then |
41310 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
41311 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
41312 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
41313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41314 | else | |
41315 | ||
41316 | ||
41317 | ||
41318 | ac_ext=cc | |
41319 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41320 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41321 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41322 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41323 | ||
41324 | cat >conftest.$ac_ext <<_ACEOF | |
41325 | /* confdefs.h. */ | |
41326 | _ACEOF | |
41327 | cat confdefs.h >>conftest.$ac_ext | |
41328 | cat >>conftest.$ac_ext <<_ACEOF | |
41329 | /* end confdefs.h. */ | |
41330 | ||
41331 | #include <time.h> | |
41332 | ||
41333 | int | |
41334 | main () | |
41335 | { | |
41336 | ||
41337 | struct tm t; | |
41338 | strptime("foo", "bar", &t); | |
41339 | ||
41340 | ; | |
41341 | return 0; | |
41342 | } | |
41343 | _ACEOF | |
41344 | rm -f conftest.$ac_objext | |
41345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41346 | (eval $ac_compile) 2>conftest.er1 | |
41347 | ac_status=$? | |
41348 | grep -v '^ *+' conftest.er1 >conftest.err | |
41349 | rm -f conftest.er1 | |
41350 | cat conftest.err >&5 | |
41351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41352 | (exit $ac_status); } && | |
3565d135 RR |
41353 | { ac_try='test -z "$ac_cxx_werror_flag" |
41354 | || test ! -s conftest.err' | |
f536f005 VZ |
41355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41356 | (eval $ac_try) 2>&5 | |
41357 | ac_status=$? | |
41358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41359 | (exit $ac_status); }; } && | |
41360 | { ac_try='test -s conftest.$ac_objext' | |
41361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41362 | (eval $ac_try) 2>&5 | |
41363 | ac_status=$? | |
41364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41365 | (exit $ac_status); }; }; then | |
41366 | wx_cv_func_strptime_decl=yes | |
41367 | else | |
41368 | echo "$as_me: failed program was:" >&5 | |
41369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41370 | ||
41371 | wx_cv_func_strptime_decl=no | |
41372 | ||
41373 | fi | |
41374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41375 | ac_ext=c | |
41376 | ac_cpp='$CPP $CPPFLAGS' | |
41377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41380 | ||
41381 | ||
41382 | ||
41383 | fi | |
41384 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
41385 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
41386 | fi | |
41387 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
41388 | cat >>confdefs.h <<\_ACEOF | |
41389 | #define HAVE_STRPTIME_DECL 1 | |
41390 | _ACEOF | |
41391 | ||
41392 | fi | |
a848cd7e SC |
41393 | |
41394 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
41395 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
41396 | if test "${wx_cv_var_timezone+set}" = set; then | |
41397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41398 | else | |
41399 | ||
41400 | cat >conftest.$ac_ext <<_ACEOF | |
41401 | /* confdefs.h. */ | |
41402 | _ACEOF | |
41403 | cat confdefs.h >>conftest.$ac_ext | |
41404 | cat >>conftest.$ac_ext <<_ACEOF | |
41405 | /* end confdefs.h. */ | |
41406 | ||
41407 | #include <time.h> | |
41408 | ||
41409 | int | |
41410 | main () | |
41411 | { | |
41412 | ||
41413 | int tz; | |
41414 | tz = timezone; | |
41415 | ||
41416 | ; | |
41417 | return 0; | |
41418 | } | |
41419 | _ACEOF | |
41420 | rm -f conftest.$ac_objext | |
41421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41422 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41423 | ac_status=$? |
ac1cb8d3 VS |
41424 | grep -v '^ *+' conftest.er1 >conftest.err |
41425 | rm -f conftest.er1 | |
41426 | cat conftest.err >&5 | |
a848cd7e SC |
41427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41428 | (exit $ac_status); } && | |
3565d135 RR |
41429 | { ac_try='test -z "$ac_c_werror_flag" |
41430 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41432 | (eval $ac_try) 2>&5 | |
41433 | ac_status=$? | |
41434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41435 | (exit $ac_status); }; } && | |
41436 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41438 | (eval $ac_try) 2>&5 | |
41439 | ac_status=$? | |
41440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41441 | (exit $ac_status); }; }; then | |
41442 | ||
41443 | wx_cv_var_timezone=timezone | |
41444 | ||
41445 | else | |
41446 | echo "$as_me: failed program was:" >&5 | |
41447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41448 | ||
41449 | ||
41450 | cat >conftest.$ac_ext <<_ACEOF | |
41451 | /* confdefs.h. */ | |
41452 | _ACEOF | |
41453 | cat confdefs.h >>conftest.$ac_ext | |
41454 | cat >>conftest.$ac_ext <<_ACEOF | |
41455 | /* end confdefs.h. */ | |
41456 | ||
41457 | #include <time.h> | |
41458 | ||
41459 | int | |
41460 | main () | |
41461 | { | |
41462 | ||
41463 | int tz; | |
41464 | tz = _timezone; | |
41465 | ||
41466 | ; | |
41467 | return 0; | |
41468 | } | |
41469 | _ACEOF | |
41470 | rm -f conftest.$ac_objext | |
41471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41472 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41473 | ac_status=$? |
ac1cb8d3 VS |
41474 | grep -v '^ *+' conftest.er1 >conftest.err |
41475 | rm -f conftest.er1 | |
41476 | cat conftest.err >&5 | |
a848cd7e SC |
41477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41478 | (exit $ac_status); } && | |
3565d135 RR |
41479 | { ac_try='test -z "$ac_c_werror_flag" |
41480 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41482 | (eval $ac_try) 2>&5 | |
41483 | ac_status=$? | |
41484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41485 | (exit $ac_status); }; } && | |
41486 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41488 | (eval $ac_try) 2>&5 | |
41489 | ac_status=$? | |
41490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41491 | (exit $ac_status); }; }; then | |
41492 | ||
41493 | wx_cv_var_timezone=_timezone | |
41494 | ||
41495 | else | |
41496 | echo "$as_me: failed program was:" >&5 | |
41497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41498 | ||
41499 | ||
41500 | cat >conftest.$ac_ext <<_ACEOF | |
41501 | /* confdefs.h. */ | |
41502 | _ACEOF | |
41503 | cat confdefs.h >>conftest.$ac_ext | |
41504 | cat >>conftest.$ac_ext <<_ACEOF | |
41505 | /* end confdefs.h. */ | |
41506 | ||
41507 | #include <time.h> | |
41508 | ||
41509 | int | |
41510 | main () | |
41511 | { | |
41512 | ||
41513 | int tz; | |
41514 | tz = __timezone; | |
41515 | ||
41516 | ; | |
41517 | return 0; | |
41518 | } | |
41519 | _ACEOF | |
41520 | rm -f conftest.$ac_objext | |
41521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41522 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41523 | ac_status=$? |
ac1cb8d3 VS |
41524 | grep -v '^ *+' conftest.er1 >conftest.err |
41525 | rm -f conftest.er1 | |
41526 | cat conftest.err >&5 | |
a848cd7e SC |
41527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41528 | (exit $ac_status); } && | |
3565d135 RR |
41529 | { ac_try='test -z "$ac_c_werror_flag" |
41530 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41532 | (eval $ac_try) 2>&5 | |
41533 | ac_status=$? | |
41534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41535 | (exit $ac_status); }; } && | |
41536 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41538 | (eval $ac_try) 2>&5 | |
41539 | ac_status=$? | |
41540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41541 | (exit $ac_status); }; }; then | |
41542 | ||
41543 | wx_cv_var_timezone=__timezone | |
41544 | ||
41545 | else | |
41546 | echo "$as_me: failed program was:" >&5 | |
41547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41548 | ||
41549 | ||
41550 | if test "$USE_DOS" = 0 ; then | |
41551 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
41552 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
41553 | fi | |
41554 | ||
41555 | ||
41556 | fi | |
ac1cb8d3 | 41557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41558 | |
41559 | ||
41560 | fi | |
ac1cb8d3 | 41561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41562 | |
41563 | ||
41564 | fi | |
ac1cb8d3 | 41565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41566 | |
41567 | ||
41568 | fi | |
41569 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
41570 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
41571 | ||
41572 | if test "x$wx_cv_var_timezone" != x ; then | |
41573 | cat >>confdefs.h <<_ACEOF | |
41574 | #define WX_TIMEZONE $wx_cv_var_timezone | |
41575 | _ACEOF | |
41576 | ||
41577 | fi | |
41578 | ||
41579 | ||
41580 | for ac_func in localtime | |
41581 | do | |
41582 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41583 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41584 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41585 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41587 | else | |
41588 | cat >conftest.$ac_ext <<_ACEOF | |
41589 | /* confdefs.h. */ | |
41590 | _ACEOF | |
41591 | cat confdefs.h >>conftest.$ac_ext | |
41592 | cat >>conftest.$ac_ext <<_ACEOF | |
41593 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41594 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41595 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41596 | #define $ac_func innocuous_$ac_func | |
41597 | ||
a848cd7e SC |
41598 | /* System header to define __stub macros and hopefully few prototypes, |
41599 | which can conflict with char $ac_func (); below. | |
41600 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41601 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41602 | |
a848cd7e SC |
41603 | #ifdef __STDC__ |
41604 | # include <limits.h> | |
41605 | #else | |
41606 | # include <assert.h> | |
41607 | #endif | |
ac1cb8d3 VS |
41608 | |
41609 | #undef $ac_func | |
41610 | ||
a848cd7e SC |
41611 | /* Override any gcc2 internal prototype to avoid an error. */ |
41612 | #ifdef __cplusplus | |
41613 | extern "C" | |
41614 | { | |
41615 | #endif | |
41616 | /* We use char because int might match the return type of a gcc2 | |
41617 | builtin and then its argument prototype would still apply. */ | |
41618 | char $ac_func (); | |
41619 | /* The GNU C library defines this for functions which it implements | |
41620 | to always fail with ENOSYS. Some functions are actually named | |
41621 | something starting with __ and the normal name is an alias. */ | |
41622 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41623 | choke me | |
41624 | #else | |
41625 | char (*f) () = $ac_func; | |
41626 | #endif | |
41627 | #ifdef __cplusplus | |
41628 | } | |
41629 | #endif | |
41630 | ||
41631 | int | |
41632 | main () | |
41633 | { | |
41634 | return f != $ac_func; | |
41635 | ; | |
41636 | return 0; | |
41637 | } | |
41638 | _ACEOF | |
41639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41641 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41642 | ac_status=$? |
ac1cb8d3 VS |
41643 | grep -v '^ *+' conftest.er1 >conftest.err |
41644 | rm -f conftest.er1 | |
41645 | cat conftest.err >&5 | |
a848cd7e SC |
41646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41647 | (exit $ac_status); } && | |
3565d135 RR |
41648 | { ac_try='test -z "$ac_c_werror_flag" |
41649 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41651 | (eval $ac_try) 2>&5 | |
41652 | ac_status=$? | |
41653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41654 | (exit $ac_status); }; } && | |
41655 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41657 | (eval $ac_try) 2>&5 | |
41658 | ac_status=$? | |
41659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41660 | (exit $ac_status); }; }; then | |
41661 | eval "$as_ac_var=yes" | |
41662 | else | |
41663 | echo "$as_me: failed program was:" >&5 | |
41664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41665 | ||
41666 | eval "$as_ac_var=no" | |
41667 | fi | |
ac1cb8d3 VS |
41668 | rm -f conftest.err conftest.$ac_objext \ |
41669 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41670 | fi |
41671 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41672 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41673 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41674 | cat >>confdefs.h <<_ACEOF | |
41675 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41676 | _ACEOF | |
41677 | ||
41678 | fi | |
41679 | done | |
41680 | ||
41681 | ||
41682 | if test "$ac_cv_func_localtime" = "yes"; then | |
41683 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
41684 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
41685 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
41686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41687 | else | |
41688 | ||
41689 | cat >conftest.$ac_ext <<_ACEOF | |
41690 | /* confdefs.h. */ | |
41691 | _ACEOF | |
41692 | cat confdefs.h >>conftest.$ac_ext | |
41693 | cat >>conftest.$ac_ext <<_ACEOF | |
41694 | /* end confdefs.h. */ | |
41695 | ||
41696 | #include <time.h> | |
41697 | ||
41698 | int | |
41699 | main () | |
41700 | { | |
41701 | ||
41702 | struct tm tm; | |
41703 | tm.tm_gmtoff++; | |
41704 | ||
41705 | ; | |
41706 | return 0; | |
41707 | } | |
41708 | _ACEOF | |
41709 | rm -f conftest.$ac_objext | |
41710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41711 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41712 | ac_status=$? |
ac1cb8d3 VS |
41713 | grep -v '^ *+' conftest.er1 >conftest.err |
41714 | rm -f conftest.er1 | |
41715 | cat conftest.err >&5 | |
a848cd7e SC |
41716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41717 | (exit $ac_status); } && | |
3565d135 RR |
41718 | { ac_try='test -z "$ac_c_werror_flag" |
41719 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41721 | (eval $ac_try) 2>&5 | |
41722 | ac_status=$? | |
41723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41724 | (exit $ac_status); }; } && | |
41725 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41727 | (eval $ac_try) 2>&5 | |
41728 | ac_status=$? | |
41729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41730 | (exit $ac_status); }; }; then | |
41731 | ||
41732 | wx_cv_struct_tm_has_gmtoff=yes | |
41733 | ||
41734 | else | |
41735 | echo "$as_me: failed program was:" >&5 | |
41736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41737 | ||
41738 | wx_cv_struct_tm_has_gmtoff=no | |
41739 | ||
41740 | fi | |
ac1cb8d3 | 41741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41742 | |
41743 | fi | |
41744 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
41745 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
41746 | fi | |
41747 | ||
41748 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
41749 | cat >>confdefs.h <<\_ACEOF | |
41750 | #define WX_GMTOFF_IN_TM 1 | |
41751 | _ACEOF | |
41752 | ||
41753 | fi | |
41754 | ||
41755 | ||
41756 | ||
41757 | for ac_func in gettimeofday ftime | |
41758 | do | |
41759 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41760 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41761 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41762 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41764 | else | |
41765 | cat >conftest.$ac_ext <<_ACEOF | |
41766 | /* confdefs.h. */ | |
41767 | _ACEOF | |
41768 | cat confdefs.h >>conftest.$ac_ext | |
41769 | cat >>conftest.$ac_ext <<_ACEOF | |
41770 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41771 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41772 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41773 | #define $ac_func innocuous_$ac_func | |
41774 | ||
a848cd7e SC |
41775 | /* System header to define __stub macros and hopefully few prototypes, |
41776 | which can conflict with char $ac_func (); below. | |
41777 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41778 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41779 | |
a848cd7e SC |
41780 | #ifdef __STDC__ |
41781 | # include <limits.h> | |
41782 | #else | |
41783 | # include <assert.h> | |
41784 | #endif | |
ac1cb8d3 VS |
41785 | |
41786 | #undef $ac_func | |
41787 | ||
a848cd7e SC |
41788 | /* Override any gcc2 internal prototype to avoid an error. */ |
41789 | #ifdef __cplusplus | |
41790 | extern "C" | |
41791 | { | |
41792 | #endif | |
41793 | /* We use char because int might match the return type of a gcc2 | |
41794 | builtin and then its argument prototype would still apply. */ | |
41795 | char $ac_func (); | |
41796 | /* The GNU C library defines this for functions which it implements | |
41797 | to always fail with ENOSYS. Some functions are actually named | |
41798 | something starting with __ and the normal name is an alias. */ | |
41799 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41800 | choke me | |
41801 | #else | |
41802 | char (*f) () = $ac_func; | |
41803 | #endif | |
41804 | #ifdef __cplusplus | |
41805 | } | |
41806 | #endif | |
41807 | ||
41808 | int | |
41809 | main () | |
41810 | { | |
41811 | return f != $ac_func; | |
41812 | ; | |
41813 | return 0; | |
41814 | } | |
41815 | _ACEOF | |
41816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41818 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41819 | ac_status=$? |
ac1cb8d3 VS |
41820 | grep -v '^ *+' conftest.er1 >conftest.err |
41821 | rm -f conftest.er1 | |
41822 | cat conftest.err >&5 | |
a848cd7e SC |
41823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41824 | (exit $ac_status); } && | |
3565d135 RR |
41825 | { ac_try='test -z "$ac_c_werror_flag" |
41826 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41828 | (eval $ac_try) 2>&5 | |
41829 | ac_status=$? | |
41830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41831 | (exit $ac_status); }; } && | |
41832 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41834 | (eval $ac_try) 2>&5 | |
41835 | ac_status=$? | |
41836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41837 | (exit $ac_status); }; }; then | |
41838 | eval "$as_ac_var=yes" | |
41839 | else | |
41840 | echo "$as_me: failed program was:" >&5 | |
41841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41842 | ||
41843 | eval "$as_ac_var=no" | |
41844 | fi | |
ac1cb8d3 VS |
41845 | rm -f conftest.err conftest.$ac_objext \ |
41846 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41847 | fi |
41848 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41849 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41850 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41851 | cat >>confdefs.h <<_ACEOF | |
41852 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41853 | _ACEOF | |
41854 | break | |
41855 | fi | |
41856 | done | |
41857 | ||
41858 | ||
41859 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
41860 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
41861 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
41862 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
41863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41864 | else | |
41865 | ||
41866 | ||
41867 | ||
41868 | ac_ext=cc | |
41869 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41872 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41873 | ||
41874 | ||
41875 | cat >conftest.$ac_ext <<_ACEOF | |
41876 | /* confdefs.h. */ | |
41877 | _ACEOF | |
41878 | cat confdefs.h >>conftest.$ac_ext | |
41879 | cat >>conftest.$ac_ext <<_ACEOF | |
41880 | /* end confdefs.h. */ | |
41881 | ||
41882 | #include <sys/time.h> | |
41883 | #include <unistd.h> | |
41884 | ||
41885 | int | |
41886 | main () | |
41887 | { | |
41888 | ||
41889 | struct timeval tv; | |
41890 | gettimeofday(&tv, NULL); | |
41891 | ||
41892 | ; | |
41893 | return 0; | |
41894 | } | |
41895 | _ACEOF | |
41896 | rm -f conftest.$ac_objext | |
41897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41898 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41899 | ac_status=$? |
ac1cb8d3 VS |
41900 | grep -v '^ *+' conftest.er1 >conftest.err |
41901 | rm -f conftest.er1 | |
41902 | cat conftest.err >&5 | |
a848cd7e SC |
41903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41904 | (exit $ac_status); } && | |
3565d135 RR |
41905 | { ac_try='test -z "$ac_cxx_werror_flag" |
41906 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41908 | (eval $ac_try) 2>&5 | |
41909 | ac_status=$? | |
41910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41911 | (exit $ac_status); }; } && | |
41912 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41914 | (eval $ac_try) 2>&5 | |
41915 | ac_status=$? | |
41916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41917 | (exit $ac_status); }; }; then | |
41918 | wx_cv_func_gettimeofday_has_2_args=yes | |
41919 | else | |
41920 | echo "$as_me: failed program was:" >&5 | |
41921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41922 | ||
41923 | cat >conftest.$ac_ext <<_ACEOF | |
41924 | /* confdefs.h. */ | |
41925 | _ACEOF | |
41926 | cat confdefs.h >>conftest.$ac_ext | |
41927 | cat >>conftest.$ac_ext <<_ACEOF | |
41928 | /* end confdefs.h. */ | |
41929 | ||
41930 | #include <sys/time.h> | |
41931 | #include <unistd.h> | |
41932 | ||
41933 | int | |
41934 | main () | |
41935 | { | |
41936 | ||
41937 | struct timeval tv; | |
41938 | gettimeofday(&tv); | |
41939 | ||
41940 | ; | |
41941 | return 0; | |
41942 | } | |
41943 | _ACEOF | |
41944 | rm -f conftest.$ac_objext | |
41945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41946 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41947 | ac_status=$? |
ac1cb8d3 VS |
41948 | grep -v '^ *+' conftest.er1 >conftest.err |
41949 | rm -f conftest.er1 | |
41950 | cat conftest.err >&5 | |
a848cd7e SC |
41951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41952 | (exit $ac_status); } && | |
3565d135 RR |
41953 | { ac_try='test -z "$ac_cxx_werror_flag" |
41954 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41956 | (eval $ac_try) 2>&5 | |
41957 | ac_status=$? | |
41958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41959 | (exit $ac_status); }; } && | |
41960 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41962 | (eval $ac_try) 2>&5 | |
41963 | ac_status=$? | |
41964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41965 | (exit $ac_status); }; }; then | |
41966 | wx_cv_func_gettimeofday_has_2_args=no | |
41967 | else | |
41968 | echo "$as_me: failed program was:" >&5 | |
41969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41970 | ||
41971 | ||
41972 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
41973 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
41974 | wx_cv_func_gettimeofday_has_2_args=unknown | |
41975 | ||
41976 | ||
41977 | fi | |
ac1cb8d3 | 41978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41979 | |
41980 | fi | |
ac1cb8d3 | 41981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41982 | ac_ext=c |
41983 | ac_cpp='$CPP $CPPFLAGS' | |
41984 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41985 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41986 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41987 | ||
41988 | ||
41989 | fi | |
41990 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
41991 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
41992 | ||
41993 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
41994 | cat >>confdefs.h <<\_ACEOF | |
41995 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
41996 | _ACEOF | |
41997 | ||
41998 | fi | |
41999 | fi | |
42000 | ||
42001 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
42002 | fi | |
42003 | ||
42004 | ||
42005 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42006 | if test "$wxUSE_MGL" = "1"; then | |
42007 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
42008 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
42009 | wxUSE_SOCKETS="no" | |
42010 | fi | |
42011 | fi | |
42012 | ||
42013 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42014 | if test "$TOOLKIT" != "MSW"; then | |
42015 | echo "$as_me:$LINENO: checking for socket" >&5 | |
42016 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
42017 | if test "${ac_cv_func_socket+set}" = set; then | |
42018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42019 | else | |
42020 | cat >conftest.$ac_ext <<_ACEOF | |
42021 | /* confdefs.h. */ | |
42022 | _ACEOF | |
42023 | cat confdefs.h >>conftest.$ac_ext | |
42024 | cat >>conftest.$ac_ext <<_ACEOF | |
42025 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42026 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
42027 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42028 | #define socket innocuous_socket | |
42029 | ||
a848cd7e SC |
42030 | /* System header to define __stub macros and hopefully few prototypes, |
42031 | which can conflict with char socket (); below. | |
42032 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42033 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42034 | |
a848cd7e SC |
42035 | #ifdef __STDC__ |
42036 | # include <limits.h> | |
42037 | #else | |
42038 | # include <assert.h> | |
42039 | #endif | |
ac1cb8d3 VS |
42040 | |
42041 | #undef socket | |
42042 | ||
a848cd7e SC |
42043 | /* Override any gcc2 internal prototype to avoid an error. */ |
42044 | #ifdef __cplusplus | |
42045 | extern "C" | |
42046 | { | |
42047 | #endif | |
42048 | /* We use char because int might match the return type of a gcc2 | |
42049 | builtin and then its argument prototype would still apply. */ | |
42050 | char socket (); | |
42051 | /* The GNU C library defines this for functions which it implements | |
42052 | to always fail with ENOSYS. Some functions are actually named | |
42053 | something starting with __ and the normal name is an alias. */ | |
42054 | #if defined (__stub_socket) || defined (__stub___socket) | |
42055 | choke me | |
42056 | #else | |
42057 | char (*f) () = socket; | |
42058 | #endif | |
42059 | #ifdef __cplusplus | |
42060 | } | |
42061 | #endif | |
42062 | ||
42063 | int | |
42064 | main () | |
42065 | { | |
42066 | return f != socket; | |
42067 | ; | |
42068 | return 0; | |
42069 | } | |
42070 | _ACEOF | |
42071 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42073 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42074 | ac_status=$? |
ac1cb8d3 VS |
42075 | grep -v '^ *+' conftest.er1 >conftest.err |
42076 | rm -f conftest.er1 | |
42077 | cat conftest.err >&5 | |
a848cd7e SC |
42078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42079 | (exit $ac_status); } && | |
3565d135 RR |
42080 | { ac_try='test -z "$ac_c_werror_flag" |
42081 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42083 | (eval $ac_try) 2>&5 | |
42084 | ac_status=$? | |
42085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42086 | (exit $ac_status); }; } && | |
42087 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42089 | (eval $ac_try) 2>&5 | |
42090 | ac_status=$? | |
42091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42092 | (exit $ac_status); }; }; then | |
42093 | ac_cv_func_socket=yes | |
42094 | else | |
42095 | echo "$as_me: failed program was:" >&5 | |
42096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42097 | ||
42098 | ac_cv_func_socket=no | |
42099 | fi | |
ac1cb8d3 VS |
42100 | rm -f conftest.err conftest.$ac_objext \ |
42101 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42102 | fi |
42103 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
42104 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
42105 | if test $ac_cv_func_socket = yes; then | |
42106 | : | |
42107 | else | |
42108 | ||
42109 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
42110 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
42111 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
42112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42113 | else | |
42114 | ac_check_lib_save_LIBS=$LIBS | |
42115 | LIBS="-lsocket $LIBS" | |
42116 | cat >conftest.$ac_ext <<_ACEOF | |
42117 | /* confdefs.h. */ | |
42118 | _ACEOF | |
42119 | cat confdefs.h >>conftest.$ac_ext | |
42120 | cat >>conftest.$ac_ext <<_ACEOF | |
42121 | /* end confdefs.h. */ | |
42122 | ||
42123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
42124 | #ifdef __cplusplus | |
42125 | extern "C" | |
42126 | #endif | |
42127 | /* We use char because int might match the return type of a gcc2 | |
42128 | builtin and then its argument prototype would still apply. */ | |
42129 | char socket (); | |
42130 | int | |
42131 | main () | |
42132 | { | |
42133 | socket (); | |
42134 | ; | |
42135 | return 0; | |
42136 | } | |
42137 | _ACEOF | |
42138 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42140 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42141 | ac_status=$? |
ac1cb8d3 VS |
42142 | grep -v '^ *+' conftest.er1 >conftest.err |
42143 | rm -f conftest.er1 | |
42144 | cat conftest.err >&5 | |
a848cd7e SC |
42145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42146 | (exit $ac_status); } && | |
3565d135 RR |
42147 | { ac_try='test -z "$ac_c_werror_flag" |
42148 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42150 | (eval $ac_try) 2>&5 | |
42151 | ac_status=$? | |
42152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42153 | (exit $ac_status); }; } && | |
42154 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42156 | (eval $ac_try) 2>&5 | |
42157 | ac_status=$? | |
42158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42159 | (exit $ac_status); }; }; then | |
42160 | ac_cv_lib_socket_socket=yes | |
42161 | else | |
42162 | echo "$as_me: failed program was:" >&5 | |
42163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42164 | ||
42165 | ac_cv_lib_socket_socket=no | |
42166 | fi | |
ac1cb8d3 VS |
42167 | rm -f conftest.err conftest.$ac_objext \ |
42168 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42169 | LIBS=$ac_check_lib_save_LIBS |
42170 | fi | |
42171 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
42172 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
42173 | if test $ac_cv_lib_socket_socket = yes; then | |
42174 | if test "$INET_LINK" != " -lsocket"; then | |
42175 | INET_LINK="$INET_LINK -lsocket" | |
42176 | fi | |
42177 | else | |
42178 | ||
42179 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
42180 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
42181 | wxUSE_SOCKETS=no | |
42182 | ||
42183 | ||
42184 | fi | |
42185 | ||
42186 | ||
42187 | ||
42188 | fi | |
42189 | ||
42190 | fi | |
42191 | fi | |
42192 | ||
42193 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
42194 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
42195 | ac_ext=cc |
42196 | ac_cpp='$CXXCPP $CPPFLAGS' | |
42197 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42198 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42199 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
42200 | ||
42201 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
42202 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
42203 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
42204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42205 | else | |
42206 | ||
42207 | cat >conftest.$ac_ext <<_ACEOF | |
42208 | /* confdefs.h. */ | |
42209 | _ACEOF | |
42210 | cat confdefs.h >>conftest.$ac_ext | |
42211 | cat >>conftest.$ac_ext <<_ACEOF | |
42212 | /* end confdefs.h. */ | |
42213 | ||
42214 | #include <sys/types.h> | |
42215 | #include <sys/socket.h> | |
42216 | ||
42217 | int | |
42218 | main () | |
42219 | { | |
42220 | ||
42221 | socklen_t len; | |
42222 | getsockname(0, 0, &len); | |
42223 | ||
42224 | ; | |
42225 | return 0; | |
42226 | } | |
42227 | _ACEOF | |
42228 | rm -f conftest.$ac_objext | |
42229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42230 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42231 | ac_status=$? |
ac1cb8d3 VS |
42232 | grep -v '^ *+' conftest.er1 >conftest.err |
42233 | rm -f conftest.er1 | |
42234 | cat conftest.err >&5 | |
a848cd7e SC |
42235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42236 | (exit $ac_status); } && | |
3565d135 RR |
42237 | { ac_try='test -z "$ac_cxx_werror_flag" |
42238 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42240 | (eval $ac_try) 2>&5 | |
42241 | ac_status=$? | |
42242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42243 | (exit $ac_status); }; } && | |
42244 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42246 | (eval $ac_try) 2>&5 | |
42247 | ac_status=$? | |
42248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42249 | (exit $ac_status); }; }; then | |
42250 | wx_cv_type_getsockname3=socklen_t | |
42251 | else | |
42252 | echo "$as_me: failed program was:" >&5 | |
42253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42254 | ||
42255 | ||
6459a506 | 42256 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 42257 | if test "$GCC" = yes ; then |
c92ad099 | 42258 | CXXFLAGS="-Werror $CXXFLAGS" |
a848cd7e SC |
42259 | fi |
42260 | ||
42261 | cat >conftest.$ac_ext <<_ACEOF | |
42262 | /* confdefs.h. */ | |
42263 | _ACEOF | |
42264 | cat confdefs.h >>conftest.$ac_ext | |
42265 | cat >>conftest.$ac_ext <<_ACEOF | |
42266 | /* end confdefs.h. */ | |
42267 | ||
42268 | #include <sys/types.h> | |
42269 | #include <sys/socket.h> | |
42270 | ||
42271 | int | |
42272 | main () | |
42273 | { | |
42274 | ||
42275 | size_t len; | |
42276 | getsockname(0, 0, &len); | |
42277 | ||
42278 | ; | |
42279 | return 0; | |
42280 | } | |
42281 | _ACEOF | |
42282 | rm -f conftest.$ac_objext | |
42283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42284 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42285 | ac_status=$? |
ac1cb8d3 VS |
42286 | grep -v '^ *+' conftest.er1 >conftest.err |
42287 | rm -f conftest.er1 | |
42288 | cat conftest.err >&5 | |
a848cd7e SC |
42289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42290 | (exit $ac_status); } && | |
3565d135 RR |
42291 | { ac_try='test -z "$ac_cxx_werror_flag" |
42292 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42294 | (eval $ac_try) 2>&5 | |
42295 | ac_status=$? | |
42296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42297 | (exit $ac_status); }; } && | |
42298 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42300 | (eval $ac_try) 2>&5 | |
42301 | ac_status=$? | |
42302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42303 | (exit $ac_status); }; }; then | |
42304 | wx_cv_type_getsockname3=size_t | |
42305 | else | |
42306 | echo "$as_me: failed program was:" >&5 | |
42307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42308 | ||
42309 | cat >conftest.$ac_ext <<_ACEOF | |
42310 | /* confdefs.h. */ | |
42311 | _ACEOF | |
42312 | cat confdefs.h >>conftest.$ac_ext | |
42313 | cat >>conftest.$ac_ext <<_ACEOF | |
42314 | /* end confdefs.h. */ | |
42315 | ||
42316 | #include <sys/types.h> | |
42317 | #include <sys/socket.h> | |
42318 | ||
42319 | int | |
42320 | main () | |
42321 | { | |
42322 | ||
42323 | int len; | |
42324 | getsockname(0, 0, &len); | |
42325 | ||
42326 | ; | |
42327 | return 0; | |
42328 | } | |
42329 | _ACEOF | |
42330 | rm -f conftest.$ac_objext | |
42331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42332 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42333 | ac_status=$? |
ac1cb8d3 VS |
42334 | grep -v '^ *+' conftest.er1 >conftest.err |
42335 | rm -f conftest.er1 | |
42336 | cat conftest.err >&5 | |
a848cd7e SC |
42337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42338 | (exit $ac_status); } && | |
3565d135 RR |
42339 | { ac_try='test -z "$ac_cxx_werror_flag" |
42340 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42342 | (eval $ac_try) 2>&5 | |
42343 | ac_status=$? | |
42344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42345 | (exit $ac_status); }; } && | |
42346 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42348 | (eval $ac_try) 2>&5 | |
42349 | ac_status=$? | |
42350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42351 | (exit $ac_status); }; }; then | |
42352 | wx_cv_type_getsockname3=int | |
42353 | else | |
42354 | echo "$as_me: failed program was:" >&5 | |
42355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42356 | ||
42357 | wx_cv_type_getsockname3=unknown | |
42358 | ||
42359 | fi | |
ac1cb8d3 | 42360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42361 | |
42362 | fi | |
ac1cb8d3 | 42363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 42364 | |
6459a506 | 42365 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
42366 | |
42367 | ||
42368 | fi | |
ac1cb8d3 | 42369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42370 | |
42371 | fi | |
42372 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
42373 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
42374 | ||
42375 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
42376 | wxUSE_SOCKETS=no | |
42377 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
42378 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
42379 | else | |
42380 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 42381 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
42382 | _ACEOF |
42383 | ||
42384 | fi | |
42385 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
42386 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
42387 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
42388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42389 | else | |
42390 | ||
42391 | cat >conftest.$ac_ext <<_ACEOF | |
42392 | /* confdefs.h. */ | |
42393 | _ACEOF | |
42394 | cat confdefs.h >>conftest.$ac_ext | |
42395 | cat >>conftest.$ac_ext <<_ACEOF | |
42396 | /* end confdefs.h. */ | |
42397 | ||
42398 | #include <sys/types.h> | |
42399 | #include <sys/socket.h> | |
42400 | ||
42401 | int | |
42402 | main () | |
42403 | { | |
42404 | ||
42405 | socklen_t len; | |
42406 | getsockopt(0, 0, 0, 0, &len); | |
42407 | ||
42408 | ; | |
42409 | return 0; | |
42410 | } | |
42411 | _ACEOF | |
42412 | rm -f conftest.$ac_objext | |
42413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42414 | (eval $ac_compile) 2>conftest.er1 | |
42415 | ac_status=$? | |
42416 | grep -v '^ *+' conftest.er1 >conftest.err | |
42417 | rm -f conftest.er1 | |
42418 | cat conftest.err >&5 | |
42419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42420 | (exit $ac_status); } && | |
3565d135 RR |
42421 | { ac_try='test -z "$ac_cxx_werror_flag" |
42422 | || test ! -s conftest.err' | |
5b674b9d DE |
42423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42424 | (eval $ac_try) 2>&5 | |
42425 | ac_status=$? | |
42426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42427 | (exit $ac_status); }; } && | |
42428 | { ac_try='test -s conftest.$ac_objext' | |
42429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42430 | (eval $ac_try) 2>&5 | |
42431 | ac_status=$? | |
42432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42433 | (exit $ac_status); }; }; then | |
42434 | wx_cv_type_getsockopt5=socklen_t | |
42435 | else | |
42436 | echo "$as_me: failed program was:" >&5 | |
42437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42438 | ||
42439 | ||
6459a506 | 42440 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 42441 | if test "$GCC" = yes ; then |
c92ad099 | 42442 | CXXFLAGS="-Werror $CXXFLAGS" |
5b674b9d DE |
42443 | fi |
42444 | ||
42445 | cat >conftest.$ac_ext <<_ACEOF | |
42446 | /* confdefs.h. */ | |
42447 | _ACEOF | |
42448 | cat confdefs.h >>conftest.$ac_ext | |
42449 | cat >>conftest.$ac_ext <<_ACEOF | |
42450 | /* end confdefs.h. */ | |
42451 | ||
42452 | #include <sys/types.h> | |
42453 | #include <sys/socket.h> | |
42454 | ||
42455 | int | |
42456 | main () | |
42457 | { | |
42458 | ||
42459 | size_t len; | |
42460 | getsockopt(0, 0, 0, 0, &len); | |
42461 | ||
42462 | ; | |
42463 | return 0; | |
42464 | } | |
42465 | _ACEOF | |
42466 | rm -f conftest.$ac_objext | |
42467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42468 | (eval $ac_compile) 2>conftest.er1 | |
42469 | ac_status=$? | |
42470 | grep -v '^ *+' conftest.er1 >conftest.err | |
42471 | rm -f conftest.er1 | |
42472 | cat conftest.err >&5 | |
42473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42474 | (exit $ac_status); } && | |
3565d135 RR |
42475 | { ac_try='test -z "$ac_cxx_werror_flag" |
42476 | || test ! -s conftest.err' | |
5b674b9d DE |
42477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42478 | (eval $ac_try) 2>&5 | |
42479 | ac_status=$? | |
42480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42481 | (exit $ac_status); }; } && | |
42482 | { ac_try='test -s conftest.$ac_objext' | |
42483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42484 | (eval $ac_try) 2>&5 | |
42485 | ac_status=$? | |
42486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42487 | (exit $ac_status); }; }; then | |
42488 | wx_cv_type_getsockopt5=size_t | |
42489 | else | |
42490 | echo "$as_me: failed program was:" >&5 | |
42491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42492 | ||
42493 | cat >conftest.$ac_ext <<_ACEOF | |
42494 | /* confdefs.h. */ | |
42495 | _ACEOF | |
42496 | cat confdefs.h >>conftest.$ac_ext | |
42497 | cat >>conftest.$ac_ext <<_ACEOF | |
42498 | /* end confdefs.h. */ | |
42499 | ||
42500 | #include <sys/types.h> | |
42501 | #include <sys/socket.h> | |
42502 | ||
42503 | int | |
42504 | main () | |
42505 | { | |
42506 | ||
42507 | int len; | |
42508 | getsockopt(0, 0, 0, 0, &len); | |
42509 | ||
42510 | ; | |
42511 | return 0; | |
42512 | } | |
42513 | _ACEOF | |
42514 | rm -f conftest.$ac_objext | |
42515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42516 | (eval $ac_compile) 2>conftest.er1 | |
42517 | ac_status=$? | |
42518 | grep -v '^ *+' conftest.er1 >conftest.err | |
42519 | rm -f conftest.er1 | |
42520 | cat conftest.err >&5 | |
42521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42522 | (exit $ac_status); } && | |
3565d135 RR |
42523 | { ac_try='test -z "$ac_cxx_werror_flag" |
42524 | || test ! -s conftest.err' | |
5b674b9d DE |
42525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42526 | (eval $ac_try) 2>&5 | |
42527 | ac_status=$? | |
42528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42529 | (exit $ac_status); }; } && | |
42530 | { ac_try='test -s conftest.$ac_objext' | |
42531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42532 | (eval $ac_try) 2>&5 | |
42533 | ac_status=$? | |
42534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42535 | (exit $ac_status); }; }; then | |
42536 | wx_cv_type_getsockopt5=int | |
42537 | else | |
42538 | echo "$as_me: failed program was:" >&5 | |
42539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42540 | ||
42541 | wx_cv_type_getsockopt5=unknown | |
42542 | ||
42543 | fi | |
42544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42545 | ||
42546 | fi | |
42547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42548 | ||
6459a506 | 42549 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
42550 | |
42551 | ||
42552 | fi | |
42553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42554 | ||
42555 | fi | |
42556 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
42557 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
42558 | ||
42559 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
42560 | wxUSE_SOCKETS=no | |
42561 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
42562 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
42563 | else | |
42564 | cat >>confdefs.h <<_ACEOF | |
42565 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
42566 | _ACEOF |
42567 | ||
42568 | fi | |
4d4ff94c VZ |
42569 | ac_ext=c |
42570 | ac_cpp='$CPP $CPPFLAGS' | |
42571 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42572 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42573 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42574 | ||
a848cd7e SC |
42575 | fi |
42576 | fi | |
42577 | ||
42578 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
42579 | cat >>confdefs.h <<\_ACEOF | |
42580 | #define wxUSE_SOCKETS 1 | |
42581 | _ACEOF | |
42582 | ||
42583 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
42584 | fi | |
42585 | ||
42586 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
42587 | if test "$wxUSE_SOCKETS" != "yes"; then | |
42588 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
42589 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
42590 | wxUSE_PROTOCOL=no | |
42591 | fi | |
42592 | fi | |
42593 | ||
42594 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
42595 | cat >>confdefs.h <<\_ACEOF | |
42596 | #define wxUSE_PROTOCOL 1 | |
42597 | _ACEOF | |
42598 | ||
42599 | ||
42600 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
42601 | cat >>confdefs.h <<\_ACEOF | |
42602 | #define wxUSE_PROTOCOL_HTTP 1 | |
42603 | _ACEOF | |
42604 | ||
42605 | fi | |
42606 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
42607 | cat >>confdefs.h <<\_ACEOF | |
42608 | #define wxUSE_PROTOCOL_FTP 1 | |
42609 | _ACEOF | |
42610 | ||
42611 | fi | |
42612 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
42613 | cat >>confdefs.h <<\_ACEOF | |
42614 | #define wxUSE_PROTOCOL_FILE 1 | |
42615 | _ACEOF | |
42616 | ||
42617 | fi | |
42618 | else | |
42619 | if test "$wxUSE_FS_INET" = "yes"; then | |
42620 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
42621 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
42622 | wxUSE_FS_INET="no" | |
42623 | fi | |
42624 | fi | |
42625 | ||
42626 | if test "$wxUSE_URL" = "yes"; then | |
42627 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
42628 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
42629 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
42630 | wxUSE_URL=no | |
42631 | fi | |
42632 | if test "$wxUSE_URL" = "yes"; then | |
42633 | cat >>confdefs.h <<\_ACEOF | |
42634 | #define wxUSE_URL 1 | |
42635 | _ACEOF | |
42636 | ||
42637 | fi | |
42638 | fi | |
42639 | ||
42640 | if test "$wxUSE_FS_INET" = "yes"; then | |
42641 | cat >>confdefs.h <<\_ACEOF | |
42642 | #define wxUSE_FS_INET 1 | |
42643 | _ACEOF | |
42644 | ||
42645 | fi | |
42646 | ||
42647 | ||
ee45c548 MW |
42648 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
42649 | wxUSE_JOYSTICK=no | |
42650 | ||
42651 | if test "$TOOLKIT" = "MSW"; then | |
42652 | wxUSE_JOYSTICK=yes | |
42653 | ||
42654 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
42655 | if test "$USE_DARWIN" = 1; then | |
42656 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
42657 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
42658 | ac_ext=cc | |
42659 | ac_cpp='$CXXCPP $CPPFLAGS' | |
42660 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42661 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42662 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
42663 | ||
42664 | cat >conftest.$ac_ext <<_ACEOF | |
42665 | /* confdefs.h. */ | |
42666 | _ACEOF | |
42667 | cat confdefs.h >>conftest.$ac_ext | |
42668 | cat >>conftest.$ac_ext <<_ACEOF | |
42669 | /* end confdefs.h. */ | |
42670 | #include <IOKit/hid/IOHIDLib.h> | |
42671 | int | |
42672 | main () | |
42673 | { | |
42674 | IOHIDQueueInterface *qi = NULL; | |
42675 | IOHIDCallbackFunction cb = NULL; | |
42676 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
42677 | ; | |
42678 | return 0; | |
42679 | } | |
42680 | _ACEOF | |
42681 | rm -f conftest.$ac_objext | |
42682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42683 | (eval $ac_compile) 2>conftest.er1 | |
42684 | ac_status=$? | |
42685 | grep -v '^ *+' conftest.er1 >conftest.err | |
42686 | rm -f conftest.er1 | |
42687 | cat conftest.err >&5 | |
42688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42689 | (exit $ac_status); } && | |
3565d135 RR |
42690 | { ac_try='test -z "$ac_cxx_werror_flag" |
42691 | || test ! -s conftest.err' | |
ee45c548 MW |
42692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42693 | (eval $ac_try) 2>&5 | |
42694 | ac_status=$? | |
42695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42696 | (exit $ac_status); }; } && | |
42697 | { ac_try='test -s conftest.$ac_objext' | |
42698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42699 | (eval $ac_try) 2>&5 | |
42700 | ac_status=$? | |
42701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42702 | (exit $ac_status); }; }; then | |
42703 | wxUSE_JOYSTICK=yes | |
a848cd7e | 42704 | |
ee45c548 MW |
42705 | else |
42706 | echo "$as_me: failed program was:" >&5 | |
42707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42708 | ||
42709 | fi | |
42710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42711 | ac_ext=c | |
42712 | ac_cpp='$CPP $CPPFLAGS' | |
42713 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42714 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42715 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42716 | ||
42717 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 | |
42718 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
42719 | fi | |
42720 | ||
42721 | else | |
a848cd7e SC |
42722 | |
42723 | for ac_header in linux/joystick.h | |
42724 | do | |
42725 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
42726 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42727 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42728 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
42729 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42731 | fi | |
42732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
42733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
42734 | else | |
42735 | # Is the header compilable? | |
42736 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
42737 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
42738 | cat >conftest.$ac_ext <<_ACEOF | |
42739 | /* confdefs.h. */ | |
42740 | _ACEOF | |
42741 | cat confdefs.h >>conftest.$ac_ext | |
42742 | cat >>conftest.$ac_ext <<_ACEOF | |
42743 | /* end confdefs.h. */ | |
42744 | $ac_includes_default | |
42745 | #include <$ac_header> | |
42746 | _ACEOF | |
42747 | rm -f conftest.$ac_objext | |
42748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42749 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42750 | ac_status=$? |
ac1cb8d3 VS |
42751 | grep -v '^ *+' conftest.er1 >conftest.err |
42752 | rm -f conftest.er1 | |
42753 | cat conftest.err >&5 | |
a848cd7e SC |
42754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42755 | (exit $ac_status); } && | |
3565d135 RR |
42756 | { ac_try='test -z "$ac_c_werror_flag" |
42757 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42759 | (eval $ac_try) 2>&5 | |
42760 | ac_status=$? | |
42761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42762 | (exit $ac_status); }; } && | |
42763 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42765 | (eval $ac_try) 2>&5 | |
42766 | ac_status=$? | |
42767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42768 | (exit $ac_status); }; }; then | |
42769 | ac_header_compiler=yes | |
42770 | else | |
42771 | echo "$as_me: failed program was:" >&5 | |
42772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42773 | ||
42774 | ac_header_compiler=no | |
42775 | fi | |
ac1cb8d3 | 42776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42777 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
42778 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
42779 | ||
42780 | # Is the header present? | |
42781 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
42782 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
42783 | cat >conftest.$ac_ext <<_ACEOF | |
42784 | /* confdefs.h. */ | |
42785 | _ACEOF | |
42786 | cat confdefs.h >>conftest.$ac_ext | |
42787 | cat >>conftest.$ac_ext <<_ACEOF | |
42788 | /* end confdefs.h. */ | |
42789 | #include <$ac_header> | |
42790 | _ACEOF | |
42791 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
42792 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
42793 | ac_status=$? | |
42794 | grep -v '^ *+' conftest.er1 >conftest.err | |
42795 | rm -f conftest.er1 | |
42796 | cat conftest.err >&5 | |
42797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42798 | (exit $ac_status); } >/dev/null; then | |
42799 | if test -s conftest.err; then | |
42800 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 42801 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
42802 | else |
42803 | ac_cpp_err= | |
42804 | fi | |
42805 | else | |
42806 | ac_cpp_err=yes | |
42807 | fi | |
42808 | if test -z "$ac_cpp_err"; then | |
42809 | ac_header_preproc=yes | |
42810 | else | |
42811 | echo "$as_me: failed program was:" >&5 | |
42812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42813 | ||
42814 | ac_header_preproc=no | |
42815 | fi | |
42816 | rm -f conftest.err conftest.$ac_ext | |
42817 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
42818 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
42819 | ||
42820 | # So? What about this header? | |
ac1cb8d3 VS |
42821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
42822 | yes:no: ) | |
a848cd7e SC |
42823 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
42824 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
42825 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
42826 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
42827 | ac_header_preproc=yes | |
a848cd7e | 42828 | ;; |
ac1cb8d3 | 42829 | no:yes:* ) |
a848cd7e SC |
42830 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
42831 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
42832 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
42833 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
42834 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
42835 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
42836 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
42837 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
42838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
42839 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
42840 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
42841 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
42842 | ( |
42843 | cat <<\_ASBOX | |
ac1cb8d3 VS |
42844 | ## ----------------------------------------- ## |
42845 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
42846 | ## ----------------------------------------- ## | |
a848cd7e SC |
42847 | _ASBOX |
42848 | ) | | |
42849 | sed "s/^/$as_me: WARNING: /" >&2 | |
42850 | ;; | |
42851 | esac | |
42852 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42853 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
42854 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42856 | else | |
ac1cb8d3 | 42857 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
42858 | fi |
42859 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
42860 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
42861 | ||
42862 | fi | |
42863 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
42864 | cat >>confdefs.h <<_ACEOF | |
42865 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
42866 | _ACEOF | |
ee45c548 | 42867 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
42868 | fi |
42869 | ||
42870 | done | |
42871 | ||
ee45c548 | 42872 | fi |
4cb1d3da | 42873 | |
ee45c548 MW |
42874 | if test "$wxUSE_JOYSTICK" = "yes"; then |
42875 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
42876 | #define wxUSE_JOYSTICK 1 |
42877 | _ACEOF | |
42878 | ||
ee45c548 MW |
42879 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
42880 | else | |
42881 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
42882 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
42883 | fi |
42884 | fi | |
42885 | ||
42886 | ||
42887 | ||
42888 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
42889 | cat >>confdefs.h <<\_ACEOF | |
42890 | #define wxUSE_FONTMAP 1 | |
42891 | _ACEOF | |
42892 | ||
42893 | fi | |
42894 | ||
42895 | if test "$wxUSE_UNICODE" = "yes" ; then | |
42896 | cat >>confdefs.h <<\_ACEOF | |
42897 | #define wxUSE_UNICODE 1 | |
42898 | _ACEOF | |
42899 | ||
42900 | ||
42901 | if test "$USE_WIN32" != 1; then | |
42902 | wxUSE_UNICODE_MSLU=no | |
42903 | fi | |
42904 | ||
42905 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
42906 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
42907 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
42908 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
42909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42910 | else | |
42911 | ac_check_lib_save_LIBS=$LIBS | |
42912 | LIBS="-lunicows $LIBS" | |
42913 | cat >conftest.$ac_ext <<_ACEOF | |
42914 | /* confdefs.h. */ | |
42915 | _ACEOF | |
42916 | cat confdefs.h >>conftest.$ac_ext | |
42917 | cat >>conftest.$ac_ext <<_ACEOF | |
42918 | /* end confdefs.h. */ | |
42919 | ||
42920 | ||
42921 | int | |
42922 | main () | |
42923 | { | |
42924 | main (); | |
42925 | ; | |
42926 | return 0; | |
42927 | } | |
42928 | _ACEOF | |
42929 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42931 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42932 | ac_status=$? |
ac1cb8d3 VS |
42933 | grep -v '^ *+' conftest.er1 >conftest.err |
42934 | rm -f conftest.er1 | |
42935 | cat conftest.err >&5 | |
a848cd7e SC |
42936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42937 | (exit $ac_status); } && | |
3565d135 RR |
42938 | { ac_try='test -z "$ac_c_werror_flag" |
42939 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42941 | (eval $ac_try) 2>&5 | |
42942 | ac_status=$? | |
42943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42944 | (exit $ac_status); }; } && | |
42945 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42947 | (eval $ac_try) 2>&5 | |
42948 | ac_status=$? | |
42949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42950 | (exit $ac_status); }; }; then | |
42951 | ac_cv_lib_unicows_main=yes | |
42952 | else | |
42953 | echo "$as_me: failed program was:" >&5 | |
42954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42955 | ||
42956 | ac_cv_lib_unicows_main=no | |
42957 | fi | |
ac1cb8d3 VS |
42958 | rm -f conftest.err conftest.$ac_objext \ |
42959 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42960 | LIBS=$ac_check_lib_save_LIBS |
42961 | fi | |
42962 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
42963 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
42964 | if test $ac_cv_lib_unicows_main = yes; then | |
42965 | ||
42966 | cat >>confdefs.h <<\_ACEOF | |
42967 | #define wxUSE_UNICODE_MSLU 1 | |
42968 | _ACEOF | |
42969 | ||
42970 | ||
42971 | else | |
42972 | ||
42973 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
42974 | Applications will only run on Windows NT/2000/XP!" >&5 | |
42975 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
42976 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
42977 | wxUSE_UNICODE_MSLU=no | |
42978 | ||
42979 | fi | |
42980 | ||
42981 | fi | |
42982 | fi | |
42983 | ||
42984 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
42985 | cat >>confdefs.h <<\_ACEOF | |
42986 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
42987 | _ACEOF | |
42988 | ||
42989 | fi | |
42990 | ||
42991 | ||
42992 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
42993 | cat >>confdefs.h <<\_ACEOF | |
42994 | #define wxUSE_POSTSCRIPT 1 | |
42995 | _ACEOF | |
42996 | ||
42997 | fi | |
42998 | ||
42999 | cat >>confdefs.h <<\_ACEOF | |
43000 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
43001 | _ACEOF | |
43002 | ||
43003 | ||
43004 | cat >>confdefs.h <<\_ACEOF | |
43005 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
43006 | _ACEOF | |
43007 | ||
43008 | ||
43009 | ||
43010 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
43011 | cat >>confdefs.h <<\_ACEOF | |
43012 | #define wxUSE_CONSTRAINTS 1 | |
43013 | _ACEOF | |
43014 | ||
43015 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
43016 | fi | |
43017 | ||
8a7b1113 VZ |
43018 | if test "$wxUSE_MDI" = "yes"; then |
43019 | cat >>confdefs.h <<\_ACEOF | |
43020 | #define wxUSE_MDI 1 | |
43021 | _ACEOF | |
43022 | ||
43023 | ||
43024 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43025 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43026 | #define wxUSE_MDI_ARCHITECTURE 1 |
43027 | _ACEOF | |
43028 | ||
8a7b1113 VZ |
43029 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
43030 | fi | |
a848cd7e SC |
43031 | fi |
43032 | ||
43033 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
43034 | cat >>confdefs.h <<\_ACEOF | |
43035 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
43036 | _ACEOF | |
43037 | ||
43038 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
43039 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43040 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
43041 | fi | |
43042 | fi | |
43043 | ||
43044 | if test "$wxUSE_HELP" = "yes"; then | |
43045 | cat >>confdefs.h <<\_ACEOF | |
43046 | #define wxUSE_HELP 1 | |
43047 | _ACEOF | |
43048 | ||
43049 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
43050 | ||
43051 | if test "$wxUSE_MSW" = 1; then | |
43052 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
43053 | cat >>confdefs.h <<\_ACEOF | |
43054 | #define wxUSE_MS_HTML_HELP 1 | |
43055 | _ACEOF | |
43056 | ||
43057 | fi | |
43058 | fi | |
43059 | ||
43060 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
43061 | if test "$wxUSE_HTML" = "yes"; then | |
43062 | cat >>confdefs.h <<\_ACEOF | |
43063 | #define wxUSE_WXHTML_HELP 1 | |
43064 | _ACEOF | |
43065 | ||
43066 | else | |
43067 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
43068 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
43069 | wxUSE_WXHTML_HELP=no | |
43070 | fi | |
43071 | fi | |
43072 | fi | |
43073 | ||
43074 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
43075 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
43076 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
43077 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
43078 | else | |
43079 | cat >>confdefs.h <<\_ACEOF | |
43080 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
43081 | _ACEOF | |
43082 | ||
43083 | fi | |
43084 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
43085 | fi | |
43086 | ||
43087 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
43088 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
43089 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
43090 | { (exit 1); exit 1; }; } | |
43091 | fi | |
43092 | ||
43093 | ||
efdf6afe VZ |
43094 | if test "$wxUSE_METAFILE" = "yes"; then |
43095 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
43096 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
43097 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
43098 | wxUSE_METAFILE=no | |
43099 | fi | |
43100 | fi | |
43101 | ||
43102 | ||
a848cd7e SC |
43103 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
43104 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
43105 | -o "$wxUSE_OLE" = "yes" \ | |
43106 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
43107 | ||
43108 | for ac_header in ole2.h | |
43109 | do | |
43110 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43111 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43112 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43113 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43114 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43116 | fi | |
43117 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43118 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43119 | else | |
43120 | # Is the header compilable? | |
43121 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
43122 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
43123 | cat >conftest.$ac_ext <<_ACEOF | |
43124 | /* confdefs.h. */ | |
43125 | _ACEOF | |
43126 | cat confdefs.h >>conftest.$ac_ext | |
43127 | cat >>conftest.$ac_ext <<_ACEOF | |
43128 | /* end confdefs.h. */ | |
43129 | $ac_includes_default | |
43130 | #include <$ac_header> | |
43131 | _ACEOF | |
43132 | rm -f conftest.$ac_objext | |
43133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43134 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43135 | ac_status=$? |
ac1cb8d3 VS |
43136 | grep -v '^ *+' conftest.er1 >conftest.err |
43137 | rm -f conftest.er1 | |
43138 | cat conftest.err >&5 | |
a848cd7e SC |
43139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43140 | (exit $ac_status); } && | |
3565d135 RR |
43141 | { ac_try='test -z "$ac_c_werror_flag" |
43142 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43144 | (eval $ac_try) 2>&5 | |
43145 | ac_status=$? | |
43146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43147 | (exit $ac_status); }; } && | |
43148 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43150 | (eval $ac_try) 2>&5 | |
43151 | ac_status=$? | |
43152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43153 | (exit $ac_status); }; }; then | |
43154 | ac_header_compiler=yes | |
43155 | else | |
43156 | echo "$as_me: failed program was:" >&5 | |
43157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43158 | ||
43159 | ac_header_compiler=no | |
43160 | fi | |
ac1cb8d3 | 43161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43162 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
43163 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
43164 | ||
43165 | # Is the header present? | |
43166 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
43167 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
43168 | cat >conftest.$ac_ext <<_ACEOF | |
43169 | /* confdefs.h. */ | |
43170 | _ACEOF | |
43171 | cat confdefs.h >>conftest.$ac_ext | |
43172 | cat >>conftest.$ac_ext <<_ACEOF | |
43173 | /* end confdefs.h. */ | |
43174 | #include <$ac_header> | |
43175 | _ACEOF | |
43176 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
43177 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
43178 | ac_status=$? | |
43179 | grep -v '^ *+' conftest.er1 >conftest.err | |
43180 | rm -f conftest.er1 | |
43181 | cat conftest.err >&5 | |
43182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43183 | (exit $ac_status); } >/dev/null; then | |
43184 | if test -s conftest.err; then | |
43185 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 43186 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
43187 | else |
43188 | ac_cpp_err= | |
43189 | fi | |
43190 | else | |
43191 | ac_cpp_err=yes | |
43192 | fi | |
43193 | if test -z "$ac_cpp_err"; then | |
43194 | ac_header_preproc=yes | |
43195 | else | |
43196 | echo "$as_me: failed program was:" >&5 | |
43197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43198 | ||
43199 | ac_header_preproc=no | |
43200 | fi | |
43201 | rm -f conftest.err conftest.$ac_ext | |
43202 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
43203 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
43204 | ||
43205 | # So? What about this header? | |
ac1cb8d3 VS |
43206 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
43207 | yes:no: ) | |
a848cd7e SC |
43208 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
43209 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
43210 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
43211 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
43212 | ac_header_preproc=yes | |
a848cd7e | 43213 | ;; |
ac1cb8d3 | 43214 | no:yes:* ) |
a848cd7e SC |
43215 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
43216 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
43217 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
43218 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
43219 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
43220 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
43221 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
43222 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
43223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
43224 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
43225 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
43226 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
43227 | ( |
43228 | cat <<\_ASBOX | |
ac1cb8d3 VS |
43229 | ## ----------------------------------------- ## |
43230 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
43231 | ## ----------------------------------------- ## | |
a848cd7e SC |
43232 | _ASBOX |
43233 | ) | | |
43234 | sed "s/^/$as_me: WARNING: /" >&2 | |
43235 | ;; | |
43236 | esac | |
43237 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43239 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43241 | else | |
ac1cb8d3 | 43242 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
43243 | fi |
43244 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43245 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43246 | ||
43247 | fi | |
43248 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
43249 | cat >>confdefs.h <<_ACEOF | |
43250 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
43251 | _ACEOF | |
43252 | ||
43253 | fi | |
43254 | ||
43255 | done | |
43256 | ||
43257 | ||
43258 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
43259 | if test "$GCC" = yes ; then | |
43260 | ||
43261 | ||
43262 | ac_ext=cc | |
43263 | ac_cpp='$CXXCPP $CPPFLAGS' | |
43264 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
43265 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
43266 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
43267 | ||
43268 | ||
43269 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
43270 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
43271 | cat >conftest.$ac_ext <<_ACEOF | |
43272 | /* confdefs.h. */ | |
43273 | _ACEOF | |
43274 | cat confdefs.h >>conftest.$ac_ext | |
43275 | cat >>conftest.$ac_ext <<_ACEOF | |
43276 | /* end confdefs.h. */ | |
43277 | #include <windows.h> | |
43278 | #include <ole2.h> | |
43279 | int | |
43280 | main () | |
43281 | { | |
43282 | ||
43283 | ; | |
43284 | return 0; | |
43285 | } | |
43286 | _ACEOF | |
43287 | rm -f conftest.$ac_objext | |
43288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43289 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43290 | ac_status=$? |
ac1cb8d3 VS |
43291 | grep -v '^ *+' conftest.er1 >conftest.err |
43292 | rm -f conftest.er1 | |
43293 | cat conftest.err >&5 | |
a848cd7e SC |
43294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43295 | (exit $ac_status); } && | |
3565d135 RR |
43296 | { ac_try='test -z "$ac_cxx_werror_flag" |
43297 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43299 | (eval $ac_try) 2>&5 | |
43300 | ac_status=$? | |
43301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43302 | (exit $ac_status); }; } && | |
43303 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43305 | (eval $ac_try) 2>&5 | |
43306 | ac_status=$? | |
43307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43308 | (exit $ac_status); }; }; then | |
43309 | echo "$as_me:$LINENO: result: no" >&5 | |
43310 | echo "${ECHO_T}no" >&6 | |
43311 | else | |
43312 | echo "$as_me: failed program was:" >&5 | |
43313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43314 | ||
43315 | echo "$as_me:$LINENO: result: yes" >&5 | |
43316 | echo "${ECHO_T}yes" >&6 | |
5ff751d6 | 43317 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 43318 | fi |
ac1cb8d3 | 43319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43320 | ac_ext=c |
43321 | ac_cpp='$CPP $CPPFLAGS' | |
43322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
43323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
43324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
43325 | ||
a848cd7e SC |
43326 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
43327 | if test "$wxUSE_OLE" = "yes" ; then | |
43328 | cat >>confdefs.h <<\_ACEOF | |
43329 | #define wxUSE_OLE 1 | |
43330 | _ACEOF | |
43331 | ||
0b78747f | 43332 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
43333 | fi |
43334 | fi | |
43335 | ||
43336 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
43337 | cat >>confdefs.h <<\_ACEOF | |
43338 | #define wxUSE_DATAOBJ 1 | |
43339 | _ACEOF | |
43340 | ||
43341 | fi | |
43342 | else | |
43343 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
43344 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
43345 | ||
43346 | wxUSE_CLIPBOARD=no | |
43347 | wxUSE_DRAG_AND_DROP=no | |
43348 | wxUSE_DATAOBJ=no | |
43349 | wxUSE_OLE=no | |
43350 | fi | |
43351 | ||
43352 | if test "$wxUSE_METAFILE" = "yes"; then | |
43353 | cat >>confdefs.h <<\_ACEOF | |
43354 | #define wxUSE_METAFILE 1 | |
43355 | _ACEOF | |
43356 | ||
43357 | ||
43358 | cat >>confdefs.h <<\_ACEOF | |
43359 | #define wxUSE_ENH_METAFILE 1 | |
43360 | _ACEOF | |
43361 | ||
43362 | fi | |
43363 | fi | |
43364 | ||
43365 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 43366 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
43367 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
43368 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 43369 | wxUSE_IPC=no |
a848cd7e SC |
43370 | fi |
43371 | ||
0b78747f MW |
43372 | if test "$wxUSE_IPC" = "yes"; then |
43373 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43374 | #define wxUSE_IPC 1 |
43375 | _ACEOF | |
43376 | ||
0b78747f MW |
43377 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
43378 | fi | |
a848cd7e SC |
43379 | fi |
43380 | ||
eb730a0c | 43381 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
43382 | if test "$wxUSE_MGL" = 1; then |
43383 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
43384 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
43385 | wxUSE_DATAOBJ=no | |
43386 | else | |
43387 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
43388 | #define wxUSE_DATAOBJ 1 |
43389 | _ACEOF | |
43390 | ||
2113bc77 | 43391 | fi |
eb730a0c JS |
43392 | else |
43393 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
43394 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
43395 | wxUSE_CLIPBOARD=no | |
43396 | wxUSE_DRAG_AND_DROP=no | |
43397 | fi | |
43398 | ||
a848cd7e SC |
43399 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
43400 | if test "$wxUSE_MGL" = 1; then | |
43401 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
43402 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
43403 | wxUSE_CLIPBOARD=no | |
43404 | fi | |
43405 | ||
43406 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
43407 | cat >>confdefs.h <<\_ACEOF | |
43408 | #define wxUSE_CLIPBOARD 1 | |
43409 | _ACEOF | |
43410 | ||
a848cd7e SC |
43411 | fi |
43412 | fi | |
43413 | ||
43414 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
43415 | if test "$wxUSE_GTK" = 1; then | |
43416 | if test "$WXGTK12" != 1; then | |
43417 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
43418 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
43419 | wxUSE_DRAG_AND_DROP=no | |
43420 | fi | |
43421 | fi | |
43422 | ||
43423 | if test "$wxUSE_MOTIF" = 1; then | |
43424 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
43425 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
43426 | wxUSE_DRAG_AND_DROP=no | |
43427 | fi | |
43428 | ||
43429 | if test "$wxUSE_X11" = 1; then | |
43430 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
43431 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
43432 | wxUSE_DRAG_AND_DROP=no | |
43433 | fi | |
43434 | ||
43435 | if test "$wxUSE_MGL" = 1; then | |
43436 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
43437 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
43438 | wxUSE_DRAG_AND_DROP=no | |
43439 | fi | |
43440 | ||
43441 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
43442 | cat >>confdefs.h <<\_ACEOF | |
43443 | #define wxUSE_DRAG_AND_DROP 1 | |
43444 | _ACEOF | |
43445 | ||
43446 | fi | |
43447 | ||
43448 | fi | |
43449 | ||
43450 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
43451 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
43452 | fi | |
43453 | ||
43454 | if test "$wxUSE_SPLINES" = "yes" ; then | |
43455 | cat >>confdefs.h <<\_ACEOF | |
43456 | #define wxUSE_SPLINES 1 | |
43457 | _ACEOF | |
43458 | ||
43459 | fi | |
43460 | ||
fbe2ca43 SN |
43461 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
43462 | cat >>confdefs.h <<\_ACEOF | |
43463 | #define wxUSE_MOUSEWHEEL 1 | |
43464 | _ACEOF | |
43465 | ||
43466 | fi | |
43467 | ||
a848cd7e SC |
43468 | |
43469 | USES_CONTROLS=0 | |
43470 | if test "$wxUSE_CONTROLS" = "yes"; then | |
43471 | USES_CONTROLS=1 | |
43472 | fi | |
43473 | ||
43474 | if test "$wxUSE_ACCEL" = "yes"; then | |
43475 | cat >>confdefs.h <<\_ACEOF | |
43476 | #define wxUSE_ACCEL 1 | |
43477 | _ACEOF | |
43478 | ||
43479 | USES_CONTROLS=1 | |
43480 | fi | |
43481 | ||
43482 | if test "$wxUSE_BUTTON" = "yes"; then | |
43483 | cat >>confdefs.h <<\_ACEOF | |
43484 | #define wxUSE_BUTTON 1 | |
43485 | _ACEOF | |
43486 | ||
43487 | USES_CONTROLS=1 | |
43488 | fi | |
43489 | ||
43490 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
43491 | cat >>confdefs.h <<\_ACEOF | |
43492 | #define wxUSE_BMPBUTTON 1 | |
43493 | _ACEOF | |
43494 | ||
43495 | USES_CONTROLS=1 | |
43496 | fi | |
43497 | ||
43498 | if test "$wxUSE_CALCTRL" = "yes"; then | |
43499 | cat >>confdefs.h <<\_ACEOF | |
43500 | #define wxUSE_CALENDARCTRL 1 | |
43501 | _ACEOF | |
43502 | ||
43503 | USES_CONTROLS=1 | |
43504 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
43505 | fi | |
43506 | ||
43507 | if test "$wxUSE_CARET" = "yes"; then | |
43508 | cat >>confdefs.h <<\_ACEOF | |
43509 | #define wxUSE_CARET 1 | |
43510 | _ACEOF | |
43511 | ||
43512 | USES_CONTROLS=1 | |
43513 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
43514 | fi | |
43515 | ||
43516 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
43517 | cat >>confdefs.h <<\_ACEOF | |
43518 | #define wxUSE_COMBOBOX 1 | |
43519 | _ACEOF | |
43520 | ||
43521 | USES_CONTROLS=1 | |
43522 | fi | |
43523 | ||
43524 | if test "$wxUSE_CHOICE" = "yes"; then | |
43525 | cat >>confdefs.h <<\_ACEOF | |
43526 | #define wxUSE_CHOICE 1 | |
43527 | _ACEOF | |
43528 | ||
43529 | USES_CONTROLS=1 | |
43530 | fi | |
43531 | ||
92bbdbcd WS |
43532 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
43533 | cat >>confdefs.h <<\_ACEOF | |
43534 | #define wxUSE_CHOICEBOOK 1 | |
43535 | _ACEOF | |
43536 | ||
43537 | USES_CONTROLS=1 | |
43538 | fi | |
43539 | ||
a848cd7e SC |
43540 | if test "$wxUSE_CHECKBOX" = "yes"; then |
43541 | cat >>confdefs.h <<\_ACEOF | |
43542 | #define wxUSE_CHECKBOX 1 | |
43543 | _ACEOF | |
43544 | ||
43545 | USES_CONTROLS=1 | |
43546 | fi | |
43547 | ||
43548 | if test "$wxUSE_CHECKLST" = "yes"; then | |
43549 | cat >>confdefs.h <<\_ACEOF | |
43550 | #define wxUSE_CHECKLISTBOX 1 | |
43551 | _ACEOF | |
43552 | ||
43553 | USES_CONTROLS=1 | |
43554 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
43555 | fi | |
43556 | ||
da98e9be VZ |
43557 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
43558 | cat >>confdefs.h <<\_ACEOF | |
43559 | #define wxUSE_DATEPICKCTRL 1 | |
43560 | _ACEOF | |
43561 | ||
43562 | USES_CONTROLS=1 | |
43563 | fi | |
43564 | ||
a848cd7e SC |
43565 | if test "$wxUSE_DISPLAY" = "yes"; then |
43566 | cat >>confdefs.h <<\_ACEOF | |
43567 | #define wxUSE_DISPLAY 1 | |
43568 | _ACEOF | |
43569 | ||
0b78747f | 43570 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
43571 | fi |
43572 | ||
43573 | if test "$wxUSE_GAUGE" = "yes"; then | |
43574 | cat >>confdefs.h <<\_ACEOF | |
43575 | #define wxUSE_GAUGE 1 | |
43576 | _ACEOF | |
43577 | ||
43578 | USES_CONTROLS=1 | |
43579 | fi | |
43580 | ||
43581 | if test "$wxUSE_GRID" = "yes"; then | |
43582 | cat >>confdefs.h <<\_ACEOF | |
43583 | #define wxUSE_GRID 1 | |
43584 | _ACEOF | |
43585 | ||
43586 | USES_CONTROLS=1 | |
43587 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
43588 | fi | |
43589 | ||
20e34ecc RR |
43590 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
43591 | cat >>confdefs.h <<\_ACEOF | |
43592 | #define wxUSE_DATAVIEWCTRL 1 | |
43593 | _ACEOF | |
43594 | ||
43595 | USES_CONTROLS=1 | |
43596 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
43597 | fi | |
43598 | ||
a848cd7e SC |
43599 | if test "$wxUSE_IMAGLIST" = "yes"; then |
43600 | cat >>confdefs.h <<\_ACEOF | |
43601 | #define wxUSE_IMAGLIST 1 | |
43602 | _ACEOF | |
43603 | ||
43604 | fi | |
43605 | ||
43606 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
43607 | cat >>confdefs.h <<\_ACEOF | |
43608 | #define wxUSE_LISTBOOK 1 | |
43609 | _ACEOF | |
43610 | ||
43611 | USES_CONTROLS=1 | |
43612 | fi | |
43613 | ||
43614 | if test "$wxUSE_LISTBOX" = "yes"; then | |
43615 | cat >>confdefs.h <<\_ACEOF | |
43616 | #define wxUSE_LISTBOX 1 | |
43617 | _ACEOF | |
43618 | ||
43619 | USES_CONTROLS=1 | |
0b78747f | 43620 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
43621 | fi |
43622 | ||
43623 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
43624 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
43625 | cat >>confdefs.h <<\_ACEOF | |
43626 | #define wxUSE_LISTCTRL 1 | |
43627 | _ACEOF | |
43628 | ||
43629 | USES_CONTROLS=1 | |
43630 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
43631 | else | |
43632 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
43633 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
43634 | fi | |
43635 | fi | |
43636 | ||
43637 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
43638 | cat >>confdefs.h <<\_ACEOF | |
43639 | #define wxUSE_NOTEBOOK 1 | |
43640 | _ACEOF | |
43641 | ||
43642 | USES_CONTROLS=1 | |
43643 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
43644 | fi | |
43645 | ||
43646 | ||
43647 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
43648 | cat >>confdefs.h <<\_ACEOF | |
43649 | #define wxUSE_RADIOBOX 1 | |
43650 | _ACEOF | |
43651 | ||
43652 | USES_CONTROLS=1 | |
43653 | fi | |
43654 | ||
43655 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
43656 | cat >>confdefs.h <<\_ACEOF | |
43657 | #define wxUSE_RADIOBTN 1 | |
43658 | _ACEOF | |
43659 | ||
43660 | USES_CONTROLS=1 | |
43661 | fi | |
43662 | ||
43663 | if test "$wxUSE_SASH" = "yes"; then | |
43664 | cat >>confdefs.h <<\_ACEOF | |
43665 | #define wxUSE_SASH 1 | |
43666 | _ACEOF | |
43667 | ||
43668 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
43669 | fi | |
43670 | ||
43671 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
43672 | cat >>confdefs.h <<\_ACEOF | |
43673 | #define wxUSE_SCROLLBAR 1 | |
43674 | _ACEOF | |
43675 | ||
43676 | USES_CONTROLS=1 | |
43677 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
43678 | fi | |
43679 | ||
43680 | if test "$wxUSE_SLIDER" = "yes"; then | |
43681 | cat >>confdefs.h <<\_ACEOF | |
43682 | #define wxUSE_SLIDER 1 | |
43683 | _ACEOF | |
43684 | ||
43685 | USES_CONTROLS=1 | |
43686 | fi | |
43687 | ||
43688 | if test "$wxUSE_SPINBTN" = "yes"; then | |
43689 | cat >>confdefs.h <<\_ACEOF | |
43690 | #define wxUSE_SPINBTN 1 | |
43691 | _ACEOF | |
43692 | ||
43693 | USES_CONTROLS=1 | |
43694 | fi | |
43695 | ||
43696 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
43697 | cat >>confdefs.h <<\_ACEOF | |
43698 | #define wxUSE_SPINCTRL 1 | |
43699 | _ACEOF | |
43700 | ||
43701 | USES_CONTROLS=1 | |
43702 | fi | |
43703 | ||
43704 | if test "$wxUSE_SPLITTER" = "yes"; then | |
43705 | cat >>confdefs.h <<\_ACEOF | |
43706 | #define wxUSE_SPLITTER 1 | |
43707 | _ACEOF | |
43708 | ||
43709 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
43710 | fi | |
43711 | ||
43712 | if test "$wxUSE_STATBMP" = "yes"; then | |
43713 | cat >>confdefs.h <<\_ACEOF | |
43714 | #define wxUSE_STATBMP 1 | |
43715 | _ACEOF | |
43716 | ||
43717 | USES_CONTROLS=1 | |
43718 | fi | |
43719 | ||
43720 | if test "$wxUSE_STATBOX" = "yes"; then | |
43721 | cat >>confdefs.h <<\_ACEOF | |
43722 | #define wxUSE_STATBOX 1 | |
43723 | _ACEOF | |
43724 | ||
43725 | USES_CONTROLS=1 | |
43726 | fi | |
43727 | ||
43728 | if test "$wxUSE_STATTEXT" = "yes"; then | |
43729 | cat >>confdefs.h <<\_ACEOF | |
43730 | #define wxUSE_STATTEXT 1 | |
43731 | _ACEOF | |
43732 | ||
43733 | USES_CONTROLS=1 | |
43734 | fi | |
43735 | ||
43736 | if test "$wxUSE_STATLINE" = "yes"; then | |
43737 | cat >>confdefs.h <<\_ACEOF | |
43738 | #define wxUSE_STATLINE 1 | |
43739 | _ACEOF | |
43740 | ||
43741 | USES_CONTROLS=1 | |
43742 | fi | |
43743 | ||
43744 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
43745 | cat >>confdefs.h <<\_ACEOF |
43746 | #define wxUSE_NATIVE_STATUSBAR 1 | |
43747 | _ACEOF | |
43748 | ||
a848cd7e SC |
43749 | cat >>confdefs.h <<\_ACEOF |
43750 | #define wxUSE_STATUSBAR 1 | |
43751 | _ACEOF | |
43752 | ||
43753 | USES_CONTROLS=1 | |
43754 | ||
43755 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
43756 | fi | |
43757 | ||
43758 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
43759 | cat >>confdefs.h <<\_ACEOF | |
43760 | #define wxUSE_TAB_DIALOG 1 | |
43761 | _ACEOF | |
43762 | ||
a848cd7e SC |
43763 | fi |
43764 | ||
43765 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
43766 | cat >>confdefs.h <<\_ACEOF | |
43767 | #define wxUSE_TEXTCTRL 1 | |
43768 | _ACEOF | |
43769 | ||
43770 | USES_CONTROLS=1 | |
43771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
43772 | fi | |
43773 | ||
43774 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
43775 | if test "$wxUSE_COCOA" = 1 ; then | |
43776 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
43777 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
43778 | wxUSE_TOGGLEBTN=no | |
43779 | fi | |
43780 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
43781 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
43782 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
43783 | wxUSE_TOGGLEBTN=no | |
43784 | fi | |
43785 | ||
43786 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
43787 | cat >>confdefs.h <<\_ACEOF | |
43788 | #define wxUSE_TOGGLEBTN 1 | |
43789 | _ACEOF | |
43790 | ||
43791 | USES_CONTROLS=1 | |
43792 | fi | |
43793 | fi | |
43794 | ||
43795 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
43796 | cat >>confdefs.h <<\_ACEOF | |
43797 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
43798 | _ACEOF | |
43799 | ||
43800 | wxUSE_TOOLBAR="yes" | |
43801 | USES_CONTROLS=1 | |
43802 | fi | |
43803 | ||
43804 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
43805 | cat >>confdefs.h <<\_ACEOF | |
43806 | #define wxUSE_TOOLBAR 1 | |
43807 | _ACEOF | |
43808 | ||
43809 | USES_CONTROLS=1 | |
43810 | ||
43811 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
43812 | wxUSE_TOOLBAR_NATIVE="yes" | |
43813 | fi | |
43814 | ||
43815 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
43816 | cat >>confdefs.h <<\_ACEOF | |
43817 | #define wxUSE_TOOLBAR_NATIVE 1 | |
43818 | _ACEOF | |
43819 | ||
43820 | USES_CONTROLS=1 | |
43821 | fi | |
43822 | ||
43823 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
43824 | fi | |
43825 | ||
43826 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
43827 | if test "$wxUSE_MOTIF" = 1; then | |
43828 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
43829 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
43830 | else | |
43831 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
43832 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
43833 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
43834 | else | |
43835 | cat >>confdefs.h <<\_ACEOF | |
43836 | #define wxUSE_TOOLTIPS 1 | |
43837 | _ACEOF | |
43838 | ||
43839 | fi | |
43840 | fi | |
43841 | fi | |
43842 | ||
0093c2fc VZ |
43843 | if test "$wxUSE_TREEBOOK" = "yes"; then |
43844 | cat >>confdefs.h <<\_ACEOF | |
43845 | #define wxUSE_TREEBOOK 1 | |
43846 | _ACEOF | |
43847 | ||
43848 | USES_CONTROLS=1 | |
43849 | fi | |
43850 | ||
a848cd7e SC |
43851 | if test "$wxUSE_TREECTRL" = "yes"; then |
43852 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
43853 | cat >>confdefs.h <<\_ACEOF | |
43854 | #define wxUSE_TREECTRL 1 | |
43855 | _ACEOF | |
43856 | ||
43857 | USES_CONTROLS=1 | |
43858 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
43859 | else | |
43860 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
43861 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
43862 | fi | |
43863 | fi | |
43864 | ||
43865 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
43866 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
43867 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
43868 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
43869 | else | |
43870 | if test "$wxUSE_PM" = 1; then | |
43871 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
43872 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
43873 | else | |
43874 | cat >>confdefs.h <<\_ACEOF | |
43875 | #define wxUSE_POPUPWIN 1 | |
43876 | _ACEOF | |
43877 | ||
0b78747f | 43878 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
43879 | |
43880 | USES_CONTROLS=1 | |
43881 | fi | |
43882 | fi | |
43883 | fi | |
43884 | ||
0dcd06dd | 43885 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
43886 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
43887 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
43888 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
43889 | else | |
43890 | cat >>confdefs.h <<\_ACEOF | |
43891 | #define wxUSE_DIALUP_MANAGER 1 | |
43892 | _ACEOF | |
43893 | ||
43894 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
43895 | fi | |
43896 | fi | |
43897 | ||
a848cd7e SC |
43898 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
43899 | if test "$wxUSE_PM" = 1; then | |
43900 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
43901 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
43902 | else | |
43903 | cat >>confdefs.h <<\_ACEOF | |
43904 | #define wxUSE_TIPWINDOW 1 | |
43905 | _ACEOF | |
43906 | ||
43907 | fi | |
43908 | fi | |
43909 | ||
43910 | if test "$USES_CONTROLS" = 1; then | |
43911 | cat >>confdefs.h <<\_ACEOF | |
43912 | #define wxUSE_CONTROLS 1 | |
43913 | _ACEOF | |
43914 | ||
43915 | fi | |
43916 | ||
43917 | ||
43918 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
43919 | cat >>confdefs.h <<\_ACEOF | |
43920 | #define wxUSE_ACCESSIBILITY 1 | |
43921 | _ACEOF | |
43922 | ||
43923 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
43924 | fi | |
43925 | ||
38b4a946 VZ |
43926 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
43927 | cat >>confdefs.h <<\_ACEOF | |
43928 | #define wxUSE_DC_CACHEING 1 | |
43929 | _ACEOF | |
43930 | ||
43931 | fi | |
43932 | ||
a848cd7e SC |
43933 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
43934 | cat >>confdefs.h <<\_ACEOF | |
43935 | #define wxUSE_DRAGIMAGE 1 | |
43936 | _ACEOF | |
43937 | ||
43938 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
43939 | fi | |
43940 | ||
43941 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
43942 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
43943 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
43944 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
43945 | else | |
43946 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43947 | #define wxUSE_EXCEPTIONS 1 |
43948 | _ACEOF | |
43949 | ||
07bea8f0 VS |
43950 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
43951 | fi | |
a848cd7e SC |
43952 | fi |
43953 | ||
43954 | USE_HTML=0 | |
43955 | if test "$wxUSE_HTML" = "yes"; then | |
43956 | cat >>confdefs.h <<\_ACEOF | |
43957 | #define wxUSE_HTML 1 | |
43958 | _ACEOF | |
43959 | ||
43960 | USE_HTML=1 | |
43961 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
43962 | if test "$wxUSE_MAC" = 1; then |
43963 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
43964 | fi | |
a848cd7e | 43965 | fi |
646b6ec1 | 43966 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 43967 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 43968 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 43969 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
07bea8f0 VS |
43970 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 |
43971 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
43972 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
43973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43974 | else | |
43975 | cat >conftest.$ac_ext <<_ACEOF | |
43976 | /* confdefs.h. */ | |
43977 | _ACEOF | |
43978 | cat confdefs.h >>conftest.$ac_ext | |
43979 | cat >>conftest.$ac_ext <<_ACEOF | |
43980 | /* end confdefs.h. */ | |
43981 | #include <Carbon/Carbon.h> | |
43982 | ||
43983 | #include <WebKit/HIWebView.h> | |
43984 | _ACEOF | |
43985 | rm -f conftest.$ac_objext | |
43986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43987 | (eval $ac_compile) 2>conftest.er1 | |
43988 | ac_status=$? | |
43989 | grep -v '^ *+' conftest.er1 >conftest.err | |
43990 | rm -f conftest.er1 | |
43991 | cat conftest.err >&5 | |
43992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43993 | (exit $ac_status); } && | |
3565d135 RR |
43994 | { ac_try='test -z "$ac_c_werror_flag" |
43995 | || test ! -s conftest.err' | |
07bea8f0 VS |
43996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43997 | (eval $ac_try) 2>&5 | |
43998 | ac_status=$? | |
43999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44000 | (exit $ac_status); }; } && | |
44001 | { ac_try='test -s conftest.$ac_objext' | |
44002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44003 | (eval $ac_try) 2>&5 | |
44004 | ac_status=$? | |
44005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44006 | (exit $ac_status); }; }; then | |
44007 | ac_cv_header_WebKit_HIWebView_h=yes | |
44008 | else | |
44009 | echo "$as_me: failed program was:" >&5 | |
44010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44011 | ||
44012 | ac_cv_header_WebKit_HIWebView_h=no | |
44013 | fi | |
44014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
44015 | fi | |
44016 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
44017 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
44018 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
44019 | ||
44020 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
44021 | #define wxUSE_WEBKIT 1 |
44022 | _ACEOF | |
44023 | ||
07bea8f0 VS |
44024 | WEBKIT_LINK="-framework WebKit" |
44025 | ||
44026 | else | |
44027 | ||
44028 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
44029 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
44030 | wxUSE_WEBKIT=no | |
44031 | ||
646b6ec1 VS |
44032 | fi |
44033 | ||
07bea8f0 VS |
44034 | |
44035 | CPPFLAGS="$old_CPPFLAGS" | |
44036 | elif test "$wxUSE_COCOA" = 1; then | |
44037 | cat >>confdefs.h <<\_ACEOF | |
44038 | #define wxUSE_WEBKIT 1 | |
44039 | _ACEOF | |
44040 | ||
44041 | else | |
44042 | wxUSE_WEBKIT=no | |
44043 | fi | |
44044 | fi | |
44045 | ||
9a8f0513 VS |
44046 | USE_XRC=0 |
44047 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
44048 | if test "$wxUSE_XML" != "yes"; then |
44049 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
44050 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
44051 | wxUSE_XRC=no | |
44052 | else | |
44053 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
44054 | #define wxUSE_XRC 1 |
44055 | _ACEOF | |
44056 | ||
d2ebf0b7 VS |
44057 | USE_XRC=1 |
44058 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
44059 | fi | |
9a8f0513 | 44060 | fi |
07bea8f0 | 44061 | |
a848cd7e SC |
44062 | if test "$wxUSE_MENUS" = "yes"; then |
44063 | cat >>confdefs.h <<\_ACEOF | |
44064 | #define wxUSE_MENUS 1 | |
44065 | _ACEOF | |
44066 | ||
44067 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
44068 | fi | |
44069 | ||
44070 | if test "$wxUSE_METAFILE" = "yes"; then | |
44071 | cat >>confdefs.h <<\_ACEOF | |
44072 | #define wxUSE_METAFILE 1 | |
44073 | _ACEOF | |
44074 | ||
44075 | fi | |
44076 | ||
44077 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
44078 | cat >>confdefs.h <<\_ACEOF | |
44079 | #define wxUSE_MIMETYPE 1 | |
44080 | _ACEOF | |
44081 | ||
44082 | fi | |
44083 | ||
44084 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
44085 | cat >>confdefs.h <<\_ACEOF | |
44086 | #define wxUSE_MINIFRAME 1 | |
44087 | _ACEOF | |
44088 | ||
44089 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
44090 | fi | |
44091 | ||
44092 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
44093 | cat >>confdefs.h <<\_ACEOF | |
44094 | #define wxUSE_SYSTEM_OPTIONS 1 | |
44095 | _ACEOF | |
44096 | ||
44097 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 44098 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
44099 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
44100 | fi | |
44101 | fi | |
44102 | ||
44103 | ||
44104 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
44105 | cat >>confdefs.h <<\_ACEOF | |
44106 | #define wxUSE_VALIDATORS 1 | |
44107 | _ACEOF | |
44108 | ||
44109 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
44110 | fi | |
44111 | ||
44112 | if test "$wxUSE_PALETTE" = "yes" ; then | |
44113 | cat >>confdefs.h <<\_ACEOF | |
44114 | #define wxUSE_PALETTE 1 | |
44115 | _ACEOF | |
44116 | ||
44117 | fi | |
44118 | ||
44119 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
44120 | LIBS=" -lunicows $LIBS" | |
44121 | fi | |
44122 | ||
91dea314 MW |
44123 | USE_RICHTEXT=0 |
44124 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
44125 | cat >>confdefs.h <<\_ACEOF | |
44126 | #define wxUSE_RICHTEXT 1 | |
44127 | _ACEOF | |
44128 | ||
44129 | USE_RICHTEXT=1 | |
44130 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
44131 | fi | |
44132 | ||
a848cd7e SC |
44133 | |
44134 | if test "$wxUSE_IMAGE" = "yes" ; then | |
44135 | cat >>confdefs.h <<\_ACEOF | |
44136 | #define wxUSE_IMAGE 1 | |
44137 | _ACEOF | |
44138 | ||
44139 | ||
44140 | if test "$wxUSE_GIF" = "yes" ; then | |
44141 | cat >>confdefs.h <<\_ACEOF | |
44142 | #define wxUSE_GIF 1 | |
44143 | _ACEOF | |
44144 | ||
44145 | fi | |
44146 | ||
44147 | if test "$wxUSE_PCX" = "yes" ; then | |
44148 | cat >>confdefs.h <<\_ACEOF | |
44149 | #define wxUSE_PCX 1 | |
44150 | _ACEOF | |
44151 | ||
44152 | fi | |
44153 | ||
44154 | if test "$wxUSE_IFF" = "yes" ; then | |
44155 | cat >>confdefs.h <<\_ACEOF | |
44156 | #define wxUSE_IFF 1 | |
44157 | _ACEOF | |
44158 | ||
44159 | fi | |
44160 | ||
44161 | if test "$wxUSE_PNM" = "yes" ; then | |
44162 | cat >>confdefs.h <<\_ACEOF | |
44163 | #define wxUSE_PNM 1 | |
44164 | _ACEOF | |
44165 | ||
44166 | fi | |
44167 | ||
44168 | if test "$wxUSE_XPM" = "yes" ; then | |
44169 | cat >>confdefs.h <<\_ACEOF | |
44170 | #define wxUSE_XPM 1 | |
44171 | _ACEOF | |
44172 | ||
44173 | fi | |
44174 | ||
44175 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
44176 | cat >>confdefs.h <<\_ACEOF | |
44177 | #define wxUSE_ICO_CUR 1 | |
44178 | _ACEOF | |
44179 | ||
44180 | fi | |
44181 | fi | |
44182 | ||
44183 | ||
44184 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
44185 | cat >>confdefs.h <<\_ACEOF | |
44186 | #define wxUSE_CHOICEDLG 1 | |
44187 | _ACEOF | |
44188 | ||
44189 | fi | |
44190 | ||
44191 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
44192 | cat >>confdefs.h <<\_ACEOF | |
44193 | #define wxUSE_COLOURDLG 1 | |
44194 | _ACEOF | |
44195 | ||
44196 | fi | |
44197 | ||
44198 | if test "$wxUSE_FILEDLG" = "yes"; then | |
44199 | cat >>confdefs.h <<\_ACEOF | |
44200 | #define wxUSE_FILEDLG 1 | |
44201 | _ACEOF | |
44202 | ||
44203 | fi | |
44204 | ||
44205 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
44206 | cat >>confdefs.h <<\_ACEOF | |
44207 | #define wxUSE_FINDREPLDLG 1 | |
44208 | _ACEOF | |
44209 | ||
44210 | fi | |
44211 | ||
44212 | if test "$wxUSE_FONTDLG" = "yes"; then | |
44213 | cat >>confdefs.h <<\_ACEOF | |
44214 | #define wxUSE_FONTDLG 1 | |
44215 | _ACEOF | |
44216 | ||
44217 | fi | |
44218 | ||
44219 | if test "$wxUSE_DIRDLG" = "yes"; then | |
44220 | if test "$wxUSE_TREECTRL" != "yes"; then | |
44221 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
44222 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
44223 | else | |
44224 | cat >>confdefs.h <<\_ACEOF | |
44225 | #define wxUSE_DIRDLG 1 | |
44226 | _ACEOF | |
44227 | ||
44228 | fi | |
44229 | fi | |
44230 | ||
44231 | if test "$wxUSE_MSGDLG" = "yes"; then | |
44232 | cat >>confdefs.h <<\_ACEOF | |
44233 | #define wxUSE_MSGDLG 1 | |
44234 | _ACEOF | |
44235 | ||
44236 | fi | |
44237 | ||
44238 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
44239 | cat >>confdefs.h <<\_ACEOF | |
44240 | #define wxUSE_NUMBERDLG 1 | |
44241 | _ACEOF | |
44242 | ||
44243 | fi | |
44244 | ||
44245 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
44246 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44247 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
44248 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
44249 | else | |
44250 | cat >>confdefs.h <<\_ACEOF | |
44251 | #define wxUSE_PROGRESSDLG 1 | |
44252 | _ACEOF | |
44253 | ||
44254 | fi | |
44255 | fi | |
44256 | ||
44257 | if test "$wxUSE_SPLASH" = "yes"; then | |
44258 | cat >>confdefs.h <<\_ACEOF | |
44259 | #define wxUSE_SPLASH 1 | |
44260 | _ACEOF | |
44261 | ||
2057db16 | 44262 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
44263 | fi |
44264 | ||
44265 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
44266 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44267 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
44268 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
44269 | else | |
44270 | cat >>confdefs.h <<\_ACEOF | |
44271 | #define wxUSE_STARTUP_TIPS 1 | |
44272 | _ACEOF | |
44273 | ||
44274 | fi | |
44275 | fi | |
44276 | ||
44277 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
44278 | cat >>confdefs.h <<\_ACEOF | |
44279 | #define wxUSE_TEXTDLG 1 | |
44280 | _ACEOF | |
44281 | ||
44282 | fi | |
44283 | ||
44284 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
44285 | cat >>confdefs.h <<\_ACEOF | |
44286 | #define wxUSE_WIZARDDLG 1 | |
44287 | _ACEOF | |
44288 | ||
44289 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
44290 | fi | |
44291 | ||
44292 | ||
ce756cb0 | 44293 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
44294 | if test "$wxUSE_GTK" = 1; then |
44295 | wxUSE_GSTREAMER="yes" | |
44296 | ||
ce756cb0 | 44297 | |
dae87f93 | 44298 | succeeded=no |
ce756cb0 | 44299 | |
dae87f93 RN |
44300 | if test -z "$PKG_CONFIG"; then |
44301 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
44302 | set dummy pkg-config; ac_word=$2 | |
44303 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44305 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
44306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44307 | else | |
44308 | case $PKG_CONFIG in | |
44309 | [\\/]* | ?:[\\/]*) | |
44310 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
44311 | ;; | |
44312 | *) | |
44313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44314 | for as_dir in $PATH | |
44315 | do | |
44316 | IFS=$as_save_IFS | |
44317 | test -z "$as_dir" && as_dir=. | |
44318 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44319 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44320 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
44321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44322 | break 2 | |
44323 | fi | |
44324 | done | |
44325 | done | |
44326 | ||
44327 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
44328 | ;; | |
44329 | esac | |
44330 | fi | |
44331 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
44332 | ||
44333 | if test -n "$PKG_CONFIG"; then | |
44334 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
44335 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
44336 | else | |
44337 | echo "$as_me:$LINENO: result: no" >&5 | |
44338 | echo "${ECHO_T}no" >&6 | |
44339 | fi | |
44340 | ||
44341 | fi | |
44342 | ||
44343 | if test "$PKG_CONFIG" = "no" ; then | |
44344 | echo "*** The pkg-config script could not be found. Make sure it is" | |
44345 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
44346 | echo "*** to the full path to pkg-config." | |
44347 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
44348 | else | |
44349 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
44350 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
44351 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
44352 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
44353 | ||
44354 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
44355 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 44356 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 44357 | succeeded=yes |
ce756cb0 | 44358 | |
dae87f93 RN |
44359 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
44360 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
44361 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
44362 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
44363 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
44364 | ||
44365 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
44366 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
44367 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
44368 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
44369 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
44370 | else | |
44371 | GSTREAMER_CFLAGS="" | |
44372 | GSTREAMER_LIBS="" | |
44373 | ## If we have a custom action on failure, don't print errors, but | |
44374 | ## do set a variable so people can do so. | |
44375 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 44376 | |
dae87f93 RN |
44377 | fi |
44378 | ||
44379 | ||
44380 | ||
44381 | else | |
44382 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
44383 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
44384 | fi | |
44385 | fi | |
44386 | ||
44387 | if test $succeeded = yes; then | |
44388 | ||
c92ad099 | 44389 | CPPFLAGS="$GSTREAMER_CFLAGS $CPPFLAGS" |
dae87f93 | 44390 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" |
ce756cb0 | 44391 | |
ce756cb0 | 44392 | else |
dae87f93 RN |
44393 | |
44394 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
44395 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
44396 | wxUSE_GSTREAMER="no" | |
44397 | ||
44398 | fi | |
44399 | ||
44400 | ||
44401 | ||
44402 | ||
44403 | ||
44404 | if test "x$GST_INSPECT" == "x"; then | |
44405 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
44406 | set dummy gst-inspect; ac_word=$2 | |
44407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44409 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
44410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44411 | else | |
44412 | if test -n "$GST_INSPECT"; then | |
44413 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
44414 | else | |
44415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44416 | for as_dir in $PATH | |
44417 | do | |
44418 | IFS=$as_save_IFS | |
44419 | test -z "$as_dir" && as_dir=. | |
44420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44422 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
44423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44424 | break 2 | |
ce756cb0 | 44425 | fi |
dae87f93 RN |
44426 | done |
44427 | done | |
44428 | ||
44429 | fi | |
44430 | fi | |
44431 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
44432 | if test -n "$GST_INSPECT"; then | |
44433 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
44434 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
44435 | else | |
44436 | echo "$as_me:$LINENO: result: no" >&5 | |
44437 | echo "${ECHO_T}no" >&6 | |
44438 | fi | |
44439 | ||
44440 | fi | |
44441 | ||
44442 | if test "x$GST_INSPECT" != "x"; then | |
44443 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
44444 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
44445 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
44446 | echo "$as_me:$LINENO: result: found." >&5 | |
44447 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 44448 | |
ce756cb0 | 44449 | else |
dae87f93 RN |
44450 | echo "$as_me:$LINENO: result: not found." >&5 |
44451 | echo "${ECHO_T}not found." >&6 | |
44452 | ||
44453 | wxUSE_GSTREAMER="no" | |
44454 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
44455 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
44456 | ||
44457 | fi | |
44458 | fi | |
44459 | ||
44460 | ||
44461 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
44462 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
44463 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
44464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44465 | else | |
44466 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
44467 | /* confdefs.h. */ |
44468 | _ACEOF | |
44469 | cat confdefs.h >>conftest.$ac_ext | |
44470 | cat >>conftest.$ac_ext <<_ACEOF | |
44471 | /* end confdefs.h. */ | |
dae87f93 | 44472 | #include <gst/gst.h> |
ce756cb0 | 44473 | |
dae87f93 | 44474 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
44475 | _ACEOF |
44476 | rm -f conftest.$ac_objext | |
44477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44478 | (eval $ac_compile) 2>conftest.er1 | |
44479 | ac_status=$? | |
44480 | grep -v '^ *+' conftest.er1 >conftest.err | |
44481 | rm -f conftest.er1 | |
44482 | cat conftest.err >&5 | |
44483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44484 | (exit $ac_status); } && | |
3565d135 RR |
44485 | { ac_try='test -z "$ac_c_werror_flag" |
44486 | || test ! -s conftest.err' | |
ce756cb0 RN |
44487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44488 | (eval $ac_try) 2>&5 | |
44489 | ac_status=$? | |
44490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44491 | (exit $ac_status); }; } && | |
44492 | { ac_try='test -s conftest.$ac_objext' | |
44493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44494 | (eval $ac_try) 2>&5 | |
44495 | ac_status=$? | |
44496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44497 | (exit $ac_status); }; }; then | |
dae87f93 | 44498 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
44499 | else |
44500 | echo "$as_me: failed program was:" >&5 | |
44501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44502 | ||
dae87f93 | 44503 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
44504 | fi |
44505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
44506 | fi |
44507 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
44508 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
44509 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
44510 | : | |
44511 | else | |
ce756cb0 | 44512 | |
dae87f93 RN |
44513 | wxUSE_GSTREAMER="no" |
44514 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
44515 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 44516 | |
dae87f93 | 44517 | fi |
ce756cb0 | 44518 | |
dae87f93 RN |
44519 | |
44520 | ||
44521 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
44522 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
44523 | ||
0ad5d837 VZ |
44524 | ac_find_libraries= |
44525 | for ac_dir in $SEARCH_LIB; | |
ce756cb0 | 44526 | do |
3eca31dc | 44527 | for ac_extension in a so sl dylib dll.a; do |
ce756cb0 RN |
44528 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then |
44529 | ac_find_libraries=$ac_dir | |
44530 | break 2 | |
44531 | fi | |
44532 | done | |
44533 | done | |
44534 | ||
ce756cb0 | 44535 | |
dae87f93 RN |
44536 | if test "$ac_find_libraries" = "" ; then |
44537 | echo "$as_me:$LINENO: result: no" >&5 | |
44538 | echo "${ECHO_T}no" >&6 | |
44539 | wxUSE_GSTREAMER="no" | |
44540 | else | |
44541 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 44542 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 44543 | fi |
ce756cb0 | 44544 | |
dae87f93 RN |
44545 | if test "$wxUSE_GSTREAMER" = "yes"; then |
44546 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
44547 | #define wxUSE_GSTREAMER 1 |
44548 | _ACEOF | |
44549 | ||
dae87f93 RN |
44550 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
44551 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
44552 | fi |
44553 | fi | |
44554 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
44555 | cat >>confdefs.h <<\_ACEOF | |
44556 | #define wxUSE_MEDIACTRL 1 | |
44557 | _ACEOF | |
44558 | ||
44559 | fi | |
44560 | ||
44561 | ||
a848cd7e SC |
44562 | if test "$cross_compiling" = "yes"; then |
44563 | OSINFO="\"$host\"" | |
44564 | else | |
44565 | OSINFO=`uname -s -r -m` | |
44566 | OSINFO="\"$OSINFO\"" | |
44567 | fi | |
44568 | ||
44569 | cat >>confdefs.h <<_ACEOF | |
44570 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
44571 | _ACEOF | |
44572 | ||
44573 | ||
44574 | ||
44575 | if test "x$prefix" != "xNONE"; then | |
44576 | wxPREFIX=$prefix | |
44577 | else | |
44578 | wxPREFIX=$ac_default_prefix | |
44579 | fi | |
44580 | ||
44581 | cat >>confdefs.h <<_ACEOF | |
44582 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
44583 | _ACEOF | |
44584 | ||
44585 | ||
a848cd7e SC |
44586 | |
44587 | ||
44588 | CORE_BASE_LIBS="net base" | |
44589 | CORE_GUI_LIBS="adv core" | |
44590 | ||
44591 | if test "$wxUSE_XML" = "yes" ; then | |
44592 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
44593 | fi | |
44594 | if test "$wxUSE_ODBC" != "no" ; then | |
44595 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
44596 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
44597 | fi | |
44598 | if test "$wxUSE_HTML" = "yes" ; then | |
44599 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
44600 | fi | |
61639efb VZ |
44601 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
44602 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
44603 | fi | |
9a8f0513 VS |
44604 | if test "$wxUSE_XRC" = "yes" ; then |
44605 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
44606 | fi | |
a848cd7e SC |
44607 | |
44608 | if test "$wxUSE_GUI" != "yes"; then | |
44609 | CORE_GUI_LIBS="" | |
44610 | fi | |
44611 | ||
44612 | ||
44613 | ||
44614 | ||
44615 | ||
44616 | ||
44617 | ||
44618 | ||
44619 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 44620 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
44621 | if test "$USE_DARWIN" = 1; then |
44622 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
44623 | else | |
44624 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
44625 | fi | |
07bea8f0 | 44626 | fi |
5dcf30a0 | 44627 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
44628 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
44629 | else | |
44630 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 44631 | fi |
a848cd7e SC |
44632 | fi |
44633 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 44634 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
44635 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
44636 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
44637 | fi | |
a848cd7e | 44638 | fi |
19b27e78 MW |
44639 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
44640 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
44641 | fi | |
a848cd7e SC |
44642 | |
44643 | ||
44644 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
44645 | ||
44646 | have_cos=0 | |
44647 | have_floor=0 | |
44648 | ||
44649 | for ac_func in cos | |
44650 | do | |
44651 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44652 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44653 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44654 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44656 | else | |
44657 | cat >conftest.$ac_ext <<_ACEOF | |
44658 | /* confdefs.h. */ | |
44659 | _ACEOF | |
44660 | cat confdefs.h >>conftest.$ac_ext | |
44661 | cat >>conftest.$ac_ext <<_ACEOF | |
44662 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44663 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44664 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44665 | #define $ac_func innocuous_$ac_func | |
44666 | ||
a848cd7e SC |
44667 | /* System header to define __stub macros and hopefully few prototypes, |
44668 | which can conflict with char $ac_func (); below. | |
44669 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44670 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44671 | |
a848cd7e SC |
44672 | #ifdef __STDC__ |
44673 | # include <limits.h> | |
44674 | #else | |
44675 | # include <assert.h> | |
44676 | #endif | |
ac1cb8d3 VS |
44677 | |
44678 | #undef $ac_func | |
44679 | ||
a848cd7e SC |
44680 | /* Override any gcc2 internal prototype to avoid an error. */ |
44681 | #ifdef __cplusplus | |
44682 | extern "C" | |
44683 | { | |
44684 | #endif | |
44685 | /* We use char because int might match the return type of a gcc2 | |
44686 | builtin and then its argument prototype would still apply. */ | |
44687 | char $ac_func (); | |
44688 | /* The GNU C library defines this for functions which it implements | |
44689 | to always fail with ENOSYS. Some functions are actually named | |
44690 | something starting with __ and the normal name is an alias. */ | |
44691 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44692 | choke me | |
44693 | #else | |
44694 | char (*f) () = $ac_func; | |
44695 | #endif | |
44696 | #ifdef __cplusplus | |
44697 | } | |
44698 | #endif | |
44699 | ||
44700 | int | |
44701 | main () | |
44702 | { | |
44703 | return f != $ac_func; | |
44704 | ; | |
44705 | return 0; | |
44706 | } | |
44707 | _ACEOF | |
44708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44710 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44711 | ac_status=$? |
ac1cb8d3 VS |
44712 | grep -v '^ *+' conftest.er1 >conftest.err |
44713 | rm -f conftest.er1 | |
44714 | cat conftest.err >&5 | |
a848cd7e SC |
44715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44716 | (exit $ac_status); } && | |
3565d135 RR |
44717 | { ac_try='test -z "$ac_c_werror_flag" |
44718 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
44719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44720 | (eval $ac_try) 2>&5 | |
44721 | ac_status=$? | |
44722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44723 | (exit $ac_status); }; } && | |
44724 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44726 | (eval $ac_try) 2>&5 | |
44727 | ac_status=$? | |
44728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44729 | (exit $ac_status); }; }; then | |
44730 | eval "$as_ac_var=yes" | |
44731 | else | |
44732 | echo "$as_me: failed program was:" >&5 | |
44733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44734 | ||
44735 | eval "$as_ac_var=no" | |
44736 | fi | |
ac1cb8d3 VS |
44737 | rm -f conftest.err conftest.$ac_objext \ |
44738 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44739 | fi |
44740 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44741 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44742 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44743 | cat >>confdefs.h <<_ACEOF | |
44744 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44745 | _ACEOF | |
44746 | have_cos=1 | |
44747 | fi | |
44748 | done | |
44749 | ||
44750 | ||
44751 | for ac_func in floor | |
44752 | do | |
44753 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44754 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44755 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44756 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44758 | else | |
44759 | cat >conftest.$ac_ext <<_ACEOF | |
44760 | /* confdefs.h. */ | |
44761 | _ACEOF | |
44762 | cat confdefs.h >>conftest.$ac_ext | |
44763 | cat >>conftest.$ac_ext <<_ACEOF | |
44764 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44765 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44766 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44767 | #define $ac_func innocuous_$ac_func | |
44768 | ||
a848cd7e SC |
44769 | /* System header to define __stub macros and hopefully few prototypes, |
44770 | which can conflict with char $ac_func (); below. | |
44771 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44772 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44773 | |
a848cd7e SC |
44774 | #ifdef __STDC__ |
44775 | # include <limits.h> | |
44776 | #else | |
44777 | # include <assert.h> | |
44778 | #endif | |
ac1cb8d3 VS |
44779 | |
44780 | #undef $ac_func | |
44781 | ||
a848cd7e SC |
44782 | /* Override any gcc2 internal prototype to avoid an error. */ |
44783 | #ifdef __cplusplus | |
44784 | extern "C" | |
44785 | { | |
44786 | #endif | |
44787 | /* We use char because int might match the return type of a gcc2 | |
44788 | builtin and then its argument prototype would still apply. */ | |
44789 | char $ac_func (); | |
44790 | /* The GNU C library defines this for functions which it implements | |
44791 | to always fail with ENOSYS. Some functions are actually named | |
44792 | something starting with __ and the normal name is an alias. */ | |
44793 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44794 | choke me | |
44795 | #else | |
44796 | char (*f) () = $ac_func; | |
44797 | #endif | |
44798 | #ifdef __cplusplus | |
44799 | } | |
44800 | #endif | |
44801 | ||
44802 | int | |
44803 | main () | |
44804 | { | |
44805 | return f != $ac_func; | |
44806 | ; | |
44807 | return 0; | |
44808 | } | |
44809 | _ACEOF | |
44810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44812 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44813 | ac_status=$? |
ac1cb8d3 VS |
44814 | grep -v '^ *+' conftest.er1 >conftest.err |
44815 | rm -f conftest.er1 | |
44816 | cat conftest.err >&5 | |
a848cd7e SC |
44817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44818 | (exit $ac_status); } && | |
3565d135 RR |
44819 | { ac_try='test -z "$ac_c_werror_flag" |
44820 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
44821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44822 | (eval $ac_try) 2>&5 | |
44823 | ac_status=$? | |
44824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44825 | (exit $ac_status); }; } && | |
44826 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44828 | (eval $ac_try) 2>&5 | |
44829 | ac_status=$? | |
44830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44831 | (exit $ac_status); }; }; then | |
44832 | eval "$as_ac_var=yes" | |
44833 | else | |
44834 | echo "$as_me: failed program was:" >&5 | |
44835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44836 | ||
44837 | eval "$as_ac_var=no" | |
44838 | fi | |
ac1cb8d3 VS |
44839 | rm -f conftest.err conftest.$ac_objext \ |
44840 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44841 | fi |
44842 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44843 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44844 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44845 | cat >>confdefs.h <<_ACEOF | |
44846 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44847 | _ACEOF | |
44848 | have_floor=1 | |
44849 | fi | |
44850 | done | |
44851 | ||
44852 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
44853 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
44854 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
44855 | echo "$as_me:$LINENO: result: yes" >&5 | |
44856 | echo "${ECHO_T}yes" >&6 | |
44857 | else | |
44858 | echo "$as_me:$LINENO: result: no" >&5 | |
44859 | echo "${ECHO_T}no" >&6 | |
44860 | LIBS="$LIBS -lm" | |
44861 | # use different functions to avoid configure caching | |
44862 | have_sin=0 | |
44863 | have_ceil=0 | |
44864 | ||
44865 | for ac_func in sin | |
44866 | do | |
44867 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44868 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44869 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44870 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44872 | else | |
44873 | cat >conftest.$ac_ext <<_ACEOF | |
44874 | /* confdefs.h. */ | |
44875 | _ACEOF | |
44876 | cat confdefs.h >>conftest.$ac_ext | |
44877 | cat >>conftest.$ac_ext <<_ACEOF | |
44878 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44879 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44880 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44881 | #define $ac_func innocuous_$ac_func | |
44882 | ||
a848cd7e SC |
44883 | /* System header to define __stub macros and hopefully few prototypes, |
44884 | which can conflict with char $ac_func (); below. | |
44885 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44886 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44887 | |
a848cd7e SC |
44888 | #ifdef __STDC__ |
44889 | # include <limits.h> | |
44890 | #else | |
44891 | # include <assert.h> | |
44892 | #endif | |
ac1cb8d3 VS |
44893 | |
44894 | #undef $ac_func | |
44895 | ||
a848cd7e SC |
44896 | /* Override any gcc2 internal prototype to avoid an error. */ |
44897 | #ifdef __cplusplus | |
44898 | extern "C" | |
44899 | { | |
44900 | #endif | |
44901 | /* We use char because int might match the return type of a gcc2 | |
44902 | builtin and then its argument prototype would still apply. */ | |
44903 | char $ac_func (); | |
44904 | /* The GNU C library defines this for functions which it implements | |
44905 | to always fail with ENOSYS. Some functions are actually named | |
44906 | something starting with __ and the normal name is an alias. */ | |
44907 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44908 | choke me | |
44909 | #else | |
44910 | char (*f) () = $ac_func; | |
44911 | #endif | |
44912 | #ifdef __cplusplus | |
44913 | } | |
44914 | #endif | |
44915 | ||
44916 | int | |
44917 | main () | |
44918 | { | |
44919 | return f != $ac_func; | |
44920 | ; | |
44921 | return 0; | |
44922 | } | |
44923 | _ACEOF | |
44924 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44926 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44927 | ac_status=$? |
ac1cb8d3 VS |
44928 | grep -v '^ *+' conftest.er1 >conftest.err |
44929 | rm -f conftest.er1 | |
44930 | cat conftest.err >&5 | |
a848cd7e SC |
44931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44932 | (exit $ac_status); } && | |
3565d135 RR |
44933 | { ac_try='test -z "$ac_c_werror_flag" |
44934 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
44935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44936 | (eval $ac_try) 2>&5 | |
44937 | ac_status=$? | |
44938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44939 | (exit $ac_status); }; } && | |
44940 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44942 | (eval $ac_try) 2>&5 | |
44943 | ac_status=$? | |
44944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44945 | (exit $ac_status); }; }; then | |
44946 | eval "$as_ac_var=yes" | |
44947 | else | |
44948 | echo "$as_me: failed program was:" >&5 | |
44949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44950 | ||
44951 | eval "$as_ac_var=no" | |
44952 | fi | |
ac1cb8d3 VS |
44953 | rm -f conftest.err conftest.$ac_objext \ |
44954 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44955 | fi |
44956 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44957 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44958 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44959 | cat >>confdefs.h <<_ACEOF | |
44960 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44961 | _ACEOF | |
44962 | have_sin=1 | |
44963 | fi | |
44964 | done | |
44965 | ||
44966 | ||
44967 | for ac_func in ceil | |
44968 | do | |
44969 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44970 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44971 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44972 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44974 | else | |
44975 | cat >conftest.$ac_ext <<_ACEOF | |
44976 | /* confdefs.h. */ | |
44977 | _ACEOF | |
44978 | cat confdefs.h >>conftest.$ac_ext | |
44979 | cat >>conftest.$ac_ext <<_ACEOF | |
44980 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44981 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44982 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44983 | #define $ac_func innocuous_$ac_func | |
44984 | ||
a848cd7e SC |
44985 | /* System header to define __stub macros and hopefully few prototypes, |
44986 | which can conflict with char $ac_func (); below. | |
44987 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44988 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44989 | |
a848cd7e SC |
44990 | #ifdef __STDC__ |
44991 | # include <limits.h> | |
44992 | #else | |
44993 | # include <assert.h> | |
44994 | #endif | |
ac1cb8d3 VS |
44995 | |
44996 | #undef $ac_func | |
44997 | ||
a848cd7e SC |
44998 | /* Override any gcc2 internal prototype to avoid an error. */ |
44999 | #ifdef __cplusplus | |
45000 | extern "C" | |
45001 | { | |
45002 | #endif | |
45003 | /* We use char because int might match the return type of a gcc2 | |
45004 | builtin and then its argument prototype would still apply. */ | |
45005 | char $ac_func (); | |
45006 | /* The GNU C library defines this for functions which it implements | |
45007 | to always fail with ENOSYS. Some functions are actually named | |
45008 | something starting with __ and the normal name is an alias. */ | |
45009 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
45010 | choke me | |
45011 | #else | |
45012 | char (*f) () = $ac_func; | |
45013 | #endif | |
45014 | #ifdef __cplusplus | |
45015 | } | |
45016 | #endif | |
45017 | ||
45018 | int | |
45019 | main () | |
45020 | { | |
45021 | return f != $ac_func; | |
45022 | ; | |
45023 | return 0; | |
45024 | } | |
45025 | _ACEOF | |
45026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
45027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 45028 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 45029 | ac_status=$? |
ac1cb8d3 VS |
45030 | grep -v '^ *+' conftest.er1 >conftest.err |
45031 | rm -f conftest.er1 | |
45032 | cat conftest.err >&5 | |
a848cd7e SC |
45033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45034 | (exit $ac_status); } && | |
3565d135 RR |
45035 | { ac_try='test -z "$ac_c_werror_flag" |
45036 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
45037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45038 | (eval $ac_try) 2>&5 | |
45039 | ac_status=$? | |
45040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45041 | (exit $ac_status); }; } && | |
45042 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
45043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45044 | (eval $ac_try) 2>&5 | |
45045 | ac_status=$? | |
45046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45047 | (exit $ac_status); }; }; then | |
45048 | eval "$as_ac_var=yes" | |
45049 | else | |
45050 | echo "$as_me: failed program was:" >&5 | |
45051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45052 | ||
45053 | eval "$as_ac_var=no" | |
45054 | fi | |
ac1cb8d3 VS |
45055 | rm -f conftest.err conftest.$ac_objext \ |
45056 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
45057 | fi |
45058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
45059 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
45060 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45061 | cat >>confdefs.h <<_ACEOF | |
45062 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
45063 | _ACEOF | |
45064 | have_ceil=1 | |
45065 | fi | |
45066 | done | |
45067 | ||
45068 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
45069 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
45070 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
45071 | echo "$as_me:$LINENO: result: yes" >&5 | |
45072 | echo "${ECHO_T}yes" >&6 | |
45073 | else | |
45074 | echo "$as_me:$LINENO: result: no" >&5 | |
45075 | echo "${ECHO_T}no" >&6 | |
45076 | # not sure we should warn the user, crash, etc. | |
45077 | fi | |
45078 | fi | |
45079 | ||
45080 | if test "$wxUSE_GUI" = "yes"; then | |
45081 | ||
45082 | ||
8bce5cda MW |
45083 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
45084 | dynamic erase event exec font image minimal mobile \ | |
45085 | mobile/wxedit mobile/styles propsize render \ | |
45086 | richedit rotate shaped vscroll widgets" | |
a848cd7e SC |
45087 | |
45088 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
45089 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
45090 | fi | |
0b78747f | 45091 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
45092 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
45093 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
45094 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
45095 | fi | |
45096 | fi | |
45097 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
45098 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 45099 | fi |
a848cd7e SC |
45100 | else |
45101 | SAMPLES_SUBDIRS="console" | |
45102 | fi | |
45103 | ||
45104 | ||
48f625bc | 45105 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
45106 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
45107 | elif test "$GCC" = yes ; then | |
45108 | CWARNINGS="-Wall -Wundef" | |
45109 | fi | |
45110 | ||
48f625bc | 45111 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 45112 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
45113 | elif test "$GXX" = yes ; then |
45114 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 45115 | fi |
a848cd7e | 45116 | |
a848cd7e | 45117 | |
5ff751d6 VZ |
45118 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
45119 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
45120 | ||
45121 | ||
c92ad099 | 45122 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
bc6ee4ae | 45123 | -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
45124 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
45125 | $CPPFLAGS ` | |
5ff751d6 | 45126 | |
8aeeb05c | 45127 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 45128 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
9cbac6d1 | 45129 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
5ff751d6 VZ |
45130 | |
45131 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
45132 | ||
a848cd7e | 45133 | |
95986553 DE |
45134 | if test "x$MWCC" = "xyes"; then |
45135 | ||
45136 | CC="$CC -cwd source -I-" | |
45137 | CXX="$CXX -cwd source -I-" | |
45138 | fi | |
45139 | ||
a848cd7e | 45140 | |
0c3c69fc | 45141 | LIBS=`echo $LIBS` |
a848cd7e SC |
45142 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
45143 | EXTRALIBS_XML="$EXPAT_LINK" | |
45144 | EXTRALIBS_HTML="$MSPACK_LINK" | |
45145 | EXTRALIBS_ODBC="$ODBC_LINK" | |
45146 | if test "$wxUSE_GUI" = "yes"; then | |
3565d135 | 45147 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
45148 | fi |
45149 | if test "$wxUSE_OPENGL" = "yes"; then | |
45150 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
45151 | fi | |
45152 | ||
8aeeb05c | 45153 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 45154 | |
5ff751d6 | 45155 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
45156 | |
45157 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 45158 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
45159 | fi |
45160 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 45161 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
45162 | fi |
45163 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 45164 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
45165 | fi |
45166 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 45167 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
45168 | fi |
45169 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 45170 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
45171 | fi |
45172 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 45173 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
45174 | fi |
45175 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 45176 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
45177 | fi |
45178 | ||
45179 | for i in $wxconfig_3rdparty ; do | |
5ff751d6 | 45180 | WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
45181 | done |
45182 | ||
45183 | ||
45184 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
45185 | WXUNIV=1 | |
45186 | else | |
45187 | WXUNIV=0 | |
45188 | fi | |
45189 | ||
45190 | ||
45191 | ||
45192 | ||
45193 | ||
45194 | ||
45195 | ||
45196 | ||
45197 | ||
45198 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
45199 | MONOLITHIC=1 | |
45200 | else | |
45201 | MONOLITHIC=0 | |
45202 | fi | |
45203 | ||
45204 | if test $wxUSE_PLUGINS = "yes" ; then | |
45205 | USE_PLUGINS=1 | |
45206 | else | |
45207 | USE_PLUGINS=0 | |
45208 | fi | |
45209 | ||
45210 | if test $wxUSE_ODBC != "no" ; then | |
45211 | USE_ODBC=1 | |
45212 | else | |
45213 | USE_ODBC=0 | |
45214 | fi | |
45215 | ||
16358932 VZ |
45216 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
45217 | USE_QA=1 | |
45218 | else | |
45219 | USE_QA=0 | |
45220 | fi | |
45221 | ||
a848cd7e SC |
45222 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
45223 | OFFICIAL_BUILD=1 | |
45224 | else | |
45225 | OFFICIAL_BUILD=0 | |
45226 | fi | |
45227 | ||
45228 | ||
45229 | ||
45230 | ||
45231 | ||
45232 | ||
45233 | ||
45234 | ||
45235 | ||
45236 | ||
45237 | ||
45238 | ||
45239 | ||
45240 | ||
45241 | ||
45242 | ||
45243 | ||
45244 | ||
45245 | ||
ceec2216 | 45246 | |
d1c38808 | 45247 | |
3565d135 | 45248 | |
a848cd7e SC |
45249 | |
45250 | ||
45251 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
45252 | ||
45253 | ||
45254 | ||
45255 | ||
45256 | ||
45257 | ||
45258 | ||
45259 | ||
4d4ff94c VZ |
45260 | case "$TOOLKIT" in |
45261 | GTK) | |
45262 | TOOLKIT_USER="GTK+" | |
45263 | if test "$WXGTK20" = 1; then | |
45264 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
45265 | fi | |
9a8f0513 | 45266 | ;; |
4d4ff94c VZ |
45267 | |
45268 | *) | |
45269 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 45270 | ;; |
4d4ff94c | 45271 | esac |
a848cd7e | 45272 | |
fb00f58d JS |
45273 | if test "$wxUSE_WINE" = "yes"; then |
45274 | BAKEFILE_FORCE_PLATFORM=win32 | |
45275 | fi | |
45276 | ||
9a8f0513 | 45277 | |
1e9e8aba DE |
45278 | |
45279 | ||
a848cd7e SC |
45280 | if test "x$BAKEFILE_HOST" = "x"; then |
45281 | BAKEFILE_HOST="${host}" | |
45282 | fi | |
45283 | ||
45284 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
45285 | ||
45286 | if test -n "$ac_tool_prefix"; then | |
45287 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
45288 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
45289 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45291 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
45292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45293 | else | |
45294 | if test -n "$RANLIB"; then | |
45295 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
45296 | else | |
45297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45298 | for as_dir in $PATH | |
45299 | do | |
45300 | IFS=$as_save_IFS | |
45301 | test -z "$as_dir" && as_dir=. | |
45302 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45303 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45304 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
45305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45306 | break 2 | |
45307 | fi | |
45308 | done | |
45309 | done | |
45310 | ||
45311 | fi | |
45312 | fi | |
45313 | RANLIB=$ac_cv_prog_RANLIB | |
45314 | if test -n "$RANLIB"; then | |
45315 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
45316 | echo "${ECHO_T}$RANLIB" >&6 | |
45317 | else | |
45318 | echo "$as_me:$LINENO: result: no" >&5 | |
45319 | echo "${ECHO_T}no" >&6 | |
45320 | fi | |
45321 | ||
45322 | fi | |
45323 | if test -z "$ac_cv_prog_RANLIB"; then | |
45324 | ac_ct_RANLIB=$RANLIB | |
45325 | # Extract the first word of "ranlib", so it can be a program name with args. | |
45326 | set dummy ranlib; ac_word=$2 | |
45327 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45329 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
45330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45331 | else | |
45332 | if test -n "$ac_ct_RANLIB"; then | |
45333 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
45334 | else | |
45335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45336 | for as_dir in $PATH | |
45337 | do | |
45338 | IFS=$as_save_IFS | |
45339 | test -z "$as_dir" && as_dir=. | |
45340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45341 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45342 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
45343 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45344 | break 2 | |
45345 | fi | |
45346 | done | |
45347 | done | |
45348 | ||
45349 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
45350 | fi | |
45351 | fi | |
45352 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
45353 | if test -n "$ac_ct_RANLIB"; then | |
45354 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
45355 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
45356 | else | |
45357 | echo "$as_me:$LINENO: result: no" >&5 | |
45358 | echo "${ECHO_T}no" >&6 | |
45359 | fi | |
45360 | ||
45361 | RANLIB=$ac_ct_RANLIB | |
45362 | else | |
45363 | RANLIB="$ac_cv_prog_RANLIB" | |
45364 | fi | |
45365 | ||
45366 | # Find a good install program. We prefer a C program (faster), | |
45367 | # so one script is as good as another. But avoid the broken or | |
45368 | # incompatible versions: | |
45369 | # SysV /etc/install, /usr/sbin/install | |
45370 | # SunOS /usr/etc/install | |
45371 | # IRIX /sbin/install | |
45372 | # AIX /bin/install | |
45373 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
45374 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
45375 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
45376 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 45377 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
45378 | # ./install, which can be erroneously created by make from ./install.sh. |
45379 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
45380 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
45381 | if test -z "$INSTALL"; then | |
45382 | if test "${ac_cv_path_install+set}" = set; then | |
45383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45384 | else | |
45385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45386 | for as_dir in $PATH | |
45387 | do | |
45388 | IFS=$as_save_IFS | |
45389 | test -z "$as_dir" && as_dir=. | |
45390 | # Account for people who put trailing slashes in PATH elements. | |
45391 | case $as_dir/ in | |
45392 | ./ | .// | /cC/* | \ | |
45393 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 45394 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
45395 | /usr/ucb/* ) ;; |
45396 | *) | |
45397 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
45398 | # Don't use installbsd from OSF since it installs stuff as root | |
45399 | # by default. | |
45400 | for ac_prog in ginstall scoinst install; do | |
45401 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
45402 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
45403 | if test $ac_prog = install && | |
45404 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45405 | # AIX install. It has an incompatible calling convention. | |
45406 | : | |
45407 | elif test $ac_prog = install && | |
45408 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45409 | # program-specific install script used by HP pwplus--don't use. | |
45410 | : | |
45411 | else | |
45412 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
45413 | break 3 | |
45414 | fi | |
45415 | fi | |
a848cd7e SC |
45416 | done |
45417 | done | |
45418 | ;; | |
45419 | esac | |
45420 | done | |
45421 | ||
45422 | ||
45423 | fi | |
45424 | if test "${ac_cv_path_install+set}" = set; then | |
45425 | INSTALL=$ac_cv_path_install | |
45426 | else | |
45427 | # As a last resort, use the slow shell script. We don't cache a | |
45428 | # path for INSTALL within a source directory, because that will | |
45429 | # break other packages using the cache if that directory is | |
45430 | # removed, or if the path is relative. | |
45431 | INSTALL=$ac_install_sh | |
45432 | fi | |
45433 | fi | |
45434 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
45435 | echo "${ECHO_T}$INSTALL" >&6 | |
45436 | ||
45437 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
45438 | # It thinks the first close brace ends the variable substitution. | |
45439 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
45440 | ||
45441 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
45442 | ||
45443 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
45444 | ||
45445 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
45446 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
45447 | LN_S=$as_ln_s | |
45448 | if test "$LN_S" = "ln -s"; then | |
45449 | echo "$as_me:$LINENO: result: yes" >&5 | |
45450 | echo "${ECHO_T}yes" >&6 | |
45451 | else | |
45452 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
45453 | echo "${ECHO_T}no, using $LN_S" >&6 | |
45454 | fi | |
45455 | ||
45456 | ||
45457 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
45458 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 45459 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
45460 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
45461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45462 | else | |
45463 | cat >conftest.make <<\_ACEOF | |
45464 | all: | |
45465 | @echo 'ac_maketemp="$(MAKE)"' | |
45466 | _ACEOF | |
45467 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
45468 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
45469 | if test -n "$ac_maketemp"; then | |
45470 | eval ac_cv_prog_make_${ac_make}_set=yes | |
45471 | else | |
45472 | eval ac_cv_prog_make_${ac_make}_set=no | |
45473 | fi | |
45474 | rm -f conftest.make | |
45475 | fi | |
45476 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
45477 | echo "$as_me:$LINENO: result: yes" >&5 | |
45478 | echo "${ECHO_T}yes" >&6 | |
45479 | SET_MAKE= | |
45480 | else | |
45481 | echo "$as_me:$LINENO: result: no" >&5 | |
45482 | echo "${ECHO_T}no" >&6 | |
45483 | SET_MAKE="MAKE=${MAKE-make}" | |
45484 | fi | |
45485 | ||
45486 | ||
45487 | ||
45488 | if test -n "$ac_tool_prefix"; then | |
45489 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
45490 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
45491 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45493 | if test "${ac_cv_prog_AR+set}" = set; then | |
45494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45495 | else | |
45496 | if test -n "$AR"; then | |
45497 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
45498 | else | |
45499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45500 | for as_dir in $PATH | |
45501 | do | |
45502 | IFS=$as_save_IFS | |
45503 | test -z "$as_dir" && as_dir=. | |
45504 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45505 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45506 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
45507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45508 | break 2 | |
45509 | fi | |
45510 | done | |
45511 | done | |
45512 | ||
45513 | fi | |
45514 | fi | |
45515 | AR=$ac_cv_prog_AR | |
45516 | if test -n "$AR"; then | |
45517 | echo "$as_me:$LINENO: result: $AR" >&5 | |
45518 | echo "${ECHO_T}$AR" >&6 | |
45519 | else | |
45520 | echo "$as_me:$LINENO: result: no" >&5 | |
45521 | echo "${ECHO_T}no" >&6 | |
45522 | fi | |
45523 | ||
45524 | fi | |
45525 | if test -z "$ac_cv_prog_AR"; then | |
45526 | ac_ct_AR=$AR | |
45527 | # Extract the first word of "ar", so it can be a program name with args. | |
45528 | set dummy ar; ac_word=$2 | |
45529 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45531 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
45532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45533 | else | |
45534 | if test -n "$ac_ct_AR"; then | |
45535 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
45536 | else | |
45537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45538 | for as_dir in $PATH | |
45539 | do | |
45540 | IFS=$as_save_IFS | |
45541 | test -z "$as_dir" && as_dir=. | |
45542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45544 | ac_cv_prog_ac_ct_AR="ar" | |
45545 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45546 | break 2 | |
45547 | fi | |
45548 | done | |
45549 | done | |
45550 | ||
45551 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
45552 | fi | |
45553 | fi | |
45554 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
45555 | if test -n "$ac_ct_AR"; then | |
45556 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
45557 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
45558 | else | |
45559 | echo "$as_me:$LINENO: result: no" >&5 | |
45560 | echo "${ECHO_T}no" >&6 | |
45561 | fi | |
45562 | ||
45563 | AR=$ac_ct_AR | |
45564 | else | |
45565 | AR="$ac_cv_prog_AR" | |
45566 | fi | |
45567 | ||
45568 | if test -n "$ac_tool_prefix"; then | |
45569 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
45570 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
45571 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45573 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
45574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45575 | else | |
45576 | if test -n "$STRIP"; then | |
45577 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
45578 | else | |
45579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45580 | for as_dir in $PATH | |
45581 | do | |
45582 | IFS=$as_save_IFS | |
45583 | test -z "$as_dir" && as_dir=. | |
45584 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45585 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45586 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
45587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45588 | break 2 | |
45589 | fi | |
45590 | done | |
45591 | done | |
45592 | ||
45593 | fi | |
45594 | fi | |
45595 | STRIP=$ac_cv_prog_STRIP | |
45596 | if test -n "$STRIP"; then | |
45597 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
45598 | echo "${ECHO_T}$STRIP" >&6 | |
45599 | else | |
45600 | echo "$as_me:$LINENO: result: no" >&5 | |
45601 | echo "${ECHO_T}no" >&6 | |
45602 | fi | |
45603 | ||
45604 | fi | |
45605 | if test -z "$ac_cv_prog_STRIP"; then | |
45606 | ac_ct_STRIP=$STRIP | |
45607 | # Extract the first word of "strip", so it can be a program name with args. | |
45608 | set dummy strip; ac_word=$2 | |
45609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45611 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
45612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45613 | else | |
45614 | if test -n "$ac_ct_STRIP"; then | |
45615 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
45616 | else | |
45617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45618 | for as_dir in $PATH | |
45619 | do | |
45620 | IFS=$as_save_IFS | |
45621 | test -z "$as_dir" && as_dir=. | |
45622 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45623 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45624 | ac_cv_prog_ac_ct_STRIP="strip" | |
45625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45626 | break 2 | |
45627 | fi | |
45628 | done | |
45629 | done | |
45630 | ||
45631 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
45632 | fi | |
45633 | fi | |
45634 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
45635 | if test -n "$ac_ct_STRIP"; then | |
45636 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
45637 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
45638 | else | |
45639 | echo "$as_me:$LINENO: result: no" >&5 | |
45640 | echo "${ECHO_T}no" >&6 | |
45641 | fi | |
45642 | ||
45643 | STRIP=$ac_ct_STRIP | |
45644 | else | |
45645 | STRIP="$ac_cv_prog_STRIP" | |
45646 | fi | |
45647 | ||
45648 | if test -n "$ac_tool_prefix"; then | |
45649 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
45650 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
45651 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45653 | if test "${ac_cv_prog_NM+set}" = set; then | |
45654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45655 | else | |
45656 | if test -n "$NM"; then | |
45657 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
45658 | else | |
45659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45660 | for as_dir in $PATH | |
45661 | do | |
45662 | IFS=$as_save_IFS | |
45663 | test -z "$as_dir" && as_dir=. | |
45664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45665 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45666 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
45667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45668 | break 2 | |
45669 | fi | |
45670 | done | |
45671 | done | |
45672 | ||
45673 | fi | |
45674 | fi | |
45675 | NM=$ac_cv_prog_NM | |
45676 | if test -n "$NM"; then | |
45677 | echo "$as_me:$LINENO: result: $NM" >&5 | |
45678 | echo "${ECHO_T}$NM" >&6 | |
45679 | else | |
45680 | echo "$as_me:$LINENO: result: no" >&5 | |
45681 | echo "${ECHO_T}no" >&6 | |
45682 | fi | |
45683 | ||
45684 | fi | |
45685 | if test -z "$ac_cv_prog_NM"; then | |
45686 | ac_ct_NM=$NM | |
45687 | # Extract the first word of "nm", so it can be a program name with args. | |
45688 | set dummy nm; ac_word=$2 | |
45689 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45691 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
45692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45693 | else | |
45694 | if test -n "$ac_ct_NM"; then | |
45695 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
45696 | else | |
45697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45698 | for as_dir in $PATH | |
45699 | do | |
45700 | IFS=$as_save_IFS | |
45701 | test -z "$as_dir" && as_dir=. | |
45702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45703 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45704 | ac_cv_prog_ac_ct_NM="nm" | |
45705 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45706 | break 2 | |
45707 | fi | |
45708 | done | |
45709 | done | |
45710 | ||
45711 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
45712 | fi | |
45713 | fi | |
45714 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
45715 | if test -n "$ac_ct_NM"; then | |
45716 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
45717 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
45718 | else | |
45719 | echo "$as_me:$LINENO: result: no" >&5 | |
45720 | echo "${ECHO_T}no" >&6 | |
45721 | fi | |
45722 | ||
45723 | NM=$ac_ct_NM | |
45724 | else | |
45725 | NM="$ac_cv_prog_NM" | |
45726 | fi | |
45727 | ||
45728 | ||
45729 | case ${BAKEFILE_HOST} in | |
45730 | *-hp-hpux* ) | |
1e9e8aba | 45731 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
45732 | ;; |
45733 | *) INSTALL_DIR="$INSTALL -d" | |
45734 | ;; | |
45735 | esac | |
45736 | ||
45737 | ||
45738 | LDFLAGS_GUI= | |
45739 | case ${BAKEFILE_HOST} in | |
45740 | *-*-cygwin* | *-*-mingw32* ) | |
45741 | LDFLAGS_GUI="-mwindows" | |
45742 | esac | |
45743 | ||
45744 | ||
45745 | fi | |
45746 | ||
45747 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
45748 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
45749 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
45750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45751 | else | |
45752 | ||
45753 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
45754 | egrep -s GNU > /dev/null); then | |
45755 | bakefile_cv_prog_makeisgnu="yes" | |
45756 | else | |
45757 | bakefile_cv_prog_makeisgnu="no" | |
45758 | fi | |
45759 | ||
45760 | fi | |
45761 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
45762 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
45763 | ||
45764 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
45765 | IF_GNU_MAKE="" | |
45766 | else | |
45767 | IF_GNU_MAKE="#" | |
45768 | fi | |
45769 | ||
45770 | ||
45771 | ||
45772 | PLATFORM_UNIX=0 | |
45773 | PLATFORM_WIN32=0 | |
45774 | PLATFORM_MSDOS=0 | |
45775 | PLATFORM_MAC=0 | |
1e9e8aba | 45776 | PLATFORM_MACOS=0 |
a848cd7e SC |
45777 | PLATFORM_MACOSX=0 |
45778 | PLATFORM_OS2=0 | |
1e9e8aba | 45779 | PLATFORM_BEOS=0 |
a848cd7e SC |
45780 | |
45781 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
45782 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 45783 | *-*-mingw32* ) |
a848cd7e SC |
45784 | PLATFORM_WIN32=1 |
45785 | ;; | |
45786 | *-pc-msdosdjgpp ) | |
45787 | PLATFORM_MSDOS=1 | |
45788 | ;; | |
45789 | *-pc-os2_emx | *-pc-os2-emx ) | |
45790 | PLATFORM_OS2=1 | |
45791 | ;; | |
47bd5406 | 45792 | *-*-darwin* ) |
a848cd7e SC |
45793 | PLATFORM_MAC=1 |
45794 | PLATFORM_MACOSX=1 | |
45795 | ;; | |
1e9e8aba DE |
45796 | *-*-beos* ) |
45797 | PLATFORM_BEOS=1 | |
45798 | ;; | |
45799 | powerpc-apple-macos* ) | |
45800 | PLATFORM_MAC=1 | |
45801 | PLATFORM_MACOS=1 | |
45802 | ;; | |
a848cd7e SC |
45803 | * ) |
45804 | PLATFORM_UNIX=1 | |
45805 | ;; | |
45806 | esac | |
45807 | else | |
45808 | case "$BAKEFILE_FORCE_PLATFORM" in | |
45809 | win32 ) | |
45810 | PLATFORM_WIN32=1 | |
45811 | ;; | |
45812 | msdos ) | |
45813 | PLATFORM_MSDOS=1 | |
45814 | ;; | |
45815 | os2 ) | |
45816 | PLATFORM_OS2=1 | |
45817 | ;; | |
45818 | darwin ) | |
45819 | PLATFORM_MAC=1 | |
45820 | PLATFORM_MACOSX=1 | |
45821 | ;; | |
45822 | unix ) | |
45823 | PLATFORM_UNIX=1 | |
45824 | ;; | |
1e9e8aba DE |
45825 | beos ) |
45826 | PLATFORM_BEOS=1 | |
45827 | ;; | |
a848cd7e SC |
45828 | * ) |
45829 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
45830 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
45831 | { (exit 1); exit 1; }; } | |
45832 | ;; | |
45833 | esac | |
45834 | fi | |
45835 | ||
45836 | ||
45837 | ||
45838 | ||
45839 | ||
45840 | ||
45841 | ||
45842 | ||
45843 | ||
1e9e8aba DE |
45844 | |
45845 | ||
a848cd7e SC |
45846 | # Check whether --enable-omf or --disable-omf was given. |
45847 | if test "${enable_omf+set}" = set; then | |
45848 | enableval="$enable_omf" | |
45849 | bk_os2_use_omf="$enableval" | |
45850 | fi; | |
45851 | ||
45852 | case "${BAKEFILE_HOST}" in | |
45853 | *-*-darwin* ) | |
47bd5406 VZ |
45854 | if test "x$GCC" = "xyes"; then |
45855 | CFLAGS="$CFLAGS -fno-common" | |
45856 | CXXFLAGS="$CXXFLAGS -fno-common" | |
45857 | fi | |
45858 | if test "x$XLCC" = "xyes"; then | |
45859 | CFLAGS="$CFLAGS -qnocommon" | |
45860 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
45861 | fi | |
a848cd7e SC |
45862 | ;; |
45863 | ||
45864 | *-pc-os2_emx | *-pc-os2-emx ) | |
45865 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
45866 | AR=emxomfar | |
45867 | RANLIB=: | |
45868 | LDFLAGS="-Zomf $LDFLAGS" | |
45869 | CFLAGS="-Zomf $CFLAGS" | |
45870 | CXXFLAGS="-Zomf $CXXFLAGS" | |
45871 | OS2_LIBEXT="lib" | |
45872 | else | |
45873 | OS2_LIBEXT="a" | |
45874 | fi | |
45875 | ;; | |
1e9e8aba DE |
45876 | |
45877 | i*86-*-beos* ) | |
45878 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
45879 | ;; | |
a848cd7e SC |
45880 | esac |
45881 | ||
45882 | ||
45883 | SO_SUFFIX="so" | |
45884 | SO_SUFFIX_MODULE="so" | |
45885 | EXEEXT="" | |
45886 | LIBPREFIX="lib" | |
45887 | LIBEXT=".a" | |
45888 | DLLPREFIX="lib" | |
45889 | DLLPREFIX_MODULE="" | |
45890 | DLLIMP_SUFFIX="" | |
810b94f0 | 45891 | dlldir="$libdir" |
a848cd7e SC |
45892 | |
45893 | case "${BAKEFILE_HOST}" in | |
45894 | *-hp-hpux* ) | |
45895 | SO_SUFFIX="sl" | |
45896 | SO_SUFFIX_MODULE="sl" | |
45897 | ;; | |
45898 | *-*-aix* ) | |
45899 | SO_SUFFIX="a" | |
45900 | SO_SUFFIX_MODULE="a" | |
45901 | ;; | |
810b94f0 MW |
45902 | *-*-cygwin* ) |
45903 | SO_SUFFIX="dll" | |
45904 | SO_SUFFIX_MODULE="dll" | |
45905 | DLLIMP_SUFFIX="dll.a" | |
45906 | EXEEXT=".exe" | |
45907 | DLLPREFIX="cyg" | |
45908 | dlldir="$bindir" | |
45909 | ;; | |
45910 | *-*-mingw32* ) | |
a848cd7e SC |
45911 | SO_SUFFIX="dll" |
45912 | SO_SUFFIX_MODULE="dll" | |
45913 | DLLIMP_SUFFIX="dll.a" | |
45914 | EXEEXT=".exe" | |
45915 | DLLPREFIX="" | |
810b94f0 | 45916 | dlldir="$bindir" |
a848cd7e SC |
45917 | ;; |
45918 | *-pc-msdosdjgpp ) | |
45919 | EXEEXT=".exe" | |
45920 | DLLPREFIX="" | |
810b94f0 | 45921 | dlldir="$bindir" |
a848cd7e SC |
45922 | ;; |
45923 | *-pc-os2_emx | *-pc-os2-emx ) | |
45924 | SO_SUFFIX="dll" | |
45925 | SO_SUFFIX_MODULE="dll" | |
45926 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
45927 | EXEEXT=".exe" | |
45928 | DLLPREFIX="" | |
45929 | LIBPREFIX="" | |
45930 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 45931 | dlldir="$bindir" |
a848cd7e | 45932 | ;; |
47bd5406 | 45933 | *-*-darwin* ) |
a848cd7e SC |
45934 | SO_SUFFIX="dylib" |
45935 | SO_SUFFIX_MODULE="bundle" | |
45936 | ;; | |
45937 | esac | |
45938 | ||
45939 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
45940 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
45941 | fi | |
45942 | ||
45943 | ||
45944 | ||
45945 | ||
45946 | ||
45947 | ||
45948 | ||
45949 | ||
45950 | ||
45951 | ||
45952 | ||
810b94f0 | 45953 | |
1e9e8aba DE |
45954 | PIC_FLAG="" |
45955 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
45956 | PIC_FLAG="-fPIC" |
45957 | fi | |
45958 | ||
1e9e8aba DE |
45959 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
45960 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 45961 | WINDOWS_IMPLIB=0 |
1e9e8aba | 45962 | |
a848cd7e SC |
45963 | case "${BAKEFILE_HOST}" in |
45964 | *-hp-hpux* ) | |
1e9e8aba | 45965 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
45966 | LDFLAGS="$LDFLAGS -L/usr/lib" |
45967 | ||
45968 | SHARED_LD_CC="${CC} -b -o" | |
45969 | SHARED_LD_CXX="${CXX} -b -o" | |
45970 | PIC_FLAG="+Z" | |
45971 | fi | |
45972 | ;; | |
45973 | ||
45974 | *-*-linux* ) | |
45975 | if test "x$GCC" != "xyes"; then | |
45976 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
45977 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
45978 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
45979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45980 | else | |
45981 | ||
45982 | cat >conftest.$ac_ext <<_ACEOF | |
45983 | /* confdefs.h. */ | |
45984 | _ACEOF | |
45985 | cat confdefs.h >>conftest.$ac_ext | |
45986 | cat >>conftest.$ac_ext <<_ACEOF | |
45987 | /* end confdefs.h. */ | |
45988 | ||
45989 | int | |
45990 | main () | |
45991 | { | |
45992 | ||
45993 | #ifndef __INTEL_COMPILER | |
45994 | #error Not icc | |
45995 | #endif | |
45996 | ||
45997 | ; | |
45998 | return 0; | |
45999 | } | |
46000 | _ACEOF | |
46001 | rm -f conftest.$ac_objext | |
46002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 46003 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 46004 | ac_status=$? |
ac1cb8d3 VS |
46005 | grep -v '^ *+' conftest.er1 >conftest.err |
46006 | rm -f conftest.er1 | |
46007 | cat conftest.err >&5 | |
a848cd7e SC |
46008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
46009 | (exit $ac_status); } && | |
3565d135 RR |
46010 | { ac_try='test -z "$ac_c_werror_flag" |
46011 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
46012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46013 | (eval $ac_try) 2>&5 | |
46014 | ac_status=$? | |
46015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46016 | (exit $ac_status); }; } && | |
46017 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
46018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46019 | (eval $ac_try) 2>&5 | |
46020 | ac_status=$? | |
46021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46022 | (exit $ac_status); }; }; then | |
46023 | bakefile_cv_prog_icc=yes | |
46024 | else | |
46025 | echo "$as_me: failed program was:" >&5 | |
46026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46027 | ||
46028 | bakefile_cv_prog_icc=no | |
46029 | ||
46030 | fi | |
ac1cb8d3 | 46031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
46032 | |
46033 | fi | |
46034 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
46035 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
46036 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
46037 | PIC_FLAG="-KPIC" | |
46038 | fi | |
46039 | fi | |
46040 | ;; | |
46041 | ||
46042 | *-*-solaris2* ) | |
46043 | if test "x$GCC" != xyes ; then | |
46044 | SHARED_LD_CC="${CC} -G -o" | |
46045 | SHARED_LD_CXX="${CXX} -G -o" | |
46046 | PIC_FLAG="-KPIC" | |
46047 | fi | |
46048 | ;; | |
46049 | ||
46050 | *-*-darwin* ) | |
46051 | ||
473276a9 VS |
46052 | D='$' |
46053 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
46054 | #!/bin/sh |
46055 | #----------------------------------------------------------------------------- | |
46056 | #-- Name: distrib/mac/shared-ld-sh | |
46057 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
46058 | #-- Author: Gilles Depeyrot | |
46059 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
46060 | #-- Licence: any use permitted | |
46061 | #----------------------------------------------------------------------------- | |
46062 | ||
46063 | verbose=0 | |
46064 | args="" | |
46065 | objects="" | |
46066 | linking_flag="-dynamiclib" | |
810b94f0 | 46067 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 46068 | |
473276a9 VS |
46069 | while test ${D}# -gt 0; do |
46070 | case ${D}1 in | |
a848cd7e SC |
46071 | |
46072 | -v) | |
46073 | verbose=1 | |
46074 | ;; | |
46075 | ||
46076 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
46077 | # collect these options and values | |
473276a9 | 46078 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
46079 | shift |
46080 | ;; | |
46081 | ||
810b94f0 MW |
46082 | -s|-Wl,*) |
46083 | # collect these load args | |
46084 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 46085 | ;; |
810b94f0 MW |
46086 | |
46087 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 46088 | # collect these options |
473276a9 | 46089 | args="${D}{args} ${D}1" |
a848cd7e SC |
46090 | ;; |
46091 | ||
46092 | -dynamiclib|-bundle) | |
473276a9 | 46093 | linking_flag="${D}1" |
a848cd7e SC |
46094 | ;; |
46095 | ||
46096 | -*) | |
473276a9 | 46097 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
46098 | exit 1 |
46099 | ;; | |
46100 | ||
46101 | *.o | *.a | *.dylib) | |
46102 | # collect object files | |
473276a9 | 46103 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
46104 | ;; |
46105 | ||
46106 | *) | |
473276a9 | 46107 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
46108 | exit 1 |
46109 | ;; | |
46110 | ||
46111 | esac | |
46112 | shift | |
46113 | done | |
46114 | ||
810b94f0 MW |
46115 | status=0 |
46116 | ||
a848cd7e SC |
46117 | # |
46118 | # Link one module containing all the others | |
46119 | # | |
473276a9 | 46120 | if test ${D}{verbose} = 1; then |
810b94f0 | 46121 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 46122 | fi |
810b94f0 | 46123 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 46124 | status=${D}? |
a848cd7e SC |
46125 | |
46126 | # | |
810b94f0 MW |
46127 | # Link the shared library from the single module created, but only if the |
46128 | # previous command didn't fail: | |
a848cd7e | 46129 | # |
810b94f0 MW |
46130 | if test ${D}{status} = 0; then |
46131 | if test ${D}{verbose} = 1; then | |
46132 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
46133 | fi | |
46134 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
46135 | status=${D}? | |
a848cd7e SC |
46136 | fi |
46137 | ||
46138 | # | |
46139 | # Remove intermediate module | |
46140 | # | |
473276a9 | 46141 | rm -f master.${D}${D}.o |
a848cd7e | 46142 | |
810b94f0 | 46143 | exit ${D}status |
a848cd7e | 46144 | EOF |
473276a9 | 46145 | |
583d6b4b VZ |
46146 | chmod +x shared-ld-sh |
46147 | ||
46148 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
46149 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
46150 | ||
46151 | ||
46152 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
46153 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
46154 | if test "${bakefile_cv_gcc31+set}" = set; then | |
46155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46156 | else | |
46157 | ||
46158 | cat >conftest.$ac_ext <<_ACEOF | |
46159 | /* confdefs.h. */ | |
46160 | _ACEOF | |
46161 | cat confdefs.h >>conftest.$ac_ext | |
46162 | cat >>conftest.$ac_ext <<_ACEOF | |
46163 | /* end confdefs.h. */ | |
46164 | ||
46165 | int | |
46166 | main () | |
46167 | { | |
46168 | ||
46169 | #if (__GNUC__ < 3) || \ | |
46170 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
46171 | #error old gcc | |
46172 | #endif | |
a848cd7e | 46173 | |
583d6b4b VZ |
46174 | ; |
46175 | return 0; | |
46176 | } | |
46177 | _ACEOF | |
46178 | rm -f conftest.$ac_objext | |
46179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
46180 | (eval $ac_compile) 2>conftest.er1 | |
46181 | ac_status=$? | |
46182 | grep -v '^ *+' conftest.er1 >conftest.err | |
46183 | rm -f conftest.er1 | |
46184 | cat conftest.err >&5 | |
46185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46186 | (exit $ac_status); } && | |
3565d135 RR |
46187 | { ac_try='test -z "$ac_c_werror_flag" |
46188 | || test ! -s conftest.err' | |
583d6b4b VZ |
46189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46190 | (eval $ac_try) 2>&5 | |
46191 | ac_status=$? | |
46192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46193 | (exit $ac_status); }; } && | |
46194 | { ac_try='test -s conftest.$ac_objext' | |
46195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
46196 | (eval $ac_try) 2>&5 | |
46197 | ac_status=$? | |
46198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46199 | (exit $ac_status); }; }; then | |
46200 | ||
46201 | bakefile_cv_gcc31=yes | |
46202 | ||
46203 | else | |
46204 | echo "$as_me: failed program was:" >&5 | |
46205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46206 | ||
46207 | ||
46208 | bakefile_cv_gcc31=no | |
46209 | ||
46210 | ||
46211 | fi | |
46212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
46213 | ||
46214 | fi | |
46215 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 | |
46216 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
46217 | if test "$bakefile_cv_gcc31" = "no"; then | |
a848cd7e | 46218 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 46219 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
46220 | else |
46221 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 46222 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
46223 | fi |
46224 | ||
47bd5406 VZ |
46225 | if test "x$GCC" == "xyes"; then |
46226 | PIC_FLAG="-dynamic -fPIC" | |
46227 | fi | |
46228 | if test "x$XLCC" = "xyes"; then | |
46229 | PIC_FLAG="-dynamic -DPIC" | |
46230 | fi | |
a848cd7e SC |
46231 | ;; |
46232 | ||
46233 | *-*-aix* ) | |
f6b50c59 | 46234 | if test "x$GCC" = "xyes"; then |
583d6b4b | 46235 | PIC_FLAG="" |
f6b50c59 | 46236 | |
583d6b4b VZ |
46237 | case "${BAKEFILE_HOST}" in |
46238 | *-*-aix5* ) | |
46239 | LD_EXPFULL="-Wl,-bexpfull" | |
46240 | ;; | |
46241 | esac | |
f6b50c59 | 46242 | |
583d6b4b VZ |
46243 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
46244 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
46245 | else | |
46246 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e SC |
46247 | set dummy makeC++SharedLib; ac_word=$2 |
46248 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46249 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46250 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
46251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46252 | else | |
46253 | if test -n "$AIX_CXX_LD"; then | |
46254 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
46255 | else | |
46256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46257 | for as_dir in $PATH | |
46258 | do | |
46259 | IFS=$as_save_IFS | |
46260 | test -z "$as_dir" && as_dir=. | |
46261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46262 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46263 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
46264 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46265 | break 2 | |
46266 | fi | |
46267 | done | |
46268 | done | |
46269 | ||
46270 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
46271 | fi | |
46272 | fi | |
46273 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
46274 | if test -n "$AIX_CXX_LD"; then | |
46275 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
46276 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
46277 | else | |
46278 | echo "$as_me:$LINENO: result: no" >&5 | |
46279 | echo "${ECHO_T}no" >&6 | |
46280 | fi | |
46281 | ||
f6b50c59 | 46282 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
46283 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
46284 | fi | |
46285 | ;; | |
46286 | ||
46287 | *-*-beos* ) | |
1e9e8aba DE |
46288 | SHARED_LD_CC="${LD} -nostart -o" |
46289 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
46290 | ;; |
46291 | ||
46292 | *-*-irix* ) | |
46293 | if test "x$GCC" != "xyes"; then | |
46294 | PIC_FLAG="-KPIC" | |
46295 | fi | |
46296 | ;; | |
46297 | ||
46298 | *-*-cygwin* | *-*-mingw32* ) | |
46299 | PIC_FLAG="" | |
1e9e8aba DE |
46300 | SHARED_LD_CC="\$(CC) -shared -o" |
46301 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 46302 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
46303 | ;; |
46304 | ||
46305 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
46306 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
46307 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 46308 | PIC_FLAG="" |
473276a9 VS |
46309 | |
46310 | D='$' | |
46311 | cat <<EOF >dllar.sh | |
46312 | #!/bin/sh | |
46313 | # | |
46314 | # dllar - a tool to build both a .dll and an .a file | |
46315 | # from a set of object (.o) files for EMX/OS2. | |
46316 | # | |
46317 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
46318 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
46319 | # | |
46320 | # This script will accept a set of files on the command line. | |
46321 | # All the public symbols from the .o files will be exported into | |
46322 | # a .DEF file, then linker will be run (through gcc) against them to | |
46323 | # build a shared library consisting of all given .o files. All libraries | |
46324 | # (.a) will be first decompressed into component .o files then act as | |
46325 | # described above. You can optionally give a description (-d "description") | |
46326 | # which will be put into .DLL. To see the list of accepted options (as well | |
46327 | # as command-line format) simply run this program without options. The .DLL | |
46328 | # is built to be imported by name (there is no guarantee that new versions | |
46329 | # of the library you build will have same ordinals for same symbols). | |
46330 | # | |
46331 | # dllar is free software; you can redistribute it and/or modify | |
46332 | # it under the terms of the GNU General Public License as published by | |
46333 | # the Free Software Foundation; either version 2, or (at your option) | |
46334 | # any later version. | |
46335 | # | |
46336 | # dllar is distributed in the hope that it will be useful, | |
46337 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
46338 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
46339 | # GNU General Public License for more details. | |
46340 | # | |
46341 | # You should have received a copy of the GNU General Public License | |
46342 | # along with dllar; see the file COPYING. If not, write to the Free | |
46343 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
46344 | # 02111-1307, USA. | |
46345 | ||
46346 | # To successfuly run this program you will need: | |
46347 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
46348 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
46349 | # - gcc | |
46350 | # (used to build the .dll) | |
46351 | # - emxexp | |
46352 | # (used to create .def file from .o files) | |
46353 | # - emximp | |
46354 | # (used to create .a file from .def file) | |
46355 | # - GNU text utilites (cat, sort, uniq) | |
46356 | # used to process emxexp output | |
46357 | # - GNU file utilities (mv, rm) | |
46358 | # - GNU sed | |
46359 | # - lxlite (optional, see flag below) | |
46360 | # (used for general .dll cleanup) | |
46361 | # | |
46362 | ||
46363 | flag_USE_LXLITE=1; | |
46364 | ||
46365 | # | |
46366 | # helper functions | |
46367 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
46368 | # second argument (suffix to remove) is given | |
46369 | basnam(){ | |
46370 | case ${D}# in | |
46371 | 1) | |
1e9e8aba | 46372 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
46373 | ;; |
46374 | 2) | |
46375 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
46376 | ;; | |
46377 | *) | |
46378 | echo "error in basnam ${D}*" | |
46379 | exit 8 | |
46380 | ;; | |
46381 | esac | |
46382 | } | |
46383 | ||
46384 | # Cleanup temporary files and output | |
46385 | CleanUp() { | |
46386 | cd ${D}curDir | |
46387 | for i in ${D}inputFiles ; do | |
46388 | case ${D}i in | |
46389 | *!) | |
46390 | rm -rf \`basnam ${D}i !\` | |
46391 | ;; | |
46392 | *) | |
46393 | ;; | |
46394 | esac | |
46395 | done | |
46396 | ||
46397 | # Kill result in case of failure as there is just to many stupid make/nmake | |
46398 | # things out there which doesn't do this. | |
1e9e8aba | 46399 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
46400 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
46401 | fi | |
46402 | } | |
46403 | ||
46404 | # Print usage and exit script with rc=1. | |
46405 | PrintHelp() { | |
b1d22ded DE |
46406 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
46407 | echo ' [-name-mangler-script script.sh]' | |
46408 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
46409 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
46410 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 46411 | echo ' [*.o] [*.a]' |
473276a9 VS |
46412 | echo '*> "output_file" should have no extension.' |
46413 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
46414 | echo ' The import library name is derived from this and is set to "name".a,' | |
46415 | echo ' unless overridden by -import' | |
46416 | echo '*> "importlib_name" should have no extension.' | |
46417 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
46418 | echo ' This name is used as the import library name and may be longer and' | |
46419 | echo ' more descriptive than the DLL name which has to follow the old ' | |
46420 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
46421 | echo '*> "script.sh may be given to override the output_file name by a' |
46422 | echo ' different name. It is mainly useful if the regular make process' | |
46423 | echo ' of some package does not take into account OS/2 restriction of' | |
46424 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
46425 | echo ' supposed to procude a shorter name as output. The script should' | |
46426 | echo ' expect to get importlib_name without extension and should produce' | |
46427 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
46428 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
46429 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
46430 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
46431 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
46432 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
46433 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
46434 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
46435 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 46436 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 46437 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 46438 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 46439 | echo ' C runtime DLLs.' |
b1d22ded | 46440 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
46441 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
46442 | echo ' unchanged to GCC at the end of command line.' | |
46443 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
46444 | echo ' the basename for DLL and import library will be set to library name,' | |
46445 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
46446 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
46447 | echo ' library will be renamed into gcc_s.a.' | |
46448 | echo '--------' | |
46449 | echo 'Example:' | |
46450 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
46451 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
46452 | CleanUp | |
46453 | exit 1 | |
46454 | } | |
46455 | ||
46456 | # Execute a command. | |
46457 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
46458 | # @Uses Whatever CleanUp() uses. | |
46459 | doCommand() { | |
46460 | echo "${D}*" | |
46461 | eval ${D}* | |
46462 | rcCmd=${D}? | |
46463 | ||
1e9e8aba | 46464 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
46465 | echo "command failed, exit code="${D}rcCmd |
46466 | CleanUp | |
46467 | exit ${D}rcCmd | |
46468 | fi | |
46469 | } | |
46470 | ||
46471 | # main routine | |
46472 | # setup globals | |
46473 | cmdLine=${D}* | |
46474 | outFile="" | |
46475 | outimpFile="" | |
46476 | inputFiles="" | |
b1d22ded | 46477 | renameScript="" |
473276a9 VS |
46478 | description="" |
46479 | CC=gcc.exe | |
46480 | CFLAGS="-s -Zcrtdll" | |
46481 | EXTRA_CFLAGS="" | |
46482 | EXPORT_BY_ORDINALS=0 | |
46483 | exclude_symbols="" | |
46484 | library_flags="" | |
46485 | curDir=\`pwd\` | |
46486 | curDirS=curDir | |
46487 | case ${D}curDirS in | |
46488 | */) | |
46489 | ;; | |
46490 | *) | |
46491 | curDirS=${D}{curDirS}"/" | |
46492 | ;; | |
46493 | esac | |
46494 | # Parse commandline | |
46495 | libsToLink=0 | |
b1d22ded | 46496 | omfLinking=0 |
1e9e8aba | 46497 | while [ ${D}1 ]; do |
473276a9 VS |
46498 | case ${D}1 in |
46499 | -ord*) | |
46500 | EXPORT_BY_ORDINALS=1; | |
46501 | ;; | |
46502 | -o*) | |
46503 | shift | |
46504 | outFile=${D}1 | |
46505 | ;; | |
46506 | -i*) | |
46507 | shift | |
46508 | outimpFile=${D}1 | |
46509 | ;; | |
b1d22ded DE |
46510 | -name-mangler-script) |
46511 | shift | |
46512 | renameScript=${D}1 | |
46513 | ;; | |
473276a9 VS |
46514 | -d*) |
46515 | shift | |
46516 | description=${D}1 | |
46517 | ;; | |
46518 | -f*) | |
46519 | shift | |
46520 | CFLAGS=${D}1 | |
46521 | ;; | |
46522 | -c*) | |
46523 | shift | |
46524 | CC=${D}1 | |
46525 | ;; | |
46526 | -h*) | |
46527 | PrintHelp | |
46528 | ;; | |
46529 | -ex*) | |
46530 | shift | |
46531 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
46532 | ;; | |
46533 | -libf*) | |
46534 | shift | |
46535 | library_flags=${D}{library_flags}${D}1" " | |
46536 | ;; | |
46537 | -nocrt*) | |
46538 | CFLAGS="-s" | |
46539 | ;; | |
46540 | -nolxl*) | |
46541 | flag_USE_LXLITE=0 | |
46542 | ;; | |
46543 | -* | /*) | |
46544 | case ${D}1 in | |
46545 | -L* | -l*) | |
46546 | libsToLink=1 | |
46547 | ;; | |
b1d22ded DE |
46548 | -Zomf) |
46549 | omfLinking=1 | |
46550 | ;; | |
473276a9 VS |
46551 | *) |
46552 | ;; | |
46553 | esac | |
46554 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
46555 | ;; | |
b1d22ded DE |
46556 | *.dll) |
46557 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
46558 | if [ ${D}omfLinking -eq 1 ]; then | |
46559 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
46560 | else | |
46561 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
46562 | fi | |
46563 | ;; | |
473276a9 VS |
46564 | *) |
46565 | found=0; | |
1e9e8aba | 46566 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
46567 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
46568 | else | |
46569 | for file in ${D}1 ; do | |
1e9e8aba | 46570 | if [ -f ${D}file ]; then |
473276a9 VS |
46571 | inputFiles="${D}{inputFiles} ${D}file" |
46572 | found=1 | |
46573 | fi | |
46574 | done | |
1e9e8aba | 46575 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
46576 | echo "ERROR: No file(s) found: "${D}1 |
46577 | exit 8 | |
46578 | fi | |
46579 | fi | |
46580 | ;; | |
46581 | esac | |
46582 | shift | |
46583 | done # iterate cmdline words | |
46584 | ||
46585 | # | |
1e9e8aba | 46586 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
46587 | echo "dllar: no input files" |
46588 | PrintHelp | |
46589 | fi | |
46590 | ||
46591 | # Now extract all .o files from .a files | |
46592 | newInputFiles="" | |
46593 | for file in ${D}inputFiles ; do | |
46594 | case ${D}file in | |
46595 | *.a | *.lib) | |
46596 | case ${D}file in | |
46597 | *.a) | |
46598 | suffix=".a" | |
46599 | AR="ar" | |
46600 | ;; | |
46601 | *.lib) | |
46602 | suffix=".lib" | |
46603 | AR="emxomfar" | |
46604 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
46605 | ;; | |
46606 | *) | |
46607 | ;; | |
46608 | esac | |
46609 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
46610 | mkdir ${D}dirname | |
1e9e8aba | 46611 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
46612 | echo "Failed to create subdirectory ./${D}dirname" |
46613 | CleanUp | |
46614 | exit 8; | |
46615 | fi | |
46616 | # Append '!' to indicate archive | |
46617 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
46618 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
46619 | cd ${D}curDir | |
46620 | found=0; | |
46621 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 46622 | if [ -f ${D}subfile ]; then |
473276a9 | 46623 | found=1 |
1e9e8aba | 46624 | if [ -s ${D}subfile ]; then |
473276a9 VS |
46625 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
46626 | newInputFiles="${D}newInputFiles ${D}subfile" | |
46627 | fi | |
46628 | fi | |
46629 | done | |
1e9e8aba DE |
46630 | if [ ${D}found -eq 0 ]; then |
46631 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
46632 | fi |
46633 | ;; | |
46634 | *) | |
46635 | newInputFiles="${D}{newInputFiles} ${D}file" | |
46636 | ;; | |
46637 | esac | |
46638 | done | |
46639 | inputFiles="${D}newInputFiles" | |
46640 | ||
46641 | # Output filename(s). | |
46642 | do_backup=0; | |
1e9e8aba | 46643 | if [ -z ${D}outFile ]; then |
473276a9 VS |
46644 | do_backup=1; |
46645 | set outFile ${D}inputFiles; outFile=${D}2 | |
46646 | fi | |
46647 | ||
46648 | # If it is an archive, remove the '!' and the '_%' suffixes | |
46649 | case ${D}outFile in | |
46650 | *_%!) | |
46651 | outFile=\`basnam ${D}outFile _%!\` | |
46652 | ;; | |
46653 | *) | |
46654 | ;; | |
46655 | esac | |
46656 | case ${D}outFile in | |
46657 | *.dll) | |
46658 | outFile=\`basnam ${D}outFile .dll\` | |
46659 | ;; | |
46660 | *.DLL) | |
46661 | outFile=\`basnam ${D}outFile .DLL\` | |
46662 | ;; | |
46663 | *.o) | |
46664 | outFile=\`basnam ${D}outFile .o\` | |
46665 | ;; | |
46666 | *.obj) | |
46667 | outFile=\`basnam ${D}outFile .obj\` | |
46668 | ;; | |
46669 | *.a) | |
46670 | outFile=\`basnam ${D}outFile .a\` | |
46671 | ;; | |
46672 | *.lib) | |
46673 | outFile=\`basnam ${D}outFile .lib\` | |
46674 | ;; | |
46675 | *) | |
46676 | ;; | |
46677 | esac | |
46678 | case ${D}outimpFile in | |
46679 | *.a) | |
46680 | outimpFile=\`basnam ${D}outimpFile .a\` | |
46681 | ;; | |
46682 | *.lib) | |
46683 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
46684 | ;; | |
46685 | *) | |
46686 | ;; | |
46687 | esac | |
1e9e8aba | 46688 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
46689 | outimpFile=${D}outFile |
46690 | fi | |
46691 | defFile="${D}{outFile}.def" | |
46692 | arcFile="${D}{outimpFile}.a" | |
46693 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
46694 | |
46695 | #create ${D}dllFile as something matching 8.3 restrictions, | |
46696 | if [ -z ${D}renameScript ] ; then | |
46697 | dllFile="${D}outFile" | |
46698 | else | |
46699 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
46700 | fi | |
473276a9 | 46701 | |
1e9e8aba DE |
46702 | if [ ${D}do_backup -ne 0 ] ; then |
46703 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
46704 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
46705 | fi | |
1e9e8aba | 46706 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
46707 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
46708 | fi | |
46709 | fi | |
46710 | ||
46711 | # Extract public symbols from all the object files. | |
46712 | tmpdefFile=${D}{defFile}_% | |
46713 | rm -f ${D}tmpdefFile | |
46714 | for file in ${D}inputFiles ; do | |
46715 | case ${D}file in | |
46716 | *!) | |
46717 | ;; | |
46718 | *) | |
46719 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
46720 | ;; | |
46721 | esac | |
46722 | done | |
46723 | ||
46724 | # Create the def file. | |
46725 | rm -f ${D}defFile | |
46726 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
46727 | dllFile="${D}{dllFile}.dll" |
46728 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 46729 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
46730 | fi |
46731 | echo "EXPORTS" >> ${D}defFile | |
46732 | ||
46733 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
46734 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
46735 | ||
46736 | # Checks if the export is ok or not. | |
46737 | for word in ${D}exclude_symbols; do | |
46738 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
46739 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
46740 | done | |
46741 | ||
46742 | ||
1e9e8aba DE |
46743 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
46744 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
46745 | sed ' |
46746 | N | |
46747 | : loop | |
1e9e8aba | 46748 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
46749 | t loop |
46750 | ' > ${D}{tmpdefFile}% | |
46751 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
46752 | else | |
46753 | rm -f ${D}{tmpdefFile}% | |
46754 | fi | |
46755 | cat ${D}tmpdefFile >> ${D}defFile | |
46756 | rm -f ${D}tmpdefFile | |
46757 | ||
46758 | # Do linking, create implib, and apply lxlite. | |
46759 | gccCmdl=""; | |
46760 | for file in ${D}inputFiles ; do | |
46761 | case ${D}file in | |
46762 | *!) | |
46763 | ;; | |
46764 | *) | |
46765 | gccCmdl="${D}gccCmdl ${D}file" | |
46766 | ;; | |
46767 | esac | |
46768 | done | |
46769 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
46770 | touch "${D}{outFile}.dll" | |
46771 | ||
46772 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 46773 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 46774 | add_flags=""; |
1e9e8aba | 46775 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
46776 | add_flags="-ynd" |
46777 | fi | |
46778 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
46779 | fi | |
46780 | doCommand "emxomf -s -l ${D}arcFile" | |
46781 | ||
46782 | # Successful exit. | |
46783 | CleanUp 1 | |
46784 | exit 0 | |
46785 | EOF | |
46786 | ||
46787 | chmod +x dllar.sh | |
a848cd7e SC |
46788 | ;; |
46789 | ||
1e9e8aba | 46790 | powerpc-apple-macos* | \ |
0ad5d837 | 46791 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
46792 | *-*-sunos4* | \ |
46793 | *-*-osf* | \ | |
46794 | *-*-dgux5* | \ | |
47a7e797 MW |
46795 | *-*-sysv5* | \ |
46796 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
46797 | ;; |
46798 | ||
46799 | *) | |
46800 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
46801 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
46802 | { (exit 1); exit 1; }; } | |
46803 | esac | |
46804 | ||
2057db16 VS |
46805 | if test "x$PIC_FLAG" != "x" ; then |
46806 | PIC_FLAG="$PIC_FLAG -DPIC" | |
46807 | fi | |
46808 | ||
a848cd7e SC |
46809 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
46810 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
46811 | fi | |
46812 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
46813 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
46814 | fi | |
46815 | ||
46816 | ||
46817 | ||
46818 | ||
46819 | ||
46820 | ||
46821 | ||
46822 | ||
810b94f0 | 46823 | |
a848cd7e SC |
46824 | USE_SOVERSION=0 |
46825 | USE_SOVERLINUX=0 | |
46826 | USE_SOVERSOLARIS=0 | |
810b94f0 | 46827 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
46828 | USE_SOSYMLINKS=0 |
46829 | USE_MACVERSION=0 | |
46830 | SONAME_FLAG= | |
46831 | ||
46832 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 46833 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
46834 | SONAME_FLAG="-Wl,-soname," |
46835 | USE_SOVERSION=1 | |
46836 | USE_SOVERLINUX=1 | |
46837 | USE_SOSYMLINKS=1 | |
46838 | ;; | |
46839 | ||
a848cd7e SC |
46840 | *-*-solaris2* ) |
46841 | SONAME_FLAG="-h " | |
46842 | USE_SOVERSION=1 | |
46843 | USE_SOVERSOLARIS=1 | |
46844 | USE_SOSYMLINKS=1 | |
46845 | ;; | |
46846 | ||
46847 | *-*-darwin* ) | |
46848 | USE_MACVERSION=1 | |
46849 | USE_SOVERSION=1 | |
46850 | USE_SOSYMLINKS=1 | |
46851 | ;; | |
810b94f0 MW |
46852 | |
46853 | *-*-cygwin* ) | |
46854 | USE_SOVERSION=1 | |
46855 | USE_SOVERCYGWIN=1 | |
46856 | ;; | |
a848cd7e SC |
46857 | esac |
46858 | ||
46859 | ||
46860 | ||
46861 | ||
46862 | ||
46863 | ||
46864 | ||
46865 | ||
46866 | ||
810b94f0 | 46867 | |
a848cd7e SC |
46868 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
46869 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
0ad5d837 | 46870 | DEPS_TRACKING=1 |
a848cd7e SC |
46871 | |
46872 | if test "x$GCC" = "xyes"; then | |
46873 | DEPSMODE=gcc | |
a848cd7e | 46874 | case "${BAKEFILE_HOST}" in |
47bd5406 | 46875 | *-*-darwin* ) |
0ad5d837 | 46876 | DEPSFLAG="-no-cpp-precomp -MMD" |
a848cd7e SC |
46877 | ;; |
46878 | * ) | |
0ad5d837 | 46879 | DEPSFLAG="-MMD" |
a848cd7e SC |
46880 | ;; |
46881 | esac | |
46882 | echo "$as_me:$LINENO: result: gcc" >&5 | |
46883 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 46884 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 46885 | DEPSMODE=mwcc |
0ad5d837 | 46886 | DEPSFLAG="-MM" |
b1d22ded DE |
46887 | echo "$as_me:$LINENO: result: mwcc" >&5 |
46888 | echo "${ECHO_T}mwcc" >&6 | |
a9e5b1f0 | 46889 | elif test "x$SUNCC" = "xyes"; then |
0ad5d837 VZ |
46890 | DEPSMODE=unixcc |
46891 | DEPSFLAG="-xM1" | |
46892 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
46893 | echo "${ECHO_T}Sun cc" >&6 | |
46894 | elif test "x$SGICC" = "xyes"; then | |
46895 | DEPSMODE=unixcc | |
46896 | DEPSFLAG="-M" | |
46897 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
46898 | echo "${ECHO_T}SGI cc" >&6 | |
3006edc0 VZ |
46899 | elif test "x$HPCC" = "xyes"; then |
46900 | DEPSMODE=unixcc | |
46901 | DEPSFLAG="+make" | |
46902 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
46903 | echo "${ECHO_T}HP cc" >&6 | |
a1aa0349 VZ |
46904 | elif test "x$COMPAQCC" = "xyes"; then |
46905 | DEPSMODE=gcc | |
46906 | DEPSFLAG="-MD" | |
46907 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
46908 | echo "${ECHO_T}Compaq cc" >&6 | |
a848cd7e | 46909 | else |
3006edc0 | 46910 | DEPS_TRACKING=0 |
a848cd7e SC |
46911 | echo "$as_me:$LINENO: result: none" >&5 |
46912 | echo "${ECHO_T}none" >&6 | |
46913 | fi | |
46914 | ||
46915 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
46916 | |
46917 | D='$' | |
46918 | cat <<EOF >bk-deps | |
a848cd7e SC |
46919 | #!/bin/sh |
46920 | ||
46921 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
46922 | # script. It is used to track C/C++ files dependencies in portable way. | |
46923 | # | |
46924 | # Permission is given to use this file in any way. | |
46925 | ||
473276a9 | 46926 | DEPSMODE=${DEPSMODE} |
a848cd7e | 46927 | DEPSDIR=.deps |
0ad5d837 | 46928 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 46929 | |
473276a9 | 46930 | mkdir -p ${D}DEPSDIR |
a848cd7e | 46931 | |
473276a9 | 46932 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 46933 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
46934 | status=${D}? |
46935 | if test ${D}{status} != 0 ; then | |
46936 | exit ${D}{status} | |
a848cd7e SC |
46937 | fi |
46938 | # move created file to the location we want it in: | |
473276a9 VS |
46939 | while test ${D}# -gt 0; do |
46940 | case "${D}1" in | |
a848cd7e SC |
46941 | -o ) |
46942 | shift | |
473276a9 | 46943 | objfile=${D}1 |
a848cd7e SC |
46944 | ;; |
46945 | -* ) | |
46946 | ;; | |
46947 | * ) | |
473276a9 | 46948 | srcfile=${D}1 |
a848cd7e SC |
46949 | ;; |
46950 | esac | |
46951 | shift | |
46952 | done | |
1e9e8aba DE |
46953 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
46954 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
46955 | if test -f ${D}depfile ; then |
46956 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
46957 | rm -f ${D}depfile | |
a848cd7e | 46958 | else |
a1aa0349 | 46959 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 46960 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
46961 | if test ! -f ${D}depfile ; then |
46962 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
46963 | depfile="${D}objfile.d" | |
46964 | fi | |
473276a9 VS |
46965 | if test -f ${D}depfile ; then |
46966 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
46967 | rm -f ${D}depfile | |
a848cd7e SC |
46968 | fi |
46969 | fi | |
46970 | exit 0 | |
81f90336 | 46971 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 46972 | ${D}* || exit ${D}? |
81f90336 MW |
46973 | # Run mwcc again with -MM and redirect into the dep file we want |
46974 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
46975 | prevarg= | |
46976 | for arg in ${D}* ; do | |
46977 | if test "${D}prevarg" = "-o"; then | |
46978 | objfile=${D}arg | |
46979 | else | |
46980 | case "${D}arg" in | |
46981 | -* ) | |
46982 | ;; | |
46983 | * ) | |
46984 | srcfile=${D}arg | |
46985 | ;; | |
46986 | esac | |
46987 | fi | |
46988 | prevarg="${D}arg" | |
46989 | done | |
0ad5d837 | 46990 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 46991 | exit 0 |
0ad5d837 | 46992 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 46993 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
46994 | # Run compiler again with deps flag and redirect into the dep file. |
46995 | # It doesn't work if the '-o FILE' option is used, but without it the | |
46996 | # dependency file will contain the wrong name for the object. So it is | |
46997 | # removed from the command line, and the dep file is fixed with sed. | |
46998 | cmd="" | |
46999 | while test ${D}# -gt 0; do | |
47000 | case "${D}1" in | |
47001 | -o ) | |
47002 | shift | |
47003 | objfile=${D}1 | |
47004 | ;; | |
47005 | * ) | |
47006 | eval arg${D}#=\\${D}1 | |
47007 | cmd="${D}cmd \\${D}arg${D}#" | |
47008 | ;; | |
47009 | esac | |
47010 | shift | |
47011 | done | |
0ad5d837 | 47012 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 47013 | exit 0 |
a848cd7e | 47014 | else |
473276a9 VS |
47015 | ${D}* |
47016 | exit ${D}? | |
a848cd7e SC |
47017 | fi |
47018 | EOF | |
473276a9 | 47019 | |
a848cd7e SC |
47020 | chmod +x bk-deps |
47021 | fi | |
47022 | ||
47023 | ||
47024 | ||
47025 | ||
a848cd7e SC |
47026 | case ${BAKEFILE_HOST} in |
47027 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
47028 | if test -n "$ac_tool_prefix"; then |
47029 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
47030 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
47031 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47033 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
47034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47035 | else | |
47036 | if test -n "$WINDRES"; then | |
47037 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
47038 | else | |
47039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47040 | for as_dir in $PATH | |
47041 | do | |
47042 | IFS=$as_save_IFS | |
47043 | test -z "$as_dir" && as_dir=. | |
47044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47045 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47046 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
47047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47048 | break 2 | |
47049 | fi | |
47050 | done | |
47051 | done | |
47052 | ||
47053 | fi | |
47054 | fi | |
47055 | WINDRES=$ac_cv_prog_WINDRES | |
47056 | if test -n "$WINDRES"; then | |
47057 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
47058 | echo "${ECHO_T}$WINDRES" >&6 | |
47059 | else | |
47060 | echo "$as_me:$LINENO: result: no" >&5 | |
47061 | echo "${ECHO_T}no" >&6 | |
47062 | fi | |
47063 | ||
47064 | fi | |
47065 | if test -z "$ac_cv_prog_WINDRES"; then | |
47066 | ac_ct_WINDRES=$WINDRES | |
47067 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e SC |
47068 | set dummy windres; ac_word=$2 |
47069 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47071 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
a848cd7e SC |
47072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47073 | else | |
8ced02f6 DE |
47074 | if test -n "$ac_ct_WINDRES"; then |
47075 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
47076 | else |
47077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47078 | for as_dir in $PATH | |
47079 | do | |
47080 | IFS=$as_save_IFS | |
47081 | test -z "$as_dir" && as_dir=. | |
47082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47083 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47084 | ac_cv_prog_ac_ct_WINDRES="windres" |
a848cd7e SC |
47085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47086 | break 2 | |
47087 | fi | |
47088 | done | |
47089 | done | |
47090 | ||
a848cd7e SC |
47091 | fi |
47092 | fi | |
8ced02f6 DE |
47093 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
47094 | if test -n "$ac_ct_WINDRES"; then | |
47095 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
47096 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
a848cd7e SC |
47097 | else |
47098 | echo "$as_me:$LINENO: result: no" >&5 | |
47099 | echo "${ECHO_T}no" >&6 | |
47100 | fi | |
47101 | ||
8ced02f6 DE |
47102 | WINDRES=$ac_ct_WINDRES |
47103 | else | |
47104 | WINDRES="$ac_cv_prog_WINDRES" | |
47105 | fi | |
47106 | ||
a848cd7e SC |
47107 | ;; |
47108 | ||
1e9e8aba | 47109 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
47110 | # Extract the first word of "Rez", so it can be a program name with args. |
47111 | set dummy Rez; ac_word=$2 | |
47112 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47113 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47114 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
47115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47116 | else | |
8ced02f6 DE |
47117 | if test -n "$REZ"; then |
47118 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
47119 | else |
47120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47121 | for as_dir in $PATH | |
47122 | do | |
47123 | IFS=$as_save_IFS | |
47124 | test -z "$as_dir" && as_dir=. | |
47125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47126 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47127 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
47128 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47129 | break 2 | |
47130 | fi | |
47131 | done | |
47132 | done | |
47133 | ||
8ced02f6 | 47134 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
47135 | fi |
47136 | fi | |
8ced02f6 DE |
47137 | REZ=$ac_cv_prog_REZ |
47138 | if test -n "$REZ"; then | |
47139 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
47140 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
47141 | else |
47142 | echo "$as_me:$LINENO: result: no" >&5 | |
47143 | echo "${ECHO_T}no" >&6 | |
47144 | fi | |
47145 | ||
47146 | # Extract the first word of "SetFile", so it can be a program name with args. | |
47147 | set dummy SetFile; ac_word=$2 | |
47148 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47149 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47150 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
47151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47152 | else | |
47153 | if test -n "$SETFILE"; then | |
47154 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
47155 | else | |
47156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47157 | for as_dir in $PATH | |
47158 | do | |
47159 | IFS=$as_save_IFS | |
47160 | test -z "$as_dir" && as_dir=. | |
47161 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47162 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47163 | ac_cv_prog_SETFILE="SetFile" | |
47164 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47165 | break 2 | |
47166 | fi | |
47167 | done | |
47168 | done | |
47169 | ||
47170 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
47171 | fi | |
47172 | fi | |
47173 | SETFILE=$ac_cv_prog_SETFILE | |
47174 | if test -n "$SETFILE"; then | |
47175 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
47176 | echo "${ECHO_T}$SETFILE" >&6 | |
47177 | else | |
47178 | echo "$as_me:$LINENO: result: no" >&5 | |
47179 | echo "${ECHO_T}no" >&6 | |
47180 | fi | |
47181 | ||
47182 | ;; | |
47183 | esac | |
47184 | ||
47185 | ||
47186 | ||
47187 | ||
47188 | ||
8ced02f6 | 47189 | |
c9469659 | 47190 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.9" |
a848cd7e | 47191 | |
dcc1b6ad | 47192 | |
c9469659 | 47193 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9" |
a848cd7e | 47194 | |
646b6ec1 | 47195 | |
74b84332 | 47196 | |
a848cd7e SC |
47197 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
47198 | if test "${enable_precomp_headers+set}" = set; then | |
47199 | enableval="$enable_precomp_headers" | |
47200 | bk_use_pch="$enableval" | |
47201 | fi; | |
47202 | ||
47203 | GCC_PCH=0 | |
47204 | ||
5c60e845 MW |
47205 | case ${BAKEFILE_HOST} in |
47206 | *-*-cygwin* ) | |
47207 | bk_use_pch="no" | |
47208 | ;; | |
47209 | esac | |
47210 | ||
a848cd7e SC |
47211 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
47212 | if test "x$GCC" = "xyes"; then | |
47213 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
47214 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
47215 | cat >conftest.$ac_ext <<_ACEOF | |
47216 | /* confdefs.h. */ | |
47217 | _ACEOF | |
47218 | cat confdefs.h >>conftest.$ac_ext | |
47219 | cat >>conftest.$ac_ext <<_ACEOF | |
47220 | /* end confdefs.h. */ | |
47221 | ||
47222 | int | |
47223 | main () | |
47224 | { | |
47225 | ||
47226 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
47227 | #error "no pch support" | |
47228 | #endif | |
47229 | #if (__GNUC__ < 3) | |
47230 | #error "no pch support" | |
47231 | #endif | |
47232 | #if (__GNUC__ == 3) && \ | |
47233 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
47234 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
47235 | #error "no pch support" | |
47236 | #endif | |
47237 | ||
47238 | ; | |
47239 | return 0; | |
47240 | } | |
47241 | _ACEOF | |
47242 | rm -f conftest.$ac_objext | |
47243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 47244 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 47245 | ac_status=$? |
ac1cb8d3 VS |
47246 | grep -v '^ *+' conftest.er1 >conftest.err |
47247 | rm -f conftest.er1 | |
47248 | cat conftest.err >&5 | |
a848cd7e SC |
47249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47250 | (exit $ac_status); } && | |
3565d135 RR |
47251 | { ac_try='test -z "$ac_c_werror_flag" |
47252 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
47253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47254 | (eval $ac_try) 2>&5 | |
47255 | ac_status=$? | |
47256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47257 | (exit $ac_status); }; } && | |
47258 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
47259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47260 | (eval $ac_try) 2>&5 | |
47261 | ac_status=$? | |
47262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47263 | (exit $ac_status); }; }; then | |
47264 | ||
47265 | echo "$as_me:$LINENO: result: yes" >&5 | |
47266 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
47267 | GCC_PCH=1 |
47268 | ||
47269 | else | |
47270 | echo "$as_me: failed program was:" >&5 | |
47271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47272 | ||
47273 | ||
47274 | echo "$as_me:$LINENO: result: no" >&5 | |
47275 | echo "${ECHO_T}no" >&6 | |
47276 | ||
47277 | fi | |
ac1cb8d3 | 47278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 47279 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
47280 | |
47281 | D='$' | |
47282 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
47283 | #!/bin/sh |
47284 | ||
47285 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47286 | # script. It is used to generated precompiled headers. | |
47287 | # | |
47288 | # Permission is given to use this file in any way. | |
47289 | ||
1e9e8aba DE |
47290 | outfile="${D}{1}" |
47291 | header="${D}{2}" | |
a848cd7e SC |
47292 | shift |
47293 | shift | |
47294 | ||
47295 | compiler= | |
47296 | headerfile= | |
1e9e8aba DE |
47297 | while test ${D}{#} -gt 0; do |
47298 | case "${D}{1}" in | |
a848cd7e | 47299 | -I* ) |
1e9e8aba DE |
47300 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
47301 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
47302 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
47303 | fi |
47304 | ;; | |
47305 | esac | |
1e9e8aba | 47306 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
47307 | shift |
47308 | done | |
47309 | ||
1e9e8aba DE |
47310 | if test "x${D}{headerfile}" = "x" ; then |
47311 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 47312 | else |
1e9e8aba DE |
47313 | if test -f ${D}{outfile} ; then |
47314 | rm -f ${D}{outfile} | |
a848cd7e | 47315 | else |
1e9e8aba | 47316 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 47317 | fi |
1e9e8aba | 47318 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
47319 | mkdir -p .deps |
47320 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
47321 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
47322 | exit ${D}{?} | |
a848cd7e SC |
47323 | fi |
47324 | EOF | |
1e9e8aba | 47325 | |
a848cd7e SC |
47326 | chmod +x bk-make-pch |
47327 | fi | |
47328 | fi | |
47329 | fi | |
47330 | ||
47331 | ||
47332 | ||
a848cd7e SC |
47333 | COND_BUILD_DEBUG="#" |
47334 | if test "x$BUILD" = "xdebug" ; then | |
47335 | COND_BUILD_DEBUG="" | |
47336 | fi | |
47337 | ||
47338 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
47339 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
47340 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
47341 | fi | |
47342 | ||
47343 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
47344 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47345 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
47346 | fi | |
47347 | ||
47348 | COND_BUILD_DEBUG_UNICODE_0="#" | |
47349 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
47350 | COND_BUILD_DEBUG_UNICODE_0="" | |
47351 | fi | |
47352 | ||
47353 | COND_BUILD_DEBUG_UNICODE_1="#" | |
47354 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
47355 | COND_BUILD_DEBUG_UNICODE_1="" | |
47356 | fi | |
47357 | ||
47358 | COND_BUILD_RELEASE="#" | |
47359 | if test "x$BUILD" = "xrelease" ; then | |
47360 | COND_BUILD_RELEASE="" | |
47361 | fi | |
47362 | ||
47363 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
47364 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47365 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
47366 | fi | |
47367 | ||
47368 | COND_BUILD_RELEASE_UNICODE_0="#" | |
47369 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
47370 | COND_BUILD_RELEASE_UNICODE_0="" | |
47371 | fi | |
47372 | ||
47373 | COND_BUILD_RELEASE_UNICODE_1="#" | |
47374 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
47375 | COND_BUILD_RELEASE_UNICODE_1="" | |
47376 | fi | |
47377 | ||
47378 | COND_DEBUG_FLAG_1="#" | |
47379 | if test "x$DEBUG_FLAG" = "x1" ; then | |
47380 | COND_DEBUG_FLAG_1="" | |
47381 | fi | |
47382 | ||
47383 | COND_DEBUG_INFO_0="#" | |
47384 | if test "x$DEBUG_INFO" = "x0" ; then | |
47385 | COND_DEBUG_INFO_0="" | |
47386 | fi | |
47387 | ||
47388 | COND_DEBUG_INFO_1="#" | |
47389 | if test "x$DEBUG_INFO" = "x1" ; then | |
47390 | COND_DEBUG_INFO_1="" | |
47391 | fi | |
47392 | ||
47393 | COND_DEPS_TRACKING_0="#" | |
47394 | if test "x$DEPS_TRACKING" = "x0" ; then | |
47395 | COND_DEPS_TRACKING_0="" | |
47396 | fi | |
47397 | ||
47398 | COND_DEPS_TRACKING_1="#" | |
47399 | if test "x$DEPS_TRACKING" = "x1" ; then | |
47400 | COND_DEPS_TRACKING_1="" | |
47401 | fi | |
47402 | ||
47403 | COND_GCC_PCH_1="#" | |
47404 | if test "x$GCC_PCH" = "x1" ; then | |
47405 | COND_GCC_PCH_1="" | |
47406 | fi | |
47407 | ||
47408 | COND_MONOLITHIC_0="#" | |
47409 | if test "x$MONOLITHIC" = "x0" ; then | |
47410 | COND_MONOLITHIC_0="" | |
47411 | fi | |
47412 | ||
47413 | COND_MONOLITHIC_0_SHARED_0="#" | |
47414 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
47415 | COND_MONOLITHIC_0_SHARED_0="" | |
47416 | fi | |
47417 | ||
47418 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
47419 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
47420 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
47421 | fi | |
47422 | ||
90970d69 DE |
47423 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
47424 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47425 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
47426 | fi | |
47427 | ||
a848cd7e SC |
47428 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
47429 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47430 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
47431 | fi | |
47432 | ||
6671c68b VZ |
47433 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
47434 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47435 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
47436 | fi | |
47437 | ||
a848cd7e SC |
47438 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
47439 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47440 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
47441 | fi | |
47442 | ||
ceec2216 RL |
47443 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
47444 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47445 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
47446 | fi | |
47447 | ||
a848cd7e SC |
47448 | COND_MONOLITHIC_0_SHARED_1="#" |
47449 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
47450 | COND_MONOLITHIC_0_SHARED_1="" | |
47451 | fi | |
47452 | ||
47453 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
47454 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47455 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
47456 | fi | |
47457 | ||
90970d69 DE |
47458 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
47459 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47460 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
47461 | fi | |
47462 | ||
a848cd7e SC |
47463 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
47464 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47465 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
47466 | fi | |
47467 | ||
6671c68b VZ |
47468 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
47469 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47470 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
47471 | fi | |
47472 | ||
a848cd7e SC |
47473 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
47474 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47475 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
47476 | fi | |
47477 | ||
ceec2216 RL |
47478 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
47479 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47480 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
47481 | fi | |
47482 | ||
a848cd7e SC |
47483 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
47484 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47485 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
47486 | fi | |
47487 | ||
47488 | COND_MONOLITHIC_1="#" | |
47489 | if test "x$MONOLITHIC" = "x1" ; then | |
47490 | COND_MONOLITHIC_1="" | |
47491 | fi | |
47492 | ||
47493 | COND_MONOLITHIC_1_SHARED_0="#" | |
47494 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
47495 | COND_MONOLITHIC_1_SHARED_0="" | |
47496 | fi | |
47497 | ||
47498 | COND_MONOLITHIC_1_SHARED_1="#" | |
47499 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
47500 | COND_MONOLITHIC_1_SHARED_1="" | |
47501 | fi | |
47502 | ||
47503 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
47504 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47505 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
47506 | fi | |
47507 | ||
47508 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
47509 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47510 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
47511 | fi | |
47512 | ||
eb730a0c JS |
47513 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
47514 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47515 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
47516 | fi | |
47517 | ||
a848cd7e SC |
47518 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
47519 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47520 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
47521 | fi | |
47522 | ||
47523 | COND_PLATFORM_MACOSX_1="#" | |
47524 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
47525 | COND_PLATFORM_MACOSX_1="" | |
47526 | fi | |
47527 | ||
a30f955f VS |
47528 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
47529 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
47530 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
47531 | fi | |
47532 | ||
a848cd7e SC |
47533 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
47534 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
47535 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
47536 | fi | |
47537 | ||
47538 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
47539 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
47540 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
47541 | fi | |
47542 | ||
47543 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
47544 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
47545 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
47546 | fi | |
47547 | ||
fc480dc1 DE |
47548 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
47549 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
47550 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
47551 | fi | |
47552 | ||
1e9e8aba DE |
47553 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
47554 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47555 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
47556 | fi | |
47557 | ||
ebee3cd0 VS |
47558 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
47559 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
47560 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
47561 | fi | |
47562 | ||
47563 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
47564 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
47565 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
47566 | fi | |
47567 | ||
a848cd7e SC |
47568 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
47569 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47570 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
47571 | fi | |
47572 | ||
47573 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
47574 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
47575 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
47576 | fi | |
47577 | ||
b48a2016 DE |
47578 | COND_PLATFORM_MACOS_1="#" |
47579 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
47580 | COND_PLATFORM_MACOS_1="" | |
47581 | fi | |
47582 | ||
083508af MW |
47583 | COND_PLATFORM_MAC_1="#" |
47584 | if test "x$PLATFORM_MAC" = "x1" ; then | |
47585 | COND_PLATFORM_MAC_1="" | |
47586 | fi | |
47587 | ||
83d8eb47 MW |
47588 | COND_PLATFORM_MSDOS_1="#" |
47589 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
47590 | COND_PLATFORM_MSDOS_1="" | |
47591 | fi | |
47592 | ||
a848cd7e SC |
47593 | COND_PLATFORM_OS2_1="#" |
47594 | if test "x$PLATFORM_OS2" = "x1" ; then | |
47595 | COND_PLATFORM_OS2_1="" | |
47596 | fi | |
47597 | ||
47598 | COND_PLATFORM_UNIX_0="#" | |
47599 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
47600 | COND_PLATFORM_UNIX_0="" | |
47601 | fi | |
47602 | ||
47603 | COND_PLATFORM_UNIX_1="#" | |
47604 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
47605 | COND_PLATFORM_UNIX_1="" | |
47606 | fi | |
47607 | ||
47608 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
47609 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47610 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
47611 | fi | |
47612 | ||
47613 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
47614 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
47615 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
47616 | fi | |
47617 | ||
47618 | COND_PLATFORM_WIN32_0="#" | |
47619 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
47620 | COND_PLATFORM_WIN32_0="" | |
47621 | fi | |
47622 | ||
47623 | COND_PLATFORM_WIN32_1="#" | |
47624 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
47625 | COND_PLATFORM_WIN32_1="" | |
47626 | fi | |
47627 | ||
47628 | COND_SHARED_0="#" | |
47629 | if test "x$SHARED" = "x0" ; then | |
47630 | COND_SHARED_0="" | |
47631 | fi | |
47632 | ||
083508af MW |
47633 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
47634 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
47635 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
47636 | fi | |
47637 | ||
47638 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
47639 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
47640 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
47641 | fi | |
47642 | ||
47643 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
47644 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
47645 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
47646 | fi | |
47647 | ||
a848cd7e SC |
47648 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
47649 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47650 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
47651 | fi | |
47652 | ||
47653 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
47654 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47655 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
47656 | fi | |
47657 | ||
47658 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
47659 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47660 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
47661 | fi | |
47662 | ||
47663 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
47664 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47665 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
47666 | fi | |
47667 | ||
083508af MW |
47668 | COND_SHARED_0_USE_XRC_1="#" |
47669 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47670 | COND_SHARED_0_USE_XRC_1="" | |
47671 | fi | |
47672 | ||
a848cd7e SC |
47673 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
47674 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
47675 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
47676 | fi | |
47677 | ||
47678 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
47679 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
47680 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
47681 | fi | |
47682 | ||
47683 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
47684 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
47685 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
47686 | fi | |
47687 | ||
47688 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
47689 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
47690 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
47691 | fi | |
47692 | ||
47693 | COND_SHARED_1="#" | |
47694 | if test "x$SHARED" = "x1" ; then | |
47695 | COND_SHARED_1="" | |
47696 | fi | |
47697 | ||
47698 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
47699 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47700 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
47701 | fi | |
47702 | ||
083508af MW |
47703 | COND_SHARED_1_USE_XRC_1="#" |
47704 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47705 | COND_SHARED_1_USE_XRC_1="" | |
47706 | fi | |
47707 | ||
a30f955f VS |
47708 | COND_TOOLKIT_="#" |
47709 | if test "x$TOOLKIT" = "x" ; then | |
47710 | COND_TOOLKIT_="" | |
47711 | fi | |
47712 | ||
a848cd7e SC |
47713 | COND_TOOLKIT_COCOA="#" |
47714 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
47715 | COND_TOOLKIT_COCOA="" | |
47716 | fi | |
47717 | ||
a49baeab DE |
47718 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
47719 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
47720 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
47721 | fi | |
47722 | ||
a848cd7e SC |
47723 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
47724 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47725 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
47726 | fi | |
47727 | ||
47728 | COND_TOOLKIT_GTK="#" | |
47729 | if test "x$TOOLKIT" = "xGTK" ; then | |
47730 | COND_TOOLKIT_GTK="" | |
47731 | fi | |
47732 | ||
47733 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
47734 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
47735 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
47736 | fi | |
47737 | ||
47738 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
47739 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47740 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
47741 | fi | |
47742 | ||
47743 | COND_TOOLKIT_MAC="#" | |
47744 | if test "x$TOOLKIT" = "xMAC" ; then | |
47745 | COND_TOOLKIT_MAC="" | |
47746 | fi | |
47747 | ||
47748 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
47749 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
47750 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
47751 | fi | |
47752 | ||
47753 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
47754 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47755 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
47756 | fi | |
47757 | ||
47758 | COND_TOOLKIT_MGL="#" | |
47759 | if test "x$TOOLKIT" = "xMGL" ; then | |
47760 | COND_TOOLKIT_MGL="" | |
47761 | fi | |
47762 | ||
47763 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
47764 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
47765 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
47766 | fi | |
47767 | ||
47768 | COND_TOOLKIT_MOTIF="#" | |
47769 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
47770 | COND_TOOLKIT_MOTIF="" | |
47771 | fi | |
47772 | ||
47773 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
47774 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
47775 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
47776 | fi | |
47777 | ||
47778 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
47779 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47780 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
47781 | fi | |
47782 | ||
47783 | COND_TOOLKIT_MSW="#" | |
47784 | if test "x$TOOLKIT" = "xMSW" ; then | |
47785 | COND_TOOLKIT_MSW="" | |
47786 | fi | |
47787 | ||
47788 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
47789 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
47790 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
47791 | fi | |
47792 | ||
47793 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
47794 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47795 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
47796 | fi | |
47797 | ||
0ee4059d DE |
47798 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
47799 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
47800 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
47801 | fi | |
47802 | ||
a848cd7e SC |
47803 | COND_TOOLKIT_PM="#" |
47804 | if test "x$TOOLKIT" = "xPM" ; then | |
47805 | COND_TOOLKIT_PM="" | |
47806 | fi | |
47807 | ||
47808 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
47809 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
47810 | COND_TOOLKIT_PM_USE_GUI_1="" | |
47811 | fi | |
47812 | ||
47813 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
47814 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47815 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
47816 | fi | |
47817 | ||
3fd9c298 DE |
47818 | COND_TOOLKIT_WINCE="#" |
47819 | if test "x$TOOLKIT" = "xWINCE" ; then | |
47820 | COND_TOOLKIT_WINCE="" | |
47821 | fi | |
47822 | ||
47823 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
47824 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
47825 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
47826 | fi | |
47827 | ||
47828 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
47829 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47830 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
47831 | fi | |
47832 | ||
0ee4059d DE |
47833 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
47834 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
47835 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
47836 | fi | |
47837 | ||
a848cd7e SC |
47838 | COND_TOOLKIT_X11="#" |
47839 | if test "x$TOOLKIT" = "xX11" ; then | |
47840 | COND_TOOLKIT_X11="" | |
47841 | fi | |
47842 | ||
47843 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
47844 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
47845 | COND_TOOLKIT_X11_USE_GUI_1="" | |
47846 | fi | |
47847 | ||
47848 | COND_UNICODE_1="#" | |
47849 | if test "x$UNICODE" = "x1" ; then | |
47850 | COND_UNICODE_1="" | |
47851 | fi | |
47852 | ||
47853 | COND_USE_EXCEPTIONS_0="#" | |
47854 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
47855 | COND_USE_EXCEPTIONS_0="" | |
47856 | fi | |
47857 | ||
47858 | COND_USE_EXCEPTIONS_1="#" | |
47859 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
47860 | COND_USE_EXCEPTIONS_1="" | |
47861 | fi | |
47862 | ||
47863 | COND_USE_GUI_0="#" | |
47864 | if test "x$USE_GUI" = "x0" ; then | |
47865 | COND_USE_GUI_0="" | |
47866 | fi | |
47867 | ||
47868 | COND_USE_GUI_1="#" | |
47869 | if test "x$USE_GUI" = "x1" ; then | |
47870 | COND_USE_GUI_1="" | |
47871 | fi | |
47872 | ||
47873 | COND_USE_GUI_1_WXUNIV_0="#" | |
47874 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47875 | COND_USE_GUI_1_WXUNIV_0="" | |
47876 | fi | |
47877 | ||
47878 | COND_USE_GUI_1_WXUNIV_1="#" | |
47879 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
47880 | COND_USE_GUI_1_WXUNIV_1="" | |
47881 | fi | |
47882 | ||
47883 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
47884 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47885 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
47886 | fi | |
47887 | ||
47888 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
47889 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47890 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
47891 | fi | |
47892 | ||
47893 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
47894 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47895 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
47896 | fi | |
47897 | ||
083508af MW |
47898 | COND_USE_ODBC_1="#" |
47899 | if test "x$USE_ODBC" = "x1" ; then | |
47900 | COND_USE_ODBC_1="" | |
47901 | fi | |
47902 | ||
47903 | COND_USE_OPENGL_1="#" | |
47904 | if test "x$USE_OPENGL" = "x1" ; then | |
47905 | COND_USE_OPENGL_1="" | |
47906 | fi | |
47907 | ||
a848cd7e SC |
47908 | COND_USE_PLUGINS_0="#" |
47909 | if test "x$USE_PLUGINS" = "x0" ; then | |
47910 | COND_USE_PLUGINS_0="" | |
47911 | fi | |
47912 | ||
0b78747f MW |
47913 | COND_USE_RTTI_0="#" |
47914 | if test "x$USE_RTTI" = "x0" ; then | |
47915 | COND_USE_RTTI_0="" | |
47916 | fi | |
47917 | ||
47918 | COND_USE_RTTI_1="#" | |
47919 | if test "x$USE_RTTI" = "x1" ; then | |
47920 | COND_USE_RTTI_1="" | |
47921 | fi | |
47922 | ||
a848cd7e SC |
47923 | COND_USE_SOSYMLINKS_1="#" |
47924 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
47925 | COND_USE_SOSYMLINKS_1="" | |
47926 | fi | |
47927 | ||
eb730a0c JS |
47928 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
47929 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
47930 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
47931 | fi | |
47932 | ||
a848cd7e SC |
47933 | COND_USE_SOVERLINUX_1="#" |
47934 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
47935 | COND_USE_SOVERLINUX_1="" | |
47936 | fi | |
47937 | ||
47938 | COND_USE_SOVERSION_0="#" | |
47939 | if test "x$USE_SOVERSION" = "x0" ; then | |
47940 | COND_USE_SOVERSION_0="" | |
47941 | fi | |
47942 | ||
47943 | COND_USE_SOVERSOLARIS_1="#" | |
47944 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
47945 | COND_USE_SOVERSOLARIS_1="" | |
47946 | fi | |
47947 | ||
0b78747f MW |
47948 | COND_USE_THREADS_0="#" |
47949 | if test "x$USE_THREADS" = "x0" ; then | |
47950 | COND_USE_THREADS_0="" | |
47951 | fi | |
47952 | ||
47953 | COND_USE_THREADS_1="#" | |
47954 | if test "x$USE_THREADS" = "x1" ; then | |
47955 | COND_USE_THREADS_1="" | |
47956 | fi | |
47957 | ||
a13a7f89 RL |
47958 | COND_USE_XRC_1="#" |
47959 | if test "x$USE_XRC" = "x1" ; then | |
47960 | COND_USE_XRC_1="" | |
47961 | fi | |
47962 | ||
eb730a0c JS |
47963 | COND_WINDOWS_IMPLIB_1="#" |
47964 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
47965 | COND_WINDOWS_IMPLIB_1="" | |
47966 | fi | |
47967 | ||
a848cd7e SC |
47968 | COND_WITH_PLUGIN_SDL_1="#" |
47969 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
47970 | COND_WITH_PLUGIN_SDL_1="" | |
47971 | fi | |
47972 | ||
1e6eb025 VZ |
47973 | COND_WXUNIV_0="#" |
47974 | if test "x$WXUNIV" = "x0" ; then | |
47975 | COND_WXUNIV_0="" | |
47976 | fi | |
47977 | ||
a848cd7e SC |
47978 | COND_WXUNIV_1="#" |
47979 | if test "x$WXUNIV" = "x1" ; then | |
47980 | COND_WXUNIV_1="" | |
47981 | fi | |
47982 | ||
47983 | COND_WXUSE_EXPAT_BUILTIN="#" | |
47984 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
47985 | COND_WXUSE_EXPAT_BUILTIN="" | |
47986 | fi | |
47987 | ||
47988 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
47989 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47990 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
47991 | fi | |
47992 | ||
47993 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
47994 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47995 | COND_WXUSE_LIBPNG_BUILTIN="" | |
47996 | fi | |
47997 | ||
47998 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
47999 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48000 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
48001 | fi | |
48002 | ||
48003 | COND_WXUSE_ODBC_BUILTIN="#" | |
48004 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
48005 | COND_WXUSE_ODBC_BUILTIN="" | |
48006 | fi | |
48007 | ||
48008 | COND_WXUSE_REGEX_BUILTIN="#" | |
48009 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
48010 | COND_WXUSE_REGEX_BUILTIN="" | |
48011 | fi | |
48012 | ||
48013 | COND_WXUSE_ZLIB_BUILTIN="#" | |
48014 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
48015 | COND_WXUSE_ZLIB_BUILTIN="" | |
48016 | fi | |
48017 | ||
48018 | ||
48019 | ||
810b94f0 MW |
48020 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
48021 | { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5 | |
48022 | echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;} | |
48023 | { (exit 1); exit 1; }; } | |
48024 | fi | |
48025 | ||
2057db16 VS |
48026 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
48027 | { { 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 | |
48028 | 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;} | |
48029 | { (exit 1); exit 1; }; } | |
48030 | fi | |
48031 | ||
a848cd7e | 48032 | |
ceec2216 RL |
48033 | if test "$wxUSE_SHARED" = "yes"; then |
48034 | ||
48035 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
48036 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
48037 | ||
5b674b9d DE |
48038 | case "${host}" in |
48039 | *-pc-os2_emx | *-pc-os2-emx ) | |
48040 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48041 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48042 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
48043 | cp -p ${srcdir}/src/os2/dllar.sh . | |
48044 | ;; | |
48045 | esac | |
ceec2216 RL |
48046 | else |
48047 | ||
48048 | EXE_LINKER="$CXX -o" | |
48049 | ||
48050 | fi | |
69120ee4 VZ |
48051 | if test "$wxUSE_OMF" = "yes"; then |
48052 | case "${host}" in | |
48053 | *-pc-os2_emx | *-pc-os2-emx ) | |
48054 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
48055 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48056 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48057 | ;; | |
48058 | esac | |
48059 | fi | |
a848cd7e | 48060 | |
c08ebc62 | 48061 | if test $GCC_PCH = 1 ; then |
254e8e29 | 48062 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 48063 | fi |
a848cd7e | 48064 | |
5ff751d6 | 48065 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
48066 | |
48067 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
48068 | ||
48069 | ||
48070 | ||
48071 | ||
48072 | ||
48073 | ||
48074 | ||
48075 | ||
48076 | ||
48077 | ||
48078 | ||
48079 | ||
48080 | ||
48081 | ||
48082 | ||
48083 | ||
48084 | ||
48085 | ||
48086 | ||
48087 | ||
48088 | ||
48089 | ||
48090 | ||
48091 | ||
48092 | ||
48093 | ||
48094 | ||
48095 | ||
48096 | ||
48097 | ||
48098 | ||
48099 | ||
48100 | ||
48101 | ||
48102 | ||
48103 | ||
48104 | ||
48105 | ||
48106 | ||
48107 | ||
48108 | ||
48109 | ||
a848cd7e SC |
48110 | |
48111 | ||
48112 | ||
48113 | ||
48114 | ||
48115 | ||
48116 | ||
48117 | ||
48118 | ||
48119 | ||
48120 | ||
48121 | ||
a848cd7e SC |
48122 | |
48123 | ||
ddd14b14 | 48124 | |
370d2fd7 | 48125 | |
8ced02f6 | 48126 | |
a848cd7e SC |
48127 | |
48128 | ||
48129 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
48130 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 48131 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
48132 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
48133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48134 | else | |
48135 | cat >conftest.make <<\_ACEOF | |
48136 | all: | |
48137 | @echo 'ac_maketemp="$(MAKE)"' | |
48138 | _ACEOF | |
48139 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
48140 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
48141 | if test -n "$ac_maketemp"; then | |
48142 | eval ac_cv_prog_make_${ac_make}_set=yes | |
48143 | else | |
48144 | eval ac_cv_prog_make_${ac_make}_set=no | |
48145 | fi | |
48146 | rm -f conftest.make | |
48147 | fi | |
48148 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
48149 | echo "$as_me:$LINENO: result: yes" >&5 | |
48150 | echo "${ECHO_T}yes" >&6 | |
48151 | SET_MAKE= | |
48152 | else | |
48153 | echo "$as_me:$LINENO: result: no" >&5 | |
48154 | echo "${ECHO_T}no" >&6 | |
48155 | SET_MAKE="MAKE=${MAKE-make}" | |
48156 | fi | |
48157 | ||
48158 | ||
a848cd7e | 48159 | |
ceec2216 RL |
48160 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
48161 | ||
a848cd7e | 48162 | |
5c60e845 MW |
48163 | if test "$USE_WIN32" = 1; then |
48164 | ac_config_commands="$ac_config_commands | |
48165 | rcdefs.h | |
48166 | " | |
48167 | ||
48168 | fi | |
48169 | ||
ceec2216 | 48170 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 48171 | |
a848cd7e | 48172 | |
ceec2216 | 48173 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 48174 | |
ceec2216 RL |
48175 | |
48176 | ac_config_files="$ac_config_files version-script Makefile" | |
48177 | ||
48178 | ||
5c60e845 | 48179 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
48180 | |
48181 | ||
9103d280 | 48182 | |
1c14217d | 48183 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
48184 | if test "$wxUSE_GUI" = "yes"; then |
48185 | SUBDIRS="samples demos utils contrib" | |
48186 | else SUBDIRS="samples utils" | |
48187 | fi | |
48188 | ||
48189 | ||
48190 | ||
48191 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
48192 | if test "${with_cppunit_prefix+set}" = set; then | |
48193 | withval="$with_cppunit_prefix" | |
48194 | cppunit_config_prefix="$withval" | |
48195 | else | |
48196 | cppunit_config_prefix="" | |
48197 | fi; | |
48198 | ||
48199 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
48200 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
48201 | withval="$with_cppunit_exec_prefix" | |
48202 | cppunit_config_exec_prefix="$withval" | |
48203 | else | |
48204 | cppunit_config_exec_prefix="" | |
48205 | fi; | |
48206 | ||
48207 | if test x$cppunit_config_exec_prefix != x ; then | |
48208 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
48209 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48210 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
48211 | fi | |
48212 | fi | |
48213 | if test x$cppunit_config_prefix != x ; then | |
48214 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
48215 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48216 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
48217 | fi | |
48218 | fi | |
48219 | ||
48220 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
48221 | set dummy cppunit-config; ac_word=$2 | |
48222 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48223 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48224 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
48225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48226 | else | |
48227 | case $CPPUNIT_CONFIG in | |
48228 | [\\/]* | ?:[\\/]*) | |
48229 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
48230 | ;; | |
48231 | *) | |
48232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48233 | for as_dir in $PATH | |
48234 | do | |
48235 | IFS=$as_save_IFS | |
48236 | test -z "$as_dir" && as_dir=. | |
48237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48238 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48239 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
48240 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48241 | break 2 | |
48242 | fi | |
48243 | done | |
48244 | done | |
48245 | ||
48246 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
48247 | ;; | |
48248 | esac | |
48249 | fi | |
48250 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
48251 | ||
48252 | if test -n "$CPPUNIT_CONFIG"; then | |
48253 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
48254 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
48255 | else | |
48256 | echo "$as_me:$LINENO: result: no" >&5 | |
48257 | echo "${ECHO_T}no" >&6 | |
48258 | fi | |
48259 | ||
48260 | cppunit_version_min=1.8.0 | |
48261 | ||
48262 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
48263 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
48264 | no_cppunit="" | |
48265 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
48266 | no_cppunit=yes | |
48267 | else | |
48268 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
48269 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
48270 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
48271 | ||
48272 | cppunit_major_version=`echo $cppunit_version | \ | |
48273 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48274 | cppunit_minor_version=`echo $cppunit_version | \ | |
48275 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48276 | cppunit_micro_version=`echo $cppunit_version | \ | |
48277 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48278 | ||
48279 | cppunit_major_min=`echo $cppunit_version_min | \ | |
48280 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48281 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
48282 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48283 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
48284 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48285 | ||
48286 | cppunit_version_proper=`expr \ | |
48287 | $cppunit_major_version \> $cppunit_major_min \| \ | |
48288 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48289 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
48290 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48291 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
48292 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
48293 | ||
48294 | if test "$cppunit_version_proper" = "1" ; then | |
48295 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
48296 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
48297 | else | |
48298 | echo "$as_me:$LINENO: result: no" >&5 | |
48299 | echo "${ECHO_T}no" >&6 | |
48300 | no_cppunit=yes | |
48301 | fi | |
48302 | fi | |
48303 | ||
48304 | if test "x$no_cppunit" = x ; then | |
c2218763 | 48305 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
48306 | else |
48307 | CPPUNIT_CFLAGS="" | |
48308 | CPPUNIT_LIBS="" | |
c2218763 | 48309 | : |
a848cd7e SC |
48310 | fi |
48311 | ||
48312 | ||
48313 | ||
48314 | ||
48315 | ||
48316 | for subdir in `echo $SUBDIRS`; do | |
48317 | if test -d ${srcdir}/${subdir} ; then | |
48318 | if test "$wxUSE_GUI" = "yes"; then | |
48319 | if test ${subdir} = "samples"; then | |
48320 | makefiles="samples/Makefile.in $makefiles" | |
48321 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
48322 | if test -d $srcdir/samples/$sample; then | |
48323 | makefiles="samples/$sample/Makefile.in $makefiles" | |
48324 | fi | |
48325 | done | |
9c112555 MW |
48326 | else |
48327 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
48328 | eval "disabled=\$$disabled_var" | |
48329 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
48330 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
48331 | fi |
48332 | else if test ${subdir} = "samples"; then | |
48333 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
48334 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
48335 | makefiles="" |
48336 | for util in HelpGen tex2rtf ; do | |
48337 | if test -d $srcdir/utils/$util ; then | |
48338 | makefiles="utils/$util/Makefile.in \ | |
48339 | utils/$util/src/Makefile.in \ | |
48340 | $makefiles" | |
48341 | fi | |
48342 | done | |
a848cd7e SC |
48343 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
48344 | fi | |
48345 | fi | |
48346 | ||
48347 | for mkin in $makefiles ; do | |
48348 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
48349 | ac_config_files="$ac_config_files $mk" | |
48350 | ||
48351 | done | |
48352 | fi | |
48353 | done | |
1c14217d | 48354 | fi |
a848cd7e SC |
48355 | cat >confcache <<\_ACEOF |
48356 | # This file is a shell script that caches the results of configure | |
48357 | # tests run on this system so they can be shared between configure | |
48358 | # scripts and configure runs, see configure's option --config-cache. | |
48359 | # It is not useful on other systems. If it contains results you don't | |
48360 | # want to keep, you may remove or edit it. | |
48361 | # | |
48362 | # config.status only pays attention to the cache file if you give it | |
48363 | # the --recheck option to rerun configure. | |
48364 | # | |
48365 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
48366 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
48367 | # following values. | |
48368 | ||
48369 | _ACEOF | |
48370 | ||
48371 | # The following way of writing the cache mishandles newlines in values, | |
48372 | # but we know of no workaround that is simple, portable, and efficient. | |
48373 | # So, don't put newlines in cache variables' values. | |
48374 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
48375 | # and sets the high bit in the cache file unless we assign to the vars. | |
48376 | { | |
48377 | (set) 2>&1 | | |
48378 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
48379 | *ac_space=\ *) | |
48380 | # `set' does not quote correctly, so add quotes (double-quote | |
48381 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
48382 | sed -n \ | |
ac1cb8d3 VS |
48383 | "s/'/'\\\\''/g; |
48384 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
48385 | ;; |
48386 | *) | |
48387 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
48388 | sed -n \ | |
ac1cb8d3 | 48389 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
48390 | ;; |
48391 | esac; | |
48392 | } | | |
48393 | sed ' | |
48394 | t clear | |
48395 | : clear | |
48396 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
48397 | t end | |
48398 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
48399 | : end' >>confcache | |
48400 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
48401 | if test -w $cache_file; then | |
48402 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
48403 | cat confcache >$cache_file | |
48404 | else | |
48405 | echo "not updating unwritable cache $cache_file" | |
48406 | fi | |
48407 | fi | |
48408 | rm -f confcache | |
48409 | ||
48410 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
48411 | # Let make expand exec_prefix. | |
48412 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
48413 | ||
48414 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
48415 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
48416 | # trailing colons and then remove the whole line if VPATH becomes empty | |
48417 | # (actually we leave an empty line to preserve line numbers). | |
48418 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 48419 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
48420 | s/:*\$(srcdir):*/:/; |
48421 | s/:*\${srcdir}:*/:/; | |
48422 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 48423 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 48424 | s/:*$//; |
ac1cb8d3 | 48425 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
48426 | }' |
48427 | fi | |
48428 | ||
48429 | DEFS=-DHAVE_CONFIG_H | |
48430 | ||
48431 | ac_libobjs= | |
48432 | ac_ltlibobjs= | |
48433 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
48434 | # 1. Remove the extension, and $U if already installed. | |
48435 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 48436 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
48437 | # 2. Add them. |
48438 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
48439 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
48440 | done | |
48441 | LIBOBJS=$ac_libobjs | |
48442 | ||
48443 | LTLIBOBJS=$ac_ltlibobjs | |
48444 | ||
48445 | ||
48446 | ||
48447 | : ${CONFIG_STATUS=./config.status} | |
48448 | ac_clean_files_save=$ac_clean_files | |
48449 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
48450 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
48451 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
48452 | cat >$CONFIG_STATUS <<_ACEOF | |
48453 | #! $SHELL | |
48454 | # Generated by $as_me. | |
48455 | # Run this file to recreate the current configuration. | |
48456 | # Compiler output produced by configure, useful for debugging | |
48457 | # configure, is in config.log if it exists. | |
48458 | ||
48459 | debug=false | |
48460 | ac_cs_recheck=false | |
48461 | ac_cs_silent=false | |
48462 | SHELL=\${CONFIG_SHELL-$SHELL} | |
48463 | _ACEOF | |
48464 | ||
48465 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48466 | ## --------------------- ## | |
48467 | ## M4sh Initialization. ## | |
48468 | ## --------------------- ## | |
48469 | ||
48470 | # Be Bourne compatible | |
48471 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
48472 | emulate sh | |
48473 | NULLCMD=: | |
48474 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
48475 | # is contrary to our usage. Disable this feature. | |
48476 | alias -g '${1+"$@"}'='"$@"' | |
48477 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
48478 | set -o posix | |
48479 | fi | |
ac1cb8d3 | 48480 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
48481 | |
48482 | # Support unset when possible. | |
ac1cb8d3 | 48483 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
48484 | as_unset=unset |
48485 | else | |
48486 | as_unset=false | |
48487 | fi | |
48488 | ||
48489 | ||
48490 | # Work around bugs in pre-3.0 UWIN ksh. | |
48491 | $as_unset ENV MAIL MAILPATH | |
48492 | PS1='$ ' | |
48493 | PS2='> ' | |
48494 | PS4='+ ' | |
48495 | ||
48496 | # NLS nuisances. | |
48497 | for as_var in \ | |
48498 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
48499 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
48500 | LC_TELEPHONE LC_TIME | |
48501 | do | |
ac1cb8d3 | 48502 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48503 | eval $as_var=C; export $as_var |
48504 | else | |
48505 | $as_unset $as_var | |
48506 | fi | |
48507 | done | |
48508 | ||
48509 | # Required to use basename. | |
48510 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48511 | as_expr=expr | |
48512 | else | |
48513 | as_expr=false | |
48514 | fi | |
48515 | ||
48516 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
48517 | as_basename=basename | |
48518 | else | |
48519 | as_basename=false | |
48520 | fi | |
48521 | ||
48522 | ||
48523 | # Name of the executable. | |
48524 | as_me=`$as_basename "$0" || | |
48525 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
48526 | X"$0" : 'X\(//\)$' \| \ | |
48527 | X"$0" : 'X\(/\)$' \| \ | |
48528 | . : '\(.\)' 2>/dev/null || | |
48529 | echo X/"$0" | | |
48530 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
48531 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
48532 | /^X\/\(\/\).*/{ s//\1/; q; } | |
48533 | s/.*/./; q'` | |
48534 | ||
48535 | ||
48536 | # PATH needs CR, and LINENO needs CR and PATH. | |
48537 | # Avoid depending upon Character Ranges. | |
48538 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
48539 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
48540 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
48541 | as_cr_digits='0123456789' | |
48542 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
48543 | ||
48544 | # The user is always right. | |
48545 | if test "${PATH_SEPARATOR+set}" != set; then | |
48546 | echo "#! /bin/sh" >conf$$.sh | |
48547 | echo "exit 0" >>conf$$.sh | |
48548 | chmod +x conf$$.sh | |
48549 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48550 | PATH_SEPARATOR=';' | |
48551 | else | |
48552 | PATH_SEPARATOR=: | |
48553 | fi | |
48554 | rm -f conf$$.sh | |
48555 | fi | |
48556 | ||
48557 | ||
48558 | as_lineno_1=$LINENO | |
48559 | as_lineno_2=$LINENO | |
48560 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48561 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48562 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
48563 | # Find who we are. Look in the path if we contain no path at all | |
48564 | # relative or not. | |
48565 | case $0 in | |
48566 | *[\\/]* ) as_myself=$0 ;; | |
48567 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48568 | for as_dir in $PATH | |
48569 | do | |
48570 | IFS=$as_save_IFS | |
48571 | test -z "$as_dir" && as_dir=. | |
48572 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
48573 | done | |
48574 | ||
48575 | ;; | |
48576 | esac | |
48577 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
48578 | # in which case we are not to be found in the path. | |
48579 | if test "x$as_myself" = x; then | |
48580 | as_myself=$0 | |
48581 | fi | |
48582 | if test ! -f "$as_myself"; then | |
48583 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
48584 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
48585 | { (exit 1); exit 1; }; } | |
48586 | fi | |
48587 | case $CONFIG_SHELL in | |
48588 | '') | |
48589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48590 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
48591 | do | |
48592 | IFS=$as_save_IFS | |
48593 | test -z "$as_dir" && as_dir=. | |
48594 | for as_base in sh bash ksh sh5; do | |
48595 | case $as_dir in | |
48596 | /*) | |
48597 | if ("$as_dir/$as_base" -c ' | |
48598 | as_lineno_1=$LINENO | |
48599 | as_lineno_2=$LINENO | |
48600 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48601 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48602 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
48603 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
48604 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
48605 | CONFIG_SHELL=$as_dir/$as_base | |
48606 | export CONFIG_SHELL | |
48607 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
48608 | fi;; | |
48609 | esac | |
48610 | done | |
48611 | done | |
48612 | ;; | |
48613 | esac | |
48614 | ||
48615 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
48616 | # uniformly replaced by the line number. The first 'sed' inserts a | |
48617 | # line-number line before each line; the second 'sed' does the real | |
48618 | # work. The second script uses 'N' to pair each line-number line | |
48619 | # with the numbered line, and appends trailing '-' during | |
48620 | # substitution so that $LINENO is not a special case at line end. | |
48621 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
48622 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
48623 | sed '=' <$as_myself | | |
48624 | sed ' | |
48625 | N | |
48626 | s,$,-, | |
48627 | : loop | |
48628 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
48629 | t loop | |
48630 | s,-$,, | |
48631 | s,^['$as_cr_digits']*\n,, | |
48632 | ' >$as_me.lineno && | |
48633 | chmod +x $as_me.lineno || | |
48634 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
48635 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
48636 | { (exit 1); exit 1; }; } | |
48637 | ||
48638 | # Don't try to exec as it changes $[0], causing all sort of problems | |
48639 | # (the dirname of $[0] is not the place where we might find the | |
48640 | # original and so on. Autoconf is especially sensible to this). | |
48641 | . ./$as_me.lineno | |
48642 | # Exit status is that of the last command. | |
48643 | exit | |
48644 | } | |
48645 | ||
48646 | ||
48647 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
48648 | *c*,-n*) ECHO_N= ECHO_C=' | |
48649 | ' ECHO_T=' ' ;; | |
48650 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
48651 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
48652 | esac | |
48653 | ||
48654 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48655 | as_expr=expr | |
48656 | else | |
48657 | as_expr=false | |
48658 | fi | |
48659 | ||
48660 | rm -f conf$$ conf$$.exe conf$$.file | |
48661 | echo >conf$$.file | |
48662 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
48663 | # We could just check for DJGPP; but this test a) works b) is more generic | |
48664 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
48665 | if test -f conf$$.exe; then | |
48666 | # Don't use ln at all; we don't have any links | |
48667 | as_ln_s='cp -p' | |
48668 | else | |
48669 | as_ln_s='ln -s' | |
48670 | fi | |
48671 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
48672 | as_ln_s=ln | |
48673 | else | |
48674 | as_ln_s='cp -p' | |
48675 | fi | |
48676 | rm -f conf$$ conf$$.exe conf$$.file | |
48677 | ||
48678 | if mkdir -p . 2>/dev/null; then | |
48679 | as_mkdir_p=: | |
48680 | else | |
ac1cb8d3 | 48681 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
48682 | as_mkdir_p=false |
48683 | fi | |
48684 | ||
48685 | as_executable_p="test -f" | |
48686 | ||
48687 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 48688 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48689 | |
48690 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 48691 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48692 | |
48693 | ||
48694 | # IFS | |
48695 | # We need space, tab and new line, in precisely that order. | |
48696 | as_nl=' | |
48697 | ' | |
48698 | IFS=" $as_nl" | |
48699 | ||
48700 | # CDPATH. | |
48701 | $as_unset CDPATH | |
48702 | ||
48703 | exec 6>&1 | |
48704 | ||
48705 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
48706 | # report actual input values of CONFIG_FILES etc. instead of their | |
48707 | # values after options handling. Logging --version etc. is OK. | |
48708 | exec 5>>config.log | |
48709 | { | |
48710 | echo | |
48711 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
48712 | ## Running $as_me. ## | |
48713 | _ASBOX | |
48714 | } >&5 | |
48715 | cat >&5 <<_CSEOF | |
48716 | ||
dd8df4fc | 48717 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 48718 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
48719 | |
48720 | CONFIG_FILES = $CONFIG_FILES | |
48721 | CONFIG_HEADERS = $CONFIG_HEADERS | |
48722 | CONFIG_LINKS = $CONFIG_LINKS | |
48723 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
48724 | $ $0 $@ | |
48725 | ||
48726 | _CSEOF | |
48727 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
48728 | echo >&5 | |
48729 | _ACEOF | |
48730 | ||
48731 | # Files that config.status was made for. | |
48732 | if test -n "$ac_config_files"; then | |
48733 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
48734 | fi | |
48735 | ||
48736 | if test -n "$ac_config_headers"; then | |
48737 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
48738 | fi | |
48739 | ||
48740 | if test -n "$ac_config_links"; then | |
48741 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
48742 | fi | |
48743 | ||
48744 | if test -n "$ac_config_commands"; then | |
48745 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
48746 | fi | |
48747 | ||
48748 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48749 | ||
48750 | ac_cs_usage="\ | |
48751 | \`$as_me' instantiates files from templates according to the | |
48752 | current configuration. | |
48753 | ||
48754 | Usage: $0 [OPTIONS] [FILE]... | |
48755 | ||
48756 | -h, --help print this help, then exit | |
48757 | -V, --version print version number, then exit | |
48758 | -q, --quiet do not print progress messages | |
48759 | -d, --debug don't remove temporary files | |
48760 | --recheck update $as_me by reconfiguring in the same conditions | |
48761 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 48762 | instantiate the configuration file FILE |
a848cd7e | 48763 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 48764 | instantiate the configuration header FILE |
a848cd7e SC |
48765 | |
48766 | Configuration files: | |
48767 | $config_files | |
48768 | ||
48769 | Configuration headers: | |
48770 | $config_headers | |
48771 | ||
48772 | Configuration commands: | |
48773 | $config_commands | |
48774 | ||
48775 | Report bugs to <bug-autoconf@gnu.org>." | |
48776 | _ACEOF | |
48777 | ||
48778 | cat >>$CONFIG_STATUS <<_ACEOF | |
48779 | ac_cs_version="\\ | |
dd8df4fc | 48780 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 48781 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
48782 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
48783 | ||
ac1cb8d3 | 48784 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
48785 | This config.status script is free software; the Free Software Foundation |
48786 | gives unlimited permission to copy, distribute and modify it." | |
48787 | srcdir=$srcdir | |
48788 | INSTALL="$INSTALL" | |
48789 | _ACEOF | |
48790 | ||
48791 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48792 | # If no file are specified by the user, then we need to provide default | |
48793 | # value. By we need to know if files were specified by the user. | |
48794 | ac_need_defaults=: | |
48795 | while test $# != 0 | |
48796 | do | |
48797 | case $1 in | |
48798 | --*=*) | |
48799 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
48800 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
48801 | ac_shift=: | |
48802 | ;; | |
48803 | -*) | |
48804 | ac_option=$1 | |
48805 | ac_optarg=$2 | |
48806 | ac_shift=shift | |
48807 | ;; | |
48808 | *) # This is not an option, so the user has probably given explicit | |
48809 | # arguments. | |
48810 | ac_option=$1 | |
48811 | ac_need_defaults=false;; | |
48812 | esac | |
48813 | ||
48814 | case $ac_option in | |
48815 | # Handling of the options. | |
48816 | _ACEOF | |
48817 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48818 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
48819 | ac_cs_recheck=: ;; | |
48820 | --version | --vers* | -V ) | |
48821 | echo "$ac_cs_version"; exit 0 ;; | |
48822 | --he | --h) | |
48823 | # Conflict between --help and --header | |
48824 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
48825 | Try \`$0 --help' for more information." >&5 | |
48826 | echo "$as_me: error: ambiguous option: $1 | |
48827 | Try \`$0 --help' for more information." >&2;} | |
48828 | { (exit 1); exit 1; }; };; | |
48829 | --help | --hel | -h ) | |
48830 | echo "$ac_cs_usage"; exit 0 ;; | |
48831 | --debug | --d* | -d ) | |
48832 | debug=: ;; | |
48833 | --file | --fil | --fi | --f ) | |
48834 | $ac_shift | |
48835 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
48836 | ac_need_defaults=false;; | |
48837 | --header | --heade | --head | --hea ) | |
48838 | $ac_shift | |
48839 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
48840 | ac_need_defaults=false;; | |
48841 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
48842 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
48843 | ac_cs_silent=: ;; | |
48844 | ||
48845 | # This is an error. | |
48846 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
48847 | Try \`$0 --help' for more information." >&5 | |
48848 | echo "$as_me: error: unrecognized option: $1 | |
48849 | Try \`$0 --help' for more information." >&2;} | |
48850 | { (exit 1); exit 1; }; } ;; | |
48851 | ||
48852 | *) ac_config_targets="$ac_config_targets $1" ;; | |
48853 | ||
48854 | esac | |
48855 | shift | |
48856 | done | |
48857 | ||
48858 | ac_configure_extra_args= | |
48859 | ||
48860 | if $ac_cs_silent; then | |
48861 | exec 6>/dev/null | |
48862 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
48863 | fi | |
48864 | ||
48865 | _ACEOF | |
48866 | cat >>$CONFIG_STATUS <<_ACEOF | |
48867 | if \$ac_cs_recheck; then | |
48868 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
48869 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
48870 | fi | |
48871 | ||
48872 | _ACEOF | |
48873 | ||
48874 | cat >>$CONFIG_STATUS <<_ACEOF | |
48875 | # | |
48876 | # INIT-COMMANDS section. | |
48877 | # | |
48878 | ||
5c60e845 MW |
48879 | |
48880 | CPP="$CPP" | |
48881 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
48882 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
48883 | ||
48884 | ||
ceec2216 RL |
48885 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
48886 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
48887 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
48888 | LN_S="${LN_S}" | |
a848cd7e SC |
48889 | |
48890 | ||
48891 | _ACEOF | |
48892 | ||
48893 | ||
48894 | ||
48895 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48896 | for ac_config_target in $ac_config_targets | |
48897 | do | |
48898 | case "$ac_config_target" in | |
48899 | # Handling of arguments. | |
ceec2216 RL |
48900 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
48901 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
48902 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
48903 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
48904 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
5c60e845 | 48905 | "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; |
ceec2216 RL |
48906 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
48907 | "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 |
48908 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
48909 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
48910 | { (exit 1); exit 1; }; };; | |
48911 | esac | |
48912 | done | |
48913 | ||
48914 | # If the user did not use the arguments to specify the items to instantiate, | |
48915 | # then the envvar interface is used. Set only those that are not. | |
48916 | # We use the long form for the default assignment because of an extremely | |
48917 | # bizarre bug on SunOS 4.1.3. | |
48918 | if $ac_need_defaults; then | |
48919 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
48920 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
48921 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
48922 | fi | |
48923 | ||
48924 | # Have a temporary directory for convenience. Make it in the build tree | |
48925 | # simply because there is no reason to put it here, and in addition, | |
48926 | # creating and moving files from /tmp can sometimes cause problems. | |
48927 | # Create a temporary directory, and hook for its removal unless debugging. | |
48928 | $debug || | |
48929 | { | |
48930 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
48931 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
48932 | } | |
48933 | ||
48934 | # Create a (secure) tmp directory for tmp files. | |
48935 | ||
48936 | { | |
48937 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
48938 | test -n "$tmp" && test -d "$tmp" | |
48939 | } || | |
48940 | { | |
48941 | tmp=./confstat$$-$RANDOM | |
48942 | (umask 077 && mkdir $tmp) | |
48943 | } || | |
48944 | { | |
48945 | echo "$me: cannot create a temporary directory in ." >&2 | |
48946 | { (exit 1); exit 1; } | |
48947 | } | |
48948 | ||
48949 | _ACEOF | |
48950 | ||
48951 | cat >>$CONFIG_STATUS <<_ACEOF | |
48952 | ||
48953 | # | |
48954 | # CONFIG_FILES section. | |
48955 | # | |
48956 | ||
48957 | # No need to generate the scripts if there are no CONFIG_FILES. | |
48958 | # This happens for instance when ./config.status config.h | |
48959 | if test -n "\$CONFIG_FILES"; then | |
48960 | # Protect against being on the right side of a sed subst in config.status. | |
48961 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
48962 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
48963 | s,@SHELL@,$SHELL,;t t | |
48964 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
48965 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
48966 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
48967 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
48968 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
48969 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
48970 | s,@exec_prefix@,$exec_prefix,;t t | |
48971 | s,@prefix@,$prefix,;t t | |
48972 | s,@program_transform_name@,$program_transform_name,;t t | |
48973 | s,@bindir@,$bindir,;t t | |
48974 | s,@sbindir@,$sbindir,;t t | |
48975 | s,@libexecdir@,$libexecdir,;t t | |
48976 | s,@datadir@,$datadir,;t t | |
48977 | s,@sysconfdir@,$sysconfdir,;t t | |
48978 | s,@sharedstatedir@,$sharedstatedir,;t t | |
48979 | s,@localstatedir@,$localstatedir,;t t | |
48980 | s,@libdir@,$libdir,;t t | |
48981 | s,@includedir@,$includedir,;t t | |
48982 | s,@oldincludedir@,$oldincludedir,;t t | |
48983 | s,@infodir@,$infodir,;t t | |
48984 | s,@mandir@,$mandir,;t t | |
48985 | s,@build_alias@,$build_alias,;t t | |
48986 | s,@host_alias@,$host_alias,;t t | |
48987 | s,@target_alias@,$target_alias,;t t | |
48988 | s,@DEFS@,$DEFS,;t t | |
48989 | s,@ECHO_C@,$ECHO_C,;t t | |
48990 | s,@ECHO_N@,$ECHO_N,;t t | |
48991 | s,@ECHO_T@,$ECHO_T,;t t | |
48992 | s,@LIBS@,$LIBS,;t t | |
48993 | s,@build@,$build,;t t | |
48994 | s,@build_cpu@,$build_cpu,;t t | |
48995 | s,@build_vendor@,$build_vendor,;t t | |
48996 | s,@build_os@,$build_os,;t t | |
48997 | s,@host@,$host,;t t | |
48998 | s,@host_cpu@,$host_cpu,;t t | |
48999 | s,@host_vendor@,$host_vendor,;t t | |
49000 | s,@host_os@,$host_os,;t t | |
49001 | s,@target@,$target,;t t | |
49002 | s,@target_cpu@,$target_cpu,;t t | |
49003 | s,@target_vendor@,$target_vendor,;t t | |
49004 | s,@target_os@,$target_os,;t t | |
49005 | s,@CC@,$CC,;t t | |
49006 | s,@CFLAGS@,$CFLAGS,;t t | |
49007 | s,@LDFLAGS@,$LDFLAGS,;t t | |
49008 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
49009 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
49010 | s,@EXEEXT@,$EXEEXT,;t t | |
49011 | s,@OBJEXT@,$OBJEXT,;t t | |
49012 | s,@CPP@,$CPP,;t t | |
49013 | s,@EGREP@,$EGREP,;t t | |
49014 | s,@CXX@,$CXX,;t t | |
49015 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
49016 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
49017 | s,@RANLIB@,$RANLIB,;t t | |
49018 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
49019 | s,@AR@,$AR,;t t | |
8c80d384 | 49020 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
49021 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
49022 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
49023 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
49024 | s,@STRIP@,$STRIP,;t t | |
8c80d384 | 49025 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
8ced02f6 DE |
49026 | s,@WINDRES@,$WINDRES,;t t |
49027 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
8c80d384 DE |
49028 | s,@DLLTOOL@,$DLLTOOL,;t t |
49029 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
49030 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
49031 | s,@LN_S@,$LN_S,;t t | |
bcaab0f9 | 49032 | s,@LNDIR@,$LNDIR,;t t |
a848cd7e SC |
49033 | s,@CXXCPP@,$CXXCPP,;t t |
49034 | s,@subdirs@,$subdirs,;t t | |
49035 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
49036 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
49037 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
49038 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
49039 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
49040 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
49041 | s,@X_LIBS@,$X_LIBS,;t t | |
49042 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
49043 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
49044 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
49045 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
49046 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
49047 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
49048 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
8ced02f6 | 49049 | s,@REZ@,$REZ,;t t |
a848cd7e SC |
49050 | s,@DEREZ@,$DEREZ,;t t |
49051 | s,@SETFILE@,$SETFILE,;t t | |
49052 | s,@LIBICONV@,$LIBICONV,;t t | |
49053 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
49054 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
49055 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
49056 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
49057 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
49058 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
3565d135 RR |
49059 | s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t |
49060 | s,@HILDON_LIBS@,$HILDON_LIBS,;t t | |
dae87f93 RN |
49061 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
49062 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
49063 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
49064 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
49065 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
49066 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
49067 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
49068 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
49069 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
49070 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
49071 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
49072 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
49073 | s,@VENDOR@,$VENDOR,;t t | |
49074 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
49075 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
49076 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
49077 | s,@WXUNIV@,$WXUNIV,;t t |
49078 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
49079 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
49080 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
49081 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
49082 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
49083 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
49084 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
49085 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
49086 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
49087 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 49088 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
3565d135 | 49089 | s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t |
a848cd7e SC |
49090 | s,@UNICODE@,$UNICODE,;t t |
49091 | s,@BUILD@,$BUILD,;t t | |
49092 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
49093 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
49094 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
49095 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
49096 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
49097 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
49098 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
49099 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
49100 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
49101 | s,@SET_MAKE@,$SET_MAKE,;t t | |
49102 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
49103 | s,@NM@,$NM,;t t |
49104 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
49105 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
49106 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
49107 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
49108 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
49109 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
49110 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 49111 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
49112 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
49113 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 49114 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
49115 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
49116 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
49117 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
49118 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
49119 | s,@LIBEXT@,$LIBEXT,;t t | |
49120 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
49121 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 49122 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
49123 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
49124 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
49125 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
49126 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
49127 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
49128 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 49129 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
49130 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
49131 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
49132 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 49133 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
49134 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
49135 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
49136 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49137 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
49138 | s,@GCC_PCH@,$GCC_PCH,;t t | |
49139 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
49140 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
49141 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
49142 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
49143 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
49144 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
49145 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
49146 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
49147 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
49148 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
49149 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
49150 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
49151 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
49152 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
49153 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
49154 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
49155 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
49156 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 49157 | 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 | 49158 | 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 | 49159 | 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 | 49160 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 49161 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49162 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
49163 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 49164 | 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 | 49165 | 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 | 49166 | 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 | 49167 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 49168 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
49169 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
49170 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
49171 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
49172 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
49173 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
49174 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 49175 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t |
a848cd7e SC |
49176 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
49177 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 49178 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
49179 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
49180 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
49181 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 49182 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 49183 | 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 |
49184 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
49185 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
49186 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
49187 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 49188 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 49189 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
83d8eb47 | 49190 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
49191 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
49192 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
49193 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
49194 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
49195 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
49196 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
49197 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
49198 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
49199 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
49200 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
49201 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
49202 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
49203 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49204 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49205 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 49206 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49207 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
49208 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
49209 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
49210 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
49211 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
49212 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 49213 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 49214 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 49215 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 49216 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
49217 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
49218 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
49219 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
49220 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
49221 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
49222 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
49223 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
49224 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
49225 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
49226 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
49227 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
49228 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
49229 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
49230 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
49231 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49232 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
49233 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
49234 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
49235 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
49236 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
49237 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
49238 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49239 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
49240 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
49241 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
49242 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
49243 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
49244 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
49245 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
49246 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
49247 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
49248 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
49249 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49250 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49251 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
49252 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
49253 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
a848cd7e | 49254 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
49255 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
49256 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 49257 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 49258 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
49259 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
49260 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
49261 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
49262 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
49263 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 49264 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 49265 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 49266 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 49267 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
49268 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
49269 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
49270 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
49271 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
49272 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
49273 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
49274 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
49275 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 49276 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
49277 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
49278 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
49279 | s,@USE_GUI@,$USE_GUI,;t t |
49280 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
49281 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
49282 | s,@TOOLKIT@,$TOOLKIT,;t t | |
49283 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 49284 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 49285 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e | 49286 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
49287 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
49288 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
49289 | s,@WX_VERSION@,$WX_VERSION,;t t | |
49290 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
49291 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
49292 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
5ff751d6 VZ |
49293 | s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t |
49294 | s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t | |
49295 | s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t | |
49296 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
a848cd7e SC |
49297 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t |
49298 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
004ee6da | 49299 | s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t |
ceec2216 | 49300 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 49301 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
49302 | s,@DISTDIR@,$DISTDIR,;t t |
49303 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
49304 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
49305 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
49306 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
49307 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
004ee6da | 49308 | s,@RESCOMP@,$RESCOMP,;t t |
a848cd7e SC |
49309 | s,@RESFLAGS@,$RESFLAGS,;t t |
49310 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
49311 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
49312 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
49313 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
8ced02f6 | 49314 | s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t |
a848cd7e | 49315 | s,@MACSETFILE@,$MACSETFILE,;t t |
a848cd7e | 49316 | s,@GCC@,$GCC,;t t |
a848cd7e SC |
49317 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
49318 | s,@LIBOBJS@,$LIBOBJS,;t t | |
49319 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
49320 | CEOF | |
49321 | ||
49322 | _ACEOF | |
49323 | ||
49324 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49325 | # Split the substitutions into bite-sized pieces for seds with | |
49326 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
49327 | ac_max_sed_lines=48 | |
49328 | ac_sed_frag=1 # Number of current file. | |
49329 | ac_beg=1 # First line for current file. | |
49330 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
49331 | ac_more_lines=: | |
49332 | ac_sed_cmds= | |
49333 | while $ac_more_lines; do | |
49334 | if test $ac_beg -gt 1; then | |
49335 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49336 | else | |
49337 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49338 | fi | |
49339 | if test ! -s $tmp/subs.frag; then | |
49340 | ac_more_lines=false | |
49341 | else | |
49342 | # The purpose of the label and of the branching condition is to | |
49343 | # speed up the sed processing (if there are no `@' at all, there | |
49344 | # is no need to browse any of the substitutions). | |
49345 | # These are the two extra sed commands mentioned above. | |
49346 | (echo ':t | |
49347 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
49348 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 49349 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 49350 | else |
ac1cb8d3 | 49351 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
49352 | fi |
49353 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
49354 | ac_beg=$ac_end | |
49355 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
49356 | fi | |
49357 | done | |
49358 | if test -z "$ac_sed_cmds"; then | |
49359 | ac_sed_cmds=cat | |
49360 | fi | |
49361 | fi # test -n "$CONFIG_FILES" | |
49362 | ||
49363 | _ACEOF | |
49364 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49365 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
49366 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49367 | case $ac_file in | |
49368 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49369 | cat >$tmp/stdin |
49370 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49371 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49372 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49373 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49374 | * ) ac_file_in=$ac_file.in ;; |
49375 | esac | |
49376 | ||
49377 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
49378 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49379 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49380 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49381 | X"$ac_file" : 'X\(//\)$' \| \ | |
49382 | X"$ac_file" : 'X\(/\)' \| \ | |
49383 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49384 | echo X"$ac_file" | |
49385 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49386 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49387 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49388 | /^X\(\/\).*/{ s//\1/; q; } | |
49389 | s/.*/./; q'` | |
49390 | { if $as_mkdir_p; then | |
49391 | mkdir -p "$ac_dir" | |
49392 | else | |
49393 | as_dir="$ac_dir" | |
49394 | as_dirs= | |
49395 | while test ! -d "$as_dir"; do | |
49396 | as_dirs="$as_dir $as_dirs" | |
49397 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49398 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49399 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49400 | X"$as_dir" : 'X\(//\)$' \| \ | |
49401 | X"$as_dir" : 'X\(/\)' \| \ | |
49402 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49403 | echo X"$as_dir" | |
49404 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49405 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49406 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49407 | /^X\(\/\).*/{ s//\1/; q; } | |
49408 | s/.*/./; q'` | |
49409 | done | |
49410 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49411 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49412 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49413 | { (exit 1); exit 1; }; }; } | |
49414 | ||
49415 | ac_builddir=. | |
49416 | ||
49417 | if test "$ac_dir" != .; then | |
49418 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49419 | # A "../" for each directory in $ac_dir_suffix. | |
49420 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49421 | else | |
49422 | ac_dir_suffix= ac_top_builddir= | |
49423 | fi | |
49424 | ||
49425 | case $srcdir in | |
49426 | .) # No --srcdir option. We are building in place. | |
49427 | ac_srcdir=. | |
49428 | if test -z "$ac_top_builddir"; then | |
49429 | ac_top_srcdir=. | |
49430 | else | |
49431 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49432 | fi ;; | |
49433 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49434 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49435 | ac_top_srcdir=$srcdir ;; | |
49436 | *) # Relative path. | |
49437 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49438 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49439 | esac | |
ac1cb8d3 VS |
49440 | |
49441 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49442 | # the directories may not exist. | |
49443 | case `pwd` in | |
49444 | .) ac_abs_builddir="$ac_dir";; | |
49445 | *) | |
49446 | case "$ac_dir" in | |
49447 | .) ac_abs_builddir=`pwd`;; | |
49448 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49449 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49450 | esac;; | |
49451 | esac | |
49452 | case $ac_abs_builddir in | |
49453 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49454 | *) | |
49455 | case ${ac_top_builddir}. in | |
49456 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49457 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49458 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49459 | esac;; | |
49460 | esac | |
49461 | case $ac_abs_builddir in | |
49462 | .) ac_abs_srcdir=$ac_srcdir;; | |
49463 | *) | |
49464 | case $ac_srcdir in | |
49465 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49466 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49467 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49468 | esac;; | |
49469 | esac | |
49470 | case $ac_abs_builddir in | |
49471 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49472 | *) | |
49473 | case $ac_top_srcdir in | |
49474 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49475 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49476 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49477 | esac;; | |
49478 | esac | |
a848cd7e SC |
49479 | |
49480 | ||
49481 | case $INSTALL in | |
49482 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
49483 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
49484 | esac | |
49485 | ||
3565d135 RR |
49486 | if test x"$ac_file" != x-; then |
49487 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49488 | echo "$as_me: creating $ac_file" >&6;} | |
49489 | rm -f "$ac_file" | |
49490 | fi | |
a848cd7e SC |
49491 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
49492 | # use $as_me), people would be surprised to read: | |
49493 | # /* config.h. Generated by config.status. */ | |
49494 | if test x"$ac_file" = x-; then | |
49495 | configure_input= | |
49496 | else | |
49497 | configure_input="$ac_file. " | |
49498 | fi | |
49499 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 49500 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
49501 | |
49502 | # First look for the input files in the build tree, otherwise in the | |
49503 | # src tree. | |
49504 | ac_file_inputs=`IFS=: | |
49505 | for f in $ac_file_in; do | |
49506 | case $f in | |
49507 | -) echo $tmp/stdin ;; | |
49508 | [\\/$]*) | |
ac1cb8d3 VS |
49509 | # Absolute (can't be DOS-style, as IFS=:) |
49510 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49511 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49512 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49513 | echo "$f";; |
a848cd7e | 49514 | *) # Relative |
ac1cb8d3 VS |
49515 | if test -f "$f"; then |
49516 | # Build tree | |
49517 | echo "$f" | |
49518 | elif test -f "$srcdir/$f"; then | |
49519 | # Source tree | |
49520 | echo "$srcdir/$f" | |
49521 | else | |
49522 | # /dev/null tree | |
49523 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49524 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49525 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49526 | fi;; |
a848cd7e SC |
49527 | esac |
49528 | done` || { (exit 1); exit 1; } | |
49529 | _ACEOF | |
49530 | cat >>$CONFIG_STATUS <<_ACEOF | |
49531 | sed "$ac_vpsub | |
49532 | $extrasub | |
49533 | _ACEOF | |
49534 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49535 | :t | |
49536 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
49537 | s,@configure_input@,$configure_input,;t t | |
49538 | s,@srcdir@,$ac_srcdir,;t t | |
49539 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
49540 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
49541 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
49542 | s,@builddir@,$ac_builddir,;t t | |
49543 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
49544 | s,@top_builddir@,$ac_top_builddir,;t t | |
49545 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
49546 | s,@INSTALL@,$ac_INSTALL,;t t | |
49547 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
49548 | rm -f $tmp/stdin | |
49549 | if test x"$ac_file" != x-; then | |
49550 | mv $tmp/out $ac_file | |
49551 | else | |
49552 | cat $tmp/out | |
49553 | rm -f $tmp/out | |
49554 | fi | |
49555 | ||
ceec2216 RL |
49556 | # Run the commands associated with the file. |
49557 | case $ac_file in | |
49558 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
49559 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
49560 | esac | |
a848cd7e SC |
49561 | done |
49562 | _ACEOF | |
49563 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49564 | ||
49565 | # | |
49566 | # CONFIG_HEADER section. | |
49567 | # | |
49568 | ||
49569 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
49570 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
49571 | # | |
49572 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
49573 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
49574 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
49575 | ac_dC=' ' |
49576 | ac_dD=',;t' | |
49577 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 49578 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
49579 | ac_uB='$,\1#\2define\3' |
49580 | ac_uC=' ' | |
49581 | ac_uD=',;t' | |
49582 | ||
49583 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
49584 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49585 | case $ac_file in | |
49586 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49587 | cat >$tmp/stdin |
49588 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49589 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49590 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49591 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49592 | * ) ac_file_in=$ac_file.in ;; |
49593 | esac | |
49594 | ||
49595 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49596 | echo "$as_me: creating $ac_file" >&6;} | |
49597 | ||
49598 | # First look for the input files in the build tree, otherwise in the | |
49599 | # src tree. | |
49600 | ac_file_inputs=`IFS=: | |
49601 | for f in $ac_file_in; do | |
49602 | case $f in | |
49603 | -) echo $tmp/stdin ;; | |
49604 | [\\/$]*) | |
ac1cb8d3 VS |
49605 | # Absolute (can't be DOS-style, as IFS=:) |
49606 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49607 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49608 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
49609 | # Do quote $f, to prevent DOS paths from being IFS'd. |
49610 | echo "$f";; | |
a848cd7e | 49611 | *) # Relative |
ac1cb8d3 VS |
49612 | if test -f "$f"; then |
49613 | # Build tree | |
49614 | echo "$f" | |
49615 | elif test -f "$srcdir/$f"; then | |
49616 | # Source tree | |
49617 | echo "$srcdir/$f" | |
49618 | else | |
49619 | # /dev/null tree | |
49620 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49621 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49622 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49623 | fi;; |
a848cd7e SC |
49624 | esac |
49625 | done` || { (exit 1); exit 1; } | |
49626 | # Remove the trailing spaces. | |
ac1cb8d3 | 49627 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
49628 | |
49629 | _ACEOF | |
49630 | ||
49631 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
49632 | # `conftest.undefs', that substitutes the proper values into | |
49633 | # config.h.in to produce config.h. The first handles `#define' | |
49634 | # templates, and the second `#undef' templates. | |
49635 | # And first: Protect against being on the right side of a sed subst in | |
49636 | # config.status. Protect against being in an unquoted here document | |
49637 | # in config.status. | |
49638 | rm -f conftest.defines conftest.undefs | |
49639 | # Using a here document instead of a string reduces the quoting nightmare. | |
49640 | # Putting comments in sed scripts is not portable. | |
49641 | # | |
49642 | # `end' is used to avoid that the second main sed command (meant for | |
49643 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
49644 | # See the Autoconf documentation for `clear'. | |
49645 | cat >confdef2sed.sed <<\_ACEOF | |
49646 | s/[\\&,]/\\&/g | |
49647 | s,[\\$`],\\&,g | |
49648 | t clear | |
49649 | : clear | |
ac1cb8d3 | 49650 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 49651 | t end |
ac1cb8d3 | 49652 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
49653 | : end |
49654 | _ACEOF | |
49655 | # If some macros were called several times there might be several times | |
49656 | # the same #defines, which is useless. Nevertheless, we may not want to | |
49657 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
49658 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
49659 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
49660 | rm -f confdef2sed.sed | |
49661 | ||
49662 | # This sed command replaces #undef with comments. This is necessary, for | |
49663 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
49664 | # on some systems where configure will not decide to define it. | |
49665 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 49666 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
49667 | _ACEOF |
49668 | ||
49669 | # Break up conftest.defines because some shells have a limit on the size | |
49670 | # of here documents, and old seds have small limits too (100 cmds). | |
49671 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 49672 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
49673 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
49674 | echo ' :' >>$CONFIG_STATUS | |
49675 | rm -f conftest.tail | |
49676 | while grep . conftest.defines >/dev/null | |
49677 | do | |
49678 | # Write a limited-size here document to $tmp/defines.sed. | |
49679 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
49680 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 49681 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
49682 | # Work around the forget-to-reset-the-flag bug. |
49683 | echo 't clr' >>$CONFIG_STATUS | |
49684 | echo ': clr' >>$CONFIG_STATUS | |
49685 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
49686 | echo 'CEOF | |
49687 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
49688 | rm -f $tmp/in | |
49689 | mv $tmp/out $tmp/in | |
49690 | ' >>$CONFIG_STATUS | |
49691 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
49692 | rm -f conftest.defines | |
49693 | mv conftest.tail conftest.defines | |
49694 | done | |
49695 | rm -f conftest.defines | |
49696 | echo ' fi # grep' >>$CONFIG_STATUS | |
49697 | echo >>$CONFIG_STATUS | |
49698 | ||
49699 | # Break up conftest.undefs because some shells have a limit on the size | |
49700 | # of here documents, and old seds have small limits too (100 cmds). | |
49701 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
49702 | rm -f conftest.tail | |
49703 | while grep . conftest.undefs >/dev/null | |
49704 | do | |
49705 | # Write a limited-size here document to $tmp/undefs.sed. | |
49706 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
49707 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 49708 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
49709 | # Work around the forget-to-reset-the-flag bug. |
49710 | echo 't clr' >>$CONFIG_STATUS | |
49711 | echo ': clr' >>$CONFIG_STATUS | |
49712 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
49713 | echo 'CEOF | |
49714 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
49715 | rm -f $tmp/in | |
49716 | mv $tmp/out $tmp/in | |
49717 | ' >>$CONFIG_STATUS | |
49718 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
49719 | rm -f conftest.undefs | |
49720 | mv conftest.tail conftest.undefs | |
49721 | done | |
49722 | rm -f conftest.undefs | |
49723 | ||
49724 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49725 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
49726 | # use $as_me), people would be surprised to read: | |
49727 | # /* config.h. Generated by config.status. */ | |
49728 | if test x"$ac_file" = x-; then | |
49729 | echo "/* Generated by configure. */" >$tmp/config.h | |
49730 | else | |
49731 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
49732 | fi | |
49733 | cat $tmp/in >>$tmp/config.h | |
49734 | rm -f $tmp/in | |
49735 | if test x"$ac_file" != x-; then | |
49736 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
49737 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
49738 | echo "$as_me: $ac_file is unchanged" >&6;} | |
49739 | else | |
49740 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49741 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49742 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49743 | X"$ac_file" : 'X\(//\)$' \| \ | |
49744 | X"$ac_file" : 'X\(/\)' \| \ | |
49745 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49746 | echo X"$ac_file" | |
49747 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49748 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49749 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49750 | /^X\(\/\).*/{ s//\1/; q; } | |
49751 | s/.*/./; q'` | |
49752 | { if $as_mkdir_p; then | |
49753 | mkdir -p "$ac_dir" | |
49754 | else | |
49755 | as_dir="$ac_dir" | |
49756 | as_dirs= | |
49757 | while test ! -d "$as_dir"; do | |
49758 | as_dirs="$as_dir $as_dirs" | |
49759 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49760 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49761 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49762 | X"$as_dir" : 'X\(//\)$' \| \ | |
49763 | X"$as_dir" : 'X\(/\)' \| \ | |
49764 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49765 | echo X"$as_dir" | |
49766 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49767 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49768 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49769 | /^X\(\/\).*/{ s//\1/; q; } | |
49770 | s/.*/./; q'` | |
49771 | done | |
49772 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49773 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49774 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49775 | { (exit 1); exit 1; }; }; } | |
49776 | ||
49777 | rm -f $ac_file | |
49778 | mv $tmp/config.h $ac_file | |
49779 | fi | |
49780 | else | |
49781 | cat $tmp/config.h | |
49782 | rm -f $tmp/config.h | |
49783 | fi | |
49784 | done | |
49785 | _ACEOF | |
49786 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49787 | ||
49788 | # | |
49789 | # CONFIG_COMMANDS section. | |
49790 | # | |
49791 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
49792 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
49793 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49794 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
49795 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49796 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
49797 | X"$ac_dest" : 'X\(//\)$' \| \ | |
49798 | X"$ac_dest" : 'X\(/\)' \| \ | |
49799 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49800 | echo X"$ac_dest" | |
49801 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49802 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49803 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49804 | /^X\(\/\).*/{ s//\1/; q; } | |
49805 | s/.*/./; q'` | |
ac1cb8d3 VS |
49806 | { if $as_mkdir_p; then |
49807 | mkdir -p "$ac_dir" | |
49808 | else | |
49809 | as_dir="$ac_dir" | |
49810 | as_dirs= | |
49811 | while test ! -d "$as_dir"; do | |
49812 | as_dirs="$as_dir $as_dirs" | |
49813 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49814 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
49815 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
49816 | X"$as_dir" : 'X\(//\)$' \| \ | |
49817 | X"$as_dir" : 'X\(/\)' \| \ | |
49818 | . : '\(.\)' 2>/dev/null || | |
49819 | echo X"$as_dir" | | |
49820 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49821 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49822 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49823 | /^X\(\/\).*/{ s//\1/; q; } | |
49824 | s/.*/./; q'` | |
49825 | done | |
49826 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49827 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49828 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49829 | { (exit 1); exit 1; }; }; } | |
49830 | ||
a848cd7e SC |
49831 | ac_builddir=. |
49832 | ||
49833 | if test "$ac_dir" != .; then | |
49834 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49835 | # A "../" for each directory in $ac_dir_suffix. | |
49836 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49837 | else | |
49838 | ac_dir_suffix= ac_top_builddir= | |
49839 | fi | |
49840 | ||
49841 | case $srcdir in | |
49842 | .) # No --srcdir option. We are building in place. | |
49843 | ac_srcdir=. | |
49844 | if test -z "$ac_top_builddir"; then | |
49845 | ac_top_srcdir=. | |
49846 | else | |
49847 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49848 | fi ;; | |
49849 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49850 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49851 | ac_top_srcdir=$srcdir ;; | |
49852 | *) # Relative path. | |
49853 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49854 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49855 | esac | |
ac1cb8d3 VS |
49856 | |
49857 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49858 | # the directories may not exist. | |
49859 | case `pwd` in | |
49860 | .) ac_abs_builddir="$ac_dir";; | |
49861 | *) | |
49862 | case "$ac_dir" in | |
49863 | .) ac_abs_builddir=`pwd`;; | |
49864 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49865 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49866 | esac;; | |
49867 | esac | |
49868 | case $ac_abs_builddir in | |
49869 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49870 | *) | |
49871 | case ${ac_top_builddir}. in | |
49872 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49873 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49874 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49875 | esac;; | |
49876 | esac | |
49877 | case $ac_abs_builddir in | |
49878 | .) ac_abs_srcdir=$ac_srcdir;; | |
49879 | *) | |
49880 | case $ac_srcdir in | |
49881 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49882 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49883 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49884 | esac;; | |
49885 | esac | |
49886 | case $ac_abs_builddir in | |
49887 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49888 | *) | |
49889 | case $ac_top_srcdir in | |
49890 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49891 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49892 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49893 | esac;; | |
49894 | esac | |
a848cd7e SC |
49895 | |
49896 | ||
49897 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
49898 | echo "$as_me: executing $ac_dest commands" >&6;} | |
49899 | case $ac_dest in | |
5c60e845 MW |
49900 | rcdefs.h ) |
49901 | mkdir -p $outdir && | |
49902 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
49903 | ;; | |
ceec2216 RL |
49904 | wx-config ) rm -f wx-config |
49905 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
49906 | ;; | |
a848cd7e SC |
49907 | esac |
49908 | done | |
49909 | _ACEOF | |
49910 | ||
49911 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49912 | ||
49913 | { (exit 0); exit 0; } | |
49914 | _ACEOF | |
49915 | chmod +x $CONFIG_STATUS | |
49916 | ac_clean_files=$ac_clean_files_save | |
49917 | ||
49918 | ||
49919 | # configure is writing to config.log, and then calls config.status. | |
49920 | # config.status does its own redirection, appending to config.log. | |
49921 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
49922 | # by configure, so config.status won't be able to write to it; its | |
49923 | # output is simply discarded. So we exec the FD to /dev/null, | |
49924 | # effectively closing config.log, so it can be properly (re)opened and | |
49925 | # appended to by config.status. When coming back to configure, we | |
49926 | # need to make the FD available again. | |
49927 | if test "$no_create" != yes; then | |
49928 | ac_cs_success=: | |
49929 | ac_config_status_args= | |
49930 | test "$silent" = yes && | |
49931 | ac_config_status_args="$ac_config_status_args --quiet" | |
49932 | exec 5>/dev/null | |
49933 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
49934 | exec 5>>config.log | |
49935 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
49936 | # would make configure fail if this is the last instruction. | |
49937 | $ac_cs_success || { (exit 1); exit 1; } | |
49938 | fi | |
49939 | ||
49940 | # | |
49941 | # CONFIG_SUBDIRS section. | |
49942 | # | |
49943 | if test "$no_recursion" != yes; then | |
49944 | ||
49945 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
49946 | ac_sub_configure_args= | |
49947 | ac_prev= | |
49948 | for ac_arg in $ac_configure_args; do | |
49949 | if test -n "$ac_prev"; then | |
49950 | ac_prev= | |
49951 | continue | |
49952 | fi | |
49953 | case $ac_arg in | |
49954 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
49955 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
49956 | ac_prev=cache_file ;; | |
49957 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
49958 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
49959 | | --c=*) | |
49960 | ;; | |
49961 | --config-cache | -C) | |
49962 | ;; | |
49963 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
49964 | ac_prev=srcdir ;; | |
49965 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
49966 | ;; | |
49967 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
49968 | ac_prev=prefix ;; | |
49969 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
49970 | ;; | |
49971 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
49972 | esac | |
49973 | done | |
49974 | ||
49975 | # Always prepend --prefix to ensure using the same prefix | |
49976 | # in subdir configurations. | |
49977 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
49978 | ||
49979 | ac_popdir=`pwd` | |
49980 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
49981 | ||
49982 | # Do not complain, so a configure script can configure whichever | |
49983 | # parts of a large source tree are present. | |
49984 | test -d $srcdir/$ac_dir || continue | |
49985 | ||
49986 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
49987 | echo "$as_me: configuring in $ac_dir" >&6;} | |
49988 | { if $as_mkdir_p; then | |
49989 | mkdir -p "$ac_dir" | |
49990 | else | |
49991 | as_dir="$ac_dir" | |
49992 | as_dirs= | |
49993 | while test ! -d "$as_dir"; do | |
49994 | as_dirs="$as_dir $as_dirs" | |
49995 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49996 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49997 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49998 | X"$as_dir" : 'X\(//\)$' \| \ | |
49999 | X"$as_dir" : 'X\(/\)' \| \ | |
50000 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50001 | echo X"$as_dir" | |
50002 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50003 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50004 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50005 | /^X\(\/\).*/{ s//\1/; q; } | |
50006 | s/.*/./; q'` | |
50007 | done | |
50008 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50009 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50010 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50011 | { (exit 1); exit 1; }; }; } | |
50012 | ||
50013 | ac_builddir=. | |
50014 | ||
50015 | if test "$ac_dir" != .; then | |
50016 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50017 | # A "../" for each directory in $ac_dir_suffix. | |
50018 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50019 | else | |
50020 | ac_dir_suffix= ac_top_builddir= | |
50021 | fi | |
50022 | ||
50023 | case $srcdir in | |
50024 | .) # No --srcdir option. We are building in place. | |
50025 | ac_srcdir=. | |
50026 | if test -z "$ac_top_builddir"; then | |
50027 | ac_top_srcdir=. | |
50028 | else | |
50029 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50030 | fi ;; | |
50031 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50032 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50033 | ac_top_srcdir=$srcdir ;; | |
50034 | *) # Relative path. | |
50035 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50036 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50037 | esac | |
ac1cb8d3 VS |
50038 | |
50039 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50040 | # the directories may not exist. | |
50041 | case `pwd` in | |
50042 | .) ac_abs_builddir="$ac_dir";; | |
50043 | *) | |
50044 | case "$ac_dir" in | |
50045 | .) ac_abs_builddir=`pwd`;; | |
50046 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50047 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50048 | esac;; | |
50049 | esac | |
50050 | case $ac_abs_builddir in | |
50051 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50052 | *) | |
50053 | case ${ac_top_builddir}. in | |
50054 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50055 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50056 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50057 | esac;; | |
50058 | esac | |
50059 | case $ac_abs_builddir in | |
50060 | .) ac_abs_srcdir=$ac_srcdir;; | |
50061 | *) | |
50062 | case $ac_srcdir in | |
50063 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50064 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50065 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50066 | esac;; | |
50067 | esac | |
50068 | case $ac_abs_builddir in | |
50069 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50070 | *) | |
50071 | case $ac_top_srcdir in | |
50072 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50073 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50074 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50075 | esac;; | |
50076 | esac | |
a848cd7e SC |
50077 | |
50078 | ||
50079 | cd $ac_dir | |
50080 | ||
50081 | # Check for guested configure; otherwise get Cygnus style configure. | |
50082 | if test -f $ac_srcdir/configure.gnu; then | |
50083 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
50084 | elif test -f $ac_srcdir/configure; then | |
50085 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
50086 | elif test -f $ac_srcdir/configure.in; then | |
50087 | ac_sub_configure=$ac_configure | |
50088 | else | |
50089 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
50090 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
50091 | ac_sub_configure= | |
50092 | fi | |
50093 | ||
50094 | # The recursion is here. | |
50095 | if test -n "$ac_sub_configure"; then | |
50096 | # Make the cache file name correct relative to the subdirectory. | |
50097 | case $cache_file in | |
50098 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
50099 | *) # Relative path. | |
ac1cb8d3 | 50100 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
50101 | esac |
50102 | ||
50103 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
50104 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
50105 | # The eval makes quoting arguments work. | |
50106 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
50107 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
50108 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
50109 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
50110 | { (exit 1); exit 1; }; } | |
50111 | fi | |
50112 | ||
3565d135 | 50113 | cd $ac_popdir |
a848cd7e SC |
50114 | done |
50115 | fi | |
50116 | ||
50117 | ||
50118 | echo | |
77ffb593 | 50119 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 50120 | echo "" |
4d4ff94c | 50121 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 50122 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 50123 | |
77ffb593 JS |
50124 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
50125 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
50126 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 50127 | |
77ffb593 | 50128 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
50129 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
50130 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 50131 | |
77ffb593 | 50132 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
50133 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
50134 | echo " png ${wxUSE_LIBPNG-none}" | |
50135 | echo " regex ${wxUSE_REGEX}" | |
50136 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
50137 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
50138 | echo " xpm ${wxUSE_LIBXPM-none}" | |
50139 | fi | |
50140 | echo " zlib ${wxUSE_ZLIB}" | |
50141 | echo " odbc ${wxUSE_ODBC}" | |
50142 | echo " expat ${wxUSE_EXPAT}" | |
50143 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
50144 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 50145 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
3565d135 | 50146 | echo " hildon ${wxUSE_LIBHILDON-none}" |
a848cd7e SC |
50147 | |
50148 | echo "" | |
50149 |