]>
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" | |
3ecd9f92 | 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 CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ac_pt_PKG_CONFIG 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 GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS 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 ICC_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_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 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_MEDIA_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_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_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_MEDIA_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_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_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_0 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_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 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_PCH_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 | |
3ecd9f92 MW |
789 | ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
790 | ac_env_PKG_CONFIG_value=$PKG_CONFIG | |
791 | ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} | |
792 | ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG | |
793 | ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set} | |
794 | ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS | |
795 | ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set} | |
796 | ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS | |
797 | ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set} | |
798 | ac_env_PANGOX_LIBS_value=$PANGOX_LIBS | |
799 | ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set} | |
800 | ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS | |
801 | ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set} | |
802 | ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS | |
803 | ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set} | |
804 | ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS | |
805 | ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set} | |
806 | ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS | |
807 | ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set} | |
808 | ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS | |
809 | ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set} | |
810 | ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS | |
811 | ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set} | |
812 | ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS | |
813 | ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set} | |
814 | ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS | |
815 | ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set} | |
816 | ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS | |
817 | ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set} | |
818 | ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS | |
819 | ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set} | |
820 | ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS | |
821 | ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set} | |
822 | ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS | |
823 | ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set} | |
824 | ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS | |
825 | ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set} | |
826 | ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS | |
827 | ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set} | |
828 | ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS | |
829 | ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set} | |
830 | ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS | |
831 | ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set} | |
832 | ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS | |
833 | ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set} | |
834 | ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS | |
835 | ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set} | |
836 | ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS | |
837 | ac_env_HILDON_LIBS_set=${HILDON_LIBS+set} | |
838 | ac_env_HILDON_LIBS_value=$HILDON_LIBS | |
839 | ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set} | |
840 | ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS | |
841 | ac_env_GST_CFLAGS_set=${GST_CFLAGS+set} | |
842 | ac_env_GST_CFLAGS_value=$GST_CFLAGS | |
843 | ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set} | |
844 | ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS | |
845 | ac_env_GST_LIBS_set=${GST_LIBS+set} | |
846 | ac_env_GST_LIBS_value=$GST_LIBS | |
847 | ac_cv_env_GST_LIBS_set=${GST_LIBS+set} | |
848 | ac_cv_env_GST_LIBS_value=$GST_LIBS | |
a848cd7e SC |
849 | |
850 | # | |
851 | # Report the --help message. | |
852 | # | |
853 | if test "$ac_init_help" = "long"; then | |
854 | # Omit some internal or obsolete options to make the list less imposing. | |
855 | # This message is too long to be a string in the A/UX 3.1 sh. | |
856 | cat <<_ACEOF | |
dd8df4fc | 857 | \`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems. |
a848cd7e SC |
858 | |
859 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
860 | ||
861 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
862 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
863 | ||
864 | Defaults for the options are specified in brackets. | |
865 | ||
866 | Configuration: | |
867 | -h, --help display this help and exit | |
868 | --help=short display options specific to this package | |
869 | --help=recursive display the short help of all the included packages | |
870 | -V, --version display version information and exit | |
871 | -q, --quiet, --silent do not print \`checking...' messages | |
872 | --cache-file=FILE cache test results in FILE [disabled] | |
873 | -C, --config-cache alias for \`--cache-file=config.cache' | |
874 | -n, --no-create do not create output files | |
875 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
876 | ||
877 | _ACEOF | |
878 | ||
879 | cat <<_ACEOF | |
880 | Installation directories: | |
881 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 882 | [$ac_default_prefix] |
a848cd7e | 883 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 884 | [PREFIX] |
a848cd7e SC |
885 | |
886 | By default, \`make install' will install all the files in | |
887 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
888 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
889 | for instance \`--prefix=\$HOME'. | |
890 | ||
891 | For better control, use the options below. | |
892 | ||
893 | Fine tuning of the installation directories: | |
894 | --bindir=DIR user executables [EPREFIX/bin] | |
895 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
896 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
897 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
898 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
899 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
900 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
901 | --libdir=DIR object code libraries [EPREFIX/lib] | |
902 | --includedir=DIR C header files [PREFIX/include] | |
903 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
904 | --infodir=DIR info documentation [PREFIX/info] | |
905 | --mandir=DIR man documentation [PREFIX/man] | |
906 | _ACEOF | |
907 | ||
908 | cat <<\_ACEOF | |
909 | ||
910 | X features: | |
911 | --x-includes=DIR X include files are in DIR | |
912 | --x-libraries=DIR X library files are in DIR | |
913 | ||
914 | System types: | |
915 | --build=BUILD configure for building on BUILD [guessed] | |
916 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
917 | --target=TARGET configure for building compilers for TARGET [HOST] | |
918 | _ACEOF | |
919 | fi | |
920 | ||
921 | if test -n "$ac_init_help"; then | |
922 | case $ac_init_help in | |
dd8df4fc | 923 | short | recursive ) echo "Configuration of wxWidgets 2.7.0:";; |
a848cd7e SC |
924 | esac |
925 | cat <<\_ACEOF | |
926 | ||
927 | Optional Features: | |
928 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
929 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
930 | --enable-gui use GUI classes | |
77ffb593 JS |
931 | --enable-monolithic build wxWidgets as single library |
932 | --enable-plugins build parts of wxWidgets as loadable components | |
933 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 934 | --enable-nanox use NanoX |
f34ca037 | 935 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
936 | --enable-gpe use GNOME PDA Environment features if possible |
937 | --enable-shared create shared library code | |
938 | --enable-optimise create optimised code | |
939 | --enable-debug same as debug_flag and debug_info | |
940 | --enable-stl use STL for containers | |
941 | --enable-omf use OMF object format | |
942 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
943 | --enable-debug_info create code with debugging information | |
944 | --enable-debug_gdb create code with extra GDB debugging information | |
945 | --enable-debug_cntxt use wxDebugContext | |
946 | --enable-mem_tracing create code with memory tracing | |
947 | --enable-profile create code with profiling information | |
948 | --enable-no_rtti create code without RTTI information | |
949 | --enable-no_exceptions create code without C++ exceptions handling | |
950 | --enable-permissive compile code disregarding strict ANSI | |
951 | --enable-no_deps create code without dependency information | |
95768535 | 952 | --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working) |
dee1a63f MB |
953 | --enable-compat24 enable wxWidgets 2.4 compatibility |
954 | --disable-compat26 disable wxWidgets 2.6 compatibility | |
ffa0583f | 955 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
956 | --enable-intl use internationalization system |
957 | --enable-config use wxConfig (and derived) classes | |
958 | --enable-protocols use wxProtocol and derived classes | |
959 | --enable-ftp use wxFTP (requires wxProtocol | |
960 | --enable-http use wxHTTP (requires wxProtocol | |
961 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
962 | --enable-sockets use socket/network classes | |
963 | --enable-ole use OLE classes (Win32 only) | |
964 | --enable-dataobj use data object classes | |
965 | --enable-ipc use interprocess communication (wxSocket etc.) | |
966 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 967 | --enable-arcstream use wxArchive streams |
eaff0f0d | 968 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 969 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
970 | --enable-cmdline use wxCmdLineParser class |
971 | --enable-datetime use wxDateTime class | |
36b6448c | 972 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
973 | --enable-dialupman use dialup network classes |
974 | --enable-dynlib use wxLibrary class for DLL loading | |
975 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
976 | --enable-exceptions build exception-safe library | |
977 | --enable-ffile use wxFFile class | |
978 | --enable-file use wxFile class | |
979 | --enable-filesystem use virtual file systems classes | |
980 | --enable-fontmap use font encodings conversion classes | |
981 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
982 | --enable-fs_zip use virtual ZIP filesystems | |
983 | --enable-geometry use geometry class | |
984 | --enable-log use logging system | |
985 | --enable-longlong use wxLongLong class | |
986 | --enable-mimetype use wxMimeTypesManager | |
987 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
988 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 989 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 990 | --enable-std_string use standard C++ string classes |
07158944 | 991 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 992 | --enable-stopwatch use wxStopWatch class |
07158944 | 993 | --enable-streams use wxStream etc classes |
a848cd7e SC |
994 | --enable-sysoptions use wxSystemOptions |
995 | --enable-textbuf use wxTextBuffer class | |
996 | --enable-textfile use wxTextFile class | |
997 | --enable-timer use wxTimer class | |
998 | --enable-unicode compile wxString with Unicode support | |
999 | --enable-sound use wxSound class | |
3b57de8b | 1000 | --enable-mediactrl use wxMediaCtrl class |
f10e38c4 | 1001 | --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix |
8b6682b9 | 1002 | --enable-printfposparam use wxVsnprintf() which supports positional parameters |
81f90336 | 1003 | --enable-zipstream use wxZip streams |
a848cd7e SC |
1004 | --enable-url use wxURL class |
1005 | --enable-protocol use wxProtocol class | |
1006 | --enable-protocol-http HTTP support in wxProtocol | |
1007 | --enable-protocol-ftp FTP support in wxProtocol | |
1008 | --enable-protocol-file FILE support in wxProtocol | |
1009 | --enable-threads use threads | |
1010 | --enable-docview use document view architecture | |
1011 | --enable-help use help subsystem | |
1012 | --enable-mshtmlhelp use MS HTML Help (win32) | |
1013 | --enable-html use wxHTML sub-library | |
1014 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 1015 | --enable-xrc use XRC resources sub-library |
3f60522a | 1016 | --enable-aui use AUI docking library |
a848cd7e SC |
1017 | --enable-constraints use layout-constraints system |
1018 | --enable-printarch use printing architecture | |
1019 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 1020 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
1021 | --enable-loggui use standard GUI logger |
1022 | --enable-logwin use wxLogWindow | |
1023 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 1024 | --enable-webkit use wxWebKitCtrl (Mac) |
91dea314 | 1025 | --enable-richtext use wxRichTextCtrl |
a848cd7e SC |
1026 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
1027 | --enable-prologio not available; see contrib | |
1028 | --enable-resources not available; see contrib | |
1029 | --enable-clipboard use wxClipboard class | |
1030 | --enable-dnd use Drag'n'Drop classes | |
1031 | --enable-metafile use win32 metafiles | |
1032 | --enable-controls use all usual controls | |
1033 | --enable-accel use accelerators | |
1034 | --enable-button use wxButton class | |
1035 | --enable-bmpbutton use wxBitmapButton class | |
1036 | --enable-calendar use wxCalendarCtrl class | |
1037 | --enable-caret use wxCaret class | |
1038 | --enable-checkbox use wxCheckBox class | |
1039 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
1040 | --enable-choice use wxChoice class | |
92bbdbcd | 1041 | --enable-choicebook use wxChoicebook class |
e9263684 | 1042 | --enable-colourpicker use wxColourPickerCtrl class |
a848cd7e | 1043 | --enable-combobox use wxComboBox class |
a57d600f | 1044 | --enable-comboctrl use wxComboCtrl class |
da98e9be | 1045 | --enable-datepick use wxDatePickerCtrl class |
e9263684 | 1046 | --enable-dirpicker use wxDirPickerCtrl class |
a848cd7e | 1047 | --enable-display use wxDisplay class |
e9263684 VZ |
1048 | --enable-filepicker use wxFilePickerCtrl class |
1049 | --enable-fontpicker use wxFontPickerCtrl class | |
a848cd7e SC |
1050 | --enable-gauge use wxGauge class |
1051 | --enable-grid use wxGrid class | |
20e34ecc | 1052 | --enable-dataviewctrl, use wxDataViewCtrl class |
6954625c | 1053 | --enable-hyperlink use wxHyperlinkCtrl class |
a848cd7e SC |
1054 | --enable-imaglist use wxImageList class |
1055 | --enable-listbook use wxListbook class | |
1056 | --enable-listbox use wxListBox class | |
1057 | --enable-listctrl use wxListCtrl class | |
1058 | --enable-notebook use wxNotebook class | |
a57d600f | 1059 | --enable-odcombobox use wxOwnerDrawnComboBox class |
a848cd7e SC |
1060 | --enable-radiobox use wxRadioBox class |
1061 | --enable-radiobtn use wxRadioButton class | |
1062 | --enable-sash use wxSashWindow class | |
1063 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
1064 | --enable-slider use wxSlider class | |
1065 | --enable-spinbtn use wxSpinButton class | |
1066 | --enable-spinctrl use wxSpinCtrl class | |
1067 | --enable-splitter use wxSplitterWindow class | |
1068 | --enable-statbmp use wxStaticBitmap class | |
1069 | --enable-statbox use wxStaticBox class | |
1070 | --enable-statline use wxStaticLine class | |
1071 | --enable-stattext use wxStaticText class | |
1072 | --enable-statusbar use wxStatusBar class | |
1073 | --enable-tabdialog use wxTabControl class | |
1074 | --enable-textctrl use wxTextCtrl class | |
1075 | --enable-togglebtn use wxToggleButton class | |
1076 | --enable-toolbar use wxToolBar class | |
1077 | --enable-tbarnative use native wxToolBar class | |
1078 | --enable-tbarsmpl use wxToolBarSimple class | |
0093c2fc | 1079 | --enable-treebook use wxTreebook class |
5ec3bc43 | 1080 | --enable-toolbook use wxToolbook class |
a848cd7e SC |
1081 | --enable-treectrl use wxTreeCtrl class |
1082 | --enable-tipwindow use wxTipWindow class | |
1083 | --enable-popupwin use wxPopUpWindow class | |
1084 | --enable-commondlg use all common dialogs | |
1085 | --enable-choicedlg use wxChoiceDialog | |
1086 | --enable-coldlg use wxColourDialog | |
1087 | --enable-filedlg use wxFileDialog | |
1088 | --enable-finddlg use wxFindReplaceDialog | |
1089 | --enable-fontdlg use wxFontDialog | |
1090 | --enable-dirdlg use wxDirDialog | |
1091 | --enable-msgdlg use wxMessageDialog | |
1092 | --enable-numberdlg use wxNumberEntryDialog | |
1093 | --enable-splash use wxSplashScreen | |
1094 | --enable-textdlg use wxTextDialog | |
1095 | --enable-tipdlg use startup tips | |
1096 | --enable-progressdlg use wxProgressDialog | |
1097 | --enable-wizarddlg use wxWizard | |
1098 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1099 | --enable-miniframe use wxMiniFrame class | |
1100 | --enable-tooltips use wxToolTip class | |
1101 | --enable-splines use spline drawing code | |
fbe2ca43 | 1102 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1103 | --enable-validators use wxValidator and derived classes |
1104 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1105 | --enable-joystick use wxJoystick |
38b4a946 | 1106 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1107 | --enable-dragimage use wxDragImage |
1108 | --enable-accessibility enable accessibility support | |
38b4a946 | 1109 | --enable-dccache cache temporary wxDC objects (Win32 only) |
a848cd7e SC |
1110 | --enable-palette use wxPalette class |
1111 | --enable-image use wxImage class | |
1112 | --enable-gif use gif images (GIF file format) | |
1113 | --enable-pcx use pcx images (PCX file format) | |
1114 | --enable-iff use iff images (IFF file format) | |
1115 | --enable-pnm use pnm images (PNM file format) | |
1116 | --enable-xpm use xpm images (XPM file format) | |
1117 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1118 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1119 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1120 | --disable-largefile omit support for large files | |
1121 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1122 | --disable-gtktest Do not try to compile and run a test GTK program | |
1123 | --disable-sdltest Do not try to compile and run a test SDL program | |
1124 | --enable-omf use OMF object format (OS/2) | |
f10e38c4 VZ |
1125 | --disable-dependency-tracking |
1126 | don't use dependency tracking even if the compiler | |
1127 | can | |
ebee3cd0 VS |
1128 | --disable-precomp-headers |
1129 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1130 | |
1131 | Optional Packages: | |
1132 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1133 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1c14217d | 1134 | --without-subdirs don't generate makefiles for samples/demos/... |
f34ca037 | 1135 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1136 | --with-motif use Motif/Lesstif |
1137 | --with-mac use Mac OS X | |
1138 | --with-cocoa use Cocoa | |
1139 | --with-wine use Wine | |
1140 | --with-msw use MS-Windows | |
1141 | --with-pm use OS/2 Presentation Manager | |
1142 | --with-mgl use SciTech MGL | |
1143 | --with-microwin use MicroWindows | |
1144 | --with-x11 use X11 | |
1145 | --with-libpng use libpng (PNG image format) | |
1146 | --with-libjpeg use libjpeg (JPEG file format) | |
1147 | --with-libtiff use libtiff (TIFF file format) | |
1148 | --with-libxpm use libxpm (XPM file format) | |
1149 | --with-libmspack use libmspack (CHM help files loading) | |
1150 | --with-sdl use SDL for audio on Unix | |
2b850ae1 RR |
1151 | --with-gnomeprint use GNOME print for printing under GNOME |
1152 | --with-gnomevfs use GNOME VFS for associating MIME types | |
3565d135 | 1153 | --with-hildon use Hildon framework for Nokia 770 |
a848cd7e SC |
1154 | --with-opengl use OpenGL (or Mesa) |
1155 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1156 | --with-regex enable support for wxRegEx class | |
1157 | --with-zlib use zlib for LZW compression | |
1158 | --with-odbc use the IODBC and wxODBC classes | |
1159 | --with-expat enable XML support using expat parser | |
ceec2216 | 1160 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1161 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1162 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1163 | --with-x use the X Window System | |
1164 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1165 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1166 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1167 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1168 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1169 | ||
1170 | Some influential environment variables: | |
dcc1b6ad VS |
1171 | CC C compiler command |
1172 | CFLAGS C compiler flags | |
1173 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1174 | nonstandard directory <lib dir> | |
1175 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1176 | headers in a nonstandard directory <include dir> | |
1177 | CPP C preprocessor | |
1178 | CXX C++ compiler command | |
1179 | CXXFLAGS C++ compiler flags | |
1180 | CXXCPP C++ preprocessor | |
3ecd9f92 MW |
1181 | PKG_CONFIG path to pkg-config utility |
1182 | PANGOX_CFLAGS | |
1183 | C compiler flags for PANGOX, overriding pkg-config | |
1184 | PANGOX_LIBS linker flags for PANGOX, overriding pkg-config | |
1185 | PANGOFT2_CFLAGS | |
1186 | C compiler flags for PANGOFT2, overriding pkg-config | |
1187 | PANGOFT2_LIBS | |
1188 | linker flags for PANGOFT2, overriding pkg-config | |
1189 | PANGOXFT_CFLAGS | |
1190 | C compiler flags for PANGOXFT, overriding pkg-config | |
1191 | PANGOXFT_LIBS | |
1192 | linker flags for PANGOXFT, overriding pkg-config | |
1193 | LIBGNOMEPRINTUI_CFLAGS | |
1194 | C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config | |
1195 | LIBGNOMEPRINTUI_LIBS | |
1196 | linker flags for LIBGNOMEPRINTUI, overriding pkg-config | |
1197 | GNOMEVFS_CFLAGS | |
1198 | C compiler flags for GNOMEVFS, overriding pkg-config | |
1199 | GNOMEVFS_LIBS | |
1200 | linker flags for GNOMEVFS, overriding pkg-config | |
1201 | HILDON_CFLAGS | |
1202 | C compiler flags for HILDON, overriding pkg-config | |
1203 | HILDON_LIBS linker flags for HILDON, overriding pkg-config | |
1204 | GST_CFLAGS C compiler flags for GST, overriding pkg-config | |
1205 | GST_LIBS linker flags for GST, overriding pkg-config | |
a848cd7e SC |
1206 | |
1207 | Use these variables to override the choices made by `configure' or to help | |
1208 | it to find libraries and programs with nonstandard names/locations. | |
1209 | ||
77ffb593 | 1210 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1211 | _ACEOF |
1212 | fi | |
1213 | ||
1214 | if test "$ac_init_help" = "recursive"; then | |
1215 | # If there are subdirs, report their specific --help. | |
1216 | ac_popdir=`pwd` | |
1217 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1218 | test -d $ac_dir || continue | |
1219 | ac_builddir=. | |
1220 | ||
1221 | if test "$ac_dir" != .; then | |
1222 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1223 | # A "../" for each directory in $ac_dir_suffix. | |
1224 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1225 | else | |
1226 | ac_dir_suffix= ac_top_builddir= | |
1227 | fi | |
1228 | ||
1229 | case $srcdir in | |
1230 | .) # No --srcdir option. We are building in place. | |
1231 | ac_srcdir=. | |
1232 | if test -z "$ac_top_builddir"; then | |
1233 | ac_top_srcdir=. | |
1234 | else | |
1235 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1236 | fi ;; | |
1237 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1238 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1239 | ac_top_srcdir=$srcdir ;; | |
1240 | *) # Relative path. | |
1241 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1242 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1243 | esac | |
ac1cb8d3 VS |
1244 | |
1245 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1246 | # the directories may not exist. | |
1247 | case `pwd` in | |
1248 | .) ac_abs_builddir="$ac_dir";; | |
1249 | *) | |
1250 | case "$ac_dir" in | |
1251 | .) ac_abs_builddir=`pwd`;; | |
1252 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1253 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1254 | esac;; | |
1255 | esac | |
1256 | case $ac_abs_builddir in | |
1257 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1258 | *) | |
1259 | case ${ac_top_builddir}. in | |
1260 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1261 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1262 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1263 | esac;; | |
1264 | esac | |
1265 | case $ac_abs_builddir in | |
1266 | .) ac_abs_srcdir=$ac_srcdir;; | |
1267 | *) | |
1268 | case $ac_srcdir in | |
1269 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1270 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1271 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1272 | esac;; | |
1273 | esac | |
1274 | case $ac_abs_builddir in | |
1275 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1276 | *) | |
1277 | case $ac_top_srcdir in | |
1278 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1279 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1280 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1281 | esac;; | |
1282 | esac | |
a848cd7e SC |
1283 | |
1284 | cd $ac_dir | |
1285 | # Check for guested configure; otherwise get Cygnus style configure. | |
1286 | if test -f $ac_srcdir/configure.gnu; then | |
1287 | echo | |
1288 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1289 | elif test -f $ac_srcdir/configure; then | |
1290 | echo | |
1291 | $SHELL $ac_srcdir/configure --help=recursive | |
1292 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1293 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1294 | echo |
1295 | $ac_configure --help | |
1296 | else | |
1297 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1298 | fi | |
c9a66001 | 1299 | cd "$ac_popdir" |
a848cd7e SC |
1300 | done |
1301 | fi | |
1302 | ||
1303 | test -n "$ac_init_help" && exit 0 | |
1304 | if $ac_init_version; then | |
1305 | cat <<\_ACEOF | |
dd8df4fc | 1306 | wxWidgets configure 2.7.0 |
ac1cb8d3 | 1307 | generated by GNU Autoconf 2.59 |
a848cd7e | 1308 | |
ac1cb8d3 | 1309 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1310 | This configure script is free software; the Free Software Foundation |
1311 | gives unlimited permission to copy, distribute and modify it. | |
1312 | _ACEOF | |
1313 | exit 0 | |
1314 | fi | |
1315 | exec 5>config.log | |
1316 | cat >&5 <<_ACEOF | |
1317 | This file contains any messages produced by compilers while | |
1318 | running configure, to aid debugging if configure makes a mistake. | |
1319 | ||
dd8df4fc | 1320 | It was created by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 1321 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1322 | |
1323 | $ $0 $@ | |
1324 | ||
1325 | _ACEOF | |
1326 | { | |
1327 | cat <<_ASUNAME | |
1328 | ## --------- ## | |
1329 | ## Platform. ## | |
1330 | ## --------- ## | |
1331 | ||
1332 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1333 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1334 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1335 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1336 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1337 | ||
1338 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1339 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1340 | ||
1341 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1342 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1343 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1344 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1345 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1346 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1347 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1348 | ||
1349 | _ASUNAME | |
1350 | ||
1351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1352 | for as_dir in $PATH | |
1353 | do | |
1354 | IFS=$as_save_IFS | |
1355 | test -z "$as_dir" && as_dir=. | |
1356 | echo "PATH: $as_dir" | |
1357 | done | |
1358 | ||
1359 | } >&5 | |
1360 | ||
1361 | cat >&5 <<_ACEOF | |
1362 | ||
1363 | ||
1364 | ## ----------- ## | |
1365 | ## Core tests. ## | |
1366 | ## ----------- ## | |
1367 | ||
1368 | _ACEOF | |
1369 | ||
1370 | ||
1371 | # Keep a trace of the command line. | |
1372 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1373 | # Strip out --silent because we don't want to record it for future runs. | |
1374 | # Also quote any args containing shell meta-characters. | |
1375 | # Make two passes to allow for proper duplicate-argument suppression. | |
1376 | ac_configure_args= | |
1377 | ac_configure_args0= | |
1378 | ac_configure_args1= | |
1379 | ac_sep= | |
1380 | ac_must_keep_next=false | |
1381 | for ac_pass in 1 2 | |
1382 | do | |
1383 | for ac_arg | |
1384 | do | |
1385 | case $ac_arg in | |
1386 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1387 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1388 | | -silent | --silent | --silen | --sile | --sil) | |
1389 | continue ;; | |
1390 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1391 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1392 | esac | |
1393 | case $ac_pass in | |
1394 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1395 | 2) | |
1396 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1397 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1398 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1399 | else |
ac1cb8d3 VS |
1400 | case $ac_arg in |
1401 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1402 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1403 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1404 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1405 | case "$ac_configure_args0 " in | |
1406 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1407 | esac | |
1408 | ;; | |
1409 | -* ) ac_must_keep_next=true ;; | |
1410 | esac | |
a848cd7e SC |
1411 | fi |
1412 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1413 | # Get rid of the leading space. | |
1414 | ac_sep=" " | |
1415 | ;; | |
1416 | esac | |
1417 | done | |
1418 | done | |
1419 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1420 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1421 | ||
1422 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1423 | # config.log. We remove comments because anyway the quotes in there | |
1424 | # would cause problems or look ugly. | |
1425 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1426 | # such as our DU 5.0 friend, will then `close' the trap. | |
1427 | trap 'exit_status=$? | |
1428 | # Save into config.log some information that might help in debugging. | |
1429 | { | |
1430 | echo | |
1431 | ||
1432 | cat <<\_ASBOX | |
1433 | ## ---------------- ## | |
1434 | ## Cache variables. ## | |
1435 | ## ---------------- ## | |
1436 | _ASBOX | |
1437 | echo | |
1438 | # The following way of writing the cache mishandles newlines in values, | |
1439 | { | |
1440 | (set) 2>&1 | | |
1441 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1442 | *ac_space=\ *) | |
1443 | sed -n \ | |
ac1cb8d3 VS |
1444 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1445 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1446 | ;; |
1447 | *) | |
1448 | sed -n \ | |
ac1cb8d3 | 1449 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1450 | ;; |
1451 | esac; | |
1452 | } | |
1453 | echo | |
1454 | ||
1455 | cat <<\_ASBOX | |
1456 | ## ----------------- ## | |
1457 | ## Output variables. ## | |
1458 | ## ----------------- ## | |
1459 | _ASBOX | |
1460 | echo | |
1461 | for ac_var in $ac_subst_vars | |
1462 | do | |
1463 | eval ac_val=$`echo $ac_var` | |
1464 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1465 | done | sort | |
1466 | echo | |
1467 | ||
1468 | if test -n "$ac_subst_files"; then | |
1469 | cat <<\_ASBOX | |
1470 | ## ------------- ## | |
1471 | ## Output files. ## | |
1472 | ## ------------- ## | |
1473 | _ASBOX | |
1474 | echo | |
1475 | for ac_var in $ac_subst_files | |
1476 | do | |
1477 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1478 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1479 | done | sort |
1480 | echo | |
1481 | fi | |
1482 | ||
1483 | if test -s confdefs.h; then | |
1484 | cat <<\_ASBOX | |
1485 | ## ----------- ## | |
1486 | ## confdefs.h. ## | |
1487 | ## ----------- ## | |
1488 | _ASBOX | |
1489 | echo | |
1490 | sed "/^$/d" confdefs.h | sort | |
1491 | echo | |
1492 | fi | |
1493 | test "$ac_signal" != 0 && | |
1494 | echo "$as_me: caught signal $ac_signal" | |
1495 | echo "$as_me: exit $exit_status" | |
1496 | } >&5 | |
ac1cb8d3 | 1497 | rm -f core *.core && |
a848cd7e SC |
1498 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1499 | exit $exit_status | |
1500 | ' 0 | |
1501 | for ac_signal in 1 2 13 15; do | |
1502 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1503 | done | |
1504 | ac_signal=0 | |
1505 | ||
1506 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1507 | rm -rf conftest* confdefs.h | |
1508 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1509 | echo >confdefs.h | |
1510 | ||
1511 | # Predefined preprocessor variables. | |
1512 | ||
1513 | cat >>confdefs.h <<_ACEOF | |
1514 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1515 | _ACEOF | |
1516 | ||
1517 | ||
1518 | cat >>confdefs.h <<_ACEOF | |
1519 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1520 | _ACEOF | |
1521 | ||
1522 | ||
1523 | cat >>confdefs.h <<_ACEOF | |
1524 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1525 | _ACEOF | |
1526 | ||
1527 | ||
1528 | cat >>confdefs.h <<_ACEOF | |
1529 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1530 | _ACEOF | |
1531 | ||
1532 | ||
1533 | cat >>confdefs.h <<_ACEOF | |
1534 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1535 | _ACEOF | |
1536 | ||
1537 | ||
1538 | # Let the site file select an alternate cache file if it wants to. | |
1539 | # Prefer explicitly selected file to automatically selected ones. | |
1540 | if test -z "$CONFIG_SITE"; then | |
1541 | if test "x$prefix" != xNONE; then | |
1542 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1543 | else | |
1544 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1545 | fi | |
1546 | fi | |
1547 | for ac_site_file in $CONFIG_SITE; do | |
1548 | if test -r "$ac_site_file"; then | |
1549 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1550 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1551 | sed 's/^/| /' "$ac_site_file" >&5 | |
1552 | . "$ac_site_file" | |
1553 | fi | |
1554 | done | |
1555 | ||
1556 | if test -r "$cache_file"; then | |
1557 | # Some versions of bash will fail to source /dev/null (special | |
1558 | # files actually), so we avoid doing that. | |
1559 | if test -f "$cache_file"; then | |
1560 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1561 | echo "$as_me: loading cache $cache_file" >&6;} | |
1562 | case $cache_file in | |
1563 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1564 | *) . ./$cache_file;; | |
1565 | esac | |
1566 | fi | |
1567 | else | |
1568 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1569 | echo "$as_me: creating cache $cache_file" >&6;} | |
1570 | >$cache_file | |
1571 | fi | |
1572 | ||
1573 | # Check that the precious variables saved in the cache have kept the same | |
1574 | # value. | |
1575 | ac_cache_corrupted=false | |
1576 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1577 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1578 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1579 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1580 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1581 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1582 | case $ac_old_set,$ac_new_set in | |
1583 | set,) | |
1584 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1585 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1586 | ac_cache_corrupted=: ;; | |
1587 | ,set) | |
1588 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1589 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1590 | ac_cache_corrupted=: ;; | |
1591 | ,);; | |
1592 | *) | |
1593 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1594 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1595 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1596 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1597 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1598 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1599 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1600 | ac_cache_corrupted=: |
a848cd7e SC |
1601 | fi;; |
1602 | esac | |
1603 | # Pass precious variables to config.status. | |
1604 | if test "$ac_new_set" = set; then | |
1605 | case $ac_new_val in | |
1606 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1607 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1608 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1609 | esac | |
1610 | case " $ac_configure_args " in | |
1611 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1612 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1613 | esac | |
1614 | fi | |
1615 | done | |
1616 | if $ac_cache_corrupted; then | |
1617 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1618 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1619 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1620 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1621 | { (exit 1); exit 1; }; } | |
1622 | fi | |
1623 | ||
1624 | ac_ext=c | |
1625 | ac_cpp='$CPP $CPPFLAGS' | |
1626 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1627 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1628 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1629 | ||
1630 | ||
1631 | ||
1632 | ||
1633 | ||
1634 | ||
1635 | ||
1636 | ||
1637 | ||
1638 | ||
1639 | ||
1640 | ||
1641 | ||
1642 | ||
1643 | ||
1644 | ||
1645 | ||
1646 | ||
1647 | ||
1648 | ||
1649 | ||
1650 | ||
1651 | ||
1652 | ||
1653 | ||
1654 | ||
1655 | ||
1656 | ||
1657 | ||
1658 | ||
1659 | ac_aux_dir= | |
1660 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1661 | if test -f $ac_dir/install-sh; then | |
1662 | ac_aux_dir=$ac_dir | |
1663 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1664 | break | |
1665 | elif test -f $ac_dir/install.sh; then | |
1666 | ac_aux_dir=$ac_dir | |
1667 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1668 | break | |
1669 | elif test -f $ac_dir/shtool; then | |
1670 | ac_aux_dir=$ac_dir | |
1671 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1672 | break | |
1673 | fi | |
1674 | done | |
1675 | if test -z "$ac_aux_dir"; then | |
1676 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1677 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1678 | { (exit 1); exit 1; }; } | |
1679 | fi | |
1680 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1681 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1682 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1683 | ||
1684 | # Make sure we can run config.sub. | |
1685 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1686 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1687 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1688 | { (exit 1); exit 1; }; } | |
1689 | ||
1690 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1691 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1692 | if test "${ac_cv_build+set}" = set; then | |
1693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1694 | else | |
1695 | ac_cv_build_alias=$build_alias | |
1696 | test -z "$ac_cv_build_alias" && | |
1697 | ac_cv_build_alias=`$ac_config_guess` | |
1698 | test -z "$ac_cv_build_alias" && | |
1699 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1700 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1701 | { (exit 1); exit 1; }; } | |
1702 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1703 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1704 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1705 | { (exit 1); exit 1; }; } | |
1706 | ||
1707 | fi | |
1708 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1709 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1710 | build=$ac_cv_build | |
1711 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1712 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1713 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1714 | ||
1715 | ||
1716 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1717 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1718 | if test "${ac_cv_host+set}" = set; then | |
1719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1720 | else | |
1721 | ac_cv_host_alias=$host_alias | |
1722 | test -z "$ac_cv_host_alias" && | |
1723 | ac_cv_host_alias=$ac_cv_build_alias | |
1724 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1725 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1726 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1727 | { (exit 1); exit 1; }; } | |
1728 | ||
1729 | fi | |
1730 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1731 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1732 | host=$ac_cv_host | |
1733 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1734 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1735 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1736 | ||
1737 | ||
1738 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1739 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1740 | if test "${ac_cv_target+set}" = set; then | |
1741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1742 | else | |
1743 | ac_cv_target_alias=$target_alias | |
1744 | test "x$ac_cv_target_alias" = "x" && | |
1745 | ac_cv_target_alias=$ac_cv_host_alias | |
1746 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1747 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1748 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1749 | { (exit 1); exit 1; }; } | |
1750 | ||
1751 | fi | |
1752 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1753 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1754 | target=$ac_cv_target | |
1755 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1756 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1757 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1758 | ||
1759 | ||
1760 | # The aliases save the names the user supplied, while $host etc. | |
1761 | # will get canonicalized. | |
1762 | test -n "$target_alias" && | |
1763 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1764 | NONENONEs,x,x, && | |
1765 | program_prefix=${target_alias}- | |
1766 | ||
1767 | ||
1768 | ||
ceec2216 | 1769 | wx_major_version_number=2 |
dd8df4fc VZ |
1770 | wx_minor_version_number=7 |
1771 | wx_release_number=0 | |
1772 | wx_subrelease_number=0 | |
a848cd7e | 1773 | |
ceec2216 RL |
1774 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1775 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1776 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1777 | |
ceec2216 | 1778 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1779 | |
a848cd7e SC |
1780 | |
1781 | ||
1782 | ||
1783 | USE_UNIX=1 | |
1784 | USE_OS2=0 | |
1785 | USE_WIN32=0 | |
1786 | USE_DOS=0 | |
1787 | USE_BEOS=0 | |
1788 | USE_MAC=0 | |
1789 | ||
1790 | USE_AIX= | |
1791 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1792 | USE_GNU= USE_HPUX= | |
1793 | USE_LINUX= | |
1794 | USE_NETBSD= | |
1795 | USE_OPENBSD= | |
1796 | USE_OSF= USE_SGI= | |
1797 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1798 | USE_ULTRIX= | |
1799 | USE_UNIXWARE= | |
1800 | ||
1801 | USE_ALPHA= | |
1802 | ||
1803 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1804 | ||
1805 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1806 | ||
1807 | DEFAULT_wxUSE_COCOA=0 | |
1808 | DEFAULT_wxUSE_GTK=0 | |
1809 | DEFAULT_wxUSE_MAC=0 | |
1810 | DEFAULT_wxUSE_MGL=0 | |
1811 | DEFAULT_wxUSE_MICROWIN=0 | |
1812 | DEFAULT_wxUSE_MOTIF=0 | |
1813 | DEFAULT_wxUSE_MSW=0 | |
1814 | DEFAULT_wxUSE_PM=0 | |
1815 | DEFAULT_wxUSE_X11=0 | |
1816 | ||
1817 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1818 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1819 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1820 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1821 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1822 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1823 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1824 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1825 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1826 | ||
1827 | PROGRAM_EXT= | |
1828 | SO_SUFFIX=so | |
1829 | SAMPLES_RPATH_FLAG= | |
1830 | SAMPLES_RPATH_POSTLINK= | |
1831 | ||
a03b8b04 RD |
1832 | DEFAULT_STD_FLAG=yes |
1833 | ||
a848cd7e SC |
1834 | case "${host}" in |
1835 | *-hp-hpux* ) | |
1836 | USE_HPUX=1 | |
1837 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1838 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1839 | SO_SUFFIX=sl | |
1840 | cat >>confdefs.h <<\_ACEOF | |
1841 | #define __HPUX__ 1 | |
1842 | _ACEOF | |
1843 | ||
2eef8513 | 1844 | |
c92ad099 | 1845 | CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS" |
a848cd7e SC |
1846 | ;; |
1847 | *-*-linux* ) | |
1848 | USE_LINUX=1 | |
1849 | cat >>confdefs.h <<\_ACEOF | |
1850 | #define __LINUX__ 1 | |
1851 | _ACEOF | |
1852 | ||
1853 | TMP=`uname -m` | |
1854 | if test "x$TMP" = "xalpha"; then | |
1855 | USE_ALPHA=1 | |
1856 | cat >>confdefs.h <<\_ACEOF | |
1857 | #define __ALPHA__ 1 | |
1858 | _ACEOF | |
1859 | ||
1860 | fi | |
1861 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1862 | ;; | |
1863 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1864 | USE_GNU=1 | |
1865 | TMP=`uname -m` | |
1866 | if test "x$TMP" = "xalpha"; then | |
1867 | USE_ALPHA=1 | |
1868 | cat >>confdefs.h <<\_ACEOF | |
1869 | #define __ALPHA__ 1 | |
1870 | _ACEOF | |
1871 | ||
1872 | fi | |
1873 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1874 | ;; | |
1875 | *-*-irix5* | *-*-irix6* ) | |
1876 | USE_SGI=1 | |
1877 | USE_SVR4=1 | |
1878 | cat >>confdefs.h <<\_ACEOF | |
1879 | #define __SGI__ 1 | |
1880 | _ACEOF | |
1881 | ||
1882 | cat >>confdefs.h <<\_ACEOF | |
1883 | #define __SVR4__ 1 | |
1884 | _ACEOF | |
1885 | ||
1886 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1887 | ;; | |
1888 | *-*-solaris2* ) | |
1889 | USE_SUN=1 | |
1890 | USE_SOLARIS=1 | |
1891 | USE_SVR4=1 | |
1892 | cat >>confdefs.h <<\_ACEOF | |
1893 | #define __SUN__ 1 | |
1894 | _ACEOF | |
1895 | ||
1896 | cat >>confdefs.h <<\_ACEOF | |
1897 | #define __SOLARIS__ 1 | |
1898 | _ACEOF | |
1899 | ||
1900 | cat >>confdefs.h <<\_ACEOF | |
1901 | #define __SVR4__ 1 | |
1902 | _ACEOF | |
1903 | ||
1904 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1905 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1906 | ;; | |
1907 | *-*-sunos4* ) | |
1908 | USE_SUN=1 | |
1909 | USE_SUNOS=1 | |
1910 | USE_BSD=1 | |
1911 | cat >>confdefs.h <<\_ACEOF | |
1912 | #define __SUN__ 1 | |
1913 | _ACEOF | |
1914 | ||
1915 | cat >>confdefs.h <<\_ACEOF | |
1916 | #define __SUNOS__ 1 | |
1917 | _ACEOF | |
1918 | ||
1919 | cat >>confdefs.h <<\_ACEOF | |
1920 | #define __BSD__ 1 | |
1921 | _ACEOF | |
1922 | ||
1923 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1924 | ;; | |
1925 | *-*-freebsd*) | |
1926 | USE_BSD=1 | |
1927 | USE_FREEBSD=1 | |
1928 | cat >>confdefs.h <<\_ACEOF | |
1929 | #define __FREEBSD__ 1 | |
1930 | _ACEOF | |
1931 | ||
1932 | cat >>confdefs.h <<\_ACEOF | |
1933 | #define __BSD__ 1 | |
1934 | _ACEOF | |
1935 | ||
1936 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1937 | ;; | |
c9a66001 | 1938 | *-*-openbsd*|*-*-mirbsd*) |
a848cd7e SC |
1939 | USE_BSD=1 |
1940 | USE_OPENBSD=1 | |
1941 | cat >>confdefs.h <<\_ACEOF | |
1942 | #define __OPENBSD__ 1 | |
1943 | _ACEOF | |
1944 | ||
1945 | cat >>confdefs.h <<\_ACEOF | |
1946 | #define __BSD__ 1 | |
1947 | _ACEOF | |
1948 | ||
1949 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1950 | ;; | |
1951 | *-*-netbsd*) | |
1952 | USE_BSD=1 | |
1953 | USE_NETBSD=1 | |
1954 | cat >>confdefs.h <<\_ACEOF | |
1955 | #define __NETBSD__ 1 | |
1956 | _ACEOF | |
1957 | ||
1958 | cat >>confdefs.h <<\_ACEOF | |
1959 | #define __BSD__ 1 | |
1960 | _ACEOF | |
1961 | ||
1962 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
728258f4 | 1963 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
def7c04a | 1964 | |
def7c04a | 1965 | CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS" |
a848cd7e SC |
1966 | ;; |
1967 | *-*-osf* ) | |
1968 | USE_ALPHA=1 | |
1969 | USE_OSF=1 | |
1970 | cat >>confdefs.h <<\_ACEOF | |
1971 | #define __ALPHA__ 1 | |
1972 | _ACEOF | |
1973 | ||
1974 | cat >>confdefs.h <<\_ACEOF | |
1975 | #define __OSF__ 1 | |
1976 | _ACEOF | |
1977 | ||
1978 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1979 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1980 | ;; | |
1981 | *-*-dgux5* ) | |
1982 | USE_ALPHA=1 | |
1983 | USE_SVR4=1 | |
1984 | cat >>confdefs.h <<\_ACEOF | |
1985 | #define __ALPHA__ 1 | |
1986 | _ACEOF | |
1987 | ||
1988 | cat >>confdefs.h <<\_ACEOF | |
1989 | #define __SVR4__ 1 | |
1990 | _ACEOF | |
1991 | ||
1992 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1993 | ;; | |
1994 | *-*-sysv5* ) | |
1995 | USE_SYSV=1 | |
1996 | USE_SVR4=1 | |
1997 | cat >>confdefs.h <<\_ACEOF | |
1998 | #define __SYSV__ 1 | |
1999 | _ACEOF | |
2000 | ||
2001 | cat >>confdefs.h <<\_ACEOF | |
2002 | #define __SVR4__ 1 | |
2003 | _ACEOF | |
2004 | ||
2005 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2006 | ;; | |
2007 | *-*-aix* ) | |
2008 | USE_AIX=1 | |
2009 | USE_SYSV=1 | |
2010 | USE_SVR4=1 | |
2011 | SO_SUFFIX=a | |
2012 | cat >>confdefs.h <<\_ACEOF | |
2013 | #define __AIX__ 1 | |
2014 | _ACEOF | |
2015 | ||
2016 | cat >>confdefs.h <<\_ACEOF | |
2017 | #define __SYSV__ 1 | |
2018 | _ACEOF | |
2019 | ||
2020 | cat >>confdefs.h <<\_ACEOF | |
2021 | #define __SVR4__ 1 | |
2022 | _ACEOF | |
2023 | ||
2024 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2025 | ;; | |
2026 | ||
2027 | *-*-*UnixWare*) | |
2028 | USE_SYSV=1 | |
2029 | USE_SVR4=1 | |
2030 | USE_UNIXWARE=1 | |
2031 | cat >>confdefs.h <<\_ACEOF | |
2032 | #define __UNIXWARE__ 1 | |
2033 | _ACEOF | |
2034 | ||
2035 | ;; | |
2036 | ||
2037 | *-*-cygwin* | *-*-mingw32* ) | |
2038 | SO_SUFFIX=dll | |
2039 | PROGRAM_EXT=".exe" | |
a848cd7e | 2040 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 2041 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
2042 | ;; |
2043 | ||
2044 | *-pc-msdosdjgpp ) | |
2045 | USE_UNIX=0 | |
2046 | USE_DOS=1 | |
2047 | cat >>confdefs.h <<\_ACEOF | |
2048 | #define __DOS__ 1 | |
2049 | _ACEOF | |
2050 | ||
2051 | PROGRAM_EXT=".exe" | |
2052 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
2053 | ;; |
2054 | ||
2055 | *-pc-os2_emx | *-pc-os2-emx ) | |
2056 | cat >>confdefs.h <<\_ACEOF | |
2057 | #define __EMX__ 1 | |
2058 | _ACEOF | |
2059 | ||
2060 | USE_OS2=1 | |
2061 | cat >>confdefs.h <<\_ACEOF | |
2062 | #define __OS2__ 1 | |
2063 | _ACEOF | |
2064 | ||
2065 | PROGRAM_EXT=".exe" | |
2066 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
2067 | CXX=gcc | |
2068 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
2069 | ac_executable_extensions=".exe" | |
2070 | export ac_executable_extensions | |
2071 | ac_save_IFS="$IFS" | |
2072 | IFS='\\' | |
2073 | ac_TEMP_PATH= | |
2074 | for ac_dir in $PATH; do | |
2075 | IFS=$ac_save_IFS | |
2076 | if test -z "$ac_TEMP_PATH"; then | |
2077 | ac_TEMP_PATH="$ac_dir" | |
2078 | else | |
2079 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
2080 | fi | |
2081 | done | |
2082 | export PATH="$ac_TEMP_PATH" | |
2083 | unset ac_TEMP_PATH | |
a03b8b04 | 2084 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
2085 | ;; |
2086 | ||
cfda0ea8 | 2087 | *-*-darwin* ) |
a848cd7e SC |
2088 | USE_BSD=1 |
2089 | USE_DARWIN=1 | |
2090 | SO_SUFFIX=dylib | |
2091 | cat >>confdefs.h <<\_ACEOF | |
2092 | #define __BSD__ 1 | |
2093 | _ACEOF | |
2094 | ||
2095 | cat >>confdefs.h <<\_ACEOF | |
2096 | #define __DARWIN__ 1 | |
a848cd7e SC |
2097 | _ACEOF |
2098 | ||
2099 | cat >>confdefs.h <<\_ACEOF | |
2100 | #define TARGET_CARBON 1 | |
2101 | _ACEOF | |
2102 | ||
2103 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2104 | DEFAULT_STD_FLAG=no |
a848cd7e | 2105 | ;; |
1e9e8aba DE |
2106 | powerpc-apple-macos* ) |
2107 | USE_UNIX=0 | |
2108 | ac_cv_c_bigendian=yes | |
2109 | SO_SUFFIX=shlib | |
2110 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2111 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2112 | ;; |
a848cd7e SC |
2113 | |
2114 | *-*-beos* ) | |
2115 | USE_BEOS=1 | |
2116 | cat >>confdefs.h <<\_ACEOF | |
2117 | #define __BEOS__ 1 | |
2118 | _ACEOF | |
2119 | ||
2120 | ;; | |
2121 | ||
2122 | *) | |
c9a66001 VZ |
2123 | { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5 |
2124 | echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;} | |
2125 | { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5 | |
2126 | echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;} | |
5acfd58d MW |
2127 | |
2128 | DEFAULT_DEFAULT_wxUSE_X11=1 | |
2129 | DEFAULT_wxUSE_SHARED=no | |
a848cd7e SC |
2130 | esac |
2131 | ||
2132 | ||
2133 | ||
2134 | ||
2135 | wx_arg_cache_file="configarg.cache" | |
2136 | echo "loading argument cache $wx_arg_cache_file" | |
2137 | rm -f ${wx_arg_cache_file}.tmp | |
2138 | touch ${wx_arg_cache_file}.tmp | |
2139 | touch ${wx_arg_cache_file} | |
2140 | ||
2141 | ||
2142 | DEBUG_CONFIGURE=0 | |
2143 | if test $DEBUG_CONFIGURE = 1; then | |
2144 | DEFAULT_wxUSE_UNIVERSAL=no | |
2145 | DEFAULT_wxUSE_STL=no | |
2146 | ||
2147 | DEFAULT_wxUSE_NANOX=no | |
2148 | ||
2149 | DEFAULT_wxUSE_THREADS=yes | |
2150 | ||
5acfd58d | 2151 | DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes} |
a848cd7e SC |
2152 | DEFAULT_wxUSE_OPTIMISE=no |
2153 | DEFAULT_wxUSE_PROFILE=no | |
2154 | DEFAULT_wxUSE_NO_DEPS=no | |
2155 | DEFAULT_wxUSE_NO_RTTI=no | |
2156 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2157 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2158 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2159 | DEFAULT_wxUSE_PERMISSIVE=no |
2160 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2161 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2162 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2163 | DEFAULT_wxUSE_MEM_TRACING=no | |
2164 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2165 | DEFAULT_wxUSE_DMALLOC=no | |
2166 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2167 | ||
2168 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2169 | DEFAULT_wxUSE_LOG=yes | |
2170 | DEFAULT_wxUSE_LOGWINDOW=no | |
2171 | DEFAULT_wxUSE_LOGGUI=no | |
2172 | DEFAULT_wxUSE_LOGDIALOG=no | |
2173 | ||
2174 | DEFAULT_wxUSE_GUI=yes | |
2175 | DEFAULT_wxUSE_CONTROLS=no | |
2176 | ||
2177 | DEFAULT_wxUSE_REGEX=no | |
2178 | DEFAULT_wxUSE_XML=no | |
2179 | DEFAULT_wxUSE_EXPAT=no | |
2180 | DEFAULT_wxUSE_ZLIB=no | |
2181 | DEFAULT_wxUSE_LIBPNG=no | |
2182 | DEFAULT_wxUSE_LIBJPEG=no | |
2183 | DEFAULT_wxUSE_LIBTIFF=no | |
2184 | DEFAULT_wxUSE_LIBXPM=no | |
2185 | DEFAULT_wxUSE_LIBMSPACK=no | |
2186 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2187 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2188 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2189 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e SC |
2190 | DEFAULT_wxUSE_ODBC=no |
2191 | DEFAULT_wxUSE_OPENGL=no | |
2192 | ||
2193 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2194 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2195 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2196 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2197 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2198 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2199 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2200 | DEFAULT_wxUSE_DATETIME=no | |
2201 | DEFAULT_wxUSE_TIMER=no | |
2202 | DEFAULT_wxUSE_STOPWATCH=no | |
2203 | DEFAULT_wxUSE_FILE=no | |
2204 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2205 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2206 | DEFAULT_wxUSE_TEXTBUFFER=no |
2207 | DEFAULT_wxUSE_TEXTFILE=no | |
2208 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2209 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2210 | DEFAULT_wxUSE_GSTREAMER8=no |
8f3773fd | 2211 | DEFAULT_wxUSE_PRINTF_POS_PARAMS=no |
a848cd7e SC |
2212 | DEFAULT_wxUSE_INTL=no |
2213 | DEFAULT_wxUSE_CONFIG=no | |
2214 | DEFAULT_wxUSE_FONTMAP=no | |
2215 | DEFAULT_wxUSE_STREAMS=no | |
2216 | DEFAULT_wxUSE_SOCKETS=no | |
2217 | DEFAULT_wxUSE_OLE=no | |
2218 | DEFAULT_wxUSE_DATAOBJ=no | |
2219 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2220 | DEFAULT_wxUSE_JOYSTICK=no | |
2221 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2222 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2223 | DEFAULT_wxUSE_LONGLONG=no | |
2224 | DEFAULT_wxUSE_GEOMETRY=no | |
2225 | ||
2226 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2227 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2228 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2229 | ||
2230 | DEFAULT_wxUSE_CLIPBOARD=no | |
2231 | DEFAULT_wxUSE_TOOLTIPS=no | |
2232 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2233 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2234 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2235 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2236 | |
8a7b1113 | 2237 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2238 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2239 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2240 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2241 | ||
2242 | DEFAULT_wxUSE_RESOURCES=no | |
2243 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2244 | DEFAULT_wxUSE_IPC=no | |
2245 | DEFAULT_wxUSE_HELP=no | |
2246 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2247 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2248 | DEFAULT_wxUSE_TREELAYOUT=no | |
2249 | DEFAULT_wxUSE_METAFILE=no | |
2250 | DEFAULT_wxUSE_MIMETYPE=no | |
2251 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2252 | DEFAULT_wxUSE_PROTOCOL=no | |
2253 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2254 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2255 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2256 | DEFAULT_wxUSE_URL=no | |
2257 | ||
2258 | DEFAULT_wxUSE_COMMONDLGS=no | |
2259 | DEFAULT_wxUSE_CHOICEDLG=no | |
2260 | DEFAULT_wxUSE_COLOURDLG=no | |
2261 | DEFAULT_wxUSE_DIRDLG=no | |
2262 | DEFAULT_wxUSE_FILEDLG=no | |
2263 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2264 | DEFAULT_wxUSE_FONTDLG=no | |
2265 | DEFAULT_wxUSE_MSGDLG=no | |
2266 | DEFAULT_wxUSE_NUMBERDLG=no | |
2267 | DEFAULT_wxUSE_TEXTDLG=no | |
2268 | DEFAULT_wxUSE_SPLASH=no | |
2269 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2270 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2271 | DEFAULT_wxUSE_WIZARDDLG=no | |
2272 | ||
2273 | DEFAULT_wxUSE_MENUS=no | |
2274 | DEFAULT_wxUSE_MINIFRAME=no | |
2275 | DEFAULT_wxUSE_HTML=no | |
91dea314 | 2276 | DEFAULT_wxUSE_RICHTEXT=no |
9a8f0513 | 2277 | DEFAULT_wxUSE_XRC=no |
3f60522a | 2278 | DEFAULT_wxUSE_AUI=no |
646b6ec1 | 2279 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2280 | DEFAULT_wxUSE_FILESYSTEM=no |
2281 | DEFAULT_wxUSE_FS_INET=no | |
2282 | DEFAULT_wxUSE_FS_ZIP=no | |
2283 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2284 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2285 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2286 | DEFAULT_wxUSE_VALIDATORS=no |
2287 | ||
2288 | DEFAULT_wxUSE_ACCEL=no | |
2289 | DEFAULT_wxUSE_BUTTON=no | |
2290 | DEFAULT_wxUSE_BMPBUTTON=no | |
2291 | DEFAULT_wxUSE_CALCTRL=no | |
2292 | DEFAULT_wxUSE_CARET=no | |
2293 | DEFAULT_wxUSE_CHECKBOX=no | |
2294 | DEFAULT_wxUSE_CHECKLST=no | |
2295 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2296 | DEFAULT_wxUSE_CHOICEBOOK=no |
e9263684 | 2297 | DEFAULT_wxUSE_COLOURPICKERCTRL=no |
a848cd7e | 2298 | DEFAULT_wxUSE_COMBOBOX=no |
a57d600f | 2299 | DEFAULT_wxUSE_COMBOCTRL=no |
da98e9be | 2300 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e | 2301 | DEFAULT_wxUSE_DISPLAY=no |
e9263684 VZ |
2302 | DEFAULT_wxUSE_DIRPICKERCTRL=no |
2303 | DEFAULT_wxUSE_FILEPICKERCTRL=no | |
2304 | DEFAULT_wxUSE_FONTPICKERCTRL=no | |
a848cd7e SC |
2305 | DEFAULT_wxUSE_GAUGE=no |
2306 | DEFAULT_wxUSE_GRID=no | |
6954625c | 2307 | DEFAULT_wxUSE_HYPERLINKCTRL=no |
20e34ecc | 2308 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2309 | DEFAULT_wxUSE_IMAGLIST=no |
2310 | DEFAULT_wxUSE_LISTBOOK=no | |
2311 | DEFAULT_wxUSE_LISTBOX=no | |
2312 | DEFAULT_wxUSE_LISTCTRL=no | |
2313 | DEFAULT_wxUSE_NOTEBOOK=no | |
a57d600f | 2314 | DEFAULT_wxUSE_ODCOMBOBOX=no |
a848cd7e SC |
2315 | DEFAULT_wxUSE_RADIOBOX=no |
2316 | DEFAULT_wxUSE_RADIOBTN=no | |
2317 | DEFAULT_wxUSE_SASH=no | |
2318 | DEFAULT_wxUSE_SCROLLBAR=no | |
2319 | DEFAULT_wxUSE_SLIDER=no | |
2320 | DEFAULT_wxUSE_SPINBTN=no | |
2321 | DEFAULT_wxUSE_SPINCTRL=no | |
2322 | DEFAULT_wxUSE_SPLITTER=no | |
2323 | DEFAULT_wxUSE_STATBMP=no | |
2324 | DEFAULT_wxUSE_STATBOX=no | |
2325 | DEFAULT_wxUSE_STATLINE=no | |
2326 | DEFAULT_wxUSE_STATTEXT=no | |
2327 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2328 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2329 | DEFAULT_wxUSE_TEXTCTRL=no |
2330 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2331 | DEFAULT_wxUSE_TOOLBAR=no | |
2332 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2333 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
0093c2fc | 2334 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 2335 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
2336 | DEFAULT_wxUSE_TREECTRL=no |
2337 | DEFAULT_wxUSE_POPUPWIN=no | |
2338 | DEFAULT_wxUSE_TIPWINDOW=no | |
2339 | ||
2340 | DEFAULT_wxUSE_UNICODE=no | |
2341 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2342 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2343 | ||
2344 | DEFAULT_wxUSE_PALETTE=no | |
2345 | DEFAULT_wxUSE_IMAGE=no | |
2346 | DEFAULT_wxUSE_GIF=no | |
2347 | DEFAULT_wxUSE_PCX=no | |
2348 | DEFAULT_wxUSE_PNM=no | |
2349 | DEFAULT_wxUSE_IFF=no | |
2350 | DEFAULT_wxUSE_XPM=no | |
2351 | DEFAULT_wxUSE_ICO_CUR=no | |
2352 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2353 | ||
2354 | DEFAULT_wxUSE_MONOLITHIC=no | |
2355 | DEFAULT_wxUSE_PLUGINS=no | |
2356 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2357 | else | |
2358 | DEFAULT_wxUSE_UNIVERSAL=no | |
2359 | DEFAULT_wxUSE_STL=no | |
2360 | ||
2361 | DEFAULT_wxUSE_NANOX=no | |
2362 | ||
2363 | DEFAULT_wxUSE_THREADS=yes | |
2364 | ||
5acfd58d | 2365 | DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes} |
a848cd7e SC |
2366 | DEFAULT_wxUSE_OPTIMISE=yes |
2367 | DEFAULT_wxUSE_PROFILE=no | |
2368 | DEFAULT_wxUSE_NO_DEPS=no | |
2369 | DEFAULT_wxUSE_NO_RTTI=no | |
2370 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2371 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2372 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2373 | DEFAULT_wxUSE_PERMISSIVE=no |
2374 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2375 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2376 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2377 | DEFAULT_wxUSE_MEM_TRACING=no | |
2378 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2379 | DEFAULT_wxUSE_DMALLOC=no | |
2380 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2381 | ||
2382 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2383 | DEFAULT_wxUSE_LOG=yes | |
2384 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2385 | DEFAULT_wxUSE_LOGGUI=yes | |
2386 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2387 | ||
2388 | DEFAULT_wxUSE_GUI=yes | |
2389 | ||
2390 | DEFAULT_wxUSE_REGEX=yes | |
2391 | DEFAULT_wxUSE_XML=yes | |
2392 | DEFAULT_wxUSE_EXPAT=yes | |
2393 | DEFAULT_wxUSE_ZLIB=yes | |
2394 | DEFAULT_wxUSE_LIBPNG=yes | |
2395 | DEFAULT_wxUSE_LIBJPEG=yes | |
2396 | DEFAULT_wxUSE_LIBTIFF=yes | |
2397 | DEFAULT_wxUSE_LIBXPM=yes | |
2398 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2399 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2400 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2401 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2402 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e | 2403 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2404 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2405 | |
2406 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2407 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2408 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2409 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2410 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2411 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2412 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2413 | DEFAULT_wxUSE_DATETIME=yes | |
2414 | DEFAULT_wxUSE_TIMER=yes | |
2415 | DEFAULT_wxUSE_STOPWATCH=yes | |
2416 | DEFAULT_wxUSE_FILE=yes | |
2417 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2418 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2419 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2420 | DEFAULT_wxUSE_TEXTFILE=yes | |
2421 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2422 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2423 | DEFAULT_wxUSE_GSTREAMER8=no |
8f3773fd | 2424 | DEFAULT_wxUSE_PRINTF_POS_PARAMS=no |
a848cd7e SC |
2425 | DEFAULT_wxUSE_INTL=yes |
2426 | DEFAULT_wxUSE_CONFIG=yes | |
2427 | DEFAULT_wxUSE_FONTMAP=yes | |
2428 | DEFAULT_wxUSE_STREAMS=yes | |
2429 | DEFAULT_wxUSE_SOCKETS=yes | |
2430 | DEFAULT_wxUSE_OLE=yes | |
2431 | DEFAULT_wxUSE_DATAOBJ=yes | |
2432 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2433 | DEFAULT_wxUSE_JOYSTICK=yes | |
2434 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2435 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2436 | DEFAULT_wxUSE_LONGLONG=yes | |
2437 | DEFAULT_wxUSE_GEOMETRY=yes | |
2438 | ||
2439 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2440 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2441 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2442 | ||
2443 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2444 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2445 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2446 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2447 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2448 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2449 | |
8a7b1113 | 2450 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2451 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2452 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2453 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2454 | ||
2455 | DEFAULT_wxUSE_RESOURCES=no | |
2456 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2457 | DEFAULT_wxUSE_IPC=yes | |
2458 | DEFAULT_wxUSE_HELP=yes | |
2459 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2460 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2461 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2462 | DEFAULT_wxUSE_METAFILE=yes | |
2463 | DEFAULT_wxUSE_MIMETYPE=yes | |
2464 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2465 | DEFAULT_wxUSE_PROTOCOL=yes | |
2466 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2467 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2468 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2469 | DEFAULT_wxUSE_URL=yes | |
2470 | ||
2471 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2472 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2473 | DEFAULT_wxUSE_COLOURDLG=yes | |
2474 | DEFAULT_wxUSE_DIRDLG=yes | |
2475 | DEFAULT_wxUSE_FILEDLG=yes | |
2476 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2477 | DEFAULT_wxUSE_FONTDLG=yes | |
2478 | DEFAULT_wxUSE_MSGDLG=yes | |
2479 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2480 | DEFAULT_wxUSE_TEXTDLG=yes | |
2481 | DEFAULT_wxUSE_SPLASH=yes | |
2482 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2483 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2484 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2485 | ||
2486 | DEFAULT_wxUSE_MENUS=yes | |
2487 | DEFAULT_wxUSE_MINIFRAME=yes | |
2488 | DEFAULT_wxUSE_HTML=yes | |
91dea314 | 2489 | DEFAULT_wxUSE_RICHTEXT=yes |
9a8f0513 | 2490 | DEFAULT_wxUSE_XRC=yes |
3f60522a | 2491 | DEFAULT_wxUSE_AUI=yes |
646b6ec1 | 2492 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2493 | DEFAULT_wxUSE_FILESYSTEM=yes |
2494 | DEFAULT_wxUSE_FS_INET=yes | |
2495 | DEFAULT_wxUSE_FS_ZIP=yes | |
2496 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2497 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2498 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2499 | DEFAULT_wxUSE_VALIDATORS=yes |
2500 | ||
2501 | DEFAULT_wxUSE_ACCEL=yes | |
2502 | DEFAULT_wxUSE_BUTTON=yes | |
2503 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2504 | DEFAULT_wxUSE_CALCTRL=yes | |
2505 | DEFAULT_wxUSE_CARET=yes | |
2506 | DEFAULT_wxUSE_CHECKBOX=yes | |
2507 | DEFAULT_wxUSE_CHECKLST=yes | |
2508 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2509 | DEFAULT_wxUSE_CHOICEBOOK=yes |
e9263684 | 2510 | DEFAULT_wxUSE_COLOURPICKERCTRL=yes |
a848cd7e | 2511 | DEFAULT_wxUSE_COMBOBOX=yes |
a57d600f | 2512 | DEFAULT_wxUSE_COMBOCTRL=yes |
da98e9be | 2513 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e | 2514 | DEFAULT_wxUSE_DISPLAY=yes |
e9263684 VZ |
2515 | DEFAULT_wxUSE_DIRPICKERCTRL=yes |
2516 | DEFAULT_wxUSE_FILEPICKERCTRL=yes | |
2517 | DEFAULT_wxUSE_FONTPICKERCTRL=yes | |
a848cd7e SC |
2518 | DEFAULT_wxUSE_GAUGE=yes |
2519 | DEFAULT_wxUSE_GRID=yes | |
6954625c | 2520 | DEFAULT_wxUSE_HYPERLINKCTRL=yes |
20e34ecc | 2521 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2522 | DEFAULT_wxUSE_IMAGLIST=yes |
2523 | DEFAULT_wxUSE_LISTBOOK=yes | |
2524 | DEFAULT_wxUSE_LISTBOX=yes | |
2525 | DEFAULT_wxUSE_LISTCTRL=yes | |
2526 | DEFAULT_wxUSE_NOTEBOOK=yes | |
a57d600f | 2527 | DEFAULT_wxUSE_ODCOMBOBOX=yes |
a848cd7e SC |
2528 | DEFAULT_wxUSE_RADIOBOX=yes |
2529 | DEFAULT_wxUSE_RADIOBTN=yes | |
2530 | DEFAULT_wxUSE_SASH=yes | |
2531 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2532 | DEFAULT_wxUSE_SLIDER=yes | |
2533 | DEFAULT_wxUSE_SPINBTN=yes | |
2534 | DEFAULT_wxUSE_SPINCTRL=yes | |
2535 | DEFAULT_wxUSE_SPLITTER=yes | |
2536 | DEFAULT_wxUSE_STATBMP=yes | |
2537 | DEFAULT_wxUSE_STATBOX=yes | |
2538 | DEFAULT_wxUSE_STATLINE=yes | |
2539 | DEFAULT_wxUSE_STATTEXT=yes | |
2540 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2541 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2542 | DEFAULT_wxUSE_TEXTCTRL=yes |
2543 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2544 | DEFAULT_wxUSE_TOOLBAR=yes | |
2545 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2546 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
0093c2fc | 2547 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 2548 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
2549 | DEFAULT_wxUSE_TREECTRL=yes |
2550 | DEFAULT_wxUSE_POPUPWIN=yes | |
2551 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2552 | ||
78de529b | 2553 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2554 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2555 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2556 | ||
2557 | DEFAULT_wxUSE_PALETTE=yes | |
2558 | DEFAULT_wxUSE_IMAGE=yes | |
2559 | DEFAULT_wxUSE_GIF=yes | |
2560 | DEFAULT_wxUSE_PCX=yes | |
2561 | DEFAULT_wxUSE_IFF=no | |
2562 | DEFAULT_wxUSE_PNM=yes | |
2563 | DEFAULT_wxUSE_XPM=yes | |
2564 | DEFAULT_wxUSE_ICO_CUR=yes | |
2565 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2566 | ||
2567 | DEFAULT_wxUSE_MONOLITHIC=no | |
2568 | DEFAULT_wxUSE_PLUGINS=no | |
2569 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2570 | |
f34ca037 | 2571 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2572 | fi |
2573 | ||
2574 | ||
2575 | ||
f34ca037 | 2576 | |
a848cd7e SC |
2577 | for toolkit in `echo $ALL_TOOLKITS`; do |
2578 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2579 | if test "x$LINE" != "x" ; then | |
2580 | has_toolkit_in_cache=1 | |
2581 | eval "DEFAULT_$LINE" | |
2582 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2583 | |
2584 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2585 | if test "x$LINE" != "x" ; then | |
2586 | eval "DEFAULT_$LINE" | |
2587 | fi | |
a848cd7e SC |
2588 | fi |
2589 | done | |
2590 | ||
2591 | ||
2592 | ||
2593 | enablestring= | |
2594 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2595 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2596 | no_cache=0 | |
2597 | # Check whether --enable-gui or --disable-gui was given. | |
2598 | if test "${enable_gui+set}" = set; then | |
2599 | enableval="$enable_gui" | |
2600 | ||
2601 | if test "$enableval" = yes; then | |
2602 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2603 | else | |
2604 | ac_cv_use_gui='wxUSE_GUI=no' | |
2605 | fi | |
2606 | ||
2607 | else | |
2608 | ||
2609 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2610 | if test "x$LINE" != x ; then | |
2611 | eval "DEFAULT_$LINE" | |
2612 | else | |
2613 | no_cache=1 | |
2614 | fi | |
2615 | ||
2616 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2617 | ||
2618 | fi; | |
2619 | ||
2620 | eval "$ac_cv_use_gui" | |
2621 | if test "$no_cache" != 1; then | |
2622 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2623 | fi | |
2624 | ||
2625 | if test "$wxUSE_GUI" = yes; then | |
2626 | echo "$as_me:$LINENO: result: yes" >&5 | |
2627 | echo "${ECHO_T}yes" >&6 | |
2628 | else | |
2629 | echo "$as_me:$LINENO: result: no" >&5 | |
2630 | echo "${ECHO_T}no" >&6 | |
2631 | fi | |
2632 | ||
2633 | ||
2634 | enablestring= | |
2635 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2636 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2637 | no_cache=0 | |
2638 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2639 | if test "${enable_monolithic+set}" = set; then | |
2640 | enableval="$enable_monolithic" | |
2641 | ||
2642 | if test "$enableval" = yes; then | |
2643 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2644 | else | |
2645 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2646 | fi | |
2647 | ||
2648 | else | |
2649 | ||
2650 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2651 | if test "x$LINE" != x ; then | |
2652 | eval "DEFAULT_$LINE" | |
2653 | else | |
2654 | no_cache=1 | |
2655 | fi | |
2656 | ||
2657 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2658 | ||
2659 | fi; | |
2660 | ||
2661 | eval "$ac_cv_use_monolithic" | |
2662 | if test "$no_cache" != 1; then | |
2663 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2664 | fi | |
2665 | ||
2666 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2667 | echo "$as_me:$LINENO: result: yes" >&5 | |
2668 | echo "${ECHO_T}yes" >&6 | |
2669 | else | |
2670 | echo "$as_me:$LINENO: result: no" >&5 | |
2671 | echo "${ECHO_T}no" >&6 | |
2672 | fi | |
2673 | ||
2674 | ||
2675 | enablestring= | |
2676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2677 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2678 | no_cache=0 | |
2679 | # Check whether --enable-plugins or --disable-plugins was given. | |
2680 | if test "${enable_plugins+set}" = set; then | |
2681 | enableval="$enable_plugins" | |
2682 | ||
2683 | if test "$enableval" = yes; then | |
2684 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2685 | else | |
2686 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2687 | fi | |
2688 | ||
2689 | else | |
2690 | ||
2691 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2692 | if test "x$LINE" != x ; then | |
2693 | eval "DEFAULT_$LINE" | |
2694 | else | |
2695 | no_cache=1 | |
2696 | fi | |
2697 | ||
2698 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2699 | ||
2700 | fi; | |
2701 | ||
2702 | eval "$ac_cv_use_plugins" | |
2703 | if test "$no_cache" != 1; then | |
2704 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2705 | fi | |
2706 | ||
2707 | if test "$wxUSE_PLUGINS" = yes; then | |
2708 | echo "$as_me:$LINENO: result: yes" >&5 | |
2709 | echo "${ECHO_T}yes" >&6 | |
2710 | else | |
2711 | echo "$as_me:$LINENO: result: no" >&5 | |
2712 | echo "${ECHO_T}no" >&6 | |
2713 | fi | |
2714 | ||
2715 | ||
1c14217d VZ |
2716 | withstring=without |
2717 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2718 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2719 | no_cache=0 | |
2720 | ||
2721 | # Check whether --with-subdirs or --without-subdirs was given. | |
2722 | if test "${with_subdirs+set}" = set; then | |
2723 | withval="$with_subdirs" | |
2724 | ||
2725 | if test "$withval" = yes; then | |
2726 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2727 | else | |
2728 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2729 | fi | |
2730 | ||
2731 | else | |
2732 | ||
2733 | LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}` | |
2734 | if test "x$LINE" != x ; then | |
2735 | eval "DEFAULT_$LINE" | |
2736 | else | |
2737 | no_cache=1 | |
2738 | fi | |
2739 | ||
2740 | ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2741 | ||
2742 | fi; | |
2743 | ||
2744 | eval "$ac_cv_use_subdirs" | |
2745 | if test "$no_cache" != 1; then | |
2746 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2747 | fi | |
2748 | ||
2749 | if test "$wxWITH_SUBDIRS" = yes; then | |
2750 | echo "$as_me:$LINENO: result: yes" >&5 | |
2751 | echo "${ECHO_T}yes" >&6 | |
2752 | else | |
2753 | echo "$as_me:$LINENO: result: no" >&5 | |
2754 | echo "${ECHO_T}no" >&6 | |
2755 | fi | |
2756 | ||
2757 | ||
a848cd7e SC |
2758 | if test "$wxUSE_GUI" = "yes"; then |
2759 | ||
2760 | ||
2761 | enablestring= | |
2762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2763 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2764 | no_cache=0 | |
2765 | # Check whether --enable-universal or --disable-universal was given. | |
2766 | if test "${enable_universal+set}" = set; then | |
2767 | enableval="$enable_universal" | |
2768 | ||
2769 | if test "$enableval" = yes; then | |
2770 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2771 | else | |
2772 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2773 | fi | |
2774 | ||
2775 | else | |
2776 | ||
2777 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2778 | if test "x$LINE" != x ; then | |
2779 | eval "DEFAULT_$LINE" | |
2780 | else | |
2781 | no_cache=1 | |
2782 | fi | |
2783 | ||
2784 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2785 | ||
2786 | fi; | |
2787 | ||
2788 | eval "$ac_cv_use_universal" | |
2789 | if test "$no_cache" != 1; then | |
2790 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2791 | fi | |
2792 | ||
2793 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2794 | echo "$as_me:$LINENO: result: yes" >&5 | |
2795 | echo "${ECHO_T}yes" >&6 | |
2796 | else | |
2797 | echo "$as_me:$LINENO: result: no" >&5 | |
2798 | echo "${ECHO_T}no" >&6 | |
2799 | fi | |
2800 | ||
2801 | ||
2802 | # Check whether --with-gtk or --without-gtk was given. | |
2803 | if test "${with_gtk+set}" = set; then | |
2804 | withval="$with_gtk" | |
2805 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2806 | fi; | |
2807 | ||
2808 | # Check whether --with-motif or --without-motif was given. | |
2809 | if test "${with_motif+set}" = set; then | |
2810 | withval="$with_motif" | |
2811 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2812 | fi; | |
2813 | ||
2814 | # Check whether --with-mac or --without-mac was given. | |
2815 | if test "${with_mac+set}" = set; then | |
2816 | withval="$with_mac" | |
c228d3a4 | 2817 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2818 | fi; |
2819 | ||
2820 | # Check whether --with-cocoa or --without-cocoa was given. | |
2821 | if test "${with_cocoa+set}" = set; then | |
2822 | withval="$with_cocoa" | |
c228d3a4 | 2823 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2824 | fi; |
2825 | ||
2826 | # Check whether --with-wine or --without-wine was given. | |
2827 | if test "${with_wine+set}" = set; then | |
2828 | withval="$with_wine" | |
2829 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2830 | fi; | |
2831 | ||
2832 | # Check whether --with-msw or --without-msw was given. | |
2833 | if test "${with_msw+set}" = set; then | |
2834 | withval="$with_msw" | |
2835 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2836 | fi; | |
2837 | ||
2838 | # Check whether --with-pm or --without-pm was given. | |
2839 | if test "${with_pm+set}" = set; then | |
2840 | withval="$with_pm" | |
2841 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2842 | fi; | |
2843 | ||
2844 | # Check whether --with-mgl or --without-mgl was given. | |
2845 | if test "${with_mgl+set}" = set; then | |
2846 | withval="$with_mgl" | |
2847 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2848 | fi; | |
2849 | ||
2850 | # Check whether --with-microwin or --without-microwin was given. | |
2851 | if test "${with_microwin+set}" = set; then | |
2852 | withval="$with_microwin" | |
2853 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2854 | fi; | |
2855 | ||
2856 | # Check whether --with-x11 or --without-x11 was given. | |
2857 | if test "${with_x11+set}" = set; then | |
2858 | withval="$with_x11" | |
2859 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2860 | fi; | |
2861 | ||
2862 | enablestring= | |
2863 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2864 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2865 | no_cache=0 | |
2866 | # Check whether --enable-nanox or --disable-nanox was given. | |
2867 | if test "${enable_nanox+set}" = set; then | |
2868 | enableval="$enable_nanox" | |
2869 | ||
2870 | if test "$enableval" = yes; then | |
2871 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2872 | else | |
2873 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2874 | fi | |
2875 | ||
2876 | else | |
2877 | ||
2878 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2879 | if test "x$LINE" != x ; then | |
2880 | eval "DEFAULT_$LINE" | |
2881 | else | |
2882 | no_cache=1 | |
2883 | fi | |
2884 | ||
2885 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2886 | ||
2887 | fi; | |
2888 | ||
2889 | eval "$ac_cv_use_nanox" | |
2890 | if test "$no_cache" != 1; then | |
2891 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2892 | fi | |
2893 | ||
2894 | if test "$wxUSE_NANOX" = yes; then | |
2895 | echo "$as_me:$LINENO: result: yes" >&5 | |
2896 | echo "${ECHO_T}yes" >&6 | |
2897 | else | |
2898 | echo "$as_me:$LINENO: result: no" >&5 | |
2899 | echo "${ECHO_T}no" >&6 | |
2900 | fi | |
2901 | ||
2902 | ||
f34ca037 MW |
2903 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2904 | if test "${enable_gtk2+set}" = set; then | |
2905 | enableval="$enable_gtk2" | |
2906 | wxUSE_GTK2="$enableval" | |
2907 | fi; | |
a848cd7e | 2908 | |
a848cd7e SC |
2909 | enablestring= |
2910 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2911 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2912 | no_cache=0 | |
2913 | # Check whether --enable-gpe or --disable-gpe was given. | |
2914 | if test "${enable_gpe+set}" = set; then | |
2915 | enableval="$enable_gpe" | |
2916 | ||
2917 | if test "$enableval" = yes; then | |
2918 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2919 | else | |
2920 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2921 | fi | |
2922 | ||
2923 | else | |
2924 | ||
2925 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2926 | if test "x$LINE" != x ; then | |
2927 | eval "DEFAULT_$LINE" | |
2928 | else | |
2929 | no_cache=1 | |
2930 | fi | |
2931 | ||
2932 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2933 | ||
2934 | fi; | |
2935 | ||
2936 | eval "$ac_cv_use_gpe" | |
2937 | if test "$no_cache" != 1; then | |
2938 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2939 | fi | |
2940 | ||
2941 | if test "$wxUSE_GPE" = yes; then | |
2942 | echo "$as_me:$LINENO: result: yes" >&5 | |
2943 | echo "${ECHO_T}yes" >&6 | |
2944 | else | |
2945 | echo "$as_me:$LINENO: result: no" >&5 | |
2946 | echo "${ECHO_T}no" >&6 | |
2947 | fi | |
2948 | ||
2949 | ||
2950 | ||
2951 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2952 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2953 | no_cache=0 | |
2954 | ||
2955 | # Check whether --with-libpng or --without-libpng was given. | |
2956 | if test "${with_libpng+set}" = set; then | |
2957 | withval="$with_libpng" | |
2958 | ||
2959 | if test "$withval" = yes; then | |
2960 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2961 | elif test "$withval" = no; then | |
2962 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2963 | elif test "$withval" = sys; then | |
2964 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2965 | elif test "$withval" = builtin; then | |
2966 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2967 | else | |
2968 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2969 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2970 | { (exit 1); exit 1; }; } | |
2971 | fi | |
2972 | ||
2973 | else | |
2974 | ||
2975 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2976 | if test "x$LINE" != x ; then | |
2977 | eval "DEFAULT_$LINE" | |
2978 | else | |
2979 | no_cache=1 | |
2980 | fi | |
2981 | ||
2982 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2983 | ||
2984 | fi; | |
2985 | ||
2986 | eval "$ac_cv_use_libpng" | |
2987 | if test "$no_cache" != 1; then | |
2988 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2989 | fi | |
2990 | ||
2991 | if test "$wxUSE_LIBPNG" = yes; then | |
2992 | echo "$as_me:$LINENO: result: yes" >&5 | |
2993 | echo "${ECHO_T}yes" >&6 | |
2994 | elif test "$wxUSE_LIBPNG" = no; then | |
2995 | echo "$as_me:$LINENO: result: no" >&5 | |
2996 | echo "${ECHO_T}no" >&6 | |
2997 | elif test "$wxUSE_LIBPNG" = sys; then | |
2998 | echo "$as_me:$LINENO: result: system version" >&5 | |
2999 | echo "${ECHO_T}system version" >&6 | |
3000 | elif test "$wxUSE_LIBPNG" = builtin; then | |
3001 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3002 | echo "${ECHO_T}builtin version" >&6 | |
3003 | else | |
3004 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
3005 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
3006 | { (exit 1); exit 1; }; } | |
3007 | fi | |
3008 | ||
3009 | ||
3010 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
3011 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
3012 | no_cache=0 | |
3013 | ||
3014 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
3015 | if test "${with_libjpeg+set}" = set; then | |
3016 | withval="$with_libjpeg" | |
3017 | ||
3018 | if test "$withval" = yes; then | |
3019 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
3020 | elif test "$withval" = no; then | |
3021 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
3022 | elif test "$withval" = sys; then | |
3023 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
3024 | elif test "$withval" = builtin; then | |
3025 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
3026 | else | |
3027 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
3028 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
3029 | { (exit 1); exit 1; }; } | |
3030 | fi | |
3031 | ||
3032 | else | |
3033 | ||
3034 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
3035 | if test "x$LINE" != x ; then | |
3036 | eval "DEFAULT_$LINE" | |
3037 | else | |
3038 | no_cache=1 | |
3039 | fi | |
3040 | ||
3041 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
3042 | ||
3043 | fi; | |
3044 | ||
3045 | eval "$ac_cv_use_libjpeg" | |
3046 | if test "$no_cache" != 1; then | |
3047 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
3048 | fi | |
3049 | ||
3050 | if test "$wxUSE_LIBJPEG" = yes; then | |
3051 | echo "$as_me:$LINENO: result: yes" >&5 | |
3052 | echo "${ECHO_T}yes" >&6 | |
3053 | elif test "$wxUSE_LIBJPEG" = no; then | |
3054 | echo "$as_me:$LINENO: result: no" >&5 | |
3055 | echo "${ECHO_T}no" >&6 | |
3056 | elif test "$wxUSE_LIBJPEG" = sys; then | |
3057 | echo "$as_me:$LINENO: result: system version" >&5 | |
3058 | echo "${ECHO_T}system version" >&6 | |
3059 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
3060 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3061 | echo "${ECHO_T}builtin version" >&6 | |
3062 | else | |
3063 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
3064 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
3065 | { (exit 1); exit 1; }; } | |
3066 | fi | |
3067 | ||
3068 | ||
3069 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
3070 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
3071 | no_cache=0 | |
3072 | ||
3073 | # Check whether --with-libtiff or --without-libtiff was given. | |
3074 | if test "${with_libtiff+set}" = set; then | |
3075 | withval="$with_libtiff" | |
3076 | ||
3077 | if test "$withval" = yes; then | |
3078 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
3079 | elif test "$withval" = no; then | |
3080 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
3081 | elif test "$withval" = sys; then | |
3082 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
3083 | elif test "$withval" = builtin; then | |
3084 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
3085 | else | |
3086 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
3087 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
3088 | { (exit 1); exit 1; }; } | |
3089 | fi | |
3090 | ||
3091 | else | |
3092 | ||
3093 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
3094 | if test "x$LINE" != x ; then | |
3095 | eval "DEFAULT_$LINE" | |
3096 | else | |
3097 | no_cache=1 | |
3098 | fi | |
3099 | ||
3100 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
3101 | ||
3102 | fi; | |
3103 | ||
3104 | eval "$ac_cv_use_libtiff" | |
3105 | if test "$no_cache" != 1; then | |
3106 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
3107 | fi | |
3108 | ||
3109 | if test "$wxUSE_LIBTIFF" = yes; then | |
3110 | echo "$as_me:$LINENO: result: yes" >&5 | |
3111 | echo "${ECHO_T}yes" >&6 | |
3112 | elif test "$wxUSE_LIBTIFF" = no; then | |
3113 | echo "$as_me:$LINENO: result: no" >&5 | |
3114 | echo "${ECHO_T}no" >&6 | |
3115 | elif test "$wxUSE_LIBTIFF" = sys; then | |
3116 | echo "$as_me:$LINENO: result: system version" >&5 | |
3117 | echo "${ECHO_T}system version" >&6 | |
3118 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
3119 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3120 | echo "${ECHO_T}builtin version" >&6 | |
3121 | else | |
3122 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
3123 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
3124 | { (exit 1); exit 1; }; } | |
3125 | fi | |
3126 | ||
3127 | ||
3128 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
3129 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
3130 | no_cache=0 | |
3131 | ||
3132 | # Check whether --with-libxpm or --without-libxpm was given. | |
3133 | if test "${with_libxpm+set}" = set; then | |
3134 | withval="$with_libxpm" | |
3135 | ||
3136 | if test "$withval" = yes; then | |
3137 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
3138 | elif test "$withval" = no; then | |
3139 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
3140 | elif test "$withval" = sys; then | |
3141 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
3142 | elif test "$withval" = builtin; then | |
3143 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
3144 | else | |
3145 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3146 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3147 | { (exit 1); exit 1; }; } | |
3148 | fi | |
3149 | ||
3150 | else | |
3151 | ||
3152 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3153 | if test "x$LINE" != x ; then | |
3154 | eval "DEFAULT_$LINE" | |
3155 | else | |
3156 | no_cache=1 | |
3157 | fi | |
3158 | ||
3159 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3160 | ||
3161 | fi; | |
3162 | ||
3163 | eval "$ac_cv_use_libxpm" | |
3164 | if test "$no_cache" != 1; then | |
3165 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3166 | fi | |
3167 | ||
3168 | if test "$wxUSE_LIBXPM" = yes; then | |
3169 | echo "$as_me:$LINENO: result: yes" >&5 | |
3170 | echo "${ECHO_T}yes" >&6 | |
3171 | elif test "$wxUSE_LIBXPM" = no; then | |
3172 | echo "$as_me:$LINENO: result: no" >&5 | |
3173 | echo "${ECHO_T}no" >&6 | |
3174 | elif test "$wxUSE_LIBXPM" = sys; then | |
3175 | echo "$as_me:$LINENO: result: system version" >&5 | |
3176 | echo "${ECHO_T}system version" >&6 | |
3177 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3178 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3179 | echo "${ECHO_T}builtin version" >&6 | |
3180 | else | |
3181 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3182 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3183 | { (exit 1); exit 1; }; } | |
3184 | fi | |
3185 | ||
3186 | ||
1c14217d VZ |
3187 | withstring= |
3188 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3189 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3190 | no_cache=0 |
3191 | ||
3192 | # Check whether --with-libmspack or --without-libmspack was given. | |
3193 | if test "${with_libmspack+set}" = set; then | |
3194 | withval="$with_libmspack" | |
3195 | ||
3196 | if test "$withval" = yes; then | |
3197 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3198 | else | |
3199 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3200 | fi | |
3201 | ||
3202 | else | |
3203 | ||
3204 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3205 | if test "x$LINE" != x ; then | |
3206 | eval "DEFAULT_$LINE" | |
3207 | else | |
3208 | no_cache=1 | |
3209 | fi | |
3210 | ||
3211 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3212 | ||
3213 | fi; | |
3214 | ||
3215 | eval "$ac_cv_use_libmspack" | |
3216 | if test "$no_cache" != 1; then | |
3217 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3218 | fi | |
3219 | ||
3220 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3221 | echo "$as_me:$LINENO: result: yes" >&5 | |
3222 | echo "${ECHO_T}yes" >&6 | |
3223 | else | |
3224 | echo "$as_me:$LINENO: result: no" >&5 | |
3225 | echo "${ECHO_T}no" >&6 | |
3226 | fi | |
3227 | ||
3228 | ||
1c14217d VZ |
3229 | withstring= |
3230 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3231 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3232 | no_cache=0 |
3233 | ||
3234 | # Check whether --with-sdl or --without-sdl was given. | |
3235 | if test "${with_sdl+set}" = set; then | |
3236 | withval="$with_sdl" | |
3237 | ||
3238 | if test "$withval" = yes; then | |
3239 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3240 | else | |
3241 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3242 | fi | |
3243 | ||
3244 | else | |
3245 | ||
3246 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3247 | if test "x$LINE" != x ; then | |
3248 | eval "DEFAULT_$LINE" | |
3249 | else | |
3250 | no_cache=1 | |
3251 | fi | |
3252 | ||
3253 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3254 | ||
3255 | fi; | |
3256 | ||
3257 | eval "$ac_cv_use_sdl" | |
3258 | if test "$no_cache" != 1; then | |
3259 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3260 | fi | |
3261 | ||
3262 | if test "$wxUSE_LIBSDL" = yes; then | |
3263 | echo "$as_me:$LINENO: result: yes" >&5 | |
3264 | echo "${ECHO_T}yes" >&6 | |
3265 | else | |
3266 | echo "$as_me:$LINENO: result: no" >&5 | |
3267 | echo "${ECHO_T}no" >&6 | |
3268 | fi | |
3269 | ||
3270 | ||
1c14217d VZ |
3271 | withstring= |
3272 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3273 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3274 | no_cache=0 |
3275 | ||
3276 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3277 | if test "${with_gnomeprint+set}" = set; then | |
3278 | withval="$with_gnomeprint" | |
3279 | ||
3280 | if test "$withval" = yes; then | |
3281 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3282 | else | |
3283 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3284 | fi | |
3285 | ||
3286 | else | |
3287 | ||
3288 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3289 | if test "x$LINE" != x ; then | |
3290 | eval "DEFAULT_$LINE" | |
3291 | else | |
3292 | no_cache=1 | |
3293 | fi | |
3294 | ||
3295 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3296 | ||
3297 | fi; | |
3298 | ||
3299 | eval "$ac_cv_use_gnomeprint" | |
3300 | if test "$no_cache" != 1; then | |
3301 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3302 | fi | |
3303 | ||
3304 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3305 | echo "$as_me:$LINENO: result: yes" >&5 | |
3306 | echo "${ECHO_T}yes" >&6 | |
3307 | else | |
3308 | echo "$as_me:$LINENO: result: no" >&5 | |
3309 | echo "${ECHO_T}no" >&6 | |
3310 | fi | |
3311 | ||
3312 | ||
2b850ae1 RR |
3313 | withstring= |
3314 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5 | |
3315 | echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6 | |
3316 | no_cache=0 | |
3317 | ||
3318 | # Check whether --with-gnomevfs or --without-gnomevfs was given. | |
3319 | if test "${with_gnomevfs+set}" = set; then | |
3320 | withval="$with_gnomevfs" | |
3321 | ||
3322 | if test "$withval" = yes; then | |
3323 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes' | |
3324 | else | |
3325 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no' | |
3326 | fi | |
3327 | ||
3328 | else | |
3329 | ||
3330 | LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}` | |
3331 | if test "x$LINE" != x ; then | |
3332 | eval "DEFAULT_$LINE" | |
3333 | else | |
3334 | no_cache=1 | |
3335 | fi | |
3336 | ||
3337 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS | |
3338 | ||
3339 | fi; | |
3340 | ||
3341 | eval "$ac_cv_use_gnomevfs" | |
3342 | if test "$no_cache" != 1; then | |
3343 | echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp | |
3344 | fi | |
3345 | ||
3346 | if test "$wxUSE_LIBGNOMEVFS" = yes; then | |
3347 | echo "$as_me:$LINENO: result: yes" >&5 | |
3348 | echo "${ECHO_T}yes" >&6 | |
3349 | else | |
3350 | echo "$as_me:$LINENO: result: no" >&5 | |
3351 | echo "${ECHO_T}no" >&6 | |
3352 | fi | |
3353 | ||
3354 | ||
3565d135 RR |
3355 | withstring= |
3356 | echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5 | |
3357 | echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6 | |
3358 | no_cache=0 | |
3359 | ||
3360 | # Check whether --with-hildon or --without-hildon was given. | |
3361 | if test "${with_hildon+set}" = set; then | |
3362 | withval="$with_hildon" | |
3363 | ||
3364 | if test "$withval" = yes; then | |
3365 | ac_cv_use_hildon='wxUSE_LIBHILDON=yes' | |
3366 | else | |
3367 | ac_cv_use_hildon='wxUSE_LIBHILDON=no' | |
3368 | fi | |
3369 | ||
3370 | else | |
3371 | ||
3372 | LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}` | |
3373 | if test "x$LINE" != x ; then | |
3374 | eval "DEFAULT_$LINE" | |
3375 | else | |
3376 | no_cache=1 | |
3377 | fi | |
3378 | ||
3379 | ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON | |
3380 | ||
3381 | fi; | |
3382 | ||
3383 | eval "$ac_cv_use_hildon" | |
3384 | if test "$no_cache" != 1; then | |
3385 | echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp | |
3386 | fi | |
3387 | ||
3388 | if test "$wxUSE_LIBHILDON" = yes; then | |
3389 | echo "$as_me:$LINENO: result: yes" >&5 | |
3390 | echo "${ECHO_T}yes" >&6 | |
3391 | else | |
3392 | echo "$as_me:$LINENO: result: no" >&5 | |
3393 | echo "${ECHO_T}no" >&6 | |
3394 | fi | |
3395 | ||
3396 | ||
1c14217d VZ |
3397 | withstring= |
3398 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3399 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3400 | no_cache=0 |
3401 | ||
3402 | # Check whether --with-opengl or --without-opengl was given. | |
3403 | if test "${with_opengl+set}" = set; then | |
3404 | withval="$with_opengl" | |
3405 | ||
3406 | if test "$withval" = yes; then | |
3407 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3408 | else | |
3409 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3410 | fi | |
3411 | ||
3412 | else | |
3413 | ||
3414 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3415 | if test "x$LINE" != x ; then | |
3416 | eval "DEFAULT_$LINE" | |
3417 | else | |
3418 | no_cache=1 | |
3419 | fi | |
3420 | ||
3421 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3422 | ||
3423 | fi; | |
3424 | ||
3425 | eval "$ac_cv_use_opengl" | |
3426 | if test "$no_cache" != 1; then | |
3427 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3428 | fi | |
3429 | ||
3430 | if test "$wxUSE_OPENGL" = yes; then | |
3431 | echo "$as_me:$LINENO: result: yes" >&5 | |
3432 | echo "${ECHO_T}yes" >&6 | |
3433 | else | |
3434 | echo "$as_me:$LINENO: result: no" >&5 | |
3435 | echo "${ECHO_T}no" >&6 | |
3436 | fi | |
3437 | ||
3438 | ||
3439 | fi | |
3440 | ||
3441 | ||
1c14217d VZ |
3442 | withstring= |
3443 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3444 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3445 | no_cache=0 |
3446 | ||
3447 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3448 | if test "${with_dmalloc+set}" = set; then | |
3449 | withval="$with_dmalloc" | |
3450 | ||
3451 | if test "$withval" = yes; then | |
3452 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3453 | else | |
3454 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3455 | fi | |
3456 | ||
3457 | else | |
3458 | ||
3459 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3460 | if test "x$LINE" != x ; then | |
3461 | eval "DEFAULT_$LINE" | |
3462 | else | |
3463 | no_cache=1 | |
3464 | fi | |
3465 | ||
3466 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3467 | ||
3468 | fi; | |
3469 | ||
3470 | eval "$ac_cv_use_dmalloc" | |
3471 | if test "$no_cache" != 1; then | |
3472 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3473 | fi | |
3474 | ||
3475 | if test "$wxUSE_DMALLOC" = yes; then | |
3476 | echo "$as_me:$LINENO: result: yes" >&5 | |
3477 | echo "${ECHO_T}yes" >&6 | |
3478 | else | |
3479 | echo "$as_me:$LINENO: result: no" >&5 | |
3480 | echo "${ECHO_T}no" >&6 | |
3481 | fi | |
3482 | ||
3483 | ||
3484 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3485 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3486 | no_cache=0 | |
3487 | ||
3488 | # Check whether --with-regex or --without-regex was given. | |
3489 | if test "${with_regex+set}" = set; then | |
3490 | withval="$with_regex" | |
3491 | ||
3492 | if test "$withval" = yes; then | |
3493 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3494 | elif test "$withval" = no; then | |
3495 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3496 | elif test "$withval" = sys; then | |
3497 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3498 | elif test "$withval" = builtin; then | |
3499 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3500 | else | |
3501 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3502 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3503 | { (exit 1); exit 1; }; } | |
3504 | fi | |
3505 | ||
3506 | else | |
3507 | ||
3508 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3509 | if test "x$LINE" != x ; then | |
3510 | eval "DEFAULT_$LINE" | |
3511 | else | |
3512 | no_cache=1 | |
3513 | fi | |
3514 | ||
3515 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3516 | ||
3517 | fi; | |
3518 | ||
3519 | eval "$ac_cv_use_regex" | |
3520 | if test "$no_cache" != 1; then | |
3521 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3522 | fi | |
3523 | ||
3524 | if test "$wxUSE_REGEX" = yes; then | |
3525 | echo "$as_me:$LINENO: result: yes" >&5 | |
3526 | echo "${ECHO_T}yes" >&6 | |
3527 | elif test "$wxUSE_REGEX" = no; then | |
3528 | echo "$as_me:$LINENO: result: no" >&5 | |
3529 | echo "${ECHO_T}no" >&6 | |
3530 | elif test "$wxUSE_REGEX" = sys; then | |
3531 | echo "$as_me:$LINENO: result: system version" >&5 | |
3532 | echo "${ECHO_T}system version" >&6 | |
3533 | elif test "$wxUSE_REGEX" = builtin; then | |
3534 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3535 | echo "${ECHO_T}builtin version" >&6 | |
3536 | else | |
3537 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3538 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3539 | { (exit 1); exit 1; }; } | |
3540 | fi | |
3541 | ||
3542 | ||
3543 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3544 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3545 | no_cache=0 | |
3546 | ||
3547 | # Check whether --with-zlib or --without-zlib was given. | |
3548 | if test "${with_zlib+set}" = set; then | |
3549 | withval="$with_zlib" | |
3550 | ||
3551 | if test "$withval" = yes; then | |
3552 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3553 | elif test "$withval" = no; then | |
3554 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3555 | elif test "$withval" = sys; then | |
3556 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3557 | elif test "$withval" = builtin; then | |
3558 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3559 | else | |
3560 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3561 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3562 | { (exit 1); exit 1; }; } | |
3563 | fi | |
3564 | ||
3565 | else | |
3566 | ||
3567 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3568 | if test "x$LINE" != x ; then | |
3569 | eval "DEFAULT_$LINE" | |
3570 | else | |
3571 | no_cache=1 | |
3572 | fi | |
3573 | ||
3574 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3575 | ||
3576 | fi; | |
3577 | ||
3578 | eval "$ac_cv_use_zlib" | |
3579 | if test "$no_cache" != 1; then | |
3580 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3581 | fi | |
3582 | ||
3583 | if test "$wxUSE_ZLIB" = yes; then | |
3584 | echo "$as_me:$LINENO: result: yes" >&5 | |
3585 | echo "${ECHO_T}yes" >&6 | |
3586 | elif test "$wxUSE_ZLIB" = no; then | |
3587 | echo "$as_me:$LINENO: result: no" >&5 | |
3588 | echo "${ECHO_T}no" >&6 | |
3589 | elif test "$wxUSE_ZLIB" = sys; then | |
3590 | echo "$as_me:$LINENO: result: system version" >&5 | |
3591 | echo "${ECHO_T}system version" >&6 | |
3592 | elif test "$wxUSE_ZLIB" = builtin; then | |
3593 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3594 | echo "${ECHO_T}builtin version" >&6 | |
3595 | else | |
3596 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3597 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3598 | { (exit 1); exit 1; }; } | |
3599 | fi | |
3600 | ||
3601 | ||
3602 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3603 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3604 | no_cache=0 | |
3605 | ||
3606 | # Check whether --with-odbc or --without-odbc was given. | |
3607 | if test "${with_odbc+set}" = set; then | |
3608 | withval="$with_odbc" | |
3609 | ||
3610 | if test "$withval" = yes; then | |
3611 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3612 | elif test "$withval" = no; then | |
3613 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3614 | elif test "$withval" = sys; then | |
3615 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3616 | elif test "$withval" = builtin; then | |
3617 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3618 | else | |
3619 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3620 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3621 | { (exit 1); exit 1; }; } | |
3622 | fi | |
3623 | ||
3624 | else | |
3625 | ||
3626 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3627 | if test "x$LINE" != x ; then | |
3628 | eval "DEFAULT_$LINE" | |
3629 | else | |
3630 | no_cache=1 | |
3631 | fi | |
3632 | ||
3633 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3634 | ||
3635 | fi; | |
3636 | ||
3637 | eval "$ac_cv_use_odbc" | |
3638 | if test "$no_cache" != 1; then | |
3639 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3640 | fi | |
3641 | ||
3642 | if test "$wxUSE_ODBC" = yes; then | |
3643 | echo "$as_me:$LINENO: result: yes" >&5 | |
3644 | echo "${ECHO_T}yes" >&6 | |
3645 | elif test "$wxUSE_ODBC" = no; then | |
3646 | echo "$as_me:$LINENO: result: no" >&5 | |
3647 | echo "${ECHO_T}no" >&6 | |
3648 | elif test "$wxUSE_ODBC" = sys; then | |
3649 | echo "$as_me:$LINENO: result: system version" >&5 | |
3650 | echo "${ECHO_T}system version" >&6 | |
3651 | elif test "$wxUSE_ODBC" = builtin; then | |
3652 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3653 | echo "${ECHO_T}builtin version" >&6 | |
3654 | else | |
3655 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3656 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3657 | { (exit 1); exit 1; }; } | |
3658 | fi | |
3659 | ||
3660 | ||
3661 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3662 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3663 | no_cache=0 | |
3664 | ||
3665 | # Check whether --with-expat or --without-expat was given. | |
3666 | if test "${with_expat+set}" = set; then | |
3667 | withval="$with_expat" | |
3668 | ||
3669 | if test "$withval" = yes; then | |
3670 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3671 | elif test "$withval" = no; then | |
3672 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3673 | elif test "$withval" = sys; then | |
3674 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3675 | elif test "$withval" = builtin; then | |
3676 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3677 | else | |
3678 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3679 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3680 | { (exit 1); exit 1; }; } | |
3681 | fi | |
3682 | ||
3683 | else | |
3684 | ||
3685 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3686 | if test "x$LINE" != x ; then | |
3687 | eval "DEFAULT_$LINE" | |
3688 | else | |
3689 | no_cache=1 | |
3690 | fi | |
3691 | ||
3692 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3693 | ||
3694 | fi; | |
3695 | ||
3696 | eval "$ac_cv_use_expat" | |
3697 | if test "$no_cache" != 1; then | |
3698 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3699 | fi | |
3700 | ||
3701 | if test "$wxUSE_EXPAT" = yes; then | |
3702 | echo "$as_me:$LINENO: result: yes" >&5 | |
3703 | echo "${ECHO_T}yes" >&6 | |
3704 | elif test "$wxUSE_EXPAT" = no; then | |
3705 | echo "$as_me:$LINENO: result: no" >&5 | |
3706 | echo "${ECHO_T}no" >&6 | |
3707 | elif test "$wxUSE_EXPAT" = sys; then | |
3708 | echo "$as_me:$LINENO: result: system version" >&5 | |
3709 | echo "${ECHO_T}system version" >&6 | |
3710 | elif test "$wxUSE_EXPAT" = builtin; then | |
3711 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3712 | echo "${ECHO_T}builtin version" >&6 | |
3713 | else | |
3714 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3715 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3716 | { (exit 1); exit 1; }; } | |
3717 | fi | |
3718 | ||
3719 | ||
3720 | ||
3721 | ||
3722 | enablestring= | |
3723 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3724 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3725 | no_cache=0 | |
3726 | # Check whether --enable-shared or --disable-shared was given. | |
3727 | if test "${enable_shared+set}" = set; then | |
3728 | enableval="$enable_shared" | |
3729 | ||
3730 | if test "$enableval" = yes; then | |
3731 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3732 | else | |
3733 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3734 | fi | |
3735 | ||
3736 | else | |
3737 | ||
3738 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3739 | if test "x$LINE" != x ; then | |
3740 | eval "DEFAULT_$LINE" | |
3741 | else | |
3742 | no_cache=1 | |
3743 | fi | |
3744 | ||
3745 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3746 | ||
3747 | fi; | |
3748 | ||
3749 | eval "$ac_cv_use_shared" | |
3750 | if test "$no_cache" != 1; then | |
3751 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3752 | fi | |
3753 | ||
3754 | if test "$wxUSE_SHARED" = yes; then | |
3755 | echo "$as_me:$LINENO: result: yes" >&5 | |
3756 | echo "${ECHO_T}yes" >&6 | |
3757 | else | |
3758 | echo "$as_me:$LINENO: result: no" >&5 | |
3759 | echo "${ECHO_T}no" >&6 | |
3760 | fi | |
3761 | ||
3762 | ||
3763 | enablestring= | |
3764 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3765 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3766 | no_cache=0 | |
3767 | # Check whether --enable-optimise or --disable-optimise was given. | |
3768 | if test "${enable_optimise+set}" = set; then | |
3769 | enableval="$enable_optimise" | |
3770 | ||
3771 | if test "$enableval" = yes; then | |
3772 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3773 | else | |
3774 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3775 | fi | |
3776 | ||
3777 | else | |
3778 | ||
3779 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3780 | if test "x$LINE" != x ; then | |
3781 | eval "DEFAULT_$LINE" | |
3782 | else | |
3783 | no_cache=1 | |
3784 | fi | |
3785 | ||
3786 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3787 | ||
3788 | fi; | |
3789 | ||
3790 | eval "$ac_cv_use_optimise" | |
3791 | if test "$no_cache" != 1; then | |
3792 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3793 | fi | |
3794 | ||
3795 | if test "$wxUSE_OPTIMISE" = yes; then | |
3796 | echo "$as_me:$LINENO: result: yes" >&5 | |
3797 | echo "${ECHO_T}yes" >&6 | |
3798 | else | |
3799 | echo "$as_me:$LINENO: result: no" >&5 | |
3800 | echo "${ECHO_T}no" >&6 | |
3801 | fi | |
3802 | ||
3803 | ||
3804 | enablestring= | |
3805 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3806 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3807 | no_cache=0 | |
3808 | # Check whether --enable-debug or --disable-debug was given. | |
3809 | if test "${enable_debug+set}" = set; then | |
3810 | enableval="$enable_debug" | |
3811 | ||
3812 | if test "$enableval" = yes; then | |
3813 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3814 | else | |
3815 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3816 | fi | |
3817 | ||
3818 | else | |
3819 | ||
3820 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3821 | if test "x$LINE" != x ; then | |
3822 | eval "DEFAULT_$LINE" | |
3823 | else | |
3824 | no_cache=1 | |
3825 | fi | |
3826 | ||
3827 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3828 | ||
3829 | fi; | |
3830 | ||
3831 | eval "$ac_cv_use_debug" | |
3832 | if test "$no_cache" != 1; then | |
3833 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3834 | fi | |
3835 | ||
3836 | if test "$wxUSE_DEBUG" = yes; then | |
3837 | echo "$as_me:$LINENO: result: yes" >&5 | |
3838 | echo "${ECHO_T}yes" >&6 | |
3839 | else | |
3840 | echo "$as_me:$LINENO: result: no" >&5 | |
3841 | echo "${ECHO_T}no" >&6 | |
3842 | fi | |
3843 | ||
3844 | ||
3845 | enablestring= | |
3846 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3847 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3848 | no_cache=0 | |
3849 | # Check whether --enable-stl or --disable-stl was given. | |
3850 | if test "${enable_stl+set}" = set; then | |
3851 | enableval="$enable_stl" | |
3852 | ||
3853 | if test "$enableval" = yes; then | |
3854 | ac_cv_use_stl='wxUSE_STL=yes' | |
3855 | else | |
3856 | ac_cv_use_stl='wxUSE_STL=no' | |
3857 | fi | |
3858 | ||
3859 | else | |
3860 | ||
3861 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3862 | if test "x$LINE" != x ; then | |
3863 | eval "DEFAULT_$LINE" | |
3864 | else | |
3865 | no_cache=1 | |
3866 | fi | |
3867 | ||
3868 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3869 | ||
3870 | fi; | |
3871 | ||
3872 | eval "$ac_cv_use_stl" | |
3873 | if test "$no_cache" != 1; then | |
3874 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3875 | fi | |
3876 | ||
3877 | if test "$wxUSE_STL" = yes; then | |
3878 | echo "$as_me:$LINENO: result: yes" >&5 | |
3879 | echo "${ECHO_T}yes" >&6 | |
3880 | else | |
3881 | echo "$as_me:$LINENO: result: no" >&5 | |
3882 | echo "${ECHO_T}no" >&6 | |
3883 | fi | |
3884 | ||
3885 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3886 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3887 | |
3888 | enablestring= | |
3889 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3890 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3891 | no_cache=0 | |
3892 | # Check whether --enable-omf or --disable-omf was given. | |
3893 | if test "${enable_omf+set}" = set; then | |
3894 | enableval="$enable_omf" | |
3895 | ||
3896 | if test "$enableval" = yes; then | |
3897 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3898 | else | |
3899 | ac_cv_use_omf='wxUSE_OMF=no' | |
3900 | fi | |
3901 | ||
3902 | else | |
3903 | ||
3904 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3905 | if test "x$LINE" != x ; then | |
3906 | eval "DEFAULT_$LINE" | |
3907 | else | |
3908 | no_cache=1 | |
3909 | fi | |
3910 | ||
3911 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3912 | ||
3913 | fi; | |
3914 | ||
3915 | eval "$ac_cv_use_omf" | |
3916 | if test "$no_cache" != 1; then | |
3917 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3918 | fi | |
3919 | ||
3920 | if test "$wxUSE_OMF" = yes; then | |
3921 | echo "$as_me:$LINENO: result: yes" >&5 | |
3922 | echo "${ECHO_T}yes" >&6 | |
3923 | else | |
3924 | echo "$as_me:$LINENO: result: no" >&5 | |
3925 | echo "${ECHO_T}no" >&6 | |
3926 | fi | |
3927 | ||
3928 | fi | |
3929 | ||
3930 | if test "$wxUSE_DEBUG" = "yes"; then | |
3931 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3932 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3933 | BUILD=debug | |
3934 | elif test "$wxUSE_DEBUG" = "no"; then | |
3935 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3936 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3937 | BUILD=release | |
3938 | fi | |
3939 | ||
3940 | ||
3941 | enablestring= | |
3942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3943 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3944 | no_cache=0 | |
3945 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3946 | if test "${enable_debug_flag+set}" = set; then | |
3947 | enableval="$enable_debug_flag" | |
3948 | ||
3949 | if test "$enableval" = yes; then | |
3950 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3951 | else | |
3952 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3953 | fi | |
3954 | ||
3955 | else | |
3956 | ||
3957 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3958 | if test "x$LINE" != x ; then | |
3959 | eval "DEFAULT_$LINE" | |
3960 | else | |
3961 | no_cache=1 | |
3962 | fi | |
3963 | ||
3964 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3965 | ||
3966 | fi; | |
3967 | ||
3968 | eval "$ac_cv_use_debug_flag" | |
3969 | if test "$no_cache" != 1; then | |
3970 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3971 | fi | |
3972 | ||
3973 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3974 | echo "$as_me:$LINENO: result: yes" >&5 | |
3975 | echo "${ECHO_T}yes" >&6 | |
3976 | else | |
3977 | echo "$as_me:$LINENO: result: no" >&5 | |
3978 | echo "${ECHO_T}no" >&6 | |
3979 | fi | |
3980 | ||
3981 | ||
3982 | enablestring= | |
3983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3984 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3985 | no_cache=0 | |
3986 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3987 | if test "${enable_debug_info+set}" = set; then | |
3988 | enableval="$enable_debug_info" | |
3989 | ||
3990 | if test "$enableval" = yes; then | |
3991 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3992 | else | |
3993 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3994 | fi | |
3995 | ||
3996 | else | |
3997 | ||
3998 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3999 | if test "x$LINE" != x ; then | |
4000 | eval "DEFAULT_$LINE" | |
4001 | else | |
4002 | no_cache=1 | |
4003 | fi | |
4004 | ||
4005 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
4006 | ||
4007 | fi; | |
4008 | ||
4009 | eval "$ac_cv_use_debug_info" | |
4010 | if test "$no_cache" != 1; then | |
4011 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
4012 | fi | |
4013 | ||
4014 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
4015 | echo "$as_me:$LINENO: result: yes" >&5 | |
4016 | echo "${ECHO_T}yes" >&6 | |
4017 | else | |
4018 | echo "$as_me:$LINENO: result: no" >&5 | |
4019 | echo "${ECHO_T}no" >&6 | |
4020 | fi | |
4021 | ||
4022 | ||
4023 | enablestring= | |
4024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
4025 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
4026 | no_cache=0 | |
4027 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
4028 | if test "${enable_debug_gdb+set}" = set; then | |
4029 | enableval="$enable_debug_gdb" | |
4030 | ||
4031 | if test "$enableval" = yes; then | |
4032 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
4033 | else | |
4034 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
4035 | fi | |
4036 | ||
4037 | else | |
4038 | ||
4039 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
4040 | if test "x$LINE" != x ; then | |
4041 | eval "DEFAULT_$LINE" | |
4042 | else | |
4043 | no_cache=1 | |
4044 | fi | |
4045 | ||
4046 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
4047 | ||
4048 | fi; | |
4049 | ||
4050 | eval "$ac_cv_use_debug_gdb" | |
4051 | if test "$no_cache" != 1; then | |
4052 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
4053 | fi | |
4054 | ||
4055 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
4056 | echo "$as_me:$LINENO: result: yes" >&5 | |
4057 | echo "${ECHO_T}yes" >&6 | |
4058 | else | |
4059 | echo "$as_me:$LINENO: result: no" >&5 | |
4060 | echo "${ECHO_T}no" >&6 | |
4061 | fi | |
4062 | ||
4063 | ||
4064 | enablestring= | |
4065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
4066 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
4067 | no_cache=0 | |
4068 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
4069 | if test "${enable_debug_cntxt+set}" = set; then | |
4070 | enableval="$enable_debug_cntxt" | |
4071 | ||
4072 | if test "$enableval" = yes; then | |
4073 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
4074 | else | |
4075 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
4076 | fi | |
4077 | ||
4078 | else | |
4079 | ||
4080 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
4081 | if test "x$LINE" != x ; then | |
4082 | eval "DEFAULT_$LINE" | |
4083 | else | |
4084 | no_cache=1 | |
4085 | fi | |
4086 | ||
4087 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
4088 | ||
4089 | fi; | |
4090 | ||
4091 | eval "$ac_cv_use_debug_cntxt" | |
4092 | if test "$no_cache" != 1; then | |
4093 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
4094 | fi | |
4095 | ||
4096 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
4097 | echo "$as_me:$LINENO: result: yes" >&5 | |
4098 | echo "${ECHO_T}yes" >&6 | |
4099 | else | |
4100 | echo "$as_me:$LINENO: result: no" >&5 | |
4101 | echo "${ECHO_T}no" >&6 | |
4102 | fi | |
4103 | ||
4104 | ||
4105 | enablestring= | |
4106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
4107 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
4108 | no_cache=0 | |
4109 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
4110 | if test "${enable_mem_tracing+set}" = set; then | |
4111 | enableval="$enable_mem_tracing" | |
4112 | ||
4113 | if test "$enableval" = yes; then | |
4114 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
4115 | else | |
4116 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
4117 | fi | |
4118 | ||
4119 | else | |
4120 | ||
4121 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
4122 | if test "x$LINE" != x ; then | |
4123 | eval "DEFAULT_$LINE" | |
4124 | else | |
4125 | no_cache=1 | |
4126 | fi | |
4127 | ||
4128 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
4129 | ||
4130 | fi; | |
4131 | ||
4132 | eval "$ac_cv_use_mem_tracing" | |
4133 | if test "$no_cache" != 1; then | |
4134 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
4135 | fi | |
4136 | ||
4137 | if test "$wxUSE_MEM_TRACING" = yes; then | |
4138 | echo "$as_me:$LINENO: result: yes" >&5 | |
4139 | echo "${ECHO_T}yes" >&6 | |
4140 | else | |
4141 | echo "$as_me:$LINENO: result: no" >&5 | |
4142 | echo "${ECHO_T}no" >&6 | |
4143 | fi | |
4144 | ||
4145 | ||
4146 | enablestring= | |
4147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
4148 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
4149 | no_cache=0 | |
4150 | # Check whether --enable-profile or --disable-profile was given. | |
4151 | if test "${enable_profile+set}" = set; then | |
4152 | enableval="$enable_profile" | |
4153 | ||
4154 | if test "$enableval" = yes; then | |
4155 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
4156 | else | |
4157 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
4158 | fi | |
4159 | ||
4160 | else | |
4161 | ||
4162 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
4163 | if test "x$LINE" != x ; then | |
4164 | eval "DEFAULT_$LINE" | |
4165 | else | |
4166 | no_cache=1 | |
4167 | fi | |
4168 | ||
4169 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
4170 | ||
4171 | fi; | |
4172 | ||
4173 | eval "$ac_cv_use_profile" | |
4174 | if test "$no_cache" != 1; then | |
4175 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
4176 | fi | |
4177 | ||
4178 | if test "$wxUSE_PROFILE" = yes; then | |
4179 | echo "$as_me:$LINENO: result: yes" >&5 | |
4180 | echo "${ECHO_T}yes" >&6 | |
4181 | else | |
4182 | echo "$as_me:$LINENO: result: no" >&5 | |
4183 | echo "${ECHO_T}no" >&6 | |
4184 | fi | |
4185 | ||
4186 | ||
4187 | enablestring= | |
4188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
4189 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
4190 | no_cache=0 | |
4191 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
4192 | if test "${enable_no_rtti+set}" = set; then | |
4193 | enableval="$enable_no_rtti" | |
4194 | ||
4195 | if test "$enableval" = yes; then | |
4196 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
4197 | else | |
4198 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
4199 | fi | |
4200 | ||
4201 | else | |
4202 | ||
4203 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
4204 | if test "x$LINE" != x ; then | |
4205 | eval "DEFAULT_$LINE" | |
4206 | else | |
4207 | no_cache=1 | |
4208 | fi | |
4209 | ||
4210 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
4211 | ||
4212 | fi; | |
4213 | ||
4214 | eval "$ac_cv_use_no_rtti" | |
4215 | if test "$no_cache" != 1; then | |
4216 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
4217 | fi | |
4218 | ||
4219 | if test "$wxUSE_NO_RTTI" = yes; then | |
4220 | echo "$as_me:$LINENO: result: yes" >&5 | |
4221 | echo "${ECHO_T}yes" >&6 | |
4222 | else | |
4223 | echo "$as_me:$LINENO: result: no" >&5 | |
4224 | echo "${ECHO_T}no" >&6 | |
4225 | fi | |
4226 | ||
4227 | ||
4228 | enablestring= | |
4229 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
4230 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4231 | no_cache=0 | |
4232 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4233 | if test "${enable_no_exceptions+set}" = set; then | |
4234 | enableval="$enable_no_exceptions" | |
4235 | ||
4236 | if test "$enableval" = yes; then | |
4237 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4238 | else | |
4239 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4240 | fi | |
4241 | ||
4242 | else | |
4243 | ||
4244 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
4245 | if test "x$LINE" != x ; then | |
4246 | eval "DEFAULT_$LINE" | |
4247 | else | |
4248 | no_cache=1 | |
4249 | fi | |
4250 | ||
4251 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4252 | ||
4253 | fi; | |
4254 | ||
4255 | eval "$ac_cv_use_no_exceptions" | |
4256 | if test "$no_cache" != 1; then | |
4257 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4258 | fi | |
4259 | ||
4260 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4261 | echo "$as_me:$LINENO: result: yes" >&5 | |
4262 | echo "${ECHO_T}yes" >&6 | |
4263 | else | |
4264 | echo "$as_me:$LINENO: result: no" >&5 | |
4265 | echo "${ECHO_T}no" >&6 | |
4266 | fi | |
4267 | ||
4268 | ||
4269 | enablestring= | |
4270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4271 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4272 | no_cache=0 | |
4273 | # Check whether --enable-permissive or --disable-permissive was given. | |
4274 | if test "${enable_permissive+set}" = set; then | |
4275 | enableval="$enable_permissive" | |
4276 | ||
4277 | if test "$enableval" = yes; then | |
4278 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4279 | else | |
4280 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4281 | fi | |
4282 | ||
4283 | else | |
4284 | ||
4285 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4286 | if test "x$LINE" != x ; then | |
4287 | eval "DEFAULT_$LINE" | |
4288 | else | |
4289 | no_cache=1 | |
4290 | fi | |
4291 | ||
4292 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4293 | ||
4294 | fi; | |
4295 | ||
4296 | eval "$ac_cv_use_permissive" | |
4297 | if test "$no_cache" != 1; then | |
4298 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4299 | fi | |
4300 | ||
4301 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4302 | echo "$as_me:$LINENO: result: yes" >&5 | |
4303 | echo "${ECHO_T}yes" >&6 | |
4304 | else | |
4305 | echo "$as_me:$LINENO: result: no" >&5 | |
4306 | echo "${ECHO_T}no" >&6 | |
4307 | fi | |
4308 | ||
4309 | ||
4310 | enablestring= | |
4311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4312 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4313 | no_cache=0 | |
4314 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4315 | if test "${enable_no_deps+set}" = set; then | |
4316 | enableval="$enable_no_deps" | |
4317 | ||
4318 | if test "$enableval" = yes; then | |
4319 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4320 | else | |
4321 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4322 | fi | |
4323 | ||
4324 | else | |
4325 | ||
4326 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4327 | if test "x$LINE" != x ; then | |
4328 | eval "DEFAULT_$LINE" | |
4329 | else | |
4330 | no_cache=1 | |
4331 | fi | |
4332 | ||
4333 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4334 | ||
4335 | fi; | |
4336 | ||
4337 | eval "$ac_cv_use_no_deps" | |
4338 | if test "$no_cache" != 1; then | |
4339 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4340 | fi | |
4341 | ||
4342 | if test "$wxUSE_NO_DEPS" = yes; then | |
4343 | echo "$as_me:$LINENO: result: yes" >&5 | |
4344 | echo "${ECHO_T}yes" >&6 | |
4345 | else | |
4346 | echo "$as_me:$LINENO: result: no" >&5 | |
4347 | echo "${ECHO_T}no" >&6 | |
4348 | fi | |
4349 | ||
4350 | ||
95768535 | 4351 | enablestring= |
7afc46ab KO |
4352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5 |
4353 | echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6 | |
4354 | no_cache=0 | |
4355 | # Check whether --enable-universal_binary or --disable-universal_binary was given. | |
4356 | if test "${enable_universal_binary+set}" = set; then | |
4357 | enableval="$enable_universal_binary" | |
4358 | ||
95768535 | 4359 | wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'" |
7afc46ab KO |
4360 | |
4361 | else | |
4362 | ||
4363 | LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}` | |
4364 | if test "x$LINE" != x ; then | |
4365 | eval "DEFAULT_$LINE" | |
95768535 | 4366 | wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY |
7afc46ab KO |
4367 | else |
4368 | no_cache=1 | |
95768535 | 4369 | wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no" |
7afc46ab KO |
4370 | fi |
4371 | ||
7afc46ab KO |
4372 | fi; |
4373 | ||
95768535 | 4374 | eval "$wx_cv_use_universal_binary" |
7afc46ab | 4375 | if test "$no_cache" != 1; then |
95768535 | 4376 | echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp |
7afc46ab KO |
4377 | fi |
4378 | ||
95768535 MW |
4379 | echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5 |
4380 | echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6 | |
7afc46ab KO |
4381 | |
4382 | ||
a848cd7e | 4383 | |
dee1a63f MB |
4384 | enablestring=enable |
4385 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4386 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
a848cd7e | 4387 | no_cache=0 |
dee1a63f MB |
4388 | # Check whether --enable-compat24 or --disable-compat24 was given. |
4389 | if test "${enable_compat24+set}" = set; then | |
4390 | enableval="$enable_compat24" | |
a848cd7e SC |
4391 | |
4392 | if test "$enableval" = yes; then | |
dee1a63f | 4393 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' |
a848cd7e | 4394 | else |
dee1a63f | 4395 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' |
a848cd7e SC |
4396 | fi |
4397 | ||
4398 | else | |
4399 | ||
dee1a63f | 4400 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
a848cd7e SC |
4401 | if test "x$LINE" != x ; then |
4402 | eval "DEFAULT_$LINE" | |
4403 | else | |
4404 | no_cache=1 | |
4405 | fi | |
4406 | ||
dee1a63f | 4407 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 |
a848cd7e SC |
4408 | |
4409 | fi; | |
4410 | ||
dee1a63f | 4411 | eval "$ac_cv_use_compat24" |
a848cd7e | 4412 | if test "$no_cache" != 1; then |
dee1a63f | 4413 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4414 | fi |
4415 | ||
dee1a63f | 4416 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then |
a848cd7e SC |
4417 | echo "$as_me:$LINENO: result: yes" >&5 |
4418 | echo "${ECHO_T}yes" >&6 | |
4419 | else | |
4420 | echo "$as_me:$LINENO: result: no" >&5 | |
4421 | echo "${ECHO_T}no" >&6 | |
4422 | fi | |
4423 | ||
4424 | ||
4425 | enablestring=disable | |
dee1a63f MB |
4426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
4427 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6 | |
a848cd7e | 4428 | no_cache=0 |
dee1a63f MB |
4429 | # Check whether --enable-compat26 or --disable-compat26 was given. |
4430 | if test "${enable_compat26+set}" = set; then | |
4431 | enableval="$enable_compat26" | |
a848cd7e SC |
4432 | |
4433 | if test "$enableval" = yes; then | |
dee1a63f | 4434 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 4435 | else |
dee1a63f | 4436 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
4437 | fi |
4438 | ||
4439 | else | |
4440 | ||
dee1a63f | 4441 | LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}` |
a848cd7e SC |
4442 | if test "x$LINE" != x ; then |
4443 | eval "DEFAULT_$LINE" | |
4444 | else | |
4445 | no_cache=1 | |
4446 | fi | |
4447 | ||
dee1a63f | 4448 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
4449 | |
4450 | fi; | |
4451 | ||
dee1a63f | 4452 | eval "$ac_cv_use_compat26" |
a848cd7e | 4453 | if test "$no_cache" != 1; then |
dee1a63f | 4454 | echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4455 | fi |
4456 | ||
dee1a63f | 4457 | if test "$WXWIN_COMPATIBILITY_2_6" = yes; then |
a848cd7e SC |
4458 | echo "$as_me:$LINENO: result: yes" >&5 |
4459 | echo "${ECHO_T}yes" >&6 | |
4460 | else | |
4461 | echo "$as_me:$LINENO: result: no" >&5 | |
4462 | echo "${ECHO_T}no" >&6 | |
4463 | fi | |
4464 | ||
4465 | ||
ffa0583f RL |
4466 | |
4467 | enablestring= | |
4468 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4469 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4470 | no_cache=0 | |
4471 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4472 | if test "${enable_rpath+set}" = set; then |
4473 | enableval="$enable_rpath" | |
ffa0583f RL |
4474 | |
4475 | if test "$enableval" = yes; then | |
4476 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4477 | else | |
4478 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4479 | fi | |
4480 | ||
4481 | else | |
4482 | ||
4483 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4484 | if test "x$LINE" != x ; then | |
4485 | eval "DEFAULT_$LINE" | |
4486 | else | |
4487 | no_cache=1 | |
4488 | fi | |
4489 | ||
4490 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4491 | ||
a848cd7e SC |
4492 | fi; |
4493 | ||
ffa0583f RL |
4494 | eval "$ac_cv_use_rpath" |
4495 | if test "$no_cache" != 1; then | |
4496 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4497 | fi | |
4498 | ||
4499 | if test "$wxUSE_RPATH" = yes; then | |
4500 | echo "$as_me:$LINENO: result: yes" >&5 | |
4501 | echo "${ECHO_T}yes" >&6 | |
4502 | else | |
4503 | echo "$as_me:$LINENO: result: no" >&5 | |
4504 | echo "${ECHO_T}no" >&6 | |
4505 | fi | |
4506 | ||
a848cd7e SC |
4507 | |
4508 | ||
4509 | ||
4510 | ||
4511 | enablestring= | |
4512 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4513 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4514 | no_cache=0 | |
4515 | # Check whether --enable-intl or --disable-intl was given. | |
4516 | if test "${enable_intl+set}" = set; then | |
4517 | enableval="$enable_intl" | |
4518 | ||
4519 | if test "$enableval" = yes; then | |
4520 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4521 | else | |
4522 | ac_cv_use_intl='wxUSE_INTL=no' | |
4523 | fi | |
4524 | ||
4525 | else | |
4526 | ||
4527 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4528 | if test "x$LINE" != x ; then | |
4529 | eval "DEFAULT_$LINE" | |
4530 | else | |
4531 | no_cache=1 | |
4532 | fi | |
4533 | ||
4534 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4535 | ||
4536 | fi; | |
4537 | ||
4538 | eval "$ac_cv_use_intl" | |
4539 | if test "$no_cache" != 1; then | |
4540 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4541 | fi | |
4542 | ||
4543 | if test "$wxUSE_INTL" = yes; then | |
4544 | echo "$as_me:$LINENO: result: yes" >&5 | |
4545 | echo "${ECHO_T}yes" >&6 | |
4546 | else | |
4547 | echo "$as_me:$LINENO: result: no" >&5 | |
4548 | echo "${ECHO_T}no" >&6 | |
4549 | fi | |
4550 | ||
4551 | ||
4552 | enablestring= | |
4553 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4554 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4555 | no_cache=0 | |
4556 | # Check whether --enable-config or --disable-config was given. | |
4557 | if test "${enable_config+set}" = set; then | |
4558 | enableval="$enable_config" | |
4559 | ||
4560 | if test "$enableval" = yes; then | |
4561 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4562 | else | |
4563 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4564 | fi | |
4565 | ||
4566 | else | |
4567 | ||
4568 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4569 | if test "x$LINE" != x ; then | |
4570 | eval "DEFAULT_$LINE" | |
4571 | else | |
4572 | no_cache=1 | |
4573 | fi | |
4574 | ||
4575 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4576 | ||
4577 | fi; | |
4578 | ||
4579 | eval "$ac_cv_use_config" | |
4580 | if test "$no_cache" != 1; then | |
4581 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4582 | fi | |
4583 | ||
4584 | if test "$wxUSE_CONFIG" = yes; then | |
4585 | echo "$as_me:$LINENO: result: yes" >&5 | |
4586 | echo "${ECHO_T}yes" >&6 | |
4587 | else | |
4588 | echo "$as_me:$LINENO: result: no" >&5 | |
4589 | echo "${ECHO_T}no" >&6 | |
4590 | fi | |
4591 | ||
4592 | ||
4593 | ||
4594 | enablestring= | |
4595 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4596 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4597 | no_cache=0 | |
4598 | # Check whether --enable-protocols or --disable-protocols was given. | |
4599 | if test "${enable_protocols+set}" = set; then | |
4600 | enableval="$enable_protocols" | |
4601 | ||
4602 | if test "$enableval" = yes; then | |
4603 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4604 | else | |
4605 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4606 | fi | |
4607 | ||
4608 | else | |
4609 | ||
4610 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4611 | if test "x$LINE" != x ; then | |
4612 | eval "DEFAULT_$LINE" | |
4613 | else | |
4614 | no_cache=1 | |
4615 | fi | |
4616 | ||
4617 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4618 | ||
4619 | fi; | |
4620 | ||
4621 | eval "$ac_cv_use_protocols" | |
4622 | if test "$no_cache" != 1; then | |
4623 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4624 | fi | |
4625 | ||
4626 | if test "$wxUSE_PROTOCOL" = yes; then | |
4627 | echo "$as_me:$LINENO: result: yes" >&5 | |
4628 | echo "${ECHO_T}yes" >&6 | |
4629 | else | |
4630 | echo "$as_me:$LINENO: result: no" >&5 | |
4631 | echo "${ECHO_T}no" >&6 | |
4632 | fi | |
4633 | ||
4634 | ||
4635 | enablestring= | |
4636 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4637 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4638 | no_cache=0 | |
4639 | # Check whether --enable-ftp or --disable-ftp was given. | |
4640 | if test "${enable_ftp+set}" = set; then | |
4641 | enableval="$enable_ftp" | |
4642 | ||
4643 | if test "$enableval" = yes; then | |
4644 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4645 | else | |
4646 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4647 | fi | |
4648 | ||
4649 | else | |
4650 | ||
4651 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4652 | if test "x$LINE" != x ; then | |
4653 | eval "DEFAULT_$LINE" | |
4654 | else | |
4655 | no_cache=1 | |
4656 | fi | |
4657 | ||
4658 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4659 | ||
4660 | fi; | |
4661 | ||
4662 | eval "$ac_cv_use_ftp" | |
4663 | if test "$no_cache" != 1; then | |
4664 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4665 | fi | |
4666 | ||
4667 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4668 | echo "$as_me:$LINENO: result: yes" >&5 | |
4669 | echo "${ECHO_T}yes" >&6 | |
4670 | else | |
4671 | echo "$as_me:$LINENO: result: no" >&5 | |
4672 | echo "${ECHO_T}no" >&6 | |
4673 | fi | |
4674 | ||
4675 | ||
4676 | enablestring= | |
4677 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4678 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4679 | no_cache=0 | |
4680 | # Check whether --enable-http or --disable-http was given. | |
4681 | if test "${enable_http+set}" = set; then | |
4682 | enableval="$enable_http" | |
4683 | ||
4684 | if test "$enableval" = yes; then | |
4685 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4686 | else | |
4687 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4688 | fi | |
4689 | ||
4690 | else | |
4691 | ||
4692 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4693 | if test "x$LINE" != x ; then | |
4694 | eval "DEFAULT_$LINE" | |
4695 | else | |
4696 | no_cache=1 | |
4697 | fi | |
4698 | ||
4699 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4700 | ||
4701 | fi; | |
4702 | ||
4703 | eval "$ac_cv_use_http" | |
4704 | if test "$no_cache" != 1; then | |
4705 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4706 | fi | |
4707 | ||
4708 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4709 | echo "$as_me:$LINENO: result: yes" >&5 | |
4710 | echo "${ECHO_T}yes" >&6 | |
4711 | else | |
4712 | echo "$as_me:$LINENO: result: no" >&5 | |
4713 | echo "${ECHO_T}no" >&6 | |
4714 | fi | |
4715 | ||
4716 | ||
4717 | enablestring= | |
4718 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4719 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4720 | no_cache=0 | |
4721 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4722 | if test "${enable_fileproto+set}" = set; then | |
4723 | enableval="$enable_fileproto" | |
4724 | ||
4725 | if test "$enableval" = yes; then | |
4726 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4727 | else | |
4728 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4729 | fi | |
4730 | ||
4731 | else | |
4732 | ||
4733 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4741 | ||
4742 | fi; | |
4743 | ||
4744 | eval "$ac_cv_use_fileproto" | |
4745 | if test "$no_cache" != 1; then | |
4746 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4747 | fi | |
4748 | ||
4749 | if test "$wxUSE_PROTOCOL_FILE" = 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 | ||
4758 | enablestring= | |
4759 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4760 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4761 | no_cache=0 | |
4762 | # Check whether --enable-sockets or --disable-sockets was given. | |
4763 | if test "${enable_sockets+set}" = set; then | |
4764 | enableval="$enable_sockets" | |
4765 | ||
4766 | if test "$enableval" = yes; then | |
4767 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4768 | else | |
4769 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4770 | fi | |
4771 | ||
4772 | else | |
4773 | ||
4774 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4775 | if test "x$LINE" != x ; then | |
4776 | eval "DEFAULT_$LINE" | |
4777 | else | |
4778 | no_cache=1 | |
4779 | fi | |
4780 | ||
4781 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4782 | ||
4783 | fi; | |
4784 | ||
4785 | eval "$ac_cv_use_sockets" | |
4786 | if test "$no_cache" != 1; then | |
4787 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4788 | fi | |
4789 | ||
4790 | if test "$wxUSE_SOCKETS" = yes; then | |
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 | ||
4799 | enablestring= | |
4800 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4801 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4802 | no_cache=0 | |
4803 | # Check whether --enable-ole or --disable-ole was given. | |
4804 | if test "${enable_ole+set}" = set; then | |
4805 | enableval="$enable_ole" | |
4806 | ||
4807 | if test "$enableval" = yes; then | |
4808 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4809 | else | |
4810 | ac_cv_use_ole='wxUSE_OLE=no' | |
4811 | fi | |
4812 | ||
4813 | else | |
4814 | ||
4815 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4816 | if test "x$LINE" != x ; then | |
4817 | eval "DEFAULT_$LINE" | |
4818 | else | |
4819 | no_cache=1 | |
4820 | fi | |
4821 | ||
4822 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4823 | ||
4824 | fi; | |
4825 | ||
4826 | eval "$ac_cv_use_ole" | |
4827 | if test "$no_cache" != 1; then | |
4828 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4829 | fi | |
4830 | ||
4831 | if test "$wxUSE_OLE" = yes; then | |
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 | ||
4840 | enablestring= | |
4841 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4842 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4843 | no_cache=0 | |
4844 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4845 | if test "${enable_dataobj+set}" = set; then | |
4846 | enableval="$enable_dataobj" | |
4847 | ||
4848 | if test "$enableval" = yes; then | |
4849 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4850 | else | |
4851 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4852 | fi | |
4853 | ||
4854 | else | |
4855 | ||
4856 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4857 | if test "x$LINE" != x ; then | |
4858 | eval "DEFAULT_$LINE" | |
4859 | else | |
4860 | no_cache=1 | |
4861 | fi | |
4862 | ||
4863 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4864 | ||
4865 | fi; | |
4866 | ||
4867 | eval "$ac_cv_use_dataobj" | |
4868 | if test "$no_cache" != 1; then | |
4869 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4870 | fi | |
4871 | ||
4872 | if test "$wxUSE_DATAOBJ" = yes; then | |
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 | ||
4881 | ||
4882 | enablestring= | |
4883 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4884 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4885 | no_cache=0 | |
4886 | # Check whether --enable-ipc or --disable-ipc was given. | |
4887 | if test "${enable_ipc+set}" = set; then | |
4888 | enableval="$enable_ipc" | |
4889 | ||
4890 | if test "$enableval" = yes; then | |
4891 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4892 | else | |
4893 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4894 | fi | |
4895 | ||
4896 | else | |
4897 | ||
4898 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4899 | if test "x$LINE" != x ; then | |
4900 | eval "DEFAULT_$LINE" | |
4901 | else | |
4902 | no_cache=1 | |
4903 | fi | |
4904 | ||
4905 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4906 | ||
4907 | fi; | |
4908 | ||
4909 | eval "$ac_cv_use_ipc" | |
4910 | if test "$no_cache" != 1; then | |
4911 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4912 | fi | |
4913 | ||
4914 | if test "$wxUSE_IPC" = yes; then | |
4915 | echo "$as_me:$LINENO: result: yes" >&5 | |
4916 | echo "${ECHO_T}yes" >&6 | |
4917 | else | |
4918 | echo "$as_me:$LINENO: result: no" >&5 | |
4919 | echo "${ECHO_T}no" >&6 | |
4920 | fi | |
4921 | ||
4922 | ||
4923 | ||
4924 | enablestring= | |
4925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4926 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4927 | no_cache=0 | |
4928 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4929 | if test "${enable_apple_ieee+set}" = set; then | |
4930 | enableval="$enable_apple_ieee" | |
4931 | ||
4932 | if test "$enableval" = yes; then | |
4933 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4934 | else | |
4935 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4936 | fi | |
4937 | ||
4938 | else | |
4939 | ||
4940 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4941 | if test "x$LINE" != x ; then | |
4942 | eval "DEFAULT_$LINE" | |
4943 | else | |
4944 | no_cache=1 | |
4945 | fi | |
4946 | ||
4947 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4948 | ||
4949 | fi; | |
4950 | ||
4951 | eval "$ac_cv_use_apple_ieee" | |
4952 | if test "$no_cache" != 1; then | |
4953 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4954 | fi | |
4955 | ||
4956 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4957 | echo "$as_me:$LINENO: result: yes" >&5 | |
4958 | echo "${ECHO_T}yes" >&6 | |
4959 | else | |
4960 | echo "$as_me:$LINENO: result: no" >&5 | |
4961 | echo "${ECHO_T}no" >&6 | |
4962 | fi | |
4963 | ||
4964 | ||
81f90336 MW |
4965 | enablestring= |
4966 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4967 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4968 | no_cache=0 | |
4969 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4970 | if test "${enable_arcstream+set}" = set; then | |
4971 | enableval="$enable_arcstream" | |
4972 | ||
4973 | if test "$enableval" = yes; then | |
9e8e867f | 4974 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4975 | else |
9e8e867f | 4976 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4977 | fi |
4978 | ||
4979 | else | |
4980 | ||
9e8e867f | 4981 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4982 | if test "x$LINE" != x ; then |
4983 | eval "DEFAULT_$LINE" | |
4984 | else | |
4985 | no_cache=1 | |
4986 | fi | |
4987 | ||
9e8e867f | 4988 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4989 | |
4990 | fi; | |
4991 | ||
4992 | eval "$ac_cv_use_arcstream" | |
4993 | if test "$no_cache" != 1; then | |
4994 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4995 | fi | |
4996 | ||
9e8e867f | 4997 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4998 | echo "$as_me:$LINENO: result: yes" >&5 |
4999 | echo "${ECHO_T}yes" >&6 | |
5000 | else | |
5001 | echo "$as_me:$LINENO: result: no" >&5 | |
5002 | echo "${ECHO_T}no" >&6 | |
5003 | fi | |
5004 | ||
5005 | ||
a848cd7e | 5006 | enablestring= |
36b6448c VZ |
5007 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
5008 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 5009 | no_cache=0 |
36b6448c VZ |
5010 | # Check whether --enable-backtrace or --disable-backtrace was given. |
5011 | if test "${enable_backtrace+set}" = set; then | |
5012 | enableval="$enable_backtrace" | |
a848cd7e SC |
5013 | |
5014 | if test "$enableval" = yes; then | |
36b6448c | 5015 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 5016 | else |
36b6448c | 5017 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
5018 | fi |
5019 | ||
5020 | else | |
5021 | ||
36b6448c | 5022 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
5023 | if test "x$LINE" != x ; then |
5024 | eval "DEFAULT_$LINE" | |
5025 | else | |
5026 | no_cache=1 | |
5027 | fi | |
5028 | ||
36b6448c | 5029 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
5030 | |
5031 | fi; | |
5032 | ||
36b6448c | 5033 | eval "$ac_cv_use_backtrace" |
a848cd7e | 5034 | if test "$no_cache" != 1; then |
36b6448c | 5035 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5036 | fi |
5037 | ||
36b6448c | 5038 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
5039 | echo "$as_me:$LINENO: result: yes" >&5 |
5040 | echo "${ECHO_T}yes" >&6 | |
5041 | else | |
5042 | echo "$as_me:$LINENO: result: no" >&5 | |
5043 | echo "${ECHO_T}no" >&6 | |
5044 | fi | |
5045 | ||
5046 | ||
eaff0f0d | 5047 | enablestring= |
36b6448c VZ |
5048 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
5049 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 5050 | no_cache=0 |
36b6448c VZ |
5051 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
5052 | if test "${enable_catch_segvs+set}" = set; then | |
5053 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
5054 | |
5055 | if test "$enableval" = yes; then | |
36b6448c | 5056 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 5057 | else |
36b6448c | 5058 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
5059 | fi |
5060 | ||
5061 | else | |
5062 | ||
36b6448c | 5063 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
5064 | if test "x$LINE" != x ; then |
5065 | eval "DEFAULT_$LINE" | |
5066 | else | |
5067 | no_cache=1 | |
5068 | fi | |
5069 | ||
36b6448c | 5070 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
5071 | |
5072 | fi; | |
5073 | ||
36b6448c | 5074 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 5075 | if test "$no_cache" != 1; then |
36b6448c | 5076 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
5077 | fi |
5078 | ||
36b6448c | 5079 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
5080 | echo "$as_me:$LINENO: result: yes" >&5 |
5081 | echo "${ECHO_T}yes" >&6 | |
5082 | else | |
5083 | echo "$as_me:$LINENO: result: no" >&5 | |
5084 | echo "${ECHO_T}no" >&6 | |
5085 | fi | |
5086 | ||
5087 | ||
a848cd7e SC |
5088 | enablestring= |
5089 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
5090 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
5091 | no_cache=0 | |
5092 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
5093 | if test "${enable_cmdline+set}" = set; then | |
5094 | enableval="$enable_cmdline" | |
5095 | ||
5096 | if test "$enableval" = yes; then | |
5097 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
5098 | else | |
5099 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
5100 | fi | |
5101 | ||
5102 | else | |
5103 | ||
5104 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
5105 | if test "x$LINE" != x ; then | |
5106 | eval "DEFAULT_$LINE" | |
5107 | else | |
5108 | no_cache=1 | |
5109 | fi | |
5110 | ||
5111 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
5112 | ||
5113 | fi; | |
5114 | ||
5115 | eval "$ac_cv_use_cmdline" | |
5116 | if test "$no_cache" != 1; then | |
5117 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
5118 | fi | |
5119 | ||
5120 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
5121 | echo "$as_me:$LINENO: result: yes" >&5 | |
5122 | echo "${ECHO_T}yes" >&6 | |
5123 | else | |
5124 | echo "$as_me:$LINENO: result: no" >&5 | |
5125 | echo "${ECHO_T}no" >&6 | |
5126 | fi | |
5127 | ||
5128 | ||
5129 | enablestring= | |
5130 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
5131 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
5132 | no_cache=0 | |
5133 | # Check whether --enable-datetime or --disable-datetime was given. | |
5134 | if test "${enable_datetime+set}" = set; then | |
5135 | enableval="$enable_datetime" | |
5136 | ||
5137 | if test "$enableval" = yes; then | |
5138 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
5139 | else | |
5140 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
5141 | fi | |
5142 | ||
5143 | else | |
5144 | ||
5145 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
5146 | if test "x$LINE" != x ; then | |
5147 | eval "DEFAULT_$LINE" | |
5148 | else | |
5149 | no_cache=1 | |
5150 | fi | |
5151 | ||
5152 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
5153 | ||
5154 | fi; | |
5155 | ||
5156 | eval "$ac_cv_use_datetime" | |
5157 | if test "$no_cache" != 1; then | |
5158 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
5159 | fi | |
5160 | ||
5161 | if test "$wxUSE_DATETIME" = yes; then | |
5162 | echo "$as_me:$LINENO: result: yes" >&5 | |
5163 | echo "${ECHO_T}yes" >&6 | |
5164 | else | |
5165 | echo "$as_me:$LINENO: result: no" >&5 | |
5166 | echo "${ECHO_T}no" >&6 | |
5167 | fi | |
5168 | ||
5169 | ||
36b6448c VZ |
5170 | enablestring= |
5171 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
5172 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
5173 | no_cache=0 | |
5174 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
5175 | if test "${enable_debugreport+set}" = set; then | |
5176 | enableval="$enable_debugreport" | |
5177 | ||
5178 | if test "$enableval" = yes; then | |
5179 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
5180 | else | |
5181 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
5182 | fi | |
5183 | ||
5184 | else | |
5185 | ||
5186 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
5187 | if test "x$LINE" != x ; then | |
5188 | eval "DEFAULT_$LINE" | |
5189 | else | |
5190 | no_cache=1 | |
5191 | fi | |
5192 | ||
5193 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
5194 | ||
5195 | fi; | |
5196 | ||
5197 | eval "$ac_cv_use_debugreport" | |
5198 | if test "$no_cache" != 1; then | |
5199 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
5200 | fi | |
5201 | ||
5202 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
5203 | echo "$as_me:$LINENO: result: yes" >&5 | |
5204 | echo "${ECHO_T}yes" >&6 | |
5205 | else | |
5206 | echo "$as_me:$LINENO: result: no" >&5 | |
5207 | echo "${ECHO_T}no" >&6 | |
5208 | fi | |
5209 | ||
5210 | ||
a848cd7e SC |
5211 | enablestring= |
5212 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
5213 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
5214 | no_cache=0 | |
5215 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
5216 | if test "${enable_dialupman+set}" = set; then | |
5217 | enableval="$enable_dialupman" | |
5218 | ||
5219 | if test "$enableval" = yes; then | |
5220 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
5221 | else | |
5222 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
5223 | fi | |
5224 | ||
5225 | else | |
5226 | ||
5227 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
5228 | if test "x$LINE" != x ; then | |
5229 | eval "DEFAULT_$LINE" | |
5230 | else | |
5231 | no_cache=1 | |
5232 | fi | |
5233 | ||
5234 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
5235 | ||
5236 | fi; | |
5237 | ||
5238 | eval "$ac_cv_use_dialupman" | |
5239 | if test "$no_cache" != 1; then | |
5240 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
5241 | fi | |
5242 | ||
5243 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
5244 | echo "$as_me:$LINENO: result: yes" >&5 | |
5245 | echo "${ECHO_T}yes" >&6 | |
5246 | else | |
5247 | echo "$as_me:$LINENO: result: no" >&5 | |
5248 | echo "${ECHO_T}no" >&6 | |
5249 | fi | |
5250 | ||
5251 | ||
5252 | enablestring= | |
5253 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
5254 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
5255 | no_cache=0 | |
5256 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
5257 | if test "${enable_dynlib+set}" = set; then | |
5258 | enableval="$enable_dynlib" | |
5259 | ||
5260 | if test "$enableval" = yes; then | |
5261 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
5262 | else | |
5263 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5264 | fi | |
5265 | ||
5266 | else | |
5267 | ||
5268 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
5269 | if test "x$LINE" != x ; then | |
5270 | eval "DEFAULT_$LINE" | |
5271 | else | |
5272 | no_cache=1 | |
5273 | fi | |
5274 | ||
5275 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5276 | ||
5277 | fi; | |
5278 | ||
5279 | eval "$ac_cv_use_dynlib" | |
5280 | if test "$no_cache" != 1; then | |
5281 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5282 | fi | |
5283 | ||
5284 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
5285 | echo "$as_me:$LINENO: result: yes" >&5 | |
5286 | echo "${ECHO_T}yes" >&6 | |
5287 | else | |
5288 | echo "$as_me:$LINENO: result: no" >&5 | |
5289 | echo "${ECHO_T}no" >&6 | |
5290 | fi | |
5291 | ||
5292 | ||
5293 | enablestring= | |
5294 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
5295 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5296 | no_cache=0 | |
5297 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5298 | if test "${enable_dynamicloader+set}" = set; then | |
5299 | enableval="$enable_dynamicloader" | |
5300 | ||
5301 | if test "$enableval" = yes; then | |
5302 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5303 | else | |
5304 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5305 | fi | |
5306 | ||
5307 | else | |
5308 | ||
5309 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5310 | if test "x$LINE" != x ; then | |
5311 | eval "DEFAULT_$LINE" | |
5312 | else | |
5313 | no_cache=1 | |
5314 | fi | |
5315 | ||
5316 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5317 | ||
5318 | fi; | |
5319 | ||
5320 | eval "$ac_cv_use_dynamicloader" | |
5321 | if test "$no_cache" != 1; then | |
5322 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5323 | fi | |
5324 | ||
5325 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5326 | echo "$as_me:$LINENO: result: yes" >&5 | |
5327 | echo "${ECHO_T}yes" >&6 | |
5328 | else | |
5329 | echo "$as_me:$LINENO: result: no" >&5 | |
5330 | echo "${ECHO_T}no" >&6 | |
5331 | fi | |
5332 | ||
5333 | ||
5334 | enablestring= | |
5335 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5336 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5337 | no_cache=0 | |
5338 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5339 | if test "${enable_exceptions+set}" = set; then | |
5340 | enableval="$enable_exceptions" | |
5341 | ||
5342 | if test "$enableval" = yes; then | |
5343 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5344 | else | |
5345 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5346 | fi | |
5347 | ||
5348 | else | |
5349 | ||
5350 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5351 | if test "x$LINE" != x ; then | |
5352 | eval "DEFAULT_$LINE" | |
5353 | else | |
5354 | no_cache=1 | |
5355 | fi | |
5356 | ||
5357 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5358 | ||
5359 | fi; | |
5360 | ||
5361 | eval "$ac_cv_use_exceptions" | |
5362 | if test "$no_cache" != 1; then | |
5363 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5364 | fi | |
5365 | ||
5366 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5367 | echo "$as_me:$LINENO: result: yes" >&5 | |
5368 | echo "${ECHO_T}yes" >&6 | |
5369 | else | |
5370 | echo "$as_me:$LINENO: result: no" >&5 | |
5371 | echo "${ECHO_T}no" >&6 | |
5372 | fi | |
5373 | ||
5374 | ||
5375 | enablestring= | |
5376 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5377 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5378 | no_cache=0 | |
5379 | # Check whether --enable-ffile or --disable-ffile was given. | |
5380 | if test "${enable_ffile+set}" = set; then | |
5381 | enableval="$enable_ffile" | |
5382 | ||
5383 | if test "$enableval" = yes; then | |
5384 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5385 | else | |
5386 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5387 | fi | |
5388 | ||
5389 | else | |
5390 | ||
5391 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5392 | if test "x$LINE" != x ; then | |
5393 | eval "DEFAULT_$LINE" | |
5394 | else | |
5395 | no_cache=1 | |
5396 | fi | |
5397 | ||
5398 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5399 | ||
5400 | fi; | |
5401 | ||
5402 | eval "$ac_cv_use_ffile" | |
5403 | if test "$no_cache" != 1; then | |
5404 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5405 | fi | |
5406 | ||
5407 | if test "$wxUSE_FFILE" = yes; then | |
5408 | echo "$as_me:$LINENO: result: yes" >&5 | |
5409 | echo "${ECHO_T}yes" >&6 | |
5410 | else | |
5411 | echo "$as_me:$LINENO: result: no" >&5 | |
5412 | echo "${ECHO_T}no" >&6 | |
5413 | fi | |
5414 | ||
5415 | ||
5416 | enablestring= | |
5417 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5418 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5419 | no_cache=0 | |
5420 | # Check whether --enable-file or --disable-file was given. | |
5421 | if test "${enable_file+set}" = set; then | |
5422 | enableval="$enable_file" | |
5423 | ||
5424 | if test "$enableval" = yes; then | |
5425 | ac_cv_use_file='wxUSE_FILE=yes' | |
5426 | else | |
5427 | ac_cv_use_file='wxUSE_FILE=no' | |
5428 | fi | |
5429 | ||
5430 | else | |
5431 | ||
5432 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5433 | if test "x$LINE" != x ; then | |
5434 | eval "DEFAULT_$LINE" | |
5435 | else | |
5436 | no_cache=1 | |
5437 | fi | |
5438 | ||
5439 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5440 | ||
5441 | fi; | |
5442 | ||
5443 | eval "$ac_cv_use_file" | |
5444 | if test "$no_cache" != 1; then | |
5445 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5446 | fi | |
5447 | ||
5448 | if test "$wxUSE_FILE" = yes; then | |
5449 | echo "$as_me:$LINENO: result: yes" >&5 | |
5450 | echo "${ECHO_T}yes" >&6 | |
5451 | else | |
5452 | echo "$as_me:$LINENO: result: no" >&5 | |
5453 | echo "${ECHO_T}no" >&6 | |
5454 | fi | |
5455 | ||
5456 | ||
5457 | enablestring= | |
5458 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5459 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5460 | no_cache=0 | |
5461 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5462 | if test "${enable_filesystem+set}" = set; then | |
5463 | enableval="$enable_filesystem" | |
5464 | ||
5465 | if test "$enableval" = yes; then | |
5466 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5467 | else | |
5468 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5469 | fi | |
5470 | ||
5471 | else | |
5472 | ||
5473 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5474 | if test "x$LINE" != x ; then | |
5475 | eval "DEFAULT_$LINE" | |
5476 | else | |
5477 | no_cache=1 | |
5478 | fi | |
5479 | ||
5480 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5481 | ||
5482 | fi; | |
5483 | ||
5484 | eval "$ac_cv_use_filesystem" | |
5485 | if test "$no_cache" != 1; then | |
5486 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5487 | fi | |
5488 | ||
5489 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5490 | echo "$as_me:$LINENO: result: yes" >&5 | |
5491 | echo "${ECHO_T}yes" >&6 | |
5492 | else | |
5493 | echo "$as_me:$LINENO: result: no" >&5 | |
5494 | echo "${ECHO_T}no" >&6 | |
5495 | fi | |
5496 | ||
5497 | ||
5498 | enablestring= | |
5499 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5500 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5501 | no_cache=0 | |
5502 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5503 | if test "${enable_fontmap+set}" = set; then | |
5504 | enableval="$enable_fontmap" | |
5505 | ||
5506 | if test "$enableval" = yes; then | |
5507 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5508 | else | |
5509 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5510 | fi | |
5511 | ||
5512 | else | |
5513 | ||
5514 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5515 | if test "x$LINE" != x ; then | |
5516 | eval "DEFAULT_$LINE" | |
5517 | else | |
5518 | no_cache=1 | |
5519 | fi | |
5520 | ||
5521 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5522 | ||
5523 | fi; | |
5524 | ||
5525 | eval "$ac_cv_use_fontmap" | |
5526 | if test "$no_cache" != 1; then | |
5527 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5528 | fi | |
5529 | ||
5530 | if test "$wxUSE_FONTMAP" = yes; then | |
5531 | echo "$as_me:$LINENO: result: yes" >&5 | |
5532 | echo "${ECHO_T}yes" >&6 | |
5533 | else | |
5534 | echo "$as_me:$LINENO: result: no" >&5 | |
5535 | echo "${ECHO_T}no" >&6 | |
5536 | fi | |
5537 | ||
5538 | ||
5539 | enablestring= | |
5540 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5541 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5542 | no_cache=0 | |
5543 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5544 | if test "${enable_fs_inet+set}" = set; then | |
5545 | enableval="$enable_fs_inet" | |
5546 | ||
5547 | if test "$enableval" = yes; then | |
5548 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5549 | else | |
5550 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5551 | fi | |
5552 | ||
5553 | else | |
5554 | ||
5555 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5556 | if test "x$LINE" != x ; then | |
5557 | eval "DEFAULT_$LINE" | |
5558 | else | |
5559 | no_cache=1 | |
5560 | fi | |
5561 | ||
5562 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5563 | ||
5564 | fi; | |
5565 | ||
5566 | eval "$ac_cv_use_fs_inet" | |
5567 | if test "$no_cache" != 1; then | |
5568 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5569 | fi | |
5570 | ||
5571 | if test "$wxUSE_FS_INET" = yes; then | |
5572 | echo "$as_me:$LINENO: result: yes" >&5 | |
5573 | echo "${ECHO_T}yes" >&6 | |
5574 | else | |
5575 | echo "$as_me:$LINENO: result: no" >&5 | |
5576 | echo "${ECHO_T}no" >&6 | |
5577 | fi | |
5578 | ||
5579 | ||
5580 | enablestring= | |
5581 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5582 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5583 | no_cache=0 | |
5584 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5585 | if test "${enable_fs_zip+set}" = set; then | |
5586 | enableval="$enable_fs_zip" | |
5587 | ||
5588 | if test "$enableval" = yes; then | |
5589 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5590 | else | |
5591 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5592 | fi | |
5593 | ||
5594 | else | |
5595 | ||
5596 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5597 | if test "x$LINE" != x ; then | |
5598 | eval "DEFAULT_$LINE" | |
5599 | else | |
5600 | no_cache=1 | |
5601 | fi | |
5602 | ||
5603 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5604 | ||
5605 | fi; | |
5606 | ||
5607 | eval "$ac_cv_use_fs_zip" | |
5608 | if test "$no_cache" != 1; then | |
5609 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5610 | fi | |
5611 | ||
5612 | if test "$wxUSE_FS_ZIP" = yes; then | |
5613 | echo "$as_me:$LINENO: result: yes" >&5 | |
5614 | echo "${ECHO_T}yes" >&6 | |
5615 | else | |
5616 | echo "$as_me:$LINENO: result: no" >&5 | |
5617 | echo "${ECHO_T}no" >&6 | |
5618 | fi | |
5619 | ||
5620 | ||
5621 | enablestring= | |
5622 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5623 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5624 | no_cache=0 | |
5625 | # Check whether --enable-geometry or --disable-geometry was given. | |
5626 | if test "${enable_geometry+set}" = set; then | |
5627 | enableval="$enable_geometry" | |
5628 | ||
5629 | if test "$enableval" = yes; then | |
5630 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5631 | else | |
5632 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5633 | fi | |
5634 | ||
5635 | else | |
5636 | ||
5637 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5638 | if test "x$LINE" != x ; then | |
5639 | eval "DEFAULT_$LINE" | |
5640 | else | |
5641 | no_cache=1 | |
5642 | fi | |
5643 | ||
5644 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5645 | ||
5646 | fi; | |
5647 | ||
5648 | eval "$ac_cv_use_geometry" | |
5649 | if test "$no_cache" != 1; then | |
5650 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5651 | fi | |
5652 | ||
5653 | if test "$wxUSE_GEOMETRY" = yes; then | |
5654 | echo "$as_me:$LINENO: result: yes" >&5 | |
5655 | echo "${ECHO_T}yes" >&6 | |
5656 | else | |
5657 | echo "$as_me:$LINENO: result: no" >&5 | |
5658 | echo "${ECHO_T}no" >&6 | |
5659 | fi | |
5660 | ||
5661 | ||
5662 | enablestring= | |
5663 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5664 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5665 | no_cache=0 | |
5666 | # Check whether --enable-log or --disable-log was given. | |
5667 | if test "${enable_log+set}" = set; then | |
5668 | enableval="$enable_log" | |
5669 | ||
5670 | if test "$enableval" = yes; then | |
5671 | ac_cv_use_log='wxUSE_LOG=yes' | |
5672 | else | |
5673 | ac_cv_use_log='wxUSE_LOG=no' | |
5674 | fi | |
5675 | ||
5676 | else | |
5677 | ||
5678 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5679 | if test "x$LINE" != x ; then | |
5680 | eval "DEFAULT_$LINE" | |
5681 | else | |
5682 | no_cache=1 | |
5683 | fi | |
5684 | ||
5685 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5686 | ||
5687 | fi; | |
5688 | ||
5689 | eval "$ac_cv_use_log" | |
5690 | if test "$no_cache" != 1; then | |
5691 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5692 | fi | |
5693 | ||
5694 | if test "$wxUSE_LOG" = yes; then | |
5695 | echo "$as_me:$LINENO: result: yes" >&5 | |
5696 | echo "${ECHO_T}yes" >&6 | |
5697 | else | |
5698 | echo "$as_me:$LINENO: result: no" >&5 | |
5699 | echo "${ECHO_T}no" >&6 | |
5700 | fi | |
5701 | ||
5702 | ||
5703 | enablestring= | |
5704 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5705 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5706 | no_cache=0 | |
5707 | # Check whether --enable-longlong or --disable-longlong was given. | |
5708 | if test "${enable_longlong+set}" = set; then | |
5709 | enableval="$enable_longlong" | |
5710 | ||
5711 | if test "$enableval" = yes; then | |
5712 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5713 | else | |
5714 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5715 | fi | |
5716 | ||
5717 | else | |
5718 | ||
5719 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5720 | if test "x$LINE" != x ; then | |
5721 | eval "DEFAULT_$LINE" | |
5722 | else | |
5723 | no_cache=1 | |
5724 | fi | |
5725 | ||
5726 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5727 | ||
5728 | fi; | |
5729 | ||
5730 | eval "$ac_cv_use_longlong" | |
5731 | if test "$no_cache" != 1; then | |
5732 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5733 | fi | |
5734 | ||
5735 | if test "$wxUSE_LONGLONG" = yes; then | |
5736 | echo "$as_me:$LINENO: result: yes" >&5 | |
5737 | echo "${ECHO_T}yes" >&6 | |
5738 | else | |
5739 | echo "$as_me:$LINENO: result: no" >&5 | |
5740 | echo "${ECHO_T}no" >&6 | |
5741 | fi | |
5742 | ||
5743 | ||
5744 | enablestring= | |
5745 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5746 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5747 | no_cache=0 | |
5748 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5749 | if test "${enable_mimetype+set}" = set; then | |
5750 | enableval="$enable_mimetype" | |
5751 | ||
5752 | if test "$enableval" = yes; then | |
5753 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5754 | else | |
5755 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5756 | fi | |
5757 | ||
5758 | else | |
5759 | ||
5760 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5761 | if test "x$LINE" != x ; then | |
5762 | eval "DEFAULT_$LINE" | |
5763 | else | |
5764 | no_cache=1 | |
5765 | fi | |
5766 | ||
5767 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5768 | ||
5769 | fi; | |
5770 | ||
5771 | eval "$ac_cv_use_mimetype" | |
5772 | if test "$no_cache" != 1; then | |
5773 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5774 | fi | |
5775 | ||
5776 | if test "$wxUSE_MIMETYPE" = yes; then | |
5777 | echo "$as_me:$LINENO: result: yes" >&5 | |
5778 | echo "${ECHO_T}yes" >&6 | |
5779 | else | |
5780 | echo "$as_me:$LINENO: result: no" >&5 | |
5781 | echo "${ECHO_T}no" >&6 | |
5782 | fi | |
5783 | ||
5784 | ||
5785 | enablestring= | |
5786 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5787 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5788 | no_cache=0 | |
5789 | # Check whether --enable-mslu or --disable-mslu was given. | |
5790 | if test "${enable_mslu+set}" = set; then | |
5791 | enableval="$enable_mslu" | |
5792 | ||
5793 | if test "$enableval" = yes; then | |
5794 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5795 | else | |
5796 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5797 | fi | |
5798 | ||
5799 | else | |
5800 | ||
5801 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5802 | if test "x$LINE" != x ; then | |
5803 | eval "DEFAULT_$LINE" | |
5804 | else | |
5805 | no_cache=1 | |
5806 | fi | |
5807 | ||
5808 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5809 | ||
5810 | fi; | |
5811 | ||
5812 | eval "$ac_cv_use_mslu" | |
5813 | if test "$no_cache" != 1; then | |
5814 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5815 | fi | |
5816 | ||
5817 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5818 | echo "$as_me:$LINENO: result: yes" >&5 | |
5819 | echo "${ECHO_T}yes" >&6 | |
5820 | else | |
5821 | echo "$as_me:$LINENO: result: no" >&5 | |
5822 | echo "${ECHO_T}no" >&6 | |
5823 | fi | |
5824 | ||
5825 | ||
5826 | enablestring= | |
5827 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5828 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5829 | no_cache=0 | |
5830 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5831 | if test "${enable_snglinst+set}" = set; then | |
5832 | enableval="$enable_snglinst" | |
5833 | ||
5834 | if test "$enableval" = yes; then | |
5835 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5836 | else | |
5837 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5838 | fi | |
5839 | ||
5840 | else | |
5841 | ||
5842 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5843 | if test "x$LINE" != x ; then | |
5844 | eval "DEFAULT_$LINE" | |
5845 | else | |
5846 | no_cache=1 | |
5847 | fi | |
5848 | ||
5849 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5850 | ||
5851 | fi; | |
5852 | ||
5853 | eval "$ac_cv_use_snglinst" | |
5854 | if test "$no_cache" != 1; then | |
5855 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5856 | fi | |
5857 | ||
5858 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5859 | echo "$as_me:$LINENO: result: yes" >&5 | |
5860 | echo "${ECHO_T}yes" >&6 | |
5861 | else | |
5862 | echo "$as_me:$LINENO: result: no" >&5 | |
5863 | echo "${ECHO_T}no" >&6 | |
5864 | fi | |
5865 | ||
5866 | ||
5867 | enablestring= | |
07158944 VZ |
5868 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5869 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5870 | no_cache=0 |
07158944 VZ |
5871 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5872 | if test "${enable_std_iostreams+set}" = set; then | |
5873 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5874 | |
5875 | if test "$enableval" = yes; then | |
07158944 | 5876 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5877 | else |
07158944 | 5878 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5879 | fi |
5880 | ||
5881 | else | |
5882 | ||
07158944 | 5883 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5884 | if test "x$LINE" != x ; then |
5885 | eval "DEFAULT_$LINE" | |
5886 | else | |
5887 | no_cache=1 | |
5888 | fi | |
5889 | ||
07158944 | 5890 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5891 | |
5892 | fi; | |
5893 | ||
07158944 | 5894 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5895 | if test "$no_cache" != 1; then |
07158944 | 5896 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5897 | fi |
5898 | ||
07158944 | 5899 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5900 | echo "$as_me:$LINENO: result: yes" >&5 |
5901 | echo "${ECHO_T}yes" >&6 | |
5902 | else | |
5903 | echo "$as_me:$LINENO: result: no" >&5 | |
5904 | echo "${ECHO_T}no" >&6 | |
5905 | fi | |
5906 | ||
5907 | ||
59746b65 MW |
5908 | enablestring= |
5909 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5910 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5911 | no_cache=0 | |
5912 | # Check whether --enable-std_string or --disable-std_string was given. | |
5913 | if test "${enable_std_string+set}" = set; then | |
5914 | enableval="$enable_std_string" | |
5915 | ||
5916 | if test "$enableval" = yes; then | |
5917 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5918 | else | |
5919 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5920 | fi | |
5921 | ||
5922 | else | |
5923 | ||
5924 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5925 | if test "x$LINE" != x ; then | |
5926 | eval "DEFAULT_$LINE" | |
5927 | else | |
5928 | no_cache=1 | |
5929 | fi | |
5930 | ||
5931 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5932 | ||
5933 | fi; | |
5934 | ||
5935 | eval "$ac_cv_use_std_string" | |
5936 | if test "$no_cache" != 1; then | |
5937 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5938 | fi | |
5939 | ||
5940 | if test "$wxUSE_STD_STRING" = yes; then | |
5941 | echo "$as_me:$LINENO: result: yes" >&5 | |
5942 | echo "${ECHO_T}yes" >&6 | |
5943 | else | |
5944 | echo "$as_me:$LINENO: result: no" >&5 | |
5945 | echo "${ECHO_T}no" >&6 | |
5946 | fi | |
5947 | ||
5948 | ||
a848cd7e | 5949 | enablestring= |
07158944 VZ |
5950 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5951 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5952 | no_cache=0 |
07158944 VZ |
5953 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5954 | if test "${enable_stdpaths+set}" = set; then | |
5955 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5956 | |
5957 | if test "$enableval" = yes; then | |
07158944 | 5958 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5959 | else |
07158944 | 5960 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5961 | fi |
5962 | ||
5963 | else | |
5964 | ||
07158944 | 5965 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5966 | if test "x$LINE" != x ; then |
5967 | eval "DEFAULT_$LINE" | |
5968 | else | |
5969 | no_cache=1 | |
5970 | fi | |
5971 | ||
07158944 | 5972 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5973 | |
5974 | fi; | |
5975 | ||
07158944 | 5976 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5977 | if test "$no_cache" != 1; then |
07158944 | 5978 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5979 | fi |
5980 | ||
07158944 | 5981 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5982 | echo "$as_me:$LINENO: result: yes" >&5 |
5983 | echo "${ECHO_T}yes" >&6 | |
5984 | else | |
5985 | echo "$as_me:$LINENO: result: no" >&5 | |
5986 | echo "${ECHO_T}no" >&6 | |
5987 | fi | |
5988 | ||
5989 | ||
5990 | enablestring= | |
5991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5992 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5993 | no_cache=0 | |
5994 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5995 | if test "${enable_stopwatch+set}" = set; then | |
5996 | enableval="$enable_stopwatch" | |
5997 | ||
5998 | if test "$enableval" = yes; then | |
5999 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
6000 | else | |
6001 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
6002 | fi | |
6003 | ||
6004 | else | |
6005 | ||
6006 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
6007 | if test "x$LINE" != x ; then | |
6008 | eval "DEFAULT_$LINE" | |
6009 | else | |
6010 | no_cache=1 | |
6011 | fi | |
6012 | ||
6013 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
6014 | ||
6015 | fi; | |
6016 | ||
6017 | eval "$ac_cv_use_stopwatch" | |
6018 | if test "$no_cache" != 1; then | |
6019 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
6020 | fi | |
6021 | ||
6022 | if test "$wxUSE_STOPWATCH" = yes; then | |
6023 | echo "$as_me:$LINENO: result: yes" >&5 | |
6024 | echo "${ECHO_T}yes" >&6 | |
6025 | else | |
6026 | echo "$as_me:$LINENO: result: no" >&5 | |
6027 | echo "${ECHO_T}no" >&6 | |
6028 | fi | |
6029 | ||
6030 | ||
07158944 VZ |
6031 | enablestring= |
6032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
6033 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
6034 | no_cache=0 | |
6035 | # Check whether --enable-streams or --disable-streams was given. | |
6036 | if test "${enable_streams+set}" = set; then | |
6037 | enableval="$enable_streams" | |
6038 | ||
6039 | if test "$enableval" = yes; then | |
6040 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
6041 | else | |
6042 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
6043 | fi | |
6044 | ||
6045 | else | |
6046 | ||
6047 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
6048 | if test "x$LINE" != x ; then | |
6049 | eval "DEFAULT_$LINE" | |
6050 | else | |
6051 | no_cache=1 | |
6052 | fi | |
6053 | ||
6054 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
6055 | ||
6056 | fi; | |
6057 | ||
6058 | eval "$ac_cv_use_streams" | |
6059 | if test "$no_cache" != 1; then | |
6060 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
6061 | fi | |
6062 | ||
6063 | if test "$wxUSE_STREAMS" = yes; then | |
6064 | echo "$as_me:$LINENO: result: yes" >&5 | |
6065 | echo "${ECHO_T}yes" >&6 | |
6066 | else | |
6067 | echo "$as_me:$LINENO: result: no" >&5 | |
6068 | echo "${ECHO_T}no" >&6 | |
6069 | fi | |
6070 | ||
6071 | ||
a848cd7e SC |
6072 | enablestring= |
6073 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
6074 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
6075 | no_cache=0 | |
6076 | # Check whether --enable-system_options or --disable-system_options was given. | |
6077 | if test "${enable_system_options+set}" = set; then | |
6078 | enableval="$enable_system_options" | |
6079 | ||
6080 | if test "$enableval" = yes; then | |
6081 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
6082 | else | |
6083 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
6084 | fi | |
6085 | ||
6086 | else | |
6087 | ||
6088 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
6089 | if test "x$LINE" != x ; then | |
6090 | eval "DEFAULT_$LINE" | |
6091 | else | |
6092 | no_cache=1 | |
6093 | fi | |
6094 | ||
6095 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
6096 | ||
6097 | fi; | |
6098 | ||
6099 | eval "$ac_cv_use_system_options" | |
6100 | if test "$no_cache" != 1; then | |
6101 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
6102 | fi | |
6103 | ||
6104 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
6105 | echo "$as_me:$LINENO: result: yes" >&5 | |
6106 | echo "${ECHO_T}yes" >&6 | |
6107 | else | |
6108 | echo "$as_me:$LINENO: result: no" >&5 | |
6109 | echo "${ECHO_T}no" >&6 | |
6110 | fi | |
6111 | ||
6112 | ||
6113 | enablestring= | |
6114 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
6115 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
6116 | no_cache=0 | |
6117 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
6118 | if test "${enable_textbuf+set}" = set; then | |
6119 | enableval="$enable_textbuf" | |
6120 | ||
6121 | if test "$enableval" = yes; then | |
6122 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
6123 | else | |
6124 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
6125 | fi | |
6126 | ||
6127 | else | |
6128 | ||
6129 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
6130 | if test "x$LINE" != x ; then | |
6131 | eval "DEFAULT_$LINE" | |
6132 | else | |
6133 | no_cache=1 | |
6134 | fi | |
6135 | ||
6136 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
6137 | ||
6138 | fi; | |
6139 | ||
6140 | eval "$ac_cv_use_textbuf" | |
6141 | if test "$no_cache" != 1; then | |
6142 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
6143 | fi | |
6144 | ||
6145 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
6146 | echo "$as_me:$LINENO: result: yes" >&5 | |
6147 | echo "${ECHO_T}yes" >&6 | |
6148 | else | |
6149 | echo "$as_me:$LINENO: result: no" >&5 | |
6150 | echo "${ECHO_T}no" >&6 | |
6151 | fi | |
6152 | ||
6153 | ||
6154 | enablestring= | |
6155 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
6156 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
6157 | no_cache=0 | |
6158 | # Check whether --enable-textfile or --disable-textfile was given. | |
6159 | if test "${enable_textfile+set}" = set; then | |
6160 | enableval="$enable_textfile" | |
6161 | ||
6162 | if test "$enableval" = yes; then | |
6163 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
6164 | else | |
6165 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
6166 | fi | |
6167 | ||
6168 | else | |
6169 | ||
6170 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
6171 | if test "x$LINE" != x ; then | |
6172 | eval "DEFAULT_$LINE" | |
6173 | else | |
6174 | no_cache=1 | |
6175 | fi | |
6176 | ||
6177 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
6178 | ||
6179 | fi; | |
6180 | ||
6181 | eval "$ac_cv_use_textfile" | |
6182 | if test "$no_cache" != 1; then | |
6183 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
6184 | fi | |
6185 | ||
6186 | if test "$wxUSE_TEXTFILE" = yes; then | |
6187 | echo "$as_me:$LINENO: result: yes" >&5 | |
6188 | echo "${ECHO_T}yes" >&6 | |
6189 | else | |
6190 | echo "$as_me:$LINENO: result: no" >&5 | |
6191 | echo "${ECHO_T}no" >&6 | |
6192 | fi | |
6193 | ||
6194 | ||
6195 | enablestring= | |
6196 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
6197 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
6198 | no_cache=0 | |
6199 | # Check whether --enable-timer or --disable-timer was given. | |
6200 | if test "${enable_timer+set}" = set; then | |
6201 | enableval="$enable_timer" | |
6202 | ||
6203 | if test "$enableval" = yes; then | |
6204 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
6205 | else | |
6206 | ac_cv_use_timer='wxUSE_TIMER=no' | |
6207 | fi | |
6208 | ||
6209 | else | |
6210 | ||
6211 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
6212 | if test "x$LINE" != x ; then | |
6213 | eval "DEFAULT_$LINE" | |
6214 | else | |
6215 | no_cache=1 | |
6216 | fi | |
6217 | ||
6218 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
6219 | ||
6220 | fi; | |
6221 | ||
6222 | eval "$ac_cv_use_timer" | |
6223 | if test "$no_cache" != 1; then | |
6224 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
6225 | fi | |
6226 | ||
6227 | if test "$wxUSE_TIMER" = yes; then | |
6228 | echo "$as_me:$LINENO: result: yes" >&5 | |
6229 | echo "${ECHO_T}yes" >&6 | |
6230 | else | |
6231 | echo "$as_me:$LINENO: result: no" >&5 | |
6232 | echo "${ECHO_T}no" >&6 | |
6233 | fi | |
6234 | ||
6235 | ||
6236 | enablestring= | |
6237 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
6238 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
6239 | no_cache=0 | |
6240 | # Check whether --enable-unicode or --disable-unicode was given. | |
6241 | if test "${enable_unicode+set}" = set; then | |
6242 | enableval="$enable_unicode" | |
6243 | ||
6244 | if test "$enableval" = yes; then | |
6245 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
6246 | else | |
6247 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
6248 | fi | |
6249 | ||
6250 | else | |
6251 | ||
6252 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
6253 | if test "x$LINE" != x ; then | |
6254 | eval "DEFAULT_$LINE" | |
6255 | else | |
6256 | no_cache=1 | |
6257 | fi | |
6258 | ||
6259 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
6260 | ||
6261 | fi; | |
6262 | ||
6263 | eval "$ac_cv_use_unicode" | |
6264 | if test "$no_cache" != 1; then | |
6265 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6266 | fi | |
6267 | ||
6268 | if test "$wxUSE_UNICODE" = yes; then | |
6269 | echo "$as_me:$LINENO: result: yes" >&5 | |
6270 | echo "${ECHO_T}yes" >&6 | |
6271 | else | |
6272 | echo "$as_me:$LINENO: result: no" >&5 | |
6273 | echo "${ECHO_T}no" >&6 | |
6274 | fi | |
6275 | ||
6276 | ||
6277 | enablestring= | |
6278 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6279 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6280 | no_cache=0 | |
6281 | # Check whether --enable-sound or --disable-sound was given. | |
6282 | if test "${enable_sound+set}" = set; then | |
6283 | enableval="$enable_sound" | |
6284 | ||
6285 | if test "$enableval" = yes; then | |
6286 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6287 | else | |
6288 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6289 | fi | |
6290 | ||
6291 | else | |
6292 | ||
6293 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6294 | if test "x$LINE" != x ; then | |
6295 | eval "DEFAULT_$LINE" | |
6296 | else | |
6297 | no_cache=1 | |
6298 | fi | |
6299 | ||
6300 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6301 | ||
6302 | fi; | |
6303 | ||
6304 | eval "$ac_cv_use_sound" | |
6305 | if test "$no_cache" != 1; then | |
6306 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6307 | fi | |
6308 | ||
6309 | if test "$wxUSE_SOUND" = yes; then | |
6310 | echo "$as_me:$LINENO: result: yes" >&5 | |
6311 | echo "${ECHO_T}yes" >&6 | |
6312 | else | |
6313 | echo "$as_me:$LINENO: result: no" >&5 | |
6314 | echo "${ECHO_T}no" >&6 | |
6315 | fi | |
6316 | ||
6317 | ||
3b57de8b RL |
6318 | enablestring= |
6319 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6320 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6321 | no_cache=0 | |
6322 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6323 | if test "${enable_mediactrl+set}" = set; then | |
6324 | enableval="$enable_mediactrl" | |
6325 | ||
6326 | if test "$enableval" = yes; then | |
6327 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6328 | else | |
6329 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6330 | fi | |
6331 | ||
6332 | else | |
6333 | ||
6334 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6335 | if test "x$LINE" != x ; then | |
6336 | eval "DEFAULT_$LINE" | |
6337 | else | |
6338 | no_cache=1 | |
6339 | fi | |
6340 | ||
6341 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6342 | ||
6343 | fi; | |
6344 | ||
6345 | eval "$ac_cv_use_mediactrl" | |
6346 | if test "$no_cache" != 1; then | |
6347 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6348 | fi | |
6349 | ||
6350 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6351 | echo "$as_me:$LINENO: result: yes" >&5 | |
6352 | echo "${ECHO_T}yes" >&6 | |
6353 | else | |
6354 | echo "$as_me:$LINENO: result: no" >&5 | |
6355 | echo "${ECHO_T}no" >&6 | |
6356 | fi | |
6357 | ||
6358 | ||
f10e38c4 VZ |
6359 | enablestring= |
6360 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5 | |
6361 | echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6 | |
6362 | no_cache=0 | |
6363 | # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given. | |
6364 | if test "${enable_gstreamer8+set}" = set; then | |
6365 | enableval="$enable_gstreamer8" | |
6366 | ||
6367 | if test "$enableval" = yes; then | |
6368 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes' | |
6369 | else | |
6370 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no' | |
6371 | fi | |
6372 | ||
6373 | else | |
6374 | ||
6375 | LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}` | |
6376 | if test "x$LINE" != x ; then | |
6377 | eval "DEFAULT_$LINE" | |
6378 | else | |
6379 | no_cache=1 | |
6380 | fi | |
6381 | ||
6382 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8 | |
6383 | ||
6384 | fi; | |
6385 | ||
6386 | eval "$ac_cv_use_gstreamer8" | |
6387 | if test "$no_cache" != 1; then | |
6388 | echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp | |
6389 | fi | |
6390 | ||
6391 | if test "$wxUSE_GSTREAMER8" = yes; then | |
6392 | echo "$as_me:$LINENO: result: yes" >&5 | |
6393 | echo "${ECHO_T}yes" >&6 | |
6394 | else | |
6395 | echo "$as_me:$LINENO: result: no" >&5 | |
6396 | echo "${ECHO_T}no" >&6 | |
6397 | fi | |
6398 | ||
6399 | ||
a848cd7e | 6400 | enablestring= |
8b6682b9 JS |
6401 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5 |
6402 | echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6 | |
a848cd7e | 6403 | no_cache=0 |
8b6682b9 JS |
6404 | # Check whether --enable-printfposparam or --disable-printfposparam was given. |
6405 | if test "${enable_printfposparam+set}" = set; then | |
6406 | enableval="$enable_printfposparam" | |
a848cd7e SC |
6407 | |
6408 | if test "$enableval" = yes; then | |
8b6682b9 | 6409 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes' |
a848cd7e | 6410 | else |
8b6682b9 | 6411 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no' |
a848cd7e SC |
6412 | fi |
6413 | ||
6414 | else | |
6415 | ||
8b6682b9 | 6416 | LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}` |
a848cd7e SC |
6417 | if test "x$LINE" != x ; then |
6418 | eval "DEFAULT_$LINE" | |
6419 | else | |
6420 | no_cache=1 | |
6421 | fi | |
6422 | ||
8b6682b9 | 6423 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS |
a848cd7e SC |
6424 | |
6425 | fi; | |
6426 | ||
8b6682b9 | 6427 | eval "$ac_cv_use_printfposparam" |
a848cd7e | 6428 | if test "$no_cache" != 1; then |
8b6682b9 | 6429 | echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
6430 | fi |
6431 | ||
8b6682b9 | 6432 | if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then |
a848cd7e SC |
6433 | echo "$as_me:$LINENO: result: yes" >&5 |
6434 | echo "${ECHO_T}yes" >&6 | |
6435 | else | |
6436 | echo "$as_me:$LINENO: result: no" >&5 | |
6437 | echo "${ECHO_T}no" >&6 | |
6438 | fi | |
6439 | ||
6440 | ||
6441 | enablestring= | |
6442 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6443 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6444 | no_cache=0 | |
6445 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6446 | if test "${enable_zipstream+set}" = set; then | |
6447 | enableval="$enable_zipstream" | |
6448 | ||
6449 | if test "$enableval" = yes; then | |
6450 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6451 | else | |
6452 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6453 | fi | |
6454 | ||
6455 | else | |
6456 | ||
6457 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6458 | if test "x$LINE" != x ; then | |
6459 | eval "DEFAULT_$LINE" | |
6460 | else | |
6461 | no_cache=1 | |
6462 | fi | |
6463 | ||
6464 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6465 | ||
6466 | fi; | |
6467 | ||
6468 | eval "$ac_cv_use_zipstream" | |
6469 | if test "$no_cache" != 1; then | |
6470 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6471 | fi | |
6472 | ||
6473 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6474 | echo "$as_me:$LINENO: result: yes" >&5 | |
6475 | echo "${ECHO_T}yes" >&6 | |
6476 | else | |
6477 | echo "$as_me:$LINENO: result: no" >&5 | |
6478 | echo "${ECHO_T}no" >&6 | |
6479 | fi | |
6480 | ||
6481 | ||
a848cd7e SC |
6482 | |
6483 | enablestring= | |
6484 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6485 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6486 | no_cache=0 | |
6487 | # Check whether --enable-url or --disable-url was given. | |
6488 | if test "${enable_url+set}" = set; then | |
6489 | enableval="$enable_url" | |
6490 | ||
6491 | if test "$enableval" = yes; then | |
6492 | ac_cv_use_url='wxUSE_URL=yes' | |
6493 | else | |
6494 | ac_cv_use_url='wxUSE_URL=no' | |
6495 | fi | |
6496 | ||
6497 | else | |
6498 | ||
6499 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6500 | if test "x$LINE" != x ; then | |
6501 | eval "DEFAULT_$LINE" | |
6502 | else | |
6503 | no_cache=1 | |
6504 | fi | |
6505 | ||
6506 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6507 | ||
6508 | fi; | |
6509 | ||
6510 | eval "$ac_cv_use_url" | |
6511 | if test "$no_cache" != 1; then | |
6512 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6513 | fi | |
6514 | ||
6515 | if test "$wxUSE_URL" = yes; then | |
6516 | echo "$as_me:$LINENO: result: yes" >&5 | |
6517 | echo "${ECHO_T}yes" >&6 | |
6518 | else | |
6519 | echo "$as_me:$LINENO: result: no" >&5 | |
6520 | echo "${ECHO_T}no" >&6 | |
6521 | fi | |
6522 | ||
6523 | ||
6524 | enablestring= | |
6525 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6526 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6527 | no_cache=0 | |
6528 | # Check whether --enable-protocol or --disable-protocol was given. | |
6529 | if test "${enable_protocol+set}" = set; then | |
6530 | enableval="$enable_protocol" | |
6531 | ||
6532 | if test "$enableval" = yes; then | |
6533 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6534 | else | |
6535 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6536 | fi | |
6537 | ||
6538 | else | |
6539 | ||
6540 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6541 | if test "x$LINE" != x ; then | |
6542 | eval "DEFAULT_$LINE" | |
6543 | else | |
6544 | no_cache=1 | |
6545 | fi | |
6546 | ||
6547 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6548 | ||
6549 | fi; | |
6550 | ||
6551 | eval "$ac_cv_use_protocol" | |
6552 | if test "$no_cache" != 1; then | |
6553 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6554 | fi | |
6555 | ||
6556 | if test "$wxUSE_PROTOCOL" = yes; then | |
6557 | echo "$as_me:$LINENO: result: yes" >&5 | |
6558 | echo "${ECHO_T}yes" >&6 | |
6559 | else | |
6560 | echo "$as_me:$LINENO: result: no" >&5 | |
6561 | echo "${ECHO_T}no" >&6 | |
6562 | fi | |
6563 | ||
6564 | ||
6565 | enablestring= | |
6566 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6567 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6568 | no_cache=0 | |
6569 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6570 | if test "${enable_protocol_http+set}" = set; then | |
6571 | enableval="$enable_protocol_http" | |
6572 | ||
6573 | if test "$enableval" = yes; then | |
6574 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6575 | else | |
6576 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6577 | fi | |
6578 | ||
6579 | else | |
6580 | ||
6581 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6582 | if test "x$LINE" != x ; then | |
6583 | eval "DEFAULT_$LINE" | |
6584 | else | |
6585 | no_cache=1 | |
6586 | fi | |
6587 | ||
6588 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6589 | ||
6590 | fi; | |
6591 | ||
6592 | eval "$ac_cv_use_protocol_http" | |
6593 | if test "$no_cache" != 1; then | |
6594 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6595 | fi | |
6596 | ||
6597 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6598 | echo "$as_me:$LINENO: result: yes" >&5 | |
6599 | echo "${ECHO_T}yes" >&6 | |
6600 | else | |
6601 | echo "$as_me:$LINENO: result: no" >&5 | |
6602 | echo "${ECHO_T}no" >&6 | |
6603 | fi | |
6604 | ||
6605 | ||
6606 | enablestring= | |
6607 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6608 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6609 | no_cache=0 | |
6610 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6611 | if test "${enable_protocol_ftp+set}" = set; then | |
6612 | enableval="$enable_protocol_ftp" | |
6613 | ||
6614 | if test "$enableval" = yes; then | |
6615 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6616 | else | |
6617 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6618 | fi | |
6619 | ||
6620 | else | |
6621 | ||
6622 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6623 | if test "x$LINE" != x ; then | |
6624 | eval "DEFAULT_$LINE" | |
6625 | else | |
6626 | no_cache=1 | |
6627 | fi | |
6628 | ||
6629 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6630 | ||
6631 | fi; | |
6632 | ||
6633 | eval "$ac_cv_use_protocol_ftp" | |
6634 | if test "$no_cache" != 1; then | |
6635 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6636 | fi | |
6637 | ||
6638 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6639 | echo "$as_me:$LINENO: result: yes" >&5 | |
6640 | echo "${ECHO_T}yes" >&6 | |
6641 | else | |
6642 | echo "$as_me:$LINENO: result: no" >&5 | |
6643 | echo "${ECHO_T}no" >&6 | |
6644 | fi | |
6645 | ||
6646 | ||
6647 | enablestring= | |
6648 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6649 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6650 | no_cache=0 | |
6651 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6652 | if test "${enable_protocol_file+set}" = set; then | |
6653 | enableval="$enable_protocol_file" | |
6654 | ||
6655 | if test "$enableval" = yes; then | |
6656 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6657 | else | |
6658 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6659 | fi | |
6660 | ||
6661 | else | |
6662 | ||
6663 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6664 | if test "x$LINE" != x ; then | |
6665 | eval "DEFAULT_$LINE" | |
6666 | else | |
6667 | no_cache=1 | |
6668 | fi | |
6669 | ||
6670 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6671 | ||
6672 | fi; | |
6673 | ||
6674 | eval "$ac_cv_use_protocol_file" | |
6675 | if test "$no_cache" != 1; then | |
6676 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6677 | fi | |
6678 | ||
6679 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6680 | echo "$as_me:$LINENO: result: yes" >&5 | |
6681 | echo "${ECHO_T}yes" >&6 | |
6682 | else | |
6683 | echo "$as_me:$LINENO: result: no" >&5 | |
6684 | echo "${ECHO_T}no" >&6 | |
6685 | fi | |
6686 | ||
6687 | ||
6688 | ||
6689 | ||
6690 | ||
6691 | enablestring= | |
6692 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6693 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6694 | no_cache=0 | |
6695 | # Check whether --enable-threads or --disable-threads was given. | |
6696 | if test "${enable_threads+set}" = set; then | |
6697 | enableval="$enable_threads" | |
6698 | ||
6699 | if test "$enableval" = yes; then | |
6700 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6701 | else | |
6702 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6703 | fi | |
6704 | ||
6705 | else | |
6706 | ||
6707 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6708 | if test "x$LINE" != x ; then | |
6709 | eval "DEFAULT_$LINE" | |
6710 | else | |
6711 | no_cache=1 | |
6712 | fi | |
6713 | ||
6714 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6715 | ||
6716 | fi; | |
6717 | ||
6718 | eval "$ac_cv_use_threads" | |
6719 | if test "$no_cache" != 1; then | |
6720 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6721 | fi | |
6722 | ||
6723 | if test "$wxUSE_THREADS" = yes; then | |
6724 | echo "$as_me:$LINENO: result: yes" >&5 | |
6725 | echo "${ECHO_T}yes" >&6 | |
6726 | else | |
6727 | echo "$as_me:$LINENO: result: no" >&5 | |
6728 | echo "${ECHO_T}no" >&6 | |
6729 | fi | |
6730 | ||
6731 | ||
6732 | if test "$wxUSE_GUI" = "yes"; then | |
6733 | ||
6734 | ||
6735 | ||
6736 | enablestring= | |
6737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6738 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6739 | no_cache=0 | |
6740 | # Check whether --enable-docview or --disable-docview was given. | |
6741 | if test "${enable_docview+set}" = set; then | |
6742 | enableval="$enable_docview" | |
6743 | ||
6744 | if test "$enableval" = yes; then | |
6745 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6746 | else | |
6747 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6748 | fi | |
6749 | ||
6750 | else | |
6751 | ||
6752 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6753 | if test "x$LINE" != x ; then | |
6754 | eval "DEFAULT_$LINE" | |
6755 | else | |
6756 | no_cache=1 | |
6757 | fi | |
6758 | ||
6759 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6760 | ||
6761 | fi; | |
6762 | ||
6763 | eval "$ac_cv_use_docview" | |
6764 | if test "$no_cache" != 1; then | |
6765 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6766 | fi | |
6767 | ||
6768 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6769 | echo "$as_me:$LINENO: result: yes" >&5 | |
6770 | echo "${ECHO_T}yes" >&6 | |
6771 | else | |
6772 | echo "$as_me:$LINENO: result: no" >&5 | |
6773 | echo "${ECHO_T}no" >&6 | |
6774 | fi | |
6775 | ||
6776 | ||
6777 | enablestring= | |
6778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6779 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6780 | no_cache=0 | |
6781 | # Check whether --enable-help or --disable-help was given. | |
6782 | if test "${enable_help+set}" = set; then | |
6783 | enableval="$enable_help" | |
6784 | ||
6785 | if test "$enableval" = yes; then | |
6786 | ac_cv_use_help='wxUSE_HELP=yes' | |
6787 | else | |
6788 | ac_cv_use_help='wxUSE_HELP=no' | |
6789 | fi | |
6790 | ||
6791 | else | |
6792 | ||
6793 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6794 | if test "x$LINE" != x ; then | |
6795 | eval "DEFAULT_$LINE" | |
6796 | else | |
6797 | no_cache=1 | |
6798 | fi | |
6799 | ||
6800 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6801 | ||
6802 | fi; | |
6803 | ||
6804 | eval "$ac_cv_use_help" | |
6805 | if test "$no_cache" != 1; then | |
6806 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6807 | fi | |
6808 | ||
6809 | if test "$wxUSE_HELP" = yes; then | |
6810 | echo "$as_me:$LINENO: result: yes" >&5 | |
6811 | echo "${ECHO_T}yes" >&6 | |
6812 | else | |
6813 | echo "$as_me:$LINENO: result: no" >&5 | |
6814 | echo "${ECHO_T}no" >&6 | |
6815 | fi | |
6816 | ||
6817 | ||
6818 | enablestring= | |
6819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6820 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6821 | no_cache=0 | |
6822 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6823 | if test "${enable_mshtmlhelp+set}" = set; then | |
6824 | enableval="$enable_mshtmlhelp" | |
6825 | ||
6826 | if test "$enableval" = yes; then | |
6827 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6828 | else | |
6829 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6830 | fi | |
6831 | ||
6832 | else | |
6833 | ||
6834 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6835 | if test "x$LINE" != x ; then | |
6836 | eval "DEFAULT_$LINE" | |
6837 | else | |
6838 | no_cache=1 | |
6839 | fi | |
6840 | ||
6841 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6842 | ||
6843 | fi; | |
6844 | ||
6845 | eval "$ac_cv_use_mshtmlhelp" | |
6846 | if test "$no_cache" != 1; then | |
6847 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6848 | fi | |
6849 | ||
6850 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6851 | echo "$as_me:$LINENO: result: yes" >&5 | |
6852 | echo "${ECHO_T}yes" >&6 | |
6853 | else | |
6854 | echo "$as_me:$LINENO: result: no" >&5 | |
6855 | echo "${ECHO_T}no" >&6 | |
6856 | fi | |
6857 | ||
6858 | ||
6859 | enablestring= | |
6860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6861 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6862 | no_cache=0 | |
6863 | # Check whether --enable-html or --disable-html was given. | |
6864 | if test "${enable_html+set}" = set; then | |
6865 | enableval="$enable_html" | |
6866 | ||
6867 | if test "$enableval" = yes; then | |
6868 | ac_cv_use_html='wxUSE_HTML=yes' | |
6869 | else | |
6870 | ac_cv_use_html='wxUSE_HTML=no' | |
6871 | fi | |
6872 | ||
6873 | else | |
6874 | ||
6875 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6876 | if test "x$LINE" != x ; then | |
6877 | eval "DEFAULT_$LINE" | |
6878 | else | |
6879 | no_cache=1 | |
6880 | fi | |
6881 | ||
6882 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6883 | ||
6884 | fi; | |
6885 | ||
6886 | eval "$ac_cv_use_html" | |
6887 | if test "$no_cache" != 1; then | |
6888 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6889 | fi | |
6890 | ||
6891 | if test "$wxUSE_HTML" = yes; then | |
6892 | echo "$as_me:$LINENO: result: yes" >&5 | |
6893 | echo "${ECHO_T}yes" >&6 | |
6894 | else | |
6895 | echo "$as_me:$LINENO: result: no" >&5 | |
6896 | echo "${ECHO_T}no" >&6 | |
6897 | fi | |
6898 | ||
6899 | ||
6900 | enablestring= | |
6901 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6902 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6903 | no_cache=0 | |
6904 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6905 | if test "${enable_htmlhelp+set}" = set; then | |
6906 | enableval="$enable_htmlhelp" | |
6907 | ||
6908 | if test "$enableval" = yes; then | |
6909 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6910 | else | |
6911 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6912 | fi | |
6913 | ||
6914 | else | |
6915 | ||
6916 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6917 | if test "x$LINE" != x ; then | |
6918 | eval "DEFAULT_$LINE" | |
6919 | else | |
6920 | no_cache=1 | |
6921 | fi | |
6922 | ||
6923 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6924 | ||
6925 | fi; | |
6926 | ||
6927 | eval "$ac_cv_use_htmlhelp" | |
6928 | if test "$no_cache" != 1; then | |
6929 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6930 | fi | |
6931 | ||
6932 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6933 | echo "$as_me:$LINENO: result: yes" >&5 | |
6934 | echo "${ECHO_T}yes" >&6 | |
6935 | else | |
6936 | echo "$as_me:$LINENO: result: no" >&5 | |
6937 | echo "${ECHO_T}no" >&6 | |
6938 | fi | |
6939 | ||
6940 | ||
9a8f0513 VS |
6941 | enablestring= |
6942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6943 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6944 | no_cache=0 | |
6945 | # Check whether --enable-xrc or --disable-xrc was given. | |
6946 | if test "${enable_xrc+set}" = set; then | |
6947 | enableval="$enable_xrc" | |
6948 | ||
6949 | if test "$enableval" = yes; then | |
6950 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6951 | else | |
6952 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6953 | fi | |
6954 | ||
6955 | else | |
6956 | ||
6957 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6958 | if test "x$LINE" != x ; then | |
6959 | eval "DEFAULT_$LINE" | |
6960 | else | |
6961 | no_cache=1 | |
6962 | fi | |
6963 | ||
6964 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6965 | ||
6966 | fi; | |
6967 | ||
6968 | eval "$ac_cv_use_xrc" | |
6969 | if test "$no_cache" != 1; then | |
6970 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6971 | fi | |
6972 | ||
6973 | if test "$wxUSE_XRC" = yes; then | |
6974 | echo "$as_me:$LINENO: result: yes" >&5 | |
6975 | echo "${ECHO_T}yes" >&6 | |
6976 | else | |
6977 | echo "$as_me:$LINENO: result: no" >&5 | |
6978 | echo "${ECHO_T}no" >&6 | |
6979 | fi | |
6980 | ||
6981 | ||
3f60522a JS |
6982 | enablestring= |
6983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5 | |
6984 | echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6 | |
6985 | no_cache=0 | |
6986 | # Check whether --enable-aui or --disable-aui was given. | |
6987 | if test "${enable_aui+set}" = set; then | |
6988 | enableval="$enable_aui" | |
6989 | ||
6990 | if test "$enableval" = yes; then | |
6991 | ac_cv_use_aui='wxUSE_AUI=yes' | |
6992 | else | |
6993 | ac_cv_use_aui='wxUSE_AUI=no' | |
6994 | fi | |
6995 | ||
6996 | else | |
6997 | ||
6998 | LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}` | |
6999 | if test "x$LINE" != x ; then | |
7000 | eval "DEFAULT_$LINE" | |
7001 | else | |
7002 | no_cache=1 | |
7003 | fi | |
7004 | ||
7005 | ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI | |
7006 | ||
7007 | fi; | |
7008 | ||
7009 | eval "$ac_cv_use_aui" | |
7010 | if test "$no_cache" != 1; then | |
7011 | echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp | |
7012 | fi | |
7013 | ||
7014 | if test "$wxUSE_AUI" = yes; then | |
7015 | echo "$as_me:$LINENO: result: yes" >&5 | |
7016 | echo "${ECHO_T}yes" >&6 | |
7017 | else | |
7018 | echo "$as_me:$LINENO: result: no" >&5 | |
7019 | echo "${ECHO_T}no" >&6 | |
7020 | fi | |
7021 | ||
7022 | ||
a848cd7e SC |
7023 | enablestring= |
7024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
7025 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
7026 | no_cache=0 | |
7027 | # Check whether --enable-constraints or --disable-constraints was given. | |
7028 | if test "${enable_constraints+set}" = set; then | |
7029 | enableval="$enable_constraints" | |
7030 | ||
7031 | if test "$enableval" = yes; then | |
7032 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
7033 | else | |
7034 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
7035 | fi | |
7036 | ||
7037 | else | |
7038 | ||
7039 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
7040 | if test "x$LINE" != x ; then | |
7041 | eval "DEFAULT_$LINE" | |
7042 | else | |
7043 | no_cache=1 | |
7044 | fi | |
7045 | ||
7046 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
7047 | ||
7048 | fi; | |
7049 | ||
7050 | eval "$ac_cv_use_constraints" | |
7051 | if test "$no_cache" != 1; then | |
7052 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
7053 | fi | |
7054 | ||
7055 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
7056 | echo "$as_me:$LINENO: result: yes" >&5 | |
7057 | echo "${ECHO_T}yes" >&6 | |
7058 | else | |
7059 | echo "$as_me:$LINENO: result: no" >&5 | |
7060 | echo "${ECHO_T}no" >&6 | |
7061 | fi | |
7062 | ||
7063 | ||
7064 | enablestring= | |
7065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
7066 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
7067 | no_cache=0 | |
7068 | # Check whether --enable-printarch or --disable-printarch was given. | |
7069 | if test "${enable_printarch+set}" = set; then | |
7070 | enableval="$enable_printarch" | |
7071 | ||
7072 | if test "$enableval" = yes; then | |
7073 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
7074 | else | |
7075 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
7076 | fi | |
7077 | ||
7078 | else | |
7079 | ||
7080 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
7081 | if test "x$LINE" != x ; then | |
7082 | eval "DEFAULT_$LINE" | |
7083 | else | |
7084 | no_cache=1 | |
7085 | fi | |
7086 | ||
7087 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
7088 | ||
7089 | fi; | |
7090 | ||
7091 | eval "$ac_cv_use_printarch" | |
7092 | if test "$no_cache" != 1; then | |
7093 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
7094 | fi | |
7095 | ||
7096 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
7097 | echo "$as_me:$LINENO: result: yes" >&5 | |
7098 | echo "${ECHO_T}yes" >&6 | |
7099 | else | |
7100 | echo "$as_me:$LINENO: result: no" >&5 | |
7101 | echo "${ECHO_T}no" >&6 | |
7102 | fi | |
7103 | ||
7104 | ||
7105 | enablestring= | |
7106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
7107 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
7108 | no_cache=0 | |
7109 | # Check whether --enable-mdi or --disable-mdi was given. | |
7110 | if test "${enable_mdi+set}" = set; then | |
7111 | enableval="$enable_mdi" | |
7112 | ||
7113 | if test "$enableval" = yes; then | |
8a7b1113 | 7114 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 7115 | else |
8a7b1113 | 7116 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
7117 | fi |
7118 | ||
7119 | else | |
7120 | ||
8a7b1113 | 7121 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
7122 | if test "x$LINE" != x ; then |
7123 | eval "DEFAULT_$LINE" | |
7124 | else | |
7125 | no_cache=1 | |
7126 | fi | |
7127 | ||
8a7b1113 | 7128 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
7129 | |
7130 | fi; | |
7131 | ||
7132 | eval "$ac_cv_use_mdi" | |
7133 | if test "$no_cache" != 1; then | |
7134 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
7135 | fi | |
7136 | ||
8a7b1113 VZ |
7137 | if test "$wxUSE_MDI" = yes; then |
7138 | echo "$as_me:$LINENO: result: yes" >&5 | |
7139 | echo "${ECHO_T}yes" >&6 | |
7140 | else | |
7141 | echo "$as_me:$LINENO: result: no" >&5 | |
7142 | echo "${ECHO_T}no" >&6 | |
7143 | fi | |
7144 | ||
7145 | ||
7146 | enablestring= | |
7147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
7148 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
7149 | no_cache=0 | |
7150 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
7151 | if test "${enable_mdidoc+set}" = set; then | |
7152 | enableval="$enable_mdidoc" | |
7153 | ||
7154 | if test "$enableval" = yes; then | |
7155 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
7156 | else | |
7157 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
7158 | fi | |
7159 | ||
7160 | else | |
7161 | ||
7162 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
7163 | if test "x$LINE" != x ; then | |
7164 | eval "DEFAULT_$LINE" | |
7165 | else | |
7166 | no_cache=1 | |
7167 | fi | |
7168 | ||
7169 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
7170 | ||
7171 | fi; | |
7172 | ||
7173 | eval "$ac_cv_use_mdidoc" | |
7174 | if test "$no_cache" != 1; then | |
7175 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
7176 | fi | |
7177 | ||
a848cd7e SC |
7178 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
7179 | echo "$as_me:$LINENO: result: yes" >&5 | |
7180 | echo "${ECHO_T}yes" >&6 | |
7181 | else | |
7182 | echo "$as_me:$LINENO: result: no" >&5 | |
7183 | echo "${ECHO_T}no" >&6 | |
7184 | fi | |
7185 | ||
7186 | ||
7187 | enablestring= | |
7188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
7189 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
7190 | no_cache=0 | |
7191 | # Check whether --enable-loggui or --disable-loggui was given. | |
7192 | if test "${enable_loggui+set}" = set; then | |
7193 | enableval="$enable_loggui" | |
7194 | ||
7195 | if test "$enableval" = yes; then | |
7196 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
7197 | else | |
7198 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
7199 | fi | |
7200 | ||
7201 | else | |
7202 | ||
7203 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
7204 | if test "x$LINE" != x ; then | |
7205 | eval "DEFAULT_$LINE" | |
7206 | else | |
7207 | no_cache=1 | |
7208 | fi | |
7209 | ||
7210 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
7211 | ||
7212 | fi; | |
7213 | ||
7214 | eval "$ac_cv_use_loggui" | |
7215 | if test "$no_cache" != 1; then | |
7216 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
7217 | fi | |
7218 | ||
7219 | if test "$wxUSE_LOGGUI" = yes; then | |
7220 | echo "$as_me:$LINENO: result: yes" >&5 | |
7221 | echo "${ECHO_T}yes" >&6 | |
7222 | else | |
7223 | echo "$as_me:$LINENO: result: no" >&5 | |
7224 | echo "${ECHO_T}no" >&6 | |
7225 | fi | |
7226 | ||
7227 | ||
7228 | enablestring= | |
7229 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
7230 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
7231 | no_cache=0 | |
7232 | # Check whether --enable-logwin or --disable-logwin was given. | |
7233 | if test "${enable_logwin+set}" = set; then | |
7234 | enableval="$enable_logwin" | |
7235 | ||
7236 | if test "$enableval" = yes; then | |
7237 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
7238 | else | |
7239 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
7240 | fi | |
7241 | ||
7242 | else | |
7243 | ||
7244 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
7245 | if test "x$LINE" != x ; then | |
7246 | eval "DEFAULT_$LINE" | |
7247 | else | |
7248 | no_cache=1 | |
7249 | fi | |
7250 | ||
7251 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
7252 | ||
7253 | fi; | |
7254 | ||
7255 | eval "$ac_cv_use_logwin" | |
7256 | if test "$no_cache" != 1; then | |
7257 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
7258 | fi | |
7259 | ||
7260 | if test "$wxUSE_LOGWINDOW" = yes; then | |
7261 | echo "$as_me:$LINENO: result: yes" >&5 | |
7262 | echo "${ECHO_T}yes" >&6 | |
7263 | else | |
7264 | echo "$as_me:$LINENO: result: no" >&5 | |
7265 | echo "${ECHO_T}no" >&6 | |
7266 | fi | |
7267 | ||
7268 | ||
7269 | enablestring= | |
7270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
7271 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
7272 | no_cache=0 | |
7273 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
7274 | if test "${enable_logdialog+set}" = set; then | |
7275 | enableval="$enable_logdialog" | |
7276 | ||
7277 | if test "$enableval" = yes; then | |
7278 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
7279 | else | |
7280 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
7281 | fi | |
7282 | ||
7283 | else | |
7284 | ||
7285 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
7286 | if test "x$LINE" != x ; then | |
7287 | eval "DEFAULT_$LINE" | |
7288 | else | |
7289 | no_cache=1 | |
7290 | fi | |
7291 | ||
7292 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
7293 | ||
7294 | fi; | |
7295 | ||
7296 | eval "$ac_cv_use_logdialog" | |
7297 | if test "$no_cache" != 1; then | |
7298 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
7299 | fi | |
7300 | ||
7301 | if test "$wxUSE_LOGDIALOG" = yes; then | |
7302 | echo "$as_me:$LINENO: result: yes" >&5 | |
7303 | echo "${ECHO_T}yes" >&6 | |
7304 | else | |
7305 | echo "$as_me:$LINENO: result: no" >&5 | |
7306 | echo "${ECHO_T}no" >&6 | |
7307 | fi | |
7308 | ||
7309 | ||
646b6ec1 VS |
7310 | enablestring= |
7311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
7312 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
7313 | no_cache=0 | |
7314 | # Check whether --enable-webkit or --disable-webkit was given. | |
7315 | if test "${enable_webkit+set}" = set; then | |
7316 | enableval="$enable_webkit" | |
7317 | ||
7318 | if test "$enableval" = yes; then | |
7319 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
7320 | else | |
7321 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
7322 | fi | |
7323 | ||
7324 | else | |
7325 | ||
7326 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
7327 | if test "x$LINE" != x ; then | |
7328 | eval "DEFAULT_$LINE" | |
7329 | else | |
7330 | no_cache=1 | |
7331 | fi | |
7332 | ||
7333 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
7334 | ||
7335 | fi; | |
7336 | ||
7337 | eval "$ac_cv_use_webkit" | |
7338 | if test "$no_cache" != 1; then | |
7339 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
7340 | fi | |
7341 | ||
7342 | if test "$wxUSE_WEBKIT" = yes; then | |
7343 | echo "$as_me:$LINENO: result: yes" >&5 | |
7344 | echo "${ECHO_T}yes" >&6 | |
7345 | else | |
7346 | echo "$as_me:$LINENO: result: no" >&5 | |
7347 | echo "${ECHO_T}no" >&6 | |
7348 | fi | |
7349 | ||
7350 | ||
91dea314 MW |
7351 | enablestring= |
7352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
7353 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
7354 | no_cache=0 | |
7355 | # Check whether --enable-html or --disable-html was given. | |
7356 | if test "${enable_html+set}" = set; then | |
7357 | enableval="$enable_html" | |
7358 | ||
7359 | if test "$enableval" = yes; then | |
7360 | ac_cv_use_html='wxUSE_RICHTEXT=yes' | |
7361 | else | |
7362 | ac_cv_use_html='wxUSE_RICHTEXT=no' | |
7363 | fi | |
7364 | ||
7365 | else | |
7366 | ||
7367 | LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}` | |
7368 | if test "x$LINE" != x ; then | |
7369 | eval "DEFAULT_$LINE" | |
7370 | else | |
7371 | no_cache=1 | |
7372 | fi | |
7373 | ||
7374 | ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT | |
7375 | ||
7376 | fi; | |
7377 | ||
7378 | eval "$ac_cv_use_html" | |
7379 | if test "$no_cache" != 1; then | |
7380 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
7381 | fi | |
7382 | ||
7383 | if test "$wxUSE_RICHTEXT" = yes; then | |
7384 | echo "$as_me:$LINENO: result: yes" >&5 | |
7385 | echo "${ECHO_T}yes" >&6 | |
7386 | else | |
7387 | echo "$as_me:$LINENO: result: no" >&5 | |
7388 | echo "${ECHO_T}no" >&6 | |
7389 | fi | |
7390 | ||
7391 | ||
a848cd7e SC |
7392 | |
7393 | enablestring= | |
7394 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7395 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7396 | no_cache=0 | |
7397 | # Check whether --enable-postscript or --disable-postscript was given. | |
7398 | if test "${enable_postscript+set}" = set; then | |
7399 | enableval="$enable_postscript" | |
7400 | ||
7401 | if test "$enableval" = yes; then | |
7402 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7403 | else | |
7404 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7405 | fi | |
7406 | ||
7407 | else | |
7408 | ||
7409 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7410 | if test "x$LINE" != x ; then | |
7411 | eval "DEFAULT_$LINE" | |
7412 | else | |
7413 | no_cache=1 | |
7414 | fi | |
7415 | ||
7416 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7417 | ||
7418 | fi; | |
7419 | ||
7420 | eval "$ac_cv_use_postscript" | |
7421 | if test "$no_cache" != 1; then | |
7422 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7423 | fi | |
7424 | ||
7425 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7426 | echo "$as_me:$LINENO: result: yes" >&5 | |
7427 | echo "${ECHO_T}yes" >&6 | |
7428 | else | |
7429 | echo "$as_me:$LINENO: result: no" >&5 | |
7430 | echo "${ECHO_T}no" >&6 | |
7431 | fi | |
7432 | ||
7433 | ||
7434 | ||
7435 | ||
7436 | ||
7437 | enablestring= | |
7438 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7439 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7440 | no_cache=0 | |
7441 | # Check whether --enable-prologio or --disable-prologio was given. | |
7442 | if test "${enable_prologio+set}" = set; then | |
7443 | enableval="$enable_prologio" | |
7444 | ||
7445 | if test "$enableval" = yes; then | |
7446 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7447 | else | |
7448 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7449 | fi | |
7450 | ||
7451 | else | |
7452 | ||
7453 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7454 | if test "x$LINE" != x ; then | |
7455 | eval "DEFAULT_$LINE" | |
7456 | else | |
7457 | no_cache=1 | |
7458 | fi | |
7459 | ||
7460 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7461 | ||
7462 | fi; | |
7463 | ||
7464 | eval "$ac_cv_use_prologio" | |
7465 | if test "$no_cache" != 1; then | |
7466 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7467 | fi | |
7468 | ||
7469 | if test "$wxUSE_PROLOGIO" = yes; then | |
7470 | echo "$as_me:$LINENO: result: yes" >&5 | |
7471 | echo "${ECHO_T}yes" >&6 | |
7472 | else | |
7473 | echo "$as_me:$LINENO: result: no" >&5 | |
7474 | echo "${ECHO_T}no" >&6 | |
7475 | fi | |
7476 | ||
7477 | ||
7478 | enablestring= | |
7479 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7480 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7481 | no_cache=0 | |
7482 | # Check whether --enable-resources or --disable-resources was given. | |
7483 | if test "${enable_resources+set}" = set; then | |
7484 | enableval="$enable_resources" | |
7485 | ||
7486 | if test "$enableval" = yes; then | |
7487 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7488 | else | |
7489 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7490 | fi | |
7491 | ||
7492 | else | |
7493 | ||
7494 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7495 | if test "x$LINE" != x ; then | |
7496 | eval "DEFAULT_$LINE" | |
7497 | else | |
7498 | no_cache=1 | |
7499 | fi | |
7500 | ||
7501 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7502 | ||
7503 | fi; | |
7504 | ||
7505 | eval "$ac_cv_use_resources" | |
7506 | if test "$no_cache" != 1; then | |
7507 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7508 | fi | |
7509 | ||
7510 | if test "$wxUSE_RESOURCES" = yes; then | |
7511 | echo "$as_me:$LINENO: result: yes" >&5 | |
7512 | echo "${ECHO_T}yes" >&6 | |
7513 | else | |
7514 | echo "$as_me:$LINENO: result: no" >&5 | |
7515 | echo "${ECHO_T}no" >&6 | |
7516 | fi | |
7517 | ||
7518 | ||
7519 | ||
7520 | ||
7521 | enablestring= | |
7522 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7523 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7524 | no_cache=0 | |
7525 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7526 | if test "${enable_clipboard+set}" = set; then | |
7527 | enableval="$enable_clipboard" | |
7528 | ||
7529 | if test "$enableval" = yes; then | |
7530 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7531 | else | |
7532 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7533 | fi | |
7534 | ||
7535 | else | |
7536 | ||
7537 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7538 | if test "x$LINE" != x ; then | |
7539 | eval "DEFAULT_$LINE" | |
7540 | else | |
7541 | no_cache=1 | |
7542 | fi | |
7543 | ||
7544 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7545 | ||
7546 | fi; | |
7547 | ||
7548 | eval "$ac_cv_use_clipboard" | |
7549 | if test "$no_cache" != 1; then | |
7550 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7551 | fi | |
7552 | ||
7553 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7554 | echo "$as_me:$LINENO: result: yes" >&5 | |
7555 | echo "${ECHO_T}yes" >&6 | |
7556 | else | |
7557 | echo "$as_me:$LINENO: result: no" >&5 | |
7558 | echo "${ECHO_T}no" >&6 | |
7559 | fi | |
7560 | ||
7561 | ||
7562 | enablestring= | |
7563 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7564 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7565 | no_cache=0 | |
7566 | # Check whether --enable-dnd or --disable-dnd was given. | |
7567 | if test "${enable_dnd+set}" = set; then | |
7568 | enableval="$enable_dnd" | |
7569 | ||
7570 | if test "$enableval" = yes; then | |
7571 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7572 | else | |
7573 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7574 | fi | |
7575 | ||
7576 | else | |
7577 | ||
7578 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7579 | if test "x$LINE" != x ; then | |
7580 | eval "DEFAULT_$LINE" | |
7581 | else | |
7582 | no_cache=1 | |
7583 | fi | |
7584 | ||
7585 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7586 | ||
7587 | fi; | |
7588 | ||
7589 | eval "$ac_cv_use_dnd" | |
7590 | if test "$no_cache" != 1; then | |
7591 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7592 | fi | |
7593 | ||
7594 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7595 | echo "$as_me:$LINENO: result: yes" >&5 | |
7596 | echo "${ECHO_T}yes" >&6 | |
7597 | else | |
7598 | echo "$as_me:$LINENO: result: no" >&5 | |
7599 | echo "${ECHO_T}no" >&6 | |
7600 | fi | |
7601 | ||
7602 | ||
7603 | enablestring= | |
7604 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7605 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7606 | no_cache=0 | |
7607 | # Check whether --enable-metafile or --disable-metafile was given. | |
7608 | if test "${enable_metafile+set}" = set; then | |
7609 | enableval="$enable_metafile" | |
7610 | ||
7611 | if test "$enableval" = yes; then | |
7612 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7613 | else | |
7614 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7615 | fi | |
7616 | ||
7617 | else | |
7618 | ||
7619 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7620 | if test "x$LINE" != x ; then | |
7621 | eval "DEFAULT_$LINE" | |
7622 | else | |
7623 | no_cache=1 | |
7624 | fi | |
7625 | ||
7626 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7627 | ||
7628 | fi; | |
7629 | ||
7630 | eval "$ac_cv_use_metafile" | |
7631 | if test "$no_cache" != 1; then | |
7632 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7633 | fi | |
7634 | ||
7635 | if test "$wxUSE_METAFILE" = yes; then | |
7636 | echo "$as_me:$LINENO: result: yes" >&5 | |
7637 | echo "${ECHO_T}yes" >&6 | |
7638 | else | |
7639 | echo "$as_me:$LINENO: result: no" >&5 | |
7640 | echo "${ECHO_T}no" >&6 | |
7641 | fi | |
7642 | ||
7643 | ||
7644 | ||
7645 | ||
7646 | ||
7647 | enablestring= | |
7648 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7649 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7650 | no_cache=0 | |
7651 | # Check whether --enable-controls or --disable-controls was given. | |
7652 | if test "${enable_controls+set}" = set; then | |
7653 | enableval="$enable_controls" | |
7654 | ||
7655 | if test "$enableval" = yes; then | |
7656 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7657 | else | |
7658 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7659 | fi | |
7660 | ||
7661 | else | |
7662 | ||
7663 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7664 | if test "x$LINE" != x ; then | |
7665 | eval "DEFAULT_$LINE" | |
7666 | else | |
7667 | no_cache=1 | |
7668 | fi | |
7669 | ||
7670 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7671 | ||
7672 | fi; | |
7673 | ||
7674 | eval "$ac_cv_use_controls" | |
7675 | if test "$no_cache" != 1; then | |
7676 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7677 | fi | |
7678 | ||
7679 | if test "$wxUSE_CONTROLS" = yes; then | |
7680 | echo "$as_me:$LINENO: result: yes" >&5 | |
7681 | echo "${ECHO_T}yes" >&6 | |
7682 | else | |
7683 | echo "$as_me:$LINENO: result: no" >&5 | |
7684 | echo "${ECHO_T}no" >&6 | |
7685 | fi | |
7686 | ||
7687 | ||
7688 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7689 | DEFAULT_wxUSE_ACCEL=yes | |
7690 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7691 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7692 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7693 | DEFAULT_wxUSE_CARET=yes |
7694 | DEFAULT_wxUSE_COMBOBOX=yes | |
7695 | DEFAULT_wxUSE_CHECKBOX=yes | |
7696 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7697 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7698 | DEFAULT_wxUSE_CHOICEBOOK=yes |
e9263684 VZ |
7699 | DEFAULT_wxUSE_COLOURPICKERCTRL=yes |
7700 | DEFAULT_wxUSE_COMBOBOX=yes | |
da98e9be | 7701 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
e9263684 VZ |
7702 | DEFAULT_wxUSE_DISPLAY=yes |
7703 | DEFAULT_wxUSE_DIRPICKERCTRL=yes | |
7704 | DEFAULT_wxUSE_FILEPICKERCTRL=yes | |
7705 | DEFAULT_wxUSE_FONTPICKERCTRL=yes | |
a848cd7e SC |
7706 | DEFAULT_wxUSE_GAUGE=yes |
7707 | DEFAULT_wxUSE_GRID=yes | |
6954625c | 7708 | DEFAULT_wxUSE_HYPERLINKCTRL=yes |
20e34ecc | 7709 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7710 | DEFAULT_wxUSE_IMAGLIST=yes |
7711 | DEFAULT_wxUSE_LISTBOOK=yes | |
7712 | DEFAULT_wxUSE_LISTBOX=yes | |
7713 | DEFAULT_wxUSE_LISTCTRL=yes | |
7714 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7715 | DEFAULT_wxUSE_RADIOBOX=yes | |
7716 | DEFAULT_wxUSE_RADIOBTN=yes | |
7717 | DEFAULT_wxUSE_SASH=yes | |
7718 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7719 | DEFAULT_wxUSE_SLIDER=yes | |
7720 | DEFAULT_wxUSE_SPINBTN=yes | |
7721 | DEFAULT_wxUSE_SPINCTRL=yes | |
7722 | DEFAULT_wxUSE_SPLITTER=yes | |
7723 | DEFAULT_wxUSE_STATBMP=yes | |
7724 | DEFAULT_wxUSE_STATBOX=yes | |
7725 | DEFAULT_wxUSE_STATLINE=yes | |
7726 | DEFAULT_wxUSE_STATUSBAR=yes | |
7727 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7728 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7729 | DEFAULT_wxUSE_TOOLBAR=yes | |
7730 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7731 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7732 | DEFAULT_wxUSE_TOOLTIPS=yes | |
0093c2fc | 7733 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 7734 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
7735 | DEFAULT_wxUSE_TREECTRL=yes |
7736 | DEFAULT_wxUSE_POPUPWIN=yes | |
7737 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7738 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7739 | DEFAULT_wxUSE_ACCEL=no | |
7740 | DEFAULT_wxUSE_BMPBUTTON=no | |
7741 | DEFAULT_wxUSE_BUTTON=no | |
7742 | DEFAULT_wxUSE_CALCTRL=no | |
7743 | DEFAULT_wxUSE_CARET=no | |
7744 | DEFAULT_wxUSE_COMBOBOX=no | |
7745 | DEFAULT_wxUSE_CHECKBOX=no | |
7746 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7747 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7748 | DEFAULT_wxUSE_CHOICEBOOK=no |
e9263684 VZ |
7749 | DEFAULT_wxUSE_COLOURPICKERCTRL=no |
7750 | DEFAULT_wxUSE_COMBOBOX=no | |
da98e9be | 7751 | DEFAULT_wxUSE_DATEPICKCTRL=no |
e9263684 VZ |
7752 | DEFAULT_wxUSE_DISPLAY=no |
7753 | DEFAULT_wxUSE_DIRPICKERCTRL=no | |
7754 | DEFAULT_wxUSE_FILEPICKERCTRL=no | |
7755 | DEFAULT_wxUSE_FONTPICKERCTRL=no | |
a848cd7e SC |
7756 | DEFAULT_wxUSE_GAUGE=no |
7757 | DEFAULT_wxUSE_GRID=no | |
6954625c | 7758 | DEFAULT_wxUSE_HYPERLINKCTRL=no |
20e34ecc | 7759 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7760 | DEFAULT_wxUSE_IMAGLIST=no |
7761 | DEFAULT_wxUSE_LISTBOOK=no | |
7762 | DEFAULT_wxUSE_LISTBOX=no | |
7763 | DEFAULT_wxUSE_LISTCTRL=no | |
7764 | DEFAULT_wxUSE_NOTEBOOK=no | |
7765 | DEFAULT_wxUSE_RADIOBOX=no | |
7766 | DEFAULT_wxUSE_RADIOBTN=no | |
7767 | DEFAULT_wxUSE_SASH=no | |
7768 | DEFAULT_wxUSE_SCROLLBAR=no | |
7769 | DEFAULT_wxUSE_SLIDER=no | |
7770 | DEFAULT_wxUSE_SPINBTN=no | |
7771 | DEFAULT_wxUSE_SPINCTRL=no | |
7772 | DEFAULT_wxUSE_SPLITTER=no | |
7773 | DEFAULT_wxUSE_STATBMP=no | |
7774 | DEFAULT_wxUSE_STATBOX=no | |
7775 | DEFAULT_wxUSE_STATLINE=no | |
7776 | DEFAULT_wxUSE_STATUSBAR=no | |
7777 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7778 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7779 | DEFAULT_wxUSE_TOOLBAR=no | |
7780 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7781 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7782 | DEFAULT_wxUSE_TOOLTIPS=no | |
0093c2fc | 7783 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 7784 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
7785 | DEFAULT_wxUSE_TREECTRL=no |
7786 | DEFAULT_wxUSE_POPUPWIN=no | |
7787 | DEFAULT_wxUSE_TIPWINDOW=no | |
7788 | fi | |
7789 | ||
a848cd7e SC |
7790 | |
7791 | enablestring= | |
7792 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7793 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7794 | no_cache=0 | |
7795 | # Check whether --enable-accel or --disable-accel was given. | |
7796 | if test "${enable_accel+set}" = set; then | |
7797 | enableval="$enable_accel" | |
7798 | ||
7799 | if test "$enableval" = yes; then | |
7800 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7801 | else | |
7802 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7803 | fi | |
7804 | ||
7805 | else | |
7806 | ||
7807 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7808 | if test "x$LINE" != x ; then | |
7809 | eval "DEFAULT_$LINE" | |
7810 | else | |
7811 | no_cache=1 | |
7812 | fi | |
7813 | ||
7814 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7815 | ||
7816 | fi; | |
7817 | ||
7818 | eval "$ac_cv_use_accel" | |
7819 | if test "$no_cache" != 1; then | |
7820 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7821 | fi | |
7822 | ||
7823 | if test "$wxUSE_ACCEL" = yes; then | |
7824 | echo "$as_me:$LINENO: result: yes" >&5 | |
7825 | echo "${ECHO_T}yes" >&6 | |
7826 | else | |
7827 | echo "$as_me:$LINENO: result: no" >&5 | |
7828 | echo "${ECHO_T}no" >&6 | |
7829 | fi | |
7830 | ||
7831 | ||
7832 | enablestring= | |
7833 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7834 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7835 | no_cache=0 | |
7836 | # Check whether --enable-button or --disable-button was given. | |
7837 | if test "${enable_button+set}" = set; then | |
7838 | enableval="$enable_button" | |
7839 | ||
7840 | if test "$enableval" = yes; then | |
7841 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7842 | else | |
7843 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7844 | fi | |
7845 | ||
7846 | else | |
7847 | ||
7848 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7849 | if test "x$LINE" != x ; then | |
7850 | eval "DEFAULT_$LINE" | |
7851 | else | |
7852 | no_cache=1 | |
7853 | fi | |
7854 | ||
7855 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7856 | ||
7857 | fi; | |
7858 | ||
7859 | eval "$ac_cv_use_button" | |
7860 | if test "$no_cache" != 1; then | |
7861 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7862 | fi | |
7863 | ||
7864 | if test "$wxUSE_BUTTON" = yes; then | |
7865 | echo "$as_me:$LINENO: result: yes" >&5 | |
7866 | echo "${ECHO_T}yes" >&6 | |
7867 | else | |
7868 | echo "$as_me:$LINENO: result: no" >&5 | |
7869 | echo "${ECHO_T}no" >&6 | |
7870 | fi | |
7871 | ||
7872 | ||
7873 | enablestring= | |
7874 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7875 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7876 | no_cache=0 | |
7877 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7878 | if test "${enable_bmpbutton+set}" = set; then | |
7879 | enableval="$enable_bmpbutton" | |
7880 | ||
7881 | if test "$enableval" = yes; then | |
7882 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7883 | else | |
7884 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7885 | fi | |
7886 | ||
7887 | else | |
7888 | ||
7889 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7890 | if test "x$LINE" != x ; then | |
7891 | eval "DEFAULT_$LINE" | |
7892 | else | |
7893 | no_cache=1 | |
7894 | fi | |
7895 | ||
7896 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7897 | ||
7898 | fi; | |
7899 | ||
7900 | eval "$ac_cv_use_bmpbutton" | |
7901 | if test "$no_cache" != 1; then | |
7902 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7903 | fi | |
7904 | ||
7905 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7906 | echo "$as_me:$LINENO: result: yes" >&5 | |
7907 | echo "${ECHO_T}yes" >&6 | |
7908 | else | |
7909 | echo "$as_me:$LINENO: result: no" >&5 | |
7910 | echo "${ECHO_T}no" >&6 | |
7911 | fi | |
7912 | ||
7913 | ||
7914 | enablestring= | |
7915 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7916 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7917 | no_cache=0 | |
7918 | # Check whether --enable-calendar or --disable-calendar was given. | |
7919 | if test "${enable_calendar+set}" = set; then | |
7920 | enableval="$enable_calendar" | |
7921 | ||
7922 | if test "$enableval" = yes; then | |
7923 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7924 | else | |
7925 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7926 | fi | |
7927 | ||
7928 | else | |
7929 | ||
7930 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7931 | if test "x$LINE" != x ; then | |
7932 | eval "DEFAULT_$LINE" | |
7933 | else | |
7934 | no_cache=1 | |
7935 | fi | |
7936 | ||
7937 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7938 | ||
7939 | fi; | |
7940 | ||
7941 | eval "$ac_cv_use_calendar" | |
7942 | if test "$no_cache" != 1; then | |
7943 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7944 | fi | |
7945 | ||
7946 | if test "$wxUSE_CALCTRL" = yes; then | |
7947 | echo "$as_me:$LINENO: result: yes" >&5 | |
7948 | echo "${ECHO_T}yes" >&6 | |
7949 | else | |
7950 | echo "$as_me:$LINENO: result: no" >&5 | |
7951 | echo "${ECHO_T}no" >&6 | |
7952 | fi | |
7953 | ||
7954 | ||
7955 | enablestring= | |
7956 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7957 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7958 | no_cache=0 | |
7959 | # Check whether --enable-caret or --disable-caret was given. | |
7960 | if test "${enable_caret+set}" = set; then | |
7961 | enableval="$enable_caret" | |
7962 | ||
7963 | if test "$enableval" = yes; then | |
7964 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7965 | else | |
7966 | ac_cv_use_caret='wxUSE_CARET=no' | |
7967 | fi | |
7968 | ||
7969 | else | |
7970 | ||
7971 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7972 | if test "x$LINE" != x ; then | |
7973 | eval "DEFAULT_$LINE" | |
7974 | else | |
7975 | no_cache=1 | |
7976 | fi | |
7977 | ||
7978 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7979 | ||
7980 | fi; | |
7981 | ||
7982 | eval "$ac_cv_use_caret" | |
7983 | if test "$no_cache" != 1; then | |
7984 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7985 | fi | |
7986 | ||
7987 | if test "$wxUSE_CARET" = yes; then | |
7988 | echo "$as_me:$LINENO: result: yes" >&5 | |
7989 | echo "${ECHO_T}yes" >&6 | |
7990 | else | |
7991 | echo "$as_me:$LINENO: result: no" >&5 | |
7992 | echo "${ECHO_T}no" >&6 | |
7993 | fi | |
7994 | ||
7995 | ||
7996 | enablestring= | |
7997 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7998 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7999 | no_cache=0 | |
8000 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
8001 | if test "${enable_checkbox+set}" = set; then | |
8002 | enableval="$enable_checkbox" | |
8003 | ||
8004 | if test "$enableval" = yes; then | |
8005 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
8006 | else | |
8007 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
8008 | fi | |
8009 | ||
8010 | else | |
8011 | ||
8012 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
8013 | if test "x$LINE" != x ; then | |
8014 | eval "DEFAULT_$LINE" | |
8015 | else | |
8016 | no_cache=1 | |
8017 | fi | |
8018 | ||
8019 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
8020 | ||
8021 | fi; | |
8022 | ||
8023 | eval "$ac_cv_use_checkbox" | |
8024 | if test "$no_cache" != 1; then | |
8025 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
8026 | fi | |
8027 | ||
8028 | if test "$wxUSE_CHECKBOX" = yes; then | |
8029 | echo "$as_me:$LINENO: result: yes" >&5 | |
8030 | echo "${ECHO_T}yes" >&6 | |
8031 | else | |
8032 | echo "$as_me:$LINENO: result: no" >&5 | |
8033 | echo "${ECHO_T}no" >&6 | |
8034 | fi | |
8035 | ||
8036 | ||
8037 | enablestring= | |
8038 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
8039 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
8040 | no_cache=0 | |
8041 | # Check whether --enable-checklst or --disable-checklst was given. | |
8042 | if test "${enable_checklst+set}" = set; then | |
8043 | enableval="$enable_checklst" | |
8044 | ||
8045 | if test "$enableval" = yes; then | |
8046 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
8047 | else | |
8048 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
8049 | fi | |
8050 | ||
8051 | else | |
8052 | ||
8053 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
8054 | if test "x$LINE" != x ; then | |
8055 | eval "DEFAULT_$LINE" | |
8056 | else | |
8057 | no_cache=1 | |
8058 | fi | |
8059 | ||
8060 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
8061 | ||
8062 | fi; | |
8063 | ||
8064 | eval "$ac_cv_use_checklst" | |
8065 | if test "$no_cache" != 1; then | |
8066 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
8067 | fi | |
8068 | ||
8069 | if test "$wxUSE_CHECKLST" = yes; then | |
8070 | echo "$as_me:$LINENO: result: yes" >&5 | |
8071 | echo "${ECHO_T}yes" >&6 | |
8072 | else | |
8073 | echo "$as_me:$LINENO: result: no" >&5 | |
8074 | echo "${ECHO_T}no" >&6 | |
8075 | fi | |
8076 | ||
8077 | ||
8078 | enablestring= | |
8079 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
8080 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
8081 | no_cache=0 | |
8082 | # Check whether --enable-choice or --disable-choice was given. | |
8083 | if test "${enable_choice+set}" = set; then | |
8084 | enableval="$enable_choice" | |
8085 | ||
8086 | if test "$enableval" = yes; then | |
8087 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
8088 | else | |
8089 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
8090 | fi | |
8091 | ||
8092 | else | |
8093 | ||
8094 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
8095 | if test "x$LINE" != x ; then | |
8096 | eval "DEFAULT_$LINE" | |
8097 | else | |
8098 | no_cache=1 | |
8099 | fi | |
8100 | ||
8101 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
8102 | ||
8103 | fi; | |
8104 | ||
8105 | eval "$ac_cv_use_choice" | |
8106 | if test "$no_cache" != 1; then | |
8107 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
8108 | fi | |
8109 | ||
8110 | if test "$wxUSE_CHOICE" = yes; then | |
8111 | echo "$as_me:$LINENO: result: yes" >&5 | |
8112 | echo "${ECHO_T}yes" >&6 | |
8113 | else | |
8114 | echo "$as_me:$LINENO: result: no" >&5 | |
8115 | echo "${ECHO_T}no" >&6 | |
8116 | fi | |
8117 | ||
8118 | ||
92bbdbcd WS |
8119 | enablestring= |
8120 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
8121 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
8122 | no_cache=0 | |
8123 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
8124 | if test "${enable_choicebook+set}" = set; then | |
8125 | enableval="$enable_choicebook" | |
8126 | ||
8127 | if test "$enableval" = yes; then | |
8128 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
8129 | else | |
8130 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
8131 | fi | |
8132 | ||
8133 | else | |
8134 | ||
8135 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
8136 | if test "x$LINE" != x ; then | |
8137 | eval "DEFAULT_$LINE" | |
8138 | else | |
8139 | no_cache=1 | |
8140 | fi | |
8141 | ||
8142 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
8143 | ||
8144 | fi; | |
8145 | ||
8146 | eval "$ac_cv_use_choicebook" | |
8147 | if test "$no_cache" != 1; then | |
8148 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
8149 | fi | |
8150 | ||
8151 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
8152 | echo "$as_me:$LINENO: result: yes" >&5 | |
8153 | echo "${ECHO_T}yes" >&6 | |
8154 | else | |
8155 | echo "$as_me:$LINENO: result: no" >&5 | |
8156 | echo "${ECHO_T}no" >&6 | |
8157 | fi | |
8158 | ||
8159 | ||
e9263684 VZ |
8160 | enablestring= |
8161 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5 | |
8162 | echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6 | |
8163 | no_cache=0 | |
8164 | # Check whether --enable-colourpicker or --disable-colourpicker was given. | |
8165 | if test "${enable_colourpicker+set}" = set; then | |
8166 | enableval="$enable_colourpicker" | |
8167 | ||
8168 | if test "$enableval" = yes; then | |
8169 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes' | |
8170 | else | |
8171 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no' | |
8172 | fi | |
8173 | ||
8174 | else | |
8175 | ||
8176 | LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}` | |
8177 | if test "x$LINE" != x ; then | |
8178 | eval "DEFAULT_$LINE" | |
8179 | else | |
8180 | no_cache=1 | |
8181 | fi | |
8182 | ||
8183 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL | |
8184 | ||
8185 | fi; | |
8186 | ||
8187 | eval "$ac_cv_use_colourpicker" | |
8188 | if test "$no_cache" != 1; then | |
8189 | echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp | |
8190 | fi | |
8191 | ||
8192 | if test "$wxUSE_COLOURPICKERCTRL" = yes; then | |
8193 | echo "$as_me:$LINENO: result: yes" >&5 | |
8194 | echo "${ECHO_T}yes" >&6 | |
8195 | else | |
8196 | echo "$as_me:$LINENO: result: no" >&5 | |
8197 | echo "${ECHO_T}no" >&6 | |
8198 | fi | |
8199 | ||
8200 | ||
a848cd7e SC |
8201 | enablestring= |
8202 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
8203 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
8204 | no_cache=0 | |
8205 | # Check whether --enable-combobox or --disable-combobox was given. | |
8206 | if test "${enable_combobox+set}" = set; then | |
8207 | enableval="$enable_combobox" | |
8208 | ||
8209 | if test "$enableval" = yes; then | |
8210 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
8211 | else | |
8212 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
8213 | fi | |
8214 | ||
8215 | else | |
8216 | ||
8217 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
8218 | if test "x$LINE" != x ; then | |
8219 | eval "DEFAULT_$LINE" | |
8220 | else | |
8221 | no_cache=1 | |
8222 | fi | |
8223 | ||
8224 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
8225 | ||
8226 | fi; | |
8227 | ||
8228 | eval "$ac_cv_use_combobox" | |
8229 | if test "$no_cache" != 1; then | |
8230 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
8231 | fi | |
8232 | ||
8233 | if test "$wxUSE_COMBOBOX" = yes; then | |
8234 | echo "$as_me:$LINENO: result: yes" >&5 | |
8235 | echo "${ECHO_T}yes" >&6 | |
8236 | else | |
8237 | echo "$as_me:$LINENO: result: no" >&5 | |
8238 | echo "${ECHO_T}no" >&6 | |
8239 | fi | |
8240 | ||
8241 | ||
642bcba9 | 8242 | enablestring= |
a57d600f VZ |
8243 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5 |
8244 | echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6 | |
642bcba9 | 8245 | no_cache=0 |
a57d600f VZ |
8246 | # Check whether --enable-comboctrl or --disable-comboctrl was given. |
8247 | if test "${enable_comboctrl+set}" = set; then | |
8248 | enableval="$enable_comboctrl" | |
642bcba9 VZ |
8249 | |
8250 | if test "$enableval" = yes; then | |
a57d600f | 8251 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes' |
642bcba9 | 8252 | else |
a57d600f | 8253 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no' |
642bcba9 VZ |
8254 | fi |
8255 | ||
8256 | else | |
8257 | ||
a57d600f | 8258 | LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}` |
642bcba9 VZ |
8259 | if test "x$LINE" != x ; then |
8260 | eval "DEFAULT_$LINE" | |
8261 | else | |
8262 | no_cache=1 | |
8263 | fi | |
8264 | ||
a57d600f | 8265 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL |
642bcba9 VZ |
8266 | |
8267 | fi; | |
8268 | ||
a57d600f | 8269 | eval "$ac_cv_use_comboctrl" |
642bcba9 | 8270 | if test "$no_cache" != 1; then |
a57d600f | 8271 | echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp |
642bcba9 VZ |
8272 | fi |
8273 | ||
a57d600f | 8274 | if test "$wxUSE_COMBOCTRL" = yes; then |
642bcba9 VZ |
8275 | echo "$as_me:$LINENO: result: yes" >&5 |
8276 | echo "${ECHO_T}yes" >&6 | |
8277 | else | |
8278 | echo "$as_me:$LINENO: result: no" >&5 | |
8279 | echo "${ECHO_T}no" >&6 | |
8280 | fi | |
8281 | ||
8282 | ||
da98e9be VZ |
8283 | enablestring= |
8284 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
8285 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
8286 | no_cache=0 | |
8287 | # Check whether --enable-datepick or --disable-datepick was given. | |
8288 | if test "${enable_datepick+set}" = set; then | |
8289 | enableval="$enable_datepick" | |
8290 | ||
8291 | if test "$enableval" = yes; then | |
8292 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
8293 | else | |
8294 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
8295 | fi | |
8296 | ||
8297 | else | |
8298 | ||
8299 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
8300 | if test "x$LINE" != x ; then | |
8301 | eval "DEFAULT_$LINE" | |
8302 | else | |
8303 | no_cache=1 | |
8304 | fi | |
8305 | ||
8306 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
8307 | ||
8308 | fi; | |
8309 | ||
8310 | eval "$ac_cv_use_datepick" | |
8311 | if test "$no_cache" != 1; then | |
8312 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
8313 | fi | |
8314 | ||
8315 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
8316 | echo "$as_me:$LINENO: result: yes" >&5 | |
8317 | echo "${ECHO_T}yes" >&6 | |
8318 | else | |
8319 | echo "$as_me:$LINENO: result: no" >&5 | |
8320 | echo "${ECHO_T}no" >&6 | |
8321 | fi | |
8322 | ||
8323 | ||
e9263684 VZ |
8324 | enablestring= |
8325 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5 | |
8326 | echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6 | |
8327 | no_cache=0 | |
8328 | # Check whether --enable-dirpicker or --disable-dirpicker was given. | |
8329 | if test "${enable_dirpicker+set}" = set; then | |
8330 | enableval="$enable_dirpicker" | |
8331 | ||
8332 | if test "$enableval" = yes; then | |
8333 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes' | |
8334 | else | |
8335 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no' | |
8336 | fi | |
8337 | ||
8338 | else | |
8339 | ||
8340 | LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}` | |
8341 | if test "x$LINE" != x ; then | |
8342 | eval "DEFAULT_$LINE" | |
8343 | else | |
8344 | no_cache=1 | |
8345 | fi | |
8346 | ||
8347 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL | |
8348 | ||
8349 | fi; | |
8350 | ||
8351 | eval "$ac_cv_use_dirpicker" | |
8352 | if test "$no_cache" != 1; then | |
8353 | echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp | |
8354 | fi | |
8355 | ||
8356 | if test "$wxUSE_DIRPICKERCTRL" = yes; then | |
8357 | echo "$as_me:$LINENO: result: yes" >&5 | |
8358 | echo "${ECHO_T}yes" >&6 | |
8359 | else | |
8360 | echo "$as_me:$LINENO: result: no" >&5 | |
8361 | echo "${ECHO_T}no" >&6 | |
8362 | fi | |
8363 | ||
8364 | ||
a848cd7e SC |
8365 | enablestring= |
8366 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
8367 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
8368 | no_cache=0 | |
8369 | # Check whether --enable-display or --disable-display was given. | |
8370 | if test "${enable_display+set}" = set; then | |
8371 | enableval="$enable_display" | |
8372 | ||
8373 | if test "$enableval" = yes; then | |
8374 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
8375 | else | |
8376 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
8377 | fi | |
8378 | ||
8379 | else | |
8380 | ||
8381 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
8382 | if test "x$LINE" != x ; then | |
8383 | eval "DEFAULT_$LINE" | |
8384 | else | |
8385 | no_cache=1 | |
8386 | fi | |
8387 | ||
8388 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
8389 | ||
8390 | fi; | |
8391 | ||
8392 | eval "$ac_cv_use_display" | |
8393 | if test "$no_cache" != 1; then | |
8394 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
8395 | fi | |
8396 | ||
8397 | if test "$wxUSE_DISPLAY" = yes; then | |
8398 | echo "$as_me:$LINENO: result: yes" >&5 | |
8399 | echo "${ECHO_T}yes" >&6 | |
8400 | else | |
8401 | echo "$as_me:$LINENO: result: no" >&5 | |
8402 | echo "${ECHO_T}no" >&6 | |
8403 | fi | |
8404 | ||
8405 | ||
e9263684 VZ |
8406 | enablestring= |
8407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5 | |
8408 | echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6 | |
8409 | no_cache=0 | |
8410 | # Check whether --enable-filepicker or --disable-filepicker was given. | |
8411 | if test "${enable_filepicker+set}" = set; then | |
8412 | enableval="$enable_filepicker" | |
8413 | ||
8414 | if test "$enableval" = yes; then | |
8415 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes' | |
8416 | else | |
8417 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no' | |
8418 | fi | |
8419 | ||
8420 | else | |
8421 | ||
8422 | LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}` | |
8423 | if test "x$LINE" != x ; then | |
8424 | eval "DEFAULT_$LINE" | |
8425 | else | |
8426 | no_cache=1 | |
8427 | fi | |
8428 | ||
8429 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL | |
8430 | ||
8431 | fi; | |
8432 | ||
8433 | eval "$ac_cv_use_filepicker" | |
8434 | if test "$no_cache" != 1; then | |
8435 | echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp | |
8436 | fi | |
8437 | ||
8438 | if test "$wxUSE_FILEPICKERCTRL" = yes; then | |
8439 | echo "$as_me:$LINENO: result: yes" >&5 | |
8440 | echo "${ECHO_T}yes" >&6 | |
8441 | else | |
8442 | echo "$as_me:$LINENO: result: no" >&5 | |
8443 | echo "${ECHO_T}no" >&6 | |
8444 | fi | |
8445 | ||
8446 | ||
8447 | enablestring= | |
8448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5 | |
8449 | echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6 | |
8450 | no_cache=0 | |
8451 | # Check whether --enable-fontpicker or --disable-fontpicker was given. | |
8452 | if test "${enable_fontpicker+set}" = set; then | |
8453 | enableval="$enable_fontpicker" | |
8454 | ||
8455 | if test "$enableval" = yes; then | |
8456 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes' | |
8457 | else | |
8458 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no' | |
8459 | fi | |
8460 | ||
8461 | else | |
8462 | ||
8463 | LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}` | |
8464 | if test "x$LINE" != x ; then | |
8465 | eval "DEFAULT_$LINE" | |
8466 | else | |
8467 | no_cache=1 | |
8468 | fi | |
8469 | ||
8470 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL | |
8471 | ||
8472 | fi; | |
8473 | ||
8474 | eval "$ac_cv_use_fontpicker" | |
8475 | if test "$no_cache" != 1; then | |
8476 | echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp | |
8477 | fi | |
8478 | ||
8479 | if test "$wxUSE_FONTPICKERCTRL" = yes; then | |
8480 | echo "$as_me:$LINENO: result: yes" >&5 | |
8481 | echo "${ECHO_T}yes" >&6 | |
8482 | else | |
8483 | echo "$as_me:$LINENO: result: no" >&5 | |
8484 | echo "${ECHO_T}no" >&6 | |
8485 | fi | |
8486 | ||
8487 | ||
a848cd7e SC |
8488 | enablestring= |
8489 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
8490 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
8491 | no_cache=0 | |
8492 | # Check whether --enable-gauge or --disable-gauge was given. | |
8493 | if test "${enable_gauge+set}" = set; then | |
8494 | enableval="$enable_gauge" | |
8495 | ||
8496 | if test "$enableval" = yes; then | |
8497 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
8498 | else | |
8499 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
8500 | fi | |
8501 | ||
8502 | else | |
8503 | ||
8504 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
8505 | if test "x$LINE" != x ; then | |
8506 | eval "DEFAULT_$LINE" | |
8507 | else | |
8508 | no_cache=1 | |
8509 | fi | |
8510 | ||
8511 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
8512 | ||
8513 | fi; | |
8514 | ||
8515 | eval "$ac_cv_use_gauge" | |
8516 | if test "$no_cache" != 1; then | |
8517 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
8518 | fi | |
8519 | ||
8520 | if test "$wxUSE_GAUGE" = yes; then | |
8521 | echo "$as_me:$LINENO: result: yes" >&5 | |
8522 | echo "${ECHO_T}yes" >&6 | |
8523 | else | |
8524 | echo "$as_me:$LINENO: result: no" >&5 | |
8525 | echo "${ECHO_T}no" >&6 | |
8526 | fi | |
8527 | ||
8528 | ||
8529 | enablestring= | |
8530 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
8531 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
8532 | no_cache=0 | |
8533 | # Check whether --enable-grid or --disable-grid was given. | |
8534 | if test "${enable_grid+set}" = set; then | |
8535 | enableval="$enable_grid" | |
8536 | ||
8537 | if test "$enableval" = yes; then | |
8538 | ac_cv_use_grid='wxUSE_GRID=yes' | |
8539 | else | |
8540 | ac_cv_use_grid='wxUSE_GRID=no' | |
8541 | fi | |
8542 | ||
8543 | else | |
8544 | ||
8545 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
8546 | if test "x$LINE" != x ; then | |
8547 | eval "DEFAULT_$LINE" | |
8548 | else | |
8549 | no_cache=1 | |
8550 | fi | |
8551 | ||
8552 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
8553 | ||
8554 | fi; | |
8555 | ||
8556 | eval "$ac_cv_use_grid" | |
8557 | if test "$no_cache" != 1; then | |
8558 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
8559 | fi | |
8560 | ||
8561 | if test "$wxUSE_GRID" = yes; then | |
8562 | echo "$as_me:$LINENO: result: yes" >&5 | |
8563 | echo "${ECHO_T}yes" >&6 | |
8564 | else | |
8565 | echo "$as_me:$LINENO: result: no" >&5 | |
8566 | echo "${ECHO_T}no" >&6 | |
8567 | fi | |
8568 | ||
8569 | ||
20e34ecc RR |
8570 | enablestring= |
8571 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5 | |
8572 | echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6 | |
8573 | no_cache=0 | |
8574 | # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given. | |
8575 | if test "${enable_dataviewctrl+set}" = set; then | |
8576 | enableval="$enable_dataviewctrl" | |
8577 | ||
8578 | if test "$enableval" = yes; then | |
8579 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes' | |
8580 | else | |
8581 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no' | |
8582 | fi | |
8583 | ||
8584 | else | |
8585 | ||
8586 | LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}` | |
8587 | if test "x$LINE" != x ; then | |
8588 | eval "DEFAULT_$LINE" | |
8589 | else | |
8590 | no_cache=1 | |
8591 | fi | |
8592 | ||
8593 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL | |
8594 | ||
8595 | fi; | |
8596 | ||
8597 | eval "$ac_cv_use_dataviewctrl" | |
8598 | if test "$no_cache" != 1; then | |
8599 | echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp | |
8600 | fi | |
8601 | ||
8602 | if test "$wxUSE_DATAVIEWCTRL" = yes; then | |
8603 | echo "$as_me:$LINENO: result: yes" >&5 | |
8604 | echo "${ECHO_T}yes" >&6 | |
8605 | else | |
8606 | echo "$as_me:$LINENO: result: no" >&5 | |
8607 | echo "${ECHO_T}no" >&6 | |
8608 | fi | |
8609 | ||
8610 | ||
6954625c VZ |
8611 | enablestring= |
8612 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5 | |
8613 | echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6 | |
8614 | no_cache=0 | |
8615 | # Check whether --enable-hyperlink or --disable-hyperlink was given. | |
8616 | if test "${enable_hyperlink+set}" = set; then | |
8617 | enableval="$enable_hyperlink" | |
8618 | ||
8619 | if test "$enableval" = yes; then | |
8620 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes' | |
8621 | else | |
8622 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no' | |
8623 | fi | |
8624 | ||
8625 | else | |
8626 | ||
8627 | LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}` | |
8628 | if test "x$LINE" != x ; then | |
8629 | eval "DEFAULT_$LINE" | |
8630 | else | |
8631 | no_cache=1 | |
8632 | fi | |
8633 | ||
8634 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL | |
8635 | ||
8636 | fi; | |
8637 | ||
8638 | eval "$ac_cv_use_hyperlink" | |
8639 | if test "$no_cache" != 1; then | |
8640 | echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp | |
8641 | fi | |
8642 | ||
8643 | if test "$wxUSE_HYPERLINKCTRL" = yes; then | |
8644 | echo "$as_me:$LINENO: result: yes" >&5 | |
8645 | echo "${ECHO_T}yes" >&6 | |
8646 | else | |
8647 | echo "$as_me:$LINENO: result: no" >&5 | |
8648 | echo "${ECHO_T}no" >&6 | |
8649 | fi | |
8650 | ||
8651 | ||
a848cd7e SC |
8652 | enablestring= |
8653 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
8654 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
8655 | no_cache=0 | |
8656 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
8657 | if test "${enable_imaglist+set}" = set; then | |
8658 | enableval="$enable_imaglist" | |
8659 | ||
8660 | if test "$enableval" = yes; then | |
8661 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
8662 | else | |
8663 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
8664 | fi | |
8665 | ||
8666 | else | |
8667 | ||
8668 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
8669 | if test "x$LINE" != x ; then | |
8670 | eval "DEFAULT_$LINE" | |
8671 | else | |
8672 | no_cache=1 | |
8673 | fi | |
8674 | ||
8675 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
8676 | ||
8677 | fi; | |
8678 | ||
8679 | eval "$ac_cv_use_imaglist" | |
8680 | if test "$no_cache" != 1; then | |
8681 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
8682 | fi | |
8683 | ||
8684 | if test "$wxUSE_IMAGLIST" = yes; then | |
8685 | echo "$as_me:$LINENO: result: yes" >&5 | |
8686 | echo "${ECHO_T}yes" >&6 | |
8687 | else | |
8688 | echo "$as_me:$LINENO: result: no" >&5 | |
8689 | echo "${ECHO_T}no" >&6 | |
8690 | fi | |
8691 | ||
8692 | ||
8693 | enablestring= | |
8694 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
8695 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
8696 | no_cache=0 | |
8697 | # Check whether --enable-listbook or --disable-listbook was given. | |
8698 | if test "${enable_listbook+set}" = set; then | |
8699 | enableval="$enable_listbook" | |
8700 | ||
8701 | if test "$enableval" = yes; then | |
8702 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
8703 | else | |
8704 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
8705 | fi | |
8706 | ||
8707 | else | |
8708 | ||
8709 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
8710 | if test "x$LINE" != x ; then | |
8711 | eval "DEFAULT_$LINE" | |
8712 | else | |
8713 | no_cache=1 | |
8714 | fi | |
8715 | ||
8716 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
8717 | ||
8718 | fi; | |
8719 | ||
8720 | eval "$ac_cv_use_listbook" | |
8721 | if test "$no_cache" != 1; then | |
8722 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
8723 | fi | |
8724 | ||
8725 | if test "$wxUSE_LISTBOOK" = yes; then | |
8726 | echo "$as_me:$LINENO: result: yes" >&5 | |
8727 | echo "${ECHO_T}yes" >&6 | |
8728 | else | |
8729 | echo "$as_me:$LINENO: result: no" >&5 | |
8730 | echo "${ECHO_T}no" >&6 | |
8731 | fi | |
8732 | ||
8733 | ||
8734 | enablestring= | |
8735 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8736 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8737 | no_cache=0 | |
8738 | # Check whether --enable-listbox or --disable-listbox was given. | |
8739 | if test "${enable_listbox+set}" = set; then | |
8740 | enableval="$enable_listbox" | |
8741 | ||
8742 | if test "$enableval" = yes; then | |
8743 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8744 | else | |
8745 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8746 | fi | |
8747 | ||
8748 | else | |
8749 | ||
8750 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8751 | if test "x$LINE" != x ; then | |
8752 | eval "DEFAULT_$LINE" | |
8753 | else | |
8754 | no_cache=1 | |
8755 | fi | |
8756 | ||
8757 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8758 | ||
8759 | fi; | |
8760 | ||
8761 | eval "$ac_cv_use_listbox" | |
8762 | if test "$no_cache" != 1; then | |
8763 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8764 | fi | |
8765 | ||
8766 | if test "$wxUSE_LISTBOX" = yes; then | |
8767 | echo "$as_me:$LINENO: result: yes" >&5 | |
8768 | echo "${ECHO_T}yes" >&6 | |
8769 | else | |
8770 | echo "$as_me:$LINENO: result: no" >&5 | |
8771 | echo "${ECHO_T}no" >&6 | |
8772 | fi | |
8773 | ||
8774 | ||
8775 | enablestring= | |
8776 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8777 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8778 | no_cache=0 | |
8779 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8780 | if test "${enable_listctrl+set}" = set; then | |
8781 | enableval="$enable_listctrl" | |
8782 | ||
8783 | if test "$enableval" = yes; then | |
8784 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8785 | else | |
8786 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8787 | fi | |
8788 | ||
8789 | else | |
8790 | ||
8791 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8792 | if test "x$LINE" != x ; then | |
8793 | eval "DEFAULT_$LINE" | |
8794 | else | |
8795 | no_cache=1 | |
8796 | fi | |
8797 | ||
8798 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8799 | ||
8800 | fi; | |
8801 | ||
8802 | eval "$ac_cv_use_listctrl" | |
8803 | if test "$no_cache" != 1; then | |
8804 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8805 | fi | |
8806 | ||
8807 | if test "$wxUSE_LISTCTRL" = yes; then | |
8808 | echo "$as_me:$LINENO: result: yes" >&5 | |
8809 | echo "${ECHO_T}yes" >&6 | |
8810 | else | |
8811 | echo "$as_me:$LINENO: result: no" >&5 | |
8812 | echo "${ECHO_T}no" >&6 | |
8813 | fi | |
8814 | ||
8815 | ||
8816 | enablestring= | |
8817 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8818 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8819 | no_cache=0 | |
8820 | # Check whether --enable-notebook or --disable-notebook was given. | |
8821 | if test "${enable_notebook+set}" = set; then | |
8822 | enableval="$enable_notebook" | |
8823 | ||
8824 | if test "$enableval" = yes; then | |
8825 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8826 | else | |
8827 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8828 | fi | |
8829 | ||
8830 | else | |
8831 | ||
8832 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8833 | if test "x$LINE" != x ; then | |
8834 | eval "DEFAULT_$LINE" | |
8835 | else | |
8836 | no_cache=1 | |
8837 | fi | |
8838 | ||
8839 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8840 | ||
8841 | fi; | |
8842 | ||
8843 | eval "$ac_cv_use_notebook" | |
8844 | if test "$no_cache" != 1; then | |
8845 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8846 | fi | |
8847 | ||
8848 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8849 | echo "$as_me:$LINENO: result: yes" >&5 | |
8850 | echo "${ECHO_T}yes" >&6 | |
8851 | else | |
8852 | echo "$as_me:$LINENO: result: no" >&5 | |
8853 | echo "${ECHO_T}no" >&6 | |
8854 | fi | |
8855 | ||
8856 | ||
642bcba9 | 8857 | enablestring= |
a57d600f VZ |
8858 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5 |
8859 | echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6 | |
642bcba9 | 8860 | no_cache=0 |
a57d600f VZ |
8861 | # Check whether --enable-odcombobox or --disable-odcombobox was given. |
8862 | if test "${enable_odcombobox+set}" = set; then | |
8863 | enableval="$enable_odcombobox" | |
642bcba9 VZ |
8864 | |
8865 | if test "$enableval" = yes; then | |
a57d600f | 8866 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes' |
642bcba9 | 8867 | else |
a57d600f | 8868 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no' |
642bcba9 VZ |
8869 | fi |
8870 | ||
8871 | else | |
8872 | ||
a57d600f | 8873 | LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}` |
642bcba9 VZ |
8874 | if test "x$LINE" != x ; then |
8875 | eval "DEFAULT_$LINE" | |
8876 | else | |
8877 | no_cache=1 | |
8878 | fi | |
8879 | ||
a57d600f | 8880 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX |
642bcba9 VZ |
8881 | |
8882 | fi; | |
8883 | ||
a57d600f | 8884 | eval "$ac_cv_use_odcombobox" |
642bcba9 | 8885 | if test "$no_cache" != 1; then |
a57d600f | 8886 | echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp |
642bcba9 VZ |
8887 | fi |
8888 | ||
a57d600f | 8889 | if test "$wxUSE_ODCOMBOBOX" = yes; then |
642bcba9 VZ |
8890 | echo "$as_me:$LINENO: result: yes" >&5 |
8891 | echo "${ECHO_T}yes" >&6 | |
8892 | else | |
8893 | echo "$as_me:$LINENO: result: no" >&5 | |
8894 | echo "${ECHO_T}no" >&6 | |
8895 | fi | |
8896 | ||
8897 | ||
a848cd7e SC |
8898 | enablestring= |
8899 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8900 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8901 | no_cache=0 | |
8902 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8903 | if test "${enable_radiobox+set}" = set; then | |
8904 | enableval="$enable_radiobox" | |
8905 | ||
8906 | if test "$enableval" = yes; then | |
8907 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8908 | else | |
8909 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8910 | fi | |
8911 | ||
8912 | else | |
8913 | ||
8914 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8915 | if test "x$LINE" != x ; then | |
8916 | eval "DEFAULT_$LINE" | |
8917 | else | |
8918 | no_cache=1 | |
8919 | fi | |
8920 | ||
8921 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8922 | ||
8923 | fi; | |
8924 | ||
8925 | eval "$ac_cv_use_radiobox" | |
8926 | if test "$no_cache" != 1; then | |
8927 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8928 | fi | |
8929 | ||
8930 | if test "$wxUSE_RADIOBOX" = yes; then | |
8931 | echo "$as_me:$LINENO: result: yes" >&5 | |
8932 | echo "${ECHO_T}yes" >&6 | |
8933 | else | |
8934 | echo "$as_me:$LINENO: result: no" >&5 | |
8935 | echo "${ECHO_T}no" >&6 | |
8936 | fi | |
8937 | ||
8938 | ||
8939 | enablestring= | |
8940 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8941 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8942 | no_cache=0 | |
8943 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8944 | if test "${enable_radiobtn+set}" = set; then | |
8945 | enableval="$enable_radiobtn" | |
8946 | ||
8947 | if test "$enableval" = yes; then | |
8948 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8949 | else | |
8950 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8951 | fi | |
8952 | ||
8953 | else | |
8954 | ||
8955 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8956 | if test "x$LINE" != x ; then | |
8957 | eval "DEFAULT_$LINE" | |
8958 | else | |
8959 | no_cache=1 | |
8960 | fi | |
8961 | ||
8962 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8963 | ||
8964 | fi; | |
8965 | ||
8966 | eval "$ac_cv_use_radiobtn" | |
8967 | if test "$no_cache" != 1; then | |
8968 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8969 | fi | |
8970 | ||
8971 | if test "$wxUSE_RADIOBTN" = yes; then | |
8972 | echo "$as_me:$LINENO: result: yes" >&5 | |
8973 | echo "${ECHO_T}yes" >&6 | |
8974 | else | |
8975 | echo "$as_me:$LINENO: result: no" >&5 | |
8976 | echo "${ECHO_T}no" >&6 | |
8977 | fi | |
8978 | ||
8979 | ||
8980 | enablestring= | |
8981 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8982 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8983 | no_cache=0 | |
8984 | # Check whether --enable-sash or --disable-sash was given. | |
8985 | if test "${enable_sash+set}" = set; then | |
8986 | enableval="$enable_sash" | |
8987 | ||
8988 | if test "$enableval" = yes; then | |
8989 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8990 | else | |
8991 | ac_cv_use_sash='wxUSE_SASH=no' | |
8992 | fi | |
8993 | ||
8994 | else | |
8995 | ||
8996 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8997 | if test "x$LINE" != x ; then | |
8998 | eval "DEFAULT_$LINE" | |
8999 | else | |
9000 | no_cache=1 | |
9001 | fi | |
9002 | ||
9003 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
9004 | ||
9005 | fi; | |
9006 | ||
9007 | eval "$ac_cv_use_sash" | |
9008 | if test "$no_cache" != 1; then | |
9009 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
9010 | fi | |
9011 | ||
9012 | if test "$wxUSE_SASH" = yes; then | |
9013 | echo "$as_me:$LINENO: result: yes" >&5 | |
9014 | echo "${ECHO_T}yes" >&6 | |
9015 | else | |
9016 | echo "$as_me:$LINENO: result: no" >&5 | |
9017 | echo "${ECHO_T}no" >&6 | |
9018 | fi | |
9019 | ||
9020 | ||
9021 | enablestring= | |
9022 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
9023 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
9024 | no_cache=0 | |
9025 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
9026 | if test "${enable_scrollbar+set}" = set; then | |
9027 | enableval="$enable_scrollbar" | |
9028 | ||
9029 | if test "$enableval" = yes; then | |
9030 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
9031 | else | |
9032 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
9033 | fi | |
9034 | ||
9035 | else | |
9036 | ||
9037 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
9038 | if test "x$LINE" != x ; then | |
9039 | eval "DEFAULT_$LINE" | |
9040 | else | |
9041 | no_cache=1 | |
9042 | fi | |
9043 | ||
9044 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
9045 | ||
9046 | fi; | |
9047 | ||
9048 | eval "$ac_cv_use_scrollbar" | |
9049 | if test "$no_cache" != 1; then | |
9050 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
9051 | fi | |
9052 | ||
9053 | if test "$wxUSE_SCROLLBAR" = yes; then | |
9054 | echo "$as_me:$LINENO: result: yes" >&5 | |
9055 | echo "${ECHO_T}yes" >&6 | |
9056 | else | |
9057 | echo "$as_me:$LINENO: result: no" >&5 | |
9058 | echo "${ECHO_T}no" >&6 | |
9059 | fi | |
9060 | ||
9061 | ||
9062 | enablestring= | |
9063 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
9064 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
9065 | no_cache=0 | |
9066 | # Check whether --enable-slider or --disable-slider was given. | |
9067 | if test "${enable_slider+set}" = set; then | |
9068 | enableval="$enable_slider" | |
9069 | ||
9070 | if test "$enableval" = yes; then | |
9071 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
9072 | else | |
9073 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
9074 | fi | |
9075 | ||
9076 | else | |
9077 | ||
9078 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
9079 | if test "x$LINE" != x ; then | |
9080 | eval "DEFAULT_$LINE" | |
9081 | else | |
9082 | no_cache=1 | |
9083 | fi | |
9084 | ||
9085 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
9086 | ||
9087 | fi; | |
9088 | ||
9089 | eval "$ac_cv_use_slider" | |
9090 | if test "$no_cache" != 1; then | |
9091 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
9092 | fi | |
9093 | ||
9094 | if test "$wxUSE_SLIDER" = yes; then | |
9095 | echo "$as_me:$LINENO: result: yes" >&5 | |
9096 | echo "${ECHO_T}yes" >&6 | |
9097 | else | |
9098 | echo "$as_me:$LINENO: result: no" >&5 | |
9099 | echo "${ECHO_T}no" >&6 | |
9100 | fi | |
9101 | ||
9102 | ||
9103 | enablestring= | |
9104 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
9105 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
9106 | no_cache=0 | |
9107 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
9108 | if test "${enable_spinbtn+set}" = set; then | |
9109 | enableval="$enable_spinbtn" | |
9110 | ||
9111 | if test "$enableval" = yes; then | |
9112 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
9113 | else | |
9114 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
9115 | fi | |
9116 | ||
9117 | else | |
9118 | ||
9119 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
9120 | if test "x$LINE" != x ; then | |
9121 | eval "DEFAULT_$LINE" | |
9122 | else | |
9123 | no_cache=1 | |
9124 | fi | |
9125 | ||
9126 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
9127 | ||
9128 | fi; | |
9129 | ||
9130 | eval "$ac_cv_use_spinbtn" | |
9131 | if test "$no_cache" != 1; then | |
9132 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
9133 | fi | |
9134 | ||
9135 | if test "$wxUSE_SPINBTN" = yes; then | |
9136 | echo "$as_me:$LINENO: result: yes" >&5 | |
9137 | echo "${ECHO_T}yes" >&6 | |
9138 | else | |
9139 | echo "$as_me:$LINENO: result: no" >&5 | |
9140 | echo "${ECHO_T}no" >&6 | |
9141 | fi | |
9142 | ||
9143 | ||
9144 | enablestring= | |
9145 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
9146 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
9147 | no_cache=0 | |
9148 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
9149 | if test "${enable_spinctrl+set}" = set; then | |
9150 | enableval="$enable_spinctrl" | |
9151 | ||
9152 | if test "$enableval" = yes; then | |
9153 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
9154 | else | |
9155 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
9156 | fi | |
9157 | ||
9158 | else | |
9159 | ||
9160 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
9161 | if test "x$LINE" != x ; then | |
9162 | eval "DEFAULT_$LINE" | |
9163 | else | |
9164 | no_cache=1 | |
9165 | fi | |
9166 | ||
9167 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
9168 | ||
9169 | fi; | |
9170 | ||
9171 | eval "$ac_cv_use_spinctrl" | |
9172 | if test "$no_cache" != 1; then | |
9173 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
9174 | fi | |
9175 | ||
9176 | if test "$wxUSE_SPINCTRL" = yes; then | |
9177 | echo "$as_me:$LINENO: result: yes" >&5 | |
9178 | echo "${ECHO_T}yes" >&6 | |
9179 | else | |
9180 | echo "$as_me:$LINENO: result: no" >&5 | |
9181 | echo "${ECHO_T}no" >&6 | |
9182 | fi | |
9183 | ||
9184 | ||
9185 | enablestring= | |
9186 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
9187 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
9188 | no_cache=0 | |
9189 | # Check whether --enable-splitter or --disable-splitter was given. | |
9190 | if test "${enable_splitter+set}" = set; then | |
9191 | enableval="$enable_splitter" | |
9192 | ||
9193 | if test "$enableval" = yes; then | |
9194 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
9195 | else | |
9196 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
9197 | fi | |
9198 | ||
9199 | else | |
9200 | ||
9201 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
9202 | if test "x$LINE" != x ; then | |
9203 | eval "DEFAULT_$LINE" | |
9204 | else | |
9205 | no_cache=1 | |
9206 | fi | |
9207 | ||
9208 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
9209 | ||
9210 | fi; | |
9211 | ||
9212 | eval "$ac_cv_use_splitter" | |
9213 | if test "$no_cache" != 1; then | |
9214 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
9215 | fi | |
9216 | ||
9217 | if test "$wxUSE_SPLITTER" = yes; then | |
9218 | echo "$as_me:$LINENO: result: yes" >&5 | |
9219 | echo "${ECHO_T}yes" >&6 | |
9220 | else | |
9221 | echo "$as_me:$LINENO: result: no" >&5 | |
9222 | echo "${ECHO_T}no" >&6 | |
9223 | fi | |
9224 | ||
9225 | ||
9226 | enablestring= | |
9227 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
9228 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
9229 | no_cache=0 | |
9230 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
9231 | if test "${enable_statbmp+set}" = set; then | |
9232 | enableval="$enable_statbmp" | |
9233 | ||
9234 | if test "$enableval" = yes; then | |
9235 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
9236 | else | |
9237 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
9238 | fi | |
9239 | ||
9240 | else | |
9241 | ||
9242 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
9243 | if test "x$LINE" != x ; then | |
9244 | eval "DEFAULT_$LINE" | |
9245 | else | |
9246 | no_cache=1 | |
9247 | fi | |
9248 | ||
9249 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
9250 | ||
9251 | fi; | |
9252 | ||
9253 | eval "$ac_cv_use_statbmp" | |
9254 | if test "$no_cache" != 1; then | |
9255 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
9256 | fi | |
9257 | ||
9258 | if test "$wxUSE_STATBMP" = yes; then | |
9259 | echo "$as_me:$LINENO: result: yes" >&5 | |
9260 | echo "${ECHO_T}yes" >&6 | |
9261 | else | |
9262 | echo "$as_me:$LINENO: result: no" >&5 | |
9263 | echo "${ECHO_T}no" >&6 | |
9264 | fi | |
9265 | ||
9266 | ||
9267 | enablestring= | |
9268 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
9269 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
9270 | no_cache=0 | |
9271 | # Check whether --enable-statbox or --disable-statbox was given. | |
9272 | if test "${enable_statbox+set}" = set; then | |
9273 | enableval="$enable_statbox" | |
9274 | ||
9275 | if test "$enableval" = yes; then | |
9276 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
9277 | else | |
9278 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
9279 | fi | |
9280 | ||
9281 | else | |
9282 | ||
9283 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
9284 | if test "x$LINE" != x ; then | |
9285 | eval "DEFAULT_$LINE" | |
9286 | else | |
9287 | no_cache=1 | |
9288 | fi | |
9289 | ||
9290 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
9291 | ||
9292 | fi; | |
9293 | ||
9294 | eval "$ac_cv_use_statbox" | |
9295 | if test "$no_cache" != 1; then | |
9296 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
9297 | fi | |
9298 | ||
9299 | if test "$wxUSE_STATBOX" = yes; then | |
9300 | echo "$as_me:$LINENO: result: yes" >&5 | |
9301 | echo "${ECHO_T}yes" >&6 | |
9302 | else | |
9303 | echo "$as_me:$LINENO: result: no" >&5 | |
9304 | echo "${ECHO_T}no" >&6 | |
9305 | fi | |
9306 | ||
9307 | ||
9308 | enablestring= | |
9309 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
9310 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
9311 | no_cache=0 | |
9312 | # Check whether --enable-statline or --disable-statline was given. | |
9313 | if test "${enable_statline+set}" = set; then | |
9314 | enableval="$enable_statline" | |
9315 | ||
9316 | if test "$enableval" = yes; then | |
9317 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
9318 | else | |
9319 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
9320 | fi | |
9321 | ||
9322 | else | |
9323 | ||
9324 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
9325 | if test "x$LINE" != x ; then | |
9326 | eval "DEFAULT_$LINE" | |
9327 | else | |
9328 | no_cache=1 | |
9329 | fi | |
9330 | ||
9331 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
9332 | ||
9333 | fi; | |
9334 | ||
9335 | eval "$ac_cv_use_statline" | |
9336 | if test "$no_cache" != 1; then | |
9337 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
9338 | fi | |
9339 | ||
9340 | if test "$wxUSE_STATLINE" = yes; then | |
9341 | echo "$as_me:$LINENO: result: yes" >&5 | |
9342 | echo "${ECHO_T}yes" >&6 | |
9343 | else | |
9344 | echo "$as_me:$LINENO: result: no" >&5 | |
9345 | echo "${ECHO_T}no" >&6 | |
9346 | fi | |
9347 | ||
9348 | ||
9349 | enablestring= | |
9350 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
9351 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
9352 | no_cache=0 | |
9353 | # Check whether --enable-stattext or --disable-stattext was given. | |
9354 | if test "${enable_stattext+set}" = set; then | |
9355 | enableval="$enable_stattext" | |
9356 | ||
9357 | if test "$enableval" = yes; then | |
9358 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
9359 | else | |
9360 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
9361 | fi | |
9362 | ||
9363 | else | |
9364 | ||
9365 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
9366 | if test "x$LINE" != x ; then | |
9367 | eval "DEFAULT_$LINE" | |
9368 | else | |
9369 | no_cache=1 | |
9370 | fi | |
9371 | ||
9372 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
9373 | ||
9374 | fi; | |
9375 | ||
9376 | eval "$ac_cv_use_stattext" | |
9377 | if test "$no_cache" != 1; then | |
9378 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
9379 | fi | |
9380 | ||
9381 | if test "$wxUSE_STATTEXT" = yes; then | |
9382 | echo "$as_me:$LINENO: result: yes" >&5 | |
9383 | echo "${ECHO_T}yes" >&6 | |
9384 | else | |
9385 | echo "$as_me:$LINENO: result: no" >&5 | |
9386 | echo "${ECHO_T}no" >&6 | |
9387 | fi | |
9388 | ||
9389 | ||
9390 | enablestring= | |
9391 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
9392 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
9393 | no_cache=0 | |
9394 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
9395 | if test "${enable_statusbar+set}" = set; then | |
9396 | enableval="$enable_statusbar" | |
9397 | ||
9398 | if test "$enableval" = yes; then | |
9399 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
9400 | else | |
9401 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
9402 | fi | |
9403 | ||
9404 | else | |
9405 | ||
9406 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
9407 | if test "x$LINE" != x ; then | |
9408 | eval "DEFAULT_$LINE" | |
9409 | else | |
9410 | no_cache=1 | |
9411 | fi | |
9412 | ||
9413 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
9414 | ||
9415 | fi; | |
9416 | ||
9417 | eval "$ac_cv_use_statusbar" | |
9418 | if test "$no_cache" != 1; then | |
9419 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
9420 | fi | |
9421 | ||
9422 | if test "$wxUSE_STATUSBAR" = yes; then | |
9423 | echo "$as_me:$LINENO: result: yes" >&5 | |
9424 | echo "${ECHO_T}yes" >&6 | |
9425 | else | |
9426 | echo "$as_me:$LINENO: result: no" >&5 | |
9427 | echo "${ECHO_T}no" >&6 | |
9428 | fi | |
9429 | ||
9430 | ||
9431 | enablestring= | |
9432 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
9433 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
9434 | no_cache=0 | |
9435 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
9436 | if test "${enable_tabdialog+set}" = set; then | |
9437 | enableval="$enable_tabdialog" | |
9438 | ||
9439 | if test "$enableval" = yes; then | |
f10e38c4 | 9440 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes' |
a848cd7e | 9441 | else |
f10e38c4 | 9442 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no' |
a848cd7e SC |
9443 | fi |
9444 | ||
9445 | else | |
9446 | ||
f10e38c4 | 9447 | LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}` |
a848cd7e SC |
9448 | if test "x$LINE" != x ; then |
9449 | eval "DEFAULT_$LINE" | |
9450 | else | |
9451 | no_cache=1 | |
9452 | fi | |
9453 | ||
f10e38c4 | 9454 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG |
a848cd7e SC |
9455 | |
9456 | fi; | |
9457 | ||
9458 | eval "$ac_cv_use_tabdialog" | |
9459 | if test "$no_cache" != 1; then | |
9460 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
9461 | fi | |
9462 | ||
f10e38c4 | 9463 | if test "$wxUSE_TAB_DIALOG" = yes; then |
a848cd7e SC |
9464 | echo "$as_me:$LINENO: result: yes" >&5 |
9465 | echo "${ECHO_T}yes" >&6 | |
9466 | else | |
9467 | echo "$as_me:$LINENO: result: no" >&5 | |
9468 | echo "${ECHO_T}no" >&6 | |
9469 | fi | |
9470 | ||
9471 | ||
9472 | enablestring= | |
9473 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
9474 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
9475 | no_cache=0 | |
9476 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
9477 | if test "${enable_textctrl+set}" = set; then | |
9478 | enableval="$enable_textctrl" | |
9479 | ||
9480 | if test "$enableval" = yes; then | |
9481 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
9482 | else | |
9483 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
9484 | fi | |
9485 | ||
9486 | else | |
9487 | ||
9488 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
9489 | if test "x$LINE" != x ; then | |
9490 | eval "DEFAULT_$LINE" | |
9491 | else | |
9492 | no_cache=1 | |
9493 | fi | |
9494 | ||
9495 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
9496 | ||
9497 | fi; | |
9498 | ||
9499 | eval "$ac_cv_use_textctrl" | |
9500 | if test "$no_cache" != 1; then | |
9501 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
9502 | fi | |
9503 | ||
9504 | if test "$wxUSE_TEXTCTRL" = yes; then | |
9505 | echo "$as_me:$LINENO: result: yes" >&5 | |
9506 | echo "${ECHO_T}yes" >&6 | |
9507 | else | |
9508 | echo "$as_me:$LINENO: result: no" >&5 | |
9509 | echo "${ECHO_T}no" >&6 | |
9510 | fi | |
9511 | ||
9512 | ||
9513 | enablestring= | |
9514 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
9515 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
9516 | no_cache=0 | |
9517 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
9518 | if test "${enable_togglebtn+set}" = set; then | |
9519 | enableval="$enable_togglebtn" | |
9520 | ||
9521 | if test "$enableval" = yes; then | |
9522 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
9523 | else | |
9524 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
9525 | fi | |
9526 | ||
9527 | else | |
9528 | ||
9529 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
9530 | if test "x$LINE" != x ; then | |
9531 | eval "DEFAULT_$LINE" | |
9532 | else | |
9533 | no_cache=1 | |
9534 | fi | |
9535 | ||
9536 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
9537 | ||
9538 | fi; | |
9539 | ||
9540 | eval "$ac_cv_use_togglebtn" | |
9541 | if test "$no_cache" != 1; then | |
9542 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
9543 | fi | |
9544 | ||
9545 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
9546 | echo "$as_me:$LINENO: result: yes" >&5 | |
9547 | echo "${ECHO_T}yes" >&6 | |
9548 | else | |
9549 | echo "$as_me:$LINENO: result: no" >&5 | |
9550 | echo "${ECHO_T}no" >&6 | |
9551 | fi | |
9552 | ||
9553 | ||
9554 | enablestring= | |
9555 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
9556 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
9557 | no_cache=0 | |
9558 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
9559 | if test "${enable_toolbar+set}" = set; then | |
9560 | enableval="$enable_toolbar" | |
9561 | ||
9562 | if test "$enableval" = yes; then | |
9563 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
9564 | else | |
9565 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
9566 | fi | |
9567 | ||
9568 | else | |
9569 | ||
9570 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
9571 | if test "x$LINE" != x ; then | |
9572 | eval "DEFAULT_$LINE" | |
9573 | else | |
9574 | no_cache=1 | |
9575 | fi | |
9576 | ||
9577 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
9578 | ||
9579 | fi; | |
9580 | ||
9581 | eval "$ac_cv_use_toolbar" | |
9582 | if test "$no_cache" != 1; then | |
9583 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
9584 | fi | |
9585 | ||
9586 | if test "$wxUSE_TOOLBAR" = yes; then | |
9587 | echo "$as_me:$LINENO: result: yes" >&5 | |
9588 | echo "${ECHO_T}yes" >&6 | |
9589 | else | |
9590 | echo "$as_me:$LINENO: result: no" >&5 | |
9591 | echo "${ECHO_T}no" >&6 | |
9592 | fi | |
9593 | ||
9594 | ||
9595 | enablestring= | |
9596 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
9597 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
9598 | no_cache=0 | |
9599 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
9600 | if test "${enable_tbarnative+set}" = set; then | |
9601 | enableval="$enable_tbarnative" | |
9602 | ||
9603 | if test "$enableval" = yes; then | |
9604 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
9605 | else | |
9606 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
9607 | fi | |
9608 | ||
9609 | else | |
9610 | ||
9611 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
9612 | if test "x$LINE" != x ; then | |
9613 | eval "DEFAULT_$LINE" | |
9614 | else | |
9615 | no_cache=1 | |
9616 | fi | |
9617 | ||
9618 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
9619 | ||
9620 | fi; | |
9621 | ||
9622 | eval "$ac_cv_use_tbarnative" | |
9623 | if test "$no_cache" != 1; then | |
9624 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
9625 | fi | |
9626 | ||
9627 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
9628 | echo "$as_me:$LINENO: result: yes" >&5 | |
9629 | echo "${ECHO_T}yes" >&6 | |
9630 | else | |
9631 | echo "$as_me:$LINENO: result: no" >&5 | |
9632 | echo "${ECHO_T}no" >&6 | |
9633 | fi | |
9634 | ||
9635 | ||
9636 | enablestring= | |
9637 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
9638 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
9639 | no_cache=0 | |
9640 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
9641 | if test "${enable_tbarsmpl+set}" = set; then | |
9642 | enableval="$enable_tbarsmpl" | |
9643 | ||
9644 | if test "$enableval" = yes; then | |
9645 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
9646 | else | |
9647 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
9648 | fi | |
9649 | ||
9650 | else | |
9651 | ||
9652 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
9653 | if test "x$LINE" != x ; then | |
9654 | eval "DEFAULT_$LINE" | |
9655 | else | |
9656 | no_cache=1 | |
9657 | fi | |
9658 | ||
9659 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
9660 | ||
9661 | fi; | |
9662 | ||
9663 | eval "$ac_cv_use_tbarsmpl" | |
9664 | if test "$no_cache" != 1; then | |
9665 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
9666 | fi | |
9667 | ||
9668 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
9669 | echo "$as_me:$LINENO: result: yes" >&5 | |
9670 | echo "${ECHO_T}yes" >&6 | |
9671 | else | |
9672 | echo "$as_me:$LINENO: result: no" >&5 | |
9673 | echo "${ECHO_T}no" >&6 | |
9674 | fi | |
9675 | ||
9676 | ||
0093c2fc VZ |
9677 | enablestring= |
9678 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5 | |
9679 | echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6 | |
9680 | no_cache=0 | |
9681 | # Check whether --enable-treebook or --disable-treebook was given. | |
9682 | if test "${enable_treebook+set}" = set; then | |
9683 | enableval="$enable_treebook" | |
9684 | ||
9685 | if test "$enableval" = yes; then | |
9686 | ac_cv_use_treebook='wxUSE_TREEBOOK=yes' | |
9687 | else | |
9688 | ac_cv_use_treebook='wxUSE_TREEBOOK=no' | |
9689 | fi | |
9690 | ||
9691 | else | |
9692 | ||
9693 | LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}` | |
9694 | if test "x$LINE" != x ; then | |
9695 | eval "DEFAULT_$LINE" | |
9696 | else | |
9697 | no_cache=1 | |
9698 | fi | |
9699 | ||
9700 | ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK | |
9701 | ||
9702 | fi; | |
9703 | ||
9704 | eval "$ac_cv_use_treebook" | |
9705 | if test "$no_cache" != 1; then | |
9706 | echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp | |
9707 | fi | |
9708 | ||
9709 | if test "$wxUSE_TREEBOOK" = yes; then | |
9710 | echo "$as_me:$LINENO: result: yes" >&5 | |
9711 | echo "${ECHO_T}yes" >&6 | |
9712 | else | |
9713 | echo "$as_me:$LINENO: result: no" >&5 | |
9714 | echo "${ECHO_T}no" >&6 | |
9715 | fi | |
9716 | ||
9717 | ||
5ec3bc43 JS |
9718 | enablestring= |
9719 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5 | |
9720 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6 | |
9721 | no_cache=0 | |
9722 | # Check whether --enable-toolbook or --disable-toolbook was given. | |
9723 | if test "${enable_toolbook+set}" = set; then | |
9724 | enableval="$enable_toolbook" | |
9725 | ||
9726 | if test "$enableval" = yes; then | |
9727 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes' | |
9728 | else | |
9729 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=no' | |
9730 | fi | |
9731 | ||
9732 | else | |
9733 | ||
9734 | LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}` | |
9735 | if test "x$LINE" != x ; then | |
9736 | eval "DEFAULT_$LINE" | |
9737 | else | |
9738 | no_cache=1 | |
9739 | fi | |
9740 | ||
9741 | ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK | |
9742 | ||
9743 | fi; | |
9744 | ||
9745 | eval "$ac_cv_use_toolbook" | |
9746 | if test "$no_cache" != 1; then | |
9747 | echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp | |
9748 | fi | |
9749 | ||
9750 | if test "$wxUSE_TOOLBOOK" = yes; then | |
9751 | echo "$as_me:$LINENO: result: yes" >&5 | |
9752 | echo "${ECHO_T}yes" >&6 | |
9753 | else | |
9754 | echo "$as_me:$LINENO: result: no" >&5 | |
9755 | echo "${ECHO_T}no" >&6 | |
9756 | fi | |
9757 | ||
9758 | ||
a848cd7e SC |
9759 | enablestring= |
9760 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
9761 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
9762 | no_cache=0 | |
9763 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
9764 | if test "${enable_treectrl+set}" = set; then | |
9765 | enableval="$enable_treectrl" | |
9766 | ||
9767 | if test "$enableval" = yes; then | |
9768 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
9769 | else | |
9770 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
9771 | fi | |
9772 | ||
9773 | else | |
9774 | ||
9775 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
9776 | if test "x$LINE" != x ; then | |
9777 | eval "DEFAULT_$LINE" | |
9778 | else | |
9779 | no_cache=1 | |
9780 | fi | |
9781 | ||
9782 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
9783 | ||
9784 | fi; | |
9785 | ||
9786 | eval "$ac_cv_use_treectrl" | |
9787 | if test "$no_cache" != 1; then | |
9788 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
9789 | fi | |
9790 | ||
9791 | if test "$wxUSE_TREECTRL" = yes; then | |
9792 | echo "$as_me:$LINENO: result: yes" >&5 | |
9793 | echo "${ECHO_T}yes" >&6 | |
9794 | else | |
9795 | echo "$as_me:$LINENO: result: no" >&5 | |
9796 | echo "${ECHO_T}no" >&6 | |
9797 | fi | |
9798 | ||
9799 | ||
9800 | enablestring= | |
9801 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
9802 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9803 | no_cache=0 | |
9804 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
9805 | if test "${enable_tipwindow+set}" = set; then | |
9806 | enableval="$enable_tipwindow" | |
9807 | ||
9808 | if test "$enableval" = yes; then | |
9809 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
9810 | else | |
9811 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
9812 | fi | |
9813 | ||
9814 | else | |
9815 | ||
9816 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
9817 | if test "x$LINE" != x ; then | |
9818 | eval "DEFAULT_$LINE" | |
9819 | else | |
9820 | no_cache=1 | |
9821 | fi | |
9822 | ||
9823 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9824 | ||
9825 | fi; | |
9826 | ||
9827 | eval "$ac_cv_use_tipwindow" | |
9828 | if test "$no_cache" != 1; then | |
9829 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
9830 | fi | |
9831 | ||
9832 | if test "$wxUSE_TIPWINDOW" = yes; then | |
9833 | echo "$as_me:$LINENO: result: yes" >&5 | |
9834 | echo "${ECHO_T}yes" >&6 | |
9835 | else | |
9836 | echo "$as_me:$LINENO: result: no" >&5 | |
9837 | echo "${ECHO_T}no" >&6 | |
9838 | fi | |
9839 | ||
9840 | ||
9841 | enablestring= | |
9842 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
9843 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9844 | no_cache=0 | |
9845 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
9846 | if test "${enable_popupwin+set}" = set; then | |
9847 | enableval="$enable_popupwin" | |
9848 | ||
9849 | if test "$enableval" = yes; then | |
9850 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
9851 | else | |
9852 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
9853 | fi | |
9854 | ||
9855 | else | |
9856 | ||
9857 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9858 | if test "x$LINE" != x ; then | |
9859 | eval "DEFAULT_$LINE" | |
9860 | else | |
9861 | no_cache=1 | |
9862 | fi | |
9863 | ||
9864 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9865 | ||
9866 | fi; | |
9867 | ||
9868 | eval "$ac_cv_use_popupwin" | |
9869 | if test "$no_cache" != 1; then | |
9870 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9871 | fi | |
9872 | ||
9873 | if test "$wxUSE_POPUPWIN" = yes; then | |
9874 | echo "$as_me:$LINENO: result: yes" >&5 | |
9875 | echo "${ECHO_T}yes" >&6 | |
9876 | else | |
9877 | echo "$as_me:$LINENO: result: no" >&5 | |
9878 | echo "${ECHO_T}no" >&6 | |
9879 | fi | |
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | enablestring= | |
9885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9886 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9887 | no_cache=0 | |
9888 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9889 | if test "${enable_commondlg+set}" = set; then | |
9890 | enableval="$enable_commondlg" | |
9891 | ||
9892 | if test "$enableval" = yes; then | |
9893 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9894 | else | |
9895 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9896 | fi | |
9897 | ||
9898 | else | |
9899 | ||
9900 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9901 | if test "x$LINE" != x ; then | |
9902 | eval "DEFAULT_$LINE" | |
9903 | else | |
9904 | no_cache=1 | |
9905 | fi | |
9906 | ||
9907 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9908 | ||
9909 | fi; | |
9910 | ||
9911 | eval "$ac_cv_use_commondlg" | |
9912 | if test "$no_cache" != 1; then | |
9913 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9914 | fi | |
9915 | ||
9916 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9917 | echo "$as_me:$LINENO: result: yes" >&5 | |
9918 | echo "${ECHO_T}yes" >&6 | |
9919 | else | |
9920 | echo "$as_me:$LINENO: result: no" >&5 | |
9921 | echo "${ECHO_T}no" >&6 | |
9922 | fi | |
9923 | ||
9924 | ||
9925 | enablestring= | |
9926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9927 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9928 | no_cache=0 | |
9929 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9930 | if test "${enable_choicedlg+set}" = set; then | |
9931 | enableval="$enable_choicedlg" | |
9932 | ||
9933 | if test "$enableval" = yes; then | |
9934 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9935 | else | |
9936 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9937 | fi | |
9938 | ||
9939 | else | |
9940 | ||
9941 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9942 | if test "x$LINE" != x ; then | |
9943 | eval "DEFAULT_$LINE" | |
9944 | else | |
9945 | no_cache=1 | |
9946 | fi | |
9947 | ||
9948 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9949 | ||
9950 | fi; | |
9951 | ||
9952 | eval "$ac_cv_use_choicedlg" | |
9953 | if test "$no_cache" != 1; then | |
9954 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9955 | fi | |
9956 | ||
9957 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9958 | echo "$as_me:$LINENO: result: yes" >&5 | |
9959 | echo "${ECHO_T}yes" >&6 | |
9960 | else | |
9961 | echo "$as_me:$LINENO: result: no" >&5 | |
9962 | echo "${ECHO_T}no" >&6 | |
9963 | fi | |
9964 | ||
9965 | ||
9966 | enablestring= | |
9967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9968 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9969 | no_cache=0 | |
9970 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9971 | if test "${enable_coldlg+set}" = set; then | |
9972 | enableval="$enable_coldlg" | |
9973 | ||
9974 | if test "$enableval" = yes; then | |
9975 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9976 | else | |
9977 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9978 | fi | |
9979 | ||
9980 | else | |
9981 | ||
9982 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9983 | if test "x$LINE" != x ; then | |
9984 | eval "DEFAULT_$LINE" | |
9985 | else | |
9986 | no_cache=1 | |
9987 | fi | |
9988 | ||
9989 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9990 | ||
9991 | fi; | |
9992 | ||
9993 | eval "$ac_cv_use_coldlg" | |
9994 | if test "$no_cache" != 1; then | |
9995 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9996 | fi | |
9997 | ||
9998 | if test "$wxUSE_COLOURDLG" = yes; then | |
9999 | echo "$as_me:$LINENO: result: yes" >&5 | |
10000 | echo "${ECHO_T}yes" >&6 | |
10001 | else | |
10002 | echo "$as_me:$LINENO: result: no" >&5 | |
10003 | echo "${ECHO_T}no" >&6 | |
10004 | fi | |
10005 | ||
10006 | ||
10007 | enablestring= | |
10008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
10009 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
10010 | no_cache=0 | |
10011 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
10012 | if test "${enable_filedlg+set}" = set; then | |
10013 | enableval="$enable_filedlg" | |
10014 | ||
10015 | if test "$enableval" = yes; then | |
10016 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
10017 | else | |
10018 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
10019 | fi | |
10020 | ||
10021 | else | |
10022 | ||
10023 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
10024 | if test "x$LINE" != x ; then | |
10025 | eval "DEFAULT_$LINE" | |
10026 | else | |
10027 | no_cache=1 | |
10028 | fi | |
10029 | ||
10030 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
10031 | ||
10032 | fi; | |
10033 | ||
10034 | eval "$ac_cv_use_filedlg" | |
10035 | if test "$no_cache" != 1; then | |
10036 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
10037 | fi | |
10038 | ||
10039 | if test "$wxUSE_FILEDLG" = yes; then | |
10040 | echo "$as_me:$LINENO: result: yes" >&5 | |
10041 | echo "${ECHO_T}yes" >&6 | |
10042 | else | |
10043 | echo "$as_me:$LINENO: result: no" >&5 | |
10044 | echo "${ECHO_T}no" >&6 | |
10045 | fi | |
10046 | ||
10047 | ||
10048 | enablestring= | |
10049 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
10050 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
10051 | no_cache=0 | |
10052 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
10053 | if test "${enable_finddlg+set}" = set; then | |
10054 | enableval="$enable_finddlg" | |
10055 | ||
10056 | if test "$enableval" = yes; then | |
10057 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
10058 | else | |
10059 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
10060 | fi | |
10061 | ||
10062 | else | |
10063 | ||
10064 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
10065 | if test "x$LINE" != x ; then | |
10066 | eval "DEFAULT_$LINE" | |
10067 | else | |
10068 | no_cache=1 | |
10069 | fi | |
10070 | ||
10071 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
10072 | ||
10073 | fi; | |
10074 | ||
10075 | eval "$ac_cv_use_finddlg" | |
10076 | if test "$no_cache" != 1; then | |
10077 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
10078 | fi | |
10079 | ||
10080 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
10081 | echo "$as_me:$LINENO: result: yes" >&5 | |
10082 | echo "${ECHO_T}yes" >&6 | |
10083 | else | |
10084 | echo "$as_me:$LINENO: result: no" >&5 | |
10085 | echo "${ECHO_T}no" >&6 | |
10086 | fi | |
10087 | ||
10088 | ||
10089 | enablestring= | |
10090 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
10091 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
10092 | no_cache=0 | |
10093 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
10094 | if test "${enable_fontdlg+set}" = set; then | |
10095 | enableval="$enable_fontdlg" | |
10096 | ||
10097 | if test "$enableval" = yes; then | |
10098 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
10099 | else | |
10100 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
10101 | fi | |
10102 | ||
10103 | else | |
10104 | ||
10105 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
10106 | if test "x$LINE" != x ; then | |
10107 | eval "DEFAULT_$LINE" | |
10108 | else | |
10109 | no_cache=1 | |
10110 | fi | |
10111 | ||
10112 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
10113 | ||
10114 | fi; | |
10115 | ||
10116 | eval "$ac_cv_use_fontdlg" | |
10117 | if test "$no_cache" != 1; then | |
10118 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
10119 | fi | |
10120 | ||
10121 | if test "$wxUSE_FONTDLG" = yes; then | |
10122 | echo "$as_me:$LINENO: result: yes" >&5 | |
10123 | echo "${ECHO_T}yes" >&6 | |
10124 | else | |
10125 | echo "$as_me:$LINENO: result: no" >&5 | |
10126 | echo "${ECHO_T}no" >&6 | |
10127 | fi | |
10128 | ||
10129 | ||
10130 | enablestring= | |
10131 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
10132 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
10133 | no_cache=0 | |
10134 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
10135 | if test "${enable_dirdlg+set}" = set; then | |
10136 | enableval="$enable_dirdlg" | |
10137 | ||
10138 | if test "$enableval" = yes; then | |
10139 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
10140 | else | |
10141 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
10142 | fi | |
10143 | ||
10144 | else | |
10145 | ||
10146 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
10147 | if test "x$LINE" != x ; then | |
10148 | eval "DEFAULT_$LINE" | |
10149 | else | |
10150 | no_cache=1 | |
10151 | fi | |
10152 | ||
10153 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
10154 | ||
10155 | fi; | |
10156 | ||
10157 | eval "$ac_cv_use_dirdlg" | |
10158 | if test "$no_cache" != 1; then | |
10159 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
10160 | fi | |
10161 | ||
10162 | if test "$wxUSE_DIRDLG" = yes; then | |
10163 | echo "$as_me:$LINENO: result: yes" >&5 | |
10164 | echo "${ECHO_T}yes" >&6 | |
10165 | else | |
10166 | echo "$as_me:$LINENO: result: no" >&5 | |
10167 | echo "${ECHO_T}no" >&6 | |
10168 | fi | |
10169 | ||
10170 | ||
10171 | enablestring= | |
10172 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
10173 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10174 | no_cache=0 | |
10175 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
10176 | if test "${enable_msgdlg+set}" = set; then | |
10177 | enableval="$enable_msgdlg" | |
10178 | ||
10179 | if test "$enableval" = yes; then | |
10180 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
10181 | else | |
10182 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
10183 | fi | |
10184 | ||
10185 | else | |
10186 | ||
10187 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
10188 | if test "x$LINE" != x ; then | |
10189 | eval "DEFAULT_$LINE" | |
10190 | else | |
10191 | no_cache=1 | |
10192 | fi | |
10193 | ||
10194 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
10195 | ||
10196 | fi; | |
10197 | ||
10198 | eval "$ac_cv_use_msgdlg" | |
10199 | if test "$no_cache" != 1; then | |
10200 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
10201 | fi | |
10202 | ||
10203 | if test "$wxUSE_MSGDLG" = yes; then | |
10204 | echo "$as_me:$LINENO: result: yes" >&5 | |
10205 | echo "${ECHO_T}yes" >&6 | |
10206 | else | |
10207 | echo "$as_me:$LINENO: result: no" >&5 | |
10208 | echo "${ECHO_T}no" >&6 | |
10209 | fi | |
10210 | ||
10211 | ||
10212 | enablestring= | |
10213 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
10214 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10215 | no_cache=0 | |
10216 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
10217 | if test "${enable_numberdlg+set}" = set; then | |
10218 | enableval="$enable_numberdlg" | |
10219 | ||
10220 | if test "$enableval" = yes; then | |
10221 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
10222 | else | |
10223 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
10224 | fi | |
10225 | ||
10226 | else | |
10227 | ||
10228 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
10229 | if test "x$LINE" != x ; then | |
10230 | eval "DEFAULT_$LINE" | |
10231 | else | |
10232 | no_cache=1 | |
10233 | fi | |
10234 | ||
10235 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
10236 | ||
10237 | fi; | |
10238 | ||
10239 | eval "$ac_cv_use_numberdlg" | |
10240 | if test "$no_cache" != 1; then | |
10241 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
10242 | fi | |
10243 | ||
10244 | if test "$wxUSE_NUMBERDLG" = yes; then | |
10245 | echo "$as_me:$LINENO: result: yes" >&5 | |
10246 | echo "${ECHO_T}yes" >&6 | |
10247 | else | |
10248 | echo "$as_me:$LINENO: result: no" >&5 | |
10249 | echo "${ECHO_T}no" >&6 | |
10250 | fi | |
10251 | ||
10252 | ||
10253 | enablestring= | |
10254 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
10255 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
10256 | no_cache=0 | |
10257 | # Check whether --enable-splash or --disable-splash was given. | |
10258 | if test "${enable_splash+set}" = set; then | |
10259 | enableval="$enable_splash" | |
10260 | ||
10261 | if test "$enableval" = yes; then | |
10262 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
10263 | else | |
10264 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
10265 | fi | |
10266 | ||
10267 | else | |
10268 | ||
10269 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
10270 | if test "x$LINE" != x ; then | |
10271 | eval "DEFAULT_$LINE" | |
10272 | else | |
10273 | no_cache=1 | |
10274 | fi | |
10275 | ||
10276 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
10277 | ||
10278 | fi; | |
10279 | ||
10280 | eval "$ac_cv_use_splash" | |
10281 | if test "$no_cache" != 1; then | |
10282 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
10283 | fi | |
10284 | ||
10285 | if test "$wxUSE_SPLASH" = yes; then | |
10286 | echo "$as_me:$LINENO: result: yes" >&5 | |
10287 | echo "${ECHO_T}yes" >&6 | |
10288 | else | |
10289 | echo "$as_me:$LINENO: result: no" >&5 | |
10290 | echo "${ECHO_T}no" >&6 | |
10291 | fi | |
10292 | ||
10293 | ||
10294 | enablestring= | |
10295 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
10296 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10297 | no_cache=0 | |
10298 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
10299 | if test "${enable_textdlg+set}" = set; then | |
10300 | enableval="$enable_textdlg" | |
10301 | ||
10302 | if test "$enableval" = yes; then | |
10303 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
10304 | else | |
10305 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
10306 | fi | |
10307 | ||
10308 | else | |
10309 | ||
10310 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
10311 | if test "x$LINE" != x ; then | |
10312 | eval "DEFAULT_$LINE" | |
10313 | else | |
10314 | no_cache=1 | |
10315 | fi | |
10316 | ||
10317 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10318 | ||
10319 | fi; | |
10320 | ||
10321 | eval "$ac_cv_use_textdlg" | |
10322 | if test "$no_cache" != 1; then | |
10323 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
10324 | fi | |
10325 | ||
10326 | if test "$wxUSE_TEXTDLG" = yes; then | |
10327 | echo "$as_me:$LINENO: result: yes" >&5 | |
10328 | echo "${ECHO_T}yes" >&6 | |
10329 | else | |
10330 | echo "$as_me:$LINENO: result: no" >&5 | |
10331 | echo "${ECHO_T}no" >&6 | |
10332 | fi | |
10333 | ||
10334 | ||
10335 | enablestring= | |
10336 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
10337 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10338 | no_cache=0 | |
10339 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
10340 | if test "${enable_tipdlg+set}" = set; then | |
10341 | enableval="$enable_tipdlg" | |
10342 | ||
10343 | if test "$enableval" = yes; then | |
10344 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
10345 | else | |
10346 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
10347 | fi | |
10348 | ||
10349 | else | |
10350 | ||
10351 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
10352 | if test "x$LINE" != x ; then | |
10353 | eval "DEFAULT_$LINE" | |
10354 | else | |
10355 | no_cache=1 | |
10356 | fi | |
10357 | ||
10358 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10359 | ||
10360 | fi; | |
10361 | ||
10362 | eval "$ac_cv_use_tipdlg" | |
10363 | if test "$no_cache" != 1; then | |
10364 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
10365 | fi | |
10366 | ||
10367 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
10368 | echo "$as_me:$LINENO: result: yes" >&5 | |
10369 | echo "${ECHO_T}yes" >&6 | |
10370 | else | |
10371 | echo "$as_me:$LINENO: result: no" >&5 | |
10372 | echo "${ECHO_T}no" >&6 | |
10373 | fi | |
10374 | ||
10375 | ||
10376 | enablestring= | |
10377 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
10378 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10379 | no_cache=0 | |
10380 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
10381 | if test "${enable_progressdlg+set}" = set; then | |
10382 | enableval="$enable_progressdlg" | |
10383 | ||
10384 | if test "$enableval" = yes; then | |
10385 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
10386 | else | |
10387 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
10388 | fi | |
10389 | ||
10390 | else | |
10391 | ||
10392 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
10393 | if test "x$LINE" != x ; then | |
10394 | eval "DEFAULT_$LINE" | |
10395 | else | |
10396 | no_cache=1 | |
10397 | fi | |
10398 | ||
10399 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10400 | ||
10401 | fi; | |
10402 | ||
10403 | eval "$ac_cv_use_progressdlg" | |
10404 | if test "$no_cache" != 1; then | |
10405 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
10406 | fi | |
10407 | ||
10408 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
10409 | echo "$as_me:$LINENO: result: yes" >&5 | |
10410 | echo "${ECHO_T}yes" >&6 | |
10411 | else | |
10412 | echo "$as_me:$LINENO: result: no" >&5 | |
10413 | echo "${ECHO_T}no" >&6 | |
10414 | fi | |
10415 | ||
10416 | ||
10417 | enablestring= | |
10418 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
10419 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
10420 | no_cache=0 | |
10421 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
10422 | if test "${enable_wizarddlg+set}" = set; then | |
10423 | enableval="$enable_wizarddlg" | |
10424 | ||
10425 | if test "$enableval" = yes; then | |
10426 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
10427 | else | |
10428 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
10429 | fi | |
10430 | ||
10431 | else | |
10432 | ||
10433 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
10434 | if test "x$LINE" != x ; then | |
10435 | eval "DEFAULT_$LINE" | |
10436 | else | |
10437 | no_cache=1 | |
10438 | fi | |
10439 | ||
10440 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
10441 | ||
10442 | fi; | |
10443 | ||
10444 | eval "$ac_cv_use_wizarddlg" | |
10445 | if test "$no_cache" != 1; then | |
10446 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
10447 | fi | |
10448 | ||
10449 | if test "$wxUSE_WIZARDDLG" = yes; then | |
10450 | echo "$as_me:$LINENO: result: yes" >&5 | |
10451 | echo "${ECHO_T}yes" >&6 | |
10452 | else | |
10453 | echo "$as_me:$LINENO: result: no" >&5 | |
10454 | echo "${ECHO_T}no" >&6 | |
10455 | fi | |
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | enablestring= | |
10461 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
10462 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
10463 | no_cache=0 | |
10464 | # Check whether --enable-menus or --disable-menus was given. | |
10465 | if test "${enable_menus+set}" = set; then | |
10466 | enableval="$enable_menus" | |
10467 | ||
10468 | if test "$enableval" = yes; then | |
10469 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
10470 | else | |
10471 | ac_cv_use_menus='wxUSE_MENUS=no' | |
10472 | fi | |
10473 | ||
10474 | else | |
10475 | ||
10476 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
10477 | if test "x$LINE" != x ; then | |
10478 | eval "DEFAULT_$LINE" | |
10479 | else | |
10480 | no_cache=1 | |
10481 | fi | |
10482 | ||
10483 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
10484 | ||
10485 | fi; | |
10486 | ||
10487 | eval "$ac_cv_use_menus" | |
10488 | if test "$no_cache" != 1; then | |
10489 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
10490 | fi | |
10491 | ||
10492 | if test "$wxUSE_MENUS" = yes; then | |
10493 | echo "$as_me:$LINENO: result: yes" >&5 | |
10494 | echo "${ECHO_T}yes" >&6 | |
10495 | else | |
10496 | echo "$as_me:$LINENO: result: no" >&5 | |
10497 | echo "${ECHO_T}no" >&6 | |
10498 | fi | |
10499 | ||
10500 | ||
10501 | enablestring= | |
10502 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
10503 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10504 | no_cache=0 | |
10505 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
10506 | if test "${enable_miniframe+set}" = set; then | |
10507 | enableval="$enable_miniframe" | |
10508 | ||
10509 | if test "$enableval" = yes; then | |
10510 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
10511 | else | |
10512 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
10513 | fi | |
10514 | ||
10515 | else | |
10516 | ||
10517 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
10518 | if test "x$LINE" != x ; then | |
10519 | eval "DEFAULT_$LINE" | |
10520 | else | |
10521 | no_cache=1 | |
10522 | fi | |
10523 | ||
10524 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10525 | ||
10526 | fi; | |
10527 | ||
10528 | eval "$ac_cv_use_miniframe" | |
10529 | if test "$no_cache" != 1; then | |
10530 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
10531 | fi | |
10532 | ||
10533 | if test "$wxUSE_MINIFRAME" = yes; then | |
10534 | echo "$as_me:$LINENO: result: yes" >&5 | |
10535 | echo "${ECHO_T}yes" >&6 | |
10536 | else | |
10537 | echo "$as_me:$LINENO: result: no" >&5 | |
10538 | echo "${ECHO_T}no" >&6 | |
10539 | fi | |
10540 | ||
10541 | ||
10542 | enablestring= | |
10543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
10544 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10545 | no_cache=0 | |
10546 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
10547 | if test "${enable_tooltips+set}" = set; then | |
10548 | enableval="$enable_tooltips" | |
10549 | ||
10550 | if test "$enableval" = yes; then | |
10551 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
10552 | else | |
10553 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
10554 | fi | |
10555 | ||
10556 | else | |
10557 | ||
10558 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
10559 | if test "x$LINE" != x ; then | |
10560 | eval "DEFAULT_$LINE" | |
10561 | else | |
10562 | no_cache=1 | |
10563 | fi | |
10564 | ||
10565 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10566 | ||
10567 | fi; | |
10568 | ||
10569 | eval "$ac_cv_use_tooltips" | |
10570 | if test "$no_cache" != 1; then | |
10571 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
10572 | fi | |
10573 | ||
10574 | if test "$wxUSE_TOOLTIPS" = yes; then | |
10575 | echo "$as_me:$LINENO: result: yes" >&5 | |
10576 | echo "${ECHO_T}yes" >&6 | |
10577 | else | |
10578 | echo "$as_me:$LINENO: result: no" >&5 | |
10579 | echo "${ECHO_T}no" >&6 | |
10580 | fi | |
10581 | ||
10582 | ||
10583 | enablestring= | |
10584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
10585 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10586 | no_cache=0 | |
10587 | # Check whether --enable-splines or --disable-splines was given. | |
10588 | if test "${enable_splines+set}" = set; then | |
10589 | enableval="$enable_splines" | |
10590 | ||
10591 | if test "$enableval" = yes; then | |
10592 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
10593 | else | |
10594 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
10595 | fi | |
10596 | ||
10597 | else | |
10598 | ||
10599 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
10600 | if test "x$LINE" != x ; then | |
10601 | eval "DEFAULT_$LINE" | |
10602 | else | |
10603 | no_cache=1 | |
10604 | fi | |
10605 | ||
10606 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10607 | ||
10608 | fi; | |
10609 | ||
10610 | eval "$ac_cv_use_splines" | |
10611 | if test "$no_cache" != 1; then | |
10612 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
10613 | fi | |
10614 | ||
10615 | if test "$wxUSE_SPLINES" = yes; then | |
10616 | echo "$as_me:$LINENO: result: yes" >&5 | |
10617 | echo "${ECHO_T}yes" >&6 | |
10618 | else | |
10619 | echo "$as_me:$LINENO: result: no" >&5 | |
10620 | echo "${ECHO_T}no" >&6 | |
10621 | fi | |
10622 | ||
10623 | ||
fbe2ca43 SN |
10624 | enablestring= |
10625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
10626 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
10627 | no_cache=0 | |
10628 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
10629 | if test "${enable_mousewheel+set}" = set; then | |
10630 | enableval="$enable_mousewheel" | |
10631 | ||
10632 | if test "$enableval" = yes; then | |
10633 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
10634 | else | |
10635 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
10636 | fi | |
10637 | ||
10638 | else | |
10639 | ||
10640 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
10641 | if test "x$LINE" != x ; then | |
10642 | eval "DEFAULT_$LINE" | |
10643 | else | |
10644 | no_cache=1 | |
10645 | fi | |
10646 | ||
10647 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
10648 | ||
10649 | fi; | |
10650 | ||
10651 | eval "$ac_cv_use_mousewheel" | |
10652 | if test "$no_cache" != 1; then | |
10653 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
10654 | fi | |
10655 | ||
10656 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
10657 | echo "$as_me:$LINENO: result: yes" >&5 | |
10658 | echo "${ECHO_T}yes" >&6 | |
10659 | else | |
10660 | echo "$as_me:$LINENO: result: no" >&5 | |
10661 | echo "${ECHO_T}no" >&6 | |
10662 | fi | |
10663 | ||
10664 | ||
a848cd7e SC |
10665 | enablestring= |
10666 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
10667 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10668 | no_cache=0 | |
10669 | # Check whether --enable-validators or --disable-validators was given. | |
10670 | if test "${enable_validators+set}" = set; then | |
10671 | enableval="$enable_validators" | |
10672 | ||
10673 | if test "$enableval" = yes; then | |
10674 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
10675 | else | |
10676 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
10677 | fi | |
10678 | ||
10679 | else | |
10680 | ||
10681 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
10682 | if test "x$LINE" != x ; then | |
10683 | eval "DEFAULT_$LINE" | |
10684 | else | |
10685 | no_cache=1 | |
10686 | fi | |
10687 | ||
10688 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10689 | ||
10690 | fi; | |
10691 | ||
10692 | eval "$ac_cv_use_validators" | |
10693 | if test "$no_cache" != 1; then | |
10694 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
10695 | fi | |
10696 | ||
10697 | if test "$wxUSE_VALIDATORS" = yes; then | |
10698 | echo "$as_me:$LINENO: result: yes" >&5 | |
10699 | echo "${ECHO_T}yes" >&6 | |
10700 | else | |
10701 | echo "$as_me:$LINENO: result: no" >&5 | |
10702 | echo "${ECHO_T}no" >&6 | |
10703 | fi | |
10704 | ||
10705 | ||
10706 | enablestring= | |
10707 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
10708 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10709 | no_cache=0 | |
10710 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
10711 | if test "${enable_busyinfo+set}" = set; then | |
10712 | enableval="$enable_busyinfo" | |
10713 | ||
10714 | if test "$enableval" = yes; then | |
10715 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
10716 | else | |
10717 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
10718 | fi | |
10719 | ||
10720 | else | |
10721 | ||
10722 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
10723 | if test "x$LINE" != x ; then | |
10724 | eval "DEFAULT_$LINE" | |
10725 | else | |
10726 | no_cache=1 | |
10727 | fi | |
10728 | ||
10729 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10730 | ||
10731 | fi; | |
10732 | ||
10733 | eval "$ac_cv_use_busyinfo" | |
10734 | if test "$no_cache" != 1; then | |
10735 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
10736 | fi | |
10737 | ||
10738 | if test "$wxUSE_BUSYINFO" = yes; then | |
10739 | echo "$as_me:$LINENO: result: yes" >&5 | |
10740 | echo "${ECHO_T}yes" >&6 | |
10741 | else | |
10742 | echo "$as_me:$LINENO: result: no" >&5 | |
10743 | echo "${ECHO_T}no" >&6 | |
10744 | fi | |
10745 | ||
10746 | ||
10747 | enablestring= | |
10748 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
10749 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
10750 | no_cache=0 | |
10751 | # Check whether --enable-joystick or --disable-joystick was given. | |
10752 | if test "${enable_joystick+set}" = set; then | |
10753 | enableval="$enable_joystick" | |
10754 | ||
10755 | if test "$enableval" = yes; then | |
10756 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
10757 | else | |
10758 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
10759 | fi | |
10760 | ||
10761 | else | |
10762 | ||
10763 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
10764 | if test "x$LINE" != x ; then | |
10765 | eval "DEFAULT_$LINE" | |
10766 | else | |
10767 | no_cache=1 | |
10768 | fi | |
10769 | ||
10770 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
10771 | ||
10772 | fi; | |
10773 | ||
10774 | eval "$ac_cv_use_joystick" | |
10775 | if test "$no_cache" != 1; then | |
10776 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
10777 | fi | |
10778 | ||
10779 | if test "$wxUSE_JOYSTICK" = yes; then | |
10780 | echo "$as_me:$LINENO: result: yes" >&5 | |
10781 | echo "${ECHO_T}yes" >&6 | |
10782 | else | |
10783 | echo "$as_me:$LINENO: result: no" >&5 | |
10784 | echo "${ECHO_T}no" >&6 | |
10785 | fi | |
10786 | ||
10787 | ||
10788 | enablestring= | |
10789 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
10790 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
10791 | no_cache=0 | |
10792 | # Check whether --enable-metafile or --disable-metafile was given. | |
10793 | if test "${enable_metafile+set}" = set; then | |
10794 | enableval="$enable_metafile" | |
10795 | ||
10796 | if test "$enableval" = yes; then | |
10797 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
10798 | else | |
10799 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
10800 | fi | |
10801 | ||
10802 | else | |
10803 | ||
10804 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
10805 | if test "x$LINE" != x ; then | |
10806 | eval "DEFAULT_$LINE" | |
10807 | else | |
10808 | no_cache=1 | |
10809 | fi | |
10810 | ||
10811 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
10812 | ||
10813 | fi; | |
10814 | ||
10815 | eval "$ac_cv_use_metafile" | |
10816 | if test "$no_cache" != 1; then | |
10817 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
10818 | fi | |
10819 | ||
10820 | if test "$wxUSE_METAFILE" = yes; then | |
10821 | echo "$as_me:$LINENO: result: yes" >&5 | |
10822 | echo "${ECHO_T}yes" >&6 | |
10823 | else | |
10824 | echo "$as_me:$LINENO: result: no" >&5 | |
10825 | echo "${ECHO_T}no" >&6 | |
10826 | fi | |
10827 | ||
10828 | ||
10829 | enablestring= | |
10830 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
10831 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
10832 | no_cache=0 | |
10833 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
10834 | if test "${enable_dragimage+set}" = set; then | |
10835 | enableval="$enable_dragimage" | |
10836 | ||
10837 | if test "$enableval" = yes; then | |
10838 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
10839 | else | |
10840 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
10841 | fi | |
10842 | ||
10843 | else | |
10844 | ||
10845 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
10846 | if test "x$LINE" != x ; then | |
10847 | eval "DEFAULT_$LINE" | |
10848 | else | |
10849 | no_cache=1 | |
10850 | fi | |
10851 | ||
10852 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
10853 | ||
10854 | fi; | |
10855 | ||
10856 | eval "$ac_cv_use_dragimage" | |
10857 | if test "$no_cache" != 1; then | |
10858 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10859 | fi | |
10860 | ||
10861 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10862 | echo "$as_me:$LINENO: result: yes" >&5 | |
10863 | echo "${ECHO_T}yes" >&6 | |
10864 | else | |
10865 | echo "$as_me:$LINENO: result: no" >&5 | |
10866 | echo "${ECHO_T}no" >&6 | |
10867 | fi | |
10868 | ||
10869 | ||
10870 | enablestring= | |
10871 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10872 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10873 | no_cache=0 | |
10874 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10875 | if test "${enable_accessibility+set}" = set; then | |
10876 | enableval="$enable_accessibility" | |
10877 | ||
10878 | if test "$enableval" = yes; then | |
10879 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10880 | else | |
10881 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10882 | fi | |
10883 | ||
10884 | else | |
10885 | ||
10886 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10887 | if test "x$LINE" != x ; then | |
10888 | eval "DEFAULT_$LINE" | |
10889 | else | |
10890 | no_cache=1 | |
10891 | fi | |
10892 | ||
10893 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10894 | ||
10895 | fi; | |
10896 | ||
10897 | eval "$ac_cv_use_accessibility" | |
10898 | if test "$no_cache" != 1; then | |
10899 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10900 | fi | |
10901 | ||
10902 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10903 | echo "$as_me:$LINENO: result: yes" >&5 | |
10904 | echo "${ECHO_T}yes" >&6 | |
10905 | else | |
10906 | echo "$as_me:$LINENO: result: no" >&5 | |
10907 | echo "${ECHO_T}no" >&6 | |
10908 | fi | |
10909 | ||
10910 | ||
38b4a946 VZ |
10911 | if test "$wxUSE_MSW" = "1"; then |
10912 | ||
10913 | enablestring= | |
10914 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10915 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10916 | no_cache=0 | |
10917 | # Check whether --enable-dccache or --disable-dccache was given. | |
10918 | if test "${enable_dccache+set}" = set; then | |
10919 | enableval="$enable_dccache" | |
10920 | ||
10921 | if test "$enableval" = yes; then | |
10922 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10923 | else | |
10924 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10925 | fi | |
10926 | ||
10927 | else | |
10928 | ||
10929 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10930 | if test "x$LINE" != x ; then | |
10931 | eval "DEFAULT_$LINE" | |
10932 | else | |
10933 | no_cache=1 | |
10934 | fi | |
10935 | ||
10936 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10937 | ||
10938 | fi; | |
10939 | ||
10940 | eval "$ac_cv_use_dccache" | |
10941 | if test "$no_cache" != 1; then | |
10942 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10943 | fi | |
10944 | ||
10945 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10946 | echo "$as_me:$LINENO: result: yes" >&5 | |
10947 | echo "${ECHO_T}yes" >&6 | |
10948 | else | |
10949 | echo "$as_me:$LINENO: result: no" >&5 | |
10950 | echo "${ECHO_T}no" >&6 | |
10951 | fi | |
10952 | ||
10953 | fi | |
10954 | ||
a848cd7e SC |
10955 | |
10956 | ||
10957 | enablestring= | |
10958 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10959 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10960 | no_cache=0 | |
10961 | # Check whether --enable-palette or --disable-palette was given. | |
10962 | if test "${enable_palette+set}" = set; then | |
10963 | enableval="$enable_palette" | |
10964 | ||
10965 | if test "$enableval" = yes; then | |
10966 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10967 | else | |
10968 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10969 | fi | |
10970 | ||
10971 | else | |
10972 | ||
10973 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10974 | if test "x$LINE" != x ; then | |
10975 | eval "DEFAULT_$LINE" | |
10976 | else | |
10977 | no_cache=1 | |
10978 | fi | |
10979 | ||
10980 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10981 | ||
10982 | fi; | |
10983 | ||
10984 | eval "$ac_cv_use_palette" | |
10985 | if test "$no_cache" != 1; then | |
10986 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10987 | fi | |
10988 | ||
10989 | if test "$wxUSE_PALETTE" = yes; then | |
10990 | echo "$as_me:$LINENO: result: yes" >&5 | |
10991 | echo "${ECHO_T}yes" >&6 | |
10992 | else | |
10993 | echo "$as_me:$LINENO: result: no" >&5 | |
10994 | echo "${ECHO_T}no" >&6 | |
10995 | fi | |
10996 | ||
10997 | ||
10998 | enablestring= | |
10999 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
11000 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
11001 | no_cache=0 | |
11002 | # Check whether --enable-image or --disable-image was given. | |
11003 | if test "${enable_image+set}" = set; then | |
11004 | enableval="$enable_image" | |
11005 | ||
11006 | if test "$enableval" = yes; then | |
11007 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
11008 | else | |
11009 | ac_cv_use_image='wxUSE_IMAGE=no' | |
11010 | fi | |
11011 | ||
11012 | else | |
11013 | ||
11014 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
11015 | if test "x$LINE" != x ; then | |
11016 | eval "DEFAULT_$LINE" | |
11017 | else | |
11018 | no_cache=1 | |
11019 | fi | |
11020 | ||
11021 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
11022 | ||
11023 | fi; | |
11024 | ||
11025 | eval "$ac_cv_use_image" | |
11026 | if test "$no_cache" != 1; then | |
11027 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
11028 | fi | |
11029 | ||
11030 | if test "$wxUSE_IMAGE" = yes; then | |
11031 | echo "$as_me:$LINENO: result: yes" >&5 | |
11032 | echo "${ECHO_T}yes" >&6 | |
11033 | else | |
11034 | echo "$as_me:$LINENO: result: no" >&5 | |
11035 | echo "${ECHO_T}no" >&6 | |
11036 | fi | |
11037 | ||
11038 | ||
11039 | enablestring= | |
11040 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
11041 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
11042 | no_cache=0 | |
11043 | # Check whether --enable-gif or --disable-gif was given. | |
11044 | if test "${enable_gif+set}" = set; then | |
11045 | enableval="$enable_gif" | |
11046 | ||
11047 | if test "$enableval" = yes; then | |
11048 | ac_cv_use_gif='wxUSE_GIF=yes' | |
11049 | else | |
11050 | ac_cv_use_gif='wxUSE_GIF=no' | |
11051 | fi | |
11052 | ||
11053 | else | |
11054 | ||
11055 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
11056 | if test "x$LINE" != x ; then | |
11057 | eval "DEFAULT_$LINE" | |
11058 | else | |
11059 | no_cache=1 | |
11060 | fi | |
11061 | ||
11062 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
11063 | ||
11064 | fi; | |
11065 | ||
11066 | eval "$ac_cv_use_gif" | |
11067 | if test "$no_cache" != 1; then | |
11068 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
11069 | fi | |
11070 | ||
11071 | if test "$wxUSE_GIF" = yes; then | |
11072 | echo "$as_me:$LINENO: result: yes" >&5 | |
11073 | echo "${ECHO_T}yes" >&6 | |
11074 | else | |
11075 | echo "$as_me:$LINENO: result: no" >&5 | |
11076 | echo "${ECHO_T}no" >&6 | |
11077 | fi | |
11078 | ||
11079 | ||
11080 | enablestring= | |
11081 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
11082 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
11083 | no_cache=0 | |
11084 | # Check whether --enable-pcx or --disable-pcx was given. | |
11085 | if test "${enable_pcx+set}" = set; then | |
11086 | enableval="$enable_pcx" | |
11087 | ||
11088 | if test "$enableval" = yes; then | |
11089 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
11090 | else | |
11091 | ac_cv_use_pcx='wxUSE_PCX=no' | |
11092 | fi | |
11093 | ||
11094 | else | |
11095 | ||
11096 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
11097 | if test "x$LINE" != x ; then | |
11098 | eval "DEFAULT_$LINE" | |
11099 | else | |
11100 | no_cache=1 | |
11101 | fi | |
11102 | ||
11103 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
11104 | ||
11105 | fi; | |
11106 | ||
11107 | eval "$ac_cv_use_pcx" | |
11108 | if test "$no_cache" != 1; then | |
11109 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
11110 | fi | |
11111 | ||
11112 | if test "$wxUSE_PCX" = yes; then | |
11113 | echo "$as_me:$LINENO: result: yes" >&5 | |
11114 | echo "${ECHO_T}yes" >&6 | |
11115 | else | |
11116 | echo "$as_me:$LINENO: result: no" >&5 | |
11117 | echo "${ECHO_T}no" >&6 | |
11118 | fi | |
11119 | ||
11120 | ||
11121 | enablestring= | |
11122 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
11123 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
11124 | no_cache=0 | |
11125 | # Check whether --enable-iff or --disable-iff was given. | |
11126 | if test "${enable_iff+set}" = set; then | |
11127 | enableval="$enable_iff" | |
11128 | ||
11129 | if test "$enableval" = yes; then | |
11130 | ac_cv_use_iff='wxUSE_IFF=yes' | |
11131 | else | |
11132 | ac_cv_use_iff='wxUSE_IFF=no' | |
11133 | fi | |
11134 | ||
11135 | else | |
11136 | ||
11137 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
11138 | if test "x$LINE" != x ; then | |
11139 | eval "DEFAULT_$LINE" | |
11140 | else | |
11141 | no_cache=1 | |
11142 | fi | |
11143 | ||
11144 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
11145 | ||
11146 | fi; | |
11147 | ||
11148 | eval "$ac_cv_use_iff" | |
11149 | if test "$no_cache" != 1; then | |
11150 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
11151 | fi | |
11152 | ||
11153 | if test "$wxUSE_IFF" = yes; then | |
11154 | echo "$as_me:$LINENO: result: yes" >&5 | |
11155 | echo "${ECHO_T}yes" >&6 | |
11156 | else | |
11157 | echo "$as_me:$LINENO: result: no" >&5 | |
11158 | echo "${ECHO_T}no" >&6 | |
11159 | fi | |
11160 | ||
11161 | ||
11162 | enablestring= | |
11163 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
11164 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
11165 | no_cache=0 | |
11166 | # Check whether --enable-pnm or --disable-pnm was given. | |
11167 | if test "${enable_pnm+set}" = set; then | |
11168 | enableval="$enable_pnm" | |
11169 | ||
11170 | if test "$enableval" = yes; then | |
11171 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
11172 | else | |
11173 | ac_cv_use_pnm='wxUSE_PNM=no' | |
11174 | fi | |
11175 | ||
11176 | else | |
11177 | ||
11178 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
11179 | if test "x$LINE" != x ; then | |
11180 | eval "DEFAULT_$LINE" | |
11181 | else | |
11182 | no_cache=1 | |
11183 | fi | |
11184 | ||
11185 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
11186 | ||
11187 | fi; | |
11188 | ||
11189 | eval "$ac_cv_use_pnm" | |
11190 | if test "$no_cache" != 1; then | |
11191 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
11192 | fi | |
11193 | ||
11194 | if test "$wxUSE_PNM" = yes; then | |
11195 | echo "$as_me:$LINENO: result: yes" >&5 | |
11196 | echo "${ECHO_T}yes" >&6 | |
11197 | else | |
11198 | echo "$as_me:$LINENO: result: no" >&5 | |
11199 | echo "${ECHO_T}no" >&6 | |
11200 | fi | |
11201 | ||
11202 | ||
11203 | enablestring= | |
11204 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
11205 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
11206 | no_cache=0 | |
11207 | # Check whether --enable-xpm or --disable-xpm was given. | |
11208 | if test "${enable_xpm+set}" = set; then | |
11209 | enableval="$enable_xpm" | |
11210 | ||
11211 | if test "$enableval" = yes; then | |
11212 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
11213 | else | |
11214 | ac_cv_use_xpm='wxUSE_XPM=no' | |
11215 | fi | |
11216 | ||
11217 | else | |
11218 | ||
11219 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
11220 | if test "x$LINE" != x ; then | |
11221 | eval "DEFAULT_$LINE" | |
11222 | else | |
11223 | no_cache=1 | |
11224 | fi | |
11225 | ||
11226 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
11227 | ||
11228 | fi; | |
11229 | ||
11230 | eval "$ac_cv_use_xpm" | |
11231 | if test "$no_cache" != 1; then | |
11232 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
11233 | fi | |
11234 | ||
11235 | if test "$wxUSE_XPM" = yes; then | |
11236 | echo "$as_me:$LINENO: result: yes" >&5 | |
11237 | echo "${ECHO_T}yes" >&6 | |
11238 | else | |
11239 | echo "$as_me:$LINENO: result: no" >&5 | |
11240 | echo "${ECHO_T}no" >&6 | |
11241 | fi | |
11242 | ||
11243 | ||
11244 | enablestring= | |
11245 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
11246 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
11247 | no_cache=0 | |
11248 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
11249 | if test "${enable_ico_cur+set}" = set; then | |
11250 | enableval="$enable_ico_cur" | |
11251 | ||
11252 | if test "$enableval" = yes; then | |
11253 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
11254 | else | |
11255 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
11256 | fi | |
11257 | ||
11258 | else | |
11259 | ||
11260 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
11261 | if test "x$LINE" != x ; then | |
11262 | eval "DEFAULT_$LINE" | |
11263 | else | |
11264 | no_cache=1 | |
11265 | fi | |
11266 | ||
11267 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
11268 | ||
11269 | fi; | |
11270 | ||
11271 | eval "$ac_cv_use_ico_cur" | |
11272 | if test "$no_cache" != 1; then | |
11273 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
11274 | fi | |
11275 | ||
11276 | if test "$wxUSE_ICO_CUR" = yes; then | |
11277 | echo "$as_me:$LINENO: result: yes" >&5 | |
11278 | echo "${ECHO_T}yes" >&6 | |
11279 | else | |
11280 | echo "$as_me:$LINENO: result: no" >&5 | |
11281 | echo "${ECHO_T}no" >&6 | |
11282 | fi | |
11283 | ||
11284 | ||
11285 | fi | |
11286 | ||
11287 | ||
11288 | ||
ceec2216 RL |
11289 | # Check whether --with-flavour or --without-flavour was given. |
11290 | if test "${with_flavour+set}" = set; then | |
11291 | withval="$with_flavour" | |
11292 | WX_FLAVOUR="$withval" | |
11293 | fi; | |
11294 | ||
11295 | ||
11296 | ||
a848cd7e SC |
11297 | enablestring= |
11298 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
11299 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
11300 | no_cache=0 | |
11301 | # Check whether --enable-official_build or --disable-official_build was given. | |
11302 | if test "${enable_official_build+set}" = set; then | |
11303 | enableval="$enable_official_build" | |
11304 | ||
11305 | if test "$enableval" = yes; then | |
11306 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
11307 | else | |
11308 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
11309 | fi | |
11310 | ||
11311 | else | |
11312 | ||
11313 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
11314 | if test "x$LINE" != x ; then | |
11315 | eval "DEFAULT_$LINE" | |
11316 | else | |
11317 | no_cache=1 | |
11318 | fi | |
11319 | ||
11320 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
11321 | ||
11322 | fi; | |
11323 | ||
11324 | eval "$ac_cv_use_official_build" | |
11325 | if test "$no_cache" != 1; then | |
11326 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
11327 | fi | |
11328 | ||
11329 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
11330 | echo "$as_me:$LINENO: result: yes" >&5 | |
11331 | echo "${ECHO_T}yes" >&6 | |
11332 | else | |
11333 | echo "$as_me:$LINENO: result: no" >&5 | |
11334 | echo "${ECHO_T}no" >&6 | |
11335 | fi | |
11336 | ||
11337 | # Check whether --enable-vendor or --disable-vendor was given. | |
11338 | if test "${enable_vendor+set}" = set; then | |
11339 | enableval="$enable_vendor" | |
11340 | VENDOR="$enableval" | |
11341 | fi; | |
11342 | if test "x$VENDOR" = "x"; then | |
11343 | VENDOR="custom" | |
11344 | fi | |
11345 | ||
a848cd7e SC |
11346 | |
11347 | ||
11348 | ||
11349 | echo "saving argument cache $wx_arg_cache_file" | |
11350 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
11351 | ||
11352 | ||
11353 | ||
11354 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
11355 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
11356 | ||
11357 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
11358 | if test "$wxUSE_WINE" = "yes"; then | |
11359 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
11360 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
11361 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
11362 | wxUSE_SHARED=no | |
11363 | fi | |
11364 | ||
f597b41c | 11365 | |
a848cd7e SC |
11366 | if test "$wxUSE_GUI" = "yes"; then |
11367 | ||
11368 | if test "$USE_BEOS" = 1; then | |
11369 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
11370 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
11371 | { (exit 1); exit 1; }; } | |
11372 | fi | |
11373 | ||
11374 | if test "$TOOLKIT_GIVEN" = 1; then | |
11375 | for toolkit in `echo $ALL_TOOLKITS`; do | |
11376 | var=wxUSE_$toolkit | |
11377 | eval "value=\$${var}" | |
f34ca037 MW |
11378 | if test "x$value" = "xno"; then |
11379 | eval "$var=0" | |
11380 | elif test "x$value" != "x"; then | |
11381 | eval "$var=1" | |
11382 | fi | |
11383 | ||
11384 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
11385 | eval "wx${toolkit}_VERSION=$value" | |
11386 | fi | |
a848cd7e SC |
11387 | done |
11388 | else | |
11389 | for toolkit in `echo $ALL_TOOLKITS`; do | |
11390 | if test "$has_toolkit_in_cache" != 1; then | |
11391 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
11392 | else | |
11393 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
11394 | |
11395 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
11396 | if test "x$version" != "x"; then | |
11397 | eval "wx${toolkit}_VERSION=$version" | |
11398 | fi | |
a848cd7e SC |
11399 | fi |
11400 | eval "wxUSE_$toolkit=\$${var}" | |
11401 | done | |
11402 | fi | |
11403 | ||
11404 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
11405 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
11406 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
11407 | ||
11408 | case "${host}" in | |
11409 | *-pc-os2_emx | *-pc-os2-emx ) | |
11410 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
11411 | esac | |
11412 | ||
11413 | case "$NUM_TOOLKITS" in | |
11414 | 1) | |
11415 | ;; | |
11416 | 0) | |
11417 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
11418 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
11419 | { (exit 1); exit 1; }; } | |
11420 | ;; | |
11421 | *) | |
11422 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
11423 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
11424 | { (exit 1); exit 1; }; } | |
11425 | esac | |
11426 | ||
f34ca037 MW |
11427 | # to be removed when --disable-gtk2 isn't needed |
11428 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11429 | wxGTK_VERSION=2 | |
11430 | elif test "x$wxUSE_GTK2" = "xno"; then | |
11431 | wxGTK_VERSION=1 | |
11432 | fi | |
11433 | ||
a848cd7e SC |
11434 | for toolkit in `echo $ALL_TOOLKITS`; do |
11435 | var=wxUSE_$toolkit | |
11436 | eval "value=\$${var}" | |
11437 | if test "x$value" != x; then | |
11438 | cache_var=CACHE_$toolkit | |
11439 | eval "cache=\$${cache_var}" | |
11440 | if test "$cache" = 1; then | |
11441 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
11442 | eval "version=\$wx${toolkit}_VERSION" |
11443 | if test "x$version" != "x"; then | |
11444 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
11445 | fi | |
a848cd7e SC |
11446 | fi |
11447 | if test "$value" = 1; then | |
11448 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
11449 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
11450 | echo "${ECHO_T}$toolkit_echo" >&6 | |
11451 | fi | |
11452 | fi | |
11453 | done | |
11454 | else | |
11455 | if test "x$host_alias" != "x"; then | |
11456 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
11457 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
11458 | else | |
11459 | echo "$as_me:$LINENO: result: base only" >&5 | |
11460 | echo "${ECHO_T}base only" >&6 | |
11461 | fi | |
11462 | fi | |
11463 | ||
11464 | wants_win32=0 | |
11465 | doesnt_want_win32=0 | |
11466 | case "${host}" in | |
11467 | *-*-cygwin*) | |
11468 | if test "$wxUSE_MSW" = 1 ; then | |
11469 | wants_win32=1 | |
7275146d | 11470 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
11471 | else |
11472 | doesnt_want_win32=1 | |
11473 | fi | |
11474 | ;; | |
11475 | *-*-mingw*) | |
11476 | wants_win32=1 | |
11477 | ;; | |
11478 | esac | |
11479 | ||
11480 | if test "$wxUSE_WINE" = "yes"; then | |
11481 | wants_win32=1 | |
11482 | CC=winegcc | |
11483 | CXX=wineg++ | |
a848cd7e SC |
11484 | LDFLAGS_GUI="-mwindows" |
11485 | fi | |
11486 | ||
11487 | if test "$wants_win32" = 1 ; then | |
11488 | USE_UNIX=0 | |
11489 | USE_WIN32=1 | |
11490 | cat >>confdefs.h <<\_ACEOF | |
11491 | #define __WIN32__ 1 | |
11492 | _ACEOF | |
11493 | ||
11494 | cat >>confdefs.h <<\_ACEOF | |
11495 | #define __WIN95__ 1 | |
11496 | _ACEOF | |
11497 | ||
11498 | cat >>confdefs.h <<\_ACEOF | |
11499 | #define __WINDOWS__ 1 | |
11500 | _ACEOF | |
11501 | ||
11502 | cat >>confdefs.h <<\_ACEOF | |
11503 | #define __GNUWIN32__ 1 | |
11504 | _ACEOF | |
11505 | ||
11506 | cat >>confdefs.h <<\_ACEOF | |
11507 | #define STRICT 1 | |
11508 | _ACEOF | |
11509 | ||
11510 | cat >>confdefs.h <<\_ACEOF | |
11511 | #define WINVER 0x0400 | |
11512 | _ACEOF | |
11513 | ||
11514 | fi | |
11515 | if test "$doesnt_want_win32" = 1 ; then | |
11516 | USE_UNIX=1 | |
11517 | USE_WIN32=0 | |
11518 | fi | |
11519 | ||
11520 | if test "$USE_UNIX" = 1 ; then | |
11521 | wxUSE_UNIX=yes | |
11522 | cat >>confdefs.h <<\_ACEOF | |
11523 | #define __UNIX__ 1 | |
11524 | _ACEOF | |
11525 | ||
11526 | fi | |
11527 | ||
11528 | ||
11529 | cat >confcache <<\_ACEOF | |
11530 | # This file is a shell script that caches the results of configure | |
11531 | # tests run on this system so they can be shared between configure | |
11532 | # scripts and configure runs, see configure's option --config-cache. | |
11533 | # It is not useful on other systems. If it contains results you don't | |
11534 | # want to keep, you may remove or edit it. | |
11535 | # | |
11536 | # config.status only pays attention to the cache file if you give it | |
11537 | # the --recheck option to rerun configure. | |
11538 | # | |
11539 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11540 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11541 | # following values. | |
11542 | ||
11543 | _ACEOF | |
11544 | ||
11545 | # The following way of writing the cache mishandles newlines in values, | |
11546 | # but we know of no workaround that is simple, portable, and efficient. | |
11547 | # So, don't put newlines in cache variables' values. | |
11548 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11549 | # and sets the high bit in the cache file unless we assign to the vars. | |
11550 | { | |
11551 | (set) 2>&1 | | |
11552 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11553 | *ac_space=\ *) | |
11554 | # `set' does not quote correctly, so add quotes (double-quote | |
11555 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11556 | sed -n \ | |
ac1cb8d3 VS |
11557 | "s/'/'\\\\''/g; |
11558 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
11559 | ;; |
11560 | *) | |
11561 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11562 | sed -n \ | |
ac1cb8d3 | 11563 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
11564 | ;; |
11565 | esac; | |
11566 | } | | |
11567 | sed ' | |
11568 | t clear | |
11569 | : clear | |
11570 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11571 | t end | |
11572 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11573 | : end' >>confcache | |
11574 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11575 | if test -w $cache_file; then | |
11576 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
11577 | cat confcache >$cache_file | |
11578 | else | |
11579 | echo "not updating unwritable cache $cache_file" | |
11580 | fi | |
11581 | fi | |
11582 | rm -f confcache | |
11583 | ||
a848cd7e | 11584 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
11585 | |
11586 | ||
3006edc0 | 11587 | |
6dcfc289 | 11588 | ac_ext=c |
a848cd7e SC |
11589 | ac_cpp='$CPP $CPPFLAGS' |
11590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11593 | if test -n "$ac_tool_prefix"; then | |
11594 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
11595 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
11596 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11598 | if test "${ac_cv_prog_CC+set}" = set; then | |
11599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11600 | else | |
11601 | if test -n "$CC"; then | |
11602 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11603 | else | |
11604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11605 | for as_dir in $PATH | |
11606 | do | |
11607 | IFS=$as_save_IFS | |
11608 | test -z "$as_dir" && as_dir=. | |
11609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11611 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
11612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11613 | break 2 | |
11614 | fi | |
11615 | done | |
11616 | done | |
11617 | ||
11618 | fi | |
11619 | fi | |
11620 | CC=$ac_cv_prog_CC | |
11621 | if test -n "$CC"; then | |
11622 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11623 | echo "${ECHO_T}$CC" >&6 | |
11624 | else | |
11625 | echo "$as_me:$LINENO: result: no" >&5 | |
11626 | echo "${ECHO_T}no" >&6 | |
11627 | fi | |
11628 | ||
11629 | fi | |
11630 | if test -z "$ac_cv_prog_CC"; then | |
11631 | ac_ct_CC=$CC | |
11632 | # Extract the first word of "gcc", so it can be a program name with args. | |
11633 | set dummy gcc; ac_word=$2 | |
11634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11636 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11638 | else | |
11639 | if test -n "$ac_ct_CC"; then | |
11640 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11641 | else | |
11642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11643 | for as_dir in $PATH | |
11644 | do | |
11645 | IFS=$as_save_IFS | |
11646 | test -z "$as_dir" && as_dir=. | |
11647 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11649 | ac_cv_prog_ac_ct_CC="gcc" | |
11650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11651 | break 2 | |
11652 | fi | |
11653 | done | |
11654 | done | |
11655 | ||
11656 | fi | |
11657 | fi | |
11658 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11659 | if test -n "$ac_ct_CC"; then | |
11660 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11661 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11662 | else | |
11663 | echo "$as_me:$LINENO: result: no" >&5 | |
11664 | echo "${ECHO_T}no" >&6 | |
11665 | fi | |
11666 | ||
11667 | CC=$ac_ct_CC | |
11668 | else | |
11669 | CC="$ac_cv_prog_CC" | |
11670 | fi | |
11671 | ||
11672 | if test -z "$CC"; then | |
11673 | if test -n "$ac_tool_prefix"; then | |
11674 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
11675 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
11676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11678 | if test "${ac_cv_prog_CC+set}" = set; then | |
11679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11680 | else | |
11681 | if test -n "$CC"; then | |
11682 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11683 | else | |
11684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11685 | for as_dir in $PATH | |
11686 | do | |
11687 | IFS=$as_save_IFS | |
11688 | test -z "$as_dir" && as_dir=. | |
11689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11691 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
11692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11693 | break 2 | |
11694 | fi | |
11695 | done | |
11696 | done | |
11697 | ||
11698 | fi | |
11699 | fi | |
11700 | CC=$ac_cv_prog_CC | |
11701 | if test -n "$CC"; then | |
11702 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11703 | echo "${ECHO_T}$CC" >&6 | |
11704 | else | |
11705 | echo "$as_me:$LINENO: result: no" >&5 | |
11706 | echo "${ECHO_T}no" >&6 | |
11707 | fi | |
11708 | ||
11709 | fi | |
11710 | if test -z "$ac_cv_prog_CC"; then | |
11711 | ac_ct_CC=$CC | |
11712 | # Extract the first word of "cc", so it can be a program name with args. | |
11713 | set dummy cc; ac_word=$2 | |
11714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11716 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11718 | else | |
11719 | if test -n "$ac_ct_CC"; then | |
11720 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11721 | else | |
11722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11723 | for as_dir in $PATH | |
11724 | do | |
11725 | IFS=$as_save_IFS | |
11726 | test -z "$as_dir" && as_dir=. | |
11727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11729 | ac_cv_prog_ac_ct_CC="cc" | |
11730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11731 | break 2 | |
11732 | fi | |
11733 | done | |
11734 | done | |
11735 | ||
11736 | fi | |
11737 | fi | |
11738 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11739 | if test -n "$ac_ct_CC"; then | |
11740 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11741 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11742 | else | |
11743 | echo "$as_me:$LINENO: result: no" >&5 | |
11744 | echo "${ECHO_T}no" >&6 | |
11745 | fi | |
11746 | ||
11747 | CC=$ac_ct_CC | |
11748 | else | |
11749 | CC="$ac_cv_prog_CC" | |
11750 | fi | |
11751 | ||
11752 | fi | |
11753 | if test -z "$CC"; then | |
11754 | # Extract the first word of "cc", so it can be a program name with args. | |
11755 | set dummy cc; ac_word=$2 | |
11756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11758 | if test "${ac_cv_prog_CC+set}" = set; then | |
11759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11760 | else | |
11761 | if test -n "$CC"; then | |
11762 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11763 | else | |
11764 | ac_prog_rejected=no | |
11765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11766 | for as_dir in $PATH | |
11767 | do | |
11768 | IFS=$as_save_IFS | |
11769 | test -z "$as_dir" && as_dir=. | |
11770 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11771 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11772 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
11773 | ac_prog_rejected=yes | |
11774 | continue | |
11775 | fi | |
11776 | ac_cv_prog_CC="cc" | |
11777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11778 | break 2 | |
11779 | fi | |
11780 | done | |
11781 | done | |
11782 | ||
11783 | if test $ac_prog_rejected = yes; then | |
11784 | # We found a bogon in the path, so make sure we never use it. | |
11785 | set dummy $ac_cv_prog_CC | |
11786 | shift | |
11787 | if test $# != 0; then | |
11788 | # We chose a different compiler from the bogus one. | |
11789 | # However, it has the same basename, so the bogon will be chosen | |
11790 | # first if we set CC to just the basename; use the full file name. | |
11791 | shift | |
11792 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
11793 | fi | |
11794 | fi | |
11795 | fi | |
11796 | fi | |
11797 | CC=$ac_cv_prog_CC | |
11798 | if test -n "$CC"; then | |
11799 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11800 | echo "${ECHO_T}$CC" >&6 | |
11801 | else | |
11802 | echo "$as_me:$LINENO: result: no" >&5 | |
11803 | echo "${ECHO_T}no" >&6 | |
11804 | fi | |
11805 | ||
11806 | fi | |
11807 | if test -z "$CC"; then | |
11808 | if test -n "$ac_tool_prefix"; then | |
11809 | for ac_prog in cl | |
11810 | do | |
11811 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11812 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11813 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11814 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11815 | if test "${ac_cv_prog_CC+set}" = set; then | |
11816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11817 | else | |
11818 | if test -n "$CC"; then | |
11819 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11820 | else | |
11821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11822 | for as_dir in $PATH | |
11823 | do | |
11824 | IFS=$as_save_IFS | |
11825 | test -z "$as_dir" && as_dir=. | |
11826 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11827 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11828 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
11829 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11830 | break 2 | |
11831 | fi | |
11832 | done | |
11833 | done | |
11834 | ||
11835 | fi | |
11836 | fi | |
11837 | CC=$ac_cv_prog_CC | |
11838 | if test -n "$CC"; then | |
11839 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11840 | echo "${ECHO_T}$CC" >&6 | |
11841 | else | |
11842 | echo "$as_me:$LINENO: result: no" >&5 | |
11843 | echo "${ECHO_T}no" >&6 | |
11844 | fi | |
11845 | ||
11846 | test -n "$CC" && break | |
11847 | done | |
11848 | fi | |
11849 | if test -z "$CC"; then | |
11850 | ac_ct_CC=$CC | |
11851 | for ac_prog in cl | |
11852 | do | |
11853 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11854 | set dummy $ac_prog; ac_word=$2 | |
11855 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11857 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11859 | else | |
11860 | if test -n "$ac_ct_CC"; then | |
11861 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11862 | else | |
11863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11864 | for as_dir in $PATH | |
11865 | do | |
11866 | IFS=$as_save_IFS | |
11867 | test -z "$as_dir" && as_dir=. | |
11868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11869 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11870 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11872 | break 2 | |
11873 | fi | |
11874 | done | |
11875 | done | |
11876 | ||
11877 | fi | |
11878 | fi | |
11879 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11880 | if test -n "$ac_ct_CC"; then | |
11881 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11882 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11883 | else | |
11884 | echo "$as_me:$LINENO: result: no" >&5 | |
11885 | echo "${ECHO_T}no" >&6 | |
11886 | fi | |
11887 | ||
11888 | test -n "$ac_ct_CC" && break | |
11889 | done | |
11890 | ||
11891 | CC=$ac_ct_CC | |
11892 | fi | |
11893 | ||
11894 | fi | |
11895 | ||
11896 | ||
11897 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11898 | See \`config.log' for more details." >&5 | |
11899 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11900 | See \`config.log' for more details." >&2;} | |
11901 | { (exit 1); exit 1; }; } | |
11902 | ||
11903 | # Provide some information about the compiler. | |
11904 | echo "$as_me:$LINENO:" \ | |
11905 | "checking for C compiler version" >&5 | |
11906 | ac_compiler=`set X $ac_compile; echo $2` | |
11907 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11908 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11909 | ac_status=$? | |
11910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11911 | (exit $ac_status); } | |
11912 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11913 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11914 | ac_status=$? | |
11915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11916 | (exit $ac_status); } | |
11917 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11918 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11919 | ac_status=$? | |
11920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11921 | (exit $ac_status); } | |
11922 | ||
11923 | cat >conftest.$ac_ext <<_ACEOF | |
11924 | /* confdefs.h. */ | |
11925 | _ACEOF | |
11926 | cat confdefs.h >>conftest.$ac_ext | |
11927 | cat >>conftest.$ac_ext <<_ACEOF | |
11928 | /* end confdefs.h. */ | |
11929 | ||
11930 | int | |
11931 | main () | |
11932 | { | |
11933 | ||
11934 | ; | |
11935 | return 0; | |
11936 | } | |
11937 | _ACEOF | |
11938 | ac_clean_files_save=$ac_clean_files | |
11939 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11940 | # Try to create an executable without -o first, disregard a.out. | |
11941 | # It will help us diagnose broken compilers, and finding out an intuition | |
11942 | # of exeext. | |
ac1cb8d3 VS |
11943 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11944 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11945 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11946 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11947 | (eval $ac_link_default) 2>&5 | |
11948 | ac_status=$? | |
11949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11950 | (exit $ac_status); }; then | |
11951 | # Find the output, starting from the most likely. This scheme is | |
11952 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11953 | # resort. | |
11954 | ||
11955 | # Be careful to initialize this variable, since it used to be cached. | |
11956 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11957 | ac_cv_exeext= | |
11958 | # b.out is created by i960 compilers. | |
11959 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11960 | do | |
11961 | test -f "$ac_file" || continue | |
11962 | case $ac_file in | |
11963 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11964 | ;; |
a848cd7e | 11965 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11966 | # This is the source file. |
11967 | ;; | |
a848cd7e | 11968 | [ab].out ) |
ac1cb8d3 VS |
11969 | # We found the default executable, but exeext='' is most |
11970 | # certainly right. | |
11971 | break;; | |
a848cd7e | 11972 | *.* ) |
ac1cb8d3 VS |
11973 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11974 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11975 | # but it would be cool to find out if it's true. Does anybody | |
11976 | # maintain Libtool? --akim. | |
11977 | export ac_cv_exeext | |
11978 | break;; | |
a848cd7e | 11979 | * ) |
ac1cb8d3 | 11980 | break;; |
a848cd7e SC |
11981 | esac |
11982 | done | |
11983 | else | |
11984 | echo "$as_me: failed program was:" >&5 | |
11985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11986 | ||
11987 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11988 | See \`config.log' for more details." >&5 | |
11989 | echo "$as_me: error: C compiler cannot create executables | |
11990 | See \`config.log' for more details." >&2;} | |
11991 | { (exit 77); exit 77; }; } | |
11992 | fi | |
11993 | ||
11994 | ac_exeext=$ac_cv_exeext | |
11995 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11996 | echo "${ECHO_T}$ac_file" >&6 | |
11997 | ||
11998 | # Check the compiler produces executables we can run. If not, either | |
11999 | # the compiler is broken, or we cross compile. | |
12000 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
12001 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
12002 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
12003 | # If not cross compiling, check that we can run a simple program. | |
12004 | if test "$cross_compiling" != yes; then | |
12005 | if { ac_try='./$ac_file' | |
12006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12007 | (eval $ac_try) 2>&5 | |
12008 | ac_status=$? | |
12009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12010 | (exit $ac_status); }; }; then | |
12011 | cross_compiling=no | |
12012 | else | |
12013 | if test "$cross_compiling" = maybe; then | |
12014 | cross_compiling=yes | |
12015 | else | |
12016 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
12017 | If you meant to cross compile, use \`--host'. | |
12018 | See \`config.log' for more details." >&5 | |
12019 | echo "$as_me: error: cannot run C compiled programs. | |
12020 | If you meant to cross compile, use \`--host'. | |
12021 | See \`config.log' for more details." >&2;} | |
12022 | { (exit 1); exit 1; }; } | |
12023 | fi | |
12024 | fi | |
12025 | fi | |
12026 | echo "$as_me:$LINENO: result: yes" >&5 | |
12027 | echo "${ECHO_T}yes" >&6 | |
12028 | ||
12029 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
12030 | ac_clean_files=$ac_clean_files_save | |
12031 | # Check the compiler produces executables we can run. If not, either | |
12032 | # the compiler is broken, or we cross compile. | |
12033 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
12034 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
12035 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
12036 | echo "${ECHO_T}$cross_compiling" >&6 | |
12037 | ||
12038 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
12039 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
12040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12041 | (eval $ac_link) 2>&5 | |
12042 | ac_status=$? | |
12043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12044 | (exit $ac_status); }; then | |
12045 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
12046 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
12047 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
12048 | # `rm'. | |
12049 | for ac_file in conftest.exe conftest conftest.*; do | |
12050 | test -f "$ac_file" || continue | |
12051 | case $ac_file in | |
12052 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
12053 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
12054 | export ac_cv_exeext |
12055 | break;; | |
a848cd7e SC |
12056 | * ) break;; |
12057 | esac | |
12058 | done | |
12059 | else | |
12060 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
12061 | See \`config.log' for more details." >&5 | |
12062 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
12063 | See \`config.log' for more details." >&2;} | |
12064 | { (exit 1); exit 1; }; } | |
12065 | fi | |
12066 | ||
12067 | rm -f conftest$ac_cv_exeext | |
12068 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
12069 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
12070 | ||
12071 | rm -f conftest.$ac_ext | |
12072 | EXEEXT=$ac_cv_exeext | |
12073 | ac_exeext=$EXEEXT | |
12074 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
12075 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
12076 | if test "${ac_cv_objext+set}" = set; then | |
12077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12078 | else | |
12079 | cat >conftest.$ac_ext <<_ACEOF | |
12080 | /* confdefs.h. */ | |
12081 | _ACEOF | |
12082 | cat confdefs.h >>conftest.$ac_ext | |
12083 | cat >>conftest.$ac_ext <<_ACEOF | |
12084 | /* end confdefs.h. */ | |
12085 | ||
12086 | int | |
12087 | main () | |
12088 | { | |
12089 | ||
12090 | ; | |
12091 | return 0; | |
12092 | } | |
12093 | _ACEOF | |
12094 | rm -f conftest.o conftest.obj | |
12095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12096 | (eval $ac_compile) 2>&5 | |
12097 | ac_status=$? | |
12098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12099 | (exit $ac_status); }; then | |
12100 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
12101 | case $ac_file in | |
12102 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
12103 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
12104 | break;; | |
12105 | esac | |
12106 | done | |
12107 | else | |
12108 | echo "$as_me: failed program was:" >&5 | |
12109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12110 | ||
12111 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
12112 | See \`config.log' for more details." >&5 | |
12113 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
12114 | See \`config.log' for more details." >&2;} | |
12115 | { (exit 1); exit 1; }; } | |
12116 | fi | |
12117 | ||
12118 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
12119 | fi | |
12120 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
12121 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
12122 | OBJEXT=$ac_cv_objext | |
12123 | ac_objext=$OBJEXT | |
12124 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
12125 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
12126 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
12127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12128 | else | |
12129 | cat >conftest.$ac_ext <<_ACEOF | |
12130 | /* confdefs.h. */ | |
12131 | _ACEOF | |
12132 | cat confdefs.h >>conftest.$ac_ext | |
12133 | cat >>conftest.$ac_ext <<_ACEOF | |
12134 | /* end confdefs.h. */ | |
12135 | ||
12136 | int | |
12137 | main () | |
12138 | { | |
12139 | #ifndef __GNUC__ | |
12140 | choke me | |
12141 | #endif | |
12142 | ||
12143 | ; | |
12144 | return 0; | |
12145 | } | |
12146 | _ACEOF | |
12147 | rm -f conftest.$ac_objext | |
12148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12149 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12150 | ac_status=$? |
ac1cb8d3 VS |
12151 | grep -v '^ *+' conftest.er1 >conftest.err |
12152 | rm -f conftest.er1 | |
12153 | cat conftest.err >&5 | |
a848cd7e SC |
12154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12155 | (exit $ac_status); } && | |
c9a66001 | 12156 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12158 | (eval $ac_try) 2>&5 | |
12159 | ac_status=$? | |
12160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12161 | (exit $ac_status); }; } && | |
12162 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12164 | (eval $ac_try) 2>&5 | |
12165 | ac_status=$? | |
12166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12167 | (exit $ac_status); }; }; then | |
12168 | ac_compiler_gnu=yes | |
12169 | else | |
12170 | echo "$as_me: failed program was:" >&5 | |
12171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12172 | ||
12173 | ac_compiler_gnu=no | |
12174 | fi | |
ac1cb8d3 | 12175 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12176 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
12177 | ||
12178 | fi | |
12179 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
12180 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
12181 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
12182 | ac_test_CFLAGS=${CFLAGS+set} | |
12183 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 12184 | CFLAGS="-g" |
a848cd7e SC |
12185 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12186 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12187 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12189 | else | |
12190 | cat >conftest.$ac_ext <<_ACEOF | |
12191 | /* confdefs.h. */ | |
12192 | _ACEOF | |
12193 | cat confdefs.h >>conftest.$ac_ext | |
12194 | cat >>conftest.$ac_ext <<_ACEOF | |
12195 | /* end confdefs.h. */ | |
12196 | ||
12197 | int | |
12198 | main () | |
12199 | { | |
12200 | ||
12201 | ; | |
12202 | return 0; | |
12203 | } | |
12204 | _ACEOF | |
12205 | rm -f conftest.$ac_objext | |
12206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12207 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12208 | ac_status=$? |
ac1cb8d3 VS |
12209 | grep -v '^ *+' conftest.er1 >conftest.err |
12210 | rm -f conftest.er1 | |
12211 | cat conftest.err >&5 | |
a848cd7e SC |
12212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12213 | (exit $ac_status); } && | |
c9a66001 | 12214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12216 | (eval $ac_try) 2>&5 | |
12217 | ac_status=$? | |
12218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12219 | (exit $ac_status); }; } && | |
12220 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12222 | (eval $ac_try) 2>&5 | |
12223 | ac_status=$? | |
12224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12225 | (exit $ac_status); }; }; then | |
12226 | ac_cv_prog_cc_g=yes | |
12227 | else | |
12228 | echo "$as_me: failed program was:" >&5 | |
12229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12230 | ||
12231 | ac_cv_prog_cc_g=no | |
12232 | fi | |
ac1cb8d3 | 12233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12234 | fi |
12235 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12236 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12237 | if test "$ac_test_CFLAGS" = set; then | |
12238 | CFLAGS=$ac_save_CFLAGS | |
12239 | elif test $ac_cv_prog_cc_g = yes; then | |
12240 | if test "$GCC" = yes; then | |
12241 | CFLAGS="-g -O2" | |
12242 | else | |
12243 | CFLAGS="-g" | |
12244 | fi | |
12245 | else | |
12246 | if test "$GCC" = yes; then | |
12247 | CFLAGS="-O2" | |
12248 | else | |
12249 | CFLAGS= | |
12250 | fi | |
12251 | fi | |
12252 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
12253 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
12254 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
12255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12256 | else | |
12257 | ac_cv_prog_cc_stdc=no | |
12258 | ac_save_CC=$CC | |
12259 | cat >conftest.$ac_ext <<_ACEOF | |
12260 | /* confdefs.h. */ | |
12261 | _ACEOF | |
12262 | cat confdefs.h >>conftest.$ac_ext | |
12263 | cat >>conftest.$ac_ext <<_ACEOF | |
12264 | /* end confdefs.h. */ | |
12265 | #include <stdarg.h> | |
12266 | #include <stdio.h> | |
12267 | #include <sys/types.h> | |
12268 | #include <sys/stat.h> | |
12269 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
12270 | struct buf { int x; }; | |
12271 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
12272 | static char *e (p, i) | |
12273 | char **p; | |
12274 | int i; | |
12275 | { | |
12276 | return p[i]; | |
12277 | } | |
12278 | static char *f (char * (*g) (char **, int), char **p, ...) | |
12279 | { | |
12280 | char *s; | |
12281 | va_list v; | |
12282 | va_start (v,p); | |
12283 | s = g (p, va_arg (v,int)); | |
12284 | va_end (v); | |
12285 | return s; | |
12286 | } | |
ac1cb8d3 VS |
12287 | |
12288 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
12289 | function prototypes and stuff, but not '\xHH' hex character constants. | |
12290 | These don't provoke an error unfortunately, instead are silently treated | |
12291 | as 'x'. The following induces an error, until -std1 is added to get | |
12292 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
12293 | array size at least. It's necessary to write '\x00'==0 to get something | |
12294 | that's true only with -std1. */ | |
12295 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
12296 | ||
a848cd7e SC |
12297 | int test (int i, double x); |
12298 | struct s1 {int (*f) (int a);}; | |
12299 | struct s2 {int (*f) (double a);}; | |
12300 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
12301 | int argc; | |
12302 | char **argv; | |
12303 | int | |
12304 | main () | |
12305 | { | |
12306 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
12307 | ; | |
12308 | return 0; | |
12309 | } | |
12310 | _ACEOF | |
12311 | # Don't try gcc -ansi; that turns off useful extensions and | |
12312 | # breaks some systems' header files. | |
12313 | # AIX -qlanglvl=ansi | |
12314 | # Ultrix and OSF/1 -std1 | |
12315 | # HP-UX 10.20 and later -Ae | |
12316 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
12317 | # SVR4 -Xc -D__EXTENSIONS__ | |
12318 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
12319 | do | |
12320 | CC="$ac_save_CC $ac_arg" | |
12321 | rm -f conftest.$ac_objext | |
12322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12323 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12324 | ac_status=$? |
ac1cb8d3 VS |
12325 | grep -v '^ *+' conftest.er1 >conftest.err |
12326 | rm -f conftest.er1 | |
12327 | cat conftest.err >&5 | |
a848cd7e SC |
12328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12329 | (exit $ac_status); } && | |
c9a66001 | 12330 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12332 | (eval $ac_try) 2>&5 | |
12333 | ac_status=$? | |
12334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12335 | (exit $ac_status); }; } && | |
12336 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12338 | (eval $ac_try) 2>&5 | |
12339 | ac_status=$? | |
12340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12341 | (exit $ac_status); }; }; then | |
12342 | ac_cv_prog_cc_stdc=$ac_arg | |
12343 | break | |
12344 | else | |
12345 | echo "$as_me: failed program was:" >&5 | |
12346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12347 | ||
12348 | fi | |
ac1cb8d3 | 12349 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
12350 | done |
12351 | rm -f conftest.$ac_ext conftest.$ac_objext | |
12352 | CC=$ac_save_CC | |
12353 | ||
12354 | fi | |
12355 | ||
12356 | case "x$ac_cv_prog_cc_stdc" in | |
12357 | x|xno) | |
12358 | echo "$as_me:$LINENO: result: none needed" >&5 | |
12359 | echo "${ECHO_T}none needed" >&6 ;; | |
12360 | *) | |
12361 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
12362 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
12363 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
12364 | esac | |
12365 | ||
12366 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
12367 | # in C++ we need to declare it. In case someone uses the same compiler | |
12368 | # for both compiling C and C++ we need to have the C++ compiler decide | |
12369 | # the declaration of exit, since it's the most demanding environment. | |
12370 | cat >conftest.$ac_ext <<_ACEOF | |
12371 | #ifndef __cplusplus | |
12372 | choke me | |
12373 | #endif | |
12374 | _ACEOF | |
12375 | rm -f conftest.$ac_objext | |
12376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12377 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12378 | ac_status=$? |
ac1cb8d3 VS |
12379 | grep -v '^ *+' conftest.er1 >conftest.err |
12380 | rm -f conftest.er1 | |
12381 | cat conftest.err >&5 | |
a848cd7e SC |
12382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12383 | (exit $ac_status); } && | |
c9a66001 | 12384 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12386 | (eval $ac_try) 2>&5 | |
12387 | ac_status=$? | |
12388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12389 | (exit $ac_status); }; } && | |
12390 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12392 | (eval $ac_try) 2>&5 | |
12393 | ac_status=$? | |
12394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12395 | (exit $ac_status); }; }; then | |
12396 | for ac_declaration in \ | |
ac1cb8d3 | 12397 | '' \ |
a848cd7e SC |
12398 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12399 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12400 | 'extern "C" void exit (int) throw ();' \ | |
12401 | 'extern "C" void exit (int);' \ | |
12402 | 'void exit (int);' | |
12403 | do | |
12404 | cat >conftest.$ac_ext <<_ACEOF | |
12405 | /* confdefs.h. */ | |
12406 | _ACEOF | |
12407 | cat confdefs.h >>conftest.$ac_ext | |
12408 | cat >>conftest.$ac_ext <<_ACEOF | |
12409 | /* end confdefs.h. */ | |
de59c161 | 12410 | $ac_declaration |
ac1cb8d3 | 12411 | #include <stdlib.h> |
a848cd7e SC |
12412 | int |
12413 | main () | |
12414 | { | |
12415 | exit (42); | |
12416 | ; | |
12417 | return 0; | |
12418 | } | |
12419 | _ACEOF | |
12420 | rm -f conftest.$ac_objext | |
12421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12422 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12423 | ac_status=$? |
ac1cb8d3 VS |
12424 | grep -v '^ *+' conftest.er1 >conftest.err |
12425 | rm -f conftest.er1 | |
12426 | cat conftest.err >&5 | |
a848cd7e SC |
12427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12428 | (exit $ac_status); } && | |
c9a66001 | 12429 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12431 | (eval $ac_try) 2>&5 | |
12432 | ac_status=$? | |
12433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12434 | (exit $ac_status); }; } && | |
12435 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12437 | (eval $ac_try) 2>&5 | |
12438 | ac_status=$? | |
12439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12440 | (exit $ac_status); }; }; then | |
12441 | : | |
12442 | else | |
12443 | echo "$as_me: failed program was:" >&5 | |
12444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12445 | ||
12446 | continue | |
12447 | fi | |
ac1cb8d3 | 12448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12449 | cat >conftest.$ac_ext <<_ACEOF |
12450 | /* confdefs.h. */ | |
12451 | _ACEOF | |
12452 | cat confdefs.h >>conftest.$ac_ext | |
12453 | cat >>conftest.$ac_ext <<_ACEOF | |
12454 | /* end confdefs.h. */ | |
12455 | $ac_declaration | |
12456 | int | |
12457 | main () | |
12458 | { | |
12459 | exit (42); | |
12460 | ; | |
12461 | return 0; | |
12462 | } | |
12463 | _ACEOF | |
12464 | rm -f conftest.$ac_objext | |
12465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12466 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12467 | ac_status=$? |
ac1cb8d3 VS |
12468 | grep -v '^ *+' conftest.er1 >conftest.err |
12469 | rm -f conftest.er1 | |
12470 | cat conftest.err >&5 | |
a848cd7e SC |
12471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12472 | (exit $ac_status); } && | |
c9a66001 | 12473 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12475 | (eval $ac_try) 2>&5 | |
12476 | ac_status=$? | |
12477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12478 | (exit $ac_status); }; } && | |
12479 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12481 | (eval $ac_try) 2>&5 | |
12482 | ac_status=$? | |
12483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12484 | (exit $ac_status); }; }; then | |
12485 | break | |
12486 | else | |
12487 | echo "$as_me: failed program was:" >&5 | |
12488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12489 | ||
12490 | fi | |
ac1cb8d3 | 12491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12492 | done |
12493 | rm -f conftest* | |
12494 | if test -n "$ac_declaration"; then | |
12495 | echo '#ifdef __cplusplus' >>confdefs.h | |
12496 | echo $ac_declaration >>confdefs.h | |
12497 | echo '#endif' >>confdefs.h | |
12498 | fi | |
12499 | ||
12500 | else | |
12501 | echo "$as_me: failed program was:" >&5 | |
12502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12503 | ||
12504 | fi | |
ac1cb8d3 | 12505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12506 | ac_ext=c |
12507 | ac_cpp='$CPP $CPPFLAGS' | |
12508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12511 | ||
ab0ad5f1 VZ |
12512 | |
12513 | ||
12514 | ac_ext=c | |
12515 | ac_cpp='$CPP $CPPFLAGS' | |
12516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12519 | ||
12520 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
12521 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
12522 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
12523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12524 | else | |
12525 | cat >conftest.$ac_ext <<_ACEOF | |
12526 | /* confdefs.h. */ | |
12527 | _ACEOF | |
12528 | cat confdefs.h >>conftest.$ac_ext | |
12529 | cat >>conftest.$ac_ext <<_ACEOF | |
12530 | /* end confdefs.h. */ | |
12531 | ||
12532 | int | |
12533 | main () | |
12534 | { | |
12535 | ||
12536 | #ifndef __INTEL_COMPILER | |
12537 | choke me | |
12538 | #endif | |
12539 | ||
12540 | ; | |
12541 | return 0; | |
12542 | } | |
12543 | _ACEOF | |
12544 | rm -f conftest.$ac_objext | |
12545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12546 | (eval $ac_compile) 2>conftest.er1 | |
12547 | ac_status=$? | |
12548 | grep -v '^ *+' conftest.er1 >conftest.err | |
12549 | rm -f conftest.er1 | |
12550 | cat conftest.err >&5 | |
12551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12552 | (exit $ac_status); } && | |
c9a66001 | 12553 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
12554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12555 | (eval $ac_try) 2>&5 | |
12556 | ac_status=$? | |
12557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12558 | (exit $ac_status); }; } && | |
12559 | { ac_try='test -s conftest.$ac_objext' | |
12560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12561 | (eval $ac_try) 2>&5 | |
12562 | ac_status=$? | |
12563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12564 | (exit $ac_status); }; }; then | |
12565 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
12566 | else | |
12567 | echo "$as_me: failed program was:" >&5 | |
12568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12569 | ||
12570 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
12571 | ||
12572 | fi | |
12573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12574 | ||
12575 | ||
12576 | fi | |
12577 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
12578 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
12579 | ac_ext=c | |
12580 | ac_cpp='$CPP $CPPFLAGS' | |
12581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12584 | ||
12585 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
12586 | :; INTELCC=yes | |
12587 | else | |
12588 | :; | |
12589 | fi | |
12590 | ||
12591 | ||
12592 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
12593 | if test "xCC" = "xC"; then |
12594 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 12595 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 12596 | if test "${bakefile_cv_c_exto+set}" = set; then |
480ccd21 DE |
12597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12598 | else | |
12599 | cat >conftest.$ac_ext <<_ACEOF | |
12600 | /* confdefs.h. */ | |
12601 | _ACEOF | |
12602 | cat confdefs.h >>conftest.$ac_ext | |
12603 | cat >>conftest.$ac_ext <<_ACEOF | |
12604 | /* end confdefs.h. */ | |
12605 | ||
12606 | int | |
12607 | main () | |
12608 | { | |
12609 | ||
12610 | ; | |
12611 | return 0; | |
12612 | } | |
12613 | _ACEOF | |
12614 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12616 | (eval $ac_compile) 2>&5 | |
12617 | ac_status=$? | |
12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12619 | (exit $ac_status); }; then | |
12620 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12621 | case $ac_file in | |
12622 | conftest.$ac_ext.o) | |
0093c2fc | 12623 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
12624 | ;; |
12625 | *) | |
12626 | ;; | |
12627 | esac | |
12628 | done | |
12629 | else | |
12630 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12631 | See \`config.log' for more details." >&5 | |
12632 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12633 | See \`config.log' for more details." >&2;} | |
12634 | { (exit 1); exit 1; }; } | |
12635 | ||
12636 | fi | |
12637 | ||
12638 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12639 | ||
12640 | fi | |
0093c2fc VZ |
12641 | echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
12642 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6 | |
12643 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
480ccd21 | 12644 | if test "c" = "c"; then |
0093c2fc | 12645 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
12646 | fi |
12647 | if test "c" = "cxx"; then | |
0093c2fc | 12648 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
12649 | fi |
12650 | fi | |
12651 | ||
0093c2fc | 12652 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
12653 | unset ac_cv_prog_cc_g |
12654 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 12655 | ac_save_CFLAGS=$CFLAGS |
8aeeb05c | 12656 | CFLAGS="-g" |
480ccd21 DE |
12657 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12658 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12659 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12661 | else | |
12662 | cat >conftest.$ac_ext <<_ACEOF | |
12663 | /* confdefs.h. */ | |
12664 | _ACEOF | |
12665 | cat confdefs.h >>conftest.$ac_ext | |
12666 | cat >>conftest.$ac_ext <<_ACEOF | |
12667 | /* end confdefs.h. */ | |
12668 | ||
12669 | int | |
12670 | main () | |
12671 | { | |
12672 | ||
12673 | ; | |
12674 | return 0; | |
12675 | } | |
12676 | _ACEOF | |
12677 | rm -f conftest.$ac_objext | |
12678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12679 | (eval $ac_compile) 2>conftest.er1 | |
12680 | ac_status=$? | |
12681 | grep -v '^ *+' conftest.er1 >conftest.err | |
12682 | rm -f conftest.er1 | |
12683 | cat conftest.err >&5 | |
12684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12685 | (exit $ac_status); } && | |
c9a66001 | 12686 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
12687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12688 | (eval $ac_try) 2>&5 | |
12689 | ac_status=$? | |
12690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12691 | (exit $ac_status); }; } && | |
12692 | { ac_try='test -s conftest.$ac_objext' | |
12693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12694 | (eval $ac_try) 2>&5 | |
12695 | ac_status=$? | |
12696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12697 | (exit $ac_status); }; }; then | |
12698 | ac_cv_prog_cc_g=yes | |
12699 | else | |
12700 | echo "$as_me: failed program was:" >&5 | |
12701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12702 | ||
12703 | ac_cv_prog_cc_g=no | |
12704 | fi | |
12705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12706 | fi | |
12707 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12708 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12709 | if test "$ac_test_CFLAGS" = set; then | |
12710 | CFLAGS=$ac_save_CFLAGS | |
12711 | elif test $ac_cv_prog_cc_g = yes; then | |
12712 | if test "$GCC" = yes; then | |
12713 | CFLAGS="-g -O2" | |
12714 | else | |
12715 | CFLAGS="-g" | |
12716 | fi | |
12717 | else | |
12718 | if test "$GCC" = yes; then | |
12719 | CFLAGS="-O2" | |
12720 | else | |
12721 | CFLAGS= | |
12722 | fi | |
12723 | fi | |
3006edc0 | 12724 | fi |
ab0ad5f1 | 12725 | fi |
3006edc0 VZ |
12726 | |
12727 | case `uname -s` in | |
12728 | AIX*) | |
12729 | ac_ext=c | |
12730 | ac_cpp='$CPP $CPPFLAGS' | |
12731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12734 | ||
12735 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12736 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12737 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
12738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12739 | else | |
12740 | cat >conftest.$ac_ext <<_ACEOF | |
12741 | /* confdefs.h. */ | |
12742 | _ACEOF | |
12743 | cat confdefs.h >>conftest.$ac_ext | |
12744 | cat >>conftest.$ac_ext <<_ACEOF | |
12745 | /* end confdefs.h. */ | |
12746 | ||
12747 | int | |
12748 | main () | |
12749 | { | |
12750 | #ifndef __xlC__ | |
12751 | choke me | |
12752 | #endif | |
12753 | ||
12754 | ; | |
12755 | return 0; | |
12756 | } | |
12757 | _ACEOF | |
12758 | rm -f conftest.$ac_objext | |
12759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12760 | (eval $ac_compile) 2>conftest.er1 | |
12761 | ac_status=$? | |
12762 | grep -v '^ *+' conftest.er1 >conftest.err | |
12763 | rm -f conftest.er1 | |
12764 | cat conftest.err >&5 | |
12765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12766 | (exit $ac_status); } && | |
c9a66001 | 12767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
12768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12769 | (eval $ac_try) 2>&5 | |
12770 | ac_status=$? | |
12771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12772 | (exit $ac_status); }; } && | |
12773 | { ac_try='test -s conftest.$ac_objext' | |
12774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12775 | (eval $ac_try) 2>&5 | |
12776 | ac_status=$? | |
12777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12778 | (exit $ac_status); }; }; then | |
0093c2fc | 12779 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
12780 | else |
12781 | echo "$as_me: failed program was:" >&5 | |
12782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12783 | ||
0093c2fc | 12784 | bakefile_compiler_xlc=no |
3006edc0 VZ |
12785 | fi |
12786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12787 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
12788 | |
12789 | fi | |
0093c2fc VZ |
12790 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12791 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
3006edc0 | 12792 | |
0093c2fc | 12793 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
12794 | ac_ext=c |
12795 | ac_cpp='$CPP $CPPFLAGS' | |
12796 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12797 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12798 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12799 | ||
12800 | ||
12801 | ;; | |
12802 | ||
12803 | Darwin) | |
12804 | ac_ext=c | |
95986553 DE |
12805 | ac_cpp='$CPP $CPPFLAGS' |
12806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12809 | ||
12810 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
12811 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
12812 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
12813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12814 | else | |
12815 | cat >conftest.$ac_ext <<_ACEOF | |
12816 | /* confdefs.h. */ | |
12817 | _ACEOF | |
12818 | cat confdefs.h >>conftest.$ac_ext | |
12819 | cat >>conftest.$ac_ext <<_ACEOF | |
12820 | /* end confdefs.h. */ | |
12821 | ||
12822 | int | |
12823 | main () | |
12824 | { | |
12825 | #ifndef __MWERKS__ | |
12826 | choke me | |
12827 | #endif | |
12828 | ||
12829 | ; | |
12830 | return 0; | |
12831 | } | |
12832 | _ACEOF | |
12833 | rm -f conftest.$ac_objext | |
12834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12835 | (eval $ac_compile) 2>conftest.er1 | |
12836 | ac_status=$? | |
12837 | grep -v '^ *+' conftest.er1 >conftest.err | |
12838 | rm -f conftest.er1 | |
12839 | cat conftest.err >&5 | |
12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12841 | (exit $ac_status); } && | |
c9a66001 | 12842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
12843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12844 | (eval $ac_try) 2>&5 | |
12845 | ac_status=$? | |
12846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12847 | (exit $ac_status); }; } && | |
12848 | { ac_try='test -s conftest.$ac_objext' | |
12849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12850 | (eval $ac_try) 2>&5 | |
12851 | ac_status=$? | |
12852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12853 | (exit $ac_status); }; }; then | |
12854 | bakefile_compiler_mwerks=yes | |
12855 | else | |
12856 | echo "$as_me: failed program was:" >&5 | |
12857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12858 | ||
12859 | bakefile_compiler_mwerks=no | |
12860 | fi | |
12861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12862 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
12863 | ||
12864 | fi | |
12865 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
12866 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
12867 | ||
0e6fa1d9 | 12868 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
12869 | ac_ext=c |
12870 | ac_cpp='$CPP $CPPFLAGS' | |
12871 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12872 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12873 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12874 | ||
12875 | ||
3006edc0 | 12876 | ac_ext=c |
9273ffba DE |
12877 | ac_cpp='$CPP $CPPFLAGS' |
12878 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12879 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12880 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12881 | ||
12882 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12883 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12884 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
12885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12886 | else | |
12887 | cat >conftest.$ac_ext <<_ACEOF | |
12888 | /* confdefs.h. */ | |
12889 | _ACEOF | |
12890 | cat confdefs.h >>conftest.$ac_ext | |
12891 | cat >>conftest.$ac_ext <<_ACEOF | |
12892 | /* end confdefs.h. */ | |
12893 | ||
12894 | int | |
12895 | main () | |
12896 | { | |
12897 | #ifndef __xlC__ | |
12898 | choke me | |
12899 | #endif | |
12900 | ||
12901 | ; | |
12902 | return 0; | |
12903 | } | |
12904 | _ACEOF | |
12905 | rm -f conftest.$ac_objext | |
12906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12907 | (eval $ac_compile) 2>conftest.er1 | |
12908 | ac_status=$? | |
12909 | grep -v '^ *+' conftest.er1 >conftest.err | |
12910 | rm -f conftest.er1 | |
12911 | cat conftest.err >&5 | |
12912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12913 | (exit $ac_status); } && | |
c9a66001 | 12914 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
12915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12916 | (eval $ac_try) 2>&5 | |
12917 | ac_status=$? | |
12918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12919 | (exit $ac_status); }; } && | |
12920 | { ac_try='test -s conftest.$ac_objext' | |
12921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12922 | (eval $ac_try) 2>&5 | |
12923 | ac_status=$? | |
12924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12925 | (exit $ac_status); }; }; then | |
0093c2fc | 12926 | bakefile_compiler_xlc=yes |
9273ffba DE |
12927 | else |
12928 | echo "$as_me: failed program was:" >&5 | |
12929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12930 | ||
0093c2fc | 12931 | bakefile_compiler_xlc=no |
9273ffba DE |
12932 | fi |
12933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12934 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
12935 | |
12936 | fi | |
0093c2fc VZ |
12937 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12938 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
9273ffba | 12939 | |
0093c2fc | 12940 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
12941 | ac_ext=c |
12942 | ac_cpp='$CPP $CPPFLAGS' | |
12943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12946 | ||
12947 | ||
3006edc0 VZ |
12948 | ;; |
12949 | ||
12950 | IRIX*) | |
a848cd7e | 12951 | |
6dcfc289 | 12952 | |
0ad5d837 VZ |
12953 | ac_ext=c |
12954 | ac_cpp='$CPP $CPPFLAGS' | |
12955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12958 | ||
12959 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12960 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12961 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12963 | else | |
12964 | cat >conftest.$ac_ext <<_ACEOF | |
12965 | /* confdefs.h. */ | |
12966 | _ACEOF | |
12967 | cat confdefs.h >>conftest.$ac_ext | |
12968 | cat >>conftest.$ac_ext <<_ACEOF | |
12969 | /* end confdefs.h. */ | |
12970 | ||
12971 | int | |
12972 | main () | |
12973 | { | |
12974 | ||
12975 | #ifndef _SGI_COMPILER_VERSION | |
12976 | choke me | |
12977 | #endif | |
12978 | ||
12979 | ; | |
12980 | return 0; | |
12981 | } | |
12982 | _ACEOF | |
12983 | rm -f conftest.$ac_objext | |
12984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12985 | (eval $ac_compile) 2>conftest.er1 | |
12986 | ac_status=$? | |
12987 | grep -v '^ *+' conftest.er1 >conftest.err | |
12988 | rm -f conftest.er1 | |
12989 | cat conftest.err >&5 | |
12990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12991 | (exit $ac_status); } && | |
c9a66001 | 12992 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
12993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12994 | (eval $ac_try) 2>&5 | |
12995 | ac_status=$? | |
12996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12997 | (exit $ac_status); }; } && | |
12998 | { ac_try='test -s conftest.$ac_objext' | |
12999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13000 | (eval $ac_try) 2>&5 | |
13001 | ac_status=$? | |
13002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13003 | (exit $ac_status); }; }; then | |
13004 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
13005 | else | |
13006 | echo "$as_me: failed program was:" >&5 | |
13007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13008 | ||
13009 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
13010 | ||
13011 | fi | |
13012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13013 | ||
13014 | ||
13015 | fi | |
13016 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
13017 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
13018 | ac_ext=c | |
13019 | ac_cpp='$CPP $CPPFLAGS' | |
13020 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13021 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13022 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13023 | ||
13024 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
13025 | :; SGICC=yes | |
13026 | else | |
13027 | :; | |
13028 | fi | |
13029 | ||
13030 | ||
3006edc0 VZ |
13031 | ;; |
13032 | ||
0093c2fc | 13033 | HP-UX*) |
3006edc0 VZ |
13034 | |
13035 | ||
13036 | ac_ext=c | |
13037 | ac_cpp='$CPP $CPPFLAGS' | |
13038 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13039 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13040 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13041 | ||
0093c2fc VZ |
13042 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
13043 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
13044 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
3006edc0 VZ |
13045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13046 | else | |
13047 | cat >conftest.$ac_ext <<_ACEOF | |
13048 | /* confdefs.h. */ | |
13049 | _ACEOF | |
13050 | cat confdefs.h >>conftest.$ac_ext | |
13051 | cat >>conftest.$ac_ext <<_ACEOF | |
13052 | /* end confdefs.h. */ | |
13053 | ||
13054 | int | |
13055 | main () | |
13056 | { | |
13057 | ||
0093c2fc | 13058 | #ifndef __HP_cc |
3006edc0 VZ |
13059 | choke me |
13060 | #endif | |
13061 | ||
13062 | ; | |
13063 | return 0; | |
13064 | } | |
13065 | _ACEOF | |
13066 | rm -f conftest.$ac_objext | |
13067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13068 | (eval $ac_compile) 2>conftest.er1 | |
13069 | ac_status=$? | |
13070 | grep -v '^ *+' conftest.er1 >conftest.err | |
13071 | rm -f conftest.er1 | |
13072 | cat conftest.err >&5 | |
13073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13074 | (exit $ac_status); } && | |
c9a66001 | 13075 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
13076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13077 | (eval $ac_try) 2>&5 | |
13078 | ac_status=$? | |
13079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13080 | (exit $ac_status); }; } && | |
13081 | { ac_try='test -s conftest.$ac_objext' | |
13082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13083 | (eval $ac_try) 2>&5 | |
13084 | ac_status=$? | |
13085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13086 | (exit $ac_status); }; }; then | |
0093c2fc | 13087 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 VZ |
13088 | else |
13089 | echo "$as_me: failed program was:" >&5 | |
13090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13091 | ||
0093c2fc | 13092 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
13093 | |
13094 | fi | |
13095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13096 | ||
13097 | ||
13098 | fi | |
0093c2fc VZ |
13099 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
13100 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
3006edc0 VZ |
13101 | ac_ext=c |
13102 | ac_cpp='$CPP $CPPFLAGS' | |
13103 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13104 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13105 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13106 | ||
0093c2fc VZ |
13107 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
13108 | :; HPCC=yes | |
a1aa0349 VZ |
13109 | else |
13110 | :; | |
13111 | fi | |
13112 | ||
13113 | ||
13114 | ;; | |
13115 | ||
0093c2fc | 13116 | OSF1) |
a1aa0349 VZ |
13117 | |
13118 | ||
13119 | ac_ext=c | |
13120 | ac_cpp='$CPP $CPPFLAGS' | |
13121 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13122 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13123 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13124 | ||
0093c2fc VZ |
13125 | echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
13126 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6 | |
13127 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then | |
a1aa0349 VZ |
13128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13129 | else | |
13130 | cat >conftest.$ac_ext <<_ACEOF | |
13131 | /* confdefs.h. */ | |
13132 | _ACEOF | |
13133 | cat confdefs.h >>conftest.$ac_ext | |
13134 | cat >>conftest.$ac_ext <<_ACEOF | |
13135 | /* end confdefs.h. */ | |
13136 | ||
13137 | int | |
13138 | main () | |
13139 | { | |
13140 | ||
0093c2fc | 13141 | #ifndef __DECC |
a1aa0349 VZ |
13142 | choke me |
13143 | #endif | |
13144 | ||
13145 | ; | |
13146 | return 0; | |
13147 | } | |
13148 | _ACEOF | |
13149 | rm -f conftest.$ac_objext | |
13150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13151 | (eval $ac_compile) 2>conftest.er1 | |
13152 | ac_status=$? | |
13153 | grep -v '^ *+' conftest.er1 >conftest.err | |
13154 | rm -f conftest.er1 | |
13155 | cat conftest.err >&5 | |
13156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13157 | (exit $ac_status); } && | |
c9a66001 | 13158 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
13159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13160 | (eval $ac_try) 2>&5 | |
13161 | ac_status=$? | |
13162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13163 | (exit $ac_status); }; } && | |
13164 | { ac_try='test -s conftest.$ac_objext' | |
13165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13166 | (eval $ac_try) 2>&5 | |
13167 | ac_status=$? | |
13168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13169 | (exit $ac_status); }; }; then | |
0093c2fc | 13170 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 VZ |
13171 | else |
13172 | echo "$as_me: failed program was:" >&5 | |
13173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13174 | ||
0093c2fc | 13175 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
13176 | |
13177 | fi | |
13178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13179 | ||
13180 | ||
13181 | fi | |
0093c2fc VZ |
13182 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
13183 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6 | |
a1aa0349 VZ |
13184 | ac_ext=c |
13185 | ac_cpp='$CPP $CPPFLAGS' | |
13186 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13187 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13189 | ||
0093c2fc VZ |
13190 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
13191 | :; COMPAQCC=yes | |
13192 | else | |
13193 | :; | |
13194 | fi | |
13195 | ||
13196 | ||
13197 | ;; | |
13198 | ||
13199 | SunOS) | |
13200 | ||
13201 | ||
13202 | ac_ext=c | |
13203 | ac_cpp='$CPP $CPPFLAGS' | |
13204 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13205 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13206 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13207 | ||
13208 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
13209 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
13210 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
13211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13212 | else | |
13213 | cat >conftest.$ac_ext <<_ACEOF | |
13214 | /* confdefs.h. */ | |
13215 | _ACEOF | |
13216 | cat confdefs.h >>conftest.$ac_ext | |
13217 | cat >>conftest.$ac_ext <<_ACEOF | |
13218 | /* end confdefs.h. */ | |
13219 | ||
13220 | int | |
13221 | main () | |
13222 | { | |
13223 | ||
13224 | #ifndef __SUNPRO_C | |
13225 | choke me | |
13226 | #endif | |
13227 | ||
13228 | ; | |
13229 | return 0; | |
13230 | } | |
13231 | _ACEOF | |
13232 | rm -f conftest.$ac_objext | |
13233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13234 | (eval $ac_compile) 2>conftest.er1 | |
13235 | ac_status=$? | |
13236 | grep -v '^ *+' conftest.er1 >conftest.err | |
13237 | rm -f conftest.er1 | |
13238 | cat conftest.err >&5 | |
13239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13240 | (exit $ac_status); } && | |
c9a66001 | 13241 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
13242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13243 | (eval $ac_try) 2>&5 | |
13244 | ac_status=$? | |
13245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13246 | (exit $ac_status); }; } && | |
13247 | { ac_try='test -s conftest.$ac_objext' | |
13248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13249 | (eval $ac_try) 2>&5 | |
13250 | ac_status=$? | |
13251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13252 | (exit $ac_status); }; }; then | |
13253 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
13254 | else | |
13255 | echo "$as_me: failed program was:" >&5 | |
13256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13257 | ||
13258 | bakefile_cv_c_compiler___SUNPRO_C=no | |
13259 | ||
13260 | fi | |
13261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13262 | ||
13263 | ||
13264 | fi | |
13265 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
13266 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
13267 | ac_ext=c | |
13268 | ac_cpp='$CPP $CPPFLAGS' | |
13269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13272 | ||
13273 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
13274 | :; SUNCC=yes | |
3006edc0 VZ |
13275 | else |
13276 | :; | |
13277 | fi | |
13278 | ||
13279 | ||
13280 | ;; | |
13281 | esac | |
ab0ad5f1 | 13282 | fi |
a9e5b1f0 MW |
13283 | |
13284 | ||
3006edc0 | 13285 | |
a848cd7e SC |
13286 | ac_ext=c |
13287 | ac_cpp='$CPP $CPPFLAGS' | |
13288 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13289 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13290 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13291 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
13292 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
13293 | # On Suns, sometimes $CPP names a directory. | |
13294 | if test -n "$CPP" && test -d "$CPP"; then | |
13295 | CPP= | |
13296 | fi | |
13297 | if test -z "$CPP"; then | |
13298 | if test "${ac_cv_prog_CPP+set}" = set; then | |
13299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13300 | else | |
13301 | # Double quotes because CPP needs to be expanded | |
13302 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
13303 | do | |
13304 | ac_preproc_ok=false | |
13305 | for ac_c_preproc_warn_flag in '' yes | |
13306 | do | |
13307 | # Use a header file that comes with gcc, so configuring glibc | |
13308 | # with a fresh cross-compiler works. | |
13309 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13310 | # <limits.h> exists even on freestanding compilers. | |
13311 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13312 | # not just through cpp. "Syntax error" is here to catch this case. | |
13313 | cat >conftest.$ac_ext <<_ACEOF | |
13314 | /* confdefs.h. */ | |
13315 | _ACEOF | |
13316 | cat confdefs.h >>conftest.$ac_ext | |
13317 | cat >>conftest.$ac_ext <<_ACEOF | |
13318 | /* end confdefs.h. */ | |
13319 | #ifdef __STDC__ | |
13320 | # include <limits.h> | |
13321 | #else | |
13322 | # include <assert.h> | |
13323 | #endif | |
ac1cb8d3 | 13324 | Syntax error |
a848cd7e SC |
13325 | _ACEOF |
13326 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13327 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13328 | ac_status=$? | |
13329 | grep -v '^ *+' conftest.er1 >conftest.err | |
13330 | rm -f conftest.er1 | |
13331 | cat conftest.err >&5 | |
13332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13333 | (exit $ac_status); } >/dev/null; then | |
13334 | if test -s conftest.err; then | |
13335 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13336 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13337 | else |
13338 | ac_cpp_err= | |
13339 | fi | |
13340 | else | |
13341 | ac_cpp_err=yes | |
13342 | fi | |
13343 | if test -z "$ac_cpp_err"; then | |
13344 | : | |
13345 | else | |
13346 | echo "$as_me: failed program was:" >&5 | |
13347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13348 | ||
13349 | # Broken: fails on valid input. | |
13350 | continue | |
13351 | fi | |
13352 | rm -f conftest.err conftest.$ac_ext | |
13353 | ||
13354 | # OK, works on sane cases. Now check whether non-existent headers | |
13355 | # can be detected and how. | |
13356 | cat >conftest.$ac_ext <<_ACEOF | |
13357 | /* confdefs.h. */ | |
13358 | _ACEOF | |
13359 | cat confdefs.h >>conftest.$ac_ext | |
13360 | cat >>conftest.$ac_ext <<_ACEOF | |
13361 | /* end confdefs.h. */ | |
13362 | #include <ac_nonexistent.h> | |
13363 | _ACEOF | |
13364 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13365 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13366 | ac_status=$? | |
13367 | grep -v '^ *+' conftest.er1 >conftest.err | |
13368 | rm -f conftest.er1 | |
13369 | cat conftest.err >&5 | |
13370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13371 | (exit $ac_status); } >/dev/null; then | |
13372 | if test -s conftest.err; then | |
13373 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13374 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13375 | else |
13376 | ac_cpp_err= | |
13377 | fi | |
13378 | else | |
13379 | ac_cpp_err=yes | |
13380 | fi | |
13381 | if test -z "$ac_cpp_err"; then | |
13382 | # Broken: success on invalid input. | |
13383 | continue | |
13384 | else | |
13385 | echo "$as_me: failed program was:" >&5 | |
13386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13387 | ||
13388 | # Passes both tests. | |
13389 | ac_preproc_ok=: | |
13390 | break | |
13391 | fi | |
13392 | rm -f conftest.err conftest.$ac_ext | |
13393 | ||
13394 | done | |
13395 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13396 | rm -f conftest.err conftest.$ac_ext | |
13397 | if $ac_preproc_ok; then | |
13398 | break | |
13399 | fi | |
13400 | ||
13401 | done | |
13402 | ac_cv_prog_CPP=$CPP | |
13403 | ||
13404 | fi | |
13405 | CPP=$ac_cv_prog_CPP | |
13406 | else | |
13407 | ac_cv_prog_CPP=$CPP | |
13408 | fi | |
13409 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
13410 | echo "${ECHO_T}$CPP" >&6 | |
13411 | ac_preproc_ok=false | |
13412 | for ac_c_preproc_warn_flag in '' yes | |
13413 | do | |
13414 | # Use a header file that comes with gcc, so configuring glibc | |
13415 | # with a fresh cross-compiler works. | |
13416 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13417 | # <limits.h> exists even on freestanding compilers. | |
13418 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13419 | # not just through cpp. "Syntax error" is here to catch this case. | |
13420 | cat >conftest.$ac_ext <<_ACEOF | |
13421 | /* confdefs.h. */ | |
13422 | _ACEOF | |
13423 | cat confdefs.h >>conftest.$ac_ext | |
13424 | cat >>conftest.$ac_ext <<_ACEOF | |
13425 | /* end confdefs.h. */ | |
13426 | #ifdef __STDC__ | |
13427 | # include <limits.h> | |
13428 | #else | |
13429 | # include <assert.h> | |
13430 | #endif | |
ac1cb8d3 | 13431 | Syntax error |
a848cd7e SC |
13432 | _ACEOF |
13433 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13434 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13435 | ac_status=$? | |
13436 | grep -v '^ *+' conftest.er1 >conftest.err | |
13437 | rm -f conftest.er1 | |
13438 | cat conftest.err >&5 | |
13439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13440 | (exit $ac_status); } >/dev/null; then | |
13441 | if test -s conftest.err; then | |
13442 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13443 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13444 | else |
13445 | ac_cpp_err= | |
13446 | fi | |
13447 | else | |
13448 | ac_cpp_err=yes | |
13449 | fi | |
13450 | if test -z "$ac_cpp_err"; then | |
13451 | : | |
13452 | else | |
13453 | echo "$as_me: failed program was:" >&5 | |
13454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13455 | ||
13456 | # Broken: fails on valid input. | |
13457 | continue | |
13458 | fi | |
13459 | rm -f conftest.err conftest.$ac_ext | |
13460 | ||
13461 | # OK, works on sane cases. Now check whether non-existent headers | |
13462 | # can be detected and how. | |
13463 | cat >conftest.$ac_ext <<_ACEOF | |
13464 | /* confdefs.h. */ | |
13465 | _ACEOF | |
13466 | cat confdefs.h >>conftest.$ac_ext | |
13467 | cat >>conftest.$ac_ext <<_ACEOF | |
13468 | /* end confdefs.h. */ | |
13469 | #include <ac_nonexistent.h> | |
13470 | _ACEOF | |
13471 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13472 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13473 | ac_status=$? | |
13474 | grep -v '^ *+' conftest.er1 >conftest.err | |
13475 | rm -f conftest.er1 | |
13476 | cat conftest.err >&5 | |
13477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13478 | (exit $ac_status); } >/dev/null; then | |
13479 | if test -s conftest.err; then | |
13480 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13481 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13482 | else |
13483 | ac_cpp_err= | |
13484 | fi | |
13485 | else | |
13486 | ac_cpp_err=yes | |
13487 | fi | |
13488 | if test -z "$ac_cpp_err"; then | |
13489 | # Broken: success on invalid input. | |
13490 | continue | |
13491 | else | |
13492 | echo "$as_me: failed program was:" >&5 | |
13493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13494 | ||
13495 | # Passes both tests. | |
13496 | ac_preproc_ok=: | |
13497 | break | |
13498 | fi | |
13499 | rm -f conftest.err conftest.$ac_ext | |
13500 | ||
13501 | done | |
13502 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13503 | rm -f conftest.err conftest.$ac_ext | |
13504 | if $ac_preproc_ok; then | |
13505 | : | |
13506 | else | |
13507 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
13508 | See \`config.log' for more details." >&5 | |
13509 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
13510 | See \`config.log' for more details." >&2;} | |
13511 | { (exit 1); exit 1; }; } | |
13512 | fi | |
13513 | ||
13514 | ac_ext=c | |
13515 | ac_cpp='$CPP $CPPFLAGS' | |
13516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13519 | ||
13520 | ||
13521 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
13522 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
13523 | if test "${ac_cv_prog_egrep+set}" = set; then | |
13524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13525 | else | |
13526 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
13527 | then ac_cv_prog_egrep='grep -E' | |
13528 | else ac_cv_prog_egrep='egrep' | |
13529 | fi | |
13530 | fi | |
13531 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
13532 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
13533 | EGREP=$ac_cv_prog_egrep | |
13534 | ||
13535 | ||
13536 | if test $ac_cv_c_compiler_gnu = yes; then | |
13537 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
13538 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
13539 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
13540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13541 | else | |
13542 | ac_pattern="Autoconf.*'x'" | |
13543 | cat >conftest.$ac_ext <<_ACEOF | |
13544 | /* confdefs.h. */ | |
13545 | _ACEOF | |
13546 | cat confdefs.h >>conftest.$ac_ext | |
13547 | cat >>conftest.$ac_ext <<_ACEOF | |
13548 | /* end confdefs.h. */ | |
13549 | #include <sgtty.h> | |
13550 | Autoconf TIOCGETP | |
13551 | _ACEOF | |
13552 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13553 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13554 | ac_cv_prog_gcc_traditional=yes | |
13555 | else | |
13556 | ac_cv_prog_gcc_traditional=no | |
13557 | fi | |
13558 | rm -f conftest* | |
13559 | ||
13560 | ||
13561 | if test $ac_cv_prog_gcc_traditional = no; then | |
13562 | cat >conftest.$ac_ext <<_ACEOF | |
13563 | /* confdefs.h. */ | |
13564 | _ACEOF | |
13565 | cat confdefs.h >>conftest.$ac_ext | |
13566 | cat >>conftest.$ac_ext <<_ACEOF | |
13567 | /* end confdefs.h. */ | |
13568 | #include <termio.h> | |
13569 | Autoconf TCGETA | |
13570 | _ACEOF | |
13571 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13572 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13573 | ac_cv_prog_gcc_traditional=yes | |
13574 | fi | |
13575 | rm -f conftest* | |
13576 | ||
13577 | fi | |
13578 | fi | |
13579 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
13580 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
13581 | if test $ac_cv_prog_gcc_traditional = yes; then | |
13582 | CC="$CC -traditional" | |
13583 | fi | |
13584 | fi | |
13585 | ||
13586 | ||
a848cd7e SC |
13587 | ac_ext=cc |
13588 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13589 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13590 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13591 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13592 | ||
13593 | ||
13594 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
13595 | |
13596 | ||
3006edc0 | 13597 | |
6dcfc289 | 13598 | ac_ext=cc |
a848cd7e SC |
13599 | ac_cpp='$CXXCPP $CPPFLAGS' |
13600 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13601 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13602 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13603 | if test -n "$ac_tool_prefix"; then | |
13604 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13605 | do | |
13606 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13607 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
13608 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13610 | if test "${ac_cv_prog_CXX+set}" = set; then | |
13611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13612 | else | |
13613 | if test -n "$CXX"; then | |
13614 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
13615 | else | |
13616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13617 | for as_dir in $PATH | |
13618 | do | |
13619 | IFS=$as_save_IFS | |
13620 | test -z "$as_dir" && as_dir=. | |
13621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13622 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13623 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
13624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13625 | break 2 | |
13626 | fi | |
13627 | done | |
13628 | done | |
13629 | ||
13630 | fi | |
13631 | fi | |
13632 | CXX=$ac_cv_prog_CXX | |
13633 | if test -n "$CXX"; then | |
13634 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
13635 | echo "${ECHO_T}$CXX" >&6 | |
13636 | else | |
13637 | echo "$as_me:$LINENO: result: no" >&5 | |
13638 | echo "${ECHO_T}no" >&6 | |
13639 | fi | |
13640 | ||
13641 | test -n "$CXX" && break | |
13642 | done | |
13643 | fi | |
13644 | if test -z "$CXX"; then | |
13645 | ac_ct_CXX=$CXX | |
13646 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13647 | do | |
13648 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13649 | set dummy $ac_prog; ac_word=$2 | |
13650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13652 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
13653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13654 | else | |
13655 | if test -n "$ac_ct_CXX"; then | |
13656 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
13657 | else | |
13658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13659 | for as_dir in $PATH | |
13660 | do | |
13661 | IFS=$as_save_IFS | |
13662 | test -z "$as_dir" && as_dir=. | |
13663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13665 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
13666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13667 | break 2 | |
13668 | fi | |
13669 | done | |
13670 | done | |
13671 | ||
13672 | fi | |
13673 | fi | |
13674 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
13675 | if test -n "$ac_ct_CXX"; then | |
13676 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
13677 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
13678 | else | |
13679 | echo "$as_me:$LINENO: result: no" >&5 | |
13680 | echo "${ECHO_T}no" >&6 | |
13681 | fi | |
13682 | ||
13683 | test -n "$ac_ct_CXX" && break | |
13684 | done | |
13685 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
13686 | ||
13687 | CXX=$ac_ct_CXX | |
13688 | fi | |
13689 | ||
13690 | ||
13691 | # Provide some information about the compiler. | |
13692 | echo "$as_me:$LINENO:" \ | |
13693 | "checking for C++ compiler version" >&5 | |
13694 | ac_compiler=`set X $ac_compile; echo $2` | |
13695 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
13696 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
13697 | ac_status=$? | |
13698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13699 | (exit $ac_status); } | |
13700 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
13701 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
13702 | ac_status=$? | |
13703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13704 | (exit $ac_status); } | |
13705 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
13706 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
13707 | ac_status=$? | |
13708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13709 | (exit $ac_status); } | |
13710 | ||
13711 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
13712 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
13713 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
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 __GNUC__ | |
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 | |
ac1cb8d3 | 13736 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13737 | ac_status=$? |
ac1cb8d3 VS |
13738 | grep -v '^ *+' conftest.er1 >conftest.err |
13739 | rm -f conftest.er1 | |
13740 | cat conftest.err >&5 | |
a848cd7e SC |
13741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13742 | (exit $ac_status); } && | |
c9a66001 | 13743 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13745 | (eval $ac_try) 2>&5 | |
13746 | ac_status=$? | |
13747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13748 | (exit $ac_status); }; } && | |
13749 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13751 | (eval $ac_try) 2>&5 | |
13752 | ac_status=$? | |
13753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13754 | (exit $ac_status); }; }; then | |
13755 | ac_compiler_gnu=yes | |
13756 | else | |
13757 | echo "$as_me: failed program was:" >&5 | |
13758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13759 | ||
13760 | ac_compiler_gnu=no | |
13761 | fi | |
ac1cb8d3 | 13762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13763 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
13764 | ||
13765 | fi | |
13766 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
13767 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
13768 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
13769 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
13770 | ac_save_CXXFLAGS=$CXXFLAGS | |
13771 | CXXFLAGS="-g" | |
13772 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
13773 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
13774 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
13775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13776 | else | |
13777 | cat >conftest.$ac_ext <<_ACEOF | |
13778 | /* confdefs.h. */ | |
13779 | _ACEOF | |
13780 | cat confdefs.h >>conftest.$ac_ext | |
13781 | cat >>conftest.$ac_ext <<_ACEOF | |
13782 | /* end confdefs.h. */ | |
13783 | ||
13784 | int | |
13785 | main () | |
13786 | { | |
13787 | ||
13788 | ; | |
13789 | return 0; | |
13790 | } | |
13791 | _ACEOF | |
13792 | rm -f conftest.$ac_objext | |
13793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13794 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13795 | ac_status=$? |
ac1cb8d3 VS |
13796 | grep -v '^ *+' conftest.er1 >conftest.err |
13797 | rm -f conftest.er1 | |
13798 | cat conftest.err >&5 | |
a848cd7e SC |
13799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13800 | (exit $ac_status); } && | |
c9a66001 | 13801 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13803 | (eval $ac_try) 2>&5 | |
13804 | ac_status=$? | |
13805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13806 | (exit $ac_status); }; } && | |
13807 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13809 | (eval $ac_try) 2>&5 | |
13810 | ac_status=$? | |
13811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13812 | (exit $ac_status); }; }; then | |
13813 | ac_cv_prog_cxx_g=yes | |
13814 | else | |
13815 | echo "$as_me: failed program was:" >&5 | |
13816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13817 | ||
13818 | ac_cv_prog_cxx_g=no | |
13819 | fi | |
ac1cb8d3 | 13820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13821 | fi |
13822 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13823 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13824 | if test "$ac_test_CXXFLAGS" = set; then | |
13825 | CXXFLAGS=$ac_save_CXXFLAGS | |
13826 | elif test $ac_cv_prog_cxx_g = yes; then | |
13827 | if test "$GXX" = yes; then | |
8aeeb05c | 13828 | CXXFLAGS="-g -O2" |
a848cd7e | 13829 | else |
8aeeb05c | 13830 | CXXFLAGS="-g" |
a848cd7e SC |
13831 | fi |
13832 | else | |
13833 | if test "$GXX" = yes; then | |
13834 | CXXFLAGS="-O2" | |
13835 | else | |
13836 | CXXFLAGS= | |
13837 | fi | |
13838 | fi | |
13839 | for ac_declaration in \ | |
ac1cb8d3 | 13840 | '' \ |
a848cd7e SC |
13841 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
13842 | 'extern "C" void std::exit (int); using std::exit;' \ | |
13843 | 'extern "C" void exit (int) throw ();' \ | |
13844 | 'extern "C" void exit (int);' \ | |
13845 | 'void exit (int);' | |
13846 | do | |
13847 | cat >conftest.$ac_ext <<_ACEOF | |
13848 | /* confdefs.h. */ | |
13849 | _ACEOF | |
13850 | cat confdefs.h >>conftest.$ac_ext | |
13851 | cat >>conftest.$ac_ext <<_ACEOF | |
13852 | /* end confdefs.h. */ | |
de59c161 | 13853 | $ac_declaration |
ac1cb8d3 | 13854 | #include <stdlib.h> |
a848cd7e SC |
13855 | int |
13856 | main () | |
13857 | { | |
13858 | exit (42); | |
13859 | ; | |
13860 | return 0; | |
13861 | } | |
13862 | _ACEOF | |
13863 | rm -f conftest.$ac_objext | |
13864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13865 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13866 | ac_status=$? |
ac1cb8d3 VS |
13867 | grep -v '^ *+' conftest.er1 >conftest.err |
13868 | rm -f conftest.er1 | |
13869 | cat conftest.err >&5 | |
a848cd7e SC |
13870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13871 | (exit $ac_status); } && | |
c9a66001 | 13872 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13874 | (eval $ac_try) 2>&5 | |
13875 | ac_status=$? | |
13876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13877 | (exit $ac_status); }; } && | |
13878 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13880 | (eval $ac_try) 2>&5 | |
13881 | ac_status=$? | |
13882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13883 | (exit $ac_status); }; }; then | |
13884 | : | |
13885 | else | |
13886 | echo "$as_me: failed program was:" >&5 | |
13887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13888 | ||
13889 | continue | |
13890 | fi | |
ac1cb8d3 | 13891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13892 | cat >conftest.$ac_ext <<_ACEOF |
13893 | /* confdefs.h. */ | |
13894 | _ACEOF | |
13895 | cat confdefs.h >>conftest.$ac_ext | |
13896 | cat >>conftest.$ac_ext <<_ACEOF | |
13897 | /* end confdefs.h. */ | |
13898 | $ac_declaration | |
13899 | int | |
13900 | main () | |
13901 | { | |
13902 | exit (42); | |
13903 | ; | |
13904 | return 0; | |
13905 | } | |
13906 | _ACEOF | |
13907 | rm -f conftest.$ac_objext | |
13908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13909 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13910 | ac_status=$? |
ac1cb8d3 VS |
13911 | grep -v '^ *+' conftest.er1 >conftest.err |
13912 | rm -f conftest.er1 | |
13913 | cat conftest.err >&5 | |
a848cd7e SC |
13914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13915 | (exit $ac_status); } && | |
c9a66001 | 13916 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13918 | (eval $ac_try) 2>&5 | |
13919 | ac_status=$? | |
13920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13921 | (exit $ac_status); }; } && | |
13922 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13924 | (eval $ac_try) 2>&5 | |
13925 | ac_status=$? | |
13926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13927 | (exit $ac_status); }; }; then | |
13928 | break | |
13929 | else | |
13930 | echo "$as_me: failed program was:" >&5 | |
13931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13932 | ||
13933 | fi | |
ac1cb8d3 | 13934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13935 | done |
13936 | rm -f conftest* | |
13937 | if test -n "$ac_declaration"; then | |
13938 | echo '#ifdef __cplusplus' >>confdefs.h | |
13939 | echo $ac_declaration >>confdefs.h | |
13940 | echo '#endif' >>confdefs.h | |
13941 | fi | |
13942 | ||
13943 | ac_ext=cc | |
13944 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13945 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13946 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13947 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13948 | ||
ab0ad5f1 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 | ||
13957 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
13958 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
13959 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
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 | ||
13973 | #ifndef __INTEL_COMPILER | |
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); } && | |
c9a66001 | 13990 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
13991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13992 | (eval $ac_try) 2>&5 | |
13993 | ac_status=$? | |
13994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13995 | (exit $ac_status); }; } && | |
13996 | { ac_try='test -s conftest.$ac_objext' | |
13997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13998 | (eval $ac_try) 2>&5 | |
13999 | ac_status=$? | |
14000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14001 | (exit $ac_status); }; }; then | |
14002 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
14003 | else | |
14004 | echo "$as_me: failed program was:" >&5 | |
14005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14006 | ||
14007 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
14008 | ||
14009 | fi | |
14010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14011 | ||
14012 | ||
14013 | fi | |
14014 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
14015 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
14016 | ac_ext=cc | |
14017 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14018 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14019 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14020 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14021 | ||
14022 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
14023 | :; INTELCXX=yes | |
14024 | else | |
14025 | :; | |
14026 | fi | |
14027 | ||
14028 | ||
3006edc0 VZ |
14029 | if test "x$GCXX" != "xyes"; then |
14030 | if test "xCXX" = "xC"; then | |
14031 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 14032 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 14033 | if test "${bakefile_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
14034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14035 | else | |
14036 | cat >conftest.$ac_ext <<_ACEOF | |
14037 | /* confdefs.h. */ | |
14038 | _ACEOF | |
14039 | cat confdefs.h >>conftest.$ac_ext | |
14040 | cat >>conftest.$ac_ext <<_ACEOF | |
14041 | /* end confdefs.h. */ | |
14042 | ||
14043 | int | |
14044 | main () | |
14045 | { | |
14046 | ||
14047 | ; | |
14048 | return 0; | |
14049 | } | |
14050 | _ACEOF | |
14051 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
14052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14053 | (eval $ac_compile) 2>&5 | |
14054 | ac_status=$? | |
14055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14056 | (exit $ac_status); }; then | |
14057 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
14058 | case $ac_file in | |
14059 | conftest.$ac_ext.o) | |
0093c2fc | 14060 | bakefile_cv_cxx_exto="-ext o" |
480ccd21 DE |
14061 | ;; |
14062 | *) | |
14063 | ;; | |
14064 | esac | |
14065 | done | |
14066 | else | |
14067 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
14068 | See \`config.log' for more details." >&5 | |
14069 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
14070 | See \`config.log' for more details." >&2;} | |
14071 | { (exit 1); exit 1; }; } | |
14072 | ||
14073 | fi | |
14074 | ||
14075 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
14076 | ||
14077 | fi | |
0093c2fc VZ |
14078 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5 |
14079 | echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6 | |
14080 | if test "x$bakefile_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 14081 | if test "cxx" = "c"; then |
0093c2fc | 14082 | CFLAGS="$bakefile_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
14083 | fi |
14084 | if test "cxx" = "cxx"; then | |
0093c2fc | 14085 | CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
14086 | fi |
14087 | fi | |
14088 | ||
0093c2fc | 14089 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
14090 | unset ac_cv_prog_cc_g |
14091 | ac_test_CFLAGS=${CFLAGS+set} | |
14092 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 14093 | CFLAGS="-g" |
3006edc0 VZ |
14094 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
14095 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
14096 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
14097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14098 | else | |
14099 | cat >conftest.$ac_ext <<_ACEOF | |
14100 | /* confdefs.h. */ | |
14101 | _ACEOF | |
14102 | cat confdefs.h >>conftest.$ac_ext | |
14103 | cat >>conftest.$ac_ext <<_ACEOF | |
14104 | /* end confdefs.h. */ | |
14105 | ||
14106 | int | |
14107 | main () | |
14108 | { | |
14109 | ||
14110 | ; | |
14111 | return 0; | |
14112 | } | |
14113 | _ACEOF | |
14114 | rm -f conftest.$ac_objext | |
14115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14116 | (eval $ac_compile) 2>conftest.er1 | |
14117 | ac_status=$? | |
14118 | grep -v '^ *+' conftest.er1 >conftest.err | |
14119 | rm -f conftest.er1 | |
14120 | cat conftest.err >&5 | |
14121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14122 | (exit $ac_status); } && | |
c9a66001 | 14123 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
14124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14125 | (eval $ac_try) 2>&5 | |
14126 | ac_status=$? | |
14127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14128 | (exit $ac_status); }; } && | |
14129 | { ac_try='test -s conftest.$ac_objext' | |
14130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14131 | (eval $ac_try) 2>&5 | |
14132 | ac_status=$? | |
14133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14134 | (exit $ac_status); }; }; then | |
3006edc0 | 14135 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
14136 | else |
14137 | echo "$as_me: failed program was:" >&5 | |
14138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14139 | ||
3006edc0 | 14140 | ac_cv_prog_cc_g=no |
480ccd21 DE |
14141 | fi |
14142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14143 | fi | |
3006edc0 VZ |
14144 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
14145 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
14146 | if test "$ac_test_CFLAGS" = set; then | |
14147 | CFLAGS=$ac_save_CFLAGS | |
14148 | elif test $ac_cv_prog_cc_g = yes; then | |
14149 | if test "$GCC" = yes; then | |
14150 | CFLAGS="-g -O2" | |
480ccd21 | 14151 | else |
3006edc0 | 14152 | CFLAGS="-g" |
480ccd21 DE |
14153 | fi |
14154 | else | |
3006edc0 VZ |
14155 | if test "$GCC" = yes; then |
14156 | CFLAGS="-O2" | |
480ccd21 | 14157 | else |
3006edc0 | 14158 | CFLAGS= |
480ccd21 DE |
14159 | fi |
14160 | fi | |
3006edc0 | 14161 | fi |
ab0ad5f1 | 14162 | fi |
3006edc0 VZ |
14163 | |
14164 | case `uname -s` in | |
14165 | AIX*) | |
14166 | ac_ext=cc | |
14167 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14168 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14169 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14170 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14171 | ||
14172 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
14173 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 14174 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
14175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14176 | else | |
14177 | cat >conftest.$ac_ext <<_ACEOF | |
14178 | /* confdefs.h. */ | |
14179 | _ACEOF | |
14180 | cat confdefs.h >>conftest.$ac_ext | |
14181 | cat >>conftest.$ac_ext <<_ACEOF | |
14182 | /* end confdefs.h. */ | |
14183 | ||
14184 | int | |
14185 | main () | |
14186 | { | |
14187 | #ifndef __xlC__ | |
14188 | choke me | |
14189 | #endif | |
14190 | ||
14191 | ; | |
14192 | return 0; | |
14193 | } | |
14194 | _ACEOF | |
14195 | rm -f conftest.$ac_objext | |
14196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14197 | (eval $ac_compile) 2>conftest.er1 | |
14198 | ac_status=$? | |
14199 | grep -v '^ *+' conftest.er1 >conftest.err | |
14200 | rm -f conftest.er1 | |
14201 | cat conftest.err >&5 | |
14202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14203 | (exit $ac_status); } && | |
c9a66001 | 14204 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
14205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14206 | (eval $ac_try) 2>&5 | |
14207 | ac_status=$? | |
14208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14209 | (exit $ac_status); }; } && | |
14210 | { ac_try='test -s conftest.$ac_objext' | |
14211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14212 | (eval $ac_try) 2>&5 | |
14213 | ac_status=$? | |
14214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14215 | (exit $ac_status); }; }; then | |
0093c2fc | 14216 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
14217 | else |
14218 | echo "$as_me: failed program was:" >&5 | |
14219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14220 | ||
0093c2fc | 14221 | bakefile_compiler_xlc=no |
3006edc0 VZ |
14222 | fi |
14223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 14224 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
14225 | |
14226 | fi | |
0093c2fc VZ |
14227 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
14228 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 14229 | |
0093c2fc | 14230 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
14231 | ac_ext=cc |
14232 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14233 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14234 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14235 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14236 | ||
14237 | ||
14238 | ;; | |
14239 | ||
14240 | Darwin) | |
14241 | ac_ext=cc | |
95986553 DE |
14242 | ac_cpp='$CXXCPP $CPPFLAGS' |
14243 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14244 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14245 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14246 | ||
14247 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
14248 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
14249 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
14250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14251 | else | |
14252 | cat >conftest.$ac_ext <<_ACEOF | |
14253 | /* confdefs.h. */ | |
14254 | _ACEOF | |
14255 | cat confdefs.h >>conftest.$ac_ext | |
14256 | cat >>conftest.$ac_ext <<_ACEOF | |
14257 | /* end confdefs.h. */ | |
14258 | ||
14259 | int | |
14260 | main () | |
14261 | { | |
14262 | #ifndef __MWERKS__ | |
14263 | choke me | |
14264 | #endif | |
14265 | ||
14266 | ; | |
14267 | return 0; | |
14268 | } | |
14269 | _ACEOF | |
14270 | rm -f conftest.$ac_objext | |
14271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14272 | (eval $ac_compile) 2>conftest.er1 | |
14273 | ac_status=$? | |
14274 | grep -v '^ *+' conftest.er1 >conftest.err | |
14275 | rm -f conftest.er1 | |
14276 | cat conftest.err >&5 | |
14277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14278 | (exit $ac_status); } && | |
c9a66001 | 14279 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
14280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14281 | (eval $ac_try) 2>&5 | |
14282 | ac_status=$? | |
14283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14284 | (exit $ac_status); }; } && | |
14285 | { ac_try='test -s conftest.$ac_objext' | |
14286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14287 | (eval $ac_try) 2>&5 | |
14288 | ac_status=$? | |
14289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14290 | (exit $ac_status); }; }; then | |
14291 | bakefile_compiler_mwerks=yes | |
14292 | else | |
14293 | echo "$as_me: failed program was:" >&5 | |
14294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14295 | ||
14296 | bakefile_compiler_mwerks=no | |
14297 | fi | |
14298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14299 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
14300 | ||
14301 | fi | |
14302 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
14303 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
14304 | ||
0e6fa1d9 | 14305 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
14306 | ac_ext=cc |
14307 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14308 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14309 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14310 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14311 | ||
14312 | ||
3006edc0 | 14313 | ac_ext=cc |
9273ffba DE |
14314 | ac_cpp='$CXXCPP $CPPFLAGS' |
14315 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14316 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14317 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14318 | ||
14319 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
14320 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 14321 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
14322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14323 | else | |
14324 | cat >conftest.$ac_ext <<_ACEOF | |
14325 | /* confdefs.h. */ | |
14326 | _ACEOF | |
14327 | cat confdefs.h >>conftest.$ac_ext | |
14328 | cat >>conftest.$ac_ext <<_ACEOF | |
14329 | /* end confdefs.h. */ | |
14330 | ||
14331 | int | |
14332 | main () | |
14333 | { | |
14334 | #ifndef __xlC__ | |
14335 | choke me | |
14336 | #endif | |
14337 | ||
14338 | ; | |
14339 | return 0; | |
14340 | } | |
14341 | _ACEOF | |
14342 | rm -f conftest.$ac_objext | |
14343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14344 | (eval $ac_compile) 2>conftest.er1 | |
14345 | ac_status=$? | |
14346 | grep -v '^ *+' conftest.er1 >conftest.err | |
14347 | rm -f conftest.er1 | |
14348 | cat conftest.err >&5 | |
14349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14350 | (exit $ac_status); } && | |
c9a66001 | 14351 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
14352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14353 | (eval $ac_try) 2>&5 | |
14354 | ac_status=$? | |
14355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14356 | (exit $ac_status); }; } && | |
14357 | { ac_try='test -s conftest.$ac_objext' | |
14358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14359 | (eval $ac_try) 2>&5 | |
14360 | ac_status=$? | |
14361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14362 | (exit $ac_status); }; }; then | |
0093c2fc | 14363 | bakefile_compiler_xlc=yes |
9273ffba DE |
14364 | else |
14365 | echo "$as_me: failed program was:" >&5 | |
14366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14367 | ||
0093c2fc | 14368 | bakefile_compiler_xlc=no |
9273ffba DE |
14369 | fi |
14370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 14371 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
14372 | |
14373 | fi | |
0093c2fc VZ |
14374 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
14375 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 14376 | |
0093c2fc | 14377 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
14378 | ac_ext=cc |
14379 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14380 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14381 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14382 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14383 | ||
14384 | ||
3006edc0 VZ |
14385 | ;; |
14386 | ||
14387 | IRIX*) | |
95986553 | 14388 | |
6dcfc289 | 14389 | |
0ad5d837 VZ |
14390 | ac_ext=cc |
14391 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14392 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14393 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14394 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14395 | ||
14396 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
14397 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
14398 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
14399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14400 | else | |
14401 | cat >conftest.$ac_ext <<_ACEOF | |
14402 | /* confdefs.h. */ | |
14403 | _ACEOF | |
14404 | cat confdefs.h >>conftest.$ac_ext | |
14405 | cat >>conftest.$ac_ext <<_ACEOF | |
14406 | /* end confdefs.h. */ | |
14407 | ||
14408 | int | |
14409 | main () | |
14410 | { | |
14411 | ||
14412 | #ifndef _SGI_COMPILER_VERSION | |
14413 | choke me | |
14414 | #endif | |
14415 | ||
14416 | ; | |
14417 | return 0; | |
14418 | } | |
14419 | _ACEOF | |
14420 | rm -f conftest.$ac_objext | |
14421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14422 | (eval $ac_compile) 2>conftest.er1 | |
14423 | ac_status=$? | |
14424 | grep -v '^ *+' conftest.er1 >conftest.err | |
14425 | rm -f conftest.er1 | |
14426 | cat conftest.err >&5 | |
14427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14428 | (exit $ac_status); } && | |
c9a66001 | 14429 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
14430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14431 | (eval $ac_try) 2>&5 | |
14432 | ac_status=$? | |
14433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14434 | (exit $ac_status); }; } && | |
14435 | { ac_try='test -s conftest.$ac_objext' | |
14436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14437 | (eval $ac_try) 2>&5 | |
14438 | ac_status=$? | |
14439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14440 | (exit $ac_status); }; }; then | |
14441 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
14442 | else | |
14443 | echo "$as_me: failed program was:" >&5 | |
14444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14445 | ||
14446 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
14447 | ||
14448 | fi | |
14449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14450 | ||
14451 | ||
14452 | fi | |
14453 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
14454 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
14455 | ac_ext=cc | |
14456 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14457 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14458 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14459 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14460 | ||
14461 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
14462 | :; SGICXX=yes | |
14463 | else | |
14464 | :; | |
14465 | fi | |
14466 | ||
14467 | ||
3006edc0 VZ |
14468 | ;; |
14469 | ||
0093c2fc | 14470 | HP-UX*) |
3006edc0 VZ |
14471 | |
14472 | ||
14473 | ac_ext=cc | |
14474 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14475 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14476 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14477 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14478 | ||
0093c2fc VZ |
14479 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
14480 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
14481 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
3006edc0 VZ |
14482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14483 | else | |
14484 | cat >conftest.$ac_ext <<_ACEOF | |
14485 | /* confdefs.h. */ | |
14486 | _ACEOF | |
14487 | cat confdefs.h >>conftest.$ac_ext | |
14488 | cat >>conftest.$ac_ext <<_ACEOF | |
14489 | /* end confdefs.h. */ | |
14490 | ||
14491 | int | |
14492 | main () | |
14493 | { | |
14494 | ||
0093c2fc | 14495 | #ifndef __HP_aCC |
3006edc0 VZ |
14496 | choke me |
14497 | #endif | |
14498 | ||
14499 | ; | |
14500 | return 0; | |
14501 | } | |
14502 | _ACEOF | |
14503 | rm -f conftest.$ac_objext | |
14504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14505 | (eval $ac_compile) 2>conftest.er1 | |
14506 | ac_status=$? | |
14507 | grep -v '^ *+' conftest.er1 >conftest.err | |
14508 | rm -f conftest.er1 | |
14509 | cat conftest.err >&5 | |
14510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14511 | (exit $ac_status); } && | |
c9a66001 | 14512 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
14513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14514 | (eval $ac_try) 2>&5 | |
14515 | ac_status=$? | |
14516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14517 | (exit $ac_status); }; } && | |
14518 | { ac_try='test -s conftest.$ac_objext' | |
14519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14520 | (eval $ac_try) 2>&5 | |
14521 | ac_status=$? | |
14522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14523 | (exit $ac_status); }; }; then | |
0093c2fc | 14524 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 VZ |
14525 | else |
14526 | echo "$as_me: failed program was:" >&5 | |
14527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14528 | ||
0093c2fc | 14529 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
14530 | |
14531 | fi | |
14532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14533 | ||
14534 | ||
14535 | fi | |
0093c2fc VZ |
14536 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
14537 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
3006edc0 VZ |
14538 | ac_ext=cc |
14539 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14540 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14541 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14542 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14543 | ||
0093c2fc VZ |
14544 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
14545 | :; HPCXX=yes | |
a1aa0349 VZ |
14546 | else |
14547 | :; | |
14548 | fi | |
14549 | ||
14550 | ||
14551 | ;; | |
14552 | ||
0093c2fc | 14553 | OSF1) |
a1aa0349 VZ |
14554 | |
14555 | ||
14556 | ac_ext=cc | |
14557 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14558 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14559 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14560 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14561 | ||
0093c2fc VZ |
14562 | echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
14563 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6 | |
14564 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then | |
a1aa0349 VZ |
14565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14566 | else | |
14567 | cat >conftest.$ac_ext <<_ACEOF | |
14568 | /* confdefs.h. */ | |
14569 | _ACEOF | |
14570 | cat confdefs.h >>conftest.$ac_ext | |
14571 | cat >>conftest.$ac_ext <<_ACEOF | |
14572 | /* end confdefs.h. */ | |
14573 | ||
14574 | int | |
14575 | main () | |
14576 | { | |
14577 | ||
0093c2fc | 14578 | #ifndef __DECCXX |
a1aa0349 VZ |
14579 | choke me |
14580 | #endif | |
14581 | ||
14582 | ; | |
14583 | return 0; | |
14584 | } | |
14585 | _ACEOF | |
14586 | rm -f conftest.$ac_objext | |
14587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14588 | (eval $ac_compile) 2>conftest.er1 | |
14589 | ac_status=$? | |
14590 | grep -v '^ *+' conftest.er1 >conftest.err | |
14591 | rm -f conftest.er1 | |
14592 | cat conftest.err >&5 | |
14593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14594 | (exit $ac_status); } && | |
c9a66001 | 14595 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
14596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14597 | (eval $ac_try) 2>&5 | |
14598 | ac_status=$? | |
14599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14600 | (exit $ac_status); }; } && | |
14601 | { ac_try='test -s conftest.$ac_objext' | |
14602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14603 | (eval $ac_try) 2>&5 | |
14604 | ac_status=$? | |
14605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14606 | (exit $ac_status); }; }; then | |
0093c2fc | 14607 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 VZ |
14608 | else |
14609 | echo "$as_me: failed program was:" >&5 | |
14610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14611 | ||
0093c2fc | 14612 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
14613 | |
14614 | fi | |
14615 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14616 | ||
14617 | ||
14618 | fi | |
0093c2fc VZ |
14619 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
14620 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6 | |
a1aa0349 VZ |
14621 | ac_ext=cc |
14622 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14623 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14624 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14625 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14626 | ||
0093c2fc VZ |
14627 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
14628 | :; COMPAQCXX=yes | |
14629 | else | |
14630 | :; | |
14631 | fi | |
14632 | ||
14633 | ||
14634 | ;; | |
14635 | ||
14636 | SunOS) | |
14637 | ||
14638 | ||
14639 | ac_ext=cc | |
14640 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14641 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14642 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14643 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14644 | ||
14645 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
14646 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
14647 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
14648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14649 | else | |
14650 | cat >conftest.$ac_ext <<_ACEOF | |
14651 | /* confdefs.h. */ | |
14652 | _ACEOF | |
14653 | cat confdefs.h >>conftest.$ac_ext | |
14654 | cat >>conftest.$ac_ext <<_ACEOF | |
14655 | /* end confdefs.h. */ | |
14656 | ||
14657 | int | |
14658 | main () | |
14659 | { | |
14660 | ||
14661 | #ifndef __SUNPRO_CC | |
14662 | choke me | |
14663 | #endif | |
14664 | ||
14665 | ; | |
14666 | return 0; | |
14667 | } | |
14668 | _ACEOF | |
14669 | rm -f conftest.$ac_objext | |
14670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14671 | (eval $ac_compile) 2>conftest.er1 | |
14672 | ac_status=$? | |
14673 | grep -v '^ *+' conftest.er1 >conftest.err | |
14674 | rm -f conftest.er1 | |
14675 | cat conftest.err >&5 | |
14676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14677 | (exit $ac_status); } && | |
c9a66001 | 14678 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
14679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14680 | (eval $ac_try) 2>&5 | |
14681 | ac_status=$? | |
14682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14683 | (exit $ac_status); }; } && | |
14684 | { ac_try='test -s conftest.$ac_objext' | |
14685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14686 | (eval $ac_try) 2>&5 | |
14687 | ac_status=$? | |
14688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14689 | (exit $ac_status); }; }; then | |
14690 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
14691 | else | |
14692 | echo "$as_me: failed program was:" >&5 | |
14693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14694 | ||
14695 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
14696 | ||
14697 | fi | |
14698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14699 | ||
14700 | ||
14701 | fi | |
14702 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
14703 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
14704 | ac_ext=cc | |
14705 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14706 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14707 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14708 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14709 | ||
14710 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
14711 | :; SUNCXX=yes | |
3006edc0 VZ |
14712 | else |
14713 | :; | |
ab0ad5f1 | 14714 | fi |
a9e5b1f0 MW |
14715 | |
14716 | ||
3006edc0 VZ |
14717 | ;; |
14718 | esac | |
14719 | fi | |
14720 | ||
14721 | ||
14722 | ||
a848cd7e SC |
14723 | if test -n "$ac_tool_prefix"; then |
14724 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
14725 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
14726 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14728 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
14729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14730 | else | |
14731 | if test -n "$RANLIB"; then | |
14732 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
14733 | else | |
14734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14735 | for as_dir in $PATH | |
14736 | do | |
14737 | IFS=$as_save_IFS | |
14738 | test -z "$as_dir" && as_dir=. | |
14739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14740 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14741 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
14742 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14743 | break 2 | |
14744 | fi | |
14745 | done | |
14746 | done | |
14747 | ||
14748 | fi | |
14749 | fi | |
14750 | RANLIB=$ac_cv_prog_RANLIB | |
14751 | if test -n "$RANLIB"; then | |
14752 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
14753 | echo "${ECHO_T}$RANLIB" >&6 | |
14754 | else | |
14755 | echo "$as_me:$LINENO: result: no" >&5 | |
14756 | echo "${ECHO_T}no" >&6 | |
14757 | fi | |
14758 | ||
14759 | fi | |
14760 | if test -z "$ac_cv_prog_RANLIB"; then | |
14761 | ac_ct_RANLIB=$RANLIB | |
14762 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14763 | set dummy ranlib; ac_word=$2 | |
14764 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14766 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
14767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14768 | else | |
14769 | if test -n "$ac_ct_RANLIB"; then | |
14770 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
14771 | else | |
14772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14773 | for as_dir in $PATH | |
14774 | do | |
14775 | IFS=$as_save_IFS | |
14776 | test -z "$as_dir" && as_dir=. | |
14777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14778 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14779 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
14780 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14781 | break 2 | |
14782 | fi | |
14783 | done | |
14784 | done | |
14785 | ||
14786 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
14787 | fi | |
14788 | fi | |
14789 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
14790 | if test -n "$ac_ct_RANLIB"; then | |
14791 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
14792 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
14793 | else | |
14794 | echo "$as_me:$LINENO: result: no" >&5 | |
14795 | echo "${ECHO_T}no" >&6 | |
14796 | fi | |
14797 | ||
14798 | RANLIB=$ac_ct_RANLIB | |
14799 | else | |
14800 | RANLIB="$ac_cv_prog_RANLIB" | |
14801 | fi | |
14802 | ||
14803 | ||
8c80d384 DE |
14804 | if test -n "$ac_tool_prefix"; then |
14805 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
14806 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
14807 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14809 | if test "${ac_cv_prog_AR+set}" = set; then | |
14810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14811 | else | |
14812 | if test -n "$AR"; then | |
14813 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
14814 | else | |
14815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14816 | for as_dir in $PATH | |
14817 | do | |
14818 | IFS=$as_save_IFS | |
14819 | test -z "$as_dir" && as_dir=. | |
14820 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14821 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14822 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
14823 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14824 | break 2 | |
14825 | fi | |
14826 | done | |
14827 | done | |
14828 | ||
14829 | fi | |
14830 | fi | |
14831 | AR=$ac_cv_prog_AR | |
14832 | if test -n "$AR"; then | |
14833 | echo "$as_me:$LINENO: result: $AR" >&5 | |
14834 | echo "${ECHO_T}$AR" >&6 | |
14835 | else | |
14836 | echo "$as_me:$LINENO: result: no" >&5 | |
14837 | echo "${ECHO_T}no" >&6 | |
14838 | fi | |
14839 | ||
8c80d384 DE |
14840 | fi |
14841 | if test -z "$ac_cv_prog_AR"; then | |
14842 | ac_ct_AR=$AR | |
14843 | # Extract the first word of "ar", so it can be a program name with args. | |
14844 | set dummy ar; ac_word=$2 | |
14845 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14847 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
14848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14849 | else | |
14850 | if test -n "$ac_ct_AR"; then | |
14851 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
14852 | else | |
14853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14854 | for as_dir in $PATH | |
14855 | do | |
14856 | IFS=$as_save_IFS | |
14857 | test -z "$as_dir" && as_dir=. | |
14858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14859 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14860 | ac_cv_prog_ac_ct_AR="ar" | |
14861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14862 | break 2 | |
14863 | fi | |
14864 | done | |
14865 | done | |
14866 | ||
14867 | fi | |
14868 | fi | |
14869 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
14870 | if test -n "$ac_ct_AR"; then | |
14871 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
14872 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
14873 | else | |
14874 | echo "$as_me:$LINENO: result: no" >&5 | |
14875 | echo "${ECHO_T}no" >&6 | |
14876 | fi | |
14877 | ||
14878 | AR=$ac_ct_AR | |
14879 | else | |
14880 | AR="$ac_cv_prog_AR" | |
14881 | fi | |
14882 | ||
a848cd7e | 14883 | if test "x$AR" = "x" ; then |
77ffb593 JS |
14884 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
14885 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
14886 | { (exit 1); exit 1; }; } |
14887 | fi | |
14888 | ||
14889 | # Find a good install program. We prefer a C program (faster), | |
14890 | # so one script is as good as another. But avoid the broken or | |
14891 | # incompatible versions: | |
14892 | # SysV /etc/install, /usr/sbin/install | |
14893 | # SunOS /usr/etc/install | |
14894 | # IRIX /sbin/install | |
14895 | # AIX /bin/install | |
14896 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14897 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14898 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14899 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 14900 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
14901 | # ./install, which can be erroneously created by make from ./install.sh. |
14902 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
14903 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
14904 | if test -z "$INSTALL"; then | |
14905 | if test "${ac_cv_path_install+set}" = set; then | |
14906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14907 | else | |
14908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14909 | for as_dir in $PATH | |
14910 | do | |
14911 | IFS=$as_save_IFS | |
14912 | test -z "$as_dir" && as_dir=. | |
14913 | # Account for people who put trailing slashes in PATH elements. | |
14914 | case $as_dir/ in | |
14915 | ./ | .// | /cC/* | \ | |
14916 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 14917 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
14918 | /usr/ucb/* ) ;; |
14919 | *) | |
14920 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14921 | # Don't use installbsd from OSF since it installs stuff as root | |
14922 | # by default. | |
14923 | for ac_prog in ginstall scoinst install; do | |
14924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
14925 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
14926 | if test $ac_prog = install && | |
14927 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14928 | # AIX install. It has an incompatible calling convention. | |
14929 | : | |
14930 | elif test $ac_prog = install && | |
14931 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14932 | # program-specific install script used by HP pwplus--don't use. | |
14933 | : | |
14934 | else | |
14935 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14936 | break 3 | |
14937 | fi | |
14938 | fi | |
a848cd7e SC |
14939 | done |
14940 | done | |
14941 | ;; | |
14942 | esac | |
14943 | done | |
14944 | ||
14945 | ||
14946 | fi | |
14947 | if test "${ac_cv_path_install+set}" = set; then | |
14948 | INSTALL=$ac_cv_path_install | |
14949 | else | |
14950 | # As a last resort, use the slow shell script. We don't cache a | |
14951 | # path for INSTALL within a source directory, because that will | |
14952 | # break other packages using the cache if that directory is | |
14953 | # removed, or if the path is relative. | |
14954 | INSTALL=$ac_install_sh | |
14955 | fi | |
14956 | fi | |
14957 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
14958 | echo "${ECHO_T}$INSTALL" >&6 | |
14959 | ||
14960 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14961 | # It thinks the first close brace ends the variable substitution. | |
14962 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14963 | ||
14964 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14965 | ||
14966 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14967 | ||
14968 | ||
14969 | case ${INSTALL} in | |
14970 | /* ) # Absolute | |
14971 | ;; | |
14972 | ?:* ) # Drive letter, considered as absolute. | |
14973 | ;; | |
14974 | *) | |
14975 | INSTALL=`pwd`/${INSTALL} ;; | |
14976 | esac | |
14977 | ||
a848cd7e SC |
14978 | |
14979 | case "${host}" in | |
14980 | ||
cfda0ea8 | 14981 | *-*-darwin* ) |
a848cd7e SC |
14982 | INSTALL_PROGRAM="cp -fp" |
14983 | INSTALL_DATA="cp -fp" | |
14984 | ;; | |
14985 | *) | |
14986 | ;; | |
14987 | esac | |
14988 | ||
8c80d384 DE |
14989 | if test -n "$ac_tool_prefix"; then |
14990 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14991 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
14992 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14994 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
14995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14996 | else | |
14997 | if test -n "$STRIP"; then | |
14998 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14999 | else | |
15000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15001 | for as_dir in $PATH | |
15002 | do | |
15003 | IFS=$as_save_IFS | |
15004 | test -z "$as_dir" && as_dir=. | |
15005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15006 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 15007 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
15008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15009 | break 2 | |
15010 | fi | |
15011 | done | |
15012 | done | |
15013 | ||
a848cd7e SC |
15014 | fi |
15015 | fi | |
15016 | STRIP=$ac_cv_prog_STRIP | |
15017 | if test -n "$STRIP"; then | |
15018 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
15019 | echo "${ECHO_T}$STRIP" >&6 | |
15020 | else | |
15021 | echo "$as_me:$LINENO: result: no" >&5 | |
15022 | echo "${ECHO_T}no" >&6 | |
15023 | fi | |
15024 | ||
8c80d384 DE |
15025 | fi |
15026 | if test -z "$ac_cv_prog_STRIP"; then | |
15027 | ac_ct_STRIP=$STRIP | |
15028 | # Extract the first word of "strip", so it can be a program name with args. | |
15029 | set dummy strip; ac_word=$2 | |
15030 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15031 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15032 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
15033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15034 | else | |
15035 | if test -n "$ac_ct_STRIP"; then | |
15036 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
15037 | else | |
15038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15039 | for as_dir in $PATH | |
15040 | do | |
15041 | IFS=$as_save_IFS | |
15042 | test -z "$as_dir" && as_dir=. | |
15043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15044 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15045 | ac_cv_prog_ac_ct_STRIP="strip" | |
15046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15047 | break 2 | |
15048 | fi | |
15049 | done | |
15050 | done | |
15051 | ||
15052 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
15053 | fi | |
15054 | fi | |
15055 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
15056 | if test -n "$ac_ct_STRIP"; then | |
15057 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
15058 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
15059 | else | |
15060 | echo "$as_me:$LINENO: result: no" >&5 | |
15061 | echo "${ECHO_T}no" >&6 | |
15062 | fi | |
15063 | ||
15064 | STRIP=$ac_ct_STRIP | |
15065 | else | |
15066 | STRIP="$ac_cv_prog_STRIP" | |
15067 | fi | |
15068 | ||
15069 | ||
15070 | if test "$wxUSE_WINE" = "yes"; then | |
15071 | if test -n "$ac_tool_prefix"; then | |
15072 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
15073 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
15074 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15075 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 15076 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8c80d384 DE |
15077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15078 | else | |
8ced02f6 DE |
15079 | if test -n "$WINDRES"; then |
15080 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8c80d384 DE |
15081 | else |
15082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15083 | for as_dir in $PATH | |
15084 | do | |
15085 | IFS=$as_save_IFS | |
15086 | test -z "$as_dir" && as_dir=. | |
15087 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15088 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 15089 | ac_cv_prog_WINDRES="${ac_tool_prefix}wrc" |
8c80d384 DE |
15090 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15091 | break 2 | |
15092 | fi | |
15093 | done | |
15094 | done | |
15095 | ||
15096 | fi | |
15097 | fi | |
8ced02f6 DE |
15098 | WINDRES=$ac_cv_prog_WINDRES |
15099 | if test -n "$WINDRES"; then | |
15100 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
15101 | echo "${ECHO_T}$WINDRES" >&6 | |
8c80d384 DE |
15102 | else |
15103 | echo "$as_me:$LINENO: result: no" >&5 | |
15104 | echo "${ECHO_T}no" >&6 | |
15105 | fi | |
15106 | ||
15107 | fi | |
8ced02f6 DE |
15108 | if test -z "$ac_cv_prog_WINDRES"; then |
15109 | ac_ct_WINDRES=$WINDRES | |
8c80d384 DE |
15110 | # Extract the first word of "wrc", so it can be a program name with args. |
15111 | set dummy wrc; ac_word=$2 | |
15112 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15113 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 15114 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8c80d384 DE |
15115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15116 | else | |
8ced02f6 DE |
15117 | if test -n "$ac_ct_WINDRES"; then |
15118 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8c80d384 DE |
15119 | else |
15120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15121 | for as_dir in $PATH | |
15122 | do | |
15123 | IFS=$as_save_IFS | |
15124 | test -z "$as_dir" && as_dir=. | |
15125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15126 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 15127 | ac_cv_prog_ac_ct_WINDRES="wrc" |
8c80d384 DE |
15128 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15129 | break 2 | |
15130 | fi | |
15131 | done | |
15132 | done | |
15133 | ||
15134 | fi | |
15135 | fi | |
8ced02f6 DE |
15136 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
15137 | if test -n "$ac_ct_WINDRES"; then | |
15138 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
15139 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
8c80d384 DE |
15140 | else |
15141 | echo "$as_me:$LINENO: result: no" >&5 | |
15142 | echo "${ECHO_T}no" >&6 | |
15143 | fi | |
15144 | ||
8ced02f6 | 15145 | WINDRES=$ac_ct_WINDRES |
8c80d384 | 15146 | else |
8ced02f6 | 15147 | WINDRES="$ac_cv_prog_WINDRES" |
8c80d384 DE |
15148 | fi |
15149 | ||
004ee6da | 15150 | RESCOMP="$WINDRES" |
8c80d384 DE |
15151 | else |
15152 | case "${host}" in | |
15153 | *-*-cygwin* | *-*-mingw32* ) | |
004ee6da RL |
15154 | if test -n "$ac_tool_prefix"; then |
15155 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
15156 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
15157 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15159 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
15160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15161 | else | |
15162 | if test -n "$WINDRES"; then | |
15163 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
15164 | else | |
15165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15166 | for as_dir in $PATH | |
15167 | do | |
15168 | IFS=$as_save_IFS | |
15169 | test -z "$as_dir" && as_dir=. | |
15170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15171 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15172 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
15173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15174 | break 2 | |
15175 | fi | |
15176 | done | |
15177 | done | |
15178 | ||
15179 | fi | |
15180 | fi | |
15181 | WINDRES=$ac_cv_prog_WINDRES | |
15182 | if test -n "$WINDRES"; then | |
15183 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
15184 | echo "${ECHO_T}$WINDRES" >&6 | |
15185 | else | |
15186 | echo "$as_me:$LINENO: result: no" >&5 | |
15187 | echo "${ECHO_T}no" >&6 | |
15188 | fi | |
15189 | ||
15190 | fi | |
15191 | if test -z "$ac_cv_prog_WINDRES"; then | |
15192 | ac_ct_WINDRES=$WINDRES | |
15193 | # Extract the first word of "windres", so it can be a program name with args. | |
15194 | set dummy windres; ac_word=$2 | |
15195 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15197 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
15198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15199 | else | |
15200 | if test -n "$ac_ct_WINDRES"; then | |
15201 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
15202 | else | |
15203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15204 | for as_dir in $PATH | |
15205 | do | |
15206 | IFS=$as_save_IFS | |
15207 | test -z "$as_dir" && as_dir=. | |
15208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15209 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15210 | ac_cv_prog_ac_ct_WINDRES="windres" | |
15211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15212 | break 2 | |
15213 | fi | |
15214 | done | |
15215 | done | |
15216 | ||
15217 | fi | |
15218 | fi | |
15219 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
15220 | if test -n "$ac_ct_WINDRES"; then | |
15221 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
15222 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
15223 | else | |
15224 | echo "$as_me:$LINENO: result: no" >&5 | |
15225 | echo "${ECHO_T}no" >&6 | |
15226 | fi | |
15227 | ||
15228 | WINDRES=$ac_ct_WINDRES | |
15229 | else | |
15230 | WINDRES="$ac_cv_prog_WINDRES" | |
15231 | fi | |
15232 | ||
15233 | RESCOMP="$WINDRES" | |
15234 | if test -n "$ac_tool_prefix"; then | |
8c80d384 DE |
15235 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
15236 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
15237 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15239 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
15240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15241 | else | |
15242 | if test -n "$DLLTOOL"; then | |
15243 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
15244 | else | |
15245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15246 | for as_dir in $PATH | |
15247 | do | |
15248 | IFS=$as_save_IFS | |
15249 | test -z "$as_dir" && as_dir=. | |
15250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15251 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15252 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
15253 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15254 | break 2 | |
15255 | fi | |
15256 | done | |
15257 | done | |
15258 | ||
15259 | fi | |
15260 | fi | |
15261 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
15262 | if test -n "$DLLTOOL"; then | |
15263 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
15264 | echo "${ECHO_T}$DLLTOOL" >&6 | |
15265 | else | |
15266 | echo "$as_me:$LINENO: result: no" >&5 | |
15267 | echo "${ECHO_T}no" >&6 | |
15268 | fi | |
15269 | ||
15270 | fi | |
15271 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
15272 | ac_ct_DLLTOOL=$DLLTOOL | |
15273 | # Extract the first word of "dlltool", so it can be a program name with args. | |
15274 | set dummy dlltool; ac_word=$2 | |
15275 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15277 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
15278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15279 | else | |
15280 | if test -n "$ac_ct_DLLTOOL"; then | |
15281 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
15282 | else | |
15283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15284 | for as_dir in $PATH | |
15285 | do | |
15286 | IFS=$as_save_IFS | |
15287 | test -z "$as_dir" && as_dir=. | |
15288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15289 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15290 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
15291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15292 | break 2 | |
15293 | fi | |
15294 | done | |
15295 | done | |
15296 | ||
15297 | fi | |
15298 | fi | |
15299 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
15300 | if test -n "$ac_ct_DLLTOOL"; then | |
15301 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
15302 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
15303 | else | |
15304 | echo "$as_me:$LINENO: result: no" >&5 | |
15305 | echo "${ECHO_T}no" >&6 | |
15306 | fi | |
15307 | ||
15308 | DLLTOOL=$ac_ct_DLLTOOL | |
15309 | else | |
15310 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
15311 | fi | |
15312 | ||
15313 | ;; | |
15314 | esac | |
15315 | fi | |
a848cd7e SC |
15316 | |
15317 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
15318 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
15319 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
15320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15321 | else | |
15322 | ||
15323 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
15324 | egrep -s GNU > /dev/null); then | |
15325 | wx_cv_prog_makeisgnu="yes" | |
15326 | else | |
15327 | wx_cv_prog_makeisgnu="no" | |
15328 | fi | |
15329 | ||
15330 | fi | |
15331 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
15332 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
15333 | ||
15334 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
15335 | IF_GNU_MAKE="" | |
15336 | else | |
15337 | IF_GNU_MAKE="#" | |
15338 | fi | |
15339 | ||
15340 | ||
15341 | ||
15342 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
15343 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
15344 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
15345 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
15346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15347 | else | |
15348 | ||
15349 | cat - << EOF > confMake | |
15350 | check : file | |
15351 | cp \$? \$@ | |
15352 | cp \$? final_file | |
15353 | EOF | |
15354 | ||
15355 | if test ! -d sub ; then | |
15356 | mkdir sub | |
15357 | fi | |
15358 | echo dummy > sub/file | |
15359 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
15360 | RESULT=$? | |
15361 | rm -f sub/file check final_file confMake | |
15362 | rmdir sub | |
15363 | if test "$RESULT" = 0; then | |
15364 | wx_cv_prog_makevpath="yes" | |
15365 | else | |
15366 | wx_cv_prog_makevpath="no" | |
15367 | fi | |
15368 | ||
15369 | fi | |
15370 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
15371 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
15372 | ||
15373 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
15374 | { { echo "$as_me:$LINENO: error: | |
15375 | You need a make-utility that is able to use the variable | |
15376 | VPATH correctly. | |
15377 | If your version of make does not support VPATH correctly, | |
15378 | please install GNU-make (possibly as gmake), and start | |
15379 | configure with the following command: | |
15380 | export MAKE=gmake; ./configure for sh-type shells | |
15381 | setenv MAKE gmake; ./configure for csh-type shells | |
15382 | Also please do remember to use gmake in this case every time | |
15383 | you are trying to compile. | |
15384 | " >&5 | |
15385 | echo "$as_me: error: | |
15386 | You need a make-utility that is able to use the variable | |
15387 | VPATH correctly. | |
15388 | If your version of make does not support VPATH correctly, | |
15389 | please install GNU-make (possibly as gmake), and start | |
15390 | configure with the following command: | |
15391 | export MAKE=gmake; ./configure for sh-type shells | |
15392 | setenv MAKE gmake; ./configure for csh-type shells | |
15393 | Also please do remember to use gmake in this case every time | |
15394 | you are trying to compile. | |
15395 | " >&2;} | |
15396 | { (exit 1); exit 1; }; } | |
15397 | fi fi | |
15398 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
15399 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
15400 | LN_S=$as_ln_s | |
15401 | if test "$LN_S" = "ln -s"; then | |
15402 | echo "$as_me:$LINENO: result: yes" >&5 | |
15403 | echo "${ECHO_T}yes" >&6 | |
15404 | else | |
15405 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
15406 | echo "${ECHO_T}no, using $LN_S" >&6 | |
15407 | fi | |
15408 | ||
15409 | ||
bcaab0f9 | 15410 | |
a848cd7e | 15411 | |
2113bc77 | 15412 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
c92ad099 | 15413 | CXXFLAGS="-qunique $CXXFLAGS" |
9273ffba DE |
15414 | fi |
15415 | ||
4d7ec9f1 DE |
15416 | case "${host}" in |
15417 | powerpc-*-darwin* ) | |
15418 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
15419 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
15420 | cat >conftest.$ac_ext <<_ACEOF | |
15421 | /* confdefs.h. */ | |
15422 | _ACEOF | |
15423 | cat confdefs.h >>conftest.$ac_ext | |
15424 | cat >>conftest.$ac_ext <<_ACEOF | |
15425 | /* end confdefs.h. */ | |
15426 | ||
15427 | int | |
15428 | main () | |
15429 | { | |
15430 | #ifndef __POWERPC__ | |
15431 | choke me for lack of PowerPC | |
15432 | #endif | |
15433 | ||
15434 | ; | |
15435 | return 0; | |
15436 | } | |
15437 | _ACEOF | |
15438 | rm -f conftest.$ac_objext | |
15439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15440 | (eval $ac_compile) 2>conftest.er1 | |
15441 | ac_status=$? | |
15442 | grep -v '^ *+' conftest.er1 >conftest.err | |
15443 | rm -f conftest.er1 | |
15444 | cat conftest.err >&5 | |
15445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15446 | (exit $ac_status); } && | |
c9a66001 | 15447 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15449 | (eval $ac_try) 2>&5 | |
15450 | ac_status=$? | |
15451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15452 | (exit $ac_status); }; } && | |
15453 | { ac_try='test -s conftest.$ac_objext' | |
15454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15455 | (eval $ac_try) 2>&5 | |
15456 | ac_status=$? | |
15457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15458 | (exit $ac_status); }; }; then | |
15459 | echo "$as_me:$LINENO: result: yes" >&5 | |
15460 | echo "${ECHO_T}yes" >&6 | |
15461 | else | |
15462 | echo "$as_me: failed program was:" >&5 | |
15463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15464 | ||
15465 | echo "$as_me:$LINENO: result: no" >&5 | |
15466 | echo "${ECHO_T}no" >&6 | |
15467 | cat >>confdefs.h <<\_ACEOF | |
15468 | #define __POWERPC__ 1 | |
15469 | _ACEOF | |
15470 | ||
15471 | ||
15472 | fi | |
15473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
15474 | ;; |
15475 | esac | |
15476 | ||
15477 | case "${host}" in | |
15478 | *-*-darwin* ) | |
4d7ec9f1 DE |
15479 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
15480 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
15481 | cat >conftest.$ac_ext <<_ACEOF | |
15482 | /* confdefs.h. */ | |
15483 | _ACEOF | |
15484 | cat confdefs.h >>conftest.$ac_ext | |
15485 | cat >>conftest.$ac_ext <<_ACEOF | |
15486 | /* end confdefs.h. */ | |
15487 | #include <CoreFoundation/CFBase.h> | |
15488 | ||
15489 | int | |
15490 | main () | |
15491 | { | |
15492 | ||
15493 | ; | |
15494 | return 0; | |
15495 | } | |
15496 | _ACEOF | |
15497 | rm -f conftest.$ac_objext | |
15498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15499 | (eval $ac_compile) 2>conftest.er1 | |
15500 | ac_status=$? | |
15501 | grep -v '^ *+' conftest.er1 >conftest.err | |
15502 | rm -f conftest.er1 | |
15503 | cat conftest.err >&5 | |
15504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15505 | (exit $ac_status); } && | |
c9a66001 | 15506 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15508 | (eval $ac_try) 2>&5 | |
15509 | ac_status=$? | |
15510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15511 | (exit $ac_status); }; } && | |
15512 | { ac_try='test -s conftest.$ac_objext' | |
15513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15514 | (eval $ac_try) 2>&5 | |
15515 | ac_status=$? | |
15516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15517 | (exit $ac_status); }; }; then | |
15518 | echo "$as_me:$LINENO: result: yes" >&5 | |
15519 | echo "${ECHO_T}yes" >&6 | |
15520 | else | |
15521 | echo "$as_me: failed program was:" >&5 | |
15522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15523 | ||
15524 | echo "$as_me:$LINENO: result: no" >&5 | |
15525 | echo "${ECHO_T}no" >&6 | |
15526 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
15527 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
15528 | cat >conftest.$ac_ext <<_ACEOF | |
15529 | /* confdefs.h. */ | |
15530 | _ACEOF | |
15531 | cat confdefs.h >>conftest.$ac_ext | |
15532 | cat >>conftest.$ac_ext <<_ACEOF | |
15533 | /* end confdefs.h. */ | |
15534 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
15535 | #include <CoreFoundation/CFBase.h> | |
15536 | ||
15537 | int | |
15538 | main () | |
15539 | { | |
15540 | ||
15541 | ; | |
15542 | return 0; | |
15543 | } | |
15544 | _ACEOF | |
15545 | rm -f conftest.$ac_objext | |
15546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15547 | (eval $ac_compile) 2>conftest.er1 | |
15548 | ac_status=$? | |
15549 | grep -v '^ *+' conftest.er1 >conftest.err | |
15550 | rm -f conftest.er1 | |
15551 | cat conftest.err >&5 | |
15552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15553 | (exit $ac_status); } && | |
c9a66001 | 15554 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15556 | (eval $ac_try) 2>&5 | |
15557 | ac_status=$? | |
15558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15559 | (exit $ac_status); }; } && | |
15560 | { ac_try='test -s conftest.$ac_objext' | |
15561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15562 | (eval $ac_try) 2>&5 | |
15563 | ac_status=$? | |
15564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15565 | (exit $ac_status); }; }; then | |
15566 | echo "$as_me:$LINENO: result: yes" >&5 | |
15567 | echo "${ECHO_T}yes" >&6 | |
c92ad099 | 15568 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" |
4d7ec9f1 DE |
15569 | else |
15570 | echo "$as_me: failed program was:" >&5 | |
15571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15572 | ||
15573 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
15574 | See \`config.log' for more details." >&5 | |
15575 | echo "$as_me: error: no. CoreFoundation not available. | |
15576 | See \`config.log' for more details." >&2;} | |
15577 | { (exit 1); exit 1; }; } | |
15578 | ||
15579 | fi | |
15580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15581 | ||
15582 | ||
15583 | fi | |
15584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15585 | ;; | |
15586 | esac | |
15587 | ||
a848cd7e SC |
15588 | case "${host}" in |
15589 | *-pc-os2_emx | *-pc-os2-emx ) | |
6ba87b06 SN |
15590 | ac_ext=c |
15591 | ac_cpp='$CPP $CPPFLAGS' | |
15592 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15593 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15594 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15595 | ||
15596 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
a848cd7e SC |
15597 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
15598 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
15599 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
15600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15601 | else | |
15602 | ac_check_lib_save_LIBS=$LIBS | |
15603 | LIBS="-lcExt $LIBS" | |
15604 | cat >conftest.$ac_ext <<_ACEOF | |
15605 | /* confdefs.h. */ | |
15606 | _ACEOF | |
15607 | cat confdefs.h >>conftest.$ac_ext | |
15608 | cat >>conftest.$ac_ext <<_ACEOF | |
15609 | /* end confdefs.h. */ | |
15610 | ||
15611 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15612 | #ifdef __cplusplus | |
15613 | extern "C" | |
15614 | #endif | |
15615 | /* We use char because int might match the return type of a gcc2 | |
15616 | builtin and then its argument prototype would still apply. */ | |
15617 | char drand48 (); | |
15618 | int | |
15619 | main () | |
15620 | { | |
15621 | drand48 (); | |
15622 | ; | |
15623 | return 0; | |
15624 | } | |
15625 | _ACEOF | |
15626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15628 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15629 | ac_status=$? |
ac1cb8d3 VS |
15630 | grep -v '^ *+' conftest.er1 >conftest.err |
15631 | rm -f conftest.er1 | |
15632 | cat conftest.err >&5 | |
a848cd7e SC |
15633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15634 | (exit $ac_status); } && | |
c9a66001 | 15635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
15641 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15643 | (eval $ac_try) 2>&5 | |
15644 | ac_status=$? | |
15645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15646 | (exit $ac_status); }; }; then | |
15647 | ac_cv_lib_cExt_drand48=yes | |
15648 | else | |
15649 | echo "$as_me: failed program was:" >&5 | |
15650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15651 | ||
15652 | ac_cv_lib_cExt_drand48=no | |
15653 | fi | |
ac1cb8d3 VS |
15654 | rm -f conftest.err conftest.$ac_objext \ |
15655 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15656 | LIBS=$ac_check_lib_save_LIBS |
15657 | fi | |
15658 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
15659 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
15660 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
15661 | LIBS="$LIBS -lcExt" | |
15662 | fi | |
15663 | ||
15664 | else | |
15665 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
15666 | fi | |
69120ee4 VZ |
15667 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
15668 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
15669 | if test "${wx_cv_gccversion+set}" = set; then |
15670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15671 | else | |
15672 | ||
391a765e VS |
15673 | if test "$cross_compiling" = yes; then |
15674 | wx_cv_gccversion="EMX2" | |
15675 | ||
15676 | else | |
15677 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
15678 | /* confdefs.h. */ |
15679 | _ACEOF | |
15680 | cat confdefs.h >>conftest.$ac_ext | |
15681 | cat >>conftest.$ac_ext <<_ACEOF | |
15682 | /* end confdefs.h. */ | |
15683 | ||
391a765e | 15684 | #include <stdio.h> |
a848cd7e | 15685 | |
391a765e VS |
15686 | int main() |
15687 | { | |
15688 | FILE *f=fopen("conftestval", "w"); | |
15689 | if (!f) exit(1); | |
15690 | fprintf(f, | |
a848cd7e | 15691 | #if (__GNUC__ < 3) |
391a765e VS |
15692 | "EMX2" |
15693 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
15694 | "EMX3" | |
15695 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
15696 | "Innotek5" | |
15697 | #else | |
15698 | "Innotek6" | |
a848cd7e | 15699 | #endif |
391a765e VS |
15700 | ); |
15701 | exit(0); | |
15702 | } | |
a848cd7e | 15703 | |
a848cd7e | 15704 | _ACEOF |
391a765e VS |
15705 | rm -f conftest$ac_exeext |
15706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15707 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
15708 | ac_status=$? |
15709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 15710 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
15711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15712 | (eval $ac_try) 2>&5 | |
15713 | ac_status=$? | |
15714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15715 | (exit $ac_status); }; }; then | |
391a765e | 15716 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 15717 | else |
391a765e VS |
15718 | echo "$as_me: program exited with status $ac_status" >&5 |
15719 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
15720 | sed 's/^/| /' conftest.$ac_ext >&5 |
15721 | ||
391a765e VS |
15722 | ( exit $ac_status ) |
15723 | wx_cv_gccversion="EMX2" | |
a848cd7e | 15724 | fi |
391a765e | 15725 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15726 | fi |
a848cd7e SC |
15727 | |
15728 | fi | |
15729 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
15730 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
6ba87b06 SN |
15731 | ac_ext=cc |
15732 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15733 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15734 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15735 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15736 | ||
391a765e | 15737 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
15738 | LIBS="$LIBS -lstdcpp" |
15739 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
15740 | else | |
391a765e | 15741 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 15742 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
15743 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
15744 | else | |
15745 | LIBS="$LIBS -lstdc++" | |
15746 | fi | |
15747 | fi | |
94acd38e DE |
15748 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
15749 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
15750 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
15751 | wxUSE_OMF=yes | |
2da0c077 | 15752 | enable_omf=yes |
a848cd7e SC |
15753 | fi |
15754 | ;; | |
15755 | *) | |
15756 | ||
95986553 | 15757 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
15758 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
15759 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
15760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15761 | else | |
15762 | ||
15763 | cat >conftest.$ac_ext <<_ACEOF | |
15764 | /* confdefs.h. */ | |
15765 | _ACEOF | |
15766 | cat confdefs.h >>conftest.$ac_ext | |
15767 | cat >>conftest.$ac_ext <<_ACEOF | |
15768 | /* end confdefs.h. */ | |
15769 | ||
15770 | #include <string.h> | |
15771 | ||
15772 | int | |
15773 | main () | |
15774 | { | |
15775 | ||
15776 | strcasecmp("foo", "bar"); | |
15777 | ||
15778 | ; | |
15779 | return 0; | |
15780 | } | |
15781 | _ACEOF | |
15782 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15784 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15785 | ac_status=$? |
ac1cb8d3 VS |
15786 | grep -v '^ *+' conftest.er1 >conftest.err |
15787 | rm -f conftest.er1 | |
15788 | cat conftest.err >&5 | |
a848cd7e SC |
15789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15790 | (exit $ac_status); } && | |
c9a66001 | 15791 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15793 | (eval $ac_try) 2>&5 | |
15794 | ac_status=$? | |
15795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15796 | (exit $ac_status); }; } && | |
15797 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15799 | (eval $ac_try) 2>&5 | |
15800 | ac_status=$? | |
15801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15802 | (exit $ac_status); }; }; then | |
15803 | ac_cv_string_strcasecmp=yes | |
15804 | else | |
15805 | echo "$as_me: failed program was:" >&5 | |
15806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15807 | ||
15808 | ac_cv_string_strcasecmp=no | |
15809 | ||
15810 | fi | |
ac1cb8d3 VS |
15811 | rm -f conftest.err conftest.$ac_objext \ |
15812 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15813 | |
15814 | fi | |
15815 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
15816 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
15817 | ||
15818 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
15819 | cat >>confdefs.h <<\_ACEOF | |
15820 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
15821 | _ACEOF | |
15822 | ||
15823 | else | |
15824 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
15825 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
15826 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
15827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15828 | else | |
15829 | ||
15830 | cat >conftest.$ac_ext <<_ACEOF | |
15831 | /* confdefs.h. */ | |
15832 | _ACEOF | |
15833 | cat confdefs.h >>conftest.$ac_ext | |
15834 | cat >>conftest.$ac_ext <<_ACEOF | |
15835 | /* end confdefs.h. */ | |
15836 | ||
15837 | #include <strings.h> | |
15838 | ||
15839 | int | |
15840 | main () | |
15841 | { | |
15842 | ||
15843 | strcasecmp("foo", "bar"); | |
15844 | ||
15845 | ; | |
15846 | return 0; | |
15847 | } | |
15848 | _ACEOF | |
15849 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15851 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15852 | ac_status=$? |
ac1cb8d3 VS |
15853 | grep -v '^ *+' conftest.er1 >conftest.err |
15854 | rm -f conftest.er1 | |
15855 | cat conftest.err >&5 | |
a848cd7e SC |
15856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15857 | (exit $ac_status); } && | |
c9a66001 | 15858 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15860 | (eval $ac_try) 2>&5 | |
15861 | ac_status=$? | |
15862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15863 | (exit $ac_status); }; } && | |
15864 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15866 | (eval $ac_try) 2>&5 | |
15867 | ac_status=$? | |
15868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15869 | (exit $ac_status); }; }; then | |
15870 | ac_cv_strings_strcasecmp=yes | |
15871 | else | |
15872 | echo "$as_me: failed program was:" >&5 | |
15873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15874 | ||
15875 | ac_cv_strings_strcasecmp=no | |
15876 | ||
15877 | fi | |
ac1cb8d3 VS |
15878 | rm -f conftest.err conftest.$ac_objext \ |
15879 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15880 | |
15881 | fi | |
15882 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
15883 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
15884 | ||
0c3c69fc | 15885 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
15886 | cat >>confdefs.h <<\_ACEOF |
15887 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
15888 | _ACEOF | |
15889 | ||
15890 | else | |
15891 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
15892 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
15893 | { (exit 1); exit 1; }; } | |
15894 | fi | |
15895 | fi | |
15896 | ||
a848cd7e SC |
15897 | ;; |
15898 | esac | |
15899 | ||
15900 | ||
5d7b7554 VZ |
15901 | ac_ext=cc |
15902 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15903 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15904 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15905 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15906 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
15907 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
15908 | if test -z "$CXXCPP"; then | |
15909 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
15910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15911 | else | |
15912 | # Double quotes because CXXCPP needs to be expanded | |
15913 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
15914 | do | |
15915 | ac_preproc_ok=false | |
15916 | for ac_cxx_preproc_warn_flag in '' yes | |
15917 | do | |
15918 | # Use a header file that comes with gcc, so configuring glibc | |
15919 | # with a fresh cross-compiler works. | |
15920 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15921 | # <limits.h> exists even on freestanding compilers. | |
15922 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
15923 | # not just through cpp. "Syntax error" is here to catch this case. | |
15924 | cat >conftest.$ac_ext <<_ACEOF | |
15925 | /* confdefs.h. */ | |
15926 | _ACEOF | |
15927 | cat confdefs.h >>conftest.$ac_ext | |
15928 | cat >>conftest.$ac_ext <<_ACEOF | |
15929 | /* end confdefs.h. */ | |
15930 | #ifdef __STDC__ | |
15931 | # include <limits.h> | |
15932 | #else | |
15933 | # include <assert.h> | |
15934 | #endif | |
15935 | Syntax error | |
15936 | _ACEOF | |
15937 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15938 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15939 | ac_status=$? | |
15940 | grep -v '^ *+' conftest.er1 >conftest.err | |
15941 | rm -f conftest.er1 | |
15942 | cat conftest.err >&5 | |
15943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15944 | (exit $ac_status); } >/dev/null; then | |
15945 | if test -s conftest.err; then | |
15946 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15947 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15948 | else | |
15949 | ac_cpp_err= | |
15950 | fi | |
15951 | else | |
15952 | ac_cpp_err=yes | |
15953 | fi | |
15954 | if test -z "$ac_cpp_err"; then | |
15955 | : | |
15956 | else | |
15957 | echo "$as_me: failed program was:" >&5 | |
15958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15959 | ||
15960 | # Broken: fails on valid input. | |
15961 | continue | |
15962 | fi | |
15963 | rm -f conftest.err conftest.$ac_ext | |
15964 | ||
15965 | # OK, works on sane cases. Now check whether non-existent headers | |
15966 | # can be detected and how. | |
15967 | cat >conftest.$ac_ext <<_ACEOF | |
15968 | /* confdefs.h. */ | |
15969 | _ACEOF | |
15970 | cat confdefs.h >>conftest.$ac_ext | |
15971 | cat >>conftest.$ac_ext <<_ACEOF | |
15972 | /* end confdefs.h. */ | |
15973 | #include <ac_nonexistent.h> | |
15974 | _ACEOF | |
15975 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15976 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15977 | ac_status=$? | |
15978 | grep -v '^ *+' conftest.er1 >conftest.err | |
15979 | rm -f conftest.er1 | |
15980 | cat conftest.err >&5 | |
15981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15982 | (exit $ac_status); } >/dev/null; then | |
15983 | if test -s conftest.err; then | |
15984 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15985 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15986 | else | |
15987 | ac_cpp_err= | |
15988 | fi | |
15989 | else | |
15990 | ac_cpp_err=yes | |
15991 | fi | |
15992 | if test -z "$ac_cpp_err"; then | |
15993 | # Broken: success on invalid input. | |
15994 | continue | |
15995 | else | |
15996 | echo "$as_me: failed program was:" >&5 | |
15997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15998 | ||
15999 | # Passes both tests. | |
16000 | ac_preproc_ok=: | |
16001 | break | |
16002 | fi | |
16003 | rm -f conftest.err conftest.$ac_ext | |
16004 | ||
16005 | done | |
16006 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16007 | rm -f conftest.err conftest.$ac_ext | |
16008 | if $ac_preproc_ok; then | |
16009 | break | |
16010 | fi | |
16011 | ||
16012 | done | |
16013 | ac_cv_prog_CXXCPP=$CXXCPP | |
16014 | ||
16015 | fi | |
16016 | CXXCPP=$ac_cv_prog_CXXCPP | |
16017 | else | |
16018 | ac_cv_prog_CXXCPP=$CXXCPP | |
16019 | fi | |
16020 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
16021 | echo "${ECHO_T}$CXXCPP" >&6 | |
16022 | ac_preproc_ok=false | |
16023 | for ac_cxx_preproc_warn_flag in '' yes | |
16024 | do | |
16025 | # Use a header file that comes with gcc, so configuring glibc | |
16026 | # with a fresh cross-compiler works. | |
16027 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16028 | # <limits.h> exists even on freestanding compilers. | |
16029 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16030 | # not just through cpp. "Syntax error" is here to catch this case. | |
16031 | cat >conftest.$ac_ext <<_ACEOF | |
16032 | /* confdefs.h. */ | |
16033 | _ACEOF | |
16034 | cat confdefs.h >>conftest.$ac_ext | |
16035 | cat >>conftest.$ac_ext <<_ACEOF | |
16036 | /* end confdefs.h. */ | |
16037 | #ifdef __STDC__ | |
16038 | # include <limits.h> | |
16039 | #else | |
16040 | # include <assert.h> | |
16041 | #endif | |
16042 | Syntax error | |
16043 | _ACEOF | |
16044 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16045 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16046 | ac_status=$? | |
16047 | grep -v '^ *+' conftest.er1 >conftest.err | |
16048 | rm -f conftest.er1 | |
16049 | cat conftest.err >&5 | |
16050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16051 | (exit $ac_status); } >/dev/null; then | |
16052 | if test -s conftest.err; then | |
16053 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16054 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
16055 | else | |
16056 | ac_cpp_err= | |
16057 | fi | |
16058 | else | |
16059 | ac_cpp_err=yes | |
16060 | fi | |
16061 | if test -z "$ac_cpp_err"; then | |
16062 | : | |
16063 | else | |
16064 | echo "$as_me: failed program was:" >&5 | |
16065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16066 | ||
16067 | # Broken: fails on valid input. | |
16068 | continue | |
16069 | fi | |
16070 | rm -f conftest.err conftest.$ac_ext | |
16071 | ||
16072 | # OK, works on sane cases. Now check whether non-existent headers | |
16073 | # can be detected and how. | |
16074 | cat >conftest.$ac_ext <<_ACEOF | |
16075 | /* confdefs.h. */ | |
16076 | _ACEOF | |
16077 | cat confdefs.h >>conftest.$ac_ext | |
16078 | cat >>conftest.$ac_ext <<_ACEOF | |
16079 | /* end confdefs.h. */ | |
16080 | #include <ac_nonexistent.h> | |
16081 | _ACEOF | |
16082 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16083 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16084 | ac_status=$? | |
16085 | grep -v '^ *+' conftest.er1 >conftest.err | |
16086 | rm -f conftest.er1 | |
16087 | cat conftest.err >&5 | |
16088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16089 | (exit $ac_status); } >/dev/null; then | |
16090 | if test -s conftest.err; then | |
16091 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16092 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
16093 | else | |
16094 | ac_cpp_err= | |
16095 | fi | |
16096 | else | |
16097 | ac_cpp_err=yes | |
16098 | fi | |
16099 | if test -z "$ac_cpp_err"; then | |
16100 | # Broken: success on invalid input. | |
16101 | continue | |
16102 | else | |
16103 | echo "$as_me: failed program was:" >&5 | |
16104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16105 | ||
16106 | # Passes both tests. | |
16107 | ac_preproc_ok=: | |
16108 | break | |
16109 | fi | |
16110 | rm -f conftest.err conftest.$ac_ext | |
16111 | ||
16112 | done | |
16113 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16114 | rm -f conftest.err conftest.$ac_ext | |
16115 | if $ac_preproc_ok; then | |
16116 | : | |
16117 | else | |
16118 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
16119 | See \`config.log' for more details." >&5 | |
16120 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
16121 | See \`config.log' for more details." >&2;} | |
16122 | { (exit 1); exit 1; }; } | |
16123 | fi | |
16124 | ||
16125 | ac_ext=cc | |
16126 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16127 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16128 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16129 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16130 | ||
16131 | ||
a848cd7e SC |
16132 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
16133 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
16134 | if test "${ac_cv_header_stdc+set}" = set; then | |
16135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16136 | else | |
16137 | cat >conftest.$ac_ext <<_ACEOF | |
16138 | /* confdefs.h. */ | |
16139 | _ACEOF | |
16140 | cat confdefs.h >>conftest.$ac_ext | |
16141 | cat >>conftest.$ac_ext <<_ACEOF | |
16142 | /* end confdefs.h. */ | |
16143 | #include <stdlib.h> | |
16144 | #include <stdarg.h> | |
16145 | #include <string.h> | |
16146 | #include <float.h> | |
16147 | ||
16148 | int | |
16149 | main () | |
16150 | { | |
16151 | ||
16152 | ; | |
16153 | return 0; | |
16154 | } | |
16155 | _ACEOF | |
16156 | rm -f conftest.$ac_objext | |
16157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16158 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16159 | ac_status=$? |
ac1cb8d3 VS |
16160 | grep -v '^ *+' conftest.er1 >conftest.err |
16161 | rm -f conftest.er1 | |
16162 | cat conftest.err >&5 | |
a848cd7e SC |
16163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16164 | (exit $ac_status); } && | |
c9a66001 | 16165 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16167 | (eval $ac_try) 2>&5 | |
16168 | ac_status=$? | |
16169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16170 | (exit $ac_status); }; } && | |
16171 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16173 | (eval $ac_try) 2>&5 | |
16174 | ac_status=$? | |
16175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16176 | (exit $ac_status); }; }; then | |
16177 | ac_cv_header_stdc=yes | |
16178 | else | |
16179 | echo "$as_me: failed program was:" >&5 | |
16180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16181 | ||
16182 | ac_cv_header_stdc=no | |
16183 | fi | |
ac1cb8d3 | 16184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16185 | |
16186 | if test $ac_cv_header_stdc = yes; then | |
16187 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16188 | cat >conftest.$ac_ext <<_ACEOF | |
16189 | /* confdefs.h. */ | |
16190 | _ACEOF | |
16191 | cat confdefs.h >>conftest.$ac_ext | |
16192 | cat >>conftest.$ac_ext <<_ACEOF | |
16193 | /* end confdefs.h. */ | |
16194 | #include <string.h> | |
16195 | ||
16196 | _ACEOF | |
16197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16198 | $EGREP "memchr" >/dev/null 2>&1; then | |
16199 | : | |
16200 | else | |
16201 | ac_cv_header_stdc=no | |
16202 | fi | |
16203 | rm -f conftest* | |
16204 | ||
16205 | fi | |
16206 | ||
16207 | if test $ac_cv_header_stdc = yes; then | |
16208 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16209 | cat >conftest.$ac_ext <<_ACEOF | |
16210 | /* confdefs.h. */ | |
16211 | _ACEOF | |
16212 | cat confdefs.h >>conftest.$ac_ext | |
16213 | cat >>conftest.$ac_ext <<_ACEOF | |
16214 | /* end confdefs.h. */ | |
16215 | #include <stdlib.h> | |
16216 | ||
16217 | _ACEOF | |
16218 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16219 | $EGREP "free" >/dev/null 2>&1; then | |
16220 | : | |
16221 | else | |
16222 | ac_cv_header_stdc=no | |
16223 | fi | |
16224 | rm -f conftest* | |
16225 | ||
16226 | fi | |
16227 | ||
16228 | if test $ac_cv_header_stdc = yes; then | |
16229 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16230 | if test "$cross_compiling" = yes; then | |
16231 | : | |
16232 | else | |
16233 | cat >conftest.$ac_ext <<_ACEOF | |
16234 | /* confdefs.h. */ | |
16235 | _ACEOF | |
16236 | cat confdefs.h >>conftest.$ac_ext | |
16237 | cat >>conftest.$ac_ext <<_ACEOF | |
16238 | /* end confdefs.h. */ | |
16239 | #include <ctype.h> | |
16240 | #if ((' ' & 0x0FF) == 0x020) | |
16241 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16242 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16243 | #else | |
16244 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
16245 | (('a' <= (c) && (c) <= 'i') \ |
16246 | || ('j' <= (c) && (c) <= 'r') \ | |
16247 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
16248 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
16249 | #endif | |
16250 | ||
16251 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16252 | int | |
16253 | main () | |
16254 | { | |
16255 | int i; | |
16256 | for (i = 0; i < 256; i++) | |
16257 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 16258 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
16259 | exit(2); |
16260 | exit (0); | |
16261 | } | |
16262 | _ACEOF | |
16263 | rm -f conftest$ac_exeext | |
16264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16265 | (eval $ac_link) 2>&5 | |
16266 | ac_status=$? | |
16267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16268 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16270 | (eval $ac_try) 2>&5 | |
16271 | ac_status=$? | |
16272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16273 | (exit $ac_status); }; }; then | |
16274 | : | |
16275 | else | |
16276 | echo "$as_me: program exited with status $ac_status" >&5 | |
16277 | echo "$as_me: failed program was:" >&5 | |
16278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16279 | ||
16280 | ( exit $ac_status ) | |
16281 | ac_cv_header_stdc=no | |
16282 | fi | |
ac1cb8d3 | 16283 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16284 | fi |
16285 | fi | |
16286 | fi | |
16287 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
16288 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
16289 | if test $ac_cv_header_stdc = yes; then | |
16290 | ||
16291 | cat >>confdefs.h <<\_ACEOF | |
16292 | #define STDC_HEADERS 1 | |
16293 | _ACEOF | |
16294 | ||
16295 | fi | |
16296 | ||
16297 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
16298 | ||
16299 | ||
16300 | ||
16301 | ||
16302 | ||
16303 | ||
16304 | ||
16305 | ||
16306 | ||
16307 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 16308 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
16309 | do |
16310 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16311 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16312 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16313 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16315 | else | |
16316 | cat >conftest.$ac_ext <<_ACEOF | |
16317 | /* confdefs.h. */ | |
16318 | _ACEOF | |
16319 | cat confdefs.h >>conftest.$ac_ext | |
16320 | cat >>conftest.$ac_ext <<_ACEOF | |
16321 | /* end confdefs.h. */ | |
16322 | $ac_includes_default | |
16323 | ||
16324 | #include <$ac_header> | |
16325 | _ACEOF | |
16326 | rm -f conftest.$ac_objext | |
16327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16328 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16329 | ac_status=$? |
ac1cb8d3 VS |
16330 | grep -v '^ *+' conftest.er1 >conftest.err |
16331 | rm -f conftest.er1 | |
16332 | cat conftest.err >&5 | |
a848cd7e SC |
16333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16334 | (exit $ac_status); } && | |
c9a66001 | 16335 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16337 | (eval $ac_try) 2>&5 | |
16338 | ac_status=$? | |
16339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16340 | (exit $ac_status); }; } && | |
16341 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16343 | (eval $ac_try) 2>&5 | |
16344 | ac_status=$? | |
16345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16346 | (exit $ac_status); }; }; then | |
16347 | eval "$as_ac_Header=yes" | |
16348 | else | |
16349 | echo "$as_me: failed program was:" >&5 | |
16350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16351 | ||
16352 | eval "$as_ac_Header=no" | |
16353 | fi | |
ac1cb8d3 | 16354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16355 | fi |
16356 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16357 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16358 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16359 | cat >>confdefs.h <<_ACEOF | |
16360 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16361 | _ACEOF | |
16362 | ||
16363 | fi | |
16364 | ||
16365 | done | |
16366 | ||
16367 | ||
16368 | ||
16369 | for ac_header in stdlib.h | |
16370 | do | |
16371 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16373 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16374 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16375 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16377 | fi | |
16378 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16379 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16380 | else | |
16381 | # Is the header compilable? | |
16382 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16383 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16384 | cat >conftest.$ac_ext <<_ACEOF | |
16385 | /* confdefs.h. */ | |
16386 | _ACEOF | |
16387 | cat confdefs.h >>conftest.$ac_ext | |
16388 | cat >>conftest.$ac_ext <<_ACEOF | |
16389 | /* end confdefs.h. */ | |
16390 | $ac_includes_default | |
16391 | #include <$ac_header> | |
16392 | _ACEOF | |
16393 | rm -f conftest.$ac_objext | |
16394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16395 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16396 | ac_status=$? |
ac1cb8d3 VS |
16397 | grep -v '^ *+' conftest.er1 >conftest.err |
16398 | rm -f conftest.er1 | |
16399 | cat conftest.err >&5 | |
a848cd7e SC |
16400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16401 | (exit $ac_status); } && | |
c9a66001 | 16402 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16404 | (eval $ac_try) 2>&5 | |
16405 | ac_status=$? | |
16406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16407 | (exit $ac_status); }; } && | |
16408 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16410 | (eval $ac_try) 2>&5 | |
16411 | ac_status=$? | |
16412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16413 | (exit $ac_status); }; }; then | |
16414 | ac_header_compiler=yes | |
16415 | else | |
16416 | echo "$as_me: failed program was:" >&5 | |
16417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16418 | ||
16419 | ac_header_compiler=no | |
16420 | fi | |
ac1cb8d3 | 16421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16422 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16423 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16424 | ||
16425 | # Is the header present? | |
16426 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16427 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16428 | cat >conftest.$ac_ext <<_ACEOF | |
16429 | /* confdefs.h. */ | |
16430 | _ACEOF | |
16431 | cat confdefs.h >>conftest.$ac_ext | |
16432 | cat >>conftest.$ac_ext <<_ACEOF | |
16433 | /* end confdefs.h. */ | |
16434 | #include <$ac_header> | |
16435 | _ACEOF | |
16436 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16437 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16438 | ac_status=$? | |
16439 | grep -v '^ *+' conftest.er1 >conftest.err | |
16440 | rm -f conftest.er1 | |
16441 | cat conftest.err >&5 | |
16442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16443 | (exit $ac_status); } >/dev/null; then | |
16444 | if test -s conftest.err; then | |
5d7b7554 VZ |
16445 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16446 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16447 | else |
16448 | ac_cpp_err= | |
16449 | fi | |
16450 | else | |
16451 | ac_cpp_err=yes | |
16452 | fi | |
16453 | if test -z "$ac_cpp_err"; then | |
16454 | ac_header_preproc=yes | |
16455 | else | |
16456 | echo "$as_me: failed program was:" >&5 | |
16457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16458 | ||
16459 | ac_header_preproc=no | |
16460 | fi | |
16461 | rm -f conftest.err conftest.$ac_ext | |
16462 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16463 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16464 | ||
16465 | # So? What about this header? | |
5d7b7554 | 16466 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16467 | yes:no: ) |
a848cd7e SC |
16468 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16469 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16470 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16471 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16472 | ac_header_preproc=yes | |
a848cd7e | 16473 | ;; |
ac1cb8d3 | 16474 | no:yes:* ) |
a848cd7e SC |
16475 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16476 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16477 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16478 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16479 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16480 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16481 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16482 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16483 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16484 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16485 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16486 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16487 | ( |
16488 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16489 | ## ----------------------------------------- ## |
16490 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16491 | ## ----------------------------------------- ## | |
a848cd7e SC |
16492 | _ASBOX |
16493 | ) | | |
16494 | sed "s/^/$as_me: WARNING: /" >&2 | |
16495 | ;; | |
16496 | esac | |
16497 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16498 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16501 | else | |
ac1cb8d3 | 16502 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16503 | fi |
16504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16505 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16506 | ||
16507 | fi | |
16508 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16509 | cat >>confdefs.h <<_ACEOF | |
16510 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16511 | _ACEOF | |
16512 | ||
16513 | fi | |
16514 | ||
16515 | done | |
16516 | ||
16517 | ||
16518 | for ac_header in malloc.h | |
16519 | do | |
16520 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16521 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16522 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16523 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16524 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16526 | fi | |
16527 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16528 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16529 | else | |
16530 | # Is the header compilable? | |
16531 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16532 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16533 | cat >conftest.$ac_ext <<_ACEOF | |
16534 | /* confdefs.h. */ | |
16535 | _ACEOF | |
16536 | cat confdefs.h >>conftest.$ac_ext | |
16537 | cat >>conftest.$ac_ext <<_ACEOF | |
16538 | /* end confdefs.h. */ | |
16539 | $ac_includes_default | |
16540 | #include <$ac_header> | |
16541 | _ACEOF | |
16542 | rm -f conftest.$ac_objext | |
16543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16544 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16545 | ac_status=$? |
ac1cb8d3 VS |
16546 | grep -v '^ *+' conftest.er1 >conftest.err |
16547 | rm -f conftest.er1 | |
16548 | cat conftest.err >&5 | |
a848cd7e SC |
16549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16550 | (exit $ac_status); } && | |
c9a66001 | 16551 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16553 | (eval $ac_try) 2>&5 | |
16554 | ac_status=$? | |
16555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16556 | (exit $ac_status); }; } && | |
16557 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16559 | (eval $ac_try) 2>&5 | |
16560 | ac_status=$? | |
16561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16562 | (exit $ac_status); }; }; then | |
16563 | ac_header_compiler=yes | |
16564 | else | |
16565 | echo "$as_me: failed program was:" >&5 | |
16566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16567 | ||
16568 | ac_header_compiler=no | |
16569 | fi | |
ac1cb8d3 | 16570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16571 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16572 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16573 | ||
16574 | # Is the header present? | |
16575 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16576 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16577 | cat >conftest.$ac_ext <<_ACEOF | |
16578 | /* confdefs.h. */ | |
16579 | _ACEOF | |
16580 | cat confdefs.h >>conftest.$ac_ext | |
16581 | cat >>conftest.$ac_ext <<_ACEOF | |
16582 | /* end confdefs.h. */ | |
16583 | #include <$ac_header> | |
16584 | _ACEOF | |
16585 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16586 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16587 | ac_status=$? | |
16588 | grep -v '^ *+' conftest.er1 >conftest.err | |
16589 | rm -f conftest.er1 | |
16590 | cat conftest.err >&5 | |
16591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16592 | (exit $ac_status); } >/dev/null; then | |
16593 | if test -s conftest.err; then | |
5d7b7554 VZ |
16594 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16595 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16596 | else |
16597 | ac_cpp_err= | |
16598 | fi | |
16599 | else | |
16600 | ac_cpp_err=yes | |
16601 | fi | |
16602 | if test -z "$ac_cpp_err"; then | |
16603 | ac_header_preproc=yes | |
16604 | else | |
16605 | echo "$as_me: failed program was:" >&5 | |
16606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16607 | ||
16608 | ac_header_preproc=no | |
16609 | fi | |
16610 | rm -f conftest.err conftest.$ac_ext | |
16611 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16612 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16613 | ||
16614 | # So? What about this header? | |
5d7b7554 | 16615 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16616 | yes:no: ) |
a848cd7e SC |
16617 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16618 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16619 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16620 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16621 | ac_header_preproc=yes | |
a848cd7e | 16622 | ;; |
ac1cb8d3 | 16623 | no:yes:* ) |
a848cd7e SC |
16624 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16625 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16626 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16627 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16628 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16629 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16630 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16631 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16632 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16633 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16634 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16635 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16636 | ( |
16637 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16638 | ## ----------------------------------------- ## |
16639 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16640 | ## ----------------------------------------- ## | |
a848cd7e SC |
16641 | _ASBOX |
16642 | ) | | |
16643 | sed "s/^/$as_me: WARNING: /" >&2 | |
16644 | ;; | |
16645 | esac | |
16646 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16647 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16648 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16650 | else | |
ac1cb8d3 | 16651 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16652 | fi |
16653 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16654 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16655 | ||
16656 | fi | |
16657 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16658 | cat >>confdefs.h <<_ACEOF | |
16659 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16660 | _ACEOF | |
16661 | ||
16662 | fi | |
16663 | ||
16664 | done | |
16665 | ||
16666 | ||
16667 | for ac_header in unistd.h | |
16668 | do | |
16669 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16670 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16671 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16672 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16673 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16675 | fi | |
16676 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16677 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16678 | else | |
16679 | # Is the header compilable? | |
16680 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16681 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16682 | cat >conftest.$ac_ext <<_ACEOF | |
16683 | /* confdefs.h. */ | |
16684 | _ACEOF | |
16685 | cat confdefs.h >>conftest.$ac_ext | |
16686 | cat >>conftest.$ac_ext <<_ACEOF | |
16687 | /* end confdefs.h. */ | |
16688 | $ac_includes_default | |
16689 | #include <$ac_header> | |
16690 | _ACEOF | |
16691 | rm -f conftest.$ac_objext | |
16692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16693 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16694 | ac_status=$? |
ac1cb8d3 VS |
16695 | grep -v '^ *+' conftest.er1 >conftest.err |
16696 | rm -f conftest.er1 | |
16697 | cat conftest.err >&5 | |
a848cd7e SC |
16698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16699 | (exit $ac_status); } && | |
c9a66001 | 16700 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16702 | (eval $ac_try) 2>&5 | |
16703 | ac_status=$? | |
16704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16705 | (exit $ac_status); }; } && | |
16706 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16708 | (eval $ac_try) 2>&5 | |
16709 | ac_status=$? | |
16710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16711 | (exit $ac_status); }; }; then | |
16712 | ac_header_compiler=yes | |
16713 | else | |
16714 | echo "$as_me: failed program was:" >&5 | |
16715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16716 | ||
16717 | ac_header_compiler=no | |
16718 | fi | |
ac1cb8d3 | 16719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16720 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16721 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16722 | ||
16723 | # Is the header present? | |
16724 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16725 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16726 | cat >conftest.$ac_ext <<_ACEOF | |
16727 | /* confdefs.h. */ | |
16728 | _ACEOF | |
16729 | cat confdefs.h >>conftest.$ac_ext | |
16730 | cat >>conftest.$ac_ext <<_ACEOF | |
16731 | /* end confdefs.h. */ | |
16732 | #include <$ac_header> | |
16733 | _ACEOF | |
16734 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16735 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16736 | ac_status=$? | |
16737 | grep -v '^ *+' conftest.er1 >conftest.err | |
16738 | rm -f conftest.er1 | |
16739 | cat conftest.err >&5 | |
16740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16741 | (exit $ac_status); } >/dev/null; then | |
16742 | if test -s conftest.err; then | |
5d7b7554 VZ |
16743 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16744 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16745 | else |
16746 | ac_cpp_err= | |
16747 | fi | |
16748 | else | |
16749 | ac_cpp_err=yes | |
16750 | fi | |
16751 | if test -z "$ac_cpp_err"; then | |
16752 | ac_header_preproc=yes | |
16753 | else | |
16754 | echo "$as_me: failed program was:" >&5 | |
16755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16756 | ||
16757 | ac_header_preproc=no | |
16758 | fi | |
16759 | rm -f conftest.err conftest.$ac_ext | |
16760 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16761 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16762 | ||
16763 | # So? What about this header? | |
5d7b7554 | 16764 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16765 | yes:no: ) |
a848cd7e SC |
16766 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16767 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16768 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16769 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16770 | ac_header_preproc=yes | |
a848cd7e | 16771 | ;; |
ac1cb8d3 | 16772 | no:yes:* ) |
a848cd7e SC |
16773 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16774 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16775 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16776 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16777 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16778 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16779 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16780 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16781 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16782 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16783 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16784 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16785 | ( |
16786 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16787 | ## ----------------------------------------- ## |
16788 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16789 | ## ----------------------------------------- ## | |
a848cd7e SC |
16790 | _ASBOX |
16791 | ) | | |
16792 | sed "s/^/$as_me: WARNING: /" >&2 | |
16793 | ;; | |
16794 | esac | |
16795 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16796 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16797 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16799 | else | |
ac1cb8d3 | 16800 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16801 | fi |
16802 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16803 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16804 | ||
16805 | fi | |
16806 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16807 | cat >>confdefs.h <<_ACEOF | |
16808 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16809 | _ACEOF | |
16810 | ||
16811 | fi | |
16812 | ||
16813 | done | |
16814 | ||
16815 | ||
16816 | for ac_header in wchar.h | |
16817 | do | |
16818 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16819 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16820 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16821 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16824 | fi | |
16825 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16826 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16827 | else | |
16828 | # Is the header compilable? | |
16829 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16830 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16831 | cat >conftest.$ac_ext <<_ACEOF | |
16832 | /* confdefs.h. */ | |
16833 | _ACEOF | |
16834 | cat confdefs.h >>conftest.$ac_ext | |
16835 | cat >>conftest.$ac_ext <<_ACEOF | |
16836 | /* end confdefs.h. */ | |
16837 | $ac_includes_default | |
16838 | #include <$ac_header> | |
16839 | _ACEOF | |
16840 | rm -f conftest.$ac_objext | |
16841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16842 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16843 | ac_status=$? |
ac1cb8d3 VS |
16844 | grep -v '^ *+' conftest.er1 >conftest.err |
16845 | rm -f conftest.er1 | |
16846 | cat conftest.err >&5 | |
a848cd7e SC |
16847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16848 | (exit $ac_status); } && | |
c9a66001 | 16849 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16851 | (eval $ac_try) 2>&5 | |
16852 | ac_status=$? | |
16853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16854 | (exit $ac_status); }; } && | |
16855 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16857 | (eval $ac_try) 2>&5 | |
16858 | ac_status=$? | |
16859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16860 | (exit $ac_status); }; }; then | |
16861 | ac_header_compiler=yes | |
16862 | else | |
16863 | echo "$as_me: failed program was:" >&5 | |
16864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16865 | ||
16866 | ac_header_compiler=no | |
16867 | fi | |
ac1cb8d3 | 16868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16869 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16870 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16871 | ||
16872 | # Is the header present? | |
16873 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16874 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16875 | cat >conftest.$ac_ext <<_ACEOF | |
16876 | /* confdefs.h. */ | |
16877 | _ACEOF | |
16878 | cat confdefs.h >>conftest.$ac_ext | |
16879 | cat >>conftest.$ac_ext <<_ACEOF | |
16880 | /* end confdefs.h. */ | |
16881 | #include <$ac_header> | |
16882 | _ACEOF | |
16883 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16884 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16885 | ac_status=$? | |
16886 | grep -v '^ *+' conftest.er1 >conftest.err | |
16887 | rm -f conftest.er1 | |
16888 | cat conftest.err >&5 | |
16889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16890 | (exit $ac_status); } >/dev/null; then | |
16891 | if test -s conftest.err; then | |
5d7b7554 VZ |
16892 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16893 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16894 | else |
16895 | ac_cpp_err= | |
16896 | fi | |
16897 | else | |
16898 | ac_cpp_err=yes | |
16899 | fi | |
16900 | if test -z "$ac_cpp_err"; then | |
16901 | ac_header_preproc=yes | |
16902 | else | |
16903 | echo "$as_me: failed program was:" >&5 | |
16904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16905 | ||
16906 | ac_header_preproc=no | |
16907 | fi | |
16908 | rm -f conftest.err conftest.$ac_ext | |
16909 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16910 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16911 | ||
16912 | # So? What about this header? | |
5d7b7554 | 16913 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16914 | yes:no: ) |
a848cd7e SC |
16915 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16916 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16917 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16918 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16919 | ac_header_preproc=yes | |
a848cd7e | 16920 | ;; |
ac1cb8d3 | 16921 | no:yes:* ) |
a848cd7e SC |
16922 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16923 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16924 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16925 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16926 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16927 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16928 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16929 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16930 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16931 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16932 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16933 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16934 | ( |
16935 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16936 | ## ----------------------------------------- ## |
16937 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16938 | ## ----------------------------------------- ## | |
a848cd7e SC |
16939 | _ASBOX |
16940 | ) | | |
16941 | sed "s/^/$as_me: WARNING: /" >&2 | |
16942 | ;; | |
16943 | esac | |
16944 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16945 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16948 | else | |
ac1cb8d3 | 16949 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16950 | fi |
16951 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16952 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16953 | ||
16954 | fi | |
16955 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16956 | cat >>confdefs.h <<_ACEOF | |
16957 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16958 | _ACEOF | |
16959 | ||
16960 | fi | |
16961 | ||
16962 | done | |
16963 | ||
16964 | ||
16965 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
16966 | ||
16967 | for ac_header in wcstr.h | |
16968 | do | |
16969 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16970 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16971 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16972 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16973 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16975 | fi | |
16976 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16977 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16978 | else | |
16979 | # Is the header compilable? | |
16980 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16981 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16982 | cat >conftest.$ac_ext <<_ACEOF | |
16983 | /* confdefs.h. */ | |
16984 | _ACEOF | |
16985 | cat confdefs.h >>conftest.$ac_ext | |
16986 | cat >>conftest.$ac_ext <<_ACEOF | |
16987 | /* end confdefs.h. */ | |
16988 | $ac_includes_default | |
16989 | #include <$ac_header> | |
16990 | _ACEOF | |
16991 | rm -f conftest.$ac_objext | |
16992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16993 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16994 | ac_status=$? |
ac1cb8d3 VS |
16995 | grep -v '^ *+' conftest.er1 >conftest.err |
16996 | rm -f conftest.er1 | |
16997 | cat conftest.err >&5 | |
a848cd7e SC |
16998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16999 | (exit $ac_status); } && | |
c9a66001 | 17000 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17002 | (eval $ac_try) 2>&5 | |
17003 | ac_status=$? | |
17004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17005 | (exit $ac_status); }; } && | |
17006 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17008 | (eval $ac_try) 2>&5 | |
17009 | ac_status=$? | |
17010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17011 | (exit $ac_status); }; }; then | |
17012 | ac_header_compiler=yes | |
17013 | else | |
17014 | echo "$as_me: failed program was:" >&5 | |
17015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17016 | ||
17017 | ac_header_compiler=no | |
17018 | fi | |
ac1cb8d3 | 17019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17020 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17021 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17022 | ||
17023 | # Is the header present? | |
17024 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17025 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17026 | cat >conftest.$ac_ext <<_ACEOF | |
17027 | /* confdefs.h. */ | |
17028 | _ACEOF | |
17029 | cat confdefs.h >>conftest.$ac_ext | |
17030 | cat >>conftest.$ac_ext <<_ACEOF | |
17031 | /* end confdefs.h. */ | |
17032 | #include <$ac_header> | |
17033 | _ACEOF | |
17034 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17035 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17036 | ac_status=$? | |
17037 | grep -v '^ *+' conftest.er1 >conftest.err | |
17038 | rm -f conftest.er1 | |
17039 | cat conftest.err >&5 | |
17040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17041 | (exit $ac_status); } >/dev/null; then | |
17042 | if test -s conftest.err; then | |
5d7b7554 VZ |
17043 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17044 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17045 | else |
17046 | ac_cpp_err= | |
17047 | fi | |
17048 | else | |
17049 | ac_cpp_err=yes | |
17050 | fi | |
17051 | if test -z "$ac_cpp_err"; then | |
17052 | ac_header_preproc=yes | |
17053 | else | |
17054 | echo "$as_me: failed program was:" >&5 | |
17055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17056 | ||
17057 | ac_header_preproc=no | |
17058 | fi | |
17059 | rm -f conftest.err conftest.$ac_ext | |
17060 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17061 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17062 | ||
17063 | # So? What about this header? | |
5d7b7554 | 17064 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17065 | yes:no: ) |
a848cd7e SC |
17066 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17067 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17068 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17069 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17070 | ac_header_preproc=yes | |
a848cd7e | 17071 | ;; |
ac1cb8d3 | 17072 | no:yes:* ) |
a848cd7e SC |
17073 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17074 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17075 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17076 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17077 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17078 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17079 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17080 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17081 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17082 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17083 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17084 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17085 | ( |
17086 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17087 | ## ----------------------------------------- ## |
17088 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17089 | ## ----------------------------------------- ## | |
a848cd7e SC |
17090 | _ASBOX |
17091 | ) | | |
17092 | sed "s/^/$as_me: WARNING: /" >&2 | |
17093 | ;; | |
17094 | esac | |
17095 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17096 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17097 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17099 | else | |
ac1cb8d3 | 17100 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17101 | fi |
17102 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17103 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17104 | ||
17105 | fi | |
17106 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17107 | cat >>confdefs.h <<_ACEOF | |
17108 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17109 | _ACEOF | |
17110 | ||
17111 | fi | |
17112 | ||
17113 | done | |
17114 | ||
17115 | fi | |
17116 | ||
17117 | ||
17118 | for ac_header in fnmatch.h | |
17119 | do | |
17120 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17121 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17122 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17123 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17126 | fi | |
17127 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17128 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17129 | else | |
17130 | # Is the header compilable? | |
17131 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17132 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17133 | cat >conftest.$ac_ext <<_ACEOF | |
17134 | /* confdefs.h. */ | |
17135 | _ACEOF | |
17136 | cat confdefs.h >>conftest.$ac_ext | |
17137 | cat >>conftest.$ac_ext <<_ACEOF | |
17138 | /* end confdefs.h. */ | |
17139 | $ac_includes_default | |
17140 | #include <$ac_header> | |
17141 | _ACEOF | |
17142 | rm -f conftest.$ac_objext | |
17143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17144 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17145 | ac_status=$? |
ac1cb8d3 VS |
17146 | grep -v '^ *+' conftest.er1 >conftest.err |
17147 | rm -f conftest.er1 | |
17148 | cat conftest.err >&5 | |
a848cd7e SC |
17149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17150 | (exit $ac_status); } && | |
c9a66001 | 17151 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17153 | (eval $ac_try) 2>&5 | |
17154 | ac_status=$? | |
17155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17156 | (exit $ac_status); }; } && | |
17157 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17159 | (eval $ac_try) 2>&5 | |
17160 | ac_status=$? | |
17161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17162 | (exit $ac_status); }; }; then | |
17163 | ac_header_compiler=yes | |
17164 | else | |
17165 | echo "$as_me: failed program was:" >&5 | |
17166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17167 | ||
17168 | ac_header_compiler=no | |
17169 | fi | |
ac1cb8d3 | 17170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17171 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17172 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17173 | ||
17174 | # Is the header present? | |
17175 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17176 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17177 | cat >conftest.$ac_ext <<_ACEOF | |
17178 | /* confdefs.h. */ | |
17179 | _ACEOF | |
17180 | cat confdefs.h >>conftest.$ac_ext | |
17181 | cat >>conftest.$ac_ext <<_ACEOF | |
17182 | /* end confdefs.h. */ | |
17183 | #include <$ac_header> | |
17184 | _ACEOF | |
17185 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17186 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17187 | ac_status=$? | |
17188 | grep -v '^ *+' conftest.er1 >conftest.err | |
17189 | rm -f conftest.er1 | |
17190 | cat conftest.err >&5 | |
17191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17192 | (exit $ac_status); } >/dev/null; then | |
17193 | if test -s conftest.err; then | |
5d7b7554 VZ |
17194 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17195 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17196 | else |
17197 | ac_cpp_err= | |
17198 | fi | |
17199 | else | |
17200 | ac_cpp_err=yes | |
17201 | fi | |
17202 | if test -z "$ac_cpp_err"; then | |
17203 | ac_header_preproc=yes | |
17204 | else | |
17205 | echo "$as_me: failed program was:" >&5 | |
17206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17207 | ||
17208 | ac_header_preproc=no | |
17209 | fi | |
17210 | rm -f conftest.err conftest.$ac_ext | |
17211 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17212 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17213 | ||
17214 | # So? What about this header? | |
5d7b7554 | 17215 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17216 | yes:no: ) |
a848cd7e SC |
17217 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17218 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17219 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17220 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17221 | ac_header_preproc=yes | |
a848cd7e | 17222 | ;; |
ac1cb8d3 | 17223 | no:yes:* ) |
a848cd7e SC |
17224 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17225 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17226 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17227 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17228 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17229 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17230 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17231 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17232 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17233 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17234 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17235 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17236 | ( |
17237 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17238 | ## ----------------------------------------- ## |
17239 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17240 | ## ----------------------------------------- ## | |
a848cd7e SC |
17241 | _ASBOX |
17242 | ) | | |
17243 | sed "s/^/$as_me: WARNING: /" >&2 | |
17244 | ;; | |
17245 | esac | |
17246 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17247 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17248 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17250 | else | |
ac1cb8d3 | 17251 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17252 | fi |
17253 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17254 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17255 | ||
17256 | fi | |
17257 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17258 | cat >>confdefs.h <<_ACEOF | |
17259 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17260 | _ACEOF | |
17261 | ||
17262 | fi | |
17263 | ||
17264 | done | |
17265 | ||
17266 | ||
a848cd7e SC |
17267 | |
17268 | for ac_header in langinfo.h | |
17269 | do | |
17270 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17271 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17272 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17273 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17274 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17276 | fi | |
17277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17278 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17279 | else | |
17280 | # Is the header compilable? | |
17281 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17282 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17283 | cat >conftest.$ac_ext <<_ACEOF | |
17284 | /* confdefs.h. */ | |
17285 | _ACEOF | |
17286 | cat confdefs.h >>conftest.$ac_ext | |
17287 | cat >>conftest.$ac_ext <<_ACEOF | |
17288 | /* end confdefs.h. */ | |
17289 | $ac_includes_default | |
17290 | #include <$ac_header> | |
17291 | _ACEOF | |
17292 | rm -f conftest.$ac_objext | |
17293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17294 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17295 | ac_status=$? |
ac1cb8d3 VS |
17296 | grep -v '^ *+' conftest.er1 >conftest.err |
17297 | rm -f conftest.er1 | |
17298 | cat conftest.err >&5 | |
a848cd7e SC |
17299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17300 | (exit $ac_status); } && | |
c9a66001 | 17301 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17303 | (eval $ac_try) 2>&5 | |
17304 | ac_status=$? | |
17305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17306 | (exit $ac_status); }; } && | |
17307 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17309 | (eval $ac_try) 2>&5 | |
17310 | ac_status=$? | |
17311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17312 | (exit $ac_status); }; }; then | |
17313 | ac_header_compiler=yes | |
17314 | else | |
17315 | echo "$as_me: failed program was:" >&5 | |
17316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17317 | ||
17318 | ac_header_compiler=no | |
17319 | fi | |
ac1cb8d3 | 17320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17321 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17322 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17323 | ||
17324 | # Is the header present? | |
17325 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17326 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17327 | cat >conftest.$ac_ext <<_ACEOF | |
17328 | /* confdefs.h. */ | |
17329 | _ACEOF | |
17330 | cat confdefs.h >>conftest.$ac_ext | |
17331 | cat >>conftest.$ac_ext <<_ACEOF | |
17332 | /* end confdefs.h. */ | |
17333 | #include <$ac_header> | |
17334 | _ACEOF | |
17335 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17336 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17337 | ac_status=$? | |
17338 | grep -v '^ *+' conftest.er1 >conftest.err | |
17339 | rm -f conftest.er1 | |
17340 | cat conftest.err >&5 | |
17341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17342 | (exit $ac_status); } >/dev/null; then | |
17343 | if test -s conftest.err; then | |
5d7b7554 VZ |
17344 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17345 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17346 | else |
17347 | ac_cpp_err= | |
17348 | fi | |
17349 | else | |
17350 | ac_cpp_err=yes | |
17351 | fi | |
17352 | if test -z "$ac_cpp_err"; then | |
17353 | ac_header_preproc=yes | |
17354 | else | |
17355 | echo "$as_me: failed program was:" >&5 | |
17356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17357 | ||
17358 | ac_header_preproc=no | |
17359 | fi | |
17360 | rm -f conftest.err conftest.$ac_ext | |
17361 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17362 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17363 | ||
17364 | # So? What about this header? | |
5d7b7554 | 17365 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17366 | yes:no: ) |
a848cd7e SC |
17367 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17368 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17369 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17370 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17371 | ac_header_preproc=yes | |
a848cd7e | 17372 | ;; |
ac1cb8d3 | 17373 | no:yes:* ) |
a848cd7e SC |
17374 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17375 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17376 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17377 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17378 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17379 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17380 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17381 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17382 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17383 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17384 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17385 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17386 | ( |
17387 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17388 | ## ----------------------------------------- ## |
17389 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17390 | ## ----------------------------------------- ## | |
a848cd7e SC |
17391 | _ASBOX |
17392 | ) | | |
17393 | sed "s/^/$as_me: WARNING: /" >&2 | |
17394 | ;; | |
17395 | esac | |
17396 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17398 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17400 | else | |
ac1cb8d3 | 17401 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17402 | fi |
17403 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17404 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17405 | ||
17406 | fi | |
17407 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17408 | cat >>confdefs.h <<_ACEOF | |
17409 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17410 | _ACEOF | |
17411 | ||
17412 | fi | |
17413 | ||
17414 | done | |
17415 | ||
17416 | ||
17417 | case "${host}" in | |
17418 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
17419 | if test $ac_cv_header_langinfo_h = "yes" \ |
17420 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
17421 | -o "$wx_cv_gccversion" = "EMX3" \ | |
17422 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
17423 | LIBS="$LIBS -lintl" |
17424 | fi | |
17425 | ;; | |
17426 | esac | |
17427 | ||
bc023abb MW |
17428 | if test "$USE_UNIX" = 1 ; then |
17429 | ||
17430 | for ac_header in sys/select.h | |
17431 | do | |
17432 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17433 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17434 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17438 | fi | |
17439 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17440 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17441 | else | |
17442 | # Is the header compilable? | |
17443 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17444 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17445 | cat >conftest.$ac_ext <<_ACEOF | |
17446 | /* confdefs.h. */ | |
17447 | _ACEOF | |
17448 | cat confdefs.h >>conftest.$ac_ext | |
17449 | cat >>conftest.$ac_ext <<_ACEOF | |
17450 | /* end confdefs.h. */ | |
17451 | $ac_includes_default | |
17452 | #include <$ac_header> | |
17453 | _ACEOF | |
17454 | rm -f conftest.$ac_objext | |
17455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17456 | (eval $ac_compile) 2>conftest.er1 | |
17457 | ac_status=$? | |
17458 | grep -v '^ *+' conftest.er1 >conftest.err | |
17459 | rm -f conftest.er1 | |
17460 | cat conftest.err >&5 | |
17461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17462 | (exit $ac_status); } && | |
17463 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
17464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17465 | (eval $ac_try) 2>&5 | |
17466 | ac_status=$? | |
17467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17468 | (exit $ac_status); }; } && | |
17469 | { ac_try='test -s conftest.$ac_objext' | |
17470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17471 | (eval $ac_try) 2>&5 | |
17472 | ac_status=$? | |
17473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17474 | (exit $ac_status); }; }; then | |
17475 | ac_header_compiler=yes | |
17476 | else | |
17477 | echo "$as_me: failed program was:" >&5 | |
17478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17479 | ||
17480 | ac_header_compiler=no | |
17481 | fi | |
17482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17483 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17484 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17485 | ||
17486 | # Is the header present? | |
17487 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17488 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17489 | cat >conftest.$ac_ext <<_ACEOF | |
17490 | /* confdefs.h. */ | |
17491 | _ACEOF | |
17492 | cat confdefs.h >>conftest.$ac_ext | |
17493 | cat >>conftest.$ac_ext <<_ACEOF | |
17494 | /* end confdefs.h. */ | |
17495 | #include <$ac_header> | |
17496 | _ACEOF | |
17497 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17498 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17499 | ac_status=$? | |
17500 | grep -v '^ *+' conftest.er1 >conftest.err | |
17501 | rm -f conftest.er1 | |
17502 | cat conftest.err >&5 | |
17503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17504 | (exit $ac_status); } >/dev/null; then | |
17505 | if test -s conftest.err; then | |
17506 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17507 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
17508 | else | |
17509 | ac_cpp_err= | |
17510 | fi | |
17511 | else | |
17512 | ac_cpp_err=yes | |
17513 | fi | |
17514 | if test -z "$ac_cpp_err"; then | |
17515 | ac_header_preproc=yes | |
17516 | else | |
17517 | echo "$as_me: failed program was:" >&5 | |
17518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17519 | ||
17520 | ac_header_preproc=no | |
17521 | fi | |
17522 | rm -f conftest.err conftest.$ac_ext | |
17523 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17524 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17525 | ||
17526 | # So? What about this header? | |
17527 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
17528 | yes:no: ) | |
17529 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17530 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17531 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17532 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17533 | ac_header_preproc=yes | |
17534 | ;; | |
17535 | no:yes:* ) | |
17536 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17537 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17538 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17539 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17540 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17541 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17542 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17543 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17544 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17545 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17546 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17547 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17548 | ( | |
17549 | cat <<\_ASBOX | |
17550 | ## ----------------------------------------- ## | |
17551 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17552 | ## ----------------------------------------- ## | |
17553 | _ASBOX | |
17554 | ) | | |
17555 | sed "s/^/$as_me: WARNING: /" >&2 | |
17556 | ;; | |
17557 | esac | |
17558 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17559 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17560 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17562 | else | |
17563 | eval "$as_ac_Header=\$ac_header_preproc" | |
17564 | fi | |
17565 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17566 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17567 | ||
17568 | fi | |
17569 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17570 | cat >>confdefs.h <<_ACEOF | |
17571 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17572 | _ACEOF | |
17573 | ||
17574 | fi | |
17575 | ||
17576 | done | |
17577 | ||
17578 | fi | |
17579 | ||
a848cd7e SC |
17580 | |
17581 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
17582 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
17583 | if test "${ac_cv_c_const+set}" = set; then | |
17584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17585 | else | |
17586 | cat >conftest.$ac_ext <<_ACEOF | |
17587 | /* confdefs.h. */ | |
17588 | _ACEOF | |
17589 | cat confdefs.h >>conftest.$ac_ext | |
17590 | cat >>conftest.$ac_ext <<_ACEOF | |
17591 | /* end confdefs.h. */ | |
17592 | ||
17593 | int | |
17594 | main () | |
17595 | { | |
17596 | /* FIXME: Include the comments suggested by Paul. */ | |
17597 | #ifndef __cplusplus | |
17598 | /* Ultrix mips cc rejects this. */ | |
17599 | typedef int charset[2]; | |
17600 | const charset x; | |
17601 | /* SunOS 4.1.1 cc rejects this. */ | |
17602 | char const *const *ccp; | |
17603 | char **p; | |
17604 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
17605 | struct point {int x, y;}; | |
17606 | static struct point const zero = {0,0}; | |
17607 | /* AIX XL C 1.02.0.0 rejects this. | |
17608 | It does not let you subtract one const X* pointer from another in | |
17609 | an arm of an if-expression whose if-part is not a constant | |
17610 | expression */ | |
17611 | const char *g = "string"; | |
17612 | ccp = &g + (g ? g-g : 0); | |
17613 | /* HPUX 7.0 cc rejects these. */ | |
17614 | ++ccp; | |
17615 | p = (char**) ccp; | |
17616 | ccp = (char const *const *) p; | |
17617 | { /* SCO 3.2v4 cc rejects this. */ | |
17618 | char *t; | |
17619 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
17620 | ||
17621 | *t++ = 0; | |
17622 | } | |
17623 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
17624 | int x[] = {25, 17}; | |
17625 | const int *foo = &x[0]; | |
17626 | ++foo; | |
17627 | } | |
17628 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
17629 | typedef const int *iptr; | |
17630 | iptr p = 0; | |
17631 | ++p; | |
17632 | } | |
17633 | { /* AIX XL C 1.02.0.0 rejects this saying | |
17634 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
17635 | struct s { int j; const int *ap[3]; }; | |
17636 | struct s *b; b->j = 5; | |
17637 | } | |
17638 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
17639 | const int foo = 10; | |
17640 | } | |
17641 | #endif | |
17642 | ||
17643 | ; | |
17644 | return 0; | |
17645 | } | |
17646 | _ACEOF | |
17647 | rm -f conftest.$ac_objext | |
17648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17649 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17650 | ac_status=$? |
ac1cb8d3 VS |
17651 | grep -v '^ *+' conftest.er1 >conftest.err |
17652 | rm -f conftest.er1 | |
17653 | cat conftest.err >&5 | |
a848cd7e SC |
17654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17655 | (exit $ac_status); } && | |
c9a66001 | 17656 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17658 | (eval $ac_try) 2>&5 | |
17659 | ac_status=$? | |
17660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17661 | (exit $ac_status); }; } && | |
17662 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17664 | (eval $ac_try) 2>&5 | |
17665 | ac_status=$? | |
17666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17667 | (exit $ac_status); }; }; then | |
17668 | ac_cv_c_const=yes | |
17669 | else | |
17670 | echo "$as_me: failed program was:" >&5 | |
17671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17672 | ||
17673 | ac_cv_c_const=no | |
17674 | fi | |
ac1cb8d3 | 17675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17676 | fi |
17677 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
17678 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
17679 | if test $ac_cv_c_const = no; then | |
17680 | ||
17681 | cat >>confdefs.h <<\_ACEOF | |
17682 | #define const | |
17683 | _ACEOF | |
17684 | ||
17685 | fi | |
17686 | ||
17687 | echo "$as_me:$LINENO: checking for inline" >&5 | |
17688 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
17689 | if test "${ac_cv_c_inline+set}" = set; then | |
17690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17691 | else | |
17692 | ac_cv_c_inline=no | |
17693 | for ac_kw in inline __inline__ __inline; do | |
17694 | cat >conftest.$ac_ext <<_ACEOF | |
17695 | /* confdefs.h. */ | |
17696 | _ACEOF | |
17697 | cat confdefs.h >>conftest.$ac_ext | |
17698 | cat >>conftest.$ac_ext <<_ACEOF | |
17699 | /* end confdefs.h. */ | |
17700 | #ifndef __cplusplus | |
17701 | typedef int foo_t; | |
17702 | static $ac_kw foo_t static_foo () {return 0; } | |
17703 | $ac_kw foo_t foo () {return 0; } | |
17704 | #endif | |
17705 | ||
17706 | _ACEOF | |
17707 | rm -f conftest.$ac_objext | |
17708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17709 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17710 | ac_status=$? |
ac1cb8d3 VS |
17711 | grep -v '^ *+' conftest.er1 >conftest.err |
17712 | rm -f conftest.er1 | |
17713 | cat conftest.err >&5 | |
a848cd7e SC |
17714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17715 | (exit $ac_status); } && | |
c9a66001 | 17716 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17718 | (eval $ac_try) 2>&5 | |
17719 | ac_status=$? | |
17720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17721 | (exit $ac_status); }; } && | |
17722 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17724 | (eval $ac_try) 2>&5 | |
17725 | ac_status=$? | |
17726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17727 | (exit $ac_status); }; }; then | |
17728 | ac_cv_c_inline=$ac_kw; break | |
17729 | else | |
17730 | echo "$as_me: failed program was:" >&5 | |
17731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17732 | ||
17733 | fi | |
ac1cb8d3 | 17734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17735 | done |
17736 | ||
17737 | fi | |
17738 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
17739 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
17740 | |
17741 | ||
a848cd7e SC |
17742 | case $ac_cv_c_inline in |
17743 | inline | yes) ;; | |
ac1cb8d3 VS |
17744 | *) |
17745 | case $ac_cv_c_inline in | |
17746 | no) ac_val=;; | |
17747 | *) ac_val=$ac_cv_c_inline;; | |
17748 | esac | |
17749 | cat >>confdefs.h <<_ACEOF | |
17750 | #ifndef __cplusplus | |
17751 | #define inline $ac_val | |
17752 | #endif | |
de59c161 | 17753 | _ACEOF |
ac1cb8d3 | 17754 | ;; |
a848cd7e SC |
17755 | esac |
17756 | ||
17757 | ||
17758 | echo "$as_me:$LINENO: checking for char" >&5 | |
17759 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
17760 | if test "${ac_cv_type_char+set}" = set; then | |
17761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17762 | else | |
17763 | cat >conftest.$ac_ext <<_ACEOF | |
17764 | /* confdefs.h. */ | |
17765 | _ACEOF | |
17766 | cat confdefs.h >>conftest.$ac_ext | |
17767 | cat >>conftest.$ac_ext <<_ACEOF | |
17768 | /* end confdefs.h. */ | |
17769 | $ac_includes_default | |
17770 | int | |
17771 | main () | |
17772 | { | |
17773 | if ((char *) 0) | |
17774 | return 0; | |
17775 | if (sizeof (char)) | |
17776 | return 0; | |
17777 | ; | |
17778 | return 0; | |
17779 | } | |
17780 | _ACEOF | |
17781 | rm -f conftest.$ac_objext | |
17782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17783 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17784 | ac_status=$? |
ac1cb8d3 VS |
17785 | grep -v '^ *+' conftest.er1 >conftest.err |
17786 | rm -f conftest.er1 | |
17787 | cat conftest.err >&5 | |
a848cd7e SC |
17788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17789 | (exit $ac_status); } && | |
c9a66001 | 17790 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17792 | (eval $ac_try) 2>&5 | |
17793 | ac_status=$? | |
17794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17795 | (exit $ac_status); }; } && | |
17796 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17798 | (eval $ac_try) 2>&5 | |
17799 | ac_status=$? | |
17800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17801 | (exit $ac_status); }; }; then | |
17802 | ac_cv_type_char=yes | |
17803 | else | |
17804 | echo "$as_me: failed program was:" >&5 | |
17805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17806 | ||
17807 | ac_cv_type_char=no | |
17808 | fi | |
ac1cb8d3 | 17809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17810 | fi |
17811 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
17812 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
17813 | ||
17814 | echo "$as_me:$LINENO: checking size of char" >&5 | |
17815 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
17816 | if test "${ac_cv_sizeof_char+set}" = set; then | |
17817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17818 | else | |
17819 | if test "$ac_cv_type_char" = yes; then | |
17820 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17821 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17822 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17823 | # This bug is HP SR number 8606223364. | |
17824 | if test "$cross_compiling" = yes; then | |
17825 | # Depending upon the size, compute the lo and hi bounds. | |
17826 | cat >conftest.$ac_ext <<_ACEOF | |
17827 | /* confdefs.h. */ | |
17828 | _ACEOF | |
17829 | cat confdefs.h >>conftest.$ac_ext | |
17830 | cat >>conftest.$ac_ext <<_ACEOF | |
17831 | /* end confdefs.h. */ | |
17832 | $ac_includes_default | |
17833 | int | |
17834 | main () | |
17835 | { | |
17836 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
17837 | test_array [0] = 0 | |
17838 | ||
17839 | ; | |
17840 | return 0; | |
17841 | } | |
17842 | _ACEOF | |
17843 | rm -f conftest.$ac_objext | |
17844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17845 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17846 | ac_status=$? |
ac1cb8d3 VS |
17847 | grep -v '^ *+' conftest.er1 >conftest.err |
17848 | rm -f conftest.er1 | |
17849 | cat conftest.err >&5 | |
a848cd7e SC |
17850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17851 | (exit $ac_status); } && | |
c9a66001 | 17852 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17854 | (eval $ac_try) 2>&5 | |
17855 | ac_status=$? | |
17856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17857 | (exit $ac_status); }; } && | |
17858 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17860 | (eval $ac_try) 2>&5 | |
17861 | ac_status=$? | |
17862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17863 | (exit $ac_status); }; }; then | |
17864 | ac_lo=0 ac_mid=0 | |
17865 | while :; do | |
17866 | cat >conftest.$ac_ext <<_ACEOF | |
17867 | /* confdefs.h. */ | |
17868 | _ACEOF | |
17869 | cat confdefs.h >>conftest.$ac_ext | |
17870 | cat >>conftest.$ac_ext <<_ACEOF | |
17871 | /* end confdefs.h. */ | |
17872 | $ac_includes_default | |
17873 | int | |
17874 | main () | |
17875 | { | |
17876 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17877 | test_array [0] = 0 | |
17878 | ||
17879 | ; | |
17880 | return 0; | |
17881 | } | |
17882 | _ACEOF | |
17883 | rm -f conftest.$ac_objext | |
17884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17885 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17886 | ac_status=$? |
ac1cb8d3 VS |
17887 | grep -v '^ *+' conftest.er1 >conftest.err |
17888 | rm -f conftest.er1 | |
17889 | cat conftest.err >&5 | |
a848cd7e SC |
17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17891 | (exit $ac_status); } && | |
c9a66001 | 17892 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17894 | (eval $ac_try) 2>&5 | |
17895 | ac_status=$? | |
17896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17897 | (exit $ac_status); }; } && | |
17898 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17900 | (eval $ac_try) 2>&5 | |
17901 | ac_status=$? | |
17902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17903 | (exit $ac_status); }; }; then | |
17904 | ac_hi=$ac_mid; break | |
17905 | else | |
17906 | echo "$as_me: failed program was:" >&5 | |
17907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17908 | ||
17909 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17910 | if test $ac_lo -le $ac_mid; then |
17911 | ac_lo= ac_hi= | |
17912 | break | |
17913 | fi | |
17914 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17915 | fi |
ac1cb8d3 | 17916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17917 | done |
17918 | else | |
17919 | echo "$as_me: failed program was:" >&5 | |
17920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17921 | ||
17922 | cat >conftest.$ac_ext <<_ACEOF | |
17923 | /* confdefs.h. */ | |
17924 | _ACEOF | |
17925 | cat confdefs.h >>conftest.$ac_ext | |
17926 | cat >>conftest.$ac_ext <<_ACEOF | |
17927 | /* end confdefs.h. */ | |
17928 | $ac_includes_default | |
17929 | int | |
17930 | main () | |
17931 | { | |
17932 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
17933 | test_array [0] = 0 | |
17934 | ||
17935 | ; | |
17936 | return 0; | |
17937 | } | |
17938 | _ACEOF | |
17939 | rm -f conftest.$ac_objext | |
17940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17941 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17942 | ac_status=$? |
ac1cb8d3 VS |
17943 | grep -v '^ *+' conftest.er1 >conftest.err |
17944 | rm -f conftest.er1 | |
17945 | cat conftest.err >&5 | |
a848cd7e SC |
17946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17947 | (exit $ac_status); } && | |
c9a66001 | 17948 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17950 | (eval $ac_try) 2>&5 | |
17951 | ac_status=$? | |
17952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17953 | (exit $ac_status); }; } && | |
17954 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17956 | (eval $ac_try) 2>&5 | |
17957 | ac_status=$? | |
17958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17959 | (exit $ac_status); }; }; then | |
17960 | ac_hi=-1 ac_mid=-1 | |
17961 | while :; do | |
17962 | cat >conftest.$ac_ext <<_ACEOF | |
17963 | /* confdefs.h. */ | |
17964 | _ACEOF | |
17965 | cat confdefs.h >>conftest.$ac_ext | |
17966 | cat >>conftest.$ac_ext <<_ACEOF | |
17967 | /* end confdefs.h. */ | |
17968 | $ac_includes_default | |
17969 | int | |
17970 | main () | |
17971 | { | |
17972 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
17973 | test_array [0] = 0 | |
17974 | ||
17975 | ; | |
17976 | return 0; | |
17977 | } | |
17978 | _ACEOF | |
17979 | rm -f conftest.$ac_objext | |
17980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17982 | ac_status=$? |
ac1cb8d3 VS |
17983 | grep -v '^ *+' conftest.er1 >conftest.err |
17984 | rm -f conftest.er1 | |
17985 | cat conftest.err >&5 | |
a848cd7e SC |
17986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17987 | (exit $ac_status); } && | |
c9a66001 | 17988 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17990 | (eval $ac_try) 2>&5 | |
17991 | ac_status=$? | |
17992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17993 | (exit $ac_status); }; } && | |
17994 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17996 | (eval $ac_try) 2>&5 | |
17997 | ac_status=$? | |
17998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17999 | (exit $ac_status); }; }; then | |
18000 | ac_lo=$ac_mid; break | |
18001 | else | |
18002 | echo "$as_me: failed program was:" >&5 | |
18003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18004 | ||
18005 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18006 | if test $ac_mid -le $ac_hi; then |
18007 | ac_lo= ac_hi= | |
18008 | break | |
18009 | fi | |
18010 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18011 | fi |
ac1cb8d3 | 18012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18013 | done |
18014 | else | |
18015 | echo "$as_me: failed program was:" >&5 | |
18016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18017 | ||
18018 | ac_lo= ac_hi= | |
18019 | fi | |
ac1cb8d3 | 18020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18021 | fi |
ac1cb8d3 | 18022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18023 | # Binary search between lo and hi bounds. |
18024 | while test "x$ac_lo" != "x$ac_hi"; do | |
18025 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18026 | cat >conftest.$ac_ext <<_ACEOF | |
18027 | /* confdefs.h. */ | |
18028 | _ACEOF | |
18029 | cat confdefs.h >>conftest.$ac_ext | |
18030 | cat >>conftest.$ac_ext <<_ACEOF | |
18031 | /* end confdefs.h. */ | |
18032 | $ac_includes_default | |
18033 | int | |
18034 | main () | |
18035 | { | |
18036 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
18037 | test_array [0] = 0 | |
18038 | ||
18039 | ; | |
18040 | return 0; | |
18041 | } | |
18042 | _ACEOF | |
18043 | rm -f conftest.$ac_objext | |
18044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18045 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18046 | ac_status=$? |
ac1cb8d3 VS |
18047 | grep -v '^ *+' conftest.er1 >conftest.err |
18048 | rm -f conftest.er1 | |
18049 | cat conftest.err >&5 | |
a848cd7e SC |
18050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18051 | (exit $ac_status); } && | |
c9a66001 | 18052 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18054 | (eval $ac_try) 2>&5 | |
18055 | ac_status=$? | |
18056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18057 | (exit $ac_status); }; } && | |
18058 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18060 | (eval $ac_try) 2>&5 | |
18061 | ac_status=$? | |
18062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18063 | (exit $ac_status); }; }; then | |
18064 | ac_hi=$ac_mid | |
18065 | else | |
18066 | echo "$as_me: failed program was:" >&5 | |
18067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18068 | ||
18069 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18070 | fi | |
ac1cb8d3 | 18071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18072 | done |
18073 | case $ac_lo in | |
18074 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
18075 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
18076 | See \`config.log' for more details." >&5 | |
18077 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
18078 | See \`config.log' for more details." >&2;} | |
18079 | { (exit 1); exit 1; }; } ;; | |
18080 | esac | |
18081 | else | |
18082 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
18083 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18084 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18085 | { (exit 1); exit 1; }; } |
18086 | else | |
18087 | cat >conftest.$ac_ext <<_ACEOF | |
18088 | /* confdefs.h. */ | |
18089 | _ACEOF | |
18090 | cat confdefs.h >>conftest.$ac_ext | |
18091 | cat >>conftest.$ac_ext <<_ACEOF | |
18092 | /* end confdefs.h. */ | |
18093 | $ac_includes_default | |
18094 | long longval () { return (long) (sizeof (char)); } | |
18095 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
18096 | #include <stdio.h> | |
18097 | #include <stdlib.h> | |
18098 | int | |
18099 | main () | |
18100 | { | |
18101 | ||
18102 | FILE *f = fopen ("conftest.val", "w"); | |
18103 | if (! f) | |
18104 | exit (1); | |
18105 | if (((long) (sizeof (char))) < 0) | |
18106 | { | |
18107 | long i = longval (); | |
18108 | if (i != ((long) (sizeof (char)))) | |
18109 | exit (1); | |
18110 | fprintf (f, "%ld\n", i); | |
18111 | } | |
18112 | else | |
18113 | { | |
18114 | unsigned long i = ulongval (); | |
18115 | if (i != ((long) (sizeof (char)))) | |
18116 | exit (1); | |
18117 | fprintf (f, "%lu\n", i); | |
18118 | } | |
18119 | exit (ferror (f) || fclose (f) != 0); | |
18120 | ||
18121 | ; | |
18122 | return 0; | |
18123 | } | |
18124 | _ACEOF | |
18125 | rm -f conftest$ac_exeext | |
18126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18127 | (eval $ac_link) 2>&5 | |
18128 | ac_status=$? | |
18129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18130 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18132 | (eval $ac_try) 2>&5 | |
18133 | ac_status=$? | |
18134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18135 | (exit $ac_status); }; }; then | |
18136 | ac_cv_sizeof_char=`cat conftest.val` | |
18137 | else | |
18138 | echo "$as_me: program exited with status $ac_status" >&5 | |
18139 | echo "$as_me: failed program was:" >&5 | |
18140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18141 | ||
18142 | ( exit $ac_status ) | |
18143 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
18144 | See \`config.log' for more details." >&5 | |
18145 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
18146 | See \`config.log' for more details." >&2;} | |
18147 | { (exit 1); exit 1; }; } | |
18148 | fi | |
ac1cb8d3 | 18149 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18150 | fi |
18151 | fi | |
18152 | rm -f conftest.val | |
18153 | else | |
18154 | ac_cv_sizeof_char=0 | |
18155 | fi | |
18156 | fi | |
18157 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
18158 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
18159 | cat >>confdefs.h <<_ACEOF | |
18160 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
18161 | _ACEOF | |
18162 | ||
18163 | ||
18164 | echo "$as_me:$LINENO: checking for short" >&5 | |
18165 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
18166 | if test "${ac_cv_type_short+set}" = set; then | |
18167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18168 | else | |
18169 | cat >conftest.$ac_ext <<_ACEOF | |
18170 | /* confdefs.h. */ | |
18171 | _ACEOF | |
18172 | cat confdefs.h >>conftest.$ac_ext | |
18173 | cat >>conftest.$ac_ext <<_ACEOF | |
18174 | /* end confdefs.h. */ | |
18175 | $ac_includes_default | |
18176 | int | |
18177 | main () | |
18178 | { | |
18179 | if ((short *) 0) | |
18180 | return 0; | |
18181 | if (sizeof (short)) | |
18182 | return 0; | |
18183 | ; | |
18184 | return 0; | |
18185 | } | |
18186 | _ACEOF | |
18187 | rm -f conftest.$ac_objext | |
18188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18189 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18190 | ac_status=$? |
ac1cb8d3 VS |
18191 | grep -v '^ *+' conftest.er1 >conftest.err |
18192 | rm -f conftest.er1 | |
18193 | cat conftest.err >&5 | |
a848cd7e SC |
18194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18195 | (exit $ac_status); } && | |
c9a66001 | 18196 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18198 | (eval $ac_try) 2>&5 | |
18199 | ac_status=$? | |
18200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18201 | (exit $ac_status); }; } && | |
18202 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18204 | (eval $ac_try) 2>&5 | |
18205 | ac_status=$? | |
18206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18207 | (exit $ac_status); }; }; then | |
18208 | ac_cv_type_short=yes | |
18209 | else | |
18210 | echo "$as_me: failed program was:" >&5 | |
18211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18212 | ||
18213 | ac_cv_type_short=no | |
18214 | fi | |
ac1cb8d3 | 18215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18216 | fi |
18217 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
18218 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
18219 | ||
18220 | echo "$as_me:$LINENO: checking size of short" >&5 | |
18221 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
18222 | if test "${ac_cv_sizeof_short+set}" = set; then | |
18223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18224 | else | |
18225 | if test "$ac_cv_type_short" = yes; then | |
18226 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18227 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18228 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18229 | # This bug is HP SR number 8606223364. | |
18230 | if test "$cross_compiling" = yes; then | |
18231 | # Depending upon the size, compute the lo and hi bounds. | |
18232 | cat >conftest.$ac_ext <<_ACEOF | |
18233 | /* confdefs.h. */ | |
18234 | _ACEOF | |
18235 | cat confdefs.h >>conftest.$ac_ext | |
18236 | cat >>conftest.$ac_ext <<_ACEOF | |
18237 | /* end confdefs.h. */ | |
18238 | $ac_includes_default | |
18239 | int | |
18240 | main () | |
18241 | { | |
18242 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
18243 | test_array [0] = 0 | |
18244 | ||
18245 | ; | |
18246 | return 0; | |
18247 | } | |
18248 | _ACEOF | |
18249 | rm -f conftest.$ac_objext | |
18250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18251 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18252 | ac_status=$? |
ac1cb8d3 VS |
18253 | grep -v '^ *+' conftest.er1 >conftest.err |
18254 | rm -f conftest.er1 | |
18255 | cat conftest.err >&5 | |
a848cd7e SC |
18256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18257 | (exit $ac_status); } && | |
c9a66001 | 18258 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18260 | (eval $ac_try) 2>&5 | |
18261 | ac_status=$? | |
18262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18263 | (exit $ac_status); }; } && | |
18264 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18266 | (eval $ac_try) 2>&5 | |
18267 | ac_status=$? | |
18268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18269 | (exit $ac_status); }; }; then | |
18270 | ac_lo=0 ac_mid=0 | |
18271 | while :; do | |
18272 | cat >conftest.$ac_ext <<_ACEOF | |
18273 | /* confdefs.h. */ | |
18274 | _ACEOF | |
18275 | cat confdefs.h >>conftest.$ac_ext | |
18276 | cat >>conftest.$ac_ext <<_ACEOF | |
18277 | /* end confdefs.h. */ | |
18278 | $ac_includes_default | |
18279 | int | |
18280 | main () | |
18281 | { | |
18282 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
18283 | test_array [0] = 0 | |
18284 | ||
18285 | ; | |
18286 | return 0; | |
18287 | } | |
18288 | _ACEOF | |
18289 | rm -f conftest.$ac_objext | |
18290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18291 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18292 | ac_status=$? |
ac1cb8d3 VS |
18293 | grep -v '^ *+' conftest.er1 >conftest.err |
18294 | rm -f conftest.er1 | |
18295 | cat conftest.err >&5 | |
a848cd7e SC |
18296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18297 | (exit $ac_status); } && | |
c9a66001 | 18298 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18300 | (eval $ac_try) 2>&5 | |
18301 | ac_status=$? | |
18302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18303 | (exit $ac_status); }; } && | |
18304 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18306 | (eval $ac_try) 2>&5 | |
18307 | ac_status=$? | |
18308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18309 | (exit $ac_status); }; }; then | |
18310 | ac_hi=$ac_mid; break | |
18311 | else | |
18312 | echo "$as_me: failed program was:" >&5 | |
18313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18314 | ||
18315 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18316 | if test $ac_lo -le $ac_mid; then |
18317 | ac_lo= ac_hi= | |
18318 | break | |
18319 | fi | |
18320 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18321 | fi |
ac1cb8d3 | 18322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18323 | done |
18324 | else | |
18325 | echo "$as_me: failed program was:" >&5 | |
18326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18327 | ||
18328 | cat >conftest.$ac_ext <<_ACEOF | |
18329 | /* confdefs.h. */ | |
18330 | _ACEOF | |
18331 | cat confdefs.h >>conftest.$ac_ext | |
18332 | cat >>conftest.$ac_ext <<_ACEOF | |
18333 | /* end confdefs.h. */ | |
18334 | $ac_includes_default | |
18335 | int | |
18336 | main () | |
18337 | { | |
18338 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
18339 | test_array [0] = 0 | |
18340 | ||
18341 | ; | |
18342 | return 0; | |
18343 | } | |
18344 | _ACEOF | |
18345 | rm -f conftest.$ac_objext | |
18346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18347 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18348 | ac_status=$? |
ac1cb8d3 VS |
18349 | grep -v '^ *+' conftest.er1 >conftest.err |
18350 | rm -f conftest.er1 | |
18351 | cat conftest.err >&5 | |
a848cd7e SC |
18352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18353 | (exit $ac_status); } && | |
c9a66001 | 18354 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18356 | (eval $ac_try) 2>&5 | |
18357 | ac_status=$? | |
18358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18359 | (exit $ac_status); }; } && | |
18360 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18362 | (eval $ac_try) 2>&5 | |
18363 | ac_status=$? | |
18364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18365 | (exit $ac_status); }; }; then | |
18366 | ac_hi=-1 ac_mid=-1 | |
18367 | while :; do | |
18368 | cat >conftest.$ac_ext <<_ACEOF | |
18369 | /* confdefs.h. */ | |
18370 | _ACEOF | |
18371 | cat confdefs.h >>conftest.$ac_ext | |
18372 | cat >>conftest.$ac_ext <<_ACEOF | |
18373 | /* end confdefs.h. */ | |
18374 | $ac_includes_default | |
18375 | int | |
18376 | main () | |
18377 | { | |
18378 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
18379 | test_array [0] = 0 | |
18380 | ||
18381 | ; | |
18382 | return 0; | |
18383 | } | |
18384 | _ACEOF | |
18385 | rm -f conftest.$ac_objext | |
18386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18387 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18388 | ac_status=$? |
ac1cb8d3 VS |
18389 | grep -v '^ *+' conftest.er1 >conftest.err |
18390 | rm -f conftest.er1 | |
18391 | cat conftest.err >&5 | |
a848cd7e SC |
18392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18393 | (exit $ac_status); } && | |
c9a66001 | 18394 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18396 | (eval $ac_try) 2>&5 | |
18397 | ac_status=$? | |
18398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18399 | (exit $ac_status); }; } && | |
18400 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18402 | (eval $ac_try) 2>&5 | |
18403 | ac_status=$? | |
18404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18405 | (exit $ac_status); }; }; then | |
18406 | ac_lo=$ac_mid; break | |
18407 | else | |
18408 | echo "$as_me: failed program was:" >&5 | |
18409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18410 | ||
18411 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18412 | if test $ac_mid -le $ac_hi; then |
18413 | ac_lo= ac_hi= | |
18414 | break | |
18415 | fi | |
18416 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18417 | fi |
ac1cb8d3 | 18418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18419 | done |
18420 | else | |
18421 | echo "$as_me: failed program was:" >&5 | |
18422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18423 | ||
18424 | ac_lo= ac_hi= | |
18425 | fi | |
ac1cb8d3 | 18426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18427 | fi |
ac1cb8d3 | 18428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18429 | # Binary search between lo and hi bounds. |
18430 | while test "x$ac_lo" != "x$ac_hi"; do | |
18431 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18432 | cat >conftest.$ac_ext <<_ACEOF | |
18433 | /* confdefs.h. */ | |
18434 | _ACEOF | |
18435 | cat confdefs.h >>conftest.$ac_ext | |
18436 | cat >>conftest.$ac_ext <<_ACEOF | |
18437 | /* end confdefs.h. */ | |
18438 | $ac_includes_default | |
18439 | int | |
18440 | main () | |
18441 | { | |
18442 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
18443 | test_array [0] = 0 | |
18444 | ||
18445 | ; | |
18446 | return 0; | |
18447 | } | |
18448 | _ACEOF | |
18449 | rm -f conftest.$ac_objext | |
18450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18451 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18452 | ac_status=$? |
ac1cb8d3 VS |
18453 | grep -v '^ *+' conftest.er1 >conftest.err |
18454 | rm -f conftest.er1 | |
18455 | cat conftest.err >&5 | |
a848cd7e SC |
18456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18457 | (exit $ac_status); } && | |
c9a66001 | 18458 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18460 | (eval $ac_try) 2>&5 | |
18461 | ac_status=$? | |
18462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18463 | (exit $ac_status); }; } && | |
18464 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18466 | (eval $ac_try) 2>&5 | |
18467 | ac_status=$? | |
18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18469 | (exit $ac_status); }; }; then | |
18470 | ac_hi=$ac_mid | |
18471 | else | |
18472 | echo "$as_me: failed program was:" >&5 | |
18473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18474 | ||
18475 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18476 | fi | |
ac1cb8d3 | 18477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18478 | done |
18479 | case $ac_lo in | |
18480 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
18481 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18482 | See \`config.log' for more details." >&5 | |
18483 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18484 | See \`config.log' for more details." >&2;} | |
18485 | { (exit 1); exit 1; }; } ;; | |
18486 | esac | |
18487 | else | |
18488 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
18489 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18490 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18491 | { (exit 1); exit 1; }; } |
18492 | else | |
18493 | cat >conftest.$ac_ext <<_ACEOF | |
18494 | /* confdefs.h. */ | |
18495 | _ACEOF | |
18496 | cat confdefs.h >>conftest.$ac_ext | |
18497 | cat >>conftest.$ac_ext <<_ACEOF | |
18498 | /* end confdefs.h. */ | |
18499 | $ac_includes_default | |
18500 | long longval () { return (long) (sizeof (short)); } | |
18501 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
18502 | #include <stdio.h> | |
18503 | #include <stdlib.h> | |
18504 | int | |
18505 | main () | |
18506 | { | |
18507 | ||
18508 | FILE *f = fopen ("conftest.val", "w"); | |
18509 | if (! f) | |
18510 | exit (1); | |
18511 | if (((long) (sizeof (short))) < 0) | |
18512 | { | |
18513 | long i = longval (); | |
18514 | if (i != ((long) (sizeof (short)))) | |
18515 | exit (1); | |
18516 | fprintf (f, "%ld\n", i); | |
18517 | } | |
18518 | else | |
18519 | { | |
18520 | unsigned long i = ulongval (); | |
18521 | if (i != ((long) (sizeof (short)))) | |
18522 | exit (1); | |
18523 | fprintf (f, "%lu\n", i); | |
18524 | } | |
18525 | exit (ferror (f) || fclose (f) != 0); | |
18526 | ||
18527 | ; | |
18528 | return 0; | |
18529 | } | |
18530 | _ACEOF | |
18531 | rm -f conftest$ac_exeext | |
18532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18533 | (eval $ac_link) 2>&5 | |
18534 | ac_status=$? | |
18535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18536 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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_sizeof_short=`cat conftest.val` | |
18543 | else | |
18544 | echo "$as_me: program exited with status $ac_status" >&5 | |
18545 | echo "$as_me: failed program was:" >&5 | |
18546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18547 | ||
18548 | ( exit $ac_status ) | |
18549 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18550 | See \`config.log' for more details." >&5 | |
18551 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18552 | See \`config.log' for more details." >&2;} | |
18553 | { (exit 1); exit 1; }; } | |
18554 | fi | |
ac1cb8d3 | 18555 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18556 | fi |
18557 | fi | |
18558 | rm -f conftest.val | |
18559 | else | |
18560 | ac_cv_sizeof_short=0 | |
18561 | fi | |
18562 | fi | |
18563 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
18564 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
18565 | cat >>confdefs.h <<_ACEOF | |
18566 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
18567 | _ACEOF | |
18568 | ||
18569 | ||
18570 | echo "$as_me:$LINENO: checking for void *" >&5 | |
18571 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
18572 | if test "${ac_cv_type_void_p+set}" = set; then | |
18573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18574 | else | |
18575 | cat >conftest.$ac_ext <<_ACEOF | |
18576 | /* confdefs.h. */ | |
18577 | _ACEOF | |
18578 | cat confdefs.h >>conftest.$ac_ext | |
18579 | cat >>conftest.$ac_ext <<_ACEOF | |
18580 | /* end confdefs.h. */ | |
18581 | $ac_includes_default | |
18582 | int | |
18583 | main () | |
18584 | { | |
18585 | if ((void * *) 0) | |
18586 | return 0; | |
18587 | if (sizeof (void *)) | |
18588 | return 0; | |
18589 | ; | |
18590 | return 0; | |
18591 | } | |
18592 | _ACEOF | |
18593 | rm -f conftest.$ac_objext | |
18594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18595 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18596 | ac_status=$? |
ac1cb8d3 VS |
18597 | grep -v '^ *+' conftest.er1 >conftest.err |
18598 | rm -f conftest.er1 | |
18599 | cat conftest.err >&5 | |
a848cd7e SC |
18600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18601 | (exit $ac_status); } && | |
c9a66001 | 18602 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18604 | (eval $ac_try) 2>&5 | |
18605 | ac_status=$? | |
18606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18607 | (exit $ac_status); }; } && | |
18608 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18610 | (eval $ac_try) 2>&5 | |
18611 | ac_status=$? | |
18612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18613 | (exit $ac_status); }; }; then | |
18614 | ac_cv_type_void_p=yes | |
18615 | else | |
18616 | echo "$as_me: failed program was:" >&5 | |
18617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18618 | ||
18619 | ac_cv_type_void_p=no | |
18620 | fi | |
ac1cb8d3 | 18621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18622 | fi |
18623 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
18624 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
18625 | ||
18626 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
18627 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
18628 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
18629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18630 | else | |
18631 | if test "$ac_cv_type_void_p" = yes; then | |
18632 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18633 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18634 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18635 | # This bug is HP SR number 8606223364. | |
18636 | if test "$cross_compiling" = yes; then | |
18637 | # Depending upon the size, compute the lo and hi bounds. | |
18638 | cat >conftest.$ac_ext <<_ACEOF | |
18639 | /* confdefs.h. */ | |
18640 | _ACEOF | |
18641 | cat confdefs.h >>conftest.$ac_ext | |
18642 | cat >>conftest.$ac_ext <<_ACEOF | |
18643 | /* end confdefs.h. */ | |
18644 | $ac_includes_default | |
18645 | int | |
18646 | main () | |
18647 | { | |
18648 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
18649 | test_array [0] = 0 | |
18650 | ||
18651 | ; | |
18652 | return 0; | |
18653 | } | |
18654 | _ACEOF | |
18655 | rm -f conftest.$ac_objext | |
18656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18657 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18658 | ac_status=$? |
ac1cb8d3 VS |
18659 | grep -v '^ *+' conftest.er1 >conftest.err |
18660 | rm -f conftest.er1 | |
18661 | cat conftest.err >&5 | |
a848cd7e SC |
18662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18663 | (exit $ac_status); } && | |
c9a66001 | 18664 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18666 | (eval $ac_try) 2>&5 | |
18667 | ac_status=$? | |
18668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18669 | (exit $ac_status); }; } && | |
18670 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18672 | (eval $ac_try) 2>&5 | |
18673 | ac_status=$? | |
18674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18675 | (exit $ac_status); }; }; then | |
18676 | ac_lo=0 ac_mid=0 | |
18677 | while :; do | |
18678 | cat >conftest.$ac_ext <<_ACEOF | |
18679 | /* confdefs.h. */ | |
18680 | _ACEOF | |
18681 | cat confdefs.h >>conftest.$ac_ext | |
18682 | cat >>conftest.$ac_ext <<_ACEOF | |
18683 | /* end confdefs.h. */ | |
18684 | $ac_includes_default | |
18685 | int | |
18686 | main () | |
18687 | { | |
18688 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18689 | test_array [0] = 0 | |
18690 | ||
18691 | ; | |
18692 | return 0; | |
18693 | } | |
18694 | _ACEOF | |
18695 | rm -f conftest.$ac_objext | |
18696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18697 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18698 | ac_status=$? |
ac1cb8d3 VS |
18699 | grep -v '^ *+' conftest.er1 >conftest.err |
18700 | rm -f conftest.er1 | |
18701 | cat conftest.err >&5 | |
a848cd7e SC |
18702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18703 | (exit $ac_status); } && | |
c9a66001 | 18704 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18706 | (eval $ac_try) 2>&5 | |
18707 | ac_status=$? | |
18708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18709 | (exit $ac_status); }; } && | |
18710 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18712 | (eval $ac_try) 2>&5 | |
18713 | ac_status=$? | |
18714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18715 | (exit $ac_status); }; }; then | |
18716 | ac_hi=$ac_mid; break | |
18717 | else | |
18718 | echo "$as_me: failed program was:" >&5 | |
18719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18720 | ||
18721 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18722 | if test $ac_lo -le $ac_mid; then |
18723 | ac_lo= ac_hi= | |
18724 | break | |
18725 | fi | |
18726 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18727 | fi |
ac1cb8d3 | 18728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18729 | done |
18730 | else | |
18731 | echo "$as_me: failed program was:" >&5 | |
18732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18733 | ||
18734 | cat >conftest.$ac_ext <<_ACEOF | |
18735 | /* confdefs.h. */ | |
18736 | _ACEOF | |
18737 | cat confdefs.h >>conftest.$ac_ext | |
18738 | cat >>conftest.$ac_ext <<_ACEOF | |
18739 | /* end confdefs.h. */ | |
18740 | $ac_includes_default | |
18741 | int | |
18742 | main () | |
18743 | { | |
18744 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
18745 | test_array [0] = 0 | |
18746 | ||
18747 | ; | |
18748 | return 0; | |
18749 | } | |
18750 | _ACEOF | |
18751 | rm -f conftest.$ac_objext | |
18752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18753 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18754 | ac_status=$? |
ac1cb8d3 VS |
18755 | grep -v '^ *+' conftest.er1 >conftest.err |
18756 | rm -f conftest.er1 | |
18757 | cat conftest.err >&5 | |
a848cd7e SC |
18758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18759 | (exit $ac_status); } && | |
c9a66001 | 18760 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18762 | (eval $ac_try) 2>&5 | |
18763 | ac_status=$? | |
18764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18765 | (exit $ac_status); }; } && | |
18766 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18768 | (eval $ac_try) 2>&5 | |
18769 | ac_status=$? | |
18770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18771 | (exit $ac_status); }; }; then | |
18772 | ac_hi=-1 ac_mid=-1 | |
18773 | while :; do | |
18774 | cat >conftest.$ac_ext <<_ACEOF | |
18775 | /* confdefs.h. */ | |
18776 | _ACEOF | |
18777 | cat confdefs.h >>conftest.$ac_ext | |
18778 | cat >>conftest.$ac_ext <<_ACEOF | |
18779 | /* end confdefs.h. */ | |
18780 | $ac_includes_default | |
18781 | int | |
18782 | main () | |
18783 | { | |
18784 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
18785 | test_array [0] = 0 | |
18786 | ||
18787 | ; | |
18788 | return 0; | |
18789 | } | |
18790 | _ACEOF | |
18791 | rm -f conftest.$ac_objext | |
18792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18793 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18794 | ac_status=$? |
ac1cb8d3 VS |
18795 | grep -v '^ *+' conftest.er1 >conftest.err |
18796 | rm -f conftest.er1 | |
18797 | cat conftest.err >&5 | |
a848cd7e SC |
18798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18799 | (exit $ac_status); } && | |
c9a66001 | 18800 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18802 | (eval $ac_try) 2>&5 | |
18803 | ac_status=$? | |
18804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18805 | (exit $ac_status); }; } && | |
18806 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18808 | (eval $ac_try) 2>&5 | |
18809 | ac_status=$? | |
18810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18811 | (exit $ac_status); }; }; then | |
18812 | ac_lo=$ac_mid; break | |
18813 | else | |
18814 | echo "$as_me: failed program was:" >&5 | |
18815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18816 | ||
18817 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18818 | if test $ac_mid -le $ac_hi; then |
18819 | ac_lo= ac_hi= | |
18820 | break | |
18821 | fi | |
18822 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18823 | fi |
ac1cb8d3 | 18824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18825 | done |
18826 | else | |
18827 | echo "$as_me: failed program was:" >&5 | |
18828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18829 | ||
18830 | ac_lo= ac_hi= | |
18831 | fi | |
ac1cb8d3 | 18832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18833 | fi |
ac1cb8d3 | 18834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18835 | # Binary search between lo and hi bounds. |
18836 | while test "x$ac_lo" != "x$ac_hi"; do | |
18837 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18838 | cat >conftest.$ac_ext <<_ACEOF | |
18839 | /* confdefs.h. */ | |
18840 | _ACEOF | |
18841 | cat confdefs.h >>conftest.$ac_ext | |
18842 | cat >>conftest.$ac_ext <<_ACEOF | |
18843 | /* end confdefs.h. */ | |
18844 | $ac_includes_default | |
18845 | int | |
18846 | main () | |
18847 | { | |
18848 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18849 | test_array [0] = 0 | |
18850 | ||
18851 | ; | |
18852 | return 0; | |
18853 | } | |
18854 | _ACEOF | |
18855 | rm -f conftest.$ac_objext | |
18856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18857 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18858 | ac_status=$? |
ac1cb8d3 VS |
18859 | grep -v '^ *+' conftest.er1 >conftest.err |
18860 | rm -f conftest.er1 | |
18861 | cat conftest.err >&5 | |
a848cd7e SC |
18862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18863 | (exit $ac_status); } && | |
c9a66001 | 18864 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18866 | (eval $ac_try) 2>&5 | |
18867 | ac_status=$? | |
18868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18869 | (exit $ac_status); }; } && | |
18870 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18872 | (eval $ac_try) 2>&5 | |
18873 | ac_status=$? | |
18874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18875 | (exit $ac_status); }; }; then | |
18876 | ac_hi=$ac_mid | |
18877 | else | |
18878 | echo "$as_me: failed program was:" >&5 | |
18879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18880 | ||
18881 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18882 | fi | |
ac1cb8d3 | 18883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18884 | done |
18885 | case $ac_lo in | |
18886 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
18887 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18888 | See \`config.log' for more details." >&5 | |
18889 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18890 | See \`config.log' for more details." >&2;} | |
18891 | { (exit 1); exit 1; }; } ;; | |
18892 | esac | |
18893 | else | |
18894 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
18895 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18896 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18897 | { (exit 1); exit 1; }; } |
18898 | else | |
18899 | cat >conftest.$ac_ext <<_ACEOF | |
18900 | /* confdefs.h. */ | |
18901 | _ACEOF | |
18902 | cat confdefs.h >>conftest.$ac_ext | |
18903 | cat >>conftest.$ac_ext <<_ACEOF | |
18904 | /* end confdefs.h. */ | |
18905 | $ac_includes_default | |
18906 | long longval () { return (long) (sizeof (void *)); } | |
18907 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
18908 | #include <stdio.h> | |
18909 | #include <stdlib.h> | |
18910 | int | |
18911 | main () | |
18912 | { | |
18913 | ||
18914 | FILE *f = fopen ("conftest.val", "w"); | |
18915 | if (! f) | |
18916 | exit (1); | |
18917 | if (((long) (sizeof (void *))) < 0) | |
18918 | { | |
18919 | long i = longval (); | |
18920 | if (i != ((long) (sizeof (void *)))) | |
18921 | exit (1); | |
18922 | fprintf (f, "%ld\n", i); | |
18923 | } | |
18924 | else | |
18925 | { | |
18926 | unsigned long i = ulongval (); | |
18927 | if (i != ((long) (sizeof (void *)))) | |
18928 | exit (1); | |
18929 | fprintf (f, "%lu\n", i); | |
18930 | } | |
18931 | exit (ferror (f) || fclose (f) != 0); | |
18932 | ||
18933 | ; | |
18934 | return 0; | |
18935 | } | |
18936 | _ACEOF | |
18937 | rm -f conftest$ac_exeext | |
18938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18939 | (eval $ac_link) 2>&5 | |
18940 | ac_status=$? | |
18941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18942 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18944 | (eval $ac_try) 2>&5 | |
18945 | ac_status=$? | |
18946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18947 | (exit $ac_status); }; }; then | |
18948 | ac_cv_sizeof_void_p=`cat conftest.val` | |
18949 | else | |
18950 | echo "$as_me: program exited with status $ac_status" >&5 | |
18951 | echo "$as_me: failed program was:" >&5 | |
18952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18953 | ||
18954 | ( exit $ac_status ) | |
18955 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18956 | See \`config.log' for more details." >&5 | |
18957 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18958 | See \`config.log' for more details." >&2;} | |
18959 | { (exit 1); exit 1; }; } | |
18960 | fi | |
ac1cb8d3 | 18961 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18962 | fi |
18963 | fi | |
18964 | rm -f conftest.val | |
18965 | else | |
18966 | ac_cv_sizeof_void_p=0 | |
18967 | fi | |
18968 | fi | |
18969 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
18970 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
18971 | cat >>confdefs.h <<_ACEOF | |
18972 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
18973 | _ACEOF | |
18974 | ||
18975 | ||
18976 | echo "$as_me:$LINENO: checking for int" >&5 | |
18977 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
18978 | if test "${ac_cv_type_int+set}" = set; then | |
18979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18980 | else | |
18981 | cat >conftest.$ac_ext <<_ACEOF | |
18982 | /* confdefs.h. */ | |
18983 | _ACEOF | |
18984 | cat confdefs.h >>conftest.$ac_ext | |
18985 | cat >>conftest.$ac_ext <<_ACEOF | |
18986 | /* end confdefs.h. */ | |
18987 | $ac_includes_default | |
18988 | int | |
18989 | main () | |
18990 | { | |
18991 | if ((int *) 0) | |
18992 | return 0; | |
18993 | if (sizeof (int)) | |
18994 | return 0; | |
18995 | ; | |
18996 | return 0; | |
18997 | } | |
18998 | _ACEOF | |
18999 | rm -f conftest.$ac_objext | |
19000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19001 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19002 | ac_status=$? |
ac1cb8d3 VS |
19003 | grep -v '^ *+' conftest.er1 >conftest.err |
19004 | rm -f conftest.er1 | |
19005 | cat conftest.err >&5 | |
a848cd7e SC |
19006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19007 | (exit $ac_status); } && | |
c9a66001 | 19008 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19010 | (eval $ac_try) 2>&5 | |
19011 | ac_status=$? | |
19012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19013 | (exit $ac_status); }; } && | |
19014 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19016 | (eval $ac_try) 2>&5 | |
19017 | ac_status=$? | |
19018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19019 | (exit $ac_status); }; }; then | |
19020 | ac_cv_type_int=yes | |
19021 | else | |
19022 | echo "$as_me: failed program was:" >&5 | |
19023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19024 | ||
19025 | ac_cv_type_int=no | |
19026 | fi | |
ac1cb8d3 | 19027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19028 | fi |
19029 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
19030 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
19031 | ||
19032 | echo "$as_me:$LINENO: checking size of int" >&5 | |
19033 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
19034 | if test "${ac_cv_sizeof_int+set}" = set; then | |
19035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19036 | else | |
19037 | if test "$ac_cv_type_int" = yes; then | |
19038 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19039 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19040 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19041 | # This bug is HP SR number 8606223364. | |
19042 | if test "$cross_compiling" = yes; then | |
19043 | # Depending upon the size, compute the lo and hi bounds. | |
19044 | cat >conftest.$ac_ext <<_ACEOF | |
19045 | /* confdefs.h. */ | |
19046 | _ACEOF | |
19047 | cat confdefs.h >>conftest.$ac_ext | |
19048 | cat >>conftest.$ac_ext <<_ACEOF | |
19049 | /* end confdefs.h. */ | |
19050 | $ac_includes_default | |
19051 | int | |
19052 | main () | |
19053 | { | |
19054 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
19055 | test_array [0] = 0 | |
19056 | ||
19057 | ; | |
19058 | return 0; | |
19059 | } | |
19060 | _ACEOF | |
19061 | rm -f conftest.$ac_objext | |
19062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19063 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19064 | ac_status=$? |
ac1cb8d3 VS |
19065 | grep -v '^ *+' conftest.er1 >conftest.err |
19066 | rm -f conftest.er1 | |
19067 | cat conftest.err >&5 | |
a848cd7e SC |
19068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19069 | (exit $ac_status); } && | |
c9a66001 | 19070 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19072 | (eval $ac_try) 2>&5 | |
19073 | ac_status=$? | |
19074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19075 | (exit $ac_status); }; } && | |
19076 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19078 | (eval $ac_try) 2>&5 | |
19079 | ac_status=$? | |
19080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19081 | (exit $ac_status); }; }; then | |
19082 | ac_lo=0 ac_mid=0 | |
19083 | while :; do | |
19084 | cat >conftest.$ac_ext <<_ACEOF | |
19085 | /* confdefs.h. */ | |
19086 | _ACEOF | |
19087 | cat confdefs.h >>conftest.$ac_ext | |
19088 | cat >>conftest.$ac_ext <<_ACEOF | |
19089 | /* end confdefs.h. */ | |
19090 | $ac_includes_default | |
19091 | int | |
19092 | main () | |
19093 | { | |
19094 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
19095 | test_array [0] = 0 | |
19096 | ||
19097 | ; | |
19098 | return 0; | |
19099 | } | |
19100 | _ACEOF | |
19101 | rm -f conftest.$ac_objext | |
19102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19103 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19104 | ac_status=$? |
ac1cb8d3 VS |
19105 | grep -v '^ *+' conftest.er1 >conftest.err |
19106 | rm -f conftest.er1 | |
19107 | cat conftest.err >&5 | |
a848cd7e SC |
19108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19109 | (exit $ac_status); } && | |
c9a66001 | 19110 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19112 | (eval $ac_try) 2>&5 | |
19113 | ac_status=$? | |
19114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19115 | (exit $ac_status); }; } && | |
19116 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19118 | (eval $ac_try) 2>&5 | |
19119 | ac_status=$? | |
19120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19121 | (exit $ac_status); }; }; then | |
19122 | ac_hi=$ac_mid; break | |
19123 | else | |
19124 | echo "$as_me: failed program was:" >&5 | |
19125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19126 | ||
19127 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19128 | if test $ac_lo -le $ac_mid; then |
19129 | ac_lo= ac_hi= | |
19130 | break | |
19131 | fi | |
19132 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19133 | fi |
ac1cb8d3 | 19134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19135 | done |
19136 | else | |
19137 | echo "$as_me: failed program was:" >&5 | |
19138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19139 | ||
19140 | cat >conftest.$ac_ext <<_ACEOF | |
19141 | /* confdefs.h. */ | |
19142 | _ACEOF | |
19143 | cat confdefs.h >>conftest.$ac_ext | |
19144 | cat >>conftest.$ac_ext <<_ACEOF | |
19145 | /* end confdefs.h. */ | |
19146 | $ac_includes_default | |
19147 | int | |
19148 | main () | |
19149 | { | |
19150 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
19151 | test_array [0] = 0 | |
19152 | ||
19153 | ; | |
19154 | return 0; | |
19155 | } | |
19156 | _ACEOF | |
19157 | rm -f conftest.$ac_objext | |
19158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19159 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19160 | ac_status=$? |
ac1cb8d3 VS |
19161 | grep -v '^ *+' conftest.er1 >conftest.err |
19162 | rm -f conftest.er1 | |
19163 | cat conftest.err >&5 | |
a848cd7e SC |
19164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19165 | (exit $ac_status); } && | |
c9a66001 | 19166 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19168 | (eval $ac_try) 2>&5 | |
19169 | ac_status=$? | |
19170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19171 | (exit $ac_status); }; } && | |
19172 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19174 | (eval $ac_try) 2>&5 | |
19175 | ac_status=$? | |
19176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19177 | (exit $ac_status); }; }; then | |
19178 | ac_hi=-1 ac_mid=-1 | |
19179 | while :; do | |
19180 | cat >conftest.$ac_ext <<_ACEOF | |
19181 | /* confdefs.h. */ | |
19182 | _ACEOF | |
19183 | cat confdefs.h >>conftest.$ac_ext | |
19184 | cat >>conftest.$ac_ext <<_ACEOF | |
19185 | /* end confdefs.h. */ | |
19186 | $ac_includes_default | |
19187 | int | |
19188 | main () | |
19189 | { | |
19190 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
19191 | test_array [0] = 0 | |
19192 | ||
19193 | ; | |
19194 | return 0; | |
19195 | } | |
19196 | _ACEOF | |
19197 | rm -f conftest.$ac_objext | |
19198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19199 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19200 | ac_status=$? |
ac1cb8d3 VS |
19201 | grep -v '^ *+' conftest.er1 >conftest.err |
19202 | rm -f conftest.er1 | |
19203 | cat conftest.err >&5 | |
a848cd7e SC |
19204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19205 | (exit $ac_status); } && | |
c9a66001 | 19206 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19208 | (eval $ac_try) 2>&5 | |
19209 | ac_status=$? | |
19210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19211 | (exit $ac_status); }; } && | |
19212 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19214 | (eval $ac_try) 2>&5 | |
19215 | ac_status=$? | |
19216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19217 | (exit $ac_status); }; }; then | |
19218 | ac_lo=$ac_mid; break | |
19219 | else | |
19220 | echo "$as_me: failed program was:" >&5 | |
19221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19222 | ||
19223 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19224 | if test $ac_mid -le $ac_hi; then |
19225 | ac_lo= ac_hi= | |
19226 | break | |
19227 | fi | |
19228 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19229 | fi |
ac1cb8d3 | 19230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19231 | done |
19232 | else | |
19233 | echo "$as_me: failed program was:" >&5 | |
19234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19235 | ||
19236 | ac_lo= ac_hi= | |
19237 | fi | |
ac1cb8d3 | 19238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19239 | fi |
ac1cb8d3 | 19240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19241 | # Binary search between lo and hi bounds. |
19242 | while test "x$ac_lo" != "x$ac_hi"; do | |
19243 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19244 | cat >conftest.$ac_ext <<_ACEOF | |
19245 | /* confdefs.h. */ | |
19246 | _ACEOF | |
19247 | cat confdefs.h >>conftest.$ac_ext | |
19248 | cat >>conftest.$ac_ext <<_ACEOF | |
19249 | /* end confdefs.h. */ | |
19250 | $ac_includes_default | |
19251 | int | |
19252 | main () | |
19253 | { | |
19254 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
19255 | test_array [0] = 0 | |
19256 | ||
19257 | ; | |
19258 | return 0; | |
19259 | } | |
19260 | _ACEOF | |
19261 | rm -f conftest.$ac_objext | |
19262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19263 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19264 | ac_status=$? |
ac1cb8d3 VS |
19265 | grep -v '^ *+' conftest.er1 >conftest.err |
19266 | rm -f conftest.er1 | |
19267 | cat conftest.err >&5 | |
a848cd7e SC |
19268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19269 | (exit $ac_status); } && | |
c9a66001 | 19270 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19272 | (eval $ac_try) 2>&5 | |
19273 | ac_status=$? | |
19274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19275 | (exit $ac_status); }; } && | |
19276 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19278 | (eval $ac_try) 2>&5 | |
19279 | ac_status=$? | |
19280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19281 | (exit $ac_status); }; }; then | |
19282 | ac_hi=$ac_mid | |
19283 | else | |
19284 | echo "$as_me: failed program was:" >&5 | |
19285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19286 | ||
19287 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19288 | fi | |
ac1cb8d3 | 19289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19290 | done |
19291 | case $ac_lo in | |
19292 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
19293 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
19294 | See \`config.log' for more details." >&5 | |
19295 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
19296 | See \`config.log' for more details." >&2;} | |
19297 | { (exit 1); exit 1; }; } ;; | |
19298 | esac | |
19299 | else | |
19300 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
19301 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19302 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19303 | { (exit 1); exit 1; }; } |
19304 | else | |
19305 | cat >conftest.$ac_ext <<_ACEOF | |
19306 | /* confdefs.h. */ | |
19307 | _ACEOF | |
19308 | cat confdefs.h >>conftest.$ac_ext | |
19309 | cat >>conftest.$ac_ext <<_ACEOF | |
19310 | /* end confdefs.h. */ | |
19311 | $ac_includes_default | |
19312 | long longval () { return (long) (sizeof (int)); } | |
19313 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
19314 | #include <stdio.h> | |
19315 | #include <stdlib.h> | |
19316 | int | |
19317 | main () | |
19318 | { | |
19319 | ||
19320 | FILE *f = fopen ("conftest.val", "w"); | |
19321 | if (! f) | |
19322 | exit (1); | |
19323 | if (((long) (sizeof (int))) < 0) | |
19324 | { | |
19325 | long i = longval (); | |
19326 | if (i != ((long) (sizeof (int)))) | |
19327 | exit (1); | |
19328 | fprintf (f, "%ld\n", i); | |
19329 | } | |
19330 | else | |
19331 | { | |
19332 | unsigned long i = ulongval (); | |
19333 | if (i != ((long) (sizeof (int)))) | |
19334 | exit (1); | |
19335 | fprintf (f, "%lu\n", i); | |
19336 | } | |
19337 | exit (ferror (f) || fclose (f) != 0); | |
19338 | ||
19339 | ; | |
19340 | return 0; | |
19341 | } | |
19342 | _ACEOF | |
19343 | rm -f conftest$ac_exeext | |
19344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19345 | (eval $ac_link) 2>&5 | |
19346 | ac_status=$? | |
19347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19348 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19350 | (eval $ac_try) 2>&5 | |
19351 | ac_status=$? | |
19352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19353 | (exit $ac_status); }; }; then | |
19354 | ac_cv_sizeof_int=`cat conftest.val` | |
19355 | else | |
19356 | echo "$as_me: program exited with status $ac_status" >&5 | |
19357 | echo "$as_me: failed program was:" >&5 | |
19358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19359 | ||
19360 | ( exit $ac_status ) | |
19361 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
19362 | See \`config.log' for more details." >&5 | |
19363 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
19364 | See \`config.log' for more details." >&2;} | |
19365 | { (exit 1); exit 1; }; } | |
19366 | fi | |
ac1cb8d3 | 19367 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19368 | fi |
19369 | fi | |
19370 | rm -f conftest.val | |
19371 | else | |
19372 | ac_cv_sizeof_int=0 | |
19373 | fi | |
19374 | fi | |
19375 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
19376 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
19377 | cat >>confdefs.h <<_ACEOF | |
19378 | #define SIZEOF_INT $ac_cv_sizeof_int | |
19379 | _ACEOF | |
19380 | ||
19381 | ||
19382 | echo "$as_me:$LINENO: checking for long" >&5 | |
19383 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
19384 | if test "${ac_cv_type_long+set}" = set; then | |
19385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19386 | else | |
19387 | cat >conftest.$ac_ext <<_ACEOF | |
19388 | /* confdefs.h. */ | |
19389 | _ACEOF | |
19390 | cat confdefs.h >>conftest.$ac_ext | |
19391 | cat >>conftest.$ac_ext <<_ACEOF | |
19392 | /* end confdefs.h. */ | |
19393 | $ac_includes_default | |
19394 | int | |
19395 | main () | |
19396 | { | |
19397 | if ((long *) 0) | |
19398 | return 0; | |
19399 | if (sizeof (long)) | |
19400 | return 0; | |
19401 | ; | |
19402 | return 0; | |
19403 | } | |
19404 | _ACEOF | |
19405 | rm -f conftest.$ac_objext | |
19406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19407 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19408 | ac_status=$? |
ac1cb8d3 VS |
19409 | grep -v '^ *+' conftest.er1 >conftest.err |
19410 | rm -f conftest.er1 | |
19411 | cat conftest.err >&5 | |
a848cd7e SC |
19412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19413 | (exit $ac_status); } && | |
c9a66001 | 19414 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19416 | (eval $ac_try) 2>&5 | |
19417 | ac_status=$? | |
19418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19419 | (exit $ac_status); }; } && | |
19420 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19422 | (eval $ac_try) 2>&5 | |
19423 | ac_status=$? | |
19424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19425 | (exit $ac_status); }; }; then | |
19426 | ac_cv_type_long=yes | |
19427 | else | |
19428 | echo "$as_me: failed program was:" >&5 | |
19429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19430 | ||
19431 | ac_cv_type_long=no | |
19432 | fi | |
ac1cb8d3 | 19433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19434 | fi |
19435 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
19436 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
19437 | ||
19438 | echo "$as_me:$LINENO: checking size of long" >&5 | |
19439 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
19440 | if test "${ac_cv_sizeof_long+set}" = set; then | |
19441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19442 | else | |
19443 | if test "$ac_cv_type_long" = yes; then | |
19444 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19445 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19446 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19447 | # This bug is HP SR number 8606223364. | |
19448 | if test "$cross_compiling" = yes; then | |
19449 | # Depending upon the size, compute the lo and hi bounds. | |
19450 | cat >conftest.$ac_ext <<_ACEOF | |
19451 | /* confdefs.h. */ | |
19452 | _ACEOF | |
19453 | cat confdefs.h >>conftest.$ac_ext | |
19454 | cat >>conftest.$ac_ext <<_ACEOF | |
19455 | /* end confdefs.h. */ | |
19456 | $ac_includes_default | |
19457 | int | |
19458 | main () | |
19459 | { | |
19460 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
19461 | test_array [0] = 0 | |
19462 | ||
19463 | ; | |
19464 | return 0; | |
19465 | } | |
19466 | _ACEOF | |
19467 | rm -f conftest.$ac_objext | |
19468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19469 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19470 | ac_status=$? |
ac1cb8d3 VS |
19471 | grep -v '^ *+' conftest.er1 >conftest.err |
19472 | rm -f conftest.er1 | |
19473 | cat conftest.err >&5 | |
a848cd7e SC |
19474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19475 | (exit $ac_status); } && | |
c9a66001 | 19476 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19478 | (eval $ac_try) 2>&5 | |
19479 | ac_status=$? | |
19480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19481 | (exit $ac_status); }; } && | |
19482 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19484 | (eval $ac_try) 2>&5 | |
19485 | ac_status=$? | |
19486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19487 | (exit $ac_status); }; }; then | |
19488 | ac_lo=0 ac_mid=0 | |
19489 | while :; do | |
19490 | cat >conftest.$ac_ext <<_ACEOF | |
19491 | /* confdefs.h. */ | |
19492 | _ACEOF | |
19493 | cat confdefs.h >>conftest.$ac_ext | |
19494 | cat >>conftest.$ac_ext <<_ACEOF | |
19495 | /* end confdefs.h. */ | |
19496 | $ac_includes_default | |
19497 | int | |
19498 | main () | |
19499 | { | |
19500 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
19501 | test_array [0] = 0 | |
19502 | ||
19503 | ; | |
19504 | return 0; | |
19505 | } | |
19506 | _ACEOF | |
19507 | rm -f conftest.$ac_objext | |
19508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19509 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19510 | ac_status=$? |
ac1cb8d3 VS |
19511 | grep -v '^ *+' conftest.er1 >conftest.err |
19512 | rm -f conftest.er1 | |
19513 | cat conftest.err >&5 | |
a848cd7e SC |
19514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19515 | (exit $ac_status); } && | |
c9a66001 | 19516 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19518 | (eval $ac_try) 2>&5 | |
19519 | ac_status=$? | |
19520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19521 | (exit $ac_status); }; } && | |
19522 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19524 | (eval $ac_try) 2>&5 | |
19525 | ac_status=$? | |
19526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19527 | (exit $ac_status); }; }; then | |
19528 | ac_hi=$ac_mid; break | |
19529 | else | |
19530 | echo "$as_me: failed program was:" >&5 | |
19531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19532 | ||
19533 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19534 | if test $ac_lo -le $ac_mid; then |
19535 | ac_lo= ac_hi= | |
19536 | break | |
19537 | fi | |
19538 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19539 | fi |
ac1cb8d3 | 19540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19541 | done |
19542 | else | |
19543 | echo "$as_me: failed program was:" >&5 | |
19544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19545 | ||
19546 | cat >conftest.$ac_ext <<_ACEOF | |
19547 | /* confdefs.h. */ | |
19548 | _ACEOF | |
19549 | cat confdefs.h >>conftest.$ac_ext | |
19550 | cat >>conftest.$ac_ext <<_ACEOF | |
19551 | /* end confdefs.h. */ | |
19552 | $ac_includes_default | |
19553 | int | |
19554 | main () | |
19555 | { | |
19556 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
19557 | test_array [0] = 0 | |
19558 | ||
19559 | ; | |
19560 | return 0; | |
19561 | } | |
19562 | _ACEOF | |
19563 | rm -f conftest.$ac_objext | |
19564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19565 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19566 | ac_status=$? |
ac1cb8d3 VS |
19567 | grep -v '^ *+' conftest.er1 >conftest.err |
19568 | rm -f conftest.er1 | |
19569 | cat conftest.err >&5 | |
a848cd7e SC |
19570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19571 | (exit $ac_status); } && | |
c9a66001 | 19572 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19574 | (eval $ac_try) 2>&5 | |
19575 | ac_status=$? | |
19576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19577 | (exit $ac_status); }; } && | |
19578 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19580 | (eval $ac_try) 2>&5 | |
19581 | ac_status=$? | |
19582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19583 | (exit $ac_status); }; }; then | |
19584 | ac_hi=-1 ac_mid=-1 | |
19585 | while :; do | |
19586 | cat >conftest.$ac_ext <<_ACEOF | |
19587 | /* confdefs.h. */ | |
19588 | _ACEOF | |
19589 | cat confdefs.h >>conftest.$ac_ext | |
19590 | cat >>conftest.$ac_ext <<_ACEOF | |
19591 | /* end confdefs.h. */ | |
19592 | $ac_includes_default | |
19593 | int | |
19594 | main () | |
19595 | { | |
19596 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
19597 | test_array [0] = 0 | |
19598 | ||
19599 | ; | |
19600 | return 0; | |
19601 | } | |
19602 | _ACEOF | |
19603 | rm -f conftest.$ac_objext | |
19604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19605 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19606 | ac_status=$? |
ac1cb8d3 VS |
19607 | grep -v '^ *+' conftest.er1 >conftest.err |
19608 | rm -f conftest.er1 | |
19609 | cat conftest.err >&5 | |
a848cd7e SC |
19610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19611 | (exit $ac_status); } && | |
c9a66001 | 19612 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19614 | (eval $ac_try) 2>&5 | |
19615 | ac_status=$? | |
19616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19617 | (exit $ac_status); }; } && | |
19618 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19620 | (eval $ac_try) 2>&5 | |
19621 | ac_status=$? | |
19622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19623 | (exit $ac_status); }; }; then | |
19624 | ac_lo=$ac_mid; break | |
19625 | else | |
19626 | echo "$as_me: failed program was:" >&5 | |
19627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19628 | ||
19629 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19630 | if test $ac_mid -le $ac_hi; then |
19631 | ac_lo= ac_hi= | |
19632 | break | |
19633 | fi | |
19634 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19635 | fi |
ac1cb8d3 | 19636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19637 | done |
19638 | else | |
19639 | echo "$as_me: failed program was:" >&5 | |
19640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19641 | ||
19642 | ac_lo= ac_hi= | |
19643 | fi | |
ac1cb8d3 | 19644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19645 | fi |
ac1cb8d3 | 19646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19647 | # Binary search between lo and hi bounds. |
19648 | while test "x$ac_lo" != "x$ac_hi"; do | |
19649 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19650 | cat >conftest.$ac_ext <<_ACEOF | |
19651 | /* confdefs.h. */ | |
19652 | _ACEOF | |
19653 | cat confdefs.h >>conftest.$ac_ext | |
19654 | cat >>conftest.$ac_ext <<_ACEOF | |
19655 | /* end confdefs.h. */ | |
19656 | $ac_includes_default | |
19657 | int | |
19658 | main () | |
19659 | { | |
19660 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
19661 | test_array [0] = 0 | |
19662 | ||
19663 | ; | |
19664 | return 0; | |
19665 | } | |
19666 | _ACEOF | |
19667 | rm -f conftest.$ac_objext | |
19668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19669 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19670 | ac_status=$? |
ac1cb8d3 VS |
19671 | grep -v '^ *+' conftest.er1 >conftest.err |
19672 | rm -f conftest.er1 | |
19673 | cat conftest.err >&5 | |
a848cd7e SC |
19674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19675 | (exit $ac_status); } && | |
c9a66001 | 19676 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19678 | (eval $ac_try) 2>&5 | |
19679 | ac_status=$? | |
19680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19681 | (exit $ac_status); }; } && | |
19682 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19684 | (eval $ac_try) 2>&5 | |
19685 | ac_status=$? | |
19686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19687 | (exit $ac_status); }; }; then | |
19688 | ac_hi=$ac_mid | |
19689 | else | |
19690 | echo "$as_me: failed program was:" >&5 | |
19691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19692 | ||
19693 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19694 | fi | |
ac1cb8d3 | 19695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19696 | done |
19697 | case $ac_lo in | |
19698 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
19699 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19700 | See \`config.log' for more details." >&5 | |
19701 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19702 | See \`config.log' for more details." >&2;} | |
19703 | { (exit 1); exit 1; }; } ;; | |
19704 | esac | |
19705 | else | |
19706 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
19707 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19708 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19709 | { (exit 1); exit 1; }; } |
19710 | else | |
19711 | cat >conftest.$ac_ext <<_ACEOF | |
19712 | /* confdefs.h. */ | |
19713 | _ACEOF | |
19714 | cat confdefs.h >>conftest.$ac_ext | |
19715 | cat >>conftest.$ac_ext <<_ACEOF | |
19716 | /* end confdefs.h. */ | |
19717 | $ac_includes_default | |
19718 | long longval () { return (long) (sizeof (long)); } | |
19719 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
19720 | #include <stdio.h> | |
19721 | #include <stdlib.h> | |
19722 | int | |
19723 | main () | |
19724 | { | |
19725 | ||
19726 | FILE *f = fopen ("conftest.val", "w"); | |
19727 | if (! f) | |
19728 | exit (1); | |
19729 | if (((long) (sizeof (long))) < 0) | |
19730 | { | |
19731 | long i = longval (); | |
19732 | if (i != ((long) (sizeof (long)))) | |
19733 | exit (1); | |
19734 | fprintf (f, "%ld\n", i); | |
19735 | } | |
19736 | else | |
19737 | { | |
19738 | unsigned long i = ulongval (); | |
19739 | if (i != ((long) (sizeof (long)))) | |
19740 | exit (1); | |
19741 | fprintf (f, "%lu\n", i); | |
19742 | } | |
19743 | exit (ferror (f) || fclose (f) != 0); | |
19744 | ||
19745 | ; | |
19746 | return 0; | |
19747 | } | |
19748 | _ACEOF | |
19749 | rm -f conftest$ac_exeext | |
19750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19751 | (eval $ac_link) 2>&5 | |
19752 | ac_status=$? | |
19753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19754 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19756 | (eval $ac_try) 2>&5 | |
19757 | ac_status=$? | |
19758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19759 | (exit $ac_status); }; }; then | |
19760 | ac_cv_sizeof_long=`cat conftest.val` | |
19761 | else | |
19762 | echo "$as_me: program exited with status $ac_status" >&5 | |
19763 | echo "$as_me: failed program was:" >&5 | |
19764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19765 | ||
19766 | ( exit $ac_status ) | |
19767 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19768 | See \`config.log' for more details." >&5 | |
19769 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19770 | See \`config.log' for more details." >&2;} | |
19771 | { (exit 1); exit 1; }; } | |
19772 | fi | |
ac1cb8d3 | 19773 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19774 | fi |
19775 | fi | |
19776 | rm -f conftest.val | |
19777 | else | |
19778 | ac_cv_sizeof_long=0 | |
19779 | fi | |
19780 | fi | |
19781 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
19782 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
19783 | cat >>confdefs.h <<_ACEOF | |
19784 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
19785 | _ACEOF | |
19786 | ||
19787 | ||
19788 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
19789 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
19790 | if test "${ac_cv_type_size_t+set}" = set; then | |
19791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19792 | else | |
19793 | cat >conftest.$ac_ext <<_ACEOF | |
19794 | /* confdefs.h. */ | |
19795 | _ACEOF | |
19796 | cat confdefs.h >>conftest.$ac_ext | |
19797 | cat >>conftest.$ac_ext <<_ACEOF | |
19798 | /* end confdefs.h. */ | |
19799 | $ac_includes_default | |
19800 | int | |
19801 | main () | |
19802 | { | |
19803 | if ((size_t *) 0) | |
19804 | return 0; | |
19805 | if (sizeof (size_t)) | |
19806 | return 0; | |
19807 | ; | |
19808 | return 0; | |
19809 | } | |
19810 | _ACEOF | |
19811 | rm -f conftest.$ac_objext | |
19812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19813 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19814 | ac_status=$? |
ac1cb8d3 VS |
19815 | grep -v '^ *+' conftest.er1 >conftest.err |
19816 | rm -f conftest.er1 | |
19817 | cat conftest.err >&5 | |
a848cd7e SC |
19818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19819 | (exit $ac_status); } && | |
c9a66001 | 19820 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19822 | (eval $ac_try) 2>&5 | |
19823 | ac_status=$? | |
19824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19825 | (exit $ac_status); }; } && | |
19826 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19828 | (eval $ac_try) 2>&5 | |
19829 | ac_status=$? | |
19830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19831 | (exit $ac_status); }; }; then | |
19832 | ac_cv_type_size_t=yes | |
19833 | else | |
19834 | echo "$as_me: failed program was:" >&5 | |
19835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19836 | ||
19837 | ac_cv_type_size_t=no | |
19838 | fi | |
ac1cb8d3 | 19839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19840 | fi |
19841 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
19842 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
19843 | ||
19844 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
19845 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
19846 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
19847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19848 | else | |
19849 | if test "$ac_cv_type_size_t" = yes; then | |
19850 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19851 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19852 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19853 | # This bug is HP SR number 8606223364. | |
19854 | if test "$cross_compiling" = yes; then | |
19855 | # Depending upon the size, compute the lo and hi bounds. | |
19856 | cat >conftest.$ac_ext <<_ACEOF | |
19857 | /* confdefs.h. */ | |
19858 | _ACEOF | |
19859 | cat confdefs.h >>conftest.$ac_ext | |
19860 | cat >>conftest.$ac_ext <<_ACEOF | |
19861 | /* end confdefs.h. */ | |
19862 | $ac_includes_default | |
19863 | int | |
19864 | main () | |
19865 | { | |
19866 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
19867 | test_array [0] = 0 | |
19868 | ||
19869 | ; | |
19870 | return 0; | |
19871 | } | |
19872 | _ACEOF | |
19873 | rm -f conftest.$ac_objext | |
19874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19875 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19876 | ac_status=$? |
ac1cb8d3 VS |
19877 | grep -v '^ *+' conftest.er1 >conftest.err |
19878 | rm -f conftest.er1 | |
19879 | cat conftest.err >&5 | |
a848cd7e SC |
19880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19881 | (exit $ac_status); } && | |
c9a66001 | 19882 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19884 | (eval $ac_try) 2>&5 | |
19885 | ac_status=$? | |
19886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19887 | (exit $ac_status); }; } && | |
19888 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19890 | (eval $ac_try) 2>&5 | |
19891 | ac_status=$? | |
19892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19893 | (exit $ac_status); }; }; then | |
19894 | ac_lo=0 ac_mid=0 | |
19895 | while :; do | |
19896 | cat >conftest.$ac_ext <<_ACEOF | |
19897 | /* confdefs.h. */ | |
19898 | _ACEOF | |
19899 | cat confdefs.h >>conftest.$ac_ext | |
19900 | cat >>conftest.$ac_ext <<_ACEOF | |
19901 | /* end confdefs.h. */ | |
19902 | $ac_includes_default | |
19903 | int | |
19904 | main () | |
19905 | { | |
19906 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19907 | test_array [0] = 0 | |
19908 | ||
19909 | ; | |
19910 | return 0; | |
19911 | } | |
19912 | _ACEOF | |
19913 | rm -f conftest.$ac_objext | |
19914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19915 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19916 | ac_status=$? |
ac1cb8d3 VS |
19917 | grep -v '^ *+' conftest.er1 >conftest.err |
19918 | rm -f conftest.er1 | |
19919 | cat conftest.err >&5 | |
a848cd7e SC |
19920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19921 | (exit $ac_status); } && | |
c9a66001 | 19922 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19924 | (eval $ac_try) 2>&5 | |
19925 | ac_status=$? | |
19926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19927 | (exit $ac_status); }; } && | |
19928 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19930 | (eval $ac_try) 2>&5 | |
19931 | ac_status=$? | |
19932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19933 | (exit $ac_status); }; }; then | |
19934 | ac_hi=$ac_mid; break | |
19935 | else | |
19936 | echo "$as_me: failed program was:" >&5 | |
19937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19938 | ||
19939 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19940 | if test $ac_lo -le $ac_mid; then |
19941 | ac_lo= ac_hi= | |
19942 | break | |
19943 | fi | |
19944 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19945 | fi |
ac1cb8d3 | 19946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19947 | done |
19948 | else | |
19949 | echo "$as_me: failed program was:" >&5 | |
19950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19951 | ||
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 (size_t))) < 0)]; | |
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); } && | |
c9a66001 | 19978 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19980 | (eval $ac_try) 2>&5 | |
19981 | ac_status=$? | |
19982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19983 | (exit $ac_status); }; } && | |
19984 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19986 | (eval $ac_try) 2>&5 | |
19987 | ac_status=$? | |
19988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19989 | (exit $ac_status); }; }; then | |
19990 | ac_hi=-1 ac_mid=-1 | |
19991 | while :; do | |
19992 | cat >conftest.$ac_ext <<_ACEOF | |
19993 | /* confdefs.h. */ | |
19994 | _ACEOF | |
19995 | cat confdefs.h >>conftest.$ac_ext | |
19996 | cat >>conftest.$ac_ext <<_ACEOF | |
19997 | /* end confdefs.h. */ | |
19998 | $ac_includes_default | |
19999 | int | |
20000 | main () | |
20001 | { | |
20002 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
20003 | test_array [0] = 0 | |
20004 | ||
20005 | ; | |
20006 | return 0; | |
20007 | } | |
20008 | _ACEOF | |
20009 | rm -f conftest.$ac_objext | |
20010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20011 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20012 | ac_status=$? |
ac1cb8d3 VS |
20013 | grep -v '^ *+' conftest.er1 >conftest.err |
20014 | rm -f conftest.er1 | |
20015 | cat conftest.err >&5 | |
a848cd7e SC |
20016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20017 | (exit $ac_status); } && | |
c9a66001 | 20018 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20020 | (eval $ac_try) 2>&5 | |
20021 | ac_status=$? | |
20022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20023 | (exit $ac_status); }; } && | |
20024 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20026 | (eval $ac_try) 2>&5 | |
20027 | ac_status=$? | |
20028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20029 | (exit $ac_status); }; }; then | |
20030 | ac_lo=$ac_mid; break | |
20031 | else | |
20032 | echo "$as_me: failed program was:" >&5 | |
20033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20034 | ||
20035 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20036 | if test $ac_mid -le $ac_hi; then |
20037 | ac_lo= ac_hi= | |
20038 | break | |
20039 | fi | |
20040 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20041 | fi |
ac1cb8d3 | 20042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20043 | done |
20044 | else | |
20045 | echo "$as_me: failed program was:" >&5 | |
20046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20047 | ||
20048 | ac_lo= ac_hi= | |
20049 | fi | |
ac1cb8d3 | 20050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20051 | fi |
ac1cb8d3 | 20052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20053 | # Binary search between lo and hi bounds. |
20054 | while test "x$ac_lo" != "x$ac_hi"; do | |
20055 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20056 | cat >conftest.$ac_ext <<_ACEOF | |
20057 | /* confdefs.h. */ | |
20058 | _ACEOF | |
20059 | cat confdefs.h >>conftest.$ac_ext | |
20060 | cat >>conftest.$ac_ext <<_ACEOF | |
20061 | /* end confdefs.h. */ | |
20062 | $ac_includes_default | |
20063 | int | |
20064 | main () | |
20065 | { | |
20066 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
20067 | test_array [0] = 0 | |
20068 | ||
20069 | ; | |
20070 | return 0; | |
20071 | } | |
20072 | _ACEOF | |
20073 | rm -f conftest.$ac_objext | |
20074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20075 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20076 | ac_status=$? |
ac1cb8d3 VS |
20077 | grep -v '^ *+' conftest.er1 >conftest.err |
20078 | rm -f conftest.er1 | |
20079 | cat conftest.err >&5 | |
a848cd7e SC |
20080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20081 | (exit $ac_status); } && | |
c9a66001 | 20082 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20084 | (eval $ac_try) 2>&5 | |
20085 | ac_status=$? | |
20086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20087 | (exit $ac_status); }; } && | |
20088 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20090 | (eval $ac_try) 2>&5 | |
20091 | ac_status=$? | |
20092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20093 | (exit $ac_status); }; }; then | |
20094 | ac_hi=$ac_mid | |
20095 | else | |
20096 | echo "$as_me: failed program was:" >&5 | |
20097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20098 | ||
20099 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20100 | fi | |
ac1cb8d3 | 20101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20102 | done |
20103 | case $ac_lo in | |
20104 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
20105 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
20106 | See \`config.log' for more details." >&5 | |
20107 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
20108 | See \`config.log' for more details." >&2;} | |
20109 | { (exit 1); exit 1; }; } ;; | |
20110 | esac | |
20111 | else | |
20112 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
20113 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20114 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20115 | { (exit 1); exit 1; }; } |
20116 | else | |
20117 | cat >conftest.$ac_ext <<_ACEOF | |
20118 | /* confdefs.h. */ | |
20119 | _ACEOF | |
20120 | cat confdefs.h >>conftest.$ac_ext | |
20121 | cat >>conftest.$ac_ext <<_ACEOF | |
20122 | /* end confdefs.h. */ | |
20123 | $ac_includes_default | |
20124 | long longval () { return (long) (sizeof (size_t)); } | |
20125 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
20126 | #include <stdio.h> | |
20127 | #include <stdlib.h> | |
20128 | int | |
20129 | main () | |
20130 | { | |
20131 | ||
20132 | FILE *f = fopen ("conftest.val", "w"); | |
20133 | if (! f) | |
20134 | exit (1); | |
20135 | if (((long) (sizeof (size_t))) < 0) | |
20136 | { | |
20137 | long i = longval (); | |
20138 | if (i != ((long) (sizeof (size_t)))) | |
20139 | exit (1); | |
20140 | fprintf (f, "%ld\n", i); | |
20141 | } | |
20142 | else | |
20143 | { | |
20144 | unsigned long i = ulongval (); | |
20145 | if (i != ((long) (sizeof (size_t)))) | |
20146 | exit (1); | |
20147 | fprintf (f, "%lu\n", i); | |
20148 | } | |
20149 | exit (ferror (f) || fclose (f) != 0); | |
20150 | ||
20151 | ; | |
20152 | return 0; | |
20153 | } | |
20154 | _ACEOF | |
20155 | rm -f conftest$ac_exeext | |
20156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20157 | (eval $ac_link) 2>&5 | |
20158 | ac_status=$? | |
20159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20160 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20162 | (eval $ac_try) 2>&5 | |
20163 | ac_status=$? | |
20164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20165 | (exit $ac_status); }; }; then | |
20166 | ac_cv_sizeof_size_t=`cat conftest.val` | |
20167 | else | |
20168 | echo "$as_me: program exited with status $ac_status" >&5 | |
20169 | echo "$as_me: failed program was:" >&5 | |
20170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20171 | ||
20172 | ( exit $ac_status ) | |
20173 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
20174 | See \`config.log' for more details." >&5 | |
20175 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
20176 | See \`config.log' for more details." >&2;} | |
20177 | { (exit 1); exit 1; }; } | |
20178 | fi | |
ac1cb8d3 | 20179 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20180 | fi |
20181 | fi | |
20182 | rm -f conftest.val | |
20183 | else | |
20184 | ac_cv_sizeof_size_t=0 | |
20185 | fi | |
20186 | fi | |
20187 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
20188 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
20189 | cat >>confdefs.h <<_ACEOF | |
20190 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
20191 | _ACEOF | |
20192 | ||
20193 | ||
20194 | ||
20195 | case "${host}" in | |
20196 | arm-*-linux* ) | |
20197 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20198 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20199 | if test "${ac_cv_type_long_long+set}" = set; then | |
20200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20201 | else | |
20202 | cat >conftest.$ac_ext <<_ACEOF | |
20203 | /* confdefs.h. */ | |
20204 | _ACEOF | |
20205 | cat confdefs.h >>conftest.$ac_ext | |
20206 | cat >>conftest.$ac_ext <<_ACEOF | |
20207 | /* end confdefs.h. */ | |
20208 | $ac_includes_default | |
20209 | int | |
20210 | main () | |
20211 | { | |
20212 | if ((long long *) 0) | |
20213 | return 0; | |
20214 | if (sizeof (long long)) | |
20215 | return 0; | |
20216 | ; | |
20217 | return 0; | |
20218 | } | |
20219 | _ACEOF | |
20220 | rm -f conftest.$ac_objext | |
20221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20222 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20223 | ac_status=$? |
ac1cb8d3 VS |
20224 | grep -v '^ *+' conftest.er1 >conftest.err |
20225 | rm -f conftest.er1 | |
20226 | cat conftest.err >&5 | |
a848cd7e SC |
20227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20228 | (exit $ac_status); } && | |
c9a66001 | 20229 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20231 | (eval $ac_try) 2>&5 | |
20232 | ac_status=$? | |
20233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20234 | (exit $ac_status); }; } && | |
20235 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20237 | (eval $ac_try) 2>&5 | |
20238 | ac_status=$? | |
20239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20240 | (exit $ac_status); }; }; then | |
20241 | ac_cv_type_long_long=yes | |
20242 | else | |
20243 | echo "$as_me: failed program was:" >&5 | |
20244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20245 | ||
20246 | ac_cv_type_long_long=no | |
20247 | fi | |
ac1cb8d3 | 20248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20249 | fi |
20250 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20251 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20252 | ||
20253 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20254 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20255 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20257 | else | |
20258 | if test "$ac_cv_type_long_long" = yes; then | |
20259 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20260 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20261 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20262 | # This bug is HP SR number 8606223364. | |
20263 | if test "$cross_compiling" = yes; then | |
20264 | # Depending upon the size, compute the lo and hi bounds. | |
20265 | cat >conftest.$ac_ext <<_ACEOF | |
20266 | /* confdefs.h. */ | |
20267 | _ACEOF | |
20268 | cat confdefs.h >>conftest.$ac_ext | |
20269 | cat >>conftest.$ac_ext <<_ACEOF | |
20270 | /* end confdefs.h. */ | |
20271 | $ac_includes_default | |
20272 | int | |
20273 | main () | |
20274 | { | |
20275 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20276 | test_array [0] = 0 | |
20277 | ||
20278 | ; | |
20279 | return 0; | |
20280 | } | |
20281 | _ACEOF | |
20282 | rm -f conftest.$ac_objext | |
20283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20284 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20285 | ac_status=$? |
ac1cb8d3 VS |
20286 | grep -v '^ *+' conftest.er1 >conftest.err |
20287 | rm -f conftest.er1 | |
20288 | cat conftest.err >&5 | |
a848cd7e SC |
20289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20290 | (exit $ac_status); } && | |
c9a66001 | 20291 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20293 | (eval $ac_try) 2>&5 | |
20294 | ac_status=$? | |
20295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20296 | (exit $ac_status); }; } && | |
20297 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20299 | (eval $ac_try) 2>&5 | |
20300 | ac_status=$? | |
20301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20302 | (exit $ac_status); }; }; then | |
20303 | ac_lo=0 ac_mid=0 | |
20304 | while :; do | |
20305 | cat >conftest.$ac_ext <<_ACEOF | |
20306 | /* confdefs.h. */ | |
20307 | _ACEOF | |
20308 | cat confdefs.h >>conftest.$ac_ext | |
20309 | cat >>conftest.$ac_ext <<_ACEOF | |
20310 | /* end confdefs.h. */ | |
20311 | $ac_includes_default | |
20312 | int | |
20313 | main () | |
20314 | { | |
20315 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20316 | test_array [0] = 0 | |
20317 | ||
20318 | ; | |
20319 | return 0; | |
20320 | } | |
20321 | _ACEOF | |
20322 | rm -f conftest.$ac_objext | |
20323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20324 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20325 | ac_status=$? |
ac1cb8d3 VS |
20326 | grep -v '^ *+' conftest.er1 >conftest.err |
20327 | rm -f conftest.er1 | |
20328 | cat conftest.err >&5 | |
a848cd7e SC |
20329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20330 | (exit $ac_status); } && | |
c9a66001 | 20331 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20333 | (eval $ac_try) 2>&5 | |
20334 | ac_status=$? | |
20335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20336 | (exit $ac_status); }; } && | |
20337 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20339 | (eval $ac_try) 2>&5 | |
20340 | ac_status=$? | |
20341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20342 | (exit $ac_status); }; }; then | |
20343 | ac_hi=$ac_mid; break | |
20344 | else | |
20345 | echo "$as_me: failed program was:" >&5 | |
20346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20347 | ||
20348 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20349 | if test $ac_lo -le $ac_mid; then |
20350 | ac_lo= ac_hi= | |
20351 | break | |
20352 | fi | |
20353 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20354 | fi |
ac1cb8d3 | 20355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20356 | done |
20357 | else | |
20358 | echo "$as_me: failed program was:" >&5 | |
20359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20360 | ||
20361 | cat >conftest.$ac_ext <<_ACEOF | |
20362 | /* confdefs.h. */ | |
20363 | _ACEOF | |
20364 | cat confdefs.h >>conftest.$ac_ext | |
20365 | cat >>conftest.$ac_ext <<_ACEOF | |
20366 | /* end confdefs.h. */ | |
20367 | $ac_includes_default | |
20368 | int | |
20369 | main () | |
20370 | { | |
20371 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20372 | test_array [0] = 0 | |
20373 | ||
20374 | ; | |
20375 | return 0; | |
20376 | } | |
20377 | _ACEOF | |
20378 | rm -f conftest.$ac_objext | |
20379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20380 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20381 | ac_status=$? |
ac1cb8d3 VS |
20382 | grep -v '^ *+' conftest.er1 >conftest.err |
20383 | rm -f conftest.er1 | |
20384 | cat conftest.err >&5 | |
a848cd7e SC |
20385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20386 | (exit $ac_status); } && | |
c9a66001 | 20387 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20389 | (eval $ac_try) 2>&5 | |
20390 | ac_status=$? | |
20391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20392 | (exit $ac_status); }; } && | |
20393 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20395 | (eval $ac_try) 2>&5 | |
20396 | ac_status=$? | |
20397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20398 | (exit $ac_status); }; }; then | |
20399 | ac_hi=-1 ac_mid=-1 | |
20400 | while :; do | |
20401 | cat >conftest.$ac_ext <<_ACEOF | |
20402 | /* confdefs.h. */ | |
20403 | _ACEOF | |
20404 | cat confdefs.h >>conftest.$ac_ext | |
20405 | cat >>conftest.$ac_ext <<_ACEOF | |
20406 | /* end confdefs.h. */ | |
20407 | $ac_includes_default | |
20408 | int | |
20409 | main () | |
20410 | { | |
20411 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20412 | test_array [0] = 0 | |
20413 | ||
20414 | ; | |
20415 | return 0; | |
20416 | } | |
20417 | _ACEOF | |
20418 | rm -f conftest.$ac_objext | |
20419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20420 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20421 | ac_status=$? |
ac1cb8d3 VS |
20422 | grep -v '^ *+' conftest.er1 >conftest.err |
20423 | rm -f conftest.er1 | |
20424 | cat conftest.err >&5 | |
a848cd7e SC |
20425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20426 | (exit $ac_status); } && | |
c9a66001 | 20427 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20429 | (eval $ac_try) 2>&5 | |
20430 | ac_status=$? | |
20431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20432 | (exit $ac_status); }; } && | |
20433 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20435 | (eval $ac_try) 2>&5 | |
20436 | ac_status=$? | |
20437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20438 | (exit $ac_status); }; }; then | |
20439 | ac_lo=$ac_mid; break | |
20440 | else | |
20441 | echo "$as_me: failed program was:" >&5 | |
20442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20443 | ||
20444 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20445 | if test $ac_mid -le $ac_hi; then |
20446 | ac_lo= ac_hi= | |
20447 | break | |
20448 | fi | |
20449 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20450 | fi |
ac1cb8d3 | 20451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20452 | done |
20453 | else | |
20454 | echo "$as_me: failed program was:" >&5 | |
20455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20456 | ||
20457 | ac_lo= ac_hi= | |
20458 | fi | |
ac1cb8d3 | 20459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20460 | fi |
ac1cb8d3 | 20461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20462 | # Binary search between lo and hi bounds. |
20463 | while test "x$ac_lo" != "x$ac_hi"; do | |
20464 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20465 | cat >conftest.$ac_ext <<_ACEOF | |
20466 | /* confdefs.h. */ | |
20467 | _ACEOF | |
20468 | cat confdefs.h >>conftest.$ac_ext | |
20469 | cat >>conftest.$ac_ext <<_ACEOF | |
20470 | /* end confdefs.h. */ | |
20471 | $ac_includes_default | |
20472 | int | |
20473 | main () | |
20474 | { | |
20475 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20476 | test_array [0] = 0 | |
20477 | ||
20478 | ; | |
20479 | return 0; | |
20480 | } | |
20481 | _ACEOF | |
20482 | rm -f conftest.$ac_objext | |
20483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20484 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20485 | ac_status=$? |
ac1cb8d3 VS |
20486 | grep -v '^ *+' conftest.er1 >conftest.err |
20487 | rm -f conftest.er1 | |
20488 | cat conftest.err >&5 | |
a848cd7e SC |
20489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20490 | (exit $ac_status); } && | |
c9a66001 | 20491 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20493 | (eval $ac_try) 2>&5 | |
20494 | ac_status=$? | |
20495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20496 | (exit $ac_status); }; } && | |
20497 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20499 | (eval $ac_try) 2>&5 | |
20500 | ac_status=$? | |
20501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20502 | (exit $ac_status); }; }; then | |
20503 | ac_hi=$ac_mid | |
20504 | else | |
20505 | echo "$as_me: failed program was:" >&5 | |
20506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20507 | ||
20508 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20509 | fi | |
ac1cb8d3 | 20510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20511 | done |
20512 | case $ac_lo in | |
20513 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20514 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20515 | See \`config.log' for more details." >&5 | |
20516 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20517 | See \`config.log' for more details." >&2;} | |
20518 | { (exit 1); exit 1; }; } ;; | |
20519 | esac | |
20520 | else | |
20521 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
20522 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20523 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20524 | { (exit 1); exit 1; }; } |
20525 | else | |
20526 | cat >conftest.$ac_ext <<_ACEOF | |
20527 | /* confdefs.h. */ | |
20528 | _ACEOF | |
20529 | cat confdefs.h >>conftest.$ac_ext | |
20530 | cat >>conftest.$ac_ext <<_ACEOF | |
20531 | /* end confdefs.h. */ | |
20532 | $ac_includes_default | |
20533 | long longval () { return (long) (sizeof (long long)); } | |
20534 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20535 | #include <stdio.h> | |
20536 | #include <stdlib.h> | |
20537 | int | |
20538 | main () | |
20539 | { | |
20540 | ||
20541 | FILE *f = fopen ("conftest.val", "w"); | |
20542 | if (! f) | |
20543 | exit (1); | |
20544 | if (((long) (sizeof (long long))) < 0) | |
20545 | { | |
20546 | long i = longval (); | |
20547 | if (i != ((long) (sizeof (long long)))) | |
20548 | exit (1); | |
20549 | fprintf (f, "%ld\n", i); | |
20550 | } | |
20551 | else | |
20552 | { | |
20553 | unsigned long i = ulongval (); | |
20554 | if (i != ((long) (sizeof (long long)))) | |
20555 | exit (1); | |
20556 | fprintf (f, "%lu\n", i); | |
20557 | } | |
20558 | exit (ferror (f) || fclose (f) != 0); | |
20559 | ||
20560 | ; | |
20561 | return 0; | |
20562 | } | |
20563 | _ACEOF | |
20564 | rm -f conftest$ac_exeext | |
20565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20566 | (eval $ac_link) 2>&5 | |
20567 | ac_status=$? | |
20568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20569 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20571 | (eval $ac_try) 2>&5 | |
20572 | ac_status=$? | |
20573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20574 | (exit $ac_status); }; }; then | |
20575 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20576 | else | |
20577 | echo "$as_me: program exited with status $ac_status" >&5 | |
20578 | echo "$as_me: failed program was:" >&5 | |
20579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20580 | ||
20581 | ( exit $ac_status ) | |
20582 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20583 | See \`config.log' for more details." >&5 | |
20584 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20585 | See \`config.log' for more details." >&2;} | |
20586 | { (exit 1); exit 1; }; } | |
20587 | fi | |
ac1cb8d3 | 20588 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20589 | fi |
20590 | fi | |
20591 | rm -f conftest.val | |
20592 | else | |
20593 | ac_cv_sizeof_long_long=0 | |
20594 | fi | |
20595 | fi | |
20596 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20597 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20598 | cat >>confdefs.h <<_ACEOF | |
20599 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20600 | _ACEOF | |
20601 | ||
20602 | ||
20603 | ;; | |
20604 | *-hp-hpux* ) | |
20605 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20606 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20607 | if test "${ac_cv_type_long_long+set}" = set; then | |
20608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20609 | else | |
20610 | cat >conftest.$ac_ext <<_ACEOF | |
20611 | /* confdefs.h. */ | |
20612 | _ACEOF | |
20613 | cat confdefs.h >>conftest.$ac_ext | |
20614 | cat >>conftest.$ac_ext <<_ACEOF | |
20615 | /* end confdefs.h. */ | |
20616 | $ac_includes_default | |
20617 | int | |
20618 | main () | |
20619 | { | |
20620 | if ((long long *) 0) | |
20621 | return 0; | |
20622 | if (sizeof (long long)) | |
20623 | return 0; | |
20624 | ; | |
20625 | return 0; | |
20626 | } | |
20627 | _ACEOF | |
20628 | rm -f conftest.$ac_objext | |
20629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20630 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20631 | ac_status=$? |
ac1cb8d3 VS |
20632 | grep -v '^ *+' conftest.er1 >conftest.err |
20633 | rm -f conftest.er1 | |
20634 | cat conftest.err >&5 | |
a848cd7e SC |
20635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20636 | (exit $ac_status); } && | |
c9a66001 | 20637 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20639 | (eval $ac_try) 2>&5 | |
20640 | ac_status=$? | |
20641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20642 | (exit $ac_status); }; } && | |
20643 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20645 | (eval $ac_try) 2>&5 | |
20646 | ac_status=$? | |
20647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20648 | (exit $ac_status); }; }; then | |
20649 | ac_cv_type_long_long=yes | |
20650 | else | |
20651 | echo "$as_me: failed program was:" >&5 | |
20652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20653 | ||
20654 | ac_cv_type_long_long=no | |
20655 | fi | |
ac1cb8d3 | 20656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20657 | fi |
20658 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20659 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20660 | ||
20661 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20662 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20663 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20665 | else | |
20666 | if test "$ac_cv_type_long_long" = yes; then | |
20667 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20668 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20669 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20670 | # This bug is HP SR number 8606223364. | |
20671 | if test "$cross_compiling" = yes; then | |
20672 | # Depending upon the size, compute the lo and hi bounds. | |
20673 | cat >conftest.$ac_ext <<_ACEOF | |
20674 | /* confdefs.h. */ | |
20675 | _ACEOF | |
20676 | cat confdefs.h >>conftest.$ac_ext | |
20677 | cat >>conftest.$ac_ext <<_ACEOF | |
20678 | /* end confdefs.h. */ | |
20679 | $ac_includes_default | |
20680 | int | |
20681 | main () | |
20682 | { | |
20683 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20684 | test_array [0] = 0 | |
20685 | ||
20686 | ; | |
20687 | return 0; | |
20688 | } | |
20689 | _ACEOF | |
20690 | rm -f conftest.$ac_objext | |
20691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20692 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20693 | ac_status=$? |
ac1cb8d3 VS |
20694 | grep -v '^ *+' conftest.er1 >conftest.err |
20695 | rm -f conftest.er1 | |
20696 | cat conftest.err >&5 | |
a848cd7e SC |
20697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20698 | (exit $ac_status); } && | |
c9a66001 | 20699 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20701 | (eval $ac_try) 2>&5 | |
20702 | ac_status=$? | |
20703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20704 | (exit $ac_status); }; } && | |
20705 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20707 | (eval $ac_try) 2>&5 | |
20708 | ac_status=$? | |
20709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20710 | (exit $ac_status); }; }; then | |
20711 | ac_lo=0 ac_mid=0 | |
20712 | while :; do | |
20713 | cat >conftest.$ac_ext <<_ACEOF | |
20714 | /* confdefs.h. */ | |
20715 | _ACEOF | |
20716 | cat confdefs.h >>conftest.$ac_ext | |
20717 | cat >>conftest.$ac_ext <<_ACEOF | |
20718 | /* end confdefs.h. */ | |
20719 | $ac_includes_default | |
20720 | int | |
20721 | main () | |
20722 | { | |
20723 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20724 | test_array [0] = 0 | |
20725 | ||
20726 | ; | |
20727 | return 0; | |
20728 | } | |
20729 | _ACEOF | |
20730 | rm -f conftest.$ac_objext | |
20731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20732 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20733 | ac_status=$? |
ac1cb8d3 VS |
20734 | grep -v '^ *+' conftest.er1 >conftest.err |
20735 | rm -f conftest.er1 | |
20736 | cat conftest.err >&5 | |
a848cd7e SC |
20737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20738 | (exit $ac_status); } && | |
c9a66001 | 20739 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20741 | (eval $ac_try) 2>&5 | |
20742 | ac_status=$? | |
20743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20744 | (exit $ac_status); }; } && | |
20745 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20747 | (eval $ac_try) 2>&5 | |
20748 | ac_status=$? | |
20749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20750 | (exit $ac_status); }; }; then | |
20751 | ac_hi=$ac_mid; break | |
20752 | else | |
20753 | echo "$as_me: failed program was:" >&5 | |
20754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20755 | ||
20756 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20757 | if test $ac_lo -le $ac_mid; then |
20758 | ac_lo= ac_hi= | |
20759 | break | |
20760 | fi | |
20761 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20762 | fi |
ac1cb8d3 | 20763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20764 | done |
20765 | else | |
20766 | echo "$as_me: failed program was:" >&5 | |
20767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20768 | ||
20769 | cat >conftest.$ac_ext <<_ACEOF | |
20770 | /* confdefs.h. */ | |
20771 | _ACEOF | |
20772 | cat confdefs.h >>conftest.$ac_ext | |
20773 | cat >>conftest.$ac_ext <<_ACEOF | |
20774 | /* end confdefs.h. */ | |
20775 | $ac_includes_default | |
20776 | int | |
20777 | main () | |
20778 | { | |
20779 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20780 | test_array [0] = 0 | |
20781 | ||
20782 | ; | |
20783 | return 0; | |
20784 | } | |
20785 | _ACEOF | |
20786 | rm -f conftest.$ac_objext | |
20787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20788 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20789 | ac_status=$? |
ac1cb8d3 VS |
20790 | grep -v '^ *+' conftest.er1 >conftest.err |
20791 | rm -f conftest.er1 | |
20792 | cat conftest.err >&5 | |
a848cd7e SC |
20793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20794 | (exit $ac_status); } && | |
c9a66001 | 20795 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20797 | (eval $ac_try) 2>&5 | |
20798 | ac_status=$? | |
20799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20800 | (exit $ac_status); }; } && | |
20801 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20803 | (eval $ac_try) 2>&5 | |
20804 | ac_status=$? | |
20805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20806 | (exit $ac_status); }; }; then | |
20807 | ac_hi=-1 ac_mid=-1 | |
20808 | while :; do | |
20809 | cat >conftest.$ac_ext <<_ACEOF | |
20810 | /* confdefs.h. */ | |
20811 | _ACEOF | |
20812 | cat confdefs.h >>conftest.$ac_ext | |
20813 | cat >>conftest.$ac_ext <<_ACEOF | |
20814 | /* end confdefs.h. */ | |
20815 | $ac_includes_default | |
20816 | int | |
20817 | main () | |
20818 | { | |
20819 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20820 | test_array [0] = 0 | |
20821 | ||
20822 | ; | |
20823 | return 0; | |
20824 | } | |
20825 | _ACEOF | |
20826 | rm -f conftest.$ac_objext | |
20827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20828 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20829 | ac_status=$? |
ac1cb8d3 VS |
20830 | grep -v '^ *+' conftest.er1 >conftest.err |
20831 | rm -f conftest.er1 | |
20832 | cat conftest.err >&5 | |
a848cd7e SC |
20833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20834 | (exit $ac_status); } && | |
c9a66001 | 20835 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20837 | (eval $ac_try) 2>&5 | |
20838 | ac_status=$? | |
20839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20840 | (exit $ac_status); }; } && | |
20841 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
20847 | ac_lo=$ac_mid; break | |
20848 | else | |
20849 | echo "$as_me: failed program was:" >&5 | |
20850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20851 | ||
20852 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20853 | if test $ac_mid -le $ac_hi; then |
20854 | ac_lo= ac_hi= | |
20855 | break | |
20856 | fi | |
20857 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20858 | fi |
ac1cb8d3 | 20859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20860 | done |
20861 | else | |
20862 | echo "$as_me: failed program was:" >&5 | |
20863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20864 | ||
20865 | ac_lo= ac_hi= | |
20866 | fi | |
ac1cb8d3 | 20867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20868 | fi |
ac1cb8d3 | 20869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20870 | # Binary search between lo and hi bounds. |
20871 | while test "x$ac_lo" != "x$ac_hi"; do | |
20872 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20873 | cat >conftest.$ac_ext <<_ACEOF | |
20874 | /* confdefs.h. */ | |
20875 | _ACEOF | |
20876 | cat confdefs.h >>conftest.$ac_ext | |
20877 | cat >>conftest.$ac_ext <<_ACEOF | |
20878 | /* end confdefs.h. */ | |
20879 | $ac_includes_default | |
20880 | int | |
20881 | main () | |
20882 | { | |
20883 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20884 | test_array [0] = 0 | |
20885 | ||
20886 | ; | |
20887 | return 0; | |
20888 | } | |
20889 | _ACEOF | |
20890 | rm -f conftest.$ac_objext | |
20891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20892 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20893 | ac_status=$? |
ac1cb8d3 VS |
20894 | grep -v '^ *+' conftest.er1 >conftest.err |
20895 | rm -f conftest.er1 | |
20896 | cat conftest.err >&5 | |
a848cd7e SC |
20897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20898 | (exit $ac_status); } && | |
c9a66001 | 20899 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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' | |
a848cd7e SC |
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_hi=$ac_mid | |
20912 | else | |
20913 | echo "$as_me: failed program was:" >&5 | |
20914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20915 | ||
20916 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20917 | fi | |
ac1cb8d3 | 20918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20919 | done |
20920 | case $ac_lo in | |
20921 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20922 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20923 | See \`config.log' for more details." >&5 | |
20924 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20925 | See \`config.log' for more details." >&2;} | |
20926 | { (exit 1); exit 1; }; } ;; | |
20927 | esac | |
20928 | else | |
20929 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
20930 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20931 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20932 | { (exit 1); exit 1; }; } |
20933 | else | |
20934 | cat >conftest.$ac_ext <<_ACEOF | |
20935 | /* confdefs.h. */ | |
20936 | _ACEOF | |
20937 | cat confdefs.h >>conftest.$ac_ext | |
20938 | cat >>conftest.$ac_ext <<_ACEOF | |
20939 | /* end confdefs.h. */ | |
20940 | $ac_includes_default | |
20941 | long longval () { return (long) (sizeof (long long)); } | |
20942 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20943 | #include <stdio.h> | |
20944 | #include <stdlib.h> | |
20945 | int | |
20946 | main () | |
20947 | { | |
20948 | ||
20949 | FILE *f = fopen ("conftest.val", "w"); | |
20950 | if (! f) | |
20951 | exit (1); | |
20952 | if (((long) (sizeof (long long))) < 0) | |
20953 | { | |
20954 | long i = longval (); | |
20955 | if (i != ((long) (sizeof (long long)))) | |
20956 | exit (1); | |
20957 | fprintf (f, "%ld\n", i); | |
20958 | } | |
20959 | else | |
20960 | { | |
20961 | unsigned long i = ulongval (); | |
20962 | if (i != ((long) (sizeof (long long)))) | |
20963 | exit (1); | |
20964 | fprintf (f, "%lu\n", i); | |
20965 | } | |
20966 | exit (ferror (f) || fclose (f) != 0); | |
20967 | ||
20968 | ; | |
20969 | return 0; | |
20970 | } | |
20971 | _ACEOF | |
20972 | rm -f conftest$ac_exeext | |
20973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20974 | (eval $ac_link) 2>&5 | |
20975 | ac_status=$? | |
20976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20977 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20979 | (eval $ac_try) 2>&5 | |
20980 | ac_status=$? | |
20981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20982 | (exit $ac_status); }; }; then | |
20983 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20984 | else | |
20985 | echo "$as_me: program exited with status $ac_status" >&5 | |
20986 | echo "$as_me: failed program was:" >&5 | |
20987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20988 | ||
20989 | ( exit $ac_status ) | |
20990 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20991 | See \`config.log' for more details." >&5 | |
20992 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20993 | See \`config.log' for more details." >&2;} | |
20994 | { (exit 1); exit 1; }; } | |
20995 | fi | |
ac1cb8d3 | 20996 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20997 | fi |
20998 | fi | |
20999 | rm -f conftest.val | |
21000 | else | |
21001 | ac_cv_sizeof_long_long=0 | |
21002 | fi | |
21003 | fi | |
21004 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
21005 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
21006 | cat >>confdefs.h <<_ACEOF | |
21007 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
21008 | _ACEOF | |
21009 | ||
21010 | ||
21011 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
c92ad099 | 21012 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" |
a848cd7e SC |
21013 | fi |
21014 | ;; | |
21015 | * ) | |
21016 | echo "$as_me:$LINENO: checking for long long" >&5 | |
21017 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
21018 | if test "${ac_cv_type_long_long+set}" = set; then | |
21019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21020 | else | |
21021 | cat >conftest.$ac_ext <<_ACEOF | |
21022 | /* confdefs.h. */ | |
21023 | _ACEOF | |
21024 | cat confdefs.h >>conftest.$ac_ext | |
21025 | cat >>conftest.$ac_ext <<_ACEOF | |
21026 | /* end confdefs.h. */ | |
21027 | $ac_includes_default | |
21028 | int | |
21029 | main () | |
21030 | { | |
21031 | if ((long long *) 0) | |
21032 | return 0; | |
21033 | if (sizeof (long long)) | |
21034 | return 0; | |
21035 | ; | |
21036 | return 0; | |
21037 | } | |
21038 | _ACEOF | |
21039 | rm -f conftest.$ac_objext | |
21040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21041 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21042 | ac_status=$? |
ac1cb8d3 VS |
21043 | grep -v '^ *+' conftest.er1 >conftest.err |
21044 | rm -f conftest.er1 | |
21045 | cat conftest.err >&5 | |
a848cd7e SC |
21046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21047 | (exit $ac_status); } && | |
c9a66001 | 21048 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21050 | (eval $ac_try) 2>&5 | |
21051 | ac_status=$? | |
21052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21053 | (exit $ac_status); }; } && | |
21054 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21056 | (eval $ac_try) 2>&5 | |
21057 | ac_status=$? | |
21058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21059 | (exit $ac_status); }; }; then | |
21060 | ac_cv_type_long_long=yes | |
21061 | else | |
21062 | echo "$as_me: failed program was:" >&5 | |
21063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21064 | ||
21065 | ac_cv_type_long_long=no | |
21066 | fi | |
ac1cb8d3 | 21067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21068 | fi |
21069 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
21070 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
21071 | ||
21072 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
21073 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
21074 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
21075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21076 | else | |
21077 | if test "$ac_cv_type_long_long" = yes; then | |
21078 | # The cast to unsigned long works around a bug in the HP C Compiler | |
21079 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21080 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21081 | # This bug is HP SR number 8606223364. | |
21082 | if test "$cross_compiling" = yes; then | |
21083 | # Depending upon the size, compute the lo and hi bounds. | |
21084 | cat >conftest.$ac_ext <<_ACEOF | |
21085 | /* confdefs.h. */ | |
21086 | _ACEOF | |
21087 | cat confdefs.h >>conftest.$ac_ext | |
21088 | cat >>conftest.$ac_ext <<_ACEOF | |
21089 | /* end confdefs.h. */ | |
21090 | $ac_includes_default | |
21091 | int | |
21092 | main () | |
21093 | { | |
21094 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
21095 | test_array [0] = 0 | |
21096 | ||
21097 | ; | |
21098 | return 0; | |
21099 | } | |
21100 | _ACEOF | |
21101 | rm -f conftest.$ac_objext | |
21102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21103 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21104 | ac_status=$? |
ac1cb8d3 VS |
21105 | grep -v '^ *+' conftest.er1 >conftest.err |
21106 | rm -f conftest.er1 | |
21107 | cat conftest.err >&5 | |
a848cd7e SC |
21108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21109 | (exit $ac_status); } && | |
c9a66001 | 21110 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21112 | (eval $ac_try) 2>&5 | |
21113 | ac_status=$? | |
21114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21115 | (exit $ac_status); }; } && | |
21116 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21118 | (eval $ac_try) 2>&5 | |
21119 | ac_status=$? | |
21120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21121 | (exit $ac_status); }; }; then | |
21122 | ac_lo=0 ac_mid=0 | |
21123 | while :; do | |
21124 | cat >conftest.$ac_ext <<_ACEOF | |
21125 | /* confdefs.h. */ | |
21126 | _ACEOF | |
21127 | cat confdefs.h >>conftest.$ac_ext | |
21128 | cat >>conftest.$ac_ext <<_ACEOF | |
21129 | /* end confdefs.h. */ | |
21130 | $ac_includes_default | |
21131 | int | |
21132 | main () | |
21133 | { | |
21134 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21135 | test_array [0] = 0 | |
21136 | ||
21137 | ; | |
21138 | return 0; | |
21139 | } | |
21140 | _ACEOF | |
21141 | rm -f conftest.$ac_objext | |
21142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21143 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21144 | ac_status=$? |
ac1cb8d3 VS |
21145 | grep -v '^ *+' conftest.er1 >conftest.err |
21146 | rm -f conftest.er1 | |
21147 | cat conftest.err >&5 | |
a848cd7e SC |
21148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21149 | (exit $ac_status); } && | |
c9a66001 | 21150 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21152 | (eval $ac_try) 2>&5 | |
21153 | ac_status=$? | |
21154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21155 | (exit $ac_status); }; } && | |
21156 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21158 | (eval $ac_try) 2>&5 | |
21159 | ac_status=$? | |
21160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21161 | (exit $ac_status); }; }; then | |
21162 | ac_hi=$ac_mid; break | |
21163 | else | |
21164 | echo "$as_me: failed program was:" >&5 | |
21165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21166 | ||
21167 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
21168 | if test $ac_lo -le $ac_mid; then |
21169 | ac_lo= ac_hi= | |
21170 | break | |
21171 | fi | |
21172 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 21173 | fi |
ac1cb8d3 | 21174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21175 | done |
21176 | else | |
21177 | echo "$as_me: failed program was:" >&5 | |
21178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21179 | ||
21180 | cat >conftest.$ac_ext <<_ACEOF | |
21181 | /* confdefs.h. */ | |
21182 | _ACEOF | |
21183 | cat confdefs.h >>conftest.$ac_ext | |
21184 | cat >>conftest.$ac_ext <<_ACEOF | |
21185 | /* end confdefs.h. */ | |
21186 | $ac_includes_default | |
21187 | int | |
21188 | main () | |
21189 | { | |
21190 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
21191 | test_array [0] = 0 | |
21192 | ||
21193 | ; | |
21194 | return 0; | |
21195 | } | |
21196 | _ACEOF | |
21197 | rm -f conftest.$ac_objext | |
21198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21199 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21200 | ac_status=$? |
ac1cb8d3 VS |
21201 | grep -v '^ *+' conftest.er1 >conftest.err |
21202 | rm -f conftest.er1 | |
21203 | cat conftest.err >&5 | |
a848cd7e SC |
21204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21205 | (exit $ac_status); } && | |
c9a66001 | 21206 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21208 | (eval $ac_try) 2>&5 | |
21209 | ac_status=$? | |
21210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21211 | (exit $ac_status); }; } && | |
21212 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21214 | (eval $ac_try) 2>&5 | |
21215 | ac_status=$? | |
21216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21217 | (exit $ac_status); }; }; then | |
21218 | ac_hi=-1 ac_mid=-1 | |
21219 | while :; do | |
21220 | cat >conftest.$ac_ext <<_ACEOF | |
21221 | /* confdefs.h. */ | |
21222 | _ACEOF | |
21223 | cat confdefs.h >>conftest.$ac_ext | |
21224 | cat >>conftest.$ac_ext <<_ACEOF | |
21225 | /* end confdefs.h. */ | |
21226 | $ac_includes_default | |
21227 | int | |
21228 | main () | |
21229 | { | |
21230 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
21231 | test_array [0] = 0 | |
21232 | ||
21233 | ; | |
21234 | return 0; | |
21235 | } | |
21236 | _ACEOF | |
21237 | rm -f conftest.$ac_objext | |
21238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21239 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21240 | ac_status=$? |
ac1cb8d3 VS |
21241 | grep -v '^ *+' conftest.er1 >conftest.err |
21242 | rm -f conftest.er1 | |
21243 | cat conftest.err >&5 | |
a848cd7e SC |
21244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21245 | (exit $ac_status); } && | |
c9a66001 | 21246 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21248 | (eval $ac_try) 2>&5 | |
21249 | ac_status=$? | |
21250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21251 | (exit $ac_status); }; } && | |
21252 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21254 | (eval $ac_try) 2>&5 | |
21255 | ac_status=$? | |
21256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21257 | (exit $ac_status); }; }; then | |
21258 | ac_lo=$ac_mid; break | |
21259 | else | |
21260 | echo "$as_me: failed program was:" >&5 | |
21261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21262 | ||
21263 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
21264 | if test $ac_mid -le $ac_hi; then |
21265 | ac_lo= ac_hi= | |
21266 | break | |
21267 | fi | |
21268 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 21269 | fi |
ac1cb8d3 | 21270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21271 | done |
21272 | else | |
21273 | echo "$as_me: failed program was:" >&5 | |
21274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21275 | ||
21276 | ac_lo= ac_hi= | |
21277 | fi | |
ac1cb8d3 | 21278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21279 | fi |
ac1cb8d3 | 21280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21281 | # Binary search between lo and hi bounds. |
21282 | while test "x$ac_lo" != "x$ac_hi"; do | |
21283 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21284 | cat >conftest.$ac_ext <<_ACEOF | |
21285 | /* confdefs.h. */ | |
21286 | _ACEOF | |
21287 | cat confdefs.h >>conftest.$ac_ext | |
21288 | cat >>conftest.$ac_ext <<_ACEOF | |
21289 | /* end confdefs.h. */ | |
21290 | $ac_includes_default | |
21291 | int | |
21292 | main () | |
21293 | { | |
21294 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21295 | test_array [0] = 0 | |
21296 | ||
21297 | ; | |
21298 | return 0; | |
21299 | } | |
21300 | _ACEOF | |
21301 | rm -f conftest.$ac_objext | |
21302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21303 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21304 | ac_status=$? |
ac1cb8d3 VS |
21305 | grep -v '^ *+' conftest.er1 >conftest.err |
21306 | rm -f conftest.er1 | |
21307 | cat conftest.err >&5 | |
a848cd7e SC |
21308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21309 | (exit $ac_status); } && | |
c9a66001 | 21310 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21312 | (eval $ac_try) 2>&5 | |
21313 | ac_status=$? | |
21314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21315 | (exit $ac_status); }; } && | |
21316 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21318 | (eval $ac_try) 2>&5 | |
21319 | ac_status=$? | |
21320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21321 | (exit $ac_status); }; }; then | |
21322 | ac_hi=$ac_mid | |
21323 | else | |
21324 | echo "$as_me: failed program was:" >&5 | |
21325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21326 | ||
21327 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21328 | fi | |
ac1cb8d3 | 21329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21330 | done |
21331 | case $ac_lo in | |
21332 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
21333 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21334 | See \`config.log' for more details." >&5 | |
21335 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21336 | See \`config.log' for more details." >&2;} | |
21337 | { (exit 1); exit 1; }; } ;; | |
21338 | esac | |
21339 | else | |
21340 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
21341 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
21342 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
21343 | { (exit 1); exit 1; }; } |
21344 | else | |
21345 | cat >conftest.$ac_ext <<_ACEOF | |
21346 | /* confdefs.h. */ | |
21347 | _ACEOF | |
21348 | cat confdefs.h >>conftest.$ac_ext | |
21349 | cat >>conftest.$ac_ext <<_ACEOF | |
21350 | /* end confdefs.h. */ | |
21351 | $ac_includes_default | |
21352 | long longval () { return (long) (sizeof (long long)); } | |
21353 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
21354 | #include <stdio.h> | |
21355 | #include <stdlib.h> | |
21356 | int | |
21357 | main () | |
21358 | { | |
21359 | ||
21360 | FILE *f = fopen ("conftest.val", "w"); | |
21361 | if (! f) | |
21362 | exit (1); | |
21363 | if (((long) (sizeof (long long))) < 0) | |
21364 | { | |
21365 | long i = longval (); | |
21366 | if (i != ((long) (sizeof (long long)))) | |
21367 | exit (1); | |
21368 | fprintf (f, "%ld\n", i); | |
21369 | } | |
21370 | else | |
21371 | { | |
21372 | unsigned long i = ulongval (); | |
21373 | if (i != ((long) (sizeof (long long)))) | |
21374 | exit (1); | |
21375 | fprintf (f, "%lu\n", i); | |
21376 | } | |
21377 | exit (ferror (f) || fclose (f) != 0); | |
21378 | ||
21379 | ; | |
21380 | return 0; | |
21381 | } | |
21382 | _ACEOF | |
21383 | rm -f conftest$ac_exeext | |
21384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21385 | (eval $ac_link) 2>&5 | |
21386 | ac_status=$? | |
21387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21390 | (eval $ac_try) 2>&5 | |
21391 | ac_status=$? | |
21392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21393 | (exit $ac_status); }; }; then | |
21394 | ac_cv_sizeof_long_long=`cat conftest.val` | |
21395 | else | |
21396 | echo "$as_me: program exited with status $ac_status" >&5 | |
21397 | echo "$as_me: failed program was:" >&5 | |
21398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21399 | ||
21400 | ( exit $ac_status ) | |
21401 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21402 | See \`config.log' for more details." >&5 | |
21403 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21404 | See \`config.log' for more details." >&2;} | |
21405 | { (exit 1); exit 1; }; } | |
21406 | fi | |
ac1cb8d3 | 21407 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21408 | fi |
21409 | fi | |
21410 | rm -f conftest.val | |
21411 | else | |
21412 | ac_cv_sizeof_long_long=0 | |
21413 | fi | |
21414 | fi | |
21415 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
21416 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
21417 | cat >>confdefs.h <<_ACEOF | |
21418 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
21419 | _ACEOF | |
21420 | ||
21421 | ||
21422 | esac | |
21423 | ||
238ecede MW |
21424 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
21425 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
21426 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
21427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21428 | else | |
21429 | cat >conftest.$ac_ext <<_ACEOF | |
21430 | /* confdefs.h. */ | |
21431 | _ACEOF | |
21432 | cat confdefs.h >>conftest.$ac_ext | |
21433 | cat >>conftest.$ac_ext <<_ACEOF | |
21434 | /* end confdefs.h. */ | |
21435 | ||
83d8eb47 MW |
21436 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21437 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21438 | # error "fake wchar_t" |
21439 | #endif | |
21440 | #ifdef HAVE_WCHAR_H | |
21441 | # ifdef __CYGWIN__ | |
21442 | # include <stddef.h> | |
21443 | # endif | |
21444 | # include <wchar.h> | |
21445 | #endif | |
21446 | #ifdef HAVE_STDLIB_H | |
21447 | # include <stdlib.h> | |
21448 | #endif | |
21449 | #include <stdio.h> | |
21450 | ||
21451 | ||
21452 | ||
21453 | int | |
21454 | main () | |
21455 | { | |
21456 | if ((wchar_t *) 0) | |
21457 | return 0; | |
21458 | if (sizeof (wchar_t)) | |
21459 | return 0; | |
21460 | ; | |
21461 | return 0; | |
21462 | } | |
21463 | _ACEOF | |
21464 | rm -f conftest.$ac_objext | |
21465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21466 | (eval $ac_compile) 2>conftest.er1 | |
21467 | ac_status=$? | |
21468 | grep -v '^ *+' conftest.er1 >conftest.err | |
21469 | rm -f conftest.er1 | |
21470 | cat conftest.err >&5 | |
21471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21472 | (exit $ac_status); } && | |
c9a66001 | 21473 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21475 | (eval $ac_try) 2>&5 | |
21476 | ac_status=$? | |
21477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21478 | (exit $ac_status); }; } && | |
21479 | { ac_try='test -s conftest.$ac_objext' | |
21480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21481 | (eval $ac_try) 2>&5 | |
21482 | ac_status=$? | |
21483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21484 | (exit $ac_status); }; }; then | |
21485 | ac_cv_type_wchar_t=yes | |
21486 | else | |
21487 | echo "$as_me: failed program was:" >&5 | |
21488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21489 | ||
21490 | ac_cv_type_wchar_t=no | |
21491 | fi | |
21492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21493 | fi | |
21494 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
21495 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
21496 | ||
a848cd7e SC |
21497 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
21498 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 21499 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
21500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21501 | else | |
238ecede MW |
21502 | if test "$ac_cv_type_wchar_t" = yes; then |
21503 | # The cast to unsigned long works around a bug in the HP C Compiler | |
21504 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21505 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21506 | # This bug is HP SR number 8606223364. | |
21507 | if test "$cross_compiling" = yes; then | |
21508 | # Depending upon the size, compute the lo and hi bounds. | |
21509 | cat >conftest.$ac_ext <<_ACEOF | |
21510 | /* confdefs.h. */ | |
21511 | _ACEOF | |
21512 | cat confdefs.h >>conftest.$ac_ext | |
21513 | cat >>conftest.$ac_ext <<_ACEOF | |
21514 | /* end confdefs.h. */ | |
21515 | ||
83d8eb47 MW |
21516 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21517 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21518 | # error "fake wchar_t" |
21519 | #endif | |
21520 | #ifdef HAVE_WCHAR_H | |
21521 | # ifdef __CYGWIN__ | |
21522 | # include <stddef.h> | |
21523 | # endif | |
21524 | # include <wchar.h> | |
21525 | #endif | |
21526 | #ifdef HAVE_STDLIB_H | |
21527 | # include <stdlib.h> | |
21528 | #endif | |
21529 | #include <stdio.h> | |
21530 | ||
21531 | ||
21532 | ||
21533 | int | |
21534 | main () | |
21535 | { | |
21536 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
21537 | test_array [0] = 0 | |
21538 | ||
21539 | ; | |
21540 | return 0; | |
21541 | } | |
21542 | _ACEOF | |
21543 | rm -f conftest.$ac_objext | |
21544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21545 | (eval $ac_compile) 2>conftest.er1 | |
21546 | ac_status=$? | |
21547 | grep -v '^ *+' conftest.er1 >conftest.err | |
21548 | rm -f conftest.er1 | |
21549 | cat conftest.err >&5 | |
21550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21551 | (exit $ac_status); } && | |
c9a66001 | 21552 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21554 | (eval $ac_try) 2>&5 | |
21555 | ac_status=$? | |
21556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21557 | (exit $ac_status); }; } && | |
21558 | { ac_try='test -s conftest.$ac_objext' | |
21559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21560 | (eval $ac_try) 2>&5 | |
21561 | ac_status=$? | |
21562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21563 | (exit $ac_status); }; }; then | |
21564 | ac_lo=0 ac_mid=0 | |
21565 | while :; do | |
21566 | cat >conftest.$ac_ext <<_ACEOF | |
21567 | /* confdefs.h. */ | |
21568 | _ACEOF | |
21569 | cat confdefs.h >>conftest.$ac_ext | |
21570 | cat >>conftest.$ac_ext <<_ACEOF | |
21571 | /* end confdefs.h. */ | |
21572 | ||
83d8eb47 MW |
21573 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21574 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21575 | # error "fake wchar_t" |
21576 | #endif | |
21577 | #ifdef HAVE_WCHAR_H | |
21578 | # ifdef __CYGWIN__ | |
21579 | # include <stddef.h> | |
21580 | # endif | |
21581 | # include <wchar.h> | |
21582 | #endif | |
21583 | #ifdef HAVE_STDLIB_H | |
21584 | # include <stdlib.h> | |
21585 | #endif | |
21586 | #include <stdio.h> | |
21587 | ||
21588 | ||
21589 | ||
21590 | int | |
21591 | main () | |
21592 | { | |
21593 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
21594 | test_array [0] = 0 | |
21595 | ||
21596 | ; | |
21597 | return 0; | |
21598 | } | |
21599 | _ACEOF | |
21600 | rm -f conftest.$ac_objext | |
21601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21602 | (eval $ac_compile) 2>conftest.er1 | |
21603 | ac_status=$? | |
21604 | grep -v '^ *+' conftest.er1 >conftest.err | |
21605 | rm -f conftest.er1 | |
21606 | cat conftest.err >&5 | |
21607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21608 | (exit $ac_status); } && | |
c9a66001 | 21609 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21611 | (eval $ac_try) 2>&5 | |
21612 | ac_status=$? | |
21613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21614 | (exit $ac_status); }; } && | |
21615 | { ac_try='test -s conftest.$ac_objext' | |
21616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21617 | (eval $ac_try) 2>&5 | |
21618 | ac_status=$? | |
21619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21620 | (exit $ac_status); }; }; then | |
21621 | ac_hi=$ac_mid; break | |
21622 | else | |
21623 | echo "$as_me: failed program was:" >&5 | |
21624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21625 | ||
21626 | ac_lo=`expr $ac_mid + 1` | |
21627 | if test $ac_lo -le $ac_mid; then | |
21628 | ac_lo= ac_hi= | |
21629 | break | |
21630 | fi | |
21631 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21632 | fi | |
21633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21634 | done | |
21635 | else | |
21636 | echo "$as_me: failed program was:" >&5 | |
21637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21638 | ||
21639 | cat >conftest.$ac_ext <<_ACEOF | |
21640 | /* confdefs.h. */ | |
21641 | _ACEOF | |
21642 | cat confdefs.h >>conftest.$ac_ext | |
21643 | cat >>conftest.$ac_ext <<_ACEOF | |
21644 | /* end confdefs.h. */ | |
21645 | ||
83d8eb47 MW |
21646 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21647 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21648 | # error "fake wchar_t" |
21649 | #endif | |
21650 | #ifdef HAVE_WCHAR_H | |
21651 | # ifdef __CYGWIN__ | |
21652 | # include <stddef.h> | |
21653 | # endif | |
21654 | # include <wchar.h> | |
21655 | #endif | |
21656 | #ifdef HAVE_STDLIB_H | |
21657 | # include <stdlib.h> | |
21658 | #endif | |
21659 | #include <stdio.h> | |
21660 | ||
21661 | ||
21662 | ||
21663 | int | |
21664 | main () | |
21665 | { | |
21666 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
21667 | test_array [0] = 0 | |
21668 | ||
21669 | ; | |
21670 | return 0; | |
21671 | } | |
21672 | _ACEOF | |
21673 | rm -f conftest.$ac_objext | |
21674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21675 | (eval $ac_compile) 2>conftest.er1 | |
21676 | ac_status=$? | |
21677 | grep -v '^ *+' conftest.er1 >conftest.err | |
21678 | rm -f conftest.er1 | |
21679 | cat conftest.err >&5 | |
21680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21681 | (exit $ac_status); } && | |
c9a66001 | 21682 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21684 | (eval $ac_try) 2>&5 | |
21685 | ac_status=$? | |
21686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21687 | (exit $ac_status); }; } && | |
21688 | { ac_try='test -s conftest.$ac_objext' | |
21689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21690 | (eval $ac_try) 2>&5 | |
21691 | ac_status=$? | |
21692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21693 | (exit $ac_status); }; }; then | |
21694 | ac_hi=-1 ac_mid=-1 | |
21695 | while :; do | |
21696 | cat >conftest.$ac_ext <<_ACEOF | |
21697 | /* confdefs.h. */ | |
21698 | _ACEOF | |
21699 | cat confdefs.h >>conftest.$ac_ext | |
21700 | cat >>conftest.$ac_ext <<_ACEOF | |
21701 | /* end confdefs.h. */ | |
21702 | ||
83d8eb47 MW |
21703 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21704 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21705 | # error "fake wchar_t" |
21706 | #endif | |
21707 | #ifdef HAVE_WCHAR_H | |
21708 | # ifdef __CYGWIN__ | |
21709 | # include <stddef.h> | |
21710 | # endif | |
21711 | # include <wchar.h> | |
21712 | #endif | |
21713 | #ifdef HAVE_STDLIB_H | |
21714 | # include <stdlib.h> | |
21715 | #endif | |
21716 | #include <stdio.h> | |
21717 | ||
21718 | ||
21719 | ||
21720 | int | |
21721 | main () | |
21722 | { | |
21723 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
21724 | test_array [0] = 0 | |
21725 | ||
21726 | ; | |
21727 | return 0; | |
21728 | } | |
21729 | _ACEOF | |
21730 | rm -f conftest.$ac_objext | |
21731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21732 | (eval $ac_compile) 2>conftest.er1 | |
21733 | ac_status=$? | |
21734 | grep -v '^ *+' conftest.er1 >conftest.err | |
21735 | rm -f conftest.er1 | |
21736 | cat conftest.err >&5 | |
21737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21738 | (exit $ac_status); } && | |
c9a66001 | 21739 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21741 | (eval $ac_try) 2>&5 | |
21742 | ac_status=$? | |
21743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21744 | (exit $ac_status); }; } && | |
21745 | { ac_try='test -s conftest.$ac_objext' | |
21746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21747 | (eval $ac_try) 2>&5 | |
21748 | ac_status=$? | |
21749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21750 | (exit $ac_status); }; }; then | |
21751 | ac_lo=$ac_mid; break | |
21752 | else | |
21753 | echo "$as_me: failed program was:" >&5 | |
21754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21755 | ||
21756 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
21757 | if test $ac_mid -le $ac_hi; then | |
21758 | ac_lo= ac_hi= | |
21759 | break | |
21760 | fi | |
21761 | ac_mid=`expr 2 '*' $ac_mid` | |
21762 | fi | |
21763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21764 | done | |
21765 | else | |
21766 | echo "$as_me: failed program was:" >&5 | |
21767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21768 | ||
21769 | ac_lo= ac_hi= | |
21770 | fi | |
21771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21772 | fi | |
21773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21774 | # Binary search between lo and hi bounds. | |
21775 | while test "x$ac_lo" != "x$ac_hi"; do | |
21776 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21777 | cat >conftest.$ac_ext <<_ACEOF | |
21778 | /* confdefs.h. */ | |
21779 | _ACEOF | |
21780 | cat confdefs.h >>conftest.$ac_ext | |
21781 | cat >>conftest.$ac_ext <<_ACEOF | |
21782 | /* end confdefs.h. */ | |
21783 | ||
83d8eb47 MW |
21784 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21785 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21786 | # error "fake wchar_t" |
21787 | #endif | |
21788 | #ifdef HAVE_WCHAR_H | |
21789 | # ifdef __CYGWIN__ | |
21790 | # include <stddef.h> | |
21791 | # endif | |
21792 | # include <wchar.h> | |
21793 | #endif | |
21794 | #ifdef HAVE_STDLIB_H | |
21795 | # include <stdlib.h> | |
21796 | #endif | |
21797 | #include <stdio.h> | |
a848cd7e | 21798 | |
a848cd7e | 21799 | |
a848cd7e | 21800 | |
238ecede MW |
21801 | int |
21802 | main () | |
21803 | { | |
21804 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
21805 | test_array [0] = 0 | |
a848cd7e | 21806 | |
238ecede MW |
21807 | ; |
21808 | return 0; | |
21809 | } | |
21810 | _ACEOF | |
21811 | rm -f conftest.$ac_objext | |
21812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21813 | (eval $ac_compile) 2>conftest.er1 | |
21814 | ac_status=$? | |
21815 | grep -v '^ *+' conftest.er1 >conftest.err | |
21816 | rm -f conftest.er1 | |
21817 | cat conftest.err >&5 | |
21818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21819 | (exit $ac_status); } && | |
c9a66001 | 21820 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21822 | (eval $ac_try) 2>&5 | |
21823 | ac_status=$? | |
21824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21825 | (exit $ac_status); }; } && | |
21826 | { ac_try='test -s conftest.$ac_objext' | |
21827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21828 | (eval $ac_try) 2>&5 | |
21829 | ac_status=$? | |
21830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21831 | (exit $ac_status); }; }; then | |
21832 | ac_hi=$ac_mid | |
21833 | else | |
21834 | echo "$as_me: failed program was:" >&5 | |
21835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21836 | ||
21837 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21838 | fi | |
21839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21840 | done | |
21841 | case $ac_lo in | |
21842 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
21843 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
21844 | See \`config.log' for more details." >&5 | |
21845 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21846 | See \`config.log' for more details." >&2;} | |
21847 | { (exit 1); exit 1; }; } ;; | |
21848 | esac | |
21849 | else | |
21850 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
21851 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
21852 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 21853 | { (exit 1); exit 1; }; } |
a848cd7e SC |
21854 | else |
21855 | cat >conftest.$ac_ext <<_ACEOF | |
21856 | /* confdefs.h. */ | |
21857 | _ACEOF | |
21858 | cat confdefs.h >>conftest.$ac_ext | |
21859 | cat >>conftest.$ac_ext <<_ACEOF | |
21860 | /* end confdefs.h. */ | |
21861 | ||
83d8eb47 MW |
21862 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21863 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21864 | # error "fake wchar_t" |
21865 | #endif | |
21866 | #ifdef HAVE_WCHAR_H | |
21867 | # ifdef __CYGWIN__ | |
21868 | # include <stddef.h> | |
21869 | # endif | |
21870 | # include <wchar.h> | |
21871 | #endif | |
21872 | #ifdef HAVE_STDLIB_H | |
21873 | # include <stdlib.h> | |
21874 | #endif | |
21875 | #include <stdio.h> | |
21876 | ||
21877 | ||
21878 | ||
21879 | long longval () { return (long) (sizeof (wchar_t)); } | |
21880 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
21881 | #include <stdio.h> | |
21882 | #include <stdlib.h> | |
21883 | int | |
21884 | main () | |
21885 | { | |
a848cd7e | 21886 | |
238ecede MW |
21887 | FILE *f = fopen ("conftest.val", "w"); |
21888 | if (! f) | |
21889 | exit (1); | |
21890 | if (((long) (sizeof (wchar_t))) < 0) | |
21891 | { | |
21892 | long i = longval (); | |
21893 | if (i != ((long) (sizeof (wchar_t)))) | |
21894 | exit (1); | |
21895 | fprintf (f, "%ld\n", i); | |
21896 | } | |
21897 | else | |
21898 | { | |
21899 | unsigned long i = ulongval (); | |
21900 | if (i != ((long) (sizeof (wchar_t)))) | |
21901 | exit (1); | |
21902 | fprintf (f, "%lu\n", i); | |
21903 | } | |
21904 | exit (ferror (f) || fclose (f) != 0); | |
21905 | ||
21906 | ; | |
21907 | return 0; | |
21908 | } | |
a848cd7e SC |
21909 | _ACEOF |
21910 | rm -f conftest$ac_exeext | |
21911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21912 | (eval $ac_link) 2>&5 | |
21913 | ac_status=$? | |
21914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21915 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21917 | (eval $ac_try) 2>&5 | |
21918 | ac_status=$? | |
21919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21920 | (exit $ac_status); }; }; then | |
238ecede | 21921 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
21922 | else |
21923 | echo "$as_me: program exited with status $ac_status" >&5 | |
21924 | echo "$as_me: failed program was:" >&5 | |
21925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21926 | ||
21927 | ( exit $ac_status ) | |
238ecede MW |
21928 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
21929 | See \`config.log' for more details." >&5 | |
21930 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21931 | See \`config.log' for more details." >&2;} | |
21932 | { (exit 1); exit 1; }; } | |
a848cd7e | 21933 | fi |
ac1cb8d3 | 21934 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21935 | fi |
a848cd7e | 21936 | fi |
238ecede MW |
21937 | rm -f conftest.val |
21938 | else | |
21939 | ac_cv_sizeof_wchar_t=0 | |
21940 | fi | |
21941 | fi | |
21942 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
21943 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 21944 | cat >>confdefs.h <<_ACEOF |
238ecede | 21945 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
21946 | _ACEOF |
21947 | ||
21948 | ||
47a7e797 MW |
21949 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
21950 | wxUSE_WCHAR_T=yes | |
21951 | else | |
21952 | wxUSE_WCHAR_T=no | |
21953 | fi | |
238ecede | 21954 | |
ba3d13e1 VZ |
21955 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
21956 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
21957 | if test "${wx_cv_func_va_copy+set}" = set; then | |
21958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21959 | else | |
21960 | ||
21961 | cat >conftest.$ac_ext <<_ACEOF | |
21962 | ||
21963 | #include <stdarg.h> | |
21964 | void foo(char *f, ...) | |
21965 | { | |
21966 | va_list ap1, ap2; | |
21967 | va_start(ap1, f); | |
21968 | va_copy(ap2, ap1); | |
21969 | va_end(ap2); | |
21970 | va_end(ap1); | |
21971 | } | |
5886b072 VZ |
21972 | int main() |
21973 | { | |
b902e639 VZ |
21974 | foo("hi", 17); |
21975 | return 0; | |
5886b072 | 21976 | } |
ba3d13e1 VZ |
21977 | _ACEOF |
21978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21980 | (eval $ac_link) 2>conftest.er1 | |
21981 | ac_status=$? | |
21982 | grep -v '^ *+' conftest.er1 >conftest.err | |
21983 | rm -f conftest.er1 | |
21984 | cat conftest.err >&5 | |
21985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21986 | (exit $ac_status); } && | |
c9a66001 | 21987 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
21988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21989 | (eval $ac_try) 2>&5 | |
21990 | ac_status=$? | |
21991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21992 | (exit $ac_status); }; } && | |
21993 | { ac_try='test -s conftest$ac_exeext' | |
21994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21995 | (eval $ac_try) 2>&5 | |
21996 | ac_status=$? | |
21997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21998 | (exit $ac_status); }; }; then | |
21999 | wx_cv_func_va_copy=yes | |
22000 | else | |
22001 | echo "$as_me: failed program was:" >&5 | |
22002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22003 | ||
22004 | wx_cv_func_va_copy=no | |
22005 | ||
22006 | fi | |
22007 | rm -f conftest.err conftest.$ac_objext \ | |
22008 | conftest$ac_exeext conftest.$ac_ext | |
22009 | ||
22010 | ||
22011 | fi | |
22012 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
22013 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
22014 | ||
22015 | if test $wx_cv_func_va_copy = "yes"; then | |
22016 | cat >>confdefs.h <<\_ACEOF | |
22017 | #define HAVE_VA_COPY 1 | |
22018 | _ACEOF | |
22019 | ||
22020 | else | |
22021 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
22022 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
22023 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
22024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22025 | else | |
22026 | ||
22027 | if test "$cross_compiling" = yes; then | |
22028 | wx_cv_type_va_list_lvalue=yes | |
22029 | ||
22030 | else | |
22031 | cat >conftest.$ac_ext <<_ACEOF | |
22032 | ||
22033 | #include <stdarg.h> | |
22034 | int foo(char *f, ...) | |
22035 | { | |
22036 | va_list ap1, ap2; | |
22037 | va_start(ap1, f); | |
22038 | ap2 = ap1; | |
22039 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
22040 | return 1; | |
22041 | va_end(ap2); | |
22042 | va_end(ap1); | |
22043 | return 0; | |
22044 | } | |
22045 | int main() | |
22046 | { | |
22047 | return foo("hi", 17); | |
22048 | } | |
22049 | _ACEOF | |
22050 | rm -f conftest$ac_exeext | |
22051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22052 | (eval $ac_link) 2>&5 | |
22053 | ac_status=$? | |
22054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22055 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22057 | (eval $ac_try) 2>&5 | |
22058 | ac_status=$? | |
22059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22060 | (exit $ac_status); }; }; then | |
22061 | wx_cv_type_va_list_lvalue=yes | |
22062 | else | |
22063 | echo "$as_me: program exited with status $ac_status" >&5 | |
22064 | echo "$as_me: failed program was:" >&5 | |
22065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22066 | ||
22067 | ( exit $ac_status ) | |
22068 | wx_cv_type_va_list_lvalue=no | |
22069 | fi | |
22070 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22071 | fi | |
22072 | ||
22073 | ||
22074 | fi | |
22075 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
22076 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
22077 | ||
22078 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
22079 | cat >>confdefs.h <<\_ACEOF | |
22080 | #define VA_LIST_IS_ARRAY 1 | |
22081 | _ACEOF | |
22082 | ||
22083 | fi | |
22084 | fi | |
22085 | ||
a848cd7e SC |
22086 | # Check whether --enable-largefile or --disable-largefile was given. |
22087 | if test "${enable_largefile+set}" = set; then | |
22088 | enableval="$enable_largefile" | |
22089 | ||
22090 | fi; | |
22091 | if test "$enable_largefile" != no; then | |
22092 | wx_largefile=no | |
22093 | ||
22094 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
22095 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
22096 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
22097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22098 | else | |
22099 | ||
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 | #define _FILE_OFFSET_BITS 64 | |
22107 | #include <sys/types.h> | |
22108 | int | |
22109 | main () | |
22110 | { | |
22111 | typedef struct { | |
22112 | unsigned int field: sizeof(off_t) == 8; | |
22113 | } wxlf; | |
22114 | ||
22115 | ; | |
22116 | return 0; | |
22117 | } | |
22118 | _ACEOF | |
22119 | rm -f conftest.$ac_objext | |
22120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22121 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22122 | ac_status=$? |
ac1cb8d3 VS |
22123 | grep -v '^ *+' conftest.er1 >conftest.err |
22124 | rm -f conftest.er1 | |
22125 | cat conftest.err >&5 | |
a848cd7e SC |
22126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22127 | (exit $ac_status); } && | |
c9a66001 | 22128 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22130 | (eval $ac_try) 2>&5 | |
22131 | ac_status=$? | |
22132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22133 | (exit $ac_status); }; } && | |
22134 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22136 | (eval $ac_try) 2>&5 | |
22137 | ac_status=$? | |
22138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22139 | (exit $ac_status); }; }; then | |
22140 | ac_cv_sys_file_offset_bits=64 | |
22141 | else | |
22142 | echo "$as_me: failed program was:" >&5 | |
22143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22144 | ||
22145 | ac_cv_sys_file_offset_bits=no | |
22146 | fi | |
ac1cb8d3 | 22147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22148 | |
22149 | ||
22150 | fi | |
22151 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
22152 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
22153 | ||
22154 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
22155 | wx_largefile=yes | |
22156 | cat >>confdefs.h <<_ACEOF | |
22157 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
22158 | _ACEOF | |
22159 | ||
22160 | fi | |
22161 | ||
22162 | if test "x$wx_largefile" != "xyes"; then | |
22163 | ||
22164 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
22165 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
22166 | if test "${ac_cv_sys_large_files+set}" = set; then | |
22167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22168 | else | |
22169 | ||
22170 | cat >conftest.$ac_ext <<_ACEOF | |
22171 | /* confdefs.h. */ | |
22172 | _ACEOF | |
22173 | cat confdefs.h >>conftest.$ac_ext | |
22174 | cat >>conftest.$ac_ext <<_ACEOF | |
22175 | /* end confdefs.h. */ | |
22176 | #define _LARGE_FILES 1 | |
22177 | #include <sys/types.h> | |
22178 | int | |
22179 | main () | |
22180 | { | |
22181 | typedef struct { | |
22182 | unsigned int field: sizeof(off_t) == 8; | |
22183 | } wxlf; | |
22184 | ||
22185 | ; | |
22186 | return 0; | |
22187 | } | |
22188 | _ACEOF | |
22189 | rm -f conftest.$ac_objext | |
22190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22191 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22192 | ac_status=$? |
ac1cb8d3 VS |
22193 | grep -v '^ *+' conftest.er1 >conftest.err |
22194 | rm -f conftest.er1 | |
22195 | cat conftest.err >&5 | |
a848cd7e SC |
22196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22197 | (exit $ac_status); } && | |
c9a66001 | 22198 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22200 | (eval $ac_try) 2>&5 | |
22201 | ac_status=$? | |
22202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22203 | (exit $ac_status); }; } && | |
22204 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22206 | (eval $ac_try) 2>&5 | |
22207 | ac_status=$? | |
22208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22209 | (exit $ac_status); }; }; then | |
22210 | ac_cv_sys_large_files=1 | |
22211 | else | |
22212 | echo "$as_me: failed program was:" >&5 | |
22213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22214 | ||
22215 | ac_cv_sys_large_files=no | |
22216 | fi | |
ac1cb8d3 | 22217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22218 | |
22219 | ||
22220 | fi | |
22221 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
22222 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
22223 | ||
22224 | if test "$ac_cv_sys_large_files" != no; then | |
22225 | wx_largefile=yes | |
22226 | cat >>confdefs.h <<_ACEOF | |
22227 | #define _LARGE_FILES $ac_cv_sys_large_files | |
22228 | _ACEOF | |
22229 | ||
22230 | fi | |
22231 | ||
22232 | fi | |
22233 | ||
22234 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
22235 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
22236 | if test "x$wx_largefile" = "xyes"; then | |
22237 | cat >>confdefs.h <<\_ACEOF | |
22238 | #define HAVE_LARGEFILE_SUPPORT 1 | |
22239 | _ACEOF | |
22240 | ||
22241 | fi | |
22242 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
22243 | echo "${ECHO_T}$wx_largefile" >&6 | |
22244 | fi | |
22245 | ||
5b674b9d DE |
22246 | |
22247 | if test "x$wx_largefile" = "xyes"; then | |
22248 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
5ff751d6 | 22249 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" |
00421666 MW |
22250 | |
22251 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
22252 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
22253 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
22254 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
22255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22256 | else | |
22257 | ||
00421666 MW |
22258 | cat >conftest.$ac_ext <<_ACEOF |
22259 | /* confdefs.h. */ | |
22260 | _ACEOF | |
22261 | cat confdefs.h >>conftest.$ac_ext | |
22262 | cat >>conftest.$ac_ext <<_ACEOF | |
22263 | /* end confdefs.h. */ | |
22264 | ||
22265 | int | |
22266 | main () | |
22267 | { | |
22268 | ||
22269 | #ifndef __STDC_EXT__ | |
22270 | choke me | |
22271 | #endif | |
22272 | ||
22273 | ; | |
22274 | return 0; | |
22275 | } | |
22276 | _ACEOF | |
22277 | rm -f conftest.$ac_objext | |
22278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22279 | (eval $ac_compile) 2>conftest.er1 | |
22280 | ac_status=$? | |
22281 | grep -v '^ *+' conftest.er1 >conftest.err | |
22282 | rm -f conftest.er1 | |
22283 | cat conftest.err >&5 | |
22284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22285 | (exit $ac_status); } && | |
c9a66001 | 22286 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
00421666 MW |
22287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22288 | (eval $ac_try) 2>&5 | |
22289 | ac_status=$? | |
22290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22291 | (exit $ac_status); }; } && | |
22292 | { ac_try='test -s conftest.$ac_objext' | |
22293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22294 | (eval $ac_try) 2>&5 | |
22295 | ac_status=$? | |
22296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22297 | (exit $ac_status); }; }; then | |
22298 | wx_cv_STDC_EXT_required=no | |
22299 | else | |
22300 | echo "$as_me: failed program was:" >&5 | |
22301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22302 | ||
22303 | wx_cv_STDC_EXT_required=yes | |
22304 | ||
22305 | fi | |
22306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
00421666 MW |
22307 | |
22308 | ||
22309 | fi | |
22310 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
22311 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
22312 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
5ff751d6 | 22313 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" |
00421666 MW |
22314 | fi |
22315 | fi | |
5b674b9d | 22316 | else |
5ff751d6 | 22317 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES" |
5b674b9d DE |
22318 | fi |
22319 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
22320 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
22321 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
22322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22323 | else | |
22324 | while :; do | |
22325 | ac_cv_sys_largefile_source=no | |
22326 | cat >conftest.$ac_ext <<_ACEOF | |
22327 | /* confdefs.h. */ | |
22328 | _ACEOF | |
22329 | cat confdefs.h >>conftest.$ac_ext | |
22330 | cat >>conftest.$ac_ext <<_ACEOF | |
22331 | /* end confdefs.h. */ | |
22332 | #include <stdio.h> | |
22333 | int | |
22334 | main () | |
22335 | { | |
22336 | return !fseeko; | |
22337 | ; | |
22338 | return 0; | |
22339 | } | |
22340 | _ACEOF | |
22341 | rm -f conftest.$ac_objext | |
22342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22343 | (eval $ac_compile) 2>conftest.er1 | |
22344 | ac_status=$? | |
22345 | grep -v '^ *+' conftest.er1 >conftest.err | |
22346 | rm -f conftest.er1 | |
22347 | cat conftest.err >&5 | |
22348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22349 | (exit $ac_status); } && | |
c9a66001 | 22350 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
22351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22352 | (eval $ac_try) 2>&5 | |
22353 | ac_status=$? | |
22354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22355 | (exit $ac_status); }; } && | |
22356 | { ac_try='test -s conftest.$ac_objext' | |
22357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22358 | (eval $ac_try) 2>&5 | |
22359 | ac_status=$? | |
22360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22361 | (exit $ac_status); }; }; then | |
22362 | break | |
22363 | else | |
22364 | echo "$as_me: failed program was:" >&5 | |
22365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22366 | ||
22367 | fi | |
22368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22369 | cat >conftest.$ac_ext <<_ACEOF | |
22370 | /* confdefs.h. */ | |
22371 | _ACEOF | |
22372 | cat confdefs.h >>conftest.$ac_ext | |
22373 | cat >>conftest.$ac_ext <<_ACEOF | |
22374 | /* end confdefs.h. */ | |
22375 | #define _LARGEFILE_SOURCE 1 | |
22376 | #include <stdio.h> | |
22377 | int | |
22378 | main () | |
22379 | { | |
22380 | return !fseeko; | |
22381 | ; | |
22382 | return 0; | |
22383 | } | |
22384 | _ACEOF | |
22385 | rm -f conftest.$ac_objext | |
22386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22387 | (eval $ac_compile) 2>conftest.er1 | |
22388 | ac_status=$? | |
22389 | grep -v '^ *+' conftest.er1 >conftest.err | |
22390 | rm -f conftest.er1 | |
22391 | cat conftest.err >&5 | |
22392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22393 | (exit $ac_status); } && | |
c9a66001 | 22394 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
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); }; } && | |
22400 | { ac_try='test -s conftest.$ac_objext' | |
22401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22402 | (eval $ac_try) 2>&5 | |
22403 | ac_status=$? | |
22404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22405 | (exit $ac_status); }; }; then | |
22406 | ac_cv_sys_largefile_source=1; break | |
22407 | else | |
22408 | echo "$as_me: failed program was:" >&5 | |
22409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22410 | ||
22411 | fi | |
22412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22413 | break | |
22414 | done | |
22415 | fi | |
22416 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
22417 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
22418 | if test "$ac_cv_sys_largefile_source" != no; then | |
22419 | ||
22420 | cat >>confdefs.h <<_ACEOF | |
22421 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
22422 | _ACEOF | |
22423 | ||
22424 | fi | |
22425 | rm -f conftest* | |
22426 | ||
22427 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
22428 | # in glibc 2.1.3, but that breaks too many other things. | |
22429 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
22430 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
22431 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
22432 | if test "${ac_cv_func_fseeko+set}" = set; then | |
22433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22434 | else | |
22435 | cat >conftest.$ac_ext <<_ACEOF | |
22436 | /* confdefs.h. */ | |
22437 | _ACEOF | |
22438 | cat confdefs.h >>conftest.$ac_ext | |
22439 | cat >>conftest.$ac_ext <<_ACEOF | |
22440 | /* end confdefs.h. */ | |
22441 | #include <stdio.h> | |
22442 | int | |
22443 | main () | |
22444 | { | |
22445 | return fseeko && fseeko (stdin, 0, 0); | |
22446 | ; | |
22447 | return 0; | |
22448 | } | |
22449 | _ACEOF | |
22450 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22452 | (eval $ac_link) 2>conftest.er1 | |
22453 | ac_status=$? | |
22454 | grep -v '^ *+' conftest.er1 >conftest.err | |
22455 | rm -f conftest.er1 | |
22456 | cat conftest.err >&5 | |
22457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22458 | (exit $ac_status); } && | |
c9a66001 | 22459 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
22460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22461 | (eval $ac_try) 2>&5 | |
22462 | ac_status=$? | |
22463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22464 | (exit $ac_status); }; } && | |
22465 | { ac_try='test -s conftest$ac_exeext' | |
22466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22467 | (eval $ac_try) 2>&5 | |
22468 | ac_status=$? | |
22469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22470 | (exit $ac_status); }; }; then | |
22471 | ac_cv_func_fseeko=yes | |
22472 | else | |
22473 | echo "$as_me: failed program was:" >&5 | |
22474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22475 | ||
22476 | ac_cv_func_fseeko=no | |
22477 | fi | |
22478 | rm -f conftest.err conftest.$ac_objext \ | |
22479 | conftest$ac_exeext conftest.$ac_ext | |
22480 | fi | |
22481 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
22482 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
22483 | if test $ac_cv_func_fseeko = yes; then | |
22484 | ||
22485 | cat >>confdefs.h <<\_ACEOF | |
22486 | #define HAVE_FSEEKO 1 | |
22487 | _ACEOF | |
22488 | ||
22489 | fi | |
22490 | ||
5b674b9d | 22491 | if test "$ac_cv_sys_largefile_source" != no; then |
5ff751d6 | 22492 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" |
a848cd7e | 22493 | fi |
a848cd7e SC |
22494 | fi |
22495 | ||
22496 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
22497 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
22498 | if test "${ac_cv_c_bigendian+set}" = set; then | |
22499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22500 | else | |
22501 | ac_cv_c_bigendian=unknown | |
22502 | # See if sys/param.h defines the BYTE_ORDER macro. | |
22503 | cat >conftest.$ac_ext <<_ACEOF | |
22504 | /* confdefs.h. */ | |
22505 | _ACEOF | |
22506 | cat confdefs.h >>conftest.$ac_ext | |
22507 | cat >>conftest.$ac_ext <<_ACEOF | |
22508 | /* end confdefs.h. */ | |
22509 | #include <sys/types.h> | |
22510 | #include <sys/param.h> | |
22511 | int | |
22512 | main () | |
22513 | { | |
22514 | ||
22515 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
22516 | bogus endian macros | |
22517 | #endif | |
22518 | ; | |
22519 | return 0; | |
22520 | } | |
22521 | _ACEOF | |
22522 | rm -f conftest.$ac_objext | |
22523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22524 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22525 | ac_status=$? |
ac1cb8d3 VS |
22526 | grep -v '^ *+' conftest.er1 >conftest.err |
22527 | rm -f conftest.er1 | |
22528 | cat conftest.err >&5 | |
a848cd7e SC |
22529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22530 | (exit $ac_status); } && | |
c9a66001 | 22531 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22533 | (eval $ac_try) 2>&5 | |
22534 | ac_status=$? | |
22535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22536 | (exit $ac_status); }; } && | |
22537 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22539 | (eval $ac_try) 2>&5 | |
22540 | ac_status=$? | |
22541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22542 | (exit $ac_status); }; }; then | |
22543 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
22544 | cat >conftest.$ac_ext <<_ACEOF | |
22545 | /* confdefs.h. */ | |
22546 | _ACEOF | |
22547 | cat confdefs.h >>conftest.$ac_ext | |
22548 | cat >>conftest.$ac_ext <<_ACEOF | |
22549 | /* end confdefs.h. */ | |
22550 | #include <sys/types.h> | |
22551 | #include <sys/param.h> | |
22552 | int | |
22553 | main () | |
22554 | { | |
22555 | ||
22556 | #if BYTE_ORDER != BIG_ENDIAN | |
22557 | not big endian | |
22558 | #endif | |
22559 | ; | |
22560 | return 0; | |
22561 | } | |
22562 | _ACEOF | |
22563 | rm -f conftest.$ac_objext | |
22564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22565 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22566 | ac_status=$? |
ac1cb8d3 VS |
22567 | grep -v '^ *+' conftest.er1 >conftest.err |
22568 | rm -f conftest.er1 | |
22569 | cat conftest.err >&5 | |
a848cd7e SC |
22570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22571 | (exit $ac_status); } && | |
c9a66001 | 22572 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22574 | (eval $ac_try) 2>&5 | |
22575 | ac_status=$? | |
22576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22577 | (exit $ac_status); }; } && | |
22578 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22580 | (eval $ac_try) 2>&5 | |
22581 | ac_status=$? | |
22582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22583 | (exit $ac_status); }; }; then | |
22584 | ac_cv_c_bigendian=yes | |
22585 | else | |
22586 | echo "$as_me: failed program was:" >&5 | |
22587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22588 | ||
22589 | ac_cv_c_bigendian=no | |
22590 | fi | |
ac1cb8d3 | 22591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22592 | else |
22593 | echo "$as_me: failed program was:" >&5 | |
22594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22595 | ||
22596 | fi | |
ac1cb8d3 | 22597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22598 | if test $ac_cv_c_bigendian = unknown; then |
22599 | if test "$cross_compiling" = yes; then | |
22600 | ac_cv_c_bigendian=unknown | |
22601 | else | |
22602 | cat >conftest.$ac_ext <<_ACEOF | |
22603 | /* confdefs.h. */ | |
22604 | _ACEOF | |
22605 | cat confdefs.h >>conftest.$ac_ext | |
22606 | cat >>conftest.$ac_ext <<_ACEOF | |
22607 | /* end confdefs.h. */ | |
22608 | main () { | |
22609 | /* Are we little or big endian? From Harbison&Steele. */ | |
22610 | union | |
22611 | { | |
22612 | long l; | |
22613 | char c[sizeof (long)]; | |
22614 | } u; | |
22615 | u.l = 1; | |
22616 | exit (u.c[sizeof (long) - 1] == 1); | |
22617 | } | |
22618 | _ACEOF | |
22619 | rm -f conftest$ac_exeext | |
22620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22621 | (eval $ac_link) 2>&5 | |
22622 | ac_status=$? | |
22623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22624 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22626 | (eval $ac_try) 2>&5 | |
22627 | ac_status=$? | |
22628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22629 | (exit $ac_status); }; }; then | |
22630 | ac_cv_c_bigendian=no | |
22631 | else | |
22632 | echo "$as_me: program exited with status $ac_status" >&5 | |
22633 | echo "$as_me: failed program was:" >&5 | |
22634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22635 | ||
22636 | ( exit $ac_status ) | |
22637 | ac_cv_c_bigendian=yes | |
22638 | fi | |
ac1cb8d3 | 22639 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22640 | fi |
22641 | fi | |
22642 | fi | |
22643 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
22644 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
22645 | if test $ac_cv_c_bigendian = unknown; then | |
22646 | { 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 | |
22647 | 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;} | |
22648 | fi | |
22649 | if test $ac_cv_c_bigendian = yes; then | |
22650 | cat >>confdefs.h <<\_ACEOF | |
22651 | #define WORDS_BIGENDIAN 1 | |
22652 | _ACEOF | |
22653 | ||
22654 | fi | |
22655 | ||
22656 | ||
a848cd7e SC |
22657 | |
22658 | ||
22659 | ||
22660 | ac_ext=cc | |
22661 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22662 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22663 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22664 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22665 | ||
22666 | ||
22667 | ||
22668 | for ac_header in iostream | |
22669 | do | |
22670 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22671 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22672 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22673 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22674 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22676 | fi | |
22677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22678 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22679 | else | |
22680 | # Is the header compilable? | |
22681 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22682 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22683 | cat >conftest.$ac_ext <<_ACEOF | |
22684 | /* confdefs.h. */ | |
22685 | _ACEOF | |
22686 | cat confdefs.h >>conftest.$ac_ext | |
22687 | cat >>conftest.$ac_ext <<_ACEOF | |
22688 | /* end confdefs.h. */ | |
22689 | $ac_includes_default | |
22690 | #include <$ac_header> | |
22691 | _ACEOF | |
22692 | rm -f conftest.$ac_objext | |
22693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22694 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22695 | ac_status=$? |
ac1cb8d3 VS |
22696 | grep -v '^ *+' conftest.er1 >conftest.err |
22697 | rm -f conftest.er1 | |
22698 | cat conftest.err >&5 | |
a848cd7e SC |
22699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22700 | (exit $ac_status); } && | |
c9a66001 | 22701 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22703 | (eval $ac_try) 2>&5 | |
22704 | ac_status=$? | |
22705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22706 | (exit $ac_status); }; } && | |
22707 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22709 | (eval $ac_try) 2>&5 | |
22710 | ac_status=$? | |
22711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22712 | (exit $ac_status); }; }; then | |
22713 | ac_header_compiler=yes | |
22714 | else | |
22715 | echo "$as_me: failed program was:" >&5 | |
22716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22717 | ||
22718 | ac_header_compiler=no | |
22719 | fi | |
ac1cb8d3 | 22720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22721 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22722 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22723 | ||
22724 | # Is the header present? | |
22725 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22726 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22727 | cat >conftest.$ac_ext <<_ACEOF | |
22728 | /* confdefs.h. */ | |
22729 | _ACEOF | |
22730 | cat confdefs.h >>conftest.$ac_ext | |
22731 | cat >>conftest.$ac_ext <<_ACEOF | |
22732 | /* end confdefs.h. */ | |
22733 | #include <$ac_header> | |
22734 | _ACEOF | |
22735 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22736 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22737 | ac_status=$? | |
22738 | grep -v '^ *+' conftest.er1 >conftest.err | |
22739 | rm -f conftest.er1 | |
22740 | cat conftest.err >&5 | |
22741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22742 | (exit $ac_status); } >/dev/null; then | |
22743 | if test -s conftest.err; then | |
22744 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22745 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22746 | else |
22747 | ac_cpp_err= | |
22748 | fi | |
22749 | else | |
22750 | ac_cpp_err=yes | |
22751 | fi | |
22752 | if test -z "$ac_cpp_err"; then | |
22753 | ac_header_preproc=yes | |
22754 | else | |
22755 | echo "$as_me: failed program was:" >&5 | |
22756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22757 | ||
22758 | ac_header_preproc=no | |
22759 | fi | |
22760 | rm -f conftest.err conftest.$ac_ext | |
22761 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22762 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22763 | ||
22764 | # So? What about this header? | |
ac1cb8d3 VS |
22765 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22766 | yes:no: ) | |
a848cd7e SC |
22767 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22768 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22769 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22770 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22771 | ac_header_preproc=yes | |
a848cd7e | 22772 | ;; |
ac1cb8d3 | 22773 | no:yes:* ) |
a848cd7e SC |
22774 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22775 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22776 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22777 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22778 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22779 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22780 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22781 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22782 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22783 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22784 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22785 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22786 | ( |
22787 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22788 | ## ----------------------------------------- ## |
22789 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22790 | ## ----------------------------------------- ## | |
a848cd7e SC |
22791 | _ASBOX |
22792 | ) | | |
22793 | sed "s/^/$as_me: WARNING: /" >&2 | |
22794 | ;; | |
22795 | esac | |
22796 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22797 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22798 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22800 | else | |
ac1cb8d3 | 22801 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22802 | fi |
22803 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22804 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22805 | ||
22806 | fi | |
22807 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22808 | cat >>confdefs.h <<_ACEOF | |
22809 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22810 | _ACEOF | |
22811 | ||
22812 | fi | |
22813 | ||
22814 | done | |
22815 | ||
22816 | ||
22817 | if test "$ac_cv_header_iostream" = "yes" ; then | |
22818 | : | |
22819 | else | |
22820 | cat >>confdefs.h <<\_ACEOF | |
22821 | #define wxUSE_IOSTREAMH 1 | |
22822 | _ACEOF | |
22823 | ||
22824 | fi | |
22825 | ||
5d7b7554 VZ |
22826 | ac_ext=cc |
22827 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22828 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22829 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22830 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22831 | |
22832 | ||
22833 | ||
22834 | ||
22835 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
22836 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
22837 | if test "${wx_cv_cpp_bool+set}" = set; then | |
22838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22839 | else | |
22840 | ||
22841 | ||
22842 | ||
22843 | ac_ext=cc | |
22844 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22845 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22846 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22847 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22848 | ||
22849 | ||
22850 | cat >conftest.$ac_ext <<_ACEOF | |
22851 | /* confdefs.h. */ | |
22852 | _ACEOF | |
22853 | cat confdefs.h >>conftest.$ac_ext | |
22854 | cat >>conftest.$ac_ext <<_ACEOF | |
22855 | /* end confdefs.h. */ | |
22856 | ||
22857 | ||
22858 | int | |
22859 | main () | |
22860 | { | |
22861 | ||
22862 | bool b = true; | |
22863 | ||
22864 | return 0; | |
22865 | ||
22866 | ; | |
22867 | return 0; | |
22868 | } | |
22869 | _ACEOF | |
22870 | rm -f conftest.$ac_objext | |
22871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22872 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22873 | ac_status=$? |
ac1cb8d3 VS |
22874 | grep -v '^ *+' conftest.er1 >conftest.err |
22875 | rm -f conftest.er1 | |
22876 | cat conftest.err >&5 | |
a848cd7e SC |
22877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22878 | (exit $ac_status); } && | |
c9a66001 | 22879 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22881 | (eval $ac_try) 2>&5 | |
22882 | ac_status=$? | |
22883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22884 | (exit $ac_status); }; } && | |
22885 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22887 | (eval $ac_try) 2>&5 | |
22888 | ac_status=$? | |
22889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22890 | (exit $ac_status); }; }; then | |
22891 | ||
22892 | wx_cv_cpp_bool=yes | |
22893 | ||
22894 | else | |
22895 | echo "$as_me: failed program was:" >&5 | |
22896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22897 | ||
22898 | ||
22899 | wx_cv_cpp_bool=no | |
22900 | ||
22901 | ||
22902 | fi | |
ac1cb8d3 | 22903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22904 | |
5d7b7554 VZ |
22905 | ac_ext=cc |
22906 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22907 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22908 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22909 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22910 | |
22911 | ||
22912 | fi | |
22913 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
22914 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
22915 | ||
22916 | if test "$wx_cv_cpp_bool" = "yes"; then | |
22917 | cat >>confdefs.h <<\_ACEOF | |
22918 | #define HAVE_BOOL 1 | |
22919 | _ACEOF | |
22920 | ||
22921 | fi | |
22922 | ||
22923 | ||
22924 | ||
22925 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
22926 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
22927 | if test "${wx_cv_explicit+set}" = set; then | |
22928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22929 | else | |
22930 | ||
22931 | ||
22932 | ||
22933 | ac_ext=cc | |
22934 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22935 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22936 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22937 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22938 | ||
22939 | ||
22940 | cat >conftest.$ac_ext <<_ACEOF | |
22941 | /* confdefs.h. */ | |
22942 | _ACEOF | |
22943 | cat confdefs.h >>conftest.$ac_ext | |
22944 | cat >>conftest.$ac_ext <<_ACEOF | |
22945 | /* end confdefs.h. */ | |
22946 | ||
22947 | class Foo { public: explicit Foo(int) {} }; | |
22948 | ||
22949 | int | |
22950 | main () | |
22951 | { | |
22952 | ||
22953 | return 0; | |
22954 | ||
22955 | ; | |
22956 | return 0; | |
22957 | } | |
22958 | _ACEOF | |
22959 | rm -f conftest.$ac_objext | |
22960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22961 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22962 | ac_status=$? |
ac1cb8d3 VS |
22963 | grep -v '^ *+' conftest.er1 >conftest.err |
22964 | rm -f conftest.er1 | |
22965 | cat conftest.err >&5 | |
a848cd7e SC |
22966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22967 | (exit $ac_status); } && | |
c9a66001 | 22968 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22970 | (eval $ac_try) 2>&5 | |
22971 | ac_status=$? | |
22972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22973 | (exit $ac_status); }; } && | |
22974 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22976 | (eval $ac_try) 2>&5 | |
22977 | ac_status=$? | |
22978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22979 | (exit $ac_status); }; }; then | |
22980 | ||
22981 | cat >conftest.$ac_ext <<_ACEOF | |
22982 | /* confdefs.h. */ | |
22983 | _ACEOF | |
22984 | cat confdefs.h >>conftest.$ac_ext | |
22985 | cat >>conftest.$ac_ext <<_ACEOF | |
22986 | /* end confdefs.h. */ | |
22987 | ||
22988 | class Foo { public: explicit Foo(int) {} }; | |
22989 | static void TakeFoo(const Foo& foo) { } | |
22990 | ||
22991 | int | |
22992 | main () | |
22993 | { | |
22994 | ||
22995 | TakeFoo(17); | |
22996 | return 0; | |
22997 | ||
22998 | ; | |
22999 | return 0; | |
23000 | } | |
23001 | _ACEOF | |
23002 | rm -f conftest.$ac_objext | |
23003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23004 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23005 | ac_status=$? |
ac1cb8d3 VS |
23006 | grep -v '^ *+' conftest.er1 >conftest.err |
23007 | rm -f conftest.er1 | |
23008 | cat conftest.err >&5 | |
a848cd7e SC |
23009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23010 | (exit $ac_status); } && | |
c9a66001 | 23011 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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' | |
a848cd7e SC |
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 | wx_cv_explicit=no | |
23024 | else | |
23025 | echo "$as_me: failed program was:" >&5 | |
23026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23027 | ||
23028 | wx_cv_explicit=yes | |
23029 | ||
23030 | fi | |
ac1cb8d3 | 23031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23032 | |
23033 | else | |
23034 | echo "$as_me: failed program was:" >&5 | |
23035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23036 | ||
23037 | wx_cv_explicit=no | |
23038 | ||
23039 | fi | |
ac1cb8d3 | 23040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 23041 | |
5d7b7554 VZ |
23042 | ac_ext=cc |
23043 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23044 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23045 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23046 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23047 | |
23048 | ||
23049 | fi | |
23050 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
23051 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
23052 | ||
23053 | if test "$wx_cv_explicit" = "yes"; then | |
23054 | cat >>confdefs.h <<\_ACEOF | |
23055 | #define HAVE_EXPLICIT 1 | |
23056 | _ACEOF | |
23057 | ||
23058 | fi | |
23059 | ||
23060 | ||
23061 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
23062 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
23063 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
23064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23065 | else | |
23066 | ||
23067 | ||
23068 | ac_ext=cc | |
23069 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23070 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23071 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23072 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23073 | ||
23074 | cat >conftest.$ac_ext <<_ACEOF | |
23075 | /* confdefs.h. */ | |
23076 | _ACEOF | |
23077 | cat confdefs.h >>conftest.$ac_ext | |
23078 | cat >>conftest.$ac_ext <<_ACEOF | |
23079 | /* end confdefs.h. */ | |
23080 | ||
23081 | int | |
23082 | main () | |
23083 | { | |
23084 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
23085 | ; | |
23086 | return 0; | |
23087 | } | |
23088 | _ACEOF | |
23089 | rm -f conftest.$ac_objext | |
23090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23091 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23092 | ac_status=$? |
ac1cb8d3 VS |
23093 | grep -v '^ *+' conftest.er1 >conftest.err |
23094 | rm -f conftest.er1 | |
23095 | cat conftest.err >&5 | |
a848cd7e SC |
23096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23097 | (exit $ac_status); } && | |
c9a66001 | 23098 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23100 | (eval $ac_try) 2>&5 | |
23101 | ac_status=$? | |
23102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23103 | (exit $ac_status); }; } && | |
23104 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23106 | (eval $ac_try) 2>&5 | |
23107 | ac_status=$? | |
23108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23109 | (exit $ac_status); }; }; then | |
23110 | ac_cv_cxx_const_cast=yes | |
23111 | else | |
23112 | echo "$as_me: failed program was:" >&5 | |
23113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23114 | ||
23115 | ac_cv_cxx_const_cast=no | |
23116 | fi | |
ac1cb8d3 | 23117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
23118 | ac_ext=cc |
23119 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23120 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23121 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23122 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23123 | |
23124 | ||
23125 | fi | |
23126 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
23127 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
23128 | if test "$ac_cv_cxx_const_cast" = yes; then | |
23129 | ||
23130 | cat >>confdefs.h <<\_ACEOF | |
23131 | #define HAVE_CONST_CAST | |
23132 | _ACEOF | |
23133 | ||
23134 | fi | |
23135 | ||
7714864e RL |
23136 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
23137 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
23138 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
23139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23140 | else | |
23141 | ||
23142 | ||
23143 | ac_ext=cc | |
23144 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23145 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23146 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23147 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23148 | ||
23149 | cat >conftest.$ac_ext <<_ACEOF | |
23150 | /* confdefs.h. */ | |
23151 | _ACEOF | |
23152 | cat confdefs.h >>conftest.$ac_ext | |
23153 | cat >>conftest.$ac_ext <<_ACEOF | |
23154 | /* end confdefs.h. */ | |
23155 | #include <typeinfo> | |
23156 | class Base { public : Base () {} virtual void f () = 0;}; | |
23157 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
23158 | class Unrelated { public : Unrelated () {} }; | |
23159 | int g (Unrelated&) { return 0; } | |
23160 | int | |
23161 | main () | |
23162 | { | |
23163 | ||
23164 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
23165 | ; | |
23166 | return 0; | |
23167 | } | |
23168 | _ACEOF | |
23169 | rm -f conftest.$ac_objext | |
23170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23171 | (eval $ac_compile) 2>conftest.er1 | |
23172 | ac_status=$? | |
23173 | grep -v '^ *+' conftest.er1 >conftest.err | |
23174 | rm -f conftest.er1 | |
23175 | cat conftest.err >&5 | |
23176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23177 | (exit $ac_status); } && | |
c9a66001 | 23178 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
23179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23180 | (eval $ac_try) 2>&5 | |
23181 | ac_status=$? | |
23182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23183 | (exit $ac_status); }; } && | |
23184 | { ac_try='test -s conftest.$ac_objext' | |
23185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23186 | (eval $ac_try) 2>&5 | |
23187 | ac_status=$? | |
23188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23189 | (exit $ac_status); }; }; then | |
23190 | ac_cv_cxx_reinterpret_cast=yes | |
23191 | else | |
23192 | echo "$as_me: failed program was:" >&5 | |
23193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23194 | ||
23195 | ac_cv_cxx_reinterpret_cast=no | |
23196 | fi | |
23197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
23198 | ac_ext=cc |
23199 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23200 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23201 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23202 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7714864e RL |
23203 | |
23204 | ||
23205 | fi | |
23206 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
23207 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
23208 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
23209 | ||
23210 | cat >>confdefs.h <<\_ACEOF | |
23211 | #define HAVE_REINTERPRET_CAST | |
23212 | _ACEOF | |
23213 | ||
23214 | fi | |
23215 | ||
a848cd7e SC |
23216 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
23217 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
23218 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
23219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23220 | else | |
23221 | ||
23222 | ||
23223 | ac_ext=cc | |
23224 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23225 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23226 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23227 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23228 | ||
23229 | cat >conftest.$ac_ext <<_ACEOF | |
23230 | /* confdefs.h. */ | |
23231 | _ACEOF | |
23232 | cat confdefs.h >>conftest.$ac_ext | |
23233 | cat >>conftest.$ac_ext <<_ACEOF | |
23234 | /* end confdefs.h. */ | |
23235 | #include <typeinfo> | |
23236 | class Base { public : Base () {} virtual void f () = 0; }; | |
23237 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
23238 | int g (Derived&) { return 0; } | |
23239 | int | |
23240 | main () | |
23241 | { | |
23242 | ||
23243 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
23244 | ; | |
23245 | return 0; | |
23246 | } | |
23247 | _ACEOF | |
23248 | rm -f conftest.$ac_objext | |
23249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23250 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23251 | ac_status=$? |
ac1cb8d3 VS |
23252 | grep -v '^ *+' conftest.er1 >conftest.err |
23253 | rm -f conftest.er1 | |
23254 | cat conftest.err >&5 | |
a848cd7e SC |
23255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23256 | (exit $ac_status); } && | |
c9a66001 | 23257 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23259 | (eval $ac_try) 2>&5 | |
23260 | ac_status=$? | |
23261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23262 | (exit $ac_status); }; } && | |
23263 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23265 | (eval $ac_try) 2>&5 | |
23266 | ac_status=$? | |
23267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23268 | (exit $ac_status); }; }; then | |
23269 | ac_cv_cxx_static_cast=yes | |
23270 | else | |
23271 | echo "$as_me: failed program was:" >&5 | |
23272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23273 | ||
23274 | ac_cv_cxx_static_cast=no | |
23275 | fi | |
ac1cb8d3 | 23276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
23277 | ac_ext=cc |
23278 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23279 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23280 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23281 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23282 | |
23283 | ||
23284 | fi | |
23285 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
23286 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
23287 | if test "$ac_cv_cxx_static_cast" = yes; then | |
23288 | ||
23289 | cat >>confdefs.h <<\_ACEOF | |
23290 | #define HAVE_STATIC_CAST | |
23291 | _ACEOF | |
23292 | ||
23293 | fi | |
23294 | ||
23295 | ||
3c28b7cb | 23296 | if test "x$SUNCXX" = xyes; then |
c92ad099 | 23297 | CXXFLAGS="-features=tmplife $CXXFLAGS" |
3c28b7cb MW |
23298 | fi |
23299 | ||
9122d155 | 23300 | if test "x$SUNCC" = xyes; then |
c92ad099 | 23301 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
23302 | fi |
23303 | ||
0ad5d837 | 23304 | if test "x$SGICC" = "xyes"; then |
c92ad099 | 23305 | CFLAGS="-woff 3970 $CFLAGS" |
0ad5d837 VZ |
23306 | fi |
23307 | if test "x$SGICXX" = "xyes"; then | |
c92ad099 | 23308 | CXXFLAGS="-woff 3970 $CXXFLAGS" |
0ad5d837 VZ |
23309 | fi |
23310 | ||
2eef8513 | 23311 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 23312 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
23313 | fi |
23314 | if test "x$HPCXX" = "xyes"; then | |
c92ad099 | 23315 | CXXFLAGS="+W 2340 $CXXFLAGS" |
2eef8513 VZ |
23316 | fi |
23317 | ||
23318 | if test "x$COMPAQCXX" = "xyes"; then | |
23319 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
23320 | fi | |
23321 | ||
f56c22b4 | 23322 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
f56c22b4 MW |
23323 | if test "$wxUSE_UNICODE" = "yes"; then |
23324 | std_string="std::wstring" | |
23325 | char_type="wchar_t" | |
23326 | else | |
23327 | std_string="std::string" | |
23328 | char_type="char" | |
23329 | fi | |
23330 | ||
23331 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
23332 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
23333 | cat >conftest.$ac_ext <<_ACEOF |
23334 | /* confdefs.h. */ | |
23335 | _ACEOF | |
23336 | cat confdefs.h >>conftest.$ac_ext | |
23337 | cat >>conftest.$ac_ext <<_ACEOF | |
23338 | /* end confdefs.h. */ | |
23339 | #include <string> | |
a848cd7e SC |
23340 | int |
23341 | main () | |
23342 | { | |
f56c22b4 | 23343 | $std_string foo; |
a848cd7e SC |
23344 | ; |
23345 | return 0; | |
23346 | } | |
23347 | _ACEOF | |
23348 | rm -f conftest.$ac_objext | |
23349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23350 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23351 | ac_status=$? |
ac1cb8d3 VS |
23352 | grep -v '^ *+' conftest.er1 >conftest.err |
23353 | rm -f conftest.er1 | |
23354 | cat conftest.err >&5 | |
a848cd7e SC |
23355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23356 | (exit $ac_status); } && | |
c9a66001 | 23357 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23359 | (eval $ac_try) 2>&5 | |
23360 | ac_status=$? | |
23361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23362 | (exit $ac_status); }; } && | |
23363 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23365 | (eval $ac_try) 2>&5 | |
23366 | ac_status=$? | |
23367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23368 | (exit $ac_status); }; }; then | |
23369 | echo "$as_me:$LINENO: result: yes" >&5 | |
23370 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
23371 | cat >>confdefs.h <<\_ACEOF |
23372 | #define HAVE_STD_WSTRING 1 | |
23373 | _ACEOF | |
23374 | ||
a848cd7e SC |
23375 | else |
23376 | echo "$as_me: failed program was:" >&5 | |
23377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23378 | ||
23379 | echo "$as_me:$LINENO: result: no" >&5 | |
23380 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
23381 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
23382 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
23383 | cat >conftest.$ac_ext <<_ACEOF |
23384 | /* confdefs.h. */ | |
23385 | _ACEOF | |
23386 | cat confdefs.h >>conftest.$ac_ext | |
23387 | cat >>conftest.$ac_ext <<_ACEOF | |
23388 | /* end confdefs.h. */ | |
23389 | ||
23390 | #ifdef HAVE_WCHAR_H | |
23391 | # ifdef __CYGWIN__ | |
23392 | # include <stddef.h> | |
23393 | # endif | |
23394 | # include <wchar.h> | |
23395 | #endif | |
23396 | #ifdef HAVE_STDLIB_H | |
23397 | # include <stdlib.h> | |
23398 | #endif | |
23399 | #include <stdio.h> | |
23400 | #include <string> | |
23401 | ||
23402 | int | |
23403 | main () | |
23404 | { | |
f56c22b4 MW |
23405 | std::basic_string<$char_type> foo; |
23406 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
23407 | ; |
23408 | return 0; | |
23409 | } | |
23410 | _ACEOF | |
23411 | rm -f conftest.$ac_objext | |
23412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23413 | (eval $ac_compile) 2>conftest.er1 | |
23414 | ac_status=$? | |
23415 | grep -v '^ *+' conftest.er1 >conftest.err | |
23416 | rm -f conftest.er1 | |
23417 | cat conftest.err >&5 | |
23418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23419 | (exit $ac_status); } && | |
c9a66001 | 23420 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0a08f02a MB |
23421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23422 | (eval $ac_try) 2>&5 | |
23423 | ac_status=$? | |
23424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23425 | (exit $ac_status); }; } && | |
23426 | { ac_try='test -s conftest.$ac_objext' | |
23427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23428 | (eval $ac_try) 2>&5 | |
23429 | ac_status=$? | |
23430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23431 | (exit $ac_status); }; }; then | |
23432 | echo "$as_me:$LINENO: result: yes" >&5 | |
23433 | echo "${ECHO_T}yes" >&6 | |
23434 | else | |
23435 | echo "$as_me: failed program was:" >&5 | |
23436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23437 | ||
23438 | echo "$as_me:$LINENO: result: no" >&5 | |
23439 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 23440 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
23441 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
23442 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
23443 | { (exit 1); exit 1; }; } | |
23444 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
23445 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
23446 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 23447 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
23448 | else |
23449 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
23450 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
23451 | wxUSE_STD_STRING=no | |
23452 | fi | |
23453 | ||
0a08f02a | 23454 | |
a848cd7e | 23455 | fi |
ac1cb8d3 | 23456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 23457 | |
0a08f02a MB |
23458 | fi |
23459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f56c22b4 MW |
23460 | fi |
23461 | ||
23462 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
f56c22b4 MW |
23463 | echo "$as_me:$LINENO: checking for std::istream" >&5 |
23464 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
23465 | if test "${ac_cv_type_std__istream+set}" = set; then | |
23466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23467 | else | |
23468 | cat >conftest.$ac_ext <<_ACEOF | |
23469 | /* confdefs.h. */ | |
23470 | _ACEOF | |
23471 | cat confdefs.h >>conftest.$ac_ext | |
23472 | cat >>conftest.$ac_ext <<_ACEOF | |
23473 | /* end confdefs.h. */ | |
23474 | #include <iostream> | |
23475 | ||
23476 | int | |
23477 | main () | |
23478 | { | |
23479 | if ((std::istream *) 0) | |
23480 | return 0; | |
23481 | if (sizeof (std::istream)) | |
23482 | return 0; | |
23483 | ; | |
23484 | return 0; | |
23485 | } | |
23486 | _ACEOF | |
23487 | rm -f conftest.$ac_objext | |
23488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23489 | (eval $ac_compile) 2>conftest.er1 | |
23490 | ac_status=$? | |
23491 | grep -v '^ *+' conftest.er1 >conftest.err | |
23492 | rm -f conftest.er1 | |
23493 | cat conftest.err >&5 | |
23494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23495 | (exit $ac_status); } && | |
c9a66001 | 23496 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
23497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23498 | (eval $ac_try) 2>&5 | |
23499 | ac_status=$? | |
23500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23501 | (exit $ac_status); }; } && | |
23502 | { ac_try='test -s conftest.$ac_objext' | |
23503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23504 | (eval $ac_try) 2>&5 | |
23505 | ac_status=$? | |
23506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23507 | (exit $ac_status); }; }; then | |
23508 | ac_cv_type_std__istream=yes | |
23509 | else | |
23510 | echo "$as_me: failed program was:" >&5 | |
23511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23512 | ||
23513 | ac_cv_type_std__istream=no | |
23514 | fi | |
23515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23516 | fi | |
23517 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
23518 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
23519 | if test $ac_cv_type_std__istream = yes; then | |
23520 | ||
23521 | cat >>confdefs.h <<_ACEOF | |
23522 | #define HAVE_STD__ISTREAM 1 | |
23523 | _ACEOF | |
23524 | ||
23525 | ||
23526 | else | |
23527 | wxUSE_STD_IOSTREAM=no | |
23528 | fi | |
23529 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
23530 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
23531 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
23532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23533 | else | |
23534 | cat >conftest.$ac_ext <<_ACEOF | |
23535 | /* confdefs.h. */ | |
23536 | _ACEOF | |
23537 | cat confdefs.h >>conftest.$ac_ext | |
23538 | cat >>conftest.$ac_ext <<_ACEOF | |
23539 | /* end confdefs.h. */ | |
23540 | #include <iostream> | |
23541 | ||
23542 | int | |
23543 | main () | |
23544 | { | |
23545 | if ((std::ostream *) 0) | |
23546 | return 0; | |
23547 | if (sizeof (std::ostream)) | |
23548 | return 0; | |
23549 | ; | |
23550 | return 0; | |
23551 | } | |
23552 | _ACEOF | |
23553 | rm -f conftest.$ac_objext | |
23554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23555 | (eval $ac_compile) 2>conftest.er1 | |
23556 | ac_status=$? | |
23557 | grep -v '^ *+' conftest.er1 >conftest.err | |
23558 | rm -f conftest.er1 | |
23559 | cat conftest.err >&5 | |
23560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23561 | (exit $ac_status); } && | |
c9a66001 | 23562 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
23563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23564 | (eval $ac_try) 2>&5 | |
23565 | ac_status=$? | |
23566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23567 | (exit $ac_status); }; } && | |
23568 | { ac_try='test -s conftest.$ac_objext' | |
23569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23570 | (eval $ac_try) 2>&5 | |
23571 | ac_status=$? | |
23572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23573 | (exit $ac_status); }; }; then | |
23574 | ac_cv_type_std__ostream=yes | |
23575 | else | |
23576 | echo "$as_me: failed program was:" >&5 | |
23577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23578 | ||
23579 | ac_cv_type_std__ostream=no | |
23580 | fi | |
23581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23582 | fi | |
23583 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
23584 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
23585 | if test $ac_cv_type_std__ostream = yes; then | |
23586 | ||
23587 | cat >>confdefs.h <<_ACEOF | |
23588 | #define HAVE_STD__OSTREAM 1 | |
23589 | _ACEOF | |
23590 | ||
23591 | ||
23592 | else | |
23593 | wxUSE_STD_IOSTREAM=no | |
23594 | fi | |
23595 | ||
23596 | ||
23597 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
23598 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
23599 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
23600 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
23601 | { (exit 1); exit 1; }; } | |
23602 | else | |
23603 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 23604 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 23605 | fi |
f56c22b4 | 23606 | fi |
0a08f02a MB |
23607 | fi |
23608 | ||
23609 | if test "$wxUSE_STL" = "yes"; then | |
0a08f02a MB |
23610 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 |
23611 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
23612 | cat >conftest.$ac_ext <<_ACEOF |
23613 | /* confdefs.h. */ | |
23614 | _ACEOF | |
23615 | cat confdefs.h >>conftest.$ac_ext | |
23616 | cat >>conftest.$ac_ext <<_ACEOF | |
23617 | /* end confdefs.h. */ | |
23618 | #include <string> | |
0a08f02a MB |
23619 | #include <functional> |
23620 | #include <algorithm> | |
23621 | #include <vector> | |
23622 | #include <list> | |
a848cd7e SC |
23623 | int |
23624 | main () | |
23625 | { | |
0a08f02a MB |
23626 | std::vector<int> moo; |
23627 | std::list<int> foo; | |
23628 | std::vector<int>::iterator it = | |
23629 | std::find_if(moo.begin(), moo.end(), | |
23630 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
23631 | ; |
23632 | return 0; | |
23633 | } | |
23634 | _ACEOF | |
23635 | rm -f conftest.$ac_objext | |
23636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23637 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23638 | ac_status=$? |
ac1cb8d3 VS |
23639 | grep -v '^ *+' conftest.er1 >conftest.err |
23640 | rm -f conftest.er1 | |
23641 | cat conftest.err >&5 | |
a848cd7e SC |
23642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23643 | (exit $ac_status); } && | |
c9a66001 | 23644 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23646 | (eval $ac_try) 2>&5 | |
23647 | ac_status=$? | |
23648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23649 | (exit $ac_status); }; } && | |
23650 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23652 | (eval $ac_try) 2>&5 | |
23653 | ac_status=$? | |
23654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23655 | (exit $ac_status); }; }; then | |
23656 | echo "$as_me:$LINENO: result: yes" >&5 | |
23657 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
23658 | else |
23659 | echo "$as_me: failed program was:" >&5 | |
23660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23661 | ||
23662 | echo "$as_me:$LINENO: result: no" >&5 | |
23663 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
23664 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
23665 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
23666 | { (exit 1); exit 1; }; } | |
a848cd7e | 23667 | fi |
ac1cb8d3 | 23668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23669 | |
23670 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
23671 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
23672 | cat >conftest.$ac_ext <<_ACEOF | |
23673 | /* confdefs.h. */ | |
23674 | _ACEOF | |
23675 | cat confdefs.h >>conftest.$ac_ext | |
23676 | cat >>conftest.$ac_ext <<_ACEOF | |
23677 | /* end confdefs.h. */ | |
23678 | #include <string> | |
23679 | int | |
23680 | main () | |
23681 | { | |
23682 | std::string foo, bar; | |
23683 | foo.compare(bar); | |
23684 | foo.compare(1, 1, bar); | |
23685 | foo.compare(1, 1, bar, 1, 1); | |
23686 | foo.compare(""); | |
23687 | foo.compare(1, 1, ""); | |
23688 | foo.compare(1, 1, "", 2); | |
23689 | ; | |
23690 | return 0; | |
23691 | } | |
23692 | _ACEOF | |
23693 | rm -f conftest.$ac_objext | |
23694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23695 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23696 | ac_status=$? |
ac1cb8d3 VS |
23697 | grep -v '^ *+' conftest.er1 >conftest.err |
23698 | rm -f conftest.er1 | |
23699 | cat conftest.err >&5 | |
a848cd7e SC |
23700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23701 | (exit $ac_status); } && | |
c9a66001 | 23702 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23704 | (eval $ac_try) 2>&5 | |
23705 | ac_status=$? | |
23706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23707 | (exit $ac_status); }; } && | |
23708 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23710 | (eval $ac_try) 2>&5 | |
23711 | ac_status=$? | |
23712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23713 | (exit $ac_status); }; }; then | |
23714 | echo "$as_me:$LINENO: result: yes" >&5 | |
23715 | echo "${ECHO_T}yes" >&6 | |
23716 | cat >>confdefs.h <<\_ACEOF | |
23717 | #define HAVE_STD_STRING_COMPARE 1 | |
23718 | _ACEOF | |
23719 | ||
23720 | else | |
23721 | echo "$as_me: failed program was:" >&5 | |
23722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23723 | ||
23724 | echo "$as_me:$LINENO: result: no" >&5 | |
23725 | echo "${ECHO_T}no" >&6 | |
23726 | fi | |
ac1cb8d3 | 23727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23728 | |
23729 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23730 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23731 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23732 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23734 | fi | |
23735 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23736 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23737 | else | |
23738 | # Is the header compilable? | |
23739 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
23740 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
23741 | cat >conftest.$ac_ext <<_ACEOF | |
23742 | /* confdefs.h. */ | |
23743 | _ACEOF | |
23744 | cat confdefs.h >>conftest.$ac_ext | |
23745 | cat >>conftest.$ac_ext <<_ACEOF | |
23746 | /* end confdefs.h. */ | |
23747 | $ac_includes_default | |
23748 | #include <hash_map> | |
23749 | _ACEOF | |
23750 | rm -f conftest.$ac_objext | |
23751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23752 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23753 | ac_status=$? |
ac1cb8d3 VS |
23754 | grep -v '^ *+' conftest.er1 >conftest.err |
23755 | rm -f conftest.er1 | |
23756 | cat conftest.err >&5 | |
bdcade0a MB |
23757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23758 | (exit $ac_status); } && | |
c9a66001 | 23759 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23761 | (eval $ac_try) 2>&5 | |
23762 | ac_status=$? | |
23763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23764 | (exit $ac_status); }; } && | |
23765 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23767 | (eval $ac_try) 2>&5 | |
23768 | ac_status=$? | |
23769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23770 | (exit $ac_status); }; }; then | |
23771 | ac_header_compiler=yes | |
23772 | else | |
23773 | echo "$as_me: failed program was:" >&5 | |
23774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23775 | ||
23776 | ac_header_compiler=no | |
23777 | fi | |
ac1cb8d3 | 23778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23779 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23780 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23781 | ||
23782 | # Is the header present? | |
23783 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
23784 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
23785 | cat >conftest.$ac_ext <<_ACEOF | |
23786 | /* confdefs.h. */ | |
23787 | _ACEOF | |
23788 | cat confdefs.h >>conftest.$ac_ext | |
23789 | cat >>conftest.$ac_ext <<_ACEOF | |
23790 | /* end confdefs.h. */ | |
23791 | #include <hash_map> | |
23792 | _ACEOF | |
23793 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23794 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23795 | ac_status=$? | |
23796 | grep -v '^ *+' conftest.er1 >conftest.err | |
23797 | rm -f conftest.er1 | |
23798 | cat conftest.err >&5 | |
23799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23800 | (exit $ac_status); } >/dev/null; then | |
23801 | if test -s conftest.err; then | |
23802 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23803 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23804 | else |
23805 | ac_cpp_err= | |
23806 | fi | |
23807 | else | |
23808 | ac_cpp_err=yes | |
23809 | fi | |
23810 | if test -z "$ac_cpp_err"; then | |
23811 | ac_header_preproc=yes | |
23812 | else | |
23813 | echo "$as_me: failed program was:" >&5 | |
23814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23815 | ||
23816 | ac_header_preproc=no | |
23817 | fi | |
23818 | rm -f conftest.err conftest.$ac_ext | |
23819 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23820 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23821 | ||
23822 | # So? What about this header? | |
ac1cb8d3 VS |
23823 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23824 | yes:no: ) | |
bdcade0a MB |
23825 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23826 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23827 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
23828 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
23829 | ac_header_preproc=yes | |
bdcade0a | 23830 | ;; |
ac1cb8d3 | 23831 | no:yes:* ) |
bdcade0a MB |
23832 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
23833 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23834 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
23835 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
23836 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
23837 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
23838 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23839 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23840 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
23841 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23842 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
23843 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23844 | ( |
23845 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23846 | ## ----------------------------------------- ## |
23847 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23848 | ## ----------------------------------------- ## | |
bdcade0a MB |
23849 | _ASBOX |
23850 | ) | | |
23851 | sed "s/^/$as_me: WARNING: /" >&2 | |
23852 | ;; | |
23853 | esac | |
23854 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23855 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23856 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23858 | else | |
23859 | ac_cv_header_hash_map=$ac_header_preproc | |
23860 | fi | |
23861 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23862 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23863 | ||
23864 | fi | |
23865 | if test $ac_cv_header_hash_map = yes; then | |
23866 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23867 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23868 | cat >conftest.$ac_ext <<_ACEOF | |
23869 | /* confdefs.h. */ | |
23870 | _ACEOF | |
23871 | cat confdefs.h >>conftest.$ac_ext | |
23872 | cat >>conftest.$ac_ext <<_ACEOF | |
23873 | /* end confdefs.h. */ | |
23874 | #include <hash_map> | |
23875 | #include <hash_set> | |
23876 | int | |
23877 | main () | |
23878 | { | |
23879 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
23880 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
23881 | ; | |
23882 | return 0; | |
23883 | } | |
23884 | _ACEOF | |
23885 | rm -f conftest.$ac_objext | |
23886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23887 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23888 | ac_status=$? |
ac1cb8d3 VS |
23889 | grep -v '^ *+' conftest.er1 >conftest.err |
23890 | rm -f conftest.er1 | |
23891 | cat conftest.err >&5 | |
bdcade0a MB |
23892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23893 | (exit $ac_status); } && | |
c9a66001 | 23894 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23896 | (eval $ac_try) 2>&5 | |
23897 | ac_status=$? | |
23898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23899 | (exit $ac_status); }; } && | |
23900 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23902 | (eval $ac_try) 2>&5 | |
23903 | ac_status=$? | |
23904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23905 | (exit $ac_status); }; }; then | |
23906 | echo "$as_me:$LINENO: result: yes" >&5 | |
23907 | echo "${ECHO_T}yes" >&6 | |
23908 | cat >>confdefs.h <<\_ACEOF | |
23909 | #define HAVE_HASH_MAP 1 | |
23910 | _ACEOF | |
23911 | ||
23912 | cat >>confdefs.h <<\_ACEOF | |
23913 | #define HAVE_STD_HASH_MAP 1 | |
23914 | _ACEOF | |
23915 | ||
23916 | else | |
23917 | echo "$as_me: failed program was:" >&5 | |
23918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23919 | ||
23920 | echo "$as_me:$LINENO: result: no" >&5 | |
23921 | echo "${ECHO_T}no" >&6 | |
23922 | fi | |
ac1cb8d3 | 23923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23924 | |
23925 | fi | |
23926 | ||
23927 | ||
23928 | ||
23929 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23930 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23931 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23932 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23934 | fi | |
23935 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23936 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23937 | else | |
23938 | # Is the header compilable? | |
23939 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
23940 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
23941 | cat >conftest.$ac_ext <<_ACEOF | |
23942 | /* confdefs.h. */ | |
23943 | _ACEOF | |
23944 | cat confdefs.h >>conftest.$ac_ext | |
23945 | cat >>conftest.$ac_ext <<_ACEOF | |
23946 | /* end confdefs.h. */ | |
23947 | $ac_includes_default | |
23948 | #include <ext/hash_map> | |
23949 | _ACEOF | |
23950 | rm -f conftest.$ac_objext | |
23951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23952 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23953 | ac_status=$? |
ac1cb8d3 VS |
23954 | grep -v '^ *+' conftest.er1 >conftest.err |
23955 | rm -f conftest.er1 | |
23956 | cat conftest.err >&5 | |
bdcade0a MB |
23957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23958 | (exit $ac_status); } && | |
c9a66001 | 23959 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23961 | (eval $ac_try) 2>&5 | |
23962 | ac_status=$? | |
23963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23964 | (exit $ac_status); }; } && | |
23965 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23967 | (eval $ac_try) 2>&5 | |
23968 | ac_status=$? | |
23969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23970 | (exit $ac_status); }; }; then | |
23971 | ac_header_compiler=yes | |
23972 | else | |
23973 | echo "$as_me: failed program was:" >&5 | |
23974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23975 | ||
23976 | ac_header_compiler=no | |
23977 | fi | |
ac1cb8d3 | 23978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23979 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23980 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23981 | ||
23982 | # Is the header present? | |
23983 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
23984 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
23985 | cat >conftest.$ac_ext <<_ACEOF | |
23986 | /* confdefs.h. */ | |
23987 | _ACEOF | |
23988 | cat confdefs.h >>conftest.$ac_ext | |
23989 | cat >>conftest.$ac_ext <<_ACEOF | |
23990 | /* end confdefs.h. */ | |
23991 | #include <ext/hash_map> | |
23992 | _ACEOF | |
23993 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23994 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23995 | ac_status=$? | |
23996 | grep -v '^ *+' conftest.er1 >conftest.err | |
23997 | rm -f conftest.er1 | |
23998 | cat conftest.err >&5 | |
23999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24000 | (exit $ac_status); } >/dev/null; then | |
24001 | if test -s conftest.err; then | |
24002 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 24003 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
24004 | else |
24005 | ac_cpp_err= | |
24006 | fi | |
24007 | else | |
24008 | ac_cpp_err=yes | |
24009 | fi | |
24010 | if test -z "$ac_cpp_err"; then | |
24011 | ac_header_preproc=yes | |
24012 | else | |
24013 | echo "$as_me: failed program was:" >&5 | |
24014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24015 | ||
24016 | ac_header_preproc=no | |
24017 | fi | |
24018 | rm -f conftest.err conftest.$ac_ext | |
24019 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24020 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24021 | ||
24022 | # So? What about this header? | |
ac1cb8d3 VS |
24023 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
24024 | yes:no: ) | |
bdcade0a MB |
24025 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
24026 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24027 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
24028 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
24029 | ac_header_preproc=yes | |
bdcade0a | 24030 | ;; |
ac1cb8d3 | 24031 | no:yes:* ) |
bdcade0a MB |
24032 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
24033 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24034 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
24035 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
24036 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
24037 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
24038 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
24039 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
24040 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
24041 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24042 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
24043 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
24044 | ( |
24045 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24046 | ## ----------------------------------------- ## |
24047 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24048 | ## ----------------------------------------- ## | |
bdcade0a MB |
24049 | _ASBOX |
24050 | ) | | |
24051 | sed "s/^/$as_me: WARNING: /" >&2 | |
24052 | ;; | |
24053 | esac | |
24054 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
24055 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
24056 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
24057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24058 | else | |
24059 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
24060 | fi | |
24061 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
24062 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
24063 | ||
24064 | fi | |
24065 | if test $ac_cv_header_ext_hash_map = yes; then | |
24066 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
24067 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
24068 | cat >conftest.$ac_ext <<_ACEOF | |
24069 | /* confdefs.h. */ | |
24070 | _ACEOF | |
24071 | cat confdefs.h >>conftest.$ac_ext | |
24072 | cat >>conftest.$ac_ext <<_ACEOF | |
24073 | /* end confdefs.h. */ | |
24074 | #include <ext/hash_map> | |
24075 | #include <ext/hash_set> | |
24076 | int | |
24077 | main () | |
24078 | { | |
24079 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
24080 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
24081 | ; | |
24082 | return 0; | |
24083 | } | |
24084 | _ACEOF | |
24085 | rm -f conftest.$ac_objext | |
24086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24087 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 24088 | ac_status=$? |
ac1cb8d3 VS |
24089 | grep -v '^ *+' conftest.er1 >conftest.err |
24090 | rm -f conftest.er1 | |
24091 | cat conftest.err >&5 | |
bdcade0a MB |
24092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24093 | (exit $ac_status); } && | |
c9a66001 | 24094 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24096 | (eval $ac_try) 2>&5 | |
24097 | ac_status=$? | |
24098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24099 | (exit $ac_status); }; } && | |
24100 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
24101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24102 | (eval $ac_try) 2>&5 | |
24103 | ac_status=$? | |
24104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24105 | (exit $ac_status); }; }; then | |
24106 | echo "$as_me:$LINENO: result: yes" >&5 | |
24107 | echo "${ECHO_T}yes" >&6 | |
24108 | cat >>confdefs.h <<\_ACEOF | |
24109 | #define HAVE_EXT_HASH_MAP 1 | |
24110 | _ACEOF | |
24111 | ||
24112 | cat >>confdefs.h <<\_ACEOF | |
24113 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
24114 | _ACEOF | |
24115 | ||
24116 | else | |
24117 | echo "$as_me: failed program was:" >&5 | |
24118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24119 | ||
24120 | echo "$as_me:$LINENO: result: no" >&5 | |
24121 | echo "${ECHO_T}no" >&6 | |
24122 | fi | |
ac1cb8d3 | 24123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
24124 | |
24125 | fi | |
24126 | ||
24127 | ||
a848cd7e SC |
24128 | fi |
24129 | ||
24130 | ||
24131 | SEARCH_INCLUDE="\ | |
24132 | /usr/local/include \ | |
24133 | \ | |
24134 | /usr/Motif-2.1/include \ | |
24135 | /usr/Motif-1.2/include \ | |
24136 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
24137 | \ |
24138 | /usr/dt/include \ | |
24139 | /usr/openwin/include \ | |
24140 | \ | |
24141 | /usr/include/Xm \ | |
24142 | \ | |
24143 | /usr/X11R6/include \ | |
24144 | /usr/X11R6.4/include \ | |
24145 | /usr/X11R5/include \ | |
24146 | /usr/X11R4/include \ | |
24147 | \ | |
24148 | /usr/include/X11R6 \ | |
24149 | /usr/include/X11R5 \ | |
24150 | /usr/include/X11R4 \ | |
24151 | \ | |
24152 | /usr/local/X11R6/include \ | |
24153 | /usr/local/X11R5/include \ | |
24154 | /usr/local/X11R4/include \ | |
24155 | \ | |
24156 | /usr/local/include/X11R6 \ | |
24157 | /usr/local/include/X11R5 \ | |
24158 | /usr/local/include/X11R4 \ | |
24159 | \ | |
24160 | /usr/X11/include \ | |
24161 | /usr/include/X11 \ | |
24162 | /usr/local/X11/include \ | |
24163 | /usr/local/include/X11 \ | |
24164 | \ | |
a848cd7e | 24165 | /usr/XFree86/include/X11 \ |
e051b34e MW |
24166 | /usr/pkg/include \ |
24167 | \ | |
a848cd7e SC |
24168 | /usr/openwin/share/include" |
24169 | ||
6f9cf1e6 | 24170 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 24171 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
24172 | |
24173 | case "${host}" in | |
24174 | *-*-irix6* ) | |
24175 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
24176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24177 | else | |
24178 | ||
c687b303 VZ |
24179 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
24180 | for e in a so sl dylib dll.a; do | |
24181 | libc="$d/libc.$e" | |
24182 | if test -f $libc; then | |
24183 | save_LIBS="$LIBS" | |
24184 | LIBS="$libc" | |
24185 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
24186 | int main() { return 0; } |
24187 | _ACEOF | |
24188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24190 | (eval $ac_link) 2>conftest.er1 | |
24191 | ac_status=$? | |
24192 | grep -v '^ *+' conftest.er1 >conftest.err | |
24193 | rm -f conftest.er1 | |
24194 | cat conftest.err >&5 | |
24195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24196 | (exit $ac_status); } && | |
c9a66001 | 24197 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
24198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24199 | (eval $ac_try) 2>&5 | |
24200 | ac_status=$? | |
24201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24202 | (exit $ac_status); }; } && | |
24203 | { ac_try='test -s conftest$ac_exeext' | |
24204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24205 | (eval $ac_try) 2>&5 | |
24206 | ac_status=$? | |
24207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24208 | (exit $ac_status); }; }; then | |
24209 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
24210 | else | |
24211 | echo "$as_me: failed program was:" >&5 | |
24212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24213 | ||
24214 | fi | |
24215 | rm -f conftest.err conftest.$ac_objext \ | |
24216 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
24217 | LIBS="$save_LIBS" |
24218 | if test "x$wx_cv_std_libpath" != "x"; then | |
24219 | break 2 | |
24220 | fi | |
24221 | fi | |
24222 | done | |
24223 | done | |
24224 | if test "x$wx_cv_std_libpath" = "x"; then | |
24225 | wx_cv_std_libpath="lib" | |
0ad5d837 | 24226 | fi |
0ad5d837 VZ |
24227 | |
24228 | ||
24229 | fi | |
6f9cf1e6 MW |
24230 | |
24231 | ;; | |
24232 | ||
24233 | *-*-solaris2* ) | |
24234 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
24235 | wx_cv_std_libpath="lib/64" | |
24236 | else | |
24237 | wx_cv_std_libpath="lib" | |
24238 | fi | |
24239 | ;; | |
24240 | ||
24241 | *-*-linux* ) | |
24242 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
24243 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
24244 | wx_cv_std_libpath="lib64" | |
24245 | else | |
24246 | wx_cv_std_libpath="lib" | |
24247 | fi | |
c687b303 VZ |
24248 | ;; |
24249 | ||
24250 | *) | |
24251 | wx_cv_std_libpath="lib"; | |
24252 | ;; | |
24253 | esac | |
0ad5d837 | 24254 | |
6f9cf1e6 MW |
24255 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
24256 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
24257 | ||
24258 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 24259 | |
3eca31dc MW |
24260 | if test "$build" != "$host" -a "$GCC" = yes; then |
24261 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
24262 | cross_root=`dirname $cross_root` | |
24263 | cross_root=`dirname $cross_root` | |
24264 | ||
24265 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
24266 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 24267 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
24268 | |
24269 | if test -z "$PKG_CONFIG_PATH"; then | |
24270 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
24271 | export PKG_CONFIG_PATH | |
24272 | fi | |
24273 | ||
24274 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
24275 | ||
24276 | ac_find_includes= | |
24277 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24278 | do | |
24279 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
24280 | ac_find_includes=$ac_dir | |
24281 | break | |
24282 | fi | |
24283 | done | |
24284 | ||
24285 | x_includes=$ac_find_includes | |
24286 | fi | |
24287 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
24288 | ||
0ad5d837 VZ |
24289 | ac_find_libraries= |
24290 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
24291 | do |
24292 | for ac_extension in a so sl dylib dll.a; do | |
24293 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
24294 | ac_find_libraries=$ac_dir | |
24295 | break 2 | |
24296 | fi | |
24297 | done | |
24298 | done | |
24299 | ||
24300 | x_libraries=$ac_find_libraries | |
24301 | fi | |
24302 | fi | |
24303 | fi | |
24304 | ||
a848cd7e SC |
24305 | |
24306 | cat >confcache <<\_ACEOF | |
24307 | # This file is a shell script that caches the results of configure | |
24308 | # tests run on this system so they can be shared between configure | |
24309 | # scripts and configure runs, see configure's option --config-cache. | |
24310 | # It is not useful on other systems. If it contains results you don't | |
24311 | # want to keep, you may remove or edit it. | |
24312 | # | |
24313 | # config.status only pays attention to the cache file if you give it | |
24314 | # the --recheck option to rerun configure. | |
24315 | # | |
24316 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
24317 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
24318 | # following values. | |
24319 | ||
24320 | _ACEOF | |
24321 | ||
24322 | # The following way of writing the cache mishandles newlines in values, | |
24323 | # but we know of no workaround that is simple, portable, and efficient. | |
24324 | # So, don't put newlines in cache variables' values. | |
24325 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
24326 | # and sets the high bit in the cache file unless we assign to the vars. | |
24327 | { | |
24328 | (set) 2>&1 | | |
24329 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
24330 | *ac_space=\ *) | |
24331 | # `set' does not quote correctly, so add quotes (double-quote | |
24332 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
24333 | sed -n \ | |
ac1cb8d3 VS |
24334 | "s/'/'\\\\''/g; |
24335 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
24336 | ;; |
24337 | *) | |
24338 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
24339 | sed -n \ | |
ac1cb8d3 | 24340 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
24341 | ;; |
24342 | esac; | |
24343 | } | | |
24344 | sed ' | |
24345 | t clear | |
24346 | : clear | |
24347 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
24348 | t end | |
24349 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
24350 | : end' >>confcache | |
24351 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
24352 | if test -w $cache_file; then | |
24353 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
24354 | cat confcache >$cache_file | |
24355 | else | |
24356 | echo "not updating unwritable cache $cache_file" | |
24357 | fi | |
24358 | fi | |
24359 | rm -f confcache | |
24360 | ||
24361 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
24362 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
24363 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
24364 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
24365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24366 | else | |
24367 | ||
24368 | cat >conftest.$ac_ext <<_ACEOF | |
24369 | /* confdefs.h. */ | |
24370 | _ACEOF | |
24371 | cat confdefs.h >>conftest.$ac_ext | |
24372 | cat >>conftest.$ac_ext <<_ACEOF | |
24373 | /* end confdefs.h. */ | |
24374 | #include <features.h> | |
24375 | int | |
24376 | main () | |
24377 | { | |
24378 | ||
24379 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 24380 | not glibc 2.1 |
a848cd7e SC |
24381 | #endif |
24382 | ||
24383 | ; | |
24384 | return 0; | |
24385 | } | |
24386 | _ACEOF | |
24387 | rm -f conftest.$ac_objext | |
24388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24389 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24390 | ac_status=$? |
ac1cb8d3 VS |
24391 | grep -v '^ *+' conftest.er1 >conftest.err |
24392 | rm -f conftest.er1 | |
24393 | cat conftest.err >&5 | |
a848cd7e SC |
24394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24395 | (exit $ac_status); } && | |
c9a66001 | 24396 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24398 | (eval $ac_try) 2>&5 | |
24399 | ac_status=$? | |
24400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24401 | (exit $ac_status); }; } && | |
24402 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24404 | (eval $ac_try) 2>&5 | |
24405 | ac_status=$? | |
24406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24407 | (exit $ac_status); }; }; then | |
24408 | ||
24409 | wx_cv_lib_glibc21=yes | |
24410 | ||
24411 | else | |
24412 | echo "$as_me: failed program was:" >&5 | |
24413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24414 | ||
24415 | ||
24416 | wx_cv_lib_glibc21=no | |
24417 | ||
24418 | ||
24419 | fi | |
ac1cb8d3 | 24420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24421 | |
24422 | fi | |
24423 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
24424 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
24425 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
24426 | cat >>confdefs.h <<\_ACEOF | |
24427 | #define wxHAVE_GLIBC2 1 | |
24428 | _ACEOF | |
24429 | ||
24430 | fi | |
24431 | fi | |
24432 | ||
24433 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
24434 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
24435 | cat >>confdefs.h <<\_ACEOF | |
24436 | #define _GNU_SOURCE 1 | |
24437 | _ACEOF | |
24438 | ||
24439 | fi | |
24440 | fi | |
24441 | ||
5d7b7554 VZ |
24442 | have_cos=0 |
24443 | have_floor=0 | |
a848cd7e | 24444 | |
5d7b7554 VZ |
24445 | for ac_func in cos |
24446 | do | |
24447 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24448 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24449 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24450 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a848cd7e | 24451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 24452 | else |
5d7b7554 | 24453 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
24454 | /* confdefs.h. */ |
24455 | _ACEOF | |
24456 | cat confdefs.h >>conftest.$ac_ext | |
24457 | cat >>conftest.$ac_ext <<_ACEOF | |
24458 | /* end confdefs.h. */ | |
5d7b7554 VZ |
24459 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24460 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24461 | #define $ac_func innocuous_$ac_func | |
24462 | ||
24463 | /* System header to define __stub macros and hopefully few prototypes, | |
24464 | which can conflict with char $ac_func (); below. | |
24465 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24466 | <limits.h> exists even on freestanding compilers. */ | |
24467 | ||
24468 | #ifdef __STDC__ | |
24469 | # include <limits.h> | |
24470 | #else | |
24471 | # include <assert.h> | |
24472 | #endif | |
24473 | ||
24474 | #undef $ac_func | |
24475 | ||
24476 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24477 | #ifdef __cplusplus | |
24478 | extern "C" | |
24479 | { | |
24480 | #endif | |
24481 | /* We use char because int might match the return type of a gcc2 | |
24482 | builtin and then its argument prototype would still apply. */ | |
24483 | char $ac_func (); | |
24484 | /* The GNU C library defines this for functions which it implements | |
24485 | to always fail with ENOSYS. Some functions are actually named | |
24486 | something starting with __ and the normal name is an alias. */ | |
24487 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24488 | choke me | |
24489 | #else | |
24490 | char (*f) () = $ac_func; | |
24491 | #endif | |
24492 | #ifdef __cplusplus | |
24493 | } | |
24494 | #endif | |
24495 | ||
24496 | int | |
24497 | main () | |
24498 | { | |
24499 | return f != $ac_func; | |
24500 | ; | |
24501 | return 0; | |
24502 | } | |
a848cd7e | 24503 | _ACEOF |
5d7b7554 VZ |
24504 | rm -f conftest.$ac_objext conftest$ac_exeext |
24505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24506 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24507 | ac_status=$? |
ac1cb8d3 VS |
24508 | grep -v '^ *+' conftest.er1 >conftest.err |
24509 | rm -f conftest.er1 | |
24510 | cat conftest.err >&5 | |
a848cd7e SC |
24511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24512 | (exit $ac_status); } && | |
c9a66001 | 24513 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24515 | (eval $ac_try) 2>&5 | |
24516 | ac_status=$? | |
24517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24518 | (exit $ac_status); }; } && | |
5d7b7554 | 24519 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24521 | (eval $ac_try) 2>&5 | |
24522 | ac_status=$? | |
24523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24524 | (exit $ac_status); }; }; then | |
5d7b7554 | 24525 | eval "$as_ac_var=yes" |
a848cd7e SC |
24526 | else |
24527 | echo "$as_me: failed program was:" >&5 | |
24528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24529 | ||
5d7b7554 | 24530 | eval "$as_ac_var=no" |
a848cd7e | 24531 | fi |
5d7b7554 VZ |
24532 | rm -f conftest.err conftest.$ac_objext \ |
24533 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 24534 | fi |
5d7b7554 VZ |
24535 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
24536 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24537 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24538 | cat >>confdefs.h <<_ACEOF | |
24539 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24540 | _ACEOF | |
24541 | have_cos=1 | |
a848cd7e | 24542 | fi |
5d7b7554 | 24543 | done |
a848cd7e | 24544 | |
ab0f0edd | 24545 | |
5d7b7554 | 24546 | for ac_func in floor |
a848cd7e SC |
24547 | do |
24548 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24549 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24550 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24551 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24553 | else | |
24554 | cat >conftest.$ac_ext <<_ACEOF | |
24555 | /* confdefs.h. */ | |
24556 | _ACEOF | |
24557 | cat confdefs.h >>conftest.$ac_ext | |
24558 | cat >>conftest.$ac_ext <<_ACEOF | |
24559 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24560 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24561 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24562 | #define $ac_func innocuous_$ac_func | |
24563 | ||
a848cd7e SC |
24564 | /* System header to define __stub macros and hopefully few prototypes, |
24565 | which can conflict with char $ac_func (); below. | |
24566 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24567 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24568 | |
a848cd7e SC |
24569 | #ifdef __STDC__ |
24570 | # include <limits.h> | |
24571 | #else | |
24572 | # include <assert.h> | |
24573 | #endif | |
ac1cb8d3 VS |
24574 | |
24575 | #undef $ac_func | |
24576 | ||
a848cd7e SC |
24577 | /* Override any gcc2 internal prototype to avoid an error. */ |
24578 | #ifdef __cplusplus | |
24579 | extern "C" | |
24580 | { | |
24581 | #endif | |
24582 | /* We use char because int might match the return type of a gcc2 | |
24583 | builtin and then its argument prototype would still apply. */ | |
24584 | char $ac_func (); | |
24585 | /* The GNU C library defines this for functions which it implements | |
24586 | to always fail with ENOSYS. Some functions are actually named | |
24587 | something starting with __ and the normal name is an alias. */ | |
24588 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24589 | choke me | |
24590 | #else | |
24591 | char (*f) () = $ac_func; | |
24592 | #endif | |
24593 | #ifdef __cplusplus | |
24594 | } | |
24595 | #endif | |
24596 | ||
24597 | int | |
24598 | main () | |
24599 | { | |
24600 | return f != $ac_func; | |
24601 | ; | |
24602 | return 0; | |
24603 | } | |
24604 | _ACEOF | |
24605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24607 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24608 | ac_status=$? |
ac1cb8d3 VS |
24609 | grep -v '^ *+' conftest.er1 >conftest.err |
24610 | rm -f conftest.er1 | |
24611 | cat conftest.err >&5 | |
a848cd7e SC |
24612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24613 | (exit $ac_status); } && | |
c9a66001 | 24614 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
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); }; } && | |
24620 | { ac_try='test -s conftest$ac_exeext' | |
24621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24622 | (eval $ac_try) 2>&5 | |
24623 | ac_status=$? | |
24624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24625 | (exit $ac_status); }; }; then | |
24626 | eval "$as_ac_var=yes" | |
24627 | else | |
24628 | echo "$as_me: failed program was:" >&5 | |
24629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24630 | ||
24631 | eval "$as_ac_var=no" | |
24632 | fi | |
24633 | rm -f conftest.err conftest.$ac_objext \ | |
24634 | conftest$ac_exeext conftest.$ac_ext | |
24635 | fi | |
24636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24637 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24638 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24639 | cat >>confdefs.h <<_ACEOF | |
24640 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24641 | _ACEOF | |
24642 | have_floor=1 | |
24643 | fi | |
24644 | done | |
24645 | ||
24646 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
24647 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
24648 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
24649 | echo "$as_me:$LINENO: result: yes" >&5 | |
24650 | echo "${ECHO_T}yes" >&6 | |
24651 | else | |
24652 | echo "$as_me:$LINENO: result: no" >&5 | |
24653 | echo "${ECHO_T}no" >&6 | |
24654 | LIBS="$LIBS -lm" | |
24655 | # use different functions to avoid configure caching | |
24656 | have_sin=0 | |
24657 | have_ceil=0 | |
24658 | ||
24659 | for ac_func in sin | |
24660 | do | |
24661 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24662 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24663 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24664 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24666 | else | |
24667 | cat >conftest.$ac_ext <<_ACEOF | |
24668 | /* confdefs.h. */ | |
24669 | _ACEOF | |
24670 | cat confdefs.h >>conftest.$ac_ext | |
24671 | cat >>conftest.$ac_ext <<_ACEOF | |
24672 | /* end confdefs.h. */ | |
24673 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24674 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24675 | #define $ac_func innocuous_$ac_func | |
24676 | ||
24677 | /* System header to define __stub macros and hopefully few prototypes, | |
24678 | which can conflict with char $ac_func (); below. | |
24679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24680 | <limits.h> exists even on freestanding compilers. */ | |
24681 | ||
24682 | #ifdef __STDC__ | |
24683 | # include <limits.h> | |
24684 | #else | |
24685 | # include <assert.h> | |
24686 | #endif | |
24687 | ||
24688 | #undef $ac_func | |
24689 | ||
24690 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24691 | #ifdef __cplusplus | |
24692 | extern "C" | |
24693 | { | |
24694 | #endif | |
24695 | /* We use char because int might match the return type of a gcc2 | |
24696 | builtin and then its argument prototype would still apply. */ | |
24697 | char $ac_func (); | |
24698 | /* The GNU C library defines this for functions which it implements | |
24699 | to always fail with ENOSYS. Some functions are actually named | |
24700 | something starting with __ and the normal name is an alias. */ | |
24701 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24702 | choke me | |
24703 | #else | |
24704 | char (*f) () = $ac_func; | |
24705 | #endif | |
24706 | #ifdef __cplusplus | |
24707 | } | |
24708 | #endif | |
24709 | ||
24710 | int | |
24711 | main () | |
24712 | { | |
24713 | return f != $ac_func; | |
24714 | ; | |
24715 | return 0; | |
24716 | } | |
24717 | _ACEOF | |
24718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24720 | (eval $ac_link) 2>conftest.er1 | |
24721 | ac_status=$? | |
24722 | grep -v '^ *+' conftest.er1 >conftest.err | |
24723 | rm -f conftest.er1 | |
24724 | cat conftest.err >&5 | |
24725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24726 | (exit $ac_status); } && | |
c9a66001 | 24727 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
24728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24729 | (eval $ac_try) 2>&5 | |
24730 | ac_status=$? | |
24731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24732 | (exit $ac_status); }; } && | |
24733 | { ac_try='test -s conftest$ac_exeext' | |
24734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24735 | (eval $ac_try) 2>&5 | |
24736 | ac_status=$? | |
24737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24738 | (exit $ac_status); }; }; then | |
24739 | eval "$as_ac_var=yes" | |
24740 | else | |
24741 | echo "$as_me: failed program was:" >&5 | |
24742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24743 | ||
24744 | eval "$as_ac_var=no" | |
24745 | fi | |
24746 | rm -f conftest.err conftest.$ac_objext \ | |
24747 | conftest$ac_exeext conftest.$ac_ext | |
24748 | fi | |
24749 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24750 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24751 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24752 | cat >>confdefs.h <<_ACEOF | |
24753 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24754 | _ACEOF | |
24755 | have_sin=1 | |
24756 | fi | |
24757 | done | |
24758 | ||
24759 | ||
24760 | for ac_func in ceil | |
24761 | do | |
24762 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24763 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24764 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24765 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24767 | else | |
24768 | cat >conftest.$ac_ext <<_ACEOF | |
24769 | /* confdefs.h. */ | |
24770 | _ACEOF | |
24771 | cat confdefs.h >>conftest.$ac_ext | |
24772 | cat >>conftest.$ac_ext <<_ACEOF | |
24773 | /* end confdefs.h. */ | |
24774 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24775 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24776 | #define $ac_func innocuous_$ac_func | |
24777 | ||
24778 | /* System header to define __stub macros and hopefully few prototypes, | |
24779 | which can conflict with char $ac_func (); below. | |
24780 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24781 | <limits.h> exists even on freestanding compilers. */ | |
24782 | ||
24783 | #ifdef __STDC__ | |
24784 | # include <limits.h> | |
24785 | #else | |
24786 | # include <assert.h> | |
24787 | #endif | |
24788 | ||
24789 | #undef $ac_func | |
24790 | ||
24791 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24792 | #ifdef __cplusplus | |
24793 | extern "C" | |
24794 | { | |
24795 | #endif | |
24796 | /* We use char because int might match the return type of a gcc2 | |
24797 | builtin and then its argument prototype would still apply. */ | |
24798 | char $ac_func (); | |
24799 | /* The GNU C library defines this for functions which it implements | |
24800 | to always fail with ENOSYS. Some functions are actually named | |
24801 | something starting with __ and the normal name is an alias. */ | |
24802 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24803 | choke me | |
24804 | #else | |
24805 | char (*f) () = $ac_func; | |
24806 | #endif | |
24807 | #ifdef __cplusplus | |
24808 | } | |
24809 | #endif | |
24810 | ||
24811 | int | |
24812 | main () | |
24813 | { | |
24814 | return f != $ac_func; | |
24815 | ; | |
24816 | return 0; | |
24817 | } | |
24818 | _ACEOF | |
24819 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24821 | (eval $ac_link) 2>conftest.er1 | |
24822 | ac_status=$? | |
24823 | grep -v '^ *+' conftest.er1 >conftest.err | |
24824 | rm -f conftest.er1 | |
24825 | cat conftest.err >&5 | |
24826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24827 | (exit $ac_status); } && | |
c9a66001 | 24828 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
24829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24830 | (eval $ac_try) 2>&5 | |
24831 | ac_status=$? | |
24832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24833 | (exit $ac_status); }; } && | |
24834 | { ac_try='test -s conftest$ac_exeext' | |
24835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24836 | (eval $ac_try) 2>&5 | |
24837 | ac_status=$? | |
24838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24839 | (exit $ac_status); }; }; then | |
24840 | eval "$as_ac_var=yes" | |
24841 | else | |
24842 | echo "$as_me: failed program was:" >&5 | |
24843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24844 | ||
24845 | eval "$as_ac_var=no" | |
24846 | fi | |
24847 | rm -f conftest.err conftest.$ac_objext \ | |
24848 | conftest$ac_exeext conftest.$ac_ext | |
24849 | fi | |
24850 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24851 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24852 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24853 | cat >>confdefs.h <<_ACEOF | |
24854 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24855 | _ACEOF | |
24856 | have_ceil=1 | |
24857 | fi | |
24858 | done | |
24859 | ||
24860 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
24861 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
24862 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
24863 | echo "$as_me:$LINENO: result: yes" >&5 | |
24864 | echo "${ECHO_T}yes" >&6 | |
24865 | else | |
24866 | echo "$as_me:$LINENO: result: no" >&5 | |
24867 | echo "${ECHO_T}no" >&6 | |
24868 | # not sure we should warn the user, crash, etc. | |
24869 | fi | |
24870 | fi | |
24871 | ||
24872 | ||
24873 | ||
24874 | if test "$wxUSE_REGEX" != "no"; then | |
24875 | cat >>confdefs.h <<\_ACEOF | |
24876 | #define wxUSE_REGEX 1 | |
24877 | _ACEOF | |
24878 | ||
24879 | ||
24880 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
24881 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
24882 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
24883 | wxUSE_REGEX=builtin | |
24884 | fi | |
24885 | ||
24886 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
24887 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24888 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24889 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24890 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24892 | fi | |
24893 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24894 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24895 | else | |
24896 | # Is the header compilable? | |
24897 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
24898 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
24899 | cat >conftest.$ac_ext <<_ACEOF | |
24900 | /* confdefs.h. */ | |
24901 | _ACEOF | |
24902 | cat confdefs.h >>conftest.$ac_ext | |
24903 | cat >>conftest.$ac_ext <<_ACEOF | |
24904 | /* end confdefs.h. */ | |
24905 | $ac_includes_default | |
24906 | #include <regex.h> | |
24907 | _ACEOF | |
24908 | rm -f conftest.$ac_objext | |
24909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24910 | (eval $ac_compile) 2>conftest.er1 | |
24911 | ac_status=$? | |
24912 | grep -v '^ *+' conftest.er1 >conftest.err | |
24913 | rm -f conftest.er1 | |
24914 | cat conftest.err >&5 | |
24915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24916 | (exit $ac_status); } && | |
c9a66001 | 24917 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
24918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24919 | (eval $ac_try) 2>&5 | |
24920 | ac_status=$? | |
24921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24922 | (exit $ac_status); }; } && | |
24923 | { ac_try='test -s conftest.$ac_objext' | |
24924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24925 | (eval $ac_try) 2>&5 | |
24926 | ac_status=$? | |
24927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24928 | (exit $ac_status); }; }; then | |
24929 | ac_header_compiler=yes | |
24930 | else | |
24931 | echo "$as_me: failed program was:" >&5 | |
24932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24933 | ||
24934 | ac_header_compiler=no | |
24935 | fi | |
24936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24937 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24938 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24939 | ||
24940 | # Is the header present? | |
24941 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
24942 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
24943 | cat >conftest.$ac_ext <<_ACEOF | |
24944 | /* confdefs.h. */ | |
24945 | _ACEOF | |
24946 | cat confdefs.h >>conftest.$ac_ext | |
24947 | cat >>conftest.$ac_ext <<_ACEOF | |
24948 | /* end confdefs.h. */ | |
24949 | #include <regex.h> | |
24950 | _ACEOF | |
24951 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24952 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24953 | ac_status=$? | |
24954 | grep -v '^ *+' conftest.er1 >conftest.err | |
24955 | rm -f conftest.er1 | |
24956 | cat conftest.err >&5 | |
24957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24958 | (exit $ac_status); } >/dev/null; then | |
24959 | if test -s conftest.err; then | |
24960 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
24961 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
24962 | else | |
24963 | ac_cpp_err= | |
24964 | fi | |
24965 | else | |
24966 | ac_cpp_err=yes | |
24967 | fi | |
24968 | if test -z "$ac_cpp_err"; then | |
24969 | ac_header_preproc=yes | |
24970 | else | |
24971 | echo "$as_me: failed program was:" >&5 | |
24972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24973 | ||
24974 | ac_header_preproc=no | |
24975 | fi | |
24976 | rm -f conftest.err conftest.$ac_ext | |
24977 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24978 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24979 | ||
24980 | # So? What about this header? | |
24981 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
24982 | yes:no: ) | |
24983 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24984 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24985 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 | |
24986 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
24987 | ac_header_preproc=yes | |
24988 | ;; | |
24989 | no:yes:* ) | |
24990 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
24991 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
24992 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
24993 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
24994 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
24995 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
24996 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24997 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
24998 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
24999 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
25000 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 | |
25001 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
25002 | ( | |
25003 | cat <<\_ASBOX | |
25004 | ## ----------------------------------------- ## | |
25005 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25006 | ## ----------------------------------------- ## | |
25007 | _ASBOX | |
25008 | ) | | |
25009 | sed "s/^/$as_me: WARNING: /" >&2 | |
25010 | ;; | |
25011 | esac | |
25012 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
25013 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
25014 | if test "${ac_cv_header_regex_h+set}" = set; then | |
25015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25016 | else | |
25017 | ac_cv_header_regex_h=$ac_header_preproc | |
25018 | fi | |
25019 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
25020 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
25021 | ||
25022 | fi | |
25023 | if test $ac_cv_header_regex_h = yes; then | |
25024 | ||
25025 | ||
25026 | for ac_func in regcomp re_search | |
25027 | do | |
25028 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25029 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25030 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25031 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25033 | else | |
25034 | cat >conftest.$ac_ext <<_ACEOF | |
25035 | /* confdefs.h. */ | |
25036 | _ACEOF | |
25037 | cat confdefs.h >>conftest.$ac_ext | |
25038 | cat >>conftest.$ac_ext <<_ACEOF | |
25039 | /* end confdefs.h. */ | |
25040 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25041 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25042 | #define $ac_func innocuous_$ac_func | |
25043 | ||
25044 | /* System header to define __stub macros and hopefully few prototypes, | |
25045 | which can conflict with char $ac_func (); below. | |
25046 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25047 | <limits.h> exists even on freestanding compilers. */ | |
25048 | ||
25049 | #ifdef __STDC__ | |
25050 | # include <limits.h> | |
25051 | #else | |
25052 | # include <assert.h> | |
25053 | #endif | |
25054 | ||
25055 | #undef $ac_func | |
25056 | ||
25057 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25058 | #ifdef __cplusplus | |
25059 | extern "C" | |
25060 | { | |
25061 | #endif | |
25062 | /* We use char because int might match the return type of a gcc2 | |
25063 | builtin and then its argument prototype would still apply. */ | |
25064 | char $ac_func (); | |
25065 | /* The GNU C library defines this for functions which it implements | |
25066 | to always fail with ENOSYS. Some functions are actually named | |
25067 | something starting with __ and the normal name is an alias. */ | |
25068 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25069 | choke me | |
25070 | #else | |
25071 | char (*f) () = $ac_func; | |
25072 | #endif | |
25073 | #ifdef __cplusplus | |
25074 | } | |
25075 | #endif | |
25076 | ||
25077 | int | |
25078 | main () | |
25079 | { | |
25080 | return f != $ac_func; | |
25081 | ; | |
25082 | return 0; | |
25083 | } | |
25084 | _ACEOF | |
25085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25087 | (eval $ac_link) 2>conftest.er1 | |
25088 | ac_status=$? | |
25089 | grep -v '^ *+' conftest.er1 >conftest.err | |
25090 | rm -f conftest.er1 | |
25091 | cat conftest.err >&5 | |
25092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25093 | (exit $ac_status); } && | |
c9a66001 | 25094 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25096 | (eval $ac_try) 2>&5 | |
25097 | ac_status=$? | |
25098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25099 | (exit $ac_status); }; } && | |
25100 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25102 | (eval $ac_try) 2>&5 | |
25103 | ac_status=$? | |
25104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25105 | (exit $ac_status); }; }; then | |
25106 | eval "$as_ac_var=yes" | |
25107 | else | |
25108 | echo "$as_me: failed program was:" >&5 | |
25109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25110 | ||
25111 | eval "$as_ac_var=no" | |
25112 | fi | |
ac1cb8d3 VS |
25113 | rm -f conftest.err conftest.$ac_objext \ |
25114 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25115 | fi |
25116 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25117 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25118 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25119 | cat >>confdefs.h <<_ACEOF | |
25120 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25121 | _ACEOF | |
25122 | ||
25123 | fi | |
25124 | done | |
25125 | ||
25126 | fi | |
25127 | ||
25128 | ||
25129 | ||
25130 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
25131 | if test "$wxUSE_REGEX" = "sys" ; then | |
25132 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
25133 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
25134 | { (exit 1); exit 1; }; } | |
25135 | else | |
25136 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
25137 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
25138 | wxUSE_REGEX=builtin | |
25139 | fi | |
25140 | else | |
25141 | wxUSE_REGEX=sys | |
25142 | cat >>confdefs.h <<\_ACEOF | |
25143 | #define WX_NO_REGEX_ADVANCED 1 | |
25144 | _ACEOF | |
25145 | ||
25146 | fi | |
25147 | fi | |
25148 | fi | |
25149 | ||
25150 | ||
25151 | ZLIB_LINK= | |
25152 | if test "$wxUSE_ZLIB" != "no" ; then | |
25153 | cat >>confdefs.h <<\_ACEOF | |
25154 | #define wxUSE_ZLIB 1 | |
25155 | _ACEOF | |
25156 | ||
25157 | ||
25158 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
25159 | if test "$USE_DARWIN" = 1; then | |
25160 | system_zlib_h_ok="yes" | |
25161 | else | |
25162 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
25163 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
25164 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25166 | else | |
25167 | if test "$cross_compiling" = yes; then | |
25168 | unset ac_cv_header_zlib_h | |
25169 | ||
25170 | else | |
25171 | cat >conftest.$ac_ext <<_ACEOF | |
25172 | /* confdefs.h. */ | |
25173 | _ACEOF | |
25174 | cat confdefs.h >>conftest.$ac_ext | |
25175 | cat >>conftest.$ac_ext <<_ACEOF | |
25176 | /* end confdefs.h. */ | |
25177 | ||
25178 | #include <zlib.h> | |
25179 | #include <stdio.h> | |
25180 | ||
25181 | int main() | |
25182 | { | |
25183 | FILE *f=fopen("conftestval", "w"); | |
25184 | if (!f) exit(1); | |
25185 | fprintf(f, "%s", | |
25186 | ZLIB_VERSION[0] == '1' && | |
25187 | (ZLIB_VERSION[2] > '1' || | |
25188 | (ZLIB_VERSION[2] == '1' && | |
25189 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
25190 | exit(0); | |
25191 | } | |
25192 | ||
25193 | _ACEOF | |
25194 | rm -f conftest$ac_exeext | |
25195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25196 | (eval $ac_link) 2>&5 | |
25197 | ac_status=$? | |
25198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25199 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25201 | (eval $ac_try) 2>&5 | |
25202 | ac_status=$? | |
25203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25204 | (exit $ac_status); }; }; then | |
25205 | ac_cv_header_zlib_h=`cat conftestval` | |
25206 | else | |
25207 | echo "$as_me: program exited with status $ac_status" >&5 | |
25208 | echo "$as_me: failed program was:" >&5 | |
25209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25210 | ||
25211 | ( exit $ac_status ) | |
25212 | ac_cv_header_zlib_h=no | |
25213 | fi | |
ac1cb8d3 | 25214 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25215 | fi |
25216 | ||
25217 | fi | |
25218 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
25219 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
25220 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25221 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
25222 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
25223 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25225 | fi | |
25226 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
25227 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
25228 | else | |
25229 | # Is the header compilable? | |
25230 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
25231 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
25232 | cat >conftest.$ac_ext <<_ACEOF | |
25233 | /* confdefs.h. */ | |
25234 | _ACEOF | |
25235 | cat confdefs.h >>conftest.$ac_ext | |
25236 | cat >>conftest.$ac_ext <<_ACEOF | |
25237 | /* end confdefs.h. */ | |
25238 | $ac_includes_default | |
25239 | #include <zlib.h> | |
25240 | _ACEOF | |
25241 | rm -f conftest.$ac_objext | |
25242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25243 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25244 | ac_status=$? |
ac1cb8d3 VS |
25245 | grep -v '^ *+' conftest.er1 >conftest.err |
25246 | rm -f conftest.er1 | |
25247 | cat conftest.err >&5 | |
a848cd7e SC |
25248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25249 | (exit $ac_status); } && | |
c9a66001 | 25250 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25252 | (eval $ac_try) 2>&5 | |
25253 | ac_status=$? | |
25254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25255 | (exit $ac_status); }; } && | |
25256 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25258 | (eval $ac_try) 2>&5 | |
25259 | ac_status=$? | |
25260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25261 | (exit $ac_status); }; }; then | |
25262 | ac_header_compiler=yes | |
25263 | else | |
25264 | echo "$as_me: failed program was:" >&5 | |
25265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25266 | ||
25267 | ac_header_compiler=no | |
25268 | fi | |
ac1cb8d3 | 25269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25270 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25271 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25272 | ||
25273 | # Is the header present? | |
25274 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
25275 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
25276 | cat >conftest.$ac_ext <<_ACEOF | |
25277 | /* confdefs.h. */ | |
25278 | _ACEOF | |
25279 | cat confdefs.h >>conftest.$ac_ext | |
25280 | cat >>conftest.$ac_ext <<_ACEOF | |
25281 | /* end confdefs.h. */ | |
25282 | #include <zlib.h> | |
25283 | _ACEOF | |
25284 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25285 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25286 | ac_status=$? | |
25287 | grep -v '^ *+' conftest.er1 >conftest.err | |
25288 | rm -f conftest.er1 | |
25289 | cat conftest.err >&5 | |
25290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25291 | (exit $ac_status); } >/dev/null; then | |
25292 | if test -s conftest.err; then | |
5d7b7554 VZ |
25293 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25294 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25295 | else |
25296 | ac_cpp_err= | |
25297 | fi | |
25298 | else | |
25299 | ac_cpp_err=yes | |
25300 | fi | |
25301 | if test -z "$ac_cpp_err"; then | |
25302 | ac_header_preproc=yes | |
25303 | else | |
25304 | echo "$as_me: failed program was:" >&5 | |
25305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25306 | ||
25307 | ac_header_preproc=no | |
25308 | fi | |
25309 | rm -f conftest.err conftest.$ac_ext | |
25310 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25311 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25312 | ||
25313 | # So? What about this header? | |
5d7b7554 | 25314 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25315 | yes:no: ) |
a848cd7e SC |
25316 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25317 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25318 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
25319 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
25320 | ac_header_preproc=yes | |
a848cd7e | 25321 | ;; |
ac1cb8d3 | 25322 | no:yes:* ) |
a848cd7e SC |
25323 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
25324 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25325 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
25326 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
25327 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
25328 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
25329 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25330 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25331 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
25332 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25333 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
25334 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25335 | ( |
25336 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25337 | ## ----------------------------------------- ## |
25338 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25339 | ## ----------------------------------------- ## | |
a848cd7e SC |
25340 | _ASBOX |
25341 | ) | | |
25342 | sed "s/^/$as_me: WARNING: /" >&2 | |
25343 | ;; | |
25344 | esac | |
25345 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
25346 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
25347 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25349 | else | |
25350 | ac_cv_header_zlib_h=$ac_header_preproc | |
25351 | fi | |
25352 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
25353 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
25354 | ||
25355 | fi | |
25356 | ||
25357 | ||
25358 | ||
25359 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
25360 | fi | |
25361 | ||
25362 | if test "$system_zlib_h_ok" = "yes"; then | |
25363 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
25364 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
25365 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
25366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25367 | else | |
25368 | ac_check_lib_save_LIBS=$LIBS | |
25369 | LIBS="-lz $LIBS" | |
25370 | cat >conftest.$ac_ext <<_ACEOF | |
25371 | /* confdefs.h. */ | |
25372 | _ACEOF | |
25373 | cat confdefs.h >>conftest.$ac_ext | |
25374 | cat >>conftest.$ac_ext <<_ACEOF | |
25375 | /* end confdefs.h. */ | |
25376 | ||
25377 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25378 | #ifdef __cplusplus | |
25379 | extern "C" | |
25380 | #endif | |
25381 | /* We use char because int might match the return type of a gcc2 | |
25382 | builtin and then its argument prototype would still apply. */ | |
25383 | char deflate (); | |
25384 | int | |
25385 | main () | |
25386 | { | |
25387 | deflate (); | |
25388 | ; | |
25389 | return 0; | |
25390 | } | |
25391 | _ACEOF | |
25392 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25394 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25395 | ac_status=$? |
ac1cb8d3 VS |
25396 | grep -v '^ *+' conftest.er1 >conftest.err |
25397 | rm -f conftest.er1 | |
25398 | cat conftest.err >&5 | |
a848cd7e SC |
25399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25400 | (exit $ac_status); } && | |
c9a66001 | 25401 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25403 | (eval $ac_try) 2>&5 | |
25404 | ac_status=$? | |
25405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25406 | (exit $ac_status); }; } && | |
25407 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25409 | (eval $ac_try) 2>&5 | |
25410 | ac_status=$? | |
25411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25412 | (exit $ac_status); }; }; then | |
25413 | ac_cv_lib_z_deflate=yes | |
25414 | else | |
25415 | echo "$as_me: failed program was:" >&5 | |
25416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25417 | ||
25418 | ac_cv_lib_z_deflate=no | |
25419 | fi | |
ac1cb8d3 VS |
25420 | rm -f conftest.err conftest.$ac_objext \ |
25421 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25422 | LIBS=$ac_check_lib_save_LIBS |
25423 | fi | |
25424 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
25425 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
25426 | if test $ac_cv_lib_z_deflate = yes; then | |
25427 | ZLIB_LINK=" -lz" | |
25428 | fi | |
25429 | ||
25430 | fi | |
25431 | ||
25432 | if test "x$ZLIB_LINK" = "x" ; then | |
25433 | if test "$wxUSE_ZLIB" = "sys" ; then | |
25434 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
25435 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
25436 | { (exit 1); exit 1; }; } | |
25437 | else | |
25438 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
25439 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
25440 | wxUSE_ZLIB=builtin | |
25441 | fi | |
25442 | else | |
25443 | wxUSE_ZLIB=sys | |
25444 | fi | |
25445 | fi | |
25446 | fi | |
25447 | ||
25448 | ||
25449 | PNG_LINK= | |
25450 | if test "$wxUSE_LIBPNG" != "no" ; then | |
25451 | cat >>confdefs.h <<\_ACEOF | |
25452 | #define wxUSE_LIBPNG 1 | |
25453 | _ACEOF | |
25454 | ||
25455 | ||
25456 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
25457 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
25458 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
25459 | wxUSE_LIBPNG=sys | |
25460 | fi | |
25461 | ||
25462 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
25463 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
25464 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
25465 | wxUSE_LIBPNG=builtin | |
25466 | fi | |
25467 | ||
25468 | if test "$wxUSE_MGL" != 1 ; then | |
25469 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
25470 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
25471 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
25472 | if test "${ac_cv_header_png_h+set}" = set; then | |
25473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25474 | else | |
25475 | if test "$cross_compiling" = yes; then | |
25476 | unset ac_cv_header_png_h | |
25477 | ||
25478 | else | |
25479 | cat >conftest.$ac_ext <<_ACEOF | |
25480 | /* confdefs.h. */ | |
25481 | _ACEOF | |
25482 | cat confdefs.h >>conftest.$ac_ext | |
25483 | cat >>conftest.$ac_ext <<_ACEOF | |
25484 | /* end confdefs.h. */ | |
25485 | ||
25486 | #include <png.h> | |
25487 | #include <stdio.h> | |
25488 | ||
25489 | int main() | |
25490 | { | |
25491 | FILE *f=fopen("conftestval", "w"); | |
25492 | if (!f) exit(1); | |
25493 | fprintf(f, "%s", | |
25494 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
25495 | exit(0); | |
25496 | } | |
25497 | ||
25498 | _ACEOF | |
25499 | rm -f conftest$ac_exeext | |
25500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25501 | (eval $ac_link) 2>&5 | |
25502 | ac_status=$? | |
25503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25504 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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_header_png_h=`cat conftestval` | |
25511 | else | |
25512 | echo "$as_me: program exited with status $ac_status" >&5 | |
25513 | echo "$as_me: failed program was:" >&5 | |
25514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25515 | ||
25516 | ( exit $ac_status ) | |
25517 | ac_cv_header_png_h=no | |
25518 | fi | |
ac1cb8d3 | 25519 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25520 | fi |
25521 | ||
25522 | fi | |
25523 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25524 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25525 | if test "${ac_cv_header_png_h+set}" = set; then | |
25526 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
25527 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
25528 | if test "${ac_cv_header_png_h+set}" = set; then | |
25529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25530 | fi | |
25531 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25532 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25533 | else | |
25534 | # Is the header compilable? | |
25535 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
25536 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
25537 | cat >conftest.$ac_ext <<_ACEOF | |
25538 | /* confdefs.h. */ | |
25539 | _ACEOF | |
25540 | cat confdefs.h >>conftest.$ac_ext | |
25541 | cat >>conftest.$ac_ext <<_ACEOF | |
25542 | /* end confdefs.h. */ | |
25543 | $ac_includes_default | |
25544 | #include <png.h> | |
25545 | _ACEOF | |
25546 | rm -f conftest.$ac_objext | |
25547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25548 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25549 | ac_status=$? |
ac1cb8d3 VS |
25550 | grep -v '^ *+' conftest.er1 >conftest.err |
25551 | rm -f conftest.er1 | |
25552 | cat conftest.err >&5 | |
a848cd7e SC |
25553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25554 | (exit $ac_status); } && | |
c9a66001 | 25555 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25557 | (eval $ac_try) 2>&5 | |
25558 | ac_status=$? | |
25559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25560 | (exit $ac_status); }; } && | |
25561 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25563 | (eval $ac_try) 2>&5 | |
25564 | ac_status=$? | |
25565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25566 | (exit $ac_status); }; }; then | |
25567 | ac_header_compiler=yes | |
25568 | else | |
25569 | echo "$as_me: failed program was:" >&5 | |
25570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25571 | ||
25572 | ac_header_compiler=no | |
25573 | fi | |
ac1cb8d3 | 25574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25575 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25576 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25577 | ||
25578 | # Is the header present? | |
25579 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
25580 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
25581 | cat >conftest.$ac_ext <<_ACEOF | |
25582 | /* confdefs.h. */ | |
25583 | _ACEOF | |
25584 | cat confdefs.h >>conftest.$ac_ext | |
25585 | cat >>conftest.$ac_ext <<_ACEOF | |
25586 | /* end confdefs.h. */ | |
25587 | #include <png.h> | |
25588 | _ACEOF | |
25589 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25590 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25591 | ac_status=$? | |
25592 | grep -v '^ *+' conftest.er1 >conftest.err | |
25593 | rm -f conftest.er1 | |
25594 | cat conftest.err >&5 | |
25595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25596 | (exit $ac_status); } >/dev/null; then | |
25597 | if test -s conftest.err; then | |
5d7b7554 VZ |
25598 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25599 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25600 | else |
25601 | ac_cpp_err= | |
25602 | fi | |
25603 | else | |
25604 | ac_cpp_err=yes | |
25605 | fi | |
25606 | if test -z "$ac_cpp_err"; then | |
25607 | ac_header_preproc=yes | |
25608 | else | |
25609 | echo "$as_me: failed program was:" >&5 | |
25610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25611 | ||
25612 | ac_header_preproc=no | |
25613 | fi | |
25614 | rm -f conftest.err conftest.$ac_ext | |
25615 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25616 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25617 | ||
25618 | # So? What about this header? | |
5d7b7554 | 25619 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25620 | yes:no: ) |
a848cd7e SC |
25621 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25622 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25623 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
25624 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
25625 | ac_header_preproc=yes | |
a848cd7e | 25626 | ;; |
ac1cb8d3 | 25627 | no:yes:* ) |
a848cd7e SC |
25628 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
25629 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25630 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
25631 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
25632 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
25633 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
25634 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25635 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25636 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
25637 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25638 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
25639 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25640 | ( |
25641 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25642 | ## ----------------------------------------- ## |
25643 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25644 | ## ----------------------------------------- ## | |
a848cd7e SC |
25645 | _ASBOX |
25646 | ) | | |
25647 | sed "s/^/$as_me: WARNING: /" >&2 | |
25648 | ;; | |
25649 | esac | |
25650 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
25651 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
25652 | if test "${ac_cv_header_png_h+set}" = set; then | |
25653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25654 | else | |
25655 | ac_cv_header_png_h=$ac_header_preproc | |
25656 | fi | |
25657 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25658 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25659 | ||
25660 | fi | |
25661 | ||
25662 | ||
25663 | ||
25664 | if test "$ac_cv_header_png_h" = "yes"; then | |
25665 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
25666 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
25667 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
25668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25669 | else | |
25670 | ac_check_lib_save_LIBS=$LIBS | |
25671 | LIBS="-lpng -lz -lm $LIBS" | |
25672 | cat >conftest.$ac_ext <<_ACEOF | |
25673 | /* confdefs.h. */ | |
25674 | _ACEOF | |
25675 | cat confdefs.h >>conftest.$ac_ext | |
25676 | cat >>conftest.$ac_ext <<_ACEOF | |
25677 | /* end confdefs.h. */ | |
25678 | ||
25679 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25680 | #ifdef __cplusplus | |
25681 | extern "C" | |
25682 | #endif | |
25683 | /* We use char because int might match the return type of a gcc2 | |
25684 | builtin and then its argument prototype would still apply. */ | |
25685 | char png_check_sig (); | |
25686 | int | |
25687 | main () | |
25688 | { | |
25689 | png_check_sig (); | |
25690 | ; | |
25691 | return 0; | |
25692 | } | |
25693 | _ACEOF | |
25694 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25696 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25697 | ac_status=$? |
ac1cb8d3 VS |
25698 | grep -v '^ *+' conftest.er1 >conftest.err |
25699 | rm -f conftest.er1 | |
25700 | cat conftest.err >&5 | |
a848cd7e SC |
25701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25702 | (exit $ac_status); } && | |
c9a66001 | 25703 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25705 | (eval $ac_try) 2>&5 | |
25706 | ac_status=$? | |
25707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25708 | (exit $ac_status); }; } && | |
25709 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25711 | (eval $ac_try) 2>&5 | |
25712 | ac_status=$? | |
25713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25714 | (exit $ac_status); }; }; then | |
25715 | ac_cv_lib_png_png_check_sig=yes | |
25716 | else | |
25717 | echo "$as_me: failed program was:" >&5 | |
25718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25719 | ||
25720 | ac_cv_lib_png_png_check_sig=no | |
25721 | fi | |
ac1cb8d3 VS |
25722 | rm -f conftest.err conftest.$ac_objext \ |
25723 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25724 | LIBS=$ac_check_lib_save_LIBS |
25725 | fi | |
25726 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
25727 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
25728 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
25729 | PNG_LINK=" -lpng -lz" | |
25730 | fi | |
25731 | ||
25732 | fi | |
25733 | ||
25734 | if test "x$PNG_LINK" = "x" ; then | |
25735 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
25736 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
25737 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
25738 | { (exit 1); exit 1; }; } | |
25739 | else | |
25740 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
25741 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
25742 | wxUSE_LIBPNG=builtin | |
25743 | fi | |
25744 | else | |
25745 | wxUSE_LIBPNG=sys | |
25746 | fi | |
25747 | fi | |
25748 | fi | |
25749 | ||
25750 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
25751 | fi | |
25752 | ||
25753 | ||
25754 | JPEG_LINK= | |
25755 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
25756 | cat >>confdefs.h <<\_ACEOF | |
25757 | #define wxUSE_LIBJPEG 1 | |
25758 | _ACEOF | |
25759 | ||
25760 | ||
25761 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
25762 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
25763 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
25764 | wxUSE_LIBJPEG=sys | |
25765 | fi | |
25766 | ||
25767 | if test "$wxUSE_MGL" != 1 ; then | |
25768 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
25769 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
25770 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
25771 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
25772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25773 | else | |
25774 | cat >conftest.$ac_ext <<_ACEOF | |
25775 | /* confdefs.h. */ | |
25776 | _ACEOF | |
25777 | cat confdefs.h >>conftest.$ac_ext | |
25778 | cat >>conftest.$ac_ext <<_ACEOF | |
25779 | /* end confdefs.h. */ | |
25780 | ||
25781 | #undef HAVE_STDLIB_H | |
25782 | #include <stdio.h> | |
25783 | #include <jpeglib.h> | |
25784 | ||
25785 | int | |
25786 | main () | |
25787 | { | |
25788 | ||
25789 | ||
25790 | ; | |
25791 | return 0; | |
25792 | } | |
25793 | _ACEOF | |
25794 | rm -f conftest.$ac_objext | |
25795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25796 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25797 | ac_status=$? |
ac1cb8d3 VS |
25798 | grep -v '^ *+' conftest.er1 >conftest.err |
25799 | rm -f conftest.er1 | |
25800 | cat conftest.err >&5 | |
a848cd7e SC |
25801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25802 | (exit $ac_status); } && | |
c9a66001 | 25803 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25805 | (eval $ac_try) 2>&5 | |
25806 | ac_status=$? | |
25807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25808 | (exit $ac_status); }; } && | |
25809 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25811 | (eval $ac_try) 2>&5 | |
25812 | ac_status=$? | |
25813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25814 | (exit $ac_status); }; }; then | |
25815 | ac_cv_header_jpeglib_h=yes | |
25816 | else | |
25817 | echo "$as_me: failed program was:" >&5 | |
25818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25819 | ||
25820 | ac_cv_header_jpeglib_h=no | |
25821 | ||
25822 | fi | |
ac1cb8d3 | 25823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25824 | |
25825 | fi | |
25826 | ||
25827 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
25828 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
25829 | ||
25830 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
25831 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
25832 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
25833 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
25834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25835 | else | |
25836 | ac_check_lib_save_LIBS=$LIBS | |
25837 | LIBS="-ljpeg $LIBS" | |
25838 | cat >conftest.$ac_ext <<_ACEOF | |
25839 | /* confdefs.h. */ | |
25840 | _ACEOF | |
25841 | cat confdefs.h >>conftest.$ac_ext | |
25842 | cat >>conftest.$ac_ext <<_ACEOF | |
25843 | /* end confdefs.h. */ | |
25844 | ||
25845 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25846 | #ifdef __cplusplus | |
25847 | extern "C" | |
25848 | #endif | |
25849 | /* We use char because int might match the return type of a gcc2 | |
25850 | builtin and then its argument prototype would still apply. */ | |
25851 | char jpeg_read_header (); | |
25852 | int | |
25853 | main () | |
25854 | { | |
25855 | jpeg_read_header (); | |
25856 | ; | |
25857 | return 0; | |
25858 | } | |
25859 | _ACEOF | |
25860 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25862 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25863 | ac_status=$? |
ac1cb8d3 VS |
25864 | grep -v '^ *+' conftest.er1 >conftest.err |
25865 | rm -f conftest.er1 | |
25866 | cat conftest.err >&5 | |
a848cd7e SC |
25867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25868 | (exit $ac_status); } && | |
c9a66001 | 25869 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25871 | (eval $ac_try) 2>&5 | |
25872 | ac_status=$? | |
25873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25874 | (exit $ac_status); }; } && | |
25875 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25877 | (eval $ac_try) 2>&5 | |
25878 | ac_status=$? | |
25879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25880 | (exit $ac_status); }; }; then | |
25881 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
25882 | else | |
25883 | echo "$as_me: failed program was:" >&5 | |
25884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25885 | ||
25886 | ac_cv_lib_jpeg_jpeg_read_header=no | |
25887 | fi | |
ac1cb8d3 VS |
25888 | rm -f conftest.err conftest.$ac_objext \ |
25889 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25890 | LIBS=$ac_check_lib_save_LIBS |
25891 | fi | |
25892 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
25893 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
25894 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
25895 | JPEG_LINK=" -ljpeg" | |
25896 | fi | |
25897 | ||
25898 | fi | |
25899 | ||
25900 | if test "x$JPEG_LINK" = "x" ; then | |
25901 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
25902 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
25903 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
25904 | { (exit 1); exit 1; }; } | |
25905 | else | |
25906 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
25907 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
25908 | wxUSE_LIBJPEG=builtin | |
25909 | fi | |
25910 | else | |
25911 | wxUSE_LIBJPEG=sys | |
25912 | fi | |
25913 | fi | |
25914 | fi | |
25915 | fi | |
25916 | ||
25917 | ||
25918 | TIFF_LINK= | |
25919 | TIFF_PREREQ_LINKS=-lm | |
25920 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
25921 | cat >>confdefs.h <<\_ACEOF | |
25922 | #define wxUSE_LIBTIFF 1 | |
25923 | _ACEOF | |
25924 | ||
25925 | ||
25926 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
25927 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
25928 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
25929 | fi | |
25930 | if test "$wxUSE_ZLIB" = "sys"; then | |
25931 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
25932 | fi | |
25933 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25934 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25935 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25936 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25938 | fi | |
25939 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25940 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25941 | else | |
25942 | # Is the header compilable? | |
25943 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
25944 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
25945 | cat >conftest.$ac_ext <<_ACEOF | |
25946 | /* confdefs.h. */ | |
25947 | _ACEOF | |
25948 | cat confdefs.h >>conftest.$ac_ext | |
25949 | cat >>conftest.$ac_ext <<_ACEOF | |
25950 | /* end confdefs.h. */ | |
25951 | $ac_includes_default | |
25952 | #include <tiffio.h> | |
25953 | _ACEOF | |
25954 | rm -f conftest.$ac_objext | |
25955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25956 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25957 | ac_status=$? |
ac1cb8d3 VS |
25958 | grep -v '^ *+' conftest.er1 >conftest.err |
25959 | rm -f conftest.er1 | |
25960 | cat conftest.err >&5 | |
a848cd7e SC |
25961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25962 | (exit $ac_status); } && | |
c9a66001 | 25963 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25965 | (eval $ac_try) 2>&5 | |
25966 | ac_status=$? | |
25967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25968 | (exit $ac_status); }; } && | |
25969 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
25975 | ac_header_compiler=yes | |
25976 | else | |
25977 | echo "$as_me: failed program was:" >&5 | |
25978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25979 | ||
25980 | ac_header_compiler=no | |
25981 | fi | |
ac1cb8d3 | 25982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25983 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25984 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25985 | ||
25986 | # Is the header present? | |
25987 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
25988 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
25989 | cat >conftest.$ac_ext <<_ACEOF | |
25990 | /* confdefs.h. */ | |
25991 | _ACEOF | |
25992 | cat confdefs.h >>conftest.$ac_ext | |
25993 | cat >>conftest.$ac_ext <<_ACEOF | |
25994 | /* end confdefs.h. */ | |
25995 | #include <tiffio.h> | |
25996 | _ACEOF | |
25997 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25998 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25999 | ac_status=$? | |
26000 | grep -v '^ *+' conftest.er1 >conftest.err | |
26001 | rm -f conftest.er1 | |
26002 | cat conftest.err >&5 | |
26003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26004 | (exit $ac_status); } >/dev/null; then | |
26005 | if test -s conftest.err; then | |
5d7b7554 VZ |
26006 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26007 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26008 | else |
26009 | ac_cpp_err= | |
26010 | fi | |
26011 | else | |
26012 | ac_cpp_err=yes | |
26013 | fi | |
26014 | if test -z "$ac_cpp_err"; then | |
26015 | ac_header_preproc=yes | |
26016 | else | |
26017 | echo "$as_me: failed program was:" >&5 | |
26018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26019 | ||
26020 | ac_header_preproc=no | |
26021 | fi | |
26022 | rm -f conftest.err conftest.$ac_ext | |
26023 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26024 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26025 | ||
26026 | # So? What about this header? | |
5d7b7554 | 26027 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26028 | yes:no: ) |
a848cd7e SC |
26029 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26030 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26031 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
26032 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
26033 | ac_header_preproc=yes | |
a848cd7e | 26034 | ;; |
ac1cb8d3 | 26035 | no:yes:* ) |
a848cd7e SC |
26036 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
26037 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26038 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
26039 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
26040 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
26041 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
26042 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26043 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26044 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
26045 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26046 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
26047 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26048 | ( |
26049 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26050 | ## ----------------------------------------- ## |
26051 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26052 | ## ----------------------------------------- ## | |
a848cd7e SC |
26053 | _ASBOX |
26054 | ) | | |
26055 | sed "s/^/$as_me: WARNING: /" >&2 | |
26056 | ;; | |
26057 | esac | |
26058 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
26059 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
26060 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
26061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26062 | else | |
26063 | ac_cv_header_tiffio_h=$ac_header_preproc | |
26064 | fi | |
26065 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
26066 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
26067 | ||
26068 | fi | |
26069 | if test $ac_cv_header_tiffio_h = yes; then | |
26070 | ||
26071 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
26072 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
26073 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
26074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26075 | else | |
26076 | ac_check_lib_save_LIBS=$LIBS | |
26077 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
26078 | cat >conftest.$ac_ext <<_ACEOF | |
26079 | /* confdefs.h. */ | |
26080 | _ACEOF | |
26081 | cat confdefs.h >>conftest.$ac_ext | |
26082 | cat >>conftest.$ac_ext <<_ACEOF | |
26083 | /* end confdefs.h. */ | |
26084 | ||
26085 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26086 | #ifdef __cplusplus | |
26087 | extern "C" | |
26088 | #endif | |
26089 | /* We use char because int might match the return type of a gcc2 | |
26090 | builtin and then its argument prototype would still apply. */ | |
26091 | char TIFFError (); | |
26092 | int | |
26093 | main () | |
26094 | { | |
26095 | TIFFError (); | |
26096 | ; | |
26097 | return 0; | |
26098 | } | |
26099 | _ACEOF | |
26100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26102 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26103 | ac_status=$? |
ac1cb8d3 VS |
26104 | grep -v '^ *+' conftest.er1 >conftest.err |
26105 | rm -f conftest.er1 | |
26106 | cat conftest.err >&5 | |
a848cd7e SC |
26107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26108 | (exit $ac_status); } && | |
c9a66001 | 26109 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26111 | (eval $ac_try) 2>&5 | |
26112 | ac_status=$? | |
26113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26114 | (exit $ac_status); }; } && | |
26115 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26117 | (eval $ac_try) 2>&5 | |
26118 | ac_status=$? | |
26119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26120 | (exit $ac_status); }; }; then | |
26121 | ac_cv_lib_tiff_TIFFError=yes | |
26122 | else | |
26123 | echo "$as_me: failed program was:" >&5 | |
26124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26125 | ||
26126 | ac_cv_lib_tiff_TIFFError=no | |
26127 | fi | |
ac1cb8d3 VS |
26128 | rm -f conftest.err conftest.$ac_objext \ |
26129 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26130 | LIBS=$ac_check_lib_save_LIBS |
26131 | fi | |
26132 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
26133 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
26134 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
26135 | TIFF_LINK=" -ltiff" | |
26136 | fi | |
26137 | ||
26138 | ||
26139 | ||
26140 | fi | |
26141 | ||
26142 | ||
26143 | ||
26144 | if test "x$TIFF_LINK" = "x" ; then | |
26145 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
26146 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
26147 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
26148 | { (exit 1); exit 1; }; } | |
26149 | else | |
26150 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
26151 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
26152 | wxUSE_LIBTIFF=builtin | |
26153 | fi | |
26154 | else | |
26155 | wxUSE_LIBTIFF=sys | |
26156 | fi | |
26157 | fi | |
26158 | fi | |
26159 | ||
26160 | ||
47a7e797 MW |
26161 | if test "$wxUSE_WCHAR_T" != "yes"; then |
26162 | if test "$wxUSE_EXPAT" != "no"; then | |
26163 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
26164 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
26165 | wxUSE_EXPAT=no | |
26166 | fi | |
26167 | if test "$wxUSE_XML" != "no"; then | |
26168 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
26169 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
26170 | wxUSE_XML=no | |
26171 | fi | |
26172 | fi | |
26173 | ||
a848cd7e SC |
26174 | if test "$wxUSE_EXPAT" != "no"; then |
26175 | wxUSE_XML=yes | |
26176 | cat >>confdefs.h <<\_ACEOF | |
26177 | #define wxUSE_EXPAT 1 | |
26178 | _ACEOF | |
26179 | ||
26180 | cat >>confdefs.h <<\_ACEOF | |
26181 | #define wxUSE_XML 1 | |
26182 | _ACEOF | |
26183 | ||
26184 | ||
26185 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
26186 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26187 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
26188 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
26189 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26191 | fi | |
26192 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
26193 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
26194 | else | |
26195 | # Is the header compilable? | |
26196 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
26197 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
26198 | cat >conftest.$ac_ext <<_ACEOF | |
26199 | /* confdefs.h. */ | |
26200 | _ACEOF | |
26201 | cat confdefs.h >>conftest.$ac_ext | |
26202 | cat >>conftest.$ac_ext <<_ACEOF | |
26203 | /* end confdefs.h. */ | |
26204 | $ac_includes_default | |
26205 | #include <expat.h> | |
26206 | _ACEOF | |
26207 | rm -f conftest.$ac_objext | |
26208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26209 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26210 | ac_status=$? |
ac1cb8d3 VS |
26211 | grep -v '^ *+' conftest.er1 >conftest.err |
26212 | rm -f conftest.er1 | |
26213 | cat conftest.err >&5 | |
a848cd7e SC |
26214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26215 | (exit $ac_status); } && | |
c9a66001 | 26216 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26218 | (eval $ac_try) 2>&5 | |
26219 | ac_status=$? | |
26220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26221 | (exit $ac_status); }; } && | |
26222 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26224 | (eval $ac_try) 2>&5 | |
26225 | ac_status=$? | |
26226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26227 | (exit $ac_status); }; }; then | |
26228 | ac_header_compiler=yes | |
26229 | else | |
26230 | echo "$as_me: failed program was:" >&5 | |
26231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26232 | ||
26233 | ac_header_compiler=no | |
26234 | fi | |
ac1cb8d3 | 26235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26236 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26237 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26238 | ||
26239 | # Is the header present? | |
26240 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
26241 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
26242 | cat >conftest.$ac_ext <<_ACEOF | |
26243 | /* confdefs.h. */ | |
26244 | _ACEOF | |
26245 | cat confdefs.h >>conftest.$ac_ext | |
26246 | cat >>conftest.$ac_ext <<_ACEOF | |
26247 | /* end confdefs.h. */ | |
26248 | #include <expat.h> | |
26249 | _ACEOF | |
26250 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26251 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26252 | ac_status=$? | |
26253 | grep -v '^ *+' conftest.er1 >conftest.err | |
26254 | rm -f conftest.er1 | |
26255 | cat conftest.err >&5 | |
26256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26257 | (exit $ac_status); } >/dev/null; then | |
26258 | if test -s conftest.err; then | |
5d7b7554 VZ |
26259 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26260 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26261 | else |
26262 | ac_cpp_err= | |
26263 | fi | |
26264 | else | |
26265 | ac_cpp_err=yes | |
26266 | fi | |
26267 | if test -z "$ac_cpp_err"; then | |
26268 | ac_header_preproc=yes | |
26269 | else | |
26270 | echo "$as_me: failed program was:" >&5 | |
26271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26272 | ||
26273 | ac_header_preproc=no | |
26274 | fi | |
26275 | rm -f conftest.err conftest.$ac_ext | |
26276 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26277 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26278 | ||
26279 | # So? What about this header? | |
5d7b7554 | 26280 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26281 | yes:no: ) |
a848cd7e SC |
26282 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26283 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26284 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
26285 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
26286 | ac_header_preproc=yes | |
a848cd7e | 26287 | ;; |
ac1cb8d3 | 26288 | no:yes:* ) |
a848cd7e SC |
26289 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
26290 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26291 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
26292 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
26293 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
26294 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
26295 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26296 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26297 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
26298 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26299 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
26300 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26301 | ( |
26302 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26303 | ## ----------------------------------------- ## |
26304 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26305 | ## ----------------------------------------- ## | |
a848cd7e SC |
26306 | _ASBOX |
26307 | ) | | |
26308 | sed "s/^/$as_me: WARNING: /" >&2 | |
26309 | ;; | |
26310 | esac | |
26311 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
26312 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
26313 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26315 | else | |
26316 | ac_cv_header_expat_h=$ac_header_preproc | |
26317 | fi | |
26318 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
26319 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
26320 | ||
26321 | fi | |
26322 | if test $ac_cv_header_expat_h = yes; then | |
26323 | found_expat_h=1 | |
26324 | fi | |
26325 | ||
26326 | ||
26327 | if test "x$found_expat_h" = "x1"; then | |
26328 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
26329 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
26330 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
26331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26332 | else | |
26333 | ||
a848cd7e SC |
26334 | cat >conftest.$ac_ext <<_ACEOF |
26335 | /* confdefs.h. */ | |
26336 | _ACEOF | |
26337 | cat confdefs.h >>conftest.$ac_ext | |
26338 | cat >>conftest.$ac_ext <<_ACEOF | |
26339 | /* end confdefs.h. */ | |
26340 | #include <expat.h> | |
26341 | int | |
26342 | main () | |
26343 | { | |
26344 | ||
26345 | ; | |
26346 | return 0; | |
26347 | } | |
26348 | _ACEOF | |
26349 | rm -f conftest.$ac_objext | |
26350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26351 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26352 | ac_status=$? |
ac1cb8d3 VS |
26353 | grep -v '^ *+' conftest.er1 >conftest.err |
26354 | rm -f conftest.er1 | |
26355 | cat conftest.err >&5 | |
a848cd7e SC |
26356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26357 | (exit $ac_status); } && | |
c9a66001 | 26358 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26360 | (eval $ac_try) 2>&5 | |
26361 | ac_status=$? | |
26362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26363 | (exit $ac_status); }; } && | |
26364 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26366 | (eval $ac_try) 2>&5 | |
26367 | ac_status=$? | |
26368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26369 | (exit $ac_status); }; }; then | |
26370 | wx_cv_expat_is_not_broken=yes | |
26371 | else | |
26372 | echo "$as_me: failed program was:" >&5 | |
26373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26374 | ||
26375 | wx_cv_expat_is_not_broken=no | |
26376 | ||
26377 | fi | |
ac1cb8d3 | 26378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26379 | |
26380 | ||
26381 | fi | |
26382 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
26383 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
26384 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
26385 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
26386 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
26387 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
26388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26389 | else | |
26390 | ac_check_lib_save_LIBS=$LIBS | |
26391 | LIBS="-lexpat $LIBS" | |
26392 | cat >conftest.$ac_ext <<_ACEOF | |
26393 | /* confdefs.h. */ | |
26394 | _ACEOF | |
26395 | cat confdefs.h >>conftest.$ac_ext | |
26396 | cat >>conftest.$ac_ext <<_ACEOF | |
26397 | /* end confdefs.h. */ | |
26398 | ||
26399 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26400 | #ifdef __cplusplus | |
26401 | extern "C" | |
26402 | #endif | |
26403 | /* We use char because int might match the return type of a gcc2 | |
26404 | builtin and then its argument prototype would still apply. */ | |
26405 | char XML_ParserCreate (); | |
26406 | int | |
26407 | main () | |
26408 | { | |
26409 | XML_ParserCreate (); | |
26410 | ; | |
26411 | return 0; | |
26412 | } | |
26413 | _ACEOF | |
26414 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26416 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26417 | ac_status=$? |
ac1cb8d3 VS |
26418 | grep -v '^ *+' conftest.er1 >conftest.err |
26419 | rm -f conftest.er1 | |
26420 | cat conftest.err >&5 | |
a848cd7e SC |
26421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26422 | (exit $ac_status); } && | |
c9a66001 | 26423 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26425 | (eval $ac_try) 2>&5 | |
26426 | ac_status=$? | |
26427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26428 | (exit $ac_status); }; } && | |
26429 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26431 | (eval $ac_try) 2>&5 | |
26432 | ac_status=$? | |
26433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26434 | (exit $ac_status); }; }; then | |
26435 | ac_cv_lib_expat_XML_ParserCreate=yes | |
26436 | else | |
26437 | echo "$as_me: failed program was:" >&5 | |
26438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26439 | ||
26440 | ac_cv_lib_expat_XML_ParserCreate=no | |
26441 | fi | |
ac1cb8d3 VS |
26442 | rm -f conftest.err conftest.$ac_objext \ |
26443 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26444 | LIBS=$ac_check_lib_save_LIBS |
26445 | fi | |
26446 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
26447 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
26448 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
26449 | EXPAT_LINK=" -lexpat" | |
26450 | fi | |
26451 | ||
26452 | fi | |
26453 | fi | |
26454 | if test "x$EXPAT_LINK" = "x" ; then | |
26455 | if test "$wxUSE_EXPAT" = "sys" ; then | |
26456 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
26457 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
26458 | { (exit 1); exit 1; }; } | |
26459 | else | |
26460 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
26461 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
26462 | wxUSE_EXPAT=builtin | |
26463 | fi | |
26464 | else | |
26465 | wxUSE_EXPAT=sys | |
26466 | fi | |
26467 | fi | |
26468 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
26469 | ||
26470 | ||
26471 | subdirs="$subdirs src/expat" | |
26472 | ||
26473 | fi | |
26474 | fi | |
26475 | ||
26476 | ||
26477 | ||
26478 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
26479 | if test "${ac_cv_header_mspack_h+set}" = set; then |
26480 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
26481 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
26482 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
26483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26484 | fi | |
26485 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
26486 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
26487 | else | |
26488 | # Is the header compilable? | |
26489 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
26490 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
26491 | cat >conftest.$ac_ext <<_ACEOF | |
26492 | /* confdefs.h. */ | |
26493 | _ACEOF | |
26494 | cat confdefs.h >>conftest.$ac_ext | |
26495 | cat >>conftest.$ac_ext <<_ACEOF | |
26496 | /* end confdefs.h. */ | |
26497 | $ac_includes_default | |
26498 | #include <mspack.h> | |
26499 | _ACEOF | |
26500 | rm -f conftest.$ac_objext | |
26501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26502 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26503 | ac_status=$? |
ac1cb8d3 VS |
26504 | grep -v '^ *+' conftest.er1 >conftest.err |
26505 | rm -f conftest.er1 | |
26506 | cat conftest.err >&5 | |
a848cd7e SC |
26507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26508 | (exit $ac_status); } && | |
c9a66001 | 26509 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26511 | (eval $ac_try) 2>&5 | |
26512 | ac_status=$? | |
26513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26514 | (exit $ac_status); }; } && | |
26515 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26517 | (eval $ac_try) 2>&5 | |
26518 | ac_status=$? | |
26519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26520 | (exit $ac_status); }; }; then | |
26521 | ac_header_compiler=yes | |
26522 | else | |
26523 | echo "$as_me: failed program was:" >&5 | |
26524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26525 | ||
26526 | ac_header_compiler=no | |
26527 | fi | |
ac1cb8d3 | 26528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26529 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26530 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26531 | ||
26532 | # Is the header present? | |
26533 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
26534 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
26535 | cat >conftest.$ac_ext <<_ACEOF | |
26536 | /* confdefs.h. */ | |
26537 | _ACEOF | |
26538 | cat confdefs.h >>conftest.$ac_ext | |
26539 | cat >>conftest.$ac_ext <<_ACEOF | |
26540 | /* end confdefs.h. */ | |
26541 | #include <mspack.h> | |
26542 | _ACEOF | |
26543 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26544 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26545 | ac_status=$? | |
26546 | grep -v '^ *+' conftest.er1 >conftest.err | |
26547 | rm -f conftest.er1 | |
26548 | cat conftest.err >&5 | |
26549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26550 | (exit $ac_status); } >/dev/null; then | |
26551 | if test -s conftest.err; then | |
5d7b7554 VZ |
26552 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26553 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26554 | else |
26555 | ac_cpp_err= | |
26556 | fi | |
26557 | else | |
26558 | ac_cpp_err=yes | |
26559 | fi | |
26560 | if test -z "$ac_cpp_err"; then | |
26561 | ac_header_preproc=yes | |
26562 | else | |
26563 | echo "$as_me: failed program was:" >&5 | |
26564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26565 | ||
26566 | ac_header_preproc=no | |
26567 | fi | |
26568 | rm -f conftest.err conftest.$ac_ext | |
26569 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26570 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26571 | ||
26572 | # So? What about this header? | |
5d7b7554 | 26573 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26574 | yes:no: ) |
a848cd7e SC |
26575 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26576 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26577 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
26578 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
26579 | ac_header_preproc=yes | |
a848cd7e | 26580 | ;; |
ac1cb8d3 | 26581 | no:yes:* ) |
a848cd7e SC |
26582 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
26583 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26584 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
26585 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
26586 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
26587 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
26588 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26589 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26590 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
26591 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26592 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
26593 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26594 | ( |
26595 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26596 | ## ----------------------------------------- ## |
26597 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26598 | ## ----------------------------------------- ## | |
a848cd7e SC |
26599 | _ASBOX |
26600 | ) | | |
26601 | sed "s/^/$as_me: WARNING: /" >&2 | |
26602 | ;; | |
26603 | esac | |
26604 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
26605 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
26606 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
26607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26608 | else | |
26609 | ac_cv_header_mspack_h=$ac_header_preproc | |
26610 | fi | |
26611 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
26612 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
26613 | ||
26614 | fi | |
26615 | if test $ac_cv_header_mspack_h = yes; then | |
26616 | found_mspack_h=1 | |
26617 | fi | |
26618 | ||
26619 | ||
26620 | if test "x$found_mspack_h" = "x1"; then | |
26621 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
26622 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
26623 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
26624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26625 | else | |
26626 | ac_check_lib_save_LIBS=$LIBS | |
26627 | LIBS="-lmspack $LIBS" | |
26628 | cat >conftest.$ac_ext <<_ACEOF | |
26629 | /* confdefs.h. */ | |
26630 | _ACEOF | |
26631 | cat confdefs.h >>conftest.$ac_ext | |
26632 | cat >>conftest.$ac_ext <<_ACEOF | |
26633 | /* end confdefs.h. */ | |
26634 | ||
26635 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26636 | #ifdef __cplusplus | |
26637 | extern "C" | |
26638 | #endif | |
26639 | /* We use char because int might match the return type of a gcc2 | |
26640 | builtin and then its argument prototype would still apply. */ | |
26641 | char mspack_create_chm_decompressor (); | |
26642 | int | |
26643 | main () | |
26644 | { | |
26645 | mspack_create_chm_decompressor (); | |
26646 | ; | |
26647 | return 0; | |
26648 | } | |
26649 | _ACEOF | |
26650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26652 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26653 | ac_status=$? |
ac1cb8d3 VS |
26654 | grep -v '^ *+' conftest.er1 >conftest.err |
26655 | rm -f conftest.er1 | |
26656 | cat conftest.err >&5 | |
a848cd7e SC |
26657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26658 | (exit $ac_status); } && | |
c9a66001 | 26659 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26661 | (eval $ac_try) 2>&5 | |
26662 | ac_status=$? | |
26663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26664 | (exit $ac_status); }; } && | |
26665 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26667 | (eval $ac_try) 2>&5 | |
26668 | ac_status=$? | |
26669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26670 | (exit $ac_status); }; }; then | |
26671 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
26672 | else | |
26673 | echo "$as_me: failed program was:" >&5 | |
26674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26675 | ||
26676 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
26677 | fi | |
ac1cb8d3 VS |
26678 | rm -f conftest.err conftest.$ac_objext \ |
26679 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26680 | LIBS=$ac_check_lib_save_LIBS |
26681 | fi | |
26682 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
26683 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
26684 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
26685 | MSPACK_LINK=" -lmspack" | |
26686 | fi | |
26687 | ||
26688 | fi | |
26689 | if test "x$MSPACK_LINK" = "x" ; then | |
26690 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
26691 | fi |
26692 | fi | |
26693 | ||
26694 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
26695 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
26696 | #define wxUSE_LIBMSPACK 1 |
26697 | _ACEOF | |
26698 | ||
a848cd7e SC |
26699 | fi |
26700 | ||
26701 | ||
26702 | ||
26703 | AFMINSTALL= | |
26704 | WIN32INSTALL= | |
26705 | ||
26706 | TOOLKIT= | |
26707 | TOOLKIT_INCLUDE= | |
26708 | WIDGET_SET= | |
26709 | ||
26710 | if test "$USE_WIN32" = 1 ; then | |
26711 | ||
26712 | for ac_header in w32api.h | |
26713 | do | |
26714 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26715 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26716 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26717 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26718 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26720 | fi | |
26721 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26722 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26723 | else | |
26724 | # Is the header compilable? | |
26725 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
26726 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
26727 | cat >conftest.$ac_ext <<_ACEOF | |
26728 | /* confdefs.h. */ | |
26729 | _ACEOF | |
26730 | cat confdefs.h >>conftest.$ac_ext | |
26731 | cat >>conftest.$ac_ext <<_ACEOF | |
26732 | /* end confdefs.h. */ | |
26733 | $ac_includes_default | |
26734 | #include <$ac_header> | |
26735 | _ACEOF | |
26736 | rm -f conftest.$ac_objext | |
26737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26738 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26739 | ac_status=$? |
ac1cb8d3 VS |
26740 | grep -v '^ *+' conftest.er1 >conftest.err |
26741 | rm -f conftest.er1 | |
26742 | cat conftest.err >&5 | |
a848cd7e SC |
26743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26744 | (exit $ac_status); } && | |
c9a66001 | 26745 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26747 | (eval $ac_try) 2>&5 | |
26748 | ac_status=$? | |
26749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26750 | (exit $ac_status); }; } && | |
26751 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26753 | (eval $ac_try) 2>&5 | |
26754 | ac_status=$? | |
26755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26756 | (exit $ac_status); }; }; then | |
26757 | ac_header_compiler=yes | |
26758 | else | |
26759 | echo "$as_me: failed program was:" >&5 | |
26760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26761 | ||
26762 | ac_header_compiler=no | |
26763 | fi | |
ac1cb8d3 | 26764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26765 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26766 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26767 | ||
26768 | # Is the header present? | |
26769 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
26770 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
26771 | cat >conftest.$ac_ext <<_ACEOF | |
26772 | /* confdefs.h. */ | |
26773 | _ACEOF | |
26774 | cat confdefs.h >>conftest.$ac_ext | |
26775 | cat >>conftest.$ac_ext <<_ACEOF | |
26776 | /* end confdefs.h. */ | |
26777 | #include <$ac_header> | |
26778 | _ACEOF | |
26779 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26780 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26781 | ac_status=$? | |
26782 | grep -v '^ *+' conftest.er1 >conftest.err | |
26783 | rm -f conftest.er1 | |
26784 | cat conftest.err >&5 | |
26785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26786 | (exit $ac_status); } >/dev/null; then | |
26787 | if test -s conftest.err; then | |
5d7b7554 VZ |
26788 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26789 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26790 | else |
26791 | ac_cpp_err= | |
26792 | fi | |
26793 | else | |
26794 | ac_cpp_err=yes | |
26795 | fi | |
26796 | if test -z "$ac_cpp_err"; then | |
26797 | ac_header_preproc=yes | |
26798 | else | |
26799 | echo "$as_me: failed program was:" >&5 | |
26800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26801 | ||
26802 | ac_header_preproc=no | |
26803 | fi | |
26804 | rm -f conftest.err conftest.$ac_ext | |
26805 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26806 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26807 | ||
26808 | # So? What about this header? | |
5d7b7554 | 26809 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26810 | yes:no: ) |
a848cd7e SC |
26811 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
26812 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26813 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
26814 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
26815 | ac_header_preproc=yes | |
a848cd7e | 26816 | ;; |
ac1cb8d3 | 26817 | no:yes:* ) |
a848cd7e SC |
26818 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
26819 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26820 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
26821 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
26822 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
26823 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
26824 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
26825 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26826 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
26827 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26828 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
26829 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26830 | ( |
26831 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26832 | ## ----------------------------------------- ## |
26833 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26834 | ## ----------------------------------------- ## | |
a848cd7e SC |
26835 | _ASBOX |
26836 | ) | | |
26837 | sed "s/^/$as_me: WARNING: /" >&2 | |
26838 | ;; | |
26839 | esac | |
26840 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26841 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26842 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26844 | else | |
ac1cb8d3 | 26845 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
26846 | fi |
26847 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26848 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26849 | ||
26850 | fi | |
26851 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
26852 | cat >>confdefs.h <<_ACEOF | |
26853 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
26854 | _ACEOF | |
26855 | ||
26856 | fi | |
26857 | ||
26858 | done | |
26859 | ||
26860 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26861 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26862 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26863 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26865 | fi | |
26866 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26867 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26868 | else | |
26869 | # Is the header compilable? | |
26870 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
26871 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
26872 | cat >conftest.$ac_ext <<_ACEOF | |
26873 | /* confdefs.h. */ | |
26874 | _ACEOF | |
26875 | cat confdefs.h >>conftest.$ac_ext | |
26876 | cat >>conftest.$ac_ext <<_ACEOF | |
26877 | /* end confdefs.h. */ | |
26878 | $ac_includes_default | |
26879 | #include <windows.h> | |
26880 | _ACEOF | |
26881 | rm -f conftest.$ac_objext | |
26882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26883 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26884 | ac_status=$? |
ac1cb8d3 VS |
26885 | grep -v '^ *+' conftest.er1 >conftest.err |
26886 | rm -f conftest.er1 | |
26887 | cat conftest.err >&5 | |
a848cd7e SC |
26888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26889 | (exit $ac_status); } && | |
c9a66001 | 26890 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26892 | (eval $ac_try) 2>&5 | |
26893 | ac_status=$? | |
26894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26895 | (exit $ac_status); }; } && | |
26896 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26898 | (eval $ac_try) 2>&5 | |
26899 | ac_status=$? | |
26900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26901 | (exit $ac_status); }; }; then | |
26902 | ac_header_compiler=yes | |
26903 | else | |
26904 | echo "$as_me: failed program was:" >&5 | |
26905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26906 | ||
26907 | ac_header_compiler=no | |
26908 | fi | |
ac1cb8d3 | 26909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26910 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26911 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26912 | ||
26913 | # Is the header present? | |
26914 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
26915 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
26916 | cat >conftest.$ac_ext <<_ACEOF | |
26917 | /* confdefs.h. */ | |
26918 | _ACEOF | |
26919 | cat confdefs.h >>conftest.$ac_ext | |
26920 | cat >>conftest.$ac_ext <<_ACEOF | |
26921 | /* end confdefs.h. */ | |
26922 | #include <windows.h> | |
26923 | _ACEOF | |
26924 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26925 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26926 | ac_status=$? | |
26927 | grep -v '^ *+' conftest.er1 >conftest.err | |
26928 | rm -f conftest.er1 | |
26929 | cat conftest.err >&5 | |
26930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26931 | (exit $ac_status); } >/dev/null; then | |
26932 | if test -s conftest.err; then | |
5d7b7554 VZ |
26933 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26934 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26935 | else |
26936 | ac_cpp_err= | |
26937 | fi | |
26938 | else | |
26939 | ac_cpp_err=yes | |
26940 | fi | |
26941 | if test -z "$ac_cpp_err"; then | |
26942 | ac_header_preproc=yes | |
26943 | else | |
26944 | echo "$as_me: failed program was:" >&5 | |
26945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26946 | ||
26947 | ac_header_preproc=no | |
26948 | fi | |
26949 | rm -f conftest.err conftest.$ac_ext | |
26950 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26951 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26952 | ||
26953 | # So? What about this header? | |
5d7b7554 | 26954 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26955 | yes:no: ) |
a848cd7e SC |
26956 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26957 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26958 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
26959 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
26960 | ac_header_preproc=yes | |
a848cd7e | 26961 | ;; |
ac1cb8d3 | 26962 | no:yes:* ) |
a848cd7e SC |
26963 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
26964 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26965 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
26966 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
26967 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
26968 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
26969 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26970 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26971 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
26972 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26973 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
26974 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26975 | ( |
26976 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26977 | ## ----------------------------------------- ## |
26978 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26979 | ## ----------------------------------------- ## | |
a848cd7e SC |
26980 | _ASBOX |
26981 | ) | | |
26982 | sed "s/^/$as_me: WARNING: /" >&2 | |
26983 | ;; | |
26984 | esac | |
26985 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26986 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26987 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26989 | else | |
26990 | ac_cv_header_windows_h=$ac_header_preproc | |
26991 | fi | |
26992 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26993 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26994 | ||
26995 | fi | |
26996 | if test $ac_cv_header_windows_h = yes; then | |
26997 | : | |
26998 | else | |
26999 | ||
27000 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
27001 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
27002 | { (exit 1); exit 1; }; } | |
27003 | ||
27004 | fi | |
27005 | ||
27006 | ||
27007 | ||
27008 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
27009 | ||
27010 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
27011 | LIBS="$LIBS -loleacc" | |
27012 | fi | |
27013 | ||
27014 | case "${host}" in | |
27015 | *-*-cygwin* ) | |
27016 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
27017 | esac |
27018 | ||
27019 | if test "$wxUSE_ODBC" = "sys" ; then | |
27020 | wxUSE_ODBC = "yes" | |
27021 | fi | |
27022 | if test "$wxUSE_ODBC" = "yes" ; then | |
27023 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
27024 | cat >>confdefs.h <<\_ACEOF | |
27025 | #define wxUSE_ODBC 1 | |
27026 | _ACEOF | |
27027 | ||
27028 | fi | |
27029 | ||
370d2fd7 | 27030 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
a848cd7e SC |
27031 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
27032 | ||
004ee6da | 27033 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
370d2fd7 | 27034 | |
a848cd7e SC |
27035 | WIN32INSTALL=win32install |
27036 | fi | |
27037 | ||
27038 | if test "$wxUSE_GUI" = "yes"; then | |
27039 | USE_GUI=1 | |
27040 | ||
27041 | GUI_TK_LIBRARY= | |
27042 | ||
27043 | WXGTK12= | |
27044 | WXGTK127= | |
27045 | WXGTK20= | |
27046 | WXGPE= | |
27047 | ||
207bc66c RN |
27048 | if test "$wxUSE_COCOA" = 1 ; then |
27049 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
27050 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
27051 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
27052 | wxUSE_PRINTING_ARCHITECTURE=no | |
27053 | fi | |
27054 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
27055 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
27056 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
27057 | wxUSE_DRAG_AND_DROP=no | |
27058 | fi | |
27059 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
27060 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
27061 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
27062 | wxUSE_DRAGIMAGE=no | |
27063 | fi | |
27064 | fi | |
27065 | ||
a848cd7e SC |
27066 | if test "$wxUSE_MSW" = 1 ; then |
27067 | TOOLKIT=MSW | |
27068 | GUIDIST=MSW_DIST | |
27069 | ||
ceec2216 | 27070 | case "${host}" in |
a848cd7e SC |
27071 | *-*-mingw32* ) |
27072 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
27073 | esac | |
27074 | fi | |
27075 | ||
27076 | if test "$wxUSE_GTK" = 1; then | |
5d7b7554 VZ |
27077 | ac_ext=c |
27078 | ac_cpp='$CPP $CPPFLAGS' | |
27079 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
27080 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27081 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
27082 | ||
27083 | ||
a848cd7e SC |
27084 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
27085 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
27086 | ||
27087 | gtk_version_cached=1 | |
27088 | if test "${wx_cv_lib_gtk+set}" = set; then | |
27089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27090 | else | |
27091 | ||
27092 | gtk_version_cached=0 | |
27093 | echo "$as_me:$LINENO: result: " >&5 | |
27094 | echo "${ECHO_T}" >&6 | |
27095 | ||
27096 | GTK_MODULES= | |
27097 | if test "$wxUSE_THREADS" = "yes"; then | |
27098 | GTK_MODULES=gthread | |
27099 | fi | |
27100 | ||
f597b41c | 27101 | wx_cv_lib_gtk= |
5001df0d MW |
27102 | if test "x$wxGTK_VERSION" != "x1" |
27103 | then | |
27104 | case "${host}" in | |
27105 | *-*-solaris2* ) | |
27106 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
5ff751d6 | 27107 | enable_gtktest=no |
5001df0d MW |
27108 | fi |
27109 | esac | |
27110 | ||
a848cd7e SC |
27111 | # Check whether --enable-gtktest or --disable-gtktest was given. |
27112 | if test "${enable_gtktest+set}" = set; then | |
27113 | enableval="$enable_gtktest" | |
27114 | ||
27115 | else | |
27116 | enable_gtktest=yes | |
27117 | fi; | |
27118 | ||
27119 | pkg_config_args=gtk+-2.0 | |
27120 | for module in . $GTK_MODULES | |
27121 | do | |
27122 | case "$module" in | |
27123 | gthread) | |
27124 | pkg_config_args="$pkg_config_args gthread-2.0" | |
27125 | ;; | |
27126 | esac | |
27127 | done | |
27128 | ||
27129 | no_gtk="" | |
27130 | ||
27131 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27132 | set dummy pkg-config; ac_word=$2 | |
27133 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27134 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27135 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27137 | else | |
27138 | case $PKG_CONFIG in | |
27139 | [\\/]* | ?:[\\/]*) | |
27140 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27141 | ;; | |
27142 | *) | |
27143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27144 | for as_dir in $PATH | |
27145 | do | |
27146 | IFS=$as_save_IFS | |
27147 | test -z "$as_dir" && as_dir=. | |
27148 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27149 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27150 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27151 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27152 | break 2 | |
27153 | fi | |
27154 | done | |
27155 | done | |
27156 | ||
27157 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27158 | ;; | |
27159 | esac | |
27160 | fi | |
27161 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27162 | ||
27163 | if test -n "$PKG_CONFIG"; then | |
27164 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27165 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27166 | else | |
27167 | echo "$as_me:$LINENO: result: no" >&5 | |
27168 | echo "${ECHO_T}no" >&6 | |
27169 | fi | |
27170 | ||
27171 | ||
27172 | if test x$PKG_CONFIG != xno ; then | |
27173 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
27174 | : | |
27175 | else | |
c2218763 | 27176 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
27177 | no_gtk=yes |
27178 | PKG_CONFIG=no | |
27179 | fi | |
27180 | else | |
27181 | no_gtk=yes | |
27182 | fi | |
27183 | ||
27184 | min_gtk_version=2.0.0 | |
27185 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
27186 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
27187 | ||
27188 | if test x$PKG_CONFIG != xno ; then | |
27189 | ## don't try to run the test against uninstalled libtool libs | |
27190 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
27191 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
27192 | enable_gtktest=no | |
27193 | fi | |
27194 | ||
27195 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
27196 | : | |
27197 | else | |
27198 | no_gtk=yes | |
27199 | fi | |
27200 | fi | |
27201 | ||
27202 | if test x"$no_gtk" = x ; then | |
27203 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
27204 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
27205 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
27206 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27207 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
27208 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27209 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
27210 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27211 | if test "x$enable_gtktest" = "xyes" ; then | |
27212 | ac_save_CFLAGS="$CFLAGS" | |
27213 | ac_save_LIBS="$LIBS" | |
27214 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27215 | LIBS="$GTK_LIBS $LIBS" | |
27216 | rm -f conf.gtktest | |
27217 | if test "$cross_compiling" = yes; then | |
27218 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27219 | else | |
27220 | cat >conftest.$ac_ext <<_ACEOF | |
27221 | /* confdefs.h. */ | |
27222 | _ACEOF | |
27223 | cat confdefs.h >>conftest.$ac_ext | |
27224 | cat >>conftest.$ac_ext <<_ACEOF | |
27225 | /* end confdefs.h. */ | |
27226 | ||
27227 | #include <gtk/gtk.h> | |
27228 | #include <stdio.h> | |
27229 | #include <stdlib.h> | |
27230 | ||
27231 | int | |
27232 | main () | |
27233 | { | |
27234 | int major, minor, micro; | |
27235 | char *tmp_version; | |
27236 | ||
27237 | system ("touch conf.gtktest"); | |
27238 | ||
27239 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27240 | tmp_version = g_strdup("$min_gtk_version"); | |
27241 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27242 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27243 | exit(1); | |
27244 | } | |
27245 | ||
27246 | if ((gtk_major_version != $gtk_config_major_version) || | |
27247 | (gtk_minor_version != $gtk_config_minor_version) || | |
27248 | (gtk_micro_version != $gtk_config_micro_version)) | |
27249 | { | |
27250 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27251 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27252 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27253 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
27254 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27255 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27256 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27257 | printf("*** required on your system.\n"); | |
27258 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
27259 | printf("*** to point to the correct configuration files\n"); | |
27260 | } | |
27261 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27262 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27263 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27264 | { | |
27265 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27266 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27267 | printf("*** library (version %d.%d.%d)\n", | |
27268 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27269 | } | |
27270 | else | |
27271 | { | |
27272 | if ((gtk_major_version > major) || | |
27273 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27274 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27275 | { | |
27276 | return 0; | |
27277 | } | |
27278 | else | |
27279 | { | |
27280 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27281 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27282 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27283 | major, minor, micro); | |
27284 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27285 | printf("***\n"); | |
27286 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27287 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
27288 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27289 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
27290 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
27291 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27292 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27293 | } | |
27294 | } | |
27295 | return 1; | |
27296 | } | |
27297 | ||
27298 | _ACEOF | |
27299 | rm -f conftest$ac_exeext | |
27300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27301 | (eval $ac_link) 2>&5 | |
27302 | ac_status=$? | |
27303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27304 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27306 | (eval $ac_try) 2>&5 | |
27307 | ac_status=$? | |
27308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27309 | (exit $ac_status); }; }; then | |
27310 | : | |
27311 | else | |
27312 | echo "$as_me: program exited with status $ac_status" >&5 | |
27313 | echo "$as_me: failed program was:" >&5 | |
27314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27315 | ||
27316 | ( exit $ac_status ) | |
27317 | no_gtk=yes | |
27318 | fi | |
ac1cb8d3 | 27319 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27320 | fi |
27321 | CFLAGS="$ac_save_CFLAGS" | |
27322 | LIBS="$ac_save_LIBS" | |
27323 | fi | |
27324 | fi | |
27325 | if test "x$no_gtk" = x ; then | |
27326 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
27327 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
27328 | wx_cv_lib_gtk=2.0 | |
27329 | else | |
27330 | echo "$as_me:$LINENO: result: no" >&5 | |
27331 | echo "${ECHO_T}no" >&6 | |
27332 | if test "$PKG_CONFIG" = "no" ; then | |
27333 | echo "*** A new enough version of pkg-config was not found." | |
27334 | echo "*** See http://pkgconfig.sourceforge.net" | |
27335 | else | |
27336 | if test -f conf.gtktest ; then | |
27337 | : | |
27338 | else | |
27339 | echo "*** Could not run GTK+ test program, checking why..." | |
27340 | ac_save_CFLAGS="$CFLAGS" | |
27341 | ac_save_LIBS="$LIBS" | |
27342 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27343 | LIBS="$LIBS $GTK_LIBS" | |
27344 | cat >conftest.$ac_ext <<_ACEOF | |
27345 | /* confdefs.h. */ | |
27346 | _ACEOF | |
27347 | cat confdefs.h >>conftest.$ac_ext | |
27348 | cat >>conftest.$ac_ext <<_ACEOF | |
27349 | /* end confdefs.h. */ | |
27350 | ||
27351 | #include <gtk/gtk.h> | |
27352 | #include <stdio.h> | |
27353 | ||
27354 | int | |
27355 | main () | |
27356 | { | |
27357 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27358 | ; | |
27359 | return 0; | |
27360 | } | |
27361 | _ACEOF | |
27362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27364 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27365 | ac_status=$? |
ac1cb8d3 VS |
27366 | grep -v '^ *+' conftest.er1 >conftest.err |
27367 | rm -f conftest.er1 | |
27368 | cat conftest.err >&5 | |
a848cd7e SC |
27369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27370 | (exit $ac_status); } && | |
c9a66001 | 27371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27373 | (eval $ac_try) 2>&5 | |
27374 | ac_status=$? | |
27375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27376 | (exit $ac_status); }; } && | |
27377 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27379 | (eval $ac_try) 2>&5 | |
27380 | ac_status=$? | |
27381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27382 | (exit $ac_status); }; }; then | |
27383 | echo "*** The test program compiled, but did not run. This usually means" | |
27384 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
27385 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
27386 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27387 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27388 | echo "*** is required on your system" | |
27389 | echo "***" | |
27390 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27391 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27392 | else | |
27393 | echo "$as_me: failed program was:" >&5 | |
27394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27395 | ||
27396 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27397 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
27398 | fi | |
ac1cb8d3 VS |
27399 | rm -f conftest.err conftest.$ac_objext \ |
27400 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27401 | CFLAGS="$ac_save_CFLAGS" |
27402 | LIBS="$ac_save_LIBS" | |
27403 | fi | |
27404 | fi | |
27405 | GTK_CFLAGS="" | |
27406 | GTK_LIBS="" | |
27407 | : | |
27408 | fi | |
27409 | ||
27410 | ||
27411 | rm -f conf.gtktest | |
27412 | ||
5001df0d MW |
27413 | |
27414 | case "${host}" in | |
27415 | *-*-solaris2* ) | |
27416 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
27417 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
27418 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
27419 | fi | |
27420 | if test "$wxUSE_SHARED" != "yes"; then | |
27421 | GTK_LIBS="$GTK_LIBS -lX11" | |
27422 | fi | |
27423 | esac | |
f597b41c MW |
27424 | fi |
27425 | ||
f34ca037 MW |
27426 | if test -z "$wx_cv_lib_gtk"; then |
27427 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
27428 | |
27429 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
27430 | if test "${with_gtk_prefix+set}" = set; then | |
27431 | withval="$with_gtk_prefix" | |
27432 | gtk_config_prefix="$withval" | |
27433 | else | |
27434 | gtk_config_prefix="" | |
27435 | fi; | |
27436 | ||
27437 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
27438 | if test "${with_gtk_exec_prefix+set}" = set; then | |
27439 | withval="$with_gtk_exec_prefix" | |
27440 | gtk_config_exec_prefix="$withval" | |
27441 | else | |
27442 | gtk_config_exec_prefix="" | |
27443 | fi; | |
27444 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
27445 | if test "${enable_gtktest+set}" = set; then | |
27446 | enableval="$enable_gtktest" | |
27447 | ||
27448 | else | |
27449 | enable_gtktest=yes | |
27450 | fi; | |
27451 | ||
27452 | for module in . $GTK_MODULES | |
27453 | do | |
27454 | case "$module" in | |
27455 | gthread) | |
27456 | gtk_config_args="$gtk_config_args gthread" | |
27457 | ;; | |
27458 | esac | |
27459 | done | |
27460 | ||
27461 | if test x$gtk_config_exec_prefix != x ; then | |
27462 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
27463 | if test x${GTK_CONFIG+set} != xset ; then | |
27464 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
27465 | fi | |
27466 | fi | |
27467 | if test x$gtk_config_prefix != x ; then | |
27468 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
27469 | if test x${GTK_CONFIG+set} != xset ; then | |
27470 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
27471 | fi | |
27472 | fi | |
27473 | ||
27474 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
27475 | set dummy gtk-config; ac_word=$2 | |
27476 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27478 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
27479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27480 | else | |
27481 | case $GTK_CONFIG in | |
27482 | [\\/]* | ?:[\\/]*) | |
27483 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
27484 | ;; | |
27485 | *) | |
27486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27487 | for as_dir in $PATH | |
27488 | do | |
27489 | IFS=$as_save_IFS | |
27490 | test -z "$as_dir" && as_dir=. | |
27491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27493 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27495 | break 2 | |
27496 | fi | |
27497 | done | |
27498 | done | |
27499 | ||
27500 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
27501 | ;; | |
27502 | esac | |
27503 | fi | |
27504 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
27505 | ||
27506 | if test -n "$GTK_CONFIG"; then | |
27507 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
27508 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
27509 | else | |
27510 | echo "$as_me:$LINENO: result: no" >&5 | |
27511 | echo "${ECHO_T}no" >&6 | |
27512 | fi | |
27513 | ||
27514 | min_gtk_version=1.2.7 | |
27515 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
27516 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
27517 | no_gtk="" | |
27518 | if test "$GTK_CONFIG" = "no" ; then | |
27519 | no_gtk=yes | |
27520 | else | |
27521 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
27522 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
27523 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27524 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27525 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27526 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27527 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27528 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27529 | if test "x$enable_gtktest" = "xyes" ; then | |
27530 | ac_save_CFLAGS="$CFLAGS" | |
27531 | ac_save_LIBS="$LIBS" | |
27532 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27533 | LIBS="$GTK_LIBS $LIBS" | |
27534 | rm -f conf.gtktest | |
27535 | if test "$cross_compiling" = yes; then | |
27536 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27537 | else | |
27538 | cat >conftest.$ac_ext <<_ACEOF | |
27539 | /* confdefs.h. */ | |
27540 | _ACEOF | |
27541 | cat confdefs.h >>conftest.$ac_ext | |
27542 | cat >>conftest.$ac_ext <<_ACEOF | |
27543 | /* end confdefs.h. */ | |
27544 | ||
27545 | #include <gtk/gtk.h> | |
27546 | #include <stdio.h> | |
27547 | #include <stdlib.h> | |
27548 | ||
27549 | int | |
27550 | main () | |
27551 | { | |
27552 | int major, minor, micro; | |
27553 | char *tmp_version; | |
27554 | ||
27555 | system ("touch conf.gtktest"); | |
27556 | ||
27557 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27558 | tmp_version = g_strdup("$min_gtk_version"); | |
27559 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27560 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27561 | exit(1); | |
27562 | } | |
27563 | ||
27564 | if ((gtk_major_version != $gtk_config_major_version) || | |
27565 | (gtk_minor_version != $gtk_config_minor_version) || | |
27566 | (gtk_micro_version != $gtk_config_micro_version)) | |
27567 | { | |
27568 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27569 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27570 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27571 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
27572 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27573 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27574 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27575 | printf("*** required on your system.\n"); | |
27576 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
27577 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
27578 | printf("*** before re-running configure\n"); | |
27579 | } | |
27580 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
27581 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27582 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27583 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27584 | { | |
27585 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27586 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27587 | printf("*** library (version %d.%d.%d)\n", | |
27588 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27589 | } | |
27590 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
27591 | else | |
27592 | { | |
27593 | if ((gtk_major_version > major) || | |
27594 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27595 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27596 | { | |
27597 | return 0; | |
27598 | } | |
27599 | else | |
27600 | { | |
27601 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27602 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27603 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27604 | major, minor, micro); | |
27605 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27606 | printf("***\n"); | |
27607 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27608 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
27609 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27610 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27611 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27612 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27613 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27614 | } | |
27615 | } | |
27616 | return 1; | |
27617 | } | |
27618 | ||
27619 | _ACEOF | |
27620 | rm -f conftest$ac_exeext | |
27621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27622 | (eval $ac_link) 2>&5 | |
27623 | ac_status=$? | |
27624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27625 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27627 | (eval $ac_try) 2>&5 | |
27628 | ac_status=$? | |
27629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27630 | (exit $ac_status); }; }; then | |
27631 | : | |
27632 | else | |
27633 | echo "$as_me: program exited with status $ac_status" >&5 | |
27634 | echo "$as_me: failed program was:" >&5 | |
27635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27636 | ||
27637 | ( exit $ac_status ) | |
27638 | no_gtk=yes | |
27639 | fi | |
ac1cb8d3 | 27640 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27641 | fi |
27642 | CFLAGS="$ac_save_CFLAGS" | |
27643 | LIBS="$ac_save_LIBS" | |
27644 | fi | |
27645 | fi | |
27646 | if test "x$no_gtk" = x ; then | |
27647 | echo "$as_me:$LINENO: result: yes" >&5 | |
27648 | echo "${ECHO_T}yes" >&6 | |
27649 | wx_cv_lib_gtk=1.2.7 | |
27650 | else | |
27651 | echo "$as_me:$LINENO: result: no" >&5 | |
27652 | echo "${ECHO_T}no" >&6 | |
27653 | if test "$GTK_CONFIG" = "no" ; then | |
27654 | echo "*** The gtk-config script installed by GTK could not be found" | |
27655 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27656 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27657 | echo "*** full path to gtk-config." | |
27658 | else | |
27659 | if test -f conf.gtktest ; then | |
27660 | : | |
27661 | else | |
27662 | echo "*** Could not run GTK test program, checking why..." | |
27663 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27664 | LIBS="$LIBS $GTK_LIBS" | |
27665 | cat >conftest.$ac_ext <<_ACEOF | |
27666 | /* confdefs.h. */ | |
27667 | _ACEOF | |
27668 | cat confdefs.h >>conftest.$ac_ext | |
27669 | cat >>conftest.$ac_ext <<_ACEOF | |
27670 | /* end confdefs.h. */ | |
27671 | ||
27672 | #include <gtk/gtk.h> | |
27673 | #include <stdio.h> | |
27674 | ||
27675 | int | |
27676 | main () | |
27677 | { | |
27678 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27679 | ; | |
27680 | return 0; | |
27681 | } | |
27682 | _ACEOF | |
27683 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27685 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27686 | ac_status=$? |
ac1cb8d3 VS |
27687 | grep -v '^ *+' conftest.er1 >conftest.err |
27688 | rm -f conftest.er1 | |
27689 | cat conftest.err >&5 | |
a848cd7e SC |
27690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27691 | (exit $ac_status); } && | |
c9a66001 | 27692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27694 | (eval $ac_try) 2>&5 | |
27695 | ac_status=$? | |
27696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27697 | (exit $ac_status); }; } && | |
27698 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27700 | (eval $ac_try) 2>&5 | |
27701 | ac_status=$? | |
27702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27703 | (exit $ac_status); }; }; then | |
27704 | echo "*** The test program compiled, but did not run. This usually means" | |
27705 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27706 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27707 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27708 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27709 | echo "*** is required on your system" | |
27710 | echo "***" | |
27711 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27712 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27713 | echo "***" | |
27714 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27715 | echo "*** came with the system with the command" | |
27716 | echo "***" | |
27717 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27718 | else | |
27719 | echo "$as_me: failed program was:" >&5 | |
27720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27721 | ||
27722 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27723 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27724 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27725 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27726 | fi | |
ac1cb8d3 VS |
27727 | rm -f conftest.err conftest.$ac_objext \ |
27728 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27729 | CFLAGS="$ac_save_CFLAGS" |
27730 | LIBS="$ac_save_LIBS" | |
27731 | fi | |
27732 | fi | |
27733 | GTK_CFLAGS="" | |
27734 | GTK_LIBS="" | |
27735 | : | |
27736 | fi | |
27737 | ||
27738 | ||
27739 | rm -f conf.gtktest | |
27740 | ||
27741 | ||
f34ca037 | 27742 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
27743 | |
27744 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
27745 | if test "${with_gtk_prefix+set}" = set; then | |
27746 | withval="$with_gtk_prefix" | |
27747 | gtk_config_prefix="$withval" | |
27748 | else | |
27749 | gtk_config_prefix="" | |
27750 | fi; | |
27751 | ||
27752 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
27753 | if test "${with_gtk_exec_prefix+set}" = set; then | |
27754 | withval="$with_gtk_exec_prefix" | |
27755 | gtk_config_exec_prefix="$withval" | |
27756 | else | |
27757 | gtk_config_exec_prefix="" | |
27758 | fi; | |
27759 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
27760 | if test "${enable_gtktest+set}" = set; then | |
27761 | enableval="$enable_gtktest" | |
27762 | ||
27763 | else | |
27764 | enable_gtktest=yes | |
27765 | fi; | |
27766 | ||
27767 | for module in . $GTK_MODULES | |
27768 | do | |
27769 | case "$module" in | |
27770 | gthread) | |
27771 | gtk_config_args="$gtk_config_args gthread" | |
27772 | ;; | |
27773 | esac | |
27774 | done | |
27775 | ||
27776 | if test x$gtk_config_exec_prefix != x ; then | |
27777 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
27778 | if test x${GTK_CONFIG+set} != xset ; then | |
27779 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
27780 | fi | |
27781 | fi | |
27782 | if test x$gtk_config_prefix != x ; then | |
27783 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
27784 | if test x${GTK_CONFIG+set} != xset ; then | |
27785 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
27786 | fi | |
27787 | fi | |
27788 | ||
27789 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
27790 | set dummy gtk-config; ac_word=$2 | |
27791 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27793 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
27794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27795 | else | |
27796 | case $GTK_CONFIG in | |
27797 | [\\/]* | ?:[\\/]*) | |
27798 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
27799 | ;; | |
27800 | *) | |
27801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27802 | for as_dir in $PATH | |
27803 | do | |
27804 | IFS=$as_save_IFS | |
27805 | test -z "$as_dir" && as_dir=. | |
27806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27807 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27808 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27809 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27810 | break 2 | |
27811 | fi | |
27812 | done | |
27813 | done | |
27814 | ||
27815 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
27816 | ;; | |
27817 | esac | |
27818 | fi | |
27819 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
27820 | ||
27821 | if test -n "$GTK_CONFIG"; then | |
27822 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
27823 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
27824 | else | |
27825 | echo "$as_me:$LINENO: result: no" >&5 | |
27826 | echo "${ECHO_T}no" >&6 | |
27827 | fi | |
27828 | ||
27829 | min_gtk_version=1.2.3 | |
27830 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
27831 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
27832 | no_gtk="" | |
27833 | if test "$GTK_CONFIG" = "no" ; then | |
27834 | no_gtk=yes | |
27835 | else | |
27836 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
27837 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
27838 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27839 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27840 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27841 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27842 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27843 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27844 | if test "x$enable_gtktest" = "xyes" ; then | |
27845 | ac_save_CFLAGS="$CFLAGS" | |
27846 | ac_save_LIBS="$LIBS" | |
27847 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27848 | LIBS="$GTK_LIBS $LIBS" | |
27849 | rm -f conf.gtktest | |
27850 | if test "$cross_compiling" = yes; then | |
27851 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27852 | else | |
27853 | cat >conftest.$ac_ext <<_ACEOF | |
27854 | /* confdefs.h. */ | |
27855 | _ACEOF | |
27856 | cat confdefs.h >>conftest.$ac_ext | |
27857 | cat >>conftest.$ac_ext <<_ACEOF | |
27858 | /* end confdefs.h. */ | |
27859 | ||
27860 | #include <gtk/gtk.h> | |
27861 | #include <stdio.h> | |
27862 | #include <stdlib.h> | |
27863 | ||
27864 | int | |
27865 | main () | |
27866 | { | |
27867 | int major, minor, micro; | |
27868 | char *tmp_version; | |
27869 | ||
27870 | system ("touch conf.gtktest"); | |
27871 | ||
27872 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27873 | tmp_version = g_strdup("$min_gtk_version"); | |
27874 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27875 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27876 | exit(1); | |
27877 | } | |
27878 | ||
27879 | if ((gtk_major_version != $gtk_config_major_version) || | |
27880 | (gtk_minor_version != $gtk_config_minor_version) || | |
27881 | (gtk_micro_version != $gtk_config_micro_version)) | |
27882 | { | |
27883 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27884 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27885 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27886 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
27887 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27888 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27889 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27890 | printf("*** required on your system.\n"); | |
27891 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
27892 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
27893 | printf("*** before re-running configure\n"); | |
27894 | } | |
27895 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
27896 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27897 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27898 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27899 | { | |
27900 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27901 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27902 | printf("*** library (version %d.%d.%d)\n", | |
27903 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27904 | } | |
27905 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
27906 | else | |
27907 | { | |
27908 | if ((gtk_major_version > major) || | |
27909 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27910 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27911 | { | |
27912 | return 0; | |
27913 | } | |
27914 | else | |
27915 | { | |
27916 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27917 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27918 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27919 | major, minor, micro); | |
27920 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27921 | printf("***\n"); | |
27922 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27923 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
27924 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27925 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27926 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27927 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27928 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27929 | } | |
27930 | } | |
27931 | return 1; | |
27932 | } | |
27933 | ||
27934 | _ACEOF | |
27935 | rm -f conftest$ac_exeext | |
27936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27937 | (eval $ac_link) 2>&5 | |
27938 | ac_status=$? | |
27939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27940 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27942 | (eval $ac_try) 2>&5 | |
27943 | ac_status=$? | |
27944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27945 | (exit $ac_status); }; }; then | |
27946 | : | |
27947 | else | |
27948 | echo "$as_me: program exited with status $ac_status" >&5 | |
27949 | echo "$as_me: failed program was:" >&5 | |
27950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27951 | ||
27952 | ( exit $ac_status ) | |
27953 | no_gtk=yes | |
27954 | fi | |
ac1cb8d3 | 27955 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27956 | fi |
27957 | CFLAGS="$ac_save_CFLAGS" | |
27958 | LIBS="$ac_save_LIBS" | |
27959 | fi | |
27960 | fi | |
27961 | if test "x$no_gtk" = x ; then | |
27962 | echo "$as_me:$LINENO: result: yes" >&5 | |
27963 | echo "${ECHO_T}yes" >&6 | |
27964 | wx_cv_lib_gtk=1.2.3 | |
27965 | else | |
27966 | echo "$as_me:$LINENO: result: no" >&5 | |
27967 | echo "${ECHO_T}no" >&6 | |
27968 | if test "$GTK_CONFIG" = "no" ; then | |
27969 | echo "*** The gtk-config script installed by GTK could not be found" | |
27970 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27971 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27972 | echo "*** full path to gtk-config." | |
27973 | else | |
27974 | if test -f conf.gtktest ; then | |
27975 | : | |
27976 | else | |
27977 | echo "*** Could not run GTK test program, checking why..." | |
27978 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27979 | LIBS="$LIBS $GTK_LIBS" | |
27980 | cat >conftest.$ac_ext <<_ACEOF | |
27981 | /* confdefs.h. */ | |
27982 | _ACEOF | |
27983 | cat confdefs.h >>conftest.$ac_ext | |
27984 | cat >>conftest.$ac_ext <<_ACEOF | |
27985 | /* end confdefs.h. */ | |
27986 | ||
27987 | #include <gtk/gtk.h> | |
27988 | #include <stdio.h> | |
27989 | ||
27990 | int | |
27991 | main () | |
27992 | { | |
27993 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27994 | ; | |
27995 | return 0; | |
27996 | } | |
27997 | _ACEOF | |
27998 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28000 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28001 | ac_status=$? |
ac1cb8d3 VS |
28002 | grep -v '^ *+' conftest.er1 >conftest.err |
28003 | rm -f conftest.er1 | |
28004 | cat conftest.err >&5 | |
a848cd7e SC |
28005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28006 | (exit $ac_status); } && | |
c9a66001 | 28007 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28009 | (eval $ac_try) 2>&5 | |
28010 | ac_status=$? | |
28011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28012 | (exit $ac_status); }; } && | |
28013 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28015 | (eval $ac_try) 2>&5 | |
28016 | ac_status=$? | |
28017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28018 | (exit $ac_status); }; }; then | |
28019 | echo "*** The test program compiled, but did not run. This usually means" | |
28020 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
28021 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
28022 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
28023 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
28024 | echo "*** is required on your system" | |
28025 | echo "***" | |
28026 | echo "*** If you have an old version installed, it is best to remove it, although" | |
28027 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
28028 | echo "***" | |
28029 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
28030 | echo "*** came with the system with the command" | |
28031 | echo "***" | |
28032 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
28033 | else | |
28034 | echo "$as_me: failed program was:" >&5 | |
28035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28036 | ||
28037 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
28038 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
28039 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
28040 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
28041 | fi | |
ac1cb8d3 VS |
28042 | rm -f conftest.err conftest.$ac_objext \ |
28043 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28044 | CFLAGS="$ac_save_CFLAGS" |
28045 | LIBS="$ac_save_LIBS" | |
28046 | fi | |
28047 | fi | |
28048 | GTK_CFLAGS="" | |
28049 | GTK_LIBS="" | |
28050 | : | |
28051 | fi | |
28052 | ||
28053 | ||
28054 | rm -f conf.gtktest | |
28055 | ||
f34ca037 | 28056 | fi |
a848cd7e SC |
28057 | fi |
28058 | fi | |
28059 | ||
28060 | if test -z "$wx_cv_lib_gtk"; then | |
28061 | wx_cv_lib_gtk=none | |
28062 | else | |
28063 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 28064 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
28065 | fi |
28066 | ||
28067 | ||
28068 | fi | |
28069 | ||
28070 | ||
28071 | if test "$gtk_version_cached" = 1; then | |
28072 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
28073 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
28074 | fi | |
28075 | ||
28076 | case "$wx_cv_lib_gtk" in | |
28077 | 2.0) WXGTK20=1 | |
28078 | TOOLKIT_VERSION=2 | |
28079 | ;; | |
28080 | 1.2.7) WXGTK127=1 | |
28081 | WXGTK12=1 | |
28082 | ;; | |
28083 | 1.2.3) WXGTK12=1 | |
28084 | ;; | |
28085 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
28086 | The development files for GTK+ were not found. For GTK+ 2, please |
28087 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
28088 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
28089 | and that the version is 1.2.3 or above. Also check that the | |
28090 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
28091 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
28092 | " >&5 |
28093 | echo "$as_me: error: | |
f597b41c MW |
28094 | The development files for GTK+ were not found. For GTK+ 2, please |
28095 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
28096 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
28097 | and that the version is 1.2.3 or above. Also check that the | |
28098 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
28099 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
28100 | " >&2;} |
28101 | { (exit 1); exit 1; }; } | |
28102 | ;; | |
28103 | esac | |
28104 | ||
28105 | if test "$WXGTK20" = 1; then | |
6954625c | 28106 | save_CFLAGS="$CFLAGS" |
304205f1 | 28107 | save_LIBS="$LIBS" |
6954625c | 28108 | CFLAGS="$wx_cv_cflags_gtk $CFLAGS" |
abc736fd | 28109 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 28110 | |
d12aef51 VZ |
28111 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
28112 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
28113 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
28114 | /* confdefs.h. */ |
28115 | _ACEOF | |
28116 | cat confdefs.h >>conftest.$ac_ext | |
28117 | cat >>conftest.$ac_ext <<_ACEOF | |
28118 | /* end confdefs.h. */ | |
304205f1 | 28119 | |
d12aef51 | 28120 | #include <gtk/gtk.h> |
304205f1 | 28121 | |
d12aef51 VZ |
28122 | int |
28123 | main () | |
28124 | { | |
304205f1 | 28125 | |
d12aef51 | 28126 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
28127 | |
28128 | ; | |
28129 | return 0; | |
28130 | } | |
28131 | _ACEOF | |
28132 | rm -f conftest.$ac_objext | |
28133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28134 | (eval $ac_compile) 2>conftest.er1 | |
28135 | ac_status=$? | |
28136 | grep -v '^ *+' conftest.er1 >conftest.err | |
28137 | rm -f conftest.er1 | |
28138 | cat conftest.err >&5 | |
28139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28140 | (exit $ac_status); } && | |
c9a66001 | 28141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
28142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28143 | (eval $ac_try) 2>&5 | |
28144 | ac_status=$? | |
28145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28146 | (exit $ac_status); }; } && | |
28147 | { ac_try='test -s conftest.$ac_objext' | |
28148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28149 | (eval $ac_try) 2>&5 | |
28150 | ac_status=$? | |
28151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28152 | (exit $ac_status); }; }; then | |
28153 | ||
28154 | echo "$as_me:$LINENO: result: no" >&5 | |
28155 | echo "${ECHO_T}no" >&6 | |
28156 | ||
28157 | else | |
28158 | echo "$as_me: failed program was:" >&5 | |
28159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28160 | ||
28161 | ||
28162 | cat >>confdefs.h <<\_ACEOF | |
28163 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
28164 | _ACEOF | |
28165 | ||
28166 | echo "$as_me:$LINENO: result: yes" >&5 | |
28167 | echo "${ECHO_T}yes" >&6 | |
28168 | ||
28169 | fi | |
28170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28171 | ||
e9263684 VZ |
28172 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5 |
28173 | echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6 | |
28174 | cat >conftest.$ac_ext <<_ACEOF | |
28175 | /* confdefs.h. */ | |
28176 | _ACEOF | |
28177 | cat confdefs.h >>conftest.$ac_ext | |
28178 | cat >>conftest.$ac_ext <<_ACEOF | |
28179 | /* end confdefs.h. */ | |
28180 | ||
28181 | #include <gtk/gtk.h> | |
28182 | ||
28183 | int | |
28184 | main () | |
28185 | { | |
28186 | ||
28187 | #if !GTK_CHECK_VERSION(2,6,0) | |
28188 | Not GTK+ 2.6 | |
28189 | #endif | |
28190 | ||
28191 | ; | |
28192 | return 0; | |
28193 | } | |
28194 | _ACEOF | |
28195 | rm -f conftest.$ac_objext | |
28196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28197 | (eval $ac_compile) 2>conftest.er1 | |
28198 | ac_status=$? | |
28199 | grep -v '^ *+' conftest.er1 >conftest.err | |
28200 | rm -f conftest.er1 | |
28201 | cat conftest.err >&5 | |
28202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28203 | (exit $ac_status); } && | |
c9a66001 | 28204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e9263684 VZ |
28205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28206 | (eval $ac_try) 2>&5 | |
28207 | ac_status=$? | |
28208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28209 | (exit $ac_status); }; } && | |
28210 | { ac_try='test -s conftest.$ac_objext' | |
28211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28212 | (eval $ac_try) 2>&5 | |
28213 | ac_status=$? | |
28214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28215 | (exit $ac_status); }; }; then | |
28216 | ||
28217 | cat >>confdefs.h <<\_ACEOF | |
28218 | #define __WXGTK26__ 1 | |
28219 | _ACEOF | |
28220 | ||
28221 | cat >>confdefs.h <<\_ACEOF | |
28222 | #define __WXGTK24__ 1 | |
28223 | _ACEOF | |
28224 | ||
28225 | echo "$as_me:$LINENO: result: yes" >&5 | |
28226 | echo "${ECHO_T}yes" >&6 | |
28227 | ac_wxgtk26=1 | |
28228 | ||
28229 | else | |
28230 | echo "$as_me: failed program was:" >&5 | |
28231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28232 | ||
28233 | ||
28234 | echo "$as_me:$LINENO: result: no" >&5 | |
28235 | echo "${ECHO_T}no" >&6 | |
28236 | ac_wxgtk26=0 | |
28237 | ||
28238 | fi | |
28239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28240 | ||
28241 | if test "$ac_wxgtk26" = 0; then | |
9755e73b VS |
28242 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
28243 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
28244 | cat >conftest.$ac_ext <<_ACEOF | |
28245 | /* confdefs.h. */ | |
28246 | _ACEOF | |
28247 | cat confdefs.h >>conftest.$ac_ext | |
28248 | cat >>conftest.$ac_ext <<_ACEOF | |
28249 | /* end confdefs.h. */ | |
28250 | ||
28251 | #include <gtk/gtk.h> | |
28252 | ||
28253 | int | |
28254 | main () | |
28255 | { | |
28256 | ||
28257 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 28258 | Not GTK+ 2.4 |
9755e73b VS |
28259 | #endif |
28260 | ||
28261 | ; | |
28262 | return 0; | |
28263 | } | |
28264 | _ACEOF | |
28265 | rm -f conftest.$ac_objext | |
28266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28267 | (eval $ac_compile) 2>conftest.er1 | |
28268 | ac_status=$? | |
28269 | grep -v '^ *+' conftest.er1 >conftest.err | |
28270 | rm -f conftest.er1 | |
28271 | cat conftest.err >&5 | |
28272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28273 | (exit $ac_status); } && | |
c9a66001 | 28274 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
28275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28276 | (eval $ac_try) 2>&5 | |
28277 | ac_status=$? | |
28278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28279 | (exit $ac_status); }; } && | |
28280 | { ac_try='test -s conftest.$ac_objext' | |
28281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28282 | (eval $ac_try) 2>&5 | |
28283 | ac_status=$? | |
28284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28285 | (exit $ac_status); }; }; then | |
28286 | ||
28287 | cat >>confdefs.h <<\_ACEOF | |
28288 | #define __WXGTK24__ 1 | |
28289 | _ACEOF | |
28290 | ||
28291 | echo "$as_me:$LINENO: result: yes" >&5 | |
28292 | echo "${ECHO_T}yes" >&6 | |
28293 | ||
28294 | else | |
28295 | echo "$as_me: failed program was:" >&5 | |
28296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28297 | ||
28298 | ||
28299 | echo "$as_me:$LINENO: result: no" >&5 | |
28300 | echo "${ECHO_T}no" >&6 | |
28301 | ||
28302 | fi | |
28303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
e9263684 | 28304 | fi |
9755e73b | 28305 | |
6954625c | 28306 | CFLAGS="$save_CFLAGS" |
304205f1 | 28307 | LIBS="$save_LIBS" |
a848cd7e SC |
28308 | else |
28309 | if test "$wxUSE_UNICODE" = "yes"; then | |
28310 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
28311 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
28312 | wxUSE_UNICODE=no | |
28313 | fi | |
28314 | fi | |
28315 | ||
e56f4f9e VZ |
28316 | ac_ext=cc |
28317 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28318 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28319 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28320 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28321 | ||
28322 | ||
a848cd7e SC |
28323 | if test "$USE_DARWIN" != 1; then |
28324 | ||
28325 | for ac_func in poll | |
28326 | do | |
28327 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28328 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28329 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28330 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28332 | else | |
28333 | cat >conftest.$ac_ext <<_ACEOF | |
28334 | /* confdefs.h. */ | |
28335 | _ACEOF | |
28336 | cat confdefs.h >>conftest.$ac_ext | |
28337 | cat >>conftest.$ac_ext <<_ACEOF | |
28338 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28339 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28340 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28341 | #define $ac_func innocuous_$ac_func | |
28342 | ||
a848cd7e SC |
28343 | /* System header to define __stub macros and hopefully few prototypes, |
28344 | which can conflict with char $ac_func (); below. | |
28345 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28346 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28347 | |
a848cd7e SC |
28348 | #ifdef __STDC__ |
28349 | # include <limits.h> | |
28350 | #else | |
28351 | # include <assert.h> | |
28352 | #endif | |
ac1cb8d3 VS |
28353 | |
28354 | #undef $ac_func | |
28355 | ||
a848cd7e SC |
28356 | /* Override any gcc2 internal prototype to avoid an error. */ |
28357 | #ifdef __cplusplus | |
28358 | extern "C" | |
28359 | { | |
28360 | #endif | |
28361 | /* We use char because int might match the return type of a gcc2 | |
28362 | builtin and then its argument prototype would still apply. */ | |
28363 | char $ac_func (); | |
28364 | /* The GNU C library defines this for functions which it implements | |
28365 | to always fail with ENOSYS. Some functions are actually named | |
28366 | something starting with __ and the normal name is an alias. */ | |
28367 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28368 | choke me | |
28369 | #else | |
28370 | char (*f) () = $ac_func; | |
28371 | #endif | |
28372 | #ifdef __cplusplus | |
28373 | } | |
28374 | #endif | |
28375 | ||
28376 | int | |
28377 | main () | |
28378 | { | |
28379 | return f != $ac_func; | |
28380 | ; | |
28381 | return 0; | |
28382 | } | |
28383 | _ACEOF | |
28384 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28386 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28387 | ac_status=$? |
ac1cb8d3 VS |
28388 | grep -v '^ *+' conftest.er1 >conftest.err |
28389 | rm -f conftest.er1 | |
28390 | cat conftest.err >&5 | |
a848cd7e SC |
28391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28392 | (exit $ac_status); } && | |
c9a66001 | 28393 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28395 | (eval $ac_try) 2>&5 | |
28396 | ac_status=$? | |
28397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28398 | (exit $ac_status); }; } && | |
28399 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28401 | (eval $ac_try) 2>&5 | |
28402 | ac_status=$? | |
28403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28404 | (exit $ac_status); }; }; then | |
28405 | eval "$as_ac_var=yes" | |
28406 | else | |
28407 | echo "$as_me: failed program was:" >&5 | |
28408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28409 | ||
28410 | eval "$as_ac_var=no" | |
28411 | fi | |
ac1cb8d3 VS |
28412 | rm -f conftest.err conftest.$ac_objext \ |
28413 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28414 | fi |
28415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28416 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28417 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28418 | cat >>confdefs.h <<_ACEOF | |
28419 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28420 | _ACEOF | |
28421 | ||
28422 | fi | |
28423 | done | |
28424 | ||
28425 | fi | |
28426 | ||
28427 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
28428 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
28429 | ||
28430 | AFMINSTALL=afminstall | |
28431 | TOOLKIT=GTK | |
28432 | GUIDIST=GTK_DIST | |
28433 | ||
28434 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
28435 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
28436 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
28437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28438 | else | |
28439 | ac_check_lib_save_LIBS=$LIBS | |
28440 | LIBS="-lgdk $LIBS" | |
28441 | cat >conftest.$ac_ext <<_ACEOF | |
28442 | /* confdefs.h. */ | |
28443 | _ACEOF | |
28444 | cat confdefs.h >>conftest.$ac_ext | |
28445 | cat >>conftest.$ac_ext <<_ACEOF | |
28446 | /* end confdefs.h. */ | |
28447 | ||
28448 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28449 | #ifdef __cplusplus | |
28450 | extern "C" | |
28451 | #endif | |
28452 | /* We use char because int might match the return type of a gcc2 | |
28453 | builtin and then its argument prototype would still apply. */ | |
28454 | char gdk_im_open (); | |
28455 | int | |
28456 | main () | |
28457 | { | |
28458 | gdk_im_open (); | |
28459 | ; | |
28460 | return 0; | |
28461 | } | |
28462 | _ACEOF | |
28463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28465 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28466 | ac_status=$? |
ac1cb8d3 VS |
28467 | grep -v '^ *+' conftest.er1 >conftest.err |
28468 | rm -f conftest.er1 | |
28469 | cat conftest.err >&5 | |
a848cd7e SC |
28470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28471 | (exit $ac_status); } && | |
c9a66001 | 28472 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28474 | (eval $ac_try) 2>&5 | |
28475 | ac_status=$? | |
28476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28477 | (exit $ac_status); }; } && | |
28478 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28480 | (eval $ac_try) 2>&5 | |
28481 | ac_status=$? | |
28482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28483 | (exit $ac_status); }; }; then | |
28484 | ac_cv_lib_gdk_gdk_im_open=yes | |
28485 | else | |
28486 | echo "$as_me: failed program was:" >&5 | |
28487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28488 | ||
28489 | ac_cv_lib_gdk_gdk_im_open=no | |
28490 | fi | |
ac1cb8d3 VS |
28491 | rm -f conftest.err conftest.$ac_objext \ |
28492 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28493 | LIBS=$ac_check_lib_save_LIBS |
28494 | fi | |
28495 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
28496 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
28497 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
28498 | cat >>confdefs.h <<\_ACEOF | |
28499 | #define HAVE_XIM 1 | |
28500 | _ACEOF | |
28501 | ||
28502 | fi | |
28503 | ||
28504 | ||
28505 | ||
28506 | if test "$wxUSE_GPE" = "yes"; then | |
28507 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
28508 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
28509 | ||
0ad5d837 VZ |
28510 | ac_find_libraries= |
28511 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 28512 | do |
3eca31dc | 28513 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
28514 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
28515 | ac_find_libraries=$ac_dir | |
28516 | break 2 | |
28517 | fi | |
28518 | done | |
28519 | done | |
28520 | ||
28521 | if test "$ac_find_libraries" != "" ; then | |
28522 | ||
0ad5d837 | 28523 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
28524 | ac_path_to_link="" |
28525 | else | |
0ad5d837 VZ |
28526 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
28527 | result=$? | |
28528 | if test $result = 0; then | |
28529 | ac_path_to_link="" | |
28530 | else | |
28531 | ac_path_to_link=" -L$ac_find_libraries" | |
28532 | fi | |
a848cd7e SC |
28533 | fi |
28534 | ||
28535 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
28536 | WXGPE=1 | |
0ad5d837 VZ |
28537 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
28538 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
28539 | else |
28540 | echo "$as_me:$LINENO: result: not found" >&5 | |
28541 | echo "${ECHO_T}not found" >&6 | |
28542 | fi | |
28543 | ||
28544 | fi | |
28545 | fi | |
28546 | ||
28547 | if test "$wxUSE_MGL" = 1; then | |
28548 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
28549 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
28550 | if test "x$MGL_ROOT" = x ; then | |
28551 | echo "$as_me:$LINENO: result: not found" >&5 | |
28552 | echo "${ECHO_T}not found" >&6 | |
28553 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
28554 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
28555 | { (exit 1); exit 1; }; } | |
28556 | else | |
28557 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
28558 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
28559 | fi | |
28560 | ||
28561 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
28562 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
28563 | case "${host}" in | |
28564 | *-*-linux* ) | |
28565 | if test "x$wxUSE_SHARED" = xyes ; then | |
28566 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
28567 | else | |
28568 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
28569 | fi | |
28570 | ;; | |
28571 | *-pc-msdosdjgpp ) | |
28572 | mgl_os_candidates="dos32/dj2" | |
28573 | ;; | |
28574 | *) | |
28575 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
28576 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
28577 | { (exit 1); exit 1; }; } | |
28578 | esac | |
28579 | ||
28580 | mgl_lib_type="" | |
28581 | mgl_os="" | |
28582 | ||
28583 | for mgl_os_i in $mgl_os_candidates ; do | |
28584 | if test "x$mgl_os" = x ; then | |
28585 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
28586 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
28587 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
28588 | mgl_lib_type=debug | |
28589 | mgl_os=$mgl_os_i | |
28590 | fi | |
28591 | fi | |
28592 | if test "x$mgl_lib_type" = x ; then | |
28593 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
28594 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
28595 | mgl_lib_type=release | |
28596 | mgl_os=$mgl_os_i | |
28597 | fi | |
28598 | fi | |
28599 | fi | |
28600 | done | |
28601 | ||
28602 | if test "x$mgl_os" = x ; then | |
28603 | echo "$as_me:$LINENO: result: not found" >&5 | |
28604 | echo "${ECHO_T}not found" >&6 | |
28605 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
28606 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
28607 | { (exit 1); exit 1; }; } | |
28608 | fi | |
28609 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
28610 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
28611 | ||
28612 | wxUSE_UNIVERSAL="yes" | |
28613 | ||
28614 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
28615 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
28616 | ||
28617 | AFMINSTALL=afminstall | |
28618 | TOOLKIT=MGL | |
28619 | GUIDIST=MGL_DIST | |
28620 | fi | |
28621 | ||
28622 | if test "$wxUSE_MICROWIN" = 1; then | |
28623 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
28624 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
28625 | if test "x$MICROWINDOWS" = x ; then | |
28626 | echo "$as_me:$LINENO: result: not found" >&5 | |
28627 | echo "${ECHO_T}not found" >&6 | |
28628 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
28629 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
28630 | { (exit 1); exit 1; }; } | |
28631 | else | |
28632 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
28633 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
28634 | fi | |
28635 | ||
28636 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
28637 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
28638 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
28639 | else | |
28640 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
28641 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
28642 | { (exit 1); exit 1; }; } | |
28643 | fi | |
28644 | ||
28645 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
28646 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
28647 | ||
28648 | wxUSE_UNIVERSAL="yes" | |
28649 | ||
28650 | AFMINSTALL=afminstall | |
28651 | TOOLKIT=MICROWIN | |
28652 | GUIDIST=MICROWIN_DIST | |
28653 | ||
28654 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
28655 | fi | |
28656 | ||
74b84332 | 28657 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
c9a66001 VZ |
28658 | |
28659 | if test "x$ac_path_x_has_been_run" != xyes; then | |
28660 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
28661 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
28662 | ||
c9a66001 | 28663 | ac_path_x_has_been_run=yes |
a848cd7e SC |
28664 | |
28665 | # Check whether --with-x or --without-x was given. | |
28666 | if test "${with_x+set}" = set; then | |
28667 | withval="$with_x" | |
28668 | ||
28669 | fi; | |
28670 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
28671 | if test "x$with_x" = xno; then | |
28672 | # The user explicitly disabled X. | |
28673 | have_x=disabled | |
28674 | else | |
28675 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
28676 | # Both variables are already set. | |
28677 | have_x=yes | |
28678 | else | |
28679 | if test "${ac_cv_have_x+set}" = set; then | |
28680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28681 | else | |
28682 | # One or both of the vars are not set, and there is no cached value. | |
28683 | ac_x_includes=no ac_x_libraries=no | |
28684 | rm -fr conftest.dir | |
28685 | if mkdir conftest.dir; then | |
28686 | cd conftest.dir | |
28687 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
28688 | cat >Imakefile <<'_ACEOF' | |
28689 | acfindx: | |
28690 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
28691 | _ACEOF | |
28692 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
28693 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
28694 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
28695 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
28696 | for ac_extension in a so sl; do | |
28697 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
28698 | test -f $ac_im_libdir/libX11.$ac_extension; then |
28699 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
28700 | fi |
28701 | done | |
28702 | # Screen out bogus values from the imake configuration. They are | |
28703 | # bogus both because they are the default anyway, and because | |
28704 | # using them would break gcc on systems where it needs fixed includes. | |
28705 | case $ac_im_incroot in | |
28706 | /usr/include) ;; | |
28707 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
28708 | esac | |
28709 | case $ac_im_usrlibdir in | |
28710 | /usr/lib | /lib) ;; | |
28711 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
28712 | esac | |
28713 | fi | |
28714 | cd .. | |
28715 | rm -fr conftest.dir | |
28716 | fi | |
28717 | ||
28718 | # Standard set of common directories for X headers. | |
28719 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
28720 | ac_x_header_dirs=' | |
28721 | /usr/X11/include | |
28722 | /usr/X11R6/include | |
28723 | /usr/X11R5/include | |
28724 | /usr/X11R4/include | |
28725 | ||
28726 | /usr/include/X11 | |
28727 | /usr/include/X11R6 | |
28728 | /usr/include/X11R5 | |
28729 | /usr/include/X11R4 | |
28730 | ||
28731 | /usr/local/X11/include | |
28732 | /usr/local/X11R6/include | |
28733 | /usr/local/X11R5/include | |
28734 | /usr/local/X11R4/include | |
28735 | ||
28736 | /usr/local/include/X11 | |
28737 | /usr/local/include/X11R6 | |
28738 | /usr/local/include/X11R5 | |
28739 | /usr/local/include/X11R4 | |
28740 | ||
28741 | /usr/X386/include | |
28742 | /usr/x386/include | |
28743 | /usr/XFree86/include/X11 | |
28744 | ||
28745 | /usr/include | |
28746 | /usr/local/include | |
28747 | /usr/unsupported/include | |
28748 | /usr/athena/include | |
28749 | /usr/local/x11r5/include | |
28750 | /usr/lpp/Xamples/include | |
28751 | ||
28752 | /usr/openwin/include | |
28753 | /usr/openwin/share/include' | |
28754 | ||
28755 | if test "$ac_x_includes" = no; then | |
c9a66001 | 28756 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
28757 | # First, try using that file with no special directory specified. |
28758 | cat >conftest.$ac_ext <<_ACEOF | |
28759 | /* confdefs.h. */ | |
28760 | _ACEOF | |
28761 | cat confdefs.h >>conftest.$ac_ext | |
28762 | cat >>conftest.$ac_ext <<_ACEOF | |
28763 | /* end confdefs.h. */ | |
5acfd58d | 28764 | #include <X11/Intrinsic.h> |
a848cd7e SC |
28765 | _ACEOF |
28766 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28767 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28768 | ac_status=$? | |
28769 | grep -v '^ *+' conftest.er1 >conftest.err | |
28770 | rm -f conftest.er1 | |
28771 | cat conftest.err >&5 | |
28772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28773 | (exit $ac_status); } >/dev/null; then | |
28774 | if test -s conftest.err; then | |
5d7b7554 VZ |
28775 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
28776 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
28777 | else |
28778 | ac_cpp_err= | |
28779 | fi | |
28780 | else | |
28781 | ac_cpp_err=yes | |
28782 | fi | |
28783 | if test -z "$ac_cpp_err"; then | |
28784 | # We can compile using X headers with no special include directory. | |
28785 | ac_x_includes= | |
28786 | else | |
28787 | echo "$as_me: failed program was:" >&5 | |
28788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28789 | ||
28790 | for ac_dir in $ac_x_header_dirs; do | |
5acfd58d | 28791 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
a848cd7e SC |
28792 | ac_x_includes=$ac_dir |
28793 | break | |
28794 | fi | |
28795 | done | |
28796 | fi | |
28797 | rm -f conftest.err conftest.$ac_ext | |
28798 | fi # $ac_x_includes = no | |
28799 | ||
28800 | if test "$ac_x_libraries" = no; then | |
28801 | # Check for the libraries. | |
28802 | # See if we find them without any special options. | |
28803 | # Don't add to $LIBS permanently. | |
28804 | ac_save_LIBS=$LIBS | |
5acfd58d | 28805 | LIBS="-lXt $LIBS" |
a848cd7e SC |
28806 | cat >conftest.$ac_ext <<_ACEOF |
28807 | /* confdefs.h. */ | |
28808 | _ACEOF | |
28809 | cat confdefs.h >>conftest.$ac_ext | |
28810 | cat >>conftest.$ac_ext <<_ACEOF | |
28811 | /* end confdefs.h. */ | |
5acfd58d | 28812 | #include <X11/Intrinsic.h> |
a848cd7e SC |
28813 | int |
28814 | main () | |
28815 | { | |
5acfd58d | 28816 | XtMalloc (0) |
a848cd7e SC |
28817 | ; |
28818 | return 0; | |
28819 | } | |
28820 | _ACEOF | |
28821 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28823 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28824 | ac_status=$? |
ac1cb8d3 VS |
28825 | grep -v '^ *+' conftest.er1 >conftest.err |
28826 | rm -f conftest.er1 | |
28827 | cat conftest.err >&5 | |
a848cd7e SC |
28828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28829 | (exit $ac_status); } && | |
c9a66001 | 28830 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28832 | (eval $ac_try) 2>&5 | |
28833 | ac_status=$? | |
28834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28835 | (exit $ac_status); }; } && | |
28836 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28838 | (eval $ac_try) 2>&5 | |
28839 | ac_status=$? | |
28840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28841 | (exit $ac_status); }; }; then | |
28842 | LIBS=$ac_save_LIBS | |
28843 | # We can link X programs with no special library path. | |
28844 | ac_x_libraries= | |
28845 | else | |
28846 | echo "$as_me: failed program was:" >&5 | |
28847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28848 | ||
28849 | LIBS=$ac_save_LIBS | |
28850 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
28851 | do | |
28852 | # Don't even attempt the hair of trying to link an X program! | |
28853 | for ac_extension in a so sl; do | |
5acfd58d | 28854 | if test -r $ac_dir/libXt.$ac_extension; then |
a848cd7e SC |
28855 | ac_x_libraries=$ac_dir |
28856 | break 2 | |
28857 | fi | |
28858 | done | |
28859 | done | |
28860 | fi | |
ac1cb8d3 VS |
28861 | rm -f conftest.err conftest.$ac_objext \ |
28862 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28863 | fi # $ac_x_libraries = no |
28864 | ||
28865 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
28866 | # Didn't find X anywhere. Cache the known absence of X. | |
28867 | ac_cv_have_x="have_x=no" | |
28868 | else | |
28869 | # Record where we found X for the cache. | |
28870 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 28871 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
28872 | fi |
28873 | fi | |
28874 | ||
28875 | fi | |
28876 | eval "$ac_cv_have_x" | |
28877 | fi # $with_x != no | |
28878 | ||
28879 | if test "$have_x" != yes; then | |
28880 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
28881 | echo "${ECHO_T}$have_x" >&6 | |
28882 | no_x=yes | |
28883 | else | |
28884 | # If each of the values was on the command line, it overrides each guess. | |
28885 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
28886 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
28887 | # Update the cache value to reflect the command line values. | |
28888 | ac_cv_have_x="have_x=yes \ | |
28889 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
c9a66001 VZ |
28890 | # It might be that x_includes is empty (headers are found in the |
28891 | # standard search path. Then output the corresponding message | |
28892 | ac_out_x_includes=$x_includes | |
28893 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
28894 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
28895 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
28896 | fi |
28897 | ||
c9a66001 | 28898 | fi |
a848cd7e SC |
28899 | if test "$no_x" = yes; then |
28900 | # Not all programs may use this symbol, but it does not hurt to define it. | |
28901 | ||
28902 | cat >>confdefs.h <<\_ACEOF | |
28903 | #define X_DISPLAY_MISSING 1 | |
28904 | _ACEOF | |
28905 | ||
28906 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
28907 | else | |
28908 | if test -n "$x_includes"; then | |
28909 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
28910 | fi | |
28911 | ||
28912 | # It would also be nice to do this for all -L options, not just this one. | |
28913 | if test -n "$x_libraries"; then | |
28914 | X_LIBS="$X_LIBS -L$x_libraries" | |
28915 | # For Solaris; some versions of Sun CC require a space after -R and | |
28916 | # others require no space. Words are not sufficient . . . . | |
28917 | case `(uname -sr) 2>/dev/null` in | |
28918 | "SunOS 5"*) | |
28919 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
28920 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
28921 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
28922 | cat >conftest.$ac_ext <<_ACEOF | |
28923 | /* confdefs.h. */ | |
28924 | _ACEOF | |
28925 | cat confdefs.h >>conftest.$ac_ext | |
28926 | cat >>conftest.$ac_ext <<_ACEOF | |
28927 | /* end confdefs.h. */ | |
28928 | ||
28929 | int | |
28930 | main () | |
28931 | { | |
28932 | ||
28933 | ; | |
28934 | return 0; | |
28935 | } | |
28936 | _ACEOF | |
28937 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28939 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28940 | ac_status=$? |
ac1cb8d3 VS |
28941 | grep -v '^ *+' conftest.er1 >conftest.err |
28942 | rm -f conftest.er1 | |
28943 | cat conftest.err >&5 | |
a848cd7e SC |
28944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28945 | (exit $ac_status); } && | |
c9a66001 | 28946 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28948 | (eval $ac_try) 2>&5 | |
28949 | ac_status=$? | |
28950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28951 | (exit $ac_status); }; } && | |
28952 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28954 | (eval $ac_try) 2>&5 | |
28955 | ac_status=$? | |
28956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28957 | (exit $ac_status); }; }; then | |
28958 | ac_R_nospace=yes | |
28959 | else | |
28960 | echo "$as_me: failed program was:" >&5 | |
28961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28962 | ||
28963 | ac_R_nospace=no | |
28964 | fi | |
ac1cb8d3 VS |
28965 | rm -f conftest.err conftest.$ac_objext \ |
28966 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28967 | if test $ac_R_nospace = yes; then |
28968 | echo "$as_me:$LINENO: result: no" >&5 | |
28969 | echo "${ECHO_T}no" >&6 | |
28970 | X_LIBS="$X_LIBS -R$x_libraries" | |
28971 | else | |
28972 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
28973 | cat >conftest.$ac_ext <<_ACEOF | |
28974 | /* confdefs.h. */ | |
28975 | _ACEOF | |
28976 | cat confdefs.h >>conftest.$ac_ext | |
28977 | cat >>conftest.$ac_ext <<_ACEOF | |
28978 | /* end confdefs.h. */ | |
28979 | ||
28980 | int | |
28981 | main () | |
28982 | { | |
28983 | ||
28984 | ; | |
28985 | return 0; | |
28986 | } | |
28987 | _ACEOF | |
28988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28990 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28991 | ac_status=$? |
ac1cb8d3 VS |
28992 | grep -v '^ *+' conftest.er1 >conftest.err |
28993 | rm -f conftest.er1 | |
28994 | cat conftest.err >&5 | |
a848cd7e SC |
28995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28996 | (exit $ac_status); } && | |
c9a66001 | 28997 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28999 | (eval $ac_try) 2>&5 | |
29000 | ac_status=$? | |
29001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29002 | (exit $ac_status); }; } && | |
29003 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29005 | (eval $ac_try) 2>&5 | |
29006 | ac_status=$? | |
29007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29008 | (exit $ac_status); }; }; then | |
29009 | ac_R_space=yes | |
29010 | else | |
29011 | echo "$as_me: failed program was:" >&5 | |
29012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29013 | ||
29014 | ac_R_space=no | |
29015 | fi | |
ac1cb8d3 VS |
29016 | rm -f conftest.err conftest.$ac_objext \ |
29017 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29018 | if test $ac_R_space = yes; then |
29019 | echo "$as_me:$LINENO: result: yes" >&5 | |
29020 | echo "${ECHO_T}yes" >&6 | |
29021 | X_LIBS="$X_LIBS -R $x_libraries" | |
29022 | else | |
29023 | echo "$as_me:$LINENO: result: neither works" >&5 | |
29024 | echo "${ECHO_T}neither works" >&6 | |
29025 | fi | |
29026 | fi | |
29027 | LIBS=$ac_xsave_LIBS | |
29028 | esac | |
29029 | fi | |
29030 | ||
29031 | # Check for system-dependent libraries X programs must link with. | |
29032 | # Do this before checking for the system-independent R6 libraries | |
29033 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
29034 | ||
29035 | if test "$ISC" = yes; then | |
29036 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
29037 | else | |
29038 | # Martyn Johnson says this is needed for Ultrix, if the X | |
29039 | # libraries were built with DECnet support. And Karl Berry says | |
29040 | # the Alpha needs dnet_stub (dnet does not exist). | |
29041 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
29042 | cat >conftest.$ac_ext <<_ACEOF | |
29043 | /* confdefs.h. */ | |
29044 | _ACEOF | |
29045 | cat confdefs.h >>conftest.$ac_ext | |
29046 | cat >>conftest.$ac_ext <<_ACEOF | |
29047 | /* end confdefs.h. */ | |
29048 | ||
29049 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29050 | #ifdef __cplusplus | |
29051 | extern "C" | |
29052 | #endif | |
29053 | /* We use char because int might match the return type of a gcc2 | |
29054 | builtin and then its argument prototype would still apply. */ | |
29055 | char XOpenDisplay (); | |
29056 | int | |
29057 | main () | |
29058 | { | |
29059 | XOpenDisplay (); | |
29060 | ; | |
29061 | return 0; | |
29062 | } | |
29063 | _ACEOF | |
29064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29066 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29067 | ac_status=$? |
ac1cb8d3 VS |
29068 | grep -v '^ *+' conftest.er1 >conftest.err |
29069 | rm -f conftest.er1 | |
29070 | cat conftest.err >&5 | |
a848cd7e SC |
29071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29072 | (exit $ac_status); } && | |
c9a66001 | 29073 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29075 | (eval $ac_try) 2>&5 | |
29076 | ac_status=$? | |
29077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29078 | (exit $ac_status); }; } && | |
29079 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29081 | (eval $ac_try) 2>&5 | |
29082 | ac_status=$? | |
29083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29084 | (exit $ac_status); }; }; then | |
29085 | : | |
29086 | else | |
29087 | echo "$as_me: failed program was:" >&5 | |
29088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29089 | ||
29090 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
29091 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
29092 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
29093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29094 | else | |
29095 | ac_check_lib_save_LIBS=$LIBS | |
29096 | LIBS="-ldnet $LIBS" | |
29097 | cat >conftest.$ac_ext <<_ACEOF | |
29098 | /* confdefs.h. */ | |
29099 | _ACEOF | |
29100 | cat confdefs.h >>conftest.$ac_ext | |
29101 | cat >>conftest.$ac_ext <<_ACEOF | |
29102 | /* end confdefs.h. */ | |
29103 | ||
29104 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29105 | #ifdef __cplusplus | |
29106 | extern "C" | |
29107 | #endif | |
29108 | /* We use char because int might match the return type of a gcc2 | |
29109 | builtin and then its argument prototype would still apply. */ | |
29110 | char dnet_ntoa (); | |
29111 | int | |
29112 | main () | |
29113 | { | |
29114 | dnet_ntoa (); | |
29115 | ; | |
29116 | return 0; | |
29117 | } | |
29118 | _ACEOF | |
29119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29121 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29122 | ac_status=$? |
ac1cb8d3 VS |
29123 | grep -v '^ *+' conftest.er1 >conftest.err |
29124 | rm -f conftest.er1 | |
29125 | cat conftest.err >&5 | |
a848cd7e SC |
29126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29127 | (exit $ac_status); } && | |
c9a66001 | 29128 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29130 | (eval $ac_try) 2>&5 | |
29131 | ac_status=$? | |
29132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29133 | (exit $ac_status); }; } && | |
29134 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29136 | (eval $ac_try) 2>&5 | |
29137 | ac_status=$? | |
29138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29139 | (exit $ac_status); }; }; then | |
29140 | ac_cv_lib_dnet_dnet_ntoa=yes | |
29141 | else | |
29142 | echo "$as_me: failed program was:" >&5 | |
29143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29144 | ||
29145 | ac_cv_lib_dnet_dnet_ntoa=no | |
29146 | fi | |
ac1cb8d3 VS |
29147 | rm -f conftest.err conftest.$ac_objext \ |
29148 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29149 | LIBS=$ac_check_lib_save_LIBS |
29150 | fi | |
29151 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
29152 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
29153 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
29154 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
29155 | fi | |
29156 | ||
29157 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
29158 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
29159 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
29160 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
29161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29162 | else | |
29163 | ac_check_lib_save_LIBS=$LIBS | |
29164 | LIBS="-ldnet_stub $LIBS" | |
29165 | cat >conftest.$ac_ext <<_ACEOF | |
29166 | /* confdefs.h. */ | |
29167 | _ACEOF | |
29168 | cat confdefs.h >>conftest.$ac_ext | |
29169 | cat >>conftest.$ac_ext <<_ACEOF | |
29170 | /* end confdefs.h. */ | |
29171 | ||
29172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29173 | #ifdef __cplusplus | |
29174 | extern "C" | |
29175 | #endif | |
29176 | /* We use char because int might match the return type of a gcc2 | |
29177 | builtin and then its argument prototype would still apply. */ | |
29178 | char dnet_ntoa (); | |
29179 | int | |
29180 | main () | |
29181 | { | |
29182 | dnet_ntoa (); | |
29183 | ; | |
29184 | return 0; | |
29185 | } | |
29186 | _ACEOF | |
29187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29189 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29190 | ac_status=$? |
ac1cb8d3 VS |
29191 | grep -v '^ *+' conftest.er1 >conftest.err |
29192 | rm -f conftest.er1 | |
29193 | cat conftest.err >&5 | |
a848cd7e SC |
29194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29195 | (exit $ac_status); } && | |
c9a66001 | 29196 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29198 | (eval $ac_try) 2>&5 | |
29199 | ac_status=$? | |
29200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29201 | (exit $ac_status); }; } && | |
29202 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29204 | (eval $ac_try) 2>&5 | |
29205 | ac_status=$? | |
29206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29207 | (exit $ac_status); }; }; then | |
29208 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
29209 | else | |
29210 | echo "$as_me: failed program was:" >&5 | |
29211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29212 | ||
29213 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
29214 | fi | |
ac1cb8d3 VS |
29215 | rm -f conftest.err conftest.$ac_objext \ |
29216 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29217 | LIBS=$ac_check_lib_save_LIBS |
29218 | fi | |
29219 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
29220 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
29221 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
29222 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
29223 | fi | |
29224 | ||
29225 | fi | |
29226 | fi | |
ac1cb8d3 VS |
29227 | rm -f conftest.err conftest.$ac_objext \ |
29228 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29229 | LIBS="$ac_xsave_LIBS" |
29230 | ||
29231 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
29232 | # to get the SysV transport functions. | |
29233 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
29234 | # needs -lnsl. | |
29235 | # The nsl library prevents programs from opening the X display | |
29236 | # on Irix 5.2, according to T.E. Dickey. | |
29237 | # The functions gethostbyname, getservbyname, and inet_addr are | |
29238 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
29239 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
29240 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
29241 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
29242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29243 | else | |
29244 | cat >conftest.$ac_ext <<_ACEOF | |
29245 | /* confdefs.h. */ | |
29246 | _ACEOF | |
29247 | cat confdefs.h >>conftest.$ac_ext | |
29248 | cat >>conftest.$ac_ext <<_ACEOF | |
29249 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29250 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
29251 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29252 | #define gethostbyname innocuous_gethostbyname | |
29253 | ||
a848cd7e SC |
29254 | /* System header to define __stub macros and hopefully few prototypes, |
29255 | which can conflict with char gethostbyname (); below. | |
29256 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29257 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29258 | |
a848cd7e SC |
29259 | #ifdef __STDC__ |
29260 | # include <limits.h> | |
29261 | #else | |
29262 | # include <assert.h> | |
29263 | #endif | |
ac1cb8d3 VS |
29264 | |
29265 | #undef gethostbyname | |
29266 | ||
a848cd7e SC |
29267 | /* Override any gcc2 internal prototype to avoid an error. */ |
29268 | #ifdef __cplusplus | |
29269 | extern "C" | |
29270 | { | |
29271 | #endif | |
29272 | /* We use char because int might match the return type of a gcc2 | |
29273 | builtin and then its argument prototype would still apply. */ | |
29274 | char gethostbyname (); | |
29275 | /* The GNU C library defines this for functions which it implements | |
29276 | to always fail with ENOSYS. Some functions are actually named | |
29277 | something starting with __ and the normal name is an alias. */ | |
29278 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
29279 | choke me | |
29280 | #else | |
29281 | char (*f) () = gethostbyname; | |
29282 | #endif | |
29283 | #ifdef __cplusplus | |
29284 | } | |
29285 | #endif | |
29286 | ||
29287 | int | |
29288 | main () | |
29289 | { | |
29290 | return f != gethostbyname; | |
29291 | ; | |
29292 | return 0; | |
29293 | } | |
29294 | _ACEOF | |
29295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29297 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29298 | ac_status=$? |
ac1cb8d3 VS |
29299 | grep -v '^ *+' conftest.er1 >conftest.err |
29300 | rm -f conftest.er1 | |
29301 | cat conftest.err >&5 | |
a848cd7e SC |
29302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29303 | (exit $ac_status); } && | |
c9a66001 | 29304 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29306 | (eval $ac_try) 2>&5 | |
29307 | ac_status=$? | |
29308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29309 | (exit $ac_status); }; } && | |
29310 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29312 | (eval $ac_try) 2>&5 | |
29313 | ac_status=$? | |
29314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29315 | (exit $ac_status); }; }; then | |
29316 | ac_cv_func_gethostbyname=yes | |
29317 | else | |
29318 | echo "$as_me: failed program was:" >&5 | |
29319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29320 | ||
29321 | ac_cv_func_gethostbyname=no | |
29322 | fi | |
ac1cb8d3 VS |
29323 | rm -f conftest.err conftest.$ac_objext \ |
29324 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29325 | fi |
29326 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
29327 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
29328 | ||
29329 | if test $ac_cv_func_gethostbyname = no; then | |
29330 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
29331 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
29332 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
29333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29334 | else | |
29335 | ac_check_lib_save_LIBS=$LIBS | |
29336 | LIBS="-lnsl $LIBS" | |
29337 | cat >conftest.$ac_ext <<_ACEOF | |
29338 | /* confdefs.h. */ | |
29339 | _ACEOF | |
29340 | cat confdefs.h >>conftest.$ac_ext | |
29341 | cat >>conftest.$ac_ext <<_ACEOF | |
29342 | /* end confdefs.h. */ | |
29343 | ||
29344 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29345 | #ifdef __cplusplus | |
29346 | extern "C" | |
29347 | #endif | |
29348 | /* We use char because int might match the return type of a gcc2 | |
29349 | builtin and then its argument prototype would still apply. */ | |
29350 | char gethostbyname (); | |
29351 | int | |
29352 | main () | |
29353 | { | |
29354 | gethostbyname (); | |
29355 | ; | |
29356 | return 0; | |
29357 | } | |
29358 | _ACEOF | |
29359 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
29361 | (eval $ac_link) 2>conftest.er1 |
29362 | ac_status=$? | |
29363 | grep -v '^ *+' conftest.er1 >conftest.err | |
29364 | rm -f conftest.er1 | |
29365 | cat conftest.err >&5 | |
29366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29367 | (exit $ac_status); } && | |
c9a66001 | 29368 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29370 | (eval $ac_try) 2>&5 | |
29371 | ac_status=$? | |
29372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29373 | (exit $ac_status); }; } && | |
29374 | { ac_try='test -s conftest$ac_exeext' | |
29375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29376 | (eval $ac_try) 2>&5 | |
29377 | ac_status=$? | |
29378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29379 | (exit $ac_status); }; }; then | |
29380 | ac_cv_lib_nsl_gethostbyname=yes | |
29381 | else | |
29382 | echo "$as_me: failed program was:" >&5 | |
29383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29384 | ||
29385 | ac_cv_lib_nsl_gethostbyname=no | |
29386 | fi | |
29387 | rm -f conftest.err conftest.$ac_objext \ | |
29388 | conftest$ac_exeext conftest.$ac_ext | |
29389 | LIBS=$ac_check_lib_save_LIBS | |
29390 | fi | |
29391 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
29392 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
29393 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
29394 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
29395 | fi | |
29396 | ||
29397 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
29398 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
29399 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
29400 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
29401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29402 | else | |
29403 | ac_check_lib_save_LIBS=$LIBS | |
29404 | LIBS="-lbsd $LIBS" | |
29405 | cat >conftest.$ac_ext <<_ACEOF | |
29406 | /* confdefs.h. */ | |
29407 | _ACEOF | |
29408 | cat confdefs.h >>conftest.$ac_ext | |
29409 | cat >>conftest.$ac_ext <<_ACEOF | |
29410 | /* end confdefs.h. */ | |
29411 | ||
29412 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29413 | #ifdef __cplusplus | |
29414 | extern "C" | |
29415 | #endif | |
29416 | /* We use char because int might match the return type of a gcc2 | |
29417 | builtin and then its argument prototype would still apply. */ | |
29418 | char gethostbyname (); | |
29419 | int | |
29420 | main () | |
29421 | { | |
29422 | gethostbyname (); | |
29423 | ; | |
29424 | return 0; | |
29425 | } | |
29426 | _ACEOF | |
29427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29429 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 29430 | ac_status=$? |
ac1cb8d3 VS |
29431 | grep -v '^ *+' conftest.er1 >conftest.err |
29432 | rm -f conftest.er1 | |
29433 | cat conftest.err >&5 | |
a848cd7e SC |
29434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29435 | (exit $ac_status); } && | |
c9a66001 | 29436 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
29437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29438 | (eval $ac_try) 2>&5 | |
29439 | ac_status=$? | |
29440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
29441 | (exit $ac_status); }; } && |
29442 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29444 | (eval $ac_try) 2>&5 | |
29445 | ac_status=$? | |
29446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29447 | (exit $ac_status); }; }; then | |
29448 | ac_cv_lib_bsd_gethostbyname=yes | |
29449 | else | |
29450 | echo "$as_me: failed program was:" >&5 | |
29451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29452 | ||
29453 | ac_cv_lib_bsd_gethostbyname=no | |
29454 | fi | |
ac1cb8d3 VS |
29455 | rm -f conftest.err conftest.$ac_objext \ |
29456 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29457 | LIBS=$ac_check_lib_save_LIBS |
29458 | fi | |
29459 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
29460 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
29461 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
29462 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
29463 | fi | |
29464 | ||
29465 | fi | |
29466 | fi | |
29467 | ||
29468 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
29469 | # socket/setsockopt and other routines are undefined under SCO ODT | |
29470 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
29471 | # on later versions), says Simon Leinen: it contains gethostby* | |
29472 | # variants that don't use the name server (or something). -lsocket | |
29473 | # must be given before -lnsl if both are needed. We assume that | |
29474 | # if connect needs -lnsl, so does gethostbyname. | |
29475 | echo "$as_me:$LINENO: checking for connect" >&5 | |
29476 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
29477 | if test "${ac_cv_func_connect+set}" = set; then | |
29478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29479 | else | |
29480 | cat >conftest.$ac_ext <<_ACEOF | |
29481 | /* confdefs.h. */ | |
29482 | _ACEOF | |
29483 | cat confdefs.h >>conftest.$ac_ext | |
29484 | cat >>conftest.$ac_ext <<_ACEOF | |
29485 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29486 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
29487 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29488 | #define connect innocuous_connect | |
29489 | ||
a848cd7e SC |
29490 | /* System header to define __stub macros and hopefully few prototypes, |
29491 | which can conflict with char connect (); below. | |
29492 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29493 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29494 | |
a848cd7e SC |
29495 | #ifdef __STDC__ |
29496 | # include <limits.h> | |
29497 | #else | |
29498 | # include <assert.h> | |
29499 | #endif | |
ac1cb8d3 VS |
29500 | |
29501 | #undef connect | |
29502 | ||
a848cd7e SC |
29503 | /* Override any gcc2 internal prototype to avoid an error. */ |
29504 | #ifdef __cplusplus | |
29505 | extern "C" | |
29506 | { | |
29507 | #endif | |
29508 | /* We use char because int might match the return type of a gcc2 | |
29509 | builtin and then its argument prototype would still apply. */ | |
29510 | char connect (); | |
29511 | /* The GNU C library defines this for functions which it implements | |
29512 | to always fail with ENOSYS. Some functions are actually named | |
29513 | something starting with __ and the normal name is an alias. */ | |
29514 | #if defined (__stub_connect) || defined (__stub___connect) | |
29515 | choke me | |
29516 | #else | |
29517 | char (*f) () = connect; | |
29518 | #endif | |
29519 | #ifdef __cplusplus | |
29520 | } | |
29521 | #endif | |
29522 | ||
29523 | int | |
29524 | main () | |
29525 | { | |
29526 | return f != connect; | |
29527 | ; | |
29528 | return 0; | |
29529 | } | |
29530 | _ACEOF | |
29531 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29533 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29534 | ac_status=$? |
ac1cb8d3 VS |
29535 | grep -v '^ *+' conftest.er1 >conftest.err |
29536 | rm -f conftest.er1 | |
29537 | cat conftest.err >&5 | |
a848cd7e SC |
29538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29539 | (exit $ac_status); } && | |
c9a66001 | 29540 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29542 | (eval $ac_try) 2>&5 | |
29543 | ac_status=$? | |
29544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29545 | (exit $ac_status); }; } && | |
29546 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29548 | (eval $ac_try) 2>&5 | |
29549 | ac_status=$? | |
29550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29551 | (exit $ac_status); }; }; then | |
29552 | ac_cv_func_connect=yes | |
29553 | else | |
29554 | echo "$as_me: failed program was:" >&5 | |
29555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29556 | ||
29557 | ac_cv_func_connect=no | |
29558 | fi | |
ac1cb8d3 VS |
29559 | rm -f conftest.err conftest.$ac_objext \ |
29560 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29561 | fi |
29562 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
29563 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
29564 | ||
29565 | if test $ac_cv_func_connect = no; then | |
29566 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
29567 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
29568 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
29569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29570 | else | |
29571 | ac_check_lib_save_LIBS=$LIBS | |
29572 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
29573 | cat >conftest.$ac_ext <<_ACEOF | |
29574 | /* confdefs.h. */ | |
29575 | _ACEOF | |
29576 | cat confdefs.h >>conftest.$ac_ext | |
29577 | cat >>conftest.$ac_ext <<_ACEOF | |
29578 | /* end confdefs.h. */ | |
29579 | ||
29580 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29581 | #ifdef __cplusplus | |
29582 | extern "C" | |
29583 | #endif | |
29584 | /* We use char because int might match the return type of a gcc2 | |
29585 | builtin and then its argument prototype would still apply. */ | |
29586 | char connect (); | |
29587 | int | |
29588 | main () | |
29589 | { | |
29590 | connect (); | |
29591 | ; | |
29592 | return 0; | |
29593 | } | |
29594 | _ACEOF | |
29595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29597 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29598 | ac_status=$? |
ac1cb8d3 VS |
29599 | grep -v '^ *+' conftest.er1 >conftest.err |
29600 | rm -f conftest.er1 | |
29601 | cat conftest.err >&5 | |
a848cd7e SC |
29602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29603 | (exit $ac_status); } && | |
c9a66001 | 29604 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29606 | (eval $ac_try) 2>&5 | |
29607 | ac_status=$? | |
29608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29609 | (exit $ac_status); }; } && | |
29610 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29612 | (eval $ac_try) 2>&5 | |
29613 | ac_status=$? | |
29614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29615 | (exit $ac_status); }; }; then | |
29616 | ac_cv_lib_socket_connect=yes | |
29617 | else | |
29618 | echo "$as_me: failed program was:" >&5 | |
29619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29620 | ||
29621 | ac_cv_lib_socket_connect=no | |
29622 | fi | |
ac1cb8d3 VS |
29623 | rm -f conftest.err conftest.$ac_objext \ |
29624 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29625 | LIBS=$ac_check_lib_save_LIBS |
29626 | fi | |
29627 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
29628 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
29629 | if test $ac_cv_lib_socket_connect = yes; then | |
29630 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
29631 | fi | |
29632 | ||
29633 | fi | |
29634 | ||
29635 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
29636 | echo "$as_me:$LINENO: checking for remove" >&5 | |
29637 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
29638 | if test "${ac_cv_func_remove+set}" = set; then | |
29639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29640 | else | |
29641 | cat >conftest.$ac_ext <<_ACEOF | |
29642 | /* confdefs.h. */ | |
29643 | _ACEOF | |
29644 | cat confdefs.h >>conftest.$ac_ext | |
29645 | cat >>conftest.$ac_ext <<_ACEOF | |
29646 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29647 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
29648 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29649 | #define remove innocuous_remove | |
29650 | ||
a848cd7e SC |
29651 | /* System header to define __stub macros and hopefully few prototypes, |
29652 | which can conflict with char remove (); below. | |
29653 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29654 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29655 | |
a848cd7e SC |
29656 | #ifdef __STDC__ |
29657 | # include <limits.h> | |
29658 | #else | |
29659 | # include <assert.h> | |
29660 | #endif | |
ac1cb8d3 VS |
29661 | |
29662 | #undef remove | |
29663 | ||
a848cd7e SC |
29664 | /* Override any gcc2 internal prototype to avoid an error. */ |
29665 | #ifdef __cplusplus | |
29666 | extern "C" | |
29667 | { | |
29668 | #endif | |
29669 | /* We use char because int might match the return type of a gcc2 | |
29670 | builtin and then its argument prototype would still apply. */ | |
29671 | char remove (); | |
29672 | /* The GNU C library defines this for functions which it implements | |
29673 | to always fail with ENOSYS. Some functions are actually named | |
29674 | something starting with __ and the normal name is an alias. */ | |
29675 | #if defined (__stub_remove) || defined (__stub___remove) | |
29676 | choke me | |
29677 | #else | |
29678 | char (*f) () = remove; | |
29679 | #endif | |
29680 | #ifdef __cplusplus | |
29681 | } | |
29682 | #endif | |
29683 | ||
29684 | int | |
29685 | main () | |
29686 | { | |
29687 | return f != remove; | |
29688 | ; | |
29689 | return 0; | |
29690 | } | |
29691 | _ACEOF | |
29692 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29694 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29695 | ac_status=$? |
ac1cb8d3 VS |
29696 | grep -v '^ *+' conftest.er1 >conftest.err |
29697 | rm -f conftest.er1 | |
29698 | cat conftest.err >&5 | |
a848cd7e SC |
29699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29700 | (exit $ac_status); } && | |
c9a66001 | 29701 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29703 | (eval $ac_try) 2>&5 | |
29704 | ac_status=$? | |
29705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29706 | (exit $ac_status); }; } && | |
29707 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29709 | (eval $ac_try) 2>&5 | |
29710 | ac_status=$? | |
29711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29712 | (exit $ac_status); }; }; then | |
29713 | ac_cv_func_remove=yes | |
29714 | else | |
29715 | echo "$as_me: failed program was:" >&5 | |
29716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29717 | ||
29718 | ac_cv_func_remove=no | |
29719 | fi | |
ac1cb8d3 VS |
29720 | rm -f conftest.err conftest.$ac_objext \ |
29721 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29722 | fi |
29723 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
29724 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
29725 | ||
29726 | if test $ac_cv_func_remove = no; then | |
29727 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
29728 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
29729 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
29730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29731 | else | |
29732 | ac_check_lib_save_LIBS=$LIBS | |
29733 | LIBS="-lposix $LIBS" | |
29734 | cat >conftest.$ac_ext <<_ACEOF | |
29735 | /* confdefs.h. */ | |
29736 | _ACEOF | |
29737 | cat confdefs.h >>conftest.$ac_ext | |
29738 | cat >>conftest.$ac_ext <<_ACEOF | |
29739 | /* end confdefs.h. */ | |
29740 | ||
29741 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29742 | #ifdef __cplusplus | |
29743 | extern "C" | |
29744 | #endif | |
29745 | /* We use char because int might match the return type of a gcc2 | |
29746 | builtin and then its argument prototype would still apply. */ | |
29747 | char remove (); | |
29748 | int | |
29749 | main () | |
29750 | { | |
29751 | remove (); | |
29752 | ; | |
29753 | return 0; | |
29754 | } | |
29755 | _ACEOF | |
29756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29758 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29759 | ac_status=$? |
ac1cb8d3 VS |
29760 | grep -v '^ *+' conftest.er1 >conftest.err |
29761 | rm -f conftest.er1 | |
29762 | cat conftest.err >&5 | |
a848cd7e SC |
29763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29764 | (exit $ac_status); } && | |
c9a66001 | 29765 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29767 | (eval $ac_try) 2>&5 | |
29768 | ac_status=$? | |
29769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29770 | (exit $ac_status); }; } && | |
29771 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29773 | (eval $ac_try) 2>&5 | |
29774 | ac_status=$? | |
29775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29776 | (exit $ac_status); }; }; then | |
29777 | ac_cv_lib_posix_remove=yes | |
29778 | else | |
29779 | echo "$as_me: failed program was:" >&5 | |
29780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29781 | ||
29782 | ac_cv_lib_posix_remove=no | |
29783 | fi | |
ac1cb8d3 VS |
29784 | rm -f conftest.err conftest.$ac_objext \ |
29785 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29786 | LIBS=$ac_check_lib_save_LIBS |
29787 | fi | |
29788 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
29789 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
29790 | if test $ac_cv_lib_posix_remove = yes; then | |
29791 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
29792 | fi | |
29793 | ||
29794 | fi | |
29795 | ||
29796 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
29797 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
29798 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
29799 | if test "${ac_cv_func_shmat+set}" = set; then | |
29800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29801 | else | |
29802 | cat >conftest.$ac_ext <<_ACEOF | |
29803 | /* confdefs.h. */ | |
29804 | _ACEOF | |
29805 | cat confdefs.h >>conftest.$ac_ext | |
29806 | cat >>conftest.$ac_ext <<_ACEOF | |
29807 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29808 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
29809 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29810 | #define shmat innocuous_shmat | |
29811 | ||
a848cd7e SC |
29812 | /* System header to define __stub macros and hopefully few prototypes, |
29813 | which can conflict with char shmat (); below. | |
29814 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29815 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29816 | |
a848cd7e SC |
29817 | #ifdef __STDC__ |
29818 | # include <limits.h> | |
29819 | #else | |
29820 | # include <assert.h> | |
29821 | #endif | |
ac1cb8d3 VS |
29822 | |
29823 | #undef shmat | |
29824 | ||
a848cd7e SC |
29825 | /* Override any gcc2 internal prototype to avoid an error. */ |
29826 | #ifdef __cplusplus | |
29827 | extern "C" | |
29828 | { | |
29829 | #endif | |
29830 | /* We use char because int might match the return type of a gcc2 | |
29831 | builtin and then its argument prototype would still apply. */ | |
29832 | char shmat (); | |
29833 | /* The GNU C library defines this for functions which it implements | |
29834 | to always fail with ENOSYS. Some functions are actually named | |
29835 | something starting with __ and the normal name is an alias. */ | |
29836 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
29837 | choke me | |
29838 | #else | |
29839 | char (*f) () = shmat; | |
29840 | #endif | |
29841 | #ifdef __cplusplus | |
29842 | } | |
29843 | #endif | |
29844 | ||
29845 | int | |
29846 | main () | |
29847 | { | |
29848 | return f != shmat; | |
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 | |
ac1cb8d3 | 29855 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29856 | ac_status=$? |
ac1cb8d3 VS |
29857 | grep -v '^ *+' conftest.er1 >conftest.err |
29858 | rm -f conftest.er1 | |
29859 | cat conftest.err >&5 | |
a848cd7e SC |
29860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29861 | (exit $ac_status); } && | |
c9a66001 | 29862 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29864 | (eval $ac_try) 2>&5 | |
29865 | ac_status=$? | |
29866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29867 | (exit $ac_status); }; } && | |
29868 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29870 | (eval $ac_try) 2>&5 | |
29871 | ac_status=$? | |
29872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29873 | (exit $ac_status); }; }; then | |
29874 | ac_cv_func_shmat=yes | |
29875 | else | |
29876 | echo "$as_me: failed program was:" >&5 | |
29877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29878 | ||
29879 | ac_cv_func_shmat=no | |
29880 | fi | |
ac1cb8d3 VS |
29881 | rm -f conftest.err conftest.$ac_objext \ |
29882 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29883 | fi |
29884 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
29885 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
29886 | ||
29887 | if test $ac_cv_func_shmat = no; then | |
29888 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
29889 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
29890 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
29891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29892 | else | |
29893 | ac_check_lib_save_LIBS=$LIBS | |
29894 | LIBS="-lipc $LIBS" | |
29895 | cat >conftest.$ac_ext <<_ACEOF | |
29896 | /* confdefs.h. */ | |
29897 | _ACEOF | |
29898 | cat confdefs.h >>conftest.$ac_ext | |
29899 | cat >>conftest.$ac_ext <<_ACEOF | |
29900 | /* end confdefs.h. */ | |
29901 | ||
29902 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29903 | #ifdef __cplusplus | |
29904 | extern "C" | |
29905 | #endif | |
29906 | /* We use char because int might match the return type of a gcc2 | |
29907 | builtin and then its argument prototype would still apply. */ | |
29908 | char shmat (); | |
29909 | int | |
29910 | main () | |
29911 | { | |
29912 | shmat (); | |
29913 | ; | |
29914 | return 0; | |
29915 | } | |
29916 | _ACEOF | |
29917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29919 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29920 | ac_status=$? |
ac1cb8d3 VS |
29921 | grep -v '^ *+' conftest.er1 >conftest.err |
29922 | rm -f conftest.er1 | |
29923 | cat conftest.err >&5 | |
a848cd7e SC |
29924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29925 | (exit $ac_status); } && | |
c9a66001 | 29926 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29928 | (eval $ac_try) 2>&5 | |
29929 | ac_status=$? | |
29930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29931 | (exit $ac_status); }; } && | |
29932 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
29938 | ac_cv_lib_ipc_shmat=yes | |
29939 | else | |
29940 | echo "$as_me: failed program was:" >&5 | |
29941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29942 | ||
29943 | ac_cv_lib_ipc_shmat=no | |
29944 | fi | |
ac1cb8d3 VS |
29945 | rm -f conftest.err conftest.$ac_objext \ |
29946 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29947 | LIBS=$ac_check_lib_save_LIBS |
29948 | fi | |
29949 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
29950 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
29951 | if test $ac_cv_lib_ipc_shmat = yes; then | |
29952 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
29953 | fi | |
29954 | ||
29955 | fi | |
29956 | fi | |
29957 | ||
29958 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
29959 | ac_save_LDFLAGS=$LDFLAGS | |
29960 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
29961 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
29962 | # check for ICE first), but we must link in the order -lSM -lICE or | |
29963 | # we get undefined symbols. So assume we have SM if we have ICE. | |
29964 | # These have to be linked with before -lX11, unlike the other | |
29965 | # libraries we check for below, so use a different variable. | |
29966 | # John Interrante, Karl Berry | |
29967 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
29968 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
29969 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
29970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29971 | else | |
29972 | ac_check_lib_save_LIBS=$LIBS | |
29973 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
29974 | cat >conftest.$ac_ext <<_ACEOF | |
29975 | /* confdefs.h. */ | |
29976 | _ACEOF | |
29977 | cat confdefs.h >>conftest.$ac_ext | |
29978 | cat >>conftest.$ac_ext <<_ACEOF | |
29979 | /* end confdefs.h. */ | |
29980 | ||
29981 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29982 | #ifdef __cplusplus | |
29983 | extern "C" | |
29984 | #endif | |
29985 | /* We use char because int might match the return type of a gcc2 | |
29986 | builtin and then its argument prototype would still apply. */ | |
29987 | char IceConnectionNumber (); | |
29988 | int | |
29989 | main () | |
29990 | { | |
29991 | IceConnectionNumber (); | |
29992 | ; | |
29993 | return 0; | |
29994 | } | |
29995 | _ACEOF | |
29996 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29998 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29999 | ac_status=$? |
ac1cb8d3 VS |
30000 | grep -v '^ *+' conftest.er1 >conftest.err |
30001 | rm -f conftest.er1 | |
30002 | cat conftest.err >&5 | |
a848cd7e SC |
30003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30004 | (exit $ac_status); } && | |
c9a66001 | 30005 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30007 | (eval $ac_try) 2>&5 | |
30008 | ac_status=$? | |
30009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30010 | (exit $ac_status); }; } && | |
30011 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30013 | (eval $ac_try) 2>&5 | |
30014 | ac_status=$? | |
30015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30016 | (exit $ac_status); }; }; then | |
30017 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
30018 | else | |
30019 | echo "$as_me: failed program was:" >&5 | |
30020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30021 | ||
30022 | ac_cv_lib_ICE_IceConnectionNumber=no | |
30023 | fi | |
ac1cb8d3 VS |
30024 | rm -f conftest.err conftest.$ac_objext \ |
30025 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30026 | LIBS=$ac_check_lib_save_LIBS |
30027 | fi | |
30028 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
30029 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
30030 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
30031 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
30032 | fi | |
30033 | ||
30034 | LDFLAGS=$ac_save_LDFLAGS | |
30035 | ||
30036 | fi | |
30037 | ||
30038 | ||
30039 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
30040 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
30041 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
30042 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
30043 | fi |
30044 | ||
74b84332 VS |
30045 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
30046 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
30047 | AFMINSTALL=afminstall |
30048 | COMPILED_X_PROGRAM=0 | |
30049 | ||
74b84332 VS |
30050 | fi |
30051 | ||
30052 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
30053 | if test "$wxUSE_NANOX" = "yes"; then |
30054 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
30055 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
30056 | if test "x$MICROWIN" = x ; then | |
30057 | echo "$as_me:$LINENO: result: not found" >&5 | |
30058 | echo "${ECHO_T}not found" >&6 | |
30059 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
30060 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
30061 | { (exit 1); exit 1; }; } | |
30062 | else | |
30063 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
30064 | echo "${ECHO_T}$MICROWIN" >&6 | |
30065 | cat >>confdefs.h <<\_ACEOF | |
30066 | #define wxUSE_NANOX 1 | |
30067 | _ACEOF | |
30068 | ||
30069 | fi | |
30070 | fi | |
30071 | ||
30072 | if test "$wxUSE_UNICODE" = "yes"; then | |
30073 | ||
a848cd7e | 30074 | |
3ecd9f92 MW |
30075 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
30076 | if test -n "$ac_tool_prefix"; then | |
30077 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
30078 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
a848cd7e SC |
30079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
30080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30081 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
30082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30083 | else | |
30084 | case $PKG_CONFIG in | |
30085 | [\\/]* | ?:[\\/]*) | |
30086 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
30087 | ;; | |
30088 | *) | |
30089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30090 | for as_dir in $PATH | |
30091 | do | |
30092 | IFS=$as_save_IFS | |
30093 | test -z "$as_dir" && as_dir=. | |
30094 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30095 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30096 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
30097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30098 | break 2 | |
30099 | fi | |
30100 | done | |
30101 | done | |
30102 | ||
a848cd7e SC |
30103 | ;; |
30104 | esac | |
30105 | fi | |
30106 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
30107 | ||
30108 | if test -n "$PKG_CONFIG"; then | |
30109 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
30110 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
30111 | else | |
30112 | echo "$as_me:$LINENO: result: no" >&5 | |
30113 | echo "${ECHO_T}no" >&6 | |
30114 | fi | |
30115 | ||
3ecd9f92 MW |
30116 | fi |
30117 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
30118 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
30119 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
a848cd7e SC |
30120 | set dummy pkg-config; ac_word=$2 |
30121 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3ecd9f92 | 30123 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
a848cd7e SC |
30124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30125 | else | |
3ecd9f92 | 30126 | case $ac_pt_PKG_CONFIG in |
a848cd7e | 30127 | [\\/]* | ?:[\\/]*) |
3ecd9f92 | 30128 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
a848cd7e SC |
30129 | ;; |
30130 | *) | |
30131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30132 | for as_dir in $PATH | |
30133 | do | |
30134 | IFS=$as_save_IFS | |
30135 | test -z "$as_dir" && as_dir=. | |
30136 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30137 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3ecd9f92 | 30138 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
a848cd7e SC |
30139 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
30140 | break 2 | |
30141 | fi | |
30142 | done | |
30143 | done | |
30144 | ||
a848cd7e SC |
30145 | ;; |
30146 | esac | |
30147 | fi | |
3ecd9f92 | 30148 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
a848cd7e | 30149 | |
3ecd9f92 MW |
30150 | if test -n "$ac_pt_PKG_CONFIG"; then |
30151 | echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
30152 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 | |
a848cd7e SC |
30153 | else |
30154 | echo "$as_me:$LINENO: result: no" >&5 | |
30155 | echo "${ECHO_T}no" >&6 | |
30156 | fi | |
30157 | ||
3ecd9f92 MW |
30158 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
30159 | else | |
30160 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
30161 | fi | |
a848cd7e | 30162 | |
3ecd9f92 MW |
30163 | fi |
30164 | if test -n "$PKG_CONFIG"; then | |
30165 | _pkg_min_version=0.9.0 | |
30166 | echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
30167 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 | |
30168 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
30169 | echo "$as_me:$LINENO: result: yes" >&5 | |
a848cd7e | 30170 | echo "${ECHO_T}yes" >&6 |
3ecd9f92 MW |
30171 | else |
30172 | echo "$as_me:$LINENO: result: no" >&5 | |
30173 | echo "${ECHO_T}no" >&6 | |
30174 | PKG_CONFIG="" | |
30175 | fi | |
30176 | ||
30177 | fi | |
30178 | ||
30179 | pkg_failed=no | |
30180 | echo "$as_me:$LINENO: checking for PANGOX" >&5 | |
30181 | echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6 | |
a848cd7e | 30182 | |
3ecd9f92 MW |
30183 | if test -n "$PKG_CONFIG"; then |
30184 | if test -n "$PANGOX_CFLAGS"; then | |
30185 | pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS" | |
30186 | else | |
30187 | if test -n "$PKG_CONFIG" && \ | |
30188 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5 | |
30189 | ($PKG_CONFIG --exists --print-errors "pangox") 2>&5 | |
30190 | ac_status=$? | |
30191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30192 | (exit $ac_status); }; then | |
30193 | pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null` | |
30194 | else | |
30195 | pkg_failed=yes | |
30196 | fi | |
30197 | fi | |
30198 | else | |
30199 | pkg_failed=untried | |
30200 | fi | |
30201 | if test -n "$PKG_CONFIG"; then | |
30202 | if test -n "$PANGOX_LIBS"; then | |
30203 | pkg_cv_PANGOX_LIBS="$PANGOX_LIBS" | |
30204 | else | |
30205 | if test -n "$PKG_CONFIG" && \ | |
30206 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5 | |
30207 | ($PKG_CONFIG --exists --print-errors "pangox") 2>&5 | |
30208 | ac_status=$? | |
30209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30210 | (exit $ac_status); }; then | |
30211 | pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null` | |
30212 | else | |
30213 | pkg_failed=yes | |
30214 | fi | |
30215 | fi | |
30216 | else | |
30217 | pkg_failed=untried | |
30218 | fi | |
30219 | ||
30220 | ||
30221 | ||
30222 | if test $pkg_failed = yes; then | |
30223 | ||
30224 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
30225 | _pkg_short_errors_supported=yes | |
30226 | else | |
30227 | _pkg_short_errors_supported=no | |
30228 | fi | |
30229 | if test $_pkg_short_errors_supported = yes; then | |
30230 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"` | |
30231 | else | |
30232 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
a848cd7e | 30233 | fi |
3ecd9f92 MW |
30234 | # Put the nasty error message in config.log where it belongs |
30235 | echo "$PANGOX_PKG_ERRORS" >&5 | |
a848cd7e SC |
30236 | |
30237 | ||
3ecd9f92 MW |
30238 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 |
30239 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
30240 | { (exit 1); exit 1; }; } | |
a848cd7e | 30241 | |
a848cd7e | 30242 | |
3ecd9f92 | 30243 | elif test $pkg_failed = untried; then |
a848cd7e | 30244 | |
3ecd9f92 MW |
30245 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 |
30246 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
30247 | { (exit 1); exit 1; }; } | |
30248 | ||
30249 | ||
30250 | else | |
30251 | PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS | |
30252 | PANGOX_LIBS=$pkg_cv_PANGOX_LIBS | |
30253 | echo "$as_me:$LINENO: result: yes" >&5 | |
30254 | echo "${ECHO_T}yes" >&6 | |
30255 | ||
30256 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" | |
30257 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
30258 | ||
30259 | fi | |
30260 | ||
30261 | pkg_failed=no | |
30262 | echo "$as_me:$LINENO: checking for PANGOFT2" >&5 | |
30263 | echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6 | |
30264 | ||
30265 | if test -n "$PKG_CONFIG"; then | |
30266 | if test -n "$PANGOFT2_CFLAGS"; then | |
30267 | pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS" | |
30268 | else | |
30269 | if test -n "$PKG_CONFIG" && \ | |
30270 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5 | |
30271 | ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5 | |
30272 | ac_status=$? | |
30273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30274 | (exit $ac_status); }; then | |
30275 | pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null` | |
30276 | else | |
30277 | pkg_failed=yes | |
30278 | fi | |
30279 | fi | |
30280 | else | |
30281 | pkg_failed=untried | |
30282 | fi | |
30283 | if test -n "$PKG_CONFIG"; then | |
30284 | if test -n "$PANGOFT2_LIBS"; then | |
30285 | pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS" | |
30286 | else | |
30287 | if test -n "$PKG_CONFIG" && \ | |
30288 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5 | |
30289 | ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5 | |
30290 | ac_status=$? | |
30291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30292 | (exit $ac_status); }; then | |
30293 | pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null` | |
30294 | else | |
30295 | pkg_failed=yes | |
30296 | fi | |
30297 | fi | |
30298 | else | |
30299 | pkg_failed=untried | |
30300 | fi | |
30301 | ||
30302 | ||
30303 | ||
30304 | if test $pkg_failed = yes; then | |
30305 | ||
30306 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
30307 | _pkg_short_errors_supported=yes | |
30308 | else | |
30309 | _pkg_short_errors_supported=no | |
30310 | fi | |
30311 | if test $_pkg_short_errors_supported = yes; then | |
30312 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"` | |
30313 | else | |
30314 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
30315 | fi | |
30316 | # Put the nasty error message in config.log where it belongs | |
30317 | echo "$PANGOFT2_PKG_ERRORS" >&5 | |
a848cd7e | 30318 | |
a848cd7e SC |
30319 | |
30320 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
30321 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
30322 | wxUSE_PRINTING_ARCHITECTURE="no" | |
30323 | ||
30324 | ||
3ecd9f92 | 30325 | elif test $pkg_failed = untried; then |
a848cd7e | 30326 | |
3ecd9f92 MW |
30327 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 |
30328 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
30329 | wxUSE_PRINTING_ARCHITECTURE="no" | |
a848cd7e | 30330 | |
a848cd7e | 30331 | |
a848cd7e | 30332 | else |
3ecd9f92 MW |
30333 | PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS |
30334 | PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS | |
30335 | echo "$as_me:$LINENO: result: yes" >&5 | |
30336 | echo "${ECHO_T}yes" >&6 | |
30337 | ||
30338 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" | |
30339 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
a848cd7e | 30340 | |
a848cd7e | 30341 | fi |
3ecd9f92 MW |
30342 | |
30343 | pkg_failed=no | |
30344 | echo "$as_me:$LINENO: checking for PANGOXFT" >&5 | |
30345 | echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6 | |
a848cd7e SC |
30346 | |
30347 | if test -n "$PKG_CONFIG"; then | |
3ecd9f92 MW |
30348 | if test -n "$PANGOXFT_CFLAGS"; then |
30349 | pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS" | |
30350 | else | |
30351 | if test -n "$PKG_CONFIG" && \ | |
30352 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5 | |
30353 | ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5 | |
30354 | ac_status=$? | |
30355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30356 | (exit $ac_status); }; then | |
30357 | pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null` | |
a848cd7e | 30358 | else |
3ecd9f92 MW |
30359 | pkg_failed=yes |
30360 | fi | |
30361 | fi | |
30362 | else | |
30363 | pkg_failed=untried | |
30364 | fi | |
30365 | if test -n "$PKG_CONFIG"; then | |
30366 | if test -n "$PANGOXFT_LIBS"; then | |
30367 | pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS" | |
30368 | else | |
30369 | if test -n "$PKG_CONFIG" && \ | |
30370 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5 | |
30371 | ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5 | |
30372 | ac_status=$? | |
30373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30374 | (exit $ac_status); }; then | |
30375 | pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null` | |
30376 | else | |
30377 | pkg_failed=yes | |
30378 | fi | |
30379 | fi | |
30380 | else | |
30381 | pkg_failed=untried | |
a848cd7e SC |
30382 | fi |
30383 | ||
a848cd7e | 30384 | |
a848cd7e | 30385 | |
3ecd9f92 | 30386 | if test $pkg_failed = yes; then |
a848cd7e | 30387 | |
3ecd9f92 MW |
30388 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
30389 | _pkg_short_errors_supported=yes | |
30390 | else | |
30391 | _pkg_short_errors_supported=no | |
30392 | fi | |
30393 | if test $_pkg_short_errors_supported = yes; then | |
30394 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"` | |
30395 | else | |
30396 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
a848cd7e | 30397 | fi |
3ecd9f92 MW |
30398 | # Put the nasty error message in config.log where it belongs |
30399 | echo "$PANGOXFT_PKG_ERRORS" >&5 | |
a848cd7e SC |
30400 | |
30401 | ||
3ecd9f92 MW |
30402 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 |
30403 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
30404 | ||
a848cd7e | 30405 | |
3ecd9f92 | 30406 | elif test $pkg_failed = untried; then |
a848cd7e | 30407 | |
3ecd9f92 MW |
30408 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 |
30409 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
30410 | ||
30411 | ||
30412 | else | |
30413 | PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS | |
30414 | PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS | |
30415 | echo "$as_me:$LINENO: result: yes" >&5 | |
30416 | echo "${ECHO_T}yes" >&6 | |
a848cd7e | 30417 | |
4ae1af05 MB |
30418 | cat >>confdefs.h <<\_ACEOF |
30419 | #define HAVE_PANGO_XFT 1 | |
30420 | _ACEOF | |
30421 | ||
c92ad099 | 30422 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
a848cd7e SC |
30423 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
30424 | ||
3ecd9f92 | 30425 | fi |
e56f4f9e | 30426 | save_CXXFLAGS="$CXXFLAGS" |
304205f1 | 30427 | save_LIBS="$LIBS" |
e56f4f9e | 30428 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
304205f1 VS |
30429 | LIBS="$LIBS $PANGOX_LIBS" |
30430 | ||
30431 | for ac_func in pango_font_family_is_monospace | |
30432 | do | |
30433 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30434 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30435 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30436 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30438 | else | |
30439 | cat >conftest.$ac_ext <<_ACEOF | |
30440 | /* confdefs.h. */ | |
30441 | _ACEOF | |
30442 | cat confdefs.h >>conftest.$ac_ext | |
30443 | cat >>conftest.$ac_ext <<_ACEOF | |
30444 | /* end confdefs.h. */ | |
30445 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
30446 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30447 | #define $ac_func innocuous_$ac_func | |
30448 | ||
30449 | /* System header to define __stub macros and hopefully few prototypes, | |
30450 | which can conflict with char $ac_func (); below. | |
30451 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30452 | <limits.h> exists even on freestanding compilers. */ | |
30453 | ||
30454 | #ifdef __STDC__ | |
30455 | # include <limits.h> | |
30456 | #else | |
30457 | # include <assert.h> | |
30458 | #endif | |
30459 | ||
30460 | #undef $ac_func | |
30461 | ||
30462 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30463 | #ifdef __cplusplus | |
30464 | extern "C" | |
30465 | { | |
30466 | #endif | |
30467 | /* We use char because int might match the return type of a gcc2 | |
30468 | builtin and then its argument prototype would still apply. */ | |
30469 | char $ac_func (); | |
30470 | /* The GNU C library defines this for functions which it implements | |
30471 | to always fail with ENOSYS. Some functions are actually named | |
30472 | something starting with __ and the normal name is an alias. */ | |
30473 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30474 | choke me | |
30475 | #else | |
30476 | char (*f) () = $ac_func; | |
30477 | #endif | |
30478 | #ifdef __cplusplus | |
30479 | } | |
30480 | #endif | |
30481 | ||
30482 | int | |
30483 | main () | |
30484 | { | |
30485 | return f != $ac_func; | |
30486 | ; | |
30487 | return 0; | |
30488 | } | |
30489 | _ACEOF | |
30490 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30492 | (eval $ac_link) 2>conftest.er1 | |
30493 | ac_status=$? | |
30494 | grep -v '^ *+' conftest.er1 >conftest.err | |
30495 | rm -f conftest.er1 | |
30496 | cat conftest.err >&5 | |
30497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30498 | (exit $ac_status); } && | |
c9a66001 | 30499 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
30500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30501 | (eval $ac_try) 2>&5 | |
30502 | ac_status=$? | |
30503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30504 | (exit $ac_status); }; } && | |
30505 | { ac_try='test -s conftest$ac_exeext' | |
30506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30507 | (eval $ac_try) 2>&5 | |
30508 | ac_status=$? | |
30509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30510 | (exit $ac_status); }; }; then | |
30511 | eval "$as_ac_var=yes" | |
30512 | else | |
30513 | echo "$as_me: failed program was:" >&5 | |
30514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30515 | ||
30516 | eval "$as_ac_var=no" | |
30517 | fi | |
30518 | rm -f conftest.err conftest.$ac_objext \ | |
30519 | conftest$ac_exeext conftest.$ac_ext | |
30520 | fi | |
30521 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30522 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30523 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30524 | cat >>confdefs.h <<_ACEOF | |
30525 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30526 | _ACEOF | |
30527 | ||
30528 | fi | |
30529 | done | |
30530 | ||
e56f4f9e | 30531 | CXXFLAGS="$save_CXXFLAGS" |
304205f1 | 30532 | LIBS="$save_LIBS" |
a848cd7e SC |
30533 | fi |
30534 | ||
30535 | wxUSE_UNIVERSAL="yes" | |
30536 | ||
30537 | if test "$wxUSE_NANOX" = "yes"; then | |
30538 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
30539 | 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" | |
30540 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
30541 | else | |
30542 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
30543 | fi | |
30544 | ||
a848cd7e SC |
30545 | TOOLKIT=X11 |
30546 | GUIDIST=X11_DIST | |
30547 | fi | |
30548 | ||
30549 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
30550 | if test "$wxUSE_UNICODE" = "yes"; then |
30551 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
30552 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
30553 | { (exit 1); exit 1; }; } | |
30554 | fi | |
30555 | ||
74b84332 VS |
30556 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
30557 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 30558 | |
74b84332 VS |
30559 | ac_find_includes= |
30560 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
30561 | do | |
30562 | if test -f "$ac_dir/Xm/Xm.h"; then | |
30563 | ac_find_includes=$ac_dir | |
30564 | break | |
30565 | fi | |
30566 | done | |
a848cd7e | 30567 | |
74b84332 VS |
30568 | if test "$ac_find_includes" != "" ; then |
30569 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
30570 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
30571 | ||
30572 | if test "x$ac_find_includes" = "x/usr/include"; then | |
30573 | ac_path_to_include="" | |
30574 | else | |
30575 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
30576 | result=$? | |
30577 | if test $result = 0; then | |
30578 | ac_path_to_include="" | |
30579 | else | |
30580 | ac_path_to_include=" -I$ac_find_includes" | |
30581 | fi | |
a848cd7e SC |
30582 | fi |
30583 | ||
74b84332 VS |
30584 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
30585 | else | |
e56f4f9e VZ |
30586 | save_CXXFLAGS=$CXXFLAGS |
30587 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
e051b34e | 30588 | |
74b84332 | 30589 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
30590 | /* confdefs.h. */ |
30591 | _ACEOF | |
30592 | cat confdefs.h >>conftest.$ac_ext | |
30593 | cat >>conftest.$ac_ext <<_ACEOF | |
30594 | /* end confdefs.h. */ | |
30595 | ||
74b84332 VS |
30596 | #include <Xm/Xm.h> |
30597 | ||
a848cd7e SC |
30598 | int |
30599 | main () | |
30600 | { | |
30601 | ||
74b84332 VS |
30602 | int version; |
30603 | version = xmUseVersion; | |
30604 | ||
a848cd7e SC |
30605 | ; |
30606 | return 0; | |
30607 | } | |
30608 | _ACEOF | |
74b84332 VS |
30609 | rm -f conftest.$ac_objext |
30610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30611 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 30612 | ac_status=$? |
ac1cb8d3 VS |
30613 | grep -v '^ *+' conftest.er1 >conftest.err |
30614 | rm -f conftest.er1 | |
30615 | cat conftest.err >&5 | |
a848cd7e SC |
30616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30617 | (exit $ac_status); } && | |
c9a66001 | 30618 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30620 | (eval $ac_try) 2>&5 | |
30621 | ac_status=$? | |
30622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30623 | (exit $ac_status); }; } && | |
74b84332 | 30624 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
30625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30626 | (eval $ac_try) 2>&5 | |
30627 | ac_status=$? | |
30628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30629 | (exit $ac_status); }; }; then | |
74b84332 VS |
30630 | |
30631 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
30632 | echo "${ECHO_T}found in default search path" >&6 | |
30633 | COMPILED_X_PROGRAM=1 | |
30634 | ||
a848cd7e SC |
30635 | else |
30636 | echo "$as_me: failed program was:" >&5 | |
30637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30638 | ||
a848cd7e | 30639 | |
74b84332 VS |
30640 | echo "$as_me:$LINENO: result: no" >&5 |
30641 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
30642 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
30643 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 30644 | { (exit 1); exit 1; }; } |
a848cd7e | 30645 | |
a848cd7e | 30646 | |
a848cd7e | 30647 | fi |
74b84332 | 30648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e | 30649 | |
e56f4f9e | 30650 | CXXFLAGS=$save_CXXFLAGS |
74b84332 VS |
30651 | fi |
30652 | ||
0ad5d837 VZ |
30653 | |
30654 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
30655 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
30656 | ||
0ad5d837 VZ |
30657 | ac_find_libraries= |
30658 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 30659 | do |
3eca31dc | 30660 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
30661 | if test -f "$ac_dir/libXm.$ac_extension"; then |
30662 | ac_find_libraries=$ac_dir | |
30663 | break 2 | |
a848cd7e | 30664 | fi |
74b84332 VS |
30665 | done |
30666 | done | |
a848cd7e | 30667 | |
0ad5d837 VZ |
30668 | |
30669 | if test "x$ac_find_libraries" != "x" ; then | |
30670 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
30671 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 30672 | |
74b84332 | 30673 | |
0ad5d837 | 30674 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 30675 | ac_path_to_link="" |
a848cd7e | 30676 | else |
0ad5d837 VZ |
30677 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
30678 | result=$? | |
30679 | if test $result = 0; then | |
30680 | ac_path_to_link="" | |
30681 | else | |
30682 | ac_path_to_link=" -L$ac_find_libraries" | |
30683 | fi | |
74b84332 VS |
30684 | fi |
30685 | ||
0ad5d837 VZ |
30686 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
30687 | else | |
e56f4f9e VZ |
30688 | save_CXXFLAGS=$CXXFLAGS |
30689 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
6f9cf1e6 MW |
30690 | save_LIBS="$LIBS" |
30691 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 30692 | |
0ad5d837 | 30693 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
30694 | /* confdefs.h. */ |
30695 | _ACEOF | |
30696 | cat confdefs.h >>conftest.$ac_ext | |
30697 | cat >>conftest.$ac_ext <<_ACEOF | |
30698 | /* end confdefs.h. */ | |
30699 | ||
0ad5d837 | 30700 | #include <Xm/Xm.h> |
74b84332 | 30701 | |
a848cd7e SC |
30702 | int |
30703 | main () | |
30704 | { | |
74b84332 | 30705 | |
0ad5d837 VZ |
30706 | int version; |
30707 | version = xmUseVersion; | |
74b84332 | 30708 | |
a848cd7e SC |
30709 | ; |
30710 | return 0; | |
30711 | } | |
30712 | _ACEOF | |
0ad5d837 VZ |
30713 | rm -f conftest.$ac_objext conftest$ac_exeext |
30714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30715 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 30716 | ac_status=$? |
ac1cb8d3 VS |
30717 | grep -v '^ *+' conftest.er1 >conftest.err |
30718 | rm -f conftest.er1 | |
30719 | cat conftest.err >&5 | |
a848cd7e SC |
30720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30721 | (exit $ac_status); } && | |
c9a66001 | 30722 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30724 | (eval $ac_try) 2>&5 | |
30725 | ac_status=$? | |
30726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30727 | (exit $ac_status); }; } && | |
0ad5d837 | 30728 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30730 | (eval $ac_try) 2>&5 | |
30731 | ac_status=$? | |
30732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30733 | (exit $ac_status); }; }; then | |
74b84332 | 30734 | |
0ad5d837 | 30735 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 30736 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 30737 | COMPILED_X_PROGRAM=1 |
74b84332 | 30738 | |
a848cd7e SC |
30739 | else |
30740 | echo "$as_me: failed program was:" >&5 | |
30741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30742 | ||
74b84332 | 30743 | |
6f9cf1e6 | 30744 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 30745 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 30746 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
30747 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
30748 | { (exit 1); exit 1; }; } | |
30749 | ||
30750 | ||
30751 | fi | |
0ad5d837 VZ |
30752 | rm -f conftest.err conftest.$ac_objext \ |
30753 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 30754 | |
e56f4f9e | 30755 | CXXFLAGS=$save_CXXFLAGS |
6f9cf1e6 | 30756 | LIBS="$save_LIBS" |
74b84332 VS |
30757 | fi |
30758 | ||
30759 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
30760 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
30761 | libp_link="" | |
30762 | libsm_ice_link="" | |
30763 | libs_found=0 | |
30764 | for libp in "" " -lXp"; do | |
30765 | if test "$libs_found" = "0"; then | |
30766 | for libsm_ice in "" " -lSM -lICE"; do | |
30767 | if test "$libs_found" = "0"; then | |
30768 | save_LIBS="$LIBS" | |
30769 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
e56f4f9e VZ |
30770 | save_CXXFLAGS=$CXXFLAGS |
30771 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
74b84332 VS |
30772 | |
30773 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
30774 | /* confdefs.h. */ |
30775 | _ACEOF | |
30776 | cat confdefs.h >>conftest.$ac_ext | |
30777 | cat >>conftest.$ac_ext <<_ACEOF | |
30778 | /* end confdefs.h. */ | |
30779 | ||
74b84332 VS |
30780 | #include <Xm/Xm.h> |
30781 | #include <Xm/List.h> | |
30782 | ||
a848cd7e SC |
30783 | int |
30784 | main () | |
30785 | { | |
74b84332 VS |
30786 | |
30787 | XmString string = NULL; | |
30788 | Widget w = NULL; | |
30789 | int position = 0; | |
30790 | XmListAddItem(w, string, position); | |
30791 | ||
a848cd7e SC |
30792 | ; |
30793 | return 0; | |
30794 | } | |
30795 | _ACEOF | |
30796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30798 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30799 | ac_status=$? |
ac1cb8d3 VS |
30800 | grep -v '^ *+' conftest.er1 >conftest.err |
30801 | rm -f conftest.er1 | |
30802 | cat conftest.err >&5 | |
a848cd7e SC |
30803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30804 | (exit $ac_status); } && | |
c9a66001 | 30805 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30807 | (eval $ac_try) 2>&5 | |
30808 | ac_status=$? | |
30809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30810 | (exit $ac_status); }; } && | |
30811 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30813 | (eval $ac_try) 2>&5 | |
30814 | ac_status=$? | |
30815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30816 | (exit $ac_status); }; }; then | |
30817 | ||
30818 | libp_link="$libp" | |
30819 | libsm_ice_link="$libsm_ice" | |
30820 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
30821 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
30822 | libs_found=1 | |
30823 | ||
30824 | else | |
30825 | echo "$as_me: failed program was:" >&5 | |
30826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30827 | ||
30828 | ||
30829 | ||
30830 | fi | |
ac1cb8d3 VS |
30831 | rm -f conftest.err conftest.$ac_objext \ |
30832 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30833 | |
30834 | LIBS="$save_LIBS" | |
e56f4f9e | 30835 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
30836 | fi |
30837 | done | |
30838 | fi | |
30839 | done | |
30840 | ||
30841 | if test "$libs_found" = "0"; then | |
30842 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
30843 | echo "${ECHO_T}can't find the right libraries" >&6 | |
30844 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
30845 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
30846 | { (exit 1); exit 1; }; } | |
30847 | fi | |
30848 | ||
62fa8b3a MW |
30849 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
30850 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
30851 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
30852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30853 | else | |
30854 | ac_check_lib_save_LIBS=$LIBS | |
30855 | LIBS="-lSgm $LIBS" | |
30856 | cat >conftest.$ac_ext <<_ACEOF | |
30857 | /* confdefs.h. */ | |
30858 | _ACEOF | |
30859 | cat confdefs.h >>conftest.$ac_ext | |
30860 | cat >>conftest.$ac_ext <<_ACEOF | |
30861 | /* end confdefs.h. */ | |
30862 | ||
30863 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30864 | #ifdef __cplusplus | |
30865 | extern "C" | |
30866 | #endif | |
30867 | /* We use char because int might match the return type of a gcc2 | |
30868 | builtin and then its argument prototype would still apply. */ | |
30869 | char SgCreateList (); | |
30870 | int | |
30871 | main () | |
30872 | { | |
30873 | SgCreateList (); | |
30874 | ; | |
30875 | return 0; | |
30876 | } | |
30877 | _ACEOF | |
30878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30880 | (eval $ac_link) 2>conftest.er1 | |
30881 | ac_status=$? | |
30882 | grep -v '^ *+' conftest.er1 >conftest.err | |
30883 | rm -f conftest.er1 | |
30884 | cat conftest.err >&5 | |
30885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30886 | (exit $ac_status); } && | |
c9a66001 | 30887 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
30888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30889 | (eval $ac_try) 2>&5 | |
30890 | ac_status=$? | |
30891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30892 | (exit $ac_status); }; } && | |
30893 | { ac_try='test -s conftest$ac_exeext' | |
30894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30895 | (eval $ac_try) 2>&5 | |
30896 | ac_status=$? | |
30897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30898 | (exit $ac_status); }; }; then | |
30899 | ac_cv_lib_Sgm_SgCreateList=yes | |
30900 | else | |
30901 | echo "$as_me: failed program was:" >&5 | |
30902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30903 | ||
30904 | ac_cv_lib_Sgm_SgCreateList=no | |
30905 | fi | |
30906 | rm -f conftest.err conftest.$ac_objext \ | |
30907 | conftest$ac_exeext conftest.$ac_ext | |
30908 | LIBS=$ac_check_lib_save_LIBS | |
30909 | fi | |
30910 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
30911 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
30912 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
30913 | libsgm_link=" -lSgm" | |
30914 | fi | |
30915 | ||
30916 | ||
e56f4f9e VZ |
30917 | save_CXXFLAGS=$CXXFLAGS |
30918 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
0ad5d837 | 30919 | |
a848cd7e SC |
30920 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
30921 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
30922 | if test "${wx_cv_lib_motif2+set}" = set; then |
30923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30924 | else | |
30925 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
30926 | /* confdefs.h. */ |
30927 | _ACEOF | |
30928 | cat confdefs.h >>conftest.$ac_ext | |
30929 | cat >>conftest.$ac_ext <<_ACEOF | |
30930 | /* end confdefs.h. */ | |
30931 | ||
0ad5d837 | 30932 | #include <Xm/Xm.h> |
a848cd7e SC |
30933 | |
30934 | int | |
30935 | main () | |
30936 | { | |
30937 | ||
0ad5d837 VZ |
30938 | #if XmVersion < 2000 |
30939 | Not Motif 2 | |
30940 | #endif | |
a848cd7e SC |
30941 | |
30942 | ; | |
30943 | return 0; | |
30944 | } | |
30945 | _ACEOF | |
30946 | rm -f conftest.$ac_objext | |
30947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30948 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30949 | ac_status=$? |
ac1cb8d3 VS |
30950 | grep -v '^ *+' conftest.er1 >conftest.err |
30951 | rm -f conftest.er1 | |
30952 | cat conftest.err >&5 | |
a848cd7e SC |
30953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30954 | (exit $ac_status); } && | |
c9a66001 | 30955 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30957 | (eval $ac_try) 2>&5 | |
30958 | ac_status=$? | |
30959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30960 | (exit $ac_status); }; } && | |
30961 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30963 | (eval $ac_try) 2>&5 | |
30964 | ac_status=$? | |
30965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30966 | (exit $ac_status); }; }; then | |
0ad5d837 | 30967 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
30968 | else |
30969 | echo "$as_me: failed program was:" >&5 | |
30970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30971 | ||
0ad5d837 VZ |
30972 | wx_cv_lib_motif2="no" |
30973 | fi | |
30974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30975 | fi | |
30976 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
30977 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
30978 | if test "$wx_cv_lib_motif2" = "yes"; then | |
30979 | cat >>confdefs.h <<\_ACEOF | |
30980 | #define __WXMOTIF20__ 1 | |
30981 | _ACEOF | |
a848cd7e | 30982 | |
0ad5d837 VZ |
30983 | else |
30984 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
30985 | #define __WXMOTIF20__ 0 |
30986 | _ACEOF | |
30987 | ||
0ad5d837 | 30988 | fi |
2113bc77 MW |
30989 | |
30990 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
30991 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
30992 | if test "${wx_cv_lib_lesstif+set}" = set; then |
30993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30994 | else | |
30995 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
30996 | /* confdefs.h. */ |
30997 | _ACEOF | |
30998 | cat confdefs.h >>conftest.$ac_ext | |
30999 | cat >>conftest.$ac_ext <<_ACEOF | |
31000 | /* end confdefs.h. */ | |
31001 | ||
0ad5d837 | 31002 | #include <Xm/Xm.h> |
2113bc77 MW |
31003 | |
31004 | int | |
31005 | main () | |
31006 | { | |
31007 | ||
0ad5d837 VZ |
31008 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
31009 | Not Lesstif | |
31010 | #endif | |
2113bc77 MW |
31011 | |
31012 | ; | |
31013 | return 0; | |
31014 | } | |
31015 | _ACEOF | |
31016 | rm -f conftest.$ac_objext | |
31017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31018 | (eval $ac_compile) 2>conftest.er1 | |
31019 | ac_status=$? | |
31020 | grep -v '^ *+' conftest.er1 >conftest.err | |
31021 | rm -f conftest.er1 | |
31022 | cat conftest.err >&5 | |
31023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31024 | (exit $ac_status); } && | |
c9a66001 | 31025 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2113bc77 MW |
31026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31027 | (eval $ac_try) 2>&5 | |
31028 | ac_status=$? | |
31029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31030 | (exit $ac_status); }; } && | |
31031 | { ac_try='test -s conftest.$ac_objext' | |
31032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31033 | (eval $ac_try) 2>&5 | |
31034 | ac_status=$? | |
31035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31036 | (exit $ac_status); }; }; then | |
0ad5d837 | 31037 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
31038 | else |
31039 | echo "$as_me: failed program was:" >&5 | |
31040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31041 | ||
0ad5d837 VZ |
31042 | wx_cv_lib_lesstif="no" |
31043 | fi | |
31044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 31045 | |
0ad5d837 VZ |
31046 | fi |
31047 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
31048 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
31049 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
31050 | cat >>confdefs.h <<\_ACEOF | |
31051 | #define __WXLESSTIF__ 1 | |
31052 | _ACEOF | |
31053 | ||
31054 | else | |
31055 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
31056 | #define __WXLESSTIF__ 0 |
31057 | _ACEOF | |
31058 | ||
0ad5d837 | 31059 | fi |
2113bc77 | 31060 | |
e56f4f9e | 31061 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e | 31062 | |
62fa8b3a | 31063 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
31064 | TOOLKIT=MOTIF |
31065 | GUIDIST=MOTIF_DIST | |
31066 | fi | |
31067 | ||
74b84332 | 31068 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
31069 | if test "$wxUSE_LIBXPM" = "sys"; then |
31070 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
31071 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
31072 | ||
0ad5d837 VZ |
31073 | ac_find_libraries= |
31074 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31075 | do |
3eca31dc | 31076 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31077 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
31078 | ac_find_libraries=$ac_dir | |
31079 | break 2 | |
31080 | fi | |
31081 | done | |
31082 | done | |
31083 | ||
31084 | if test "$ac_find_libraries" != "" ; then | |
31085 | ||
0ad5d837 | 31086 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31087 | ac_path_to_link="" |
31088 | else | |
0ad5d837 VZ |
31089 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
31090 | result=$? | |
31091 | if test $result = 0; then | |
31092 | ac_path_to_link="" | |
31093 | else | |
31094 | ac_path_to_link=" -L$ac_find_libraries" | |
31095 | fi | |
a848cd7e SC |
31096 | fi |
31097 | ||
31098 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
31099 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
31100 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
31101 | |
31102 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
31103 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
31104 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
31105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31106 | else | |
31107 | ||
e56f4f9e VZ |
31108 | save_CXXFLAGS=$CXXFLAGS |
31109 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
31110 | |
31111 | cat >conftest.$ac_ext <<_ACEOF | |
31112 | /* confdefs.h. */ | |
31113 | _ACEOF | |
31114 | cat confdefs.h >>conftest.$ac_ext | |
31115 | cat >>conftest.$ac_ext <<_ACEOF | |
31116 | /* end confdefs.h. */ | |
31117 | ||
31118 | #include <X11/xpm.h> | |
31119 | ||
31120 | int | |
31121 | main () | |
31122 | { | |
31123 | ||
31124 | int version; | |
31125 | version = XpmLibraryVersion(); | |
31126 | ||
31127 | ; | |
31128 | return 0; | |
31129 | } | |
31130 | _ACEOF | |
31131 | rm -f conftest.$ac_objext | |
31132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31133 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31134 | ac_status=$? |
ac1cb8d3 VS |
31135 | grep -v '^ *+' conftest.er1 >conftest.err |
31136 | rm -f conftest.er1 | |
31137 | cat conftest.err >&5 | |
a848cd7e SC |
31138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31139 | (exit $ac_status); } && | |
c9a66001 | 31140 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31142 | (eval $ac_try) 2>&5 | |
31143 | ac_status=$? | |
31144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31145 | (exit $ac_status); }; } && | |
31146 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31148 | (eval $ac_try) 2>&5 | |
31149 | ac_status=$? | |
31150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31151 | (exit $ac_status); }; }; then | |
31152 | wx_cv_x11_xpm_h=yes | |
31153 | else | |
31154 | echo "$as_me: failed program was:" >&5 | |
31155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31156 | ||
31157 | wx_cv_x11_xpm_h=no | |
31158 | ||
31159 | fi | |
ac1cb8d3 | 31160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 31161 | |
e56f4f9e | 31162 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
31163 | |
31164 | ||
31165 | fi | |
31166 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
31167 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
31168 | ||
31169 | if test $wx_cv_x11_xpm_h = "yes"; then | |
31170 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
31171 | cat >>confdefs.h <<\_ACEOF | |
31172 | #define wxHAVE_LIB_XPM 1 | |
31173 | _ACEOF | |
31174 | ||
31175 | else | |
31176 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
31177 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
31178 | fi | |
31179 | fi | |
31180 | ||
31181 | fi | |
31182 | ||
31183 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
31184 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
31185 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
31186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31187 | else | |
31188 | ac_check_lib_save_LIBS=$LIBS | |
31189 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
31190 | cat >conftest.$ac_ext <<_ACEOF | |
31191 | /* confdefs.h. */ | |
31192 | _ACEOF | |
31193 | cat confdefs.h >>conftest.$ac_ext | |
31194 | cat >>conftest.$ac_ext <<_ACEOF | |
31195 | /* end confdefs.h. */ | |
31196 | ||
31197 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31198 | #ifdef __cplusplus | |
31199 | extern "C" | |
31200 | #endif | |
31201 | /* We use char because int might match the return type of a gcc2 | |
31202 | builtin and then its argument prototype would still apply. */ | |
31203 | char XShapeQueryExtension (); | |
31204 | int | |
31205 | main () | |
31206 | { | |
31207 | XShapeQueryExtension (); | |
31208 | ; | |
31209 | return 0; | |
31210 | } | |
31211 | _ACEOF | |
31212 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31214 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31215 | ac_status=$? |
ac1cb8d3 VS |
31216 | grep -v '^ *+' conftest.er1 >conftest.err |
31217 | rm -f conftest.er1 | |
31218 | cat conftest.err >&5 | |
a848cd7e SC |
31219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31220 | (exit $ac_status); } && | |
c9a66001 | 31221 | { ac_try='test -z "$ac_cxx_werror_flag" || 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_exeext' | |
a848cd7e SC |
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 | |
31233 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
31234 | else | |
31235 | echo "$as_me: failed program was:" >&5 | |
31236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31237 | ||
31238 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
31239 | fi | |
ac1cb8d3 VS |
31240 | rm -f conftest.err conftest.$ac_objext \ |
31241 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31242 | LIBS=$ac_check_lib_save_LIBS |
31243 | fi | |
31244 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
31245 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
31246 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
31247 | ||
31248 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
31249 | wxHAVE_XEXT_LIB=1 | |
31250 | ||
31251 | fi | |
31252 | ||
31253 | ||
31254 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
e56f4f9e VZ |
31255 | save_CXXFLAGS="$CXXFLAGS" |
31256 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
31257 | |
31258 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
31259 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
31260 | cat >conftest.$ac_ext <<_ACEOF | |
31261 | /* confdefs.h. */ | |
31262 | _ACEOF | |
31263 | cat confdefs.h >>conftest.$ac_ext | |
31264 | cat >>conftest.$ac_ext <<_ACEOF | |
31265 | /* end confdefs.h. */ | |
31266 | ||
31267 | #include <X11/Xlib.h> | |
31268 | #include <X11/extensions/shape.h> | |
31269 | ||
31270 | int | |
31271 | main () | |
31272 | { | |
31273 | ||
31274 | int dummy1, dummy2; | |
31275 | XShapeQueryExtension((Display*)NULL, | |
31276 | (int*)NULL, (int*)NULL); | |
31277 | ||
31278 | ; | |
31279 | return 0; | |
31280 | } | |
31281 | _ACEOF | |
31282 | rm -f conftest.$ac_objext | |
31283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31284 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31285 | ac_status=$? |
ac1cb8d3 VS |
31286 | grep -v '^ *+' conftest.er1 >conftest.err |
31287 | rm -f conftest.er1 | |
31288 | cat conftest.err >&5 | |
a848cd7e SC |
31289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31290 | (exit $ac_status); } && | |
c9a66001 | 31291 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31293 | (eval $ac_try) 2>&5 | |
31294 | ac_status=$? | |
31295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31296 | (exit $ac_status); }; } && | |
31297 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31299 | (eval $ac_try) 2>&5 | |
31300 | ac_status=$? | |
31301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31302 | (exit $ac_status); }; }; then | |
31303 | ||
31304 | cat >>confdefs.h <<\_ACEOF | |
31305 | #define HAVE_XSHAPE 1 | |
31306 | _ACEOF | |
31307 | ||
31308 | echo "$as_me:$LINENO: result: found" >&5 | |
31309 | echo "${ECHO_T}found" >&6 | |
31310 | ||
31311 | else | |
31312 | echo "$as_me: failed program was:" >&5 | |
31313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31314 | ||
31315 | ||
31316 | echo "$as_me:$LINENO: result: not found" >&5 | |
31317 | echo "${ECHO_T}not found" >&6 | |
31318 | ||
31319 | fi | |
ac1cb8d3 | 31320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e56f4f9e | 31321 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
31322 | |
31323 | fi | |
31324 | fi | |
31325 | ||
31326 | if test "$wxUSE_MAC" = 1; then | |
31327 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
31328 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
31329 | if test "$GCC" = yes; then | |
31330 | echo "$as_me:$LINENO: result: gcc" >&5 | |
31331 | echo "${ECHO_T}gcc" >&6 | |
31332 | CPPFLAGS_PASCAL="-fpascal-strings" | |
31333 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
31334 | echo "$as_me:$LINENO: result: xlc" >&5 | |
31335 | echo "${ECHO_T}xlc" >&6 | |
31336 | CPPFLAGS_PASCAL="-qmacpstr" | |
31337 | else | |
31338 | echo "$as_me:$LINENO: result: none" >&5 | |
31339 | echo "${ECHO_T}none" >&6 | |
31340 | fi | |
31341 | ||
1e9e8aba | 31342 | if test "x$wxUSE_UNIX" = "xyes"; then |
c92ad099 | 31343 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 31344 | else |
c92ad099 | 31345 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 31346 | fi |
a848cd7e | 31347 | |
a848cd7e SC |
31348 | TOOLKIT=MAC |
31349 | GUIDIST=MACX_DIST | |
dd21ced8 | 31350 | WXBASEPORT="_carbon" |
a848cd7e SC |
31351 | fi |
31352 | ||
31353 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
31354 | TOOLKIT=COCOA |
31355 | GUIDIST=COCOA_DIST | |
31356 | fi | |
31357 | ||
31358 | if test "$wxUSE_PM" = 1; then | |
31359 | TOOLKIT=PM | |
de59c161 RD |
31360 | GUIDIST=PM_DIST |
31361 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
31362 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
31363 | if test "${wx_cv_spbcdata+set}" = set; then | |
31364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31365 | else | |
31366 | ||
31367 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
31368 | /* confdefs.h. */ |
31369 | _ACEOF | |
31370 | cat confdefs.h >>conftest.$ac_ext | |
31371 | cat >>conftest.$ac_ext <<_ACEOF | |
31372 | /* end confdefs.h. */ | |
31373 | ||
31374 | #define INCL_PM | |
31375 | #include <os2.h> | |
31376 | ||
31377 | int | |
31378 | main () | |
31379 | { | |
31380 | ||
31381 | SPBCDATA test; | |
31382 | ||
31383 | ; | |
31384 | return 0; | |
31385 | } | |
31386 | _ACEOF | |
31387 | rm -f conftest.$ac_objext | |
31388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31389 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 31390 | ac_status=$? |
ac1cb8d3 VS |
31391 | grep -v '^ *+' conftest.er1 >conftest.err |
31392 | rm -f conftest.er1 | |
31393 | cat conftest.err >&5 | |
de59c161 RD |
31394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31395 | (exit $ac_status); } && | |
c9a66001 | 31396 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31398 | (eval $ac_try) 2>&5 | |
31399 | ac_status=$? | |
31400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31401 | (exit $ac_status); }; } && | |
31402 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
31403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31404 | (eval $ac_try) 2>&5 | |
31405 | ac_status=$? | |
31406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31407 | (exit $ac_status); }; }; then | |
31408 | wx_cv_spbcdata=yes | |
31409 | else | |
31410 | echo "$as_me: failed program was:" >&5 | |
31411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31412 | ||
31413 | wx_cv_spbcdata=no | |
31414 | ||
31415 | fi | |
ac1cb8d3 | 31416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
31417 | |
31418 | ||
31419 | fi | |
31420 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
31421 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
31422 | ||
31423 | if test $wx_cv_spbcdata = "yes"; then | |
31424 | cat >>confdefs.h <<\_ACEOF | |
31425 | #define HAVE_SPBCDATA 1 | |
31426 | _ACEOF | |
31427 | ||
31428 | fi | |
a848cd7e SC |
31429 | fi |
31430 | ||
31431 | if test "$TOOLKIT" = "PM" ; then | |
31432 | TOOLKIT_DIR="os2" | |
31433 | else | |
31434 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
31435 | fi | |
31436 | ||
a848cd7e | 31437 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
31438 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
31439 | WIDGET_SET=univ | |
a848cd7e SC |
31440 | fi |
31441 | ||
31442 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
31443 | DISTDIR="wx\$(TOOLKIT)" | |
31444 | else | |
31445 | USE_GUI=0 | |
31446 | ||
31447 | TOOLKIT_DIR="base" | |
31448 | ||
31449 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 31450 | TOOLKIT="MSW" |
a848cd7e SC |
31451 | fi |
31452 | ||
a848cd7e SC |
31453 | GUIDIST="BASE_DIST" |
31454 | DISTDIR="wxBase" | |
31455 | fi | |
31456 | ||
31457 | ||
d12aef51 VZ |
31458 | if test "$wxUSE_GUI" = "yes"; then |
31459 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
31460 | ||
31461 | for ac_header in X11/Xlib.h | |
31462 | do | |
31463 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31464 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31465 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31467 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31469 | fi | |
31470 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31471 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31472 | else | |
31473 | # Is the header compilable? | |
31474 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31475 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31476 | cat >conftest.$ac_ext <<_ACEOF | |
31477 | /* confdefs.h. */ | |
31478 | _ACEOF | |
31479 | cat confdefs.h >>conftest.$ac_ext | |
31480 | cat >>conftest.$ac_ext <<_ACEOF | |
31481 | /* end confdefs.h. */ | |
31482 | $ac_includes_default | |
31483 | #include <$ac_header> | |
31484 | _ACEOF | |
31485 | rm -f conftest.$ac_objext | |
31486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31487 | (eval $ac_compile) 2>conftest.er1 | |
31488 | ac_status=$? | |
31489 | grep -v '^ *+' conftest.er1 >conftest.err | |
31490 | rm -f conftest.er1 | |
31491 | cat conftest.err >&5 | |
31492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31493 | (exit $ac_status); } && | |
c9a66001 | 31494 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
31495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31496 | (eval $ac_try) 2>&5 | |
31497 | ac_status=$? | |
31498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31499 | (exit $ac_status); }; } && | |
31500 | { ac_try='test -s conftest.$ac_objext' | |
31501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31502 | (eval $ac_try) 2>&5 | |
31503 | ac_status=$? | |
31504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31505 | (exit $ac_status); }; }; then | |
31506 | ac_header_compiler=yes | |
31507 | else | |
31508 | echo "$as_me: failed program was:" >&5 | |
31509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31510 | ||
31511 | ac_header_compiler=no | |
31512 | fi | |
31513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31514 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31515 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31516 | ||
31517 | # Is the header present? | |
31518 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31519 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31520 | cat >conftest.$ac_ext <<_ACEOF | |
31521 | /* confdefs.h. */ | |
31522 | _ACEOF | |
31523 | cat confdefs.h >>conftest.$ac_ext | |
31524 | cat >>conftest.$ac_ext <<_ACEOF | |
31525 | /* end confdefs.h. */ | |
31526 | #include <$ac_header> | |
31527 | _ACEOF | |
31528 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31529 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31530 | ac_status=$? | |
31531 | grep -v '^ *+' conftest.er1 >conftest.err | |
31532 | rm -f conftest.er1 | |
31533 | cat conftest.err >&5 | |
31534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31535 | (exit $ac_status); } >/dev/null; then | |
31536 | if test -s conftest.err; then | |
5d7b7554 VZ |
31537 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
31538 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
d12aef51 VZ |
31539 | else |
31540 | ac_cpp_err= | |
31541 | fi | |
31542 | else | |
31543 | ac_cpp_err=yes | |
31544 | fi | |
31545 | if test -z "$ac_cpp_err"; then | |
31546 | ac_header_preproc=yes | |
31547 | else | |
31548 | echo "$as_me: failed program was:" >&5 | |
31549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31550 | ||
31551 | ac_header_preproc=no | |
31552 | fi | |
31553 | rm -f conftest.err conftest.$ac_ext | |
31554 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31555 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31556 | ||
31557 | # So? What about this header? | |
5d7b7554 | 31558 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
d12aef51 VZ |
31559 | yes:no: ) |
31560 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31561 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31562 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
31563 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31564 | ac_header_preproc=yes | |
31565 | ;; | |
31566 | no:yes:* ) | |
31567 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31568 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31569 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31570 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31571 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31572 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31573 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31574 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
31575 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31576 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31577 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
31578 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
31579 | ( | |
31580 | cat <<\_ASBOX | |
31581 | ## ----------------------------------------- ## | |
31582 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31583 | ## ----------------------------------------- ## | |
31584 | _ASBOX | |
31585 | ) | | |
31586 | sed "s/^/$as_me: WARNING: /" >&2 | |
31587 | ;; | |
31588 | esac | |
31589 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31590 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31591 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31593 | else | |
31594 | eval "$as_ac_Header=\$ac_header_preproc" | |
31595 | fi | |
31596 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31597 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31598 | ||
31599 | fi | |
31600 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31601 | cat >>confdefs.h <<_ACEOF | |
31602 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31603 | _ACEOF | |
31604 | ||
31605 | fi | |
31606 | ||
31607 | done | |
31608 | ||
31609 | ||
31610 | for ac_header in X11/XKBlib.h | |
31611 | do | |
31612 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31613 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31614 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31615 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31617 | else | |
31618 | cat >conftest.$ac_ext <<_ACEOF | |
31619 | /* confdefs.h. */ | |
31620 | _ACEOF | |
31621 | cat confdefs.h >>conftest.$ac_ext | |
31622 | cat >>conftest.$ac_ext <<_ACEOF | |
31623 | /* end confdefs.h. */ | |
31624 | ||
31625 | #if HAVE_X11_XLIB_H | |
31626 | #include <X11/Xlib.h> | |
31627 | #endif | |
31628 | ||
31629 | ||
31630 | #include <$ac_header> | |
31631 | _ACEOF | |
31632 | rm -f conftest.$ac_objext | |
31633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31634 | (eval $ac_compile) 2>conftest.er1 | |
31635 | ac_status=$? | |
31636 | grep -v '^ *+' conftest.er1 >conftest.err | |
31637 | rm -f conftest.er1 | |
31638 | cat conftest.err >&5 | |
31639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31640 | (exit $ac_status); } && | |
c9a66001 | 31641 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
31642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31643 | (eval $ac_try) 2>&5 | |
31644 | ac_status=$? | |
31645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31646 | (exit $ac_status); }; } && | |
31647 | { ac_try='test -s conftest.$ac_objext' | |
31648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31649 | (eval $ac_try) 2>&5 | |
31650 | ac_status=$? | |
31651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31652 | (exit $ac_status); }; }; then | |
31653 | eval "$as_ac_Header=yes" | |
31654 | else | |
31655 | echo "$as_me: failed program was:" >&5 | |
31656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31657 | ||
31658 | eval "$as_ac_Header=no" | |
31659 | fi | |
31660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31661 | fi | |
31662 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31663 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31664 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31665 | cat >>confdefs.h <<_ACEOF | |
31666 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31667 | _ACEOF | |
31668 | ||
31669 | fi | |
31670 | ||
31671 | done | |
31672 | ||
31673 | fi | |
31674 | fi | |
31675 | ||
a848cd7e SC |
31676 | |
31677 | ||
31678 | IODBC_C_SRC="" | |
31679 | ||
31680 | ||
31681 | if test "$TOOLKIT" != "MSW" ; then | |
31682 | ||
31683 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
31684 | ||
31685 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31686 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
31687 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
31688 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31690 | fi | |
31691 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
31692 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
31693 | else | |
31694 | # Is the header compilable? | |
31695 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
31696 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
31697 | cat >conftest.$ac_ext <<_ACEOF | |
31698 | /* confdefs.h. */ | |
31699 | _ACEOF | |
31700 | cat confdefs.h >>conftest.$ac_ext | |
31701 | cat >>conftest.$ac_ext <<_ACEOF | |
31702 | /* end confdefs.h. */ | |
31703 | $ac_includes_default | |
31704 | #include <sql.h> | |
31705 | _ACEOF | |
31706 | rm -f conftest.$ac_objext | |
31707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31708 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31709 | ac_status=$? |
ac1cb8d3 VS |
31710 | grep -v '^ *+' conftest.er1 >conftest.err |
31711 | rm -f conftest.er1 | |
31712 | cat conftest.err >&5 | |
a848cd7e SC |
31713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31714 | (exit $ac_status); } && | |
c9a66001 | 31715 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31717 | (eval $ac_try) 2>&5 | |
31718 | ac_status=$? | |
31719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31720 | (exit $ac_status); }; } && | |
31721 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31723 | (eval $ac_try) 2>&5 | |
31724 | ac_status=$? | |
31725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31726 | (exit $ac_status); }; }; then | |
31727 | ac_header_compiler=yes | |
31728 | else | |
31729 | echo "$as_me: failed program was:" >&5 | |
31730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31731 | ||
31732 | ac_header_compiler=no | |
31733 | fi | |
ac1cb8d3 | 31734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31735 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31736 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31737 | ||
31738 | # Is the header present? | |
31739 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
31740 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
31741 | cat >conftest.$ac_ext <<_ACEOF | |
31742 | /* confdefs.h. */ | |
31743 | _ACEOF | |
31744 | cat confdefs.h >>conftest.$ac_ext | |
31745 | cat >>conftest.$ac_ext <<_ACEOF | |
31746 | /* end confdefs.h. */ | |
31747 | #include <sql.h> | |
31748 | _ACEOF | |
31749 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31750 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31751 | ac_status=$? | |
31752 | grep -v '^ *+' conftest.er1 >conftest.err | |
31753 | rm -f conftest.er1 | |
31754 | cat conftest.err >&5 | |
31755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31756 | (exit $ac_status); } >/dev/null; then | |
31757 | if test -s conftest.err; then | |
5d7b7554 VZ |
31758 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
31759 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
31760 | else |
31761 | ac_cpp_err= | |
31762 | fi | |
31763 | else | |
31764 | ac_cpp_err=yes | |
31765 | fi | |
31766 | if test -z "$ac_cpp_err"; then | |
31767 | ac_header_preproc=yes | |
31768 | else | |
31769 | echo "$as_me: failed program was:" >&5 | |
31770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31771 | ||
31772 | ac_header_preproc=no | |
31773 | fi | |
31774 | rm -f conftest.err conftest.$ac_ext | |
31775 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31776 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31777 | ||
31778 | # So? What about this header? | |
5d7b7554 | 31779 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 31780 | yes:no: ) |
a848cd7e SC |
31781 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31782 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31783 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
31784 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
31785 | ac_header_preproc=yes | |
a848cd7e | 31786 | ;; |
ac1cb8d3 | 31787 | no:yes:* ) |
a848cd7e SC |
31788 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
31789 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31790 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
31791 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
31792 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
31793 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
31794 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31795 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31796 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
31797 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31798 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
31799 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31800 | ( |
31801 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31802 | ## ----------------------------------------- ## |
31803 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31804 | ## ----------------------------------------- ## | |
a848cd7e SC |
31805 | _ASBOX |
31806 | ) | | |
31807 | sed "s/^/$as_me: WARNING: /" >&2 | |
31808 | ;; | |
31809 | esac | |
31810 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
31811 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
31812 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31814 | else | |
31815 | ac_cv_header_sql_h=$ac_header_preproc | |
31816 | fi | |
31817 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
31818 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
31819 | ||
31820 | fi | |
31821 | if test $ac_cv_header_sql_h = yes; then | |
31822 | found_sql_h=1 | |
31823 | fi | |
31824 | ||
31825 | ||
31826 | if test "x$found_sql_h" = "x1" ; then | |
31827 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
31828 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
31829 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
31830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31831 | else | |
31832 | ac_check_lib_save_LIBS=$LIBS | |
31833 | LIBS="-liodbc $LIBS" | |
31834 | cat >conftest.$ac_ext <<_ACEOF | |
31835 | /* confdefs.h. */ | |
31836 | _ACEOF | |
31837 | cat confdefs.h >>conftest.$ac_ext | |
31838 | cat >>conftest.$ac_ext <<_ACEOF | |
31839 | /* end confdefs.h. */ | |
31840 | ||
31841 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31842 | #ifdef __cplusplus | |
31843 | extern "C" | |
31844 | #endif | |
31845 | /* We use char because int might match the return type of a gcc2 | |
31846 | builtin and then its argument prototype would still apply. */ | |
31847 | char SQLAllocEnv (); | |
31848 | int | |
31849 | main () | |
31850 | { | |
31851 | SQLAllocEnv (); | |
31852 | ; | |
31853 | return 0; | |
31854 | } | |
31855 | _ACEOF | |
31856 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31858 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31859 | ac_status=$? |
ac1cb8d3 VS |
31860 | grep -v '^ *+' conftest.er1 >conftest.err |
31861 | rm -f conftest.er1 | |
31862 | cat conftest.err >&5 | |
a848cd7e SC |
31863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31864 | (exit $ac_status); } && | |
c9a66001 | 31865 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31867 | (eval $ac_try) 2>&5 | |
31868 | ac_status=$? | |
31869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31870 | (exit $ac_status); }; } && | |
31871 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31873 | (eval $ac_try) 2>&5 | |
31874 | ac_status=$? | |
31875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31876 | (exit $ac_status); }; }; then | |
31877 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
31878 | else | |
31879 | echo "$as_me: failed program was:" >&5 | |
31880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31881 | ||
31882 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
31883 | fi | |
ac1cb8d3 VS |
31884 | rm -f conftest.err conftest.$ac_objext \ |
31885 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31886 | LIBS=$ac_check_lib_save_LIBS |
31887 | fi | |
31888 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
31889 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
31890 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
31891 | ODBC_LINK=" -liodbc" | |
31892 | else | |
31893 | ||
31894 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
31895 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
31896 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
31897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31898 | else | |
31899 | ac_check_lib_save_LIBS=$LIBS | |
31900 | LIBS="-lunixodbc $LIBS" | |
31901 | cat >conftest.$ac_ext <<_ACEOF | |
31902 | /* confdefs.h. */ | |
31903 | _ACEOF | |
31904 | cat confdefs.h >>conftest.$ac_ext | |
31905 | cat >>conftest.$ac_ext <<_ACEOF | |
31906 | /* end confdefs.h. */ | |
31907 | ||
31908 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31909 | #ifdef __cplusplus | |
31910 | extern "C" | |
31911 | #endif | |
31912 | /* We use char because int might match the return type of a gcc2 | |
31913 | builtin and then its argument prototype would still apply. */ | |
31914 | char SQLAllocEnv (); | |
31915 | int | |
31916 | main () | |
31917 | { | |
31918 | SQLAllocEnv (); | |
31919 | ; | |
31920 | return 0; | |
31921 | } | |
31922 | _ACEOF | |
31923 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31925 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31926 | ac_status=$? |
ac1cb8d3 VS |
31927 | grep -v '^ *+' conftest.er1 >conftest.err |
31928 | rm -f conftest.er1 | |
31929 | cat conftest.err >&5 | |
a848cd7e SC |
31930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31931 | (exit $ac_status); } && | |
c9a66001 | 31932 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31934 | (eval $ac_try) 2>&5 | |
31935 | ac_status=$? | |
31936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31937 | (exit $ac_status); }; } && | |
31938 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31940 | (eval $ac_try) 2>&5 | |
31941 | ac_status=$? | |
31942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31943 | (exit $ac_status); }; }; then | |
31944 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
31945 | else | |
31946 | echo "$as_me: failed program was:" >&5 | |
31947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31948 | ||
31949 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
31950 | fi | |
ac1cb8d3 VS |
31951 | rm -f conftest.err conftest.$ac_objext \ |
31952 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31953 | LIBS=$ac_check_lib_save_LIBS |
31954 | fi | |
31955 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
31956 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
31957 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
31958 | ODBC_LINK=" -lunixodbc" | |
31959 | else | |
31960 | ||
31961 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
31962 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
31963 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
31964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31965 | else | |
31966 | ac_check_lib_save_LIBS=$LIBS | |
31967 | LIBS="-lodbc $LIBS" | |
31968 | cat >conftest.$ac_ext <<_ACEOF | |
31969 | /* confdefs.h. */ | |
31970 | _ACEOF | |
31971 | cat confdefs.h >>conftest.$ac_ext | |
31972 | cat >>conftest.$ac_ext <<_ACEOF | |
31973 | /* end confdefs.h. */ | |
31974 | ||
31975 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31976 | #ifdef __cplusplus | |
31977 | extern "C" | |
31978 | #endif | |
31979 | /* We use char because int might match the return type of a gcc2 | |
31980 | builtin and then its argument prototype would still apply. */ | |
31981 | char SQLAllocEnv (); | |
31982 | int | |
31983 | main () | |
31984 | { | |
31985 | SQLAllocEnv (); | |
31986 | ; | |
31987 | return 0; | |
31988 | } | |
31989 | _ACEOF | |
31990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31992 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31993 | ac_status=$? |
ac1cb8d3 VS |
31994 | grep -v '^ *+' conftest.er1 >conftest.err |
31995 | rm -f conftest.er1 | |
31996 | cat conftest.err >&5 | |
a848cd7e SC |
31997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31998 | (exit $ac_status); } && | |
c9a66001 | 31999 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32001 | (eval $ac_try) 2>&5 | |
32002 | ac_status=$? | |
32003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32004 | (exit $ac_status); }; } && | |
32005 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32007 | (eval $ac_try) 2>&5 | |
32008 | ac_status=$? | |
32009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32010 | (exit $ac_status); }; }; then | |
32011 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
32012 | else | |
32013 | echo "$as_me: failed program was:" >&5 | |
32014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32015 | ||
32016 | ac_cv_lib_odbc_SQLAllocEnv=no | |
32017 | fi | |
ac1cb8d3 VS |
32018 | rm -f conftest.err conftest.$ac_objext \ |
32019 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32020 | LIBS=$ac_check_lib_save_LIBS |
32021 | fi | |
32022 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
32023 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
32024 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
32025 | ODBC_LINK=" -lodbc" | |
32026 | fi | |
32027 | ||
32028 | ||
32029 | fi | |
32030 | ||
32031 | ||
32032 | fi | |
32033 | ||
32034 | fi | |
32035 | if test "x$ODBC_LINK" = "x" ; then | |
32036 | if test "$wxUSE_ODBC" = "sys" ; then | |
32037 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
32038 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
32039 | { (exit 1); exit 1; }; } | |
32040 | else | |
32041 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
32042 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
32043 | wxUSE_ODBC=builtin | |
32044 | fi | |
32045 | else | |
32046 | wxUSE_ODBC=sys | |
32047 | fi | |
32048 | fi | |
a848cd7e | 32049 | |
2da0c077 RD |
32050 | if test "$wxUSE_ODBC" = "builtin" ; then |
32051 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
32052 | #define wxUSE_BUILTIN_IODBC 1 |
32053 | _ACEOF | |
32054 | ||
a848cd7e SC |
32055 | fi |
32056 | fi | |
32057 | ||
2da0c077 RD |
32058 | if test "$wxUSE_ODBC" != "no" ; then |
32059 | cat >>confdefs.h <<\_ACEOF | |
32060 | #define wxUSE_ODBC 1 | |
32061 | _ACEOF | |
32062 | ||
32063 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
32064 | ||
5ff751d6 | 32065 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_" |
2da0c077 | 32066 | fi |
a848cd7e | 32067 | |
01cb68df | 32068 | |
a848cd7e | 32069 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 32070 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
32071 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
32072 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
32073 | ||
0ad5d837 VZ |
32074 | ac_find_libraries= |
32075 | for ac_dir in $SEARCH_LIB; | |
32076 | do | |
32077 | for ac_extension in a so sl dylib dll.a; do | |
32078 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
32079 | ac_find_libraries=$ac_dir | |
32080 | break 2 | |
32081 | fi | |
32082 | done | |
32083 | done | |
32084 | ||
a848cd7e SC |
32085 | if test "$ac_find_libraries" != "" ; then |
32086 | ||
0ad5d837 | 32087 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32088 | ac_path_to_link="" |
32089 | else | |
0ad5d837 VZ |
32090 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32091 | result=$? | |
32092 | if test $result = 0; then | |
32093 | ac_path_to_link="" | |
32094 | else | |
32095 | ac_path_to_link=" -L$ac_find_libraries" | |
32096 | fi | |
a848cd7e SC |
32097 | fi |
32098 | ||
32099 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
32100 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
32101 | fi | |
32102 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
32103 | echo "$as_me:$LINENO: result: yes" >&5 | |
32104 | echo "${ECHO_T}yes" >&6 | |
32105 | ||
32106 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
32107 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
32108 | ||
0ad5d837 VZ |
32109 | ac_find_libraries= |
32110 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 32111 | do |
3eca31dc | 32112 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
32113 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
32114 | ac_find_libraries=$ac_dir | |
32115 | break 2 | |
32116 | fi | |
32117 | done | |
32118 | done | |
32119 | ||
32120 | if test "$ac_find_libraries" != "" ; then | |
32121 | echo "$as_me:$LINENO: result: yes" >&5 | |
32122 | echo "${ECHO_T}yes" >&6 | |
32123 | ||
32124 | for ac_header in X11/extensions/xf86vmode.h | |
32125 | do | |
32126 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32127 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32128 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32129 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32131 | else | |
32132 | cat >conftest.$ac_ext <<_ACEOF | |
32133 | /* confdefs.h. */ | |
32134 | _ACEOF | |
32135 | cat confdefs.h >>conftest.$ac_ext | |
32136 | cat >>conftest.$ac_ext <<_ACEOF | |
32137 | /* end confdefs.h. */ | |
32138 | ||
32139 | #if HAVE_X11_XLIB_H | |
32140 | #include <X11/Xlib.h> | |
32141 | #endif | |
32142 | ||
32143 | ||
32144 | #include <$ac_header> | |
32145 | _ACEOF | |
32146 | rm -f conftest.$ac_objext | |
32147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32148 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32149 | ac_status=$? |
ac1cb8d3 VS |
32150 | grep -v '^ *+' conftest.er1 >conftest.err |
32151 | rm -f conftest.er1 | |
32152 | cat conftest.err >&5 | |
a848cd7e SC |
32153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32154 | (exit $ac_status); } && | |
c9a66001 | 32155 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32157 | (eval $ac_try) 2>&5 | |
32158 | ac_status=$? | |
32159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32160 | (exit $ac_status); }; } && | |
32161 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32163 | (eval $ac_try) 2>&5 | |
32164 | ac_status=$? | |
32165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32166 | (exit $ac_status); }; }; then | |
32167 | eval "$as_ac_Header=yes" | |
32168 | else | |
32169 | echo "$as_me: failed program was:" >&5 | |
32170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32171 | ||
32172 | eval "$as_ac_Header=no" | |
32173 | fi | |
ac1cb8d3 | 32174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32175 | fi |
32176 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32177 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32178 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32179 | cat >>confdefs.h <<_ACEOF | |
32180 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32181 | _ACEOF | |
32182 | ||
32183 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
32184 | ||
32185 | fi | |
32186 | ||
32187 | done | |
32188 | ||
32189 | else | |
32190 | echo "$as_me:$LINENO: result: no" >&5 | |
32191 | echo "${ECHO_T}no" >&6 | |
32192 | fi | |
32193 | ||
32194 | else | |
32195 | echo "$as_me:$LINENO: result: no" >&5 | |
32196 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
32197 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
32198 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
32199 | wxUSE_DISPLAY="no" |
32200 | fi | |
01cb68df RG |
32201 | elif test "$wxUSE_MSW" = 1; then |
32202 | ||
e5efa97e | 32203 | for ac_header in ddraw.h |
01cb68df RG |
32204 | do |
32205 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 32206 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
32207 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
32208 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 32210 | else |
5294a27e | 32211 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
32212 | /* confdefs.h. */ |
32213 | _ACEOF | |
32214 | cat confdefs.h >>conftest.$ac_ext | |
32215 | cat >>conftest.$ac_ext <<_ACEOF | |
32216 | /* end confdefs.h. */ | |
5294a27e VZ |
32217 | #include <windows.h> |
32218 | ||
01cb68df RG |
32219 | #include <$ac_header> |
32220 | _ACEOF | |
32221 | rm -f conftest.$ac_objext | |
32222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32223 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 32224 | ac_status=$? |
ac1cb8d3 VS |
32225 | grep -v '^ *+' conftest.er1 >conftest.err |
32226 | rm -f conftest.er1 | |
32227 | cat conftest.err >&5 | |
01cb68df RG |
32228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32229 | (exit $ac_status); } && | |
c9a66001 | 32230 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32232 | (eval $ac_try) 2>&5 | |
32233 | ac_status=$? | |
32234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32235 | (exit $ac_status); }; } && | |
32236 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
32237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32238 | (eval $ac_try) 2>&5 | |
32239 | ac_status=$? | |
32240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32241 | (exit $ac_status); }; }; then | |
5294a27e | 32242 | eval "$as_ac_Header=yes" |
01cb68df RG |
32243 | else |
32244 | echo "$as_me: failed program was:" >&5 | |
32245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32246 | ||
5294a27e | 32247 | eval "$as_ac_Header=no" |
01cb68df | 32248 | fi |
ac1cb8d3 | 32249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
32250 | fi |
32251 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32252 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
32253 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32254 | cat >>confdefs.h <<_ACEOF | |
32255 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32256 | _ACEOF | |
32257 | ||
01cb68df RG |
32258 | fi |
32259 | ||
32260 | done | |
32261 | ||
a848cd7e SC |
32262 | fi |
32263 | fi | |
32264 | ||
32265 | ||
32266 | USE_OPENGL=0 | |
32267 | if test "$wxUSE_OPENGL" = "yes"; then | |
32268 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
32269 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
32270 | elif test "$wxUSE_MSW" = 1; then | |
32271 | OPENGL_LIBS="-lopengl32 -lglu32" | |
32272 | else | |
32273 | ||
32274 | ||
32275 | ac_find_includes= | |
32276 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
32277 | do | |
32278 | if test -f "$ac_dir/GL/gl.h"; then | |
32279 | ac_find_includes=$ac_dir | |
32280 | break | |
32281 | fi | |
32282 | done | |
32283 | ||
32284 | if test "$ac_find_includes" != "" ; then | |
32285 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
32286 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
32287 | ||
32288 | if test "x$ac_find_includes" = "x/usr/include"; then | |
32289 | ac_path_to_include="" | |
32290 | else | |
32291 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
32292 | result=$? | |
32293 | if test $result = 0; then | |
32294 | ac_path_to_include="" | |
32295 | else | |
32296 | ac_path_to_include=" -I$ac_find_includes" | |
32297 | fi | |
32298 | fi | |
32299 | ||
c92ad099 | 32300 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" |
a848cd7e SC |
32301 | fi |
32302 | ||
32303 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
32304 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
32305 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
32306 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
32307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32308 | fi | |
32309 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
32310 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
32311 | else | |
32312 | # Is the header compilable? | |
32313 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
32314 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
32315 | cat >conftest.$ac_ext <<_ACEOF | |
32316 | /* confdefs.h. */ | |
32317 | _ACEOF | |
32318 | cat confdefs.h >>conftest.$ac_ext | |
32319 | cat >>conftest.$ac_ext <<_ACEOF | |
32320 | /* end confdefs.h. */ | |
32321 | $ac_includes_default | |
32322 | #include <GL/gl.h> | |
32323 | _ACEOF | |
32324 | rm -f conftest.$ac_objext | |
32325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32326 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32327 | ac_status=$? |
ac1cb8d3 VS |
32328 | grep -v '^ *+' conftest.er1 >conftest.err |
32329 | rm -f conftest.er1 | |
32330 | cat conftest.err >&5 | |
a848cd7e SC |
32331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32332 | (exit $ac_status); } && | |
c9a66001 | 32333 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32335 | (eval $ac_try) 2>&5 | |
32336 | ac_status=$? | |
32337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32338 | (exit $ac_status); }; } && | |
32339 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32341 | (eval $ac_try) 2>&5 | |
32342 | ac_status=$? | |
32343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32344 | (exit $ac_status); }; }; then | |
32345 | ac_header_compiler=yes | |
32346 | else | |
32347 | echo "$as_me: failed program was:" >&5 | |
32348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32349 | ||
32350 | ac_header_compiler=no | |
32351 | fi | |
ac1cb8d3 | 32352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32353 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32354 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32355 | ||
32356 | # Is the header present? | |
32357 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
32358 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
32359 | cat >conftest.$ac_ext <<_ACEOF | |
32360 | /* confdefs.h. */ | |
32361 | _ACEOF | |
32362 | cat confdefs.h >>conftest.$ac_ext | |
32363 | cat >>conftest.$ac_ext <<_ACEOF | |
32364 | /* end confdefs.h. */ | |
32365 | #include <GL/gl.h> | |
32366 | _ACEOF | |
32367 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32368 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32369 | ac_status=$? | |
32370 | grep -v '^ *+' conftest.er1 >conftest.err | |
32371 | rm -f conftest.er1 | |
32372 | cat conftest.err >&5 | |
32373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32374 | (exit $ac_status); } >/dev/null; then | |
32375 | if test -s conftest.err; then | |
5d7b7554 VZ |
32376 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
32377 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
32378 | else |
32379 | ac_cpp_err= | |
32380 | fi | |
32381 | else | |
32382 | ac_cpp_err=yes | |
32383 | fi | |
32384 | if test -z "$ac_cpp_err"; then | |
32385 | ac_header_preproc=yes | |
32386 | else | |
32387 | echo "$as_me: failed program was:" >&5 | |
32388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32389 | ||
32390 | ac_header_preproc=no | |
32391 | fi | |
32392 | rm -f conftest.err conftest.$ac_ext | |
32393 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32394 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32395 | ||
32396 | # So? What about this header? | |
5d7b7554 | 32397 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 32398 | yes:no: ) |
a848cd7e SC |
32399 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
32400 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32401 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
32402 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
32403 | ac_header_preproc=yes | |
a848cd7e | 32404 | ;; |
ac1cb8d3 | 32405 | no:yes:* ) |
a848cd7e SC |
32406 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
32407 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32408 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
32409 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
32410 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
32411 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
32412 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
32413 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32414 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
32415 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32416 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
32417 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32418 | ( |
32419 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32420 | ## ----------------------------------------- ## |
32421 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32422 | ## ----------------------------------------- ## | |
a848cd7e SC |
32423 | _ASBOX |
32424 | ) | | |
32425 | sed "s/^/$as_me: WARNING: /" >&2 | |
32426 | ;; | |
32427 | esac | |
32428 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
32429 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
32430 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
32431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32432 | else | |
32433 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
32434 | fi | |
32435 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
32436 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
32437 | ||
32438 | fi | |
32439 | if test $ac_cv_header_GL_gl_h = yes; then | |
32440 | ||
32441 | found_gl=0 | |
32442 | ||
32443 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
32444 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
32445 | ||
0ad5d837 VZ |
32446 | ac_find_libraries= |
32447 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 32448 | do |
3eca31dc | 32449 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
32450 | if test -f "$ac_dir/libGL.$ac_extension"; then |
32451 | ac_find_libraries=$ac_dir | |
32452 | break 2 | |
32453 | fi | |
32454 | done | |
32455 | done | |
32456 | ||
32457 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
32458 | echo "$as_me:$LINENO: result: yes" >&5 |
32459 | echo "${ECHO_T}yes" >&6 | |
32460 | ||
a848cd7e | 32461 | |
0ad5d837 | 32462 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32463 | ac_path_to_link="" |
32464 | else | |
0ad5d837 VZ |
32465 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32466 | result=$? | |
32467 | if test $result = 0; then | |
32468 | ac_path_to_link="" | |
32469 | else | |
32470 | ac_path_to_link=" -L$ac_find_libraries" | |
32471 | fi | |
a848cd7e SC |
32472 | fi |
32473 | ||
32474 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
32475 | LDFLAGS_GL="$ac_path_to_link" | |
32476 | fi | |
32477 | ||
69120ee4 VZ |
32478 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
32479 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 32480 | |
0ad5d837 VZ |
32481 | ac_find_libraries= |
32482 | for ac_dir in $SEARCH_LIB; | |
32483 | do | |
32484 | for ac_extension in a so sl dylib dll.a; do | |
32485 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
32486 | ac_find_libraries=$ac_dir | |
32487 | break 2 | |
32488 | fi | |
32489 | done | |
32490 | done | |
32491 | ||
a848cd7e SC |
32492 | if test "$ac_find_libraries" != "" ; then |
32493 | ||
0ad5d837 | 32494 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32495 | ac_path_to_link="" |
32496 | else | |
0ad5d837 VZ |
32497 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32498 | result=$? | |
32499 | if test $result = 0; then | |
32500 | ac_path_to_link="" | |
32501 | else | |
32502 | ac_path_to_link=" -L$ac_find_libraries" | |
32503 | fi | |
a848cd7e SC |
32504 | fi |
32505 | ||
32506 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
32507 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
32508 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
32509 | fi | |
32510 | ||
32511 | found_gl=1 | |
32512 | OPENGL_LIBS="-lGL -lGLU" | |
32513 | echo "$as_me:$LINENO: result: yes" >&5 | |
32514 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
32515 | else |
32516 | echo "$as_me:$LINENO: result: no" >&5 | |
32517 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 32518 | fi |
69120ee4 VZ |
32519 | else |
32520 | echo "$as_me:$LINENO: result: no" >&5 | |
32521 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
32522 | fi |
32523 | ||
32524 | if test "$found_gl" != 1; then | |
a848cd7e SC |
32525 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
32526 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
32527 | ||
0ad5d837 VZ |
32528 | ac_find_libraries= |
32529 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 32530 | do |
3eca31dc | 32531 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
32532 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
32533 | ac_find_libraries=$ac_dir | |
32534 | break 2 | |
32535 | fi | |
32536 | done | |
32537 | done | |
32538 | ||
32539 | if test "$ac_find_libraries" != "" ; then | |
32540 | ||
0ad5d837 | 32541 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32542 | ac_path_to_link="" |
32543 | else | |
0ad5d837 VZ |
32544 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32545 | result=$? | |
32546 | if test $result = 0; then | |
32547 | ac_path_to_link="" | |
32548 | else | |
32549 | ac_path_to_link=" -L$ac_find_libraries" | |
32550 | fi | |
a848cd7e SC |
32551 | fi |
32552 | ||
32553 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
32554 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
32555 | echo "$as_me:$LINENO: result: yes" >&5 | |
32556 | echo "${ECHO_T}yes" >&6 | |
32557 | else | |
32558 | echo "$as_me:$LINENO: result: no" >&5 | |
32559 | echo "${ECHO_T}no" >&6 | |
32560 | fi | |
32561 | fi | |
32562 | ||
32563 | fi | |
32564 | ||
32565 | ||
32566 | ||
32567 | if test "x$OPENGL_LIBS" = "x"; then | |
32568 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
32569 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
32570 | { (exit 1); exit 1; }; } | |
32571 | fi | |
32572 | fi | |
32573 | ||
32574 | if test "$wxUSE_OPENGL" = "yes"; then | |
32575 | USE_OPENGL=1 | |
32576 | cat >>confdefs.h <<\_ACEOF | |
32577 | #define wxUSE_OPENGL 1 | |
32578 | _ACEOF | |
32579 | ||
32580 | cat >>confdefs.h <<\_ACEOF | |
32581 | #define wxUSE_GLCANVAS 1 | |
32582 | _ACEOF | |
32583 | ||
32584 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
32585 | fi | |
32586 | fi | |
32587 | ||
a848cd7e SC |
32588 | |
32589 | if test -n "$TOOLKIT" ; then | |
32590 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
32591 | fi | |
32592 | ||
a848cd7e SC |
32593 | |
32594 | ||
32595 | if test "$wxUSE_SHARED" = "yes"; then | |
32596 | case "${host}" in | |
32597 | *-pc-msdosdjgpp ) | |
32598 | wxUSE_SHARED=no | |
32599 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
32600 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
32601 | ;; | |
32602 | esac | |
32603 | fi | |
32604 | ||
a848cd7e | 32605 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
32606 | |
32607 | ||
32608 | found_versioning=no | |
32609 | ||
32610 | ||
32611 | if test $found_versioning = no ; then | |
32612 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
32613 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
32614 | if test "${wx_cv_version_script+set}" = set; then | |
32615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32616 | else | |
32617 | ||
32618 | echo "VER_1 { *; };" >conftest.sym | |
32619 | echo "int main() { return 0; }" >conftest.cpp | |
32620 | ||
32621 | if { ac_try=' | |
32622 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32623 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
32624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32625 | (eval $ac_try) 2>&5 | |
32626 | ac_status=$? | |
32627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32628 | (exit $ac_status); }; } ; then | |
32629 | if test -s conftest.stderr ; then | |
32630 | wx_cv_version_script=no | |
32631 | else | |
32632 | wx_cv_version_script=yes | |
32633 | fi | |
32634 | else | |
32635 | wx_cv_version_script=no | |
32636 | fi | |
e5d4b470 MW |
32637 | |
32638 | if test $wx_cv_version_script = yes | |
32639 | then | |
32640 | echo "struct B { virtual ~B() { } }; \ | |
32641 | struct D : public B { }; \ | |
32642 | void F() { D d; }" > conftest.cpp | |
32643 | ||
32644 | if { ac_try=' | |
32645 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32646 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
32647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32648 | (eval $ac_try) 2>&5 | |
32649 | ac_status=$? | |
32650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32651 | (exit $ac_status); }; } && | |
32652 | { ac_try=' | |
32653 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32654 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
32655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32656 | (eval $ac_try) 2>&5 | |
32657 | ac_status=$? | |
32658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32659 | (exit $ac_status); }; } | |
32660 | then | |
32661 | if { ac_try=' | |
32662 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32663 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
32664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32665 | (eval $ac_try) 2>&5 | |
32666 | ac_status=$? | |
32667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32668 | (exit $ac_status); }; } | |
32669 | then | |
32670 | wx_cv_version_script=yes | |
32671 | else | |
32672 | wx_cv_version_script=no | |
32673 | fi | |
32674 | fi | |
32675 | fi | |
32676 | ||
a848cd7e | 32677 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 32678 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
32679 | |
32680 | fi | |
32681 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
32682 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
32683 | if test $wx_cv_version_script = yes ; then | |
32684 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
32685 | fi | |
32686 | fi | |
32687 | ||
32688 | ||
32689 | case "${host}" in | |
32690 | *-*-linux* | *-*-gnu* ) | |
32691 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 32692 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 32693 | ;; |
a848cd7e SC |
32694 | |
32695 | *-*-solaris2* ) | |
32696 | if test "$GCC" = yes ; then | |
c92ad099 | 32697 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
a848cd7e SC |
32698 | |
32699 | saveLdflags="$LDFLAGS" | |
32700 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
32701 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
32702 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
32703 | cat >conftest.$ac_ext <<_ACEOF | |
32704 | /* confdefs.h. */ | |
32705 | _ACEOF | |
32706 | cat confdefs.h >>conftest.$ac_ext | |
32707 | cat >>conftest.$ac_ext <<_ACEOF | |
32708 | /* end confdefs.h. */ | |
32709 | ||
32710 | int | |
32711 | main () | |
32712 | { | |
32713 | ||
32714 | ; | |
32715 | return 0; | |
32716 | } | |
32717 | _ACEOF | |
32718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32720 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32721 | ac_status=$? |
ac1cb8d3 VS |
32722 | grep -v '^ *+' conftest.er1 >conftest.err |
32723 | rm -f conftest.er1 | |
32724 | cat conftest.err >&5 | |
a848cd7e SC |
32725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32726 | (exit $ac_status); } && | |
c9a66001 | 32727 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32729 | (eval $ac_try) 2>&5 | |
32730 | ac_status=$? | |
32731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32732 | (exit $ac_status); }; } && | |
32733 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32735 | (eval $ac_try) 2>&5 | |
32736 | ac_status=$? | |
32737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32738 | (exit $ac_status); }; }; then | |
32739 | ||
32740 | echo "$as_me:$LINENO: result: yes" >&5 | |
32741 | echo "${ECHO_T}yes" >&6 | |
32742 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 32743 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
32744 | |
32745 | else | |
32746 | echo "$as_me: failed program was:" >&5 | |
32747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32748 | ||
32749 | ||
32750 | echo "$as_me:$LINENO: result: no" >&5 | |
32751 | echo "${ECHO_T}no" >&6 | |
32752 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
32753 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
32754 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
32755 | cat >conftest.$ac_ext <<_ACEOF | |
32756 | /* confdefs.h. */ | |
32757 | _ACEOF | |
32758 | cat confdefs.h >>conftest.$ac_ext | |
32759 | cat >>conftest.$ac_ext <<_ACEOF | |
32760 | /* end confdefs.h. */ | |
32761 | ||
32762 | int | |
32763 | main () | |
32764 | { | |
32765 | ||
32766 | ; | |
32767 | return 0; | |
32768 | } | |
32769 | _ACEOF | |
32770 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32772 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32773 | ac_status=$? |
ac1cb8d3 VS |
32774 | grep -v '^ *+' conftest.er1 >conftest.err |
32775 | rm -f conftest.er1 | |
32776 | cat conftest.err >&5 | |
a848cd7e SC |
32777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32778 | (exit $ac_status); } && | |
c9a66001 | 32779 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32781 | (eval $ac_try) 2>&5 | |
32782 | ac_status=$? | |
32783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32784 | (exit $ac_status); }; } && | |
32785 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32787 | (eval $ac_try) 2>&5 | |
32788 | ac_status=$? | |
32789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32790 | (exit $ac_status); }; }; then | |
32791 | ||
ffa0583f | 32792 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 32793 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
32794 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
32795 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
32796 | ||
a848cd7e SC |
32797 | else |
32798 | echo "$as_me: failed program was:" >&5 | |
32799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32800 | ||
32801 | ||
32802 | echo "$as_me:$LINENO: result: no" >&5 | |
32803 | echo "${ECHO_T}no" >&6 | |
32804 | ||
32805 | fi | |
ac1cb8d3 VS |
32806 | rm -f conftest.err conftest.$ac_objext \ |
32807 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32808 | |
32809 | fi | |
ac1cb8d3 VS |
32810 | rm -f conftest.err conftest.$ac_objext \ |
32811 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32812 | LDFLAGS="$saveLdflags" |
32813 | else | |
a848cd7e | 32814 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 32815 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
32816 | fi |
32817 | ;; | |
32818 | ||
cfda0ea8 | 32819 | *-*-darwin* ) |
0caebc27 MW |
32820 | install_name_tool=`which install_name_tool` |
32821 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
32822 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
32823 | cat <<EOF >change-install-names | |
a848cd7e SC |
32824 | #!/bin/sh |
32825 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
32826 | inst_cmd="install_name_tool " | |
32827 | for i in \${libnames} ; do | |
32828 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
32829 | done | |
32830 | \${inst_cmd} \${3} | |
32831 | EOF | |
0caebc27 MW |
32832 | chmod +x change-install-names |
32833 | fi | |
a848cd7e SC |
32834 | ;; |
32835 | ||
32836 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 VZ |
32837 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
32838 | ;; | |
a848cd7e | 32839 | |
81f90336 MW |
32840 | *-*-hpux* ) |
32841 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
32842 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
5ff751d6 | 32843 | ;; |
81f90336 | 32844 | |
a848cd7e | 32845 | esac |
ceec2216 | 32846 | |
ffa0583f RL |
32847 | if test $wxUSE_RPATH = "no"; then |
32848 | SAMPLES_RPATH_FLAG='' | |
32849 | SAMPLES_RPATH_POSTLINK='' | |
32850 | WXCONFIG_RPATH='' | |
32851 | fi | |
32852 | ||
32853 | SHARED=1 | |
32854 | ||
32855 | else | |
32856 | ||
ceec2216 RL |
32857 | config_linkage_component="-static" |
32858 | SHARED=0 | |
ffa0583f | 32859 | |
ceec2216 | 32860 | fi |
a848cd7e | 32861 | |
a848cd7e | 32862 | |
ceec2216 RL |
32863 | UNICODE=0 |
32864 | lib_unicode_suffix= | |
32865 | WX_CHARTYPE="ansi" | |
32866 | if test "$wxUSE_UNICODE" = "yes"; then | |
32867 | lib_unicode_suffix=u | |
32868 | WX_CHARTYPE="unicode" | |
32869 | UNICODE=1 | |
a848cd7e SC |
32870 | fi |
32871 | ||
ceec2216 RL |
32872 | lib_debug_suffix= |
32873 | WX_DEBUGTYPE="release" | |
32874 | DEBUG_FLAG=0 | |
32875 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
32876 | lib_debug_suffix=d | |
32877 | WX_DEBUGTYPE="debug" | |
32878 | DEBUG_FLAG=1 | |
32879 | fi | |
a848cd7e | 32880 | |
ceec2216 RL |
32881 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
32882 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 32883 | |
ceec2216 RL |
32884 | DEBUG_INFO=0 |
32885 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
32886 | DEBUG_INFO=1 | |
32887 | fi | |
a848cd7e | 32888 | |
ceec2216 | 32889 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 32890 | |
ceec2216 | 32891 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 32892 | |
ceec2216 | 32893 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 32894 | |
ceec2216 RL |
32895 | if test "$cross_compiling" = "yes"; then |
32896 | HOST_SUFFIX="-$host_alias" | |
32897 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
32898 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
32899 | fi |
32900 | ||
dd21ced8 | 32901 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
32902 | if test "${TOOLKIT_DIR}" = "os2"; then |
32903 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
32904 | else | |
32905 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
32906 | fi | |
ceec2216 RL |
32907 | |
32908 | ||
32909 | ||
1d1af5ea DE |
32910 | if test "$wxUSE_COCOA" = 1; then |
32911 | ||
32912 | ||
32913 | ac_ext=c | |
32914 | ac_cpp='$CPP $CPPFLAGS' | |
32915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32918 | ||
32919 | ac_ext=m | |
32920 | ||
32921 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
32922 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
32923 | cat >conftest.$ac_ext <<_ACEOF | |
32924 | /* confdefs.h. */ | |
32925 | _ACEOF | |
32926 | cat confdefs.h >>conftest.$ac_ext | |
32927 | cat >>conftest.$ac_ext <<_ACEOF | |
32928 | /* end confdefs.h. */ | |
32929 | #include <AppKit/NSEvent.h> | |
32930 | #include <CoreFoundation/CoreFoundation.h> | |
32931 | ||
32932 | int | |
32933 | main () | |
32934 | { | |
32935 | ||
32936 | ; | |
32937 | return 0; | |
32938 | } | |
32939 | _ACEOF | |
32940 | rm -f conftest.$ac_objext | |
32941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32942 | (eval $ac_compile) 2>conftest.er1 | |
32943 | ac_status=$? | |
32944 | grep -v '^ *+' conftest.er1 >conftest.err | |
32945 | rm -f conftest.er1 | |
32946 | cat conftest.err >&5 | |
32947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32948 | (exit $ac_status); } && | |
c9a66001 | 32949 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
32950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32951 | (eval $ac_try) 2>&5 | |
32952 | ac_status=$? | |
32953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32954 | (exit $ac_status); }; } && | |
32955 | { ac_try='test -s conftest.$ac_objext' | |
32956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32957 | (eval $ac_try) 2>&5 | |
32958 | ac_status=$? | |
32959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32960 | (exit $ac_status); }; }; then | |
32961 | echo "$as_me:$LINENO: result: no" >&5 | |
32962 | echo "${ECHO_T}no" >&6 | |
32963 | else | |
32964 | echo "$as_me: failed program was:" >&5 | |
32965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32966 | ||
32967 | echo "$as_me:$LINENO: result: yes" >&5 | |
32968 | echo "${ECHO_T}yes" >&6 | |
32969 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
32970 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
32971 | cat >conftest.$ac_ext <<_ACEOF | |
32972 | /* confdefs.h. */ | |
32973 | _ACEOF | |
32974 | cat confdefs.h >>conftest.$ac_ext | |
32975 | cat >>conftest.$ac_ext <<_ACEOF | |
32976 | /* end confdefs.h. */ | |
32977 | #define __Point__ 1 | |
32978 | #include <AppKit/NSEvent.h> | |
32979 | #include <CoreFoundation/CoreFoundation.h> | |
32980 | ||
32981 | int | |
32982 | main () | |
32983 | { | |
32984 | ||
32985 | ; | |
32986 | return 0; | |
32987 | } | |
32988 | _ACEOF | |
32989 | rm -f conftest.$ac_objext | |
32990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32991 | (eval $ac_compile) 2>conftest.er1 | |
32992 | ac_status=$? | |
32993 | grep -v '^ *+' conftest.er1 >conftest.err | |
32994 | rm -f conftest.er1 | |
32995 | cat conftest.err >&5 | |
32996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32997 | (exit $ac_status); } && | |
c9a66001 | 32998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
32999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33000 | (eval $ac_try) 2>&5 | |
33001 | ac_status=$? | |
33002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33003 | (exit $ac_status); }; } && | |
33004 | { ac_try='test -s conftest.$ac_objext' | |
33005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33006 | (eval $ac_try) 2>&5 | |
33007 | ac_status=$? | |
33008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33009 | (exit $ac_status); }; }; then | |
33010 | echo "$as_me:$LINENO: result: yes" >&5 | |
33011 | echo "${ECHO_T}yes" >&6 | |
33012 | cat >>confdefs.h <<\_ACEOF | |
33013 | #define __Point__ 1 | |
33014 | _ACEOF | |
33015 | ||
33016 | ||
33017 | else | |
33018 | echo "$as_me: failed program was:" >&5 | |
33019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33020 | ||
33021 | { { echo "$as_me:$LINENO: error: no | |
33022 | See \`config.log' for more details." >&5 | |
33023 | echo "$as_me: error: no | |
33024 | See \`config.log' for more details." >&2;} | |
33025 | { (exit 1); exit 1; }; } | |
33026 | ||
33027 | fi | |
33028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33029 | ||
33030 | fi | |
33031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
33032 | ac_ext=cc |
33033 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33034 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33035 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33036 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1d1af5ea DE |
33037 | |
33038 | fi | |
33039 | ||
a848cd7e | 33040 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
33041 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
33042 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 33043 | |
a848cd7e | 33044 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
33045 | |
33046 | # Extract the first word of "Rez", so it can be a program name with args. | |
33047 | set dummy Rez; ac_word=$2 | |
33048 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 33050 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
33051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33052 | else | |
8ced02f6 DE |
33053 | if test -n "$REZ"; then |
33054 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
33055 | else |
33056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33057 | for as_dir in $PATH | |
33058 | do | |
33059 | IFS=$as_save_IFS | |
33060 | test -z "$as_dir" && as_dir=. | |
33061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33062 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 33063 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
33064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
33065 | break 2 | |
33066 | fi | |
33067 | done | |
33068 | done | |
33069 | ||
8ced02f6 | 33070 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
33071 | fi |
33072 | fi | |
8ced02f6 DE |
33073 | REZ=$ac_cv_prog_REZ |
33074 | if test -n "$REZ"; then | |
33075 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
33076 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
33077 | else |
33078 | echo "$as_me:$LINENO: result: no" >&5 | |
33079 | echo "${ECHO_T}no" >&6 | |
33080 | fi | |
33081 | ||
33082 | # Extract the first word of "DeRez", so it can be a program name with args. | |
33083 | set dummy DeRez; ac_word=$2 | |
33084 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33086 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
33087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33088 | else | |
33089 | if test -n "$DEREZ"; then | |
33090 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
33091 | else | |
33092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33093 | for as_dir in $PATH | |
33094 | do | |
33095 | IFS=$as_save_IFS | |
33096 | test -z "$as_dir" && as_dir=. | |
33097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33098 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33099 | ac_cv_prog_DEREZ="DeRez" | |
33100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33101 | break 2 | |
33102 | fi | |
33103 | done | |
33104 | done | |
33105 | ||
33106 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
33107 | fi | |
33108 | fi | |
33109 | DEREZ=$ac_cv_prog_DEREZ | |
33110 | if test -n "$DEREZ"; then | |
33111 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
33112 | echo "${ECHO_T}$DEREZ" >&6 | |
33113 | else | |
33114 | echo "$as_me:$LINENO: result: no" >&5 | |
33115 | echo "${ECHO_T}no" >&6 | |
33116 | fi | |
33117 | ||
33118 | # Extract the first word of "SetFile", so it can be a program name with args. | |
33119 | set dummy SetFile; ac_word=$2 | |
33120 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33122 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
33123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33124 | else | |
33125 | if test -n "$SETFILE"; then | |
33126 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
33127 | else | |
33128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33129 | for as_dir in $PATH | |
33130 | do | |
33131 | IFS=$as_save_IFS | |
33132 | test -z "$as_dir" && as_dir=. | |
33133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33135 | ac_cv_prog_SETFILE="SetFile" | |
33136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33137 | break 2 | |
33138 | fi | |
33139 | done | |
33140 | done | |
33141 | ||
33142 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
33143 | fi | |
33144 | fi | |
33145 | SETFILE=$ac_cv_prog_SETFILE | |
33146 | if test -n "$SETFILE"; then | |
33147 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
33148 | echo "${ECHO_T}$SETFILE" >&6 | |
33149 | else | |
33150 | echo "$as_me:$LINENO: result: no" >&5 | |
33151 | echo "${ECHO_T}no" >&6 | |
33152 | fi | |
33153 | ||
33154 | ||
33155 | MACSETFILE="\$(SETFILE)" | |
33156 | ||
33157 | if test "$wxUSE_MAC" = 1; then | |
8ced02f6 | 33158 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
004ee6da RL |
33159 | RESCOMP="$REZ" |
33160 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
a848cd7e | 33161 | else |
004ee6da RL |
33162 | POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" |
33163 | RESCOMP="echo -n \| $REZ" | |
33164 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
a848cd7e | 33165 | fi |
004ee6da | 33166 | |
a848cd7e | 33167 | else |
ffa0583f | 33168 | MACSETFILE="@true" |
a848cd7e | 33169 | |
8ced02f6 | 33170 | if test "$wxUSE_PM" = 1; then |
004ee6da RL |
33171 | RESCOMP="emxbind" |
33172 | WXCONFIG_RESFLAGS="-ep" | |
33173 | ||
33174 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
a848cd7e | 33175 | else |
8ced02f6 | 33176 | POSTLINK_COMMAND="@true" |
a848cd7e | 33177 | fi |
004ee6da | 33178 | |
a848cd7e SC |
33179 | fi |
33180 | ||
33181 | ||
33182 | ||
33183 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
33184 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
33185 | if test "${ac_cv_type_mode_t+set}" = set; then | |
33186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33187 | else | |
33188 | cat >conftest.$ac_ext <<_ACEOF | |
33189 | /* confdefs.h. */ | |
33190 | _ACEOF | |
33191 | cat confdefs.h >>conftest.$ac_ext | |
33192 | cat >>conftest.$ac_ext <<_ACEOF | |
33193 | /* end confdefs.h. */ | |
33194 | $ac_includes_default | |
33195 | int | |
33196 | main () | |
33197 | { | |
33198 | if ((mode_t *) 0) | |
33199 | return 0; | |
33200 | if (sizeof (mode_t)) | |
33201 | return 0; | |
33202 | ; | |
33203 | return 0; | |
33204 | } | |
33205 | _ACEOF | |
33206 | rm -f conftest.$ac_objext | |
33207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33208 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33209 | ac_status=$? |
ac1cb8d3 VS |
33210 | grep -v '^ *+' conftest.er1 >conftest.err |
33211 | rm -f conftest.er1 | |
33212 | cat conftest.err >&5 | |
a848cd7e SC |
33213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33214 | (exit $ac_status); } && | |
c9a66001 | 33215 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33217 | (eval $ac_try) 2>&5 | |
33218 | ac_status=$? | |
33219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33220 | (exit $ac_status); }; } && | |
33221 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33223 | (eval $ac_try) 2>&5 | |
33224 | ac_status=$? | |
33225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33226 | (exit $ac_status); }; }; then | |
33227 | ac_cv_type_mode_t=yes | |
33228 | else | |
33229 | echo "$as_me: failed program was:" >&5 | |
33230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33231 | ||
33232 | ac_cv_type_mode_t=no | |
33233 | fi | |
ac1cb8d3 | 33234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33235 | fi |
33236 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
33237 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
33238 | if test $ac_cv_type_mode_t = yes; then | |
33239 | : | |
33240 | else | |
33241 | ||
33242 | cat >>confdefs.h <<_ACEOF | |
33243 | #define mode_t int | |
33244 | _ACEOF | |
33245 | ||
33246 | fi | |
33247 | ||
33248 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
33249 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
33250 | if test "${ac_cv_type_off_t+set}" = set; then | |
33251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33252 | else | |
33253 | cat >conftest.$ac_ext <<_ACEOF | |
33254 | /* confdefs.h. */ | |
33255 | _ACEOF | |
33256 | cat confdefs.h >>conftest.$ac_ext | |
33257 | cat >>conftest.$ac_ext <<_ACEOF | |
33258 | /* end confdefs.h. */ | |
33259 | $ac_includes_default | |
33260 | int | |
33261 | main () | |
33262 | { | |
33263 | if ((off_t *) 0) | |
33264 | return 0; | |
33265 | if (sizeof (off_t)) | |
33266 | return 0; | |
33267 | ; | |
33268 | return 0; | |
33269 | } | |
33270 | _ACEOF | |
33271 | rm -f conftest.$ac_objext | |
33272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33273 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33274 | ac_status=$? |
ac1cb8d3 VS |
33275 | grep -v '^ *+' conftest.er1 >conftest.err |
33276 | rm -f conftest.er1 | |
33277 | cat conftest.err >&5 | |
a848cd7e SC |
33278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33279 | (exit $ac_status); } && | |
c9a66001 | 33280 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33282 | (eval $ac_try) 2>&5 | |
33283 | ac_status=$? | |
33284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33285 | (exit $ac_status); }; } && | |
33286 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33288 | (eval $ac_try) 2>&5 | |
33289 | ac_status=$? | |
33290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33291 | (exit $ac_status); }; }; then | |
33292 | ac_cv_type_off_t=yes | |
33293 | else | |
33294 | echo "$as_me: failed program was:" >&5 | |
33295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33296 | ||
33297 | ac_cv_type_off_t=no | |
33298 | fi | |
ac1cb8d3 | 33299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33300 | fi |
33301 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
33302 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
33303 | if test $ac_cv_type_off_t = yes; then | |
33304 | : | |
33305 | else | |
33306 | ||
33307 | cat >>confdefs.h <<_ACEOF | |
33308 | #define off_t long | |
33309 | _ACEOF | |
33310 | ||
33311 | fi | |
33312 | ||
33313 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
33314 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
33315 | if test "${ac_cv_type_pid_t+set}" = set; then | |
33316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33317 | else | |
33318 | cat >conftest.$ac_ext <<_ACEOF | |
33319 | /* confdefs.h. */ | |
33320 | _ACEOF | |
33321 | cat confdefs.h >>conftest.$ac_ext | |
33322 | cat >>conftest.$ac_ext <<_ACEOF | |
33323 | /* end confdefs.h. */ | |
33324 | $ac_includes_default | |
33325 | int | |
33326 | main () | |
33327 | { | |
33328 | if ((pid_t *) 0) | |
33329 | return 0; | |
33330 | if (sizeof (pid_t)) | |
33331 | return 0; | |
33332 | ; | |
33333 | return 0; | |
33334 | } | |
33335 | _ACEOF | |
33336 | rm -f conftest.$ac_objext | |
33337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33338 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33339 | ac_status=$? |
ac1cb8d3 VS |
33340 | grep -v '^ *+' conftest.er1 >conftest.err |
33341 | rm -f conftest.er1 | |
33342 | cat conftest.err >&5 | |
a848cd7e SC |
33343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33344 | (exit $ac_status); } && | |
c9a66001 | 33345 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33347 | (eval $ac_try) 2>&5 | |
33348 | ac_status=$? | |
33349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33350 | (exit $ac_status); }; } && | |
33351 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33353 | (eval $ac_try) 2>&5 | |
33354 | ac_status=$? | |
33355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33356 | (exit $ac_status); }; }; then | |
33357 | ac_cv_type_pid_t=yes | |
33358 | else | |
33359 | echo "$as_me: failed program was:" >&5 | |
33360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33361 | ||
33362 | ac_cv_type_pid_t=no | |
33363 | fi | |
ac1cb8d3 | 33364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33365 | fi |
33366 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
33367 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
33368 | if test $ac_cv_type_pid_t = yes; then | |
33369 | : | |
33370 | else | |
33371 | ||
33372 | cat >>confdefs.h <<_ACEOF | |
33373 | #define pid_t int | |
33374 | _ACEOF | |
33375 | ||
33376 | fi | |
33377 | ||
33378 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
33379 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
33380 | if test "${ac_cv_type_size_t+set}" = set; then | |
33381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33382 | else | |
33383 | cat >conftest.$ac_ext <<_ACEOF | |
33384 | /* confdefs.h. */ | |
33385 | _ACEOF | |
33386 | cat confdefs.h >>conftest.$ac_ext | |
33387 | cat >>conftest.$ac_ext <<_ACEOF | |
33388 | /* end confdefs.h. */ | |
33389 | $ac_includes_default | |
33390 | int | |
33391 | main () | |
33392 | { | |
33393 | if ((size_t *) 0) | |
33394 | return 0; | |
33395 | if (sizeof (size_t)) | |
33396 | return 0; | |
33397 | ; | |
33398 | return 0; | |
33399 | } | |
33400 | _ACEOF | |
33401 | rm -f conftest.$ac_objext | |
33402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33403 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33404 | ac_status=$? |
ac1cb8d3 VS |
33405 | grep -v '^ *+' conftest.er1 >conftest.err |
33406 | rm -f conftest.er1 | |
33407 | cat conftest.err >&5 | |
a848cd7e SC |
33408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33409 | (exit $ac_status); } && | |
c9a66001 | 33410 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33412 | (eval $ac_try) 2>&5 | |
33413 | ac_status=$? | |
33414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33415 | (exit $ac_status); }; } && | |
33416 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33418 | (eval $ac_try) 2>&5 | |
33419 | ac_status=$? | |
33420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33421 | (exit $ac_status); }; }; then | |
33422 | ac_cv_type_size_t=yes | |
33423 | else | |
33424 | echo "$as_me: failed program was:" >&5 | |
33425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33426 | ||
33427 | ac_cv_type_size_t=no | |
33428 | fi | |
ac1cb8d3 | 33429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33430 | fi |
33431 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
33432 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
33433 | if test $ac_cv_type_size_t = yes; then | |
33434 | : | |
33435 | else | |
33436 | ||
33437 | cat >>confdefs.h <<_ACEOF | |
33438 | #define size_t unsigned | |
33439 | _ACEOF | |
33440 | ||
33441 | fi | |
33442 | ||
33443 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
33444 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
33445 | if test "${ac_cv_type_uid_t+set}" = set; then | |
33446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33447 | else | |
33448 | cat >conftest.$ac_ext <<_ACEOF | |
33449 | /* confdefs.h. */ | |
33450 | _ACEOF | |
33451 | cat confdefs.h >>conftest.$ac_ext | |
33452 | cat >>conftest.$ac_ext <<_ACEOF | |
33453 | /* end confdefs.h. */ | |
33454 | #include <sys/types.h> | |
33455 | ||
33456 | _ACEOF | |
33457 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
33458 | $EGREP "uid_t" >/dev/null 2>&1; then | |
33459 | ac_cv_type_uid_t=yes | |
33460 | else | |
33461 | ac_cv_type_uid_t=no | |
33462 | fi | |
33463 | rm -f conftest* | |
33464 | ||
33465 | fi | |
33466 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
33467 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
33468 | if test $ac_cv_type_uid_t = no; then | |
33469 | ||
33470 | cat >>confdefs.h <<\_ACEOF | |
33471 | #define uid_t int | |
33472 | _ACEOF | |
33473 | ||
33474 | ||
33475 | cat >>confdefs.h <<\_ACEOF | |
33476 | #define gid_t int | |
33477 | _ACEOF | |
33478 | ||
33479 | fi | |
33480 | ||
33481 | ||
d51253e8 RL |
33482 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
33483 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
33484 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
33485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33486 | else | |
33487 | cat >conftest.$ac_ext <<_ACEOF | |
33488 | /* confdefs.h. */ | |
33489 | _ACEOF | |
33490 | cat confdefs.h >>conftest.$ac_ext | |
33491 | cat >>conftest.$ac_ext <<_ACEOF | |
33492 | /* end confdefs.h. */ | |
33493 | $ac_includes_default | |
33494 | int | |
33495 | main () | |
33496 | { | |
33497 | if ((ssize_t *) 0) | |
33498 | return 0; | |
33499 | if (sizeof (ssize_t)) | |
33500 | return 0; | |
33501 | ; | |
33502 | return 0; | |
33503 | } | |
33504 | _ACEOF | |
33505 | rm -f conftest.$ac_objext | |
33506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33507 | (eval $ac_compile) 2>conftest.er1 | |
33508 | ac_status=$? | |
33509 | grep -v '^ *+' conftest.er1 >conftest.err | |
33510 | rm -f conftest.er1 | |
33511 | cat conftest.err >&5 | |
33512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33513 | (exit $ac_status); } && | |
c9a66001 | 33514 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
33515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33516 | (eval $ac_try) 2>&5 | |
33517 | ac_status=$? | |
33518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33519 | (exit $ac_status); }; } && | |
33520 | { ac_try='test -s conftest.$ac_objext' | |
33521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33522 | (eval $ac_try) 2>&5 | |
33523 | ac_status=$? | |
33524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33525 | (exit $ac_status); }; }; then | |
33526 | ac_cv_type_ssize_t=yes | |
33527 | else | |
33528 | echo "$as_me: failed program was:" >&5 | |
33529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33530 | ||
33531 | ac_cv_type_ssize_t=no | |
33532 | fi | |
33533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33534 | fi | |
33535 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
33536 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
33537 | if test $ac_cv_type_ssize_t = yes; then | |
33538 | ||
33539 | cat >>confdefs.h <<_ACEOF | |
33540 | #define HAVE_SSIZE_T 1 | |
33541 | _ACEOF | |
33542 | ||
33543 | ||
33544 | fi | |
33545 | ||
33546 | ||
a848cd7e SC |
33547 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 |
33548 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
33549 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
33550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33551 | else | |
33552 | ||
33553 | cat >conftest.$ac_ext <<_ACEOF | |
33554 | /* confdefs.h. */ | |
33555 | _ACEOF | |
33556 | cat confdefs.h >>conftest.$ac_ext | |
33557 | cat >>conftest.$ac_ext <<_ACEOF | |
33558 | /* end confdefs.h. */ | |
33559 | #include <stddef.h> | |
33560 | int | |
33561 | main () | |
33562 | { | |
33563 | ||
33564 | return 0; } | |
33565 | ||
33566 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
33567 | ||
33568 | int bar() { | |
33569 | ||
33570 | ; | |
33571 | return 0; | |
33572 | } | |
33573 | _ACEOF | |
33574 | rm -f conftest.$ac_objext | |
33575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33576 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33577 | ac_status=$? |
ac1cb8d3 VS |
33578 | grep -v '^ *+' conftest.er1 >conftest.err |
33579 | rm -f conftest.er1 | |
33580 | cat conftest.err >&5 | |
a848cd7e SC |
33581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33582 | (exit $ac_status); } && | |
c9a66001 | 33583 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33585 | (eval $ac_try) 2>&5 | |
33586 | ac_status=$? | |
33587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33588 | (exit $ac_status); }; } && | |
33589 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33591 | (eval $ac_try) 2>&5 | |
33592 | ac_status=$? | |
33593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33594 | (exit $ac_status); }; }; then | |
33595 | wx_cv_size_t_is_uint=no | |
33596 | else | |
33597 | echo "$as_me: failed program was:" >&5 | |
33598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33599 | ||
33600 | wx_cv_size_t_is_uint=yes | |
33601 | ||
33602 | fi | |
ac1cb8d3 | 33603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33604 | |
33605 | ||
33606 | fi | |
33607 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
33608 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
33609 | ||
33610 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
33611 | cat >>confdefs.h <<\_ACEOF | |
33612 | #define wxSIZE_T_IS_UINT 1 | |
33613 | _ACEOF | |
33614 | ||
33615 | else | |
33616 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
33617 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
33618 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
33619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33620 | else | |
33621 | cat >conftest.$ac_ext <<_ACEOF | |
33622 | /* confdefs.h. */ | |
33623 | _ACEOF | |
33624 | cat confdefs.h >>conftest.$ac_ext | |
33625 | cat >>conftest.$ac_ext <<_ACEOF | |
33626 | /* end confdefs.h. */ | |
33627 | #include <stddef.h> | |
33628 | int | |
33629 | main () | |
33630 | { | |
33631 | ||
33632 | return 0; } | |
33633 | ||
33634 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
33635 | ||
33636 | int bar() { | |
33637 | ||
33638 | ; | |
33639 | return 0; | |
33640 | } | |
33641 | _ACEOF | |
33642 | rm -f conftest.$ac_objext | |
33643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33644 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33645 | ac_status=$? |
ac1cb8d3 VS |
33646 | grep -v '^ *+' conftest.er1 >conftest.err |
33647 | rm -f conftest.er1 | |
33648 | cat conftest.err >&5 | |
a848cd7e SC |
33649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33650 | (exit $ac_status); } && | |
c9a66001 | 33651 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33653 | (eval $ac_try) 2>&5 | |
33654 | ac_status=$? | |
33655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33656 | (exit $ac_status); }; } && | |
33657 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33659 | (eval $ac_try) 2>&5 | |
33660 | ac_status=$? | |
33661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33662 | (exit $ac_status); }; }; then | |
33663 | wx_cv_size_t_is_ulong=no | |
33664 | else | |
33665 | echo "$as_me: failed program was:" >&5 | |
33666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33667 | ||
33668 | wx_cv_size_t_is_ulong=yes | |
33669 | ||
33670 | fi | |
ac1cb8d3 | 33671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33672 | |
33673 | fi | |
33674 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
33675 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
33676 | ||
33677 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
33678 | cat >>confdefs.h <<\_ACEOF | |
33679 | #define wxSIZE_T_IS_ULONG 1 | |
33680 | _ACEOF | |
33681 | ||
33682 | fi | |
33683 | fi | |
33684 | ||
a848cd7e SC |
33685 | |
33686 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
33687 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
33688 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
33689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33690 | else | |
33691 | ||
33692 | cat >conftest.$ac_ext <<_ACEOF | |
33693 | /* confdefs.h. */ | |
33694 | _ACEOF | |
33695 | cat confdefs.h >>conftest.$ac_ext | |
33696 | cat >>conftest.$ac_ext <<_ACEOF | |
33697 | /* end confdefs.h. */ | |
33698 | #include <pwd.h> | |
33699 | int | |
33700 | main () | |
33701 | { | |
33702 | ||
33703 | char *p; | |
33704 | struct passwd *pw; | |
33705 | p = pw->pw_gecos; | |
33706 | ||
33707 | ; | |
33708 | return 0; | |
33709 | } | |
33710 | _ACEOF | |
33711 | rm -f conftest.$ac_objext | |
33712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33713 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33714 | ac_status=$? |
ac1cb8d3 VS |
33715 | grep -v '^ *+' conftest.er1 >conftest.err |
33716 | rm -f conftest.er1 | |
33717 | cat conftest.err >&5 | |
a848cd7e SC |
33718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33719 | (exit $ac_status); } && | |
c9a66001 | 33720 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33722 | (eval $ac_try) 2>&5 | |
33723 | ac_status=$? | |
33724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33725 | (exit $ac_status); }; } && | |
33726 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33728 | (eval $ac_try) 2>&5 | |
33729 | ac_status=$? | |
33730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33731 | (exit $ac_status); }; }; then | |
33732 | ||
33733 | wx_cv_struct_pw_gecos=yes | |
33734 | ||
33735 | else | |
33736 | echo "$as_me: failed program was:" >&5 | |
33737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33738 | ||
33739 | ||
33740 | wx_cv_struct_pw_gecos=no | |
33741 | ||
33742 | ||
33743 | fi | |
ac1cb8d3 | 33744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33745 | |
33746 | ||
33747 | fi | |
33748 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
33749 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
33750 | ||
33751 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
33752 | cat >>confdefs.h <<\_ACEOF | |
33753 | #define HAVE_PW_GECOS 1 | |
33754 | _ACEOF | |
33755 | ||
33756 | fi | |
33757 | ||
33758 | ||
47a7e797 | 33759 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
33760 | cat >>confdefs.h <<\_ACEOF |
33761 | #define wxUSE_WCHAR_T 1 | |
33762 | _ACEOF | |
33763 | ||
33764 | ||
33765 | WCSLEN_FOUND=0 | |
33766 | WCHAR_LINK= | |
33767 | ||
33768 | for ac_func in wcslen | |
33769 | do | |
33770 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33771 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33772 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33773 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33775 | else | |
33776 | cat >conftest.$ac_ext <<_ACEOF | |
33777 | /* confdefs.h. */ | |
33778 | _ACEOF | |
33779 | cat confdefs.h >>conftest.$ac_ext | |
33780 | cat >>conftest.$ac_ext <<_ACEOF | |
33781 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33782 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33783 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33784 | #define $ac_func innocuous_$ac_func | |
33785 | ||
a848cd7e SC |
33786 | /* System header to define __stub macros and hopefully few prototypes, |
33787 | which can conflict with char $ac_func (); below. | |
33788 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33789 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33790 | |
a848cd7e SC |
33791 | #ifdef __STDC__ |
33792 | # include <limits.h> | |
33793 | #else | |
33794 | # include <assert.h> | |
33795 | #endif | |
ac1cb8d3 VS |
33796 | |
33797 | #undef $ac_func | |
33798 | ||
a848cd7e SC |
33799 | /* Override any gcc2 internal prototype to avoid an error. */ |
33800 | #ifdef __cplusplus | |
33801 | extern "C" | |
33802 | { | |
33803 | #endif | |
33804 | /* We use char because int might match the return type of a gcc2 | |
33805 | builtin and then its argument prototype would still apply. */ | |
33806 | char $ac_func (); | |
33807 | /* The GNU C library defines this for functions which it implements | |
33808 | to always fail with ENOSYS. Some functions are actually named | |
33809 | something starting with __ and the normal name is an alias. */ | |
33810 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33811 | choke me | |
33812 | #else | |
33813 | char (*f) () = $ac_func; | |
33814 | #endif | |
33815 | #ifdef __cplusplus | |
33816 | } | |
33817 | #endif | |
33818 | ||
33819 | int | |
33820 | main () | |
33821 | { | |
33822 | return f != $ac_func; | |
33823 | ; | |
33824 | return 0; | |
33825 | } | |
33826 | _ACEOF | |
33827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33829 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33830 | ac_status=$? |
ac1cb8d3 VS |
33831 | grep -v '^ *+' conftest.er1 >conftest.err |
33832 | rm -f conftest.er1 | |
33833 | cat conftest.err >&5 | |
a848cd7e SC |
33834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33835 | (exit $ac_status); } && | |
c9a66001 | 33836 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33838 | (eval $ac_try) 2>&5 | |
33839 | ac_status=$? | |
33840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33841 | (exit $ac_status); }; } && | |
33842 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33844 | (eval $ac_try) 2>&5 | |
33845 | ac_status=$? | |
33846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33847 | (exit $ac_status); }; }; then | |
33848 | eval "$as_ac_var=yes" | |
33849 | else | |
33850 | echo "$as_me: failed program was:" >&5 | |
33851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33852 | ||
33853 | eval "$as_ac_var=no" | |
33854 | fi | |
ac1cb8d3 VS |
33855 | rm -f conftest.err conftest.$ac_objext \ |
33856 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33857 | fi |
33858 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33859 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33860 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33861 | cat >>confdefs.h <<_ACEOF | |
33862 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33863 | _ACEOF | |
33864 | WCSLEN_FOUND=1 | |
33865 | fi | |
33866 | done | |
33867 | ||
33868 | ||
33869 | if test "$WCSLEN_FOUND" = 0; then | |
33870 | if test "$TOOLKIT" = "MSW"; then | |
33871 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
33872 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
33873 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
33874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33875 | else | |
33876 | ac_check_lib_save_LIBS=$LIBS | |
33877 | LIBS="-lmsvcrt $LIBS" | |
33878 | cat >conftest.$ac_ext <<_ACEOF | |
33879 | /* confdefs.h. */ | |
33880 | _ACEOF | |
33881 | cat confdefs.h >>conftest.$ac_ext | |
33882 | cat >>conftest.$ac_ext <<_ACEOF | |
33883 | /* end confdefs.h. */ | |
33884 | ||
33885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33886 | #ifdef __cplusplus | |
33887 | extern "C" | |
33888 | #endif | |
33889 | /* We use char because int might match the return type of a gcc2 | |
33890 | builtin and then its argument prototype would still apply. */ | |
33891 | char wcslen (); | |
33892 | int | |
33893 | main () | |
33894 | { | |
33895 | wcslen (); | |
33896 | ; | |
33897 | return 0; | |
33898 | } | |
33899 | _ACEOF | |
33900 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33902 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33903 | ac_status=$? |
ac1cb8d3 VS |
33904 | grep -v '^ *+' conftest.er1 >conftest.err |
33905 | rm -f conftest.er1 | |
33906 | cat conftest.err >&5 | |
a848cd7e SC |
33907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33908 | (exit $ac_status); } && | |
c9a66001 | 33909 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33911 | (eval $ac_try) 2>&5 | |
33912 | ac_status=$? | |
33913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33914 | (exit $ac_status); }; } && | |
33915 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33917 | (eval $ac_try) 2>&5 | |
33918 | ac_status=$? | |
33919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33920 | (exit $ac_status); }; }; then | |
33921 | ac_cv_lib_msvcrt_wcslen=yes | |
33922 | else | |
33923 | echo "$as_me: failed program was:" >&5 | |
33924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33925 | ||
33926 | ac_cv_lib_msvcrt_wcslen=no | |
33927 | fi | |
ac1cb8d3 VS |
33928 | rm -f conftest.err conftest.$ac_objext \ |
33929 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33930 | LIBS=$ac_check_lib_save_LIBS |
33931 | fi | |
33932 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
33933 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
33934 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
33935 | WCHAR_OK=1 | |
33936 | fi | |
33937 | ||
33938 | else | |
33939 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
33940 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
33941 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
33942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33943 | else | |
33944 | ac_check_lib_save_LIBS=$LIBS | |
33945 | LIBS="-lw $LIBS" | |
33946 | cat >conftest.$ac_ext <<_ACEOF | |
33947 | /* confdefs.h. */ | |
33948 | _ACEOF | |
33949 | cat confdefs.h >>conftest.$ac_ext | |
33950 | cat >>conftest.$ac_ext <<_ACEOF | |
33951 | /* end confdefs.h. */ | |
33952 | ||
33953 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33954 | #ifdef __cplusplus | |
33955 | extern "C" | |
33956 | #endif | |
33957 | /* We use char because int might match the return type of a gcc2 | |
33958 | builtin and then its argument prototype would still apply. */ | |
33959 | char wcslen (); | |
33960 | int | |
33961 | main () | |
33962 | { | |
33963 | wcslen (); | |
33964 | ; | |
33965 | return 0; | |
33966 | } | |
33967 | _ACEOF | |
33968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33970 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33971 | ac_status=$? |
ac1cb8d3 VS |
33972 | grep -v '^ *+' conftest.er1 >conftest.err |
33973 | rm -f conftest.er1 | |
33974 | cat conftest.err >&5 | |
a848cd7e SC |
33975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33976 | (exit $ac_status); } && | |
c9a66001 | 33977 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33979 | (eval $ac_try) 2>&5 | |
33980 | ac_status=$? | |
33981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33982 | (exit $ac_status); }; } && | |
33983 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33985 | (eval $ac_try) 2>&5 | |
33986 | ac_status=$? | |
33987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33988 | (exit $ac_status); }; }; then | |
33989 | ac_cv_lib_w_wcslen=yes | |
33990 | else | |
33991 | echo "$as_me: failed program was:" >&5 | |
33992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33993 | ||
33994 | ac_cv_lib_w_wcslen=no | |
33995 | fi | |
ac1cb8d3 VS |
33996 | rm -f conftest.err conftest.$ac_objext \ |
33997 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33998 | LIBS=$ac_check_lib_save_LIBS |
33999 | fi | |
34000 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
34001 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
34002 | if test $ac_cv_lib_w_wcslen = yes; then | |
34003 | ||
34004 | WCHAR_LINK=" -lw" | |
34005 | WCSLEN_FOUND=1 | |
34006 | ||
34007 | fi | |
34008 | ||
34009 | fi | |
34010 | fi | |
34011 | ||
34012 | if test "$WCSLEN_FOUND" = 1; then | |
34013 | cat >>confdefs.h <<\_ACEOF | |
34014 | #define HAVE_WCSLEN 1 | |
34015 | _ACEOF | |
34016 | ||
34017 | fi | |
34018 | ||
efdf6afe | 34019 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
c92ad099 | 34020 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" |
473276a9 VS |
34021 | fi |
34022 | ||
efdf6afe VZ |
34023 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
34024 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
34025 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
34026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34027 | else | |
34028 | cat >conftest.$ac_ext <<_ACEOF | |
34029 | /* confdefs.h. */ | |
34030 | _ACEOF | |
34031 | cat confdefs.h >>conftest.$ac_ext | |
34032 | cat >>conftest.$ac_ext <<_ACEOF | |
34033 | /* end confdefs.h. */ | |
34034 | #include <wchar.h> | |
34035 | ||
34036 | int | |
34037 | main () | |
34038 | { | |
34039 | if ((mbstate_t *) 0) | |
34040 | return 0; | |
34041 | if (sizeof (mbstate_t)) | |
34042 | return 0; | |
34043 | ; | |
34044 | return 0; | |
34045 | } | |
34046 | _ACEOF | |
34047 | rm -f conftest.$ac_objext | |
34048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34049 | (eval $ac_compile) 2>conftest.er1 | |
34050 | ac_status=$? | |
34051 | grep -v '^ *+' conftest.er1 >conftest.err | |
34052 | rm -f conftest.er1 | |
34053 | cat conftest.err >&5 | |
34054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34055 | (exit $ac_status); } && | |
c9a66001 | 34056 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
efdf6afe VZ |
34057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34058 | (eval $ac_try) 2>&5 | |
34059 | ac_status=$? | |
34060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34061 | (exit $ac_status); }; } && | |
34062 | { ac_try='test -s conftest.$ac_objext' | |
34063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34064 | (eval $ac_try) 2>&5 | |
34065 | ac_status=$? | |
34066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34067 | (exit $ac_status); }; }; then | |
34068 | ac_cv_type_mbstate_t=yes | |
34069 | else | |
34070 | echo "$as_me: failed program was:" >&5 | |
34071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34072 | ||
34073 | ac_cv_type_mbstate_t=no | |
34074 | fi | |
34075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34076 | fi | |
34077 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
34078 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
34079 | if test $ac_cv_type_mbstate_t = yes; then | |
34080 | ||
34081 | cat >>confdefs.h <<_ACEOF | |
34082 | #define HAVE_MBSTATE_T 1 | |
34083 | _ACEOF | |
34084 | ||
a848cd7e SC |
34085 | |
34086 | for ac_func in wcsrtombs | |
34087 | do | |
34088 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34089 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34090 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34091 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34093 | else | |
34094 | cat >conftest.$ac_ext <<_ACEOF | |
34095 | /* confdefs.h. */ | |
34096 | _ACEOF | |
34097 | cat confdefs.h >>conftest.$ac_ext | |
34098 | cat >>conftest.$ac_ext <<_ACEOF | |
34099 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34100 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34101 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34102 | #define $ac_func innocuous_$ac_func | |
34103 | ||
a848cd7e SC |
34104 | /* System header to define __stub macros and hopefully few prototypes, |
34105 | which can conflict with char $ac_func (); below. | |
34106 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34107 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34108 | |
a848cd7e SC |
34109 | #ifdef __STDC__ |
34110 | # include <limits.h> | |
34111 | #else | |
34112 | # include <assert.h> | |
34113 | #endif | |
ac1cb8d3 VS |
34114 | |
34115 | #undef $ac_func | |
34116 | ||
a848cd7e SC |
34117 | /* Override any gcc2 internal prototype to avoid an error. */ |
34118 | #ifdef __cplusplus | |
34119 | extern "C" | |
34120 | { | |
34121 | #endif | |
34122 | /* We use char because int might match the return type of a gcc2 | |
34123 | builtin and then its argument prototype would still apply. */ | |
34124 | char $ac_func (); | |
34125 | /* The GNU C library defines this for functions which it implements | |
34126 | to always fail with ENOSYS. Some functions are actually named | |
34127 | something starting with __ and the normal name is an alias. */ | |
34128 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34129 | choke me | |
34130 | #else | |
34131 | char (*f) () = $ac_func; | |
34132 | #endif | |
34133 | #ifdef __cplusplus | |
34134 | } | |
34135 | #endif | |
34136 | ||
34137 | int | |
34138 | main () | |
34139 | { | |
34140 | return f != $ac_func; | |
34141 | ; | |
34142 | return 0; | |
34143 | } | |
34144 | _ACEOF | |
34145 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34147 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34148 | ac_status=$? |
ac1cb8d3 VS |
34149 | grep -v '^ *+' conftest.er1 >conftest.err |
34150 | rm -f conftest.er1 | |
34151 | cat conftest.err >&5 | |
a848cd7e SC |
34152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34153 | (exit $ac_status); } && | |
c9a66001 | 34154 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34156 | (eval $ac_try) 2>&5 | |
34157 | ac_status=$? | |
34158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34159 | (exit $ac_status); }; } && | |
34160 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34162 | (eval $ac_try) 2>&5 | |
34163 | ac_status=$? | |
34164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34165 | (exit $ac_status); }; }; then | |
34166 | eval "$as_ac_var=yes" | |
34167 | else | |
34168 | echo "$as_me: failed program was:" >&5 | |
34169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34170 | ||
34171 | eval "$as_ac_var=no" | |
34172 | fi | |
ac1cb8d3 VS |
34173 | rm -f conftest.err conftest.$ac_objext \ |
34174 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34175 | fi |
34176 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34177 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34178 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34179 | cat >>confdefs.h <<_ACEOF | |
34180 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34181 | _ACEOF | |
34182 | ||
34183 | fi | |
34184 | done | |
34185 | ||
efdf6afe VZ |
34186 | fi |
34187 | ||
a848cd7e SC |
34188 | else |
34189 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
34190 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
34191 | fi | |
34192 | ||
a848cd7e | 34193 | |
4a767dd5 VZ |
34194 | |
34195 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
34196 | do |
34197 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34198 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34199 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34200 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34202 | else | |
34203 | cat >conftest.$ac_ext <<_ACEOF | |
34204 | /* confdefs.h. */ | |
34205 | _ACEOF | |
34206 | cat confdefs.h >>conftest.$ac_ext | |
34207 | cat >>conftest.$ac_ext <<_ACEOF | |
34208 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34209 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34210 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34211 | #define $ac_func innocuous_$ac_func | |
34212 | ||
a848cd7e SC |
34213 | /* System header to define __stub macros and hopefully few prototypes, |
34214 | which can conflict with char $ac_func (); below. | |
34215 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34216 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34217 | |
a848cd7e SC |
34218 | #ifdef __STDC__ |
34219 | # include <limits.h> | |
34220 | #else | |
34221 | # include <assert.h> | |
34222 | #endif | |
ac1cb8d3 VS |
34223 | |
34224 | #undef $ac_func | |
34225 | ||
a848cd7e SC |
34226 | /* Override any gcc2 internal prototype to avoid an error. */ |
34227 | #ifdef __cplusplus | |
34228 | extern "C" | |
34229 | { | |
34230 | #endif | |
34231 | /* We use char because int might match the return type of a gcc2 | |
34232 | builtin and then its argument prototype would still apply. */ | |
34233 | char $ac_func (); | |
34234 | /* The GNU C library defines this for functions which it implements | |
34235 | to always fail with ENOSYS. Some functions are actually named | |
34236 | something starting with __ and the normal name is an alias. */ | |
34237 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34238 | choke me | |
34239 | #else | |
34240 | char (*f) () = $ac_func; | |
34241 | #endif | |
34242 | #ifdef __cplusplus | |
34243 | } | |
34244 | #endif | |
34245 | ||
34246 | int | |
34247 | main () | |
34248 | { | |
34249 | return f != $ac_func; | |
34250 | ; | |
34251 | return 0; | |
34252 | } | |
34253 | _ACEOF | |
34254 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34256 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34257 | ac_status=$? |
ac1cb8d3 VS |
34258 | grep -v '^ *+' conftest.er1 >conftest.err |
34259 | rm -f conftest.er1 | |
34260 | cat conftest.err >&5 | |
a848cd7e SC |
34261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34262 | (exit $ac_status); } && | |
c9a66001 | 34263 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34265 | (eval $ac_try) 2>&5 | |
34266 | ac_status=$? | |
34267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34268 | (exit $ac_status); }; } && | |
34269 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34271 | (eval $ac_try) 2>&5 | |
34272 | ac_status=$? | |
34273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34274 | (exit $ac_status); }; }; then | |
34275 | eval "$as_ac_var=yes" | |
34276 | else | |
34277 | echo "$as_me: failed program was:" >&5 | |
34278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34279 | ||
34280 | eval "$as_ac_var=no" | |
34281 | fi | |
ac1cb8d3 VS |
34282 | rm -f conftest.err conftest.$ac_objext \ |
34283 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34284 | fi |
34285 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34286 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34287 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34288 | cat >>confdefs.h <<_ACEOF | |
34289 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34290 | _ACEOF | |
34291 | ||
34292 | fi | |
34293 | done | |
34294 | ||
34295 | ||
34296 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
34297 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
34298 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
34299 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
34300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34301 | else | |
34302 | ||
efdf6afe | 34303 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
34304 | /* confdefs.h. */ |
34305 | _ACEOF | |
34306 | cat confdefs.h >>conftest.$ac_ext | |
34307 | cat >>conftest.$ac_ext <<_ACEOF | |
34308 | /* end confdefs.h. */ | |
34309 | ||
34310 | #include <stdio.h> | |
34311 | #include <stdarg.h> | |
efdf6afe VZ |
34312 | #ifdef __MSL__ |
34313 | #if __MSL__ >= 0x6000 | |
34314 | namespace std {} | |
34315 | using namespace std; | |
34316 | #endif | |
34317 | #endif | |
a848cd7e SC |
34318 | |
34319 | int | |
34320 | main () | |
34321 | { | |
34322 | ||
34323 | char *buf; | |
34324 | va_list ap; | |
62fa8b3a | 34325 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
34326 | |
34327 | ; | |
34328 | return 0; | |
34329 | } | |
34330 | _ACEOF | |
34331 | rm -f conftest.$ac_objext | |
34332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34333 | (eval $ac_compile) 2>conftest.er1 | |
34334 | ac_status=$? | |
34335 | grep -v '^ *+' conftest.er1 >conftest.err | |
34336 | rm -f conftest.er1 | |
34337 | cat conftest.err >&5 | |
34338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34339 | (exit $ac_status); } && | |
c9a66001 | 34340 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
34341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34342 | (eval $ac_try) 2>&5 | |
34343 | ac_status=$? | |
34344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34345 | (exit $ac_status); }; } && | |
34346 | { ac_try='test -s conftest.$ac_objext' | |
34347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34348 | (eval $ac_try) 2>&5 | |
34349 | ac_status=$? | |
34350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34351 | (exit $ac_status); }; }; then | |
34352 | wx_cv_func_vsnprintf_decl=yes | |
34353 | else | |
34354 | echo "$as_me: failed program was:" >&5 | |
34355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34356 | ||
a848cd7e SC |
34357 | wx_cv_func_vsnprintf_decl=no |
34358 | ||
34359 | fi | |
ac1cb8d3 | 34360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34361 | |
34362 | ||
34363 | fi | |
34364 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
34365 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
34366 | ||
34367 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
34368 | cat >>confdefs.h <<\_ACEOF | |
34369 | #define HAVE_VSNPRINTF_DECL 1 | |
34370 | _ACEOF | |
34371 | ||
62fa8b3a MW |
34372 | |
34373 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
34374 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
34375 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
34376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34377 | else | |
34378 | ||
34379 | cat >conftest.$ac_ext <<_ACEOF | |
34380 | /* confdefs.h. */ | |
34381 | _ACEOF | |
34382 | cat confdefs.h >>conftest.$ac_ext | |
34383 | cat >>conftest.$ac_ext <<_ACEOF | |
34384 | /* end confdefs.h. */ | |
34385 | ||
34386 | #include <stdio.h> | |
34387 | #include <stdarg.h> | |
34388 | #ifdef __MSL__ | |
34389 | #if __MSL__ >= 0x6000 | |
34390 | namespace std {} | |
34391 | using namespace std; | |
34392 | #endif | |
34393 | #endif | |
34394 | ||
34395 | int | |
34396 | main () | |
34397 | { | |
34398 | ||
34399 | char *buf; | |
34400 | va_list ap; | |
34401 | const char *fmt = "%s"; | |
34402 | vsnprintf(buf, 10u, fmt, ap); | |
34403 | ||
34404 | ; | |
34405 | return 0; | |
34406 | } | |
34407 | _ACEOF | |
34408 | rm -f conftest.$ac_objext | |
34409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34410 | (eval $ac_compile) 2>conftest.er1 | |
34411 | ac_status=$? | |
34412 | grep -v '^ *+' conftest.er1 >conftest.err | |
34413 | rm -f conftest.er1 | |
34414 | cat conftest.err >&5 | |
34415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34416 | (exit $ac_status); } && | |
c9a66001 | 34417 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
34418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34419 | (eval $ac_try) 2>&5 | |
34420 | ac_status=$? | |
34421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34422 | (exit $ac_status); }; } && | |
34423 | { ac_try='test -s conftest.$ac_objext' | |
34424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34425 | (eval $ac_try) 2>&5 | |
34426 | ac_status=$? | |
34427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34428 | (exit $ac_status); }; }; then | |
34429 | wx_cv_func_broken_vsnprintf_decl=no | |
34430 | else | |
34431 | echo "$as_me: failed program was:" >&5 | |
34432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34433 | ||
34434 | wx_cv_func_broken_vsnprintf_decl=yes | |
34435 | ||
34436 | fi | |
34437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34438 | ||
34439 | ||
34440 | fi | |
34441 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
34442 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
34443 | ||
34444 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
34445 | cat >>confdefs.h <<\_ACEOF | |
34446 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
34447 | _ACEOF | |
34448 | ||
34449 | fi | |
a848cd7e SC |
34450 | fi |
34451 | fi | |
34452 | ||
4a767dd5 VZ |
34453 | if test "$ac_cv_func_snprintf" = "yes"; then |
34454 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
34455 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
34456 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
34457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34458 | else | |
34459 | ||
34460 | cat >conftest.$ac_ext <<_ACEOF | |
34461 | /* confdefs.h. */ | |
34462 | _ACEOF | |
34463 | cat confdefs.h >>conftest.$ac_ext | |
34464 | cat >>conftest.$ac_ext <<_ACEOF | |
34465 | /* end confdefs.h. */ | |
34466 | ||
34467 | #include <stdio.h> | |
34468 | #include <stdarg.h> | |
34469 | #ifdef __MSL__ | |
34470 | #if __MSL__ >= 0x6000 | |
34471 | namespace std {} | |
34472 | using namespace std; | |
34473 | #endif | |
34474 | #endif | |
34475 | ||
34476 | int | |
34477 | main () | |
34478 | { | |
34479 | ||
34480 | char *buf; | |
62fa8b3a | 34481 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
34482 | |
34483 | ; | |
34484 | return 0; | |
34485 | } | |
34486 | _ACEOF | |
34487 | rm -f conftest.$ac_objext | |
34488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34489 | (eval $ac_compile) 2>conftest.er1 | |
34490 | ac_status=$? | |
34491 | grep -v '^ *+' conftest.er1 >conftest.err | |
34492 | rm -f conftest.er1 | |
34493 | cat conftest.err >&5 | |
34494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34495 | (exit $ac_status); } && | |
c9a66001 | 34496 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4a767dd5 VZ |
34497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34498 | (eval $ac_try) 2>&5 | |
34499 | ac_status=$? | |
34500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34501 | (exit $ac_status); }; } && | |
34502 | { ac_try='test -s conftest.$ac_objext' | |
34503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34504 | (eval $ac_try) 2>&5 | |
34505 | ac_status=$? | |
34506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34507 | (exit $ac_status); }; }; then | |
34508 | wx_cv_func_snprintf_decl=yes | |
34509 | else | |
34510 | echo "$as_me: failed program was:" >&5 | |
34511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34512 | ||
34513 | wx_cv_func_snprintf_decl=no | |
34514 | ||
34515 | fi | |
34516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34517 | ||
34518 | ||
34519 | fi | |
34520 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
34521 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
34522 | ||
34523 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
34524 | cat >>confdefs.h <<\_ACEOF | |
34525 | #define HAVE_SNPRINTF_DECL 1 | |
34526 | _ACEOF | |
34527 | ||
62fa8b3a MW |
34528 | |
34529 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
34530 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
34531 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
34532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34533 | else | |
34534 | ||
34535 | cat >conftest.$ac_ext <<_ACEOF | |
34536 | /* confdefs.h. */ | |
34537 | _ACEOF | |
34538 | cat confdefs.h >>conftest.$ac_ext | |
34539 | cat >>conftest.$ac_ext <<_ACEOF | |
34540 | /* end confdefs.h. */ | |
34541 | ||
34542 | #include <stdio.h> | |
34543 | #include <stdarg.h> | |
34544 | #ifdef __MSL__ | |
34545 | #if __MSL__ >= 0x6000 | |
34546 | namespace std {} | |
34547 | using namespace std; | |
34548 | #endif | |
34549 | #endif | |
34550 | ||
34551 | int | |
34552 | main () | |
34553 | { | |
34554 | ||
34555 | char *buf; | |
34556 | const char *fmt = "%s"; | |
34557 | snprintf(buf, 10u, fmt, "wx"); | |
34558 | ||
34559 | ; | |
34560 | return 0; | |
34561 | } | |
34562 | _ACEOF | |
34563 | rm -f conftest.$ac_objext | |
34564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34565 | (eval $ac_compile) 2>conftest.er1 | |
34566 | ac_status=$? | |
34567 | grep -v '^ *+' conftest.er1 >conftest.err | |
34568 | rm -f conftest.er1 | |
34569 | cat conftest.err >&5 | |
34570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34571 | (exit $ac_status); } && | |
c9a66001 | 34572 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
34573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34574 | (eval $ac_try) 2>&5 | |
34575 | ac_status=$? | |
34576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34577 | (exit $ac_status); }; } && | |
34578 | { ac_try='test -s conftest.$ac_objext' | |
34579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34580 | (eval $ac_try) 2>&5 | |
34581 | ac_status=$? | |
34582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34583 | (exit $ac_status); }; }; then | |
34584 | wx_cv_func_broken_snprintf_decl=no | |
34585 | else | |
34586 | echo "$as_me: failed program was:" >&5 | |
34587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34588 | ||
34589 | wx_cv_func_broken_snprintf_decl=yes | |
34590 | ||
34591 | fi | |
34592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34593 | ||
34594 | ||
34595 | fi | |
34596 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
34597 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
34598 | ||
34599 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
34600 | cat >>confdefs.h <<\_ACEOF | |
34601 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
8b6682b9 JS |
34602 | _ACEOF |
34603 | ||
34604 | fi | |
34605 | fi | |
34606 | ||
34607 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then | |
34608 | ||
34609 | echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5 | |
34610 | echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6 | |
34611 | if test "${wx_cv_func_snprintf_pos_params+set}" = set; then | |
34612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34613 | else | |
34614 | ||
34615 | if test "$cross_compiling" = yes; then | |
34616 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
34617 | See \`config.log' for more details." >&5 | |
34618 | echo "$as_me: error: cannot run test program while cross compiling | |
34619 | See \`config.log' for more details." >&2;} | |
34620 | { (exit 1); exit 1; }; } | |
34621 | else | |
34622 | cat >conftest.$ac_ext <<_ACEOF | |
34623 | /* confdefs.h. */ | |
34624 | _ACEOF | |
34625 | cat confdefs.h >>conftest.$ac_ext | |
34626 | cat >>conftest.$ac_ext <<_ACEOF | |
34627 | /* end confdefs.h. */ | |
34628 | ||
34629 | #include <stdio.h> | |
34630 | ||
34631 | int main (void) | |
34632 | { | |
34633 | char buffer[128]; | |
34634 | snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3); | |
34635 | if (strcmp ("2 3 1", buffer) == 0) | |
34636 | exit (0); | |
34637 | exit (1); | |
34638 | } | |
34639 | ||
34640 | _ACEOF | |
34641 | rm -f conftest$ac_exeext | |
34642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34643 | (eval $ac_link) 2>&5 | |
34644 | ac_status=$? | |
34645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34646 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34648 | (eval $ac_try) 2>&5 | |
34649 | ac_status=$? | |
34650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34651 | (exit $ac_status); }; }; then | |
34652 | wx_cv_func_snprintf_pos_params=no | |
34653 | else | |
34654 | echo "$as_me: program exited with status $ac_status" >&5 | |
34655 | echo "$as_me: failed program was:" >&5 | |
34656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34657 | ||
34658 | ( exit $ac_status ) | |
34659 | wx_cv_func_snprintf_pos_params=yes | |
34660 | ||
34661 | fi | |
34662 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
34663 | fi | |
34664 | ||
34665 | ||
34666 | fi | |
34667 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5 | |
34668 | echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6 | |
34669 | ||
34670 | if test "$wx_cv_func_snprintf_pos_params" = "yes"; then | |
34671 | cat >>confdefs.h <<\_ACEOF | |
34672 | #define HAVE_UNIX98_PRINTF 1 | |
62fa8b3a MW |
34673 | _ACEOF |
34674 | ||
34675 | fi | |
4a767dd5 VZ |
34676 | fi |
34677 | fi | |
34678 | ||
8b6682b9 | 34679 | |
a848cd7e SC |
34680 | if test "$wxUSE_UNICODE" = yes; then |
34681 | ||
34682 | ||
34683 | ||
fbe47c7b VS |
34684 | |
34685 | ||
34686 | ||
34687 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
34688 | do |
34689 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34690 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34691 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34692 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34694 | else | |
34695 | cat >conftest.$ac_ext <<_ACEOF | |
34696 | /* confdefs.h. */ | |
34697 | _ACEOF | |
34698 | cat confdefs.h >>conftest.$ac_ext | |
34699 | cat >>conftest.$ac_ext <<_ACEOF | |
34700 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34701 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34702 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34703 | #define $ac_func innocuous_$ac_func | |
34704 | ||
a848cd7e SC |
34705 | /* System header to define __stub macros and hopefully few prototypes, |
34706 | which can conflict with char $ac_func (); below. | |
34707 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34708 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34709 | |
a848cd7e SC |
34710 | #ifdef __STDC__ |
34711 | # include <limits.h> | |
34712 | #else | |
34713 | # include <assert.h> | |
34714 | #endif | |
ac1cb8d3 VS |
34715 | |
34716 | #undef $ac_func | |
34717 | ||
a848cd7e SC |
34718 | /* Override any gcc2 internal prototype to avoid an error. */ |
34719 | #ifdef __cplusplus | |
34720 | extern "C" | |
34721 | { | |
34722 | #endif | |
34723 | /* We use char because int might match the return type of a gcc2 | |
34724 | builtin and then its argument prototype would still apply. */ | |
34725 | char $ac_func (); | |
34726 | /* The GNU C library defines this for functions which it implements | |
34727 | to always fail with ENOSYS. Some functions are actually named | |
34728 | something starting with __ and the normal name is an alias. */ | |
34729 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34730 | choke me | |
34731 | #else | |
34732 | char (*f) () = $ac_func; | |
34733 | #endif | |
34734 | #ifdef __cplusplus | |
34735 | } | |
34736 | #endif | |
34737 | ||
34738 | int | |
34739 | main () | |
34740 | { | |
34741 | return f != $ac_func; | |
34742 | ; | |
34743 | return 0; | |
34744 | } | |
34745 | _ACEOF | |
34746 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34748 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34749 | ac_status=$? |
ac1cb8d3 VS |
34750 | grep -v '^ *+' conftest.er1 >conftest.err |
34751 | rm -f conftest.er1 | |
34752 | cat conftest.err >&5 | |
a848cd7e SC |
34753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34754 | (exit $ac_status); } && | |
c9a66001 | 34755 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34757 | (eval $ac_try) 2>&5 | |
34758 | ac_status=$? | |
34759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34760 | (exit $ac_status); }; } && | |
34761 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34763 | (eval $ac_try) 2>&5 | |
34764 | ac_status=$? | |
34765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34766 | (exit $ac_status); }; }; then | |
34767 | eval "$as_ac_var=yes" | |
34768 | else | |
34769 | echo "$as_me: failed program was:" >&5 | |
34770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34771 | ||
34772 | eval "$as_ac_var=no" | |
34773 | fi | |
ac1cb8d3 VS |
34774 | rm -f conftest.err conftest.$ac_objext \ |
34775 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34776 | fi |
34777 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34778 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34779 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34780 | cat >>confdefs.h <<_ACEOF | |
34781 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34782 | _ACEOF | |
34783 | ||
34784 | fi | |
34785 | done | |
34786 | ||
34787 | ||
34788 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
34789 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
34790 | cat >conftest.$ac_ext <<_ACEOF | |
34791 | /* confdefs.h. */ | |
34792 | _ACEOF | |
34793 | cat confdefs.h >>conftest.$ac_ext | |
34794 | cat >>conftest.$ac_ext <<_ACEOF | |
34795 | /* end confdefs.h. */ | |
34796 | #include <wchar.h> | |
34797 | int | |
34798 | main () | |
34799 | { | |
34800 | &_vsnwprintf; | |
34801 | ; | |
34802 | return 0; | |
34803 | } | |
34804 | _ACEOF | |
34805 | rm -f conftest.$ac_objext | |
34806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34807 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34808 | ac_status=$? |
ac1cb8d3 VS |
34809 | grep -v '^ *+' conftest.er1 >conftest.err |
34810 | rm -f conftest.er1 | |
34811 | cat conftest.err >&5 | |
a848cd7e SC |
34812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34813 | (exit $ac_status); } && | |
c9a66001 | 34814 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34816 | (eval $ac_try) 2>&5 | |
34817 | ac_status=$? | |
34818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34819 | (exit $ac_status); }; } && | |
34820 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34822 | (eval $ac_try) 2>&5 | |
34823 | ac_status=$? | |
34824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34825 | (exit $ac_status); }; }; then | |
34826 | echo "$as_me:$LINENO: result: yes" >&5 | |
34827 | echo "${ECHO_T}yes" >&6 | |
34828 | cat >>confdefs.h <<\_ACEOF | |
34829 | #define HAVE__VSNWPRINTF 1 | |
34830 | _ACEOF | |
34831 | ||
34832 | else | |
34833 | echo "$as_me: failed program was:" >&5 | |
34834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34835 | ||
34836 | echo "$as_me:$LINENO: result: no" >&5 | |
34837 | echo "${ECHO_T}no" >&6 | |
34838 | fi | |
ac1cb8d3 | 34839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
34840 | fi |
34841 | ||
6ebeb4c7 VZ |
34842 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
34843 | ||
34844 | for ac_func in fnmatch | |
34845 | do | |
34846 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34847 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34848 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34849 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34851 | else | |
34852 | cat >conftest.$ac_ext <<_ACEOF | |
34853 | /* confdefs.h. */ | |
34854 | _ACEOF | |
34855 | cat confdefs.h >>conftest.$ac_ext | |
34856 | cat >>conftest.$ac_ext <<_ACEOF | |
34857 | /* end confdefs.h. */ | |
34858 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
34859 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34860 | #define $ac_func innocuous_$ac_func | |
34861 | ||
34862 | /* System header to define __stub macros and hopefully few prototypes, | |
34863 | which can conflict with char $ac_func (); below. | |
34864 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34865 | <limits.h> exists even on freestanding compilers. */ | |
34866 | ||
34867 | #ifdef __STDC__ | |
34868 | # include <limits.h> | |
34869 | #else | |
34870 | # include <assert.h> | |
34871 | #endif | |
34872 | ||
34873 | #undef $ac_func | |
34874 | ||
34875 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34876 | #ifdef __cplusplus | |
34877 | extern "C" | |
34878 | { | |
34879 | #endif | |
34880 | /* We use char because int might match the return type of a gcc2 | |
34881 | builtin and then its argument prototype would still apply. */ | |
34882 | char $ac_func (); | |
34883 | /* The GNU C library defines this for functions which it implements | |
34884 | to always fail with ENOSYS. Some functions are actually named | |
34885 | something starting with __ and the normal name is an alias. */ | |
34886 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34887 | choke me | |
34888 | #else | |
34889 | char (*f) () = $ac_func; | |
34890 | #endif | |
34891 | #ifdef __cplusplus | |
34892 | } | |
34893 | #endif | |
34894 | ||
34895 | int | |
34896 | main () | |
34897 | { | |
34898 | return f != $ac_func; | |
34899 | ; | |
34900 | return 0; | |
34901 | } | |
34902 | _ACEOF | |
34903 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34905 | (eval $ac_link) 2>conftest.er1 | |
34906 | ac_status=$? | |
34907 | grep -v '^ *+' conftest.er1 >conftest.err | |
34908 | rm -f conftest.er1 | |
34909 | cat conftest.err >&5 | |
34910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34911 | (exit $ac_status); } && | |
c9a66001 | 34912 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
34913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34914 | (eval $ac_try) 2>&5 | |
34915 | ac_status=$? | |
34916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34917 | (exit $ac_status); }; } && | |
34918 | { ac_try='test -s conftest$ac_exeext' | |
34919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34920 | (eval $ac_try) 2>&5 | |
34921 | ac_status=$? | |
34922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34923 | (exit $ac_status); }; }; then | |
34924 | eval "$as_ac_var=yes" | |
34925 | else | |
34926 | echo "$as_me: failed program was:" >&5 | |
34927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34928 | ||
34929 | eval "$as_ac_var=no" | |
34930 | fi | |
34931 | rm -f conftest.err conftest.$ac_objext \ | |
34932 | conftest$ac_exeext conftest.$ac_ext | |
34933 | fi | |
34934 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34935 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34936 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34937 | cat >>confdefs.h <<_ACEOF | |
34938 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34939 | _ACEOF | |
34940 | ||
34941 | fi | |
34942 | done | |
34943 | ||
34944 | fi | |
34945 | ||
34946 | if test "$wxUSE_FILE" = "yes"; then | |
34947 | ||
34948 | for ac_func in fsync | |
34949 | do | |
34950 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34951 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34952 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34953 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34955 | else | |
34956 | cat >conftest.$ac_ext <<_ACEOF | |
34957 | /* confdefs.h. */ | |
34958 | _ACEOF | |
34959 | cat confdefs.h >>conftest.$ac_ext | |
34960 | cat >>conftest.$ac_ext <<_ACEOF | |
34961 | /* end confdefs.h. */ | |
34962 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
34963 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34964 | #define $ac_func innocuous_$ac_func | |
34965 | ||
34966 | /* System header to define __stub macros and hopefully few prototypes, | |
34967 | which can conflict with char $ac_func (); below. | |
34968 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34969 | <limits.h> exists even on freestanding compilers. */ | |
34970 | ||
34971 | #ifdef __STDC__ | |
34972 | # include <limits.h> | |
34973 | #else | |
34974 | # include <assert.h> | |
34975 | #endif | |
34976 | ||
34977 | #undef $ac_func | |
34978 | ||
34979 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34980 | #ifdef __cplusplus | |
34981 | extern "C" | |
34982 | { | |
34983 | #endif | |
34984 | /* We use char because int might match the return type of a gcc2 | |
34985 | builtin and then its argument prototype would still apply. */ | |
34986 | char $ac_func (); | |
34987 | /* The GNU C library defines this for functions which it implements | |
34988 | to always fail with ENOSYS. Some functions are actually named | |
34989 | something starting with __ and the normal name is an alias. */ | |
34990 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34991 | choke me | |
34992 | #else | |
34993 | char (*f) () = $ac_func; | |
34994 | #endif | |
34995 | #ifdef __cplusplus | |
34996 | } | |
34997 | #endif | |
34998 | ||
34999 | int | |
35000 | main () | |
35001 | { | |
35002 | return f != $ac_func; | |
35003 | ; | |
35004 | return 0; | |
35005 | } | |
35006 | _ACEOF | |
35007 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35009 | (eval $ac_link) 2>conftest.er1 | |
35010 | ac_status=$? | |
35011 | grep -v '^ *+' conftest.er1 >conftest.err | |
35012 | rm -f conftest.er1 | |
35013 | cat conftest.err >&5 | |
35014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35015 | (exit $ac_status); } && | |
c9a66001 | 35016 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
35017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35018 | (eval $ac_try) 2>&5 | |
35019 | ac_status=$? | |
35020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35021 | (exit $ac_status); }; } && | |
35022 | { ac_try='test -s conftest$ac_exeext' | |
35023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35024 | (eval $ac_try) 2>&5 | |
35025 | ac_status=$? | |
35026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35027 | (exit $ac_status); }; }; then | |
35028 | eval "$as_ac_var=yes" | |
35029 | else | |
35030 | echo "$as_me: failed program was:" >&5 | |
35031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35032 | ||
35033 | eval "$as_ac_var=no" | |
35034 | fi | |
35035 | rm -f conftest.err conftest.$ac_objext \ | |
35036 | conftest$ac_exeext conftest.$ac_ext | |
35037 | fi | |
35038 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35039 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35040 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35041 | cat >>confdefs.h <<_ACEOF | |
35042 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35043 | _ACEOF | |
35044 | ||
35045 | fi | |
35046 | done | |
35047 | ||
35048 | fi | |
a848cd7e SC |
35049 | |
35050 | ||
c2e9ada4 VZ |
35051 | for ac_func in round |
35052 | do | |
35053 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35054 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35055 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35056 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35058 | else | |
35059 | cat >conftest.$ac_ext <<_ACEOF | |
35060 | /* confdefs.h. */ | |
35061 | _ACEOF | |
35062 | cat confdefs.h >>conftest.$ac_ext | |
35063 | cat >>conftest.$ac_ext <<_ACEOF | |
35064 | /* end confdefs.h. */ | |
35065 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
35066 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35067 | #define $ac_func innocuous_$ac_func | |
35068 | ||
35069 | /* System header to define __stub macros and hopefully few prototypes, | |
35070 | which can conflict with char $ac_func (); below. | |
35071 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35072 | <limits.h> exists even on freestanding compilers. */ | |
35073 | ||
35074 | #ifdef __STDC__ | |
35075 | # include <limits.h> | |
35076 | #else | |
35077 | # include <assert.h> | |
35078 | #endif | |
35079 | ||
35080 | #undef $ac_func | |
35081 | ||
35082 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35083 | #ifdef __cplusplus | |
35084 | extern "C" | |
35085 | { | |
35086 | #endif | |
35087 | /* We use char because int might match the return type of a gcc2 | |
35088 | builtin and then its argument prototype would still apply. */ | |
35089 | char $ac_func (); | |
35090 | /* The GNU C library defines this for functions which it implements | |
35091 | to always fail with ENOSYS. Some functions are actually named | |
35092 | something starting with __ and the normal name is an alias. */ | |
35093 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35094 | choke me | |
35095 | #else | |
35096 | char (*f) () = $ac_func; | |
35097 | #endif | |
35098 | #ifdef __cplusplus | |
35099 | } | |
35100 | #endif | |
35101 | ||
35102 | int | |
35103 | main () | |
35104 | { | |
35105 | return f != $ac_func; | |
35106 | ; | |
35107 | return 0; | |
35108 | } | |
35109 | _ACEOF | |
35110 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35111 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35112 | (eval $ac_link) 2>conftest.er1 | |
35113 | ac_status=$? | |
35114 | grep -v '^ *+' conftest.er1 >conftest.err | |
35115 | rm -f conftest.er1 | |
35116 | cat conftest.err >&5 | |
35117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35118 | (exit $ac_status); } && | |
35119 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
35120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35121 | (eval $ac_try) 2>&5 | |
35122 | ac_status=$? | |
35123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35124 | (exit $ac_status); }; } && | |
35125 | { ac_try='test -s conftest$ac_exeext' | |
35126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35127 | (eval $ac_try) 2>&5 | |
35128 | ac_status=$? | |
35129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35130 | (exit $ac_status); }; }; then | |
35131 | eval "$as_ac_var=yes" | |
35132 | else | |
35133 | echo "$as_me: failed program was:" >&5 | |
35134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35135 | ||
35136 | eval "$as_ac_var=no" | |
35137 | fi | |
35138 | rm -f conftest.err conftest.$ac_objext \ | |
35139 | conftest$ac_exeext conftest.$ac_ext | |
35140 | fi | |
35141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35142 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35143 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35144 | cat >>confdefs.h <<_ACEOF | |
35145 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35146 | _ACEOF | |
35147 | ||
35148 | fi | |
35149 | done | |
35150 | ||
35151 | if test "$ac_cv_func_round" = yes; then | |
35152 | echo "$as_me:$LINENO: checking whether round is declared" >&5 | |
35153 | echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6 | |
35154 | if test "${ac_cv_have_decl_round+set}" = set; then | |
35155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35156 | else | |
35157 | cat >conftest.$ac_ext <<_ACEOF | |
35158 | /* confdefs.h. */ | |
35159 | _ACEOF | |
35160 | cat confdefs.h >>conftest.$ac_ext | |
35161 | cat >>conftest.$ac_ext <<_ACEOF | |
35162 | /* end confdefs.h. */ | |
35163 | #include <math.h> | |
35164 | ||
35165 | int | |
35166 | main () | |
35167 | { | |
35168 | #ifndef round | |
35169 | char *p = (char *) round; | |
35170 | #endif | |
35171 | ||
35172 | ; | |
35173 | return 0; | |
35174 | } | |
35175 | _ACEOF | |
35176 | rm -f conftest.$ac_objext | |
35177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35178 | (eval $ac_compile) 2>conftest.er1 | |
35179 | ac_status=$? | |
35180 | grep -v '^ *+' conftest.er1 >conftest.err | |
35181 | rm -f conftest.er1 | |
35182 | cat conftest.err >&5 | |
35183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35184 | (exit $ac_status); } && | |
35185 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
35186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35187 | (eval $ac_try) 2>&5 | |
35188 | ac_status=$? | |
35189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35190 | (exit $ac_status); }; } && | |
35191 | { ac_try='test -s conftest.$ac_objext' | |
35192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35193 | (eval $ac_try) 2>&5 | |
35194 | ac_status=$? | |
35195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35196 | (exit $ac_status); }; }; then | |
35197 | ac_cv_have_decl_round=yes | |
35198 | else | |
35199 | echo "$as_me: failed program was:" >&5 | |
35200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35201 | ||
35202 | ac_cv_have_decl_round=no | |
35203 | fi | |
35204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35205 | fi | |
35206 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5 | |
35207 | echo "${ECHO_T}$ac_cv_have_decl_round" >&6 | |
35208 | if test $ac_cv_have_decl_round = yes; then | |
35209 | ||
35210 | cat >>confdefs.h <<_ACEOF | |
35211 | #define HAVE_DECL_ROUND 1 | |
35212 | _ACEOF | |
35213 | ||
35214 | ||
35215 | else | |
35216 | cat >>confdefs.h <<_ACEOF | |
35217 | #define HAVE_DECL_ROUND 0 | |
35218 | _ACEOF | |
35219 | ||
35220 | ||
35221 | fi | |
35222 | ||
35223 | ||
35224 | fi | |
35225 | ||
35226 | ||
a848cd7e SC |
35227 | if test "$TOOLKIT" != "MSW"; then |
35228 | ||
35229 | ||
a848cd7e SC |
35230 | |
35231 | ||
35232 | ||
35233 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
35234 | if test "${with_libiconv_prefix+set}" = set; then | |
35235 | withval="$with_libiconv_prefix" | |
35236 | ||
35237 | for dir in `echo "$withval" | tr : ' '`; do | |
35238 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
35239 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
35240 | done | |
35241 | ||
35242 | fi; | |
35243 | ||
35244 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
35245 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
35246 | if test "${am_cv_func_iconv+set}" = set; then | |
35247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35248 | else | |
35249 | ||
35250 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
35251 | am_cv_lib_iconv=no | |
35252 | cat >conftest.$ac_ext <<_ACEOF | |
35253 | /* confdefs.h. */ | |
35254 | _ACEOF | |
35255 | cat confdefs.h >>conftest.$ac_ext | |
35256 | cat >>conftest.$ac_ext <<_ACEOF | |
35257 | /* end confdefs.h. */ | |
35258 | #include <stdlib.h> | |
35259 | #include <iconv.h> | |
35260 | int | |
35261 | main () | |
35262 | { | |
35263 | iconv_t cd = iconv_open("",""); | |
35264 | iconv(cd,NULL,NULL,NULL,NULL); | |
35265 | iconv_close(cd); | |
35266 | ; | |
35267 | return 0; | |
35268 | } | |
35269 | _ACEOF | |
35270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35272 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35273 | ac_status=$? |
ac1cb8d3 VS |
35274 | grep -v '^ *+' conftest.er1 >conftest.err |
35275 | rm -f conftest.er1 | |
35276 | cat conftest.err >&5 | |
a848cd7e SC |
35277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35278 | (exit $ac_status); } && | |
c9a66001 | 35279 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35281 | (eval $ac_try) 2>&5 | |
35282 | ac_status=$? | |
35283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35284 | (exit $ac_status); }; } && | |
35285 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35287 | (eval $ac_try) 2>&5 | |
35288 | ac_status=$? | |
35289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35290 | (exit $ac_status); }; }; then | |
35291 | am_cv_func_iconv=yes | |
35292 | else | |
35293 | echo "$as_me: failed program was:" >&5 | |
35294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35295 | ||
35296 | fi | |
ac1cb8d3 VS |
35297 | rm -f conftest.err conftest.$ac_objext \ |
35298 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35299 | if test "$am_cv_func_iconv" != yes; then |
35300 | am_save_LIBS="$LIBS" | |
35301 | LIBS="$LIBS -liconv" | |
35302 | cat >conftest.$ac_ext <<_ACEOF | |
35303 | /* confdefs.h. */ | |
35304 | _ACEOF | |
35305 | cat confdefs.h >>conftest.$ac_ext | |
35306 | cat >>conftest.$ac_ext <<_ACEOF | |
35307 | /* end confdefs.h. */ | |
35308 | #include <stdlib.h> | |
35309 | #include <iconv.h> | |
35310 | int | |
35311 | main () | |
35312 | { | |
35313 | iconv_t cd = iconv_open("",""); | |
35314 | iconv(cd,NULL,NULL,NULL,NULL); | |
35315 | iconv_close(cd); | |
35316 | ; | |
35317 | return 0; | |
35318 | } | |
35319 | _ACEOF | |
35320 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35322 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35323 | ac_status=$? |
ac1cb8d3 VS |
35324 | grep -v '^ *+' conftest.er1 >conftest.err |
35325 | rm -f conftest.er1 | |
35326 | cat conftest.err >&5 | |
a848cd7e SC |
35327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35328 | (exit $ac_status); } && | |
c9a66001 | 35329 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35331 | (eval $ac_try) 2>&5 | |
35332 | ac_status=$? | |
35333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35334 | (exit $ac_status); }; } && | |
35335 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35337 | (eval $ac_try) 2>&5 | |
35338 | ac_status=$? | |
35339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35340 | (exit $ac_status); }; }; then | |
35341 | am_cv_lib_iconv=yes | |
35342 | am_cv_func_iconv=yes | |
35343 | else | |
35344 | echo "$as_me: failed program was:" >&5 | |
35345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35346 | ||
35347 | fi | |
ac1cb8d3 VS |
35348 | rm -f conftest.err conftest.$ac_objext \ |
35349 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35350 | LIBS="$am_save_LIBS" |
35351 | fi | |
35352 | ||
35353 | fi | |
35354 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
35355 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
35356 | if test "$am_cv_func_iconv" = yes; then | |
35357 | ||
35358 | cat >>confdefs.h <<\_ACEOF | |
35359 | #define HAVE_ICONV 1 | |
35360 | _ACEOF | |
35361 | ||
35362 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
35363 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
35364 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
35365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35366 | else | |
35367 | cat >conftest.$ac_ext <<_ACEOF | |
35368 | /* confdefs.h. */ | |
35369 | _ACEOF | |
35370 | cat confdefs.h >>conftest.$ac_ext | |
35371 | cat >>conftest.$ac_ext <<_ACEOF | |
35372 | /* end confdefs.h. */ | |
35373 | ||
35374 | #include <stdlib.h> | |
35375 | #include <iconv.h> | |
35376 | extern | |
35377 | #ifdef __cplusplus | |
35378 | "C" | |
35379 | #endif | |
35380 | #if defined(__STDC__) || defined(__cplusplus) | |
35381 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
35382 | #else | |
35383 | size_t iconv(); | |
35384 | #endif | |
35385 | ||
35386 | int | |
35387 | main () | |
35388 | { | |
35389 | ||
35390 | ; | |
35391 | return 0; | |
35392 | } | |
35393 | _ACEOF | |
35394 | rm -f conftest.$ac_objext | |
35395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35396 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35397 | ac_status=$? |
ac1cb8d3 VS |
35398 | grep -v '^ *+' conftest.er1 >conftest.err |
35399 | rm -f conftest.er1 | |
35400 | cat conftest.err >&5 | |
a848cd7e SC |
35401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35402 | (exit $ac_status); } && | |
c9a66001 | 35403 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35405 | (eval $ac_try) 2>&5 | |
35406 | ac_status=$? | |
35407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35408 | (exit $ac_status); }; } && | |
35409 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35411 | (eval $ac_try) 2>&5 | |
35412 | ac_status=$? | |
35413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35414 | (exit $ac_status); }; }; then | |
35415 | wx_cv_func_iconv_const="no" | |
35416 | else | |
35417 | echo "$as_me: failed program was:" >&5 | |
35418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35419 | ||
35420 | wx_cv_func_iconv_const="yes" | |
35421 | ||
35422 | fi | |
ac1cb8d3 | 35423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35424 | |
35425 | fi | |
35426 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
35427 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
35428 | ||
35429 | iconv_const= | |
35430 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
35431 | iconv_const="const" | |
35432 | fi | |
35433 | ||
35434 | ||
35435 | cat >>confdefs.h <<_ACEOF | |
35436 | #define ICONV_CONST $iconv_const | |
35437 | _ACEOF | |
35438 | ||
35439 | fi | |
35440 | LIBICONV= | |
35441 | if test "$am_cv_lib_iconv" = yes; then | |
35442 | LIBICONV="-liconv" | |
35443 | fi | |
35444 | ||
35445 | ||
35446 | LIBS="$LIBICONV $LIBS" | |
a848cd7e SC |
35447 | |
35448 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
35449 | ||
35450 | for ac_func in sigaction | |
35451 | do | |
35452 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35453 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35454 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35455 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35457 | else | |
35458 | cat >conftest.$ac_ext <<_ACEOF | |
35459 | /* confdefs.h. */ | |
35460 | _ACEOF | |
35461 | cat confdefs.h >>conftest.$ac_ext | |
35462 | cat >>conftest.$ac_ext <<_ACEOF | |
35463 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35464 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35465 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35466 | #define $ac_func innocuous_$ac_func | |
35467 | ||
a848cd7e SC |
35468 | /* System header to define __stub macros and hopefully few prototypes, |
35469 | which can conflict with char $ac_func (); below. | |
35470 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35471 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35472 | |
a848cd7e SC |
35473 | #ifdef __STDC__ |
35474 | # include <limits.h> | |
35475 | #else | |
35476 | # include <assert.h> | |
35477 | #endif | |
ac1cb8d3 VS |
35478 | |
35479 | #undef $ac_func | |
35480 | ||
a848cd7e SC |
35481 | /* Override any gcc2 internal prototype to avoid an error. */ |
35482 | #ifdef __cplusplus | |
35483 | extern "C" | |
35484 | { | |
35485 | #endif | |
35486 | /* We use char because int might match the return type of a gcc2 | |
35487 | builtin and then its argument prototype would still apply. */ | |
35488 | char $ac_func (); | |
35489 | /* The GNU C library defines this for functions which it implements | |
35490 | to always fail with ENOSYS. Some functions are actually named | |
35491 | something starting with __ and the normal name is an alias. */ | |
35492 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35493 | choke me | |
35494 | #else | |
35495 | char (*f) () = $ac_func; | |
35496 | #endif | |
35497 | #ifdef __cplusplus | |
35498 | } | |
35499 | #endif | |
35500 | ||
35501 | int | |
35502 | main () | |
35503 | { | |
35504 | return f != $ac_func; | |
35505 | ; | |
35506 | return 0; | |
35507 | } | |
35508 | _ACEOF | |
35509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35511 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35512 | ac_status=$? |
ac1cb8d3 VS |
35513 | grep -v '^ *+' conftest.er1 >conftest.err |
35514 | rm -f conftest.er1 | |
35515 | cat conftest.err >&5 | |
a848cd7e SC |
35516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35517 | (exit $ac_status); } && | |
c9a66001 | 35518 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35520 | (eval $ac_try) 2>&5 | |
35521 | ac_status=$? | |
35522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35523 | (exit $ac_status); }; } && | |
35524 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35526 | (eval $ac_try) 2>&5 | |
35527 | ac_status=$? | |
35528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35529 | (exit $ac_status); }; }; then | |
35530 | eval "$as_ac_var=yes" | |
35531 | else | |
35532 | echo "$as_me: failed program was:" >&5 | |
35533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35534 | ||
35535 | eval "$as_ac_var=no" | |
35536 | fi | |
ac1cb8d3 VS |
35537 | rm -f conftest.err conftest.$ac_objext \ |
35538 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35539 | fi |
35540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35541 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35542 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35543 | cat >>confdefs.h <<_ACEOF | |
35544 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35545 | _ACEOF | |
35546 | ||
35547 | fi | |
35548 | done | |
35549 | ||
35550 | ||
35551 | if test "$ac_cv_func_sigaction" = "no"; then | |
35552 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
35553 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
35554 | wxUSE_ON_FATAL_EXCEPTION=no | |
35555 | fi | |
35556 | ||
35557 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a848cd7e SC |
35558 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
35559 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
35560 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
35561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35562 | else | |
35563 | ||
35564 | cat >conftest.$ac_ext <<_ACEOF | |
35565 | /* confdefs.h. */ | |
35566 | _ACEOF | |
35567 | cat confdefs.h >>conftest.$ac_ext | |
35568 | cat >>conftest.$ac_ext <<_ACEOF | |
35569 | /* end confdefs.h. */ | |
35570 | #include <signal.h> | |
35571 | int | |
35572 | main () | |
35573 | { | |
35574 | ||
35575 | extern void testSigHandler(int); | |
35576 | ||
35577 | struct sigaction sa; | |
35578 | sa.sa_handler = testSigHandler; | |
35579 | ||
35580 | ; | |
35581 | return 0; | |
35582 | } | |
35583 | _ACEOF | |
35584 | rm -f conftest.$ac_objext | |
35585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35586 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35587 | ac_status=$? |
ac1cb8d3 VS |
35588 | grep -v '^ *+' conftest.er1 >conftest.err |
35589 | rm -f conftest.er1 | |
35590 | cat conftest.err >&5 | |
a848cd7e SC |
35591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35592 | (exit $ac_status); } && | |
c9a66001 | 35593 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35595 | (eval $ac_try) 2>&5 | |
35596 | ac_status=$? | |
35597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35598 | (exit $ac_status); }; } && | |
35599 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35601 | (eval $ac_try) 2>&5 | |
35602 | ac_status=$? | |
35603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35604 | (exit $ac_status); }; }; then | |
35605 | ||
35606 | wx_cv_type_sa_handler=int | |
35607 | ||
35608 | else | |
35609 | echo "$as_me: failed program was:" >&5 | |
35610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35611 | ||
35612 | ||
35613 | wx_cv_type_sa_handler=void | |
35614 | ||
35615 | fi | |
ac1cb8d3 | 35616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35617 | |
35618 | fi | |
35619 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
35620 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
35621 | ||
a848cd7e SC |
35622 | cat >>confdefs.h <<_ACEOF |
35623 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
35624 | _ACEOF | |
35625 | ||
35626 | fi | |
35627 | fi | |
35628 | ||
eaff0f0d | 35629 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
eaff0f0d VZ |
35630 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 |
35631 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
35632 | if test "${wx_cv_func_backtrace+set}" = set; then | |
35633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35634 | else | |
35635 | ||
35636 | cat >conftest.$ac_ext <<_ACEOF | |
35637 | /* confdefs.h. */ | |
35638 | _ACEOF | |
35639 | cat confdefs.h >>conftest.$ac_ext | |
35640 | cat >>conftest.$ac_ext <<_ACEOF | |
35641 | /* end confdefs.h. */ | |
35642 | #include <execinfo.h> | |
35643 | int | |
35644 | main () | |
35645 | { | |
35646 | ||
35647 | void *trace[1]; | |
35648 | char **messages; | |
35649 | ||
35650 | backtrace(trace, 1); | |
35651 | messages = backtrace_symbols(trace, 1); | |
35652 | ||
35653 | ; | |
35654 | return 0; | |
35655 | } | |
35656 | _ACEOF | |
35657 | rm -f conftest.$ac_objext | |
35658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35659 | (eval $ac_compile) 2>conftest.er1 | |
35660 | ac_status=$? | |
35661 | grep -v '^ *+' conftest.er1 >conftest.err | |
35662 | rm -f conftest.er1 | |
35663 | cat conftest.err >&5 | |
35664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35665 | (exit $ac_status); } && | |
c9a66001 | 35666 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
35667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35668 | (eval $ac_try) 2>&5 | |
35669 | ac_status=$? | |
35670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35671 | (exit $ac_status); }; } && | |
35672 | { ac_try='test -s conftest.$ac_objext' | |
35673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35674 | (eval $ac_try) 2>&5 | |
35675 | ac_status=$? | |
35676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35677 | (exit $ac_status); }; }; then | |
35678 | wx_cv_func_backtrace=yes | |
35679 | else | |
35680 | echo "$as_me: failed program was:" >&5 | |
35681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35682 | ||
35683 | wx_cv_func_backtrace=no | |
35684 | ||
35685 | fi | |
35686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35687 | ||
35688 | ||
35689 | fi | |
35690 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
35691 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
35692 | ||
35693 | ||
35694 | if test "$wx_cv_func_backtrace" = "no"; then | |
35695 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
35696 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
35697 | wxUSE_STACKWALKER=no | |
35698 | else | |
35699 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
35700 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
35701 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
35702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35703 | else | |
35704 | ||
35705 | cat >conftest.$ac_ext <<_ACEOF | |
35706 | /* confdefs.h. */ | |
35707 | _ACEOF | |
35708 | cat confdefs.h >>conftest.$ac_ext | |
35709 | cat >>conftest.$ac_ext <<_ACEOF | |
35710 | /* end confdefs.h. */ | |
35711 | #include <cxxabi.h> | |
35712 | int | |
35713 | main () | |
35714 | { | |
35715 | ||
35716 | int rc; | |
35717 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
35718 | ||
35719 | ; | |
35720 | return 0; | |
35721 | } | |
35722 | _ACEOF | |
dfe0c803 JS |
35723 | rm -f conftest.$ac_objext conftest$ac_exeext |
35724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35725 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
35726 | ac_status=$? |
35727 | grep -v '^ *+' conftest.er1 >conftest.err | |
35728 | rm -f conftest.er1 | |
35729 | cat conftest.err >&5 | |
35730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35731 | (exit $ac_status); } && | |
c9a66001 | 35732 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
35733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35734 | (eval $ac_try) 2>&5 | |
35735 | ac_status=$? | |
35736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35737 | (exit $ac_status); }; } && | |
dfe0c803 | 35738 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
35739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35740 | (eval $ac_try) 2>&5 | |
35741 | ac_status=$? | |
35742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35743 | (exit $ac_status); }; }; then | |
35744 | wx_cv_func_cxa_demangle=yes | |
35745 | else | |
35746 | echo "$as_me: failed program was:" >&5 | |
35747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35748 | ||
35749 | wx_cv_func_cxa_demangle=no | |
35750 | ||
35751 | fi | |
dfe0c803 JS |
35752 | rm -f conftest.err conftest.$ac_objext \ |
35753 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
35754 | |
35755 | ||
35756 | fi | |
35757 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
35758 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
35759 | ||
35760 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
35761 | cat >>confdefs.h <<\_ACEOF | |
35762 | #define HAVE_CXA_DEMANGLE 1 | |
35763 | _ACEOF | |
35764 | ||
35765 | fi | |
35766 | fi | |
eaff0f0d VZ |
35767 | fi |
35768 | ||
898beab1 DE |
35769 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
35770 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
35771 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
35772 | wxUSE_STACKWALKER=no | |
35773 | fi | |
35774 | ||
35775 | ||
a848cd7e SC |
35776 | |
35777 | ||
35778 | for ac_func in mkstemp mktemp | |
35779 | do | |
35780 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35781 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35782 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35783 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35785 | else | |
35786 | cat >conftest.$ac_ext <<_ACEOF | |
35787 | /* confdefs.h. */ | |
35788 | _ACEOF | |
35789 | cat confdefs.h >>conftest.$ac_ext | |
35790 | cat >>conftest.$ac_ext <<_ACEOF | |
35791 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35792 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35793 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35794 | #define $ac_func innocuous_$ac_func | |
35795 | ||
a848cd7e SC |
35796 | /* System header to define __stub macros and hopefully few prototypes, |
35797 | which can conflict with char $ac_func (); below. | |
35798 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35799 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35800 | |
a848cd7e SC |
35801 | #ifdef __STDC__ |
35802 | # include <limits.h> | |
35803 | #else | |
35804 | # include <assert.h> | |
35805 | #endif | |
ac1cb8d3 VS |
35806 | |
35807 | #undef $ac_func | |
35808 | ||
a848cd7e SC |
35809 | /* Override any gcc2 internal prototype to avoid an error. */ |
35810 | #ifdef __cplusplus | |
35811 | extern "C" | |
35812 | { | |
35813 | #endif | |
35814 | /* We use char because int might match the return type of a gcc2 | |
35815 | builtin and then its argument prototype would still apply. */ | |
35816 | char $ac_func (); | |
35817 | /* The GNU C library defines this for functions which it implements | |
35818 | to always fail with ENOSYS. Some functions are actually named | |
35819 | something starting with __ and the normal name is an alias. */ | |
35820 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35821 | choke me | |
35822 | #else | |
35823 | char (*f) () = $ac_func; | |
35824 | #endif | |
35825 | #ifdef __cplusplus | |
35826 | } | |
35827 | #endif | |
35828 | ||
35829 | int | |
35830 | main () | |
35831 | { | |
35832 | return f != $ac_func; | |
35833 | ; | |
35834 | return 0; | |
35835 | } | |
35836 | _ACEOF | |
35837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35839 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35840 | ac_status=$? |
ac1cb8d3 VS |
35841 | grep -v '^ *+' conftest.er1 >conftest.err |
35842 | rm -f conftest.er1 | |
35843 | cat conftest.err >&5 | |
a848cd7e SC |
35844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35845 | (exit $ac_status); } && | |
c9a66001 | 35846 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35848 | (eval $ac_try) 2>&5 | |
35849 | ac_status=$? | |
35850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35851 | (exit $ac_status); }; } && | |
35852 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35854 | (eval $ac_try) 2>&5 | |
35855 | ac_status=$? | |
35856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35857 | (exit $ac_status); }; }; then | |
35858 | eval "$as_ac_var=yes" | |
35859 | else | |
35860 | echo "$as_me: failed program was:" >&5 | |
35861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35862 | ||
35863 | eval "$as_ac_var=no" | |
35864 | fi | |
ac1cb8d3 VS |
35865 | rm -f conftest.err conftest.$ac_objext \ |
35866 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35867 | fi |
35868 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35869 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35870 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35871 | cat >>confdefs.h <<_ACEOF | |
35872 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35873 | _ACEOF | |
35874 | break | |
35875 | fi | |
35876 | done | |
35877 | ||
35878 | ||
35879 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
35880 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
35881 | if test "${wx_cv_func_statfs+set}" = set; then | |
35882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35883 | else | |
35884 | cat >conftest.$ac_ext <<_ACEOF | |
35885 | /* confdefs.h. */ | |
35886 | _ACEOF | |
35887 | cat confdefs.h >>conftest.$ac_ext | |
35888 | cat >>conftest.$ac_ext <<_ACEOF | |
35889 | /* end confdefs.h. */ | |
35890 | ||
35891 | #if defined(__BSD__) | |
84ae7ca4 VZ |
35892 | #include <sys/param.h> |
35893 | #include <sys/mount.h> | |
a848cd7e | 35894 | #else |
84ae7ca4 | 35895 | #include <sys/vfs.h> |
a848cd7e SC |
35896 | #endif |
35897 | ||
35898 | int | |
35899 | main () | |
35900 | { | |
35901 | ||
35902 | long l; | |
35903 | struct statfs fs; | |
35904 | statfs("/", &fs); | |
35905 | l = fs.f_bsize; | |
35906 | l += fs.f_blocks; | |
35907 | l += fs.f_bavail; | |
35908 | ||
35909 | ; | |
35910 | return 0; | |
35911 | } | |
35912 | _ACEOF | |
35913 | rm -f conftest.$ac_objext | |
35914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35915 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35916 | ac_status=$? |
ac1cb8d3 VS |
35917 | grep -v '^ *+' conftest.er1 >conftest.err |
35918 | rm -f conftest.er1 | |
35919 | cat conftest.err >&5 | |
a848cd7e SC |
35920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35921 | (exit $ac_status); } && | |
c9a66001 | 35922 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35924 | (eval $ac_try) 2>&5 | |
35925 | ac_status=$? | |
35926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35927 | (exit $ac_status); }; } && | |
35928 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35930 | (eval $ac_try) 2>&5 | |
35931 | ac_status=$? | |
35932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35933 | (exit $ac_status); }; }; then | |
84ae7ca4 | 35934 | wx_cv_func_statfs=yes |
a848cd7e SC |
35935 | else |
35936 | echo "$as_me: failed program was:" >&5 | |
35937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35938 | ||
84ae7ca4 | 35939 | wx_cv_func_statfs=no |
a848cd7e SC |
35940 | |
35941 | fi | |
ac1cb8d3 | 35942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35943 | |
35944 | fi | |
35945 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
35946 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
35947 | ||
35948 | if test "$wx_cv_func_statfs" = "yes"; then | |
5d7b7554 | 35949 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 |
84ae7ca4 VZ |
35950 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 |
35951 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
35952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35953 | else | |
0683aca6 VZ |
35954 | cat >conftest.$ac_ext <<_ACEOF |
35955 | /* confdefs.h. */ | |
35956 | _ACEOF | |
35957 | cat confdefs.h >>conftest.$ac_ext | |
35958 | cat >>conftest.$ac_ext <<_ACEOF | |
35959 | /* end confdefs.h. */ | |
84ae7ca4 | 35960 | |
0683aca6 VZ |
35961 | #if defined(__BSD__) |
35962 | #include <sys/param.h> | |
35963 | #include <sys/mount.h> | |
35964 | #else | |
35965 | #include <sys/vfs.h> | |
35966 | #endif | |
35967 | ||
35968 | int | |
35969 | main () | |
35970 | { | |
35971 | ||
35972 | struct statfs fs; | |
35973 | statfs("", &fs); | |
35974 | ||
35975 | ; | |
35976 | return 0; | |
35977 | } | |
35978 | _ACEOF | |
35979 | rm -f conftest.$ac_objext | |
35980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35981 | (eval $ac_compile) 2>conftest.er1 | |
35982 | ac_status=$? | |
35983 | grep -v '^ *+' conftest.er1 >conftest.err | |
35984 | rm -f conftest.er1 | |
35985 | cat conftest.err >&5 | |
35986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35987 | (exit $ac_status); } && | |
c9a66001 | 35988 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0683aca6 VZ |
35989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35990 | (eval $ac_try) 2>&5 | |
35991 | ac_status=$? | |
35992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35993 | (exit $ac_status); }; } && | |
35994 | { ac_try='test -s conftest.$ac_objext' | |
35995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35996 | (eval $ac_try) 2>&5 | |
35997 | ac_status=$? | |
35998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35999 | (exit $ac_status); }; }; then | |
36000 | wx_cv_func_statfs_decl=yes | |
36001 | else | |
36002 | echo "$as_me: failed program was:" >&5 | |
36003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36004 | ||
36005 | wx_cv_func_statfs_decl=no | |
36006 | ||
36007 | fi | |
36008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
36009 | |
36010 | fi | |
36011 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
36012 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
84ae7ca4 VZ |
36013 | |
36014 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
36015 | cat >>confdefs.h <<\_ACEOF | |
36016 | #define HAVE_STATFS_DECL 1 | |
36017 | _ACEOF | |
36018 | ||
36019 | fi | |
36020 | ||
a848cd7e SC |
36021 | wx_cv_type_statvfs_t="struct statfs" |
36022 | cat >>confdefs.h <<\_ACEOF | |
36023 | #define HAVE_STATFS 1 | |
36024 | _ACEOF | |
36025 | ||
36026 | else | |
36027 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
36028 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
36029 | if test "${wx_cv_func_statvfs+set}" = set; then | |
36030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36031 | else | |
36032 | cat >conftest.$ac_ext <<_ACEOF | |
36033 | /* confdefs.h. */ | |
36034 | _ACEOF | |
36035 | cat confdefs.h >>conftest.$ac_ext | |
36036 | cat >>conftest.$ac_ext <<_ACEOF | |
36037 | /* end confdefs.h. */ | |
36038 | ||
36039 | #include <stddef.h> | |
36040 | #include <sys/statvfs.h> | |
36041 | ||
36042 | int | |
36043 | main () | |
36044 | { | |
36045 | ||
36046 | statvfs("/", NULL); | |
36047 | ||
36048 | ; | |
36049 | return 0; | |
36050 | } | |
36051 | _ACEOF | |
36052 | rm -f conftest.$ac_objext | |
36053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36054 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36055 | ac_status=$? |
ac1cb8d3 VS |
36056 | grep -v '^ *+' conftest.er1 >conftest.err |
36057 | rm -f conftest.er1 | |
36058 | cat conftest.err >&5 | |
a848cd7e SC |
36059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36060 | (exit $ac_status); } && | |
c9a66001 | 36061 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36063 | (eval $ac_try) 2>&5 | |
36064 | ac_status=$? | |
36065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36066 | (exit $ac_status); }; } && | |
36067 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36069 | (eval $ac_try) 2>&5 | |
36070 | ac_status=$? | |
36071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36072 | (exit $ac_status); }; }; then | |
36073 | wx_cv_func_statvfs=yes | |
36074 | else | |
36075 | echo "$as_me: failed program was:" >&5 | |
36076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36077 | ||
36078 | wx_cv_func_statvfs=no | |
36079 | ||
36080 | fi | |
ac1cb8d3 | 36081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36082 | |
36083 | fi | |
36084 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
36085 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
36086 | ||
36087 | if test "$wx_cv_func_statvfs" = "yes"; then | |
5d7b7554 | 36088 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
a848cd7e SC |
36089 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 |
36090 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
36091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36092 | else | |
36093 | cat >conftest.$ac_ext <<_ACEOF | |
36094 | /* confdefs.h. */ | |
36095 | _ACEOF | |
36096 | cat confdefs.h >>conftest.$ac_ext | |
36097 | cat >>conftest.$ac_ext <<_ACEOF | |
36098 | /* end confdefs.h. */ | |
36099 | ||
36100 | #include <sys/statvfs.h> | |
36101 | ||
36102 | int | |
36103 | main () | |
36104 | { | |
36105 | ||
36106 | long l; | |
36107 | statvfs_t fs; | |
36108 | statvfs("/", &fs); | |
36109 | l = fs.f_bsize; | |
36110 | l += fs.f_blocks; | |
36111 | l += fs.f_bavail; | |
36112 | ||
36113 | ; | |
36114 | return 0; | |
36115 | } | |
36116 | _ACEOF | |
36117 | rm -f conftest.$ac_objext | |
36118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36119 | (eval $ac_compile) 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); } && | |
c9a66001 | 36126 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36128 | (eval $ac_try) 2>&5 | |
36129 | ac_status=$? | |
36130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36131 | (exit $ac_status); }; } && | |
36132 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36134 | (eval $ac_try) 2>&5 | |
36135 | ac_status=$? | |
36136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36137 | (exit $ac_status); }; }; then | |
36138 | wx_cv_type_statvfs_t=statvfs_t | |
36139 | else | |
36140 | echo "$as_me: failed program was:" >&5 | |
36141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36142 | ||
36143 | ||
36144 | cat >conftest.$ac_ext <<_ACEOF | |
36145 | /* confdefs.h. */ | |
36146 | _ACEOF | |
36147 | cat confdefs.h >>conftest.$ac_ext | |
36148 | cat >>conftest.$ac_ext <<_ACEOF | |
36149 | /* end confdefs.h. */ | |
36150 | ||
36151 | #include <sys/statvfs.h> | |
36152 | ||
36153 | int | |
36154 | main () | |
36155 | { | |
36156 | ||
36157 | long l; | |
36158 | struct statvfs fs; | |
36159 | statvfs("/", &fs); | |
36160 | l = fs.f_bsize; | |
36161 | l += fs.f_blocks; | |
36162 | l += fs.f_bavail; | |
36163 | ||
36164 | ; | |
36165 | return 0; | |
36166 | } | |
36167 | _ACEOF | |
36168 | rm -f conftest.$ac_objext | |
36169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36170 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36171 | ac_status=$? |
ac1cb8d3 VS |
36172 | grep -v '^ *+' conftest.er1 >conftest.err |
36173 | rm -f conftest.er1 | |
36174 | cat conftest.err >&5 | |
a848cd7e SC |
36175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36176 | (exit $ac_status); } && | |
c9a66001 | 36177 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36179 | (eval $ac_try) 2>&5 | |
36180 | ac_status=$? | |
36181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36182 | (exit $ac_status); }; } && | |
36183 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36185 | (eval $ac_try) 2>&5 | |
36186 | ac_status=$? | |
36187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36188 | (exit $ac_status); }; }; then | |
36189 | wx_cv_type_statvfs_t="struct statvfs" | |
36190 | else | |
36191 | echo "$as_me: failed program was:" >&5 | |
36192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36193 | ||
36194 | wx_cv_type_statvfs_t="unknown" | |
36195 | ||
36196 | fi | |
ac1cb8d3 | 36197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36198 | |
36199 | ||
36200 | fi | |
ac1cb8d3 | 36201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36202 | |
36203 | fi | |
36204 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
36205 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
36206 | ||
a848cd7e SC |
36207 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
36208 | cat >>confdefs.h <<\_ACEOF | |
36209 | #define HAVE_STATVFS 1 | |
36210 | _ACEOF | |
36211 | ||
36212 | fi | |
36213 | else | |
36214 | wx_cv_type_statvfs_t="unknown" | |
36215 | fi | |
36216 | fi | |
36217 | ||
36218 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
36219 | cat >>confdefs.h <<_ACEOF | |
36220 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
36221 | _ACEOF | |
36222 | ||
36223 | else | |
36224 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
36225 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
36226 | fi | |
36227 | ||
36228 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
36229 | ||
36230 | ||
36231 | for ac_func in fcntl flock | |
36232 | do | |
36233 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36234 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36235 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36236 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36238 | else | |
36239 | cat >conftest.$ac_ext <<_ACEOF | |
36240 | /* confdefs.h. */ | |
36241 | _ACEOF | |
36242 | cat confdefs.h >>conftest.$ac_ext | |
36243 | cat >>conftest.$ac_ext <<_ACEOF | |
36244 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36245 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36246 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36247 | #define $ac_func innocuous_$ac_func | |
36248 | ||
a848cd7e SC |
36249 | /* System header to define __stub macros and hopefully few prototypes, |
36250 | which can conflict with char $ac_func (); below. | |
36251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36252 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36253 | |
a848cd7e SC |
36254 | #ifdef __STDC__ |
36255 | # include <limits.h> | |
36256 | #else | |
36257 | # include <assert.h> | |
36258 | #endif | |
ac1cb8d3 VS |
36259 | |
36260 | #undef $ac_func | |
36261 | ||
a848cd7e SC |
36262 | /* Override any gcc2 internal prototype to avoid an error. */ |
36263 | #ifdef __cplusplus | |
36264 | extern "C" | |
36265 | { | |
36266 | #endif | |
36267 | /* We use char because int might match the return type of a gcc2 | |
36268 | builtin and then its argument prototype would still apply. */ | |
36269 | char $ac_func (); | |
36270 | /* The GNU C library defines this for functions which it implements | |
36271 | to always fail with ENOSYS. Some functions are actually named | |
36272 | something starting with __ and the normal name is an alias. */ | |
36273 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36274 | choke me | |
36275 | #else | |
36276 | char (*f) () = $ac_func; | |
36277 | #endif | |
36278 | #ifdef __cplusplus | |
36279 | } | |
36280 | #endif | |
36281 | ||
36282 | int | |
36283 | main () | |
36284 | { | |
36285 | return f != $ac_func; | |
36286 | ; | |
36287 | return 0; | |
36288 | } | |
36289 | _ACEOF | |
36290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36292 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36293 | ac_status=$? |
ac1cb8d3 VS |
36294 | grep -v '^ *+' conftest.er1 >conftest.err |
36295 | rm -f conftest.er1 | |
36296 | cat conftest.err >&5 | |
a848cd7e SC |
36297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36298 | (exit $ac_status); } && | |
c9a66001 | 36299 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36301 | (eval $ac_try) 2>&5 | |
36302 | ac_status=$? | |
36303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36304 | (exit $ac_status); }; } && | |
36305 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36307 | (eval $ac_try) 2>&5 | |
36308 | ac_status=$? | |
36309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36310 | (exit $ac_status); }; }; then | |
36311 | eval "$as_ac_var=yes" | |
36312 | else | |
36313 | echo "$as_me: failed program was:" >&5 | |
36314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36315 | ||
36316 | eval "$as_ac_var=no" | |
36317 | fi | |
ac1cb8d3 VS |
36318 | rm -f conftest.err conftest.$ac_objext \ |
36319 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36320 | fi |
36321 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36322 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36323 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36324 | cat >>confdefs.h <<_ACEOF | |
36325 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36326 | _ACEOF | |
36327 | break | |
36328 | fi | |
36329 | done | |
36330 | ||
36331 | ||
36332 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
36333 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
36334 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
36335 | wxUSE_SNGLINST_CHECKER=no | |
36336 | fi | |
36337 | fi | |
36338 | ||
36339 | ||
36340 | for ac_func in timegm | |
36341 | do | |
36342 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36343 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36344 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36345 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36347 | else | |
36348 | cat >conftest.$ac_ext <<_ACEOF | |
36349 | /* confdefs.h. */ | |
36350 | _ACEOF | |
36351 | cat confdefs.h >>conftest.$ac_ext | |
36352 | cat >>conftest.$ac_ext <<_ACEOF | |
36353 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36354 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36355 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36356 | #define $ac_func innocuous_$ac_func | |
36357 | ||
a848cd7e SC |
36358 | /* System header to define __stub macros and hopefully few prototypes, |
36359 | which can conflict with char $ac_func (); below. | |
36360 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36361 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36362 | |
a848cd7e SC |
36363 | #ifdef __STDC__ |
36364 | # include <limits.h> | |
36365 | #else | |
36366 | # include <assert.h> | |
36367 | #endif | |
ac1cb8d3 VS |
36368 | |
36369 | #undef $ac_func | |
36370 | ||
a848cd7e SC |
36371 | /* Override any gcc2 internal prototype to avoid an error. */ |
36372 | #ifdef __cplusplus | |
36373 | extern "C" | |
36374 | { | |
36375 | #endif | |
36376 | /* We use char because int might match the return type of a gcc2 | |
36377 | builtin and then its argument prototype would still apply. */ | |
36378 | char $ac_func (); | |
36379 | /* The GNU C library defines this for functions which it implements | |
36380 | to always fail with ENOSYS. Some functions are actually named | |
36381 | something starting with __ and the normal name is an alias. */ | |
36382 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36383 | choke me | |
36384 | #else | |
36385 | char (*f) () = $ac_func; | |
36386 | #endif | |
36387 | #ifdef __cplusplus | |
36388 | } | |
36389 | #endif | |
36390 | ||
36391 | int | |
36392 | main () | |
36393 | { | |
36394 | return f != $ac_func; | |
36395 | ; | |
36396 | return 0; | |
36397 | } | |
36398 | _ACEOF | |
36399 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36401 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36402 | ac_status=$? |
ac1cb8d3 VS |
36403 | grep -v '^ *+' conftest.er1 >conftest.err |
36404 | rm -f conftest.er1 | |
36405 | cat conftest.err >&5 | |
a848cd7e SC |
36406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36407 | (exit $ac_status); } && | |
c9a66001 | 36408 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36410 | (eval $ac_try) 2>&5 | |
36411 | ac_status=$? | |
36412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36413 | (exit $ac_status); }; } && | |
36414 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36416 | (eval $ac_try) 2>&5 | |
36417 | ac_status=$? | |
36418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36419 | (exit $ac_status); }; }; then | |
36420 | eval "$as_ac_var=yes" | |
36421 | else | |
36422 | echo "$as_me: failed program was:" >&5 | |
36423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36424 | ||
36425 | eval "$as_ac_var=no" | |
36426 | fi | |
ac1cb8d3 VS |
36427 | rm -f conftest.err conftest.$ac_objext \ |
36428 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36429 | fi |
36430 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36431 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36432 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36433 | cat >>confdefs.h <<_ACEOF | |
36434 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36435 | _ACEOF | |
36436 | ||
36437 | fi | |
36438 | done | |
36439 | ||
36440 | ||
36441 | ||
36442 | ||
36443 | for ac_func in putenv setenv | |
36444 | do | |
36445 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36446 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36447 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36448 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36450 | else | |
36451 | cat >conftest.$ac_ext <<_ACEOF | |
36452 | /* confdefs.h. */ | |
36453 | _ACEOF | |
36454 | cat confdefs.h >>conftest.$ac_ext | |
36455 | cat >>conftest.$ac_ext <<_ACEOF | |
36456 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36457 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36458 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36459 | #define $ac_func innocuous_$ac_func | |
36460 | ||
a848cd7e SC |
36461 | /* System header to define __stub macros and hopefully few prototypes, |
36462 | which can conflict with char $ac_func (); below. | |
36463 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36464 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36465 | |
a848cd7e SC |
36466 | #ifdef __STDC__ |
36467 | # include <limits.h> | |
36468 | #else | |
36469 | # include <assert.h> | |
36470 | #endif | |
ac1cb8d3 VS |
36471 | |
36472 | #undef $ac_func | |
36473 | ||
a848cd7e SC |
36474 | /* Override any gcc2 internal prototype to avoid an error. */ |
36475 | #ifdef __cplusplus | |
36476 | extern "C" | |
36477 | { | |
36478 | #endif | |
36479 | /* We use char because int might match the return type of a gcc2 | |
36480 | builtin and then its argument prototype would still apply. */ | |
36481 | char $ac_func (); | |
36482 | /* The GNU C library defines this for functions which it implements | |
36483 | to always fail with ENOSYS. Some functions are actually named | |
36484 | something starting with __ and the normal name is an alias. */ | |
36485 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36486 | choke me | |
36487 | #else | |
36488 | char (*f) () = $ac_func; | |
36489 | #endif | |
36490 | #ifdef __cplusplus | |
36491 | } | |
36492 | #endif | |
36493 | ||
36494 | int | |
36495 | main () | |
36496 | { | |
36497 | return f != $ac_func; | |
36498 | ; | |
36499 | return 0; | |
36500 | } | |
36501 | _ACEOF | |
36502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36504 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36505 | ac_status=$? |
ac1cb8d3 VS |
36506 | grep -v '^ *+' conftest.er1 >conftest.err |
36507 | rm -f conftest.er1 | |
36508 | cat conftest.err >&5 | |
a848cd7e SC |
36509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36510 | (exit $ac_status); } && | |
c9a66001 | 36511 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36513 | (eval $ac_try) 2>&5 | |
36514 | ac_status=$? | |
36515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36516 | (exit $ac_status); }; } && | |
36517 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36519 | (eval $ac_try) 2>&5 | |
36520 | ac_status=$? | |
36521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36522 | (exit $ac_status); }; }; then | |
36523 | eval "$as_ac_var=yes" | |
36524 | else | |
36525 | echo "$as_me: failed program was:" >&5 | |
36526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36527 | ||
36528 | eval "$as_ac_var=no" | |
36529 | fi | |
ac1cb8d3 VS |
36530 | rm -f conftest.err conftest.$ac_objext \ |
36531 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36532 | fi |
36533 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36534 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36535 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36536 | cat >>confdefs.h <<_ACEOF | |
36537 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36538 | _ACEOF | |
36539 | break | |
36540 | fi | |
36541 | done | |
36542 | ||
36543 | ||
36544 | HAVE_SOME_SLEEP_FUNC=0 | |
36545 | if test "$USE_BEOS" = 1; then | |
36546 | cat >>confdefs.h <<\_ACEOF | |
36547 | #define HAVE_SLEEP 1 | |
36548 | _ACEOF | |
36549 | ||
36550 | HAVE_SOME_SLEEP_FUNC=1 | |
36551 | fi | |
36552 | ||
36553 | if test "$USE_DARWIN" = 1; then | |
36554 | cat >>confdefs.h <<\_ACEOF | |
36555 | #define HAVE_USLEEP 1 | |
36556 | _ACEOF | |
36557 | ||
36558 | HAVE_SOME_SLEEP_FUNC=1 | |
36559 | fi | |
36560 | ||
36561 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
36562 | POSIX4_LINK= | |
36563 | ||
36564 | for ac_func in nanosleep | |
36565 | do | |
36566 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36567 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36568 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36569 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36571 | else | |
36572 | cat >conftest.$ac_ext <<_ACEOF | |
36573 | /* confdefs.h. */ | |
36574 | _ACEOF | |
36575 | cat confdefs.h >>conftest.$ac_ext | |
36576 | cat >>conftest.$ac_ext <<_ACEOF | |
36577 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36578 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36579 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36580 | #define $ac_func innocuous_$ac_func | |
36581 | ||
a848cd7e SC |
36582 | /* System header to define __stub macros and hopefully few prototypes, |
36583 | which can conflict with char $ac_func (); below. | |
36584 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36585 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36586 | |
a848cd7e SC |
36587 | #ifdef __STDC__ |
36588 | # include <limits.h> | |
36589 | #else | |
36590 | # include <assert.h> | |
36591 | #endif | |
ac1cb8d3 VS |
36592 | |
36593 | #undef $ac_func | |
36594 | ||
a848cd7e SC |
36595 | /* Override any gcc2 internal prototype to avoid an error. */ |
36596 | #ifdef __cplusplus | |
36597 | extern "C" | |
36598 | { | |
36599 | #endif | |
36600 | /* We use char because int might match the return type of a gcc2 | |
36601 | builtin and then its argument prototype would still apply. */ | |
36602 | char $ac_func (); | |
36603 | /* The GNU C library defines this for functions which it implements | |
36604 | to always fail with ENOSYS. Some functions are actually named | |
36605 | something starting with __ and the normal name is an alias. */ | |
36606 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36607 | choke me | |
36608 | #else | |
36609 | char (*f) () = $ac_func; | |
36610 | #endif | |
36611 | #ifdef __cplusplus | |
36612 | } | |
36613 | #endif | |
36614 | ||
36615 | int | |
36616 | main () | |
36617 | { | |
36618 | return f != $ac_func; | |
36619 | ; | |
36620 | return 0; | |
36621 | } | |
36622 | _ACEOF | |
36623 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36625 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36626 | ac_status=$? |
ac1cb8d3 VS |
36627 | grep -v '^ *+' conftest.er1 >conftest.err |
36628 | rm -f conftest.er1 | |
36629 | cat conftest.err >&5 | |
a848cd7e SC |
36630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36631 | (exit $ac_status); } && | |
c9a66001 | 36632 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36634 | (eval $ac_try) 2>&5 | |
36635 | ac_status=$? | |
36636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36637 | (exit $ac_status); }; } && | |
36638 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36640 | (eval $ac_try) 2>&5 | |
36641 | ac_status=$? | |
36642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36643 | (exit $ac_status); }; }; then | |
36644 | eval "$as_ac_var=yes" | |
36645 | else | |
36646 | echo "$as_me: failed program was:" >&5 | |
36647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36648 | ||
36649 | eval "$as_ac_var=no" | |
36650 | fi | |
ac1cb8d3 VS |
36651 | rm -f conftest.err conftest.$ac_objext \ |
36652 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36653 | fi |
36654 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36655 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36656 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36657 | cat >>confdefs.h <<_ACEOF | |
36658 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36659 | _ACEOF | |
36660 | cat >>confdefs.h <<\_ACEOF | |
36661 | #define HAVE_NANOSLEEP 1 | |
36662 | _ACEOF | |
36663 | ||
36664 | else | |
36665 | ||
36666 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
36667 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
36668 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
36669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36670 | else | |
36671 | ac_check_lib_save_LIBS=$LIBS | |
36672 | LIBS="-lposix4 $LIBS" | |
36673 | cat >conftest.$ac_ext <<_ACEOF | |
36674 | /* confdefs.h. */ | |
36675 | _ACEOF | |
36676 | cat confdefs.h >>conftest.$ac_ext | |
36677 | cat >>conftest.$ac_ext <<_ACEOF | |
36678 | /* end confdefs.h. */ | |
36679 | ||
36680 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36681 | #ifdef __cplusplus | |
36682 | extern "C" | |
36683 | #endif | |
36684 | /* We use char because int might match the return type of a gcc2 | |
36685 | builtin and then its argument prototype would still apply. */ | |
36686 | char nanosleep (); | |
36687 | int | |
36688 | main () | |
36689 | { | |
36690 | nanosleep (); | |
36691 | ; | |
36692 | return 0; | |
36693 | } | |
36694 | _ACEOF | |
36695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36697 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36698 | ac_status=$? |
ac1cb8d3 VS |
36699 | grep -v '^ *+' conftest.er1 >conftest.err |
36700 | rm -f conftest.er1 | |
36701 | cat conftest.err >&5 | |
a848cd7e SC |
36702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36703 | (exit $ac_status); } && | |
c9a66001 | 36704 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36706 | (eval $ac_try) 2>&5 | |
36707 | ac_status=$? | |
36708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36709 | (exit $ac_status); }; } && | |
36710 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36712 | (eval $ac_try) 2>&5 | |
36713 | ac_status=$? | |
36714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36715 | (exit $ac_status); }; }; then | |
36716 | ac_cv_lib_posix4_nanosleep=yes | |
36717 | else | |
36718 | echo "$as_me: failed program was:" >&5 | |
36719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36720 | ||
36721 | ac_cv_lib_posix4_nanosleep=no | |
36722 | fi | |
ac1cb8d3 VS |
36723 | rm -f conftest.err conftest.$ac_objext \ |
36724 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36725 | LIBS=$ac_check_lib_save_LIBS |
36726 | fi | |
36727 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
36728 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
36729 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
36730 | ||
36731 | cat >>confdefs.h <<\_ACEOF | |
36732 | #define HAVE_NANOSLEEP 1 | |
36733 | _ACEOF | |
36734 | ||
36735 | POSIX4_LINK=" -lposix4" | |
36736 | ||
36737 | else | |
36738 | ||
36739 | ||
36740 | for ac_func in usleep | |
36741 | do | |
36742 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36743 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36744 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36745 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36747 | else | |
36748 | cat >conftest.$ac_ext <<_ACEOF | |
36749 | /* confdefs.h. */ | |
36750 | _ACEOF | |
36751 | cat confdefs.h >>conftest.$ac_ext | |
36752 | cat >>conftest.$ac_ext <<_ACEOF | |
36753 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36754 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36755 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36756 | #define $ac_func innocuous_$ac_func | |
36757 | ||
a848cd7e SC |
36758 | /* System header to define __stub macros and hopefully few prototypes, |
36759 | which can conflict with char $ac_func (); below. | |
36760 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36761 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36762 | |
a848cd7e SC |
36763 | #ifdef __STDC__ |
36764 | # include <limits.h> | |
36765 | #else | |
36766 | # include <assert.h> | |
36767 | #endif | |
ac1cb8d3 VS |
36768 | |
36769 | #undef $ac_func | |
36770 | ||
a848cd7e SC |
36771 | /* Override any gcc2 internal prototype to avoid an error. */ |
36772 | #ifdef __cplusplus | |
36773 | extern "C" | |
36774 | { | |
36775 | #endif | |
36776 | /* We use char because int might match the return type of a gcc2 | |
36777 | builtin and then its argument prototype would still apply. */ | |
36778 | char $ac_func (); | |
36779 | /* The GNU C library defines this for functions which it implements | |
36780 | to always fail with ENOSYS. Some functions are actually named | |
36781 | something starting with __ and the normal name is an alias. */ | |
36782 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36783 | choke me | |
36784 | #else | |
36785 | char (*f) () = $ac_func; | |
36786 | #endif | |
36787 | #ifdef __cplusplus | |
36788 | } | |
36789 | #endif | |
36790 | ||
36791 | int | |
36792 | main () | |
36793 | { | |
36794 | return f != $ac_func; | |
36795 | ; | |
36796 | return 0; | |
36797 | } | |
36798 | _ACEOF | |
36799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36801 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36802 | ac_status=$? |
ac1cb8d3 VS |
36803 | grep -v '^ *+' conftest.er1 >conftest.err |
36804 | rm -f conftest.er1 | |
36805 | cat conftest.err >&5 | |
a848cd7e SC |
36806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36807 | (exit $ac_status); } && | |
c9a66001 | 36808 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36810 | (eval $ac_try) 2>&5 | |
36811 | ac_status=$? | |
36812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36813 | (exit $ac_status); }; } && | |
36814 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36816 | (eval $ac_try) 2>&5 | |
36817 | ac_status=$? | |
36818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36819 | (exit $ac_status); }; }; then | |
36820 | eval "$as_ac_var=yes" | |
36821 | else | |
36822 | echo "$as_me: failed program was:" >&5 | |
36823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36824 | ||
36825 | eval "$as_ac_var=no" | |
36826 | fi | |
ac1cb8d3 VS |
36827 | rm -f conftest.err conftest.$ac_objext \ |
36828 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36829 | fi |
36830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36831 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36832 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36833 | cat >>confdefs.h <<_ACEOF | |
36834 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36835 | _ACEOF | |
36836 | cat >>confdefs.h <<\_ACEOF | |
36837 | #define HAVE_USLEEP 1 | |
36838 | _ACEOF | |
36839 | ||
36840 | else | |
36841 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
36842 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
36843 | ||
36844 | fi | |
36845 | done | |
36846 | ||
36847 | ||
36848 | ||
36849 | fi | |
36850 | ||
36851 | ||
36852 | ||
36853 | fi | |
36854 | done | |
36855 | ||
36856 | fi | |
36857 | ||
36858 | ||
36859 | ||
36860 | for ac_func in uname gethostname | |
36861 | do | |
36862 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36863 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36864 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36865 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36867 | else | |
36868 | cat >conftest.$ac_ext <<_ACEOF | |
36869 | /* confdefs.h. */ | |
36870 | _ACEOF | |
36871 | cat confdefs.h >>conftest.$ac_ext | |
36872 | cat >>conftest.$ac_ext <<_ACEOF | |
36873 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36874 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36875 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36876 | #define $ac_func innocuous_$ac_func | |
36877 | ||
a848cd7e SC |
36878 | /* System header to define __stub macros and hopefully few prototypes, |
36879 | which can conflict with char $ac_func (); below. | |
36880 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36881 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36882 | |
a848cd7e SC |
36883 | #ifdef __STDC__ |
36884 | # include <limits.h> | |
36885 | #else | |
36886 | # include <assert.h> | |
36887 | #endif | |
ac1cb8d3 VS |
36888 | |
36889 | #undef $ac_func | |
36890 | ||
a848cd7e SC |
36891 | /* Override any gcc2 internal prototype to avoid an error. */ |
36892 | #ifdef __cplusplus | |
36893 | extern "C" | |
36894 | { | |
36895 | #endif | |
36896 | /* We use char because int might match the return type of a gcc2 | |
36897 | builtin and then its argument prototype would still apply. */ | |
36898 | char $ac_func (); | |
36899 | /* The GNU C library defines this for functions which it implements | |
36900 | to always fail with ENOSYS. Some functions are actually named | |
36901 | something starting with __ and the normal name is an alias. */ | |
36902 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36903 | choke me | |
36904 | #else | |
36905 | char (*f) () = $ac_func; | |
36906 | #endif | |
36907 | #ifdef __cplusplus | |
36908 | } | |
36909 | #endif | |
36910 | ||
36911 | int | |
36912 | main () | |
36913 | { | |
36914 | return f != $ac_func; | |
36915 | ; | |
36916 | return 0; | |
36917 | } | |
36918 | _ACEOF | |
36919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36921 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36922 | ac_status=$? |
ac1cb8d3 VS |
36923 | grep -v '^ *+' conftest.er1 >conftest.err |
36924 | rm -f conftest.er1 | |
36925 | cat conftest.err >&5 | |
a848cd7e SC |
36926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36927 | (exit $ac_status); } && | |
c9a66001 | 36928 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36930 | (eval $ac_try) 2>&5 | |
36931 | ac_status=$? | |
36932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36933 | (exit $ac_status); }; } && | |
36934 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36936 | (eval $ac_try) 2>&5 | |
36937 | ac_status=$? | |
36938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36939 | (exit $ac_status); }; }; then | |
36940 | eval "$as_ac_var=yes" | |
36941 | else | |
36942 | echo "$as_me: failed program was:" >&5 | |
36943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36944 | ||
36945 | eval "$as_ac_var=no" | |
36946 | fi | |
ac1cb8d3 VS |
36947 | rm -f conftest.err conftest.$ac_objext \ |
36948 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36949 | fi |
36950 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36951 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36952 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36953 | cat >>confdefs.h <<_ACEOF | |
36954 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36955 | _ACEOF | |
36956 | break | |
36957 | fi | |
36958 | done | |
36959 | ||
36960 | ||
5acfd58d MW |
36961 | SAVE_CPPFLAGS="$CPPFLAGS" |
36962 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" | |
a848cd7e | 36963 | |
5acfd58d MW |
36964 | for target in strtok_r |
36965 | do | |
36966 | echo "$as_me:$LINENO: checking for $target in string.h" >&5 | |
36967 | echo $ECHO_N "checking for $target in string.h... $ECHO_C" >&6 | |
36968 | if eval "test \"\${wx_cv_decl_$target+set}\" = set"; then | |
a848cd7e SC |
36969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
36970 | else | |
5acfd58d MW |
36971 | |
36972 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
36973 | /* confdefs.h. */ |
36974 | _ACEOF | |
36975 | cat confdefs.h >>conftest.$ac_ext | |
36976 | cat >>conftest.$ac_ext <<_ACEOF | |
36977 | /* end confdefs.h. */ | |
5acfd58d | 36978 | #include <string.h> |
a848cd7e SC |
36979 | int |
36980 | main () | |
36981 | { | |
5acfd58d MW |
36982 | |
36983 | #ifndef $target | |
36984 | &$target; | |
36985 | #endif | |
36986 | ||
a848cd7e SC |
36987 | ; |
36988 | return 0; | |
36989 | } | |
36990 | _ACEOF | |
5acfd58d MW |
36991 | rm -f conftest.$ac_objext |
36992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36993 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 36994 | ac_status=$? |
ac1cb8d3 VS |
36995 | grep -v '^ *+' conftest.er1 >conftest.err |
36996 | rm -f conftest.er1 | |
36997 | cat conftest.err >&5 | |
a848cd7e SC |
36998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36999 | (exit $ac_status); } && | |
c9a66001 | 37000 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37002 | (eval $ac_try) 2>&5 | |
37003 | ac_status=$? | |
37004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37005 | (exit $ac_status); }; } && | |
5acfd58d | 37006 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
37007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37008 | (eval $ac_try) 2>&5 | |
37009 | ac_status=$? | |
37010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37011 | (exit $ac_status); }; }; then | |
5acfd58d | 37012 | eval wx_cv_decl_$target=yes |
a848cd7e SC |
37013 | else |
37014 | echo "$as_me: failed program was:" >&5 | |
37015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37016 | ||
5acfd58d | 37017 | eval wx_cv_decl_$target=no |
a848cd7e | 37018 | fi |
5acfd58d MW |
37019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
37020 | ||
a848cd7e | 37021 | fi |
5acfd58d MW |
37022 | echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_decl_$target'}'`" >&5 |
37023 | echo "${ECHO_T}`eval echo '${'wx_cv_decl_$target'}'`" >&6 | |
37024 | ||
37025 | if eval test \$wx_cv_decl_$target = yes | |
37026 | then | |
37027 | cat >>confdefs.h <<_ACEOF | |
37028 | #define HAVE_`echo $target | tr 'a-z' 'A-Z'` 1 | |
a848cd7e SC |
37029 | _ACEOF |
37030 | ||
a848cd7e | 37031 | |
5acfd58d MW |
37032 | else |
37033 | : | |
37034 | ||
37035 | fi | |
37036 | done | |
37037 | ||
37038 | CPPFLAGS="$SAVE_CPPFLAGS" | |
a848cd7e | 37039 | |
a848cd7e SC |
37040 | INET_LINK= |
37041 | ||
37042 | for ac_func in inet_addr | |
37043 | do | |
37044 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37045 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37046 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37047 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37049 | else | |
37050 | cat >conftest.$ac_ext <<_ACEOF | |
37051 | /* confdefs.h. */ | |
37052 | _ACEOF | |
37053 | cat confdefs.h >>conftest.$ac_ext | |
37054 | cat >>conftest.$ac_ext <<_ACEOF | |
37055 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37056 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37057 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37058 | #define $ac_func innocuous_$ac_func | |
37059 | ||
a848cd7e SC |
37060 | /* System header to define __stub macros and hopefully few prototypes, |
37061 | which can conflict with char $ac_func (); below. | |
37062 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37063 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37064 | |
a848cd7e SC |
37065 | #ifdef __STDC__ |
37066 | # include <limits.h> | |
37067 | #else | |
37068 | # include <assert.h> | |
37069 | #endif | |
ac1cb8d3 VS |
37070 | |
37071 | #undef $ac_func | |
37072 | ||
a848cd7e SC |
37073 | /* Override any gcc2 internal prototype to avoid an error. */ |
37074 | #ifdef __cplusplus | |
37075 | extern "C" | |
37076 | { | |
37077 | #endif | |
37078 | /* We use char because int might match the return type of a gcc2 | |
37079 | builtin and then its argument prototype would still apply. */ | |
37080 | char $ac_func (); | |
37081 | /* The GNU C library defines this for functions which it implements | |
37082 | to always fail with ENOSYS. Some functions are actually named | |
37083 | something starting with __ and the normal name is an alias. */ | |
37084 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37085 | choke me | |
37086 | #else | |
37087 | char (*f) () = $ac_func; | |
37088 | #endif | |
37089 | #ifdef __cplusplus | |
37090 | } | |
37091 | #endif | |
37092 | ||
37093 | int | |
37094 | main () | |
37095 | { | |
37096 | return f != $ac_func; | |
37097 | ; | |
37098 | return 0; | |
37099 | } | |
37100 | _ACEOF | |
37101 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37103 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37104 | ac_status=$? |
ac1cb8d3 VS |
37105 | grep -v '^ *+' conftest.er1 >conftest.err |
37106 | rm -f conftest.er1 | |
37107 | cat conftest.err >&5 | |
a848cd7e SC |
37108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37109 | (exit $ac_status); } && | |
c9a66001 | 37110 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37112 | (eval $ac_try) 2>&5 | |
37113 | ac_status=$? | |
37114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37115 | (exit $ac_status); }; } && | |
37116 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37118 | (eval $ac_try) 2>&5 | |
37119 | ac_status=$? | |
37120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37121 | (exit $ac_status); }; }; then | |
37122 | eval "$as_ac_var=yes" | |
37123 | else | |
37124 | echo "$as_me: failed program was:" >&5 | |
37125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37126 | ||
37127 | eval "$as_ac_var=no" | |
37128 | fi | |
ac1cb8d3 VS |
37129 | rm -f conftest.err conftest.$ac_objext \ |
37130 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37131 | fi |
37132 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37133 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37134 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37135 | cat >>confdefs.h <<_ACEOF | |
37136 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37137 | _ACEOF | |
37138 | cat >>confdefs.h <<\_ACEOF | |
37139 | #define HAVE_INET_ADDR 1 | |
37140 | _ACEOF | |
37141 | ||
37142 | else | |
37143 | ||
37144 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
37145 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
37146 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
37147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37148 | else | |
37149 | ac_check_lib_save_LIBS=$LIBS | |
37150 | LIBS="-lnsl $LIBS" | |
37151 | cat >conftest.$ac_ext <<_ACEOF | |
37152 | /* confdefs.h. */ | |
37153 | _ACEOF | |
37154 | cat confdefs.h >>conftest.$ac_ext | |
37155 | cat >>conftest.$ac_ext <<_ACEOF | |
37156 | /* end confdefs.h. */ | |
37157 | ||
37158 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37159 | #ifdef __cplusplus | |
37160 | extern "C" | |
37161 | #endif | |
37162 | /* We use char because int might match the return type of a gcc2 | |
37163 | builtin and then its argument prototype would still apply. */ | |
37164 | char inet_addr (); | |
37165 | int | |
37166 | main () | |
37167 | { | |
37168 | inet_addr (); | |
37169 | ; | |
37170 | return 0; | |
37171 | } | |
37172 | _ACEOF | |
37173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37175 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37176 | ac_status=$? |
ac1cb8d3 VS |
37177 | grep -v '^ *+' conftest.er1 >conftest.err |
37178 | rm -f conftest.er1 | |
37179 | cat conftest.err >&5 | |
a848cd7e SC |
37180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37181 | (exit $ac_status); } && | |
c9a66001 | 37182 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37184 | (eval $ac_try) 2>&5 | |
37185 | ac_status=$? | |
37186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37187 | (exit $ac_status); }; } && | |
37188 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37190 | (eval $ac_try) 2>&5 | |
37191 | ac_status=$? | |
37192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37193 | (exit $ac_status); }; }; then | |
37194 | ac_cv_lib_nsl_inet_addr=yes | |
37195 | else | |
37196 | echo "$as_me: failed program was:" >&5 | |
37197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37198 | ||
37199 | ac_cv_lib_nsl_inet_addr=no | |
37200 | fi | |
ac1cb8d3 VS |
37201 | rm -f conftest.err conftest.$ac_objext \ |
37202 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37203 | LIBS=$ac_check_lib_save_LIBS |
37204 | fi | |
37205 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
37206 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
37207 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
37208 | INET_LINK="nsl" | |
37209 | else | |
37210 | ||
37211 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
37212 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
37213 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
37214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37215 | else | |
37216 | ac_check_lib_save_LIBS=$LIBS | |
37217 | LIBS="-lresolv $LIBS" | |
37218 | cat >conftest.$ac_ext <<_ACEOF | |
37219 | /* confdefs.h. */ | |
37220 | _ACEOF | |
37221 | cat confdefs.h >>conftest.$ac_ext | |
37222 | cat >>conftest.$ac_ext <<_ACEOF | |
37223 | /* end confdefs.h. */ | |
37224 | ||
37225 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37226 | #ifdef __cplusplus | |
37227 | extern "C" | |
37228 | #endif | |
37229 | /* We use char because int might match the return type of a gcc2 | |
37230 | builtin and then its argument prototype would still apply. */ | |
37231 | char inet_addr (); | |
37232 | int | |
37233 | main () | |
37234 | { | |
37235 | inet_addr (); | |
37236 | ; | |
37237 | return 0; | |
37238 | } | |
37239 | _ACEOF | |
37240 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37242 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37243 | ac_status=$? |
ac1cb8d3 VS |
37244 | grep -v '^ *+' conftest.er1 >conftest.err |
37245 | rm -f conftest.er1 | |
37246 | cat conftest.err >&5 | |
a848cd7e SC |
37247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37248 | (exit $ac_status); } && | |
c9a66001 | 37249 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37251 | (eval $ac_try) 2>&5 | |
37252 | ac_status=$? | |
37253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37254 | (exit $ac_status); }; } && | |
37255 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37257 | (eval $ac_try) 2>&5 | |
37258 | ac_status=$? | |
37259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37260 | (exit $ac_status); }; }; then | |
37261 | ac_cv_lib_resolv_inet_addr=yes | |
37262 | else | |
37263 | echo "$as_me: failed program was:" >&5 | |
37264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37265 | ||
37266 | ac_cv_lib_resolv_inet_addr=no | |
37267 | fi | |
ac1cb8d3 VS |
37268 | rm -f conftest.err conftest.$ac_objext \ |
37269 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37270 | LIBS=$ac_check_lib_save_LIBS |
37271 | fi | |
37272 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
37273 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
37274 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
37275 | INET_LINK="resolv" | |
37276 | else | |
37277 | ||
37278 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
37279 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
37280 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
37281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37282 | else | |
37283 | ac_check_lib_save_LIBS=$LIBS | |
37284 | LIBS="-lsocket $LIBS" | |
37285 | cat >conftest.$ac_ext <<_ACEOF | |
37286 | /* confdefs.h. */ | |
37287 | _ACEOF | |
37288 | cat confdefs.h >>conftest.$ac_ext | |
37289 | cat >>conftest.$ac_ext <<_ACEOF | |
37290 | /* end confdefs.h. */ | |
37291 | ||
37292 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37293 | #ifdef __cplusplus | |
37294 | extern "C" | |
37295 | #endif | |
37296 | /* We use char because int might match the return type of a gcc2 | |
37297 | builtin and then its argument prototype would still apply. */ | |
37298 | char inet_addr (); | |
37299 | int | |
37300 | main () | |
37301 | { | |
37302 | inet_addr (); | |
37303 | ; | |
37304 | return 0; | |
37305 | } | |
37306 | _ACEOF | |
37307 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37309 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37310 | ac_status=$? |
ac1cb8d3 VS |
37311 | grep -v '^ *+' conftest.er1 >conftest.err |
37312 | rm -f conftest.er1 | |
37313 | cat conftest.err >&5 | |
a848cd7e SC |
37314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37315 | (exit $ac_status); } && | |
c9a66001 | 37316 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37318 | (eval $ac_try) 2>&5 | |
37319 | ac_status=$? | |
37320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37321 | (exit $ac_status); }; } && | |
37322 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37324 | (eval $ac_try) 2>&5 | |
37325 | ac_status=$? | |
37326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37327 | (exit $ac_status); }; }; then | |
37328 | ac_cv_lib_socket_inet_addr=yes | |
37329 | else | |
37330 | echo "$as_me: failed program was:" >&5 | |
37331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37332 | ||
37333 | ac_cv_lib_socket_inet_addr=no | |
37334 | fi | |
ac1cb8d3 VS |
37335 | rm -f conftest.err conftest.$ac_objext \ |
37336 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37337 | LIBS=$ac_check_lib_save_LIBS |
37338 | fi | |
37339 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
37340 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
37341 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
37342 | INET_LINK="socket" | |
37343 | ||
37344 | fi | |
37345 | ||
37346 | ||
37347 | ||
37348 | fi | |
37349 | ||
37350 | ||
37351 | ||
37352 | fi | |
37353 | ||
37354 | ||
37355 | ||
37356 | fi | |
37357 | done | |
37358 | ||
37359 | ||
37360 | ||
37361 | for ac_func in inet_aton | |
37362 | do | |
37363 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37364 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37365 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37366 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37368 | else | |
37369 | cat >conftest.$ac_ext <<_ACEOF | |
37370 | /* confdefs.h. */ | |
37371 | _ACEOF | |
37372 | cat confdefs.h >>conftest.$ac_ext | |
37373 | cat >>conftest.$ac_ext <<_ACEOF | |
37374 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37375 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37376 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37377 | #define $ac_func innocuous_$ac_func | |
37378 | ||
a848cd7e SC |
37379 | /* System header to define __stub macros and hopefully few prototypes, |
37380 | which can conflict with char $ac_func (); below. | |
37381 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37382 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37383 | |
a848cd7e SC |
37384 | #ifdef __STDC__ |
37385 | # include <limits.h> | |
37386 | #else | |
37387 | # include <assert.h> | |
37388 | #endif | |
ac1cb8d3 VS |
37389 | |
37390 | #undef $ac_func | |
37391 | ||
a848cd7e SC |
37392 | /* Override any gcc2 internal prototype to avoid an error. */ |
37393 | #ifdef __cplusplus | |
37394 | extern "C" | |
37395 | { | |
37396 | #endif | |
37397 | /* We use char because int might match the return type of a gcc2 | |
37398 | builtin and then its argument prototype would still apply. */ | |
37399 | char $ac_func (); | |
37400 | /* The GNU C library defines this for functions which it implements | |
37401 | to always fail with ENOSYS. Some functions are actually named | |
37402 | something starting with __ and the normal name is an alias. */ | |
37403 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37404 | choke me | |
37405 | #else | |
37406 | char (*f) () = $ac_func; | |
37407 | #endif | |
37408 | #ifdef __cplusplus | |
37409 | } | |
37410 | #endif | |
37411 | ||
37412 | int | |
37413 | main () | |
37414 | { | |
37415 | return f != $ac_func; | |
37416 | ; | |
37417 | return 0; | |
37418 | } | |
37419 | _ACEOF | |
37420 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37422 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37423 | ac_status=$? |
ac1cb8d3 VS |
37424 | grep -v '^ *+' conftest.er1 >conftest.err |
37425 | rm -f conftest.er1 | |
37426 | cat conftest.err >&5 | |
a848cd7e SC |
37427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37428 | (exit $ac_status); } && | |
c9a66001 | 37429 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37431 | (eval $ac_try) 2>&5 | |
37432 | ac_status=$? | |
37433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37434 | (exit $ac_status); }; } && | |
37435 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37437 | (eval $ac_try) 2>&5 | |
37438 | ac_status=$? | |
37439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37440 | (exit $ac_status); }; }; then | |
37441 | eval "$as_ac_var=yes" | |
37442 | else | |
37443 | echo "$as_me: failed program was:" >&5 | |
37444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37445 | ||
37446 | eval "$as_ac_var=no" | |
37447 | fi | |
ac1cb8d3 VS |
37448 | rm -f conftest.err conftest.$ac_objext \ |
37449 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37450 | fi |
37451 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37452 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37453 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37454 | cat >>confdefs.h <<_ACEOF | |
37455 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37456 | _ACEOF | |
37457 | cat >>confdefs.h <<\_ACEOF | |
37458 | #define HAVE_INET_ATON 1 | |
37459 | _ACEOF | |
37460 | ||
37461 | else | |
37462 | ||
37463 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
37464 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
37465 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
37466 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
37467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37468 | else | |
37469 | ac_check_lib_save_LIBS=$LIBS | |
37470 | LIBS="-l$INET_LINK $LIBS" | |
37471 | cat >conftest.$ac_ext <<_ACEOF | |
37472 | /* confdefs.h. */ | |
37473 | _ACEOF | |
37474 | cat confdefs.h >>conftest.$ac_ext | |
37475 | cat >>conftest.$ac_ext <<_ACEOF | |
37476 | /* end confdefs.h. */ | |
37477 | ||
37478 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37479 | #ifdef __cplusplus | |
37480 | extern "C" | |
37481 | #endif | |
37482 | /* We use char because int might match the return type of a gcc2 | |
37483 | builtin and then its argument prototype would still apply. */ | |
37484 | char inet_aton (); | |
37485 | int | |
37486 | main () | |
37487 | { | |
37488 | inet_aton (); | |
37489 | ; | |
37490 | return 0; | |
37491 | } | |
37492 | _ACEOF | |
37493 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37495 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37496 | ac_status=$? |
ac1cb8d3 VS |
37497 | grep -v '^ *+' conftest.er1 >conftest.err |
37498 | rm -f conftest.er1 | |
37499 | cat conftest.err >&5 | |
a848cd7e SC |
37500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37501 | (exit $ac_status); } && | |
c9a66001 | 37502 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37504 | (eval $ac_try) 2>&5 | |
37505 | ac_status=$? | |
37506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37507 | (exit $ac_status); }; } && | |
37508 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37510 | (eval $ac_try) 2>&5 | |
37511 | ac_status=$? | |
37512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37513 | (exit $ac_status); }; }; then | |
37514 | eval "$as_ac_Lib=yes" | |
37515 | else | |
37516 | echo "$as_me: failed program was:" >&5 | |
37517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37518 | ||
37519 | eval "$as_ac_Lib=no" | |
37520 | fi | |
ac1cb8d3 VS |
37521 | rm -f conftest.err conftest.$ac_objext \ |
37522 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37523 | LIBS=$ac_check_lib_save_LIBS |
37524 | fi | |
37525 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
37526 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
37527 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
37528 | cat >>confdefs.h <<\_ACEOF | |
37529 | #define HAVE_INET_ATON 1 | |
37530 | _ACEOF | |
37531 | ||
37532 | fi | |
37533 | ||
37534 | ||
37535 | fi | |
37536 | done | |
37537 | ||
37538 | ||
37539 | if test "x$INET_LINK" != "x"; then | |
37540 | cat >>confdefs.h <<\_ACEOF | |
37541 | #define HAVE_INET_ADDR 1 | |
37542 | _ACEOF | |
37543 | ||
37544 | INET_LINK=" -l$INET_LINK" | |
37545 | fi | |
37546 | ||
37547 | fi | |
37548 | ||
37549 | ||
37550 | ||
37551 | EXTRALIBS_ESD= | |
37552 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
37553 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
37554 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
37555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37556 | else | |
37557 | ac_check_lib_save_LIBS=$LIBS | |
37558 | LIBS="-lesd $LIBS" | |
37559 | cat >conftest.$ac_ext <<_ACEOF | |
37560 | /* confdefs.h. */ | |
37561 | _ACEOF | |
37562 | cat confdefs.h >>conftest.$ac_ext | |
37563 | cat >>conftest.$ac_ext <<_ACEOF | |
37564 | /* end confdefs.h. */ | |
37565 | ||
37566 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37567 | #ifdef __cplusplus | |
37568 | extern "C" | |
37569 | #endif | |
37570 | /* We use char because int might match the return type of a gcc2 | |
37571 | builtin and then its argument prototype would still apply. */ | |
37572 | char esd_close (); | |
37573 | int | |
37574 | main () | |
37575 | { | |
37576 | esd_close (); | |
37577 | ; | |
37578 | return 0; | |
37579 | } | |
37580 | _ACEOF | |
37581 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37583 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37584 | ac_status=$? |
ac1cb8d3 VS |
37585 | grep -v '^ *+' conftest.er1 >conftest.err |
37586 | rm -f conftest.er1 | |
37587 | cat conftest.err >&5 | |
a848cd7e SC |
37588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37589 | (exit $ac_status); } && | |
c9a66001 | 37590 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37592 | (eval $ac_try) 2>&5 | |
37593 | ac_status=$? | |
37594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37595 | (exit $ac_status); }; } && | |
37596 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37598 | (eval $ac_try) 2>&5 | |
37599 | ac_status=$? | |
37600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37601 | (exit $ac_status); }; }; then | |
37602 | ac_cv_lib_esd_esd_close=yes | |
37603 | else | |
37604 | echo "$as_me: failed program was:" >&5 | |
37605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37606 | ||
37607 | ac_cv_lib_esd_esd_close=no | |
37608 | fi | |
ac1cb8d3 VS |
37609 | rm -f conftest.err conftest.$ac_objext \ |
37610 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37611 | LIBS=$ac_check_lib_save_LIBS |
37612 | fi | |
37613 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
37614 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
37615 | if test $ac_cv_lib_esd_esd_close = yes; then | |
37616 | ||
37617 | ||
37618 | for ac_header in esd.h | |
37619 | do | |
37620 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37621 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37622 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37623 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37624 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37626 | fi | |
37627 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37628 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37629 | else | |
37630 | # Is the header compilable? | |
37631 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37632 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37633 | cat >conftest.$ac_ext <<_ACEOF | |
37634 | /* confdefs.h. */ | |
37635 | _ACEOF | |
37636 | cat confdefs.h >>conftest.$ac_ext | |
37637 | cat >>conftest.$ac_ext <<_ACEOF | |
37638 | /* end confdefs.h. */ | |
37639 | $ac_includes_default | |
37640 | #include <$ac_header> | |
37641 | _ACEOF | |
37642 | rm -f conftest.$ac_objext | |
37643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37644 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37645 | ac_status=$? |
ac1cb8d3 VS |
37646 | grep -v '^ *+' conftest.er1 >conftest.err |
37647 | rm -f conftest.er1 | |
37648 | cat conftest.err >&5 | |
a848cd7e SC |
37649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37650 | (exit $ac_status); } && | |
c9a66001 | 37651 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37653 | (eval $ac_try) 2>&5 | |
37654 | ac_status=$? | |
37655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37656 | (exit $ac_status); }; } && | |
37657 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37659 | (eval $ac_try) 2>&5 | |
37660 | ac_status=$? | |
37661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37662 | (exit $ac_status); }; }; then | |
37663 | ac_header_compiler=yes | |
37664 | else | |
37665 | echo "$as_me: failed program was:" >&5 | |
37666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37667 | ||
37668 | ac_header_compiler=no | |
37669 | fi | |
ac1cb8d3 | 37670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37671 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37672 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37673 | ||
37674 | # Is the header present? | |
37675 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37676 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37677 | cat >conftest.$ac_ext <<_ACEOF | |
37678 | /* confdefs.h. */ | |
37679 | _ACEOF | |
37680 | cat confdefs.h >>conftest.$ac_ext | |
37681 | cat >>conftest.$ac_ext <<_ACEOF | |
37682 | /* end confdefs.h. */ | |
37683 | #include <$ac_header> | |
37684 | _ACEOF | |
37685 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37686 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37687 | ac_status=$? | |
37688 | grep -v '^ *+' conftest.er1 >conftest.err | |
37689 | rm -f conftest.er1 | |
37690 | cat conftest.err >&5 | |
37691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37692 | (exit $ac_status); } >/dev/null; then | |
37693 | if test -s conftest.err; then | |
5d7b7554 VZ |
37694 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
37695 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
37696 | else |
37697 | ac_cpp_err= | |
37698 | fi | |
37699 | else | |
37700 | ac_cpp_err=yes | |
37701 | fi | |
37702 | if test -z "$ac_cpp_err"; then | |
37703 | ac_header_preproc=yes | |
37704 | else | |
37705 | echo "$as_me: failed program was:" >&5 | |
37706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37707 | ||
37708 | ac_header_preproc=no | |
37709 | fi | |
37710 | rm -f conftest.err conftest.$ac_ext | |
37711 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37712 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37713 | ||
37714 | # So? What about this header? | |
5d7b7554 | 37715 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 37716 | yes:no: ) |
a848cd7e SC |
37717 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37718 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37719 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37720 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37721 | ac_header_preproc=yes | |
a848cd7e | 37722 | ;; |
ac1cb8d3 | 37723 | no:yes:* ) |
a848cd7e SC |
37724 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37725 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37726 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37727 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37728 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37729 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37730 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37731 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37732 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37733 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37734 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37735 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37736 | ( |
37737 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37738 | ## ----------------------------------------- ## |
37739 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37740 | ## ----------------------------------------- ## | |
a848cd7e SC |
37741 | _ASBOX |
37742 | ) | | |
37743 | sed "s/^/$as_me: WARNING: /" >&2 | |
37744 | ;; | |
37745 | esac | |
37746 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37747 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37748 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37750 | else | |
ac1cb8d3 | 37751 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37752 | fi |
37753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37754 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37755 | ||
37756 | fi | |
37757 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37758 | cat >>confdefs.h <<_ACEOF | |
37759 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37760 | _ACEOF | |
37761 | ||
37762 | EXTRALIBS_ESD="-lesd" | |
37763 | ||
37764 | fi | |
37765 | ||
37766 | done | |
37767 | ||
37768 | ||
37769 | fi | |
37770 | ||
37771 | ||
37772 | ||
37773 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
37774 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
37775 | cat >conftest.$ac_ext <<_ACEOF | |
37776 | /* confdefs.h. */ | |
37777 | _ACEOF | |
37778 | cat confdefs.h >>conftest.$ac_ext | |
37779 | cat >>conftest.$ac_ext <<_ACEOF | |
37780 | /* end confdefs.h. */ | |
37781 | #ifdef __linux__ | |
37782 | #include <linux/cdrom.h> | |
37783 | #else | |
37784 | /* For Solaris */ | |
37785 | #include <sys/cdio.h> | |
37786 | #endif | |
37787 | ||
37788 | int | |
37789 | main () | |
37790 | { | |
37791 | struct cdrom_tocentry entry, old_entry; | |
37792 | ; | |
37793 | return 0; | |
37794 | } | |
37795 | _ACEOF | |
37796 | rm -f conftest.$ac_objext | |
37797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37798 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37799 | ac_status=$? |
ac1cb8d3 VS |
37800 | grep -v '^ *+' conftest.er1 >conftest.err |
37801 | rm -f conftest.er1 | |
37802 | cat conftest.err >&5 | |
a848cd7e SC |
37803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37804 | (exit $ac_status); } && | |
c9a66001 | 37805 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37807 | (eval $ac_try) 2>&5 | |
37808 | ac_status=$? | |
37809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37810 | (exit $ac_status); }; } && | |
37811 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37813 | (eval $ac_try) 2>&5 | |
37814 | ac_status=$? | |
37815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37816 | (exit $ac_status); }; }; then | |
37817 | echo "$as_me:$LINENO: result: yes" >&5 | |
37818 | echo "${ECHO_T}yes" >&6 | |
37819 | cat >>confdefs.h <<\_ACEOF | |
37820 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
37821 | _ACEOF | |
37822 | ||
37823 | else | |
37824 | echo "$as_me: failed program was:" >&5 | |
37825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37826 | ||
37827 | echo "$as_me:$LINENO: result: no" >&5 | |
37828 | echo "${ECHO_T}no" >&6 | |
37829 | fi | |
ac1cb8d3 | 37830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37831 | |
37832 | ||
37833 | cat >confcache <<\_ACEOF | |
37834 | # This file is a shell script that caches the results of configure | |
37835 | # tests run on this system so they can be shared between configure | |
37836 | # scripts and configure runs, see configure's option --config-cache. | |
37837 | # It is not useful on other systems. If it contains results you don't | |
37838 | # want to keep, you may remove or edit it. | |
37839 | # | |
37840 | # config.status only pays attention to the cache file if you give it | |
37841 | # the --recheck option to rerun configure. | |
37842 | # | |
37843 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
37844 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
37845 | # following values. | |
37846 | ||
37847 | _ACEOF | |
37848 | ||
37849 | # The following way of writing the cache mishandles newlines in values, | |
37850 | # but we know of no workaround that is simple, portable, and efficient. | |
37851 | # So, don't put newlines in cache variables' values. | |
37852 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
37853 | # and sets the high bit in the cache file unless we assign to the vars. | |
37854 | { | |
37855 | (set) 2>&1 | | |
37856 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
37857 | *ac_space=\ *) | |
37858 | # `set' does not quote correctly, so add quotes (double-quote | |
37859 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
37860 | sed -n \ | |
ac1cb8d3 VS |
37861 | "s/'/'\\\\''/g; |
37862 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
37863 | ;; |
37864 | *) | |
37865 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
37866 | sed -n \ | |
ac1cb8d3 | 37867 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
37868 | ;; |
37869 | esac; | |
37870 | } | | |
37871 | sed ' | |
37872 | t clear | |
37873 | : clear | |
37874 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
37875 | t end | |
37876 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
37877 | : end' >>confcache | |
37878 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
37879 | if test -w $cache_file; then | |
37880 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
37881 | cat confcache >$cache_file | |
37882 | else | |
37883 | echo "not updating unwritable cache $cache_file" | |
37884 | fi | |
37885 | fi | |
37886 | rm -f confcache | |
37887 | ||
37888 | ||
a848cd7e SC |
37889 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
37890 | ||
37891 | ||
37892 | THREADS_LINK= | |
e56f4f9e | 37893 | THREADS_CXXFLAGS= |
a848cd7e SC |
37894 | |
37895 | if test "$wxUSE_THREADS" = "yes" ; then | |
37896 | if test "$USE_BEOS" = 1; then | |
37897 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
37898 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
37899 | wxUSE_THREADS="no" | |
37900 | fi | |
37901 | fi | |
37902 | ||
37903 | if test "$wxUSE_THREADS" = "yes" ; then | |
37904 | ||
37905 | ||
37906 | THREAD_OPTS="-pthread" | |
37907 | case "${host}" in | |
37908 | *-*-solaris2* | *-*-sunos4* ) | |
37909 | if test "x$GCC" = "xyes"; then | |
37910 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
37911 | else | |
37912 | THREAD_OPTS="-mt $THREAD_OPTS" | |
37913 | fi | |
37914 | ;; | |
37915 | *-*-freebsd*) | |
37916 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
37917 | ;; | |
37918 | *-*-darwin* | *-*-cygwin* ) | |
37919 | THREAD_OPTS="" | |
37920 | ;; | |
37921 | *-*-aix*) | |
37922 | THREAD_OPTS="pthreads" | |
37923 | ;; | |
37924 | *-hp-hpux* ) | |
00421666 MW |
37925 | if test "x$GCC" = "xyes"; then |
37926 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
37927 | THREAD_OPTS="" | |
37928 | else | |
0093c2fc | 37929 | THREAD_OPTS="-mt" |
a848cd7e SC |
37930 | fi |
37931 | ;; | |
37932 | ||
37933 | *-*-irix* ) | |
37934 | if test "x$GCC" = "xyes"; then | |
37935 | THREAD_OPTS="" | |
37936 | fi | |
37937 | ;; | |
37938 | ||
37939 | *-*-*UnixWare*) | |
37940 | if test "x$GCC" != "xyes"; then | |
37941 | THREAD_OPTS="-Ethread" | |
37942 | fi | |
37943 | ;; | |
37944 | esac | |
37945 | ||
37946 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
37947 | ||
37948 | THREADS_OK=no | |
37949 | for flag in $THREAD_OPTS; do | |
37950 | case $flag in | |
37951 | none) | |
37952 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
37953 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
37954 | ;; | |
37955 | ||
37956 | -*) | |
37957 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
37958 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
e56f4f9e | 37959 | THREADS_CXXFLAGS="$flag" |
a848cd7e SC |
37960 | ;; |
37961 | ||
37962 | *) | |
37963 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
37964 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
37965 | THREADS_LINK="-l$flag" | |
37966 | ;; | |
37967 | esac | |
37968 | ||
37969 | save_LIBS="$LIBS" | |
e56f4f9e | 37970 | save_CXXFLAGS="$CXXFLAGS" |
a848cd7e | 37971 | LIBS="$THREADS_LINK $LIBS" |
e56f4f9e | 37972 | CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS" |
a848cd7e SC |
37973 | |
37974 | cat >conftest.$ac_ext <<_ACEOF | |
37975 | /* confdefs.h. */ | |
37976 | _ACEOF | |
37977 | cat confdefs.h >>conftest.$ac_ext | |
37978 | cat >>conftest.$ac_ext <<_ACEOF | |
37979 | /* end confdefs.h. */ | |
37980 | #include <pthread.h> | |
37981 | int | |
37982 | main () | |
37983 | { | |
37984 | pthread_create(0,0,0,0); | |
37985 | ; | |
37986 | return 0; | |
37987 | } | |
37988 | _ACEOF | |
37989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37991 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37992 | ac_status=$? |
ac1cb8d3 VS |
37993 | grep -v '^ *+' conftest.er1 >conftest.err |
37994 | rm -f conftest.er1 | |
37995 | cat conftest.err >&5 | |
a848cd7e SC |
37996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37997 | (exit $ac_status); } && | |
c9a66001 | 37998 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38000 | (eval $ac_try) 2>&5 | |
38001 | ac_status=$? | |
38002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38003 | (exit $ac_status); }; } && | |
38004 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38006 | (eval $ac_try) 2>&5 | |
38007 | ac_status=$? | |
38008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38009 | (exit $ac_status); }; }; then | |
38010 | THREADS_OK=yes | |
38011 | else | |
38012 | echo "$as_me: failed program was:" >&5 | |
38013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38014 | ||
38015 | fi | |
ac1cb8d3 VS |
38016 | rm -f conftest.err conftest.$ac_objext \ |
38017 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38018 | |
38019 | LIBS="$save_LIBS" | |
e56f4f9e | 38020 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
38021 | |
38022 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
38023 | echo "${ECHO_T}$THREADS_OK" >&6 | |
38024 | if test "x$THREADS_OK" = "xyes"; then | |
38025 | break; | |
38026 | fi | |
38027 | ||
38028 | THREADS_LINK="" | |
e56f4f9e | 38029 | THREADS_CXXFLAGS="" |
a848cd7e SC |
38030 | done |
38031 | ||
38032 | if test "x$THREADS_OK" != "xyes"; then | |
38033 | wxUSE_THREADS=no | |
38034 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
38035 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
38036 | else | |
e56f4f9e | 38037 | LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS" |
a848cd7e SC |
38038 | LIBS="$THREADS_LINK $LIBS" |
38039 | ||
38040 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
38041 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
38042 | flag=no | |
38043 | case "${host}" in | |
38044 | *-aix*) | |
38045 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
38046 | flag="-D_THREAD_SAFE" | |
38047 | ;; | |
38048 | *-freebsd*) | |
38049 | flag="-D_THREAD_SAFE" | |
38050 | ;; | |
38051 | *-hp-hpux* ) | |
38052 | flag="-D_REENTRANT" | |
38053 | if test "x$GCC" != "xyes"; then | |
38054 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
38055 | fi | |
38056 | ;; | |
38057 | *solaris* | alpha*-osf*) | |
38058 | flag="-D_REENTRANT" | |
38059 | ;; | |
38060 | esac | |
38061 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
38062 | echo "${ECHO_T}${flag}" >&6 | |
38063 | if test "x$flag" != xno; then | |
e56f4f9e | 38064 | THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag" |
a848cd7e SC |
38065 | fi |
38066 | ||
e56f4f9e | 38067 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS" |
a848cd7e SC |
38068 | fi |
38069 | fi | |
38070 | ||
38071 | if test "$wxUSE_THREADS" = "yes" ; then | |
38072 | ||
38073 | for ac_func in thr_setconcurrency | |
38074 | do | |
38075 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38076 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38077 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38078 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38080 | else | |
38081 | cat >conftest.$ac_ext <<_ACEOF | |
38082 | /* confdefs.h. */ | |
38083 | _ACEOF | |
38084 | cat confdefs.h >>conftest.$ac_ext | |
38085 | cat >>conftest.$ac_ext <<_ACEOF | |
38086 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38087 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38088 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38089 | #define $ac_func innocuous_$ac_func | |
38090 | ||
a848cd7e SC |
38091 | /* System header to define __stub macros and hopefully few prototypes, |
38092 | which can conflict with char $ac_func (); below. | |
38093 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38094 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38095 | |
a848cd7e SC |
38096 | #ifdef __STDC__ |
38097 | # include <limits.h> | |
38098 | #else | |
38099 | # include <assert.h> | |
38100 | #endif | |
ac1cb8d3 VS |
38101 | |
38102 | #undef $ac_func | |
38103 | ||
a848cd7e SC |
38104 | /* Override any gcc2 internal prototype to avoid an error. */ |
38105 | #ifdef __cplusplus | |
38106 | extern "C" | |
38107 | { | |
38108 | #endif | |
38109 | /* We use char because int might match the return type of a gcc2 | |
38110 | builtin and then its argument prototype would still apply. */ | |
38111 | char $ac_func (); | |
38112 | /* The GNU C library defines this for functions which it implements | |
38113 | to always fail with ENOSYS. Some functions are actually named | |
38114 | something starting with __ and the normal name is an alias. */ | |
38115 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38116 | choke me | |
38117 | #else | |
38118 | char (*f) () = $ac_func; | |
38119 | #endif | |
38120 | #ifdef __cplusplus | |
38121 | } | |
38122 | #endif | |
38123 | ||
38124 | int | |
38125 | main () | |
38126 | { | |
38127 | return f != $ac_func; | |
38128 | ; | |
38129 | return 0; | |
38130 | } | |
38131 | _ACEOF | |
38132 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38134 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38135 | ac_status=$? |
ac1cb8d3 VS |
38136 | grep -v '^ *+' conftest.er1 >conftest.err |
38137 | rm -f conftest.er1 | |
38138 | cat conftest.err >&5 | |
a848cd7e SC |
38139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38140 | (exit $ac_status); } && | |
c9a66001 | 38141 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38143 | (eval $ac_try) 2>&5 | |
38144 | ac_status=$? | |
38145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38146 | (exit $ac_status); }; } && | |
38147 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38149 | (eval $ac_try) 2>&5 | |
38150 | ac_status=$? | |
38151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38152 | (exit $ac_status); }; }; then | |
38153 | eval "$as_ac_var=yes" | |
38154 | else | |
38155 | echo "$as_me: failed program was:" >&5 | |
38156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38157 | ||
38158 | eval "$as_ac_var=no" | |
38159 | fi | |
ac1cb8d3 VS |
38160 | rm -f conftest.err conftest.$ac_objext \ |
38161 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38162 | fi |
38163 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38164 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38165 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38166 | cat >>confdefs.h <<_ACEOF | |
38167 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38168 | _ACEOF | |
38169 | ||
38170 | fi | |
38171 | done | |
38172 | ||
38173 | ||
6ebeb4c7 VZ |
38174 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
38175 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
38176 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
38177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38178 | else | |
38179 | ||
38180 | cat >conftest.$ac_ext <<_ACEOF | |
38181 | /* confdefs.h. */ | |
38182 | _ACEOF | |
38183 | cat confdefs.h >>conftest.$ac_ext | |
38184 | cat >>conftest.$ac_ext <<_ACEOF | |
38185 | /* end confdefs.h. */ | |
38186 | #include <pthread.h> | |
38187 | void ThreadCleanupFunc(void *p); | |
38188 | ||
38189 | int | |
38190 | main () | |
38191 | { | |
38192 | ||
38193 | void *p; | |
38194 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
38195 | pthread_cleanup_pop(0); | |
38196 | ||
38197 | ; | |
38198 | return 0; | |
38199 | } | |
38200 | _ACEOF | |
38201 | rm -f conftest.$ac_objext | |
38202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38203 | (eval $ac_compile) 2>conftest.er1 | |
38204 | ac_status=$? | |
38205 | grep -v '^ *+' conftest.er1 >conftest.err | |
38206 | rm -f conftest.er1 | |
38207 | cat conftest.err >&5 | |
38208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38209 | (exit $ac_status); } && | |
c9a66001 | 38210 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
38211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38212 | (eval $ac_try) 2>&5 | |
38213 | ac_status=$? | |
38214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38215 | (exit $ac_status); }; } && | |
38216 | { ac_try='test -s conftest.$ac_objext' | |
38217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38218 | (eval $ac_try) 2>&5 | |
38219 | ac_status=$? | |
38220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38221 | (exit $ac_status); }; }; then | |
38222 | ||
38223 | wx_cv_func_pthread_cleanup=yes | |
38224 | ||
38225 | else | |
38226 | echo "$as_me: failed program was:" >&5 | |
38227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38228 | ||
38229 | ||
38230 | wx_cv_func_pthread_cleanup=no | |
38231 | ||
38232 | ||
38233 | fi | |
38234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38235 | ||
38236 | fi | |
38237 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
38238 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
38239 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
38240 | cat >>confdefs.h <<\_ACEOF | |
38241 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
38242 | _ACEOF | |
38243 | ||
38244 | fi | |
38245 | ||
a848cd7e SC |
38246 | |
38247 | for ac_header in sched.h | |
38248 | do | |
38249 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38251 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38252 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38253 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38255 | fi | |
38256 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38257 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38258 | else | |
38259 | # Is the header compilable? | |
38260 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
38261 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
38262 | cat >conftest.$ac_ext <<_ACEOF | |
38263 | /* confdefs.h. */ | |
38264 | _ACEOF | |
38265 | cat confdefs.h >>conftest.$ac_ext | |
38266 | cat >>conftest.$ac_ext <<_ACEOF | |
38267 | /* end confdefs.h. */ | |
38268 | $ac_includes_default | |
38269 | #include <$ac_header> | |
38270 | _ACEOF | |
38271 | rm -f conftest.$ac_objext | |
38272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38273 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38274 | ac_status=$? |
ac1cb8d3 VS |
38275 | grep -v '^ *+' conftest.er1 >conftest.err |
38276 | rm -f conftest.er1 | |
38277 | cat conftest.err >&5 | |
a848cd7e SC |
38278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38279 | (exit $ac_status); } && | |
c9a66001 | 38280 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38282 | (eval $ac_try) 2>&5 | |
38283 | ac_status=$? | |
38284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38285 | (exit $ac_status); }; } && | |
38286 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38288 | (eval $ac_try) 2>&5 | |
38289 | ac_status=$? | |
38290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38291 | (exit $ac_status); }; }; then | |
38292 | ac_header_compiler=yes | |
38293 | else | |
38294 | echo "$as_me: failed program was:" >&5 | |
38295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38296 | ||
38297 | ac_header_compiler=no | |
38298 | fi | |
ac1cb8d3 | 38299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38300 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
38301 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
38302 | ||
38303 | # Is the header present? | |
38304 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
38305 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
38306 | cat >conftest.$ac_ext <<_ACEOF | |
38307 | /* confdefs.h. */ | |
38308 | _ACEOF | |
38309 | cat confdefs.h >>conftest.$ac_ext | |
38310 | cat >>conftest.$ac_ext <<_ACEOF | |
38311 | /* end confdefs.h. */ | |
38312 | #include <$ac_header> | |
38313 | _ACEOF | |
38314 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
38315 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
38316 | ac_status=$? | |
38317 | grep -v '^ *+' conftest.er1 >conftest.err | |
38318 | rm -f conftest.er1 | |
38319 | cat conftest.err >&5 | |
38320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38321 | (exit $ac_status); } >/dev/null; then | |
38322 | if test -s conftest.err; then | |
5d7b7554 VZ |
38323 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
38324 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
38325 | else |
38326 | ac_cpp_err= | |
38327 | fi | |
38328 | else | |
38329 | ac_cpp_err=yes | |
38330 | fi | |
38331 | if test -z "$ac_cpp_err"; then | |
38332 | ac_header_preproc=yes | |
38333 | else | |
38334 | echo "$as_me: failed program was:" >&5 | |
38335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38336 | ||
38337 | ac_header_preproc=no | |
38338 | fi | |
38339 | rm -f conftest.err conftest.$ac_ext | |
38340 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
38341 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
38342 | ||
38343 | # So? What about this header? | |
5d7b7554 | 38344 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 38345 | yes:no: ) |
a848cd7e SC |
38346 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
38347 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
38348 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
38349 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
38350 | ac_header_preproc=yes | |
a848cd7e | 38351 | ;; |
ac1cb8d3 | 38352 | no:yes:* ) |
a848cd7e SC |
38353 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
38354 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
38355 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
38356 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
38357 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
38358 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
38359 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
38360 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
38361 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
38362 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
38363 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
38364 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
38365 | ( |
38366 | cat <<\_ASBOX | |
ac1cb8d3 VS |
38367 | ## ----------------------------------------- ## |
38368 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
38369 | ## ----------------------------------------- ## | |
a848cd7e SC |
38370 | _ASBOX |
38371 | ) | | |
38372 | sed "s/^/$as_me: WARNING: /" >&2 | |
38373 | ;; | |
38374 | esac | |
38375 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38376 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38377 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38379 | else | |
ac1cb8d3 | 38380 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
38381 | fi |
38382 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38383 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38384 | ||
38385 | fi | |
38386 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38387 | cat >>confdefs.h <<_ACEOF | |
38388 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38389 | _ACEOF | |
38390 | ||
38391 | fi | |
38392 | ||
38393 | done | |
38394 | ||
38395 | if test "$ac_cv_header_sched_h" = "yes"; then | |
38396 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
38397 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
38398 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
38399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38400 | else | |
38401 | cat >conftest.$ac_ext <<_ACEOF | |
38402 | /* confdefs.h. */ | |
38403 | _ACEOF | |
38404 | cat confdefs.h >>conftest.$ac_ext | |
38405 | cat >>conftest.$ac_ext <<_ACEOF | |
38406 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38407 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
38408 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38409 | #define sched_yield innocuous_sched_yield | |
38410 | ||
a848cd7e SC |
38411 | /* System header to define __stub macros and hopefully few prototypes, |
38412 | which can conflict with char sched_yield (); below. | |
38413 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38414 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38415 | |
a848cd7e SC |
38416 | #ifdef __STDC__ |
38417 | # include <limits.h> | |
38418 | #else | |
38419 | # include <assert.h> | |
38420 | #endif | |
ac1cb8d3 VS |
38421 | |
38422 | #undef sched_yield | |
38423 | ||
a848cd7e SC |
38424 | /* Override any gcc2 internal prototype to avoid an error. */ |
38425 | #ifdef __cplusplus | |
38426 | extern "C" | |
38427 | { | |
38428 | #endif | |
38429 | /* We use char because int might match the return type of a gcc2 | |
38430 | builtin and then its argument prototype would still apply. */ | |
38431 | char sched_yield (); | |
38432 | /* The GNU C library defines this for functions which it implements | |
38433 | to always fail with ENOSYS. Some functions are actually named | |
38434 | something starting with __ and the normal name is an alias. */ | |
38435 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
38436 | choke me | |
38437 | #else | |
38438 | char (*f) () = sched_yield; | |
38439 | #endif | |
38440 | #ifdef __cplusplus | |
38441 | } | |
38442 | #endif | |
38443 | ||
38444 | int | |
38445 | main () | |
38446 | { | |
38447 | return f != sched_yield; | |
38448 | ; | |
38449 | return 0; | |
38450 | } | |
38451 | _ACEOF | |
38452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38454 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38455 | ac_status=$? |
ac1cb8d3 VS |
38456 | grep -v '^ *+' conftest.er1 >conftest.err |
38457 | rm -f conftest.er1 | |
38458 | cat conftest.err >&5 | |
a848cd7e SC |
38459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38460 | (exit $ac_status); } && | |
c9a66001 | 38461 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38463 | (eval $ac_try) 2>&5 | |
38464 | ac_status=$? | |
38465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38466 | (exit $ac_status); }; } && | |
38467 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38469 | (eval $ac_try) 2>&5 | |
38470 | ac_status=$? | |
38471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38472 | (exit $ac_status); }; }; then | |
38473 | ac_cv_func_sched_yield=yes | |
38474 | else | |
38475 | echo "$as_me: failed program was:" >&5 | |
38476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38477 | ||
38478 | ac_cv_func_sched_yield=no | |
38479 | fi | |
ac1cb8d3 VS |
38480 | rm -f conftest.err conftest.$ac_objext \ |
38481 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38482 | fi |
38483 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
38484 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
38485 | if test $ac_cv_func_sched_yield = yes; then | |
38486 | cat >>confdefs.h <<\_ACEOF | |
38487 | #define HAVE_SCHED_YIELD 1 | |
38488 | _ACEOF | |
38489 | ||
38490 | else | |
38491 | ||
38492 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
38493 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
38494 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
38495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38496 | else | |
38497 | ac_check_lib_save_LIBS=$LIBS | |
38498 | LIBS="-lposix4 $LIBS" | |
38499 | cat >conftest.$ac_ext <<_ACEOF | |
38500 | /* confdefs.h. */ | |
38501 | _ACEOF | |
38502 | cat confdefs.h >>conftest.$ac_ext | |
38503 | cat >>conftest.$ac_ext <<_ACEOF | |
38504 | /* end confdefs.h. */ | |
38505 | ||
38506 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38507 | #ifdef __cplusplus | |
38508 | extern "C" | |
38509 | #endif | |
38510 | /* We use char because int might match the return type of a gcc2 | |
38511 | builtin and then its argument prototype would still apply. */ | |
38512 | char sched_yield (); | |
38513 | int | |
38514 | main () | |
38515 | { | |
38516 | sched_yield (); | |
38517 | ; | |
38518 | return 0; | |
38519 | } | |
38520 | _ACEOF | |
38521 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38523 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38524 | ac_status=$? |
ac1cb8d3 VS |
38525 | grep -v '^ *+' conftest.er1 >conftest.err |
38526 | rm -f conftest.er1 | |
38527 | cat conftest.err >&5 | |
a848cd7e SC |
38528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38529 | (exit $ac_status); } && | |
c9a66001 | 38530 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38532 | (eval $ac_try) 2>&5 | |
38533 | ac_status=$? | |
38534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38535 | (exit $ac_status); }; } && | |
38536 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38538 | (eval $ac_try) 2>&5 | |
38539 | ac_status=$? | |
38540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38541 | (exit $ac_status); }; }; then | |
38542 | ac_cv_lib_posix4_sched_yield=yes | |
38543 | else | |
38544 | echo "$as_me: failed program was:" >&5 | |
38545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38546 | ||
38547 | ac_cv_lib_posix4_sched_yield=no | |
38548 | fi | |
ac1cb8d3 VS |
38549 | rm -f conftest.err conftest.$ac_objext \ |
38550 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38551 | LIBS=$ac_check_lib_save_LIBS |
38552 | fi | |
38553 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
38554 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
38555 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
38556 | cat >>confdefs.h <<\_ACEOF | |
38557 | #define HAVE_SCHED_YIELD 1 | |
38558 | _ACEOF | |
38559 | POSIX4_LINK=" -lposix4" | |
38560 | else | |
38561 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
38562 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
38563 | ||
38564 | fi | |
38565 | ||
38566 | ||
38567 | ||
38568 | fi | |
38569 | ||
38570 | fi | |
38571 | ||
38572 | HAVE_PRIOR_FUNCS=0 | |
38573 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
38574 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
38575 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
38576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38577 | else | |
38578 | cat >conftest.$ac_ext <<_ACEOF | |
38579 | /* confdefs.h. */ | |
38580 | _ACEOF | |
38581 | cat confdefs.h >>conftest.$ac_ext | |
38582 | cat >>conftest.$ac_ext <<_ACEOF | |
38583 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38584 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
38585 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38586 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
38587 | ||
a848cd7e SC |
38588 | /* System header to define __stub macros and hopefully few prototypes, |
38589 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
38590 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38591 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38592 | |
a848cd7e SC |
38593 | #ifdef __STDC__ |
38594 | # include <limits.h> | |
38595 | #else | |
38596 | # include <assert.h> | |
38597 | #endif | |
ac1cb8d3 VS |
38598 | |
38599 | #undef pthread_attr_getschedpolicy | |
38600 | ||
a848cd7e SC |
38601 | /* Override any gcc2 internal prototype to avoid an error. */ |
38602 | #ifdef __cplusplus | |
38603 | extern "C" | |
38604 | { | |
38605 | #endif | |
38606 | /* We use char because int might match the return type of a gcc2 | |
38607 | builtin and then its argument prototype would still apply. */ | |
38608 | char pthread_attr_getschedpolicy (); | |
38609 | /* The GNU C library defines this for functions which it implements | |
38610 | to always fail with ENOSYS. Some functions are actually named | |
38611 | something starting with __ and the normal name is an alias. */ | |
38612 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
38613 | choke me | |
38614 | #else | |
38615 | char (*f) () = pthread_attr_getschedpolicy; | |
38616 | #endif | |
38617 | #ifdef __cplusplus | |
38618 | } | |
38619 | #endif | |
38620 | ||
38621 | int | |
38622 | main () | |
38623 | { | |
38624 | return f != pthread_attr_getschedpolicy; | |
38625 | ; | |
38626 | return 0; | |
38627 | } | |
38628 | _ACEOF | |
38629 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38631 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38632 | ac_status=$? |
ac1cb8d3 VS |
38633 | grep -v '^ *+' conftest.er1 >conftest.err |
38634 | rm -f conftest.er1 | |
38635 | cat conftest.err >&5 | |
a848cd7e SC |
38636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38637 | (exit $ac_status); } && | |
c9a66001 | 38638 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38640 | (eval $ac_try) 2>&5 | |
38641 | ac_status=$? | |
38642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38643 | (exit $ac_status); }; } && | |
38644 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38646 | (eval $ac_try) 2>&5 | |
38647 | ac_status=$? | |
38648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38649 | (exit $ac_status); }; }; then | |
38650 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
38651 | else | |
38652 | echo "$as_me: failed program was:" >&5 | |
38653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38654 | ||
38655 | ac_cv_func_pthread_attr_getschedpolicy=no | |
38656 | fi | |
ac1cb8d3 VS |
38657 | rm -f conftest.err conftest.$ac_objext \ |
38658 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38659 | fi |
38660 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
38661 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
38662 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
38663 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
38664 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
38665 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
38666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38667 | else | |
38668 | cat >conftest.$ac_ext <<_ACEOF | |
38669 | /* confdefs.h. */ | |
38670 | _ACEOF | |
38671 | cat confdefs.h >>conftest.$ac_ext | |
38672 | cat >>conftest.$ac_ext <<_ACEOF | |
38673 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38674 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
38675 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38676 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
38677 | ||
a848cd7e SC |
38678 | /* System header to define __stub macros and hopefully few prototypes, |
38679 | which can conflict with char pthread_attr_setschedparam (); below. | |
38680 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38681 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38682 | |
a848cd7e SC |
38683 | #ifdef __STDC__ |
38684 | # include <limits.h> | |
38685 | #else | |
38686 | # include <assert.h> | |
38687 | #endif | |
ac1cb8d3 VS |
38688 | |
38689 | #undef pthread_attr_setschedparam | |
38690 | ||
a848cd7e SC |
38691 | /* Override any gcc2 internal prototype to avoid an error. */ |
38692 | #ifdef __cplusplus | |
38693 | extern "C" | |
38694 | { | |
38695 | #endif | |
38696 | /* We use char because int might match the return type of a gcc2 | |
38697 | builtin and then its argument prototype would still apply. */ | |
38698 | char pthread_attr_setschedparam (); | |
38699 | /* The GNU C library defines this for functions which it implements | |
38700 | to always fail with ENOSYS. Some functions are actually named | |
38701 | something starting with __ and the normal name is an alias. */ | |
38702 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
38703 | choke me | |
38704 | #else | |
38705 | char (*f) () = pthread_attr_setschedparam; | |
38706 | #endif | |
38707 | #ifdef __cplusplus | |
38708 | } | |
38709 | #endif | |
38710 | ||
38711 | int | |
38712 | main () | |
38713 | { | |
38714 | return f != pthread_attr_setschedparam; | |
38715 | ; | |
38716 | return 0; | |
38717 | } | |
38718 | _ACEOF | |
38719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38721 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38722 | ac_status=$? |
ac1cb8d3 VS |
38723 | grep -v '^ *+' conftest.er1 >conftest.err |
38724 | rm -f conftest.er1 | |
38725 | cat conftest.err >&5 | |
a848cd7e SC |
38726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38727 | (exit $ac_status); } && | |
c9a66001 | 38728 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38730 | (eval $ac_try) 2>&5 | |
38731 | ac_status=$? | |
38732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38733 | (exit $ac_status); }; } && | |
38734 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38736 | (eval $ac_try) 2>&5 | |
38737 | ac_status=$? | |
38738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38739 | (exit $ac_status); }; }; then | |
38740 | ac_cv_func_pthread_attr_setschedparam=yes | |
38741 | else | |
38742 | echo "$as_me: failed program was:" >&5 | |
38743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38744 | ||
38745 | ac_cv_func_pthread_attr_setschedparam=no | |
38746 | fi | |
ac1cb8d3 VS |
38747 | rm -f conftest.err conftest.$ac_objext \ |
38748 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38749 | fi |
38750 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
38751 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
38752 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
38753 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
38754 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
38755 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
38756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38757 | else | |
38758 | cat >conftest.$ac_ext <<_ACEOF | |
38759 | /* confdefs.h. */ | |
38760 | _ACEOF | |
38761 | cat confdefs.h >>conftest.$ac_ext | |
38762 | cat >>conftest.$ac_ext <<_ACEOF | |
38763 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38764 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
38765 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38766 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
38767 | ||
a848cd7e SC |
38768 | /* System header to define __stub macros and hopefully few prototypes, |
38769 | which can conflict with char sched_get_priority_max (); below. | |
38770 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38771 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38772 | |
a848cd7e SC |
38773 | #ifdef __STDC__ |
38774 | # include <limits.h> | |
38775 | #else | |
38776 | # include <assert.h> | |
38777 | #endif | |
ac1cb8d3 VS |
38778 | |
38779 | #undef sched_get_priority_max | |
38780 | ||
a848cd7e SC |
38781 | /* Override any gcc2 internal prototype to avoid an error. */ |
38782 | #ifdef __cplusplus | |
38783 | extern "C" | |
38784 | { | |
38785 | #endif | |
38786 | /* We use char because int might match the return type of a gcc2 | |
38787 | builtin and then its argument prototype would still apply. */ | |
38788 | char sched_get_priority_max (); | |
38789 | /* The GNU C library defines this for functions which it implements | |
38790 | to always fail with ENOSYS. Some functions are actually named | |
38791 | something starting with __ and the normal name is an alias. */ | |
38792 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
38793 | choke me | |
38794 | #else | |
38795 | char (*f) () = sched_get_priority_max; | |
38796 | #endif | |
38797 | #ifdef __cplusplus | |
38798 | } | |
38799 | #endif | |
38800 | ||
38801 | int | |
38802 | main () | |
38803 | { | |
38804 | return f != sched_get_priority_max; | |
38805 | ; | |
38806 | return 0; | |
38807 | } | |
38808 | _ACEOF | |
38809 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38811 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38812 | ac_status=$? |
ac1cb8d3 VS |
38813 | grep -v '^ *+' conftest.er1 >conftest.err |
38814 | rm -f conftest.er1 | |
38815 | cat conftest.err >&5 | |
a848cd7e SC |
38816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38817 | (exit $ac_status); } && | |
c9a66001 | 38818 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38820 | (eval $ac_try) 2>&5 | |
38821 | ac_status=$? | |
38822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38823 | (exit $ac_status); }; } && | |
38824 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38826 | (eval $ac_try) 2>&5 | |
38827 | ac_status=$? | |
38828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38829 | (exit $ac_status); }; }; then | |
38830 | ac_cv_func_sched_get_priority_max=yes | |
38831 | else | |
38832 | echo "$as_me: failed program was:" >&5 | |
38833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38834 | ||
38835 | ac_cv_func_sched_get_priority_max=no | |
38836 | fi | |
ac1cb8d3 VS |
38837 | rm -f conftest.err conftest.$ac_objext \ |
38838 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38839 | fi |
38840 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
38841 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
38842 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
38843 | HAVE_PRIOR_FUNCS=1 | |
38844 | else | |
38845 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
38846 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
38847 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
38848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38849 | else | |
38850 | ac_check_lib_save_LIBS=$LIBS | |
38851 | LIBS="-lposix4 $LIBS" | |
38852 | cat >conftest.$ac_ext <<_ACEOF | |
38853 | /* confdefs.h. */ | |
38854 | _ACEOF | |
38855 | cat confdefs.h >>conftest.$ac_ext | |
38856 | cat >>conftest.$ac_ext <<_ACEOF | |
38857 | /* end confdefs.h. */ | |
38858 | ||
38859 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38860 | #ifdef __cplusplus | |
38861 | extern "C" | |
38862 | #endif | |
38863 | /* We use char because int might match the return type of a gcc2 | |
38864 | builtin and then its argument prototype would still apply. */ | |
38865 | char sched_get_priority_max (); | |
38866 | int | |
38867 | main () | |
38868 | { | |
38869 | sched_get_priority_max (); | |
38870 | ; | |
38871 | return 0; | |
38872 | } | |
38873 | _ACEOF | |
38874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38876 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38877 | ac_status=$? |
ac1cb8d3 VS |
38878 | grep -v '^ *+' conftest.er1 >conftest.err |
38879 | rm -f conftest.er1 | |
38880 | cat conftest.err >&5 | |
a848cd7e SC |
38881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38882 | (exit $ac_status); } && | |
c9a66001 | 38883 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38885 | (eval $ac_try) 2>&5 | |
38886 | ac_status=$? | |
38887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38888 | (exit $ac_status); }; } && | |
38889 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38891 | (eval $ac_try) 2>&5 | |
38892 | ac_status=$? | |
38893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38894 | (exit $ac_status); }; }; then | |
38895 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
38896 | else | |
38897 | echo "$as_me: failed program was:" >&5 | |
38898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38899 | ||
38900 | ac_cv_lib_posix4_sched_get_priority_max=no | |
38901 | fi | |
ac1cb8d3 VS |
38902 | rm -f conftest.err conftest.$ac_objext \ |
38903 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38904 | LIBS=$ac_check_lib_save_LIBS |
38905 | fi | |
38906 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
38907 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
38908 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
38909 | ||
38910 | HAVE_PRIOR_FUNCS=1 | |
38911 | POSIX4_LINK=" -lposix4" | |
38912 | ||
38913 | fi | |
38914 | ||
38915 | ||
38916 | fi | |
38917 | ||
38918 | ||
38919 | fi | |
38920 | ||
38921 | ||
38922 | fi | |
38923 | ||
38924 | ||
38925 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
38926 | cat >>confdefs.h <<\_ACEOF | |
38927 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
38928 | _ACEOF | |
38929 | ||
38930 | else | |
38931 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
38932 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
38933 | fi | |
38934 | ||
38935 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
38936 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
38937 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
38938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38939 | else | |
38940 | cat >conftest.$ac_ext <<_ACEOF | |
38941 | /* confdefs.h. */ | |
38942 | _ACEOF | |
38943 | cat confdefs.h >>conftest.$ac_ext | |
38944 | cat >>conftest.$ac_ext <<_ACEOF | |
38945 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38946 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
38947 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38948 | #define pthread_cancel innocuous_pthread_cancel | |
38949 | ||
a848cd7e SC |
38950 | /* System header to define __stub macros and hopefully few prototypes, |
38951 | which can conflict with char pthread_cancel (); below. | |
38952 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38953 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38954 | |
a848cd7e SC |
38955 | #ifdef __STDC__ |
38956 | # include <limits.h> | |
38957 | #else | |
38958 | # include <assert.h> | |
38959 | #endif | |
ac1cb8d3 VS |
38960 | |
38961 | #undef pthread_cancel | |
38962 | ||
a848cd7e SC |
38963 | /* Override any gcc2 internal prototype to avoid an error. */ |
38964 | #ifdef __cplusplus | |
38965 | extern "C" | |
38966 | { | |
38967 | #endif | |
38968 | /* We use char because int might match the return type of a gcc2 | |
38969 | builtin and then its argument prototype would still apply. */ | |
38970 | char pthread_cancel (); | |
38971 | /* The GNU C library defines this for functions which it implements | |
38972 | to always fail with ENOSYS. Some functions are actually named | |
38973 | something starting with __ and the normal name is an alias. */ | |
38974 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
38975 | choke me | |
38976 | #else | |
38977 | char (*f) () = pthread_cancel; | |
38978 | #endif | |
38979 | #ifdef __cplusplus | |
38980 | } | |
38981 | #endif | |
38982 | ||
38983 | int | |
38984 | main () | |
38985 | { | |
38986 | return f != pthread_cancel; | |
38987 | ; | |
38988 | return 0; | |
38989 | } | |
38990 | _ACEOF | |
38991 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38993 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38994 | ac_status=$? |
ac1cb8d3 VS |
38995 | grep -v '^ *+' conftest.er1 >conftest.err |
38996 | rm -f conftest.er1 | |
38997 | cat conftest.err >&5 | |
a848cd7e SC |
38998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38999 | (exit $ac_status); } && | |
c9a66001 | 39000 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39002 | (eval $ac_try) 2>&5 | |
39003 | ac_status=$? | |
39004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39005 | (exit $ac_status); }; } && | |
39006 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39008 | (eval $ac_try) 2>&5 | |
39009 | ac_status=$? | |
39010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39011 | (exit $ac_status); }; }; then | |
39012 | ac_cv_func_pthread_cancel=yes | |
39013 | else | |
39014 | echo "$as_me: failed program was:" >&5 | |
39015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39016 | ||
39017 | ac_cv_func_pthread_cancel=no | |
39018 | fi | |
ac1cb8d3 VS |
39019 | rm -f conftest.err conftest.$ac_objext \ |
39020 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39021 | fi |
39022 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
39023 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
39024 | if test $ac_cv_func_pthread_cancel = yes; then | |
39025 | cat >>confdefs.h <<\_ACEOF | |
39026 | #define HAVE_PTHREAD_CANCEL 1 | |
39027 | _ACEOF | |
39028 | ||
39029 | else | |
39030 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
39031 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
39032 | fi | |
39033 | ||
39034 | ||
abc736fd MW |
39035 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
39036 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
39037 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
39038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39039 | else | |
39040 | cat >conftest.$ac_ext <<_ACEOF | |
39041 | /* confdefs.h. */ | |
39042 | _ACEOF | |
39043 | cat confdefs.h >>conftest.$ac_ext | |
39044 | cat >>conftest.$ac_ext <<_ACEOF | |
39045 | /* end confdefs.h. */ | |
39046 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
39047 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39048 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
39049 | ||
39050 | /* System header to define __stub macros and hopefully few prototypes, | |
39051 | which can conflict with char pthread_attr_setstacksize (); below. | |
39052 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39053 | <limits.h> exists even on freestanding compilers. */ | |
39054 | ||
39055 | #ifdef __STDC__ | |
39056 | # include <limits.h> | |
39057 | #else | |
39058 | # include <assert.h> | |
39059 | #endif | |
39060 | ||
39061 | #undef pthread_attr_setstacksize | |
39062 | ||
39063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39064 | #ifdef __cplusplus | |
39065 | extern "C" | |
39066 | { | |
39067 | #endif | |
39068 | /* We use char because int might match the return type of a gcc2 | |
39069 | builtin and then its argument prototype would still apply. */ | |
39070 | char pthread_attr_setstacksize (); | |
39071 | /* The GNU C library defines this for functions which it implements | |
39072 | to always fail with ENOSYS. Some functions are actually named | |
39073 | something starting with __ and the normal name is an alias. */ | |
39074 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
39075 | choke me | |
39076 | #else | |
39077 | char (*f) () = pthread_attr_setstacksize; | |
39078 | #endif | |
39079 | #ifdef __cplusplus | |
39080 | } | |
39081 | #endif | |
39082 | ||
39083 | int | |
39084 | main () | |
39085 | { | |
39086 | return f != pthread_attr_setstacksize; | |
39087 | ; | |
39088 | return 0; | |
39089 | } | |
39090 | _ACEOF | |
39091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39093 | (eval $ac_link) 2>conftest.er1 | |
39094 | ac_status=$? | |
39095 | grep -v '^ *+' conftest.er1 >conftest.err | |
39096 | rm -f conftest.er1 | |
39097 | cat conftest.err >&5 | |
39098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39099 | (exit $ac_status); } && | |
c9a66001 | 39100 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
39101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39102 | (eval $ac_try) 2>&5 | |
39103 | ac_status=$? | |
39104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39105 | (exit $ac_status); }; } && | |
39106 | { ac_try='test -s conftest$ac_exeext' | |
39107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39108 | (eval $ac_try) 2>&5 | |
39109 | ac_status=$? | |
39110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39111 | (exit $ac_status); }; }; then | |
39112 | ac_cv_func_pthread_attr_setstacksize=yes | |
39113 | else | |
39114 | echo "$as_me: failed program was:" >&5 | |
39115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39116 | ||
39117 | ac_cv_func_pthread_attr_setstacksize=no | |
39118 | fi | |
39119 | rm -f conftest.err conftest.$ac_objext \ | |
39120 | conftest$ac_exeext conftest.$ac_ext | |
39121 | fi | |
39122 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
39123 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
39124 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
39125 | cat >>confdefs.h <<\_ACEOF | |
39126 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
39127 | _ACEOF | |
39128 | ||
39129 | fi | |
39130 | ||
a848cd7e SC |
39131 | |
39132 | ||
39133 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
39134 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
39135 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
39136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39137 | else | |
39138 | ||
39139 | cat >conftest.$ac_ext <<_ACEOF | |
39140 | /* confdefs.h. */ | |
39141 | _ACEOF | |
39142 | cat confdefs.h >>conftest.$ac_ext | |
39143 | cat >>conftest.$ac_ext <<_ACEOF | |
39144 | /* end confdefs.h. */ | |
39145 | #include <pthread.h> | |
39146 | int | |
39147 | main () | |
39148 | { | |
39149 | ||
39150 | pthread_mutexattr_t attr; | |
39151 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
39152 | ||
39153 | ; | |
39154 | return 0; | |
39155 | } | |
39156 | _ACEOF | |
39157 | rm -f conftest.$ac_objext | |
39158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39159 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39160 | ac_status=$? |
ac1cb8d3 VS |
39161 | grep -v '^ *+' conftest.er1 >conftest.err |
39162 | rm -f conftest.er1 | |
39163 | cat conftest.err >&5 | |
a848cd7e SC |
39164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39165 | (exit $ac_status); } && | |
c9a66001 | 39166 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39168 | (eval $ac_try) 2>&5 | |
39169 | ac_status=$? | |
39170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39171 | (exit $ac_status); }; } && | |
39172 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39174 | (eval $ac_try) 2>&5 | |
39175 | ac_status=$? | |
39176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39177 | (exit $ac_status); }; }; then | |
123dca7d | 39178 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
39179 | else |
39180 | echo "$as_me: failed program was:" >&5 | |
39181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39182 | ||
123dca7d | 39183 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
39184 | |
39185 | fi | |
ac1cb8d3 | 39186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39187 | |
39188 | fi | |
39189 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
39190 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
39191 | ||
39192 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
39193 | cat >>confdefs.h <<\_ACEOF | |
39194 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
39195 | _ACEOF | |
39196 | ||
123dca7d VZ |
39197 | |
39198 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
39199 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
39200 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
39201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39202 | else | |
39203 | ||
39204 | cat >conftest.$ac_ext <<_ACEOF | |
39205 | /* confdefs.h. */ | |
39206 | _ACEOF | |
39207 | cat confdefs.h >>conftest.$ac_ext | |
39208 | cat >>conftest.$ac_ext <<_ACEOF | |
39209 | /* end confdefs.h. */ | |
39210 | #include <pthread.h> | |
39211 | int | |
39212 | main () | |
39213 | { | |
39214 | ||
39215 | pthread_mutexattr_t attr; | |
39216 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
39217 | ||
39218 | ; | |
39219 | return 0; | |
39220 | } | |
39221 | _ACEOF | |
39222 | rm -f conftest.$ac_objext | |
39223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39224 | (eval $ac_compile) 2>conftest.er1 | |
39225 | ac_status=$? | |
39226 | grep -v '^ *+' conftest.er1 >conftest.err | |
39227 | rm -f conftest.er1 | |
39228 | cat conftest.err >&5 | |
39229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39230 | (exit $ac_status); } && | |
c9a66001 | 39231 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
123dca7d VZ |
39232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39233 | (eval $ac_try) 2>&5 | |
39234 | ac_status=$? | |
39235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39236 | (exit $ac_status); }; } && | |
39237 | { ac_try='test -s conftest.$ac_objext' | |
39238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39239 | (eval $ac_try) 2>&5 | |
39240 | ac_status=$? | |
39241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39242 | (exit $ac_status); }; }; then | |
39243 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
39244 | else | |
39245 | echo "$as_me: failed program was:" >&5 | |
39246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39247 | ||
39248 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
39249 | ||
39250 | fi | |
39251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39252 | ||
39253 | fi | |
39254 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
39255 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
39256 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
39257 | cat >>confdefs.h <<\_ACEOF | |
39258 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
39259 | _ACEOF | |
39260 | ||
39261 | fi | |
a848cd7e SC |
39262 | else |
39263 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
39264 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
39265 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
39266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39267 | else | |
39268 | ||
39269 | cat >conftest.$ac_ext <<_ACEOF | |
39270 | /* confdefs.h. */ | |
39271 | _ACEOF | |
39272 | cat confdefs.h >>conftest.$ac_ext | |
39273 | cat >>conftest.$ac_ext <<_ACEOF | |
39274 | /* end confdefs.h. */ | |
39275 | #include <pthread.h> | |
39276 | int | |
39277 | main () | |
39278 | { | |
39279 | ||
39280 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
39281 | ||
39282 | ; | |
39283 | return 0; | |
39284 | } | |
39285 | _ACEOF | |
39286 | rm -f conftest.$ac_objext | |
39287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39288 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39289 | ac_status=$? |
ac1cb8d3 VS |
39290 | grep -v '^ *+' conftest.er1 >conftest.err |
39291 | rm -f conftest.er1 | |
39292 | cat conftest.err >&5 | |
a848cd7e SC |
39293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39294 | (exit $ac_status); } && | |
c9a66001 | 39295 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39297 | (eval $ac_try) 2>&5 | |
39298 | ac_status=$? | |
39299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39300 | (exit $ac_status); }; } && | |
39301 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39303 | (eval $ac_try) 2>&5 | |
39304 | ac_status=$? | |
39305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39306 | (exit $ac_status); }; }; then | |
39307 | ||
39308 | wx_cv_type_pthread_rec_mutex_init=yes | |
39309 | ||
39310 | else | |
39311 | echo "$as_me: failed program was:" >&5 | |
39312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39313 | ||
39314 | ||
39315 | wx_cv_type_pthread_rec_mutex_init=no | |
39316 | ||
39317 | ||
39318 | fi | |
ac1cb8d3 | 39319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39320 | |
39321 | fi | |
39322 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
39323 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
39324 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
39325 | cat >>confdefs.h <<\_ACEOF | |
39326 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
39327 | _ACEOF | |
39328 | ||
39329 | else | |
39330 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
39331 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
39332 | fi | |
39333 | fi | |
39334 | fi | |
39335 | ||
39336 | else | |
39337 | if test "$wxUSE_THREADS" = "yes" ; then | |
39338 | case "${host}" in | |
39339 | *-*-mingw32* ) | |
39340 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
39341 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
39342 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
39343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39344 | else | |
39345 | ||
e56f4f9e VZ |
39346 | CXXFLAGS_OLD="$CXXFLAGS" |
39347 | CXXFLAGS="-mthreads $CXXFLAGS" | |
a848cd7e SC |
39348 | cat >conftest.$ac_ext <<_ACEOF |
39349 | /* confdefs.h. */ | |
39350 | _ACEOF | |
39351 | cat confdefs.h >>conftest.$ac_ext | |
39352 | cat >>conftest.$ac_ext <<_ACEOF | |
39353 | /* end confdefs.h. */ | |
39354 | ||
39355 | int | |
39356 | main () | |
39357 | { | |
39358 | ||
39359 | ; | |
39360 | return 0; | |
39361 | } | |
39362 | _ACEOF | |
39363 | rm -f conftest.$ac_objext | |
39364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39365 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39366 | ac_status=$? |
ac1cb8d3 VS |
39367 | grep -v '^ *+' conftest.er1 >conftest.err |
39368 | rm -f conftest.er1 | |
39369 | cat conftest.err >&5 | |
a848cd7e SC |
39370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39371 | (exit $ac_status); } && | |
c9a66001 | 39372 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39374 | (eval $ac_try) 2>&5 | |
39375 | ac_status=$? | |
39376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39377 | (exit $ac_status); }; } && | |
39378 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39380 | (eval $ac_try) 2>&5 | |
39381 | ac_status=$? | |
39382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39383 | (exit $ac_status); }; }; then | |
39384 | wx_cv_cflags_mthread=yes | |
39385 | else | |
39386 | echo "$as_me: failed program was:" >&5 | |
39387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39388 | ||
39389 | wx_cv_cflags_mthread=no | |
39390 | ||
39391 | fi | |
ac1cb8d3 | 39392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39393 | |
39394 | ||
39395 | fi | |
39396 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
39397 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
39398 | ||
39399 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
e56f4f9e | 39400 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads" |
a848cd7e SC |
39401 | LDFLAGS="$LDFLAGS -mthreads" |
39402 | else | |
e56f4f9e | 39403 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
39404 | fi |
39405 | ;; | |
39406 | *-pc-os2*emx ) | |
5ff751d6 VZ |
39407 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
39408 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
a848cd7e SC |
39409 | LDFLAGS="$LDFLAGS -Zmt" |
39410 | ;; | |
39411 | esac | |
39412 | fi | |
39413 | fi | |
39414 | ||
004ee6da RL |
39415 | echo "$as_me:$LINENO: checking for localtime_r" >&5 |
39416 | echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 | |
39417 | if test "${ac_cv_func_localtime_r+set}" = set; then | |
a848cd7e SC |
39418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
39419 | else | |
39420 | cat >conftest.$ac_ext <<_ACEOF | |
39421 | /* confdefs.h. */ | |
39422 | _ACEOF | |
39423 | cat confdefs.h >>conftest.$ac_ext | |
39424 | cat >>conftest.$ac_ext <<_ACEOF | |
39425 | /* end confdefs.h. */ | |
004ee6da | 39426 | /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. |
ac1cb8d3 | 39427 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
004ee6da | 39428 | #define localtime_r innocuous_localtime_r |
ac1cb8d3 | 39429 | |
a848cd7e | 39430 | /* System header to define __stub macros and hopefully few prototypes, |
004ee6da | 39431 | which can conflict with char localtime_r (); below. |
a848cd7e SC |
39432 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
39433 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39434 | |
a848cd7e SC |
39435 | #ifdef __STDC__ |
39436 | # include <limits.h> | |
39437 | #else | |
39438 | # include <assert.h> | |
39439 | #endif | |
ac1cb8d3 | 39440 | |
004ee6da | 39441 | #undef localtime_r |
ac1cb8d3 | 39442 | |
a848cd7e SC |
39443 | /* Override any gcc2 internal prototype to avoid an error. */ |
39444 | #ifdef __cplusplus | |
39445 | extern "C" | |
39446 | { | |
39447 | #endif | |
39448 | /* We use char because int might match the return type of a gcc2 | |
39449 | builtin and then its argument prototype would still apply. */ | |
004ee6da | 39450 | char localtime_r (); |
a848cd7e SC |
39451 | /* The GNU C library defines this for functions which it implements |
39452 | to always fail with ENOSYS. Some functions are actually named | |
39453 | something starting with __ and the normal name is an alias. */ | |
004ee6da | 39454 | #if defined (__stub_localtime_r) || defined (__stub___localtime_r) |
a848cd7e SC |
39455 | choke me |
39456 | #else | |
004ee6da | 39457 | char (*f) () = localtime_r; |
a848cd7e SC |
39458 | #endif |
39459 | #ifdef __cplusplus | |
39460 | } | |
39461 | #endif | |
39462 | ||
39463 | int | |
39464 | main () | |
39465 | { | |
004ee6da RL |
39466 | return f != localtime_r; |
39467 | ; | |
39468 | return 0; | |
39469 | } | |
39470 | _ACEOF | |
39471 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39473 | (eval $ac_link) 2>conftest.er1 | |
39474 | ac_status=$? | |
39475 | grep -v '^ *+' conftest.er1 >conftest.err | |
39476 | rm -f conftest.er1 | |
39477 | cat conftest.err >&5 | |
39478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39479 | (exit $ac_status); } && | |
c9a66001 | 39480 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39482 | (eval $ac_try) 2>&5 | |
39483 | ac_status=$? | |
39484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39485 | (exit $ac_status); }; } && | |
39486 | { ac_try='test -s conftest$ac_exeext' | |
39487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39488 | (eval $ac_try) 2>&5 | |
39489 | ac_status=$? | |
39490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39491 | (exit $ac_status); }; }; then | |
39492 | ac_cv_func_localtime_r=yes | |
39493 | else | |
39494 | echo "$as_me: failed program was:" >&5 | |
39495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39496 | ||
39497 | ac_cv_func_localtime_r=no | |
39498 | fi | |
39499 | rm -f conftest.err conftest.$ac_objext \ | |
39500 | conftest$ac_exeext conftest.$ac_ext | |
39501 | fi | |
39502 | echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 | |
39503 | echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 | |
39504 | if test $ac_cv_func_localtime_r = yes; then | |
39505 | cat >>confdefs.h <<\_ACEOF | |
39506 | #define HAVE_LOCALTIME_R 1 | |
39507 | _ACEOF | |
39508 | ||
39509 | fi | |
39510 | ||
39511 | echo "$as_me:$LINENO: checking for gmtime_r" >&5 | |
39512 | echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6 | |
39513 | if test "${ac_cv_func_gmtime_r+set}" = set; then | |
39514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39515 | else | |
39516 | cat >conftest.$ac_ext <<_ACEOF | |
39517 | /* confdefs.h. */ | |
39518 | _ACEOF | |
39519 | cat confdefs.h >>conftest.$ac_ext | |
39520 | cat >>conftest.$ac_ext <<_ACEOF | |
39521 | /* end confdefs.h. */ | |
39522 | /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. | |
39523 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39524 | #define gmtime_r innocuous_gmtime_r | |
39525 | ||
39526 | /* System header to define __stub macros and hopefully few prototypes, | |
39527 | which can conflict with char gmtime_r (); below. | |
39528 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39529 | <limits.h> exists even on freestanding compilers. */ | |
39530 | ||
39531 | #ifdef __STDC__ | |
39532 | # include <limits.h> | |
39533 | #else | |
39534 | # include <assert.h> | |
39535 | #endif | |
39536 | ||
39537 | #undef gmtime_r | |
39538 | ||
39539 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39540 | #ifdef __cplusplus | |
39541 | extern "C" | |
39542 | { | |
39543 | #endif | |
39544 | /* We use char because int might match the return type of a gcc2 | |
39545 | builtin and then its argument prototype would still apply. */ | |
39546 | char gmtime_r (); | |
39547 | /* The GNU C library defines this for functions which it implements | |
39548 | to always fail with ENOSYS. Some functions are actually named | |
39549 | something starting with __ and the normal name is an alias. */ | |
39550 | #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) | |
39551 | choke me | |
39552 | #else | |
39553 | char (*f) () = gmtime_r; | |
39554 | #endif | |
39555 | #ifdef __cplusplus | |
39556 | } | |
39557 | #endif | |
39558 | ||
39559 | int | |
39560 | main () | |
39561 | { | |
39562 | return f != gmtime_r; | |
39563 | ; | |
39564 | return 0; | |
39565 | } | |
39566 | _ACEOF | |
39567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39569 | (eval $ac_link) 2>conftest.er1 | |
39570 | ac_status=$? | |
39571 | grep -v '^ *+' conftest.er1 >conftest.err | |
39572 | rm -f conftest.er1 | |
39573 | cat conftest.err >&5 | |
39574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39575 | (exit $ac_status); } && | |
c9a66001 | 39576 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39578 | (eval $ac_try) 2>&5 | |
39579 | ac_status=$? | |
39580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39581 | (exit $ac_status); }; } && | |
39582 | { ac_try='test -s conftest$ac_exeext' | |
39583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39584 | (eval $ac_try) 2>&5 | |
39585 | ac_status=$? | |
39586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39587 | (exit $ac_status); }; }; then | |
39588 | ac_cv_func_gmtime_r=yes | |
39589 | else | |
39590 | echo "$as_me: failed program was:" >&5 | |
39591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39592 | ||
39593 | ac_cv_func_gmtime_r=no | |
39594 | fi | |
39595 | rm -f conftest.err conftest.$ac_objext \ | |
39596 | conftest$ac_exeext conftest.$ac_ext | |
39597 | fi | |
39598 | echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 | |
39599 | echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6 | |
39600 | if test $ac_cv_func_gmtime_r = yes; then | |
39601 | cat >>confdefs.h <<\_ACEOF | |
39602 | #define HAVE_GMTIME_R 1 | |
39603 | _ACEOF | |
39604 | ||
39605 | fi | |
39606 | ||
39607 | echo "$as_me:$LINENO: checking for readdir_r" >&5 | |
39608 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6 | |
39609 | if test "${ac_cv_func_readdir_r+set}" = set; then | |
39610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39611 | else | |
39612 | cat >conftest.$ac_ext <<_ACEOF | |
39613 | /* confdefs.h. */ | |
39614 | _ACEOF | |
39615 | cat confdefs.h >>conftest.$ac_ext | |
39616 | cat >>conftest.$ac_ext <<_ACEOF | |
39617 | /* end confdefs.h. */ | |
39618 | /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r. | |
39619 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39620 | #define readdir_r innocuous_readdir_r | |
39621 | ||
39622 | /* System header to define __stub macros and hopefully few prototypes, | |
39623 | which can conflict with char readdir_r (); below. | |
39624 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39625 | <limits.h> exists even on freestanding compilers. */ | |
39626 | ||
39627 | #ifdef __STDC__ | |
39628 | # include <limits.h> | |
39629 | #else | |
39630 | # include <assert.h> | |
39631 | #endif | |
39632 | ||
39633 | #undef readdir_r | |
39634 | ||
39635 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39636 | #ifdef __cplusplus | |
39637 | extern "C" | |
39638 | { | |
39639 | #endif | |
39640 | /* We use char because int might match the return type of a gcc2 | |
39641 | builtin and then its argument prototype would still apply. */ | |
39642 | char readdir_r (); | |
39643 | /* The GNU C library defines this for functions which it implements | |
39644 | to always fail with ENOSYS. Some functions are actually named | |
39645 | something starting with __ and the normal name is an alias. */ | |
39646 | #if defined (__stub_readdir_r) || defined (__stub___readdir_r) | |
39647 | choke me | |
39648 | #else | |
39649 | char (*f) () = readdir_r; | |
39650 | #endif | |
39651 | #ifdef __cplusplus | |
39652 | } | |
39653 | #endif | |
39654 | ||
39655 | int | |
39656 | main () | |
39657 | { | |
39658 | return f != readdir_r; | |
39659 | ; | |
39660 | return 0; | |
39661 | } | |
39662 | _ACEOF | |
39663 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39665 | (eval $ac_link) 2>conftest.er1 | |
39666 | ac_status=$? | |
39667 | grep -v '^ *+' conftest.er1 >conftest.err | |
39668 | rm -f conftest.er1 | |
39669 | cat conftest.err >&5 | |
39670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39671 | (exit $ac_status); } && | |
c9a66001 | 39672 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39674 | (eval $ac_try) 2>&5 | |
39675 | ac_status=$? | |
39676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39677 | (exit $ac_status); }; } && | |
39678 | { ac_try='test -s conftest$ac_exeext' | |
39679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39680 | (eval $ac_try) 2>&5 | |
39681 | ac_status=$? | |
39682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39683 | (exit $ac_status); }; }; then | |
39684 | ac_cv_func_readdir_r=yes | |
39685 | else | |
39686 | echo "$as_me: failed program was:" >&5 | |
39687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39688 | ||
39689 | ac_cv_func_readdir_r=no | |
39690 | fi | |
39691 | rm -f conftest.err conftest.$ac_objext \ | |
39692 | conftest$ac_exeext conftest.$ac_ext | |
39693 | fi | |
39694 | echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5 | |
39695 | echo "${ECHO_T}$ac_cv_func_readdir_r" >&6 | |
39696 | if test $ac_cv_func_readdir_r = yes; then | |
39697 | cat >>confdefs.h <<\_ACEOF | |
39698 | #define HAVE_READDIR_R 1 | |
39699 | _ACEOF | |
39700 | ||
39701 | fi | |
39702 | ||
004ee6da | 39703 | |
004ee6da RL |
39704 | |
39705 | ||
39706 | ac_ext=c | |
39707 | ac_cpp='$CPP $CPPFLAGS' | |
39708 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39709 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39710 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39711 | ||
39712 | echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 | |
39713 | echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6 | |
39714 | ||
39715 | if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then | |
39716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39717 | else | |
39718 | ||
39719 | ||
2f6c5bb5 | 39720 | ################################################################ |
004ee6da RL |
39721 | |
39722 | ac_cv_func_which_gethostbyname_r=unknown | |
39723 | ||
39724 | # | |
39725 | # ONE ARGUMENT (sanity check) | |
39726 | # | |
39727 | ||
39728 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
39729 | # a single argument. If it actually compiles, then we can assume that | |
39730 | # netdb.h is not declaring the function, and the compiler is thereby | |
39731 | # assuming an implicit prototype. In which case, we're out of luck. | |
39732 | # | |
39733 | cat >conftest.$ac_ext <<_ACEOF | |
39734 | /* confdefs.h. */ | |
39735 | _ACEOF | |
39736 | cat confdefs.h >>conftest.$ac_ext | |
39737 | cat >>conftest.$ac_ext <<_ACEOF | |
39738 | /* end confdefs.h. */ | |
39739 | #include <netdb.h> | |
39740 | int | |
39741 | main () | |
39742 | { | |
39743 | ||
39744 | char *name = "www.gnu.org"; | |
39745 | (void)gethostbyname_r(name) /* ; */ | |
39746 | ||
39747 | ; | |
39748 | return 0; | |
39749 | } | |
39750 | _ACEOF | |
39751 | rm -f conftest.$ac_objext | |
39752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39753 | (eval $ac_compile) 2>conftest.er1 | |
39754 | ac_status=$? | |
39755 | grep -v '^ *+' conftest.er1 >conftest.err | |
39756 | rm -f conftest.er1 | |
39757 | cat conftest.err >&5 | |
39758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39759 | (exit $ac_status); } && | |
c9a66001 | 39760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39762 | (eval $ac_try) 2>&5 | |
39763 | ac_status=$? | |
39764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39765 | (exit $ac_status); }; } && | |
39766 | { ac_try='test -s conftest.$ac_objext' | |
39767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39768 | (eval $ac_try) 2>&5 | |
39769 | ac_status=$? | |
39770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39771 | (exit $ac_status); }; }; then | |
39772 | ac_cv_func_which_gethostbyname_r=no | |
39773 | else | |
39774 | echo "$as_me: failed program was:" >&5 | |
39775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39776 | ||
39777 | fi | |
39778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39779 | ||
39780 | # | |
39781 | # SIX ARGUMENTS | |
39782 | # (e.g. Linux) | |
39783 | # | |
39784 | ||
39785 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39786 | ||
39787 | cat >conftest.$ac_ext <<_ACEOF | |
39788 | /* confdefs.h. */ | |
39789 | _ACEOF | |
39790 | cat confdefs.h >>conftest.$ac_ext | |
39791 | cat >>conftest.$ac_ext <<_ACEOF | |
39792 | /* end confdefs.h. */ | |
39793 | #include <netdb.h> | |
39794 | int | |
39795 | main () | |
39796 | { | |
39797 | ||
39798 | char *name = "www.gnu.org"; | |
39799 | struct hostent ret, *retp; | |
39800 | char buf[1024]; | |
39801 | int buflen = 1024; | |
39802 | int my_h_errno; | |
39803 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
39804 | ||
39805 | ; | |
39806 | return 0; | |
39807 | } | |
39808 | _ACEOF | |
39809 | rm -f conftest.$ac_objext | |
39810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39811 | (eval $ac_compile) 2>conftest.er1 | |
39812 | ac_status=$? | |
39813 | grep -v '^ *+' conftest.er1 >conftest.err | |
39814 | rm -f conftest.er1 | |
39815 | cat conftest.err >&5 | |
39816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39817 | (exit $ac_status); } && | |
c9a66001 | 39818 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39820 | (eval $ac_try) 2>&5 | |
39821 | ac_status=$? | |
39822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39823 | (exit $ac_status); }; } && | |
39824 | { ac_try='test -s conftest.$ac_objext' | |
39825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39826 | (eval $ac_try) 2>&5 | |
39827 | ac_status=$? | |
39828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39829 | (exit $ac_status); }; }; then | |
39830 | ac_cv_func_which_gethostbyname_r=six | |
39831 | else | |
39832 | echo "$as_me: failed program was:" >&5 | |
39833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39834 | ||
39835 | fi | |
39836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39837 | ||
39838 | fi | |
39839 | ||
39840 | # | |
39841 | # FIVE ARGUMENTS | |
39842 | # (e.g. Solaris) | |
39843 | # | |
39844 | ||
39845 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39846 | ||
39847 | cat >conftest.$ac_ext <<_ACEOF | |
39848 | /* confdefs.h. */ | |
39849 | _ACEOF | |
39850 | cat confdefs.h >>conftest.$ac_ext | |
39851 | cat >>conftest.$ac_ext <<_ACEOF | |
39852 | /* end confdefs.h. */ | |
39853 | #include <netdb.h> | |
39854 | int | |
39855 | main () | |
39856 | { | |
39857 | ||
39858 | char *name = "www.gnu.org"; | |
39859 | struct hostent ret; | |
39860 | char buf[1024]; | |
39861 | int buflen = 1024; | |
39862 | int my_h_errno; | |
39863 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
39864 | ||
39865 | ; | |
39866 | return 0; | |
39867 | } | |
39868 | _ACEOF | |
39869 | rm -f conftest.$ac_objext | |
39870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39871 | (eval $ac_compile) 2>conftest.er1 | |
39872 | ac_status=$? | |
39873 | grep -v '^ *+' conftest.er1 >conftest.err | |
39874 | rm -f conftest.er1 | |
39875 | cat conftest.err >&5 | |
39876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39877 | (exit $ac_status); } && | |
c9a66001 | 39878 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39880 | (eval $ac_try) 2>&5 | |
39881 | ac_status=$? | |
39882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39883 | (exit $ac_status); }; } && | |
39884 | { ac_try='test -s conftest.$ac_objext' | |
39885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39886 | (eval $ac_try) 2>&5 | |
39887 | ac_status=$? | |
39888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39889 | (exit $ac_status); }; }; then | |
39890 | ac_cv_func_which_gethostbyname_r=five | |
39891 | else | |
39892 | echo "$as_me: failed program was:" >&5 | |
39893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39894 | ||
39895 | fi | |
39896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39897 | ||
39898 | fi | |
39899 | ||
39900 | # | |
39901 | # THREE ARGUMENTS | |
39902 | # (e.g. AIX, HP-UX, Tru64) | |
39903 | # | |
39904 | ||
39905 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39906 | ||
39907 | cat >conftest.$ac_ext <<_ACEOF | |
39908 | /* confdefs.h. */ | |
39909 | _ACEOF | |
39910 | cat confdefs.h >>conftest.$ac_ext | |
39911 | cat >>conftest.$ac_ext <<_ACEOF | |
39912 | /* end confdefs.h. */ | |
39913 | #include <netdb.h> | |
39914 | int | |
39915 | main () | |
39916 | { | |
39917 | ||
39918 | char *name = "www.gnu.org"; | |
39919 | struct hostent ret; | |
39920 | struct hostent_data data; | |
39921 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
39922 | ||
39923 | ; | |
39924 | return 0; | |
39925 | } | |
39926 | _ACEOF | |
39927 | rm -f conftest.$ac_objext | |
39928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39929 | (eval $ac_compile) 2>conftest.er1 | |
39930 | ac_status=$? | |
39931 | grep -v '^ *+' conftest.er1 >conftest.err | |
39932 | rm -f conftest.er1 | |
39933 | cat conftest.err >&5 | |
39934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39935 | (exit $ac_status); } && | |
c9a66001 | 39936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39938 | (eval $ac_try) 2>&5 | |
39939 | ac_status=$? | |
39940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39941 | (exit $ac_status); }; } && | |
39942 | { ac_try='test -s conftest.$ac_objext' | |
39943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39944 | (eval $ac_try) 2>&5 | |
39945 | ac_status=$? | |
39946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39947 | (exit $ac_status); }; }; then | |
39948 | ac_cv_func_which_gethostbyname_r=three | |
39949 | else | |
39950 | echo "$as_me: failed program was:" >&5 | |
39951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39952 | ||
39953 | fi | |
39954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39955 | ||
39956 | fi | |
39957 | ||
2f6c5bb5 | 39958 | ################################################################ |
004ee6da RL |
39959 | |
39960 | ||
39961 | fi | |
39962 | ||
39963 | case "$ac_cv_func_which_gethostbyname_r" in | |
39964 | three) | |
39965 | echo "$as_me:$LINENO: result: three" >&5 | |
39966 | echo "${ECHO_T}three" >&6 | |
39967 | cat >>confdefs.h <<\_ACEOF | |
39968 | #define HAVE_FUNC_GETHOSTBYNAME_R_3 1 | |
39969 | _ACEOF | |
39970 | ||
39971 | ;; | |
39972 | ||
39973 | five) | |
39974 | echo "$as_me:$LINENO: result: five" >&5 | |
39975 | echo "${ECHO_T}five" >&6 | |
39976 | cat >>confdefs.h <<\_ACEOF | |
39977 | #define HAVE_FUNC_GETHOSTBYNAME_R_5 1 | |
39978 | _ACEOF | |
39979 | ||
39980 | ;; | |
39981 | ||
39982 | six) | |
39983 | echo "$as_me:$LINENO: result: six" >&5 | |
39984 | echo "${ECHO_T}six" >&6 | |
39985 | cat >>confdefs.h <<\_ACEOF | |
39986 | #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 | |
39987 | _ACEOF | |
39988 | ||
39989 | ;; | |
39990 | ||
39991 | no) | |
39992 | echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 | |
39993 | echo "${ECHO_T}cannot find function declaration in netdb.h" >&6 | |
39994 | ;; | |
39995 | ||
39996 | unknown) | |
39997 | echo "$as_me:$LINENO: result: can't tell" >&5 | |
39998 | echo "${ECHO_T}can't tell" >&6 | |
39999 | ;; | |
40000 | ||
40001 | *) | |
40002 | { { echo "$as_me:$LINENO: error: internal error" >&5 | |
40003 | echo "$as_me: error: internal error" >&2;} | |
40004 | { (exit 1); exit 1; }; } | |
40005 | ;; | |
40006 | esac | |
40007 | ||
5ec3bc43 JS |
40008 | ac_ext=cc |
40009 | ac_cpp='$CXXCPP $CPPFLAGS' | |
40010 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40011 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40012 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
004ee6da RL |
40013 | |
40014 | ||
40015 | ||
40016 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
40017 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then | |
40018 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
40019 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
40020 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
40021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40022 | else | |
40023 | cat >conftest.$ac_ext <<_ACEOF | |
40024 | /* confdefs.h. */ | |
40025 | _ACEOF | |
40026 | cat confdefs.h >>conftest.$ac_ext | |
40027 | cat >>conftest.$ac_ext <<_ACEOF | |
40028 | /* end confdefs.h. */ | |
40029 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
40030 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40031 | #define gethostbyname innocuous_gethostbyname | |
40032 | ||
40033 | /* System header to define __stub macros and hopefully few prototypes, | |
40034 | which can conflict with char gethostbyname (); below. | |
40035 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40036 | <limits.h> exists even on freestanding compilers. */ | |
40037 | ||
40038 | #ifdef __STDC__ | |
40039 | # include <limits.h> | |
40040 | #else | |
40041 | # include <assert.h> | |
40042 | #endif | |
40043 | ||
40044 | #undef gethostbyname | |
40045 | ||
40046 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40047 | #ifdef __cplusplus | |
40048 | extern "C" | |
40049 | { | |
40050 | #endif | |
40051 | /* We use char because int might match the return type of a gcc2 | |
40052 | builtin and then its argument prototype would still apply. */ | |
40053 | char gethostbyname (); | |
40054 | /* The GNU C library defines this for functions which it implements | |
40055 | to always fail with ENOSYS. Some functions are actually named | |
40056 | something starting with __ and the normal name is an alias. */ | |
40057 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
40058 | choke me | |
40059 | #else | |
40060 | char (*f) () = gethostbyname; | |
40061 | #endif | |
40062 | #ifdef __cplusplus | |
40063 | } | |
40064 | #endif | |
40065 | ||
40066 | int | |
40067 | main () | |
40068 | { | |
40069 | return f != gethostbyname; | |
40070 | ; | |
40071 | return 0; | |
40072 | } | |
40073 | _ACEOF | |
40074 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40076 | (eval $ac_link) 2>conftest.er1 | |
40077 | ac_status=$? | |
40078 | grep -v '^ *+' conftest.er1 >conftest.err | |
40079 | rm -f conftest.er1 | |
40080 | cat conftest.err >&5 | |
40081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40082 | (exit $ac_status); } && | |
c9a66001 | 40083 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40085 | (eval $ac_try) 2>&5 | |
40086 | ac_status=$? | |
40087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40088 | (exit $ac_status); }; } && | |
40089 | { ac_try='test -s conftest$ac_exeext' | |
40090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40091 | (eval $ac_try) 2>&5 | |
40092 | ac_status=$? | |
40093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40094 | (exit $ac_status); }; }; then | |
40095 | ac_cv_func_gethostbyname=yes | |
40096 | else | |
40097 | echo "$as_me: failed program was:" >&5 | |
40098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40099 | ||
40100 | ac_cv_func_gethostbyname=no | |
40101 | fi | |
40102 | rm -f conftest.err conftest.$ac_objext \ | |
40103 | conftest$ac_exeext conftest.$ac_ext | |
40104 | fi | |
40105 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
40106 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
40107 | if test $ac_cv_func_gethostbyname = yes; then | |
40108 | cat >>confdefs.h <<\_ACEOF | |
40109 | #define HAVE_GETHOSTBYNAME 1 | |
40110 | _ACEOF | |
40111 | ||
40112 | fi | |
40113 | ||
40114 | fi | |
40115 | echo "$as_me:$LINENO: checking for getservbyname_r" >&5 | |
40116 | echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6 | |
3ecd9f92 MW |
40117 | if test "${ac_cv_func_which_getservbyname_r+set}" = set; then |
40118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40119 | else | |
40120 | ||
40121 | echo "$as_me:$LINENO: checking for getservbyname_r" >&5 | |
40122 | echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6 | |
004ee6da RL |
40123 | if test "${ac_cv_func_getservbyname_r+set}" = set; then |
40124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40125 | else | |
40126 | cat >conftest.$ac_ext <<_ACEOF | |
40127 | /* confdefs.h. */ | |
40128 | _ACEOF | |
40129 | cat confdefs.h >>conftest.$ac_ext | |
40130 | cat >>conftest.$ac_ext <<_ACEOF | |
40131 | /* end confdefs.h. */ | |
40132 | /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r. | |
40133 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40134 | #define getservbyname_r innocuous_getservbyname_r | |
40135 | ||
40136 | /* System header to define __stub macros and hopefully few prototypes, | |
40137 | which can conflict with char getservbyname_r (); below. | |
40138 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40139 | <limits.h> exists even on freestanding compilers. */ | |
40140 | ||
40141 | #ifdef __STDC__ | |
40142 | # include <limits.h> | |
40143 | #else | |
40144 | # include <assert.h> | |
40145 | #endif | |
40146 | ||
40147 | #undef getservbyname_r | |
40148 | ||
40149 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40150 | #ifdef __cplusplus | |
40151 | extern "C" | |
40152 | { | |
40153 | #endif | |
40154 | /* We use char because int might match the return type of a gcc2 | |
40155 | builtin and then its argument prototype would still apply. */ | |
40156 | char getservbyname_r (); | |
40157 | /* The GNU C library defines this for functions which it implements | |
40158 | to always fail with ENOSYS. Some functions are actually named | |
40159 | something starting with __ and the normal name is an alias. */ | |
40160 | #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r) | |
40161 | choke me | |
40162 | #else | |
40163 | char (*f) () = getservbyname_r; | |
40164 | #endif | |
40165 | #ifdef __cplusplus | |
40166 | } | |
40167 | #endif | |
40168 | ||
40169 | int | |
40170 | main () | |
40171 | { | |
40172 | return f != getservbyname_r; | |
40173 | ; | |
40174 | return 0; | |
40175 | } | |
40176 | _ACEOF | |
40177 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40179 | (eval $ac_link) 2>conftest.er1 | |
40180 | ac_status=$? | |
40181 | grep -v '^ *+' conftest.er1 >conftest.err | |
40182 | rm -f conftest.er1 | |
40183 | cat conftest.err >&5 | |
40184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40185 | (exit $ac_status); } && | |
c9a66001 | 40186 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40188 | (eval $ac_try) 2>&5 | |
40189 | ac_status=$? | |
40190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40191 | (exit $ac_status); }; } && | |
40192 | { ac_try='test -s conftest$ac_exeext' | |
40193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40194 | (eval $ac_try) 2>&5 | |
40195 | ac_status=$? | |
40196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40197 | (exit $ac_status); }; }; then | |
40198 | ac_cv_func_getservbyname_r=yes | |
40199 | else | |
40200 | echo "$as_me: failed program was:" >&5 | |
40201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40202 | ||
40203 | ac_cv_func_getservbyname_r=no | |
40204 | fi | |
40205 | rm -f conftest.err conftest.$ac_objext \ | |
40206 | conftest$ac_exeext conftest.$ac_ext | |
40207 | fi | |
40208 | echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5 | |
40209 | echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6 | |
40210 | if test $ac_cv_func_getservbyname_r = yes; then | |
3ecd9f92 MW |
40211 | |
40212 | cat >conftest.$ac_ext <<_ACEOF | |
004ee6da RL |
40213 | /* confdefs.h. */ |
40214 | _ACEOF | |
40215 | cat confdefs.h >>conftest.$ac_ext | |
40216 | cat >>conftest.$ac_ext <<_ACEOF | |
40217 | /* end confdefs.h. */ | |
3ecd9f92 MW |
40218 | |
40219 | # include <netdb.h> | |
40220 | ||
004ee6da RL |
40221 | int |
40222 | main () | |
40223 | { | |
40224 | ||
3ecd9f92 MW |
40225 | |
40226 | char *name; | |
40227 | char *proto; | |
40228 | struct servent *se; | |
40229 | struct servent_data data; | |
40230 | (void) getservbyname_r(name, proto, se, &data); | |
40231 | ||
004ee6da RL |
40232 | |
40233 | ; | |
40234 | return 0; | |
40235 | } | |
40236 | _ACEOF | |
40237 | rm -f conftest.$ac_objext | |
40238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40239 | (eval $ac_compile) 2>conftest.er1 | |
40240 | ac_status=$? | |
40241 | grep -v '^ *+' conftest.er1 >conftest.err | |
40242 | rm -f conftest.er1 | |
40243 | cat conftest.err >&5 | |
40244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40245 | (exit $ac_status); } && | |
c9a66001 | 40246 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40248 | (eval $ac_try) 2>&5 | |
40249 | ac_status=$? | |
40250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40251 | (exit $ac_status); }; } && | |
40252 | { ac_try='test -s conftest.$ac_objext' | |
40253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40254 | (eval $ac_try) 2>&5 | |
40255 | ac_status=$? | |
40256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40257 | (exit $ac_status); }; }; then | |
40258 | ac_cv_func_which_getservbyname_r=four | |
40259 | else | |
40260 | echo "$as_me: failed program was:" >&5 | |
40261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40262 | ||
3ecd9f92 MW |
40263 | |
40264 | cat >conftest.$ac_ext <<_ACEOF | |
004ee6da RL |
40265 | /* confdefs.h. */ |
40266 | _ACEOF | |
40267 | cat confdefs.h >>conftest.$ac_ext | |
40268 | cat >>conftest.$ac_ext <<_ACEOF | |
40269 | /* end confdefs.h. */ | |
3ecd9f92 MW |
40270 | |
40271 | # include <netdb.h> | |
40272 | ||
004ee6da RL |
40273 | int |
40274 | main () | |
40275 | { | |
40276 | ||
3ecd9f92 MW |
40277 | char *name; |
40278 | char *proto; | |
40279 | struct servent *se, *res; | |
40280 | char buffer[2048]; | |
40281 | int buflen = 2048; | |
40282 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res) | |
004ee6da RL |
40283 | |
40284 | ; | |
40285 | return 0; | |
40286 | } | |
40287 | _ACEOF | |
40288 | rm -f conftest.$ac_objext | |
40289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40290 | (eval $ac_compile) 2>conftest.er1 | |
40291 | ac_status=$? | |
40292 | grep -v '^ *+' conftest.er1 >conftest.err | |
40293 | rm -f conftest.er1 | |
40294 | cat conftest.err >&5 | |
40295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40296 | (exit $ac_status); } && | |
c9a66001 | 40297 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40299 | (eval $ac_try) 2>&5 | |
40300 | ac_status=$? | |
40301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40302 | (exit $ac_status); }; } && | |
40303 | { ac_try='test -s conftest.$ac_objext' | |
40304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40305 | (eval $ac_try) 2>&5 | |
40306 | ac_status=$? | |
40307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40308 | (exit $ac_status); }; }; then | |
40309 | ac_cv_func_which_getservbyname_r=six | |
40310 | else | |
40311 | echo "$as_me: failed program was:" >&5 | |
40312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40313 | ||
3ecd9f92 MW |
40314 | |
40315 | cat >conftest.$ac_ext <<_ACEOF | |
004ee6da RL |
40316 | /* confdefs.h. */ |
40317 | _ACEOF | |
40318 | cat confdefs.h >>conftest.$ac_ext | |
40319 | cat >>conftest.$ac_ext <<_ACEOF | |
40320 | /* end confdefs.h. */ | |
3ecd9f92 MW |
40321 | |
40322 | # include <netdb.h> | |
40323 | ||
004ee6da RL |
40324 | int |
40325 | main () | |
40326 | { | |
40327 | ||
3ecd9f92 MW |
40328 | char *name; |
40329 | char *proto; | |
40330 | struct servent *se; | |
40331 | char buffer[2048]; | |
40332 | int buflen = 2048; | |
40333 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
40334 | |
40335 | ; | |
40336 | return 0; | |
40337 | } | |
40338 | _ACEOF | |
40339 | rm -f conftest.$ac_objext | |
40340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40341 | (eval $ac_compile) 2>conftest.er1 | |
40342 | ac_status=$? | |
40343 | grep -v '^ *+' conftest.er1 >conftest.err | |
40344 | rm -f conftest.er1 | |
40345 | cat conftest.err >&5 | |
40346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40347 | (exit $ac_status); } && | |
c9a66001 | 40348 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40350 | (eval $ac_try) 2>&5 | |
40351 | ac_status=$? | |
40352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40353 | (exit $ac_status); }; } && | |
40354 | { ac_try='test -s conftest.$ac_objext' | |
40355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40356 | (eval $ac_try) 2>&5 | |
40357 | ac_status=$? | |
40358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40359 | (exit $ac_status); }; }; then | |
40360 | ac_cv_func_which_getservbyname_r=five | |
40361 | else | |
40362 | echo "$as_me: failed program was:" >&5 | |
40363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40364 | ||
40365 | ac_cv_func_which_getservbyname_r=no | |
40366 | fi | |
40367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40368 | ||
3ecd9f92 MW |
40369 | |
40370 | ||
40371 | ||
004ee6da RL |
40372 | fi |
40373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40374 | ||
3ecd9f92 | 40375 | |
004ee6da RL |
40376 | fi |
40377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3ecd9f92 | 40378 | |
004ee6da RL |
40379 | else |
40380 | ac_cv_func_which_getservbyname_r=no | |
40381 | fi | |
40382 | ||
3ecd9f92 MW |
40383 | fi |
40384 | echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5 | |
40385 | echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6 | |
004ee6da RL |
40386 | |
40387 | if test $ac_cv_func_which_getservbyname_r = six; then | |
40388 | cat >>confdefs.h <<\_ACEOF | |
40389 | #define HAVE_FUNC_GETSERVBYNAME_R_6 1 | |
40390 | _ACEOF | |
40391 | ||
40392 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
40393 | cat >>confdefs.h <<\_ACEOF | |
40394 | #define HAVE_FUNC_GETSERVBYNAME_R_5 1 | |
40395 | _ACEOF | |
40396 | ||
40397 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
40398 | cat >>confdefs.h <<\_ACEOF | |
40399 | #define HAVE_FUNC_GETSERVBYNAME_R_4 1 | |
40400 | _ACEOF | |
40401 | ||
3ecd9f92 | 40402 | |
004ee6da RL |
40403 | fi |
40404 | ||
40405 | ||
40406 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
40407 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then | |
40408 | ||
40409 | for ac_func in getservbyname | |
40410 | do | |
40411 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40412 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40413 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40414 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40416 | else | |
40417 | cat >conftest.$ac_ext <<_ACEOF | |
40418 | /* confdefs.h. */ | |
40419 | _ACEOF | |
40420 | cat confdefs.h >>conftest.$ac_ext | |
40421 | cat >>conftest.$ac_ext <<_ACEOF | |
40422 | /* end confdefs.h. */ | |
40423 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
40424 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40425 | #define $ac_func innocuous_$ac_func | |
40426 | ||
40427 | /* System header to define __stub macros and hopefully few prototypes, | |
40428 | which can conflict with char $ac_func (); below. | |
40429 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40430 | <limits.h> exists even on freestanding compilers. */ | |
40431 | ||
40432 | #ifdef __STDC__ | |
40433 | # include <limits.h> | |
40434 | #else | |
40435 | # include <assert.h> | |
40436 | #endif | |
40437 | ||
40438 | #undef $ac_func | |
40439 | ||
40440 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40441 | #ifdef __cplusplus | |
40442 | extern "C" | |
40443 | { | |
40444 | #endif | |
40445 | /* We use char because int might match the return type of a gcc2 | |
40446 | builtin and then its argument prototype would still apply. */ | |
40447 | char $ac_func (); | |
40448 | /* The GNU C library defines this for functions which it implements | |
40449 | to always fail with ENOSYS. Some functions are actually named | |
40450 | something starting with __ and the normal name is an alias. */ | |
40451 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40452 | choke me | |
40453 | #else | |
40454 | char (*f) () = $ac_func; | |
40455 | #endif | |
40456 | #ifdef __cplusplus | |
40457 | } | |
40458 | #endif | |
40459 | ||
40460 | int | |
40461 | main () | |
40462 | { | |
40463 | return f != $ac_func; | |
40464 | ; | |
40465 | return 0; | |
40466 | } | |
40467 | _ACEOF | |
40468 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40470 | (eval $ac_link) 2>conftest.er1 | |
40471 | ac_status=$? | |
40472 | grep -v '^ *+' conftest.er1 >conftest.err | |
40473 | rm -f conftest.er1 | |
40474 | cat conftest.err >&5 | |
40475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40476 | (exit $ac_status); } && | |
c9a66001 | 40477 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40479 | (eval $ac_try) 2>&5 | |
40480 | ac_status=$? | |
40481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40482 | (exit $ac_status); }; } && | |
40483 | { ac_try='test -s conftest$ac_exeext' | |
40484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40485 | (eval $ac_try) 2>&5 | |
40486 | ac_status=$? | |
40487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40488 | (exit $ac_status); }; }; then | |
40489 | eval "$as_ac_var=yes" | |
40490 | else | |
40491 | echo "$as_me: failed program was:" >&5 | |
40492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40493 | ||
40494 | eval "$as_ac_var=no" | |
40495 | fi | |
40496 | rm -f conftest.err conftest.$ac_objext \ | |
40497 | conftest$ac_exeext conftest.$ac_ext | |
40498 | fi | |
40499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40500 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40501 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40502 | cat >>confdefs.h <<_ACEOF | |
40503 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40504 | _ACEOF | |
40505 | cat >>confdefs.h <<\_ACEOF | |
40506 | #define HAVE_GETSERVBYNAME 1 | |
40507 | _ACEOF | |
40508 | ||
40509 | fi | |
40510 | done | |
40511 | ||
40512 | fi | |
40513 | ||
004ee6da RL |
40514 | if test "$wxUSE_THREADS" = "yes"; then |
40515 | cat >>confdefs.h <<\_ACEOF | |
40516 | #define wxUSE_THREADS 1 | |
40517 | _ACEOF | |
40518 | ||
40519 | ||
40520 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
40521 | else | |
5acfd58d | 40522 | if test "$wx_cv_decl_strtok_r" = "yes"; then |
004ee6da RL |
40523 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
40524 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
40525 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
40526 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
40527 | echo "$as_me:$LINENO: result: yes" >&5 | |
40528 | echo "${ECHO_T}yes" >&6 | |
40529 | else | |
40530 | echo "$as_me:$LINENO: result: no" >&5 | |
40531 | echo "${ECHO_T}no" >&6 | |
40532 | fi | |
40533 | fi | |
40534 | fi | |
40535 | ||
40536 | if test "$WXGTK20" = 1 ; then | |
40537 | cat >>confdefs.h <<_ACEOF | |
40538 | #define __WXGTK20__ $WXGTK20 | |
40539 | _ACEOF | |
40540 | ||
40541 | WXGTK12=1 | |
40542 | fi | |
40543 | ||
40544 | if test "$WXGTK12" = 1 ; then | |
40545 | cat >>confdefs.h <<_ACEOF | |
40546 | #define __WXGTK12__ $WXGTK12 | |
40547 | _ACEOF | |
40548 | ||
40549 | fi | |
40550 | ||
40551 | if test "$WXGTK127" = 1 ; then | |
40552 | cat >>confdefs.h <<_ACEOF | |
40553 | #define __WXGTK127__ $WXGTK127 | |
40554 | _ACEOF | |
40555 | ||
40556 | fi | |
40557 | ||
40558 | if test "$WXGPE" = 1 ; then | |
40559 | cat >>confdefs.h <<_ACEOF | |
40560 | #define __WXGPE__ $WXGPE | |
40561 | _ACEOF | |
40562 | ||
40563 | fi | |
40564 | ||
40565 | DEBUG_CFLAGS= | |
40566 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
40567 | DEBUG_CFLAGS="-g" | |
40568 | wxUSE_OPTIMISE=no | |
40569 | fi | |
40570 | ||
40571 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
40572 | wxUSE_DEBUG_INFO=yes | |
40573 | if test "$GCC" = yes; then | |
40574 | DEBUG_CFLAGS="-ggdb" | |
40575 | fi | |
40576 | fi | |
40577 | ||
40578 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
40579 | cat >>confdefs.h <<\_ACEOF | |
40580 | #define WXDEBUG 1 | |
40581 | _ACEOF | |
40582 | ||
40583 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__" | |
40584 | else | |
40585 | if test "$wxUSE_GTK" = 1 ; then | |
99879bbf MR |
40586 | if test "x$wxGTK_VERSION" = "x1" ; then |
40587 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
40588 | fi | |
004ee6da RL |
40589 | fi |
40590 | fi | |
40591 | ||
40592 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
40593 | cat >>confdefs.h <<\_ACEOF | |
40594 | #define wxUSE_MEMORY_TRACING 1 | |
40595 | _ACEOF | |
40596 | ||
40597 | cat >>confdefs.h <<\_ACEOF | |
40598 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
40599 | _ACEOF | |
40600 | ||
40601 | cat >>confdefs.h <<\_ACEOF | |
40602 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
40603 | _ACEOF | |
40604 | ||
40605 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
40606 | fi | |
40607 | ||
40608 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
40609 | DMALLOC_LIBS="-ldmallocthcxx" | |
40610 | fi | |
40611 | ||
40612 | PROFILE_FLAGS= | |
40613 | if test "$wxUSE_PROFILE" = "yes" ; then | |
40614 | PROFILE_FLAGS=" -pg" | |
40615 | fi | |
40616 | ||
40617 | if test "$GCC" = "yes" ; then | |
40618 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
40619 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti" | |
40620 | fi | |
40621 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
40622 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
40623 | fi | |
40624 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
40625 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
40626 | fi | |
40627 | ||
40628 | case "${host}" in | |
40629 | powerpc*-*-aix* ) | |
40630 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
40631 | ;; | |
40632 | *-hppa* ) | |
40633 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
40634 | ;; | |
40635 | esac | |
40636 | fi | |
40637 | ||
40638 | OPTIMISE_CFLAGS= | |
40639 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
40640 | if test "$GCC" = yes ; then | |
40641 | OPTIMISE_CFLAGS="-O0" | |
40642 | fi | |
40643 | else | |
40644 | if test "$GCC" = yes ; then | |
e5efa97e VZ |
40645 | case "${host}" in |
40646 | *-pc-os2_emx | *-pc-os2-emx ) | |
40647 | OPTIMISE_CFLAGS="-O2" | |
40648 | ;; | |
40649 | *) | |
40650 | OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing" | |
40651 | ;; | |
40652 | esac | |
004ee6da RL |
40653 | else |
40654 | OPTIMISE_CFLAGS="-O" | |
40655 | fi | |
40656 | fi | |
40657 | ||
40658 | ||
40659 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then | |
40660 | cat >>confdefs.h <<\_ACEOF | |
40661 | #define WXWIN_COMPATIBILITY_2_4 1 | |
40662 | _ACEOF | |
40663 | ||
40664 | ||
40665 | WXWIN_COMPATIBILITY_2_6="yes" | |
40666 | fi | |
40667 | ||
40668 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then | |
40669 | cat >>confdefs.h <<\_ACEOF | |
40670 | #define WXWIN_COMPATIBILITY_2_6 1 | |
40671 | _ACEOF | |
40672 | ||
40673 | fi | |
40674 | ||
40675 | ||
40676 | if test "$wxUSE_GUI" = "yes"; then | |
40677 | cat >>confdefs.h <<\_ACEOF | |
40678 | #define wxUSE_GUI 1 | |
40679 | _ACEOF | |
40680 | ||
40681 | ||
40682 | fi | |
40683 | ||
40684 | ||
40685 | if test "$wxUSE_UNIX" = "yes"; then | |
40686 | cat >>confdefs.h <<\_ACEOF | |
40687 | #define wxUSE_UNIX 1 | |
40688 | _ACEOF | |
40689 | ||
40690 | fi | |
40691 | ||
40692 | ||
40693 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
40694 | ||
40695 | HAVE_DL_FUNCS=0 | |
40696 | HAVE_SHL_FUNCS=0 | |
40697 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
40698 | if test "$USE_DARWIN" = 1; then | |
40699 | HAVE_DL_FUNCS=1 | |
40700 | elif test "$USE_DOS" = 1; then | |
40701 | HAVE_DL_FUNCS=0 | |
40702 | else | |
40703 | ||
40704 | for ac_func in dlopen | |
40705 | do | |
40706 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40707 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40708 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40709 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40711 | else | |
40712 | cat >conftest.$ac_ext <<_ACEOF | |
40713 | /* confdefs.h. */ | |
40714 | _ACEOF | |
40715 | cat confdefs.h >>conftest.$ac_ext | |
40716 | cat >>conftest.$ac_ext <<_ACEOF | |
40717 | /* end confdefs.h. */ | |
40718 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
40719 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40720 | #define $ac_func innocuous_$ac_func | |
40721 | ||
40722 | /* System header to define __stub macros and hopefully few prototypes, | |
40723 | which can conflict with char $ac_func (); below. | |
40724 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40725 | <limits.h> exists even on freestanding compilers. */ | |
40726 | ||
40727 | #ifdef __STDC__ | |
40728 | # include <limits.h> | |
40729 | #else | |
40730 | # include <assert.h> | |
40731 | #endif | |
40732 | ||
40733 | #undef $ac_func | |
40734 | ||
40735 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40736 | #ifdef __cplusplus | |
40737 | extern "C" | |
40738 | { | |
40739 | #endif | |
40740 | /* We use char because int might match the return type of a gcc2 | |
40741 | builtin and then its argument prototype would still apply. */ | |
40742 | char $ac_func (); | |
40743 | /* The GNU C library defines this for functions which it implements | |
40744 | to always fail with ENOSYS. Some functions are actually named | |
40745 | something starting with __ and the normal name is an alias. */ | |
40746 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40747 | choke me | |
40748 | #else | |
40749 | char (*f) () = $ac_func; | |
40750 | #endif | |
40751 | #ifdef __cplusplus | |
40752 | } | |
40753 | #endif | |
40754 | ||
40755 | int | |
40756 | main () | |
40757 | { | |
40758 | return f != $ac_func; | |
a848cd7e SC |
40759 | ; |
40760 | return 0; | |
40761 | } | |
40762 | _ACEOF | |
40763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40765 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40766 | ac_status=$? |
ac1cb8d3 VS |
40767 | grep -v '^ *+' conftest.er1 >conftest.err |
40768 | rm -f conftest.er1 | |
40769 | cat conftest.err >&5 | |
a848cd7e SC |
40770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40771 | (exit $ac_status); } && | |
c9a66001 | 40772 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40774 | (eval $ac_try) 2>&5 | |
40775 | ac_status=$? | |
40776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40777 | (exit $ac_status); }; } && | |
40778 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40780 | (eval $ac_try) 2>&5 | |
40781 | ac_status=$? | |
40782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40783 | (exit $ac_status); }; }; then | |
40784 | eval "$as_ac_var=yes" | |
40785 | else | |
40786 | echo "$as_me: failed program was:" >&5 | |
40787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40788 | ||
40789 | eval "$as_ac_var=no" | |
40790 | fi | |
ac1cb8d3 VS |
40791 | rm -f conftest.err conftest.$ac_objext \ |
40792 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40793 | fi |
40794 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40795 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40796 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40797 | cat >>confdefs.h <<_ACEOF | |
40798 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40799 | _ACEOF | |
40800 | ||
40801 | cat >>confdefs.h <<\_ACEOF | |
40802 | #define HAVE_DLOPEN 1 | |
40803 | _ACEOF | |
40804 | ||
40805 | HAVE_DL_FUNCS=1 | |
40806 | ||
40807 | else | |
40808 | ||
40809 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
40810 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
40811 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
40812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40813 | else | |
40814 | ac_check_lib_save_LIBS=$LIBS | |
40815 | LIBS="-ldl $LIBS" | |
40816 | cat >conftest.$ac_ext <<_ACEOF | |
40817 | /* confdefs.h. */ | |
40818 | _ACEOF | |
40819 | cat confdefs.h >>conftest.$ac_ext | |
40820 | cat >>conftest.$ac_ext <<_ACEOF | |
40821 | /* end confdefs.h. */ | |
40822 | ||
40823 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40824 | #ifdef __cplusplus | |
40825 | extern "C" | |
40826 | #endif | |
40827 | /* We use char because int might match the return type of a gcc2 | |
40828 | builtin and then its argument prototype would still apply. */ | |
40829 | char dlopen (); | |
40830 | int | |
40831 | main () | |
40832 | { | |
40833 | dlopen (); | |
40834 | ; | |
40835 | return 0; | |
40836 | } | |
40837 | _ACEOF | |
40838 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40840 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40841 | ac_status=$? |
ac1cb8d3 VS |
40842 | grep -v '^ *+' conftest.er1 >conftest.err |
40843 | rm -f conftest.er1 | |
40844 | cat conftest.err >&5 | |
a848cd7e SC |
40845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40846 | (exit $ac_status); } && | |
c9a66001 | 40847 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40849 | (eval $ac_try) 2>&5 | |
40850 | ac_status=$? | |
40851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40852 | (exit $ac_status); }; } && | |
40853 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40855 | (eval $ac_try) 2>&5 | |
40856 | ac_status=$? | |
40857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40858 | (exit $ac_status); }; }; then | |
40859 | ac_cv_lib_dl_dlopen=yes | |
40860 | else | |
40861 | echo "$as_me: failed program was:" >&5 | |
40862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40863 | ||
40864 | ac_cv_lib_dl_dlopen=no | |
40865 | fi | |
ac1cb8d3 VS |
40866 | rm -f conftest.err conftest.$ac_objext \ |
40867 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40868 | LIBS=$ac_check_lib_save_LIBS |
40869 | fi | |
40870 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
40871 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
40872 | if test $ac_cv_lib_dl_dlopen = yes; then | |
40873 | ||
40874 | cat >>confdefs.h <<\_ACEOF | |
40875 | #define HAVE_DLOPEN 1 | |
40876 | _ACEOF | |
40877 | ||
40878 | HAVE_DL_FUNCS=1 | |
40879 | DL_LINK=" -ldl$DL_LINK" | |
40880 | ||
40881 | else | |
40882 | ||
40883 | ||
40884 | for ac_func in shl_load | |
40885 | do | |
40886 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40887 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40888 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40889 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40891 | else | |
40892 | cat >conftest.$ac_ext <<_ACEOF | |
40893 | /* confdefs.h. */ | |
40894 | _ACEOF | |
40895 | cat confdefs.h >>conftest.$ac_ext | |
40896 | cat >>conftest.$ac_ext <<_ACEOF | |
40897 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40898 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40899 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40900 | #define $ac_func innocuous_$ac_func | |
40901 | ||
a848cd7e SC |
40902 | /* System header to define __stub macros and hopefully few prototypes, |
40903 | which can conflict with char $ac_func (); below. | |
40904 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40905 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40906 | |
a848cd7e SC |
40907 | #ifdef __STDC__ |
40908 | # include <limits.h> | |
40909 | #else | |
40910 | # include <assert.h> | |
40911 | #endif | |
ac1cb8d3 VS |
40912 | |
40913 | #undef $ac_func | |
40914 | ||
a848cd7e SC |
40915 | /* Override any gcc2 internal prototype to avoid an error. */ |
40916 | #ifdef __cplusplus | |
40917 | extern "C" | |
40918 | { | |
40919 | #endif | |
40920 | /* We use char because int might match the return type of a gcc2 | |
40921 | builtin and then its argument prototype would still apply. */ | |
40922 | char $ac_func (); | |
40923 | /* The GNU C library defines this for functions which it implements | |
40924 | to always fail with ENOSYS. Some functions are actually named | |
40925 | something starting with __ and the normal name is an alias. */ | |
40926 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40927 | choke me | |
40928 | #else | |
40929 | char (*f) () = $ac_func; | |
40930 | #endif | |
40931 | #ifdef __cplusplus | |
40932 | } | |
40933 | #endif | |
40934 | ||
40935 | int | |
40936 | main () | |
40937 | { | |
40938 | return f != $ac_func; | |
40939 | ; | |
40940 | return 0; | |
40941 | } | |
40942 | _ACEOF | |
40943 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40945 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40946 | ac_status=$? |
ac1cb8d3 VS |
40947 | grep -v '^ *+' conftest.er1 >conftest.err |
40948 | rm -f conftest.er1 | |
40949 | cat conftest.err >&5 | |
a848cd7e SC |
40950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40951 | (exit $ac_status); } && | |
c9a66001 | 40952 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40954 | (eval $ac_try) 2>&5 | |
40955 | ac_status=$? | |
40956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40957 | (exit $ac_status); }; } && | |
40958 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40960 | (eval $ac_try) 2>&5 | |
40961 | ac_status=$? | |
40962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40963 | (exit $ac_status); }; }; then | |
40964 | eval "$as_ac_var=yes" | |
40965 | else | |
40966 | echo "$as_me: failed program was:" >&5 | |
40967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40968 | ||
40969 | eval "$as_ac_var=no" | |
40970 | fi | |
ac1cb8d3 VS |
40971 | rm -f conftest.err conftest.$ac_objext \ |
40972 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40973 | fi |
40974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40975 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40976 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40977 | cat >>confdefs.h <<_ACEOF | |
40978 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40979 | _ACEOF | |
40980 | ||
40981 | cat >>confdefs.h <<\_ACEOF | |
40982 | #define HAVE_SHL_LOAD 1 | |
40983 | _ACEOF | |
40984 | ||
40985 | HAVE_SHL_FUNCS=1 | |
40986 | ||
40987 | else | |
40988 | ||
40989 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
40990 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
40991 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
40992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40993 | else | |
40994 | ac_check_lib_save_LIBS=$LIBS | |
40995 | LIBS="-lshl_load $LIBS" | |
40996 | cat >conftest.$ac_ext <<_ACEOF | |
40997 | /* confdefs.h. */ | |
40998 | _ACEOF | |
40999 | cat confdefs.h >>conftest.$ac_ext | |
41000 | cat >>conftest.$ac_ext <<_ACEOF | |
41001 | /* end confdefs.h. */ | |
41002 | ||
41003 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41004 | #ifdef __cplusplus | |
41005 | extern "C" | |
41006 | #endif | |
41007 | /* We use char because int might match the return type of a gcc2 | |
41008 | builtin and then its argument prototype would still apply. */ | |
41009 | char dld (); | |
41010 | int | |
41011 | main () | |
41012 | { | |
41013 | dld (); | |
41014 | ; | |
41015 | return 0; | |
41016 | } | |
41017 | _ACEOF | |
41018 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41020 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41021 | ac_status=$? |
ac1cb8d3 VS |
41022 | grep -v '^ *+' conftest.er1 >conftest.err |
41023 | rm -f conftest.er1 | |
41024 | cat conftest.err >&5 | |
a848cd7e SC |
41025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41026 | (exit $ac_status); } && | |
c9a66001 | 41027 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41029 | (eval $ac_try) 2>&5 | |
41030 | ac_status=$? | |
41031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41032 | (exit $ac_status); }; } && | |
41033 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41035 | (eval $ac_try) 2>&5 | |
41036 | ac_status=$? | |
41037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41038 | (exit $ac_status); }; }; then | |
41039 | ac_cv_lib_shl_load_dld=yes | |
41040 | else | |
41041 | echo "$as_me: failed program was:" >&5 | |
41042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41043 | ||
41044 | ac_cv_lib_shl_load_dld=no | |
41045 | fi | |
ac1cb8d3 VS |
41046 | rm -f conftest.err conftest.$ac_objext \ |
41047 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41048 | LIBS=$ac_check_lib_save_LIBS |
41049 | fi | |
41050 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
41051 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
41052 | if test $ac_cv_lib_shl_load_dld = yes; then | |
41053 | ||
41054 | HAVE_SHL_FUNCS=1 | |
41055 | DL_LINK=" -ldld$DL_LINK" | |
41056 | ||
41057 | fi | |
41058 | ||
41059 | ||
41060 | fi | |
41061 | done | |
41062 | ||
41063 | ||
41064 | fi | |
41065 | ||
41066 | ||
41067 | fi | |
41068 | done | |
41069 | ||
41070 | ||
41071 | if test "$HAVE_DL_FUNCS" = 1; then | |
41072 | ||
41073 | for ac_func in dlerror | |
41074 | do | |
41075 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41076 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41077 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41078 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41080 | else | |
41081 | cat >conftest.$ac_ext <<_ACEOF | |
41082 | /* confdefs.h. */ | |
41083 | _ACEOF | |
41084 | cat confdefs.h >>conftest.$ac_ext | |
41085 | cat >>conftest.$ac_ext <<_ACEOF | |
41086 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41087 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41088 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41089 | #define $ac_func innocuous_$ac_func | |
41090 | ||
a848cd7e SC |
41091 | /* System header to define __stub macros and hopefully few prototypes, |
41092 | which can conflict with char $ac_func (); below. | |
41093 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41094 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41095 | |
a848cd7e SC |
41096 | #ifdef __STDC__ |
41097 | # include <limits.h> | |
41098 | #else | |
41099 | # include <assert.h> | |
41100 | #endif | |
ac1cb8d3 VS |
41101 | |
41102 | #undef $ac_func | |
41103 | ||
a848cd7e SC |
41104 | /* Override any gcc2 internal prototype to avoid an error. */ |
41105 | #ifdef __cplusplus | |
41106 | extern "C" | |
41107 | { | |
41108 | #endif | |
41109 | /* We use char because int might match the return type of a gcc2 | |
41110 | builtin and then its argument prototype would still apply. */ | |
41111 | char $ac_func (); | |
41112 | /* The GNU C library defines this for functions which it implements | |
41113 | to always fail with ENOSYS. Some functions are actually named | |
41114 | something starting with __ and the normal name is an alias. */ | |
41115 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41116 | choke me | |
41117 | #else | |
41118 | char (*f) () = $ac_func; | |
41119 | #endif | |
41120 | #ifdef __cplusplus | |
41121 | } | |
41122 | #endif | |
41123 | ||
41124 | int | |
41125 | main () | |
41126 | { | |
41127 | return f != $ac_func; | |
41128 | ; | |
41129 | return 0; | |
41130 | } | |
41131 | _ACEOF | |
41132 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41134 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41135 | ac_status=$? |
ac1cb8d3 VS |
41136 | grep -v '^ *+' conftest.er1 >conftest.err |
41137 | rm -f conftest.er1 | |
41138 | cat conftest.err >&5 | |
a848cd7e SC |
41139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41140 | (exit $ac_status); } && | |
c9a66001 | 41141 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41143 | (eval $ac_try) 2>&5 | |
41144 | ac_status=$? | |
41145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41146 | (exit $ac_status); }; } && | |
41147 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41149 | (eval $ac_try) 2>&5 | |
41150 | ac_status=$? | |
41151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41152 | (exit $ac_status); }; }; then | |
41153 | eval "$as_ac_var=yes" | |
41154 | else | |
41155 | echo "$as_me: failed program was:" >&5 | |
41156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41157 | ||
41158 | eval "$as_ac_var=no" | |
41159 | fi | |
ac1cb8d3 VS |
41160 | rm -f conftest.err conftest.$ac_objext \ |
41161 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41162 | fi |
41163 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41164 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41165 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41166 | cat >>confdefs.h <<_ACEOF | |
41167 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41168 | _ACEOF | |
41169 | cat >>confdefs.h <<\_ACEOF | |
41170 | #define HAVE_DLERROR 1 | |
41171 | _ACEOF | |
41172 | ||
41173 | else | |
41174 | ||
41175 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
41176 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
41177 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
41178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41179 | else | |
41180 | ac_check_lib_save_LIBS=$LIBS | |
41181 | LIBS="-ldl $LIBS" | |
41182 | cat >conftest.$ac_ext <<_ACEOF | |
41183 | /* confdefs.h. */ | |
41184 | _ACEOF | |
41185 | cat confdefs.h >>conftest.$ac_ext | |
41186 | cat >>conftest.$ac_ext <<_ACEOF | |
41187 | /* end confdefs.h. */ | |
41188 | ||
41189 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41190 | #ifdef __cplusplus | |
41191 | extern "C" | |
41192 | #endif | |
41193 | /* We use char because int might match the return type of a gcc2 | |
41194 | builtin and then its argument prototype would still apply. */ | |
41195 | char dlerror (); | |
41196 | int | |
41197 | main () | |
41198 | { | |
41199 | dlerror (); | |
41200 | ; | |
41201 | return 0; | |
41202 | } | |
41203 | _ACEOF | |
41204 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41206 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41207 | ac_status=$? |
ac1cb8d3 VS |
41208 | grep -v '^ *+' conftest.er1 >conftest.err |
41209 | rm -f conftest.er1 | |
41210 | cat conftest.err >&5 | |
a848cd7e SC |
41211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41212 | (exit $ac_status); } && | |
c9a66001 | 41213 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41215 | (eval $ac_try) 2>&5 | |
41216 | ac_status=$? | |
41217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41218 | (exit $ac_status); }; } && | |
41219 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41221 | (eval $ac_try) 2>&5 | |
41222 | ac_status=$? | |
41223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41224 | (exit $ac_status); }; }; then | |
41225 | ac_cv_lib_dl_dlerror=yes | |
41226 | else | |
41227 | echo "$as_me: failed program was:" >&5 | |
41228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41229 | ||
41230 | ac_cv_lib_dl_dlerror=no | |
41231 | fi | |
ac1cb8d3 VS |
41232 | rm -f conftest.err conftest.$ac_objext \ |
41233 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41234 | LIBS=$ac_check_lib_save_LIBS |
41235 | fi | |
41236 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
41237 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
41238 | if test $ac_cv_lib_dl_dlerror = yes; then | |
41239 | cat >>confdefs.h <<\_ACEOF | |
41240 | #define HAVE_DLERROR 1 | |
41241 | _ACEOF | |
41242 | ||
41243 | fi | |
41244 | ||
41245 | ||
41246 | ||
41247 | fi | |
41248 | done | |
41249 | ||
41250 | fi | |
41251 | fi | |
41252 | ||
41253 | if test "$HAVE_DL_FUNCS" = 0; then | |
41254 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 41255 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
41256 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
41257 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
41258 | wxUSE_DYNAMIC_LOADER=no | |
41259 | wxUSE_DYNLIB_CLASS=no | |
41260 | else | |
41261 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
41262 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
41263 | fi | |
41264 | fi | |
41265 | fi | |
41266 | fi | |
41267 | fi | |
41268 | ||
41269 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
41270 | cat >>confdefs.h <<\_ACEOF | |
41271 | #define wxUSE_DYNAMIC_LOADER 1 | |
41272 | _ACEOF | |
41273 | ||
41274 | fi | |
41275 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
41276 | cat >>confdefs.h <<\_ACEOF | |
41277 | #define wxUSE_DYNLIB_CLASS 1 | |
41278 | _ACEOF | |
41279 | ||
41280 | fi | |
41281 | ||
41282 | ||
41283 | ||
41284 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
41285 | if test "$wxUSE_SHARED" = "no" ; then | |
41286 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
41287 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
41288 | wxUSE_PLUGINS=no | |
41289 | fi | |
41290 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
41291 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
41292 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
41293 | wxUSE_PLUGINS=no | |
41294 | fi | |
41295 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
41296 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
41297 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
41298 | wxUSE_PLUGINS=no | |
41299 | fi | |
41300 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
41301 | cat >>confdefs.h <<\_ACEOF | |
41302 | #define wxUSE_PLUGINS 1 | |
41303 | _ACEOF | |
41304 | ||
41305 | fi | |
41306 | fi | |
41307 | ||
41308 | ||
41309 | if test "$wxUSE_STL" = "yes"; then | |
41310 | cat >>confdefs.h <<\_ACEOF | |
41311 | #define wxUSE_STL 1 | |
41312 | _ACEOF | |
41313 | ||
41314 | fi | |
41315 | ||
41316 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
41317 | cat >>confdefs.h <<\_ACEOF | |
41318 | #define wxUSE_APPLE_IEEE 1 | |
41319 | _ACEOF | |
41320 | ||
41321 | fi | |
41322 | ||
41323 | if test "$wxUSE_TIMER" = "yes"; then | |
41324 | cat >>confdefs.h <<\_ACEOF | |
41325 | #define wxUSE_TIMER 1 | |
41326 | _ACEOF | |
41327 | ||
41328 | fi | |
41329 | ||
9c112555 | 41330 | if test "$USE_UNIX" = "1" ; then |
31714590 VZ |
41331 | echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5 |
41332 | echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6 | |
d12aef51 | 41333 | if test "${ac_cv_header_sys_soundcard+set}" = set; then |
a848cd7e | 41334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 41335 | else |
d12aef51 VZ |
41336 | |
41337 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
41338 | /* confdefs.h. */ |
41339 | _ACEOF | |
41340 | cat confdefs.h >>conftest.$ac_ext | |
41341 | cat >>conftest.$ac_ext <<_ACEOF | |
41342 | /* end confdefs.h. */ | |
d12aef51 | 41343 | |
31714590 | 41344 | #include <sys/ioctl.h> |
d12aef51 VZ |
41345 | #include <sys/soundcard.h> |
41346 | ||
41347 | int | |
41348 | main () | |
41349 | { | |
41350 | ||
31714590 | 41351 | ioctl(0, SNDCTL_DSP_SPEED, 0); |
d12aef51 VZ |
41352 | |
41353 | ; | |
41354 | return 0; | |
41355 | } | |
a848cd7e | 41356 | _ACEOF |
d12aef51 VZ |
41357 | rm -f conftest.$ac_objext conftest$ac_exeext |
41358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41359 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 41360 | ac_status=$? |
ac1cb8d3 VS |
41361 | grep -v '^ *+' conftest.er1 >conftest.err |
41362 | rm -f conftest.er1 | |
41363 | cat conftest.err >&5 | |
a848cd7e SC |
41364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41365 | (exit $ac_status); } && | |
c9a66001 | 41366 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41368 | (eval $ac_try) 2>&5 | |
41369 | ac_status=$? | |
41370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41371 | (exit $ac_status); }; } && | |
d12aef51 | 41372 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
41373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41374 | (eval $ac_try) 2>&5 | |
41375 | ac_status=$? | |
41376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41377 | (exit $ac_status); }; }; then | |
d12aef51 | 41378 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
41379 | else |
41380 | echo "$as_me: failed program was:" >&5 | |
41381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41382 | ||
a848cd7e | 41383 | |
d12aef51 VZ |
41384 | saveLibs="$LIBS" |
41385 | LIBS="$saveLibs -lossaudio" | |
41386 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
41387 | /* confdefs.h. */ |
41388 | _ACEOF | |
41389 | cat confdefs.h >>conftest.$ac_ext | |
41390 | cat >>conftest.$ac_ext <<_ACEOF | |
41391 | /* end confdefs.h. */ | |
d12aef51 | 41392 | |
31714590 | 41393 | #include <sys/ioctl.h> |
d12aef51 VZ |
41394 | #include <sys/soundcard.h> |
41395 | ||
41396 | int | |
41397 | main () | |
41398 | { | |
41399 | ||
31714590 | 41400 | ioctl(0, SNDCTL_DSP_SPEED, 0); |
d12aef51 VZ |
41401 | |
41402 | ; | |
41403 | return 0; | |
41404 | } | |
a848cd7e | 41405 | _ACEOF |
d12aef51 VZ |
41406 | rm -f conftest.$ac_objext conftest$ac_exeext |
41407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41408 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
41409 | ac_status=$? |
41410 | grep -v '^ *+' conftest.er1 >conftest.err | |
41411 | rm -f conftest.er1 | |
41412 | cat conftest.err >&5 | |
41413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 41414 | (exit $ac_status); } && |
c9a66001 | 41415 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
41416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41417 | (eval $ac_try) 2>&5 | |
41418 | ac_status=$? | |
41419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41420 | (exit $ac_status); }; } && | |
41421 | { ac_try='test -s conftest$ac_exeext' | |
41422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41423 | (eval $ac_try) 2>&5 | |
41424 | ac_status=$? | |
41425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41426 | (exit $ac_status); }; }; then | |
41427 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
41428 | else |
41429 | echo "$as_me: failed program was:" >&5 | |
41430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41431 | ||
a848cd7e | 41432 | |
d12aef51 VZ |
41433 | LIBS="$saveLibs" |
41434 | ac_cv_header_sys_soundcard=no | |
41435 | ||
41436 | ||
a848cd7e | 41437 | fi |
d12aef51 VZ |
41438 | rm -f conftest.err conftest.$ac_objext \ |
41439 | conftest$ac_exeext conftest.$ac_ext | |
41440 | ||
a848cd7e SC |
41441 | |
41442 | fi | |
d12aef51 VZ |
41443 | rm -f conftest.err conftest.$ac_objext \ |
41444 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41445 | |
41446 | fi | |
d12aef51 VZ |
41447 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
41448 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 41449 | |
d12aef51 VZ |
41450 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
41451 | cat >>confdefs.h <<\_ACEOF | |
41452 | #define HAVE_SYS_SOUNDCARD_H 1 | |
41453 | _ACEOF | |
a848cd7e | 41454 | |
d12aef51 VZ |
41455 | else |
41456 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
41457 | fi | |
9c112555 MW |
41458 | fi |
41459 | WITH_PLUGIN_SDL=0 | |
41460 | if test "$wxUSE_SOUND" = "yes"; then | |
41461 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
41462 | if test "$wxUSE_LIBSDL" != "no"; then |
41463 | ||
41464 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
41465 | if test "${with_sdl_prefix+set}" = set; then | |
41466 | withval="$with_sdl_prefix" | |
41467 | sdl_prefix="$withval" | |
41468 | else | |
41469 | sdl_prefix="" | |
41470 | fi; | |
41471 | ||
41472 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
41473 | if test "${with_sdl_exec_prefix+set}" = set; then | |
41474 | withval="$with_sdl_exec_prefix" | |
41475 | sdl_exec_prefix="$withval" | |
41476 | else | |
41477 | sdl_exec_prefix="" | |
41478 | fi; | |
41479 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
41480 | if test "${enable_sdltest+set}" = set; then | |
41481 | enableval="$enable_sdltest" | |
41482 | ||
41483 | else | |
41484 | enable_sdltest=yes | |
41485 | fi; | |
41486 | ||
41487 | if test x$sdl_exec_prefix != x ; then | |
3ecd9f92 MW |
41488 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" |
41489 | if test x${SDL_CONFIG+set} != xset ; then | |
41490 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
41491 | fi | |
a848cd7e SC |
41492 | fi |
41493 | if test x$sdl_prefix != x ; then | |
3ecd9f92 MW |
41494 | sdl_args="$sdl_args --prefix=$sdl_prefix" |
41495 | if test x${SDL_CONFIG+set} != xset ; then | |
41496 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
41497 | fi | |
a848cd7e SC |
41498 | fi |
41499 | ||
3ecd9f92 MW |
41500 | if test "x$prefix" != xNONE; then |
41501 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
41502 | fi | |
a848cd7e SC |
41503 | # Extract the first word of "sdl-config", so it can be a program name with args. |
41504 | set dummy sdl-config; ac_word=$2 | |
41505 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41507 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
41508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41509 | else | |
41510 | case $SDL_CONFIG in | |
41511 | [\\/]* | ?:[\\/]*) | |
41512 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
41513 | ;; | |
41514 | *) | |
41515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41516 | for as_dir in $PATH | |
41517 | do | |
41518 | IFS=$as_save_IFS | |
41519 | test -z "$as_dir" && as_dir=. | |
41520 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41521 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41522 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41523 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41524 | break 2 | |
41525 | fi | |
41526 | done | |
41527 | done | |
41528 | ||
41529 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
41530 | ;; | |
41531 | esac | |
41532 | fi | |
41533 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
41534 | ||
41535 | if test -n "$SDL_CONFIG"; then | |
41536 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
41537 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
41538 | else | |
41539 | echo "$as_me:$LINENO: result: no" >&5 | |
41540 | echo "${ECHO_T}no" >&6 | |
41541 | fi | |
41542 | ||
41543 | min_sdl_version=1.2.0 | |
41544 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
41545 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
41546 | no_sdl="" | |
41547 | if test "$SDL_CONFIG" = "no" ; then | |
41548 | no_sdl=yes | |
41549 | else | |
41550 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
41551 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
41552 | ||
41553 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
41554 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41555 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
41556 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41557 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
41558 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41559 | if test "x$enable_sdltest" = "xyes" ; then | |
41560 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 41561 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
41562 | ac_save_LIBS="$LIBS" |
41563 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 41564 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
41565 | LIBS="$LIBS $SDL_LIBS" |
41566 | rm -f conf.sdltest | |
41567 | if test "$cross_compiling" = yes; then | |
41568 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
41569 | else | |
41570 | cat >conftest.$ac_ext <<_ACEOF | |
41571 | /* confdefs.h. */ | |
41572 | _ACEOF | |
41573 | cat confdefs.h >>conftest.$ac_ext | |
41574 | cat >>conftest.$ac_ext <<_ACEOF | |
41575 | /* end confdefs.h. */ | |
41576 | ||
41577 | #include <stdio.h> | |
41578 | #include <stdlib.h> | |
41579 | #include <string.h> | |
41580 | #include "SDL.h" | |
41581 | ||
41582 | char* | |
41583 | my_strdup (char *str) | |
41584 | { | |
41585 | char *new_str; | |
41586 | ||
41587 | if (str) | |
41588 | { | |
41589 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
41590 | strcpy (new_str, str); | |
41591 | } | |
41592 | else | |
41593 | new_str = NULL; | |
41594 | ||
41595 | return new_str; | |
41596 | } | |
41597 | ||
41598 | int main (int argc, char *argv[]) | |
41599 | { | |
41600 | int major, minor, micro; | |
41601 | char *tmp_version; | |
41602 | ||
41603 | /* This hangs on some systems (?) | |
41604 | system ("touch conf.sdltest"); | |
41605 | */ | |
41606 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
41607 | ||
41608 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
41609 | tmp_version = my_strdup("$min_sdl_version"); | |
41610 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
41611 | printf("%s, bad version string\n", "$min_sdl_version"); | |
41612 | exit(1); | |
41613 | } | |
41614 | ||
41615 | if (($sdl_major_version > major) || | |
41616 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
41617 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
41618 | { | |
41619 | return 0; | |
41620 | } | |
41621 | else | |
41622 | { | |
41623 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
41624 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
41625 | printf("*** best to upgrade to the required version.\n"); | |
41626 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
41627 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
41628 | printf("*** config.cache before re-running configure\n"); | |
41629 | return 1; | |
41630 | } | |
41631 | } | |
41632 | ||
41633 | ||
41634 | _ACEOF | |
41635 | rm -f conftest$ac_exeext | |
41636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41637 | (eval $ac_link) 2>&5 | |
41638 | ac_status=$? | |
41639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41640 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
41641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41642 | (eval $ac_try) 2>&5 | |
41643 | ac_status=$? | |
41644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41645 | (exit $ac_status); }; }; then | |
41646 | : | |
41647 | else | |
41648 | echo "$as_me: program exited with status $ac_status" >&5 | |
41649 | echo "$as_me: failed program was:" >&5 | |
41650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41651 | ||
41652 | ( exit $ac_status ) | |
41653 | no_sdl=yes | |
41654 | fi | |
ac1cb8d3 | 41655 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41656 | fi |
41657 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 41658 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
41659 | LIBS="$ac_save_LIBS" |
41660 | fi | |
41661 | fi | |
41662 | if test "x$no_sdl" = x ; then | |
41663 | echo "$as_me:$LINENO: result: yes" >&5 | |
41664 | echo "${ECHO_T}yes" >&6 | |
41665 | ||
41666 | EXTRALIBS_SDL="$SDL_LIBS" | |
c92ad099 | 41667 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
a848cd7e SC |
41668 | cat >>confdefs.h <<\_ACEOF |
41669 | #define wxUSE_LIBSDL 1 | |
41670 | _ACEOF | |
41671 | ||
41672 | ||
41673 | else | |
41674 | echo "$as_me:$LINENO: result: no" >&5 | |
41675 | echo "${ECHO_T}no" >&6 | |
41676 | if test "$SDL_CONFIG" = "no" ; then | |
41677 | echo "*** The sdl-config script installed by SDL could not be found" | |
41678 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
41679 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
41680 | echo "*** full path to sdl-config." | |
41681 | else | |
41682 | if test -f conf.sdltest ; then | |
41683 | : | |
41684 | else | |
41685 | echo "*** Could not run SDL test program, checking why..." | |
41686 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 41687 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
41688 | LIBS="$LIBS $SDL_LIBS" |
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 <stdio.h> | |
41697 | #include "SDL.h" | |
41698 | ||
41699 | int main(int argc, char *argv[]) | |
41700 | { return 0; } | |
41701 | #undef main | |
41702 | #define main K_and_R_C_main | |
41703 | ||
41704 | int | |
41705 | main () | |
41706 | { | |
41707 | return 0; | |
41708 | ; | |
41709 | return 0; | |
41710 | } | |
41711 | _ACEOF | |
41712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41714 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41715 | ac_status=$? |
ac1cb8d3 VS |
41716 | grep -v '^ *+' conftest.er1 >conftest.err |
41717 | rm -f conftest.er1 | |
41718 | cat conftest.err >&5 | |
a848cd7e SC |
41719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41720 | (exit $ac_status); } && | |
c9a66001 | 41721 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41723 | (eval $ac_try) 2>&5 | |
41724 | ac_status=$? | |
41725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41726 | (exit $ac_status); }; } && | |
41727 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41729 | (eval $ac_try) 2>&5 | |
41730 | ac_status=$? | |
41731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41732 | (exit $ac_status); }; }; then | |
41733 | echo "*** The test program compiled, but did not run. This usually means" | |
41734 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
41735 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
41736 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
41737 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
41738 | echo "*** is required on your system" | |
41739 | echo "***" | |
41740 | echo "*** If you have an old version installed, it is best to remove it, although" | |
41741 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
41742 | else | |
41743 | echo "$as_me: failed program was:" >&5 | |
41744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41745 | ||
41746 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
41747 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
41748 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
41749 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
41750 | fi | |
ac1cb8d3 VS |
41751 | rm -f conftest.err conftest.$ac_objext \ |
41752 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 41753 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 41754 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
41755 | LIBS="$ac_save_LIBS" |
41756 | fi | |
41757 | fi | |
41758 | SDL_CFLAGS="" | |
41759 | SDL_LIBS="" | |
41760 | wxUSE_LIBSDL="no" | |
41761 | fi | |
41762 | ||
41763 | ||
41764 | rm -f conf.sdltest | |
41765 | ||
41766 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
41767 | WITH_PLUGIN_SDL=1 | |
41768 | fi | |
41769 | fi | |
41770 | fi | |
41771 | ||
41772 | cat >>confdefs.h <<\_ACEOF | |
41773 | #define wxUSE_SOUND 1 | |
41774 | _ACEOF | |
41775 | ||
41776 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
41777 | fi | |
41778 | ||
d1c38808 VZ |
41779 | if test "$WXGTK20" = 1; then |
41780 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
41781 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
41782 | ||
41783 | ||
3ecd9f92 MW |
41784 | pkg_failed=no |
41785 | echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5 | |
41786 | echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6 | |
d1c38808 | 41787 | |
3ecd9f92 MW |
41788 | if test -n "$PKG_CONFIG"; then |
41789 | if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then | |
41790 | pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS" | |
41791 | else | |
41792 | if test -n "$PKG_CONFIG" && \ | |
41793 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5 | |
41794 | ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5 | |
41795 | ac_status=$? | |
41796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41797 | (exit $ac_status); }; then | |
41798 | pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null` | |
d1c38808 | 41799 | else |
3ecd9f92 MW |
41800 | pkg_failed=yes |
41801 | fi | |
41802 | fi | |
41803 | else | |
41804 | pkg_failed=untried | |
d1c38808 | 41805 | fi |
d1c38808 | 41806 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
41807 | if test -n "$LIBGNOMEPRINTUI_LIBS"; then |
41808 | pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS" | |
41809 | else | |
41810 | if test -n "$PKG_CONFIG" && \ | |
41811 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5 | |
41812 | ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5 | |
41813 | ac_status=$? | |
41814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41815 | (exit $ac_status); }; then | |
41816 | pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null` | |
d1c38808 | 41817 | else |
3ecd9f92 MW |
41818 | pkg_failed=yes |
41819 | fi | |
41820 | fi | |
41821 | else | |
41822 | pkg_failed=untried | |
d1c38808 VZ |
41823 | fi |
41824 | ||
d1c38808 | 41825 | |
d1c38808 | 41826 | |
3ecd9f92 | 41827 | if test $pkg_failed = yes; then |
d1c38808 | 41828 | |
3ecd9f92 MW |
41829 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
41830 | _pkg_short_errors_supported=yes | |
41831 | else | |
41832 | _pkg_short_errors_supported=no | |
41833 | fi | |
41834 | if test $_pkg_short_errors_supported = yes; then | |
41835 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` | |
41836 | else | |
41837 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` | |
d1c38808 | 41838 | fi |
3ecd9f92 MW |
41839 | # Put the nasty error message in config.log where it belongs |
41840 | echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5 | |
d1c38808 VZ |
41841 | |
41842 | ||
3ecd9f92 MW |
41843 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 |
41844 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
41845 | wxUSE_LIBGNOMEPRINT="no" | |
d1c38808 VZ |
41846 | |
41847 | ||
3ecd9f92 | 41848 | elif test $pkg_failed = untried; then |
d1c38808 VZ |
41849 | |
41850 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
41851 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
41852 | wxUSE_LIBGNOMEPRINT="no" | |
41853 | ||
41854 | ||
3ecd9f92 MW |
41855 | else |
41856 | LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS | |
41857 | LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS | |
41858 | echo "$as_me:$LINENO: result: yes" >&5 | |
41859 | echo "${ECHO_T}yes" >&6 | |
d1c38808 | 41860 | |
3ecd9f92 MW |
41861 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
41862 | cat >>confdefs.h <<\_ACEOF | |
41863 | #define wxUSE_LIBGNOMEPRINT 1 | |
41864 | _ACEOF | |
41865 | ||
41866 | ||
41867 | fi | |
d1c38808 VZ |
41868 | fi |
41869 | fi | |
41870 | fi | |
41871 | ||
2b850ae1 RR |
41872 | if test "$WXGTK20" = 1; then |
41873 | if test "$wxUSE_MIMETYPE" = "yes" ; then | |
41874 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
41875 | ||
41876 | ||
3ecd9f92 MW |
41877 | pkg_failed=no |
41878 | echo "$as_me:$LINENO: checking for GNOMEVFS" >&5 | |
41879 | echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6 | |
2b850ae1 | 41880 | |
3ecd9f92 MW |
41881 | if test -n "$PKG_CONFIG"; then |
41882 | if test -n "$GNOMEVFS_CFLAGS"; then | |
41883 | pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS" | |
41884 | else | |
41885 | if test -n "$PKG_CONFIG" && \ | |
41886 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5 | |
41887 | ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5 | |
41888 | ac_status=$? | |
41889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41890 | (exit $ac_status); }; then | |
41891 | pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null` | |
2b850ae1 | 41892 | else |
3ecd9f92 MW |
41893 | pkg_failed=yes |
41894 | fi | |
41895 | fi | |
41896 | else | |
41897 | pkg_failed=untried | |
2b850ae1 | 41898 | fi |
2b850ae1 | 41899 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
41900 | if test -n "$GNOMEVFS_LIBS"; then |
41901 | pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS" | |
41902 | else | |
41903 | if test -n "$PKG_CONFIG" && \ | |
41904 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5 | |
41905 | ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5 | |
41906 | ac_status=$? | |
41907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41908 | (exit $ac_status); }; then | |
41909 | pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null` | |
2b850ae1 | 41910 | else |
3ecd9f92 MW |
41911 | pkg_failed=yes |
41912 | fi | |
41913 | fi | |
41914 | else | |
41915 | pkg_failed=untried | |
2b850ae1 RR |
41916 | fi |
41917 | ||
2b850ae1 | 41918 | |
2b850ae1 | 41919 | |
3ecd9f92 | 41920 | if test $pkg_failed = yes; then |
2b850ae1 | 41921 | |
3ecd9f92 MW |
41922 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
41923 | _pkg_short_errors_supported=yes | |
41924 | else | |
41925 | _pkg_short_errors_supported=no | |
41926 | fi | |
41927 | if test $_pkg_short_errors_supported = yes; then | |
41928 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
41929 | else | |
41930 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
2b850ae1 | 41931 | fi |
3ecd9f92 MW |
41932 | # Put the nasty error message in config.log where it belongs |
41933 | echo "$GNOMEVFS_PKG_ERRORS" >&5 | |
2b850ae1 RR |
41934 | |
41935 | ||
3ecd9f92 MW |
41936 | { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 |
41937 | echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
41938 | wxUSE_LIBGNOMEVFS="no" | |
2b850ae1 RR |
41939 | |
41940 | ||
3ecd9f92 | 41941 | elif test $pkg_failed = untried; then |
2b850ae1 RR |
41942 | |
41943 | { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 | |
41944 | echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
41945 | wxUSE_LIBGNOMEVFS="no" | |
41946 | ||
41947 | ||
3ecd9f92 MW |
41948 | else |
41949 | GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS | |
41950 | GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS | |
41951 | echo "$as_me:$LINENO: result: yes" >&5 | |
41952 | echo "${ECHO_T}yes" >&6 | |
2b850ae1 | 41953 | |
3ecd9f92 MW |
41954 | CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS" |
41955 | cat >>confdefs.h <<\_ACEOF | |
41956 | #define wxUSE_LIBGNOMEVFS 1 | |
41957 | _ACEOF | |
41958 | ||
41959 | ||
41960 | fi | |
2b850ae1 RR |
41961 | fi |
41962 | fi | |
41963 | fi | |
41964 | ||
3565d135 RR |
41965 | if test "$WXGTK20" = 1; then |
41966 | if test "$wxUSE_LIBHILDON" = "yes" ; then | |
41967 | ||
3ecd9f92 MW |
41968 | pkg_failed=no |
41969 | echo "$as_me:$LINENO: checking for HILDON" >&5 | |
41970 | echo $ECHO_N "checking for HILDON... $ECHO_C" >&6 | |
3565d135 | 41971 | |
3ecd9f92 MW |
41972 | if test -n "$PKG_CONFIG"; then |
41973 | if test -n "$HILDON_CFLAGS"; then | |
41974 | pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS" | |
41975 | else | |
41976 | if test -n "$PKG_CONFIG" && \ | |
41977 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5 | |
41978 | ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5 | |
41979 | ac_status=$? | |
41980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41981 | (exit $ac_status); }; then | |
41982 | pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null` | |
3565d135 | 41983 | else |
3ecd9f92 MW |
41984 | pkg_failed=yes |
41985 | fi | |
41986 | fi | |
41987 | else | |
41988 | pkg_failed=untried | |
3565d135 | 41989 | fi |
3565d135 | 41990 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
41991 | if test -n "$HILDON_LIBS"; then |
41992 | pkg_cv_HILDON_LIBS="$HILDON_LIBS" | |
41993 | else | |
41994 | if test -n "$PKG_CONFIG" && \ | |
41995 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5 | |
41996 | ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5 | |
41997 | ac_status=$? | |
41998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41999 | (exit $ac_status); }; then | |
42000 | pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null` | |
3565d135 | 42001 | else |
3ecd9f92 MW |
42002 | pkg_failed=yes |
42003 | fi | |
42004 | fi | |
42005 | else | |
42006 | pkg_failed=untried | |
3565d135 RR |
42007 | fi |
42008 | ||
3565d135 | 42009 | |
3565d135 | 42010 | |
3ecd9f92 | 42011 | if test $pkg_failed = yes; then |
3565d135 | 42012 | |
3ecd9f92 MW |
42013 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
42014 | _pkg_short_errors_supported=yes | |
42015 | else | |
42016 | _pkg_short_errors_supported=no | |
42017 | fi | |
42018 | if test $_pkg_short_errors_supported = yes; then | |
42019 | HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
42020 | else | |
42021 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
3565d135 | 42022 | fi |
3ecd9f92 MW |
42023 | # Put the nasty error message in config.log where it belongs |
42024 | echo "$HILDON_PKG_ERRORS" >&5 | |
3565d135 RR |
42025 | |
42026 | ||
3ecd9f92 MW |
42027 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 |
42028 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
42029 | wxUSE_LIBHILDON="no" | |
3565d135 | 42030 | |
3565d135 | 42031 | |
3ecd9f92 MW |
42032 | elif test $pkg_failed = untried; then |
42033 | ||
42034 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 | |
42035 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
42036 | wxUSE_LIBHILDON="no" | |
42037 | ||
42038 | ||
42039 | else | |
42040 | HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS | |
42041 | HILDON_LIBS=$pkg_cv_HILDON_LIBS | |
42042 | echo "$as_me:$LINENO: result: yes" >&5 | |
42043 | echo "${ECHO_T}yes" >&6 | |
3565d135 RR |
42044 | |
42045 | EXTRALIBS_HILDON="$HILDON_LIBS" | |
42046 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" | |
42047 | cat >>confdefs.h <<\_ACEOF | |
42048 | #define wxUSE_LIBHILDON 1 | |
42049 | _ACEOF | |
42050 | ||
42051 | ||
3ecd9f92 | 42052 | fi |
3565d135 RR |
42053 | fi |
42054 | fi | |
d1c38808 | 42055 | |
a848cd7e SC |
42056 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
42057 | cat >>confdefs.h <<\_ACEOF | |
42058 | #define wxUSE_CMDLINE_PARSER 1 | |
42059 | _ACEOF | |
42060 | ||
42061 | fi | |
42062 | ||
42063 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
42064 | cat >>confdefs.h <<\_ACEOF | |
42065 | #define wxUSE_STOPWATCH 1 | |
42066 | _ACEOF | |
42067 | ||
42068 | fi | |
42069 | ||
42070 | if test "$wxUSE_DATETIME" = "yes"; then | |
42071 | cat >>confdefs.h <<\_ACEOF | |
42072 | #define wxUSE_DATETIME 1 | |
42073 | _ACEOF | |
42074 | ||
42075 | fi | |
42076 | ||
42077 | if test "$wxUSE_FILE" = "yes"; then | |
42078 | cat >>confdefs.h <<\_ACEOF | |
42079 | #define wxUSE_FILE 1 | |
42080 | _ACEOF | |
42081 | ||
42082 | fi | |
42083 | ||
42084 | if test "$wxUSE_FFILE" = "yes"; then | |
42085 | cat >>confdefs.h <<\_ACEOF | |
42086 | #define wxUSE_FFILE 1 | |
42087 | _ACEOF | |
42088 | ||
42089 | fi | |
42090 | ||
42091 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
42092 | cat >>confdefs.h <<\_ACEOF | |
42093 | #define wxUSE_FILESYSTEM 1 | |
42094 | _ACEOF | |
42095 | ||
42096 | fi | |
42097 | ||
42098 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
42099 | cat >>confdefs.h <<\_ACEOF | |
42100 | #define wxUSE_FS_ZIP 1 | |
42101 | _ACEOF | |
42102 | ||
42103 | fi | |
42104 | ||
9e8e867f | 42105 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 42106 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 42107 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
42108 | _ACEOF |
42109 | ||
42110 | fi | |
42111 | ||
42112 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 42113 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
42114 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
42115 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
42116 | elif test "$wxUSE_ZLIB" = "no"; then | |
42117 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
42118 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
42119 | else | |
42120 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
42121 | #define wxUSE_ZIPSTREAM 1 |
42122 | _ACEOF | |
42123 | ||
81f90336 | 42124 | fi |
a848cd7e SC |
42125 | fi |
42126 | ||
a848cd7e | 42127 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
42128 | if test "$USE_UNIX" != 1; then |
42129 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
42130 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
42131 | wxUSE_ON_FATAL_EXCEPTION=no | |
42132 | else | |
42133 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
42134 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
42135 | _ACEOF | |
42136 | ||
18228ab4 | 42137 | fi |
a848cd7e SC |
42138 | fi |
42139 | ||
eaff0f0d VZ |
42140 | if test "$wxUSE_STACKWALKER" = "yes"; then |
42141 | cat >>confdefs.h <<\_ACEOF | |
42142 | #define wxUSE_STACKWALKER 1 | |
42143 | _ACEOF | |
42144 | ||
42145 | fi | |
42146 | ||
36b6448c | 42147 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
42148 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
42149 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
42150 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
42151 | wxUSE_DEBUGREPORT=no |
42152 | else | |
42153 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
42154 | #define wxUSE_DEBUGREPORT 1 |
42155 | _ACEOF | |
42156 | ||
21dfc162 MW |
42157 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
42158 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
42159 | fi | |
dfe0c803 | 42160 | fi |
36b6448c VZ |
42161 | fi |
42162 | ||
a848cd7e SC |
42163 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
42164 | cat >>confdefs.h <<\_ACEOF | |
42165 | #define wxUSE_SNGLINST_CHECKER 1 | |
42166 | _ACEOF | |
42167 | ||
42168 | fi | |
42169 | ||
42170 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
42171 | cat >>confdefs.h <<\_ACEOF | |
42172 | #define wxUSE_BUSYINFO 1 | |
42173 | _ACEOF | |
42174 | ||
42175 | fi | |
42176 | ||
42177 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
42178 | cat >>confdefs.h <<\_ACEOF | |
42179 | #define wxUSE_STD_IOSTREAM 1 | |
42180 | _ACEOF | |
42181 | ||
42182 | fi | |
42183 | ||
59746b65 MW |
42184 | if test "$wxUSE_STD_STRING" = "yes"; then |
42185 | cat >>confdefs.h <<\_ACEOF | |
42186 | #define wxUSE_STD_STRING 1 | |
42187 | _ACEOF | |
42188 | ||
42189 | fi | |
42190 | ||
07158944 VZ |
42191 | if test "$wxUSE_STDPATHS" = "yes"; then |
42192 | cat >>confdefs.h <<\_ACEOF | |
42193 | #define wxUSE_STDPATHS 1 | |
42194 | _ACEOF | |
42195 | ||
42196 | fi | |
42197 | ||
a848cd7e SC |
42198 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
42199 | cat >>confdefs.h <<\_ACEOF | |
42200 | #define wxUSE_TEXTBUFFER 1 | |
42201 | _ACEOF | |
42202 | ||
42203 | fi | |
42204 | ||
42205 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
42206 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
42207 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
42208 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
42209 | else | |
42210 | cat >>confdefs.h <<\_ACEOF | |
42211 | #define wxUSE_TEXTFILE 1 | |
42212 | _ACEOF | |
42213 | ||
42214 | fi | |
42215 | fi | |
42216 | ||
42217 | if test "$wxUSE_CONFIG" = "yes" ; then | |
42218 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
42219 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
42220 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
42221 | else | |
42222 | cat >>confdefs.h <<\_ACEOF | |
42223 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
42224 | _ACEOF |
42225 | ||
42226 | cat >>confdefs.h <<\_ACEOF | |
42227 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
42228 | _ACEOF |
42229 | ||
42230 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
42231 | fi | |
42232 | fi | |
42233 | ||
42234 | if test "$wxUSE_INTL" = "yes" ; then | |
42235 | if test "$wxUSE_FILE" != "yes"; then | |
42236 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
42237 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
42238 | else | |
42239 | cat >>confdefs.h <<\_ACEOF | |
42240 | #define wxUSE_INTL 1 | |
42241 | _ACEOF | |
42242 | ||
42243 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
42244 | GUIDIST="$GUIDIST INTL_DIST" | |
42245 | fi | |
42246 | fi | |
42247 | ||
42248 | if test "$wxUSE_LOG" = "yes"; then | |
42249 | cat >>confdefs.h <<\_ACEOF | |
42250 | #define wxUSE_LOG 1 | |
42251 | _ACEOF | |
42252 | ||
42253 | ||
42254 | if test "$wxUSE_LOGGUI" = "yes"; then | |
42255 | cat >>confdefs.h <<\_ACEOF | |
42256 | #define wxUSE_LOGGUI 1 | |
42257 | _ACEOF | |
42258 | ||
42259 | fi | |
42260 | ||
42261 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
42262 | cat >>confdefs.h <<\_ACEOF | |
42263 | #define wxUSE_LOGWINDOW 1 | |
42264 | _ACEOF | |
42265 | ||
42266 | fi | |
42267 | ||
42268 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
42269 | cat >>confdefs.h <<\_ACEOF | |
42270 | #define wxUSE_LOG_DIALOG 1 | |
42271 | _ACEOF | |
42272 | ||
42273 | fi | |
0b78747f MW |
42274 | |
42275 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
42276 | fi |
42277 | ||
42278 | if test "$wxUSE_LONGLONG" = "yes"; then | |
42279 | cat >>confdefs.h <<\_ACEOF | |
42280 | #define wxUSE_LONGLONG 1 | |
42281 | _ACEOF | |
42282 | ||
42283 | fi | |
42284 | ||
42285 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
42286 | cat >>confdefs.h <<\_ACEOF | |
42287 | #define wxUSE_GEOMETRY 1 | |
42288 | _ACEOF | |
42289 | ||
42290 | fi | |
42291 | ||
a848cd7e SC |
42292 | if test "$wxUSE_STREAMS" = "yes" ; then |
42293 | cat >>confdefs.h <<\_ACEOF | |
42294 | #define wxUSE_STREAMS 1 | |
42295 | _ACEOF | |
42296 | ||
42297 | fi | |
42298 | ||
8b6682b9 JS |
42299 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then |
42300 | cat >>confdefs.h <<\_ACEOF | |
42301 | #define wxUSE_PRINTF_POS_PARAMS 1 | |
42302 | _ACEOF | |
42303 | ||
42304 | fi | |
42305 | ||
42306 | ||
a848cd7e SC |
42307 | |
42308 | if test "$wxUSE_DATETIME" = "yes"; then | |
42309 | ||
42310 | for ac_func in strptime | |
42311 | do | |
42312 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42313 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42314 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42315 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42317 | else | |
42318 | cat >conftest.$ac_ext <<_ACEOF | |
42319 | /* confdefs.h. */ | |
42320 | _ACEOF | |
42321 | cat confdefs.h >>conftest.$ac_ext | |
42322 | cat >>conftest.$ac_ext <<_ACEOF | |
42323 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42324 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42325 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42326 | #define $ac_func innocuous_$ac_func | |
42327 | ||
a848cd7e SC |
42328 | /* System header to define __stub macros and hopefully few prototypes, |
42329 | which can conflict with char $ac_func (); below. | |
42330 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42331 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42332 | |
a848cd7e SC |
42333 | #ifdef __STDC__ |
42334 | # include <limits.h> | |
42335 | #else | |
42336 | # include <assert.h> | |
42337 | #endif | |
ac1cb8d3 VS |
42338 | |
42339 | #undef $ac_func | |
42340 | ||
a848cd7e SC |
42341 | /* Override any gcc2 internal prototype to avoid an error. */ |
42342 | #ifdef __cplusplus | |
42343 | extern "C" | |
42344 | { | |
42345 | #endif | |
42346 | /* We use char because int might match the return type of a gcc2 | |
42347 | builtin and then its argument prototype would still apply. */ | |
42348 | char $ac_func (); | |
42349 | /* The GNU C library defines this for functions which it implements | |
42350 | to always fail with ENOSYS. Some functions are actually named | |
42351 | something starting with __ and the normal name is an alias. */ | |
42352 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42353 | choke me | |
42354 | #else | |
42355 | char (*f) () = $ac_func; | |
42356 | #endif | |
42357 | #ifdef __cplusplus | |
42358 | } | |
42359 | #endif | |
42360 | ||
42361 | int | |
42362 | main () | |
42363 | { | |
42364 | return f != $ac_func; | |
42365 | ; | |
42366 | return 0; | |
42367 | } | |
42368 | _ACEOF | |
42369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42371 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42372 | ac_status=$? |
ac1cb8d3 VS |
42373 | grep -v '^ *+' conftest.er1 >conftest.err |
42374 | rm -f conftest.er1 | |
42375 | cat conftest.err >&5 | |
a848cd7e SC |
42376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42377 | (exit $ac_status); } && | |
c9a66001 | 42378 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42380 | (eval $ac_try) 2>&5 | |
42381 | ac_status=$? | |
42382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42383 | (exit $ac_status); }; } && | |
42384 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42386 | (eval $ac_try) 2>&5 | |
42387 | ac_status=$? | |
42388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42389 | (exit $ac_status); }; }; then | |
42390 | eval "$as_ac_var=yes" | |
42391 | else | |
42392 | echo "$as_me: failed program was:" >&5 | |
42393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42394 | ||
42395 | eval "$as_ac_var=no" | |
42396 | fi | |
ac1cb8d3 VS |
42397 | rm -f conftest.err conftest.$ac_objext \ |
42398 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42399 | fi |
42400 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42401 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42402 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42403 | cat >>confdefs.h <<_ACEOF | |
42404 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42405 | _ACEOF | |
42406 | ||
42407 | fi | |
42408 | done | |
42409 | ||
f536f005 VZ |
42410 | if test "$ac_cv_func_strptime" = "yes"; then |
42411 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
42412 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
42413 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
42414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42415 | else | |
42416 | ||
f536f005 VZ |
42417 | cat >conftest.$ac_ext <<_ACEOF |
42418 | /* confdefs.h. */ | |
42419 | _ACEOF | |
42420 | cat confdefs.h >>conftest.$ac_ext | |
42421 | cat >>conftest.$ac_ext <<_ACEOF | |
42422 | /* end confdefs.h. */ | |
42423 | ||
42424 | #include <time.h> | |
42425 | ||
42426 | int | |
42427 | main () | |
42428 | { | |
42429 | ||
42430 | struct tm t; | |
42431 | strptime("foo", "bar", &t); | |
42432 | ||
42433 | ; | |
42434 | return 0; | |
42435 | } | |
42436 | _ACEOF | |
42437 | rm -f conftest.$ac_objext | |
42438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42439 | (eval $ac_compile) 2>conftest.er1 | |
42440 | ac_status=$? | |
42441 | grep -v '^ *+' conftest.er1 >conftest.err | |
42442 | rm -f conftest.er1 | |
42443 | cat conftest.err >&5 | |
42444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42445 | (exit $ac_status); } && | |
c9a66001 | 42446 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f536f005 VZ |
42447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42448 | (eval $ac_try) 2>&5 | |
42449 | ac_status=$? | |
42450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42451 | (exit $ac_status); }; } && | |
42452 | { ac_try='test -s conftest.$ac_objext' | |
42453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42454 | (eval $ac_try) 2>&5 | |
42455 | ac_status=$? | |
42456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42457 | (exit $ac_status); }; }; then | |
42458 | wx_cv_func_strptime_decl=yes | |
42459 | else | |
42460 | echo "$as_me: failed program was:" >&5 | |
42461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42462 | ||
42463 | wx_cv_func_strptime_decl=no | |
42464 | ||
42465 | fi | |
42466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f536f005 VZ |
42467 | |
42468 | ||
42469 | fi | |
42470 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
42471 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
42472 | fi | |
42473 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
42474 | cat >>confdefs.h <<\_ACEOF | |
42475 | #define HAVE_STRPTIME_DECL 1 | |
42476 | _ACEOF | |
42477 | ||
42478 | fi | |
a848cd7e SC |
42479 | |
42480 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
42481 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
42482 | if test "${wx_cv_var_timezone+set}" = set; then | |
42483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42484 | else | |
42485 | ||
42486 | cat >conftest.$ac_ext <<_ACEOF | |
42487 | /* confdefs.h. */ | |
42488 | _ACEOF | |
42489 | cat confdefs.h >>conftest.$ac_ext | |
42490 | cat >>conftest.$ac_ext <<_ACEOF | |
42491 | /* end confdefs.h. */ | |
42492 | ||
42493 | #include <time.h> | |
42494 | ||
42495 | int | |
42496 | main () | |
42497 | { | |
42498 | ||
42499 | int tz; | |
42500 | tz = timezone; | |
42501 | ||
42502 | ; | |
42503 | return 0; | |
42504 | } | |
42505 | _ACEOF | |
42506 | rm -f conftest.$ac_objext | |
42507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42508 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42509 | ac_status=$? |
ac1cb8d3 VS |
42510 | grep -v '^ *+' conftest.er1 >conftest.err |
42511 | rm -f conftest.er1 | |
42512 | cat conftest.err >&5 | |
a848cd7e SC |
42513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42514 | (exit $ac_status); } && | |
c9a66001 | 42515 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42517 | (eval $ac_try) 2>&5 | |
42518 | ac_status=$? | |
42519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42520 | (exit $ac_status); }; } && | |
42521 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42523 | (eval $ac_try) 2>&5 | |
42524 | ac_status=$? | |
42525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42526 | (exit $ac_status); }; }; then | |
42527 | ||
42528 | wx_cv_var_timezone=timezone | |
42529 | ||
42530 | else | |
42531 | echo "$as_me: failed program was:" >&5 | |
42532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42533 | ||
42534 | ||
42535 | cat >conftest.$ac_ext <<_ACEOF | |
42536 | /* confdefs.h. */ | |
42537 | _ACEOF | |
42538 | cat confdefs.h >>conftest.$ac_ext | |
42539 | cat >>conftest.$ac_ext <<_ACEOF | |
42540 | /* end confdefs.h. */ | |
42541 | ||
42542 | #include <time.h> | |
42543 | ||
42544 | int | |
42545 | main () | |
42546 | { | |
42547 | ||
42548 | int tz; | |
42549 | tz = _timezone; | |
42550 | ||
42551 | ; | |
42552 | return 0; | |
42553 | } | |
42554 | _ACEOF | |
42555 | rm -f conftest.$ac_objext | |
42556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42557 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42558 | ac_status=$? |
ac1cb8d3 VS |
42559 | grep -v '^ *+' conftest.er1 >conftest.err |
42560 | rm -f conftest.er1 | |
42561 | cat conftest.err >&5 | |
a848cd7e SC |
42562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42563 | (exit $ac_status); } && | |
c9a66001 | 42564 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42566 | (eval $ac_try) 2>&5 | |
42567 | ac_status=$? | |
42568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42569 | (exit $ac_status); }; } && | |
42570 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42572 | (eval $ac_try) 2>&5 | |
42573 | ac_status=$? | |
42574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42575 | (exit $ac_status); }; }; then | |
42576 | ||
42577 | wx_cv_var_timezone=_timezone | |
42578 | ||
42579 | else | |
42580 | echo "$as_me: failed program was:" >&5 | |
42581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42582 | ||
42583 | ||
42584 | cat >conftest.$ac_ext <<_ACEOF | |
42585 | /* confdefs.h. */ | |
42586 | _ACEOF | |
42587 | cat confdefs.h >>conftest.$ac_ext | |
42588 | cat >>conftest.$ac_ext <<_ACEOF | |
42589 | /* end confdefs.h. */ | |
42590 | ||
42591 | #include <time.h> | |
42592 | ||
42593 | int | |
42594 | main () | |
42595 | { | |
42596 | ||
42597 | int tz; | |
42598 | tz = __timezone; | |
42599 | ||
42600 | ; | |
42601 | return 0; | |
42602 | } | |
42603 | _ACEOF | |
42604 | rm -f conftest.$ac_objext | |
42605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42606 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42607 | ac_status=$? |
ac1cb8d3 VS |
42608 | grep -v '^ *+' conftest.er1 >conftest.err |
42609 | rm -f conftest.er1 | |
42610 | cat conftest.err >&5 | |
a848cd7e SC |
42611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42612 | (exit $ac_status); } && | |
c9a66001 | 42613 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42615 | (eval $ac_try) 2>&5 | |
42616 | ac_status=$? | |
42617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42618 | (exit $ac_status); }; } && | |
42619 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42621 | (eval $ac_try) 2>&5 | |
42622 | ac_status=$? | |
42623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42624 | (exit $ac_status); }; }; then | |
42625 | ||
42626 | wx_cv_var_timezone=__timezone | |
42627 | ||
42628 | else | |
42629 | echo "$as_me: failed program was:" >&5 | |
42630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42631 | ||
42632 | ||
42633 | if test "$USE_DOS" = 0 ; then | |
42634 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
42635 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
42636 | fi | |
42637 | ||
42638 | ||
42639 | fi | |
ac1cb8d3 | 42640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42641 | |
42642 | ||
42643 | fi | |
ac1cb8d3 | 42644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42645 | |
42646 | ||
42647 | fi | |
ac1cb8d3 | 42648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42649 | |
42650 | ||
42651 | fi | |
42652 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
42653 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
42654 | ||
42655 | if test "x$wx_cv_var_timezone" != x ; then | |
42656 | cat >>confdefs.h <<_ACEOF | |
42657 | #define WX_TIMEZONE $wx_cv_var_timezone | |
42658 | _ACEOF | |
42659 | ||
42660 | fi | |
42661 | ||
42662 | ||
42663 | for ac_func in localtime | |
42664 | do | |
42665 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42666 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42667 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42668 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42670 | else | |
42671 | cat >conftest.$ac_ext <<_ACEOF | |
42672 | /* confdefs.h. */ | |
42673 | _ACEOF | |
42674 | cat confdefs.h >>conftest.$ac_ext | |
42675 | cat >>conftest.$ac_ext <<_ACEOF | |
42676 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42677 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42678 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42679 | #define $ac_func innocuous_$ac_func | |
42680 | ||
a848cd7e SC |
42681 | /* System header to define __stub macros and hopefully few prototypes, |
42682 | which can conflict with char $ac_func (); below. | |
42683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42684 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42685 | |
a848cd7e SC |
42686 | #ifdef __STDC__ |
42687 | # include <limits.h> | |
42688 | #else | |
42689 | # include <assert.h> | |
42690 | #endif | |
ac1cb8d3 VS |
42691 | |
42692 | #undef $ac_func | |
42693 | ||
a848cd7e SC |
42694 | /* Override any gcc2 internal prototype to avoid an error. */ |
42695 | #ifdef __cplusplus | |
42696 | extern "C" | |
42697 | { | |
42698 | #endif | |
42699 | /* We use char because int might match the return type of a gcc2 | |
42700 | builtin and then its argument prototype would still apply. */ | |
42701 | char $ac_func (); | |
42702 | /* The GNU C library defines this for functions which it implements | |
42703 | to always fail with ENOSYS. Some functions are actually named | |
42704 | something starting with __ and the normal name is an alias. */ | |
42705 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42706 | choke me | |
42707 | #else | |
42708 | char (*f) () = $ac_func; | |
42709 | #endif | |
42710 | #ifdef __cplusplus | |
42711 | } | |
42712 | #endif | |
42713 | ||
42714 | int | |
42715 | main () | |
42716 | { | |
42717 | return f != $ac_func; | |
42718 | ; | |
42719 | return 0; | |
42720 | } | |
42721 | _ACEOF | |
42722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42724 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42725 | ac_status=$? |
ac1cb8d3 VS |
42726 | grep -v '^ *+' conftest.er1 >conftest.err |
42727 | rm -f conftest.er1 | |
42728 | cat conftest.err >&5 | |
a848cd7e SC |
42729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42730 | (exit $ac_status); } && | |
c9a66001 | 42731 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42733 | (eval $ac_try) 2>&5 | |
42734 | ac_status=$? | |
42735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42736 | (exit $ac_status); }; } && | |
42737 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42739 | (eval $ac_try) 2>&5 | |
42740 | ac_status=$? | |
42741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42742 | (exit $ac_status); }; }; then | |
42743 | eval "$as_ac_var=yes" | |
42744 | else | |
42745 | echo "$as_me: failed program was:" >&5 | |
42746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42747 | ||
42748 | eval "$as_ac_var=no" | |
42749 | fi | |
ac1cb8d3 VS |
42750 | rm -f conftest.err conftest.$ac_objext \ |
42751 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42752 | fi |
42753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42754 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42755 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42756 | cat >>confdefs.h <<_ACEOF | |
42757 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42758 | _ACEOF | |
42759 | ||
42760 | fi | |
42761 | done | |
42762 | ||
42763 | ||
42764 | if test "$ac_cv_func_localtime" = "yes"; then | |
42765 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
42766 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
42767 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
42768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42769 | else | |
42770 | ||
42771 | cat >conftest.$ac_ext <<_ACEOF | |
42772 | /* confdefs.h. */ | |
42773 | _ACEOF | |
42774 | cat confdefs.h >>conftest.$ac_ext | |
42775 | cat >>conftest.$ac_ext <<_ACEOF | |
42776 | /* end confdefs.h. */ | |
42777 | ||
42778 | #include <time.h> | |
42779 | ||
42780 | int | |
42781 | main () | |
42782 | { | |
42783 | ||
42784 | struct tm tm; | |
42785 | tm.tm_gmtoff++; | |
42786 | ||
42787 | ; | |
42788 | return 0; | |
42789 | } | |
42790 | _ACEOF | |
42791 | rm -f conftest.$ac_objext | |
42792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42793 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42794 | ac_status=$? |
ac1cb8d3 VS |
42795 | grep -v '^ *+' conftest.er1 >conftest.err |
42796 | rm -f conftest.er1 | |
42797 | cat conftest.err >&5 | |
a848cd7e SC |
42798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42799 | (exit $ac_status); } && | |
c9a66001 | 42800 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42802 | (eval $ac_try) 2>&5 | |
42803 | ac_status=$? | |
42804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42805 | (exit $ac_status); }; } && | |
42806 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42808 | (eval $ac_try) 2>&5 | |
42809 | ac_status=$? | |
42810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42811 | (exit $ac_status); }; }; then | |
42812 | ||
42813 | wx_cv_struct_tm_has_gmtoff=yes | |
42814 | ||
42815 | else | |
42816 | echo "$as_me: failed program was:" >&5 | |
42817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42818 | ||
42819 | wx_cv_struct_tm_has_gmtoff=no | |
42820 | ||
42821 | fi | |
ac1cb8d3 | 42822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42823 | |
42824 | fi | |
42825 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
42826 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
42827 | fi | |
42828 | ||
42829 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
42830 | cat >>confdefs.h <<\_ACEOF | |
42831 | #define WX_GMTOFF_IN_TM 1 | |
42832 | _ACEOF | |
42833 | ||
42834 | fi | |
42835 | ||
42836 | ||
42837 | ||
42838 | for ac_func in gettimeofday ftime | |
42839 | do | |
42840 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42841 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42842 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42843 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42845 | else | |
42846 | cat >conftest.$ac_ext <<_ACEOF | |
42847 | /* confdefs.h. */ | |
42848 | _ACEOF | |
42849 | cat confdefs.h >>conftest.$ac_ext | |
42850 | cat >>conftest.$ac_ext <<_ACEOF | |
42851 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42852 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42853 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42854 | #define $ac_func innocuous_$ac_func | |
42855 | ||
a848cd7e SC |
42856 | /* System header to define __stub macros and hopefully few prototypes, |
42857 | which can conflict with char $ac_func (); below. | |
42858 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42859 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42860 | |
a848cd7e SC |
42861 | #ifdef __STDC__ |
42862 | # include <limits.h> | |
42863 | #else | |
42864 | # include <assert.h> | |
42865 | #endif | |
ac1cb8d3 VS |
42866 | |
42867 | #undef $ac_func | |
42868 | ||
a848cd7e SC |
42869 | /* Override any gcc2 internal prototype to avoid an error. */ |
42870 | #ifdef __cplusplus | |
42871 | extern "C" | |
42872 | { | |
42873 | #endif | |
42874 | /* We use char because int might match the return type of a gcc2 | |
42875 | builtin and then its argument prototype would still apply. */ | |
42876 | char $ac_func (); | |
42877 | /* The GNU C library defines this for functions which it implements | |
42878 | to always fail with ENOSYS. Some functions are actually named | |
42879 | something starting with __ and the normal name is an alias. */ | |
42880 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42881 | choke me | |
42882 | #else | |
42883 | char (*f) () = $ac_func; | |
42884 | #endif | |
42885 | #ifdef __cplusplus | |
42886 | } | |
42887 | #endif | |
42888 | ||
42889 | int | |
42890 | main () | |
42891 | { | |
42892 | return f != $ac_func; | |
42893 | ; | |
42894 | return 0; | |
42895 | } | |
42896 | _ACEOF | |
42897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42899 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42900 | ac_status=$? |
ac1cb8d3 VS |
42901 | grep -v '^ *+' conftest.er1 >conftest.err |
42902 | rm -f conftest.er1 | |
42903 | cat conftest.err >&5 | |
a848cd7e SC |
42904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42905 | (exit $ac_status); } && | |
c9a66001 | 42906 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42908 | (eval $ac_try) 2>&5 | |
42909 | ac_status=$? | |
42910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42911 | (exit $ac_status); }; } && | |
42912 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42914 | (eval $ac_try) 2>&5 | |
42915 | ac_status=$? | |
42916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42917 | (exit $ac_status); }; }; then | |
42918 | eval "$as_ac_var=yes" | |
42919 | else | |
42920 | echo "$as_me: failed program was:" >&5 | |
42921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42922 | ||
42923 | eval "$as_ac_var=no" | |
42924 | fi | |
ac1cb8d3 VS |
42925 | rm -f conftest.err conftest.$ac_objext \ |
42926 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42927 | fi |
42928 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42929 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42930 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42931 | cat >>confdefs.h <<_ACEOF | |
42932 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42933 | _ACEOF | |
42934 | break | |
42935 | fi | |
42936 | done | |
42937 | ||
42938 | ||
42939 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
42940 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
42941 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
42942 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
42943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42944 | else | |
42945 | ||
5d7b7554 | 42946 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
42947 | /* confdefs.h. */ |
42948 | _ACEOF | |
42949 | cat confdefs.h >>conftest.$ac_ext | |
42950 | cat >>conftest.$ac_ext <<_ACEOF | |
42951 | /* end confdefs.h. */ | |
42952 | ||
42953 | #include <sys/time.h> | |
42954 | #include <unistd.h> | |
42955 | ||
42956 | int | |
42957 | main () | |
42958 | { | |
42959 | ||
42960 | struct timeval tv; | |
42961 | gettimeofday(&tv, NULL); | |
42962 | ||
42963 | ; | |
42964 | return 0; | |
42965 | } | |
42966 | _ACEOF | |
42967 | rm -f conftest.$ac_objext | |
42968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42969 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42970 | ac_status=$? |
ac1cb8d3 VS |
42971 | grep -v '^ *+' conftest.er1 >conftest.err |
42972 | rm -f conftest.er1 | |
42973 | cat conftest.err >&5 | |
a848cd7e SC |
42974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42975 | (exit $ac_status); } && | |
c9a66001 | 42976 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42978 | (eval $ac_try) 2>&5 | |
42979 | ac_status=$? | |
42980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42981 | (exit $ac_status); }; } && | |
42982 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42984 | (eval $ac_try) 2>&5 | |
42985 | ac_status=$? | |
42986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42987 | (exit $ac_status); }; }; then | |
42988 | wx_cv_func_gettimeofday_has_2_args=yes | |
42989 | else | |
42990 | echo "$as_me: failed program was:" >&5 | |
42991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42992 | ||
42993 | cat >conftest.$ac_ext <<_ACEOF | |
42994 | /* confdefs.h. */ | |
42995 | _ACEOF | |
42996 | cat confdefs.h >>conftest.$ac_ext | |
42997 | cat >>conftest.$ac_ext <<_ACEOF | |
42998 | /* end confdefs.h. */ | |
42999 | ||
43000 | #include <sys/time.h> | |
43001 | #include <unistd.h> | |
43002 | ||
43003 | int | |
43004 | main () | |
43005 | { | |
43006 | ||
43007 | struct timeval tv; | |
43008 | gettimeofday(&tv); | |
43009 | ||
43010 | ; | |
43011 | return 0; | |
43012 | } | |
43013 | _ACEOF | |
43014 | rm -f conftest.$ac_objext | |
43015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43016 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43017 | ac_status=$? |
ac1cb8d3 VS |
43018 | grep -v '^ *+' conftest.er1 >conftest.err |
43019 | rm -f conftest.er1 | |
43020 | cat conftest.err >&5 | |
a848cd7e SC |
43021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43022 | (exit $ac_status); } && | |
c9a66001 | 43023 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43025 | (eval $ac_try) 2>&5 | |
43026 | ac_status=$? | |
43027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43028 | (exit $ac_status); }; } && | |
43029 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43031 | (eval $ac_try) 2>&5 | |
43032 | ac_status=$? | |
43033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43034 | (exit $ac_status); }; }; then | |
43035 | wx_cv_func_gettimeofday_has_2_args=no | |
43036 | else | |
43037 | echo "$as_me: failed program was:" >&5 | |
43038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43039 | ||
43040 | ||
43041 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
43042 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
43043 | wx_cv_func_gettimeofday_has_2_args=unknown | |
43044 | ||
43045 | ||
43046 | fi | |
ac1cb8d3 | 43047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43048 | |
43049 | fi | |
ac1cb8d3 | 43050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43051 | |
43052 | fi | |
43053 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
43054 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
43055 | ||
43056 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
43057 | cat >>confdefs.h <<\_ACEOF | |
43058 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
43059 | _ACEOF | |
43060 | ||
43061 | fi | |
43062 | fi | |
43063 | ||
43064 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
43065 | fi | |
43066 | ||
43067 | ||
43068 | if test "$wxUSE_SOCKETS" = "yes"; then | |
43069 | if test "$wxUSE_MGL" = "1"; then | |
43070 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
43071 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
43072 | wxUSE_SOCKETS="no" | |
43073 | fi | |
43074 | fi | |
43075 | ||
43076 | if test "$wxUSE_SOCKETS" = "yes"; then | |
43077 | if test "$TOOLKIT" != "MSW"; then | |
43078 | echo "$as_me:$LINENO: checking for socket" >&5 | |
43079 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
43080 | if test "${ac_cv_func_socket+set}" = set; then | |
43081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43082 | else | |
43083 | cat >conftest.$ac_ext <<_ACEOF | |
43084 | /* confdefs.h. */ | |
43085 | _ACEOF | |
43086 | cat confdefs.h >>conftest.$ac_ext | |
43087 | cat >>conftest.$ac_ext <<_ACEOF | |
43088 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
43089 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
43090 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
43091 | #define socket innocuous_socket | |
43092 | ||
a848cd7e SC |
43093 | /* System header to define __stub macros and hopefully few prototypes, |
43094 | which can conflict with char socket (); below. | |
43095 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
43096 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 43097 | |
a848cd7e SC |
43098 | #ifdef __STDC__ |
43099 | # include <limits.h> | |
43100 | #else | |
43101 | # include <assert.h> | |
43102 | #endif | |
ac1cb8d3 VS |
43103 | |
43104 | #undef socket | |
43105 | ||
a848cd7e SC |
43106 | /* Override any gcc2 internal prototype to avoid an error. */ |
43107 | #ifdef __cplusplus | |
43108 | extern "C" | |
43109 | { | |
43110 | #endif | |
43111 | /* We use char because int might match the return type of a gcc2 | |
43112 | builtin and then its argument prototype would still apply. */ | |
43113 | char socket (); | |
43114 | /* The GNU C library defines this for functions which it implements | |
43115 | to always fail with ENOSYS. Some functions are actually named | |
43116 | something starting with __ and the normal name is an alias. */ | |
43117 | #if defined (__stub_socket) || defined (__stub___socket) | |
43118 | choke me | |
43119 | #else | |
43120 | char (*f) () = socket; | |
43121 | #endif | |
43122 | #ifdef __cplusplus | |
43123 | } | |
43124 | #endif | |
43125 | ||
43126 | int | |
43127 | main () | |
43128 | { | |
43129 | return f != socket; | |
43130 | ; | |
43131 | return 0; | |
43132 | } | |
43133 | _ACEOF | |
43134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43136 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43137 | ac_status=$? |
ac1cb8d3 VS |
43138 | grep -v '^ *+' conftest.er1 >conftest.err |
43139 | rm -f conftest.er1 | |
43140 | cat conftest.err >&5 | |
a848cd7e SC |
43141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43142 | (exit $ac_status); } && | |
c9a66001 | 43143 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43145 | (eval $ac_try) 2>&5 | |
43146 | ac_status=$? | |
43147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43148 | (exit $ac_status); }; } && | |
43149 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43151 | (eval $ac_try) 2>&5 | |
43152 | ac_status=$? | |
43153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43154 | (exit $ac_status); }; }; then | |
43155 | ac_cv_func_socket=yes | |
43156 | else | |
43157 | echo "$as_me: failed program was:" >&5 | |
43158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43159 | ||
43160 | ac_cv_func_socket=no | |
43161 | fi | |
ac1cb8d3 VS |
43162 | rm -f conftest.err conftest.$ac_objext \ |
43163 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43164 | fi |
43165 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
43166 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
43167 | if test $ac_cv_func_socket = yes; then | |
43168 | : | |
43169 | else | |
43170 | ||
43171 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
43172 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
43173 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
43174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43175 | else | |
43176 | ac_check_lib_save_LIBS=$LIBS | |
43177 | LIBS="-lsocket $LIBS" | |
43178 | cat >conftest.$ac_ext <<_ACEOF | |
43179 | /* confdefs.h. */ | |
43180 | _ACEOF | |
43181 | cat confdefs.h >>conftest.$ac_ext | |
43182 | cat >>conftest.$ac_ext <<_ACEOF | |
43183 | /* end confdefs.h. */ | |
43184 | ||
43185 | /* Override any gcc2 internal prototype to avoid an error. */ | |
43186 | #ifdef __cplusplus | |
43187 | extern "C" | |
43188 | #endif | |
43189 | /* We use char because int might match the return type of a gcc2 | |
43190 | builtin and then its argument prototype would still apply. */ | |
43191 | char socket (); | |
43192 | int | |
43193 | main () | |
43194 | { | |
43195 | socket (); | |
43196 | ; | |
43197 | return 0; | |
43198 | } | |
43199 | _ACEOF | |
43200 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43202 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43203 | ac_status=$? |
ac1cb8d3 VS |
43204 | grep -v '^ *+' conftest.er1 >conftest.err |
43205 | rm -f conftest.er1 | |
43206 | cat conftest.err >&5 | |
a848cd7e SC |
43207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43208 | (exit $ac_status); } && | |
c9a66001 | 43209 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43211 | (eval $ac_try) 2>&5 | |
43212 | ac_status=$? | |
43213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43214 | (exit $ac_status); }; } && | |
43215 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43217 | (eval $ac_try) 2>&5 | |
43218 | ac_status=$? | |
43219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43220 | (exit $ac_status); }; }; then | |
43221 | ac_cv_lib_socket_socket=yes | |
43222 | else | |
43223 | echo "$as_me: failed program was:" >&5 | |
43224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43225 | ||
43226 | ac_cv_lib_socket_socket=no | |
43227 | fi | |
ac1cb8d3 VS |
43228 | rm -f conftest.err conftest.$ac_objext \ |
43229 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43230 | LIBS=$ac_check_lib_save_LIBS |
43231 | fi | |
43232 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
43233 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
43234 | if test $ac_cv_lib_socket_socket = yes; then | |
43235 | if test "$INET_LINK" != " -lsocket"; then | |
43236 | INET_LINK="$INET_LINK -lsocket" | |
43237 | fi | |
43238 | else | |
43239 | ||
43240 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
43241 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
43242 | wxUSE_SOCKETS=no | |
43243 | ||
43244 | ||
43245 | fi | |
43246 | ||
43247 | ||
43248 | ||
43249 | fi | |
43250 | ||
43251 | fi | |
43252 | fi | |
43253 | ||
43254 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
43255 | if test "$TOOLKIT" != "MSW"; then | |
5d7b7554 | 43256 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
a848cd7e SC |
43257 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
43258 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
43259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43260 | else | |
43261 | ||
43262 | cat >conftest.$ac_ext <<_ACEOF | |
43263 | /* confdefs.h. */ | |
43264 | _ACEOF | |
43265 | cat confdefs.h >>conftest.$ac_ext | |
43266 | cat >>conftest.$ac_ext <<_ACEOF | |
43267 | /* end confdefs.h. */ | |
43268 | ||
43269 | #include <sys/types.h> | |
43270 | #include <sys/socket.h> | |
43271 | ||
43272 | int | |
43273 | main () | |
43274 | { | |
43275 | ||
43276 | socklen_t len; | |
43277 | getsockname(0, 0, &len); | |
43278 | ||
43279 | ; | |
43280 | return 0; | |
43281 | } | |
43282 | _ACEOF | |
43283 | rm -f conftest.$ac_objext | |
43284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43285 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43286 | ac_status=$? |
ac1cb8d3 VS |
43287 | grep -v '^ *+' conftest.er1 >conftest.err |
43288 | rm -f conftest.er1 | |
43289 | cat conftest.err >&5 | |
a848cd7e SC |
43290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43291 | (exit $ac_status); } && | |
c9a66001 | 43292 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43294 | (eval $ac_try) 2>&5 | |
43295 | ac_status=$? | |
43296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43297 | (exit $ac_status); }; } && | |
43298 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43300 | (eval $ac_try) 2>&5 | |
43301 | ac_status=$? | |
43302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43303 | (exit $ac_status); }; }; then | |
43304 | wx_cv_type_getsockname3=socklen_t | |
43305 | else | |
43306 | echo "$as_me: failed program was:" >&5 | |
43307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43308 | ||
43309 | ||
6459a506 | 43310 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 43311 | if test "$GCC" = yes ; then |
c92ad099 | 43312 | CXXFLAGS="-Werror $CXXFLAGS" |
a848cd7e SC |
43313 | fi |
43314 | ||
43315 | cat >conftest.$ac_ext <<_ACEOF | |
43316 | /* confdefs.h. */ | |
43317 | _ACEOF | |
43318 | cat confdefs.h >>conftest.$ac_ext | |
43319 | cat >>conftest.$ac_ext <<_ACEOF | |
43320 | /* end confdefs.h. */ | |
43321 | ||
43322 | #include <sys/types.h> | |
43323 | #include <sys/socket.h> | |
43324 | ||
43325 | int | |
43326 | main () | |
43327 | { | |
43328 | ||
43329 | size_t len; | |
43330 | getsockname(0, 0, &len); | |
43331 | ||
43332 | ; | |
43333 | return 0; | |
43334 | } | |
43335 | _ACEOF | |
43336 | rm -f conftest.$ac_objext | |
43337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43338 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43339 | ac_status=$? |
ac1cb8d3 VS |
43340 | grep -v '^ *+' conftest.er1 >conftest.err |
43341 | rm -f conftest.er1 | |
43342 | cat conftest.err >&5 | |
a848cd7e SC |
43343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43344 | (exit $ac_status); } && | |
c9a66001 | 43345 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43347 | (eval $ac_try) 2>&5 | |
43348 | ac_status=$? | |
43349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43350 | (exit $ac_status); }; } && | |
43351 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43353 | (eval $ac_try) 2>&5 | |
43354 | ac_status=$? | |
43355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43356 | (exit $ac_status); }; }; then | |
43357 | wx_cv_type_getsockname3=size_t | |
43358 | else | |
43359 | echo "$as_me: failed program was:" >&5 | |
43360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43361 | ||
43362 | cat >conftest.$ac_ext <<_ACEOF | |
43363 | /* confdefs.h. */ | |
43364 | _ACEOF | |
43365 | cat confdefs.h >>conftest.$ac_ext | |
43366 | cat >>conftest.$ac_ext <<_ACEOF | |
43367 | /* end confdefs.h. */ | |
43368 | ||
43369 | #include <sys/types.h> | |
43370 | #include <sys/socket.h> | |
43371 | ||
43372 | int | |
43373 | main () | |
43374 | { | |
43375 | ||
43376 | int len; | |
43377 | getsockname(0, 0, &len); | |
43378 | ||
43379 | ; | |
43380 | return 0; | |
43381 | } | |
43382 | _ACEOF | |
43383 | rm -f conftest.$ac_objext | |
43384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43385 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43386 | ac_status=$? |
ac1cb8d3 VS |
43387 | grep -v '^ *+' conftest.er1 >conftest.err |
43388 | rm -f conftest.er1 | |
43389 | cat conftest.err >&5 | |
a848cd7e SC |
43390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43391 | (exit $ac_status); } && | |
c9a66001 | 43392 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43394 | (eval $ac_try) 2>&5 | |
43395 | ac_status=$? | |
43396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43397 | (exit $ac_status); }; } && | |
43398 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43400 | (eval $ac_try) 2>&5 | |
43401 | ac_status=$? | |
43402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43403 | (exit $ac_status); }; }; then | |
43404 | wx_cv_type_getsockname3=int | |
43405 | else | |
43406 | echo "$as_me: failed program was:" >&5 | |
43407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43408 | ||
43409 | wx_cv_type_getsockname3=unknown | |
43410 | ||
43411 | fi | |
ac1cb8d3 | 43412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43413 | |
43414 | fi | |
ac1cb8d3 | 43415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 43416 | |
6459a506 | 43417 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
43418 | |
43419 | ||
43420 | fi | |
ac1cb8d3 | 43421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43422 | |
43423 | fi | |
43424 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
43425 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
43426 | ||
43427 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
43428 | wxUSE_SOCKETS=no | |
43429 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
43430 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
43431 | else | |
43432 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 43433 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
43434 | _ACEOF |
43435 | ||
43436 | fi | |
43437 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
43438 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
43439 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
43440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43441 | else | |
43442 | ||
43443 | cat >conftest.$ac_ext <<_ACEOF | |
43444 | /* confdefs.h. */ | |
43445 | _ACEOF | |
43446 | cat confdefs.h >>conftest.$ac_ext | |
43447 | cat >>conftest.$ac_ext <<_ACEOF | |
43448 | /* end confdefs.h. */ | |
43449 | ||
43450 | #include <sys/types.h> | |
43451 | #include <sys/socket.h> | |
43452 | ||
43453 | int | |
43454 | main () | |
43455 | { | |
43456 | ||
43457 | socklen_t len; | |
43458 | getsockopt(0, 0, 0, 0, &len); | |
43459 | ||
43460 | ; | |
43461 | return 0; | |
43462 | } | |
43463 | _ACEOF | |
43464 | rm -f conftest.$ac_objext | |
43465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43466 | (eval $ac_compile) 2>conftest.er1 | |
43467 | ac_status=$? | |
43468 | grep -v '^ *+' conftest.er1 >conftest.err | |
43469 | rm -f conftest.er1 | |
43470 | cat conftest.err >&5 | |
43471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43472 | (exit $ac_status); } && | |
c9a66001 | 43473 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
43474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43475 | (eval $ac_try) 2>&5 | |
43476 | ac_status=$? | |
43477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43478 | (exit $ac_status); }; } && | |
43479 | { ac_try='test -s conftest.$ac_objext' | |
43480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43481 | (eval $ac_try) 2>&5 | |
43482 | ac_status=$? | |
43483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43484 | (exit $ac_status); }; }; then | |
43485 | wx_cv_type_getsockopt5=socklen_t | |
43486 | else | |
43487 | echo "$as_me: failed program was:" >&5 | |
43488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43489 | ||
43490 | ||
6459a506 | 43491 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 43492 | if test "$GCC" = yes ; then |
c92ad099 | 43493 | CXXFLAGS="-Werror $CXXFLAGS" |
5b674b9d DE |
43494 | fi |
43495 | ||
43496 | cat >conftest.$ac_ext <<_ACEOF | |
43497 | /* confdefs.h. */ | |
43498 | _ACEOF | |
43499 | cat confdefs.h >>conftest.$ac_ext | |
43500 | cat >>conftest.$ac_ext <<_ACEOF | |
43501 | /* end confdefs.h. */ | |
43502 | ||
43503 | #include <sys/types.h> | |
43504 | #include <sys/socket.h> | |
43505 | ||
43506 | int | |
43507 | main () | |
43508 | { | |
43509 | ||
43510 | size_t len; | |
43511 | getsockopt(0, 0, 0, 0, &len); | |
43512 | ||
43513 | ; | |
43514 | return 0; | |
43515 | } | |
43516 | _ACEOF | |
43517 | rm -f conftest.$ac_objext | |
43518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43519 | (eval $ac_compile) 2>conftest.er1 | |
43520 | ac_status=$? | |
43521 | grep -v '^ *+' conftest.er1 >conftest.err | |
43522 | rm -f conftest.er1 | |
43523 | cat conftest.err >&5 | |
43524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43525 | (exit $ac_status); } && | |
c9a66001 | 43526 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
43527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43528 | (eval $ac_try) 2>&5 | |
43529 | ac_status=$? | |
43530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43531 | (exit $ac_status); }; } && | |
43532 | { ac_try='test -s conftest.$ac_objext' | |
43533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43534 | (eval $ac_try) 2>&5 | |
43535 | ac_status=$? | |
43536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43537 | (exit $ac_status); }; }; then | |
43538 | wx_cv_type_getsockopt5=size_t | |
43539 | else | |
43540 | echo "$as_me: failed program was:" >&5 | |
43541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43542 | ||
43543 | cat >conftest.$ac_ext <<_ACEOF | |
43544 | /* confdefs.h. */ | |
43545 | _ACEOF | |
43546 | cat confdefs.h >>conftest.$ac_ext | |
43547 | cat >>conftest.$ac_ext <<_ACEOF | |
43548 | /* end confdefs.h. */ | |
43549 | ||
43550 | #include <sys/types.h> | |
43551 | #include <sys/socket.h> | |
43552 | ||
43553 | int | |
43554 | main () | |
43555 | { | |
43556 | ||
43557 | int len; | |
43558 | getsockopt(0, 0, 0, 0, &len); | |
43559 | ||
43560 | ; | |
43561 | return 0; | |
43562 | } | |
43563 | _ACEOF | |
43564 | rm -f conftest.$ac_objext | |
43565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43566 | (eval $ac_compile) 2>conftest.er1 | |
43567 | ac_status=$? | |
43568 | grep -v '^ *+' conftest.er1 >conftest.err | |
43569 | rm -f conftest.er1 | |
43570 | cat conftest.err >&5 | |
43571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43572 | (exit $ac_status); } && | |
c9a66001 | 43573 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
43574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43575 | (eval $ac_try) 2>&5 | |
43576 | ac_status=$? | |
43577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43578 | (exit $ac_status); }; } && | |
43579 | { ac_try='test -s conftest.$ac_objext' | |
43580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43581 | (eval $ac_try) 2>&5 | |
43582 | ac_status=$? | |
43583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43584 | (exit $ac_status); }; }; then | |
43585 | wx_cv_type_getsockopt5=int | |
43586 | else | |
43587 | echo "$as_me: failed program was:" >&5 | |
43588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43589 | ||
43590 | wx_cv_type_getsockopt5=unknown | |
43591 | ||
43592 | fi | |
43593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43594 | ||
43595 | fi | |
43596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43597 | ||
6459a506 | 43598 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
43599 | |
43600 | ||
43601 | fi | |
43602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43603 | ||
43604 | fi | |
43605 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
43606 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
43607 | ||
43608 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
43609 | wxUSE_SOCKETS=no | |
43610 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
43611 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
43612 | else | |
43613 | cat >>confdefs.h <<_ACEOF | |
43614 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
43615 | _ACEOF |
43616 | ||
43617 | fi | |
43618 | fi | |
43619 | fi | |
43620 | ||
43621 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
43622 | cat >>confdefs.h <<\_ACEOF | |
43623 | #define wxUSE_SOCKETS 1 | |
43624 | _ACEOF | |
43625 | ||
43626 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
43627 | fi | |
43628 | ||
43629 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
43630 | if test "$wxUSE_SOCKETS" != "yes"; then | |
43631 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
43632 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
43633 | wxUSE_PROTOCOL=no | |
43634 | fi | |
43635 | fi | |
43636 | ||
43637 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
43638 | cat >>confdefs.h <<\_ACEOF | |
43639 | #define wxUSE_PROTOCOL 1 | |
43640 | _ACEOF | |
43641 | ||
43642 | ||
43643 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
43644 | cat >>confdefs.h <<\_ACEOF | |
43645 | #define wxUSE_PROTOCOL_HTTP 1 | |
43646 | _ACEOF | |
43647 | ||
43648 | fi | |
43649 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
43650 | cat >>confdefs.h <<\_ACEOF | |
43651 | #define wxUSE_PROTOCOL_FTP 1 | |
43652 | _ACEOF | |
43653 | ||
43654 | fi | |
43655 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
43656 | cat >>confdefs.h <<\_ACEOF | |
43657 | #define wxUSE_PROTOCOL_FILE 1 | |
43658 | _ACEOF | |
43659 | ||
43660 | fi | |
43661 | else | |
43662 | if test "$wxUSE_FS_INET" = "yes"; then | |
43663 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
43664 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
43665 | wxUSE_FS_INET="no" | |
43666 | fi | |
43667 | fi | |
43668 | ||
43669 | if test "$wxUSE_URL" = "yes"; then | |
43670 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
43671 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
43672 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
43673 | wxUSE_URL=no | |
43674 | fi | |
43675 | if test "$wxUSE_URL" = "yes"; then | |
43676 | cat >>confdefs.h <<\_ACEOF | |
43677 | #define wxUSE_URL 1 | |
43678 | _ACEOF | |
43679 | ||
43680 | fi | |
43681 | fi | |
43682 | ||
43683 | if test "$wxUSE_FS_INET" = "yes"; then | |
43684 | cat >>confdefs.h <<\_ACEOF | |
43685 | #define wxUSE_FS_INET 1 | |
43686 | _ACEOF | |
43687 | ||
43688 | fi | |
43689 | ||
43690 | ||
ee45c548 MW |
43691 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
43692 | wxUSE_JOYSTICK=no | |
43693 | ||
43694 | if test "$TOOLKIT" = "MSW"; then | |
43695 | wxUSE_JOYSTICK=yes | |
43696 | ||
43697 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
43698 | if test "$USE_DARWIN" = 1; then | |
43699 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
43700 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
ee45c548 MW |
43701 | cat >conftest.$ac_ext <<_ACEOF |
43702 | /* confdefs.h. */ | |
43703 | _ACEOF | |
43704 | cat confdefs.h >>conftest.$ac_ext | |
43705 | cat >>conftest.$ac_ext <<_ACEOF | |
43706 | /* end confdefs.h. */ | |
43707 | #include <IOKit/hid/IOHIDLib.h> | |
43708 | int | |
43709 | main () | |
43710 | { | |
43711 | IOHIDQueueInterface *qi = NULL; | |
43712 | IOHIDCallbackFunction cb = NULL; | |
43713 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
43714 | ; | |
43715 | return 0; | |
43716 | } | |
43717 | _ACEOF | |
43718 | rm -f conftest.$ac_objext | |
43719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43720 | (eval $ac_compile) 2>conftest.er1 | |
43721 | ac_status=$? | |
43722 | grep -v '^ *+' conftest.er1 >conftest.err | |
43723 | rm -f conftest.er1 | |
43724 | cat conftest.err >&5 | |
43725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43726 | (exit $ac_status); } && | |
c9a66001 | 43727 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ee45c548 MW |
43728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43729 | (eval $ac_try) 2>&5 | |
43730 | ac_status=$? | |
43731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43732 | (exit $ac_status); }; } && | |
43733 | { ac_try='test -s conftest.$ac_objext' | |
43734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43735 | (eval $ac_try) 2>&5 | |
43736 | ac_status=$? | |
43737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43738 | (exit $ac_status); }; }; then | |
43739 | wxUSE_JOYSTICK=yes | |
a848cd7e | 43740 | |
ee45c548 MW |
43741 | else |
43742 | echo "$as_me: failed program was:" >&5 | |
43743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43744 | ||
43745 | fi | |
43746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ee45c548 MW |
43747 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 |
43748 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
43749 | fi | |
43750 | ||
43751 | else | |
a848cd7e SC |
43752 | |
43753 | for ac_header in linux/joystick.h | |
43754 | do | |
43755 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43756 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43757 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43758 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43759 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43761 | fi | |
43762 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43763 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43764 | else | |
43765 | # Is the header compilable? | |
43766 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
43767 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
43768 | cat >conftest.$ac_ext <<_ACEOF | |
43769 | /* confdefs.h. */ | |
43770 | _ACEOF | |
43771 | cat confdefs.h >>conftest.$ac_ext | |
43772 | cat >>conftest.$ac_ext <<_ACEOF | |
43773 | /* end confdefs.h. */ | |
43774 | $ac_includes_default | |
43775 | #include <$ac_header> | |
43776 | _ACEOF | |
43777 | rm -f conftest.$ac_objext | |
43778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43779 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43780 | ac_status=$? |
ac1cb8d3 VS |
43781 | grep -v '^ *+' conftest.er1 >conftest.err |
43782 | rm -f conftest.er1 | |
43783 | cat conftest.err >&5 | |
a848cd7e SC |
43784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43785 | (exit $ac_status); } && | |
c9a66001 | 43786 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43788 | (eval $ac_try) 2>&5 | |
43789 | ac_status=$? | |
43790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43791 | (exit $ac_status); }; } && | |
43792 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43794 | (eval $ac_try) 2>&5 | |
43795 | ac_status=$? | |
43796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43797 | (exit $ac_status); }; }; then | |
43798 | ac_header_compiler=yes | |
43799 | else | |
43800 | echo "$as_me: failed program was:" >&5 | |
43801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43802 | ||
43803 | ac_header_compiler=no | |
43804 | fi | |
ac1cb8d3 | 43805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43806 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
43807 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
43808 | ||
43809 | # Is the header present? | |
43810 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
43811 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
43812 | cat >conftest.$ac_ext <<_ACEOF | |
43813 | /* confdefs.h. */ | |
43814 | _ACEOF | |
43815 | cat confdefs.h >>conftest.$ac_ext | |
43816 | cat >>conftest.$ac_ext <<_ACEOF | |
43817 | /* end confdefs.h. */ | |
43818 | #include <$ac_header> | |
43819 | _ACEOF | |
43820 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
43821 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
43822 | ac_status=$? | |
43823 | grep -v '^ *+' conftest.er1 >conftest.err | |
43824 | rm -f conftest.er1 | |
43825 | cat conftest.err >&5 | |
43826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43827 | (exit $ac_status); } >/dev/null; then | |
43828 | if test -s conftest.err; then | |
5d7b7554 VZ |
43829 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
43830 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
43831 | else |
43832 | ac_cpp_err= | |
43833 | fi | |
43834 | else | |
43835 | ac_cpp_err=yes | |
43836 | fi | |
43837 | if test -z "$ac_cpp_err"; then | |
43838 | ac_header_preproc=yes | |
43839 | else | |
43840 | echo "$as_me: failed program was:" >&5 | |
43841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43842 | ||
43843 | ac_header_preproc=no | |
43844 | fi | |
43845 | rm -f conftest.err conftest.$ac_ext | |
43846 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
43847 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
43848 | ||
43849 | # So? What about this header? | |
5d7b7554 | 43850 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 43851 | yes:no: ) |
a848cd7e SC |
43852 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
43853 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
43854 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
43855 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
43856 | ac_header_preproc=yes | |
a848cd7e | 43857 | ;; |
ac1cb8d3 | 43858 | no:yes:* ) |
a848cd7e SC |
43859 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
43860 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
43861 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
43862 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
43863 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
43864 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
43865 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
43866 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
43867 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
43868 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
43869 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
43870 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
43871 | ( |
43872 | cat <<\_ASBOX | |
ac1cb8d3 VS |
43873 | ## ----------------------------------------- ## |
43874 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
43875 | ## ----------------------------------------- ## | |
a848cd7e SC |
43876 | _ASBOX |
43877 | ) | | |
43878 | sed "s/^/$as_me: WARNING: /" >&2 | |
43879 | ;; | |
43880 | esac | |
43881 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43882 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43883 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43885 | else | |
ac1cb8d3 | 43886 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
43887 | fi |
43888 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43889 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43890 | ||
43891 | fi | |
43892 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
43893 | cat >>confdefs.h <<_ACEOF | |
43894 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
43895 | _ACEOF | |
ee45c548 | 43896 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
43897 | fi |
43898 | ||
43899 | done | |
43900 | ||
ee45c548 | 43901 | fi |
4cb1d3da | 43902 | |
ee45c548 MW |
43903 | if test "$wxUSE_JOYSTICK" = "yes"; then |
43904 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43905 | #define wxUSE_JOYSTICK 1 |
43906 | _ACEOF | |
43907 | ||
ee45c548 MW |
43908 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
43909 | else | |
43910 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
43911 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
43912 | fi |
43913 | fi | |
43914 | ||
43915 | ||
43916 | ||
43917 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
43918 | cat >>confdefs.h <<\_ACEOF | |
43919 | #define wxUSE_FONTMAP 1 | |
43920 | _ACEOF | |
43921 | ||
43922 | fi | |
43923 | ||
43924 | if test "$wxUSE_UNICODE" = "yes" ; then | |
43925 | cat >>confdefs.h <<\_ACEOF | |
43926 | #define wxUSE_UNICODE 1 | |
43927 | _ACEOF | |
43928 | ||
43929 | ||
43930 | if test "$USE_WIN32" != 1; then | |
43931 | wxUSE_UNICODE_MSLU=no | |
43932 | fi | |
43933 | ||
43934 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
43935 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
43936 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
43937 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
43938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43939 | else | |
43940 | ac_check_lib_save_LIBS=$LIBS | |
43941 | LIBS="-lunicows $LIBS" | |
43942 | cat >conftest.$ac_ext <<_ACEOF | |
43943 | /* confdefs.h. */ | |
43944 | _ACEOF | |
43945 | cat confdefs.h >>conftest.$ac_ext | |
43946 | cat >>conftest.$ac_ext <<_ACEOF | |
43947 | /* end confdefs.h. */ | |
43948 | ||
43949 | ||
43950 | int | |
43951 | main () | |
43952 | { | |
43953 | main (); | |
43954 | ; | |
43955 | return 0; | |
43956 | } | |
43957 | _ACEOF | |
43958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43960 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43961 | ac_status=$? |
ac1cb8d3 VS |
43962 | grep -v '^ *+' conftest.er1 >conftest.err |
43963 | rm -f conftest.er1 | |
43964 | cat conftest.err >&5 | |
a848cd7e SC |
43965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43966 | (exit $ac_status); } && | |
c9a66001 | 43967 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43969 | (eval $ac_try) 2>&5 | |
43970 | ac_status=$? | |
43971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43972 | (exit $ac_status); }; } && | |
43973 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43975 | (eval $ac_try) 2>&5 | |
43976 | ac_status=$? | |
43977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43978 | (exit $ac_status); }; }; then | |
43979 | ac_cv_lib_unicows_main=yes | |
43980 | else | |
43981 | echo "$as_me: failed program was:" >&5 | |
43982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43983 | ||
43984 | ac_cv_lib_unicows_main=no | |
43985 | fi | |
ac1cb8d3 VS |
43986 | rm -f conftest.err conftest.$ac_objext \ |
43987 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43988 | LIBS=$ac_check_lib_save_LIBS |
43989 | fi | |
43990 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
43991 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
43992 | if test $ac_cv_lib_unicows_main = yes; then | |
43993 | ||
43994 | cat >>confdefs.h <<\_ACEOF | |
43995 | #define wxUSE_UNICODE_MSLU 1 | |
43996 | _ACEOF | |
43997 | ||
43998 | ||
43999 | else | |
44000 | ||
44001 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
44002 | Applications will only run on Windows NT/2000/XP!" >&5 | |
44003 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
44004 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
44005 | wxUSE_UNICODE_MSLU=no | |
44006 | ||
44007 | fi | |
44008 | ||
44009 | fi | |
44010 | fi | |
44011 | ||
44012 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
44013 | cat >>confdefs.h <<\_ACEOF | |
44014 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
44015 | _ACEOF | |
44016 | ||
44017 | fi | |
44018 | ||
44019 | ||
44020 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
44021 | cat >>confdefs.h <<\_ACEOF | |
44022 | #define wxUSE_POSTSCRIPT 1 | |
44023 | _ACEOF | |
44024 | ||
44025 | fi | |
44026 | ||
44027 | cat >>confdefs.h <<\_ACEOF | |
44028 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
44029 | _ACEOF | |
44030 | ||
44031 | ||
44032 | cat >>confdefs.h <<\_ACEOF | |
44033 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
44034 | _ACEOF | |
44035 | ||
44036 | ||
44037 | ||
44038 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
44039 | cat >>confdefs.h <<\_ACEOF | |
44040 | #define wxUSE_CONSTRAINTS 1 | |
44041 | _ACEOF | |
44042 | ||
44043 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
44044 | fi | |
44045 | ||
8a7b1113 VZ |
44046 | if test "$wxUSE_MDI" = "yes"; then |
44047 | cat >>confdefs.h <<\_ACEOF | |
44048 | #define wxUSE_MDI 1 | |
44049 | _ACEOF | |
44050 | ||
44051 | ||
44052 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
44053 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44054 | #define wxUSE_MDI_ARCHITECTURE 1 |
44055 | _ACEOF | |
44056 | ||
8a7b1113 VZ |
44057 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
44058 | fi | |
a848cd7e SC |
44059 | fi |
44060 | ||
44061 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
44062 | cat >>confdefs.h <<\_ACEOF | |
44063 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
44064 | _ACEOF | |
44065 | ||
44066 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
44067 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
44068 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
44069 | fi | |
44070 | fi | |
44071 | ||
44072 | if test "$wxUSE_HELP" = "yes"; then | |
44073 | cat >>confdefs.h <<\_ACEOF | |
44074 | #define wxUSE_HELP 1 | |
44075 | _ACEOF | |
44076 | ||
44077 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
44078 | ||
44079 | if test "$wxUSE_MSW" = 1; then | |
44080 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
44081 | cat >>confdefs.h <<\_ACEOF | |
44082 | #define wxUSE_MS_HTML_HELP 1 | |
44083 | _ACEOF | |
44084 | ||
44085 | fi | |
44086 | fi | |
44087 | ||
44088 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
44089 | if test "$wxUSE_HTML" = "yes"; then | |
44090 | cat >>confdefs.h <<\_ACEOF | |
44091 | #define wxUSE_WXHTML_HELP 1 | |
44092 | _ACEOF | |
44093 | ||
44094 | else | |
44095 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
44096 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
44097 | wxUSE_WXHTML_HELP=no | |
44098 | fi | |
44099 | fi | |
44100 | fi | |
44101 | ||
44102 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
44103 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44104 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
44105 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
44106 | else | |
44107 | cat >>confdefs.h <<\_ACEOF | |
44108 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
44109 | _ACEOF | |
44110 | ||
44111 | fi | |
44112 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
44113 | fi | |
44114 | ||
44115 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
44116 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
44117 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
44118 | { (exit 1); exit 1; }; } | |
44119 | fi | |
44120 | ||
44121 | ||
efdf6afe VZ |
44122 | if test "$wxUSE_METAFILE" = "yes"; then |
44123 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
44124 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
44125 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
44126 | wxUSE_METAFILE=no | |
44127 | fi | |
44128 | fi | |
44129 | ||
44130 | ||
a848cd7e SC |
44131 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
44132 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
44133 | -o "$wxUSE_OLE" = "yes" \ | |
44134 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
44135 | ||
44136 | for ac_header in ole2.h | |
44137 | do | |
44138 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
44139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
44140 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
44141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
44142 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
44143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44144 | fi | |
44145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
44146 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
44147 | else | |
44148 | # Is the header compilable? | |
44149 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
44150 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
44151 | cat >conftest.$ac_ext <<_ACEOF | |
44152 | /* confdefs.h. */ | |
44153 | _ACEOF | |
44154 | cat confdefs.h >>conftest.$ac_ext | |
44155 | cat >>conftest.$ac_ext <<_ACEOF | |
44156 | /* end confdefs.h. */ | |
44157 | $ac_includes_default | |
44158 | #include <$ac_header> | |
44159 | _ACEOF | |
44160 | rm -f conftest.$ac_objext | |
44161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44162 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44163 | ac_status=$? |
ac1cb8d3 VS |
44164 | grep -v '^ *+' conftest.er1 >conftest.err |
44165 | rm -f conftest.er1 | |
44166 | cat conftest.err >&5 | |
a848cd7e SC |
44167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44168 | (exit $ac_status); } && | |
c9a66001 | 44169 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44171 | (eval $ac_try) 2>&5 | |
44172 | ac_status=$? | |
44173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44174 | (exit $ac_status); }; } && | |
44175 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44177 | (eval $ac_try) 2>&5 | |
44178 | ac_status=$? | |
44179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44180 | (exit $ac_status); }; }; then | |
44181 | ac_header_compiler=yes | |
44182 | else | |
44183 | echo "$as_me: failed program was:" >&5 | |
44184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44185 | ||
44186 | ac_header_compiler=no | |
44187 | fi | |
ac1cb8d3 | 44188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44189 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
44190 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
44191 | ||
44192 | # Is the header present? | |
44193 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
44194 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
44195 | cat >conftest.$ac_ext <<_ACEOF | |
44196 | /* confdefs.h. */ | |
44197 | _ACEOF | |
44198 | cat confdefs.h >>conftest.$ac_ext | |
44199 | cat >>conftest.$ac_ext <<_ACEOF | |
44200 | /* end confdefs.h. */ | |
44201 | #include <$ac_header> | |
44202 | _ACEOF | |
44203 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
44204 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
44205 | ac_status=$? | |
44206 | grep -v '^ *+' conftest.er1 >conftest.err | |
44207 | rm -f conftest.er1 | |
44208 | cat conftest.err >&5 | |
44209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44210 | (exit $ac_status); } >/dev/null; then | |
44211 | if test -s conftest.err; then | |
5d7b7554 VZ |
44212 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
44213 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
44214 | else |
44215 | ac_cpp_err= | |
44216 | fi | |
44217 | else | |
44218 | ac_cpp_err=yes | |
44219 | fi | |
44220 | if test -z "$ac_cpp_err"; then | |
44221 | ac_header_preproc=yes | |
44222 | else | |
44223 | echo "$as_me: failed program was:" >&5 | |
44224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44225 | ||
44226 | ac_header_preproc=no | |
44227 | fi | |
44228 | rm -f conftest.err conftest.$ac_ext | |
44229 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
44230 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
44231 | ||
44232 | # So? What about this header? | |
5d7b7554 | 44233 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 44234 | yes:no: ) |
a848cd7e SC |
44235 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
44236 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
44237 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
44238 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
44239 | ac_header_preproc=yes | |
a848cd7e | 44240 | ;; |
ac1cb8d3 | 44241 | no:yes:* ) |
a848cd7e SC |
44242 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
44243 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
44244 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
44245 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
44246 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
44247 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
44248 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
44249 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
44250 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
44251 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
44252 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
44253 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
44254 | ( |
44255 | cat <<\_ASBOX | |
ac1cb8d3 VS |
44256 | ## ----------------------------------------- ## |
44257 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
44258 | ## ----------------------------------------- ## | |
a848cd7e SC |
44259 | _ASBOX |
44260 | ) | | |
44261 | sed "s/^/$as_me: WARNING: /" >&2 | |
44262 | ;; | |
44263 | esac | |
44264 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
44265 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
44266 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
44267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44268 | else | |
ac1cb8d3 | 44269 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
44270 | fi |
44271 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
44272 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
44273 | ||
44274 | fi | |
44275 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
44276 | cat >>confdefs.h <<_ACEOF | |
44277 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
44278 | _ACEOF | |
44279 | ||
44280 | fi | |
44281 | ||
44282 | done | |
44283 | ||
44284 | ||
44285 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
44286 | if test "$GCC" = yes ; then | |
a848cd7e SC |
44287 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 |
44288 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
44289 | cat >conftest.$ac_ext <<_ACEOF | |
44290 | /* confdefs.h. */ | |
44291 | _ACEOF | |
44292 | cat confdefs.h >>conftest.$ac_ext | |
44293 | cat >>conftest.$ac_ext <<_ACEOF | |
44294 | /* end confdefs.h. */ | |
44295 | #include <windows.h> | |
44296 | #include <ole2.h> | |
44297 | int | |
44298 | main () | |
44299 | { | |
44300 | ||
44301 | ; | |
44302 | return 0; | |
44303 | } | |
44304 | _ACEOF | |
44305 | rm -f conftest.$ac_objext | |
44306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44307 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44308 | ac_status=$? |
ac1cb8d3 VS |
44309 | grep -v '^ *+' conftest.er1 >conftest.err |
44310 | rm -f conftest.er1 | |
44311 | cat conftest.err >&5 | |
a848cd7e SC |
44312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44313 | (exit $ac_status); } && | |
c9a66001 | 44314 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44316 | (eval $ac_try) 2>&5 | |
44317 | ac_status=$? | |
44318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44319 | (exit $ac_status); }; } && | |
44320 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44322 | (eval $ac_try) 2>&5 | |
44323 | ac_status=$? | |
44324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44325 | (exit $ac_status); }; }; then | |
44326 | echo "$as_me:$LINENO: result: no" >&5 | |
44327 | echo "${ECHO_T}no" >&6 | |
44328 | else | |
44329 | echo "$as_me: failed program was:" >&5 | |
44330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44331 | ||
44332 | echo "$as_me:$LINENO: result: yes" >&5 | |
44333 | echo "${ECHO_T}yes" >&6 | |
5ff751d6 | 44334 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 44335 | fi |
ac1cb8d3 | 44336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44337 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
44338 | if test "$wxUSE_OLE" = "yes" ; then | |
44339 | cat >>confdefs.h <<\_ACEOF | |
44340 | #define wxUSE_OLE 1 | |
44341 | _ACEOF | |
44342 | ||
0b78747f | 44343 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
44344 | fi |
44345 | fi | |
44346 | ||
44347 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
44348 | cat >>confdefs.h <<\_ACEOF | |
44349 | #define wxUSE_DATAOBJ 1 | |
44350 | _ACEOF | |
44351 | ||
44352 | fi | |
44353 | else | |
44354 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
44355 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
44356 | ||
44357 | wxUSE_CLIPBOARD=no | |
44358 | wxUSE_DRAG_AND_DROP=no | |
44359 | wxUSE_DATAOBJ=no | |
44360 | wxUSE_OLE=no | |
44361 | fi | |
44362 | ||
44363 | if test "$wxUSE_METAFILE" = "yes"; then | |
44364 | cat >>confdefs.h <<\_ACEOF | |
44365 | #define wxUSE_METAFILE 1 | |
44366 | _ACEOF | |
44367 | ||
44368 | ||
44369 | cat >>confdefs.h <<\_ACEOF | |
44370 | #define wxUSE_ENH_METAFILE 1 | |
44371 | _ACEOF | |
44372 | ||
44373 | fi | |
44374 | fi | |
44375 | ||
44376 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 44377 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
44378 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
44379 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 44380 | wxUSE_IPC=no |
a848cd7e SC |
44381 | fi |
44382 | ||
0b78747f MW |
44383 | if test "$wxUSE_IPC" = "yes"; then |
44384 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44385 | #define wxUSE_IPC 1 |
44386 | _ACEOF | |
44387 | ||
0b78747f MW |
44388 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
44389 | fi | |
a848cd7e SC |
44390 | fi |
44391 | ||
eb730a0c | 44392 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
44393 | if test "$wxUSE_MGL" = 1; then |
44394 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
44395 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
44396 | wxUSE_DATAOBJ=no | |
44397 | else | |
44398 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
44399 | #define wxUSE_DATAOBJ 1 |
44400 | _ACEOF | |
44401 | ||
2113bc77 | 44402 | fi |
eb730a0c JS |
44403 | else |
44404 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
44405 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
44406 | wxUSE_CLIPBOARD=no | |
44407 | wxUSE_DRAG_AND_DROP=no | |
44408 | fi | |
44409 | ||
a848cd7e SC |
44410 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
44411 | if test "$wxUSE_MGL" = 1; then | |
44412 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
44413 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
44414 | wxUSE_CLIPBOARD=no | |
44415 | fi | |
44416 | ||
44417 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
44418 | cat >>confdefs.h <<\_ACEOF | |
44419 | #define wxUSE_CLIPBOARD 1 | |
44420 | _ACEOF | |
44421 | ||
a848cd7e SC |
44422 | fi |
44423 | fi | |
44424 | ||
44425 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
44426 | if test "$wxUSE_GTK" = 1; then | |
44427 | if test "$WXGTK12" != 1; then | |
44428 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
44429 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
44430 | wxUSE_DRAG_AND_DROP=no | |
44431 | fi | |
44432 | fi | |
44433 | ||
44434 | if test "$wxUSE_MOTIF" = 1; then | |
44435 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
44436 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
44437 | wxUSE_DRAG_AND_DROP=no | |
44438 | fi | |
44439 | ||
44440 | if test "$wxUSE_X11" = 1; then | |
44441 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
44442 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
44443 | wxUSE_DRAG_AND_DROP=no | |
44444 | fi | |
44445 | ||
44446 | if test "$wxUSE_MGL" = 1; then | |
44447 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
44448 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
44449 | wxUSE_DRAG_AND_DROP=no | |
44450 | fi | |
44451 | ||
44452 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
44453 | cat >>confdefs.h <<\_ACEOF | |
44454 | #define wxUSE_DRAG_AND_DROP 1 | |
44455 | _ACEOF | |
44456 | ||
44457 | fi | |
44458 | ||
44459 | fi | |
44460 | ||
44461 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
44462 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
44463 | fi | |
44464 | ||
44465 | if test "$wxUSE_SPLINES" = "yes" ; then | |
44466 | cat >>confdefs.h <<\_ACEOF | |
44467 | #define wxUSE_SPLINES 1 | |
44468 | _ACEOF | |
44469 | ||
44470 | fi | |
44471 | ||
fbe2ca43 SN |
44472 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
44473 | cat >>confdefs.h <<\_ACEOF | |
44474 | #define wxUSE_MOUSEWHEEL 1 | |
44475 | _ACEOF | |
44476 | ||
44477 | fi | |
44478 | ||
a848cd7e SC |
44479 | |
44480 | USES_CONTROLS=0 | |
44481 | if test "$wxUSE_CONTROLS" = "yes"; then | |
44482 | USES_CONTROLS=1 | |
44483 | fi | |
44484 | ||
44485 | if test "$wxUSE_ACCEL" = "yes"; then | |
44486 | cat >>confdefs.h <<\_ACEOF | |
44487 | #define wxUSE_ACCEL 1 | |
44488 | _ACEOF | |
44489 | ||
44490 | USES_CONTROLS=1 | |
44491 | fi | |
44492 | ||
44493 | if test "$wxUSE_BUTTON" = "yes"; then | |
44494 | cat >>confdefs.h <<\_ACEOF | |
44495 | #define wxUSE_BUTTON 1 | |
44496 | _ACEOF | |
44497 | ||
44498 | USES_CONTROLS=1 | |
44499 | fi | |
44500 | ||
44501 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
44502 | cat >>confdefs.h <<\_ACEOF | |
44503 | #define wxUSE_BMPBUTTON 1 | |
44504 | _ACEOF | |
44505 | ||
44506 | USES_CONTROLS=1 | |
44507 | fi | |
44508 | ||
44509 | if test "$wxUSE_CALCTRL" = "yes"; then | |
44510 | cat >>confdefs.h <<\_ACEOF | |
44511 | #define wxUSE_CALENDARCTRL 1 | |
44512 | _ACEOF | |
44513 | ||
44514 | USES_CONTROLS=1 | |
44515 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
44516 | fi | |
44517 | ||
44518 | if test "$wxUSE_CARET" = "yes"; then | |
44519 | cat >>confdefs.h <<\_ACEOF | |
44520 | #define wxUSE_CARET 1 | |
44521 | _ACEOF | |
44522 | ||
44523 | USES_CONTROLS=1 | |
44524 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
44525 | fi | |
44526 | ||
44527 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
44528 | cat >>confdefs.h <<\_ACEOF | |
44529 | #define wxUSE_COMBOBOX 1 | |
44530 | _ACEOF | |
44531 | ||
44532 | USES_CONTROLS=1 | |
44533 | fi | |
44534 | ||
a57d600f | 44535 | if test "$wxUSE_COMBOCTRL" = "yes"; then |
642bcba9 | 44536 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 44537 | #define wxUSE_COMBOCTRL 1 |
642bcba9 VZ |
44538 | _ACEOF |
44539 | ||
44540 | USES_CONTROLS=1 | |
44541 | fi | |
44542 | ||
a848cd7e SC |
44543 | if test "$wxUSE_CHOICE" = "yes"; then |
44544 | cat >>confdefs.h <<\_ACEOF | |
44545 | #define wxUSE_CHOICE 1 | |
44546 | _ACEOF | |
44547 | ||
44548 | USES_CONTROLS=1 | |
44549 | fi | |
44550 | ||
92bbdbcd WS |
44551 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
44552 | cat >>confdefs.h <<\_ACEOF | |
44553 | #define wxUSE_CHOICEBOOK 1 | |
44554 | _ACEOF | |
44555 | ||
44556 | USES_CONTROLS=1 | |
44557 | fi | |
44558 | ||
a848cd7e SC |
44559 | if test "$wxUSE_CHECKBOX" = "yes"; then |
44560 | cat >>confdefs.h <<\_ACEOF | |
44561 | #define wxUSE_CHECKBOX 1 | |
44562 | _ACEOF | |
44563 | ||
44564 | USES_CONTROLS=1 | |
44565 | fi | |
44566 | ||
44567 | if test "$wxUSE_CHECKLST" = "yes"; then | |
44568 | cat >>confdefs.h <<\_ACEOF | |
44569 | #define wxUSE_CHECKLISTBOX 1 | |
44570 | _ACEOF | |
44571 | ||
44572 | USES_CONTROLS=1 | |
44573 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
44574 | fi | |
44575 | ||
e9263684 VZ |
44576 | if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then |
44577 | cat >>confdefs.h <<\_ACEOF | |
44578 | #define wxUSE_COLOURPICKERCTRL 1 | |
44579 | _ACEOF | |
44580 | ||
44581 | USES_CONTROLS=1 | |
44582 | fi | |
44583 | ||
da98e9be VZ |
44584 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
44585 | cat >>confdefs.h <<\_ACEOF | |
44586 | #define wxUSE_DATEPICKCTRL 1 | |
44587 | _ACEOF | |
44588 | ||
44589 | USES_CONTROLS=1 | |
44590 | fi | |
44591 | ||
e9263684 VZ |
44592 | if test "$wxUSE_DIRPICKERCTRL" = "yes"; then |
44593 | cat >>confdefs.h <<\_ACEOF | |
44594 | #define wxUSE_DIRPICKERCTRL 1 | |
44595 | _ACEOF | |
44596 | ||
44597 | USES_CONTROLS=1 | |
44598 | fi | |
44599 | ||
44600 | if test "$wxUSE_FILEPICKERCTRL" = "yes"; then | |
44601 | cat >>confdefs.h <<\_ACEOF | |
44602 | #define wxUSE_FILEPICKERCTRL 1 | |
44603 | _ACEOF | |
44604 | ||
44605 | USES_CONTROLS=1 | |
44606 | fi | |
44607 | ||
44608 | if test "$wxUSE_FONTPICKERCTRL" = "yes"; then | |
44609 | cat >>confdefs.h <<\_ACEOF | |
44610 | #define wxUSE_FONTPICKERCTRL 1 | |
44611 | _ACEOF | |
44612 | ||
44613 | USES_CONTROLS=1 | |
44614 | fi | |
44615 | ||
a848cd7e SC |
44616 | if test "$wxUSE_DISPLAY" = "yes"; then |
44617 | cat >>confdefs.h <<\_ACEOF | |
44618 | #define wxUSE_DISPLAY 1 | |
44619 | _ACEOF | |
44620 | ||
0b78747f | 44621 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
44622 | fi |
44623 | ||
44624 | if test "$wxUSE_GAUGE" = "yes"; then | |
44625 | cat >>confdefs.h <<\_ACEOF | |
44626 | #define wxUSE_GAUGE 1 | |
44627 | _ACEOF | |
44628 | ||
44629 | USES_CONTROLS=1 | |
44630 | fi | |
44631 | ||
44632 | if test "$wxUSE_GRID" = "yes"; then | |
44633 | cat >>confdefs.h <<\_ACEOF | |
44634 | #define wxUSE_GRID 1 | |
44635 | _ACEOF | |
44636 | ||
44637 | USES_CONTROLS=1 | |
44638 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
44639 | fi | |
44640 | ||
6954625c VZ |
44641 | if test "$wxUSE_HYPERLINKCTRL" = "yes"; then |
44642 | cat >>confdefs.h <<\_ACEOF | |
44643 | #define wxUSE_HYPERLINKCTRL 1 | |
44644 | _ACEOF | |
44645 | ||
44646 | USES_CONTROLS=1 | |
44647 | fi | |
44648 | ||
20e34ecc RR |
44649 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
44650 | cat >>confdefs.h <<\_ACEOF | |
44651 | #define wxUSE_DATAVIEWCTRL 1 | |
44652 | _ACEOF | |
44653 | ||
44654 | USES_CONTROLS=1 | |
44655 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
44656 | fi | |
44657 | ||
a848cd7e SC |
44658 | if test "$wxUSE_IMAGLIST" = "yes"; then |
44659 | cat >>confdefs.h <<\_ACEOF | |
44660 | #define wxUSE_IMAGLIST 1 | |
44661 | _ACEOF | |
44662 | ||
44663 | fi | |
44664 | ||
44665 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
44666 | cat >>confdefs.h <<\_ACEOF | |
44667 | #define wxUSE_LISTBOOK 1 | |
44668 | _ACEOF | |
44669 | ||
44670 | USES_CONTROLS=1 | |
44671 | fi | |
44672 | ||
44673 | if test "$wxUSE_LISTBOX" = "yes"; then | |
44674 | cat >>confdefs.h <<\_ACEOF | |
44675 | #define wxUSE_LISTBOX 1 | |
44676 | _ACEOF | |
44677 | ||
44678 | USES_CONTROLS=1 | |
0b78747f | 44679 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
44680 | fi |
44681 | ||
44682 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
44683 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
44684 | cat >>confdefs.h <<\_ACEOF | |
44685 | #define wxUSE_LISTCTRL 1 | |
44686 | _ACEOF | |
44687 | ||
44688 | USES_CONTROLS=1 | |
44689 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
44690 | else | |
44691 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
44692 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
44693 | fi | |
44694 | fi | |
44695 | ||
44696 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
44697 | cat >>confdefs.h <<\_ACEOF | |
44698 | #define wxUSE_NOTEBOOK 1 | |
44699 | _ACEOF | |
44700 | ||
44701 | USES_CONTROLS=1 | |
44702 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
44703 | fi | |
44704 | ||
a57d600f | 44705 | if test "$wxUSE_ODCOMBOBOX" = "yes"; then |
642bcba9 | 44706 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 44707 | #define wxUSE_ODCOMBOBOX 1 |
642bcba9 VZ |
44708 | _ACEOF |
44709 | ||
44710 | USES_CONTROLS=1 | |
44711 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo" | |
44712 | fi | |
44713 | ||
a848cd7e SC |
44714 | |
44715 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
44716 | cat >>confdefs.h <<\_ACEOF | |
44717 | #define wxUSE_RADIOBOX 1 | |
44718 | _ACEOF | |
44719 | ||
44720 | USES_CONTROLS=1 | |
44721 | fi | |
44722 | ||
44723 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
44724 | cat >>confdefs.h <<\_ACEOF | |
44725 | #define wxUSE_RADIOBTN 1 | |
44726 | _ACEOF | |
44727 | ||
44728 | USES_CONTROLS=1 | |
44729 | fi | |
44730 | ||
44731 | if test "$wxUSE_SASH" = "yes"; then | |
44732 | cat >>confdefs.h <<\_ACEOF | |
44733 | #define wxUSE_SASH 1 | |
44734 | _ACEOF | |
44735 | ||
44736 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
44737 | fi | |
44738 | ||
44739 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
44740 | cat >>confdefs.h <<\_ACEOF | |
44741 | #define wxUSE_SCROLLBAR 1 | |
44742 | _ACEOF | |
44743 | ||
44744 | USES_CONTROLS=1 | |
44745 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
44746 | fi | |
44747 | ||
44748 | if test "$wxUSE_SLIDER" = "yes"; then | |
44749 | cat >>confdefs.h <<\_ACEOF | |
44750 | #define wxUSE_SLIDER 1 | |
44751 | _ACEOF | |
44752 | ||
44753 | USES_CONTROLS=1 | |
44754 | fi | |
44755 | ||
44756 | if test "$wxUSE_SPINBTN" = "yes"; then | |
44757 | cat >>confdefs.h <<\_ACEOF | |
44758 | #define wxUSE_SPINBTN 1 | |
44759 | _ACEOF | |
44760 | ||
44761 | USES_CONTROLS=1 | |
44762 | fi | |
44763 | ||
44764 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
44765 | cat >>confdefs.h <<\_ACEOF | |
44766 | #define wxUSE_SPINCTRL 1 | |
44767 | _ACEOF | |
44768 | ||
44769 | USES_CONTROLS=1 | |
44770 | fi | |
44771 | ||
44772 | if test "$wxUSE_SPLITTER" = "yes"; then | |
44773 | cat >>confdefs.h <<\_ACEOF | |
44774 | #define wxUSE_SPLITTER 1 | |
44775 | _ACEOF | |
44776 | ||
44777 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
44778 | fi | |
44779 | ||
44780 | if test "$wxUSE_STATBMP" = "yes"; then | |
44781 | cat >>confdefs.h <<\_ACEOF | |
44782 | #define wxUSE_STATBMP 1 | |
44783 | _ACEOF | |
44784 | ||
44785 | USES_CONTROLS=1 | |
44786 | fi | |
44787 | ||
44788 | if test "$wxUSE_STATBOX" = "yes"; then | |
44789 | cat >>confdefs.h <<\_ACEOF | |
44790 | #define wxUSE_STATBOX 1 | |
44791 | _ACEOF | |
44792 | ||
44793 | USES_CONTROLS=1 | |
44794 | fi | |
44795 | ||
44796 | if test "$wxUSE_STATTEXT" = "yes"; then | |
44797 | cat >>confdefs.h <<\_ACEOF | |
44798 | #define wxUSE_STATTEXT 1 | |
44799 | _ACEOF | |
44800 | ||
44801 | USES_CONTROLS=1 | |
44802 | fi | |
44803 | ||
44804 | if test "$wxUSE_STATLINE" = "yes"; then | |
44805 | cat >>confdefs.h <<\_ACEOF | |
44806 | #define wxUSE_STATLINE 1 | |
44807 | _ACEOF | |
44808 | ||
44809 | USES_CONTROLS=1 | |
44810 | fi | |
44811 | ||
44812 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
44813 | cat >>confdefs.h <<\_ACEOF |
44814 | #define wxUSE_NATIVE_STATUSBAR 1 | |
44815 | _ACEOF | |
44816 | ||
a848cd7e SC |
44817 | cat >>confdefs.h <<\_ACEOF |
44818 | #define wxUSE_STATUSBAR 1 | |
44819 | _ACEOF | |
44820 | ||
44821 | USES_CONTROLS=1 | |
44822 | ||
44823 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
44824 | fi | |
44825 | ||
f10e38c4 | 44826 | if test "$wxUSE_TAB_DIALOG" = "yes"; then |
a848cd7e SC |
44827 | cat >>confdefs.h <<\_ACEOF |
44828 | #define wxUSE_TAB_DIALOG 1 | |
44829 | _ACEOF | |
44830 | ||
a848cd7e SC |
44831 | fi |
44832 | ||
44833 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
44834 | cat >>confdefs.h <<\_ACEOF | |
44835 | #define wxUSE_TEXTCTRL 1 | |
44836 | _ACEOF | |
44837 | ||
44838 | USES_CONTROLS=1 | |
44839 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
44840 | fi | |
44841 | ||
44842 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
44843 | if test "$wxUSE_COCOA" = 1 ; then | |
44844 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
44845 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
44846 | wxUSE_TOGGLEBTN=no | |
44847 | fi | |
a848cd7e SC |
44848 | |
44849 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
44850 | cat >>confdefs.h <<\_ACEOF | |
44851 | #define wxUSE_TOGGLEBTN 1 | |
44852 | _ACEOF | |
44853 | ||
44854 | USES_CONTROLS=1 | |
44855 | fi | |
44856 | fi | |
44857 | ||
44858 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
44859 | cat >>confdefs.h <<\_ACEOF | |
44860 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
44861 | _ACEOF | |
44862 | ||
44863 | wxUSE_TOOLBAR="yes" | |
44864 | USES_CONTROLS=1 | |
44865 | fi | |
44866 | ||
44867 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
44868 | cat >>confdefs.h <<\_ACEOF | |
44869 | #define wxUSE_TOOLBAR 1 | |
44870 | _ACEOF | |
44871 | ||
44872 | USES_CONTROLS=1 | |
44873 | ||
44874 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
44875 | wxUSE_TOOLBAR_NATIVE="yes" | |
44876 | fi | |
44877 | ||
44878 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
44879 | cat >>confdefs.h <<\_ACEOF | |
44880 | #define wxUSE_TOOLBAR_NATIVE 1 | |
44881 | _ACEOF | |
44882 | ||
44883 | USES_CONTROLS=1 | |
44884 | fi | |
44885 | ||
44886 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
44887 | fi | |
44888 | ||
44889 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
44890 | if test "$wxUSE_MOTIF" = 1; then | |
44891 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
44892 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
44893 | else | |
44894 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
44895 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
44896 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
44897 | else | |
44898 | cat >>confdefs.h <<\_ACEOF | |
44899 | #define wxUSE_TOOLTIPS 1 | |
44900 | _ACEOF | |
44901 | ||
44902 | fi | |
44903 | fi | |
44904 | fi | |
44905 | ||
0093c2fc VZ |
44906 | if test "$wxUSE_TREEBOOK" = "yes"; then |
44907 | cat >>confdefs.h <<\_ACEOF | |
44908 | #define wxUSE_TREEBOOK 1 | |
44909 | _ACEOF | |
44910 | ||
44911 | USES_CONTROLS=1 | |
44912 | fi | |
44913 | ||
5ec3bc43 JS |
44914 | if test "$wxUSE_TOOLBOOK" = "yes"; then |
44915 | cat >>confdefs.h <<\_ACEOF | |
44916 | #define wxUSE_TOOLBOOK 1 | |
44917 | _ACEOF | |
44918 | ||
44919 | USES_CONTROLS=1 | |
44920 | fi | |
44921 | ||
a848cd7e SC |
44922 | if test "$wxUSE_TREECTRL" = "yes"; then |
44923 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
44924 | cat >>confdefs.h <<\_ACEOF | |
44925 | #define wxUSE_TREECTRL 1 | |
44926 | _ACEOF | |
44927 | ||
44928 | USES_CONTROLS=1 | |
44929 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
44930 | else | |
44931 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
44932 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
44933 | fi | |
44934 | fi | |
44935 | ||
44936 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
44937 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
44938 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
44939 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
44940 | else | |
44941 | if test "$wxUSE_PM" = 1; then | |
44942 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
44943 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
44944 | else | |
44945 | cat >>confdefs.h <<\_ACEOF | |
44946 | #define wxUSE_POPUPWIN 1 | |
44947 | _ACEOF | |
44948 | ||
0b78747f | 44949 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
44950 | |
44951 | USES_CONTROLS=1 | |
44952 | fi | |
44953 | fi | |
44954 | fi | |
44955 | ||
0dcd06dd | 44956 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
44957 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
44958 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
44959 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
44960 | else | |
44961 | cat >>confdefs.h <<\_ACEOF | |
44962 | #define wxUSE_DIALUP_MANAGER 1 | |
44963 | _ACEOF | |
44964 | ||
44965 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
44966 | fi | |
44967 | fi | |
44968 | ||
a848cd7e SC |
44969 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
44970 | if test "$wxUSE_PM" = 1; then | |
44971 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
44972 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
44973 | else | |
44974 | cat >>confdefs.h <<\_ACEOF | |
44975 | #define wxUSE_TIPWINDOW 1 | |
44976 | _ACEOF | |
44977 | ||
44978 | fi | |
44979 | fi | |
44980 | ||
44981 | if test "$USES_CONTROLS" = 1; then | |
44982 | cat >>confdefs.h <<\_ACEOF | |
44983 | #define wxUSE_CONTROLS 1 | |
44984 | _ACEOF | |
44985 | ||
44986 | fi | |
44987 | ||
44988 | ||
44989 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
44990 | cat >>confdefs.h <<\_ACEOF | |
44991 | #define wxUSE_ACCESSIBILITY 1 | |
44992 | _ACEOF | |
44993 | ||
44994 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
44995 | fi | |
44996 | ||
38b4a946 VZ |
44997 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
44998 | cat >>confdefs.h <<\_ACEOF | |
44999 | #define wxUSE_DC_CACHEING 1 | |
45000 | _ACEOF | |
45001 | ||
45002 | fi | |
45003 | ||
a848cd7e SC |
45004 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
45005 | cat >>confdefs.h <<\_ACEOF | |
45006 | #define wxUSE_DRAGIMAGE 1 | |
45007 | _ACEOF | |
45008 | ||
45009 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
45010 | fi | |
45011 | ||
45012 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
45013 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
45014 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
45015 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
45016 | else | |
45017 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
45018 | #define wxUSE_EXCEPTIONS 1 |
45019 | _ACEOF | |
45020 | ||
07bea8f0 VS |
45021 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
45022 | fi | |
a848cd7e SC |
45023 | fi |
45024 | ||
45025 | USE_HTML=0 | |
45026 | if test "$wxUSE_HTML" = "yes"; then | |
45027 | cat >>confdefs.h <<\_ACEOF | |
45028 | #define wxUSE_HTML 1 | |
45029 | _ACEOF | |
45030 | ||
45031 | USE_HTML=1 | |
45032 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
45033 | if test "$wxUSE_MAC" = 1; then |
45034 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
45035 | fi | |
a848cd7e | 45036 | fi |
646b6ec1 | 45037 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 45038 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 45039 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 45040 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
07bea8f0 VS |
45041 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 |
45042 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
45043 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
45044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45045 | else | |
45046 | cat >conftest.$ac_ext <<_ACEOF | |
45047 | /* confdefs.h. */ | |
45048 | _ACEOF | |
45049 | cat confdefs.h >>conftest.$ac_ext | |
45050 | cat >>conftest.$ac_ext <<_ACEOF | |
45051 | /* end confdefs.h. */ | |
45052 | #include <Carbon/Carbon.h> | |
45053 | ||
45054 | #include <WebKit/HIWebView.h> | |
45055 | _ACEOF | |
45056 | rm -f conftest.$ac_objext | |
45057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
45058 | (eval $ac_compile) 2>conftest.er1 | |
45059 | ac_status=$? | |
45060 | grep -v '^ *+' conftest.er1 >conftest.err | |
45061 | rm -f conftest.er1 | |
45062 | cat conftest.err >&5 | |
45063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45064 | (exit $ac_status); } && | |
c9a66001 | 45065 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
45066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45067 | (eval $ac_try) 2>&5 | |
45068 | ac_status=$? | |
45069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45070 | (exit $ac_status); }; } && | |
45071 | { ac_try='test -s conftest.$ac_objext' | |
45072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
45073 | (eval $ac_try) 2>&5 | |
45074 | ac_status=$? | |
45075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45076 | (exit $ac_status); }; }; then | |
45077 | ac_cv_header_WebKit_HIWebView_h=yes | |
45078 | else | |
45079 | echo "$as_me: failed program was:" >&5 | |
45080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45081 | ||
45082 | ac_cv_header_WebKit_HIWebView_h=no | |
45083 | fi | |
45084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
45085 | fi | |
45086 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
45087 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
45088 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
45089 | ||
45090 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
45091 | #define wxUSE_WEBKIT 1 |
45092 | _ACEOF | |
45093 | ||
07bea8f0 VS |
45094 | WEBKIT_LINK="-framework WebKit" |
45095 | ||
45096 | else | |
45097 | ||
45098 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
45099 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
45100 | wxUSE_WEBKIT=no | |
45101 | ||
646b6ec1 VS |
45102 | fi |
45103 | ||
07bea8f0 VS |
45104 | |
45105 | CPPFLAGS="$old_CPPFLAGS" | |
45106 | elif test "$wxUSE_COCOA" = 1; then | |
45107 | cat >>confdefs.h <<\_ACEOF | |
45108 | #define wxUSE_WEBKIT 1 | |
45109 | _ACEOF | |
45110 | ||
45111 | else | |
45112 | wxUSE_WEBKIT=no | |
45113 | fi | |
45114 | fi | |
45115 | ||
9a8f0513 VS |
45116 | USE_XRC=0 |
45117 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
45118 | if test "$wxUSE_XML" != "yes"; then |
45119 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
45120 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
45121 | wxUSE_XRC=no | |
45122 | else | |
45123 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
45124 | #define wxUSE_XRC 1 |
45125 | _ACEOF | |
45126 | ||
d2ebf0b7 VS |
45127 | USE_XRC=1 |
45128 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
45129 | fi | |
9a8f0513 | 45130 | fi |
07bea8f0 | 45131 | |
3f60522a JS |
45132 | USE_AUI=0 |
45133 | if test "$wxUSE_AUI" = "yes"; then | |
45134 | cat >>confdefs.h <<\_ACEOF | |
45135 | #define wxUSE_AUI 1 | |
45136 | _ACEOF | |
45137 | ||
45138 | USE_AUI=1 | |
45139 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui" | |
45140 | fi | |
45141 | ||
a848cd7e SC |
45142 | if test "$wxUSE_MENUS" = "yes"; then |
45143 | cat >>confdefs.h <<\_ACEOF | |
45144 | #define wxUSE_MENUS 1 | |
45145 | _ACEOF | |
45146 | ||
45147 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
45148 | fi | |
45149 | ||
45150 | if test "$wxUSE_METAFILE" = "yes"; then | |
45151 | cat >>confdefs.h <<\_ACEOF | |
45152 | #define wxUSE_METAFILE 1 | |
45153 | _ACEOF | |
45154 | ||
45155 | fi | |
45156 | ||
45157 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
45158 | cat >>confdefs.h <<\_ACEOF | |
45159 | #define wxUSE_MIMETYPE 1 | |
45160 | _ACEOF | |
45161 | ||
45162 | fi | |
45163 | ||
45164 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
45165 | cat >>confdefs.h <<\_ACEOF | |
45166 | #define wxUSE_MINIFRAME 1 | |
45167 | _ACEOF | |
45168 | ||
45169 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
45170 | fi | |
45171 | ||
45172 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
45173 | cat >>confdefs.h <<\_ACEOF | |
45174 | #define wxUSE_SYSTEM_OPTIONS 1 | |
45175 | _ACEOF | |
45176 | ||
45177 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 45178 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
45179 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
45180 | fi | |
45181 | fi | |
45182 | ||
45183 | ||
45184 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
45185 | cat >>confdefs.h <<\_ACEOF | |
45186 | #define wxUSE_VALIDATORS 1 | |
45187 | _ACEOF | |
45188 | ||
45189 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
45190 | fi | |
45191 | ||
45192 | if test "$wxUSE_PALETTE" = "yes" ; then | |
45193 | cat >>confdefs.h <<\_ACEOF | |
45194 | #define wxUSE_PALETTE 1 | |
45195 | _ACEOF | |
45196 | ||
45197 | fi | |
45198 | ||
45199 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
45200 | LIBS=" -lunicows $LIBS" | |
45201 | fi | |
45202 | ||
91dea314 MW |
45203 | USE_RICHTEXT=0 |
45204 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
45205 | cat >>confdefs.h <<\_ACEOF | |
45206 | #define wxUSE_RICHTEXT 1 | |
45207 | _ACEOF | |
45208 | ||
45209 | USE_RICHTEXT=1 | |
45210 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
45211 | fi | |
45212 | ||
a848cd7e SC |
45213 | |
45214 | if test "$wxUSE_IMAGE" = "yes" ; then | |
45215 | cat >>confdefs.h <<\_ACEOF | |
45216 | #define wxUSE_IMAGE 1 | |
45217 | _ACEOF | |
45218 | ||
45219 | ||
45220 | if test "$wxUSE_GIF" = "yes" ; then | |
45221 | cat >>confdefs.h <<\_ACEOF | |
45222 | #define wxUSE_GIF 1 | |
45223 | _ACEOF | |
45224 | ||
45225 | fi | |
45226 | ||
45227 | if test "$wxUSE_PCX" = "yes" ; then | |
45228 | cat >>confdefs.h <<\_ACEOF | |
45229 | #define wxUSE_PCX 1 | |
45230 | _ACEOF | |
45231 | ||
45232 | fi | |
45233 | ||
45234 | if test "$wxUSE_IFF" = "yes" ; then | |
45235 | cat >>confdefs.h <<\_ACEOF | |
45236 | #define wxUSE_IFF 1 | |
45237 | _ACEOF | |
45238 | ||
45239 | fi | |
45240 | ||
45241 | if test "$wxUSE_PNM" = "yes" ; then | |
45242 | cat >>confdefs.h <<\_ACEOF | |
45243 | #define wxUSE_PNM 1 | |
45244 | _ACEOF | |
45245 | ||
45246 | fi | |
45247 | ||
45248 | if test "$wxUSE_XPM" = "yes" ; then | |
45249 | cat >>confdefs.h <<\_ACEOF | |
45250 | #define wxUSE_XPM 1 | |
45251 | _ACEOF | |
45252 | ||
45253 | fi | |
45254 | ||
45255 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
45256 | cat >>confdefs.h <<\_ACEOF | |
45257 | #define wxUSE_ICO_CUR 1 | |
45258 | _ACEOF | |
45259 | ||
45260 | fi | |
45261 | fi | |
45262 | ||
45263 | ||
45264 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
45265 | cat >>confdefs.h <<\_ACEOF | |
45266 | #define wxUSE_CHOICEDLG 1 | |
45267 | _ACEOF | |
45268 | ||
45269 | fi | |
45270 | ||
45271 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
45272 | cat >>confdefs.h <<\_ACEOF | |
45273 | #define wxUSE_COLOURDLG 1 | |
45274 | _ACEOF | |
45275 | ||
45276 | fi | |
45277 | ||
45278 | if test "$wxUSE_FILEDLG" = "yes"; then | |
45279 | cat >>confdefs.h <<\_ACEOF | |
45280 | #define wxUSE_FILEDLG 1 | |
45281 | _ACEOF | |
45282 | ||
45283 | fi | |
45284 | ||
45285 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
45286 | cat >>confdefs.h <<\_ACEOF | |
45287 | #define wxUSE_FINDREPLDLG 1 | |
45288 | _ACEOF | |
45289 | ||
45290 | fi | |
45291 | ||
45292 | if test "$wxUSE_FONTDLG" = "yes"; then | |
45293 | cat >>confdefs.h <<\_ACEOF | |
45294 | #define wxUSE_FONTDLG 1 | |
45295 | _ACEOF | |
45296 | ||
45297 | fi | |
45298 | ||
45299 | if test "$wxUSE_DIRDLG" = "yes"; then | |
45300 | if test "$wxUSE_TREECTRL" != "yes"; then | |
45301 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
45302 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
45303 | else | |
45304 | cat >>confdefs.h <<\_ACEOF | |
45305 | #define wxUSE_DIRDLG 1 | |
45306 | _ACEOF | |
45307 | ||
45308 | fi | |
45309 | fi | |
45310 | ||
45311 | if test "$wxUSE_MSGDLG" = "yes"; then | |
45312 | cat >>confdefs.h <<\_ACEOF | |
45313 | #define wxUSE_MSGDLG 1 | |
45314 | _ACEOF | |
45315 | ||
45316 | fi | |
45317 | ||
45318 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
45319 | cat >>confdefs.h <<\_ACEOF | |
45320 | #define wxUSE_NUMBERDLG 1 | |
45321 | _ACEOF | |
45322 | ||
45323 | fi | |
45324 | ||
45325 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
45326 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
45327 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
45328 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
45329 | else | |
45330 | cat >>confdefs.h <<\_ACEOF | |
45331 | #define wxUSE_PROGRESSDLG 1 | |
45332 | _ACEOF | |
45333 | ||
45334 | fi | |
45335 | fi | |
45336 | ||
45337 | if test "$wxUSE_SPLASH" = "yes"; then | |
45338 | cat >>confdefs.h <<\_ACEOF | |
45339 | #define wxUSE_SPLASH 1 | |
45340 | _ACEOF | |
45341 | ||
2057db16 | 45342 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
45343 | fi |
45344 | ||
45345 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
45346 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
45347 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
45348 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
45349 | else | |
45350 | cat >>confdefs.h <<\_ACEOF | |
45351 | #define wxUSE_STARTUP_TIPS 1 | |
45352 | _ACEOF | |
45353 | ||
45354 | fi | |
45355 | fi | |
45356 | ||
45357 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
45358 | cat >>confdefs.h <<\_ACEOF | |
45359 | #define wxUSE_TEXTDLG 1 | |
45360 | _ACEOF | |
45361 | ||
45362 | fi | |
45363 | ||
45364 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
45365 | cat >>confdefs.h <<\_ACEOF | |
45366 | #define wxUSE_WIZARDDLG 1 | |
45367 | _ACEOF | |
45368 | ||
45369 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
45370 | fi | |
45371 | ||
45372 | ||
f10e38c4 VZ |
45373 | USE_MEDIA=0 |
45374 | ||
ce756cb0 | 45375 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
2f6c5bb5 VZ |
45376 | USE_MEDIA=1 |
45377 | ||
ce756cb0 | 45378 | if test "$wxUSE_GTK" = 1; then |
c9a66001 | 45379 | wxUSE_GSTREAMER="no" |
ce756cb0 | 45380 | |
f10e38c4 VZ |
45381 | GST_VERSION_MAJOR=0 |
45382 | GST_VERSION_MINOR=10 | |
2f6c5bb5 | 45383 | GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR |
f10e38c4 VZ |
45384 | |
45385 | if test "$wxUSE_GSTREAMER8" = "no"; then | |
ce756cb0 | 45386 | |
3ecd9f92 MW |
45387 | pkg_failed=no |
45388 | echo "$as_me:$LINENO: checking for GST" >&5 | |
45389 | echo $ECHO_N "checking for GST... $ECHO_C" >&6 | |
ce756cb0 | 45390 | |
3ecd9f92 MW |
45391 | if test -n "$PKG_CONFIG"; then |
45392 | if test -n "$GST_CFLAGS"; then | |
45393 | pkg_cv_GST_CFLAGS="$GST_CFLAGS" | |
45394 | else | |
45395 | if test -n "$PKG_CONFIG" && \ | |
45396 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5 | |
45397 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5 | |
45398 | ac_status=$? | |
45399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45400 | (exit $ac_status); }; then | |
45401 | pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null` | |
dae87f93 | 45402 | else |
3ecd9f92 MW |
45403 | pkg_failed=yes |
45404 | fi | |
45405 | fi | |
45406 | else | |
45407 | pkg_failed=untried | |
dae87f93 | 45408 | fi |
dae87f93 | 45409 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
45410 | if test -n "$GST_LIBS"; then |
45411 | pkg_cv_GST_LIBS="$GST_LIBS" | |
45412 | else | |
45413 | if test -n "$PKG_CONFIG" && \ | |
45414 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5 | |
45415 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5 | |
45416 | ac_status=$? | |
45417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45418 | (exit $ac_status); }; then | |
45419 | pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null` | |
dae87f93 | 45420 | else |
3ecd9f92 MW |
45421 | pkg_failed=yes |
45422 | fi | |
45423 | fi | |
45424 | else | |
45425 | pkg_failed=untried | |
dae87f93 RN |
45426 | fi |
45427 | ||
dae87f93 | 45428 | |
2f6c5bb5 | 45429 | |
3ecd9f92 | 45430 | if test $pkg_failed = yes; then |
ce756cb0 | 45431 | |
3ecd9f92 MW |
45432 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
45433 | _pkg_short_errors_supported=yes | |
45434 | else | |
45435 | _pkg_short_errors_supported=no | |
45436 | fi | |
45437 | if test $_pkg_short_errors_supported = yes; then | |
45438 | GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"` | |
45439 | else | |
45440 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"` | |
dae87f93 | 45441 | fi |
3ecd9f92 MW |
45442 | # Put the nasty error message in config.log where it belongs |
45443 | echo "$GST_PKG_ERRORS" >&5 | |
dae87f93 RN |
45444 | |
45445 | ||
3ecd9f92 MW |
45446 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5 |
45447 | echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;} | |
45448 | GST_VERSION_MINOR=8 | |
dae87f93 | 45449 | |
ce756cb0 | 45450 | |
3ecd9f92 | 45451 | elif test $pkg_failed = untried; then |
dae87f93 | 45452 | |
2f6c5bb5 VZ |
45453 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5 |
45454 | echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;} | |
f10e38c4 | 45455 | GST_VERSION_MINOR=8 |
dae87f93 | 45456 | |
2f6c5bb5 | 45457 | |
3ecd9f92 MW |
45458 | else |
45459 | GST_CFLAGS=$pkg_cv_GST_CFLAGS | |
45460 | GST_LIBS=$pkg_cv_GST_LIBS | |
45461 | echo "$as_me:$LINENO: result: yes" >&5 | |
45462 | echo "${ECHO_T}yes" >&6 | |
45463 | ||
45464 | wxUSE_GSTREAMER="yes" | |
45465 | GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION" | |
dae87f93 | 45466 | |
3ecd9f92 | 45467 | fi |
2f6c5bb5 VZ |
45468 | else |
45469 | GST_VERSION_MINOR=8 | |
f10e38c4 | 45470 | fi |
dae87f93 | 45471 | |
2f6c5bb5 VZ |
45472 | if test $GST_VERSION_MINOR = "8"; then |
45473 | GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
dae87f93 | 45474 | |
3ecd9f92 MW |
45475 | pkg_failed=no |
45476 | echo "$as_me:$LINENO: checking for GST" >&5 | |
45477 | echo $ECHO_N "checking for GST... $ECHO_C" >&6 | |
dae87f93 | 45478 | |
3ecd9f92 MW |
45479 | if test -n "$PKG_CONFIG"; then |
45480 | if test -n "$GST_CFLAGS"; then | |
45481 | pkg_cv_GST_CFLAGS="$GST_CFLAGS" | |
45482 | else | |
45483 | if test -n "$PKG_CONFIG" && \ | |
45484 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5 | |
45485 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5 | |
45486 | ac_status=$? | |
45487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45488 | (exit $ac_status); }; then | |
45489 | pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null` | |
dae87f93 | 45490 | else |
3ecd9f92 MW |
45491 | pkg_failed=yes |
45492 | fi | |
45493 | fi | |
45494 | else | |
45495 | pkg_failed=untried | |
dae87f93 | 45496 | fi |
f10e38c4 | 45497 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
45498 | if test -n "$GST_LIBS"; then |
45499 | pkg_cv_GST_LIBS="$GST_LIBS" | |
45500 | else | |
45501 | if test -n "$PKG_CONFIG" && \ | |
45502 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5 | |
45503 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5 | |
45504 | ac_status=$? | |
45505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45506 | (exit $ac_status); }; then | |
45507 | pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null` | |
dae87f93 | 45508 | else |
3ecd9f92 MW |
45509 | pkg_failed=yes |
45510 | fi | |
45511 | fi | |
45512 | else | |
45513 | pkg_failed=untried | |
dae87f93 RN |
45514 | fi |
45515 | ||
ce756cb0 | 45516 | |
2f6c5bb5 | 45517 | |
3ecd9f92 | 45518 | if test $pkg_failed = yes; then |
dae87f93 | 45519 | |
3ecd9f92 MW |
45520 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
45521 | _pkg_short_errors_supported=yes | |
45522 | else | |
45523 | _pkg_short_errors_supported=no | |
45524 | fi | |
45525 | if test $_pkg_short_errors_supported = yes; then | |
45526 | GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"` | |
45527 | else | |
45528 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"` | |
dae87f93 | 45529 | fi |
3ecd9f92 MW |
45530 | # Put the nasty error message in config.log where it belongs |
45531 | echo "$GST_PKG_ERRORS" >&5 | |
dae87f93 RN |
45532 | |
45533 | ||
3ecd9f92 MW |
45534 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5 |
45535 | echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;} | |
ce756cb0 | 45536 | |
3ecd9f92 | 45537 | elif test $pkg_failed = untried; then |
ce756cb0 | 45538 | |
2f6c5bb5 VZ |
45539 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5 |
45540 | echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;} | |
ce756cb0 | 45541 | |
3ecd9f92 MW |
45542 | else |
45543 | GST_CFLAGS=$pkg_cv_GST_CFLAGS | |
45544 | GST_LIBS=$pkg_cv_GST_LIBS | |
45545 | echo "$as_me:$LINENO: result: yes" >&5 | |
45546 | echo "${ECHO_T}yes" >&6 | |
45547 | wxUSE_GSTREAMER="yes" | |
45548 | fi | |
dae87f93 | 45549 | fi |
ce756cb0 | 45550 | |
f10e38c4 | 45551 | |
dae87f93 | 45552 | if test "$wxUSE_GSTREAMER" = "yes"; then |
c9a66001 VZ |
45553 | case "${host}" in |
45554 | *-*-solaris2* ) | |
45555 | if "$GCC" = yes; then | |
45556 | GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'` | |
45557 | GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'` | |
45558 | fi | |
45559 | esac | |
45560 | ||
45561 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" | |
45562 | LIBS="$GST_LIBS $LIBS" | |
45563 | ||
dae87f93 | 45564 | cat >>confdefs.h <<\_ACEOF |
ce756cb0 RN |
45565 | #define wxUSE_GSTREAMER 1 |
45566 | _ACEOF | |
45567 | ||
2f6c5bb5 VZ |
45568 | else |
45569 | USE_MEDIA=0 | |
ce756cb0 RN |
45570 | fi |
45571 | fi | |
2f6c5bb5 VZ |
45572 | |
45573 | if test $USE_MEDIA = 1; then | |
45574 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
45575 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
45576 | #define wxUSE_MEDIACTRL 1 |
45577 | _ACEOF | |
45578 | ||
2f6c5bb5 | 45579 | fi |
ce756cb0 RN |
45580 | fi |
45581 | ||
45582 | ||
a848cd7e SC |
45583 | if test "$cross_compiling" = "yes"; then |
45584 | OSINFO="\"$host\"" | |
45585 | else | |
45586 | OSINFO=`uname -s -r -m` | |
45587 | OSINFO="\"$OSINFO\"" | |
45588 | fi | |
45589 | ||
45590 | cat >>confdefs.h <<_ACEOF | |
45591 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
45592 | _ACEOF | |
45593 | ||
45594 | ||
45595 | ||
45596 | if test "x$prefix" != "xNONE"; then | |
45597 | wxPREFIX=$prefix | |
45598 | else | |
45599 | wxPREFIX=$ac_default_prefix | |
45600 | fi | |
45601 | ||
45602 | cat >>confdefs.h <<_ACEOF | |
45603 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
45604 | _ACEOF | |
45605 | ||
45606 | ||
a848cd7e SC |
45607 | |
45608 | ||
45609 | CORE_BASE_LIBS="net base" | |
45610 | CORE_GUI_LIBS="adv core" | |
45611 | ||
45612 | if test "$wxUSE_XML" = "yes" ; then | |
45613 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
45614 | fi | |
45615 | if test "$wxUSE_ODBC" != "no" ; then | |
45616 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
45617 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
45618 | fi | |
45619 | if test "$wxUSE_HTML" = "yes" ; then | |
45620 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
45621 | fi | |
61639efb VZ |
45622 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
45623 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
45624 | fi | |
9a8f0513 VS |
45625 | if test "$wxUSE_XRC" = "yes" ; then |
45626 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
45627 | fi | |
3f60522a JS |
45628 | if test "$wxUSE_AUI" = "yes" ; then |
45629 | CORE_GUI_LIBS="aui $CORE_GUI_LIBS" | |
45630 | fi | |
a848cd7e SC |
45631 | |
45632 | if test "$wxUSE_GUI" != "yes"; then | |
45633 | CORE_GUI_LIBS="" | |
45634 | fi | |
45635 | ||
45636 | ||
45637 | ||
45638 | ||
45639 | ||
5d7b7554 VZ |
45640 | ac_ext=c |
45641 | ac_cpp='$CPP $CPPFLAGS' | |
45642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
45643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
45644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
45645 | ||
a848cd7e SC |
45646 | |
45647 | ||
a848cd7e | 45648 | if test "$wxUSE_MAC" = 1 ; then |
a98bf0c0 | 45649 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
45650 | if test "$USE_DARWIN" = 1; then |
45651 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
45652 | else | |
45653 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
45654 | fi | |
07bea8f0 | 45655 | fi |
5dcf30a0 | 45656 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
45657 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
45658 | else | |
45659 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 45660 | fi |
a848cd7e SC |
45661 | fi |
45662 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 45663 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
45664 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
45665 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
45666 | fi | |
a848cd7e | 45667 | fi |
19b27e78 MW |
45668 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
45669 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
45670 | fi | |
a848cd7e | 45671 | |
a848cd7e SC |
45672 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
45673 | ||
a848cd7e SC |
45674 | if test "$wxUSE_GUI" = "yes"; then |
45675 | ||
45676 | ||
8bce5cda MW |
45677 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
45678 | dynamic erase event exec font image minimal mobile \ | |
45679 | mobile/wxedit mobile/styles propsize render \ | |
9e39d889 | 45680 | rotate shaped vscroll widgets" |
a848cd7e SC |
45681 | |
45682 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
45683 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
45684 | fi | |
0b78747f | 45685 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
45686 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
45687 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
45688 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
45689 | fi | |
45690 | fi | |
45691 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
45692 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 45693 | fi |
a848cd7e SC |
45694 | else |
45695 | SAMPLES_SUBDIRS="console" | |
45696 | fi | |
45697 | ||
45698 | ||
48f625bc | 45699 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
45700 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
45701 | elif test "$GCC" = yes ; then | |
45702 | CWARNINGS="-Wall -Wundef" | |
45703 | fi | |
45704 | ||
48f625bc | 45705 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 45706 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
45707 | elif test "$GXX" = yes ; then |
45708 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 45709 | fi |
a848cd7e | 45710 | |
a848cd7e | 45711 | |
5ff751d6 VZ |
45712 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
45713 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
45714 | ||
45715 | ||
c92ad099 | 45716 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
bc6ee4ae | 45717 | -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
45718 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
45719 | $CPPFLAGS ` | |
5ff751d6 | 45720 | |
8aeeb05c | 45721 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 45722 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
9cbac6d1 | 45723 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
5ff751d6 VZ |
45724 | |
45725 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
45726 | ||
a848cd7e | 45727 | |
95986553 DE |
45728 | if test "x$MWCC" = "xyes"; then |
45729 | ||
45730 | CC="$CC -cwd source -I-" | |
45731 | CXX="$CXX -cwd source -I-" | |
45732 | fi | |
45733 | ||
a848cd7e | 45734 | |
0c3c69fc | 45735 | LIBS=`echo $LIBS` |
a848cd7e SC |
45736 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
45737 | EXTRALIBS_XML="$EXPAT_LINK" | |
45738 | EXTRALIBS_HTML="$MSPACK_LINK" | |
45739 | EXTRALIBS_ODBC="$ODBC_LINK" | |
45740 | if test "$wxUSE_GUI" = "yes"; then | |
2b850ae1 | 45741 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
45742 | fi |
45743 | if test "$wxUSE_OPENGL" = "yes"; then | |
45744 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
45745 | fi | |
45746 | ||
8aeeb05c | 45747 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 45748 | |
5ff751d6 | 45749 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
45750 | |
45751 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 45752 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
45753 | fi |
45754 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 45755 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
45756 | fi |
45757 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 45758 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
45759 | fi |
45760 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 45761 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
45762 | fi |
45763 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 45764 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
45765 | fi |
45766 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 45767 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
45768 | fi |
45769 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 45770 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
45771 | fi |
45772 | ||
45773 | for i in $wxconfig_3rdparty ; do | |
5ff751d6 | 45774 | WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
45775 | done |
45776 | ||
45777 | ||
45778 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
45779 | WXUNIV=1 | |
45780 | else | |
45781 | WXUNIV=0 | |
45782 | fi | |
45783 | ||
45784 | ||
45785 | ||
45786 | ||
45787 | ||
45788 | ||
45789 | ||
45790 | ||
45791 | ||
45792 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
45793 | MONOLITHIC=1 | |
45794 | else | |
45795 | MONOLITHIC=0 | |
45796 | fi | |
45797 | ||
45798 | if test $wxUSE_PLUGINS = "yes" ; then | |
45799 | USE_PLUGINS=1 | |
45800 | else | |
45801 | USE_PLUGINS=0 | |
45802 | fi | |
45803 | ||
45804 | if test $wxUSE_ODBC != "no" ; then | |
45805 | USE_ODBC=1 | |
45806 | else | |
45807 | USE_ODBC=0 | |
45808 | fi | |
45809 | ||
16358932 VZ |
45810 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
45811 | USE_QA=1 | |
45812 | else | |
45813 | USE_QA=0 | |
45814 | fi | |
45815 | ||
a848cd7e SC |
45816 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
45817 | OFFICIAL_BUILD=1 | |
45818 | else | |
45819 | OFFICIAL_BUILD=0 | |
45820 | fi | |
45821 | ||
45822 | ||
45823 | ||
45824 | ||
45825 | ||
45826 | ||
45827 | ||
45828 | ||
45829 | ||
45830 | ||
45831 | ||
45832 | ||
45833 | ||
45834 | ||
45835 | ||
45836 | ||
45837 | ||
45838 | ||
45839 | ||
ceec2216 | 45840 | |
d1c38808 | 45841 | |
3565d135 | 45842 | |
2b850ae1 | 45843 | |
a848cd7e SC |
45844 | |
45845 | ||
45846 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
45847 | ||
45848 | ||
45849 | ||
45850 | ||
45851 | ||
45852 | ||
45853 | ||
45854 | ||
4d4ff94c VZ |
45855 | case "$TOOLKIT" in |
45856 | GTK) | |
c2e9ada4 | 45857 | TOOLKIT_DESC="GTK+" |
4d4ff94c | 45858 | if test "$WXGTK20" = 1; then |
c2e9ada4 VZ |
45859 | TOOLKIT_DESC="$TOOLKIT_DESC 2" |
45860 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
45861 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint"; | |
45862 | fi | |
45863 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
45864 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs" | |
45865 | fi | |
45866 | if test "$wxUSE_LIBHILDON" = "yes"; then | |
45867 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon" | |
45868 | fi | |
45869 | ||
45870 | if test "$TOOLKIT_EXTRA" != ""; then | |
45871 | TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`" | |
45872 | fi | |
4d4ff94c | 45873 | fi |
9a8f0513 | 45874 | ;; |
4d4ff94c | 45875 | |
c2e9ada4 VZ |
45876 | ?*) |
45877 | TOOLKIT_DESC=$TOOLKIT_LOWERCASE | |
45878 | ;; | |
45879 | ||
4d4ff94c | 45880 | *) |
c2e9ada4 | 45881 | TOOLKIT_DESC="base only" |
9a8f0513 | 45882 | ;; |
4d4ff94c | 45883 | esac |
a848cd7e | 45884 | |
fb00f58d JS |
45885 | if test "$wxUSE_WINE" = "yes"; then |
45886 | BAKEFILE_FORCE_PLATFORM=win32 | |
45887 | fi | |
45888 | ||
7afc46ab | 45889 | if test "$wxUSE_MAC" = 1 ; then |
95768535 MW |
45890 | if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then |
45891 | if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then | |
45892 | OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" | |
45893 | else | |
45894 | OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"} | |
45895 | fi | |
45896 | OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386" | |
45897 | CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS" | |
45898 | CFLAGS="$OSX_UNIV_OPTS $CFLAGS" | |
45899 | LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS" | |
7afc46ab KO |
45900 | bk_use_pch=no |
45901 | fi | |
45902 | # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)? | |
45903 | # The makefile currently uses AR and RANLIB, which libtool apparently supercedes. | |
7afc46ab KO |
45904 | fi |
45905 | ||
9a8f0513 | 45906 | |
1e9e8aba DE |
45907 | |
45908 | ||
a848cd7e | 45909 | if test "x$BAKEFILE_HOST" = "x"; then |
f10e38c4 VZ |
45910 | if test "x${host}" = "x" ; then |
45911 | { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5 | |
45912 | echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;} | |
45913 | { (exit 1); exit 1; }; } | |
45914 | fi | |
45915 | ||
a848cd7e SC |
45916 | BAKEFILE_HOST="${host}" |
45917 | fi | |
45918 | ||
45919 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
45920 | ||
45921 | if test -n "$ac_tool_prefix"; then | |
45922 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
45923 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
45924 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45926 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
45927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45928 | else | |
45929 | if test -n "$RANLIB"; then | |
45930 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
45931 | else | |
45932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45933 | for as_dir in $PATH | |
45934 | do | |
45935 | IFS=$as_save_IFS | |
45936 | test -z "$as_dir" && as_dir=. | |
45937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45938 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45939 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
45940 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45941 | break 2 | |
45942 | fi | |
45943 | done | |
45944 | done | |
45945 | ||
45946 | fi | |
45947 | fi | |
45948 | RANLIB=$ac_cv_prog_RANLIB | |
45949 | if test -n "$RANLIB"; then | |
45950 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
45951 | echo "${ECHO_T}$RANLIB" >&6 | |
45952 | else | |
45953 | echo "$as_me:$LINENO: result: no" >&5 | |
45954 | echo "${ECHO_T}no" >&6 | |
45955 | fi | |
45956 | ||
45957 | fi | |
45958 | if test -z "$ac_cv_prog_RANLIB"; then | |
45959 | ac_ct_RANLIB=$RANLIB | |
45960 | # Extract the first word of "ranlib", so it can be a program name with args. | |
45961 | set dummy ranlib; ac_word=$2 | |
45962 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45964 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
45965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45966 | else | |
45967 | if test -n "$ac_ct_RANLIB"; then | |
45968 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
45969 | else | |
45970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45971 | for as_dir in $PATH | |
45972 | do | |
45973 | IFS=$as_save_IFS | |
45974 | test -z "$as_dir" && as_dir=. | |
45975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45976 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45977 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
45978 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45979 | break 2 | |
45980 | fi | |
45981 | done | |
45982 | done | |
45983 | ||
45984 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
45985 | fi | |
45986 | fi | |
45987 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
45988 | if test -n "$ac_ct_RANLIB"; then | |
45989 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
45990 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
45991 | else | |
45992 | echo "$as_me:$LINENO: result: no" >&5 | |
45993 | echo "${ECHO_T}no" >&6 | |
45994 | fi | |
45995 | ||
45996 | RANLIB=$ac_ct_RANLIB | |
45997 | else | |
45998 | RANLIB="$ac_cv_prog_RANLIB" | |
45999 | fi | |
46000 | ||
46001 | # Find a good install program. We prefer a C program (faster), | |
46002 | # so one script is as good as another. But avoid the broken or | |
46003 | # incompatible versions: | |
46004 | # SysV /etc/install, /usr/sbin/install | |
46005 | # SunOS /usr/etc/install | |
46006 | # IRIX /sbin/install | |
46007 | # AIX /bin/install | |
46008 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
46009 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
46010 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
46011 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 46012 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
46013 | # ./install, which can be erroneously created by make from ./install.sh. |
46014 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
46015 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
46016 | if test -z "$INSTALL"; then | |
46017 | if test "${ac_cv_path_install+set}" = set; then | |
46018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46019 | else | |
46020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46021 | for as_dir in $PATH | |
46022 | do | |
46023 | IFS=$as_save_IFS | |
46024 | test -z "$as_dir" && as_dir=. | |
46025 | # Account for people who put trailing slashes in PATH elements. | |
46026 | case $as_dir/ in | |
46027 | ./ | .// | /cC/* | \ | |
46028 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 46029 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
46030 | /usr/ucb/* ) ;; |
46031 | *) | |
46032 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
46033 | # Don't use installbsd from OSF since it installs stuff as root | |
46034 | # by default. | |
46035 | for ac_prog in ginstall scoinst install; do | |
46036 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
46037 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
46038 | if test $ac_prog = install && | |
46039 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
46040 | # AIX install. It has an incompatible calling convention. | |
46041 | : | |
46042 | elif test $ac_prog = install && | |
46043 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
46044 | # program-specific install script used by HP pwplus--don't use. | |
46045 | : | |
46046 | else | |
46047 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
46048 | break 3 | |
46049 | fi | |
46050 | fi | |
a848cd7e SC |
46051 | done |
46052 | done | |
46053 | ;; | |
46054 | esac | |
46055 | done | |
46056 | ||
46057 | ||
46058 | fi | |
46059 | if test "${ac_cv_path_install+set}" = set; then | |
46060 | INSTALL=$ac_cv_path_install | |
46061 | else | |
46062 | # As a last resort, use the slow shell script. We don't cache a | |
46063 | # path for INSTALL within a source directory, because that will | |
46064 | # break other packages using the cache if that directory is | |
46065 | # removed, or if the path is relative. | |
46066 | INSTALL=$ac_install_sh | |
46067 | fi | |
46068 | fi | |
46069 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
46070 | echo "${ECHO_T}$INSTALL" >&6 | |
46071 | ||
46072 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
46073 | # It thinks the first close brace ends the variable substitution. | |
46074 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
46075 | ||
46076 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
46077 | ||
46078 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
46079 | ||
46080 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
46081 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
46082 | LN_S=$as_ln_s | |
46083 | if test "$LN_S" = "ln -s"; then | |
46084 | echo "$as_me:$LINENO: result: yes" >&5 | |
46085 | echo "${ECHO_T}yes" >&6 | |
46086 | else | |
46087 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
46088 | echo "${ECHO_T}no, using $LN_S" >&6 | |
46089 | fi | |
46090 | ||
46091 | ||
46092 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
46093 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 46094 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
46095 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
46096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46097 | else | |
46098 | cat >conftest.make <<\_ACEOF | |
46099 | all: | |
46100 | @echo 'ac_maketemp="$(MAKE)"' | |
46101 | _ACEOF | |
46102 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
46103 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
46104 | if test -n "$ac_maketemp"; then | |
46105 | eval ac_cv_prog_make_${ac_make}_set=yes | |
46106 | else | |
46107 | eval ac_cv_prog_make_${ac_make}_set=no | |
46108 | fi | |
46109 | rm -f conftest.make | |
46110 | fi | |
46111 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
46112 | echo "$as_me:$LINENO: result: yes" >&5 | |
46113 | echo "${ECHO_T}yes" >&6 | |
46114 | SET_MAKE= | |
46115 | else | |
46116 | echo "$as_me:$LINENO: result: no" >&5 | |
46117 | echo "${ECHO_T}no" >&6 | |
46118 | SET_MAKE="MAKE=${MAKE-make}" | |
46119 | fi | |
46120 | ||
46121 | ||
46122 | ||
46123 | if test -n "$ac_tool_prefix"; then | |
46124 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
46125 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
46126 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46128 | if test "${ac_cv_prog_AR+set}" = set; then | |
46129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46130 | else | |
46131 | if test -n "$AR"; then | |
46132 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
46133 | else | |
46134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46135 | for as_dir in $PATH | |
46136 | do | |
46137 | IFS=$as_save_IFS | |
46138 | test -z "$as_dir" && as_dir=. | |
46139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46140 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46141 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
46142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46143 | break 2 | |
46144 | fi | |
46145 | done | |
46146 | done | |
46147 | ||
46148 | fi | |
46149 | fi | |
46150 | AR=$ac_cv_prog_AR | |
46151 | if test -n "$AR"; then | |
46152 | echo "$as_me:$LINENO: result: $AR" >&5 | |
46153 | echo "${ECHO_T}$AR" >&6 | |
46154 | else | |
46155 | echo "$as_me:$LINENO: result: no" >&5 | |
46156 | echo "${ECHO_T}no" >&6 | |
46157 | fi | |
46158 | ||
46159 | fi | |
46160 | if test -z "$ac_cv_prog_AR"; then | |
46161 | ac_ct_AR=$AR | |
46162 | # Extract the first word of "ar", so it can be a program name with args. | |
46163 | set dummy ar; ac_word=$2 | |
46164 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46165 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46166 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
46167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46168 | else | |
46169 | if test -n "$ac_ct_AR"; then | |
46170 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
46171 | else | |
46172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46173 | for as_dir in $PATH | |
46174 | do | |
46175 | IFS=$as_save_IFS | |
46176 | test -z "$as_dir" && as_dir=. | |
46177 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46178 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46179 | ac_cv_prog_ac_ct_AR="ar" | |
46180 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46181 | break 2 | |
46182 | fi | |
46183 | done | |
46184 | done | |
46185 | ||
46186 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
46187 | fi | |
46188 | fi | |
46189 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
46190 | if test -n "$ac_ct_AR"; then | |
46191 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
46192 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
46193 | else | |
46194 | echo "$as_me:$LINENO: result: no" >&5 | |
46195 | echo "${ECHO_T}no" >&6 | |
46196 | fi | |
46197 | ||
46198 | AR=$ac_ct_AR | |
46199 | else | |
46200 | AR="$ac_cv_prog_AR" | |
46201 | fi | |
46202 | ||
46203 | if test -n "$ac_tool_prefix"; then | |
46204 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
46205 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
46206 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46207 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46208 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
46209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46210 | else | |
46211 | if test -n "$STRIP"; then | |
46212 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
46213 | else | |
46214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46215 | for as_dir in $PATH | |
46216 | do | |
46217 | IFS=$as_save_IFS | |
46218 | test -z "$as_dir" && as_dir=. | |
46219 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46220 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46221 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
46222 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46223 | break 2 | |
46224 | fi | |
46225 | done | |
46226 | done | |
46227 | ||
46228 | fi | |
46229 | fi | |
46230 | STRIP=$ac_cv_prog_STRIP | |
46231 | if test -n "$STRIP"; then | |
46232 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
46233 | echo "${ECHO_T}$STRIP" >&6 | |
46234 | else | |
46235 | echo "$as_me:$LINENO: result: no" >&5 | |
46236 | echo "${ECHO_T}no" >&6 | |
46237 | fi | |
46238 | ||
46239 | fi | |
46240 | if test -z "$ac_cv_prog_STRIP"; then | |
46241 | ac_ct_STRIP=$STRIP | |
46242 | # Extract the first word of "strip", so it can be a program name with args. | |
46243 | set dummy strip; ac_word=$2 | |
46244 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46245 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46246 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
46247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46248 | else | |
46249 | if test -n "$ac_ct_STRIP"; then | |
46250 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
46251 | else | |
46252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46253 | for as_dir in $PATH | |
46254 | do | |
46255 | IFS=$as_save_IFS | |
46256 | test -z "$as_dir" && as_dir=. | |
46257 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46258 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46259 | ac_cv_prog_ac_ct_STRIP="strip" | |
46260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46261 | break 2 | |
46262 | fi | |
46263 | done | |
46264 | done | |
46265 | ||
46266 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
46267 | fi | |
46268 | fi | |
46269 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
46270 | if test -n "$ac_ct_STRIP"; then | |
46271 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
46272 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
46273 | else | |
46274 | echo "$as_me:$LINENO: result: no" >&5 | |
46275 | echo "${ECHO_T}no" >&6 | |
46276 | fi | |
46277 | ||
46278 | STRIP=$ac_ct_STRIP | |
46279 | else | |
46280 | STRIP="$ac_cv_prog_STRIP" | |
46281 | fi | |
46282 | ||
46283 | if test -n "$ac_tool_prefix"; then | |
46284 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
46285 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
46286 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46288 | if test "${ac_cv_prog_NM+set}" = set; then | |
46289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46290 | else | |
46291 | if test -n "$NM"; then | |
46292 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
46293 | else | |
46294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46295 | for as_dir in $PATH | |
46296 | do | |
46297 | IFS=$as_save_IFS | |
46298 | test -z "$as_dir" && as_dir=. | |
46299 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46300 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46301 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
46302 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46303 | break 2 | |
46304 | fi | |
46305 | done | |
46306 | done | |
46307 | ||
46308 | fi | |
46309 | fi | |
46310 | NM=$ac_cv_prog_NM | |
46311 | if test -n "$NM"; then | |
46312 | echo "$as_me:$LINENO: result: $NM" >&5 | |
46313 | echo "${ECHO_T}$NM" >&6 | |
46314 | else | |
46315 | echo "$as_me:$LINENO: result: no" >&5 | |
46316 | echo "${ECHO_T}no" >&6 | |
46317 | fi | |
46318 | ||
46319 | fi | |
46320 | if test -z "$ac_cv_prog_NM"; then | |
46321 | ac_ct_NM=$NM | |
46322 | # Extract the first word of "nm", so it can be a program name with args. | |
46323 | set dummy nm; ac_word=$2 | |
46324 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46326 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
46327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46328 | else | |
46329 | if test -n "$ac_ct_NM"; then | |
46330 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
46331 | else | |
46332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46333 | for as_dir in $PATH | |
46334 | do | |
46335 | IFS=$as_save_IFS | |
46336 | test -z "$as_dir" && as_dir=. | |
46337 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46338 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46339 | ac_cv_prog_ac_ct_NM="nm" | |
46340 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46341 | break 2 | |
46342 | fi | |
46343 | done | |
46344 | done | |
46345 | ||
46346 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
46347 | fi | |
46348 | fi | |
46349 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
46350 | if test -n "$ac_ct_NM"; then | |
46351 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
46352 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
46353 | else | |
46354 | echo "$as_me:$LINENO: result: no" >&5 | |
46355 | echo "${ECHO_T}no" >&6 | |
46356 | fi | |
46357 | ||
46358 | NM=$ac_ct_NM | |
46359 | else | |
46360 | NM="$ac_cv_prog_NM" | |
46361 | fi | |
46362 | ||
46363 | ||
46364 | case ${BAKEFILE_HOST} in | |
46365 | *-hp-hpux* ) | |
1e9e8aba | 46366 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
46367 | ;; |
46368 | *) INSTALL_DIR="$INSTALL -d" | |
46369 | ;; | |
46370 | esac | |
46371 | ||
46372 | ||
46373 | LDFLAGS_GUI= | |
46374 | case ${BAKEFILE_HOST} in | |
46375 | *-*-cygwin* | *-*-mingw32* ) | |
46376 | LDFLAGS_GUI="-mwindows" | |
46377 | esac | |
46378 | ||
46379 | ||
46380 | fi | |
46381 | ||
46382 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
46383 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
46384 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
46385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46386 | else | |
46387 | ||
46388 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
46389 | egrep -s GNU > /dev/null); then | |
46390 | bakefile_cv_prog_makeisgnu="yes" | |
46391 | else | |
46392 | bakefile_cv_prog_makeisgnu="no" | |
46393 | fi | |
46394 | ||
46395 | fi | |
46396 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
46397 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
46398 | ||
46399 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
46400 | IF_GNU_MAKE="" | |
46401 | else | |
46402 | IF_GNU_MAKE="#" | |
46403 | fi | |
46404 | ||
46405 | ||
46406 | ||
46407 | PLATFORM_UNIX=0 | |
46408 | PLATFORM_WIN32=0 | |
46409 | PLATFORM_MSDOS=0 | |
46410 | PLATFORM_MAC=0 | |
1e9e8aba | 46411 | PLATFORM_MACOS=0 |
a848cd7e SC |
46412 | PLATFORM_MACOSX=0 |
46413 | PLATFORM_OS2=0 | |
1e9e8aba | 46414 | PLATFORM_BEOS=0 |
a848cd7e SC |
46415 | |
46416 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
46417 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 46418 | *-*-mingw32* ) |
a848cd7e SC |
46419 | PLATFORM_WIN32=1 |
46420 | ;; | |
46421 | *-pc-msdosdjgpp ) | |
46422 | PLATFORM_MSDOS=1 | |
46423 | ;; | |
46424 | *-pc-os2_emx | *-pc-os2-emx ) | |
46425 | PLATFORM_OS2=1 | |
46426 | ;; | |
47bd5406 | 46427 | *-*-darwin* ) |
a848cd7e SC |
46428 | PLATFORM_MAC=1 |
46429 | PLATFORM_MACOSX=1 | |
46430 | ;; | |
1e9e8aba DE |
46431 | *-*-beos* ) |
46432 | PLATFORM_BEOS=1 | |
46433 | ;; | |
46434 | powerpc-apple-macos* ) | |
46435 | PLATFORM_MAC=1 | |
46436 | PLATFORM_MACOS=1 | |
46437 | ;; | |
a848cd7e SC |
46438 | * ) |
46439 | PLATFORM_UNIX=1 | |
46440 | ;; | |
46441 | esac | |
46442 | else | |
46443 | case "$BAKEFILE_FORCE_PLATFORM" in | |
46444 | win32 ) | |
46445 | PLATFORM_WIN32=1 | |
46446 | ;; | |
46447 | msdos ) | |
46448 | PLATFORM_MSDOS=1 | |
46449 | ;; | |
46450 | os2 ) | |
46451 | PLATFORM_OS2=1 | |
46452 | ;; | |
46453 | darwin ) | |
46454 | PLATFORM_MAC=1 | |
46455 | PLATFORM_MACOSX=1 | |
46456 | ;; | |
46457 | unix ) | |
46458 | PLATFORM_UNIX=1 | |
46459 | ;; | |
1e9e8aba DE |
46460 | beos ) |
46461 | PLATFORM_BEOS=1 | |
46462 | ;; | |
a848cd7e SC |
46463 | * ) |
46464 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
46465 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
46466 | { (exit 1); exit 1; }; } | |
46467 | ;; | |
46468 | esac | |
46469 | fi | |
46470 | ||
46471 | ||
46472 | ||
46473 | ||
46474 | ||
46475 | ||
46476 | ||
46477 | ||
46478 | ||
1e9e8aba DE |
46479 | |
46480 | ||
a848cd7e SC |
46481 | # Check whether --enable-omf or --disable-omf was given. |
46482 | if test "${enable_omf+set}" = set; then | |
46483 | enableval="$enable_omf" | |
46484 | bk_os2_use_omf="$enableval" | |
46485 | fi; | |
46486 | ||
46487 | case "${BAKEFILE_HOST}" in | |
46488 | *-*-darwin* ) | |
47bd5406 VZ |
46489 | if test "x$GCC" = "xyes"; then |
46490 | CFLAGS="$CFLAGS -fno-common" | |
46491 | CXXFLAGS="$CXXFLAGS -fno-common" | |
46492 | fi | |
46493 | if test "x$XLCC" = "xyes"; then | |
46494 | CFLAGS="$CFLAGS -qnocommon" | |
46495 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
46496 | fi | |
a848cd7e SC |
46497 | ;; |
46498 | ||
46499 | *-pc-os2_emx | *-pc-os2-emx ) | |
46500 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
46501 | AR=emxomfar | |
46502 | RANLIB=: | |
46503 | LDFLAGS="-Zomf $LDFLAGS" | |
46504 | CFLAGS="-Zomf $CFLAGS" | |
46505 | CXXFLAGS="-Zomf $CXXFLAGS" | |
46506 | OS2_LIBEXT="lib" | |
46507 | else | |
46508 | OS2_LIBEXT="a" | |
46509 | fi | |
46510 | ;; | |
1e9e8aba DE |
46511 | |
46512 | i*86-*-beos* ) | |
46513 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
46514 | ;; | |
a848cd7e SC |
46515 | esac |
46516 | ||
46517 | ||
46518 | SO_SUFFIX="so" | |
46519 | SO_SUFFIX_MODULE="so" | |
46520 | EXEEXT="" | |
46521 | LIBPREFIX="lib" | |
46522 | LIBEXT=".a" | |
46523 | DLLPREFIX="lib" | |
46524 | DLLPREFIX_MODULE="" | |
46525 | DLLIMP_SUFFIX="" | |
810b94f0 | 46526 | dlldir="$libdir" |
a848cd7e SC |
46527 | |
46528 | case "${BAKEFILE_HOST}" in | |
46529 | *-hp-hpux* ) | |
46530 | SO_SUFFIX="sl" | |
46531 | SO_SUFFIX_MODULE="sl" | |
46532 | ;; | |
46533 | *-*-aix* ) | |
46534 | SO_SUFFIX="a" | |
46535 | SO_SUFFIX_MODULE="a" | |
46536 | ;; | |
810b94f0 MW |
46537 | *-*-cygwin* ) |
46538 | SO_SUFFIX="dll" | |
46539 | SO_SUFFIX_MODULE="dll" | |
46540 | DLLIMP_SUFFIX="dll.a" | |
46541 | EXEEXT=".exe" | |
46542 | DLLPREFIX="cyg" | |
46543 | dlldir="$bindir" | |
46544 | ;; | |
46545 | *-*-mingw32* ) | |
a848cd7e SC |
46546 | SO_SUFFIX="dll" |
46547 | SO_SUFFIX_MODULE="dll" | |
46548 | DLLIMP_SUFFIX="dll.a" | |
46549 | EXEEXT=".exe" | |
46550 | DLLPREFIX="" | |
810b94f0 | 46551 | dlldir="$bindir" |
a848cd7e SC |
46552 | ;; |
46553 | *-pc-msdosdjgpp ) | |
46554 | EXEEXT=".exe" | |
46555 | DLLPREFIX="" | |
810b94f0 | 46556 | dlldir="$bindir" |
a848cd7e SC |
46557 | ;; |
46558 | *-pc-os2_emx | *-pc-os2-emx ) | |
46559 | SO_SUFFIX="dll" | |
46560 | SO_SUFFIX_MODULE="dll" | |
46561 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
46562 | EXEEXT=".exe" | |
46563 | DLLPREFIX="" | |
46564 | LIBPREFIX="" | |
46565 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 46566 | dlldir="$bindir" |
a848cd7e | 46567 | ;; |
47bd5406 | 46568 | *-*-darwin* ) |
a848cd7e SC |
46569 | SO_SUFFIX="dylib" |
46570 | SO_SUFFIX_MODULE="bundle" | |
46571 | ;; | |
46572 | esac | |
46573 | ||
46574 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
46575 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
46576 | fi | |
46577 | ||
46578 | ||
46579 | ||
46580 | ||
46581 | ||
46582 | ||
46583 | ||
46584 | ||
46585 | ||
46586 | ||
46587 | ||
810b94f0 | 46588 | |
1e9e8aba DE |
46589 | PIC_FLAG="" |
46590 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
46591 | PIC_FLAG="-fPIC" |
46592 | fi | |
46593 | ||
1e9e8aba DE |
46594 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
46595 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 46596 | WINDOWS_IMPLIB=0 |
1e9e8aba | 46597 | |
a848cd7e SC |
46598 | case "${BAKEFILE_HOST}" in |
46599 | *-hp-hpux* ) | |
1e9e8aba | 46600 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
46601 | LDFLAGS="$LDFLAGS -L/usr/lib" |
46602 | ||
46603 | SHARED_LD_CC="${CC} -b -o" | |
46604 | SHARED_LD_CXX="${CXX} -b -o" | |
46605 | PIC_FLAG="+Z" | |
46606 | fi | |
46607 | ;; | |
46608 | ||
46609 | *-*-linux* ) | |
46610 | if test "x$GCC" != "xyes"; then | |
46611 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
46612 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
46613 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
46614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46615 | else | |
46616 | ||
46617 | cat >conftest.$ac_ext <<_ACEOF | |
46618 | /* confdefs.h. */ | |
46619 | _ACEOF | |
46620 | cat confdefs.h >>conftest.$ac_ext | |
46621 | cat >>conftest.$ac_ext <<_ACEOF | |
46622 | /* end confdefs.h. */ | |
46623 | ||
46624 | int | |
46625 | main () | |
46626 | { | |
46627 | ||
46628 | #ifndef __INTEL_COMPILER | |
e5efa97e | 46629 | This is not ICC |
a848cd7e SC |
46630 | #endif |
46631 | ||
46632 | ; | |
46633 | return 0; | |
46634 | } | |
46635 | _ACEOF | |
46636 | rm -f conftest.$ac_objext | |
46637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 46638 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 46639 | ac_status=$? |
ac1cb8d3 VS |
46640 | grep -v '^ *+' conftest.er1 >conftest.err |
46641 | rm -f conftest.er1 | |
46642 | cat conftest.err >&5 | |
a848cd7e SC |
46643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
46644 | (exit $ac_status); } && | |
c9a66001 | 46645 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
46646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46647 | (eval $ac_try) 2>&5 | |
46648 | ac_status=$? | |
46649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46650 | (exit $ac_status); }; } && | |
46651 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
46652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46653 | (eval $ac_try) 2>&5 | |
46654 | ac_status=$? | |
46655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46656 | (exit $ac_status); }; }; then | |
46657 | bakefile_cv_prog_icc=yes | |
46658 | else | |
46659 | echo "$as_me: failed program was:" >&5 | |
46660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46661 | ||
46662 | bakefile_cv_prog_icc=no | |
46663 | ||
46664 | fi | |
ac1cb8d3 | 46665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
46666 | |
46667 | fi | |
46668 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
46669 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
46670 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
46671 | PIC_FLAG="-KPIC" | |
46672 | fi | |
46673 | fi | |
46674 | ;; | |
46675 | ||
46676 | *-*-solaris2* ) | |
46677 | if test "x$GCC" != xyes ; then | |
46678 | SHARED_LD_CC="${CC} -G -o" | |
46679 | SHARED_LD_CXX="${CXX} -G -o" | |
46680 | PIC_FLAG="-KPIC" | |
46681 | fi | |
46682 | ;; | |
46683 | ||
46684 | *-*-darwin* ) | |
46685 | ||
473276a9 VS |
46686 | D='$' |
46687 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
46688 | #!/bin/sh |
46689 | #----------------------------------------------------------------------------- | |
46690 | #-- Name: distrib/mac/shared-ld-sh | |
46691 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
46692 | #-- Author: Gilles Depeyrot | |
46693 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
46694 | #-- Licence: any use permitted | |
46695 | #----------------------------------------------------------------------------- | |
46696 | ||
46697 | verbose=0 | |
46698 | args="" | |
46699 | objects="" | |
46700 | linking_flag="-dynamiclib" | |
810b94f0 | 46701 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 46702 | |
473276a9 VS |
46703 | while test ${D}# -gt 0; do |
46704 | case ${D}1 in | |
a848cd7e SC |
46705 | |
46706 | -v) | |
46707 | verbose=1 | |
46708 | ;; | |
46709 | ||
46710 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
46711 | # collect these options and values | |
473276a9 | 46712 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
46713 | shift |
46714 | ;; | |
46715 | ||
810b94f0 MW |
46716 | -s|-Wl,*) |
46717 | # collect these load args | |
46718 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 46719 | ;; |
810b94f0 MW |
46720 | |
46721 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 46722 | # collect these options |
473276a9 | 46723 | args="${D}{args} ${D}1" |
a848cd7e SC |
46724 | ;; |
46725 | ||
46726 | -dynamiclib|-bundle) | |
473276a9 | 46727 | linking_flag="${D}1" |
a848cd7e SC |
46728 | ;; |
46729 | ||
46730 | -*) | |
473276a9 | 46731 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
46732 | exit 1 |
46733 | ;; | |
46734 | ||
46735 | *.o | *.a | *.dylib) | |
46736 | # collect object files | |
473276a9 | 46737 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
46738 | ;; |
46739 | ||
46740 | *) | |
473276a9 | 46741 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
46742 | exit 1 |
46743 | ;; | |
46744 | ||
46745 | esac | |
46746 | shift | |
46747 | done | |
46748 | ||
810b94f0 MW |
46749 | status=0 |
46750 | ||
a848cd7e SC |
46751 | # |
46752 | # Link one module containing all the others | |
46753 | # | |
473276a9 | 46754 | if test ${D}{verbose} = 1; then |
810b94f0 | 46755 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 46756 | fi |
810b94f0 | 46757 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 46758 | status=${D}? |
a848cd7e SC |
46759 | |
46760 | # | |
810b94f0 MW |
46761 | # Link the shared library from the single module created, but only if the |
46762 | # previous command didn't fail: | |
a848cd7e | 46763 | # |
810b94f0 MW |
46764 | if test ${D}{status} = 0; then |
46765 | if test ${D}{verbose} = 1; then | |
46766 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
46767 | fi | |
46768 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
46769 | status=${D}? | |
a848cd7e SC |
46770 | fi |
46771 | ||
46772 | # | |
46773 | # Remove intermediate module | |
46774 | # | |
473276a9 | 46775 | rm -f master.${D}${D}.o |
a848cd7e | 46776 | |
810b94f0 | 46777 | exit ${D}status |
a848cd7e | 46778 | EOF |
473276a9 | 46779 | |
583d6b4b VZ |
46780 | chmod +x shared-ld-sh |
46781 | ||
46782 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
46783 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
46784 | ||
46785 | ||
46786 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
46787 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
46788 | if test "${bakefile_cv_gcc31+set}" = set; then | |
46789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46790 | else | |
46791 | ||
46792 | cat >conftest.$ac_ext <<_ACEOF | |
46793 | /* confdefs.h. */ | |
46794 | _ACEOF | |
46795 | cat confdefs.h >>conftest.$ac_ext | |
46796 | cat >>conftest.$ac_ext <<_ACEOF | |
46797 | /* end confdefs.h. */ | |
46798 | ||
46799 | int | |
46800 | main () | |
46801 | { | |
46802 | ||
46803 | #if (__GNUC__ < 3) || \ | |
46804 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
e5efa97e | 46805 | This is old gcc |
583d6b4b | 46806 | #endif |
a848cd7e | 46807 | |
583d6b4b VZ |
46808 | ; |
46809 | return 0; | |
46810 | } | |
46811 | _ACEOF | |
46812 | rm -f conftest.$ac_objext | |
46813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
46814 | (eval $ac_compile) 2>conftest.er1 | |
46815 | ac_status=$? | |
46816 | grep -v '^ *+' conftest.er1 >conftest.err | |
46817 | rm -f conftest.er1 | |
46818 | cat conftest.err >&5 | |
46819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46820 | (exit $ac_status); } && | |
c9a66001 | 46821 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
583d6b4b VZ |
46822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46823 | (eval $ac_try) 2>&5 | |
46824 | ac_status=$? | |
46825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46826 | (exit $ac_status); }; } && | |
46827 | { ac_try='test -s conftest.$ac_objext' | |
46828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
46829 | (eval $ac_try) 2>&5 | |
46830 | ac_status=$? | |
46831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46832 | (exit $ac_status); }; }; then | |
46833 | ||
46834 | bakefile_cv_gcc31=yes | |
46835 | ||
46836 | else | |
46837 | echo "$as_me: failed program was:" >&5 | |
46838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46839 | ||
46840 | ||
46841 | bakefile_cv_gcc31=no | |
46842 | ||
46843 | ||
46844 | fi | |
46845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
46846 | ||
46847 | fi | |
46848 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 | |
46849 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
46850 | if test "$bakefile_cv_gcc31" = "no"; then | |
a848cd7e | 46851 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 46852 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
46853 | else |
46854 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 46855 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
46856 | fi |
46857 | ||
47bd5406 VZ |
46858 | if test "x$GCC" == "xyes"; then |
46859 | PIC_FLAG="-dynamic -fPIC" | |
46860 | fi | |
46861 | if test "x$XLCC" = "xyes"; then | |
46862 | PIC_FLAG="-dynamic -DPIC" | |
46863 | fi | |
a848cd7e SC |
46864 | ;; |
46865 | ||
46866 | *-*-aix* ) | |
f6b50c59 | 46867 | if test "x$GCC" = "xyes"; then |
583d6b4b | 46868 | PIC_FLAG="" |
f6b50c59 | 46869 | |
583d6b4b VZ |
46870 | case "${BAKEFILE_HOST}" in |
46871 | *-*-aix5* ) | |
46872 | LD_EXPFULL="-Wl,-bexpfull" | |
46873 | ;; | |
46874 | esac | |
f6b50c59 | 46875 | |
583d6b4b VZ |
46876 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
46877 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
46878 | else | |
46879 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e SC |
46880 | set dummy makeC++SharedLib; ac_word=$2 |
46881 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46882 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46883 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
46884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46885 | else | |
46886 | if test -n "$AIX_CXX_LD"; then | |
46887 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
46888 | else | |
46889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46890 | for as_dir in $PATH | |
46891 | do | |
46892 | IFS=$as_save_IFS | |
46893 | test -z "$as_dir" && as_dir=. | |
46894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46895 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46896 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
46897 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46898 | break 2 | |
46899 | fi | |
46900 | done | |
46901 | done | |
46902 | ||
46903 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
46904 | fi | |
46905 | fi | |
46906 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
46907 | if test -n "$AIX_CXX_LD"; then | |
46908 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
46909 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
46910 | else | |
46911 | echo "$as_me:$LINENO: result: no" >&5 | |
46912 | echo "${ECHO_T}no" >&6 | |
46913 | fi | |
46914 | ||
f6b50c59 | 46915 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
46916 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
46917 | fi | |
46918 | ;; | |
46919 | ||
46920 | *-*-beos* ) | |
1e9e8aba DE |
46921 | SHARED_LD_CC="${LD} -nostart -o" |
46922 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
46923 | ;; |
46924 | ||
46925 | *-*-irix* ) | |
46926 | if test "x$GCC" != "xyes"; then | |
46927 | PIC_FLAG="-KPIC" | |
46928 | fi | |
46929 | ;; | |
46930 | ||
46931 | *-*-cygwin* | *-*-mingw32* ) | |
46932 | PIC_FLAG="" | |
1e9e8aba DE |
46933 | SHARED_LD_CC="\$(CC) -shared -o" |
46934 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 46935 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
46936 | ;; |
46937 | ||
46938 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
46939 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
46940 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 46941 | PIC_FLAG="" |
473276a9 VS |
46942 | |
46943 | D='$' | |
46944 | cat <<EOF >dllar.sh | |
46945 | #!/bin/sh | |
46946 | # | |
46947 | # dllar - a tool to build both a .dll and an .a file | |
46948 | # from a set of object (.o) files for EMX/OS2. | |
46949 | # | |
46950 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
46951 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
46952 | # | |
46953 | # This script will accept a set of files on the command line. | |
46954 | # All the public symbols from the .o files will be exported into | |
46955 | # a .DEF file, then linker will be run (through gcc) against them to | |
46956 | # build a shared library consisting of all given .o files. All libraries | |
46957 | # (.a) will be first decompressed into component .o files then act as | |
46958 | # described above. You can optionally give a description (-d "description") | |
46959 | # which will be put into .DLL. To see the list of accepted options (as well | |
46960 | # as command-line format) simply run this program without options. The .DLL | |
46961 | # is built to be imported by name (there is no guarantee that new versions | |
46962 | # of the library you build will have same ordinals for same symbols). | |
46963 | # | |
46964 | # dllar is free software; you can redistribute it and/or modify | |
46965 | # it under the terms of the GNU General Public License as published by | |
46966 | # the Free Software Foundation; either version 2, or (at your option) | |
46967 | # any later version. | |
46968 | # | |
46969 | # dllar is distributed in the hope that it will be useful, | |
46970 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
46971 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
46972 | # GNU General Public License for more details. | |
46973 | # | |
46974 | # You should have received a copy of the GNU General Public License | |
46975 | # along with dllar; see the file COPYING. If not, write to the Free | |
46976 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
46977 | # 02111-1307, USA. | |
46978 | ||
46979 | # To successfuly run this program you will need: | |
46980 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
46981 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
46982 | # - gcc | |
46983 | # (used to build the .dll) | |
46984 | # - emxexp | |
46985 | # (used to create .def file from .o files) | |
46986 | # - emximp | |
46987 | # (used to create .a file from .def file) | |
46988 | # - GNU text utilites (cat, sort, uniq) | |
46989 | # used to process emxexp output | |
46990 | # - GNU file utilities (mv, rm) | |
46991 | # - GNU sed | |
46992 | # - lxlite (optional, see flag below) | |
46993 | # (used for general .dll cleanup) | |
46994 | # | |
46995 | ||
46996 | flag_USE_LXLITE=1; | |
46997 | ||
46998 | # | |
46999 | # helper functions | |
47000 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
47001 | # second argument (suffix to remove) is given | |
47002 | basnam(){ | |
47003 | case ${D}# in | |
47004 | 1) | |
1e9e8aba | 47005 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
47006 | ;; |
47007 | 2) | |
47008 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
47009 | ;; | |
47010 | *) | |
47011 | echo "error in basnam ${D}*" | |
47012 | exit 8 | |
47013 | ;; | |
47014 | esac | |
47015 | } | |
47016 | ||
47017 | # Cleanup temporary files and output | |
47018 | CleanUp() { | |
47019 | cd ${D}curDir | |
47020 | for i in ${D}inputFiles ; do | |
47021 | case ${D}i in | |
47022 | *!) | |
47023 | rm -rf \`basnam ${D}i !\` | |
47024 | ;; | |
47025 | *) | |
47026 | ;; | |
47027 | esac | |
47028 | done | |
47029 | ||
47030 | # Kill result in case of failure as there is just to many stupid make/nmake | |
47031 | # things out there which doesn't do this. | |
1e9e8aba | 47032 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
47033 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
47034 | fi | |
47035 | } | |
47036 | ||
47037 | # Print usage and exit script with rc=1. | |
47038 | PrintHelp() { | |
b1d22ded DE |
47039 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
47040 | echo ' [-name-mangler-script script.sh]' | |
47041 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
47042 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
47043 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 47044 | echo ' [*.o] [*.a]' |
473276a9 VS |
47045 | echo '*> "output_file" should have no extension.' |
47046 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
47047 | echo ' The import library name is derived from this and is set to "name".a,' | |
47048 | echo ' unless overridden by -import' | |
47049 | echo '*> "importlib_name" should have no extension.' | |
47050 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
47051 | echo ' This name is used as the import library name and may be longer and' | |
47052 | echo ' more descriptive than the DLL name which has to follow the old ' | |
47053 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
47054 | echo '*> "script.sh may be given to override the output_file name by a' |
47055 | echo ' different name. It is mainly useful if the regular make process' | |
47056 | echo ' of some package does not take into account OS/2 restriction of' | |
47057 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
47058 | echo ' supposed to procude a shorter name as output. The script should' | |
47059 | echo ' expect to get importlib_name without extension and should produce' | |
47060 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
47061 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
47062 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
47063 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
47064 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
47065 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
47066 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
47067 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
47068 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 47069 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 47070 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 47071 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 47072 | echo ' C runtime DLLs.' |
b1d22ded | 47073 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
47074 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
47075 | echo ' unchanged to GCC at the end of command line.' | |
47076 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
47077 | echo ' the basename for DLL and import library will be set to library name,' | |
47078 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
47079 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
47080 | echo ' library will be renamed into gcc_s.a.' | |
47081 | echo '--------' | |
47082 | echo 'Example:' | |
47083 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
47084 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
47085 | CleanUp | |
47086 | exit 1 | |
47087 | } | |
47088 | ||
47089 | # Execute a command. | |
47090 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
47091 | # @Uses Whatever CleanUp() uses. | |
47092 | doCommand() { | |
47093 | echo "${D}*" | |
47094 | eval ${D}* | |
47095 | rcCmd=${D}? | |
47096 | ||
1e9e8aba | 47097 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
47098 | echo "command failed, exit code="${D}rcCmd |
47099 | CleanUp | |
47100 | exit ${D}rcCmd | |
47101 | fi | |
47102 | } | |
47103 | ||
47104 | # main routine | |
47105 | # setup globals | |
47106 | cmdLine=${D}* | |
47107 | outFile="" | |
47108 | outimpFile="" | |
47109 | inputFiles="" | |
b1d22ded | 47110 | renameScript="" |
473276a9 VS |
47111 | description="" |
47112 | CC=gcc.exe | |
47113 | CFLAGS="-s -Zcrtdll" | |
47114 | EXTRA_CFLAGS="" | |
47115 | EXPORT_BY_ORDINALS=0 | |
47116 | exclude_symbols="" | |
47117 | library_flags="" | |
47118 | curDir=\`pwd\` | |
47119 | curDirS=curDir | |
47120 | case ${D}curDirS in | |
47121 | */) | |
47122 | ;; | |
47123 | *) | |
47124 | curDirS=${D}{curDirS}"/" | |
47125 | ;; | |
47126 | esac | |
47127 | # Parse commandline | |
47128 | libsToLink=0 | |
b1d22ded | 47129 | omfLinking=0 |
1e9e8aba | 47130 | while [ ${D}1 ]; do |
473276a9 VS |
47131 | case ${D}1 in |
47132 | -ord*) | |
47133 | EXPORT_BY_ORDINALS=1; | |
47134 | ;; | |
47135 | -o*) | |
47136 | shift | |
47137 | outFile=${D}1 | |
47138 | ;; | |
47139 | -i*) | |
47140 | shift | |
47141 | outimpFile=${D}1 | |
47142 | ;; | |
b1d22ded DE |
47143 | -name-mangler-script) |
47144 | shift | |
47145 | renameScript=${D}1 | |
47146 | ;; | |
473276a9 VS |
47147 | -d*) |
47148 | shift | |
47149 | description=${D}1 | |
47150 | ;; | |
47151 | -f*) | |
47152 | shift | |
47153 | CFLAGS=${D}1 | |
47154 | ;; | |
47155 | -c*) | |
47156 | shift | |
47157 | CC=${D}1 | |
47158 | ;; | |
47159 | -h*) | |
47160 | PrintHelp | |
47161 | ;; | |
47162 | -ex*) | |
47163 | shift | |
47164 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
47165 | ;; | |
47166 | -libf*) | |
47167 | shift | |
47168 | library_flags=${D}{library_flags}${D}1" " | |
47169 | ;; | |
47170 | -nocrt*) | |
47171 | CFLAGS="-s" | |
47172 | ;; | |
47173 | -nolxl*) | |
47174 | flag_USE_LXLITE=0 | |
47175 | ;; | |
47176 | -* | /*) | |
47177 | case ${D}1 in | |
47178 | -L* | -l*) | |
47179 | libsToLink=1 | |
47180 | ;; | |
b1d22ded DE |
47181 | -Zomf) |
47182 | omfLinking=1 | |
47183 | ;; | |
473276a9 VS |
47184 | *) |
47185 | ;; | |
47186 | esac | |
47187 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
47188 | ;; | |
b1d22ded DE |
47189 | *.dll) |
47190 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
47191 | if [ ${D}omfLinking -eq 1 ]; then | |
47192 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
47193 | else | |
47194 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
47195 | fi | |
47196 | ;; | |
473276a9 VS |
47197 | *) |
47198 | found=0; | |
1e9e8aba | 47199 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
47200 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
47201 | else | |
47202 | for file in ${D}1 ; do | |
1e9e8aba | 47203 | if [ -f ${D}file ]; then |
473276a9 VS |
47204 | inputFiles="${D}{inputFiles} ${D}file" |
47205 | found=1 | |
47206 | fi | |
47207 | done | |
1e9e8aba | 47208 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
47209 | echo "ERROR: No file(s) found: "${D}1 |
47210 | exit 8 | |
47211 | fi | |
47212 | fi | |
47213 | ;; | |
47214 | esac | |
47215 | shift | |
47216 | done # iterate cmdline words | |
47217 | ||
47218 | # | |
1e9e8aba | 47219 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
47220 | echo "dllar: no input files" |
47221 | PrintHelp | |
47222 | fi | |
47223 | ||
47224 | # Now extract all .o files from .a files | |
47225 | newInputFiles="" | |
47226 | for file in ${D}inputFiles ; do | |
47227 | case ${D}file in | |
47228 | *.a | *.lib) | |
47229 | case ${D}file in | |
47230 | *.a) | |
47231 | suffix=".a" | |
47232 | AR="ar" | |
47233 | ;; | |
47234 | *.lib) | |
47235 | suffix=".lib" | |
47236 | AR="emxomfar" | |
47237 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
47238 | ;; | |
47239 | *) | |
47240 | ;; | |
47241 | esac | |
47242 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
47243 | mkdir ${D}dirname | |
1e9e8aba | 47244 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
47245 | echo "Failed to create subdirectory ./${D}dirname" |
47246 | CleanUp | |
47247 | exit 8; | |
47248 | fi | |
47249 | # Append '!' to indicate archive | |
47250 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
47251 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
47252 | cd ${D}curDir | |
47253 | found=0; | |
47254 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 47255 | if [ -f ${D}subfile ]; then |
473276a9 | 47256 | found=1 |
1e9e8aba | 47257 | if [ -s ${D}subfile ]; then |
473276a9 VS |
47258 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
47259 | newInputFiles="${D}newInputFiles ${D}subfile" | |
47260 | fi | |
47261 | fi | |
47262 | done | |
1e9e8aba DE |
47263 | if [ ${D}found -eq 0 ]; then |
47264 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
47265 | fi |
47266 | ;; | |
47267 | *) | |
47268 | newInputFiles="${D}{newInputFiles} ${D}file" | |
47269 | ;; | |
47270 | esac | |
47271 | done | |
47272 | inputFiles="${D}newInputFiles" | |
47273 | ||
47274 | # Output filename(s). | |
47275 | do_backup=0; | |
1e9e8aba | 47276 | if [ -z ${D}outFile ]; then |
473276a9 VS |
47277 | do_backup=1; |
47278 | set outFile ${D}inputFiles; outFile=${D}2 | |
47279 | fi | |
47280 | ||
47281 | # If it is an archive, remove the '!' and the '_%' suffixes | |
47282 | case ${D}outFile in | |
47283 | *_%!) | |
47284 | outFile=\`basnam ${D}outFile _%!\` | |
47285 | ;; | |
47286 | *) | |
47287 | ;; | |
47288 | esac | |
47289 | case ${D}outFile in | |
47290 | *.dll) | |
47291 | outFile=\`basnam ${D}outFile .dll\` | |
47292 | ;; | |
47293 | *.DLL) | |
47294 | outFile=\`basnam ${D}outFile .DLL\` | |
47295 | ;; | |
47296 | *.o) | |
47297 | outFile=\`basnam ${D}outFile .o\` | |
47298 | ;; | |
47299 | *.obj) | |
47300 | outFile=\`basnam ${D}outFile .obj\` | |
47301 | ;; | |
47302 | *.a) | |
47303 | outFile=\`basnam ${D}outFile .a\` | |
47304 | ;; | |
47305 | *.lib) | |
47306 | outFile=\`basnam ${D}outFile .lib\` | |
47307 | ;; | |
47308 | *) | |
47309 | ;; | |
47310 | esac | |
47311 | case ${D}outimpFile in | |
47312 | *.a) | |
47313 | outimpFile=\`basnam ${D}outimpFile .a\` | |
47314 | ;; | |
47315 | *.lib) | |
47316 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
47317 | ;; | |
47318 | *) | |
47319 | ;; | |
47320 | esac | |
1e9e8aba | 47321 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
47322 | outimpFile=${D}outFile |
47323 | fi | |
47324 | defFile="${D}{outFile}.def" | |
47325 | arcFile="${D}{outimpFile}.a" | |
47326 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
47327 | |
47328 | #create ${D}dllFile as something matching 8.3 restrictions, | |
47329 | if [ -z ${D}renameScript ] ; then | |
47330 | dllFile="${D}outFile" | |
47331 | else | |
47332 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
47333 | fi | |
473276a9 | 47334 | |
1e9e8aba DE |
47335 | if [ ${D}do_backup -ne 0 ] ; then |
47336 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
47337 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
47338 | fi | |
1e9e8aba | 47339 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
47340 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
47341 | fi | |
47342 | fi | |
47343 | ||
47344 | # Extract public symbols from all the object files. | |
47345 | tmpdefFile=${D}{defFile}_% | |
47346 | rm -f ${D}tmpdefFile | |
47347 | for file in ${D}inputFiles ; do | |
47348 | case ${D}file in | |
47349 | *!) | |
47350 | ;; | |
47351 | *) | |
47352 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
47353 | ;; | |
47354 | esac | |
47355 | done | |
47356 | ||
47357 | # Create the def file. | |
47358 | rm -f ${D}defFile | |
47359 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
47360 | dllFile="${D}{dllFile}.dll" |
47361 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 47362 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
47363 | fi |
47364 | echo "EXPORTS" >> ${D}defFile | |
47365 | ||
47366 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
47367 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
47368 | ||
47369 | # Checks if the export is ok or not. | |
47370 | for word in ${D}exclude_symbols; do | |
47371 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
47372 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
47373 | done | |
47374 | ||
47375 | ||
1e9e8aba DE |
47376 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
47377 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
47378 | sed ' |
47379 | N | |
47380 | : loop | |
1e9e8aba | 47381 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
47382 | t loop |
47383 | ' > ${D}{tmpdefFile}% | |
47384 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
47385 | else | |
47386 | rm -f ${D}{tmpdefFile}% | |
47387 | fi | |
47388 | cat ${D}tmpdefFile >> ${D}defFile | |
47389 | rm -f ${D}tmpdefFile | |
47390 | ||
47391 | # Do linking, create implib, and apply lxlite. | |
47392 | gccCmdl=""; | |
47393 | for file in ${D}inputFiles ; do | |
47394 | case ${D}file in | |
47395 | *!) | |
47396 | ;; | |
47397 | *) | |
47398 | gccCmdl="${D}gccCmdl ${D}file" | |
47399 | ;; | |
47400 | esac | |
47401 | done | |
47402 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
47403 | touch "${D}{outFile}.dll" | |
47404 | ||
47405 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 47406 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 47407 | add_flags=""; |
1e9e8aba | 47408 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
47409 | add_flags="-ynd" |
47410 | fi | |
47411 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
47412 | fi | |
47413 | doCommand "emxomf -s -l ${D}arcFile" | |
47414 | ||
47415 | # Successful exit. | |
47416 | CleanUp 1 | |
47417 | exit 0 | |
47418 | EOF | |
47419 | ||
47420 | chmod +x dllar.sh | |
a848cd7e SC |
47421 | ;; |
47422 | ||
1e9e8aba | 47423 | powerpc-apple-macos* | \ |
0ad5d837 | 47424 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
47425 | *-*-sunos4* | \ |
47426 | *-*-osf* | \ | |
47427 | *-*-dgux5* | \ | |
47a7e797 MW |
47428 | *-*-sysv5* | \ |
47429 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
47430 | ;; |
47431 | ||
47432 | *) | |
3ecd9f92 | 47433 | esac |
a848cd7e | 47434 | |
2057db16 VS |
47435 | if test "x$PIC_FLAG" != "x" ; then |
47436 | PIC_FLAG="$PIC_FLAG -DPIC" | |
47437 | fi | |
47438 | ||
a848cd7e SC |
47439 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
47440 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
47441 | fi | |
47442 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
47443 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
47444 | fi | |
47445 | ||
47446 | ||
47447 | ||
47448 | ||
47449 | ||
47450 | ||
47451 | ||
47452 | ||
810b94f0 | 47453 | |
a848cd7e SC |
47454 | USE_SOVERSION=0 |
47455 | USE_SOVERLINUX=0 | |
47456 | USE_SOVERSOLARIS=0 | |
810b94f0 | 47457 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
47458 | USE_SOSYMLINKS=0 |
47459 | USE_MACVERSION=0 | |
47460 | SONAME_FLAG= | |
47461 | ||
47462 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 47463 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
47464 | SONAME_FLAG="-Wl,-soname," |
47465 | USE_SOVERSION=1 | |
47466 | USE_SOVERLINUX=1 | |
47467 | USE_SOSYMLINKS=1 | |
47468 | ;; | |
47469 | ||
a848cd7e SC |
47470 | *-*-solaris2* ) |
47471 | SONAME_FLAG="-h " | |
47472 | USE_SOVERSION=1 | |
47473 | USE_SOVERSOLARIS=1 | |
47474 | USE_SOSYMLINKS=1 | |
47475 | ;; | |
47476 | ||
47477 | *-*-darwin* ) | |
47478 | USE_MACVERSION=1 | |
47479 | USE_SOVERSION=1 | |
47480 | USE_SOSYMLINKS=1 | |
47481 | ;; | |
810b94f0 MW |
47482 | |
47483 | *-*-cygwin* ) | |
47484 | USE_SOVERSION=1 | |
47485 | USE_SOVERCYGWIN=1 | |
47486 | ;; | |
a848cd7e SC |
47487 | esac |
47488 | ||
47489 | ||
47490 | ||
47491 | ||
47492 | ||
47493 | ||
47494 | ||
47495 | ||
47496 | ||
810b94f0 | 47497 | |
f10e38c4 VZ |
47498 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
47499 | if test "${enable_dependency_tracking+set}" = set; then | |
47500 | enableval="$enable_dependency_tracking" | |
47501 | bk_use_trackdeps="$enableval" | |
47502 | fi; | |
47503 | ||
a848cd7e SC |
47504 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
47505 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
a848cd7e | 47506 | |
f10e38c4 VZ |
47507 | if test "x$bk_use_trackdeps" = "xno" ; then |
47508 | DEPS_TRACKING=0 | |
47509 | echo "$as_me:$LINENO: result: disabled" >&5 | |
47510 | echo "${ECHO_T}disabled" >&6 | |
47511 | else | |
47512 | DEPS_TRACKING=1 | |
47513 | ||
47514 | if test "x$GCC" = "xyes"; then | |
47515 | DEPSMODE=gcc | |
47516 | case "${BAKEFILE_HOST}" in | |
47517 | *-*-darwin* ) | |
47518 | DEPSFLAG="-no-cpp-precomp -MMD" | |
47519 | ;; | |
47520 | * ) | |
47521 | DEPSFLAG="-MMD" | |
47522 | ;; | |
47523 | esac | |
47524 | echo "$as_me:$LINENO: result: gcc" >&5 | |
a848cd7e | 47525 | echo "${ECHO_T}gcc" >&6 |
f10e38c4 VZ |
47526 | elif test "x$MWCC" = "xyes"; then |
47527 | DEPSMODE=mwcc | |
47528 | DEPSFLAG="-MM" | |
47529 | echo "$as_me:$LINENO: result: mwcc" >&5 | |
b1d22ded | 47530 | echo "${ECHO_T}mwcc" >&6 |
f10e38c4 VZ |
47531 | elif test "x$SUNCC" = "xyes"; then |
47532 | DEPSMODE=unixcc | |
47533 | DEPSFLAG="-xM1" | |
47534 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
0ad5d837 | 47535 | echo "${ECHO_T}Sun cc" >&6 |
f10e38c4 VZ |
47536 | elif test "x$SGICC" = "xyes"; then |
47537 | DEPSMODE=unixcc | |
47538 | DEPSFLAG="-M" | |
47539 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
0ad5d837 | 47540 | echo "${ECHO_T}SGI cc" >&6 |
f10e38c4 VZ |
47541 | elif test "x$HPCC" = "xyes"; then |
47542 | DEPSMODE=unixcc | |
47543 | DEPSFLAG="+make" | |
47544 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
3006edc0 | 47545 | echo "${ECHO_T}HP cc" >&6 |
f10e38c4 VZ |
47546 | elif test "x$COMPAQCC" = "xyes"; then |
47547 | DEPSMODE=gcc | |
47548 | DEPSFLAG="-MD" | |
47549 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
a1aa0349 | 47550 | echo "${ECHO_T}Compaq cc" >&6 |
f10e38c4 VZ |
47551 | else |
47552 | DEPS_TRACKING=0 | |
47553 | echo "$as_me:$LINENO: result: none" >&5 | |
a848cd7e | 47554 | echo "${ECHO_T}none" >&6 |
f10e38c4 | 47555 | fi |
a848cd7e | 47556 | |
f10e38c4 | 47557 | if test $DEPS_TRACKING = 1 ; then |
473276a9 VS |
47558 | |
47559 | D='$' | |
47560 | cat <<EOF >bk-deps | |
a848cd7e SC |
47561 | #!/bin/sh |
47562 | ||
47563 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47564 | # script. It is used to track C/C++ files dependencies in portable way. | |
47565 | # | |
47566 | # Permission is given to use this file in any way. | |
47567 | ||
473276a9 | 47568 | DEPSMODE=${DEPSMODE} |
a848cd7e | 47569 | DEPSDIR=.deps |
0ad5d837 | 47570 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 47571 | |
473276a9 | 47572 | mkdir -p ${D}DEPSDIR |
a848cd7e | 47573 | |
473276a9 | 47574 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 47575 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
47576 | status=${D}? |
47577 | if test ${D}{status} != 0 ; then | |
47578 | exit ${D}{status} | |
a848cd7e SC |
47579 | fi |
47580 | # move created file to the location we want it in: | |
473276a9 VS |
47581 | while test ${D}# -gt 0; do |
47582 | case "${D}1" in | |
a848cd7e SC |
47583 | -o ) |
47584 | shift | |
473276a9 | 47585 | objfile=${D}1 |
a848cd7e SC |
47586 | ;; |
47587 | -* ) | |
47588 | ;; | |
47589 | * ) | |
473276a9 | 47590 | srcfile=${D}1 |
a848cd7e SC |
47591 | ;; |
47592 | esac | |
47593 | shift | |
47594 | done | |
1e9e8aba DE |
47595 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
47596 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
47597 | if test -f ${D}depfile ; then |
47598 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
47599 | rm -f ${D}depfile | |
a848cd7e | 47600 | else |
a1aa0349 | 47601 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 47602 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
47603 | if test ! -f ${D}depfile ; then |
47604 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
47605 | depfile="${D}objfile.d" | |
47606 | fi | |
473276a9 VS |
47607 | if test -f ${D}depfile ; then |
47608 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
47609 | rm -f ${D}depfile | |
a848cd7e SC |
47610 | fi |
47611 | fi | |
47612 | exit 0 | |
81f90336 | 47613 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 47614 | ${D}* || exit ${D}? |
81f90336 MW |
47615 | # Run mwcc again with -MM and redirect into the dep file we want |
47616 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
47617 | prevarg= | |
47618 | for arg in ${D}* ; do | |
47619 | if test "${D}prevarg" = "-o"; then | |
47620 | objfile=${D}arg | |
47621 | else | |
47622 | case "${D}arg" in | |
47623 | -* ) | |
47624 | ;; | |
47625 | * ) | |
47626 | srcfile=${D}arg | |
47627 | ;; | |
47628 | esac | |
47629 | fi | |
47630 | prevarg="${D}arg" | |
47631 | done | |
0ad5d837 | 47632 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 47633 | exit 0 |
0ad5d837 | 47634 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 47635 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
47636 | # Run compiler again with deps flag and redirect into the dep file. |
47637 | # It doesn't work if the '-o FILE' option is used, but without it the | |
47638 | # dependency file will contain the wrong name for the object. So it is | |
47639 | # removed from the command line, and the dep file is fixed with sed. | |
47640 | cmd="" | |
47641 | while test ${D}# -gt 0; do | |
47642 | case "${D}1" in | |
47643 | -o ) | |
47644 | shift | |
47645 | objfile=${D}1 | |
47646 | ;; | |
47647 | * ) | |
47648 | eval arg${D}#=\\${D}1 | |
47649 | cmd="${D}cmd \\${D}arg${D}#" | |
47650 | ;; | |
47651 | esac | |
47652 | shift | |
47653 | done | |
0ad5d837 | 47654 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 47655 | exit 0 |
a848cd7e | 47656 | else |
473276a9 VS |
47657 | ${D}* |
47658 | exit ${D}? | |
a848cd7e SC |
47659 | fi |
47660 | EOF | |
473276a9 | 47661 | |
f10e38c4 VZ |
47662 | chmod +x bk-deps |
47663 | fi | |
a848cd7e SC |
47664 | fi |
47665 | ||
47666 | ||
47667 | ||
47668 | ||
a848cd7e SC |
47669 | case ${BAKEFILE_HOST} in |
47670 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
47671 | if test -n "$ac_tool_prefix"; then |
47672 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
47673 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
47674 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47675 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47676 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
47677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47678 | else | |
47679 | if test -n "$WINDRES"; then | |
47680 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
47681 | else | |
47682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47683 | for as_dir in $PATH | |
47684 | do | |
47685 | IFS=$as_save_IFS | |
47686 | test -z "$as_dir" && as_dir=. | |
47687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47688 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47689 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
47690 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47691 | break 2 | |
47692 | fi | |
47693 | done | |
47694 | done | |
47695 | ||
47696 | fi | |
47697 | fi | |
47698 | WINDRES=$ac_cv_prog_WINDRES | |
47699 | if test -n "$WINDRES"; then | |
47700 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
47701 | echo "${ECHO_T}$WINDRES" >&6 | |
47702 | else | |
47703 | echo "$as_me:$LINENO: result: no" >&5 | |
47704 | echo "${ECHO_T}no" >&6 | |
47705 | fi | |
47706 | ||
47707 | fi | |
47708 | if test -z "$ac_cv_prog_WINDRES"; then | |
47709 | ac_ct_WINDRES=$WINDRES | |
47710 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e SC |
47711 | set dummy windres; ac_word=$2 |
47712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47714 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
a848cd7e SC |
47715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47716 | else | |
8ced02f6 DE |
47717 | if test -n "$ac_ct_WINDRES"; then |
47718 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
47719 | else |
47720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47721 | for as_dir in $PATH | |
47722 | do | |
47723 | IFS=$as_save_IFS | |
47724 | test -z "$as_dir" && as_dir=. | |
47725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47726 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47727 | ac_cv_prog_ac_ct_WINDRES="windres" |
a848cd7e SC |
47728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47729 | break 2 | |
47730 | fi | |
47731 | done | |
47732 | done | |
47733 | ||
a848cd7e SC |
47734 | fi |
47735 | fi | |
8ced02f6 DE |
47736 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
47737 | if test -n "$ac_ct_WINDRES"; then | |
47738 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
47739 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
a848cd7e SC |
47740 | else |
47741 | echo "$as_me:$LINENO: result: no" >&5 | |
47742 | echo "${ECHO_T}no" >&6 | |
47743 | fi | |
47744 | ||
8ced02f6 DE |
47745 | WINDRES=$ac_ct_WINDRES |
47746 | else | |
47747 | WINDRES="$ac_cv_prog_WINDRES" | |
47748 | fi | |
47749 | ||
a848cd7e SC |
47750 | ;; |
47751 | ||
1e9e8aba | 47752 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
47753 | # Extract the first word of "Rez", so it can be a program name with args. |
47754 | set dummy Rez; ac_word=$2 | |
47755 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47757 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
47758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47759 | else | |
8ced02f6 DE |
47760 | if test -n "$REZ"; then |
47761 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
47762 | else |
47763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47764 | for as_dir in $PATH | |
47765 | do | |
47766 | IFS=$as_save_IFS | |
47767 | test -z "$as_dir" && as_dir=. | |
47768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47769 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47770 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
47771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47772 | break 2 | |
47773 | fi | |
47774 | done | |
47775 | done | |
47776 | ||
8ced02f6 | 47777 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
47778 | fi |
47779 | fi | |
8ced02f6 DE |
47780 | REZ=$ac_cv_prog_REZ |
47781 | if test -n "$REZ"; then | |
47782 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
47783 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
47784 | else |
47785 | echo "$as_me:$LINENO: result: no" >&5 | |
47786 | echo "${ECHO_T}no" >&6 | |
47787 | fi | |
47788 | ||
47789 | # Extract the first word of "SetFile", so it can be a program name with args. | |
47790 | set dummy SetFile; ac_word=$2 | |
47791 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47793 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
47794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47795 | else | |
47796 | if test -n "$SETFILE"; then | |
47797 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
47798 | else | |
47799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47800 | for as_dir in $PATH | |
47801 | do | |
47802 | IFS=$as_save_IFS | |
47803 | test -z "$as_dir" && as_dir=. | |
47804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47805 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47806 | ac_cv_prog_SETFILE="SetFile" | |
47807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47808 | break 2 | |
47809 | fi | |
47810 | done | |
47811 | done | |
47812 | ||
47813 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
47814 | fi | |
47815 | fi | |
47816 | SETFILE=$ac_cv_prog_SETFILE | |
47817 | if test -n "$SETFILE"; then | |
47818 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
47819 | echo "${ECHO_T}$SETFILE" >&6 | |
47820 | else | |
47821 | echo "$as_me:$LINENO: result: no" >&5 | |
47822 | echo "${ECHO_T}no" >&6 | |
47823 | fi | |
47824 | ||
47825 | ;; | |
47826 | esac | |
47827 | ||
47828 | ||
47829 | ||
47830 | ||
47831 | ||
8ced02f6 | 47832 | |
f10e38c4 | 47833 | BAKEFILE_BAKEFILE_M4_VERSION="0.2.0" |
a848cd7e | 47834 | |
dcc1b6ad | 47835 | |
f10e38c4 | 47836 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0" |
a848cd7e | 47837 | |
646b6ec1 | 47838 | |
74b84332 | 47839 | |
a848cd7e SC |
47840 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
47841 | if test "${enable_precomp_headers+set}" = set; then | |
47842 | enableval="$enable_precomp_headers" | |
47843 | bk_use_pch="$enableval" | |
47844 | fi; | |
47845 | ||
47846 | GCC_PCH=0 | |
f10e38c4 VZ |
47847 | ICC_PCH=0 |
47848 | USE_PCH=0 | |
a848cd7e | 47849 | |
5c60e845 MW |
47850 | case ${BAKEFILE_HOST} in |
47851 | *-*-cygwin* ) | |
47852 | bk_use_pch="no" | |
47853 | ;; | |
47854 | esac | |
47855 | ||
a848cd7e SC |
47856 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
47857 | if test "x$GCC" = "xyes"; then | |
47858 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
47859 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
47860 | cat >conftest.$ac_ext <<_ACEOF | |
47861 | /* confdefs.h. */ | |
47862 | _ACEOF | |
47863 | cat confdefs.h >>conftest.$ac_ext | |
47864 | cat >>conftest.$ac_ext <<_ACEOF | |
47865 | /* end confdefs.h. */ | |
47866 | ||
47867 | int | |
47868 | main () | |
47869 | { | |
47870 | ||
47871 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
e5efa97e | 47872 | There is no PCH support |
a848cd7e SC |
47873 | #endif |
47874 | #if (__GNUC__ < 3) | |
e5efa97e | 47875 | There is no PCH support |
a848cd7e SC |
47876 | #endif |
47877 | #if (__GNUC__ == 3) && \ | |
47878 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
f10e38c4 VZ |
47879 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \ |
47880 | ( defined(__INTEL_COMPILER) ) | |
e5efa97e | 47881 | There is no PCH support |
a848cd7e SC |
47882 | #endif |
47883 | ||
47884 | ; | |
47885 | return 0; | |
47886 | } | |
47887 | _ACEOF | |
47888 | rm -f conftest.$ac_objext | |
47889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 47890 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 47891 | ac_status=$? |
ac1cb8d3 VS |
47892 | grep -v '^ *+' conftest.er1 >conftest.err |
47893 | rm -f conftest.er1 | |
47894 | cat conftest.err >&5 | |
a848cd7e SC |
47895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47896 | (exit $ac_status); } && | |
c9a66001 | 47897 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
47898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47899 | (eval $ac_try) 2>&5 | |
47900 | ac_status=$? | |
47901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47902 | (exit $ac_status); }; } && | |
47903 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
47904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47905 | (eval $ac_try) 2>&5 | |
47906 | ac_status=$? | |
47907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47908 | (exit $ac_status); }; }; then | |
47909 | ||
47910 | echo "$as_me:$LINENO: result: yes" >&5 | |
47911 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
47912 | GCC_PCH=1 |
47913 | ||
47914 | else | |
47915 | echo "$as_me: failed program was:" >&5 | |
47916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47917 | ||
47918 | ||
f10e38c4 VZ |
47919 | cat >conftest.$ac_ext <<_ACEOF |
47920 | /* confdefs.h. */ | |
47921 | _ACEOF | |
47922 | cat confdefs.h >>conftest.$ac_ext | |
47923 | cat >>conftest.$ac_ext <<_ACEOF | |
47924 | /* end confdefs.h. */ | |
47925 | ||
47926 | int | |
47927 | main () | |
47928 | { | |
47929 | ||
47930 | #if !defined(__INTEL_COMPILER) || \ | |
47931 | (__INTEL_COMPILER < 800) | |
e5efa97e | 47932 | There is no PCH support |
f10e38c4 VZ |
47933 | #endif |
47934 | ||
47935 | ; | |
47936 | return 0; | |
47937 | } | |
47938 | _ACEOF | |
47939 | rm -f conftest.$ac_objext | |
47940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
47941 | (eval $ac_compile) 2>conftest.er1 | |
47942 | ac_status=$? | |
47943 | grep -v '^ *+' conftest.er1 >conftest.err | |
47944 | rm -f conftest.er1 | |
47945 | cat conftest.err >&5 | |
47946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47947 | (exit $ac_status); } && | |
c9a66001 | 47948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f10e38c4 VZ |
47949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47950 | (eval $ac_try) 2>&5 | |
47951 | ac_status=$? | |
47952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47953 | (exit $ac_status); }; } && | |
47954 | { ac_try='test -s conftest.$ac_objext' | |
47955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
47956 | (eval $ac_try) 2>&5 | |
47957 | ac_status=$? | |
47958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47959 | (exit $ac_status); }; }; then | |
47960 | ||
47961 | echo "$as_me:$LINENO: result: yes" >&5 | |
47962 | echo "${ECHO_T}yes" >&6 | |
47963 | ICC_PCH=1 | |
47964 | ||
47965 | else | |
47966 | echo "$as_me: failed program was:" >&5 | |
47967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47968 | ||
47969 | ||
47970 | echo "$as_me:$LINENO: result: no" >&5 | |
a848cd7e SC |
47971 | echo "${ECHO_T}no" >&6 |
47972 | ||
47973 | fi | |
ac1cb8d3 | 47974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f10e38c4 VZ |
47975 | |
47976 | fi | |
47977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
47978 | if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then | |
47979 | USE_PCH=1 | |
1e9e8aba DE |
47980 | |
47981 | D='$' | |
47982 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
47983 | #!/bin/sh |
47984 | ||
47985 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47986 | # script. It is used to generated precompiled headers. | |
47987 | # | |
47988 | # Permission is given to use this file in any way. | |
47989 | ||
1e9e8aba DE |
47990 | outfile="${D}{1}" |
47991 | header="${D}{2}" | |
a848cd7e SC |
47992 | shift |
47993 | shift | |
47994 | ||
f10e38c4 VZ |
47995 | compiler="" |
47996 | headerfile="" | |
47997 | ||
1e9e8aba | 47998 | while test ${D}{#} -gt 0; do |
f10e38c4 | 47999 | add_to_cmdline=1 |
1e9e8aba | 48000 | case "${D}{1}" in |
a848cd7e | 48001 | -I* ) |
1e9e8aba DE |
48002 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
48003 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
48004 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
48005 | fi |
48006 | ;; | |
f10e38c4 VZ |
48007 | -use-pch|-use_pch ) |
48008 | shift | |
48009 | add_to_cmdline=0 | |
48010 | ;; | |
a848cd7e | 48011 | esac |
f10e38c4 VZ |
48012 | if test ${D}add_to_cmdline = 1 ; then |
48013 | compiler="${D}{compiler} ${D}{1}" | |
48014 | fi | |
a848cd7e SC |
48015 | shift |
48016 | done | |
48017 | ||
1e9e8aba | 48018 | if test "x${D}{headerfile}" = "x" ; then |
f10e38c4 | 48019 | echo "error: can't find header ${D}{header} in include paths" >&2 |
a848cd7e | 48020 | else |
1e9e8aba DE |
48021 | if test -f ${D}{outfile} ; then |
48022 | rm -f ${D}{outfile} | |
a848cd7e | 48023 | else |
1e9e8aba | 48024 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 48025 | fi |
1e9e8aba | 48026 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e | 48027 | mkdir -p .deps |
f10e38c4 VZ |
48028 | if test "x${GCC_PCH}" = "x1" ; then |
48029 | # can do this because gcc is >= 3.4: | |
48030 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" | |
48031 | elif test "x${ICC_PCH}" = "x1" ; then | |
48032 | filename=pch_gen-${D}${D} | |
48033 | file=${D}{filename}.c | |
48034 | dfile=${D}{filename}.d | |
48035 | cat > ${D}file <<EOT | |
48036 | #include "${D}header" | |
48037 | EOT | |
48038 | # using -MF icc complains about differing command lines in creation/use | |
48039 | ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\ | |
48040 | sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\ | |
48041 | rm -f ${D}file ${D}dfile ${D}{filename}.o | |
48042 | fi | |
1e9e8aba | 48043 | exit ${D}{?} |
a848cd7e SC |
48044 | fi |
48045 | EOF | |
1e9e8aba | 48046 | |
a848cd7e SC |
48047 | chmod +x bk-make-pch |
48048 | fi | |
48049 | fi | |
48050 | fi | |
48051 | ||
48052 | ||
48053 | ||
f10e38c4 | 48054 | |
a848cd7e SC |
48055 | COND_BUILD_DEBUG="#" |
48056 | if test "x$BUILD" = "xdebug" ; then | |
48057 | COND_BUILD_DEBUG="" | |
48058 | fi | |
48059 | ||
48060 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
48061 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
48062 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
48063 | fi | |
48064 | ||
48065 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
48066 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
48067 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
48068 | fi | |
48069 | ||
48070 | COND_BUILD_DEBUG_UNICODE_0="#" | |
48071 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
48072 | COND_BUILD_DEBUG_UNICODE_0="" | |
48073 | fi | |
48074 | ||
48075 | COND_BUILD_DEBUG_UNICODE_1="#" | |
48076 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
48077 | COND_BUILD_DEBUG_UNICODE_1="" | |
48078 | fi | |
48079 | ||
48080 | COND_BUILD_RELEASE="#" | |
48081 | if test "x$BUILD" = "xrelease" ; then | |
48082 | COND_BUILD_RELEASE="" | |
48083 | fi | |
48084 | ||
48085 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
48086 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
48087 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
48088 | fi | |
48089 | ||
48090 | COND_BUILD_RELEASE_UNICODE_0="#" | |
48091 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
48092 | COND_BUILD_RELEASE_UNICODE_0="" | |
48093 | fi | |
48094 | ||
48095 | COND_BUILD_RELEASE_UNICODE_1="#" | |
48096 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
48097 | COND_BUILD_RELEASE_UNICODE_1="" | |
48098 | fi | |
48099 | ||
48100 | COND_DEBUG_FLAG_1="#" | |
48101 | if test "x$DEBUG_FLAG" = "x1" ; then | |
48102 | COND_DEBUG_FLAG_1="" | |
48103 | fi | |
48104 | ||
48105 | COND_DEBUG_INFO_0="#" | |
48106 | if test "x$DEBUG_INFO" = "x0" ; then | |
48107 | COND_DEBUG_INFO_0="" | |
48108 | fi | |
48109 | ||
48110 | COND_DEBUG_INFO_1="#" | |
48111 | if test "x$DEBUG_INFO" = "x1" ; then | |
48112 | COND_DEBUG_INFO_1="" | |
48113 | fi | |
48114 | ||
48115 | COND_DEPS_TRACKING_0="#" | |
48116 | if test "x$DEPS_TRACKING" = "x0" ; then | |
48117 | COND_DEPS_TRACKING_0="" | |
48118 | fi | |
48119 | ||
48120 | COND_DEPS_TRACKING_1="#" | |
48121 | if test "x$DEPS_TRACKING" = "x1" ; then | |
48122 | COND_DEPS_TRACKING_1="" | |
48123 | fi | |
48124 | ||
48125 | COND_GCC_PCH_1="#" | |
48126 | if test "x$GCC_PCH" = "x1" ; then | |
48127 | COND_GCC_PCH_1="" | |
48128 | fi | |
48129 | ||
f10e38c4 VZ |
48130 | COND_ICC_PCH_1="#" |
48131 | if test "x$ICC_PCH" = "x1" ; then | |
48132 | COND_ICC_PCH_1="" | |
48133 | fi | |
48134 | ||
a848cd7e SC |
48135 | COND_MONOLITHIC_0="#" |
48136 | if test "x$MONOLITHIC" = "x0" ; then | |
48137 | COND_MONOLITHIC_0="" | |
48138 | fi | |
48139 | ||
48140 | COND_MONOLITHIC_0_SHARED_0="#" | |
48141 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
48142 | COND_MONOLITHIC_0_SHARED_0="" | |
48143 | fi | |
48144 | ||
3f60522a JS |
48145 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#" |
48146 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then | |
48147 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="" | |
48148 | fi | |
48149 | ||
a848cd7e SC |
48150 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" |
48151 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
48152 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
48153 | fi | |
48154 | ||
90970d69 DE |
48155 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
48156 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
48157 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
48158 | fi | |
48159 | ||
f10e38c4 VZ |
48160 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#" |
48161 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
48162 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="" | |
48163 | fi | |
48164 | ||
a848cd7e SC |
48165 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
48166 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
48167 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
48168 | fi | |
48169 | ||
6671c68b VZ |
48170 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
48171 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
48172 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
48173 | fi | |
48174 | ||
a848cd7e SC |
48175 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
48176 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
48177 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
48178 | fi | |
48179 | ||
8b6682b9 JS |
48180 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#" |
48181 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then | |
48182 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="" | |
48183 | fi | |
48184 | ||
ceec2216 RL |
48185 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
48186 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
48187 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
48188 | fi | |
48189 | ||
a848cd7e SC |
48190 | COND_MONOLITHIC_0_SHARED_1="#" |
48191 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
48192 | COND_MONOLITHIC_0_SHARED_1="" | |
48193 | fi | |
48194 | ||
3f60522a JS |
48195 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#" |
48196 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then | |
48197 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="" | |
48198 | fi | |
48199 | ||
a848cd7e SC |
48200 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
48201 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
48202 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
48203 | fi | |
48204 | ||
90970d69 DE |
48205 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
48206 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
48207 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
48208 | fi | |
48209 | ||
f10e38c4 VZ |
48210 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#" |
48211 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
48212 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="" | |
48213 | fi | |
48214 | ||
a848cd7e SC |
48215 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
48216 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
48217 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
48218 | fi | |
48219 | ||
6671c68b VZ |
48220 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
48221 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
48222 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
48223 | fi | |
48224 | ||
a848cd7e SC |
48225 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
48226 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
48227 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
48228 | fi | |
48229 | ||
8b6682b9 JS |
48230 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#" |
48231 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then | |
48232 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="" | |
48233 | fi | |
48234 | ||
ceec2216 RL |
48235 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
48236 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
48237 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
48238 | fi | |
48239 | ||
e5efa97e VZ |
48240 | COND_MONOLITHIC_0_USE_MEDIA_1="#" |
48241 | if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then | |
48242 | COND_MONOLITHIC_0_USE_MEDIA_1="" | |
48243 | fi | |
48244 | ||
a848cd7e SC |
48245 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
48246 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
48247 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
48248 | fi | |
48249 | ||
48250 | COND_MONOLITHIC_1="#" | |
48251 | if test "x$MONOLITHIC" = "x1" ; then | |
48252 | COND_MONOLITHIC_1="" | |
48253 | fi | |
48254 | ||
48255 | COND_MONOLITHIC_1_SHARED_0="#" | |
48256 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
48257 | COND_MONOLITHIC_1_SHARED_0="" | |
48258 | fi | |
48259 | ||
48260 | COND_MONOLITHIC_1_SHARED_1="#" | |
48261 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
48262 | COND_MONOLITHIC_1_SHARED_1="" | |
48263 | fi | |
48264 | ||
48265 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
48266 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
48267 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
48268 | fi | |
48269 | ||
48270 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
48271 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
48272 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
48273 | fi | |
48274 | ||
eb730a0c JS |
48275 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
48276 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
48277 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
48278 | fi | |
48279 | ||
a848cd7e SC |
48280 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
48281 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
48282 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
48283 | fi | |
48284 | ||
48285 | COND_PLATFORM_MACOSX_1="#" | |
48286 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
48287 | COND_PLATFORM_MACOSX_1="" | |
48288 | fi | |
48289 | ||
a30f955f VS |
48290 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
48291 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
48292 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
48293 | fi | |
48294 | ||
a848cd7e SC |
48295 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
48296 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
48297 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
48298 | fi | |
48299 | ||
48300 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
48301 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
48302 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
48303 | fi | |
48304 | ||
48305 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
48306 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
48307 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
48308 | fi | |
48309 | ||
fc480dc1 DE |
48310 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
48311 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
48312 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
48313 | fi | |
48314 | ||
1e9e8aba DE |
48315 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
48316 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48317 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
48318 | fi | |
48319 | ||
ebee3cd0 VS |
48320 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
48321 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
48322 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
48323 | fi | |
48324 | ||
48325 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
48326 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
48327 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
48328 | fi | |
48329 | ||
a848cd7e SC |
48330 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
48331 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
48332 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
48333 | fi | |
48334 | ||
48335 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
48336 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
48337 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
48338 | fi | |
48339 | ||
b48a2016 DE |
48340 | COND_PLATFORM_MACOS_1="#" |
48341 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
48342 | COND_PLATFORM_MACOS_1="" | |
48343 | fi | |
48344 | ||
083508af MW |
48345 | COND_PLATFORM_MAC_1="#" |
48346 | if test "x$PLATFORM_MAC" = "x1" ; then | |
48347 | COND_PLATFORM_MAC_1="" | |
48348 | fi | |
48349 | ||
e5efa97e VZ |
48350 | COND_PLATFORM_MSDOS_0="#" |
48351 | if test "x$PLATFORM_MSDOS" = "x0" ; then | |
48352 | COND_PLATFORM_MSDOS_0="" | |
48353 | fi | |
48354 | ||
83d8eb47 MW |
48355 | COND_PLATFORM_MSDOS_1="#" |
48356 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
48357 | COND_PLATFORM_MSDOS_1="" | |
48358 | fi | |
48359 | ||
a848cd7e SC |
48360 | COND_PLATFORM_OS2_1="#" |
48361 | if test "x$PLATFORM_OS2" = "x1" ; then | |
48362 | COND_PLATFORM_OS2_1="" | |
48363 | fi | |
48364 | ||
48365 | COND_PLATFORM_UNIX_0="#" | |
48366 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
48367 | COND_PLATFORM_UNIX_0="" | |
48368 | fi | |
48369 | ||
48370 | COND_PLATFORM_UNIX_1="#" | |
48371 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
48372 | COND_PLATFORM_UNIX_1="" | |
48373 | fi | |
48374 | ||
48375 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
48376 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
48377 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
48378 | fi | |
48379 | ||
48380 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
48381 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
48382 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
48383 | fi | |
48384 | ||
48385 | COND_PLATFORM_WIN32_0="#" | |
48386 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
48387 | COND_PLATFORM_WIN32_0="" | |
48388 | fi | |
48389 | ||
48390 | COND_PLATFORM_WIN32_1="#" | |
48391 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
48392 | COND_PLATFORM_WIN32_1="" | |
48393 | fi | |
48394 | ||
48395 | COND_SHARED_0="#" | |
48396 | if test "x$SHARED" = "x0" ; then | |
48397 | COND_SHARED_0="" | |
48398 | fi | |
48399 | ||
083508af MW |
48400 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
48401 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
48402 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
48403 | fi | |
48404 | ||
48405 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
48406 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
48407 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
48408 | fi | |
48409 | ||
48410 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
48411 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
48412 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
48413 | fi | |
48414 | ||
a848cd7e SC |
48415 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
48416 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
48417 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
48418 | fi | |
48419 | ||
48420 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
48421 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
48422 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
48423 | fi | |
48424 | ||
48425 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
48426 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
48427 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
48428 | fi | |
48429 | ||
48430 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
48431 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48432 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
48433 | fi | |
48434 | ||
083508af MW |
48435 | COND_SHARED_0_USE_XRC_1="#" |
48436 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
48437 | COND_SHARED_0_USE_XRC_1="" | |
48438 | fi | |
48439 | ||
a848cd7e SC |
48440 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
48441 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
48442 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
48443 | fi | |
48444 | ||
48445 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
48446 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
48447 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
48448 | fi | |
48449 | ||
48450 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
48451 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
48452 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
48453 | fi | |
48454 | ||
48455 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
48456 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
48457 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
48458 | fi | |
48459 | ||
48460 | COND_SHARED_1="#" | |
48461 | if test "x$SHARED" = "x1" ; then | |
48462 | COND_SHARED_1="" | |
48463 | fi | |
48464 | ||
48465 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
48466 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
48467 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
48468 | fi | |
48469 | ||
083508af MW |
48470 | COND_SHARED_1_USE_XRC_1="#" |
48471 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
48472 | COND_SHARED_1_USE_XRC_1="" | |
48473 | fi | |
48474 | ||
a30f955f VS |
48475 | COND_TOOLKIT_="#" |
48476 | if test "x$TOOLKIT" = "x" ; then | |
48477 | COND_TOOLKIT_="" | |
48478 | fi | |
48479 | ||
a848cd7e SC |
48480 | COND_TOOLKIT_COCOA="#" |
48481 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
48482 | COND_TOOLKIT_COCOA="" | |
48483 | fi | |
48484 | ||
a49baeab DE |
48485 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
48486 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
48487 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
48488 | fi | |
48489 | ||
a848cd7e SC |
48490 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
48491 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48492 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
48493 | fi | |
48494 | ||
48495 | COND_TOOLKIT_GTK="#" | |
48496 | if test "x$TOOLKIT" = "xGTK" ; then | |
48497 | COND_TOOLKIT_GTK="" | |
48498 | fi | |
48499 | ||
d044deea MW |
48500 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#" |
48501 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then | |
48502 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="" | |
48503 | fi | |
48504 | ||
48505 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" | |
48506 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
48507 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
48508 | fi | |
48509 | ||
48510 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
48511 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
48512 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
48513 | fi | |
48514 | ||
48515 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#" | |
48516 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48517 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="" | |
48518 | fi | |
48519 | ||
48520 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#" | |
48521 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then | |
48522 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="" | |
48523 | fi | |
48524 | ||
48525 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#" | |
48526 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48527 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="" | |
48528 | fi | |
48529 | ||
a848cd7e SC |
48530 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
48531 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
48532 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
48533 | fi | |
48534 | ||
a848cd7e SC |
48535 | COND_TOOLKIT_MAC="#" |
48536 | if test "x$TOOLKIT" = "xMAC" ; then | |
48537 | COND_TOOLKIT_MAC="" | |
48538 | fi | |
48539 | ||
48540 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
48541 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
48542 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
48543 | fi | |
48544 | ||
48545 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
48546 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48547 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
48548 | fi | |
48549 | ||
48550 | COND_TOOLKIT_MGL="#" | |
48551 | if test "x$TOOLKIT" = "xMGL" ; then | |
48552 | COND_TOOLKIT_MGL="" | |
48553 | fi | |
48554 | ||
48555 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
48556 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
48557 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
48558 | fi | |
48559 | ||
48560 | COND_TOOLKIT_MOTIF="#" | |
48561 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
48562 | COND_TOOLKIT_MOTIF="" | |
48563 | fi | |
48564 | ||
48565 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
48566 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
48567 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
48568 | fi | |
48569 | ||
48570 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
48571 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48572 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
48573 | fi | |
48574 | ||
48575 | COND_TOOLKIT_MSW="#" | |
48576 | if test "x$TOOLKIT" = "xMSW" ; then | |
48577 | COND_TOOLKIT_MSW="" | |
48578 | fi | |
48579 | ||
48580 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
48581 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
48582 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
48583 | fi | |
48584 | ||
48585 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
48586 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48587 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
48588 | fi | |
48589 | ||
0ee4059d DE |
48590 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
48591 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
48592 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
48593 | fi | |
48594 | ||
a848cd7e SC |
48595 | COND_TOOLKIT_PM="#" |
48596 | if test "x$TOOLKIT" = "xPM" ; then | |
48597 | COND_TOOLKIT_PM="" | |
48598 | fi | |
48599 | ||
48600 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
48601 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
48602 | COND_TOOLKIT_PM_USE_GUI_1="" | |
48603 | fi | |
48604 | ||
48605 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
48606 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48607 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
48608 | fi | |
48609 | ||
3fd9c298 DE |
48610 | COND_TOOLKIT_WINCE="#" |
48611 | if test "x$TOOLKIT" = "xWINCE" ; then | |
48612 | COND_TOOLKIT_WINCE="" | |
48613 | fi | |
48614 | ||
48615 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
48616 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
48617 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
48618 | fi | |
48619 | ||
48620 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
48621 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48622 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
48623 | fi | |
48624 | ||
0ee4059d DE |
48625 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
48626 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
48627 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
48628 | fi | |
48629 | ||
a848cd7e SC |
48630 | COND_TOOLKIT_X11="#" |
48631 | if test "x$TOOLKIT" = "xX11" ; then | |
48632 | COND_TOOLKIT_X11="" | |
48633 | fi | |
48634 | ||
48635 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
48636 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
48637 | COND_TOOLKIT_X11_USE_GUI_1="" | |
48638 | fi | |
48639 | ||
48640 | COND_UNICODE_1="#" | |
48641 | if test "x$UNICODE" = "x1" ; then | |
48642 | COND_UNICODE_1="" | |
48643 | fi | |
48644 | ||
48645 | COND_USE_EXCEPTIONS_0="#" | |
48646 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
48647 | COND_USE_EXCEPTIONS_0="" | |
48648 | fi | |
48649 | ||
48650 | COND_USE_EXCEPTIONS_1="#" | |
48651 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
48652 | COND_USE_EXCEPTIONS_1="" | |
48653 | fi | |
48654 | ||
48655 | COND_USE_GUI_0="#" | |
48656 | if test "x$USE_GUI" = "x0" ; then | |
48657 | COND_USE_GUI_0="" | |
48658 | fi | |
48659 | ||
48660 | COND_USE_GUI_1="#" | |
48661 | if test "x$USE_GUI" = "x1" ; then | |
48662 | COND_USE_GUI_1="" | |
48663 | fi | |
48664 | ||
48665 | COND_USE_GUI_1_WXUNIV_0="#" | |
48666 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48667 | COND_USE_GUI_1_WXUNIV_0="" | |
48668 | fi | |
48669 | ||
48670 | COND_USE_GUI_1_WXUNIV_1="#" | |
48671 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
48672 | COND_USE_GUI_1_WXUNIV_1="" | |
48673 | fi | |
48674 | ||
48675 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
48676 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
48677 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
48678 | fi | |
48679 | ||
48680 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
48681 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
48682 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
48683 | fi | |
48684 | ||
48685 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
48686 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48687 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
48688 | fi | |
48689 | ||
083508af MW |
48690 | COND_USE_ODBC_1="#" |
48691 | if test "x$USE_ODBC" = "x1" ; then | |
48692 | COND_USE_ODBC_1="" | |
48693 | fi | |
48694 | ||
48695 | COND_USE_OPENGL_1="#" | |
48696 | if test "x$USE_OPENGL" = "x1" ; then | |
48697 | COND_USE_OPENGL_1="" | |
48698 | fi | |
48699 | ||
f10e38c4 VZ |
48700 | COND_USE_PCH_1="#" |
48701 | if test "x$USE_PCH" = "x1" ; then | |
48702 | COND_USE_PCH_1="" | |
48703 | fi | |
48704 | ||
a848cd7e SC |
48705 | COND_USE_PLUGINS_0="#" |
48706 | if test "x$USE_PLUGINS" = "x0" ; then | |
48707 | COND_USE_PLUGINS_0="" | |
48708 | fi | |
48709 | ||
0b78747f MW |
48710 | COND_USE_RTTI_0="#" |
48711 | if test "x$USE_RTTI" = "x0" ; then | |
48712 | COND_USE_RTTI_0="" | |
48713 | fi | |
48714 | ||
48715 | COND_USE_RTTI_1="#" | |
48716 | if test "x$USE_RTTI" = "x1" ; then | |
48717 | COND_USE_RTTI_1="" | |
48718 | fi | |
48719 | ||
a848cd7e SC |
48720 | COND_USE_SOSYMLINKS_1="#" |
48721 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
48722 | COND_USE_SOSYMLINKS_1="" | |
48723 | fi | |
48724 | ||
eb730a0c JS |
48725 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
48726 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
48727 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
48728 | fi | |
48729 | ||
a848cd7e SC |
48730 | COND_USE_SOVERLINUX_1="#" |
48731 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
48732 | COND_USE_SOVERLINUX_1="" | |
48733 | fi | |
48734 | ||
48735 | COND_USE_SOVERSION_0="#" | |
48736 | if test "x$USE_SOVERSION" = "x0" ; then | |
48737 | COND_USE_SOVERSION_0="" | |
48738 | fi | |
48739 | ||
48740 | COND_USE_SOVERSOLARIS_1="#" | |
48741 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
48742 | COND_USE_SOVERSOLARIS_1="" | |
48743 | fi | |
48744 | ||
0b78747f MW |
48745 | COND_USE_THREADS_0="#" |
48746 | if test "x$USE_THREADS" = "x0" ; then | |
48747 | COND_USE_THREADS_0="" | |
48748 | fi | |
48749 | ||
48750 | COND_USE_THREADS_1="#" | |
48751 | if test "x$USE_THREADS" = "x1" ; then | |
48752 | COND_USE_THREADS_1="" | |
48753 | fi | |
48754 | ||
a13a7f89 RL |
48755 | COND_USE_XRC_1="#" |
48756 | if test "x$USE_XRC" = "x1" ; then | |
48757 | COND_USE_XRC_1="" | |
48758 | fi | |
48759 | ||
eb730a0c JS |
48760 | COND_WINDOWS_IMPLIB_1="#" |
48761 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
48762 | COND_WINDOWS_IMPLIB_1="" | |
48763 | fi | |
48764 | ||
a848cd7e SC |
48765 | COND_WITH_PLUGIN_SDL_1="#" |
48766 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
48767 | COND_WITH_PLUGIN_SDL_1="" | |
48768 | fi | |
48769 | ||
1e6eb025 VZ |
48770 | COND_WXUNIV_0="#" |
48771 | if test "x$WXUNIV" = "x0" ; then | |
48772 | COND_WXUNIV_0="" | |
48773 | fi | |
48774 | ||
a848cd7e SC |
48775 | COND_WXUNIV_1="#" |
48776 | if test "x$WXUNIV" = "x1" ; then | |
48777 | COND_WXUNIV_1="" | |
48778 | fi | |
48779 | ||
48780 | COND_WXUSE_EXPAT_BUILTIN="#" | |
48781 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
48782 | COND_WXUSE_EXPAT_BUILTIN="" | |
48783 | fi | |
48784 | ||
48785 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
48786 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
48787 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
48788 | fi | |
48789 | ||
48790 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
48791 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
48792 | COND_WXUSE_LIBPNG_BUILTIN="" | |
48793 | fi | |
48794 | ||
48795 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
48796 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48797 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
48798 | fi | |
48799 | ||
48800 | COND_WXUSE_ODBC_BUILTIN="#" | |
48801 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
48802 | COND_WXUSE_ODBC_BUILTIN="" | |
48803 | fi | |
48804 | ||
48805 | COND_WXUSE_REGEX_BUILTIN="#" | |
48806 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
48807 | COND_WXUSE_REGEX_BUILTIN="" | |
48808 | fi | |
48809 | ||
48810 | COND_WXUSE_ZLIB_BUILTIN="#" | |
48811 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
48812 | COND_WXUSE_ZLIB_BUILTIN="" | |
48813 | fi | |
48814 | ||
48815 | ||
48816 | ||
810b94f0 MW |
48817 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
48818 | { { 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 | |
48819 | 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;} | |
48820 | { (exit 1); exit 1; }; } | |
48821 | fi | |
48822 | ||
2057db16 VS |
48823 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
48824 | { { 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 | |
48825 | 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;} | |
48826 | { (exit 1); exit 1; }; } | |
48827 | fi | |
48828 | ||
a848cd7e | 48829 | |
7afc46ab KO |
48830 | |
48831 | if test "$wxUSE_MAC" = 1 ; then | |
95768535 | 48832 | if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then |
7afc46ab KO |
48833 | sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp |
48834 | mv temp bk-deps | |
48835 | chmod +x bk-deps | |
48836 | fi | |
48837 | fi | |
48838 | ||
ceec2216 RL |
48839 | if test "$wxUSE_SHARED" = "yes"; then |
48840 | ||
48841 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
48842 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
48843 | ||
5b674b9d DE |
48844 | case "${host}" in |
48845 | *-pc-os2_emx | *-pc-os2-emx ) | |
48846 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48847 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48848 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
48849 | cp -p ${srcdir}/src/os2/dllar.sh . | |
48850 | ;; | |
48851 | esac | |
ceec2216 RL |
48852 | else |
48853 | ||
48854 | EXE_LINKER="$CXX -o" | |
48855 | ||
48856 | fi | |
69120ee4 VZ |
48857 | if test "$wxUSE_OMF" = "yes"; then |
48858 | case "${host}" in | |
48859 | *-pc-os2_emx | *-pc-os2-emx ) | |
48860 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
48861 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48862 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48863 | ;; | |
48864 | esac | |
48865 | fi | |
a848cd7e | 48866 | |
c08ebc62 | 48867 | if test $GCC_PCH = 1 ; then |
254e8e29 | 48868 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 48869 | fi |
a848cd7e | 48870 | |
5ff751d6 | 48871 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
48872 | |
48873 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
48874 | ||
48875 | ||
48876 | ||
48877 | ||
48878 | ||
48879 | ||
48880 | ||
48881 | ||
48882 | ||
48883 | ||
48884 | ||
48885 | ||
48886 | ||
48887 | ||
48888 | ||
48889 | ||
48890 | ||
48891 | ||
48892 | ||
48893 | ||
48894 | ||
48895 | ||
48896 | ||
48897 | ||
48898 | ||
48899 | ||
48900 | ||
48901 | ||
48902 | ||
48903 | ||
48904 | ||
48905 | ||
48906 | ||
48907 | ||
48908 | ||
48909 | ||
48910 | ||
48911 | ||
48912 | ||
48913 | ||
48914 | ||
48915 | ||
a848cd7e SC |
48916 | |
48917 | ||
48918 | ||
48919 | ||
48920 | ||
48921 | ||
48922 | ||
48923 | ||
48924 | ||
48925 | ||
48926 | ||
48927 | ||
a848cd7e SC |
48928 | |
48929 | ||
ddd14b14 | 48930 | |
370d2fd7 | 48931 | |
8ced02f6 | 48932 | |
a848cd7e SC |
48933 | |
48934 | ||
48935 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
48936 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 48937 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
48938 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
48939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48940 | else | |
48941 | cat >conftest.make <<\_ACEOF | |
48942 | all: | |
48943 | @echo 'ac_maketemp="$(MAKE)"' | |
48944 | _ACEOF | |
48945 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
48946 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
48947 | if test -n "$ac_maketemp"; then | |
48948 | eval ac_cv_prog_make_${ac_make}_set=yes | |
48949 | else | |
48950 | eval ac_cv_prog_make_${ac_make}_set=no | |
48951 | fi | |
48952 | rm -f conftest.make | |
48953 | fi | |
48954 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
48955 | echo "$as_me:$LINENO: result: yes" >&5 | |
48956 | echo "${ECHO_T}yes" >&6 | |
48957 | SET_MAKE= | |
48958 | else | |
48959 | echo "$as_me:$LINENO: result: no" >&5 | |
48960 | echo "${ECHO_T}no" >&6 | |
48961 | SET_MAKE="MAKE=${MAKE-make}" | |
48962 | fi | |
48963 | ||
48964 | ||
a848cd7e | 48965 | |
ceec2216 RL |
48966 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
48967 | ||
a848cd7e | 48968 | |
5c60e845 MW |
48969 | if test "$USE_WIN32" = 1; then |
48970 | ac_config_commands="$ac_config_commands | |
48971 | rcdefs.h | |
48972 | " | |
48973 | ||
48974 | fi | |
48975 | ||
ceec2216 | 48976 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 48977 | |
a848cd7e | 48978 | |
ceec2216 | 48979 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 48980 | |
ceec2216 RL |
48981 | |
48982 | ac_config_files="$ac_config_files version-script Makefile" | |
48983 | ||
48984 | ||
5c60e845 | 48985 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
48986 | |
48987 | ||
9103d280 | 48988 | |
1c14217d | 48989 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
48990 | if test "$wxUSE_GUI" = "yes"; then |
48991 | SUBDIRS="samples demos utils contrib" | |
48992 | else SUBDIRS="samples utils" | |
48993 | fi | |
48994 | ||
48995 | ||
48996 | ||
48997 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
48998 | if test "${with_cppunit_prefix+set}" = set; then | |
48999 | withval="$with_cppunit_prefix" | |
49000 | cppunit_config_prefix="$withval" | |
49001 | else | |
49002 | cppunit_config_prefix="" | |
49003 | fi; | |
49004 | ||
49005 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
49006 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
49007 | withval="$with_cppunit_exec_prefix" | |
49008 | cppunit_config_exec_prefix="$withval" | |
49009 | else | |
49010 | cppunit_config_exec_prefix="" | |
49011 | fi; | |
49012 | ||
49013 | if test x$cppunit_config_exec_prefix != x ; then | |
49014 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
49015 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
49016 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
49017 | fi | |
49018 | fi | |
49019 | if test x$cppunit_config_prefix != x ; then | |
49020 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
49021 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
49022 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
49023 | fi | |
49024 | fi | |
49025 | ||
49026 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
49027 | set dummy cppunit-config; ac_word=$2 | |
49028 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
49029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
49030 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
49031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
49032 | else | |
49033 | case $CPPUNIT_CONFIG in | |
49034 | [\\/]* | ?:[\\/]*) | |
49035 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
49036 | ;; | |
49037 | *) | |
49038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49039 | for as_dir in $PATH | |
49040 | do | |
49041 | IFS=$as_save_IFS | |
49042 | test -z "$as_dir" && as_dir=. | |
49043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
49044 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
49045 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
49046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
49047 | break 2 | |
49048 | fi | |
49049 | done | |
49050 | done | |
49051 | ||
49052 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
49053 | ;; | |
49054 | esac | |
49055 | fi | |
49056 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
49057 | ||
49058 | if test -n "$CPPUNIT_CONFIG"; then | |
49059 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
49060 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
49061 | else | |
49062 | echo "$as_me:$LINENO: result: no" >&5 | |
49063 | echo "${ECHO_T}no" >&6 | |
49064 | fi | |
49065 | ||
49066 | cppunit_version_min=1.8.0 | |
49067 | ||
49068 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
49069 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
49070 | no_cppunit="" | |
49071 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
3ecd9f92 MW |
49072 | echo "$as_me:$LINENO: result: no" >&5 |
49073 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
49074 | no_cppunit=yes |
49075 | else | |
49076 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
49077 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
49078 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
49079 | ||
49080 | cppunit_major_version=`echo $cppunit_version | \ | |
49081 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
49082 | cppunit_minor_version=`echo $cppunit_version | \ | |
49083 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
49084 | cppunit_micro_version=`echo $cppunit_version | \ | |
49085 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
49086 | ||
49087 | cppunit_major_min=`echo $cppunit_version_min | \ | |
49088 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
49089 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
49090 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
49091 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
49092 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
49093 | ||
49094 | cppunit_version_proper=`expr \ | |
49095 | $cppunit_major_version \> $cppunit_major_min \| \ | |
49096 | $cppunit_major_version \= $cppunit_major_min \& \ | |
49097 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
49098 | $cppunit_major_version \= $cppunit_major_min \& \ | |
49099 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
49100 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
49101 | ||
49102 | if test "$cppunit_version_proper" = "1" ; then | |
49103 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
49104 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
49105 | else | |
49106 | echo "$as_me:$LINENO: result: no" >&5 | |
49107 | echo "${ECHO_T}no" >&6 | |
49108 | no_cppunit=yes | |
49109 | fi | |
49110 | fi | |
49111 | ||
49112 | if test "x$no_cppunit" = x ; then | |
c2218763 | 49113 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
49114 | else |
49115 | CPPUNIT_CFLAGS="" | |
49116 | CPPUNIT_LIBS="" | |
c2218763 | 49117 | : |
a848cd7e SC |
49118 | fi |
49119 | ||
49120 | ||
49121 | ||
49122 | ||
49123 | ||
49124 | for subdir in `echo $SUBDIRS`; do | |
49125 | if test -d ${srcdir}/${subdir} ; then | |
49126 | if test "$wxUSE_GUI" = "yes"; then | |
49127 | if test ${subdir} = "samples"; then | |
49128 | makefiles="samples/Makefile.in $makefiles" | |
49129 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
49130 | if test -d $srcdir/samples/$sample; then | |
49131 | makefiles="samples/$sample/Makefile.in $makefiles" | |
49132 | fi | |
49133 | done | |
9c112555 MW |
49134 | else |
49135 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
49136 | eval "disabled=\$$disabled_var" | |
49137 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
49138 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
49139 | fi |
49140 | else if test ${subdir} = "samples"; then | |
49141 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
49142 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
49143 | makefiles="" |
49144 | for util in HelpGen tex2rtf ; do | |
49145 | if test -d $srcdir/utils/$util ; then | |
49146 | makefiles="utils/$util/Makefile.in \ | |
49147 | utils/$util/src/Makefile.in \ | |
49148 | $makefiles" | |
49149 | fi | |
49150 | done | |
a848cd7e SC |
49151 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
49152 | fi | |
49153 | fi | |
49154 | ||
49155 | for mkin in $makefiles ; do | |
49156 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
49157 | ac_config_files="$ac_config_files $mk" | |
49158 | ||
49159 | done | |
49160 | fi | |
49161 | done | |
1c14217d | 49162 | fi |
a848cd7e SC |
49163 | cat >confcache <<\_ACEOF |
49164 | # This file is a shell script that caches the results of configure | |
49165 | # tests run on this system so they can be shared between configure | |
49166 | # scripts and configure runs, see configure's option --config-cache. | |
49167 | # It is not useful on other systems. If it contains results you don't | |
49168 | # want to keep, you may remove or edit it. | |
49169 | # | |
49170 | # config.status only pays attention to the cache file if you give it | |
49171 | # the --recheck option to rerun configure. | |
49172 | # | |
49173 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
49174 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
49175 | # following values. | |
49176 | ||
49177 | _ACEOF | |
49178 | ||
49179 | # The following way of writing the cache mishandles newlines in values, | |
49180 | # but we know of no workaround that is simple, portable, and efficient. | |
49181 | # So, don't put newlines in cache variables' values. | |
49182 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
49183 | # and sets the high bit in the cache file unless we assign to the vars. | |
49184 | { | |
49185 | (set) 2>&1 | | |
49186 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
49187 | *ac_space=\ *) | |
49188 | # `set' does not quote correctly, so add quotes (double-quote | |
49189 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
49190 | sed -n \ | |
ac1cb8d3 VS |
49191 | "s/'/'\\\\''/g; |
49192 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
49193 | ;; |
49194 | *) | |
49195 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
49196 | sed -n \ | |
ac1cb8d3 | 49197 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
49198 | ;; |
49199 | esac; | |
49200 | } | | |
49201 | sed ' | |
49202 | t clear | |
49203 | : clear | |
49204 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
49205 | t end | |
49206 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
49207 | : end' >>confcache | |
49208 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
49209 | if test -w $cache_file; then | |
49210 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
49211 | cat confcache >$cache_file | |
49212 | else | |
49213 | echo "not updating unwritable cache $cache_file" | |
49214 | fi | |
49215 | fi | |
49216 | rm -f confcache | |
49217 | ||
49218 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
49219 | # Let make expand exec_prefix. | |
49220 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
49221 | ||
49222 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
49223 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
49224 | # trailing colons and then remove the whole line if VPATH becomes empty | |
49225 | # (actually we leave an empty line to preserve line numbers). | |
49226 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 49227 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
49228 | s/:*\$(srcdir):*/:/; |
49229 | s/:*\${srcdir}:*/:/; | |
49230 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 49231 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 49232 | s/:*$//; |
ac1cb8d3 | 49233 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
49234 | }' |
49235 | fi | |
49236 | ||
49237 | DEFS=-DHAVE_CONFIG_H | |
49238 | ||
49239 | ac_libobjs= | |
49240 | ac_ltlibobjs= | |
49241 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
49242 | # 1. Remove the extension, and $U if already installed. | |
49243 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 49244 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
49245 | # 2. Add them. |
49246 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
49247 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
49248 | done | |
49249 | LIBOBJS=$ac_libobjs | |
49250 | ||
49251 | LTLIBOBJS=$ac_ltlibobjs | |
49252 | ||
49253 | ||
49254 | ||
49255 | : ${CONFIG_STATUS=./config.status} | |
49256 | ac_clean_files_save=$ac_clean_files | |
49257 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
49258 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
49259 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
49260 | cat >$CONFIG_STATUS <<_ACEOF | |
49261 | #! $SHELL | |
49262 | # Generated by $as_me. | |
49263 | # Run this file to recreate the current configuration. | |
49264 | # Compiler output produced by configure, useful for debugging | |
49265 | # configure, is in config.log if it exists. | |
49266 | ||
49267 | debug=false | |
49268 | ac_cs_recheck=false | |
49269 | ac_cs_silent=false | |
49270 | SHELL=\${CONFIG_SHELL-$SHELL} | |
49271 | _ACEOF | |
49272 | ||
49273 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49274 | ## --------------------- ## | |
49275 | ## M4sh Initialization. ## | |
49276 | ## --------------------- ## | |
49277 | ||
49278 | # Be Bourne compatible | |
49279 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
49280 | emulate sh | |
49281 | NULLCMD=: | |
49282 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
49283 | # is contrary to our usage. Disable this feature. | |
49284 | alias -g '${1+"$@"}'='"$@"' | |
49285 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
49286 | set -o posix | |
49287 | fi | |
ac1cb8d3 | 49288 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
49289 | |
49290 | # Support unset when possible. | |
ac1cb8d3 | 49291 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
49292 | as_unset=unset |
49293 | else | |
49294 | as_unset=false | |
49295 | fi | |
49296 | ||
49297 | ||
49298 | # Work around bugs in pre-3.0 UWIN ksh. | |
49299 | $as_unset ENV MAIL MAILPATH | |
49300 | PS1='$ ' | |
49301 | PS2='> ' | |
49302 | PS4='+ ' | |
49303 | ||
49304 | # NLS nuisances. | |
49305 | for as_var in \ | |
49306 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
49307 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
49308 | LC_TELEPHONE LC_TIME | |
49309 | do | |
ac1cb8d3 | 49310 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
49311 | eval $as_var=C; export $as_var |
49312 | else | |
49313 | $as_unset $as_var | |
49314 | fi | |
49315 | done | |
49316 | ||
49317 | # Required to use basename. | |
49318 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
49319 | as_expr=expr | |
49320 | else | |
49321 | as_expr=false | |
49322 | fi | |
49323 | ||
49324 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
49325 | as_basename=basename | |
49326 | else | |
49327 | as_basename=false | |
49328 | fi | |
49329 | ||
49330 | ||
49331 | # Name of the executable. | |
49332 | as_me=`$as_basename "$0" || | |
49333 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
49334 | X"$0" : 'X\(//\)$' \| \ | |
49335 | X"$0" : 'X\(/\)$' \| \ | |
49336 | . : '\(.\)' 2>/dev/null || | |
49337 | echo X/"$0" | | |
49338 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
49339 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
49340 | /^X\/\(\/\).*/{ s//\1/; q; } | |
49341 | s/.*/./; q'` | |
49342 | ||
49343 | ||
49344 | # PATH needs CR, and LINENO needs CR and PATH. | |
49345 | # Avoid depending upon Character Ranges. | |
49346 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
49347 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
49348 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
49349 | as_cr_digits='0123456789' | |
49350 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
49351 | ||
49352 | # The user is always right. | |
49353 | if test "${PATH_SEPARATOR+set}" != set; then | |
49354 | echo "#! /bin/sh" >conf$$.sh | |
49355 | echo "exit 0" >>conf$$.sh | |
49356 | chmod +x conf$$.sh | |
49357 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
49358 | PATH_SEPARATOR=';' | |
49359 | else | |
49360 | PATH_SEPARATOR=: | |
49361 | fi | |
49362 | rm -f conf$$.sh | |
49363 | fi | |
49364 | ||
49365 | ||
49366 | as_lineno_1=$LINENO | |
49367 | as_lineno_2=$LINENO | |
49368 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
49369 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
49370 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
49371 | # Find who we are. Look in the path if we contain no path at all | |
49372 | # relative or not. | |
49373 | case $0 in | |
49374 | *[\\/]* ) as_myself=$0 ;; | |
49375 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49376 | for as_dir in $PATH | |
49377 | do | |
49378 | IFS=$as_save_IFS | |
49379 | test -z "$as_dir" && as_dir=. | |
49380 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
49381 | done | |
49382 | ||
49383 | ;; | |
49384 | esac | |
49385 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
49386 | # in which case we are not to be found in the path. | |
49387 | if test "x$as_myself" = x; then | |
49388 | as_myself=$0 | |
49389 | fi | |
49390 | if test ! -f "$as_myself"; then | |
49391 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
49392 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
49393 | { (exit 1); exit 1; }; } | |
49394 | fi | |
49395 | case $CONFIG_SHELL in | |
49396 | '') | |
49397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49398 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
49399 | do | |
49400 | IFS=$as_save_IFS | |
49401 | test -z "$as_dir" && as_dir=. | |
49402 | for as_base in sh bash ksh sh5; do | |
49403 | case $as_dir in | |
49404 | /*) | |
49405 | if ("$as_dir/$as_base" -c ' | |
49406 | as_lineno_1=$LINENO | |
49407 | as_lineno_2=$LINENO | |
49408 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
49409 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
49410 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
49411 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
49412 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
49413 | CONFIG_SHELL=$as_dir/$as_base | |
49414 | export CONFIG_SHELL | |
49415 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
49416 | fi;; | |
49417 | esac | |
49418 | done | |
49419 | done | |
49420 | ;; | |
49421 | esac | |
49422 | ||
49423 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
49424 | # uniformly replaced by the line number. The first 'sed' inserts a | |
49425 | # line-number line before each line; the second 'sed' does the real | |
49426 | # work. The second script uses 'N' to pair each line-number line | |
49427 | # with the numbered line, and appends trailing '-' during | |
49428 | # substitution so that $LINENO is not a special case at line end. | |
49429 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
49430 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
49431 | sed '=' <$as_myself | | |
49432 | sed ' | |
49433 | N | |
49434 | s,$,-, | |
49435 | : loop | |
49436 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
49437 | t loop | |
49438 | s,-$,, | |
49439 | s,^['$as_cr_digits']*\n,, | |
49440 | ' >$as_me.lineno && | |
49441 | chmod +x $as_me.lineno || | |
49442 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
49443 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
49444 | { (exit 1); exit 1; }; } | |
49445 | ||
49446 | # Don't try to exec as it changes $[0], causing all sort of problems | |
49447 | # (the dirname of $[0] is not the place where we might find the | |
49448 | # original and so on. Autoconf is especially sensible to this). | |
49449 | . ./$as_me.lineno | |
49450 | # Exit status is that of the last command. | |
49451 | exit | |
49452 | } | |
49453 | ||
49454 | ||
49455 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
49456 | *c*,-n*) ECHO_N= ECHO_C=' | |
49457 | ' ECHO_T=' ' ;; | |
49458 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
49459 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
49460 | esac | |
49461 | ||
49462 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
49463 | as_expr=expr | |
49464 | else | |
49465 | as_expr=false | |
49466 | fi | |
49467 | ||
49468 | rm -f conf$$ conf$$.exe conf$$.file | |
49469 | echo >conf$$.file | |
49470 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
49471 | # We could just check for DJGPP; but this test a) works b) is more generic | |
49472 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
49473 | if test -f conf$$.exe; then | |
49474 | # Don't use ln at all; we don't have any links | |
49475 | as_ln_s='cp -p' | |
49476 | else | |
49477 | as_ln_s='ln -s' | |
49478 | fi | |
49479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
49480 | as_ln_s=ln | |
49481 | else | |
49482 | as_ln_s='cp -p' | |
49483 | fi | |
49484 | rm -f conf$$ conf$$.exe conf$$.file | |
49485 | ||
49486 | if mkdir -p . 2>/dev/null; then | |
49487 | as_mkdir_p=: | |
49488 | else | |
ac1cb8d3 | 49489 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
49490 | as_mkdir_p=false |
49491 | fi | |
49492 | ||
49493 | as_executable_p="test -f" | |
49494 | ||
49495 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 49496 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
49497 | |
49498 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 49499 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
49500 | |
49501 | ||
49502 | # IFS | |
49503 | # We need space, tab and new line, in precisely that order. | |
49504 | as_nl=' | |
49505 | ' | |
49506 | IFS=" $as_nl" | |
49507 | ||
49508 | # CDPATH. | |
49509 | $as_unset CDPATH | |
49510 | ||
49511 | exec 6>&1 | |
49512 | ||
49513 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
49514 | # report actual input values of CONFIG_FILES etc. instead of their | |
49515 | # values after options handling. Logging --version etc. is OK. | |
49516 | exec 5>>config.log | |
49517 | { | |
49518 | echo | |
49519 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
49520 | ## Running $as_me. ## | |
49521 | _ASBOX | |
49522 | } >&5 | |
49523 | cat >&5 <<_CSEOF | |
49524 | ||
dd8df4fc | 49525 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 49526 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
49527 | |
49528 | CONFIG_FILES = $CONFIG_FILES | |
49529 | CONFIG_HEADERS = $CONFIG_HEADERS | |
49530 | CONFIG_LINKS = $CONFIG_LINKS | |
49531 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
49532 | $ $0 $@ | |
49533 | ||
49534 | _CSEOF | |
49535 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
49536 | echo >&5 | |
49537 | _ACEOF | |
49538 | ||
49539 | # Files that config.status was made for. | |
49540 | if test -n "$ac_config_files"; then | |
49541 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
49542 | fi | |
49543 | ||
49544 | if test -n "$ac_config_headers"; then | |
49545 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
49546 | fi | |
49547 | ||
49548 | if test -n "$ac_config_links"; then | |
49549 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
49550 | fi | |
49551 | ||
49552 | if test -n "$ac_config_commands"; then | |
49553 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
49554 | fi | |
49555 | ||
49556 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49557 | ||
49558 | ac_cs_usage="\ | |
49559 | \`$as_me' instantiates files from templates according to the | |
49560 | current configuration. | |
49561 | ||
49562 | Usage: $0 [OPTIONS] [FILE]... | |
49563 | ||
49564 | -h, --help print this help, then exit | |
49565 | -V, --version print version number, then exit | |
49566 | -q, --quiet do not print progress messages | |
49567 | -d, --debug don't remove temporary files | |
49568 | --recheck update $as_me by reconfiguring in the same conditions | |
49569 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 49570 | instantiate the configuration file FILE |
a848cd7e | 49571 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 49572 | instantiate the configuration header FILE |
a848cd7e SC |
49573 | |
49574 | Configuration files: | |
49575 | $config_files | |
49576 | ||
49577 | Configuration headers: | |
49578 | $config_headers | |
49579 | ||
49580 | Configuration commands: | |
49581 | $config_commands | |
49582 | ||
49583 | Report bugs to <bug-autoconf@gnu.org>." | |
49584 | _ACEOF | |
49585 | ||
49586 | cat >>$CONFIG_STATUS <<_ACEOF | |
49587 | ac_cs_version="\\ | |
dd8df4fc | 49588 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 49589 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
49590 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
49591 | ||
ac1cb8d3 | 49592 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
49593 | This config.status script is free software; the Free Software Foundation |
49594 | gives unlimited permission to copy, distribute and modify it." | |
49595 | srcdir=$srcdir | |
49596 | INSTALL="$INSTALL" | |
49597 | _ACEOF | |
49598 | ||
49599 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49600 | # If no file are specified by the user, then we need to provide default | |
49601 | # value. By we need to know if files were specified by the user. | |
49602 | ac_need_defaults=: | |
49603 | while test $# != 0 | |
49604 | do | |
49605 | case $1 in | |
49606 | --*=*) | |
49607 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
49608 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
49609 | ac_shift=: | |
49610 | ;; | |
49611 | -*) | |
49612 | ac_option=$1 | |
49613 | ac_optarg=$2 | |
49614 | ac_shift=shift | |
49615 | ;; | |
49616 | *) # This is not an option, so the user has probably given explicit | |
49617 | # arguments. | |
49618 | ac_option=$1 | |
49619 | ac_need_defaults=false;; | |
49620 | esac | |
49621 | ||
49622 | case $ac_option in | |
49623 | # Handling of the options. | |
49624 | _ACEOF | |
49625 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49626 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
49627 | ac_cs_recheck=: ;; | |
49628 | --version | --vers* | -V ) | |
49629 | echo "$ac_cs_version"; exit 0 ;; | |
49630 | --he | --h) | |
49631 | # Conflict between --help and --header | |
49632 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
49633 | Try \`$0 --help' for more information." >&5 | |
49634 | echo "$as_me: error: ambiguous option: $1 | |
49635 | Try \`$0 --help' for more information." >&2;} | |
49636 | { (exit 1); exit 1; }; };; | |
49637 | --help | --hel | -h ) | |
49638 | echo "$ac_cs_usage"; exit 0 ;; | |
49639 | --debug | --d* | -d ) | |
49640 | debug=: ;; | |
49641 | --file | --fil | --fi | --f ) | |
49642 | $ac_shift | |
49643 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
49644 | ac_need_defaults=false;; | |
49645 | --header | --heade | --head | --hea ) | |
49646 | $ac_shift | |
49647 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
49648 | ac_need_defaults=false;; | |
49649 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
49650 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
49651 | ac_cs_silent=: ;; | |
49652 | ||
49653 | # This is an error. | |
49654 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
49655 | Try \`$0 --help' for more information." >&5 | |
49656 | echo "$as_me: error: unrecognized option: $1 | |
49657 | Try \`$0 --help' for more information." >&2;} | |
49658 | { (exit 1); exit 1; }; } ;; | |
49659 | ||
49660 | *) ac_config_targets="$ac_config_targets $1" ;; | |
49661 | ||
49662 | esac | |
49663 | shift | |
49664 | done | |
49665 | ||
49666 | ac_configure_extra_args= | |
49667 | ||
49668 | if $ac_cs_silent; then | |
49669 | exec 6>/dev/null | |
49670 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
49671 | fi | |
49672 | ||
49673 | _ACEOF | |
49674 | cat >>$CONFIG_STATUS <<_ACEOF | |
49675 | if \$ac_cs_recheck; then | |
49676 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
49677 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
49678 | fi | |
49679 | ||
49680 | _ACEOF | |
49681 | ||
49682 | cat >>$CONFIG_STATUS <<_ACEOF | |
49683 | # | |
49684 | # INIT-COMMANDS section. | |
49685 | # | |
49686 | ||
5c60e845 MW |
49687 | |
49688 | CPP="$CPP" | |
49689 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
49690 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
49691 | ||
49692 | ||
ceec2216 RL |
49693 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
49694 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
49695 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
49696 | LN_S="${LN_S}" | |
a848cd7e SC |
49697 | |
49698 | ||
49699 | _ACEOF | |
49700 | ||
49701 | ||
49702 | ||
49703 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49704 | for ac_config_target in $ac_config_targets | |
49705 | do | |
49706 | case "$ac_config_target" in | |
49707 | # Handling of arguments. | |
ceec2216 RL |
49708 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
49709 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
49710 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
49711 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
49712 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
5c60e845 | 49713 | "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; |
ceec2216 RL |
49714 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
49715 | "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 |
49716 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
49717 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
49718 | { (exit 1); exit 1; }; };; | |
49719 | esac | |
49720 | done | |
49721 | ||
49722 | # If the user did not use the arguments to specify the items to instantiate, | |
49723 | # then the envvar interface is used. Set only those that are not. | |
49724 | # We use the long form for the default assignment because of an extremely | |
49725 | # bizarre bug on SunOS 4.1.3. | |
49726 | if $ac_need_defaults; then | |
49727 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
49728 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
49729 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
49730 | fi | |
49731 | ||
49732 | # Have a temporary directory for convenience. Make it in the build tree | |
49733 | # simply because there is no reason to put it here, and in addition, | |
49734 | # creating and moving files from /tmp can sometimes cause problems. | |
49735 | # Create a temporary directory, and hook for its removal unless debugging. | |
49736 | $debug || | |
49737 | { | |
49738 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
49739 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
49740 | } | |
49741 | ||
49742 | # Create a (secure) tmp directory for tmp files. | |
49743 | ||
49744 | { | |
49745 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
49746 | test -n "$tmp" && test -d "$tmp" | |
49747 | } || | |
49748 | { | |
49749 | tmp=./confstat$$-$RANDOM | |
49750 | (umask 077 && mkdir $tmp) | |
49751 | } || | |
49752 | { | |
49753 | echo "$me: cannot create a temporary directory in ." >&2 | |
49754 | { (exit 1); exit 1; } | |
49755 | } | |
49756 | ||
49757 | _ACEOF | |
49758 | ||
49759 | cat >>$CONFIG_STATUS <<_ACEOF | |
49760 | ||
49761 | # | |
49762 | # CONFIG_FILES section. | |
49763 | # | |
49764 | ||
49765 | # No need to generate the scripts if there are no CONFIG_FILES. | |
49766 | # This happens for instance when ./config.status config.h | |
49767 | if test -n "\$CONFIG_FILES"; then | |
49768 | # Protect against being on the right side of a sed subst in config.status. | |
49769 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
49770 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
49771 | s,@SHELL@,$SHELL,;t t | |
49772 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
49773 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
49774 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
49775 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
49776 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
49777 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
49778 | s,@exec_prefix@,$exec_prefix,;t t | |
49779 | s,@prefix@,$prefix,;t t | |
49780 | s,@program_transform_name@,$program_transform_name,;t t | |
49781 | s,@bindir@,$bindir,;t t | |
49782 | s,@sbindir@,$sbindir,;t t | |
49783 | s,@libexecdir@,$libexecdir,;t t | |
49784 | s,@datadir@,$datadir,;t t | |
49785 | s,@sysconfdir@,$sysconfdir,;t t | |
49786 | s,@sharedstatedir@,$sharedstatedir,;t t | |
49787 | s,@localstatedir@,$localstatedir,;t t | |
49788 | s,@libdir@,$libdir,;t t | |
49789 | s,@includedir@,$includedir,;t t | |
49790 | s,@oldincludedir@,$oldincludedir,;t t | |
49791 | s,@infodir@,$infodir,;t t | |
49792 | s,@mandir@,$mandir,;t t | |
49793 | s,@build_alias@,$build_alias,;t t | |
49794 | s,@host_alias@,$host_alias,;t t | |
49795 | s,@target_alias@,$target_alias,;t t | |
49796 | s,@DEFS@,$DEFS,;t t | |
49797 | s,@ECHO_C@,$ECHO_C,;t t | |
49798 | s,@ECHO_N@,$ECHO_N,;t t | |
49799 | s,@ECHO_T@,$ECHO_T,;t t | |
49800 | s,@LIBS@,$LIBS,;t t | |
49801 | s,@build@,$build,;t t | |
49802 | s,@build_cpu@,$build_cpu,;t t | |
49803 | s,@build_vendor@,$build_vendor,;t t | |
49804 | s,@build_os@,$build_os,;t t | |
49805 | s,@host@,$host,;t t | |
49806 | s,@host_cpu@,$host_cpu,;t t | |
49807 | s,@host_vendor@,$host_vendor,;t t | |
49808 | s,@host_os@,$host_os,;t t | |
49809 | s,@target@,$target,;t t | |
49810 | s,@target_cpu@,$target_cpu,;t t | |
49811 | s,@target_vendor@,$target_vendor,;t t | |
49812 | s,@target_os@,$target_os,;t t | |
49813 | s,@CC@,$CC,;t t | |
49814 | s,@CFLAGS@,$CFLAGS,;t t | |
49815 | s,@LDFLAGS@,$LDFLAGS,;t t | |
49816 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
49817 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
49818 | s,@EXEEXT@,$EXEEXT,;t t | |
49819 | s,@OBJEXT@,$OBJEXT,;t t | |
49820 | s,@CPP@,$CPP,;t t | |
49821 | s,@EGREP@,$EGREP,;t t | |
49822 | s,@CXX@,$CXX,;t t | |
49823 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
49824 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
49825 | s,@RANLIB@,$RANLIB,;t t | |
49826 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
49827 | s,@AR@,$AR,;t t | |
8c80d384 | 49828 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
49829 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
49830 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
49831 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
49832 | s,@STRIP@,$STRIP,;t t | |
8c80d384 | 49833 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
8ced02f6 DE |
49834 | s,@WINDRES@,$WINDRES,;t t |
49835 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
8c80d384 DE |
49836 | s,@DLLTOOL@,$DLLTOOL,;t t |
49837 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
49838 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
49839 | s,@LN_S@,$LN_S,;t t | |
49840 | s,@CXXCPP@,$CXXCPP,;t t | |
49841 | s,@subdirs@,$subdirs,;t t | |
49842 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
49843 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
49844 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
49845 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
49846 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
49847 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
49848 | s,@X_LIBS@,$X_LIBS,;t t | |
49849 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
3ecd9f92 | 49850 | s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t |
a848cd7e SC |
49851 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t |
49852 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
49853 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
49854 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
49855 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
49856 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
8ced02f6 | 49857 | s,@REZ@,$REZ,;t t |
a848cd7e SC |
49858 | s,@DEREZ@,$DEREZ,;t t |
49859 | s,@SETFILE@,$SETFILE,;t t | |
49860 | s,@LIBICONV@,$LIBICONV,;t t | |
49861 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
49862 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
49863 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
49864 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
49865 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
49866 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
2b850ae1 RR |
49867 | s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t |
49868 | s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t | |
3565d135 RR |
49869 | s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t |
49870 | s,@HILDON_LIBS@,$HILDON_LIBS,;t t | |
f10e38c4 VZ |
49871 | s,@GST_CFLAGS@,$GST_CFLAGS,;t t |
49872 | s,@GST_LIBS@,$GST_LIBS,;t t | |
a848cd7e SC |
49873 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
49874 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
49875 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
49876 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
49877 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
49878 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
49879 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
49880 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
49881 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
49882 | s,@VENDOR@,$VENDOR,;t t | |
49883 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
49884 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
49885 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
49886 | s,@WXUNIV@,$WXUNIV,;t t |
49887 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
49888 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
49889 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
49890 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
49891 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
49892 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
49893 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
49894 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
49895 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
49896 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 49897 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
2b850ae1 | 49898 | s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t |
3565d135 | 49899 | s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t |
a848cd7e SC |
49900 | s,@UNICODE@,$UNICODE,;t t |
49901 | s,@BUILD@,$BUILD,;t t | |
49902 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
49903 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
49904 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
49905 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
49906 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
49907 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
49908 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
49909 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
49910 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
49911 | s,@SET_MAKE@,$SET_MAKE,;t t | |
49912 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
49913 | s,@NM@,$NM,;t t |
49914 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
49915 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
49916 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
49917 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
49918 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
49919 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
49920 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 49921 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
49922 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
49923 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 49924 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
49925 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
49926 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
49927 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
49928 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
49929 | s,@LIBEXT@,$LIBEXT,;t t | |
49930 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
49931 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 49932 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
49933 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
49934 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
49935 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
49936 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
49937 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
49938 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 49939 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
49940 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
49941 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
49942 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 49943 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
49944 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
49945 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
49946 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49947 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
49948 | s,@GCC_PCH@,$GCC_PCH,;t t | |
f10e38c4 | 49949 | s,@ICC_PCH@,$ICC_PCH,;t t |
a848cd7e SC |
49950 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
49951 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
49952 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
49953 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
49954 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
49955 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
49956 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
49957 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
49958 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
49959 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
49960 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
49961 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
49962 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
49963 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
49964 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
f10e38c4 | 49965 | s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t |
a848cd7e SC |
49966 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
49967 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
3f60522a | 49968 | s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t |
a848cd7e | 49969 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t |
90970d69 | 49970 | 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 |
f10e38c4 | 49971 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t |
a848cd7e | 49972 | 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 | 49973 | 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 | 49974 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8b6682b9 | 49975 | s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t |
ceec2216 | 49976 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e | 49977 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
3f60522a | 49978 | s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t |
a848cd7e | 49979 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
90970d69 | 49980 | 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 |
f10e38c4 | 49981 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t |
a848cd7e | 49982 | 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 | 49983 | 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 | 49984 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
8b6682b9 | 49985 | s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t |
ceec2216 | 49986 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
e5efa97e | 49987 | s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t |
a848cd7e SC |
49988 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
49989 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
49990 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
49991 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
49992 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
49993 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 49994 | 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 |
49995 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
49996 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 49997 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
49998 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
49999 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
50000 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 50001 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 50002 | 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 |
50003 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
50004 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
50005 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
50006 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 50007 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 50008 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
e5efa97e | 50009 | s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t |
83d8eb47 | 50010 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
50011 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
50012 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
50013 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
50014 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
50015 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
50016 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
50017 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
50018 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
50019 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
50020 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
50021 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
50022 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
50023 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
50024 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
50025 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 50026 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
50027 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
50028 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
50029 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
50030 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
50031 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
50032 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 50033 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 50034 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 50035 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 50036 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
50037 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
50038 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
d044deea MW |
50039 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t |
50040 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t | |
50041 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t | |
50042 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t | |
50043 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t | |
50044 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e | 50045 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t |
a848cd7e SC |
50046 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
50047 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
50048 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
50049 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
50050 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
50051 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
50052 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
50053 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
50054 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
50055 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
50056 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 50057 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
50058 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
50059 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
50060 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
50061 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
50062 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
50063 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 50064 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
50065 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
50066 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
50067 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
50068 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
50069 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
50070 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
50071 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
50072 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
50073 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
50074 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
50075 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
50076 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
50077 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
50078 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
f10e38c4 | 50079 | s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t |
a848cd7e | 50080 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
50081 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
50082 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 50083 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 50084 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
50085 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
50086 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
50087 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
50088 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
50089 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 50090 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 50091 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 50092 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 50093 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
50094 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
50095 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
50096 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
50097 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
50098 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
50099 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
50100 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
50101 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 50102 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
50103 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
50104 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
50105 | s,@USE_GUI@,$USE_GUI,;t t |
50106 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
50107 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
50108 | s,@TOOLKIT@,$TOOLKIT,;t t | |
50109 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 50110 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 50111 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e | 50112 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
50113 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
50114 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
50115 | s,@WX_VERSION@,$WX_VERSION,;t t | |
50116 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
50117 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
50118 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
5ff751d6 VZ |
50119 | s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t |
50120 | s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t | |
50121 | s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t | |
50122 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
a848cd7e SC |
50123 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t |
50124 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
004ee6da | 50125 | s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t |
ceec2216 | 50126 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 50127 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
50128 | s,@DISTDIR@,$DISTDIR,;t t |
50129 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
50130 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
50131 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
50132 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
50133 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
004ee6da | 50134 | s,@RESCOMP@,$RESCOMP,;t t |
a848cd7e SC |
50135 | s,@RESFLAGS@,$RESFLAGS,;t t |
50136 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
50137 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
50138 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
50139 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
8ced02f6 | 50140 | s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t |
a848cd7e | 50141 | s,@MACSETFILE@,$MACSETFILE,;t t |
a848cd7e | 50142 | s,@GCC@,$GCC,;t t |
a848cd7e SC |
50143 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
50144 | s,@LIBOBJS@,$LIBOBJS,;t t | |
50145 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
50146 | CEOF | |
50147 | ||
50148 | _ACEOF | |
50149 | ||
50150 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50151 | # Split the substitutions into bite-sized pieces for seds with | |
50152 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
50153 | ac_max_sed_lines=48 | |
50154 | ac_sed_frag=1 # Number of current file. | |
50155 | ac_beg=1 # First line for current file. | |
50156 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
50157 | ac_more_lines=: | |
50158 | ac_sed_cmds= | |
50159 | while $ac_more_lines; do | |
50160 | if test $ac_beg -gt 1; then | |
50161 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
50162 | else | |
50163 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
50164 | fi | |
50165 | if test ! -s $tmp/subs.frag; then | |
50166 | ac_more_lines=false | |
50167 | else | |
50168 | # The purpose of the label and of the branching condition is to | |
50169 | # speed up the sed processing (if there are no `@' at all, there | |
50170 | # is no need to browse any of the substitutions). | |
50171 | # These are the two extra sed commands mentioned above. | |
50172 | (echo ':t | |
50173 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
50174 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 50175 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 50176 | else |
ac1cb8d3 | 50177 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
50178 | fi |
50179 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
50180 | ac_beg=$ac_end | |
50181 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
50182 | fi | |
50183 | done | |
50184 | if test -z "$ac_sed_cmds"; then | |
50185 | ac_sed_cmds=cat | |
50186 | fi | |
50187 | fi # test -n "$CONFIG_FILES" | |
50188 | ||
50189 | _ACEOF | |
50190 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50191 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
50192 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
50193 | case $ac_file in | |
50194 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
50195 | cat >$tmp/stdin |
50196 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
50197 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 50198 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 50199 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
50200 | * ) ac_file_in=$ac_file.in ;; |
50201 | esac | |
50202 | ||
50203 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
50204 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
50205 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50206 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
50207 | X"$ac_file" : 'X\(//\)$' \| \ | |
50208 | X"$ac_file" : 'X\(/\)' \| \ | |
50209 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50210 | echo X"$ac_file" | |
50211 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50212 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50213 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50214 | /^X\(\/\).*/{ s//\1/; q; } | |
50215 | s/.*/./; q'` | |
50216 | { if $as_mkdir_p; then | |
50217 | mkdir -p "$ac_dir" | |
50218 | else | |
50219 | as_dir="$ac_dir" | |
50220 | as_dirs= | |
50221 | while test ! -d "$as_dir"; do | |
50222 | as_dirs="$as_dir $as_dirs" | |
50223 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50224 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50225 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50226 | X"$as_dir" : 'X\(//\)$' \| \ | |
50227 | X"$as_dir" : 'X\(/\)' \| \ | |
50228 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50229 | echo X"$as_dir" | |
50230 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50231 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50232 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50233 | /^X\(\/\).*/{ s//\1/; q; } | |
50234 | s/.*/./; q'` | |
50235 | done | |
50236 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50237 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50238 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50239 | { (exit 1); exit 1; }; }; } | |
50240 | ||
50241 | ac_builddir=. | |
50242 | ||
50243 | if test "$ac_dir" != .; then | |
50244 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50245 | # A "../" for each directory in $ac_dir_suffix. | |
50246 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50247 | else | |
50248 | ac_dir_suffix= ac_top_builddir= | |
50249 | fi | |
50250 | ||
50251 | case $srcdir in | |
50252 | .) # No --srcdir option. We are building in place. | |
50253 | ac_srcdir=. | |
50254 | if test -z "$ac_top_builddir"; then | |
50255 | ac_top_srcdir=. | |
50256 | else | |
50257 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50258 | fi ;; | |
50259 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50260 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50261 | ac_top_srcdir=$srcdir ;; | |
50262 | *) # Relative path. | |
50263 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50264 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50265 | esac | |
ac1cb8d3 VS |
50266 | |
50267 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50268 | # the directories may not exist. | |
50269 | case `pwd` in | |
50270 | .) ac_abs_builddir="$ac_dir";; | |
50271 | *) | |
50272 | case "$ac_dir" in | |
50273 | .) ac_abs_builddir=`pwd`;; | |
50274 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50275 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50276 | esac;; | |
50277 | esac | |
50278 | case $ac_abs_builddir in | |
50279 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50280 | *) | |
50281 | case ${ac_top_builddir}. in | |
50282 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50283 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50284 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50285 | esac;; | |
50286 | esac | |
50287 | case $ac_abs_builddir in | |
50288 | .) ac_abs_srcdir=$ac_srcdir;; | |
50289 | *) | |
50290 | case $ac_srcdir in | |
50291 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50292 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50293 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50294 | esac;; | |
50295 | esac | |
50296 | case $ac_abs_builddir in | |
50297 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50298 | *) | |
50299 | case $ac_top_srcdir in | |
50300 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50301 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50302 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50303 | esac;; | |
50304 | esac | |
a848cd7e SC |
50305 | |
50306 | ||
50307 | case $INSTALL in | |
50308 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
50309 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
50310 | esac | |
50311 | ||
a848cd7e SC |
50312 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
50313 | # use $as_me), people would be surprised to read: | |
50314 | # /* config.h. Generated by config.status. */ | |
50315 | if test x"$ac_file" = x-; then | |
50316 | configure_input= | |
50317 | else | |
50318 | configure_input="$ac_file. " | |
50319 | fi | |
50320 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 50321 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
50322 | |
50323 | # First look for the input files in the build tree, otherwise in the | |
50324 | # src tree. | |
50325 | ac_file_inputs=`IFS=: | |
50326 | for f in $ac_file_in; do | |
50327 | case $f in | |
50328 | -) echo $tmp/stdin ;; | |
50329 | [\\/$]*) | |
ac1cb8d3 VS |
50330 | # Absolute (can't be DOS-style, as IFS=:) |
50331 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50332 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50333 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 50334 | echo "$f";; |
a848cd7e | 50335 | *) # Relative |
ac1cb8d3 VS |
50336 | if test -f "$f"; then |
50337 | # Build tree | |
50338 | echo "$f" | |
50339 | elif test -f "$srcdir/$f"; then | |
50340 | # Source tree | |
50341 | echo "$srcdir/$f" | |
50342 | else | |
50343 | # /dev/null tree | |
50344 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50345 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50346 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 50347 | fi;; |
a848cd7e SC |
50348 | esac |
50349 | done` || { (exit 1); exit 1; } | |
c9a66001 VZ |
50350 | |
50351 | if test x"$ac_file" != x-; then | |
50352 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
50353 | echo "$as_me: creating $ac_file" >&6;} | |
50354 | rm -f "$ac_file" | |
50355 | fi | |
a848cd7e SC |
50356 | _ACEOF |
50357 | cat >>$CONFIG_STATUS <<_ACEOF | |
50358 | sed "$ac_vpsub | |
50359 | $extrasub | |
50360 | _ACEOF | |
50361 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50362 | :t | |
50363 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
50364 | s,@configure_input@,$configure_input,;t t | |
50365 | s,@srcdir@,$ac_srcdir,;t t | |
50366 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
50367 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
50368 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
50369 | s,@builddir@,$ac_builddir,;t t | |
50370 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
50371 | s,@top_builddir@,$ac_top_builddir,;t t | |
50372 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
50373 | s,@INSTALL@,$ac_INSTALL,;t t | |
50374 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
50375 | rm -f $tmp/stdin | |
50376 | if test x"$ac_file" != x-; then | |
50377 | mv $tmp/out $ac_file | |
50378 | else | |
50379 | cat $tmp/out | |
50380 | rm -f $tmp/out | |
50381 | fi | |
50382 | ||
ceec2216 RL |
50383 | # Run the commands associated with the file. |
50384 | case $ac_file in | |
50385 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
50386 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
50387 | esac | |
a848cd7e SC |
50388 | done |
50389 | _ACEOF | |
50390 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50391 | ||
50392 | # | |
50393 | # CONFIG_HEADER section. | |
50394 | # | |
50395 | ||
50396 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
50397 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
50398 | # | |
50399 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
50400 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
50401 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
50402 | ac_dC=' ' |
50403 | ac_dD=',;t' | |
50404 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 50405 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
50406 | ac_uB='$,\1#\2define\3' |
50407 | ac_uC=' ' | |
50408 | ac_uD=',;t' | |
50409 | ||
50410 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
50411 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
50412 | case $ac_file in | |
50413 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
50414 | cat >$tmp/stdin |
50415 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
50416 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 50417 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 50418 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
50419 | * ) ac_file_in=$ac_file.in ;; |
50420 | esac | |
50421 | ||
50422 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
50423 | echo "$as_me: creating $ac_file" >&6;} | |
50424 | ||
50425 | # First look for the input files in the build tree, otherwise in the | |
50426 | # src tree. | |
50427 | ac_file_inputs=`IFS=: | |
50428 | for f in $ac_file_in; do | |
50429 | case $f in | |
50430 | -) echo $tmp/stdin ;; | |
50431 | [\\/$]*) | |
ac1cb8d3 VS |
50432 | # Absolute (can't be DOS-style, as IFS=:) |
50433 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50434 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50435 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
50436 | # Do quote $f, to prevent DOS paths from being IFS'd. |
50437 | echo "$f";; | |
a848cd7e | 50438 | *) # Relative |
ac1cb8d3 VS |
50439 | if test -f "$f"; then |
50440 | # Build tree | |
50441 | echo "$f" | |
50442 | elif test -f "$srcdir/$f"; then | |
50443 | # Source tree | |
50444 | echo "$srcdir/$f" | |
50445 | else | |
50446 | # /dev/null tree | |
50447 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50448 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50449 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 50450 | fi;; |
a848cd7e SC |
50451 | esac |
50452 | done` || { (exit 1); exit 1; } | |
50453 | # Remove the trailing spaces. | |
ac1cb8d3 | 50454 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
50455 | |
50456 | _ACEOF | |
50457 | ||
50458 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
50459 | # `conftest.undefs', that substitutes the proper values into | |
50460 | # config.h.in to produce config.h. The first handles `#define' | |
50461 | # templates, and the second `#undef' templates. | |
50462 | # And first: Protect against being on the right side of a sed subst in | |
50463 | # config.status. Protect against being in an unquoted here document | |
50464 | # in config.status. | |
50465 | rm -f conftest.defines conftest.undefs | |
50466 | # Using a here document instead of a string reduces the quoting nightmare. | |
50467 | # Putting comments in sed scripts is not portable. | |
50468 | # | |
50469 | # `end' is used to avoid that the second main sed command (meant for | |
50470 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
50471 | # See the Autoconf documentation for `clear'. | |
50472 | cat >confdef2sed.sed <<\_ACEOF | |
50473 | s/[\\&,]/\\&/g | |
50474 | s,[\\$`],\\&,g | |
50475 | t clear | |
50476 | : clear | |
ac1cb8d3 | 50477 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 50478 | t end |
ac1cb8d3 | 50479 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
50480 | : end |
50481 | _ACEOF | |
50482 | # If some macros were called several times there might be several times | |
50483 | # the same #defines, which is useless. Nevertheless, we may not want to | |
50484 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
50485 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
50486 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
50487 | rm -f confdef2sed.sed | |
50488 | ||
50489 | # This sed command replaces #undef with comments. This is necessary, for | |
50490 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
50491 | # on some systems where configure will not decide to define it. | |
50492 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 50493 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
50494 | _ACEOF |
50495 | ||
50496 | # Break up conftest.defines because some shells have a limit on the size | |
50497 | # of here documents, and old seds have small limits too (100 cmds). | |
50498 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 50499 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
50500 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
50501 | echo ' :' >>$CONFIG_STATUS | |
50502 | rm -f conftest.tail | |
50503 | while grep . conftest.defines >/dev/null | |
50504 | do | |
50505 | # Write a limited-size here document to $tmp/defines.sed. | |
50506 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
50507 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 50508 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
50509 | # Work around the forget-to-reset-the-flag bug. |
50510 | echo 't clr' >>$CONFIG_STATUS | |
50511 | echo ': clr' >>$CONFIG_STATUS | |
50512 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
50513 | echo 'CEOF | |
50514 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
50515 | rm -f $tmp/in | |
50516 | mv $tmp/out $tmp/in | |
50517 | ' >>$CONFIG_STATUS | |
50518 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
50519 | rm -f conftest.defines | |
50520 | mv conftest.tail conftest.defines | |
50521 | done | |
50522 | rm -f conftest.defines | |
50523 | echo ' fi # grep' >>$CONFIG_STATUS | |
50524 | echo >>$CONFIG_STATUS | |
50525 | ||
50526 | # Break up conftest.undefs because some shells have a limit on the size | |
50527 | # of here documents, and old seds have small limits too (100 cmds). | |
50528 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
50529 | rm -f conftest.tail | |
50530 | while grep . conftest.undefs >/dev/null | |
50531 | do | |
50532 | # Write a limited-size here document to $tmp/undefs.sed. | |
50533 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
50534 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 50535 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
50536 | # Work around the forget-to-reset-the-flag bug. |
50537 | echo 't clr' >>$CONFIG_STATUS | |
50538 | echo ': clr' >>$CONFIG_STATUS | |
50539 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
50540 | echo 'CEOF | |
50541 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
50542 | rm -f $tmp/in | |
50543 | mv $tmp/out $tmp/in | |
50544 | ' >>$CONFIG_STATUS | |
50545 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
50546 | rm -f conftest.undefs | |
50547 | mv conftest.tail conftest.undefs | |
50548 | done | |
50549 | rm -f conftest.undefs | |
50550 | ||
50551 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50552 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
50553 | # use $as_me), people would be surprised to read: | |
50554 | # /* config.h. Generated by config.status. */ | |
50555 | if test x"$ac_file" = x-; then | |
50556 | echo "/* Generated by configure. */" >$tmp/config.h | |
50557 | else | |
50558 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
50559 | fi | |
50560 | cat $tmp/in >>$tmp/config.h | |
50561 | rm -f $tmp/in | |
50562 | if test x"$ac_file" != x-; then | |
50563 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
50564 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
50565 | echo "$as_me: $ac_file is unchanged" >&6;} | |
50566 | else | |
50567 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
50568 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50569 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
50570 | X"$ac_file" : 'X\(//\)$' \| \ | |
50571 | X"$ac_file" : 'X\(/\)' \| \ | |
50572 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50573 | echo X"$ac_file" | |
50574 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50575 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50576 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50577 | /^X\(\/\).*/{ s//\1/; q; } | |
50578 | s/.*/./; q'` | |
50579 | { if $as_mkdir_p; then | |
50580 | mkdir -p "$ac_dir" | |
50581 | else | |
50582 | as_dir="$ac_dir" | |
50583 | as_dirs= | |
50584 | while test ! -d "$as_dir"; do | |
50585 | as_dirs="$as_dir $as_dirs" | |
50586 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50587 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50588 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50589 | X"$as_dir" : 'X\(//\)$' \| \ | |
50590 | X"$as_dir" : 'X\(/\)' \| \ | |
50591 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50592 | echo X"$as_dir" | |
50593 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50594 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50595 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50596 | /^X\(\/\).*/{ s//\1/; q; } | |
50597 | s/.*/./; q'` | |
50598 | done | |
50599 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50600 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50601 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50602 | { (exit 1); exit 1; }; }; } | |
50603 | ||
50604 | rm -f $ac_file | |
50605 | mv $tmp/config.h $ac_file | |
50606 | fi | |
50607 | else | |
50608 | cat $tmp/config.h | |
50609 | rm -f $tmp/config.h | |
50610 | fi | |
50611 | done | |
50612 | _ACEOF | |
50613 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50614 | ||
50615 | # | |
50616 | # CONFIG_COMMANDS section. | |
50617 | # | |
50618 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
50619 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
50620 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
50621 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
50622 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50623 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
50624 | X"$ac_dest" : 'X\(//\)$' \| \ | |
50625 | X"$ac_dest" : 'X\(/\)' \| \ | |
50626 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50627 | echo X"$ac_dest" | |
50628 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50629 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50630 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50631 | /^X\(\/\).*/{ s//\1/; q; } | |
50632 | s/.*/./; q'` | |
ac1cb8d3 VS |
50633 | { if $as_mkdir_p; then |
50634 | mkdir -p "$ac_dir" | |
50635 | else | |
50636 | as_dir="$ac_dir" | |
50637 | as_dirs= | |
50638 | while test ! -d "$as_dir"; do | |
50639 | as_dirs="$as_dir $as_dirs" | |
50640 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50641 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
50642 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
50643 | X"$as_dir" : 'X\(//\)$' \| \ | |
50644 | X"$as_dir" : 'X\(/\)' \| \ | |
50645 | . : '\(.\)' 2>/dev/null || | |
50646 | echo X"$as_dir" | | |
50647 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50648 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50649 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50650 | /^X\(\/\).*/{ s//\1/; q; } | |
50651 | s/.*/./; q'` | |
50652 | done | |
50653 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50654 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50655 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50656 | { (exit 1); exit 1; }; }; } | |
50657 | ||
a848cd7e SC |
50658 | ac_builddir=. |
50659 | ||
50660 | if test "$ac_dir" != .; then | |
50661 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50662 | # A "../" for each directory in $ac_dir_suffix. | |
50663 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50664 | else | |
50665 | ac_dir_suffix= ac_top_builddir= | |
50666 | fi | |
50667 | ||
50668 | case $srcdir in | |
50669 | .) # No --srcdir option. We are building in place. | |
50670 | ac_srcdir=. | |
50671 | if test -z "$ac_top_builddir"; then | |
50672 | ac_top_srcdir=. | |
50673 | else | |
50674 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50675 | fi ;; | |
50676 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50677 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50678 | ac_top_srcdir=$srcdir ;; | |
50679 | *) # Relative path. | |
50680 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50681 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50682 | esac | |
ac1cb8d3 VS |
50683 | |
50684 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50685 | # the directories may not exist. | |
50686 | case `pwd` in | |
50687 | .) ac_abs_builddir="$ac_dir";; | |
50688 | *) | |
50689 | case "$ac_dir" in | |
50690 | .) ac_abs_builddir=`pwd`;; | |
50691 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50692 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50693 | esac;; | |
50694 | esac | |
50695 | case $ac_abs_builddir in | |
50696 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50697 | *) | |
50698 | case ${ac_top_builddir}. in | |
50699 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50700 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50701 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50702 | esac;; | |
50703 | esac | |
50704 | case $ac_abs_builddir in | |
50705 | .) ac_abs_srcdir=$ac_srcdir;; | |
50706 | *) | |
50707 | case $ac_srcdir in | |
50708 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50709 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50710 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50711 | esac;; | |
50712 | esac | |
50713 | case $ac_abs_builddir in | |
50714 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50715 | *) | |
50716 | case $ac_top_srcdir in | |
50717 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50718 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50719 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50720 | esac;; | |
50721 | esac | |
a848cd7e SC |
50722 | |
50723 | ||
50724 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
50725 | echo "$as_me: executing $ac_dest commands" >&6;} | |
50726 | case $ac_dest in | |
5c60e845 MW |
50727 | rcdefs.h ) |
50728 | mkdir -p $outdir && | |
50729 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
50730 | ;; | |
ceec2216 RL |
50731 | wx-config ) rm -f wx-config |
50732 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
50733 | ;; | |
a848cd7e SC |
50734 | esac |
50735 | done | |
50736 | _ACEOF | |
50737 | ||
50738 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50739 | ||
50740 | { (exit 0); exit 0; } | |
50741 | _ACEOF | |
50742 | chmod +x $CONFIG_STATUS | |
50743 | ac_clean_files=$ac_clean_files_save | |
50744 | ||
50745 | ||
50746 | # configure is writing to config.log, and then calls config.status. | |
50747 | # config.status does its own redirection, appending to config.log. | |
50748 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
50749 | # by configure, so config.status won't be able to write to it; its | |
50750 | # output is simply discarded. So we exec the FD to /dev/null, | |
50751 | # effectively closing config.log, so it can be properly (re)opened and | |
50752 | # appended to by config.status. When coming back to configure, we | |
50753 | # need to make the FD available again. | |
50754 | if test "$no_create" != yes; then | |
50755 | ac_cs_success=: | |
50756 | ac_config_status_args= | |
50757 | test "$silent" = yes && | |
50758 | ac_config_status_args="$ac_config_status_args --quiet" | |
50759 | exec 5>/dev/null | |
50760 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
50761 | exec 5>>config.log | |
50762 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
50763 | # would make configure fail if this is the last instruction. | |
50764 | $ac_cs_success || { (exit 1); exit 1; } | |
50765 | fi | |
50766 | ||
50767 | # | |
50768 | # CONFIG_SUBDIRS section. | |
50769 | # | |
50770 | if test "$no_recursion" != yes; then | |
50771 | ||
50772 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
50773 | ac_sub_configure_args= | |
50774 | ac_prev= | |
50775 | for ac_arg in $ac_configure_args; do | |
50776 | if test -n "$ac_prev"; then | |
50777 | ac_prev= | |
50778 | continue | |
50779 | fi | |
50780 | case $ac_arg in | |
50781 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
50782 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
50783 | ac_prev=cache_file ;; | |
50784 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
50785 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
50786 | | --c=*) | |
50787 | ;; | |
50788 | --config-cache | -C) | |
50789 | ;; | |
50790 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
50791 | ac_prev=srcdir ;; | |
50792 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
50793 | ;; | |
50794 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
50795 | ac_prev=prefix ;; | |
50796 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
50797 | ;; | |
50798 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
50799 | esac | |
50800 | done | |
50801 | ||
50802 | # Always prepend --prefix to ensure using the same prefix | |
50803 | # in subdir configurations. | |
50804 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
50805 | ||
50806 | ac_popdir=`pwd` | |
50807 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
50808 | ||
50809 | # Do not complain, so a configure script can configure whichever | |
50810 | # parts of a large source tree are present. | |
50811 | test -d $srcdir/$ac_dir || continue | |
50812 | ||
50813 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
50814 | echo "$as_me: configuring in $ac_dir" >&6;} | |
50815 | { if $as_mkdir_p; then | |
50816 | mkdir -p "$ac_dir" | |
50817 | else | |
50818 | as_dir="$ac_dir" | |
50819 | as_dirs= | |
50820 | while test ! -d "$as_dir"; do | |
50821 | as_dirs="$as_dir $as_dirs" | |
50822 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50823 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50824 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50825 | X"$as_dir" : 'X\(//\)$' \| \ | |
50826 | X"$as_dir" : 'X\(/\)' \| \ | |
50827 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50828 | echo X"$as_dir" | |
50829 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50830 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50831 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50832 | /^X\(\/\).*/{ s//\1/; q; } | |
50833 | s/.*/./; q'` | |
50834 | done | |
50835 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50836 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50837 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50838 | { (exit 1); exit 1; }; }; } | |
50839 | ||
50840 | ac_builddir=. | |
50841 | ||
50842 | if test "$ac_dir" != .; then | |
50843 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50844 | # A "../" for each directory in $ac_dir_suffix. | |
50845 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50846 | else | |
50847 | ac_dir_suffix= ac_top_builddir= | |
50848 | fi | |
50849 | ||
50850 | case $srcdir in | |
50851 | .) # No --srcdir option. We are building in place. | |
50852 | ac_srcdir=. | |
50853 | if test -z "$ac_top_builddir"; then | |
50854 | ac_top_srcdir=. | |
50855 | else | |
50856 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50857 | fi ;; | |
50858 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50859 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50860 | ac_top_srcdir=$srcdir ;; | |
50861 | *) # Relative path. | |
50862 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50863 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50864 | esac | |
ac1cb8d3 VS |
50865 | |
50866 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50867 | # the directories may not exist. | |
50868 | case `pwd` in | |
50869 | .) ac_abs_builddir="$ac_dir";; | |
50870 | *) | |
50871 | case "$ac_dir" in | |
50872 | .) ac_abs_builddir=`pwd`;; | |
50873 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50874 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50875 | esac;; | |
50876 | esac | |
50877 | case $ac_abs_builddir in | |
50878 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50879 | *) | |
50880 | case ${ac_top_builddir}. in | |
50881 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50882 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50883 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50884 | esac;; | |
50885 | esac | |
50886 | case $ac_abs_builddir in | |
50887 | .) ac_abs_srcdir=$ac_srcdir;; | |
50888 | *) | |
50889 | case $ac_srcdir in | |
50890 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50891 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50892 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50893 | esac;; | |
50894 | esac | |
50895 | case $ac_abs_builddir in | |
50896 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50897 | *) | |
50898 | case $ac_top_srcdir in | |
50899 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50900 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50901 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50902 | esac;; | |
50903 | esac | |
a848cd7e SC |
50904 | |
50905 | ||
50906 | cd $ac_dir | |
50907 | ||
50908 | # Check for guested configure; otherwise get Cygnus style configure. | |
50909 | if test -f $ac_srcdir/configure.gnu; then | |
50910 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
50911 | elif test -f $ac_srcdir/configure; then | |
50912 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
50913 | elif test -f $ac_srcdir/configure.in; then | |
50914 | ac_sub_configure=$ac_configure | |
50915 | else | |
50916 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
50917 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
50918 | ac_sub_configure= | |
50919 | fi | |
50920 | ||
50921 | # The recursion is here. | |
50922 | if test -n "$ac_sub_configure"; then | |
50923 | # Make the cache file name correct relative to the subdirectory. | |
50924 | case $cache_file in | |
50925 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
50926 | *) # Relative path. | |
ac1cb8d3 | 50927 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
50928 | esac |
50929 | ||
50930 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
50931 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
50932 | # The eval makes quoting arguments work. | |
50933 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
50934 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
50935 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
50936 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
50937 | { (exit 1); exit 1; }; } | |
50938 | fi | |
50939 | ||
c9a66001 | 50940 | cd "$ac_popdir" |
a848cd7e SC |
50941 | done |
50942 | fi | |
50943 | ||
50944 | ||
50945 | echo | |
77ffb593 | 50946 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 50947 | echo "" |
c2e9ada4 | 50948 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}" |
77ffb593 | 50949 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 50950 | |
77ffb593 JS |
50951 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
50952 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
50953 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 50954 | |
77ffb593 | 50955 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
50956 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
50957 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 50958 | |
77ffb593 | 50959 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
50960 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
50961 | echo " png ${wxUSE_LIBPNG-none}" | |
50962 | echo " regex ${wxUSE_REGEX}" | |
50963 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
50964 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
50965 | echo " xpm ${wxUSE_LIBXPM-none}" | |
50966 | fi | |
50967 | echo " zlib ${wxUSE_ZLIB}" | |
50968 | echo " odbc ${wxUSE_ODBC}" | |
50969 | echo " expat ${wxUSE_EXPAT}" | |
50970 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
50971 | echo " sdl ${wxUSE_LIBSDL}" | |
50972 | ||
50973 | echo "" | |
50974 |