]>
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. | |
f1e3914f | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.7.1. |
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' | |
f1e3914f RR |
273 | PACKAGE_VERSION='2.7.1' |
274 | PACKAGE_STRING='wxWidgets 2.7.1' | |
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" | |
a485900c | 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 wx_top_builddir 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 ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS CAIRO_CFLAGS CAIRO_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 AROPTIONS 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 BK_DEPS GCC_PCH ICC_PCH BK_MAKE_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_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_DFB COND_TOOLKIT_DFB_USE_GUI_1 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 | |
b3c86150 VS |
793 | ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set} |
794 | ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS | |
795 | ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set} | |
796 | ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS | |
797 | ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set} | |
798 | ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS | |
799 | ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set} | |
800 | ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS | |
3ecd9f92 MW |
801 | ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set} |
802 | ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS | |
803 | ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set} | |
804 | ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS | |
805 | ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set} | |
806 | ac_env_PANGOX_LIBS_value=$PANGOX_LIBS | |
807 | ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set} | |
808 | ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS | |
809 | ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set} | |
810 | ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS | |
811 | ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set} | |
812 | ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS | |
813 | ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set} | |
814 | ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS | |
815 | ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set} | |
816 | ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS | |
817 | ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set} | |
818 | ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS | |
819 | ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set} | |
820 | ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS | |
821 | ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set} | |
822 | ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS | |
823 | ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set} | |
824 | ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS | |
825 | ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set} | |
826 | ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS | |
827 | ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set} | |
828 | ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS | |
829 | ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set} | |
830 | ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS | |
831 | ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set} | |
832 | ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS | |
833 | ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set} | |
834 | ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS | |
835 | ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set} | |
836 | ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS | |
837 | ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set} | |
838 | ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS | |
839 | ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set} | |
840 | ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS | |
841 | ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set} | |
842 | ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS | |
843 | ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set} | |
844 | ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS | |
845 | ac_env_HILDON_LIBS_set=${HILDON_LIBS+set} | |
846 | ac_env_HILDON_LIBS_value=$HILDON_LIBS | |
847 | ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set} | |
848 | ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS | |
64b75e64 RD |
849 | ac_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set} |
850 | ac_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS | |
851 | ac_cv_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set} | |
852 | ac_cv_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS | |
853 | ac_env_CAIRO_LIBS_set=${CAIRO_LIBS+set} | |
854 | ac_env_CAIRO_LIBS_value=$CAIRO_LIBS | |
855 | ac_cv_env_CAIRO_LIBS_set=${CAIRO_LIBS+set} | |
856 | ac_cv_env_CAIRO_LIBS_value=$CAIRO_LIBS | |
3ecd9f92 MW |
857 | ac_env_GST_CFLAGS_set=${GST_CFLAGS+set} |
858 | ac_env_GST_CFLAGS_value=$GST_CFLAGS | |
859 | ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set} | |
860 | ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS | |
861 | ac_env_GST_LIBS_set=${GST_LIBS+set} | |
862 | ac_env_GST_LIBS_value=$GST_LIBS | |
863 | ac_cv_env_GST_LIBS_set=${GST_LIBS+set} | |
864 | ac_cv_env_GST_LIBS_value=$GST_LIBS | |
a848cd7e SC |
865 | |
866 | # | |
867 | # Report the --help message. | |
868 | # | |
869 | if test "$ac_init_help" = "long"; then | |
870 | # Omit some internal or obsolete options to make the list less imposing. | |
871 | # This message is too long to be a string in the A/UX 3.1 sh. | |
872 | cat <<_ACEOF | |
f1e3914f | 873 | \`configure' configures wxWidgets 2.7.1 to adapt to many kinds of systems. |
a848cd7e SC |
874 | |
875 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
876 | ||
877 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
878 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
879 | ||
880 | Defaults for the options are specified in brackets. | |
881 | ||
882 | Configuration: | |
883 | -h, --help display this help and exit | |
884 | --help=short display options specific to this package | |
885 | --help=recursive display the short help of all the included packages | |
886 | -V, --version display version information and exit | |
887 | -q, --quiet, --silent do not print \`checking...' messages | |
888 | --cache-file=FILE cache test results in FILE [disabled] | |
889 | -C, --config-cache alias for \`--cache-file=config.cache' | |
890 | -n, --no-create do not create output files | |
891 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
892 | ||
893 | _ACEOF | |
894 | ||
895 | cat <<_ACEOF | |
896 | Installation directories: | |
897 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 898 | [$ac_default_prefix] |
a848cd7e | 899 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 900 | [PREFIX] |
a848cd7e SC |
901 | |
902 | By default, \`make install' will install all the files in | |
903 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
904 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
905 | for instance \`--prefix=\$HOME'. | |
906 | ||
907 | For better control, use the options below. | |
908 | ||
909 | Fine tuning of the installation directories: | |
910 | --bindir=DIR user executables [EPREFIX/bin] | |
911 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
912 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
913 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
914 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
915 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
916 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
917 | --libdir=DIR object code libraries [EPREFIX/lib] | |
918 | --includedir=DIR C header files [PREFIX/include] | |
919 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
920 | --infodir=DIR info documentation [PREFIX/info] | |
921 | --mandir=DIR man documentation [PREFIX/man] | |
922 | _ACEOF | |
923 | ||
924 | cat <<\_ACEOF | |
925 | ||
926 | X features: | |
927 | --x-includes=DIR X include files are in DIR | |
928 | --x-libraries=DIR X library files are in DIR | |
929 | ||
930 | System types: | |
931 | --build=BUILD configure for building on BUILD [guessed] | |
932 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
933 | --target=TARGET configure for building compilers for TARGET [HOST] | |
934 | _ACEOF | |
935 | fi | |
936 | ||
937 | if test -n "$ac_init_help"; then | |
938 | case $ac_init_help in | |
f1e3914f | 939 | short | recursive ) echo "Configuration of wxWidgets 2.7.1:";; |
a848cd7e SC |
940 | esac |
941 | cat <<\_ACEOF | |
942 | ||
943 | Optional Features: | |
944 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
945 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
946 | --enable-gui use GUI classes | |
77ffb593 JS |
947 | --enable-monolithic build wxWidgets as single library |
948 | --enable-plugins build parts of wxWidgets as loadable components | |
949 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 950 | --enable-nanox use NanoX |
f34ca037 | 951 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
952 | --enable-gpe use GNOME PDA Environment features if possible |
953 | --enable-shared create shared library code | |
954 | --enable-optimise create optimised code | |
955 | --enable-debug same as debug_flag and debug_info | |
956 | --enable-stl use STL for containers | |
957 | --enable-omf use OMF object format | |
958 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
959 | --enable-debug_info create code with debugging information | |
960 | --enable-debug_gdb create code with extra GDB debugging information | |
961 | --enable-debug_cntxt use wxDebugContext | |
962 | --enable-mem_tracing create code with memory tracing | |
963 | --enable-profile create code with profiling information | |
964 | --enable-no_rtti create code without RTTI information | |
965 | --enable-no_exceptions create code without C++ exceptions handling | |
966 | --enable-permissive compile code disregarding strict ANSI | |
967 | --enable-no_deps create code without dependency information | |
95768535 | 968 | --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working) |
dee1a63f MB |
969 | --enable-compat24 enable wxWidgets 2.4 compatibility |
970 | --disable-compat26 disable wxWidgets 2.6 compatibility | |
ffa0583f | 971 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
972 | --enable-intl use internationalization system |
973 | --enable-config use wxConfig (and derived) classes | |
974 | --enable-protocols use wxProtocol and derived classes | |
975 | --enable-ftp use wxFTP (requires wxProtocol | |
976 | --enable-http use wxHTTP (requires wxProtocol | |
977 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
978 | --enable-sockets use socket/network classes | |
979 | --enable-ole use OLE classes (Win32 only) | |
980 | --enable-dataobj use data object classes | |
981 | --enable-ipc use interprocess communication (wxSocket etc.) | |
982 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 983 | --enable-arcstream use wxArchive streams |
eaff0f0d | 984 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 985 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
986 | --enable-cmdline use wxCmdLineParser class |
987 | --enable-datetime use wxDateTime class | |
36b6448c | 988 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
989 | --enable-dialupman use dialup network classes |
990 | --enable-dynlib use wxLibrary class for DLL loading | |
991 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
992 | --enable-exceptions build exception-safe library | |
993 | --enable-ffile use wxFFile class | |
994 | --enable-file use wxFile class | |
995 | --enable-filesystem use virtual file systems classes | |
996 | --enable-fontmap use font encodings conversion classes | |
26e422a9 | 997 | --enable-fs_archive use virtual archive filesystems |
a848cd7e | 998 | --enable-fs_inet use virtual HTTP/FTP filesystems |
916af76f | 999 | --enable-fs_zip now replaced by fs_archive |
a848cd7e SC |
1000 | --enable-geometry use geometry class |
1001 | --enable-log use logging system | |
1002 | --enable-longlong use wxLongLong class | |
1003 | --enable-mimetype use wxMimeTypesManager | |
1004 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
1005 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 1006 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 1007 | --enable-std_string use standard C++ string classes |
07158944 | 1008 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 1009 | --enable-stopwatch use wxStopWatch class |
07158944 | 1010 | --enable-streams use wxStream etc classes |
a848cd7e | 1011 | --enable-sysoptions use wxSystemOptions |
26e422a9 | 1012 | --enable-tarstream use wxTar streams |
a848cd7e SC |
1013 | --enable-textbuf use wxTextBuffer class |
1014 | --enable-textfile use wxTextFile class | |
1015 | --enable-timer use wxTimer class | |
1016 | --enable-unicode compile wxString with Unicode support | |
1017 | --enable-sound use wxSound class | |
3b57de8b | 1018 | --enable-mediactrl use wxMediaCtrl class |
15291213 | 1019 | --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix |
8b6682b9 | 1020 | --enable-printfposparam use wxVsnprintf() which supports positional parameters |
81f90336 | 1021 | --enable-zipstream use wxZip streams |
a848cd7e | 1022 | --enable-url use wxURL class |
ca5c6ac3 | 1023 | --enable-variant use wxVariant class |
a848cd7e SC |
1024 | --enable-protocol use wxProtocol class |
1025 | --enable-protocol-http HTTP support in wxProtocol | |
1026 | --enable-protocol-ftp FTP support in wxProtocol | |
1027 | --enable-protocol-file FILE support in wxProtocol | |
1028 | --enable-threads use threads | |
1029 | --enable-docview use document view architecture | |
1030 | --enable-help use help subsystem | |
1031 | --enable-mshtmlhelp use MS HTML Help (win32) | |
1032 | --enable-html use wxHTML sub-library | |
1033 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 1034 | --enable-xrc use XRC resources sub-library |
3f60522a | 1035 | --enable-aui use AUI docking library |
a848cd7e SC |
1036 | --enable-constraints use layout-constraints system |
1037 | --enable-printarch use printing architecture | |
1038 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 1039 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
1040 | --enable-loggui use standard GUI logger |
1041 | --enable-logwin use wxLogWindow | |
1042 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 1043 | --enable-webkit use wxWebKitCtrl (Mac) |
91dea314 | 1044 | --enable-richtext use wxRichTextCtrl |
f43426c1 | 1045 | --enable-graphics_ctx use graphics context 2D drawing API |
a848cd7e SC |
1046 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
1047 | --enable-prologio not available; see contrib | |
1048 | --enable-resources not available; see contrib | |
1049 | --enable-clipboard use wxClipboard class | |
1050 | --enable-dnd use Drag'n'Drop classes | |
1051 | --enable-metafile use win32 metafiles | |
1052 | --enable-controls use all usual controls | |
1053 | --enable-accel use accelerators | |
3ea50042 | 1054 | --enable-animatectrl use wxAnimationCtrl class |
a848cd7e SC |
1055 | --enable-button use wxButton class |
1056 | --enable-bmpbutton use wxBitmapButton class | |
95a46303 | 1057 | --enable-bmpcombobox use wxBitmapComboBox class |
a848cd7e SC |
1058 | --enable-calendar use wxCalendarCtrl class |
1059 | --enable-caret use wxCaret class | |
1060 | --enable-checkbox use wxCheckBox class | |
1061 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
1062 | --enable-choice use wxChoice class | |
92bbdbcd | 1063 | --enable-choicebook use wxChoicebook class |
bd915ace | 1064 | --enable-collpane use wxCollapsiblePane class |
e9263684 | 1065 | --enable-colourpicker use wxColourPickerCtrl class |
a848cd7e | 1066 | --enable-combobox use wxComboBox class |
a57d600f | 1067 | --enable-comboctrl use wxComboCtrl class |
da98e9be | 1068 | --enable-datepick use wxDatePickerCtrl class |
e9263684 | 1069 | --enable-dirpicker use wxDirPickerCtrl class |
a848cd7e | 1070 | --enable-display use wxDisplay class |
88bbc332 | 1071 | --enable-detect_sm use code to detect X11 session manager |
e9263684 VZ |
1072 | --enable-filepicker use wxFilePickerCtrl class |
1073 | --enable-fontpicker use wxFontPickerCtrl class | |
a848cd7e SC |
1074 | --enable-gauge use wxGauge class |
1075 | --enable-grid use wxGrid class | |
20e34ecc | 1076 | --enable-dataviewctrl, use wxDataViewCtrl class |
6954625c | 1077 | --enable-hyperlink use wxHyperlinkCtrl class |
a848cd7e SC |
1078 | --enable-imaglist use wxImageList class |
1079 | --enable-listbook use wxListbook class | |
1080 | --enable-listbox use wxListBox class | |
1081 | --enable-listctrl use wxListCtrl class | |
1082 | --enable-notebook use wxNotebook class | |
a57d600f | 1083 | --enable-odcombobox use wxOwnerDrawnComboBox class |
a848cd7e SC |
1084 | --enable-radiobox use wxRadioBox class |
1085 | --enable-radiobtn use wxRadioButton class | |
1086 | --enable-sash use wxSashWindow class | |
1087 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
1088 | --enable-slider use wxSlider class | |
1089 | --enable-spinbtn use wxSpinButton class | |
1090 | --enable-spinctrl use wxSpinCtrl class | |
1091 | --enable-splitter use wxSplitterWindow class | |
1092 | --enable-statbmp use wxStaticBitmap class | |
1093 | --enable-statbox use wxStaticBox class | |
1094 | --enable-statline use wxStaticLine class | |
1095 | --enable-stattext use wxStaticText class | |
1096 | --enable-statusbar use wxStatusBar class | |
1097 | --enable-tabdialog use wxTabControl class | |
1098 | --enable-textctrl use wxTextCtrl class | |
1099 | --enable-togglebtn use wxToggleButton class | |
1100 | --enable-toolbar use wxToolBar class | |
1101 | --enable-tbarnative use native wxToolBar class | |
0093c2fc | 1102 | --enable-treebook use wxTreebook class |
5ec3bc43 | 1103 | --enable-toolbook use wxToolbook class |
a848cd7e SC |
1104 | --enable-treectrl use wxTreeCtrl class |
1105 | --enable-tipwindow use wxTipWindow class | |
1106 | --enable-popupwin use wxPopUpWindow class | |
1107 | --enable-commondlg use all common dialogs | |
319c5ed4 | 1108 | --enable-aboutdlg use wxAboutBox |
a848cd7e SC |
1109 | --enable-choicedlg use wxChoiceDialog |
1110 | --enable-coldlg use wxColourDialog | |
1111 | --enable-filedlg use wxFileDialog | |
1112 | --enable-finddlg use wxFindReplaceDialog | |
1113 | --enable-fontdlg use wxFontDialog | |
1114 | --enable-dirdlg use wxDirDialog | |
1115 | --enable-msgdlg use wxMessageDialog | |
1116 | --enable-numberdlg use wxNumberEntryDialog | |
1117 | --enable-splash use wxSplashScreen | |
1118 | --enable-textdlg use wxTextDialog | |
1119 | --enable-tipdlg use startup tips | |
1120 | --enable-progressdlg use wxProgressDialog | |
1121 | --enable-wizarddlg use wxWizard | |
1122 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1123 | --enable-miniframe use wxMiniFrame class | |
1124 | --enable-tooltips use wxToolTip class | |
1125 | --enable-splines use spline drawing code | |
fbe2ca43 | 1126 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1127 | --enable-validators use wxValidator and derived classes |
1128 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1129 | --enable-joystick use wxJoystick |
38b4a946 | 1130 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1131 | --enable-dragimage use wxDragImage |
1132 | --enable-accessibility enable accessibility support | |
38b4a946 | 1133 | --enable-dccache cache temporary wxDC objects (Win32 only) |
a848cd7e SC |
1134 | --enable-palette use wxPalette class |
1135 | --enable-image use wxImage class | |
1136 | --enable-gif use gif images (GIF file format) | |
1137 | --enable-pcx use pcx images (PCX file format) | |
bb9e79c0 | 1138 | --enable-tga use tga images (TGA file format) |
a848cd7e SC |
1139 | --enable-iff use iff images (IFF file format) |
1140 | --enable-pnm use pnm images (PNM file format) | |
1141 | --enable-xpm use xpm images (XPM file format) | |
1142 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1143 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1144 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1145 | --disable-largefile omit support for large files | |
1146 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1147 | --disable-gtktest Do not try to compile and run a test GTK program | |
1148 | --disable-sdltest Do not try to compile and run a test SDL program | |
1149 | --enable-omf use OMF object format (OS/2) | |
f10e38c4 VZ |
1150 | --disable-dependency-tracking |
1151 | don't use dependency tracking even if the compiler | |
1152 | can | |
ebee3cd0 VS |
1153 | --disable-precomp-headers |
1154 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1155 | |
1156 | Optional Packages: | |
1157 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1158 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1c14217d | 1159 | --without-subdirs don't generate makefiles for samples/demos/... |
f34ca037 | 1160 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1161 | --with-motif use Motif/Lesstif |
1162 | --with-mac use Mac OS X | |
1163 | --with-cocoa use Cocoa | |
1164 | --with-wine use Wine | |
1165 | --with-msw use MS-Windows | |
1166 | --with-pm use OS/2 Presentation Manager | |
1167 | --with-mgl use SciTech MGL | |
b3c86150 | 1168 | --with-directfb use DirectFB |
a848cd7e SC |
1169 | --with-microwin use MicroWindows |
1170 | --with-x11 use X11 | |
1171 | --with-libpng use libpng (PNG image format) | |
1172 | --with-libjpeg use libjpeg (JPEG file format) | |
1173 | --with-libtiff use libtiff (TIFF file format) | |
1174 | --with-libxpm use libxpm (XPM file format) | |
1175 | --with-libmspack use libmspack (CHM help files loading) | |
1176 | --with-sdl use SDL for audio on Unix | |
2b850ae1 RR |
1177 | --with-gnomeprint use GNOME print for printing under GNOME |
1178 | --with-gnomevfs use GNOME VFS for associating MIME types | |
3565d135 | 1179 | --with-hildon use Hildon framework for Nokia 770 |
a848cd7e | 1180 | --with-opengl use OpenGL (or Mesa) |
4353a8df | 1181 | --with-themes=all|list use only the specified comma-separated list of wxUniversal themes |
a848cd7e SC |
1182 | --with-dmalloc use dmalloc library (http://dmalloc.com/) |
1183 | --with-regex enable support for wxRegEx class | |
1184 | --with-zlib use zlib for LZW compression | |
1185 | --with-odbc use the IODBC and wxODBC classes | |
1186 | --with-expat enable XML support using expat parser | |
ceec2216 | 1187 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1188 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1189 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1190 | --with-x use the X Window System | |
1191 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1192 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1193 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1194 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1195 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1196 | ||
1197 | Some influential environment variables: | |
dcc1b6ad VS |
1198 | CC C compiler command |
1199 | CFLAGS C compiler flags | |
1200 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1201 | nonstandard directory <lib dir> | |
1202 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1203 | headers in a nonstandard directory <include dir> | |
1204 | CPP C preprocessor | |
1205 | CXX C++ compiler command | |
1206 | CXXFLAGS C++ compiler flags | |
1207 | CXXCPP C++ preprocessor | |
3ecd9f92 | 1208 | PKG_CONFIG path to pkg-config utility |
b3c86150 VS |
1209 | DIRECTFB_CFLAGS |
1210 | C compiler flags for DIRECTFB, overriding pkg-config | |
1211 | DIRECTFB_LIBS | |
1212 | linker flags for DIRECTFB, overriding pkg-config | |
3ecd9f92 MW |
1213 | PANGOX_CFLAGS |
1214 | C compiler flags for PANGOX, overriding pkg-config | |
1215 | PANGOX_LIBS linker flags for PANGOX, overriding pkg-config | |
1216 | PANGOFT2_CFLAGS | |
1217 | C compiler flags for PANGOFT2, overriding pkg-config | |
1218 | PANGOFT2_LIBS | |
1219 | linker flags for PANGOFT2, overriding pkg-config | |
1220 | PANGOXFT_CFLAGS | |
1221 | C compiler flags for PANGOXFT, overriding pkg-config | |
1222 | PANGOXFT_LIBS | |
1223 | linker flags for PANGOXFT, overriding pkg-config | |
1224 | LIBGNOMEPRINTUI_CFLAGS | |
1225 | C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config | |
1226 | LIBGNOMEPRINTUI_LIBS | |
1227 | linker flags for LIBGNOMEPRINTUI, overriding pkg-config | |
1228 | GNOMEVFS_CFLAGS | |
1229 | C compiler flags for GNOMEVFS, overriding pkg-config | |
1230 | GNOMEVFS_LIBS | |
1231 | linker flags for GNOMEVFS, overriding pkg-config | |
1232 | HILDON_CFLAGS | |
1233 | C compiler flags for HILDON, overriding pkg-config | |
1234 | HILDON_LIBS linker flags for HILDON, overriding pkg-config | |
64b75e64 RD |
1235 | CAIRO_CFLAGS |
1236 | C compiler flags for CAIRO, overriding pkg-config | |
1237 | CAIRO_LIBS linker flags for CAIRO, overriding pkg-config | |
3ecd9f92 MW |
1238 | GST_CFLAGS C compiler flags for GST, overriding pkg-config |
1239 | GST_LIBS linker flags for GST, overriding pkg-config | |
a848cd7e SC |
1240 | |
1241 | Use these variables to override the choices made by `configure' or to help | |
1242 | it to find libraries and programs with nonstandard names/locations. | |
1243 | ||
77ffb593 | 1244 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1245 | _ACEOF |
1246 | fi | |
1247 | ||
1248 | if test "$ac_init_help" = "recursive"; then | |
1249 | # If there are subdirs, report their specific --help. | |
1250 | ac_popdir=`pwd` | |
1251 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1252 | test -d $ac_dir || continue | |
1253 | ac_builddir=. | |
1254 | ||
1255 | if test "$ac_dir" != .; then | |
1256 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1257 | # A "../" for each directory in $ac_dir_suffix. | |
1258 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1259 | else | |
1260 | ac_dir_suffix= ac_top_builddir= | |
1261 | fi | |
1262 | ||
1263 | case $srcdir in | |
1264 | .) # No --srcdir option. We are building in place. | |
1265 | ac_srcdir=. | |
1266 | if test -z "$ac_top_builddir"; then | |
1267 | ac_top_srcdir=. | |
1268 | else | |
1269 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1270 | fi ;; | |
1271 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1272 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1273 | ac_top_srcdir=$srcdir ;; | |
1274 | *) # Relative path. | |
1275 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1276 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1277 | esac | |
ac1cb8d3 VS |
1278 | |
1279 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1280 | # the directories may not exist. | |
1281 | case `pwd` in | |
1282 | .) ac_abs_builddir="$ac_dir";; | |
1283 | *) | |
1284 | case "$ac_dir" in | |
1285 | .) ac_abs_builddir=`pwd`;; | |
1286 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1287 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1288 | esac;; | |
1289 | esac | |
1290 | case $ac_abs_builddir in | |
1291 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1292 | *) | |
1293 | case ${ac_top_builddir}. in | |
1294 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1295 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1296 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1297 | esac;; | |
1298 | esac | |
1299 | case $ac_abs_builddir in | |
1300 | .) ac_abs_srcdir=$ac_srcdir;; | |
1301 | *) | |
1302 | case $ac_srcdir in | |
1303 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1304 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1305 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1306 | esac;; | |
1307 | esac | |
1308 | case $ac_abs_builddir in | |
1309 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1310 | *) | |
1311 | case $ac_top_srcdir in | |
1312 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1313 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1314 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1315 | esac;; | |
1316 | esac | |
a848cd7e SC |
1317 | |
1318 | cd $ac_dir | |
1319 | # Check for guested configure; otherwise get Cygnus style configure. | |
1320 | if test -f $ac_srcdir/configure.gnu; then | |
1321 | echo | |
1322 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1323 | elif test -f $ac_srcdir/configure; then | |
1324 | echo | |
1325 | $SHELL $ac_srcdir/configure --help=recursive | |
1326 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1327 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1328 | echo |
1329 | $ac_configure --help | |
1330 | else | |
1331 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1332 | fi | |
bb9e79c0 | 1333 | cd "$ac_popdir" |
a848cd7e SC |
1334 | done |
1335 | fi | |
1336 | ||
1337 | test -n "$ac_init_help" && exit 0 | |
1338 | if $ac_init_version; then | |
1339 | cat <<\_ACEOF | |
f1e3914f | 1340 | wxWidgets configure 2.7.1 |
ac1cb8d3 | 1341 | generated by GNU Autoconf 2.59 |
a848cd7e | 1342 | |
ac1cb8d3 | 1343 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1344 | This configure script is free software; the Free Software Foundation |
1345 | gives unlimited permission to copy, distribute and modify it. | |
1346 | _ACEOF | |
1347 | exit 0 | |
1348 | fi | |
1349 | exec 5>config.log | |
1350 | cat >&5 <<_ACEOF | |
1351 | This file contains any messages produced by compilers while | |
1352 | running configure, to aid debugging if configure makes a mistake. | |
1353 | ||
f1e3914f | 1354 | It was created by wxWidgets $as_me 2.7.1, which was |
ac1cb8d3 | 1355 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1356 | |
1357 | $ $0 $@ | |
1358 | ||
1359 | _ACEOF | |
1360 | { | |
1361 | cat <<_ASUNAME | |
1362 | ## --------- ## | |
1363 | ## Platform. ## | |
1364 | ## --------- ## | |
1365 | ||
1366 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1367 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1368 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1369 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1370 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1371 | ||
1372 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1373 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1374 | ||
1375 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1376 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1377 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1378 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1379 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1380 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1381 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1382 | ||
1383 | _ASUNAME | |
1384 | ||
1385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1386 | for as_dir in $PATH | |
1387 | do | |
1388 | IFS=$as_save_IFS | |
1389 | test -z "$as_dir" && as_dir=. | |
1390 | echo "PATH: $as_dir" | |
1391 | done | |
1392 | ||
1393 | } >&5 | |
1394 | ||
1395 | cat >&5 <<_ACEOF | |
1396 | ||
1397 | ||
1398 | ## ----------- ## | |
1399 | ## Core tests. ## | |
1400 | ## ----------- ## | |
1401 | ||
1402 | _ACEOF | |
1403 | ||
1404 | ||
1405 | # Keep a trace of the command line. | |
1406 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1407 | # Strip out --silent because we don't want to record it for future runs. | |
1408 | # Also quote any args containing shell meta-characters. | |
1409 | # Make two passes to allow for proper duplicate-argument suppression. | |
1410 | ac_configure_args= | |
1411 | ac_configure_args0= | |
1412 | ac_configure_args1= | |
1413 | ac_sep= | |
1414 | ac_must_keep_next=false | |
1415 | for ac_pass in 1 2 | |
1416 | do | |
1417 | for ac_arg | |
1418 | do | |
1419 | case $ac_arg in | |
1420 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1421 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1422 | | -silent | --silent | --silen | --sile | --sil) | |
1423 | continue ;; | |
1424 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1425 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1426 | esac | |
1427 | case $ac_pass in | |
1428 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1429 | 2) | |
1430 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1431 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1432 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1433 | else |
ac1cb8d3 VS |
1434 | case $ac_arg in |
1435 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1436 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1437 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1438 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1439 | case "$ac_configure_args0 " in | |
1440 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1441 | esac | |
1442 | ;; | |
1443 | -* ) ac_must_keep_next=true ;; | |
1444 | esac | |
a848cd7e SC |
1445 | fi |
1446 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1447 | # Get rid of the leading space. | |
1448 | ac_sep=" " | |
1449 | ;; | |
1450 | esac | |
1451 | done | |
1452 | done | |
1453 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1454 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1455 | ||
1456 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1457 | # config.log. We remove comments because anyway the quotes in there | |
1458 | # would cause problems or look ugly. | |
1459 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1460 | # such as our DU 5.0 friend, will then `close' the trap. | |
1461 | trap 'exit_status=$? | |
1462 | # Save into config.log some information that might help in debugging. | |
1463 | { | |
1464 | echo | |
1465 | ||
1466 | cat <<\_ASBOX | |
1467 | ## ---------------- ## | |
1468 | ## Cache variables. ## | |
1469 | ## ---------------- ## | |
1470 | _ASBOX | |
1471 | echo | |
1472 | # The following way of writing the cache mishandles newlines in values, | |
1473 | { | |
1474 | (set) 2>&1 | | |
1475 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1476 | *ac_space=\ *) | |
1477 | sed -n \ | |
ac1cb8d3 VS |
1478 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1479 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1480 | ;; |
1481 | *) | |
1482 | sed -n \ | |
ac1cb8d3 | 1483 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1484 | ;; |
1485 | esac; | |
1486 | } | |
1487 | echo | |
1488 | ||
1489 | cat <<\_ASBOX | |
1490 | ## ----------------- ## | |
1491 | ## Output variables. ## | |
1492 | ## ----------------- ## | |
1493 | _ASBOX | |
1494 | echo | |
1495 | for ac_var in $ac_subst_vars | |
1496 | do | |
1497 | eval ac_val=$`echo $ac_var` | |
1498 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1499 | done | sort | |
1500 | echo | |
1501 | ||
1502 | if test -n "$ac_subst_files"; then | |
1503 | cat <<\_ASBOX | |
1504 | ## ------------- ## | |
1505 | ## Output files. ## | |
1506 | ## ------------- ## | |
1507 | _ASBOX | |
1508 | echo | |
1509 | for ac_var in $ac_subst_files | |
1510 | do | |
1511 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1512 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1513 | done | sort |
1514 | echo | |
1515 | fi | |
1516 | ||
1517 | if test -s confdefs.h; then | |
1518 | cat <<\_ASBOX | |
1519 | ## ----------- ## | |
1520 | ## confdefs.h. ## | |
1521 | ## ----------- ## | |
1522 | _ASBOX | |
1523 | echo | |
1524 | sed "/^$/d" confdefs.h | sort | |
1525 | echo | |
1526 | fi | |
1527 | test "$ac_signal" != 0 && | |
1528 | echo "$as_me: caught signal $ac_signal" | |
1529 | echo "$as_me: exit $exit_status" | |
1530 | } >&5 | |
ac1cb8d3 | 1531 | rm -f core *.core && |
a848cd7e SC |
1532 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1533 | exit $exit_status | |
1534 | ' 0 | |
1535 | for ac_signal in 1 2 13 15; do | |
1536 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1537 | done | |
1538 | ac_signal=0 | |
1539 | ||
1540 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1541 | rm -rf conftest* confdefs.h | |
1542 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1543 | echo >confdefs.h | |
1544 | ||
1545 | # Predefined preprocessor variables. | |
1546 | ||
1547 | cat >>confdefs.h <<_ACEOF | |
1548 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1549 | _ACEOF | |
1550 | ||
1551 | ||
1552 | cat >>confdefs.h <<_ACEOF | |
1553 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1554 | _ACEOF | |
1555 | ||
1556 | ||
1557 | cat >>confdefs.h <<_ACEOF | |
1558 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1559 | _ACEOF | |
1560 | ||
1561 | ||
1562 | cat >>confdefs.h <<_ACEOF | |
1563 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1564 | _ACEOF | |
1565 | ||
1566 | ||
1567 | cat >>confdefs.h <<_ACEOF | |
1568 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1569 | _ACEOF | |
1570 | ||
1571 | ||
1572 | # Let the site file select an alternate cache file if it wants to. | |
1573 | # Prefer explicitly selected file to automatically selected ones. | |
1574 | if test -z "$CONFIG_SITE"; then | |
1575 | if test "x$prefix" != xNONE; then | |
1576 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1577 | else | |
1578 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1579 | fi | |
1580 | fi | |
1581 | for ac_site_file in $CONFIG_SITE; do | |
1582 | if test -r "$ac_site_file"; then | |
1583 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1584 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1585 | sed 's/^/| /' "$ac_site_file" >&5 | |
1586 | . "$ac_site_file" | |
1587 | fi | |
1588 | done | |
1589 | ||
1590 | if test -r "$cache_file"; then | |
1591 | # Some versions of bash will fail to source /dev/null (special | |
1592 | # files actually), so we avoid doing that. | |
1593 | if test -f "$cache_file"; then | |
1594 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1595 | echo "$as_me: loading cache $cache_file" >&6;} | |
1596 | case $cache_file in | |
1597 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1598 | *) . ./$cache_file;; | |
1599 | esac | |
1600 | fi | |
1601 | else | |
1602 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1603 | echo "$as_me: creating cache $cache_file" >&6;} | |
1604 | >$cache_file | |
1605 | fi | |
1606 | ||
1607 | # Check that the precious variables saved in the cache have kept the same | |
1608 | # value. | |
1609 | ac_cache_corrupted=false | |
1610 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1611 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1612 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1613 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1614 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1615 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1616 | case $ac_old_set,$ac_new_set in | |
1617 | set,) | |
1618 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1619 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1620 | ac_cache_corrupted=: ;; | |
1621 | ,set) | |
1622 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1623 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1624 | ac_cache_corrupted=: ;; | |
1625 | ,);; | |
1626 | *) | |
1627 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1628 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1629 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1630 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1631 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1632 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1633 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1634 | ac_cache_corrupted=: |
a848cd7e SC |
1635 | fi;; |
1636 | esac | |
1637 | # Pass precious variables to config.status. | |
1638 | if test "$ac_new_set" = set; then | |
1639 | case $ac_new_val in | |
1640 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1641 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1642 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1643 | esac | |
1644 | case " $ac_configure_args " in | |
1645 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1646 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1647 | esac | |
1648 | fi | |
1649 | done | |
1650 | if $ac_cache_corrupted; then | |
1651 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1652 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1653 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1654 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1655 | { (exit 1); exit 1; }; } | |
1656 | fi | |
1657 | ||
1658 | ac_ext=c | |
1659 | ac_cpp='$CPP $CPPFLAGS' | |
1660 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1661 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1662 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1663 | ||
1664 | ||
1665 | ||
1666 | ||
1667 | ||
1668 | ||
1669 | ||
1670 | ||
1671 | ||
1672 | ||
1673 | ||
1674 | ||
1675 | ||
1676 | ||
1677 | ||
1678 | ||
1679 | ||
1680 | ||
1681 | ||
1682 | ||
1683 | ||
1684 | ||
1685 | ||
1686 | ||
1687 | ||
1688 | ||
1689 | ||
1690 | ||
1691 | ||
1692 | ||
1693 | ac_aux_dir= | |
1694 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1695 | if test -f $ac_dir/install-sh; then | |
1696 | ac_aux_dir=$ac_dir | |
1697 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1698 | break | |
1699 | elif test -f $ac_dir/install.sh; then | |
1700 | ac_aux_dir=$ac_dir | |
1701 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1702 | break | |
1703 | elif test -f $ac_dir/shtool; then | |
1704 | ac_aux_dir=$ac_dir | |
1705 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1706 | break | |
1707 | fi | |
1708 | done | |
1709 | if test -z "$ac_aux_dir"; then | |
1710 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1711 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1712 | { (exit 1); exit 1; }; } | |
1713 | fi | |
1714 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1715 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1716 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1717 | ||
1718 | # Make sure we can run config.sub. | |
1719 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1720 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1721 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1722 | { (exit 1); exit 1; }; } | |
1723 | ||
1724 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1725 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1726 | if test "${ac_cv_build+set}" = set; then | |
1727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1728 | else | |
1729 | ac_cv_build_alias=$build_alias | |
1730 | test -z "$ac_cv_build_alias" && | |
1731 | ac_cv_build_alias=`$ac_config_guess` | |
1732 | test -z "$ac_cv_build_alias" && | |
1733 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1734 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1735 | { (exit 1); exit 1; }; } | |
1736 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1737 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1738 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1739 | { (exit 1); exit 1; }; } | |
1740 | ||
1741 | fi | |
1742 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1743 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1744 | build=$ac_cv_build | |
1745 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1746 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1747 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1748 | ||
1749 | ||
1750 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1751 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1752 | if test "${ac_cv_host+set}" = set; then | |
1753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1754 | else | |
1755 | ac_cv_host_alias=$host_alias | |
1756 | test -z "$ac_cv_host_alias" && | |
1757 | ac_cv_host_alias=$ac_cv_build_alias | |
1758 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1759 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1760 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1761 | { (exit 1); exit 1; }; } | |
1762 | ||
1763 | fi | |
1764 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1765 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1766 | host=$ac_cv_host | |
1767 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1768 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1769 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1770 | ||
1771 | ||
1772 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1773 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1774 | if test "${ac_cv_target+set}" = set; then | |
1775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1776 | else | |
1777 | ac_cv_target_alias=$target_alias | |
1778 | test "x$ac_cv_target_alias" = "x" && | |
1779 | ac_cv_target_alias=$ac_cv_host_alias | |
1780 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1781 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1782 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1783 | { (exit 1); exit 1; }; } | |
1784 | ||
1785 | fi | |
1786 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1787 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1788 | target=$ac_cv_target | |
1789 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1790 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1791 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1792 | ||
1793 | ||
1794 | # The aliases save the names the user supplied, while $host etc. | |
1795 | # will get canonicalized. | |
1796 | test -n "$target_alias" && | |
1797 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1798 | NONENONEs,x,x, && | |
1799 | program_prefix=${target_alias}- | |
1800 | ||
1801 | ||
1802 | ||
ceec2216 | 1803 | wx_major_version_number=2 |
dd8df4fc | 1804 | wx_minor_version_number=7 |
2add9e3c RD |
1805 | wx_release_number=2 |
1806 | wx_subrelease_number=0 | |
a848cd7e | 1807 | |
ceec2216 RL |
1808 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1809 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1810 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1811 | |
ceec2216 | 1812 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1813 | |
a848cd7e | 1814 | |
02b05020 VZ |
1815 | wx_top_builddir="`pwd`" |
1816 | ||
1817 | ||
a848cd7e SC |
1818 | |
1819 | ||
1820 | USE_UNIX=1 | |
1821 | USE_OS2=0 | |
1822 | USE_WIN32=0 | |
1823 | USE_DOS=0 | |
1824 | USE_BEOS=0 | |
1825 | USE_MAC=0 | |
1826 | ||
1827 | USE_AIX= | |
1828 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1829 | USE_GNU= USE_HPUX= | |
1830 | USE_LINUX= | |
1831 | USE_NETBSD= | |
1832 | USE_OPENBSD= | |
1833 | USE_OSF= USE_SGI= | |
1834 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1835 | USE_ULTRIX= | |
1836 | USE_UNIXWARE= | |
1837 | ||
1838 | USE_ALPHA= | |
1839 | ||
1840 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1841 | ||
b3c86150 | 1842 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB" |
a848cd7e SC |
1843 | |
1844 | DEFAULT_wxUSE_COCOA=0 | |
1845 | DEFAULT_wxUSE_GTK=0 | |
1846 | DEFAULT_wxUSE_MAC=0 | |
1847 | DEFAULT_wxUSE_MGL=0 | |
1848 | DEFAULT_wxUSE_MICROWIN=0 | |
1849 | DEFAULT_wxUSE_MOTIF=0 | |
1850 | DEFAULT_wxUSE_MSW=0 | |
1851 | DEFAULT_wxUSE_PM=0 | |
1852 | DEFAULT_wxUSE_X11=0 | |
b3c86150 | 1853 | DEFAULT_wxUSE_DFB=0 |
a848cd7e SC |
1854 | |
1855 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1856 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1857 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1858 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1859 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1860 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1861 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1862 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1863 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
b3c86150 | 1864 | DEFAULT_DEFAULT_wxUSE_DFB=0 |
a848cd7e SC |
1865 | |
1866 | PROGRAM_EXT= | |
1867 | SO_SUFFIX=so | |
1868 | SAMPLES_RPATH_FLAG= | |
1869 | SAMPLES_RPATH_POSTLINK= | |
1870 | ||
a03b8b04 RD |
1871 | DEFAULT_STD_FLAG=yes |
1872 | ||
a848cd7e SC |
1873 | case "${host}" in |
1874 | *-hp-hpux* ) | |
1875 | USE_HPUX=1 | |
1876 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1877 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1878 | SO_SUFFIX=sl | |
1879 | cat >>confdefs.h <<\_ACEOF | |
1880 | #define __HPUX__ 1 | |
1881 | _ACEOF | |
1882 | ||
2eef8513 | 1883 | |
c92ad099 | 1884 | CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS" |
a848cd7e SC |
1885 | ;; |
1886 | *-*-linux* ) | |
1887 | USE_LINUX=1 | |
1888 | cat >>confdefs.h <<\_ACEOF | |
1889 | #define __LINUX__ 1 | |
1890 | _ACEOF | |
1891 | ||
1892 | TMP=`uname -m` | |
1893 | if test "x$TMP" = "xalpha"; then | |
1894 | USE_ALPHA=1 | |
1895 | cat >>confdefs.h <<\_ACEOF | |
1896 | #define __ALPHA__ 1 | |
1897 | _ACEOF | |
1898 | ||
1899 | fi | |
1900 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1901 | ;; | |
1902 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1903 | USE_GNU=1 | |
1904 | TMP=`uname -m` | |
1905 | if test "x$TMP" = "xalpha"; then | |
1906 | USE_ALPHA=1 | |
1907 | cat >>confdefs.h <<\_ACEOF | |
1908 | #define __ALPHA__ 1 | |
1909 | _ACEOF | |
1910 | ||
1911 | fi | |
1912 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1913 | ;; | |
1914 | *-*-irix5* | *-*-irix6* ) | |
1915 | USE_SGI=1 | |
1916 | USE_SVR4=1 | |
1917 | cat >>confdefs.h <<\_ACEOF | |
1918 | #define __SGI__ 1 | |
1919 | _ACEOF | |
1920 | ||
1921 | cat >>confdefs.h <<\_ACEOF | |
1922 | #define __SVR4__ 1 | |
1923 | _ACEOF | |
1924 | ||
1925 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1926 | ;; | |
1927 | *-*-solaris2* ) | |
1928 | USE_SUN=1 | |
1929 | USE_SOLARIS=1 | |
1930 | USE_SVR4=1 | |
1931 | cat >>confdefs.h <<\_ACEOF | |
1932 | #define __SUN__ 1 | |
1933 | _ACEOF | |
1934 | ||
1935 | cat >>confdefs.h <<\_ACEOF | |
1936 | #define __SOLARIS__ 1 | |
1937 | _ACEOF | |
1938 | ||
1939 | cat >>confdefs.h <<\_ACEOF | |
1940 | #define __SVR4__ 1 | |
1941 | _ACEOF | |
1942 | ||
1943 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1944 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1945 | ;; | |
1946 | *-*-sunos4* ) | |
1947 | USE_SUN=1 | |
1948 | USE_SUNOS=1 | |
1949 | USE_BSD=1 | |
1950 | cat >>confdefs.h <<\_ACEOF | |
1951 | #define __SUN__ 1 | |
1952 | _ACEOF | |
1953 | ||
1954 | cat >>confdefs.h <<\_ACEOF | |
1955 | #define __SUNOS__ 1 | |
1956 | _ACEOF | |
1957 | ||
1958 | cat >>confdefs.h <<\_ACEOF | |
1959 | #define __BSD__ 1 | |
1960 | _ACEOF | |
1961 | ||
1962 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1963 | ;; | |
1964 | *-*-freebsd*) | |
1965 | USE_BSD=1 | |
1966 | USE_FREEBSD=1 | |
1967 | cat >>confdefs.h <<\_ACEOF | |
1968 | #define __FREEBSD__ 1 | |
1969 | _ACEOF | |
1970 | ||
1971 | cat >>confdefs.h <<\_ACEOF | |
1972 | #define __BSD__ 1 | |
1973 | _ACEOF | |
1974 | ||
1975 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1976 | ;; | |
c9a66001 | 1977 | *-*-openbsd*|*-*-mirbsd*) |
a848cd7e SC |
1978 | USE_BSD=1 |
1979 | USE_OPENBSD=1 | |
1980 | cat >>confdefs.h <<\_ACEOF | |
1981 | #define __OPENBSD__ 1 | |
1982 | _ACEOF | |
1983 | ||
1984 | cat >>confdefs.h <<\_ACEOF | |
1985 | #define __BSD__ 1 | |
1986 | _ACEOF | |
1987 | ||
1988 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1989 | ;; | |
1990 | *-*-netbsd*) | |
1991 | USE_BSD=1 | |
1992 | USE_NETBSD=1 | |
1993 | cat >>confdefs.h <<\_ACEOF | |
1994 | #define __NETBSD__ 1 | |
1995 | _ACEOF | |
1996 | ||
1997 | cat >>confdefs.h <<\_ACEOF | |
1998 | #define __BSD__ 1 | |
1999 | _ACEOF | |
2000 | ||
2001 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
728258f4 | 2002 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
def7c04a | 2003 | |
def7c04a | 2004 | CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS" |
a848cd7e SC |
2005 | ;; |
2006 | *-*-osf* ) | |
2007 | USE_ALPHA=1 | |
2008 | USE_OSF=1 | |
2009 | cat >>confdefs.h <<\_ACEOF | |
2010 | #define __ALPHA__ 1 | |
2011 | _ACEOF | |
2012 | ||
2013 | cat >>confdefs.h <<\_ACEOF | |
2014 | #define __OSF__ 1 | |
2015 | _ACEOF | |
2016 | ||
2017 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2018 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
2019 | ;; | |
2020 | *-*-dgux5* ) | |
2021 | USE_ALPHA=1 | |
2022 | USE_SVR4=1 | |
2023 | cat >>confdefs.h <<\_ACEOF | |
2024 | #define __ALPHA__ 1 | |
2025 | _ACEOF | |
2026 | ||
2027 | cat >>confdefs.h <<\_ACEOF | |
2028 | #define __SVR4__ 1 | |
2029 | _ACEOF | |
2030 | ||
2031 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2032 | ;; | |
2033 | *-*-sysv5* ) | |
2034 | USE_SYSV=1 | |
2035 | USE_SVR4=1 | |
2036 | cat >>confdefs.h <<\_ACEOF | |
2037 | #define __SYSV__ 1 | |
2038 | _ACEOF | |
2039 | ||
2040 | cat >>confdefs.h <<\_ACEOF | |
2041 | #define __SVR4__ 1 | |
2042 | _ACEOF | |
2043 | ||
2044 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2045 | ;; | |
2046 | *-*-aix* ) | |
2047 | USE_AIX=1 | |
2048 | USE_SYSV=1 | |
2049 | USE_SVR4=1 | |
2050 | SO_SUFFIX=a | |
2051 | cat >>confdefs.h <<\_ACEOF | |
2052 | #define __AIX__ 1 | |
2053 | _ACEOF | |
2054 | ||
2055 | cat >>confdefs.h <<\_ACEOF | |
2056 | #define __SYSV__ 1 | |
2057 | _ACEOF | |
2058 | ||
2059 | cat >>confdefs.h <<\_ACEOF | |
2060 | #define __SVR4__ 1 | |
2061 | _ACEOF | |
2062 | ||
2063 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2064 | ;; | |
2065 | ||
2066 | *-*-*UnixWare*) | |
2067 | USE_SYSV=1 | |
2068 | USE_SVR4=1 | |
2069 | USE_UNIXWARE=1 | |
2070 | cat >>confdefs.h <<\_ACEOF | |
2071 | #define __UNIXWARE__ 1 | |
2072 | _ACEOF | |
2073 | ||
2074 | ;; | |
2075 | ||
2076 | *-*-cygwin* | *-*-mingw32* ) | |
2077 | SO_SUFFIX=dll | |
2078 | PROGRAM_EXT=".exe" | |
a848cd7e SC |
2079 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
2080 | ;; | |
2081 | ||
2082 | *-pc-msdosdjgpp ) | |
2083 | USE_UNIX=0 | |
2084 | USE_DOS=1 | |
2085 | cat >>confdefs.h <<\_ACEOF | |
2086 | #define __DOS__ 1 | |
2087 | _ACEOF | |
2088 | ||
2089 | PROGRAM_EXT=".exe" | |
2090 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
2091 | ;; |
2092 | ||
2093 | *-pc-os2_emx | *-pc-os2-emx ) | |
2094 | cat >>confdefs.h <<\_ACEOF | |
2095 | #define __EMX__ 1 | |
2096 | _ACEOF | |
2097 | ||
2098 | USE_OS2=1 | |
2099 | cat >>confdefs.h <<\_ACEOF | |
2100 | #define __OS2__ 1 | |
2101 | _ACEOF | |
2102 | ||
2103 | PROGRAM_EXT=".exe" | |
2104 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
2105 | CXX=gcc | |
2106 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
2107 | ac_executable_extensions=".exe" | |
2108 | export ac_executable_extensions | |
2109 | ac_save_IFS="$IFS" | |
2110 | IFS='\\' | |
2111 | ac_TEMP_PATH= | |
2112 | for ac_dir in $PATH; do | |
2113 | IFS=$ac_save_IFS | |
2114 | if test -z "$ac_TEMP_PATH"; then | |
2115 | ac_TEMP_PATH="$ac_dir" | |
2116 | else | |
2117 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
2118 | fi | |
2119 | done | |
2120 | export PATH="$ac_TEMP_PATH" | |
2121 | unset ac_TEMP_PATH | |
a03b8b04 | 2122 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
2123 | ;; |
2124 | ||
cfda0ea8 | 2125 | *-*-darwin* ) |
a848cd7e SC |
2126 | USE_BSD=1 |
2127 | USE_DARWIN=1 | |
2128 | SO_SUFFIX=dylib | |
2129 | cat >>confdefs.h <<\_ACEOF | |
2130 | #define __BSD__ 1 | |
2131 | _ACEOF | |
2132 | ||
2133 | cat >>confdefs.h <<\_ACEOF | |
2134 | #define __DARWIN__ 1 | |
a848cd7e SC |
2135 | _ACEOF |
2136 | ||
2137 | cat >>confdefs.h <<\_ACEOF | |
2138 | #define TARGET_CARBON 1 | |
2139 | _ACEOF | |
2140 | ||
2141 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2142 | DEFAULT_STD_FLAG=no |
a848cd7e | 2143 | ;; |
1e9e8aba DE |
2144 | powerpc-apple-macos* ) |
2145 | USE_UNIX=0 | |
2146 | ac_cv_c_bigendian=yes | |
2147 | SO_SUFFIX=shlib | |
2148 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2149 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2150 | ;; |
a848cd7e SC |
2151 | |
2152 | *-*-beos* ) | |
2153 | USE_BEOS=1 | |
2154 | cat >>confdefs.h <<\_ACEOF | |
2155 | #define __BEOS__ 1 | |
2156 | _ACEOF | |
2157 | ||
2158 | ;; | |
2159 | ||
2160 | *) | |
c9a66001 VZ |
2161 | { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5 |
2162 | echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;} | |
2163 | { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5 | |
2164 | echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;} | |
5acfd58d MW |
2165 | |
2166 | DEFAULT_DEFAULT_wxUSE_X11=1 | |
2167 | DEFAULT_wxUSE_SHARED=no | |
a848cd7e SC |
2168 | esac |
2169 | ||
2170 | ||
2171 | ||
2172 | ||
2173 | wx_arg_cache_file="configarg.cache" | |
2174 | echo "loading argument cache $wx_arg_cache_file" | |
2175 | rm -f ${wx_arg_cache_file}.tmp | |
2176 | touch ${wx_arg_cache_file}.tmp | |
2177 | touch ${wx_arg_cache_file} | |
2178 | ||
2179 | ||
2180 | DEBUG_CONFIGURE=0 | |
2181 | if test $DEBUG_CONFIGURE = 1; then | |
2182 | DEFAULT_wxUSE_UNIVERSAL=no | |
2183 | DEFAULT_wxUSE_STL=no | |
2184 | ||
2185 | DEFAULT_wxUSE_NANOX=no | |
2186 | ||
2187 | DEFAULT_wxUSE_THREADS=yes | |
2188 | ||
5acfd58d | 2189 | DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes} |
a848cd7e SC |
2190 | DEFAULT_wxUSE_OPTIMISE=no |
2191 | DEFAULT_wxUSE_PROFILE=no | |
2192 | DEFAULT_wxUSE_NO_DEPS=no | |
2193 | DEFAULT_wxUSE_NO_RTTI=no | |
2194 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2195 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2196 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2197 | DEFAULT_wxUSE_PERMISSIVE=no |
2198 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2199 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2200 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2201 | DEFAULT_wxUSE_MEM_TRACING=no | |
2202 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2203 | DEFAULT_wxUSE_DMALLOC=no | |
2204 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2205 | ||
2206 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2207 | DEFAULT_wxUSE_LOG=yes | |
2208 | DEFAULT_wxUSE_LOGWINDOW=no | |
2209 | DEFAULT_wxUSE_LOGGUI=no | |
2210 | DEFAULT_wxUSE_LOGDIALOG=no | |
2211 | ||
2212 | DEFAULT_wxUSE_GUI=yes | |
2213 | DEFAULT_wxUSE_CONTROLS=no | |
2214 | ||
2215 | DEFAULT_wxUSE_REGEX=no | |
2216 | DEFAULT_wxUSE_XML=no | |
2217 | DEFAULT_wxUSE_EXPAT=no | |
2218 | DEFAULT_wxUSE_ZLIB=no | |
2219 | DEFAULT_wxUSE_LIBPNG=no | |
2220 | DEFAULT_wxUSE_LIBJPEG=no | |
2221 | DEFAULT_wxUSE_LIBTIFF=no | |
2222 | DEFAULT_wxUSE_LIBXPM=no | |
2223 | DEFAULT_wxUSE_LIBMSPACK=no | |
2224 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2225 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2226 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2227 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e SC |
2228 | DEFAULT_wxUSE_ODBC=no |
2229 | DEFAULT_wxUSE_OPENGL=no | |
2230 | ||
2231 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2232 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2233 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2234 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2235 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2236 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2237 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2238 | DEFAULT_wxUSE_DATETIME=no | |
2239 | DEFAULT_wxUSE_TIMER=no | |
2240 | DEFAULT_wxUSE_STOPWATCH=no | |
2241 | DEFAULT_wxUSE_FILE=no | |
2242 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2243 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2244 | DEFAULT_wxUSE_TEXTBUFFER=no |
2245 | DEFAULT_wxUSE_TEXTFILE=no | |
2246 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2247 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2248 | DEFAULT_wxUSE_GSTREAMER8=no |
8f3773fd | 2249 | DEFAULT_wxUSE_PRINTF_POS_PARAMS=no |
a848cd7e SC |
2250 | DEFAULT_wxUSE_INTL=no |
2251 | DEFAULT_wxUSE_CONFIG=no | |
2252 | DEFAULT_wxUSE_FONTMAP=no | |
2253 | DEFAULT_wxUSE_STREAMS=no | |
2254 | DEFAULT_wxUSE_SOCKETS=no | |
2255 | DEFAULT_wxUSE_OLE=no | |
2256 | DEFAULT_wxUSE_DATAOBJ=no | |
2257 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2258 | DEFAULT_wxUSE_JOYSTICK=no | |
2259 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2260 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2261 | DEFAULT_wxUSE_LONGLONG=no | |
2262 | DEFAULT_wxUSE_GEOMETRY=no | |
2263 | ||
2264 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2265 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2266 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2267 | ||
2268 | DEFAULT_wxUSE_CLIPBOARD=no | |
2269 | DEFAULT_wxUSE_TOOLTIPS=no | |
2270 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2271 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2272 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2273 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2274 | |
8a7b1113 | 2275 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2276 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2277 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2278 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2279 | ||
2280 | DEFAULT_wxUSE_RESOURCES=no | |
2281 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2282 | DEFAULT_wxUSE_IPC=no | |
2283 | DEFAULT_wxUSE_HELP=no | |
2284 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2285 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2286 | DEFAULT_wxUSE_TREELAYOUT=no | |
2287 | DEFAULT_wxUSE_METAFILE=no | |
2288 | DEFAULT_wxUSE_MIMETYPE=no | |
2289 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2290 | DEFAULT_wxUSE_PROTOCOL=no | |
2291 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2292 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2293 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2294 | DEFAULT_wxUSE_URL=no | |
ca5c6ac3 | 2295 | DEFAULT_wxUSE_VARIANT=no |
a848cd7e | 2296 | |
319c5ed4 | 2297 | DEFAULT_wxUSE_ABOUTDLG=no |
a848cd7e SC |
2298 | DEFAULT_wxUSE_COMMONDLGS=no |
2299 | DEFAULT_wxUSE_CHOICEDLG=no | |
2300 | DEFAULT_wxUSE_COLOURDLG=no | |
2301 | DEFAULT_wxUSE_DIRDLG=no | |
2302 | DEFAULT_wxUSE_FILEDLG=no | |
2303 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2304 | DEFAULT_wxUSE_FONTDLG=no | |
2305 | DEFAULT_wxUSE_MSGDLG=no | |
2306 | DEFAULT_wxUSE_NUMBERDLG=no | |
2307 | DEFAULT_wxUSE_TEXTDLG=no | |
2308 | DEFAULT_wxUSE_SPLASH=no | |
2309 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2310 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2311 | DEFAULT_wxUSE_WIZARDDLG=no | |
2312 | ||
2313 | DEFAULT_wxUSE_MENUS=no | |
2314 | DEFAULT_wxUSE_MINIFRAME=no | |
2315 | DEFAULT_wxUSE_HTML=no | |
91dea314 | 2316 | DEFAULT_wxUSE_RICHTEXT=no |
9a8f0513 | 2317 | DEFAULT_wxUSE_XRC=no |
3f60522a | 2318 | DEFAULT_wxUSE_AUI=no |
646b6ec1 | 2319 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2320 | DEFAULT_wxUSE_FILESYSTEM=no |
2321 | DEFAULT_wxUSE_FS_INET=no | |
2322 | DEFAULT_wxUSE_FS_ZIP=no | |
26e422a9 | 2323 | DEFAULT_wxUSE_FS_ARCHIVE=no |
a848cd7e | 2324 | DEFAULT_wxUSE_BUSYINFO=no |
9e8e867f | 2325 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2326 | DEFAULT_wxUSE_ZIPSTREAM=no |
26e422a9 | 2327 | DEFAULT_wxUSE_TARSTREAM=no |
a848cd7e SC |
2328 | DEFAULT_wxUSE_VALIDATORS=no |
2329 | ||
2330 | DEFAULT_wxUSE_ACCEL=no | |
3ea50042 | 2331 | DEFAULT_wxUSE_ANIMATIONCTRL=no |
a848cd7e SC |
2332 | DEFAULT_wxUSE_BUTTON=no |
2333 | DEFAULT_wxUSE_BMPBUTTON=no | |
95a46303 | 2334 | DEFAULT_wxUSE_BITMAPCOMBOBOX=no |
a848cd7e SC |
2335 | DEFAULT_wxUSE_CALCTRL=no |
2336 | DEFAULT_wxUSE_CARET=no | |
2337 | DEFAULT_wxUSE_CHECKBOX=no | |
2338 | DEFAULT_wxUSE_CHECKLST=no | |
2339 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2340 | DEFAULT_wxUSE_CHOICEBOOK=no |
bd915ace | 2341 | DEFAULT_wxUSE_COLLPANE=no |
e9263684 | 2342 | DEFAULT_wxUSE_COLOURPICKERCTRL=no |
a848cd7e | 2343 | DEFAULT_wxUSE_COMBOBOX=no |
a57d600f | 2344 | DEFAULT_wxUSE_COMBOCTRL=no |
da98e9be | 2345 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e | 2346 | DEFAULT_wxUSE_DISPLAY=no |
88bbc332 | 2347 | DEFAULT_wxUSE_DETECT_SM=no |
e9263684 VZ |
2348 | DEFAULT_wxUSE_DIRPICKERCTRL=no |
2349 | DEFAULT_wxUSE_FILEPICKERCTRL=no | |
2350 | DEFAULT_wxUSE_FONTPICKERCTRL=no | |
a848cd7e | 2351 | DEFAULT_wxUSE_GAUGE=no |
f43426c1 | 2352 | DEFAULT_wxUSE_GRAPHICS_CONTEXT=no |
a848cd7e | 2353 | DEFAULT_wxUSE_GRID=no |
6954625c | 2354 | DEFAULT_wxUSE_HYPERLINKCTRL=no |
20e34ecc | 2355 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2356 | DEFAULT_wxUSE_IMAGLIST=no |
2357 | DEFAULT_wxUSE_LISTBOOK=no | |
2358 | DEFAULT_wxUSE_LISTBOX=no | |
2359 | DEFAULT_wxUSE_LISTCTRL=no | |
2360 | DEFAULT_wxUSE_NOTEBOOK=no | |
a57d600f | 2361 | DEFAULT_wxUSE_ODCOMBOBOX=no |
a848cd7e SC |
2362 | DEFAULT_wxUSE_RADIOBOX=no |
2363 | DEFAULT_wxUSE_RADIOBTN=no | |
2364 | DEFAULT_wxUSE_SASH=no | |
2365 | DEFAULT_wxUSE_SCROLLBAR=no | |
2366 | DEFAULT_wxUSE_SLIDER=no | |
2367 | DEFAULT_wxUSE_SPINBTN=no | |
2368 | DEFAULT_wxUSE_SPINCTRL=no | |
2369 | DEFAULT_wxUSE_SPLITTER=no | |
2370 | DEFAULT_wxUSE_STATBMP=no | |
2371 | DEFAULT_wxUSE_STATBOX=no | |
2372 | DEFAULT_wxUSE_STATLINE=no | |
2373 | DEFAULT_wxUSE_STATTEXT=no | |
2374 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2375 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2376 | DEFAULT_wxUSE_TEXTCTRL=no |
2377 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2378 | DEFAULT_wxUSE_TOOLBAR=no | |
2379 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
0093c2fc | 2380 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 2381 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
2382 | DEFAULT_wxUSE_TREECTRL=no |
2383 | DEFAULT_wxUSE_POPUPWIN=no | |
2384 | DEFAULT_wxUSE_TIPWINDOW=no | |
2385 | ||
2386 | DEFAULT_wxUSE_UNICODE=no | |
2387 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2388 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2389 | ||
2390 | DEFAULT_wxUSE_PALETTE=no | |
2391 | DEFAULT_wxUSE_IMAGE=no | |
2392 | DEFAULT_wxUSE_GIF=no | |
2393 | DEFAULT_wxUSE_PCX=no | |
bb9e79c0 | 2394 | DEFAULT_wxUSE_TGA=no |
a848cd7e SC |
2395 | DEFAULT_wxUSE_PNM=no |
2396 | DEFAULT_wxUSE_IFF=no | |
2397 | DEFAULT_wxUSE_XPM=no | |
2398 | DEFAULT_wxUSE_ICO_CUR=no | |
2399 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2400 | ||
2401 | DEFAULT_wxUSE_MONOLITHIC=no | |
2402 | DEFAULT_wxUSE_PLUGINS=no | |
2403 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2404 | else | |
2405 | DEFAULT_wxUSE_UNIVERSAL=no | |
2406 | DEFAULT_wxUSE_STL=no | |
2407 | ||
2408 | DEFAULT_wxUSE_NANOX=no | |
2409 | ||
2410 | DEFAULT_wxUSE_THREADS=yes | |
2411 | ||
5acfd58d | 2412 | DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes} |
a848cd7e SC |
2413 | DEFAULT_wxUSE_OPTIMISE=yes |
2414 | DEFAULT_wxUSE_PROFILE=no | |
2415 | DEFAULT_wxUSE_NO_DEPS=no | |
2416 | DEFAULT_wxUSE_NO_RTTI=no | |
2417 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2418 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2419 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2420 | DEFAULT_wxUSE_PERMISSIVE=no |
2421 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2422 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2423 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2424 | DEFAULT_wxUSE_MEM_TRACING=no | |
2425 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2426 | DEFAULT_wxUSE_DMALLOC=no | |
2427 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2428 | ||
2429 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2430 | DEFAULT_wxUSE_LOG=yes | |
2431 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2432 | DEFAULT_wxUSE_LOGGUI=yes | |
2433 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2434 | ||
2435 | DEFAULT_wxUSE_GUI=yes | |
2436 | ||
2437 | DEFAULT_wxUSE_REGEX=yes | |
2438 | DEFAULT_wxUSE_XML=yes | |
2439 | DEFAULT_wxUSE_EXPAT=yes | |
2440 | DEFAULT_wxUSE_ZLIB=yes | |
2441 | DEFAULT_wxUSE_LIBPNG=yes | |
2442 | DEFAULT_wxUSE_LIBJPEG=yes | |
2443 | DEFAULT_wxUSE_LIBTIFF=yes | |
2444 | DEFAULT_wxUSE_LIBXPM=yes | |
2445 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2446 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2447 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2448 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2449 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e | 2450 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2451 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2452 | |
2453 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2454 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2455 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2456 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2457 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2458 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2459 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2460 | DEFAULT_wxUSE_DATETIME=yes | |
2461 | DEFAULT_wxUSE_TIMER=yes | |
2462 | DEFAULT_wxUSE_STOPWATCH=yes | |
2463 | DEFAULT_wxUSE_FILE=yes | |
2464 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2465 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2466 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2467 | DEFAULT_wxUSE_TEXTFILE=yes | |
2468 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2469 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2470 | DEFAULT_wxUSE_GSTREAMER8=no |
15291213 | 2471 | DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes |
a848cd7e SC |
2472 | DEFAULT_wxUSE_INTL=yes |
2473 | DEFAULT_wxUSE_CONFIG=yes | |
2474 | DEFAULT_wxUSE_FONTMAP=yes | |
2475 | DEFAULT_wxUSE_STREAMS=yes | |
2476 | DEFAULT_wxUSE_SOCKETS=yes | |
2477 | DEFAULT_wxUSE_OLE=yes | |
2478 | DEFAULT_wxUSE_DATAOBJ=yes | |
2479 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2480 | DEFAULT_wxUSE_JOYSTICK=yes | |
2481 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2482 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2483 | DEFAULT_wxUSE_LONGLONG=yes | |
2484 | DEFAULT_wxUSE_GEOMETRY=yes | |
2485 | ||
2486 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2487 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2488 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2489 | ||
2490 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2491 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2492 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2493 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2494 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2495 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2496 | |
8a7b1113 | 2497 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2498 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2499 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2500 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2501 | ||
2502 | DEFAULT_wxUSE_RESOURCES=no | |
2503 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2504 | DEFAULT_wxUSE_IPC=yes | |
2505 | DEFAULT_wxUSE_HELP=yes | |
2506 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2507 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2508 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2509 | DEFAULT_wxUSE_METAFILE=yes | |
2510 | DEFAULT_wxUSE_MIMETYPE=yes | |
2511 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2512 | DEFAULT_wxUSE_PROTOCOL=yes | |
2513 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2514 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2515 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2516 | DEFAULT_wxUSE_URL=yes | |
ca5c6ac3 | 2517 | DEFAULT_wxUSE_VARIANT=yes |
a848cd7e | 2518 | |
319c5ed4 | 2519 | DEFAULT_wxUSE_ABOUTDLG=yes |
a848cd7e SC |
2520 | DEFAULT_wxUSE_COMMONDLGS=yes |
2521 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2522 | DEFAULT_wxUSE_COLOURDLG=yes | |
2523 | DEFAULT_wxUSE_DIRDLG=yes | |
2524 | DEFAULT_wxUSE_FILEDLG=yes | |
2525 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2526 | DEFAULT_wxUSE_FONTDLG=yes | |
2527 | DEFAULT_wxUSE_MSGDLG=yes | |
2528 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2529 | DEFAULT_wxUSE_TEXTDLG=yes | |
2530 | DEFAULT_wxUSE_SPLASH=yes | |
2531 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2532 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2533 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2534 | ||
2535 | DEFAULT_wxUSE_MENUS=yes | |
2536 | DEFAULT_wxUSE_MINIFRAME=yes | |
2537 | DEFAULT_wxUSE_HTML=yes | |
91dea314 | 2538 | DEFAULT_wxUSE_RICHTEXT=yes |
9a8f0513 | 2539 | DEFAULT_wxUSE_XRC=yes |
3f60522a | 2540 | DEFAULT_wxUSE_AUI=yes |
646b6ec1 | 2541 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2542 | DEFAULT_wxUSE_FILESYSTEM=yes |
2543 | DEFAULT_wxUSE_FS_INET=yes | |
2544 | DEFAULT_wxUSE_FS_ZIP=yes | |
26e422a9 | 2545 | DEFAULT_wxUSE_FS_ARCHIVE=yes |
a848cd7e | 2546 | DEFAULT_wxUSE_BUSYINFO=yes |
9e8e867f | 2547 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2548 | DEFAULT_wxUSE_ZIPSTREAM=yes |
26e422a9 | 2549 | DEFAULT_wxUSE_TARSTREAM=yes |
a848cd7e SC |
2550 | DEFAULT_wxUSE_VALIDATORS=yes |
2551 | ||
2552 | DEFAULT_wxUSE_ACCEL=yes | |
3ea50042 | 2553 | DEFAULT_wxUSE_ANIMATIONCTRL=yes |
a848cd7e SC |
2554 | DEFAULT_wxUSE_BUTTON=yes |
2555 | DEFAULT_wxUSE_BMPBUTTON=yes | |
95a46303 | 2556 | DEFAULT_wxUSE_BITMAPCOMBOBOX=yes |
a848cd7e SC |
2557 | DEFAULT_wxUSE_CALCTRL=yes |
2558 | DEFAULT_wxUSE_CARET=yes | |
2559 | DEFAULT_wxUSE_CHECKBOX=yes | |
2560 | DEFAULT_wxUSE_CHECKLST=yes | |
2561 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2562 | DEFAULT_wxUSE_CHOICEBOOK=yes |
bd915ace | 2563 | DEFAULT_wxUSE_COLLPANE=yes |
e9263684 | 2564 | DEFAULT_wxUSE_COLOURPICKERCTRL=yes |
a848cd7e | 2565 | DEFAULT_wxUSE_COMBOBOX=yes |
a57d600f | 2566 | DEFAULT_wxUSE_COMBOCTRL=yes |
da98e9be | 2567 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e | 2568 | DEFAULT_wxUSE_DISPLAY=yes |
88bbc332 | 2569 | DEFAULT_wxUSE_DETECT_SM=yes |
e9263684 VZ |
2570 | DEFAULT_wxUSE_DIRPICKERCTRL=yes |
2571 | DEFAULT_wxUSE_FILEPICKERCTRL=yes | |
2572 | DEFAULT_wxUSE_FONTPICKERCTRL=yes | |
a848cd7e SC |
2573 | DEFAULT_wxUSE_GAUGE=yes |
2574 | DEFAULT_wxUSE_GRID=yes | |
f43426c1 | 2575 | DEFAULT_wxUSE_GRAPHICS_CONTEXT=no |
6954625c | 2576 | DEFAULT_wxUSE_HYPERLINKCTRL=yes |
20e34ecc | 2577 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2578 | DEFAULT_wxUSE_IMAGLIST=yes |
2579 | DEFAULT_wxUSE_LISTBOOK=yes | |
2580 | DEFAULT_wxUSE_LISTBOX=yes | |
2581 | DEFAULT_wxUSE_LISTCTRL=yes | |
2582 | DEFAULT_wxUSE_NOTEBOOK=yes | |
a57d600f | 2583 | DEFAULT_wxUSE_ODCOMBOBOX=yes |
a848cd7e SC |
2584 | DEFAULT_wxUSE_RADIOBOX=yes |
2585 | DEFAULT_wxUSE_RADIOBTN=yes | |
2586 | DEFAULT_wxUSE_SASH=yes | |
2587 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2588 | DEFAULT_wxUSE_SLIDER=yes | |
2589 | DEFAULT_wxUSE_SPINBTN=yes | |
2590 | DEFAULT_wxUSE_SPINCTRL=yes | |
2591 | DEFAULT_wxUSE_SPLITTER=yes | |
2592 | DEFAULT_wxUSE_STATBMP=yes | |
2593 | DEFAULT_wxUSE_STATBOX=yes | |
2594 | DEFAULT_wxUSE_STATLINE=yes | |
2595 | DEFAULT_wxUSE_STATTEXT=yes | |
2596 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2597 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2598 | DEFAULT_wxUSE_TEXTCTRL=yes |
2599 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2600 | DEFAULT_wxUSE_TOOLBAR=yes | |
2601 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
0093c2fc | 2602 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 2603 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
2604 | DEFAULT_wxUSE_TREECTRL=yes |
2605 | DEFAULT_wxUSE_POPUPWIN=yes | |
2606 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2607 | ||
78de529b | 2608 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2609 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2610 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2611 | ||
2612 | DEFAULT_wxUSE_PALETTE=yes | |
2613 | DEFAULT_wxUSE_IMAGE=yes | |
2614 | DEFAULT_wxUSE_GIF=yes | |
2615 | DEFAULT_wxUSE_PCX=yes | |
bb9e79c0 VZ |
2616 | DEFAULT_wxUSE_TGA=yes |
2617 | DEFAULT_wxUSE_IFF=no DEFAULT_wxUSE_PNM=yes | |
a848cd7e SC |
2618 | DEFAULT_wxUSE_XPM=yes |
2619 | DEFAULT_wxUSE_ICO_CUR=yes | |
2620 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2621 | ||
2622 | DEFAULT_wxUSE_MONOLITHIC=no | |
2623 | DEFAULT_wxUSE_PLUGINS=no | |
2624 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2625 | |
f34ca037 | 2626 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2627 | fi |
2628 | ||
2629 | ||
2630 | ||
f34ca037 | 2631 | |
a848cd7e SC |
2632 | for toolkit in `echo $ALL_TOOLKITS`; do |
2633 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2634 | if test "x$LINE" != "x" ; then | |
2635 | has_toolkit_in_cache=1 | |
2636 | eval "DEFAULT_$LINE" | |
2637 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2638 | |
2639 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2640 | if test "x$LINE" != "x" ; then | |
2641 | eval "DEFAULT_$LINE" | |
2642 | fi | |
a848cd7e SC |
2643 | fi |
2644 | done | |
2645 | ||
2646 | ||
2647 | ||
2648 | enablestring= | |
2649 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2650 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2651 | no_cache=0 | |
2652 | # Check whether --enable-gui or --disable-gui was given. | |
2653 | if test "${enable_gui+set}" = set; then | |
2654 | enableval="$enable_gui" | |
2655 | ||
2656 | if test "$enableval" = yes; then | |
2657 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2658 | else | |
2659 | ac_cv_use_gui='wxUSE_GUI=no' | |
2660 | fi | |
2661 | ||
2662 | else | |
2663 | ||
2664 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2665 | if test "x$LINE" != x ; then | |
2666 | eval "DEFAULT_$LINE" | |
2667 | else | |
2668 | no_cache=1 | |
2669 | fi | |
2670 | ||
2671 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2672 | ||
2673 | fi; | |
2674 | ||
2675 | eval "$ac_cv_use_gui" | |
2676 | if test "$no_cache" != 1; then | |
2677 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2678 | fi | |
2679 | ||
2680 | if test "$wxUSE_GUI" = yes; then | |
2681 | echo "$as_me:$LINENO: result: yes" >&5 | |
2682 | echo "${ECHO_T}yes" >&6 | |
2683 | else | |
2684 | echo "$as_me:$LINENO: result: no" >&5 | |
2685 | echo "${ECHO_T}no" >&6 | |
2686 | fi | |
2687 | ||
2688 | ||
2689 | enablestring= | |
2690 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2691 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2692 | no_cache=0 | |
2693 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2694 | if test "${enable_monolithic+set}" = set; then | |
2695 | enableval="$enable_monolithic" | |
2696 | ||
2697 | if test "$enableval" = yes; then | |
2698 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2699 | else | |
2700 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2701 | fi | |
2702 | ||
2703 | else | |
2704 | ||
2705 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2706 | if test "x$LINE" != x ; then | |
2707 | eval "DEFAULT_$LINE" | |
2708 | else | |
2709 | no_cache=1 | |
2710 | fi | |
2711 | ||
2712 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2713 | ||
2714 | fi; | |
2715 | ||
2716 | eval "$ac_cv_use_monolithic" | |
2717 | if test "$no_cache" != 1; then | |
2718 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2719 | fi | |
2720 | ||
2721 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2722 | echo "$as_me:$LINENO: result: yes" >&5 | |
2723 | echo "${ECHO_T}yes" >&6 | |
2724 | else | |
2725 | echo "$as_me:$LINENO: result: no" >&5 | |
2726 | echo "${ECHO_T}no" >&6 | |
2727 | fi | |
2728 | ||
2729 | ||
2730 | enablestring= | |
2731 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2732 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2733 | no_cache=0 | |
2734 | # Check whether --enable-plugins or --disable-plugins was given. | |
2735 | if test "${enable_plugins+set}" = set; then | |
2736 | enableval="$enable_plugins" | |
2737 | ||
2738 | if test "$enableval" = yes; then | |
2739 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2740 | else | |
2741 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2742 | fi | |
2743 | ||
2744 | else | |
2745 | ||
2746 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2747 | if test "x$LINE" != x ; then | |
2748 | eval "DEFAULT_$LINE" | |
2749 | else | |
2750 | no_cache=1 | |
2751 | fi | |
2752 | ||
2753 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2754 | ||
2755 | fi; | |
2756 | ||
2757 | eval "$ac_cv_use_plugins" | |
2758 | if test "$no_cache" != 1; then | |
2759 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2760 | fi | |
2761 | ||
2762 | if test "$wxUSE_PLUGINS" = yes; then | |
2763 | echo "$as_me:$LINENO: result: yes" >&5 | |
2764 | echo "${ECHO_T}yes" >&6 | |
2765 | else | |
2766 | echo "$as_me:$LINENO: result: no" >&5 | |
2767 | echo "${ECHO_T}no" >&6 | |
2768 | fi | |
2769 | ||
2770 | ||
1c14217d VZ |
2771 | withstring=without |
2772 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2773 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2774 | no_cache=0 | |
2775 | ||
2776 | # Check whether --with-subdirs or --without-subdirs was given. | |
2777 | if test "${with_subdirs+set}" = set; then | |
2778 | withval="$with_subdirs" | |
2779 | ||
2780 | if test "$withval" = yes; then | |
2781 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2782 | else | |
2783 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2784 | fi | |
2785 | ||
2786 | else | |
2787 | ||
2788 | LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}` | |
2789 | if test "x$LINE" != x ; then | |
2790 | eval "DEFAULT_$LINE" | |
2791 | else | |
2792 | no_cache=1 | |
2793 | fi | |
2794 | ||
2795 | ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2796 | ||
2797 | fi; | |
2798 | ||
2799 | eval "$ac_cv_use_subdirs" | |
2800 | if test "$no_cache" != 1; then | |
2801 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2802 | fi | |
2803 | ||
2804 | if test "$wxWITH_SUBDIRS" = yes; then | |
2805 | echo "$as_me:$LINENO: result: yes" >&5 | |
2806 | echo "${ECHO_T}yes" >&6 | |
2807 | else | |
2808 | echo "$as_me:$LINENO: result: no" >&5 | |
2809 | echo "${ECHO_T}no" >&6 | |
2810 | fi | |
2811 | ||
2812 | ||
a848cd7e SC |
2813 | if test "$wxUSE_GUI" = "yes"; then |
2814 | ||
2815 | ||
2816 | enablestring= | |
2817 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2818 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2819 | no_cache=0 | |
2820 | # Check whether --enable-universal or --disable-universal was given. | |
2821 | if test "${enable_universal+set}" = set; then | |
2822 | enableval="$enable_universal" | |
2823 | ||
2824 | if test "$enableval" = yes; then | |
2825 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2826 | else | |
2827 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2828 | fi | |
2829 | ||
2830 | else | |
2831 | ||
2832 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2833 | if test "x$LINE" != x ; then | |
2834 | eval "DEFAULT_$LINE" | |
2835 | else | |
2836 | no_cache=1 | |
2837 | fi | |
2838 | ||
2839 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2840 | ||
2841 | fi; | |
2842 | ||
2843 | eval "$ac_cv_use_universal" | |
2844 | if test "$no_cache" != 1; then | |
2845 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2846 | fi | |
2847 | ||
2848 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2849 | echo "$as_me:$LINENO: result: yes" >&5 | |
2850 | echo "${ECHO_T}yes" >&6 | |
2851 | else | |
2852 | echo "$as_me:$LINENO: result: no" >&5 | |
2853 | echo "${ECHO_T}no" >&6 | |
2854 | fi | |
2855 | ||
2856 | ||
2857 | # Check whether --with-gtk or --without-gtk was given. | |
2858 | if test "${with_gtk+set}" = set; then | |
2859 | withval="$with_gtk" | |
2860 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2861 | fi; | |
2862 | ||
2863 | # Check whether --with-motif or --without-motif was given. | |
2864 | if test "${with_motif+set}" = set; then | |
2865 | withval="$with_motif" | |
2866 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2867 | fi; | |
2868 | ||
2869 | # Check whether --with-mac or --without-mac was given. | |
2870 | if test "${with_mac+set}" = set; then | |
2871 | withval="$with_mac" | |
c228d3a4 | 2872 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2873 | fi; |
2874 | ||
2875 | # Check whether --with-cocoa or --without-cocoa was given. | |
2876 | if test "${with_cocoa+set}" = set; then | |
2877 | withval="$with_cocoa" | |
c228d3a4 | 2878 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2879 | fi; |
2880 | ||
2881 | # Check whether --with-wine or --without-wine was given. | |
2882 | if test "${with_wine+set}" = set; then | |
2883 | withval="$with_wine" | |
2884 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2885 | fi; | |
2886 | ||
2887 | # Check whether --with-msw or --without-msw was given. | |
2888 | if test "${with_msw+set}" = set; then | |
2889 | withval="$with_msw" | |
2890 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2891 | fi; | |
2892 | ||
2893 | # Check whether --with-pm or --without-pm was given. | |
2894 | if test "${with_pm+set}" = set; then | |
2895 | withval="$with_pm" | |
2896 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2897 | fi; | |
2898 | ||
2899 | # Check whether --with-mgl or --without-mgl was given. | |
2900 | if test "${with_mgl+set}" = set; then | |
2901 | withval="$with_mgl" | |
2902 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2903 | fi; | |
2904 | ||
b3c86150 VS |
2905 | # Check whether --with-directfb or --without-directfb was given. |
2906 | if test "${with_directfb+set}" = set; then | |
2907 | withval="$with_directfb" | |
2908 | wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1 | |
2909 | fi; | |
2910 | ||
a848cd7e SC |
2911 | # Check whether --with-microwin or --without-microwin was given. |
2912 | if test "${with_microwin+set}" = set; then | |
2913 | withval="$with_microwin" | |
2914 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2915 | fi; | |
2916 | ||
2917 | # Check whether --with-x11 or --without-x11 was given. | |
2918 | if test "${with_x11+set}" = set; then | |
2919 | withval="$with_x11" | |
2920 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2921 | fi; | |
2922 | ||
2923 | enablestring= | |
2924 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2925 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2926 | no_cache=0 | |
2927 | # Check whether --enable-nanox or --disable-nanox was given. | |
2928 | if test "${enable_nanox+set}" = set; then | |
2929 | enableval="$enable_nanox" | |
2930 | ||
2931 | if test "$enableval" = yes; then | |
2932 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2933 | else | |
2934 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2935 | fi | |
2936 | ||
2937 | else | |
2938 | ||
2939 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2940 | if test "x$LINE" != x ; then | |
2941 | eval "DEFAULT_$LINE" | |
2942 | else | |
2943 | no_cache=1 | |
2944 | fi | |
2945 | ||
2946 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2947 | ||
2948 | fi; | |
2949 | ||
2950 | eval "$ac_cv_use_nanox" | |
2951 | if test "$no_cache" != 1; then | |
2952 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2953 | fi | |
2954 | ||
2955 | if test "$wxUSE_NANOX" = yes; then | |
2956 | echo "$as_me:$LINENO: result: yes" >&5 | |
2957 | echo "${ECHO_T}yes" >&6 | |
2958 | else | |
2959 | echo "$as_me:$LINENO: result: no" >&5 | |
2960 | echo "${ECHO_T}no" >&6 | |
2961 | fi | |
2962 | ||
2963 | ||
f34ca037 MW |
2964 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2965 | if test "${enable_gtk2+set}" = set; then | |
2966 | enableval="$enable_gtk2" | |
2967 | wxUSE_GTK2="$enableval" | |
2968 | fi; | |
a848cd7e | 2969 | |
a848cd7e SC |
2970 | enablestring= |
2971 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2972 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2973 | no_cache=0 | |
2974 | # Check whether --enable-gpe or --disable-gpe was given. | |
2975 | if test "${enable_gpe+set}" = set; then | |
2976 | enableval="$enable_gpe" | |
2977 | ||
2978 | if test "$enableval" = yes; then | |
2979 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2980 | else | |
2981 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2982 | fi | |
2983 | ||
2984 | else | |
2985 | ||
2986 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2987 | if test "x$LINE" != x ; then | |
2988 | eval "DEFAULT_$LINE" | |
2989 | else | |
2990 | no_cache=1 | |
2991 | fi | |
2992 | ||
2993 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2994 | ||
2995 | fi; | |
2996 | ||
2997 | eval "$ac_cv_use_gpe" | |
2998 | if test "$no_cache" != 1; then | |
2999 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
3000 | fi | |
3001 | ||
3002 | if test "$wxUSE_GPE" = yes; then | |
3003 | echo "$as_me:$LINENO: result: yes" >&5 | |
3004 | echo "${ECHO_T}yes" >&6 | |
3005 | else | |
3006 | echo "$as_me:$LINENO: result: no" >&5 | |
3007 | echo "${ECHO_T}no" >&6 | |
3008 | fi | |
3009 | ||
3010 | ||
3011 | ||
3012 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
3013 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
3014 | no_cache=0 | |
3015 | ||
3016 | # Check whether --with-libpng or --without-libpng was given. | |
3017 | if test "${with_libpng+set}" = set; then | |
3018 | withval="$with_libpng" | |
3019 | ||
3020 | if test "$withval" = yes; then | |
3021 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
3022 | elif test "$withval" = no; then | |
3023 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
3024 | elif test "$withval" = sys; then | |
3025 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
3026 | elif test "$withval" = builtin; then | |
3027 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
3028 | else | |
3029 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
3030 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
3031 | { (exit 1); exit 1; }; } | |
3032 | fi | |
3033 | ||
3034 | else | |
3035 | ||
3036 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
3037 | if test "x$LINE" != x ; then | |
3038 | eval "DEFAULT_$LINE" | |
3039 | else | |
3040 | no_cache=1 | |
3041 | fi | |
3042 | ||
3043 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
3044 | ||
3045 | fi; | |
3046 | ||
3047 | eval "$ac_cv_use_libpng" | |
3048 | if test "$no_cache" != 1; then | |
3049 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
3050 | fi | |
3051 | ||
3052 | if test "$wxUSE_LIBPNG" = yes; then | |
3053 | echo "$as_me:$LINENO: result: yes" >&5 | |
3054 | echo "${ECHO_T}yes" >&6 | |
3055 | elif test "$wxUSE_LIBPNG" = no; then | |
3056 | echo "$as_me:$LINENO: result: no" >&5 | |
3057 | echo "${ECHO_T}no" >&6 | |
3058 | elif test "$wxUSE_LIBPNG" = sys; then | |
3059 | echo "$as_me:$LINENO: result: system version" >&5 | |
3060 | echo "${ECHO_T}system version" >&6 | |
3061 | elif test "$wxUSE_LIBPNG" = builtin; then | |
3062 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3063 | echo "${ECHO_T}builtin version" >&6 | |
3064 | else | |
3065 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
3066 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
3067 | { (exit 1); exit 1; }; } | |
3068 | fi | |
3069 | ||
3070 | ||
3071 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
3072 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
3073 | no_cache=0 | |
3074 | ||
3075 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
3076 | if test "${with_libjpeg+set}" = set; then | |
3077 | withval="$with_libjpeg" | |
3078 | ||
3079 | if test "$withval" = yes; then | |
3080 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
3081 | elif test "$withval" = no; then | |
3082 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
3083 | elif test "$withval" = sys; then | |
3084 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
3085 | elif test "$withval" = builtin; then | |
3086 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
3087 | else | |
3088 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
3089 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
3090 | { (exit 1); exit 1; }; } | |
3091 | fi | |
3092 | ||
3093 | else | |
3094 | ||
3095 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
3096 | if test "x$LINE" != x ; then | |
3097 | eval "DEFAULT_$LINE" | |
3098 | else | |
3099 | no_cache=1 | |
3100 | fi | |
3101 | ||
3102 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
3103 | ||
3104 | fi; | |
3105 | ||
3106 | eval "$ac_cv_use_libjpeg" | |
3107 | if test "$no_cache" != 1; then | |
3108 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
3109 | fi | |
3110 | ||
3111 | if test "$wxUSE_LIBJPEG" = yes; then | |
3112 | echo "$as_me:$LINENO: result: yes" >&5 | |
3113 | echo "${ECHO_T}yes" >&6 | |
3114 | elif test "$wxUSE_LIBJPEG" = no; then | |
3115 | echo "$as_me:$LINENO: result: no" >&5 | |
3116 | echo "${ECHO_T}no" >&6 | |
3117 | elif test "$wxUSE_LIBJPEG" = sys; then | |
3118 | echo "$as_me:$LINENO: result: system version" >&5 | |
3119 | echo "${ECHO_T}system version" >&6 | |
3120 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
3121 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3122 | echo "${ECHO_T}builtin version" >&6 | |
3123 | else | |
3124 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
3125 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
3126 | { (exit 1); exit 1; }; } | |
3127 | fi | |
3128 | ||
3129 | ||
3130 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
3131 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
3132 | no_cache=0 | |
3133 | ||
3134 | # Check whether --with-libtiff or --without-libtiff was given. | |
3135 | if test "${with_libtiff+set}" = set; then | |
3136 | withval="$with_libtiff" | |
3137 | ||
3138 | if test "$withval" = yes; then | |
3139 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
3140 | elif test "$withval" = no; then | |
3141 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
3142 | elif test "$withval" = sys; then | |
3143 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
3144 | elif test "$withval" = builtin; then | |
3145 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
3146 | else | |
3147 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
3148 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
3149 | { (exit 1); exit 1; }; } | |
3150 | fi | |
3151 | ||
3152 | else | |
3153 | ||
3154 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
3155 | if test "x$LINE" != x ; then | |
3156 | eval "DEFAULT_$LINE" | |
3157 | else | |
3158 | no_cache=1 | |
3159 | fi | |
3160 | ||
3161 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
3162 | ||
3163 | fi; | |
3164 | ||
3165 | eval "$ac_cv_use_libtiff" | |
3166 | if test "$no_cache" != 1; then | |
3167 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
3168 | fi | |
3169 | ||
3170 | if test "$wxUSE_LIBTIFF" = yes; then | |
3171 | echo "$as_me:$LINENO: result: yes" >&5 | |
3172 | echo "${ECHO_T}yes" >&6 | |
3173 | elif test "$wxUSE_LIBTIFF" = no; then | |
3174 | echo "$as_me:$LINENO: result: no" >&5 | |
3175 | echo "${ECHO_T}no" >&6 | |
3176 | elif test "$wxUSE_LIBTIFF" = sys; then | |
3177 | echo "$as_me:$LINENO: result: system version" >&5 | |
3178 | echo "${ECHO_T}system version" >&6 | |
3179 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
3180 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3181 | echo "${ECHO_T}builtin version" >&6 | |
3182 | else | |
3183 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
3184 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
3185 | { (exit 1); exit 1; }; } | |
3186 | fi | |
3187 | ||
3188 | ||
3189 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
3190 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
3191 | no_cache=0 | |
3192 | ||
3193 | # Check whether --with-libxpm or --without-libxpm was given. | |
3194 | if test "${with_libxpm+set}" = set; then | |
3195 | withval="$with_libxpm" | |
3196 | ||
3197 | if test "$withval" = yes; then | |
3198 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
3199 | elif test "$withval" = no; then | |
3200 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
3201 | elif test "$withval" = sys; then | |
3202 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
3203 | elif test "$withval" = builtin; then | |
3204 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
3205 | else | |
3206 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3207 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3208 | { (exit 1); exit 1; }; } | |
3209 | fi | |
3210 | ||
3211 | else | |
3212 | ||
3213 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3214 | if test "x$LINE" != x ; then | |
3215 | eval "DEFAULT_$LINE" | |
3216 | else | |
3217 | no_cache=1 | |
3218 | fi | |
3219 | ||
3220 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3221 | ||
3222 | fi; | |
3223 | ||
3224 | eval "$ac_cv_use_libxpm" | |
3225 | if test "$no_cache" != 1; then | |
3226 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3227 | fi | |
3228 | ||
3229 | if test "$wxUSE_LIBXPM" = yes; then | |
3230 | echo "$as_me:$LINENO: result: yes" >&5 | |
3231 | echo "${ECHO_T}yes" >&6 | |
3232 | elif test "$wxUSE_LIBXPM" = no; then | |
3233 | echo "$as_me:$LINENO: result: no" >&5 | |
3234 | echo "${ECHO_T}no" >&6 | |
3235 | elif test "$wxUSE_LIBXPM" = sys; then | |
3236 | echo "$as_me:$LINENO: result: system version" >&5 | |
3237 | echo "${ECHO_T}system version" >&6 | |
3238 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3239 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3240 | echo "${ECHO_T}builtin version" >&6 | |
3241 | else | |
3242 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3243 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3244 | { (exit 1); exit 1; }; } | |
3245 | fi | |
3246 | ||
3247 | ||
1c14217d VZ |
3248 | withstring= |
3249 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3250 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3251 | no_cache=0 |
3252 | ||
3253 | # Check whether --with-libmspack or --without-libmspack was given. | |
3254 | if test "${with_libmspack+set}" = set; then | |
3255 | withval="$with_libmspack" | |
3256 | ||
3257 | if test "$withval" = yes; then | |
3258 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3259 | else | |
3260 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3261 | fi | |
3262 | ||
3263 | else | |
3264 | ||
3265 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3266 | if test "x$LINE" != x ; then | |
3267 | eval "DEFAULT_$LINE" | |
3268 | else | |
3269 | no_cache=1 | |
3270 | fi | |
3271 | ||
3272 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3273 | ||
3274 | fi; | |
3275 | ||
3276 | eval "$ac_cv_use_libmspack" | |
3277 | if test "$no_cache" != 1; then | |
3278 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3279 | fi | |
3280 | ||
3281 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3282 | echo "$as_me:$LINENO: result: yes" >&5 | |
3283 | echo "${ECHO_T}yes" >&6 | |
3284 | else | |
3285 | echo "$as_me:$LINENO: result: no" >&5 | |
3286 | echo "${ECHO_T}no" >&6 | |
3287 | fi | |
3288 | ||
3289 | ||
1c14217d VZ |
3290 | withstring= |
3291 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3292 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3293 | no_cache=0 |
3294 | ||
3295 | # Check whether --with-sdl or --without-sdl was given. | |
3296 | if test "${with_sdl+set}" = set; then | |
3297 | withval="$with_sdl" | |
3298 | ||
3299 | if test "$withval" = yes; then | |
3300 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3301 | else | |
3302 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3303 | fi | |
3304 | ||
3305 | else | |
3306 | ||
3307 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3308 | if test "x$LINE" != x ; then | |
3309 | eval "DEFAULT_$LINE" | |
3310 | else | |
3311 | no_cache=1 | |
3312 | fi | |
3313 | ||
3314 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3315 | ||
3316 | fi; | |
3317 | ||
3318 | eval "$ac_cv_use_sdl" | |
3319 | if test "$no_cache" != 1; then | |
3320 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3321 | fi | |
3322 | ||
3323 | if test "$wxUSE_LIBSDL" = yes; then | |
3324 | echo "$as_me:$LINENO: result: yes" >&5 | |
3325 | echo "${ECHO_T}yes" >&6 | |
3326 | else | |
3327 | echo "$as_me:$LINENO: result: no" >&5 | |
3328 | echo "${ECHO_T}no" >&6 | |
3329 | fi | |
3330 | ||
3331 | ||
1c14217d VZ |
3332 | withstring= |
3333 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3334 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3335 | no_cache=0 |
3336 | ||
3337 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3338 | if test "${with_gnomeprint+set}" = set; then | |
3339 | withval="$with_gnomeprint" | |
3340 | ||
3341 | if test "$withval" = yes; then | |
3342 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3343 | else | |
3344 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3345 | fi | |
3346 | ||
3347 | else | |
3348 | ||
3349 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3350 | if test "x$LINE" != x ; then | |
3351 | eval "DEFAULT_$LINE" | |
3352 | else | |
3353 | no_cache=1 | |
3354 | fi | |
3355 | ||
3356 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3357 | ||
3358 | fi; | |
3359 | ||
3360 | eval "$ac_cv_use_gnomeprint" | |
3361 | if test "$no_cache" != 1; then | |
3362 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3363 | fi | |
3364 | ||
3365 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3366 | echo "$as_me:$LINENO: result: yes" >&5 | |
3367 | echo "${ECHO_T}yes" >&6 | |
3368 | else | |
3369 | echo "$as_me:$LINENO: result: no" >&5 | |
3370 | echo "${ECHO_T}no" >&6 | |
3371 | fi | |
3372 | ||
3373 | ||
2b850ae1 RR |
3374 | withstring= |
3375 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5 | |
3376 | echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6 | |
3377 | no_cache=0 | |
3378 | ||
3379 | # Check whether --with-gnomevfs or --without-gnomevfs was given. | |
3380 | if test "${with_gnomevfs+set}" = set; then | |
3381 | withval="$with_gnomevfs" | |
3382 | ||
3383 | if test "$withval" = yes; then | |
3384 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes' | |
3385 | else | |
3386 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no' | |
3387 | fi | |
3388 | ||
3389 | else | |
3390 | ||
3391 | LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}` | |
3392 | if test "x$LINE" != x ; then | |
3393 | eval "DEFAULT_$LINE" | |
3394 | else | |
3395 | no_cache=1 | |
3396 | fi | |
3397 | ||
3398 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS | |
3399 | ||
3400 | fi; | |
3401 | ||
3402 | eval "$ac_cv_use_gnomevfs" | |
3403 | if test "$no_cache" != 1; then | |
3404 | echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp | |
3405 | fi | |
3406 | ||
3407 | if test "$wxUSE_LIBGNOMEVFS" = yes; then | |
3408 | echo "$as_me:$LINENO: result: yes" >&5 | |
3409 | echo "${ECHO_T}yes" >&6 | |
3410 | else | |
3411 | echo "$as_me:$LINENO: result: no" >&5 | |
3412 | echo "${ECHO_T}no" >&6 | |
3413 | fi | |
3414 | ||
3415 | ||
3565d135 RR |
3416 | withstring= |
3417 | echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5 | |
3418 | echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6 | |
3419 | no_cache=0 | |
3420 | ||
3421 | # Check whether --with-hildon or --without-hildon was given. | |
3422 | if test "${with_hildon+set}" = set; then | |
3423 | withval="$with_hildon" | |
3424 | ||
3425 | if test "$withval" = yes; then | |
3426 | ac_cv_use_hildon='wxUSE_LIBHILDON=yes' | |
3427 | else | |
3428 | ac_cv_use_hildon='wxUSE_LIBHILDON=no' | |
3429 | fi | |
3430 | ||
3431 | else | |
3432 | ||
3433 | LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}` | |
3434 | if test "x$LINE" != x ; then | |
3435 | eval "DEFAULT_$LINE" | |
3436 | else | |
3437 | no_cache=1 | |
3438 | fi | |
3439 | ||
3440 | ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON | |
3441 | ||
3442 | fi; | |
3443 | ||
3444 | eval "$ac_cv_use_hildon" | |
3445 | if test "$no_cache" != 1; then | |
3446 | echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp | |
3447 | fi | |
3448 | ||
3449 | if test "$wxUSE_LIBHILDON" = yes; then | |
3450 | echo "$as_me:$LINENO: result: yes" >&5 | |
3451 | echo "${ECHO_T}yes" >&6 | |
3452 | else | |
3453 | echo "$as_me:$LINENO: result: no" >&5 | |
3454 | echo "${ECHO_T}no" >&6 | |
3455 | fi | |
3456 | ||
3457 | ||
1c14217d VZ |
3458 | withstring= |
3459 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3460 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3461 | no_cache=0 |
3462 | ||
3463 | # Check whether --with-opengl or --without-opengl was given. | |
3464 | if test "${with_opengl+set}" = set; then | |
3465 | withval="$with_opengl" | |
3466 | ||
3467 | if test "$withval" = yes; then | |
3468 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3469 | else | |
3470 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3471 | fi | |
3472 | ||
3473 | else | |
3474 | ||
3475 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3476 | if test "x$LINE" != x ; then | |
3477 | eval "DEFAULT_$LINE" | |
3478 | else | |
3479 | no_cache=1 | |
3480 | fi | |
3481 | ||
3482 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3483 | ||
3484 | fi; | |
3485 | ||
3486 | eval "$ac_cv_use_opengl" | |
3487 | if test "$no_cache" != 1; then | |
3488 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3489 | fi | |
3490 | ||
3491 | if test "$wxUSE_OPENGL" = yes; then | |
3492 | echo "$as_me:$LINENO: result: yes" >&5 | |
3493 | echo "${ECHO_T}yes" >&6 | |
3494 | else | |
3495 | echo "$as_me:$LINENO: result: no" >&5 | |
3496 | echo "${ECHO_T}no" >&6 | |
3497 | fi | |
3498 | ||
3499 | ||
4353a8df VZ |
3500 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
3501 | ||
3502 | # Check whether --with-themes or --without-themes was given. | |
3503 | if test "${with_themes+set}" = set; then | |
3504 | withval="$with_themes" | |
3505 | wxUNIV_THEMES="$withval" | |
3506 | fi; | |
3507 | fi | |
3508 | ||
a848cd7e SC |
3509 | fi |
3510 | ||
3511 | ||
1c14217d VZ |
3512 | withstring= |
3513 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3514 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3515 | no_cache=0 |
3516 | ||
3517 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3518 | if test "${with_dmalloc+set}" = set; then | |
3519 | withval="$with_dmalloc" | |
3520 | ||
3521 | if test "$withval" = yes; then | |
3522 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3523 | else | |
3524 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3525 | fi | |
3526 | ||
3527 | else | |
3528 | ||
3529 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3530 | if test "x$LINE" != x ; then | |
3531 | eval "DEFAULT_$LINE" | |
3532 | else | |
3533 | no_cache=1 | |
3534 | fi | |
3535 | ||
3536 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3537 | ||
3538 | fi; | |
3539 | ||
3540 | eval "$ac_cv_use_dmalloc" | |
3541 | if test "$no_cache" != 1; then | |
3542 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3543 | fi | |
3544 | ||
3545 | if test "$wxUSE_DMALLOC" = yes; then | |
3546 | echo "$as_me:$LINENO: result: yes" >&5 | |
3547 | echo "${ECHO_T}yes" >&6 | |
3548 | else | |
3549 | echo "$as_me:$LINENO: result: no" >&5 | |
3550 | echo "${ECHO_T}no" >&6 | |
3551 | fi | |
3552 | ||
3553 | ||
3554 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3555 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3556 | no_cache=0 | |
3557 | ||
3558 | # Check whether --with-regex or --without-regex was given. | |
3559 | if test "${with_regex+set}" = set; then | |
3560 | withval="$with_regex" | |
3561 | ||
3562 | if test "$withval" = yes; then | |
3563 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3564 | elif test "$withval" = no; then | |
3565 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3566 | elif test "$withval" = sys; then | |
3567 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3568 | elif test "$withval" = builtin; then | |
3569 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3570 | else | |
3571 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3572 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3573 | { (exit 1); exit 1; }; } | |
3574 | fi | |
3575 | ||
3576 | else | |
3577 | ||
3578 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3579 | if test "x$LINE" != x ; then | |
3580 | eval "DEFAULT_$LINE" | |
3581 | else | |
3582 | no_cache=1 | |
3583 | fi | |
3584 | ||
3585 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3586 | ||
3587 | fi; | |
3588 | ||
3589 | eval "$ac_cv_use_regex" | |
3590 | if test "$no_cache" != 1; then | |
3591 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3592 | fi | |
3593 | ||
3594 | if test "$wxUSE_REGEX" = yes; then | |
3595 | echo "$as_me:$LINENO: result: yes" >&5 | |
3596 | echo "${ECHO_T}yes" >&6 | |
3597 | elif test "$wxUSE_REGEX" = no; then | |
3598 | echo "$as_me:$LINENO: result: no" >&5 | |
3599 | echo "${ECHO_T}no" >&6 | |
3600 | elif test "$wxUSE_REGEX" = sys; then | |
3601 | echo "$as_me:$LINENO: result: system version" >&5 | |
3602 | echo "${ECHO_T}system version" >&6 | |
3603 | elif test "$wxUSE_REGEX" = builtin; then | |
3604 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3605 | echo "${ECHO_T}builtin version" >&6 | |
3606 | else | |
3607 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3608 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3609 | { (exit 1); exit 1; }; } | |
3610 | fi | |
3611 | ||
3612 | ||
3613 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3614 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3615 | no_cache=0 | |
3616 | ||
3617 | # Check whether --with-zlib or --without-zlib was given. | |
3618 | if test "${with_zlib+set}" = set; then | |
3619 | withval="$with_zlib" | |
3620 | ||
3621 | if test "$withval" = yes; then | |
3622 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3623 | elif test "$withval" = no; then | |
3624 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3625 | elif test "$withval" = sys; then | |
3626 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3627 | elif test "$withval" = builtin; then | |
3628 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3629 | else | |
3630 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3631 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3632 | { (exit 1); exit 1; }; } | |
3633 | fi | |
3634 | ||
3635 | else | |
3636 | ||
3637 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3638 | if test "x$LINE" != x ; then | |
3639 | eval "DEFAULT_$LINE" | |
3640 | else | |
3641 | no_cache=1 | |
3642 | fi | |
3643 | ||
3644 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3645 | ||
3646 | fi; | |
3647 | ||
3648 | eval "$ac_cv_use_zlib" | |
3649 | if test "$no_cache" != 1; then | |
3650 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3651 | fi | |
3652 | ||
3653 | if test "$wxUSE_ZLIB" = yes; then | |
3654 | echo "$as_me:$LINENO: result: yes" >&5 | |
3655 | echo "${ECHO_T}yes" >&6 | |
3656 | elif test "$wxUSE_ZLIB" = no; then | |
3657 | echo "$as_me:$LINENO: result: no" >&5 | |
3658 | echo "${ECHO_T}no" >&6 | |
3659 | elif test "$wxUSE_ZLIB" = sys; then | |
3660 | echo "$as_me:$LINENO: result: system version" >&5 | |
3661 | echo "${ECHO_T}system version" >&6 | |
3662 | elif test "$wxUSE_ZLIB" = builtin; then | |
3663 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3664 | echo "${ECHO_T}builtin version" >&6 | |
3665 | else | |
3666 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3667 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3668 | { (exit 1); exit 1; }; } | |
3669 | fi | |
3670 | ||
3671 | ||
3672 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3673 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3674 | no_cache=0 | |
3675 | ||
3676 | # Check whether --with-odbc or --without-odbc was given. | |
3677 | if test "${with_odbc+set}" = set; then | |
3678 | withval="$with_odbc" | |
3679 | ||
3680 | if test "$withval" = yes; then | |
3681 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3682 | elif test "$withval" = no; then | |
3683 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3684 | elif test "$withval" = sys; then | |
3685 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3686 | elif test "$withval" = builtin; then | |
3687 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3688 | else | |
3689 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3690 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3691 | { (exit 1); exit 1; }; } | |
3692 | fi | |
3693 | ||
3694 | else | |
3695 | ||
3696 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3697 | if test "x$LINE" != x ; then | |
3698 | eval "DEFAULT_$LINE" | |
3699 | else | |
3700 | no_cache=1 | |
3701 | fi | |
3702 | ||
3703 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3704 | ||
3705 | fi; | |
3706 | ||
3707 | eval "$ac_cv_use_odbc" | |
3708 | if test "$no_cache" != 1; then | |
3709 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3710 | fi | |
3711 | ||
3712 | if test "$wxUSE_ODBC" = yes; then | |
3713 | echo "$as_me:$LINENO: result: yes" >&5 | |
3714 | echo "${ECHO_T}yes" >&6 | |
3715 | elif test "$wxUSE_ODBC" = no; then | |
3716 | echo "$as_me:$LINENO: result: no" >&5 | |
3717 | echo "${ECHO_T}no" >&6 | |
3718 | elif test "$wxUSE_ODBC" = sys; then | |
3719 | echo "$as_me:$LINENO: result: system version" >&5 | |
3720 | echo "${ECHO_T}system version" >&6 | |
3721 | elif test "$wxUSE_ODBC" = builtin; then | |
3722 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3723 | echo "${ECHO_T}builtin version" >&6 | |
3724 | else | |
3725 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3726 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3727 | { (exit 1); exit 1; }; } | |
3728 | fi | |
3729 | ||
3730 | ||
3731 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3732 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3733 | no_cache=0 | |
3734 | ||
3735 | # Check whether --with-expat or --without-expat was given. | |
3736 | if test "${with_expat+set}" = set; then | |
3737 | withval="$with_expat" | |
3738 | ||
3739 | if test "$withval" = yes; then | |
3740 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3741 | elif test "$withval" = no; then | |
3742 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3743 | elif test "$withval" = sys; then | |
3744 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3745 | elif test "$withval" = builtin; then | |
3746 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3747 | else | |
3748 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3749 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3750 | { (exit 1); exit 1; }; } | |
3751 | fi | |
3752 | ||
3753 | else | |
3754 | ||
3755 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3756 | if test "x$LINE" != x ; then | |
3757 | eval "DEFAULT_$LINE" | |
3758 | else | |
3759 | no_cache=1 | |
3760 | fi | |
3761 | ||
3762 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3763 | ||
3764 | fi; | |
3765 | ||
3766 | eval "$ac_cv_use_expat" | |
3767 | if test "$no_cache" != 1; then | |
3768 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3769 | fi | |
3770 | ||
3771 | if test "$wxUSE_EXPAT" = yes; then | |
3772 | echo "$as_me:$LINENO: result: yes" >&5 | |
3773 | echo "${ECHO_T}yes" >&6 | |
3774 | elif test "$wxUSE_EXPAT" = no; then | |
3775 | echo "$as_me:$LINENO: result: no" >&5 | |
3776 | echo "${ECHO_T}no" >&6 | |
3777 | elif test "$wxUSE_EXPAT" = sys; then | |
3778 | echo "$as_me:$LINENO: result: system version" >&5 | |
3779 | echo "${ECHO_T}system version" >&6 | |
3780 | elif test "$wxUSE_EXPAT" = builtin; then | |
3781 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3782 | echo "${ECHO_T}builtin version" >&6 | |
3783 | else | |
3784 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3785 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3786 | { (exit 1); exit 1; }; } | |
3787 | fi | |
3788 | ||
3789 | ||
3790 | ||
3791 | ||
3792 | enablestring= | |
3793 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3794 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3795 | no_cache=0 | |
3796 | # Check whether --enable-shared or --disable-shared was given. | |
3797 | if test "${enable_shared+set}" = set; then | |
3798 | enableval="$enable_shared" | |
3799 | ||
3800 | if test "$enableval" = yes; then | |
3801 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3802 | else | |
3803 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3804 | fi | |
3805 | ||
3806 | else | |
3807 | ||
3808 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3809 | if test "x$LINE" != x ; then | |
3810 | eval "DEFAULT_$LINE" | |
3811 | else | |
3812 | no_cache=1 | |
3813 | fi | |
3814 | ||
3815 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3816 | ||
3817 | fi; | |
3818 | ||
3819 | eval "$ac_cv_use_shared" | |
3820 | if test "$no_cache" != 1; then | |
3821 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3822 | fi | |
3823 | ||
3824 | if test "$wxUSE_SHARED" = yes; then | |
3825 | echo "$as_me:$LINENO: result: yes" >&5 | |
3826 | echo "${ECHO_T}yes" >&6 | |
3827 | else | |
3828 | echo "$as_me:$LINENO: result: no" >&5 | |
3829 | echo "${ECHO_T}no" >&6 | |
3830 | fi | |
3831 | ||
3832 | ||
3833 | enablestring= | |
3834 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3835 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3836 | no_cache=0 | |
3837 | # Check whether --enable-optimise or --disable-optimise was given. | |
3838 | if test "${enable_optimise+set}" = set; then | |
3839 | enableval="$enable_optimise" | |
3840 | ||
3841 | if test "$enableval" = yes; then | |
3842 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3843 | else | |
3844 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3845 | fi | |
3846 | ||
3847 | else | |
3848 | ||
3849 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3850 | if test "x$LINE" != x ; then | |
3851 | eval "DEFAULT_$LINE" | |
3852 | else | |
3853 | no_cache=1 | |
3854 | fi | |
3855 | ||
3856 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3857 | ||
3858 | fi; | |
3859 | ||
3860 | eval "$ac_cv_use_optimise" | |
3861 | if test "$no_cache" != 1; then | |
3862 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3863 | fi | |
3864 | ||
3865 | if test "$wxUSE_OPTIMISE" = yes; then | |
3866 | echo "$as_me:$LINENO: result: yes" >&5 | |
3867 | echo "${ECHO_T}yes" >&6 | |
3868 | else | |
3869 | echo "$as_me:$LINENO: result: no" >&5 | |
3870 | echo "${ECHO_T}no" >&6 | |
3871 | fi | |
3872 | ||
3873 | ||
3874 | enablestring= | |
3875 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3876 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3877 | no_cache=0 | |
3878 | # Check whether --enable-debug or --disable-debug was given. | |
3879 | if test "${enable_debug+set}" = set; then | |
3880 | enableval="$enable_debug" | |
3881 | ||
3882 | if test "$enableval" = yes; then | |
3883 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3884 | else | |
3885 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3886 | fi | |
3887 | ||
3888 | else | |
3889 | ||
3890 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3891 | if test "x$LINE" != x ; then | |
3892 | eval "DEFAULT_$LINE" | |
3893 | else | |
3894 | no_cache=1 | |
3895 | fi | |
3896 | ||
3897 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3898 | ||
3899 | fi; | |
3900 | ||
3901 | eval "$ac_cv_use_debug" | |
3902 | if test "$no_cache" != 1; then | |
3903 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3904 | fi | |
3905 | ||
3906 | if test "$wxUSE_DEBUG" = yes; then | |
3907 | echo "$as_me:$LINENO: result: yes" >&5 | |
3908 | echo "${ECHO_T}yes" >&6 | |
3909 | else | |
3910 | echo "$as_me:$LINENO: result: no" >&5 | |
3911 | echo "${ECHO_T}no" >&6 | |
3912 | fi | |
3913 | ||
3914 | ||
3915 | enablestring= | |
3916 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3917 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3918 | no_cache=0 | |
3919 | # Check whether --enable-stl or --disable-stl was given. | |
3920 | if test "${enable_stl+set}" = set; then | |
3921 | enableval="$enable_stl" | |
3922 | ||
3923 | if test "$enableval" = yes; then | |
3924 | ac_cv_use_stl='wxUSE_STL=yes' | |
3925 | else | |
3926 | ac_cv_use_stl='wxUSE_STL=no' | |
3927 | fi | |
3928 | ||
3929 | else | |
3930 | ||
3931 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3932 | if test "x$LINE" != x ; then | |
3933 | eval "DEFAULT_$LINE" | |
3934 | else | |
3935 | no_cache=1 | |
3936 | fi | |
3937 | ||
3938 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3939 | ||
3940 | fi; | |
3941 | ||
3942 | eval "$ac_cv_use_stl" | |
3943 | if test "$no_cache" != 1; then | |
3944 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3945 | fi | |
3946 | ||
3947 | if test "$wxUSE_STL" = yes; then | |
3948 | echo "$as_me:$LINENO: result: yes" >&5 | |
3949 | echo "${ECHO_T}yes" >&6 | |
3950 | else | |
3951 | echo "$as_me:$LINENO: result: no" >&5 | |
3952 | echo "${ECHO_T}no" >&6 | |
3953 | fi | |
3954 | ||
3955 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3956 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3957 | |
3958 | enablestring= | |
3959 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3960 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3961 | no_cache=0 | |
3962 | # Check whether --enable-omf or --disable-omf was given. | |
3963 | if test "${enable_omf+set}" = set; then | |
3964 | enableval="$enable_omf" | |
3965 | ||
3966 | if test "$enableval" = yes; then | |
3967 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3968 | else | |
3969 | ac_cv_use_omf='wxUSE_OMF=no' | |
3970 | fi | |
3971 | ||
3972 | else | |
3973 | ||
3974 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3975 | if test "x$LINE" != x ; then | |
3976 | eval "DEFAULT_$LINE" | |
3977 | else | |
3978 | no_cache=1 | |
3979 | fi | |
3980 | ||
3981 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3982 | ||
3983 | fi; | |
3984 | ||
3985 | eval "$ac_cv_use_omf" | |
3986 | if test "$no_cache" != 1; then | |
3987 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3988 | fi | |
3989 | ||
3990 | if test "$wxUSE_OMF" = yes; then | |
3991 | echo "$as_me:$LINENO: result: yes" >&5 | |
3992 | echo "${ECHO_T}yes" >&6 | |
3993 | else | |
3994 | echo "$as_me:$LINENO: result: no" >&5 | |
3995 | echo "${ECHO_T}no" >&6 | |
3996 | fi | |
3997 | ||
3998 | fi | |
3999 | ||
4000 | if test "$wxUSE_DEBUG" = "yes"; then | |
4001 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
4002 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
4003 | BUILD=debug | |
4004 | elif test "$wxUSE_DEBUG" = "no"; then | |
4005 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
4006 | DEFAULT_wxUSE_DEBUG_INFO=no | |
4007 | BUILD=release | |
4008 | fi | |
4009 | ||
4010 | ||
4011 | enablestring= | |
4012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
4013 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
4014 | no_cache=0 | |
4015 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
4016 | if test "${enable_debug_flag+set}" = set; then | |
4017 | enableval="$enable_debug_flag" | |
4018 | ||
4019 | if test "$enableval" = yes; then | |
4020 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
4021 | else | |
4022 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
4023 | fi | |
4024 | ||
4025 | else | |
4026 | ||
4027 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
4028 | if test "x$LINE" != x ; then | |
4029 | eval "DEFAULT_$LINE" | |
4030 | else | |
4031 | no_cache=1 | |
4032 | fi | |
4033 | ||
4034 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
4035 | ||
4036 | fi; | |
4037 | ||
4038 | eval "$ac_cv_use_debug_flag" | |
4039 | if test "$no_cache" != 1; then | |
4040 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
4041 | fi | |
4042 | ||
4043 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
4044 | echo "$as_me:$LINENO: result: yes" >&5 | |
4045 | echo "${ECHO_T}yes" >&6 | |
4046 | else | |
4047 | echo "$as_me:$LINENO: result: no" >&5 | |
4048 | echo "${ECHO_T}no" >&6 | |
4049 | fi | |
4050 | ||
4051 | ||
4052 | enablestring= | |
4053 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
4054 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
4055 | no_cache=0 | |
4056 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
4057 | if test "${enable_debug_info+set}" = set; then | |
4058 | enableval="$enable_debug_info" | |
4059 | ||
4060 | if test "$enableval" = yes; then | |
4061 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
4062 | else | |
4063 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
4064 | fi | |
4065 | ||
4066 | else | |
4067 | ||
4068 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
4069 | if test "x$LINE" != x ; then | |
4070 | eval "DEFAULT_$LINE" | |
4071 | else | |
4072 | no_cache=1 | |
4073 | fi | |
4074 | ||
4075 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
4076 | ||
4077 | fi; | |
4078 | ||
4079 | eval "$ac_cv_use_debug_info" | |
4080 | if test "$no_cache" != 1; then | |
4081 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
4082 | fi | |
4083 | ||
4084 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
4085 | echo "$as_me:$LINENO: result: yes" >&5 | |
4086 | echo "${ECHO_T}yes" >&6 | |
4087 | else | |
4088 | echo "$as_me:$LINENO: result: no" >&5 | |
4089 | echo "${ECHO_T}no" >&6 | |
4090 | fi | |
4091 | ||
4092 | ||
4093 | enablestring= | |
4094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
4095 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
4096 | no_cache=0 | |
4097 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
4098 | if test "${enable_debug_gdb+set}" = set; then | |
4099 | enableval="$enable_debug_gdb" | |
4100 | ||
4101 | if test "$enableval" = yes; then | |
4102 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
4103 | else | |
4104 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
4105 | fi | |
4106 | ||
4107 | else | |
4108 | ||
4109 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
4110 | if test "x$LINE" != x ; then | |
4111 | eval "DEFAULT_$LINE" | |
4112 | else | |
4113 | no_cache=1 | |
4114 | fi | |
4115 | ||
4116 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
4117 | ||
4118 | fi; | |
4119 | ||
4120 | eval "$ac_cv_use_debug_gdb" | |
4121 | if test "$no_cache" != 1; then | |
4122 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
4123 | fi | |
4124 | ||
4125 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
4126 | echo "$as_me:$LINENO: result: yes" >&5 | |
4127 | echo "${ECHO_T}yes" >&6 | |
4128 | else | |
4129 | echo "$as_me:$LINENO: result: no" >&5 | |
4130 | echo "${ECHO_T}no" >&6 | |
4131 | fi | |
4132 | ||
4133 | ||
4134 | enablestring= | |
4135 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
4136 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
4137 | no_cache=0 | |
4138 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
4139 | if test "${enable_debug_cntxt+set}" = set; then | |
4140 | enableval="$enable_debug_cntxt" | |
4141 | ||
4142 | if test "$enableval" = yes; then | |
4143 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
4144 | else | |
4145 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
4146 | fi | |
4147 | ||
4148 | else | |
4149 | ||
4150 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
4151 | if test "x$LINE" != x ; then | |
4152 | eval "DEFAULT_$LINE" | |
4153 | else | |
4154 | no_cache=1 | |
4155 | fi | |
4156 | ||
4157 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
4158 | ||
4159 | fi; | |
4160 | ||
4161 | eval "$ac_cv_use_debug_cntxt" | |
4162 | if test "$no_cache" != 1; then | |
4163 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
4164 | fi | |
4165 | ||
4166 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
4167 | echo "$as_me:$LINENO: result: yes" >&5 | |
4168 | echo "${ECHO_T}yes" >&6 | |
4169 | else | |
4170 | echo "$as_me:$LINENO: result: no" >&5 | |
4171 | echo "${ECHO_T}no" >&6 | |
4172 | fi | |
4173 | ||
4174 | ||
4175 | enablestring= | |
4176 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
4177 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
4178 | no_cache=0 | |
4179 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
4180 | if test "${enable_mem_tracing+set}" = set; then | |
4181 | enableval="$enable_mem_tracing" | |
4182 | ||
4183 | if test "$enableval" = yes; then | |
4184 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
4185 | else | |
4186 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
4187 | fi | |
4188 | ||
4189 | else | |
4190 | ||
4191 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
4192 | if test "x$LINE" != x ; then | |
4193 | eval "DEFAULT_$LINE" | |
4194 | else | |
4195 | no_cache=1 | |
4196 | fi | |
4197 | ||
4198 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
4199 | ||
4200 | fi; | |
4201 | ||
4202 | eval "$ac_cv_use_mem_tracing" | |
4203 | if test "$no_cache" != 1; then | |
4204 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
4205 | fi | |
4206 | ||
4207 | if test "$wxUSE_MEM_TRACING" = yes; then | |
4208 | echo "$as_me:$LINENO: result: yes" >&5 | |
4209 | echo "${ECHO_T}yes" >&6 | |
4210 | else | |
4211 | echo "$as_me:$LINENO: result: no" >&5 | |
4212 | echo "${ECHO_T}no" >&6 | |
4213 | fi | |
4214 | ||
4215 | ||
4216 | enablestring= | |
4217 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
4218 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
4219 | no_cache=0 | |
4220 | # Check whether --enable-profile or --disable-profile was given. | |
4221 | if test "${enable_profile+set}" = set; then | |
4222 | enableval="$enable_profile" | |
4223 | ||
4224 | if test "$enableval" = yes; then | |
4225 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
4226 | else | |
4227 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
4228 | fi | |
4229 | ||
4230 | else | |
4231 | ||
4232 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
4233 | if test "x$LINE" != x ; then | |
4234 | eval "DEFAULT_$LINE" | |
4235 | else | |
4236 | no_cache=1 | |
4237 | fi | |
4238 | ||
4239 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
4240 | ||
4241 | fi; | |
4242 | ||
4243 | eval "$ac_cv_use_profile" | |
4244 | if test "$no_cache" != 1; then | |
4245 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
4246 | fi | |
4247 | ||
4248 | if test "$wxUSE_PROFILE" = yes; then | |
4249 | echo "$as_me:$LINENO: result: yes" >&5 | |
4250 | echo "${ECHO_T}yes" >&6 | |
4251 | else | |
4252 | echo "$as_me:$LINENO: result: no" >&5 | |
4253 | echo "${ECHO_T}no" >&6 | |
4254 | fi | |
4255 | ||
4256 | ||
4257 | enablestring= | |
4258 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
4259 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
4260 | no_cache=0 | |
4261 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
4262 | if test "${enable_no_rtti+set}" = set; then | |
4263 | enableval="$enable_no_rtti" | |
4264 | ||
4265 | if test "$enableval" = yes; then | |
4266 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
4267 | else | |
4268 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
4269 | fi | |
4270 | ||
4271 | else | |
4272 | ||
4273 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
4274 | if test "x$LINE" != x ; then | |
4275 | eval "DEFAULT_$LINE" | |
4276 | else | |
4277 | no_cache=1 | |
4278 | fi | |
4279 | ||
4280 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
4281 | ||
4282 | fi; | |
4283 | ||
4284 | eval "$ac_cv_use_no_rtti" | |
4285 | if test "$no_cache" != 1; then | |
4286 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
4287 | fi | |
4288 | ||
4289 | if test "$wxUSE_NO_RTTI" = yes; then | |
4290 | echo "$as_me:$LINENO: result: yes" >&5 | |
4291 | echo "${ECHO_T}yes" >&6 | |
4292 | else | |
4293 | echo "$as_me:$LINENO: result: no" >&5 | |
4294 | echo "${ECHO_T}no" >&6 | |
4295 | fi | |
4296 | ||
4297 | ||
4298 | enablestring= | |
4299 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
4300 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4301 | no_cache=0 | |
4302 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4303 | if test "${enable_no_exceptions+set}" = set; then | |
4304 | enableval="$enable_no_exceptions" | |
4305 | ||
4306 | if test "$enableval" = yes; then | |
4307 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4308 | else | |
4309 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4310 | fi | |
4311 | ||
4312 | else | |
4313 | ||
4314 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
4315 | if test "x$LINE" != x ; then | |
4316 | eval "DEFAULT_$LINE" | |
4317 | else | |
4318 | no_cache=1 | |
4319 | fi | |
4320 | ||
4321 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4322 | ||
4323 | fi; | |
4324 | ||
4325 | eval "$ac_cv_use_no_exceptions" | |
4326 | if test "$no_cache" != 1; then | |
4327 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4328 | fi | |
4329 | ||
4330 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4331 | echo "$as_me:$LINENO: result: yes" >&5 | |
4332 | echo "${ECHO_T}yes" >&6 | |
4333 | else | |
4334 | echo "$as_me:$LINENO: result: no" >&5 | |
4335 | echo "${ECHO_T}no" >&6 | |
4336 | fi | |
4337 | ||
4338 | ||
4339 | enablestring= | |
4340 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4341 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4342 | no_cache=0 | |
4343 | # Check whether --enable-permissive or --disable-permissive was given. | |
4344 | if test "${enable_permissive+set}" = set; then | |
4345 | enableval="$enable_permissive" | |
4346 | ||
4347 | if test "$enableval" = yes; then | |
4348 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4349 | else | |
4350 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4351 | fi | |
4352 | ||
4353 | else | |
4354 | ||
4355 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4356 | if test "x$LINE" != x ; then | |
4357 | eval "DEFAULT_$LINE" | |
4358 | else | |
4359 | no_cache=1 | |
4360 | fi | |
4361 | ||
4362 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4363 | ||
4364 | fi; | |
4365 | ||
4366 | eval "$ac_cv_use_permissive" | |
4367 | if test "$no_cache" != 1; then | |
4368 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4369 | fi | |
4370 | ||
4371 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4372 | echo "$as_me:$LINENO: result: yes" >&5 | |
4373 | echo "${ECHO_T}yes" >&6 | |
4374 | else | |
4375 | echo "$as_me:$LINENO: result: no" >&5 | |
4376 | echo "${ECHO_T}no" >&6 | |
4377 | fi | |
4378 | ||
4379 | ||
4380 | enablestring= | |
4381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4382 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4383 | no_cache=0 | |
4384 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4385 | if test "${enable_no_deps+set}" = set; then | |
4386 | enableval="$enable_no_deps" | |
4387 | ||
4388 | if test "$enableval" = yes; then | |
4389 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4390 | else | |
4391 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4392 | fi | |
4393 | ||
4394 | else | |
4395 | ||
4396 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4397 | if test "x$LINE" != x ; then | |
4398 | eval "DEFAULT_$LINE" | |
4399 | else | |
4400 | no_cache=1 | |
4401 | fi | |
4402 | ||
4403 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4404 | ||
4405 | fi; | |
4406 | ||
4407 | eval "$ac_cv_use_no_deps" | |
4408 | if test "$no_cache" != 1; then | |
4409 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4410 | fi | |
4411 | ||
4412 | if test "$wxUSE_NO_DEPS" = yes; then | |
4413 | echo "$as_me:$LINENO: result: yes" >&5 | |
4414 | echo "${ECHO_T}yes" >&6 | |
4415 | else | |
4416 | echo "$as_me:$LINENO: result: no" >&5 | |
4417 | echo "${ECHO_T}no" >&6 | |
4418 | fi | |
4419 | ||
4420 | ||
95768535 | 4421 | enablestring= |
7afc46ab KO |
4422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5 |
4423 | echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6 | |
4424 | no_cache=0 | |
4425 | # Check whether --enable-universal_binary or --disable-universal_binary was given. | |
4426 | if test "${enable_universal_binary+set}" = set; then | |
4427 | enableval="$enable_universal_binary" | |
4428 | ||
95768535 | 4429 | wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'" |
7afc46ab KO |
4430 | |
4431 | else | |
4432 | ||
4433 | LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}` | |
4434 | if test "x$LINE" != x ; then | |
4435 | eval "DEFAULT_$LINE" | |
95768535 | 4436 | wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY |
7afc46ab KO |
4437 | else |
4438 | no_cache=1 | |
95768535 | 4439 | wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no" |
7afc46ab KO |
4440 | fi |
4441 | ||
7afc46ab KO |
4442 | fi; |
4443 | ||
95768535 | 4444 | eval "$wx_cv_use_universal_binary" |
7afc46ab | 4445 | if test "$no_cache" != 1; then |
95768535 | 4446 | echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp |
7afc46ab KO |
4447 | fi |
4448 | ||
95768535 MW |
4449 | echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5 |
4450 | echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6 | |
7afc46ab KO |
4451 | |
4452 | ||
a848cd7e | 4453 | |
dee1a63f MB |
4454 | enablestring=enable |
4455 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4456 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
a848cd7e | 4457 | no_cache=0 |
dee1a63f MB |
4458 | # Check whether --enable-compat24 or --disable-compat24 was given. |
4459 | if test "${enable_compat24+set}" = set; then | |
4460 | enableval="$enable_compat24" | |
a848cd7e SC |
4461 | |
4462 | if test "$enableval" = yes; then | |
dee1a63f | 4463 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' |
a848cd7e | 4464 | else |
dee1a63f | 4465 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' |
a848cd7e SC |
4466 | fi |
4467 | ||
4468 | else | |
4469 | ||
dee1a63f | 4470 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
a848cd7e SC |
4471 | if test "x$LINE" != x ; then |
4472 | eval "DEFAULT_$LINE" | |
4473 | else | |
4474 | no_cache=1 | |
4475 | fi | |
4476 | ||
dee1a63f | 4477 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 |
a848cd7e SC |
4478 | |
4479 | fi; | |
4480 | ||
dee1a63f | 4481 | eval "$ac_cv_use_compat24" |
a848cd7e | 4482 | if test "$no_cache" != 1; then |
dee1a63f | 4483 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4484 | fi |
4485 | ||
dee1a63f | 4486 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then |
a848cd7e SC |
4487 | echo "$as_me:$LINENO: result: yes" >&5 |
4488 | echo "${ECHO_T}yes" >&6 | |
4489 | else | |
4490 | echo "$as_me:$LINENO: result: no" >&5 | |
4491 | echo "${ECHO_T}no" >&6 | |
4492 | fi | |
4493 | ||
4494 | ||
4495 | enablestring=disable | |
dee1a63f MB |
4496 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
4497 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6 | |
a848cd7e | 4498 | no_cache=0 |
dee1a63f MB |
4499 | # Check whether --enable-compat26 or --disable-compat26 was given. |
4500 | if test "${enable_compat26+set}" = set; then | |
4501 | enableval="$enable_compat26" | |
a848cd7e SC |
4502 | |
4503 | if test "$enableval" = yes; then | |
dee1a63f | 4504 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 4505 | else |
dee1a63f | 4506 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
4507 | fi |
4508 | ||
4509 | else | |
4510 | ||
dee1a63f | 4511 | LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}` |
a848cd7e SC |
4512 | if test "x$LINE" != x ; then |
4513 | eval "DEFAULT_$LINE" | |
4514 | else | |
4515 | no_cache=1 | |
4516 | fi | |
4517 | ||
dee1a63f | 4518 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
4519 | |
4520 | fi; | |
4521 | ||
dee1a63f | 4522 | eval "$ac_cv_use_compat26" |
a848cd7e | 4523 | if test "$no_cache" != 1; then |
dee1a63f | 4524 | echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4525 | fi |
4526 | ||
dee1a63f | 4527 | if test "$WXWIN_COMPATIBILITY_2_6" = yes; then |
a848cd7e SC |
4528 | echo "$as_me:$LINENO: result: yes" >&5 |
4529 | echo "${ECHO_T}yes" >&6 | |
4530 | else | |
4531 | echo "$as_me:$LINENO: result: no" >&5 | |
4532 | echo "${ECHO_T}no" >&6 | |
4533 | fi | |
4534 | ||
4535 | ||
ffa0583f RL |
4536 | |
4537 | enablestring= | |
4538 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4539 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4540 | no_cache=0 | |
4541 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4542 | if test "${enable_rpath+set}" = set; then |
4543 | enableval="$enable_rpath" | |
ffa0583f RL |
4544 | |
4545 | if test "$enableval" = yes; then | |
4546 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4547 | else | |
4548 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4549 | fi | |
4550 | ||
4551 | else | |
4552 | ||
4553 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4554 | if test "x$LINE" != x ; then | |
4555 | eval "DEFAULT_$LINE" | |
4556 | else | |
4557 | no_cache=1 | |
4558 | fi | |
4559 | ||
4560 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4561 | ||
a848cd7e SC |
4562 | fi; |
4563 | ||
ffa0583f RL |
4564 | eval "$ac_cv_use_rpath" |
4565 | if test "$no_cache" != 1; then | |
4566 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4567 | fi | |
4568 | ||
4569 | if test "$wxUSE_RPATH" = yes; then | |
4570 | echo "$as_me:$LINENO: result: yes" >&5 | |
4571 | echo "${ECHO_T}yes" >&6 | |
4572 | else | |
4573 | echo "$as_me:$LINENO: result: no" >&5 | |
4574 | echo "${ECHO_T}no" >&6 | |
4575 | fi | |
4576 | ||
a848cd7e SC |
4577 | |
4578 | ||
4579 | ||
4580 | ||
4581 | enablestring= | |
4582 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4583 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4584 | no_cache=0 | |
4585 | # Check whether --enable-intl or --disable-intl was given. | |
4586 | if test "${enable_intl+set}" = set; then | |
4587 | enableval="$enable_intl" | |
4588 | ||
4589 | if test "$enableval" = yes; then | |
4590 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4591 | else | |
4592 | ac_cv_use_intl='wxUSE_INTL=no' | |
4593 | fi | |
4594 | ||
4595 | else | |
4596 | ||
4597 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4598 | if test "x$LINE" != x ; then | |
4599 | eval "DEFAULT_$LINE" | |
4600 | else | |
4601 | no_cache=1 | |
4602 | fi | |
4603 | ||
4604 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4605 | ||
4606 | fi; | |
4607 | ||
4608 | eval "$ac_cv_use_intl" | |
4609 | if test "$no_cache" != 1; then | |
4610 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4611 | fi | |
4612 | ||
4613 | if test "$wxUSE_INTL" = yes; then | |
4614 | echo "$as_me:$LINENO: result: yes" >&5 | |
4615 | echo "${ECHO_T}yes" >&6 | |
4616 | else | |
4617 | echo "$as_me:$LINENO: result: no" >&5 | |
4618 | echo "${ECHO_T}no" >&6 | |
4619 | fi | |
4620 | ||
4621 | ||
4622 | enablestring= | |
4623 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4624 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4625 | no_cache=0 | |
4626 | # Check whether --enable-config or --disable-config was given. | |
4627 | if test "${enable_config+set}" = set; then | |
4628 | enableval="$enable_config" | |
4629 | ||
4630 | if test "$enableval" = yes; then | |
4631 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4632 | else | |
4633 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4634 | fi | |
4635 | ||
4636 | else | |
4637 | ||
4638 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4639 | if test "x$LINE" != x ; then | |
4640 | eval "DEFAULT_$LINE" | |
4641 | else | |
4642 | no_cache=1 | |
4643 | fi | |
4644 | ||
4645 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4646 | ||
4647 | fi; | |
4648 | ||
4649 | eval "$ac_cv_use_config" | |
4650 | if test "$no_cache" != 1; then | |
4651 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4652 | fi | |
4653 | ||
4654 | if test "$wxUSE_CONFIG" = yes; then | |
4655 | echo "$as_me:$LINENO: result: yes" >&5 | |
4656 | echo "${ECHO_T}yes" >&6 | |
4657 | else | |
4658 | echo "$as_me:$LINENO: result: no" >&5 | |
4659 | echo "${ECHO_T}no" >&6 | |
4660 | fi | |
4661 | ||
4662 | ||
4663 | ||
4664 | enablestring= | |
4665 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4666 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4667 | no_cache=0 | |
4668 | # Check whether --enable-protocols or --disable-protocols was given. | |
4669 | if test "${enable_protocols+set}" = set; then | |
4670 | enableval="$enable_protocols" | |
4671 | ||
4672 | if test "$enableval" = yes; then | |
4673 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4674 | else | |
4675 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4676 | fi | |
4677 | ||
4678 | else | |
4679 | ||
4680 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4681 | if test "x$LINE" != x ; then | |
4682 | eval "DEFAULT_$LINE" | |
4683 | else | |
4684 | no_cache=1 | |
4685 | fi | |
4686 | ||
4687 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4688 | ||
4689 | fi; | |
4690 | ||
4691 | eval "$ac_cv_use_protocols" | |
4692 | if test "$no_cache" != 1; then | |
4693 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4694 | fi | |
4695 | ||
4696 | if test "$wxUSE_PROTOCOL" = yes; then | |
4697 | echo "$as_me:$LINENO: result: yes" >&5 | |
4698 | echo "${ECHO_T}yes" >&6 | |
4699 | else | |
4700 | echo "$as_me:$LINENO: result: no" >&5 | |
4701 | echo "${ECHO_T}no" >&6 | |
4702 | fi | |
4703 | ||
4704 | ||
4705 | enablestring= | |
4706 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4707 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4708 | no_cache=0 | |
4709 | # Check whether --enable-ftp or --disable-ftp was given. | |
4710 | if test "${enable_ftp+set}" = set; then | |
4711 | enableval="$enable_ftp" | |
4712 | ||
4713 | if test "$enableval" = yes; then | |
4714 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4715 | else | |
4716 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4717 | fi | |
4718 | ||
4719 | else | |
4720 | ||
4721 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4722 | if test "x$LINE" != x ; then | |
4723 | eval "DEFAULT_$LINE" | |
4724 | else | |
4725 | no_cache=1 | |
4726 | fi | |
4727 | ||
4728 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4729 | ||
4730 | fi; | |
4731 | ||
4732 | eval "$ac_cv_use_ftp" | |
4733 | if test "$no_cache" != 1; then | |
4734 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4735 | fi | |
4736 | ||
4737 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4738 | echo "$as_me:$LINENO: result: yes" >&5 | |
4739 | echo "${ECHO_T}yes" >&6 | |
4740 | else | |
4741 | echo "$as_me:$LINENO: result: no" >&5 | |
4742 | echo "${ECHO_T}no" >&6 | |
4743 | fi | |
4744 | ||
4745 | ||
4746 | enablestring= | |
4747 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4748 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4749 | no_cache=0 | |
4750 | # Check whether --enable-http or --disable-http was given. | |
4751 | if test "${enable_http+set}" = set; then | |
4752 | enableval="$enable_http" | |
4753 | ||
4754 | if test "$enableval" = yes; then | |
4755 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4756 | else | |
4757 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4758 | fi | |
4759 | ||
4760 | else | |
4761 | ||
4762 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4763 | if test "x$LINE" != x ; then | |
4764 | eval "DEFAULT_$LINE" | |
4765 | else | |
4766 | no_cache=1 | |
4767 | fi | |
4768 | ||
4769 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4770 | ||
4771 | fi; | |
4772 | ||
4773 | eval "$ac_cv_use_http" | |
4774 | if test "$no_cache" != 1; then | |
4775 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4776 | fi | |
4777 | ||
4778 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4779 | echo "$as_me:$LINENO: result: yes" >&5 | |
4780 | echo "${ECHO_T}yes" >&6 | |
4781 | else | |
4782 | echo "$as_me:$LINENO: result: no" >&5 | |
4783 | echo "${ECHO_T}no" >&6 | |
4784 | fi | |
4785 | ||
4786 | ||
4787 | enablestring= | |
4788 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4789 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4790 | no_cache=0 | |
4791 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4792 | if test "${enable_fileproto+set}" = set; then | |
4793 | enableval="$enable_fileproto" | |
4794 | ||
4795 | if test "$enableval" = yes; then | |
4796 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4797 | else | |
4798 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4799 | fi | |
4800 | ||
4801 | else | |
4802 | ||
4803 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4804 | if test "x$LINE" != x ; then | |
4805 | eval "DEFAULT_$LINE" | |
4806 | else | |
4807 | no_cache=1 | |
4808 | fi | |
4809 | ||
4810 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4811 | ||
4812 | fi; | |
4813 | ||
4814 | eval "$ac_cv_use_fileproto" | |
4815 | if test "$no_cache" != 1; then | |
4816 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4817 | fi | |
4818 | ||
4819 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4820 | echo "$as_me:$LINENO: result: yes" >&5 | |
4821 | echo "${ECHO_T}yes" >&6 | |
4822 | else | |
4823 | echo "$as_me:$LINENO: result: no" >&5 | |
4824 | echo "${ECHO_T}no" >&6 | |
4825 | fi | |
4826 | ||
4827 | ||
4828 | enablestring= | |
4829 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4830 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4831 | no_cache=0 | |
4832 | # Check whether --enable-sockets or --disable-sockets was given. | |
4833 | if test "${enable_sockets+set}" = set; then | |
4834 | enableval="$enable_sockets" | |
4835 | ||
4836 | if test "$enableval" = yes; then | |
4837 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4838 | else | |
4839 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4840 | fi | |
4841 | ||
4842 | else | |
4843 | ||
4844 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4845 | if test "x$LINE" != x ; then | |
4846 | eval "DEFAULT_$LINE" | |
4847 | else | |
4848 | no_cache=1 | |
4849 | fi | |
4850 | ||
4851 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4852 | ||
4853 | fi; | |
4854 | ||
4855 | eval "$ac_cv_use_sockets" | |
4856 | if test "$no_cache" != 1; then | |
4857 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4858 | fi | |
4859 | ||
4860 | if test "$wxUSE_SOCKETS" = yes; then | |
4861 | echo "$as_me:$LINENO: result: yes" >&5 | |
4862 | echo "${ECHO_T}yes" >&6 | |
4863 | else | |
4864 | echo "$as_me:$LINENO: result: no" >&5 | |
4865 | echo "${ECHO_T}no" >&6 | |
4866 | fi | |
4867 | ||
4868 | ||
4869 | enablestring= | |
4870 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4871 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4872 | no_cache=0 | |
4873 | # Check whether --enable-ole or --disable-ole was given. | |
4874 | if test "${enable_ole+set}" = set; then | |
4875 | enableval="$enable_ole" | |
4876 | ||
4877 | if test "$enableval" = yes; then | |
4878 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4879 | else | |
4880 | ac_cv_use_ole='wxUSE_OLE=no' | |
4881 | fi | |
4882 | ||
4883 | else | |
4884 | ||
4885 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4886 | if test "x$LINE" != x ; then | |
4887 | eval "DEFAULT_$LINE" | |
4888 | else | |
4889 | no_cache=1 | |
4890 | fi | |
4891 | ||
4892 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4893 | ||
4894 | fi; | |
4895 | ||
4896 | eval "$ac_cv_use_ole" | |
4897 | if test "$no_cache" != 1; then | |
4898 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4899 | fi | |
4900 | ||
4901 | if test "$wxUSE_OLE" = yes; then | |
4902 | echo "$as_me:$LINENO: result: yes" >&5 | |
4903 | echo "${ECHO_T}yes" >&6 | |
4904 | else | |
4905 | echo "$as_me:$LINENO: result: no" >&5 | |
4906 | echo "${ECHO_T}no" >&6 | |
4907 | fi | |
4908 | ||
4909 | ||
4910 | enablestring= | |
4911 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4912 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4913 | no_cache=0 | |
4914 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4915 | if test "${enable_dataobj+set}" = set; then | |
4916 | enableval="$enable_dataobj" | |
4917 | ||
4918 | if test "$enableval" = yes; then | |
4919 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4920 | else | |
4921 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4922 | fi | |
4923 | ||
4924 | else | |
4925 | ||
4926 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4927 | if test "x$LINE" != x ; then | |
4928 | eval "DEFAULT_$LINE" | |
4929 | else | |
4930 | no_cache=1 | |
4931 | fi | |
4932 | ||
4933 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4934 | ||
4935 | fi; | |
4936 | ||
4937 | eval "$ac_cv_use_dataobj" | |
4938 | if test "$no_cache" != 1; then | |
4939 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4940 | fi | |
4941 | ||
4942 | if test "$wxUSE_DATAOBJ" = yes; then | |
4943 | echo "$as_me:$LINENO: result: yes" >&5 | |
4944 | echo "${ECHO_T}yes" >&6 | |
4945 | else | |
4946 | echo "$as_me:$LINENO: result: no" >&5 | |
4947 | echo "${ECHO_T}no" >&6 | |
4948 | fi | |
4949 | ||
4950 | ||
4951 | ||
4952 | enablestring= | |
4953 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4954 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4955 | no_cache=0 | |
4956 | # Check whether --enable-ipc or --disable-ipc was given. | |
4957 | if test "${enable_ipc+set}" = set; then | |
4958 | enableval="$enable_ipc" | |
4959 | ||
4960 | if test "$enableval" = yes; then | |
4961 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4962 | else | |
4963 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4964 | fi | |
4965 | ||
4966 | else | |
4967 | ||
4968 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4969 | if test "x$LINE" != x ; then | |
4970 | eval "DEFAULT_$LINE" | |
4971 | else | |
4972 | no_cache=1 | |
4973 | fi | |
4974 | ||
4975 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4976 | ||
4977 | fi; | |
4978 | ||
4979 | eval "$ac_cv_use_ipc" | |
4980 | if test "$no_cache" != 1; then | |
4981 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4982 | fi | |
4983 | ||
4984 | if test "$wxUSE_IPC" = yes; then | |
4985 | echo "$as_me:$LINENO: result: yes" >&5 | |
4986 | echo "${ECHO_T}yes" >&6 | |
4987 | else | |
4988 | echo "$as_me:$LINENO: result: no" >&5 | |
4989 | echo "${ECHO_T}no" >&6 | |
4990 | fi | |
4991 | ||
4992 | ||
4993 | ||
4994 | enablestring= | |
4995 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4996 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4997 | no_cache=0 | |
4998 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4999 | if test "${enable_apple_ieee+set}" = set; then | |
5000 | enableval="$enable_apple_ieee" | |
5001 | ||
5002 | if test "$enableval" = yes; then | |
5003 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
5004 | else | |
5005 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
5006 | fi | |
5007 | ||
5008 | else | |
5009 | ||
5010 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
5011 | if test "x$LINE" != x ; then | |
5012 | eval "DEFAULT_$LINE" | |
5013 | else | |
5014 | no_cache=1 | |
5015 | fi | |
5016 | ||
5017 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
5018 | ||
5019 | fi; | |
5020 | ||
5021 | eval "$ac_cv_use_apple_ieee" | |
5022 | if test "$no_cache" != 1; then | |
5023 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
5024 | fi | |
5025 | ||
5026 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
5027 | echo "$as_me:$LINENO: result: yes" >&5 | |
5028 | echo "${ECHO_T}yes" >&6 | |
5029 | else | |
5030 | echo "$as_me:$LINENO: result: no" >&5 | |
5031 | echo "${ECHO_T}no" >&6 | |
5032 | fi | |
5033 | ||
5034 | ||
81f90336 MW |
5035 | enablestring= |
5036 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
5037 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
5038 | no_cache=0 | |
5039 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
5040 | if test "${enable_arcstream+set}" = set; then | |
5041 | enableval="$enable_arcstream" | |
5042 | ||
5043 | if test "$enableval" = yes; then | |
9e8e867f | 5044 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 5045 | else |
9e8e867f | 5046 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
5047 | fi |
5048 | ||
5049 | else | |
5050 | ||
9e8e867f | 5051 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
5052 | if test "x$LINE" != x ; then |
5053 | eval "DEFAULT_$LINE" | |
5054 | else | |
5055 | no_cache=1 | |
5056 | fi | |
5057 | ||
9e8e867f | 5058 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
5059 | |
5060 | fi; | |
5061 | ||
5062 | eval "$ac_cv_use_arcstream" | |
5063 | if test "$no_cache" != 1; then | |
5064 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
5065 | fi | |
5066 | ||
9e8e867f | 5067 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
5068 | echo "$as_me:$LINENO: result: yes" >&5 |
5069 | echo "${ECHO_T}yes" >&6 | |
5070 | else | |
5071 | echo "$as_me:$LINENO: result: no" >&5 | |
5072 | echo "${ECHO_T}no" >&6 | |
5073 | fi | |
5074 | ||
5075 | ||
a848cd7e | 5076 | enablestring= |
36b6448c VZ |
5077 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
5078 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 5079 | no_cache=0 |
36b6448c VZ |
5080 | # Check whether --enable-backtrace or --disable-backtrace was given. |
5081 | if test "${enable_backtrace+set}" = set; then | |
5082 | enableval="$enable_backtrace" | |
a848cd7e SC |
5083 | |
5084 | if test "$enableval" = yes; then | |
36b6448c | 5085 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 5086 | else |
36b6448c | 5087 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
5088 | fi |
5089 | ||
5090 | else | |
5091 | ||
36b6448c | 5092 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
5093 | if test "x$LINE" != x ; then |
5094 | eval "DEFAULT_$LINE" | |
5095 | else | |
5096 | no_cache=1 | |
5097 | fi | |
5098 | ||
36b6448c | 5099 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
5100 | |
5101 | fi; | |
5102 | ||
36b6448c | 5103 | eval "$ac_cv_use_backtrace" |
a848cd7e | 5104 | if test "$no_cache" != 1; then |
36b6448c | 5105 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5106 | fi |
5107 | ||
36b6448c | 5108 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
5109 | echo "$as_me:$LINENO: result: yes" >&5 |
5110 | echo "${ECHO_T}yes" >&6 | |
5111 | else | |
5112 | echo "$as_me:$LINENO: result: no" >&5 | |
5113 | echo "${ECHO_T}no" >&6 | |
5114 | fi | |
5115 | ||
5116 | ||
eaff0f0d | 5117 | enablestring= |
36b6448c VZ |
5118 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
5119 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 5120 | no_cache=0 |
36b6448c VZ |
5121 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
5122 | if test "${enable_catch_segvs+set}" = set; then | |
5123 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
5124 | |
5125 | if test "$enableval" = yes; then | |
36b6448c | 5126 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 5127 | else |
36b6448c | 5128 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
5129 | fi |
5130 | ||
5131 | else | |
5132 | ||
36b6448c | 5133 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
5134 | if test "x$LINE" != x ; then |
5135 | eval "DEFAULT_$LINE" | |
5136 | else | |
5137 | no_cache=1 | |
5138 | fi | |
5139 | ||
36b6448c | 5140 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
5141 | |
5142 | fi; | |
5143 | ||
36b6448c | 5144 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 5145 | if test "$no_cache" != 1; then |
36b6448c | 5146 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
5147 | fi |
5148 | ||
36b6448c | 5149 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
5150 | echo "$as_me:$LINENO: result: yes" >&5 |
5151 | echo "${ECHO_T}yes" >&6 | |
5152 | else | |
5153 | echo "$as_me:$LINENO: result: no" >&5 | |
5154 | echo "${ECHO_T}no" >&6 | |
5155 | fi | |
5156 | ||
5157 | ||
a848cd7e SC |
5158 | enablestring= |
5159 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
5160 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
5161 | no_cache=0 | |
5162 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
5163 | if test "${enable_cmdline+set}" = set; then | |
5164 | enableval="$enable_cmdline" | |
5165 | ||
5166 | if test "$enableval" = yes; then | |
5167 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
5168 | else | |
5169 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
5170 | fi | |
5171 | ||
5172 | else | |
5173 | ||
5174 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
5175 | if test "x$LINE" != x ; then | |
5176 | eval "DEFAULT_$LINE" | |
5177 | else | |
5178 | no_cache=1 | |
5179 | fi | |
5180 | ||
5181 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
5182 | ||
5183 | fi; | |
5184 | ||
5185 | eval "$ac_cv_use_cmdline" | |
5186 | if test "$no_cache" != 1; then | |
5187 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
5188 | fi | |
5189 | ||
5190 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
5191 | echo "$as_me:$LINENO: result: yes" >&5 | |
5192 | echo "${ECHO_T}yes" >&6 | |
5193 | else | |
5194 | echo "$as_me:$LINENO: result: no" >&5 | |
5195 | echo "${ECHO_T}no" >&6 | |
5196 | fi | |
5197 | ||
5198 | ||
5199 | enablestring= | |
5200 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
5201 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
5202 | no_cache=0 | |
5203 | # Check whether --enable-datetime or --disable-datetime was given. | |
5204 | if test "${enable_datetime+set}" = set; then | |
5205 | enableval="$enable_datetime" | |
5206 | ||
5207 | if test "$enableval" = yes; then | |
5208 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
5209 | else | |
5210 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
5211 | fi | |
5212 | ||
5213 | else | |
5214 | ||
5215 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
5216 | if test "x$LINE" != x ; then | |
5217 | eval "DEFAULT_$LINE" | |
5218 | else | |
5219 | no_cache=1 | |
5220 | fi | |
5221 | ||
5222 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
5223 | ||
5224 | fi; | |
5225 | ||
5226 | eval "$ac_cv_use_datetime" | |
5227 | if test "$no_cache" != 1; then | |
5228 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
5229 | fi | |
5230 | ||
5231 | if test "$wxUSE_DATETIME" = yes; then | |
5232 | echo "$as_me:$LINENO: result: yes" >&5 | |
5233 | echo "${ECHO_T}yes" >&6 | |
5234 | else | |
5235 | echo "$as_me:$LINENO: result: no" >&5 | |
5236 | echo "${ECHO_T}no" >&6 | |
5237 | fi | |
5238 | ||
5239 | ||
36b6448c VZ |
5240 | enablestring= |
5241 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
5242 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
5243 | no_cache=0 | |
5244 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
5245 | if test "${enable_debugreport+set}" = set; then | |
5246 | enableval="$enable_debugreport" | |
5247 | ||
5248 | if test "$enableval" = yes; then | |
5249 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
5250 | else | |
5251 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
5252 | fi | |
5253 | ||
5254 | else | |
5255 | ||
5256 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
5257 | if test "x$LINE" != x ; then | |
5258 | eval "DEFAULT_$LINE" | |
5259 | else | |
5260 | no_cache=1 | |
5261 | fi | |
5262 | ||
5263 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
5264 | ||
5265 | fi; | |
5266 | ||
5267 | eval "$ac_cv_use_debugreport" | |
5268 | if test "$no_cache" != 1; then | |
5269 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
5270 | fi | |
5271 | ||
5272 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
5273 | echo "$as_me:$LINENO: result: yes" >&5 | |
5274 | echo "${ECHO_T}yes" >&6 | |
5275 | else | |
5276 | echo "$as_me:$LINENO: result: no" >&5 | |
5277 | echo "${ECHO_T}no" >&6 | |
5278 | fi | |
5279 | ||
5280 | ||
a848cd7e SC |
5281 | enablestring= |
5282 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
5283 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
5284 | no_cache=0 | |
5285 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
5286 | if test "${enable_dialupman+set}" = set; then | |
5287 | enableval="$enable_dialupman" | |
5288 | ||
5289 | if test "$enableval" = yes; then | |
5290 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
5291 | else | |
5292 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
5293 | fi | |
5294 | ||
5295 | else | |
5296 | ||
5297 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
5298 | if test "x$LINE" != x ; then | |
5299 | eval "DEFAULT_$LINE" | |
5300 | else | |
5301 | no_cache=1 | |
5302 | fi | |
5303 | ||
5304 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
5305 | ||
5306 | fi; | |
5307 | ||
5308 | eval "$ac_cv_use_dialupman" | |
5309 | if test "$no_cache" != 1; then | |
5310 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
5311 | fi | |
5312 | ||
5313 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
5314 | echo "$as_me:$LINENO: result: yes" >&5 | |
5315 | echo "${ECHO_T}yes" >&6 | |
5316 | else | |
5317 | echo "$as_me:$LINENO: result: no" >&5 | |
5318 | echo "${ECHO_T}no" >&6 | |
5319 | fi | |
5320 | ||
5321 | ||
5322 | enablestring= | |
5323 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
5324 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
5325 | no_cache=0 | |
5326 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
5327 | if test "${enable_dynlib+set}" = set; then | |
5328 | enableval="$enable_dynlib" | |
5329 | ||
5330 | if test "$enableval" = yes; then | |
5331 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
5332 | else | |
5333 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5334 | fi | |
5335 | ||
5336 | else | |
5337 | ||
5338 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
5339 | if test "x$LINE" != x ; then | |
5340 | eval "DEFAULT_$LINE" | |
5341 | else | |
5342 | no_cache=1 | |
5343 | fi | |
5344 | ||
5345 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5346 | ||
5347 | fi; | |
5348 | ||
5349 | eval "$ac_cv_use_dynlib" | |
5350 | if test "$no_cache" != 1; then | |
5351 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5352 | fi | |
5353 | ||
5354 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
5355 | echo "$as_me:$LINENO: result: yes" >&5 | |
5356 | echo "${ECHO_T}yes" >&6 | |
5357 | else | |
5358 | echo "$as_me:$LINENO: result: no" >&5 | |
5359 | echo "${ECHO_T}no" >&6 | |
5360 | fi | |
5361 | ||
5362 | ||
5363 | enablestring= | |
5364 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
5365 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5366 | no_cache=0 | |
5367 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5368 | if test "${enable_dynamicloader+set}" = set; then | |
5369 | enableval="$enable_dynamicloader" | |
5370 | ||
5371 | if test "$enableval" = yes; then | |
5372 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5373 | else | |
5374 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5375 | fi | |
5376 | ||
5377 | else | |
5378 | ||
5379 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5380 | if test "x$LINE" != x ; then | |
5381 | eval "DEFAULT_$LINE" | |
5382 | else | |
5383 | no_cache=1 | |
5384 | fi | |
5385 | ||
5386 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5387 | ||
5388 | fi; | |
5389 | ||
5390 | eval "$ac_cv_use_dynamicloader" | |
5391 | if test "$no_cache" != 1; then | |
5392 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5393 | fi | |
5394 | ||
5395 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5396 | echo "$as_me:$LINENO: result: yes" >&5 | |
5397 | echo "${ECHO_T}yes" >&6 | |
5398 | else | |
5399 | echo "$as_me:$LINENO: result: no" >&5 | |
5400 | echo "${ECHO_T}no" >&6 | |
5401 | fi | |
5402 | ||
5403 | ||
5404 | enablestring= | |
5405 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5406 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5407 | no_cache=0 | |
5408 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5409 | if test "${enable_exceptions+set}" = set; then | |
5410 | enableval="$enable_exceptions" | |
5411 | ||
5412 | if test "$enableval" = yes; then | |
5413 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5414 | else | |
5415 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5416 | fi | |
5417 | ||
5418 | else | |
5419 | ||
5420 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5421 | if test "x$LINE" != x ; then | |
5422 | eval "DEFAULT_$LINE" | |
5423 | else | |
5424 | no_cache=1 | |
5425 | fi | |
5426 | ||
5427 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5428 | ||
5429 | fi; | |
5430 | ||
5431 | eval "$ac_cv_use_exceptions" | |
5432 | if test "$no_cache" != 1; then | |
5433 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5434 | fi | |
5435 | ||
5436 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5437 | echo "$as_me:$LINENO: result: yes" >&5 | |
5438 | echo "${ECHO_T}yes" >&6 | |
5439 | else | |
5440 | echo "$as_me:$LINENO: result: no" >&5 | |
5441 | echo "${ECHO_T}no" >&6 | |
5442 | fi | |
5443 | ||
5444 | ||
5445 | enablestring= | |
5446 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5447 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5448 | no_cache=0 | |
5449 | # Check whether --enable-ffile or --disable-ffile was given. | |
5450 | if test "${enable_ffile+set}" = set; then | |
5451 | enableval="$enable_ffile" | |
5452 | ||
5453 | if test "$enableval" = yes; then | |
5454 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5455 | else | |
5456 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5457 | fi | |
5458 | ||
5459 | else | |
5460 | ||
5461 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5462 | if test "x$LINE" != x ; then | |
5463 | eval "DEFAULT_$LINE" | |
5464 | else | |
5465 | no_cache=1 | |
5466 | fi | |
5467 | ||
5468 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5469 | ||
5470 | fi; | |
5471 | ||
5472 | eval "$ac_cv_use_ffile" | |
5473 | if test "$no_cache" != 1; then | |
5474 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5475 | fi | |
5476 | ||
5477 | if test "$wxUSE_FFILE" = yes; then | |
5478 | echo "$as_me:$LINENO: result: yes" >&5 | |
5479 | echo "${ECHO_T}yes" >&6 | |
5480 | else | |
5481 | echo "$as_me:$LINENO: result: no" >&5 | |
5482 | echo "${ECHO_T}no" >&6 | |
5483 | fi | |
5484 | ||
5485 | ||
5486 | enablestring= | |
5487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5488 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5489 | no_cache=0 | |
5490 | # Check whether --enable-file or --disable-file was given. | |
5491 | if test "${enable_file+set}" = set; then | |
5492 | enableval="$enable_file" | |
5493 | ||
5494 | if test "$enableval" = yes; then | |
5495 | ac_cv_use_file='wxUSE_FILE=yes' | |
5496 | else | |
5497 | ac_cv_use_file='wxUSE_FILE=no' | |
5498 | fi | |
5499 | ||
5500 | else | |
5501 | ||
5502 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5503 | if test "x$LINE" != x ; then | |
5504 | eval "DEFAULT_$LINE" | |
5505 | else | |
5506 | no_cache=1 | |
5507 | fi | |
5508 | ||
5509 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5510 | ||
5511 | fi; | |
5512 | ||
5513 | eval "$ac_cv_use_file" | |
5514 | if test "$no_cache" != 1; then | |
5515 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5516 | fi | |
5517 | ||
5518 | if test "$wxUSE_FILE" = yes; then | |
5519 | echo "$as_me:$LINENO: result: yes" >&5 | |
5520 | echo "${ECHO_T}yes" >&6 | |
5521 | else | |
5522 | echo "$as_me:$LINENO: result: no" >&5 | |
5523 | echo "${ECHO_T}no" >&6 | |
5524 | fi | |
5525 | ||
5526 | ||
5527 | enablestring= | |
5528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5529 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5530 | no_cache=0 | |
5531 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5532 | if test "${enable_filesystem+set}" = set; then | |
5533 | enableval="$enable_filesystem" | |
5534 | ||
5535 | if test "$enableval" = yes; then | |
5536 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5537 | else | |
5538 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5539 | fi | |
5540 | ||
5541 | else | |
5542 | ||
5543 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5544 | if test "x$LINE" != x ; then | |
5545 | eval "DEFAULT_$LINE" | |
5546 | else | |
5547 | no_cache=1 | |
5548 | fi | |
5549 | ||
5550 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5551 | ||
5552 | fi; | |
5553 | ||
5554 | eval "$ac_cv_use_filesystem" | |
5555 | if test "$no_cache" != 1; then | |
5556 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5557 | fi | |
5558 | ||
5559 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5560 | echo "$as_me:$LINENO: result: yes" >&5 | |
5561 | echo "${ECHO_T}yes" >&6 | |
5562 | else | |
5563 | echo "$as_me:$LINENO: result: no" >&5 | |
5564 | echo "${ECHO_T}no" >&6 | |
5565 | fi | |
5566 | ||
5567 | ||
5568 | enablestring= | |
5569 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5570 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5571 | no_cache=0 | |
5572 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5573 | if test "${enable_fontmap+set}" = set; then | |
5574 | enableval="$enable_fontmap" | |
5575 | ||
5576 | if test "$enableval" = yes; then | |
5577 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5578 | else | |
5579 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5580 | fi | |
5581 | ||
5582 | else | |
5583 | ||
5584 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5585 | if test "x$LINE" != x ; then | |
5586 | eval "DEFAULT_$LINE" | |
5587 | else | |
5588 | no_cache=1 | |
5589 | fi | |
5590 | ||
5591 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5592 | ||
5593 | fi; | |
5594 | ||
5595 | eval "$ac_cv_use_fontmap" | |
5596 | if test "$no_cache" != 1; then | |
5597 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5598 | fi | |
5599 | ||
5600 | if test "$wxUSE_FONTMAP" = yes; then | |
5601 | echo "$as_me:$LINENO: result: yes" >&5 | |
5602 | echo "${ECHO_T}yes" >&6 | |
5603 | else | |
5604 | echo "$as_me:$LINENO: result: no" >&5 | |
5605 | echo "${ECHO_T}no" >&6 | |
5606 | fi | |
5607 | ||
5608 | ||
26e422a9 MW |
5609 | enablestring= |
5610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5 | |
5611 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6 | |
5612 | no_cache=0 | |
5613 | # Check whether --enable-fs_archive or --disable-fs_archive was given. | |
5614 | if test "${enable_fs_archive+set}" = set; then | |
5615 | enableval="$enable_fs_archive" | |
5616 | ||
5617 | if test "$enableval" = yes; then | |
5618 | ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes' | |
5619 | else | |
5620 | ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no' | |
5621 | fi | |
5622 | ||
5623 | else | |
5624 | ||
5625 | LINE=`grep "wxUSE_FS_ARCHIVE" ${wx_arg_cache_file}` | |
5626 | if test "x$LINE" != x ; then | |
5627 | eval "DEFAULT_$LINE" | |
5628 | else | |
5629 | no_cache=1 | |
5630 | fi | |
5631 | ||
5632 | ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE='$DEFAULT_wxUSE_FS_ARCHIVE | |
5633 | ||
5634 | fi; | |
5635 | ||
5636 | eval "$ac_cv_use_fs_archive" | |
5637 | if test "$no_cache" != 1; then | |
5638 | echo $ac_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp | |
5639 | fi | |
5640 | ||
5641 | if test "$wxUSE_FS_ARCHIVE" = yes; then | |
5642 | echo "$as_me:$LINENO: result: yes" >&5 | |
5643 | echo "${ECHO_T}yes" >&6 | |
5644 | else | |
5645 | echo "$as_me:$LINENO: result: no" >&5 | |
5646 | echo "${ECHO_T}no" >&6 | |
5647 | fi | |
5648 | ||
5649 | ||
a848cd7e SC |
5650 | enablestring= |
5651 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5652 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5653 | no_cache=0 | |
5654 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5655 | if test "${enable_fs_inet+set}" = set; then | |
5656 | enableval="$enable_fs_inet" | |
5657 | ||
5658 | if test "$enableval" = yes; then | |
5659 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5660 | else | |
5661 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5662 | fi | |
5663 | ||
5664 | else | |
5665 | ||
5666 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5667 | if test "x$LINE" != x ; then | |
5668 | eval "DEFAULT_$LINE" | |
5669 | else | |
5670 | no_cache=1 | |
5671 | fi | |
5672 | ||
5673 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5674 | ||
5675 | fi; | |
5676 | ||
5677 | eval "$ac_cv_use_fs_inet" | |
5678 | if test "$no_cache" != 1; then | |
5679 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5680 | fi | |
5681 | ||
5682 | if test "$wxUSE_FS_INET" = yes; then | |
5683 | echo "$as_me:$LINENO: result: yes" >&5 | |
5684 | echo "${ECHO_T}yes" >&6 | |
5685 | else | |
5686 | echo "$as_me:$LINENO: result: no" >&5 | |
5687 | echo "${ECHO_T}no" >&6 | |
5688 | fi | |
5689 | ||
5690 | ||
5691 | enablestring= | |
5692 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5693 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5694 | no_cache=0 | |
5695 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5696 | if test "${enable_fs_zip+set}" = set; then | |
5697 | enableval="$enable_fs_zip" | |
5698 | ||
5699 | if test "$enableval" = yes; then | |
5700 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5701 | else | |
5702 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5703 | fi | |
5704 | ||
5705 | else | |
5706 | ||
5707 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5708 | if test "x$LINE" != x ; then | |
5709 | eval "DEFAULT_$LINE" | |
5710 | else | |
5711 | no_cache=1 | |
5712 | fi | |
5713 | ||
5714 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5715 | ||
5716 | fi; | |
5717 | ||
5718 | eval "$ac_cv_use_fs_zip" | |
5719 | if test "$no_cache" != 1; then | |
5720 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5721 | fi | |
5722 | ||
5723 | if test "$wxUSE_FS_ZIP" = yes; then | |
5724 | echo "$as_me:$LINENO: result: yes" >&5 | |
5725 | echo "${ECHO_T}yes" >&6 | |
5726 | else | |
5727 | echo "$as_me:$LINENO: result: no" >&5 | |
5728 | echo "${ECHO_T}no" >&6 | |
5729 | fi | |
5730 | ||
5731 | ||
5732 | enablestring= | |
5733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5734 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5735 | no_cache=0 | |
5736 | # Check whether --enable-geometry or --disable-geometry was given. | |
5737 | if test "${enable_geometry+set}" = set; then | |
5738 | enableval="$enable_geometry" | |
5739 | ||
5740 | if test "$enableval" = yes; then | |
5741 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5742 | else | |
5743 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5744 | fi | |
5745 | ||
5746 | else | |
5747 | ||
5748 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5749 | if test "x$LINE" != x ; then | |
5750 | eval "DEFAULT_$LINE" | |
5751 | else | |
5752 | no_cache=1 | |
5753 | fi | |
5754 | ||
5755 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5756 | ||
5757 | fi; | |
5758 | ||
5759 | eval "$ac_cv_use_geometry" | |
5760 | if test "$no_cache" != 1; then | |
5761 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5762 | fi | |
5763 | ||
5764 | if test "$wxUSE_GEOMETRY" = yes; then | |
5765 | echo "$as_me:$LINENO: result: yes" >&5 | |
5766 | echo "${ECHO_T}yes" >&6 | |
5767 | else | |
5768 | echo "$as_me:$LINENO: result: no" >&5 | |
5769 | echo "${ECHO_T}no" >&6 | |
5770 | fi | |
5771 | ||
5772 | ||
5773 | enablestring= | |
5774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5775 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5776 | no_cache=0 | |
5777 | # Check whether --enable-log or --disable-log was given. | |
5778 | if test "${enable_log+set}" = set; then | |
5779 | enableval="$enable_log" | |
5780 | ||
5781 | if test "$enableval" = yes; then | |
5782 | ac_cv_use_log='wxUSE_LOG=yes' | |
5783 | else | |
5784 | ac_cv_use_log='wxUSE_LOG=no' | |
5785 | fi | |
5786 | ||
5787 | else | |
5788 | ||
5789 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5790 | if test "x$LINE" != x ; then | |
5791 | eval "DEFAULT_$LINE" | |
5792 | else | |
5793 | no_cache=1 | |
5794 | fi | |
5795 | ||
5796 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5797 | ||
5798 | fi; | |
5799 | ||
5800 | eval "$ac_cv_use_log" | |
5801 | if test "$no_cache" != 1; then | |
5802 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5803 | fi | |
5804 | ||
5805 | if test "$wxUSE_LOG" = yes; then | |
5806 | echo "$as_me:$LINENO: result: yes" >&5 | |
5807 | echo "${ECHO_T}yes" >&6 | |
5808 | else | |
5809 | echo "$as_me:$LINENO: result: no" >&5 | |
5810 | echo "${ECHO_T}no" >&6 | |
5811 | fi | |
5812 | ||
5813 | ||
5814 | enablestring= | |
5815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5816 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5817 | no_cache=0 | |
5818 | # Check whether --enable-longlong or --disable-longlong was given. | |
5819 | if test "${enable_longlong+set}" = set; then | |
5820 | enableval="$enable_longlong" | |
5821 | ||
5822 | if test "$enableval" = yes; then | |
5823 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5824 | else | |
5825 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5826 | fi | |
5827 | ||
5828 | else | |
5829 | ||
5830 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5831 | if test "x$LINE" != x ; then | |
5832 | eval "DEFAULT_$LINE" | |
5833 | else | |
5834 | no_cache=1 | |
5835 | fi | |
5836 | ||
5837 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5838 | ||
5839 | fi; | |
5840 | ||
5841 | eval "$ac_cv_use_longlong" | |
5842 | if test "$no_cache" != 1; then | |
5843 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5844 | fi | |
5845 | ||
5846 | if test "$wxUSE_LONGLONG" = yes; then | |
5847 | echo "$as_me:$LINENO: result: yes" >&5 | |
5848 | echo "${ECHO_T}yes" >&6 | |
5849 | else | |
5850 | echo "$as_me:$LINENO: result: no" >&5 | |
5851 | echo "${ECHO_T}no" >&6 | |
5852 | fi | |
5853 | ||
5854 | ||
5855 | enablestring= | |
5856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5857 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5858 | no_cache=0 | |
5859 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5860 | if test "${enable_mimetype+set}" = set; then | |
5861 | enableval="$enable_mimetype" | |
5862 | ||
5863 | if test "$enableval" = yes; then | |
5864 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5865 | else | |
5866 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5867 | fi | |
5868 | ||
5869 | else | |
5870 | ||
5871 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5872 | if test "x$LINE" != x ; then | |
5873 | eval "DEFAULT_$LINE" | |
5874 | else | |
5875 | no_cache=1 | |
5876 | fi | |
5877 | ||
5878 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5879 | ||
5880 | fi; | |
5881 | ||
5882 | eval "$ac_cv_use_mimetype" | |
5883 | if test "$no_cache" != 1; then | |
5884 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5885 | fi | |
5886 | ||
5887 | if test "$wxUSE_MIMETYPE" = yes; then | |
5888 | echo "$as_me:$LINENO: result: yes" >&5 | |
5889 | echo "${ECHO_T}yes" >&6 | |
5890 | else | |
5891 | echo "$as_me:$LINENO: result: no" >&5 | |
5892 | echo "${ECHO_T}no" >&6 | |
5893 | fi | |
5894 | ||
5895 | ||
5896 | enablestring= | |
5897 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5898 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5899 | no_cache=0 | |
5900 | # Check whether --enable-mslu or --disable-mslu was given. | |
5901 | if test "${enable_mslu+set}" = set; then | |
5902 | enableval="$enable_mslu" | |
5903 | ||
5904 | if test "$enableval" = yes; then | |
5905 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5906 | else | |
5907 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5908 | fi | |
5909 | ||
5910 | else | |
5911 | ||
5912 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5913 | if test "x$LINE" != x ; then | |
5914 | eval "DEFAULT_$LINE" | |
5915 | else | |
5916 | no_cache=1 | |
5917 | fi | |
5918 | ||
5919 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5920 | ||
5921 | fi; | |
5922 | ||
5923 | eval "$ac_cv_use_mslu" | |
5924 | if test "$no_cache" != 1; then | |
5925 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5926 | fi | |
5927 | ||
5928 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5929 | echo "$as_me:$LINENO: result: yes" >&5 | |
5930 | echo "${ECHO_T}yes" >&6 | |
5931 | else | |
5932 | echo "$as_me:$LINENO: result: no" >&5 | |
5933 | echo "${ECHO_T}no" >&6 | |
5934 | fi | |
5935 | ||
5936 | ||
5937 | enablestring= | |
5938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5939 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5940 | no_cache=0 | |
5941 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5942 | if test "${enable_snglinst+set}" = set; then | |
5943 | enableval="$enable_snglinst" | |
5944 | ||
5945 | if test "$enableval" = yes; then | |
5946 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5947 | else | |
5948 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5949 | fi | |
5950 | ||
5951 | else | |
5952 | ||
5953 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5954 | if test "x$LINE" != x ; then | |
5955 | eval "DEFAULT_$LINE" | |
5956 | else | |
5957 | no_cache=1 | |
5958 | fi | |
5959 | ||
5960 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5961 | ||
5962 | fi; | |
5963 | ||
5964 | eval "$ac_cv_use_snglinst" | |
5965 | if test "$no_cache" != 1; then | |
5966 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5967 | fi | |
5968 | ||
5969 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5970 | echo "$as_me:$LINENO: result: yes" >&5 | |
5971 | echo "${ECHO_T}yes" >&6 | |
5972 | else | |
5973 | echo "$as_me:$LINENO: result: no" >&5 | |
5974 | echo "${ECHO_T}no" >&6 | |
5975 | fi | |
5976 | ||
5977 | ||
5978 | enablestring= | |
07158944 VZ |
5979 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5980 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5981 | no_cache=0 |
07158944 VZ |
5982 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5983 | if test "${enable_std_iostreams+set}" = set; then | |
5984 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5985 | |
5986 | if test "$enableval" = yes; then | |
07158944 | 5987 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5988 | else |
07158944 | 5989 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5990 | fi |
5991 | ||
5992 | else | |
5993 | ||
07158944 | 5994 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5995 | if test "x$LINE" != x ; then |
5996 | eval "DEFAULT_$LINE" | |
5997 | else | |
5998 | no_cache=1 | |
5999 | fi | |
6000 | ||
07158944 | 6001 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
6002 | |
6003 | fi; | |
6004 | ||
07158944 | 6005 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 6006 | if test "$no_cache" != 1; then |
07158944 | 6007 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
6008 | fi |
6009 | ||
07158944 | 6010 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
6011 | echo "$as_me:$LINENO: result: yes" >&5 |
6012 | echo "${ECHO_T}yes" >&6 | |
6013 | else | |
6014 | echo "$as_me:$LINENO: result: no" >&5 | |
6015 | echo "${ECHO_T}no" >&6 | |
6016 | fi | |
6017 | ||
6018 | ||
59746b65 MW |
6019 | enablestring= |
6020 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
6021 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
6022 | no_cache=0 | |
6023 | # Check whether --enable-std_string or --disable-std_string was given. | |
6024 | if test "${enable_std_string+set}" = set; then | |
6025 | enableval="$enable_std_string" | |
6026 | ||
6027 | if test "$enableval" = yes; then | |
6028 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
6029 | else | |
6030 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
6031 | fi | |
6032 | ||
6033 | else | |
6034 | ||
6035 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
6036 | if test "x$LINE" != x ; then | |
6037 | eval "DEFAULT_$LINE" | |
6038 | else | |
6039 | no_cache=1 | |
6040 | fi | |
6041 | ||
6042 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
6043 | ||
6044 | fi; | |
6045 | ||
6046 | eval "$ac_cv_use_std_string" | |
6047 | if test "$no_cache" != 1; then | |
6048 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
6049 | fi | |
6050 | ||
6051 | if test "$wxUSE_STD_STRING" = yes; then | |
6052 | echo "$as_me:$LINENO: result: yes" >&5 | |
6053 | echo "${ECHO_T}yes" >&6 | |
6054 | else | |
6055 | echo "$as_me:$LINENO: result: no" >&5 | |
6056 | echo "${ECHO_T}no" >&6 | |
6057 | fi | |
6058 | ||
6059 | ||
a848cd7e | 6060 | enablestring= |
07158944 VZ |
6061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
6062 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 6063 | no_cache=0 |
07158944 VZ |
6064 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
6065 | if test "${enable_stdpaths+set}" = set; then | |
6066 | enableval="$enable_stdpaths" | |
a848cd7e SC |
6067 | |
6068 | if test "$enableval" = yes; then | |
07158944 | 6069 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 6070 | else |
07158944 | 6071 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
6072 | fi |
6073 | ||
6074 | else | |
6075 | ||
07158944 | 6076 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
6077 | if test "x$LINE" != x ; then |
6078 | eval "DEFAULT_$LINE" | |
6079 | else | |
6080 | no_cache=1 | |
6081 | fi | |
6082 | ||
07158944 | 6083 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
6084 | |
6085 | fi; | |
6086 | ||
07158944 | 6087 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 6088 | if test "$no_cache" != 1; then |
07158944 | 6089 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
6090 | fi |
6091 | ||
07158944 | 6092 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
6093 | echo "$as_me:$LINENO: result: yes" >&5 |
6094 | echo "${ECHO_T}yes" >&6 | |
6095 | else | |
6096 | echo "$as_me:$LINENO: result: no" >&5 | |
6097 | echo "${ECHO_T}no" >&6 | |
6098 | fi | |
6099 | ||
6100 | ||
6101 | enablestring= | |
6102 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
6103 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
6104 | no_cache=0 | |
6105 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
6106 | if test "${enable_stopwatch+set}" = set; then | |
6107 | enableval="$enable_stopwatch" | |
6108 | ||
6109 | if test "$enableval" = yes; then | |
6110 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
6111 | else | |
6112 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
6113 | fi | |
6114 | ||
6115 | else | |
6116 | ||
6117 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
6118 | if test "x$LINE" != x ; then | |
6119 | eval "DEFAULT_$LINE" | |
6120 | else | |
6121 | no_cache=1 | |
6122 | fi | |
6123 | ||
6124 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
6125 | ||
6126 | fi; | |
6127 | ||
6128 | eval "$ac_cv_use_stopwatch" | |
6129 | if test "$no_cache" != 1; then | |
6130 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
6131 | fi | |
6132 | ||
6133 | if test "$wxUSE_STOPWATCH" = yes; then | |
6134 | echo "$as_me:$LINENO: result: yes" >&5 | |
6135 | echo "${ECHO_T}yes" >&6 | |
6136 | else | |
6137 | echo "$as_me:$LINENO: result: no" >&5 | |
6138 | echo "${ECHO_T}no" >&6 | |
6139 | fi | |
6140 | ||
6141 | ||
07158944 VZ |
6142 | enablestring= |
6143 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
6144 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
6145 | no_cache=0 | |
6146 | # Check whether --enable-streams or --disable-streams was given. | |
6147 | if test "${enable_streams+set}" = set; then | |
6148 | enableval="$enable_streams" | |
6149 | ||
6150 | if test "$enableval" = yes; then | |
6151 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
6152 | else | |
6153 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
6154 | fi | |
6155 | ||
6156 | else | |
6157 | ||
6158 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
6159 | if test "x$LINE" != x ; then | |
6160 | eval "DEFAULT_$LINE" | |
6161 | else | |
6162 | no_cache=1 | |
6163 | fi | |
6164 | ||
6165 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
6166 | ||
6167 | fi; | |
6168 | ||
6169 | eval "$ac_cv_use_streams" | |
6170 | if test "$no_cache" != 1; then | |
6171 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
6172 | fi | |
6173 | ||
6174 | if test "$wxUSE_STREAMS" = yes; then | |
6175 | echo "$as_me:$LINENO: result: yes" >&5 | |
6176 | echo "${ECHO_T}yes" >&6 | |
6177 | else | |
6178 | echo "$as_me:$LINENO: result: no" >&5 | |
6179 | echo "${ECHO_T}no" >&6 | |
6180 | fi | |
6181 | ||
6182 | ||
a848cd7e SC |
6183 | enablestring= |
6184 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
6185 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
6186 | no_cache=0 | |
6187 | # Check whether --enable-system_options or --disable-system_options was given. | |
6188 | if test "${enable_system_options+set}" = set; then | |
6189 | enableval="$enable_system_options" | |
6190 | ||
6191 | if test "$enableval" = yes; then | |
6192 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
6193 | else | |
6194 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
6195 | fi | |
6196 | ||
6197 | else | |
6198 | ||
6199 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
6200 | if test "x$LINE" != x ; then | |
6201 | eval "DEFAULT_$LINE" | |
6202 | else | |
6203 | no_cache=1 | |
6204 | fi | |
6205 | ||
6206 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
6207 | ||
6208 | fi; | |
6209 | ||
6210 | eval "$ac_cv_use_system_options" | |
6211 | if test "$no_cache" != 1; then | |
6212 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
6213 | fi | |
6214 | ||
6215 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
6216 | echo "$as_me:$LINENO: result: yes" >&5 | |
6217 | echo "${ECHO_T}yes" >&6 | |
6218 | else | |
6219 | echo "$as_me:$LINENO: result: no" >&5 | |
6220 | echo "${ECHO_T}no" >&6 | |
6221 | fi | |
6222 | ||
6223 | ||
26e422a9 MW |
6224 | enablestring= |
6225 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5 | |
6226 | echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6 | |
6227 | no_cache=0 | |
6228 | # Check whether --enable-tarstream or --disable-tarstream was given. | |
6229 | if test "${enable_tarstream+set}" = set; then | |
6230 | enableval="$enable_tarstream" | |
6231 | ||
6232 | if test "$enableval" = yes; then | |
6233 | ac_cv_use_tarstream='wxUSE_TARSTREAM=yes' | |
6234 | else | |
6235 | ac_cv_use_tarstream='wxUSE_TARSTREAM=no' | |
6236 | fi | |
6237 | ||
6238 | else | |
6239 | ||
6240 | LINE=`grep "wxUSE_TARSTREAM" ${wx_arg_cache_file}` | |
6241 | if test "x$LINE" != x ; then | |
6242 | eval "DEFAULT_$LINE" | |
6243 | else | |
6244 | no_cache=1 | |
6245 | fi | |
6246 | ||
6247 | ac_cv_use_tarstream='wxUSE_TARSTREAM='$DEFAULT_wxUSE_TARSTREAM | |
6248 | ||
6249 | fi; | |
6250 | ||
6251 | eval "$ac_cv_use_tarstream" | |
6252 | if test "$no_cache" != 1; then | |
6253 | echo $ac_cv_use_tarstream >> ${wx_arg_cache_file}.tmp | |
6254 | fi | |
6255 | ||
6256 | if test "$wxUSE_TARSTREAM" = yes; then | |
6257 | echo "$as_me:$LINENO: result: yes" >&5 | |
6258 | echo "${ECHO_T}yes" >&6 | |
6259 | else | |
6260 | echo "$as_me:$LINENO: result: no" >&5 | |
6261 | echo "${ECHO_T}no" >&6 | |
6262 | fi | |
6263 | ||
6264 | ||
a848cd7e SC |
6265 | enablestring= |
6266 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
6267 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
6268 | no_cache=0 | |
6269 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
6270 | if test "${enable_textbuf+set}" = set; then | |
6271 | enableval="$enable_textbuf" | |
6272 | ||
6273 | if test "$enableval" = yes; then | |
6274 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
6275 | else | |
6276 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
6277 | fi | |
6278 | ||
6279 | else | |
6280 | ||
6281 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
6282 | if test "x$LINE" != x ; then | |
6283 | eval "DEFAULT_$LINE" | |
6284 | else | |
6285 | no_cache=1 | |
6286 | fi | |
6287 | ||
6288 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
6289 | ||
6290 | fi; | |
6291 | ||
6292 | eval "$ac_cv_use_textbuf" | |
6293 | if test "$no_cache" != 1; then | |
6294 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
6295 | fi | |
6296 | ||
6297 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
6298 | echo "$as_me:$LINENO: result: yes" >&5 | |
6299 | echo "${ECHO_T}yes" >&6 | |
6300 | else | |
6301 | echo "$as_me:$LINENO: result: no" >&5 | |
6302 | echo "${ECHO_T}no" >&6 | |
6303 | fi | |
6304 | ||
6305 | ||
6306 | enablestring= | |
6307 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
6308 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
6309 | no_cache=0 | |
6310 | # Check whether --enable-textfile or --disable-textfile was given. | |
6311 | if test "${enable_textfile+set}" = set; then | |
6312 | enableval="$enable_textfile" | |
6313 | ||
6314 | if test "$enableval" = yes; then | |
6315 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
6316 | else | |
6317 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
6318 | fi | |
6319 | ||
6320 | else | |
6321 | ||
6322 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
6323 | if test "x$LINE" != x ; then | |
6324 | eval "DEFAULT_$LINE" | |
6325 | else | |
6326 | no_cache=1 | |
6327 | fi | |
6328 | ||
6329 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
6330 | ||
6331 | fi; | |
6332 | ||
6333 | eval "$ac_cv_use_textfile" | |
6334 | if test "$no_cache" != 1; then | |
6335 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
6336 | fi | |
6337 | ||
6338 | if test "$wxUSE_TEXTFILE" = yes; then | |
6339 | echo "$as_me:$LINENO: result: yes" >&5 | |
6340 | echo "${ECHO_T}yes" >&6 | |
6341 | else | |
6342 | echo "$as_me:$LINENO: result: no" >&5 | |
6343 | echo "${ECHO_T}no" >&6 | |
6344 | fi | |
6345 | ||
6346 | ||
6347 | enablestring= | |
6348 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
6349 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
6350 | no_cache=0 | |
6351 | # Check whether --enable-timer or --disable-timer was given. | |
6352 | if test "${enable_timer+set}" = set; then | |
6353 | enableval="$enable_timer" | |
6354 | ||
6355 | if test "$enableval" = yes; then | |
6356 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
6357 | else | |
6358 | ac_cv_use_timer='wxUSE_TIMER=no' | |
6359 | fi | |
6360 | ||
6361 | else | |
6362 | ||
6363 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
6364 | if test "x$LINE" != x ; then | |
6365 | eval "DEFAULT_$LINE" | |
6366 | else | |
6367 | no_cache=1 | |
6368 | fi | |
6369 | ||
6370 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
6371 | ||
6372 | fi; | |
6373 | ||
6374 | eval "$ac_cv_use_timer" | |
6375 | if test "$no_cache" != 1; then | |
6376 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
6377 | fi | |
6378 | ||
6379 | if test "$wxUSE_TIMER" = yes; then | |
6380 | echo "$as_me:$LINENO: result: yes" >&5 | |
6381 | echo "${ECHO_T}yes" >&6 | |
6382 | else | |
6383 | echo "$as_me:$LINENO: result: no" >&5 | |
6384 | echo "${ECHO_T}no" >&6 | |
6385 | fi | |
6386 | ||
6387 | ||
6388 | enablestring= | |
6389 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
6390 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
6391 | no_cache=0 | |
6392 | # Check whether --enable-unicode or --disable-unicode was given. | |
6393 | if test "${enable_unicode+set}" = set; then | |
6394 | enableval="$enable_unicode" | |
6395 | ||
6396 | if test "$enableval" = yes; then | |
6397 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
6398 | else | |
6399 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
6400 | fi | |
6401 | ||
6402 | else | |
6403 | ||
6404 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
6405 | if test "x$LINE" != x ; then | |
6406 | eval "DEFAULT_$LINE" | |
6407 | else | |
6408 | no_cache=1 | |
6409 | fi | |
6410 | ||
6411 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
6412 | ||
6413 | fi; | |
6414 | ||
6415 | eval "$ac_cv_use_unicode" | |
6416 | if test "$no_cache" != 1; then | |
6417 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6418 | fi | |
6419 | ||
6420 | if test "$wxUSE_UNICODE" = yes; then | |
6421 | echo "$as_me:$LINENO: result: yes" >&5 | |
6422 | echo "${ECHO_T}yes" >&6 | |
6423 | else | |
6424 | echo "$as_me:$LINENO: result: no" >&5 | |
6425 | echo "${ECHO_T}no" >&6 | |
6426 | fi | |
6427 | ||
6428 | ||
6429 | enablestring= | |
6430 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6431 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6432 | no_cache=0 | |
6433 | # Check whether --enable-sound or --disable-sound was given. | |
6434 | if test "${enable_sound+set}" = set; then | |
6435 | enableval="$enable_sound" | |
6436 | ||
6437 | if test "$enableval" = yes; then | |
6438 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6439 | else | |
6440 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6441 | fi | |
6442 | ||
6443 | else | |
6444 | ||
6445 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6446 | if test "x$LINE" != x ; then | |
6447 | eval "DEFAULT_$LINE" | |
6448 | else | |
6449 | no_cache=1 | |
6450 | fi | |
6451 | ||
6452 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6453 | ||
6454 | fi; | |
6455 | ||
6456 | eval "$ac_cv_use_sound" | |
6457 | if test "$no_cache" != 1; then | |
6458 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6459 | fi | |
6460 | ||
6461 | if test "$wxUSE_SOUND" = yes; then | |
6462 | echo "$as_me:$LINENO: result: yes" >&5 | |
6463 | echo "${ECHO_T}yes" >&6 | |
6464 | else | |
6465 | echo "$as_me:$LINENO: result: no" >&5 | |
6466 | echo "${ECHO_T}no" >&6 | |
6467 | fi | |
6468 | ||
6469 | ||
3b57de8b RL |
6470 | enablestring= |
6471 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6472 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6473 | no_cache=0 | |
6474 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6475 | if test "${enable_mediactrl+set}" = set; then | |
6476 | enableval="$enable_mediactrl" | |
6477 | ||
6478 | if test "$enableval" = yes; then | |
6479 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6480 | else | |
6481 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6482 | fi | |
6483 | ||
6484 | else | |
6485 | ||
6486 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6487 | if test "x$LINE" != x ; then | |
6488 | eval "DEFAULT_$LINE" | |
6489 | else | |
6490 | no_cache=1 | |
6491 | fi | |
6492 | ||
6493 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6494 | ||
6495 | fi; | |
6496 | ||
6497 | eval "$ac_cv_use_mediactrl" | |
6498 | if test "$no_cache" != 1; then | |
6499 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6500 | fi | |
6501 | ||
6502 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6503 | echo "$as_me:$LINENO: result: yes" >&5 | |
6504 | echo "${ECHO_T}yes" >&6 | |
6505 | else | |
6506 | echo "$as_me:$LINENO: result: no" >&5 | |
6507 | echo "${ECHO_T}no" >&6 | |
6508 | fi | |
6509 | ||
6510 | ||
f10e38c4 VZ |
6511 | enablestring= |
6512 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5 | |
6513 | echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6 | |
6514 | no_cache=0 | |
6515 | # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given. | |
6516 | if test "${enable_gstreamer8+set}" = set; then | |
6517 | enableval="$enable_gstreamer8" | |
6518 | ||
6519 | if test "$enableval" = yes; then | |
6520 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes' | |
6521 | else | |
6522 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no' | |
6523 | fi | |
6524 | ||
6525 | else | |
6526 | ||
6527 | LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}` | |
6528 | if test "x$LINE" != x ; then | |
6529 | eval "DEFAULT_$LINE" | |
6530 | else | |
6531 | no_cache=1 | |
6532 | fi | |
6533 | ||
6534 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8 | |
6535 | ||
6536 | fi; | |
6537 | ||
6538 | eval "$ac_cv_use_gstreamer8" | |
6539 | if test "$no_cache" != 1; then | |
6540 | echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp | |
6541 | fi | |
6542 | ||
6543 | if test "$wxUSE_GSTREAMER8" = yes; then | |
6544 | echo "$as_me:$LINENO: result: yes" >&5 | |
6545 | echo "${ECHO_T}yes" >&6 | |
6546 | else | |
6547 | echo "$as_me:$LINENO: result: no" >&5 | |
6548 | echo "${ECHO_T}no" >&6 | |
6549 | fi | |
6550 | ||
6551 | ||
a848cd7e | 6552 | enablestring= |
8b6682b9 JS |
6553 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5 |
6554 | echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6 | |
a848cd7e | 6555 | no_cache=0 |
8b6682b9 JS |
6556 | # Check whether --enable-printfposparam or --disable-printfposparam was given. |
6557 | if test "${enable_printfposparam+set}" = set; then | |
6558 | enableval="$enable_printfposparam" | |
a848cd7e SC |
6559 | |
6560 | if test "$enableval" = yes; then | |
8b6682b9 | 6561 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes' |
a848cd7e | 6562 | else |
8b6682b9 | 6563 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no' |
a848cd7e SC |
6564 | fi |
6565 | ||
6566 | else | |
6567 | ||
8b6682b9 | 6568 | LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}` |
a848cd7e SC |
6569 | if test "x$LINE" != x ; then |
6570 | eval "DEFAULT_$LINE" | |
6571 | else | |
6572 | no_cache=1 | |
6573 | fi | |
6574 | ||
8b6682b9 | 6575 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS |
a848cd7e SC |
6576 | |
6577 | fi; | |
6578 | ||
8b6682b9 | 6579 | eval "$ac_cv_use_printfposparam" |
a848cd7e | 6580 | if test "$no_cache" != 1; then |
8b6682b9 | 6581 | echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
6582 | fi |
6583 | ||
8b6682b9 | 6584 | if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then |
a848cd7e SC |
6585 | echo "$as_me:$LINENO: result: yes" >&5 |
6586 | echo "${ECHO_T}yes" >&6 | |
6587 | else | |
6588 | echo "$as_me:$LINENO: result: no" >&5 | |
6589 | echo "${ECHO_T}no" >&6 | |
6590 | fi | |
6591 | ||
6592 | ||
6593 | enablestring= | |
6594 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6595 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6596 | no_cache=0 | |
6597 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6598 | if test "${enable_zipstream+set}" = set; then | |
6599 | enableval="$enable_zipstream" | |
6600 | ||
6601 | if test "$enableval" = yes; then | |
6602 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6603 | else | |
6604 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6605 | fi | |
6606 | ||
6607 | else | |
6608 | ||
6609 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6610 | if test "x$LINE" != x ; then | |
6611 | eval "DEFAULT_$LINE" | |
6612 | else | |
6613 | no_cache=1 | |
6614 | fi | |
6615 | ||
6616 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6617 | ||
6618 | fi; | |
6619 | ||
6620 | eval "$ac_cv_use_zipstream" | |
6621 | if test "$no_cache" != 1; then | |
6622 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6623 | fi | |
6624 | ||
6625 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6626 | echo "$as_me:$LINENO: result: yes" >&5 | |
6627 | echo "${ECHO_T}yes" >&6 | |
6628 | else | |
6629 | echo "$as_me:$LINENO: result: no" >&5 | |
6630 | echo "${ECHO_T}no" >&6 | |
6631 | fi | |
6632 | ||
6633 | ||
a848cd7e SC |
6634 | |
6635 | enablestring= | |
6636 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6637 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6638 | no_cache=0 | |
6639 | # Check whether --enable-url or --disable-url was given. | |
6640 | if test "${enable_url+set}" = set; then | |
6641 | enableval="$enable_url" | |
6642 | ||
6643 | if test "$enableval" = yes; then | |
6644 | ac_cv_use_url='wxUSE_URL=yes' | |
6645 | else | |
6646 | ac_cv_use_url='wxUSE_URL=no' | |
6647 | fi | |
6648 | ||
6649 | else | |
6650 | ||
6651 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6652 | if test "x$LINE" != x ; then | |
6653 | eval "DEFAULT_$LINE" | |
6654 | else | |
6655 | no_cache=1 | |
6656 | fi | |
6657 | ||
6658 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6659 | ||
6660 | fi; | |
6661 | ||
6662 | eval "$ac_cv_use_url" | |
6663 | if test "$no_cache" != 1; then | |
6664 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6665 | fi | |
6666 | ||
6667 | if test "$wxUSE_URL" = yes; then | |
6668 | echo "$as_me:$LINENO: result: yes" >&5 | |
6669 | echo "${ECHO_T}yes" >&6 | |
6670 | else | |
6671 | echo "$as_me:$LINENO: result: no" >&5 | |
6672 | echo "${ECHO_T}no" >&6 | |
6673 | fi | |
6674 | ||
6675 | ||
ca5c6ac3 VZ |
6676 | enablestring= |
6677 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5 | |
6678 | echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6 | |
6679 | no_cache=0 | |
6680 | # Check whether --enable-variant or --disable-variant was given. | |
6681 | if test "${enable_variant+set}" = set; then | |
6682 | enableval="$enable_variant" | |
6683 | ||
6684 | if test "$enableval" = yes; then | |
6685 | ac_cv_use_variant='wxUSE_VARIANT=yes' | |
6686 | else | |
6687 | ac_cv_use_variant='wxUSE_VARIANT=no' | |
6688 | fi | |
6689 | ||
6690 | else | |
6691 | ||
6692 | LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}` | |
6693 | if test "x$LINE" != x ; then | |
6694 | eval "DEFAULT_$LINE" | |
6695 | else | |
6696 | no_cache=1 | |
6697 | fi | |
6698 | ||
6699 | ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT | |
6700 | ||
6701 | fi; | |
6702 | ||
6703 | eval "$ac_cv_use_variant" | |
6704 | if test "$no_cache" != 1; then | |
6705 | echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp | |
6706 | fi | |
6707 | ||
6708 | if test "$wxUSE_VARIANT" = yes; then | |
6709 | echo "$as_me:$LINENO: result: yes" >&5 | |
6710 | echo "${ECHO_T}yes" >&6 | |
6711 | else | |
6712 | echo "$as_me:$LINENO: result: no" >&5 | |
6713 | echo "${ECHO_T}no" >&6 | |
6714 | fi | |
6715 | ||
6716 | ||
a848cd7e SC |
6717 | enablestring= |
6718 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6719 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6720 | no_cache=0 | |
6721 | # Check whether --enable-protocol or --disable-protocol was given. | |
6722 | if test "${enable_protocol+set}" = set; then | |
6723 | enableval="$enable_protocol" | |
6724 | ||
6725 | if test "$enableval" = yes; then | |
6726 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6727 | else | |
6728 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6729 | fi | |
6730 | ||
6731 | else | |
6732 | ||
6733 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6734 | if test "x$LINE" != x ; then | |
6735 | eval "DEFAULT_$LINE" | |
6736 | else | |
6737 | no_cache=1 | |
6738 | fi | |
6739 | ||
6740 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6741 | ||
6742 | fi; | |
6743 | ||
6744 | eval "$ac_cv_use_protocol" | |
6745 | if test "$no_cache" != 1; then | |
6746 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6747 | fi | |
6748 | ||
6749 | if test "$wxUSE_PROTOCOL" = yes; then | |
6750 | echo "$as_me:$LINENO: result: yes" >&5 | |
6751 | echo "${ECHO_T}yes" >&6 | |
6752 | else | |
6753 | echo "$as_me:$LINENO: result: no" >&5 | |
6754 | echo "${ECHO_T}no" >&6 | |
6755 | fi | |
6756 | ||
6757 | ||
6758 | enablestring= | |
6759 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6760 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6761 | no_cache=0 | |
6762 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6763 | if test "${enable_protocol_http+set}" = set; then | |
6764 | enableval="$enable_protocol_http" | |
6765 | ||
6766 | if test "$enableval" = yes; then | |
6767 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6768 | else | |
6769 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6770 | fi | |
6771 | ||
6772 | else | |
6773 | ||
6774 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6775 | if test "x$LINE" != x ; then | |
6776 | eval "DEFAULT_$LINE" | |
6777 | else | |
6778 | no_cache=1 | |
6779 | fi | |
6780 | ||
6781 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6782 | ||
6783 | fi; | |
6784 | ||
6785 | eval "$ac_cv_use_protocol_http" | |
6786 | if test "$no_cache" != 1; then | |
6787 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6788 | fi | |
6789 | ||
6790 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6791 | echo "$as_me:$LINENO: result: yes" >&5 | |
6792 | echo "${ECHO_T}yes" >&6 | |
6793 | else | |
6794 | echo "$as_me:$LINENO: result: no" >&5 | |
6795 | echo "${ECHO_T}no" >&6 | |
6796 | fi | |
6797 | ||
6798 | ||
6799 | enablestring= | |
6800 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6801 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6802 | no_cache=0 | |
6803 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6804 | if test "${enable_protocol_ftp+set}" = set; then | |
6805 | enableval="$enable_protocol_ftp" | |
6806 | ||
6807 | if test "$enableval" = yes; then | |
6808 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6809 | else | |
6810 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6811 | fi | |
6812 | ||
6813 | else | |
6814 | ||
6815 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6816 | if test "x$LINE" != x ; then | |
6817 | eval "DEFAULT_$LINE" | |
6818 | else | |
6819 | no_cache=1 | |
6820 | fi | |
6821 | ||
6822 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6823 | ||
6824 | fi; | |
6825 | ||
6826 | eval "$ac_cv_use_protocol_ftp" | |
6827 | if test "$no_cache" != 1; then | |
6828 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6829 | fi | |
6830 | ||
6831 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6832 | echo "$as_me:$LINENO: result: yes" >&5 | |
6833 | echo "${ECHO_T}yes" >&6 | |
6834 | else | |
6835 | echo "$as_me:$LINENO: result: no" >&5 | |
6836 | echo "${ECHO_T}no" >&6 | |
6837 | fi | |
6838 | ||
6839 | ||
6840 | enablestring= | |
6841 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6842 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6843 | no_cache=0 | |
6844 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6845 | if test "${enable_protocol_file+set}" = set; then | |
6846 | enableval="$enable_protocol_file" | |
6847 | ||
6848 | if test "$enableval" = yes; then | |
6849 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6850 | else | |
6851 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6852 | fi | |
6853 | ||
6854 | else | |
6855 | ||
6856 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6857 | if test "x$LINE" != x ; then | |
6858 | eval "DEFAULT_$LINE" | |
6859 | else | |
6860 | no_cache=1 | |
6861 | fi | |
6862 | ||
6863 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6864 | ||
6865 | fi; | |
6866 | ||
6867 | eval "$ac_cv_use_protocol_file" | |
6868 | if test "$no_cache" != 1; then | |
6869 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6870 | fi | |
6871 | ||
6872 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6873 | echo "$as_me:$LINENO: result: yes" >&5 | |
6874 | echo "${ECHO_T}yes" >&6 | |
6875 | else | |
6876 | echo "$as_me:$LINENO: result: no" >&5 | |
6877 | echo "${ECHO_T}no" >&6 | |
6878 | fi | |
6879 | ||
6880 | ||
6881 | ||
6882 | ||
6883 | ||
6884 | enablestring= | |
6885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6886 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6887 | no_cache=0 | |
6888 | # Check whether --enable-threads or --disable-threads was given. | |
6889 | if test "${enable_threads+set}" = set; then | |
6890 | enableval="$enable_threads" | |
6891 | ||
6892 | if test "$enableval" = yes; then | |
6893 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6894 | else | |
6895 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6896 | fi | |
6897 | ||
6898 | else | |
6899 | ||
6900 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6901 | if test "x$LINE" != x ; then | |
6902 | eval "DEFAULT_$LINE" | |
6903 | else | |
6904 | no_cache=1 | |
6905 | fi | |
6906 | ||
6907 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6908 | ||
6909 | fi; | |
6910 | ||
6911 | eval "$ac_cv_use_threads" | |
6912 | if test "$no_cache" != 1; then | |
6913 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6914 | fi | |
6915 | ||
6916 | if test "$wxUSE_THREADS" = yes; then | |
6917 | echo "$as_me:$LINENO: result: yes" >&5 | |
6918 | echo "${ECHO_T}yes" >&6 | |
6919 | else | |
6920 | echo "$as_me:$LINENO: result: no" >&5 | |
6921 | echo "${ECHO_T}no" >&6 | |
6922 | fi | |
6923 | ||
6924 | ||
6925 | if test "$wxUSE_GUI" = "yes"; then | |
6926 | ||
6927 | ||
6928 | ||
6929 | enablestring= | |
6930 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6931 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6932 | no_cache=0 | |
6933 | # Check whether --enable-docview or --disable-docview was given. | |
6934 | if test "${enable_docview+set}" = set; then | |
6935 | enableval="$enable_docview" | |
6936 | ||
6937 | if test "$enableval" = yes; then | |
6938 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6939 | else | |
6940 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6941 | fi | |
6942 | ||
6943 | else | |
6944 | ||
6945 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6946 | if test "x$LINE" != x ; then | |
6947 | eval "DEFAULT_$LINE" | |
6948 | else | |
6949 | no_cache=1 | |
6950 | fi | |
6951 | ||
6952 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6953 | ||
6954 | fi; | |
6955 | ||
6956 | eval "$ac_cv_use_docview" | |
6957 | if test "$no_cache" != 1; then | |
6958 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6959 | fi | |
6960 | ||
6961 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6962 | echo "$as_me:$LINENO: result: yes" >&5 | |
6963 | echo "${ECHO_T}yes" >&6 | |
6964 | else | |
6965 | echo "$as_me:$LINENO: result: no" >&5 | |
6966 | echo "${ECHO_T}no" >&6 | |
6967 | fi | |
6968 | ||
6969 | ||
6970 | enablestring= | |
6971 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6972 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6973 | no_cache=0 | |
6974 | # Check whether --enable-help or --disable-help was given. | |
6975 | if test "${enable_help+set}" = set; then | |
6976 | enableval="$enable_help" | |
6977 | ||
6978 | if test "$enableval" = yes; then | |
6979 | ac_cv_use_help='wxUSE_HELP=yes' | |
6980 | else | |
6981 | ac_cv_use_help='wxUSE_HELP=no' | |
6982 | fi | |
6983 | ||
6984 | else | |
6985 | ||
6986 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6987 | if test "x$LINE" != x ; then | |
6988 | eval "DEFAULT_$LINE" | |
6989 | else | |
6990 | no_cache=1 | |
6991 | fi | |
6992 | ||
6993 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6994 | ||
6995 | fi; | |
6996 | ||
6997 | eval "$ac_cv_use_help" | |
6998 | if test "$no_cache" != 1; then | |
6999 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
7000 | fi | |
7001 | ||
7002 | if test "$wxUSE_HELP" = yes; then | |
7003 | echo "$as_me:$LINENO: result: yes" >&5 | |
7004 | echo "${ECHO_T}yes" >&6 | |
7005 | else | |
7006 | echo "$as_me:$LINENO: result: no" >&5 | |
7007 | echo "${ECHO_T}no" >&6 | |
7008 | fi | |
7009 | ||
7010 | ||
7011 | enablestring= | |
7012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
7013 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
7014 | no_cache=0 | |
7015 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
7016 | if test "${enable_mshtmlhelp+set}" = set; then | |
7017 | enableval="$enable_mshtmlhelp" | |
7018 | ||
7019 | if test "$enableval" = yes; then | |
7020 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
7021 | else | |
7022 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
7023 | fi | |
7024 | ||
7025 | else | |
7026 | ||
7027 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
7028 | if test "x$LINE" != x ; then | |
7029 | eval "DEFAULT_$LINE" | |
7030 | else | |
7031 | no_cache=1 | |
7032 | fi | |
7033 | ||
7034 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
7035 | ||
7036 | fi; | |
7037 | ||
7038 | eval "$ac_cv_use_mshtmlhelp" | |
7039 | if test "$no_cache" != 1; then | |
7040 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
7041 | fi | |
7042 | ||
7043 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
7044 | echo "$as_me:$LINENO: result: yes" >&5 | |
7045 | echo "${ECHO_T}yes" >&6 | |
7046 | else | |
7047 | echo "$as_me:$LINENO: result: no" >&5 | |
7048 | echo "${ECHO_T}no" >&6 | |
7049 | fi | |
7050 | ||
7051 | ||
7052 | enablestring= | |
7053 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
7054 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
7055 | no_cache=0 | |
7056 | # Check whether --enable-html or --disable-html was given. | |
7057 | if test "${enable_html+set}" = set; then | |
7058 | enableval="$enable_html" | |
7059 | ||
7060 | if test "$enableval" = yes; then | |
7061 | ac_cv_use_html='wxUSE_HTML=yes' | |
7062 | else | |
7063 | ac_cv_use_html='wxUSE_HTML=no' | |
7064 | fi | |
7065 | ||
7066 | else | |
7067 | ||
7068 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
7069 | if test "x$LINE" != x ; then | |
7070 | eval "DEFAULT_$LINE" | |
7071 | else | |
7072 | no_cache=1 | |
7073 | fi | |
7074 | ||
7075 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
7076 | ||
7077 | fi; | |
7078 | ||
7079 | eval "$ac_cv_use_html" | |
7080 | if test "$no_cache" != 1; then | |
7081 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
7082 | fi | |
7083 | ||
7084 | if test "$wxUSE_HTML" = yes; then | |
7085 | echo "$as_me:$LINENO: result: yes" >&5 | |
7086 | echo "${ECHO_T}yes" >&6 | |
7087 | else | |
7088 | echo "$as_me:$LINENO: result: no" >&5 | |
7089 | echo "${ECHO_T}no" >&6 | |
7090 | fi | |
7091 | ||
7092 | ||
7093 | enablestring= | |
7094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
7095 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
7096 | no_cache=0 | |
7097 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
7098 | if test "${enable_htmlhelp+set}" = set; then | |
7099 | enableval="$enable_htmlhelp" | |
7100 | ||
7101 | if test "$enableval" = yes; then | |
7102 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
7103 | else | |
7104 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
7105 | fi | |
7106 | ||
7107 | else | |
7108 | ||
7109 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
7110 | if test "x$LINE" != x ; then | |
7111 | eval "DEFAULT_$LINE" | |
7112 | else | |
7113 | no_cache=1 | |
7114 | fi | |
7115 | ||
7116 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
7117 | ||
7118 | fi; | |
7119 | ||
7120 | eval "$ac_cv_use_htmlhelp" | |
7121 | if test "$no_cache" != 1; then | |
7122 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
7123 | fi | |
7124 | ||
7125 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
7126 | echo "$as_me:$LINENO: result: yes" >&5 | |
7127 | echo "${ECHO_T}yes" >&6 | |
7128 | else | |
7129 | echo "$as_me:$LINENO: result: no" >&5 | |
7130 | echo "${ECHO_T}no" >&6 | |
7131 | fi | |
7132 | ||
7133 | ||
9a8f0513 VS |
7134 | enablestring= |
7135 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
7136 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
7137 | no_cache=0 | |
7138 | # Check whether --enable-xrc or --disable-xrc was given. | |
7139 | if test "${enable_xrc+set}" = set; then | |
7140 | enableval="$enable_xrc" | |
7141 | ||
7142 | if test "$enableval" = yes; then | |
7143 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
7144 | else | |
7145 | ac_cv_use_xrc='wxUSE_XRC=no' | |
7146 | fi | |
7147 | ||
7148 | else | |
7149 | ||
7150 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
7151 | if test "x$LINE" != x ; then | |
7152 | eval "DEFAULT_$LINE" | |
7153 | else | |
7154 | no_cache=1 | |
7155 | fi | |
7156 | ||
7157 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
7158 | ||
7159 | fi; | |
7160 | ||
7161 | eval "$ac_cv_use_xrc" | |
7162 | if test "$no_cache" != 1; then | |
7163 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
7164 | fi | |
7165 | ||
7166 | if test "$wxUSE_XRC" = yes; then | |
7167 | echo "$as_me:$LINENO: result: yes" >&5 | |
7168 | echo "${ECHO_T}yes" >&6 | |
7169 | else | |
7170 | echo "$as_me:$LINENO: result: no" >&5 | |
7171 | echo "${ECHO_T}no" >&6 | |
7172 | fi | |
7173 | ||
7174 | ||
3f60522a JS |
7175 | enablestring= |
7176 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5 | |
7177 | echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6 | |
7178 | no_cache=0 | |
7179 | # Check whether --enable-aui or --disable-aui was given. | |
7180 | if test "${enable_aui+set}" = set; then | |
7181 | enableval="$enable_aui" | |
7182 | ||
7183 | if test "$enableval" = yes; then | |
7184 | ac_cv_use_aui='wxUSE_AUI=yes' | |
7185 | else | |
7186 | ac_cv_use_aui='wxUSE_AUI=no' | |
7187 | fi | |
7188 | ||
7189 | else | |
7190 | ||
7191 | LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}` | |
7192 | if test "x$LINE" != x ; then | |
7193 | eval "DEFAULT_$LINE" | |
7194 | else | |
7195 | no_cache=1 | |
7196 | fi | |
7197 | ||
7198 | ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI | |
7199 | ||
7200 | fi; | |
7201 | ||
7202 | eval "$ac_cv_use_aui" | |
7203 | if test "$no_cache" != 1; then | |
7204 | echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp | |
7205 | fi | |
7206 | ||
7207 | if test "$wxUSE_AUI" = yes; then | |
7208 | echo "$as_me:$LINENO: result: yes" >&5 | |
7209 | echo "${ECHO_T}yes" >&6 | |
7210 | else | |
7211 | echo "$as_me:$LINENO: result: no" >&5 | |
7212 | echo "${ECHO_T}no" >&6 | |
7213 | fi | |
7214 | ||
7215 | ||
a848cd7e SC |
7216 | enablestring= |
7217 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
7218 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
7219 | no_cache=0 | |
7220 | # Check whether --enable-constraints or --disable-constraints was given. | |
7221 | if test "${enable_constraints+set}" = set; then | |
7222 | enableval="$enable_constraints" | |
7223 | ||
7224 | if test "$enableval" = yes; then | |
7225 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
7226 | else | |
7227 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
7228 | fi | |
7229 | ||
7230 | else | |
7231 | ||
7232 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
7233 | if test "x$LINE" != x ; then | |
7234 | eval "DEFAULT_$LINE" | |
7235 | else | |
7236 | no_cache=1 | |
7237 | fi | |
7238 | ||
7239 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
7240 | ||
7241 | fi; | |
7242 | ||
7243 | eval "$ac_cv_use_constraints" | |
7244 | if test "$no_cache" != 1; then | |
7245 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
7246 | fi | |
7247 | ||
7248 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
7249 | echo "$as_me:$LINENO: result: yes" >&5 | |
7250 | echo "${ECHO_T}yes" >&6 | |
7251 | else | |
7252 | echo "$as_me:$LINENO: result: no" >&5 | |
7253 | echo "${ECHO_T}no" >&6 | |
7254 | fi | |
7255 | ||
7256 | ||
7257 | enablestring= | |
7258 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
7259 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
7260 | no_cache=0 | |
7261 | # Check whether --enable-printarch or --disable-printarch was given. | |
7262 | if test "${enable_printarch+set}" = set; then | |
7263 | enableval="$enable_printarch" | |
7264 | ||
7265 | if test "$enableval" = yes; then | |
7266 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
7267 | else | |
7268 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
7269 | fi | |
7270 | ||
7271 | else | |
7272 | ||
7273 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
7274 | if test "x$LINE" != x ; then | |
7275 | eval "DEFAULT_$LINE" | |
7276 | else | |
7277 | no_cache=1 | |
7278 | fi | |
7279 | ||
7280 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
7281 | ||
7282 | fi; | |
7283 | ||
7284 | eval "$ac_cv_use_printarch" | |
7285 | if test "$no_cache" != 1; then | |
7286 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
7287 | fi | |
7288 | ||
7289 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
7290 | echo "$as_me:$LINENO: result: yes" >&5 | |
7291 | echo "${ECHO_T}yes" >&6 | |
7292 | else | |
7293 | echo "$as_me:$LINENO: result: no" >&5 | |
7294 | echo "${ECHO_T}no" >&6 | |
7295 | fi | |
7296 | ||
7297 | ||
7298 | enablestring= | |
7299 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
7300 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
7301 | no_cache=0 | |
7302 | # Check whether --enable-mdi or --disable-mdi was given. | |
7303 | if test "${enable_mdi+set}" = set; then | |
7304 | enableval="$enable_mdi" | |
7305 | ||
7306 | if test "$enableval" = yes; then | |
8a7b1113 | 7307 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 7308 | else |
8a7b1113 | 7309 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
7310 | fi |
7311 | ||
7312 | else | |
7313 | ||
8a7b1113 | 7314 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
7315 | if test "x$LINE" != x ; then |
7316 | eval "DEFAULT_$LINE" | |
7317 | else | |
7318 | no_cache=1 | |
7319 | fi | |
7320 | ||
8a7b1113 | 7321 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
7322 | |
7323 | fi; | |
7324 | ||
7325 | eval "$ac_cv_use_mdi" | |
7326 | if test "$no_cache" != 1; then | |
7327 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
7328 | fi | |
7329 | ||
8a7b1113 VZ |
7330 | if test "$wxUSE_MDI" = yes; then |
7331 | echo "$as_me:$LINENO: result: yes" >&5 | |
7332 | echo "${ECHO_T}yes" >&6 | |
7333 | else | |
7334 | echo "$as_me:$LINENO: result: no" >&5 | |
7335 | echo "${ECHO_T}no" >&6 | |
7336 | fi | |
7337 | ||
7338 | ||
7339 | enablestring= | |
7340 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
7341 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
7342 | no_cache=0 | |
7343 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
7344 | if test "${enable_mdidoc+set}" = set; then | |
7345 | enableval="$enable_mdidoc" | |
7346 | ||
7347 | if test "$enableval" = yes; then | |
7348 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
7349 | else | |
7350 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
7351 | fi | |
7352 | ||
7353 | else | |
7354 | ||
7355 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
7356 | if test "x$LINE" != x ; then | |
7357 | eval "DEFAULT_$LINE" | |
7358 | else | |
7359 | no_cache=1 | |
7360 | fi | |
7361 | ||
7362 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
7363 | ||
7364 | fi; | |
7365 | ||
7366 | eval "$ac_cv_use_mdidoc" | |
7367 | if test "$no_cache" != 1; then | |
7368 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
7369 | fi | |
7370 | ||
a848cd7e SC |
7371 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
7372 | echo "$as_me:$LINENO: result: yes" >&5 | |
7373 | echo "${ECHO_T}yes" >&6 | |
7374 | else | |
7375 | echo "$as_me:$LINENO: result: no" >&5 | |
7376 | echo "${ECHO_T}no" >&6 | |
7377 | fi | |
7378 | ||
7379 | ||
7380 | enablestring= | |
7381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
7382 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
7383 | no_cache=0 | |
7384 | # Check whether --enable-loggui or --disable-loggui was given. | |
7385 | if test "${enable_loggui+set}" = set; then | |
7386 | enableval="$enable_loggui" | |
7387 | ||
7388 | if test "$enableval" = yes; then | |
7389 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
7390 | else | |
7391 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
7392 | fi | |
7393 | ||
7394 | else | |
7395 | ||
7396 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
7397 | if test "x$LINE" != x ; then | |
7398 | eval "DEFAULT_$LINE" | |
7399 | else | |
7400 | no_cache=1 | |
7401 | fi | |
7402 | ||
7403 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
7404 | ||
7405 | fi; | |
7406 | ||
7407 | eval "$ac_cv_use_loggui" | |
7408 | if test "$no_cache" != 1; then | |
7409 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
7410 | fi | |
7411 | ||
7412 | if test "$wxUSE_LOGGUI" = yes; then | |
7413 | echo "$as_me:$LINENO: result: yes" >&5 | |
7414 | echo "${ECHO_T}yes" >&6 | |
7415 | else | |
7416 | echo "$as_me:$LINENO: result: no" >&5 | |
7417 | echo "${ECHO_T}no" >&6 | |
7418 | fi | |
7419 | ||
7420 | ||
7421 | enablestring= | |
7422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
7423 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
7424 | no_cache=0 | |
7425 | # Check whether --enable-logwin or --disable-logwin was given. | |
7426 | if test "${enable_logwin+set}" = set; then | |
7427 | enableval="$enable_logwin" | |
7428 | ||
7429 | if test "$enableval" = yes; then | |
7430 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
7431 | else | |
7432 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
7433 | fi | |
7434 | ||
7435 | else | |
7436 | ||
7437 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
7438 | if test "x$LINE" != x ; then | |
7439 | eval "DEFAULT_$LINE" | |
7440 | else | |
7441 | no_cache=1 | |
7442 | fi | |
7443 | ||
7444 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
7445 | ||
7446 | fi; | |
7447 | ||
7448 | eval "$ac_cv_use_logwin" | |
7449 | if test "$no_cache" != 1; then | |
7450 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
7451 | fi | |
7452 | ||
7453 | if test "$wxUSE_LOGWINDOW" = yes; then | |
7454 | echo "$as_me:$LINENO: result: yes" >&5 | |
7455 | echo "${ECHO_T}yes" >&6 | |
7456 | else | |
7457 | echo "$as_me:$LINENO: result: no" >&5 | |
7458 | echo "${ECHO_T}no" >&6 | |
7459 | fi | |
7460 | ||
7461 | ||
7462 | enablestring= | |
7463 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
7464 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
7465 | no_cache=0 | |
7466 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
7467 | if test "${enable_logdialog+set}" = set; then | |
7468 | enableval="$enable_logdialog" | |
7469 | ||
7470 | if test "$enableval" = yes; then | |
7471 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
7472 | else | |
7473 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
7474 | fi | |
7475 | ||
7476 | else | |
7477 | ||
7478 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
7479 | if test "x$LINE" != x ; then | |
7480 | eval "DEFAULT_$LINE" | |
7481 | else | |
7482 | no_cache=1 | |
7483 | fi | |
7484 | ||
7485 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
7486 | ||
7487 | fi; | |
7488 | ||
7489 | eval "$ac_cv_use_logdialog" | |
7490 | if test "$no_cache" != 1; then | |
7491 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
7492 | fi | |
7493 | ||
7494 | if test "$wxUSE_LOGDIALOG" = yes; then | |
7495 | echo "$as_me:$LINENO: result: yes" >&5 | |
7496 | echo "${ECHO_T}yes" >&6 | |
7497 | else | |
7498 | echo "$as_me:$LINENO: result: no" >&5 | |
7499 | echo "${ECHO_T}no" >&6 | |
7500 | fi | |
7501 | ||
7502 | ||
646b6ec1 VS |
7503 | enablestring= |
7504 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
7505 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
7506 | no_cache=0 | |
7507 | # Check whether --enable-webkit or --disable-webkit was given. | |
7508 | if test "${enable_webkit+set}" = set; then | |
7509 | enableval="$enable_webkit" | |
7510 | ||
7511 | if test "$enableval" = yes; then | |
7512 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
7513 | else | |
7514 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
7515 | fi | |
7516 | ||
7517 | else | |
7518 | ||
7519 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
7520 | if test "x$LINE" != x ; then | |
7521 | eval "DEFAULT_$LINE" | |
7522 | else | |
7523 | no_cache=1 | |
7524 | fi | |
7525 | ||
7526 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
7527 | ||
7528 | fi; | |
7529 | ||
7530 | eval "$ac_cv_use_webkit" | |
7531 | if test "$no_cache" != 1; then | |
7532 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
7533 | fi | |
7534 | ||
7535 | if test "$wxUSE_WEBKIT" = yes; then | |
7536 | echo "$as_me:$LINENO: result: yes" >&5 | |
7537 | echo "${ECHO_T}yes" >&6 | |
7538 | else | |
7539 | echo "$as_me:$LINENO: result: no" >&5 | |
7540 | echo "${ECHO_T}no" >&6 | |
7541 | fi | |
7542 | ||
7543 | ||
91dea314 | 7544 | enablestring= |
6da4ac91 VZ |
7545 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5 |
7546 | echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6 | |
91dea314 | 7547 | no_cache=0 |
6da4ac91 VZ |
7548 | # Check whether --enable-richtext or --disable-richtext was given. |
7549 | if test "${enable_richtext+set}" = set; then | |
7550 | enableval="$enable_richtext" | |
91dea314 MW |
7551 | |
7552 | if test "$enableval" = yes; then | |
6da4ac91 | 7553 | ac_cv_use_richtext='wxUSE_RICHTEXT=yes' |
91dea314 | 7554 | else |
6da4ac91 | 7555 | ac_cv_use_richtext='wxUSE_RICHTEXT=no' |
91dea314 MW |
7556 | fi |
7557 | ||
7558 | else | |
7559 | ||
7560 | LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}` | |
7561 | if test "x$LINE" != x ; then | |
7562 | eval "DEFAULT_$LINE" | |
7563 | else | |
7564 | no_cache=1 | |
7565 | fi | |
7566 | ||
6da4ac91 | 7567 | ac_cv_use_richtext='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT |
91dea314 MW |
7568 | |
7569 | fi; | |
7570 | ||
6da4ac91 | 7571 | eval "$ac_cv_use_richtext" |
91dea314 | 7572 | if test "$no_cache" != 1; then |
6da4ac91 | 7573 | echo $ac_cv_use_richtext >> ${wx_arg_cache_file}.tmp |
91dea314 MW |
7574 | fi |
7575 | ||
7576 | if test "$wxUSE_RICHTEXT" = yes; then | |
7577 | echo "$as_me:$LINENO: result: yes" >&5 | |
7578 | echo "${ECHO_T}yes" >&6 | |
7579 | else | |
7580 | echo "$as_me:$LINENO: result: no" >&5 | |
7581 | echo "${ECHO_T}no" >&6 | |
7582 | fi | |
7583 | ||
7584 | ||
f43426c1 RD |
7585 | enablestring= |
7586 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5 | |
7587 | echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6 | |
7588 | no_cache=0 | |
7589 | # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given. | |
7590 | if test "${enable_graphics_ctx+set}" = set; then | |
7591 | enableval="$enable_graphics_ctx" | |
7592 | ||
7593 | if test "$enableval" = yes; then | |
7594 | ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes' | |
7595 | else | |
7596 | ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no' | |
7597 | fi | |
7598 | ||
7599 | else | |
7600 | ||
7601 | LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}` | |
7602 | if test "x$LINE" != x ; then | |
7603 | eval "DEFAULT_$LINE" | |
7604 | else | |
7605 | no_cache=1 | |
7606 | fi | |
7607 | ||
7608 | ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT | |
7609 | ||
7610 | fi; | |
7611 | ||
7612 | eval "$ac_cv_use_graphics_ctx" | |
7613 | if test "$no_cache" != 1; then | |
7614 | echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp | |
7615 | fi | |
7616 | ||
7617 | if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then | |
7618 | echo "$as_me:$LINENO: result: yes" >&5 | |
7619 | echo "${ECHO_T}yes" >&6 | |
7620 | else | |
7621 | echo "$as_me:$LINENO: result: no" >&5 | |
7622 | echo "${ECHO_T}no" >&6 | |
7623 | fi | |
7624 | ||
7625 | ||
a848cd7e SC |
7626 | |
7627 | enablestring= | |
7628 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7629 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7630 | no_cache=0 | |
7631 | # Check whether --enable-postscript or --disable-postscript was given. | |
7632 | if test "${enable_postscript+set}" = set; then | |
7633 | enableval="$enable_postscript" | |
7634 | ||
7635 | if test "$enableval" = yes; then | |
7636 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7637 | else | |
7638 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7639 | fi | |
7640 | ||
7641 | else | |
7642 | ||
7643 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7644 | if test "x$LINE" != x ; then | |
7645 | eval "DEFAULT_$LINE" | |
7646 | else | |
7647 | no_cache=1 | |
7648 | fi | |
7649 | ||
7650 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7651 | ||
7652 | fi; | |
7653 | ||
7654 | eval "$ac_cv_use_postscript" | |
7655 | if test "$no_cache" != 1; then | |
7656 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7657 | fi | |
7658 | ||
7659 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7660 | echo "$as_me:$LINENO: result: yes" >&5 | |
7661 | echo "${ECHO_T}yes" >&6 | |
7662 | else | |
7663 | echo "$as_me:$LINENO: result: no" >&5 | |
7664 | echo "${ECHO_T}no" >&6 | |
7665 | fi | |
7666 | ||
7667 | ||
7668 | ||
7669 | ||
7670 | ||
7671 | enablestring= | |
7672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7673 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7674 | no_cache=0 | |
7675 | # Check whether --enable-prologio or --disable-prologio was given. | |
7676 | if test "${enable_prologio+set}" = set; then | |
7677 | enableval="$enable_prologio" | |
7678 | ||
7679 | if test "$enableval" = yes; then | |
7680 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7681 | else | |
7682 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7683 | fi | |
7684 | ||
7685 | else | |
7686 | ||
7687 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7688 | if test "x$LINE" != x ; then | |
7689 | eval "DEFAULT_$LINE" | |
7690 | else | |
7691 | no_cache=1 | |
7692 | fi | |
7693 | ||
7694 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7695 | ||
7696 | fi; | |
7697 | ||
7698 | eval "$ac_cv_use_prologio" | |
7699 | if test "$no_cache" != 1; then | |
7700 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7701 | fi | |
7702 | ||
7703 | if test "$wxUSE_PROLOGIO" = yes; then | |
7704 | echo "$as_me:$LINENO: result: yes" >&5 | |
7705 | echo "${ECHO_T}yes" >&6 | |
7706 | else | |
7707 | echo "$as_me:$LINENO: result: no" >&5 | |
7708 | echo "${ECHO_T}no" >&6 | |
7709 | fi | |
7710 | ||
7711 | ||
7712 | enablestring= | |
7713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7714 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7715 | no_cache=0 | |
7716 | # Check whether --enable-resources or --disable-resources was given. | |
7717 | if test "${enable_resources+set}" = set; then | |
7718 | enableval="$enable_resources" | |
7719 | ||
7720 | if test "$enableval" = yes; then | |
7721 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7722 | else | |
7723 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7724 | fi | |
7725 | ||
7726 | else | |
7727 | ||
7728 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7729 | if test "x$LINE" != x ; then | |
7730 | eval "DEFAULT_$LINE" | |
7731 | else | |
7732 | no_cache=1 | |
7733 | fi | |
7734 | ||
7735 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7736 | ||
7737 | fi; | |
7738 | ||
7739 | eval "$ac_cv_use_resources" | |
7740 | if test "$no_cache" != 1; then | |
7741 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7742 | fi | |
7743 | ||
7744 | if test "$wxUSE_RESOURCES" = yes; then | |
7745 | echo "$as_me:$LINENO: result: yes" >&5 | |
7746 | echo "${ECHO_T}yes" >&6 | |
7747 | else | |
7748 | echo "$as_me:$LINENO: result: no" >&5 | |
7749 | echo "${ECHO_T}no" >&6 | |
7750 | fi | |
7751 | ||
7752 | ||
7753 | ||
7754 | ||
7755 | enablestring= | |
7756 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7757 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7758 | no_cache=0 | |
7759 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7760 | if test "${enable_clipboard+set}" = set; then | |
7761 | enableval="$enable_clipboard" | |
7762 | ||
7763 | if test "$enableval" = yes; then | |
7764 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7765 | else | |
7766 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7767 | fi | |
7768 | ||
7769 | else | |
7770 | ||
7771 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7772 | if test "x$LINE" != x ; then | |
7773 | eval "DEFAULT_$LINE" | |
7774 | else | |
7775 | no_cache=1 | |
7776 | fi | |
7777 | ||
7778 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7779 | ||
7780 | fi; | |
7781 | ||
7782 | eval "$ac_cv_use_clipboard" | |
7783 | if test "$no_cache" != 1; then | |
7784 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7785 | fi | |
7786 | ||
7787 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7788 | echo "$as_me:$LINENO: result: yes" >&5 | |
7789 | echo "${ECHO_T}yes" >&6 | |
7790 | else | |
7791 | echo "$as_me:$LINENO: result: no" >&5 | |
7792 | echo "${ECHO_T}no" >&6 | |
7793 | fi | |
7794 | ||
7795 | ||
7796 | enablestring= | |
7797 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7798 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7799 | no_cache=0 | |
7800 | # Check whether --enable-dnd or --disable-dnd was given. | |
7801 | if test "${enable_dnd+set}" = set; then | |
7802 | enableval="$enable_dnd" | |
7803 | ||
7804 | if test "$enableval" = yes; then | |
7805 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7806 | else | |
7807 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7808 | fi | |
7809 | ||
7810 | else | |
7811 | ||
7812 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7813 | if test "x$LINE" != x ; then | |
7814 | eval "DEFAULT_$LINE" | |
7815 | else | |
7816 | no_cache=1 | |
7817 | fi | |
7818 | ||
7819 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7820 | ||
7821 | fi; | |
7822 | ||
7823 | eval "$ac_cv_use_dnd" | |
7824 | if test "$no_cache" != 1; then | |
7825 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7826 | fi | |
7827 | ||
7828 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7829 | echo "$as_me:$LINENO: result: yes" >&5 | |
7830 | echo "${ECHO_T}yes" >&6 | |
7831 | else | |
7832 | echo "$as_me:$LINENO: result: no" >&5 | |
7833 | echo "${ECHO_T}no" >&6 | |
7834 | fi | |
7835 | ||
7836 | ||
7837 | enablestring= | |
7838 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7839 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7840 | no_cache=0 | |
7841 | # Check whether --enable-metafile or --disable-metafile was given. | |
7842 | if test "${enable_metafile+set}" = set; then | |
7843 | enableval="$enable_metafile" | |
7844 | ||
7845 | if test "$enableval" = yes; then | |
7846 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7847 | else | |
7848 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7849 | fi | |
7850 | ||
7851 | else | |
7852 | ||
7853 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7854 | if test "x$LINE" != x ; then | |
7855 | eval "DEFAULT_$LINE" | |
7856 | else | |
7857 | no_cache=1 | |
7858 | fi | |
7859 | ||
7860 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7861 | ||
7862 | fi; | |
7863 | ||
7864 | eval "$ac_cv_use_metafile" | |
7865 | if test "$no_cache" != 1; then | |
7866 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7867 | fi | |
7868 | ||
7869 | if test "$wxUSE_METAFILE" = yes; then | |
7870 | echo "$as_me:$LINENO: result: yes" >&5 | |
7871 | echo "${ECHO_T}yes" >&6 | |
7872 | else | |
7873 | echo "$as_me:$LINENO: result: no" >&5 | |
7874 | echo "${ECHO_T}no" >&6 | |
7875 | fi | |
7876 | ||
7877 | ||
7878 | ||
7879 | ||
7880 | ||
7881 | enablestring= | |
7882 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7883 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7884 | no_cache=0 | |
7885 | # Check whether --enable-controls or --disable-controls was given. | |
7886 | if test "${enable_controls+set}" = set; then | |
7887 | enableval="$enable_controls" | |
7888 | ||
7889 | if test "$enableval" = yes; then | |
7890 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7891 | else | |
7892 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7893 | fi | |
7894 | ||
7895 | else | |
7896 | ||
7897 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7898 | if test "x$LINE" != x ; then | |
7899 | eval "DEFAULT_$LINE" | |
7900 | else | |
7901 | no_cache=1 | |
7902 | fi | |
7903 | ||
7904 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7905 | ||
7906 | fi; | |
7907 | ||
7908 | eval "$ac_cv_use_controls" | |
7909 | if test "$no_cache" != 1; then | |
7910 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7911 | fi | |
7912 | ||
7913 | if test "$wxUSE_CONTROLS" = yes; then | |
7914 | echo "$as_me:$LINENO: result: yes" >&5 | |
7915 | echo "${ECHO_T}yes" >&6 | |
7916 | else | |
7917 | echo "$as_me:$LINENO: result: no" >&5 | |
7918 | echo "${ECHO_T}no" >&6 | |
7919 | fi | |
7920 | ||
7921 | ||
7922 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7923 | DEFAULT_wxUSE_ACCEL=yes | |
3ea50042 | 7924 | DEFAULT_wxUSE_ANIMATIONCTRL=yes |
a848cd7e SC |
7925 | DEFAULT_wxUSE_BMPBUTTON=yes |
7926 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7927 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7928 | DEFAULT_wxUSE_CARET=yes |
7929 | DEFAULT_wxUSE_COMBOBOX=yes | |
7930 | DEFAULT_wxUSE_CHECKBOX=yes | |
7931 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7932 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7933 | DEFAULT_wxUSE_CHOICEBOOK=yes |
bd915ace | 7934 | DEFAULT_wxUSE_COLLPANE=yes |
e9263684 VZ |
7935 | DEFAULT_wxUSE_COLOURPICKERCTRL=yes |
7936 | DEFAULT_wxUSE_COMBOBOX=yes | |
da98e9be | 7937 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
e9263684 | 7938 | DEFAULT_wxUSE_DISPLAY=yes |
88bbc332 | 7939 | DEFAULT_wxUSE_DETECT_SM=yes |
e9263684 VZ |
7940 | DEFAULT_wxUSE_DIRPICKERCTRL=yes |
7941 | DEFAULT_wxUSE_FILEPICKERCTRL=yes | |
7942 | DEFAULT_wxUSE_FONTPICKERCTRL=yes | |
a848cd7e SC |
7943 | DEFAULT_wxUSE_GAUGE=yes |
7944 | DEFAULT_wxUSE_GRID=yes | |
6954625c | 7945 | DEFAULT_wxUSE_HYPERLINKCTRL=yes |
20e34ecc | 7946 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7947 | DEFAULT_wxUSE_IMAGLIST=yes |
7948 | DEFAULT_wxUSE_LISTBOOK=yes | |
7949 | DEFAULT_wxUSE_LISTBOX=yes | |
7950 | DEFAULT_wxUSE_LISTCTRL=yes | |
7951 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7952 | DEFAULT_wxUSE_RADIOBOX=yes | |
7953 | DEFAULT_wxUSE_RADIOBTN=yes | |
7954 | DEFAULT_wxUSE_SASH=yes | |
7955 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7956 | DEFAULT_wxUSE_SLIDER=yes | |
7957 | DEFAULT_wxUSE_SPINBTN=yes | |
7958 | DEFAULT_wxUSE_SPINCTRL=yes | |
7959 | DEFAULT_wxUSE_SPLITTER=yes | |
7960 | DEFAULT_wxUSE_STATBMP=yes | |
7961 | DEFAULT_wxUSE_STATBOX=yes | |
7962 | DEFAULT_wxUSE_STATLINE=yes | |
7963 | DEFAULT_wxUSE_STATUSBAR=yes | |
7964 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7965 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7966 | DEFAULT_wxUSE_TOOLBAR=yes | |
7967 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
a848cd7e | 7968 | DEFAULT_wxUSE_TOOLTIPS=yes |
0093c2fc | 7969 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 7970 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
7971 | DEFAULT_wxUSE_TREECTRL=yes |
7972 | DEFAULT_wxUSE_POPUPWIN=yes | |
7973 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7974 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7975 | DEFAULT_wxUSE_ACCEL=no | |
3ea50042 | 7976 | DEFAULT_wxUSE_ANIMATIONCTRL=no |
a848cd7e SC |
7977 | DEFAULT_wxUSE_BMPBUTTON=no |
7978 | DEFAULT_wxUSE_BUTTON=no | |
7979 | DEFAULT_wxUSE_CALCTRL=no | |
7980 | DEFAULT_wxUSE_CARET=no | |
bd915ace | 7981 | DEFAULT_wxUSE_COLLPANE=no |
a848cd7e SC |
7982 | DEFAULT_wxUSE_COMBOBOX=no |
7983 | DEFAULT_wxUSE_CHECKBOX=no | |
7984 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7985 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7986 | DEFAULT_wxUSE_CHOICEBOOK=no |
e9263684 VZ |
7987 | DEFAULT_wxUSE_COLOURPICKERCTRL=no |
7988 | DEFAULT_wxUSE_COMBOBOX=no | |
da98e9be | 7989 | DEFAULT_wxUSE_DATEPICKCTRL=no |
e9263684 | 7990 | DEFAULT_wxUSE_DISPLAY=no |
88bbc332 | 7991 | DEFAULT_wxUSE_DETECT_SM=no |
e9263684 VZ |
7992 | DEFAULT_wxUSE_DIRPICKERCTRL=no |
7993 | DEFAULT_wxUSE_FILEPICKERCTRL=no | |
7994 | DEFAULT_wxUSE_FONTPICKERCTRL=no | |
a848cd7e SC |
7995 | DEFAULT_wxUSE_GAUGE=no |
7996 | DEFAULT_wxUSE_GRID=no | |
6954625c | 7997 | DEFAULT_wxUSE_HYPERLINKCTRL=no |
20e34ecc | 7998 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7999 | DEFAULT_wxUSE_IMAGLIST=no |
8000 | DEFAULT_wxUSE_LISTBOOK=no | |
8001 | DEFAULT_wxUSE_LISTBOX=no | |
8002 | DEFAULT_wxUSE_LISTCTRL=no | |
8003 | DEFAULT_wxUSE_NOTEBOOK=no | |
8004 | DEFAULT_wxUSE_RADIOBOX=no | |
8005 | DEFAULT_wxUSE_RADIOBTN=no | |
8006 | DEFAULT_wxUSE_SASH=no | |
8007 | DEFAULT_wxUSE_SCROLLBAR=no | |
8008 | DEFAULT_wxUSE_SLIDER=no | |
8009 | DEFAULT_wxUSE_SPINBTN=no | |
8010 | DEFAULT_wxUSE_SPINCTRL=no | |
8011 | DEFAULT_wxUSE_SPLITTER=no | |
8012 | DEFAULT_wxUSE_STATBMP=no | |
8013 | DEFAULT_wxUSE_STATBOX=no | |
8014 | DEFAULT_wxUSE_STATLINE=no | |
8015 | DEFAULT_wxUSE_STATUSBAR=no | |
8016 | DEFAULT_wxUSE_TAB_DIALOG=no | |
8017 | DEFAULT_wxUSE_TOGGLEBTN=no | |
8018 | DEFAULT_wxUSE_TOOLBAR=no | |
8019 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
a848cd7e | 8020 | DEFAULT_wxUSE_TOOLTIPS=no |
0093c2fc | 8021 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 8022 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
8023 | DEFAULT_wxUSE_TREECTRL=no |
8024 | DEFAULT_wxUSE_POPUPWIN=no | |
8025 | DEFAULT_wxUSE_TIPWINDOW=no | |
8026 | fi | |
8027 | ||
a848cd7e SC |
8028 | |
8029 | enablestring= | |
8030 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
8031 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
8032 | no_cache=0 | |
8033 | # Check whether --enable-accel or --disable-accel was given. | |
8034 | if test "${enable_accel+set}" = set; then | |
8035 | enableval="$enable_accel" | |
8036 | ||
8037 | if test "$enableval" = yes; then | |
8038 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
8039 | else | |
8040 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
8041 | fi | |
8042 | ||
8043 | else | |
8044 | ||
8045 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
8046 | if test "x$LINE" != x ; then | |
8047 | eval "DEFAULT_$LINE" | |
8048 | else | |
8049 | no_cache=1 | |
8050 | fi | |
8051 | ||
8052 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
8053 | ||
8054 | fi; | |
8055 | ||
8056 | eval "$ac_cv_use_accel" | |
8057 | if test "$no_cache" != 1; then | |
8058 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
8059 | fi | |
8060 | ||
8061 | if test "$wxUSE_ACCEL" = yes; then | |
8062 | echo "$as_me:$LINENO: result: yes" >&5 | |
8063 | echo "${ECHO_T}yes" >&6 | |
8064 | else | |
8065 | echo "$as_me:$LINENO: result: no" >&5 | |
8066 | echo "${ECHO_T}no" >&6 | |
8067 | fi | |
8068 | ||
8069 | ||
3ea50042 VZ |
8070 | enablestring= |
8071 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5 | |
8072 | echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6 | |
8073 | no_cache=0 | |
8074 | # Check whether --enable-animatectrl or --disable-animatectrl was given. | |
8075 | if test "${enable_animatectrl+set}" = set; then | |
8076 | enableval="$enable_animatectrl" | |
8077 | ||
8078 | if test "$enableval" = yes; then | |
8079 | ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes' | |
8080 | else | |
8081 | ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no' | |
8082 | fi | |
8083 | ||
8084 | else | |
8085 | ||
8086 | LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}` | |
8087 | if test "x$LINE" != x ; then | |
8088 | eval "DEFAULT_$LINE" | |
8089 | else | |
8090 | no_cache=1 | |
8091 | fi | |
8092 | ||
8093 | ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL | |
8094 | ||
8095 | fi; | |
8096 | ||
8097 | eval "$ac_cv_use_animatectrl" | |
8098 | if test "$no_cache" != 1; then | |
8099 | echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp | |
8100 | fi | |
8101 | ||
8102 | if test "$wxUSE_ANIMATIONCTRL" = yes; then | |
8103 | echo "$as_me:$LINENO: result: yes" >&5 | |
8104 | echo "${ECHO_T}yes" >&6 | |
8105 | else | |
8106 | echo "$as_me:$LINENO: result: no" >&5 | |
8107 | echo "${ECHO_T}no" >&6 | |
8108 | fi | |
8109 | ||
8110 | ||
a848cd7e SC |
8111 | enablestring= |
8112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
8113 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
8114 | no_cache=0 | |
8115 | # Check whether --enable-button or --disable-button was given. | |
8116 | if test "${enable_button+set}" = set; then | |
8117 | enableval="$enable_button" | |
8118 | ||
8119 | if test "$enableval" = yes; then | |
8120 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
8121 | else | |
8122 | ac_cv_use_button='wxUSE_BUTTON=no' | |
8123 | fi | |
8124 | ||
8125 | else | |
8126 | ||
8127 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
8128 | if test "x$LINE" != x ; then | |
8129 | eval "DEFAULT_$LINE" | |
8130 | else | |
8131 | no_cache=1 | |
8132 | fi | |
8133 | ||
8134 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
8135 | ||
8136 | fi; | |
8137 | ||
8138 | eval "$ac_cv_use_button" | |
8139 | if test "$no_cache" != 1; then | |
8140 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
8141 | fi | |
8142 | ||
8143 | if test "$wxUSE_BUTTON" = yes; then | |
8144 | echo "$as_me:$LINENO: result: yes" >&5 | |
8145 | echo "${ECHO_T}yes" >&6 | |
8146 | else | |
8147 | echo "$as_me:$LINENO: result: no" >&5 | |
8148 | echo "${ECHO_T}no" >&6 | |
8149 | fi | |
8150 | ||
8151 | ||
8152 | enablestring= | |
8153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
8154 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
8155 | no_cache=0 | |
8156 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
8157 | if test "${enable_bmpbutton+set}" = set; then | |
8158 | enableval="$enable_bmpbutton" | |
8159 | ||
8160 | if test "$enableval" = yes; then | |
8161 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
8162 | else | |
8163 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
8164 | fi | |
8165 | ||
8166 | else | |
8167 | ||
8168 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
8169 | if test "x$LINE" != x ; then | |
8170 | eval "DEFAULT_$LINE" | |
8171 | else | |
8172 | no_cache=1 | |
8173 | fi | |
8174 | ||
8175 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
8176 | ||
8177 | fi; | |
8178 | ||
8179 | eval "$ac_cv_use_bmpbutton" | |
8180 | if test "$no_cache" != 1; then | |
8181 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
8182 | fi | |
8183 | ||
8184 | if test "$wxUSE_BMPBUTTON" = yes; then | |
8185 | echo "$as_me:$LINENO: result: yes" >&5 | |
8186 | echo "${ECHO_T}yes" >&6 | |
8187 | else | |
8188 | echo "$as_me:$LINENO: result: no" >&5 | |
8189 | echo "${ECHO_T}no" >&6 | |
8190 | fi | |
8191 | ||
8192 | ||
95a46303 RR |
8193 | enablestring= |
8194 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5 | |
8195 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6 | |
8196 | no_cache=0 | |
8197 | # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given. | |
8198 | if test "${enable_bmpcombobox+set}" = set; then | |
8199 | enableval="$enable_bmpcombobox" | |
8200 | ||
8201 | if test "$enableval" = yes; then | |
8202 | ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes' | |
8203 | else | |
8204 | ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no' | |
8205 | fi | |
8206 | ||
8207 | else | |
8208 | ||
8209 | LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}` | |
8210 | if test "x$LINE" != x ; then | |
8211 | eval "DEFAULT_$LINE" | |
8212 | else | |
8213 | no_cache=1 | |
8214 | fi | |
8215 | ||
8216 | ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX | |
8217 | ||
8218 | fi; | |
8219 | ||
8220 | eval "$ac_cv_use_bmpcombobox" | |
8221 | if test "$no_cache" != 1; then | |
8222 | echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp | |
8223 | fi | |
8224 | ||
8225 | if test "$wxUSE_BITMAPCOMBOBOX" = yes; then | |
8226 | echo "$as_me:$LINENO: result: yes" >&5 | |
8227 | echo "${ECHO_T}yes" >&6 | |
8228 | else | |
8229 | echo "$as_me:$LINENO: result: no" >&5 | |
8230 | echo "${ECHO_T}no" >&6 | |
8231 | fi | |
8232 | ||
8233 | ||
a848cd7e SC |
8234 | enablestring= |
8235 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
8236 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
8237 | no_cache=0 | |
8238 | # Check whether --enable-calendar or --disable-calendar was given. | |
8239 | if test "${enable_calendar+set}" = set; then | |
8240 | enableval="$enable_calendar" | |
8241 | ||
8242 | if test "$enableval" = yes; then | |
8243 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
8244 | else | |
8245 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
8246 | fi | |
8247 | ||
8248 | else | |
8249 | ||
8250 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
8251 | if test "x$LINE" != x ; then | |
8252 | eval "DEFAULT_$LINE" | |
8253 | else | |
8254 | no_cache=1 | |
8255 | fi | |
8256 | ||
8257 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
8258 | ||
8259 | fi; | |
8260 | ||
8261 | eval "$ac_cv_use_calendar" | |
8262 | if test "$no_cache" != 1; then | |
8263 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
8264 | fi | |
8265 | ||
8266 | if test "$wxUSE_CALCTRL" = yes; then | |
8267 | echo "$as_me:$LINENO: result: yes" >&5 | |
8268 | echo "${ECHO_T}yes" >&6 | |
8269 | else | |
8270 | echo "$as_me:$LINENO: result: no" >&5 | |
8271 | echo "${ECHO_T}no" >&6 | |
8272 | fi | |
8273 | ||
8274 | ||
8275 | enablestring= | |
8276 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
8277 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
8278 | no_cache=0 | |
8279 | # Check whether --enable-caret or --disable-caret was given. | |
8280 | if test "${enable_caret+set}" = set; then | |
8281 | enableval="$enable_caret" | |
8282 | ||
8283 | if test "$enableval" = yes; then | |
8284 | ac_cv_use_caret='wxUSE_CARET=yes' | |
8285 | else | |
8286 | ac_cv_use_caret='wxUSE_CARET=no' | |
8287 | fi | |
8288 | ||
8289 | else | |
8290 | ||
8291 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
8292 | if test "x$LINE" != x ; then | |
8293 | eval "DEFAULT_$LINE" | |
8294 | else | |
8295 | no_cache=1 | |
8296 | fi | |
8297 | ||
8298 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
8299 | ||
8300 | fi; | |
8301 | ||
8302 | eval "$ac_cv_use_caret" | |
8303 | if test "$no_cache" != 1; then | |
8304 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
8305 | fi | |
8306 | ||
8307 | if test "$wxUSE_CARET" = yes; then | |
8308 | echo "$as_me:$LINENO: result: yes" >&5 | |
8309 | echo "${ECHO_T}yes" >&6 | |
8310 | else | |
8311 | echo "$as_me:$LINENO: result: no" >&5 | |
8312 | echo "${ECHO_T}no" >&6 | |
8313 | fi | |
8314 | ||
8315 | ||
8316 | enablestring= | |
8317 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
8318 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
8319 | no_cache=0 | |
8320 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
8321 | if test "${enable_checkbox+set}" = set; then | |
8322 | enableval="$enable_checkbox" | |
8323 | ||
8324 | if test "$enableval" = yes; then | |
8325 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
8326 | else | |
8327 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
8328 | fi | |
8329 | ||
8330 | else | |
8331 | ||
8332 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
8333 | if test "x$LINE" != x ; then | |
8334 | eval "DEFAULT_$LINE" | |
8335 | else | |
8336 | no_cache=1 | |
8337 | fi | |
8338 | ||
8339 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
8340 | ||
8341 | fi; | |
8342 | ||
8343 | eval "$ac_cv_use_checkbox" | |
8344 | if test "$no_cache" != 1; then | |
8345 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
8346 | fi | |
8347 | ||
8348 | if test "$wxUSE_CHECKBOX" = yes; then | |
8349 | echo "$as_me:$LINENO: result: yes" >&5 | |
8350 | echo "${ECHO_T}yes" >&6 | |
8351 | else | |
8352 | echo "$as_me:$LINENO: result: no" >&5 | |
8353 | echo "${ECHO_T}no" >&6 | |
8354 | fi | |
8355 | ||
8356 | ||
8357 | enablestring= | |
8358 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
8359 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
8360 | no_cache=0 | |
8361 | # Check whether --enable-checklst or --disable-checklst was given. | |
8362 | if test "${enable_checklst+set}" = set; then | |
8363 | enableval="$enable_checklst" | |
8364 | ||
8365 | if test "$enableval" = yes; then | |
8366 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
8367 | else | |
8368 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
8369 | fi | |
8370 | ||
8371 | else | |
8372 | ||
8373 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
8374 | if test "x$LINE" != x ; then | |
8375 | eval "DEFAULT_$LINE" | |
8376 | else | |
8377 | no_cache=1 | |
8378 | fi | |
8379 | ||
8380 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
8381 | ||
8382 | fi; | |
8383 | ||
8384 | eval "$ac_cv_use_checklst" | |
8385 | if test "$no_cache" != 1; then | |
8386 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
8387 | fi | |
8388 | ||
8389 | if test "$wxUSE_CHECKLST" = yes; then | |
8390 | echo "$as_me:$LINENO: result: yes" >&5 | |
8391 | echo "${ECHO_T}yes" >&6 | |
8392 | else | |
8393 | echo "$as_me:$LINENO: result: no" >&5 | |
8394 | echo "${ECHO_T}no" >&6 | |
8395 | fi | |
8396 | ||
8397 | ||
8398 | enablestring= | |
8399 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
8400 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
8401 | no_cache=0 | |
8402 | # Check whether --enable-choice or --disable-choice was given. | |
8403 | if test "${enable_choice+set}" = set; then | |
8404 | enableval="$enable_choice" | |
8405 | ||
8406 | if test "$enableval" = yes; then | |
8407 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
8408 | else | |
8409 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
8410 | fi | |
8411 | ||
8412 | else | |
8413 | ||
8414 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
8415 | if test "x$LINE" != x ; then | |
8416 | eval "DEFAULT_$LINE" | |
8417 | else | |
8418 | no_cache=1 | |
8419 | fi | |
8420 | ||
8421 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
8422 | ||
8423 | fi; | |
8424 | ||
8425 | eval "$ac_cv_use_choice" | |
8426 | if test "$no_cache" != 1; then | |
8427 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
8428 | fi | |
8429 | ||
8430 | if test "$wxUSE_CHOICE" = yes; then | |
8431 | echo "$as_me:$LINENO: result: yes" >&5 | |
8432 | echo "${ECHO_T}yes" >&6 | |
8433 | else | |
8434 | echo "$as_me:$LINENO: result: no" >&5 | |
8435 | echo "${ECHO_T}no" >&6 | |
8436 | fi | |
8437 | ||
8438 | ||
92bbdbcd WS |
8439 | enablestring= |
8440 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
8441 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
8442 | no_cache=0 | |
8443 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
8444 | if test "${enable_choicebook+set}" = set; then | |
8445 | enableval="$enable_choicebook" | |
8446 | ||
8447 | if test "$enableval" = yes; then | |
8448 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
8449 | else | |
8450 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
8451 | fi | |
8452 | ||
8453 | else | |
8454 | ||
8455 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
8456 | if test "x$LINE" != x ; then | |
8457 | eval "DEFAULT_$LINE" | |
8458 | else | |
8459 | no_cache=1 | |
8460 | fi | |
8461 | ||
8462 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
8463 | ||
8464 | fi; | |
8465 | ||
8466 | eval "$ac_cv_use_choicebook" | |
8467 | if test "$no_cache" != 1; then | |
8468 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
8469 | fi | |
8470 | ||
8471 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
8472 | echo "$as_me:$LINENO: result: yes" >&5 | |
8473 | echo "${ECHO_T}yes" >&6 | |
8474 | else | |
8475 | echo "$as_me:$LINENO: result: no" >&5 | |
8476 | echo "${ECHO_T}no" >&6 | |
8477 | fi | |
8478 | ||
8479 | ||
bd915ace RR |
8480 | enablestring= |
8481 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5 | |
8482 | echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6 | |
8483 | no_cache=0 | |
8484 | # Check whether --enable-collpane or --disable-collpane was given. | |
8485 | if test "${enable_collpane+set}" = set; then | |
8486 | enableval="$enable_collpane" | |
8487 | ||
8488 | if test "$enableval" = yes; then | |
8489 | ac_cv_use_collpane='wxUSE_COLLPANE=yes' | |
8490 | else | |
8491 | ac_cv_use_collpane='wxUSE_COLLPANE=no' | |
8492 | fi | |
8493 | ||
8494 | else | |
8495 | ||
8496 | LINE=`grep "wxUSE_COLLPANE" ${wx_arg_cache_file}` | |
8497 | if test "x$LINE" != x ; then | |
8498 | eval "DEFAULT_$LINE" | |
8499 | else | |
8500 | no_cache=1 | |
8501 | fi | |
8502 | ||
8503 | ac_cv_use_collpane='wxUSE_COLLPANE='$DEFAULT_wxUSE_COLLPANE | |
8504 | ||
8505 | fi; | |
8506 | ||
8507 | eval "$ac_cv_use_collpane" | |
8508 | if test "$no_cache" != 1; then | |
8509 | echo $ac_cv_use_collpane >> ${wx_arg_cache_file}.tmp | |
8510 | fi | |
8511 | ||
8512 | if test "$wxUSE_COLLPANE" = yes; then | |
8513 | echo "$as_me:$LINENO: result: yes" >&5 | |
8514 | echo "${ECHO_T}yes" >&6 | |
8515 | else | |
8516 | echo "$as_me:$LINENO: result: no" >&5 | |
8517 | echo "${ECHO_T}no" >&6 | |
8518 | fi | |
8519 | ||
8520 | ||
e9263684 VZ |
8521 | enablestring= |
8522 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5 | |
8523 | echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6 | |
8524 | no_cache=0 | |
8525 | # Check whether --enable-colourpicker or --disable-colourpicker was given. | |
8526 | if test "${enable_colourpicker+set}" = set; then | |
8527 | enableval="$enable_colourpicker" | |
8528 | ||
8529 | if test "$enableval" = yes; then | |
8530 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes' | |
8531 | else | |
8532 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no' | |
8533 | fi | |
8534 | ||
8535 | else | |
8536 | ||
8537 | LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}` | |
8538 | if test "x$LINE" != x ; then | |
8539 | eval "DEFAULT_$LINE" | |
8540 | else | |
8541 | no_cache=1 | |
8542 | fi | |
8543 | ||
8544 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL | |
8545 | ||
8546 | fi; | |
8547 | ||
8548 | eval "$ac_cv_use_colourpicker" | |
8549 | if test "$no_cache" != 1; then | |
8550 | echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp | |
8551 | fi | |
8552 | ||
8553 | if test "$wxUSE_COLOURPICKERCTRL" = yes; then | |
8554 | echo "$as_me:$LINENO: result: yes" >&5 | |
8555 | echo "${ECHO_T}yes" >&6 | |
8556 | else | |
8557 | echo "$as_me:$LINENO: result: no" >&5 | |
8558 | echo "${ECHO_T}no" >&6 | |
8559 | fi | |
8560 | ||
8561 | ||
a848cd7e SC |
8562 | enablestring= |
8563 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
8564 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
8565 | no_cache=0 | |
8566 | # Check whether --enable-combobox or --disable-combobox was given. | |
8567 | if test "${enable_combobox+set}" = set; then | |
8568 | enableval="$enable_combobox" | |
8569 | ||
8570 | if test "$enableval" = yes; then | |
8571 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
8572 | else | |
8573 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
8574 | fi | |
8575 | ||
8576 | else | |
8577 | ||
8578 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
8579 | if test "x$LINE" != x ; then | |
8580 | eval "DEFAULT_$LINE" | |
8581 | else | |
8582 | no_cache=1 | |
8583 | fi | |
8584 | ||
8585 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
8586 | ||
8587 | fi; | |
8588 | ||
8589 | eval "$ac_cv_use_combobox" | |
8590 | if test "$no_cache" != 1; then | |
8591 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
8592 | fi | |
8593 | ||
8594 | if test "$wxUSE_COMBOBOX" = yes; then | |
8595 | echo "$as_me:$LINENO: result: yes" >&5 | |
8596 | echo "${ECHO_T}yes" >&6 | |
8597 | else | |
8598 | echo "$as_me:$LINENO: result: no" >&5 | |
8599 | echo "${ECHO_T}no" >&6 | |
8600 | fi | |
8601 | ||
8602 | ||
642bcba9 | 8603 | enablestring= |
a57d600f VZ |
8604 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5 |
8605 | echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6 | |
642bcba9 | 8606 | no_cache=0 |
a57d600f VZ |
8607 | # Check whether --enable-comboctrl or --disable-comboctrl was given. |
8608 | if test "${enable_comboctrl+set}" = set; then | |
8609 | enableval="$enable_comboctrl" | |
642bcba9 VZ |
8610 | |
8611 | if test "$enableval" = yes; then | |
a57d600f | 8612 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes' |
642bcba9 | 8613 | else |
a57d600f | 8614 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no' |
642bcba9 VZ |
8615 | fi |
8616 | ||
8617 | else | |
8618 | ||
a57d600f | 8619 | LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}` |
642bcba9 VZ |
8620 | if test "x$LINE" != x ; then |
8621 | eval "DEFAULT_$LINE" | |
8622 | else | |
8623 | no_cache=1 | |
8624 | fi | |
8625 | ||
a57d600f | 8626 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL |
642bcba9 VZ |
8627 | |
8628 | fi; | |
8629 | ||
a57d600f | 8630 | eval "$ac_cv_use_comboctrl" |
642bcba9 | 8631 | if test "$no_cache" != 1; then |
a57d600f | 8632 | echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp |
642bcba9 VZ |
8633 | fi |
8634 | ||
a57d600f | 8635 | if test "$wxUSE_COMBOCTRL" = yes; then |
642bcba9 VZ |
8636 | echo "$as_me:$LINENO: result: yes" >&5 |
8637 | echo "${ECHO_T}yes" >&6 | |
8638 | else | |
8639 | echo "$as_me:$LINENO: result: no" >&5 | |
8640 | echo "${ECHO_T}no" >&6 | |
8641 | fi | |
8642 | ||
8643 | ||
da98e9be VZ |
8644 | enablestring= |
8645 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
8646 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
8647 | no_cache=0 | |
8648 | # Check whether --enable-datepick or --disable-datepick was given. | |
8649 | if test "${enable_datepick+set}" = set; then | |
8650 | enableval="$enable_datepick" | |
8651 | ||
8652 | if test "$enableval" = yes; then | |
8653 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
8654 | else | |
8655 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
8656 | fi | |
8657 | ||
8658 | else | |
8659 | ||
8660 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
8661 | if test "x$LINE" != x ; then | |
8662 | eval "DEFAULT_$LINE" | |
8663 | else | |
8664 | no_cache=1 | |
8665 | fi | |
8666 | ||
8667 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
8668 | ||
8669 | fi; | |
8670 | ||
8671 | eval "$ac_cv_use_datepick" | |
8672 | if test "$no_cache" != 1; then | |
8673 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
8674 | fi | |
8675 | ||
8676 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
8677 | echo "$as_me:$LINENO: result: yes" >&5 | |
8678 | echo "${ECHO_T}yes" >&6 | |
8679 | else | |
8680 | echo "$as_me:$LINENO: result: no" >&5 | |
8681 | echo "${ECHO_T}no" >&6 | |
8682 | fi | |
8683 | ||
8684 | ||
e9263684 VZ |
8685 | enablestring= |
8686 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5 | |
8687 | echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6 | |
8688 | no_cache=0 | |
8689 | # Check whether --enable-dirpicker or --disable-dirpicker was given. | |
8690 | if test "${enable_dirpicker+set}" = set; then | |
8691 | enableval="$enable_dirpicker" | |
8692 | ||
8693 | if test "$enableval" = yes; then | |
8694 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes' | |
8695 | else | |
8696 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no' | |
8697 | fi | |
8698 | ||
8699 | else | |
8700 | ||
8701 | LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}` | |
8702 | if test "x$LINE" != x ; then | |
8703 | eval "DEFAULT_$LINE" | |
8704 | else | |
8705 | no_cache=1 | |
8706 | fi | |
8707 | ||
8708 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL | |
8709 | ||
8710 | fi; | |
8711 | ||
8712 | eval "$ac_cv_use_dirpicker" | |
8713 | if test "$no_cache" != 1; then | |
8714 | echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp | |
8715 | fi | |
8716 | ||
8717 | if test "$wxUSE_DIRPICKERCTRL" = yes; then | |
8718 | echo "$as_me:$LINENO: result: yes" >&5 | |
8719 | echo "${ECHO_T}yes" >&6 | |
8720 | else | |
8721 | echo "$as_me:$LINENO: result: no" >&5 | |
8722 | echo "${ECHO_T}no" >&6 | |
8723 | fi | |
8724 | ||
8725 | ||
a848cd7e SC |
8726 | enablestring= |
8727 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
8728 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
8729 | no_cache=0 | |
8730 | # Check whether --enable-display or --disable-display was given. | |
8731 | if test "${enable_display+set}" = set; then | |
8732 | enableval="$enable_display" | |
8733 | ||
8734 | if test "$enableval" = yes; then | |
8735 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
8736 | else | |
8737 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
8738 | fi | |
8739 | ||
8740 | else | |
8741 | ||
8742 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
8743 | if test "x$LINE" != x ; then | |
8744 | eval "DEFAULT_$LINE" | |
8745 | else | |
8746 | no_cache=1 | |
8747 | fi | |
8748 | ||
8749 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
8750 | ||
8751 | fi; | |
8752 | ||
8753 | eval "$ac_cv_use_display" | |
8754 | if test "$no_cache" != 1; then | |
8755 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
8756 | fi | |
8757 | ||
8758 | if test "$wxUSE_DISPLAY" = yes; then | |
8759 | echo "$as_me:$LINENO: result: yes" >&5 | |
8760 | echo "${ECHO_T}yes" >&6 | |
8761 | else | |
8762 | echo "$as_me:$LINENO: result: no" >&5 | |
8763 | echo "${ECHO_T}no" >&6 | |
8764 | fi | |
8765 | ||
8766 | ||
88bbc332 RR |
8767 | enablestring= |
8768 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5 | |
8769 | echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6 | |
8770 | no_cache=0 | |
8771 | # Check whether --enable-detect_sm or --disable-detect_sm was given. | |
8772 | if test "${enable_detect_sm+set}" = set; then | |
8773 | enableval="$enable_detect_sm" | |
8774 | ||
8775 | if test "$enableval" = yes; then | |
8776 | ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes' | |
8777 | else | |
8778 | ac_cv_use_detect_sm='wxUSE_DETECT_SM=no' | |
8779 | fi | |
8780 | ||
8781 | else | |
8782 | ||
8783 | LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}` | |
8784 | if test "x$LINE" != x ; then | |
8785 | eval "DEFAULT_$LINE" | |
8786 | else | |
8787 | no_cache=1 | |
8788 | fi | |
8789 | ||
8790 | ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM | |
8791 | ||
8792 | fi; | |
8793 | ||
8794 | eval "$ac_cv_use_detect_sm" | |
8795 | if test "$no_cache" != 1; then | |
8796 | echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp | |
8797 | fi | |
8798 | ||
8799 | if test "$wxUSE_DETECT_SM" = yes; then | |
8800 | echo "$as_me:$LINENO: result: yes" >&5 | |
8801 | echo "${ECHO_T}yes" >&6 | |
8802 | else | |
8803 | echo "$as_me:$LINENO: result: no" >&5 | |
8804 | echo "${ECHO_T}no" >&6 | |
8805 | fi | |
8806 | ||
8807 | ||
e9263684 VZ |
8808 | enablestring= |
8809 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5 | |
8810 | echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6 | |
8811 | no_cache=0 | |
8812 | # Check whether --enable-filepicker or --disable-filepicker was given. | |
8813 | if test "${enable_filepicker+set}" = set; then | |
8814 | enableval="$enable_filepicker" | |
8815 | ||
8816 | if test "$enableval" = yes; then | |
8817 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes' | |
8818 | else | |
8819 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no' | |
8820 | fi | |
8821 | ||
8822 | else | |
8823 | ||
8824 | LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}` | |
8825 | if test "x$LINE" != x ; then | |
8826 | eval "DEFAULT_$LINE" | |
8827 | else | |
8828 | no_cache=1 | |
8829 | fi | |
8830 | ||
8831 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL | |
8832 | ||
8833 | fi; | |
8834 | ||
8835 | eval "$ac_cv_use_filepicker" | |
8836 | if test "$no_cache" != 1; then | |
8837 | echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp | |
8838 | fi | |
8839 | ||
8840 | if test "$wxUSE_FILEPICKERCTRL" = yes; then | |
8841 | echo "$as_me:$LINENO: result: yes" >&5 | |
8842 | echo "${ECHO_T}yes" >&6 | |
8843 | else | |
8844 | echo "$as_me:$LINENO: result: no" >&5 | |
8845 | echo "${ECHO_T}no" >&6 | |
8846 | fi | |
8847 | ||
8848 | ||
8849 | enablestring= | |
8850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5 | |
8851 | echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6 | |
8852 | no_cache=0 | |
8853 | # Check whether --enable-fontpicker or --disable-fontpicker was given. | |
8854 | if test "${enable_fontpicker+set}" = set; then | |
8855 | enableval="$enable_fontpicker" | |
8856 | ||
8857 | if test "$enableval" = yes; then | |
8858 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes' | |
8859 | else | |
8860 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no' | |
8861 | fi | |
8862 | ||
8863 | else | |
8864 | ||
8865 | LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}` | |
8866 | if test "x$LINE" != x ; then | |
8867 | eval "DEFAULT_$LINE" | |
8868 | else | |
8869 | no_cache=1 | |
8870 | fi | |
8871 | ||
8872 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL | |
8873 | ||
8874 | fi; | |
8875 | ||
8876 | eval "$ac_cv_use_fontpicker" | |
8877 | if test "$no_cache" != 1; then | |
8878 | echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp | |
8879 | fi | |
8880 | ||
8881 | if test "$wxUSE_FONTPICKERCTRL" = yes; then | |
8882 | echo "$as_me:$LINENO: result: yes" >&5 | |
8883 | echo "${ECHO_T}yes" >&6 | |
8884 | else | |
8885 | echo "$as_me:$LINENO: result: no" >&5 | |
8886 | echo "${ECHO_T}no" >&6 | |
8887 | fi | |
8888 | ||
8889 | ||
a848cd7e SC |
8890 | enablestring= |
8891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
8892 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
8893 | no_cache=0 | |
8894 | # Check whether --enable-gauge or --disable-gauge was given. | |
8895 | if test "${enable_gauge+set}" = set; then | |
8896 | enableval="$enable_gauge" | |
8897 | ||
8898 | if test "$enableval" = yes; then | |
8899 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
8900 | else | |
8901 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
8902 | fi | |
8903 | ||
8904 | else | |
8905 | ||
8906 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
8907 | if test "x$LINE" != x ; then | |
8908 | eval "DEFAULT_$LINE" | |
8909 | else | |
8910 | no_cache=1 | |
8911 | fi | |
8912 | ||
8913 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
8914 | ||
8915 | fi; | |
8916 | ||
8917 | eval "$ac_cv_use_gauge" | |
8918 | if test "$no_cache" != 1; then | |
8919 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
8920 | fi | |
8921 | ||
8922 | if test "$wxUSE_GAUGE" = yes; then | |
8923 | echo "$as_me:$LINENO: result: yes" >&5 | |
8924 | echo "${ECHO_T}yes" >&6 | |
8925 | else | |
8926 | echo "$as_me:$LINENO: result: no" >&5 | |
8927 | echo "${ECHO_T}no" >&6 | |
8928 | fi | |
8929 | ||
8930 | ||
8931 | enablestring= | |
8932 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
8933 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
8934 | no_cache=0 | |
8935 | # Check whether --enable-grid or --disable-grid was given. | |
8936 | if test "${enable_grid+set}" = set; then | |
8937 | enableval="$enable_grid" | |
8938 | ||
8939 | if test "$enableval" = yes; then | |
8940 | ac_cv_use_grid='wxUSE_GRID=yes' | |
8941 | else | |
8942 | ac_cv_use_grid='wxUSE_GRID=no' | |
8943 | fi | |
8944 | ||
8945 | else | |
8946 | ||
8947 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
8948 | if test "x$LINE" != x ; then | |
8949 | eval "DEFAULT_$LINE" | |
8950 | else | |
8951 | no_cache=1 | |
8952 | fi | |
8953 | ||
8954 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
8955 | ||
8956 | fi; | |
8957 | ||
8958 | eval "$ac_cv_use_grid" | |
8959 | if test "$no_cache" != 1; then | |
8960 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
8961 | fi | |
8962 | ||
8963 | if test "$wxUSE_GRID" = yes; then | |
8964 | echo "$as_me:$LINENO: result: yes" >&5 | |
8965 | echo "${ECHO_T}yes" >&6 | |
8966 | else | |
8967 | echo "$as_me:$LINENO: result: no" >&5 | |
8968 | echo "${ECHO_T}no" >&6 | |
8969 | fi | |
8970 | ||
8971 | ||
20e34ecc RR |
8972 | enablestring= |
8973 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5 | |
8974 | echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6 | |
8975 | no_cache=0 | |
8976 | # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given. | |
8977 | if test "${enable_dataviewctrl+set}" = set; then | |
8978 | enableval="$enable_dataviewctrl" | |
8979 | ||
8980 | if test "$enableval" = yes; then | |
8981 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes' | |
8982 | else | |
8983 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no' | |
8984 | fi | |
8985 | ||
8986 | else | |
8987 | ||
8988 | LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}` | |
8989 | if test "x$LINE" != x ; then | |
8990 | eval "DEFAULT_$LINE" | |
8991 | else | |
8992 | no_cache=1 | |
8993 | fi | |
8994 | ||
8995 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL | |
8996 | ||
8997 | fi; | |
8998 | ||
8999 | eval "$ac_cv_use_dataviewctrl" | |
9000 | if test "$no_cache" != 1; then | |
9001 | echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp | |
9002 | fi | |
9003 | ||
9004 | if test "$wxUSE_DATAVIEWCTRL" = yes; then | |
9005 | echo "$as_me:$LINENO: result: yes" >&5 | |
9006 | echo "${ECHO_T}yes" >&6 | |
9007 | else | |
9008 | echo "$as_me:$LINENO: result: no" >&5 | |
9009 | echo "${ECHO_T}no" >&6 | |
9010 | fi | |
9011 | ||
9012 | ||
6954625c VZ |
9013 | enablestring= |
9014 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5 | |
9015 | echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6 | |
9016 | no_cache=0 | |
9017 | # Check whether --enable-hyperlink or --disable-hyperlink was given. | |
9018 | if test "${enable_hyperlink+set}" = set; then | |
9019 | enableval="$enable_hyperlink" | |
9020 | ||
9021 | if test "$enableval" = yes; then | |
9022 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes' | |
9023 | else | |
9024 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no' | |
9025 | fi | |
9026 | ||
9027 | else | |
9028 | ||
9029 | LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}` | |
9030 | if test "x$LINE" != x ; then | |
9031 | eval "DEFAULT_$LINE" | |
9032 | else | |
9033 | no_cache=1 | |
9034 | fi | |
9035 | ||
9036 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL | |
9037 | ||
9038 | fi; | |
9039 | ||
9040 | eval "$ac_cv_use_hyperlink" | |
9041 | if test "$no_cache" != 1; then | |
9042 | echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp | |
9043 | fi | |
9044 | ||
9045 | if test "$wxUSE_HYPERLINKCTRL" = yes; then | |
9046 | echo "$as_me:$LINENO: result: yes" >&5 | |
9047 | echo "${ECHO_T}yes" >&6 | |
9048 | else | |
9049 | echo "$as_me:$LINENO: result: no" >&5 | |
9050 | echo "${ECHO_T}no" >&6 | |
9051 | fi | |
9052 | ||
9053 | ||
a848cd7e SC |
9054 | enablestring= |
9055 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
9056 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
9057 | no_cache=0 | |
9058 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
9059 | if test "${enable_imaglist+set}" = set; then | |
9060 | enableval="$enable_imaglist" | |
9061 | ||
9062 | if test "$enableval" = yes; then | |
9063 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
9064 | else | |
9065 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
9066 | fi | |
9067 | ||
9068 | else | |
9069 | ||
9070 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
9071 | if test "x$LINE" != x ; then | |
9072 | eval "DEFAULT_$LINE" | |
9073 | else | |
9074 | no_cache=1 | |
9075 | fi | |
9076 | ||
9077 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
9078 | ||
9079 | fi; | |
9080 | ||
9081 | eval "$ac_cv_use_imaglist" | |
9082 | if test "$no_cache" != 1; then | |
9083 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
9084 | fi | |
9085 | ||
9086 | if test "$wxUSE_IMAGLIST" = yes; then | |
9087 | echo "$as_me:$LINENO: result: yes" >&5 | |
9088 | echo "${ECHO_T}yes" >&6 | |
9089 | else | |
9090 | echo "$as_me:$LINENO: result: no" >&5 | |
9091 | echo "${ECHO_T}no" >&6 | |
9092 | fi | |
9093 | ||
9094 | ||
9095 | enablestring= | |
9096 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
9097 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
9098 | no_cache=0 | |
9099 | # Check whether --enable-listbook or --disable-listbook was given. | |
9100 | if test "${enable_listbook+set}" = set; then | |
9101 | enableval="$enable_listbook" | |
9102 | ||
9103 | if test "$enableval" = yes; then | |
9104 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
9105 | else | |
9106 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
9107 | fi | |
9108 | ||
9109 | else | |
9110 | ||
9111 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
9112 | if test "x$LINE" != x ; then | |
9113 | eval "DEFAULT_$LINE" | |
9114 | else | |
9115 | no_cache=1 | |
9116 | fi | |
9117 | ||
9118 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
9119 | ||
9120 | fi; | |
9121 | ||
9122 | eval "$ac_cv_use_listbook" | |
9123 | if test "$no_cache" != 1; then | |
9124 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
9125 | fi | |
9126 | ||
9127 | if test "$wxUSE_LISTBOOK" = yes; then | |
9128 | echo "$as_me:$LINENO: result: yes" >&5 | |
9129 | echo "${ECHO_T}yes" >&6 | |
9130 | else | |
9131 | echo "$as_me:$LINENO: result: no" >&5 | |
9132 | echo "${ECHO_T}no" >&6 | |
9133 | fi | |
9134 | ||
9135 | ||
9136 | enablestring= | |
9137 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
9138 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
9139 | no_cache=0 | |
9140 | # Check whether --enable-listbox or --disable-listbox was given. | |
9141 | if test "${enable_listbox+set}" = set; then | |
9142 | enableval="$enable_listbox" | |
9143 | ||
9144 | if test "$enableval" = yes; then | |
9145 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
9146 | else | |
9147 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
9148 | fi | |
9149 | ||
9150 | else | |
9151 | ||
9152 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
9153 | if test "x$LINE" != x ; then | |
9154 | eval "DEFAULT_$LINE" | |
9155 | else | |
9156 | no_cache=1 | |
9157 | fi | |
9158 | ||
9159 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
9160 | ||
9161 | fi; | |
9162 | ||
9163 | eval "$ac_cv_use_listbox" | |
9164 | if test "$no_cache" != 1; then | |
9165 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
9166 | fi | |
9167 | ||
9168 | if test "$wxUSE_LISTBOX" = yes; then | |
9169 | echo "$as_me:$LINENO: result: yes" >&5 | |
9170 | echo "${ECHO_T}yes" >&6 | |
9171 | else | |
9172 | echo "$as_me:$LINENO: result: no" >&5 | |
9173 | echo "${ECHO_T}no" >&6 | |
9174 | fi | |
9175 | ||
9176 | ||
9177 | enablestring= | |
9178 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
9179 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
9180 | no_cache=0 | |
9181 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
9182 | if test "${enable_listctrl+set}" = set; then | |
9183 | enableval="$enable_listctrl" | |
9184 | ||
9185 | if test "$enableval" = yes; then | |
9186 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
9187 | else | |
9188 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
9189 | fi | |
9190 | ||
9191 | else | |
9192 | ||
9193 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
9194 | if test "x$LINE" != x ; then | |
9195 | eval "DEFAULT_$LINE" | |
9196 | else | |
9197 | no_cache=1 | |
9198 | fi | |
9199 | ||
9200 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
9201 | ||
9202 | fi; | |
9203 | ||
9204 | eval "$ac_cv_use_listctrl" | |
9205 | if test "$no_cache" != 1; then | |
9206 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
9207 | fi | |
9208 | ||
9209 | if test "$wxUSE_LISTCTRL" = yes; then | |
9210 | echo "$as_me:$LINENO: result: yes" >&5 | |
9211 | echo "${ECHO_T}yes" >&6 | |
9212 | else | |
9213 | echo "$as_me:$LINENO: result: no" >&5 | |
9214 | echo "${ECHO_T}no" >&6 | |
9215 | fi | |
9216 | ||
9217 | ||
9218 | enablestring= | |
9219 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
9220 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
9221 | no_cache=0 | |
9222 | # Check whether --enable-notebook or --disable-notebook was given. | |
9223 | if test "${enable_notebook+set}" = set; then | |
9224 | enableval="$enable_notebook" | |
9225 | ||
9226 | if test "$enableval" = yes; then | |
9227 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
9228 | else | |
9229 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
9230 | fi | |
9231 | ||
9232 | else | |
9233 | ||
9234 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
9235 | if test "x$LINE" != x ; then | |
9236 | eval "DEFAULT_$LINE" | |
9237 | else | |
9238 | no_cache=1 | |
9239 | fi | |
9240 | ||
9241 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
9242 | ||
9243 | fi; | |
9244 | ||
9245 | eval "$ac_cv_use_notebook" | |
9246 | if test "$no_cache" != 1; then | |
9247 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
9248 | fi | |
9249 | ||
9250 | if test "$wxUSE_NOTEBOOK" = yes; then | |
9251 | echo "$as_me:$LINENO: result: yes" >&5 | |
9252 | echo "${ECHO_T}yes" >&6 | |
9253 | else | |
9254 | echo "$as_me:$LINENO: result: no" >&5 | |
9255 | echo "${ECHO_T}no" >&6 | |
9256 | fi | |
9257 | ||
9258 | ||
642bcba9 | 9259 | enablestring= |
a57d600f VZ |
9260 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5 |
9261 | echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6 | |
642bcba9 | 9262 | no_cache=0 |
a57d600f VZ |
9263 | # Check whether --enable-odcombobox or --disable-odcombobox was given. |
9264 | if test "${enable_odcombobox+set}" = set; then | |
9265 | enableval="$enable_odcombobox" | |
642bcba9 VZ |
9266 | |
9267 | if test "$enableval" = yes; then | |
a57d600f | 9268 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes' |
642bcba9 | 9269 | else |
a57d600f | 9270 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no' |
642bcba9 VZ |
9271 | fi |
9272 | ||
9273 | else | |
9274 | ||
a57d600f | 9275 | LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}` |
642bcba9 VZ |
9276 | if test "x$LINE" != x ; then |
9277 | eval "DEFAULT_$LINE" | |
9278 | else | |
9279 | no_cache=1 | |
9280 | fi | |
9281 | ||
a57d600f | 9282 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX |
642bcba9 VZ |
9283 | |
9284 | fi; | |
9285 | ||
a57d600f | 9286 | eval "$ac_cv_use_odcombobox" |
642bcba9 | 9287 | if test "$no_cache" != 1; then |
a57d600f | 9288 | echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp |
642bcba9 VZ |
9289 | fi |
9290 | ||
a57d600f | 9291 | if test "$wxUSE_ODCOMBOBOX" = yes; then |
642bcba9 VZ |
9292 | echo "$as_me:$LINENO: result: yes" >&5 |
9293 | echo "${ECHO_T}yes" >&6 | |
9294 | else | |
9295 | echo "$as_me:$LINENO: result: no" >&5 | |
9296 | echo "${ECHO_T}no" >&6 | |
9297 | fi | |
9298 | ||
9299 | ||
a848cd7e SC |
9300 | enablestring= |
9301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
9302 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
9303 | no_cache=0 | |
9304 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
9305 | if test "${enable_radiobox+set}" = set; then | |
9306 | enableval="$enable_radiobox" | |
9307 | ||
9308 | if test "$enableval" = yes; then | |
9309 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
9310 | else | |
9311 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
9312 | fi | |
9313 | ||
9314 | else | |
9315 | ||
9316 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
9317 | if test "x$LINE" != x ; then | |
9318 | eval "DEFAULT_$LINE" | |
9319 | else | |
9320 | no_cache=1 | |
9321 | fi | |
9322 | ||
9323 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
9324 | ||
9325 | fi; | |
9326 | ||
9327 | eval "$ac_cv_use_radiobox" | |
9328 | if test "$no_cache" != 1; then | |
9329 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
9330 | fi | |
9331 | ||
9332 | if test "$wxUSE_RADIOBOX" = yes; then | |
9333 | echo "$as_me:$LINENO: result: yes" >&5 | |
9334 | echo "${ECHO_T}yes" >&6 | |
9335 | else | |
9336 | echo "$as_me:$LINENO: result: no" >&5 | |
9337 | echo "${ECHO_T}no" >&6 | |
9338 | fi | |
9339 | ||
9340 | ||
9341 | enablestring= | |
9342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
9343 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
9344 | no_cache=0 | |
9345 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
9346 | if test "${enable_radiobtn+set}" = set; then | |
9347 | enableval="$enable_radiobtn" | |
9348 | ||
9349 | if test "$enableval" = yes; then | |
9350 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
9351 | else | |
9352 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
9353 | fi | |
9354 | ||
9355 | else | |
9356 | ||
9357 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
9358 | if test "x$LINE" != x ; then | |
9359 | eval "DEFAULT_$LINE" | |
9360 | else | |
9361 | no_cache=1 | |
9362 | fi | |
9363 | ||
9364 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
9365 | ||
9366 | fi; | |
9367 | ||
9368 | eval "$ac_cv_use_radiobtn" | |
9369 | if test "$no_cache" != 1; then | |
9370 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
9371 | fi | |
9372 | ||
9373 | if test "$wxUSE_RADIOBTN" = yes; then | |
9374 | echo "$as_me:$LINENO: result: yes" >&5 | |
9375 | echo "${ECHO_T}yes" >&6 | |
9376 | else | |
9377 | echo "$as_me:$LINENO: result: no" >&5 | |
9378 | echo "${ECHO_T}no" >&6 | |
9379 | fi | |
9380 | ||
9381 | ||
9382 | enablestring= | |
9383 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
9384 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
9385 | no_cache=0 | |
9386 | # Check whether --enable-sash or --disable-sash was given. | |
9387 | if test "${enable_sash+set}" = set; then | |
9388 | enableval="$enable_sash" | |
9389 | ||
9390 | if test "$enableval" = yes; then | |
9391 | ac_cv_use_sash='wxUSE_SASH=yes' | |
9392 | else | |
9393 | ac_cv_use_sash='wxUSE_SASH=no' | |
9394 | fi | |
9395 | ||
9396 | else | |
9397 | ||
9398 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
9399 | if test "x$LINE" != x ; then | |
9400 | eval "DEFAULT_$LINE" | |
9401 | else | |
9402 | no_cache=1 | |
9403 | fi | |
9404 | ||
9405 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
9406 | ||
9407 | fi; | |
9408 | ||
9409 | eval "$ac_cv_use_sash" | |
9410 | if test "$no_cache" != 1; then | |
9411 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
9412 | fi | |
9413 | ||
9414 | if test "$wxUSE_SASH" = yes; then | |
9415 | echo "$as_me:$LINENO: result: yes" >&5 | |
9416 | echo "${ECHO_T}yes" >&6 | |
9417 | else | |
9418 | echo "$as_me:$LINENO: result: no" >&5 | |
9419 | echo "${ECHO_T}no" >&6 | |
9420 | fi | |
9421 | ||
9422 | ||
9423 | enablestring= | |
9424 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
9425 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
9426 | no_cache=0 | |
9427 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
9428 | if test "${enable_scrollbar+set}" = set; then | |
9429 | enableval="$enable_scrollbar" | |
9430 | ||
9431 | if test "$enableval" = yes; then | |
9432 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
9433 | else | |
9434 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
9435 | fi | |
9436 | ||
9437 | else | |
9438 | ||
9439 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
9440 | if test "x$LINE" != x ; then | |
9441 | eval "DEFAULT_$LINE" | |
9442 | else | |
9443 | no_cache=1 | |
9444 | fi | |
9445 | ||
9446 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
9447 | ||
9448 | fi; | |
9449 | ||
9450 | eval "$ac_cv_use_scrollbar" | |
9451 | if test "$no_cache" != 1; then | |
9452 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
9453 | fi | |
9454 | ||
9455 | if test "$wxUSE_SCROLLBAR" = yes; then | |
9456 | echo "$as_me:$LINENO: result: yes" >&5 | |
9457 | echo "${ECHO_T}yes" >&6 | |
9458 | else | |
9459 | echo "$as_me:$LINENO: result: no" >&5 | |
9460 | echo "${ECHO_T}no" >&6 | |
9461 | fi | |
9462 | ||
9463 | ||
9464 | enablestring= | |
9465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
9466 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
9467 | no_cache=0 | |
9468 | # Check whether --enable-slider or --disable-slider was given. | |
9469 | if test "${enable_slider+set}" = set; then | |
9470 | enableval="$enable_slider" | |
9471 | ||
9472 | if test "$enableval" = yes; then | |
9473 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
9474 | else | |
9475 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
9476 | fi | |
9477 | ||
9478 | else | |
9479 | ||
9480 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
9481 | if test "x$LINE" != x ; then | |
9482 | eval "DEFAULT_$LINE" | |
9483 | else | |
9484 | no_cache=1 | |
9485 | fi | |
9486 | ||
9487 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
9488 | ||
9489 | fi; | |
9490 | ||
9491 | eval "$ac_cv_use_slider" | |
9492 | if test "$no_cache" != 1; then | |
9493 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
9494 | fi | |
9495 | ||
9496 | if test "$wxUSE_SLIDER" = yes; then | |
9497 | echo "$as_me:$LINENO: result: yes" >&5 | |
9498 | echo "${ECHO_T}yes" >&6 | |
9499 | else | |
9500 | echo "$as_me:$LINENO: result: no" >&5 | |
9501 | echo "${ECHO_T}no" >&6 | |
9502 | fi | |
9503 | ||
9504 | ||
9505 | enablestring= | |
9506 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
9507 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
9508 | no_cache=0 | |
9509 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
9510 | if test "${enable_spinbtn+set}" = set; then | |
9511 | enableval="$enable_spinbtn" | |
9512 | ||
9513 | if test "$enableval" = yes; then | |
9514 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
9515 | else | |
9516 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
9517 | fi | |
9518 | ||
9519 | else | |
9520 | ||
9521 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
9522 | if test "x$LINE" != x ; then | |
9523 | eval "DEFAULT_$LINE" | |
9524 | else | |
9525 | no_cache=1 | |
9526 | fi | |
9527 | ||
9528 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
9529 | ||
9530 | fi; | |
9531 | ||
9532 | eval "$ac_cv_use_spinbtn" | |
9533 | if test "$no_cache" != 1; then | |
9534 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
9535 | fi | |
9536 | ||
9537 | if test "$wxUSE_SPINBTN" = yes; then | |
9538 | echo "$as_me:$LINENO: result: yes" >&5 | |
9539 | echo "${ECHO_T}yes" >&6 | |
9540 | else | |
9541 | echo "$as_me:$LINENO: result: no" >&5 | |
9542 | echo "${ECHO_T}no" >&6 | |
9543 | fi | |
9544 | ||
9545 | ||
9546 | enablestring= | |
9547 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
9548 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
9549 | no_cache=0 | |
9550 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
9551 | if test "${enable_spinctrl+set}" = set; then | |
9552 | enableval="$enable_spinctrl" | |
9553 | ||
9554 | if test "$enableval" = yes; then | |
9555 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
9556 | else | |
9557 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
9558 | fi | |
9559 | ||
9560 | else | |
9561 | ||
9562 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
9563 | if test "x$LINE" != x ; then | |
9564 | eval "DEFAULT_$LINE" | |
9565 | else | |
9566 | no_cache=1 | |
9567 | fi | |
9568 | ||
9569 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
9570 | ||
9571 | fi; | |
9572 | ||
9573 | eval "$ac_cv_use_spinctrl" | |
9574 | if test "$no_cache" != 1; then | |
9575 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
9576 | fi | |
9577 | ||
9578 | if test "$wxUSE_SPINCTRL" = yes; then | |
9579 | echo "$as_me:$LINENO: result: yes" >&5 | |
9580 | echo "${ECHO_T}yes" >&6 | |
9581 | else | |
9582 | echo "$as_me:$LINENO: result: no" >&5 | |
9583 | echo "${ECHO_T}no" >&6 | |
9584 | fi | |
9585 | ||
9586 | ||
9587 | enablestring= | |
9588 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
9589 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
9590 | no_cache=0 | |
9591 | # Check whether --enable-splitter or --disable-splitter was given. | |
9592 | if test "${enable_splitter+set}" = set; then | |
9593 | enableval="$enable_splitter" | |
9594 | ||
9595 | if test "$enableval" = yes; then | |
9596 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
9597 | else | |
9598 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
9599 | fi | |
9600 | ||
9601 | else | |
9602 | ||
9603 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
9604 | if test "x$LINE" != x ; then | |
9605 | eval "DEFAULT_$LINE" | |
9606 | else | |
9607 | no_cache=1 | |
9608 | fi | |
9609 | ||
9610 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
9611 | ||
9612 | fi; | |
9613 | ||
9614 | eval "$ac_cv_use_splitter" | |
9615 | if test "$no_cache" != 1; then | |
9616 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
9617 | fi | |
9618 | ||
9619 | if test "$wxUSE_SPLITTER" = yes; then | |
9620 | echo "$as_me:$LINENO: result: yes" >&5 | |
9621 | echo "${ECHO_T}yes" >&6 | |
9622 | else | |
9623 | echo "$as_me:$LINENO: result: no" >&5 | |
9624 | echo "${ECHO_T}no" >&6 | |
9625 | fi | |
9626 | ||
9627 | ||
9628 | enablestring= | |
9629 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
9630 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
9631 | no_cache=0 | |
9632 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
9633 | if test "${enable_statbmp+set}" = set; then | |
9634 | enableval="$enable_statbmp" | |
9635 | ||
9636 | if test "$enableval" = yes; then | |
9637 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
9638 | else | |
9639 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
9640 | fi | |
9641 | ||
9642 | else | |
9643 | ||
9644 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
9645 | if test "x$LINE" != x ; then | |
9646 | eval "DEFAULT_$LINE" | |
9647 | else | |
9648 | no_cache=1 | |
9649 | fi | |
9650 | ||
9651 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
9652 | ||
9653 | fi; | |
9654 | ||
9655 | eval "$ac_cv_use_statbmp" | |
9656 | if test "$no_cache" != 1; then | |
9657 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
9658 | fi | |
9659 | ||
9660 | if test "$wxUSE_STATBMP" = yes; then | |
9661 | echo "$as_me:$LINENO: result: yes" >&5 | |
9662 | echo "${ECHO_T}yes" >&6 | |
9663 | else | |
9664 | echo "$as_me:$LINENO: result: no" >&5 | |
9665 | echo "${ECHO_T}no" >&6 | |
9666 | fi | |
9667 | ||
9668 | ||
9669 | enablestring= | |
9670 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
9671 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
9672 | no_cache=0 | |
9673 | # Check whether --enable-statbox or --disable-statbox was given. | |
9674 | if test "${enable_statbox+set}" = set; then | |
9675 | enableval="$enable_statbox" | |
9676 | ||
9677 | if test "$enableval" = yes; then | |
9678 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
9679 | else | |
9680 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
9681 | fi | |
9682 | ||
9683 | else | |
9684 | ||
9685 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
9686 | if test "x$LINE" != x ; then | |
9687 | eval "DEFAULT_$LINE" | |
9688 | else | |
9689 | no_cache=1 | |
9690 | fi | |
9691 | ||
9692 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
9693 | ||
9694 | fi; | |
9695 | ||
9696 | eval "$ac_cv_use_statbox" | |
9697 | if test "$no_cache" != 1; then | |
9698 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
9699 | fi | |
9700 | ||
9701 | if test "$wxUSE_STATBOX" = yes; then | |
9702 | echo "$as_me:$LINENO: result: yes" >&5 | |
9703 | echo "${ECHO_T}yes" >&6 | |
9704 | else | |
9705 | echo "$as_me:$LINENO: result: no" >&5 | |
9706 | echo "${ECHO_T}no" >&6 | |
9707 | fi | |
9708 | ||
9709 | ||
9710 | enablestring= | |
9711 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
9712 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
9713 | no_cache=0 | |
9714 | # Check whether --enable-statline or --disable-statline was given. | |
9715 | if test "${enable_statline+set}" = set; then | |
9716 | enableval="$enable_statline" | |
9717 | ||
9718 | if test "$enableval" = yes; then | |
9719 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
9720 | else | |
9721 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
9722 | fi | |
9723 | ||
9724 | else | |
9725 | ||
9726 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
9727 | if test "x$LINE" != x ; then | |
9728 | eval "DEFAULT_$LINE" | |
9729 | else | |
9730 | no_cache=1 | |
9731 | fi | |
9732 | ||
9733 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
9734 | ||
9735 | fi; | |
9736 | ||
9737 | eval "$ac_cv_use_statline" | |
9738 | if test "$no_cache" != 1; then | |
9739 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
9740 | fi | |
9741 | ||
9742 | if test "$wxUSE_STATLINE" = yes; then | |
9743 | echo "$as_me:$LINENO: result: yes" >&5 | |
9744 | echo "${ECHO_T}yes" >&6 | |
9745 | else | |
9746 | echo "$as_me:$LINENO: result: no" >&5 | |
9747 | echo "${ECHO_T}no" >&6 | |
9748 | fi | |
9749 | ||
9750 | ||
9751 | enablestring= | |
9752 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
9753 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
9754 | no_cache=0 | |
9755 | # Check whether --enable-stattext or --disable-stattext was given. | |
9756 | if test "${enable_stattext+set}" = set; then | |
9757 | enableval="$enable_stattext" | |
9758 | ||
9759 | if test "$enableval" = yes; then | |
9760 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
9761 | else | |
9762 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
9763 | fi | |
9764 | ||
9765 | else | |
9766 | ||
9767 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
9768 | if test "x$LINE" != x ; then | |
9769 | eval "DEFAULT_$LINE" | |
9770 | else | |
9771 | no_cache=1 | |
9772 | fi | |
9773 | ||
9774 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
9775 | ||
9776 | fi; | |
9777 | ||
9778 | eval "$ac_cv_use_stattext" | |
9779 | if test "$no_cache" != 1; then | |
9780 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
9781 | fi | |
9782 | ||
9783 | if test "$wxUSE_STATTEXT" = yes; then | |
9784 | echo "$as_me:$LINENO: result: yes" >&5 | |
9785 | echo "${ECHO_T}yes" >&6 | |
9786 | else | |
9787 | echo "$as_me:$LINENO: result: no" >&5 | |
9788 | echo "${ECHO_T}no" >&6 | |
9789 | fi | |
9790 | ||
9791 | ||
9792 | enablestring= | |
9793 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
9794 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
9795 | no_cache=0 | |
9796 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
9797 | if test "${enable_statusbar+set}" = set; then | |
9798 | enableval="$enable_statusbar" | |
9799 | ||
9800 | if test "$enableval" = yes; then | |
9801 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
9802 | else | |
9803 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
9804 | fi | |
9805 | ||
9806 | else | |
9807 | ||
9808 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
9809 | if test "x$LINE" != x ; then | |
9810 | eval "DEFAULT_$LINE" | |
9811 | else | |
9812 | no_cache=1 | |
9813 | fi | |
9814 | ||
9815 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
9816 | ||
9817 | fi; | |
9818 | ||
9819 | eval "$ac_cv_use_statusbar" | |
9820 | if test "$no_cache" != 1; then | |
9821 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
9822 | fi | |
9823 | ||
9824 | if test "$wxUSE_STATUSBAR" = yes; then | |
9825 | echo "$as_me:$LINENO: result: yes" >&5 | |
9826 | echo "${ECHO_T}yes" >&6 | |
9827 | else | |
9828 | echo "$as_me:$LINENO: result: no" >&5 | |
9829 | echo "${ECHO_T}no" >&6 | |
9830 | fi | |
9831 | ||
9832 | ||
9833 | enablestring= | |
9834 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
9835 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
9836 | no_cache=0 | |
9837 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
9838 | if test "${enable_tabdialog+set}" = set; then | |
9839 | enableval="$enable_tabdialog" | |
9840 | ||
9841 | if test "$enableval" = yes; then | |
f10e38c4 | 9842 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes' |
a848cd7e | 9843 | else |
f10e38c4 | 9844 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no' |
a848cd7e SC |
9845 | fi |
9846 | ||
9847 | else | |
9848 | ||
f10e38c4 | 9849 | LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}` |
a848cd7e SC |
9850 | if test "x$LINE" != x ; then |
9851 | eval "DEFAULT_$LINE" | |
9852 | else | |
9853 | no_cache=1 | |
9854 | fi | |
9855 | ||
f10e38c4 | 9856 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG |
a848cd7e SC |
9857 | |
9858 | fi; | |
9859 | ||
9860 | eval "$ac_cv_use_tabdialog" | |
9861 | if test "$no_cache" != 1; then | |
9862 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
9863 | fi | |
9864 | ||
f10e38c4 | 9865 | if test "$wxUSE_TAB_DIALOG" = yes; then |
a848cd7e SC |
9866 | echo "$as_me:$LINENO: result: yes" >&5 |
9867 | echo "${ECHO_T}yes" >&6 | |
9868 | else | |
9869 | echo "$as_me:$LINENO: result: no" >&5 | |
9870 | echo "${ECHO_T}no" >&6 | |
9871 | fi | |
9872 | ||
9873 | ||
9874 | enablestring= | |
9875 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
9876 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
9877 | no_cache=0 | |
9878 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
9879 | if test "${enable_textctrl+set}" = set; then | |
9880 | enableval="$enable_textctrl" | |
9881 | ||
9882 | if test "$enableval" = yes; then | |
9883 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
9884 | else | |
9885 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
9886 | fi | |
9887 | ||
9888 | else | |
9889 | ||
9890 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
9891 | if test "x$LINE" != x ; then | |
9892 | eval "DEFAULT_$LINE" | |
9893 | else | |
9894 | no_cache=1 | |
9895 | fi | |
9896 | ||
9897 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
9898 | ||
9899 | fi; | |
9900 | ||
9901 | eval "$ac_cv_use_textctrl" | |
9902 | if test "$no_cache" != 1; then | |
9903 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
9904 | fi | |
9905 | ||
9906 | if test "$wxUSE_TEXTCTRL" = yes; then | |
9907 | echo "$as_me:$LINENO: result: yes" >&5 | |
9908 | echo "${ECHO_T}yes" >&6 | |
9909 | else | |
9910 | echo "$as_me:$LINENO: result: no" >&5 | |
9911 | echo "${ECHO_T}no" >&6 | |
9912 | fi | |
9913 | ||
9914 | ||
9915 | enablestring= | |
9916 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
9917 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
9918 | no_cache=0 | |
9919 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
9920 | if test "${enable_togglebtn+set}" = set; then | |
9921 | enableval="$enable_togglebtn" | |
9922 | ||
9923 | if test "$enableval" = yes; then | |
9924 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
9925 | else | |
9926 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
9927 | fi | |
9928 | ||
9929 | else | |
9930 | ||
9931 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
9932 | if test "x$LINE" != x ; then | |
9933 | eval "DEFAULT_$LINE" | |
9934 | else | |
9935 | no_cache=1 | |
9936 | fi | |
9937 | ||
9938 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
9939 | ||
9940 | fi; | |
9941 | ||
9942 | eval "$ac_cv_use_togglebtn" | |
9943 | if test "$no_cache" != 1; then | |
9944 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
9945 | fi | |
9946 | ||
9947 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
9948 | echo "$as_me:$LINENO: result: yes" >&5 | |
9949 | echo "${ECHO_T}yes" >&6 | |
9950 | else | |
9951 | echo "$as_me:$LINENO: result: no" >&5 | |
9952 | echo "${ECHO_T}no" >&6 | |
9953 | fi | |
9954 | ||
9955 | ||
9956 | enablestring= | |
9957 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
9958 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
9959 | no_cache=0 | |
9960 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
9961 | if test "${enable_toolbar+set}" = set; then | |
9962 | enableval="$enable_toolbar" | |
9963 | ||
9964 | if test "$enableval" = yes; then | |
9965 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
9966 | else | |
9967 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
9968 | fi | |
9969 | ||
9970 | else | |
9971 | ||
9972 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
9973 | if test "x$LINE" != x ; then | |
9974 | eval "DEFAULT_$LINE" | |
9975 | else | |
9976 | no_cache=1 | |
9977 | fi | |
9978 | ||
9979 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
9980 | ||
9981 | fi; | |
9982 | ||
9983 | eval "$ac_cv_use_toolbar" | |
9984 | if test "$no_cache" != 1; then | |
9985 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
9986 | fi | |
9987 | ||
9988 | if test "$wxUSE_TOOLBAR" = yes; then | |
9989 | echo "$as_me:$LINENO: result: yes" >&5 | |
9990 | echo "${ECHO_T}yes" >&6 | |
9991 | else | |
9992 | echo "$as_me:$LINENO: result: no" >&5 | |
9993 | echo "${ECHO_T}no" >&6 | |
9994 | fi | |
9995 | ||
9996 | ||
9997 | enablestring= | |
9998 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
9999 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
10000 | no_cache=0 | |
10001 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
10002 | if test "${enable_tbarnative+set}" = set; then | |
10003 | enableval="$enable_tbarnative" | |
10004 | ||
10005 | if test "$enableval" = yes; then | |
10006 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
10007 | else | |
10008 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
10009 | fi | |
10010 | ||
10011 | else | |
10012 | ||
10013 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
10014 | if test "x$LINE" != x ; then | |
10015 | eval "DEFAULT_$LINE" | |
10016 | else | |
10017 | no_cache=1 | |
10018 | fi | |
10019 | ||
10020 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
10021 | ||
10022 | fi; | |
10023 | ||
10024 | eval "$ac_cv_use_tbarnative" | |
10025 | if test "$no_cache" != 1; then | |
10026 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
10027 | fi | |
10028 | ||
10029 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
10030 | echo "$as_me:$LINENO: result: yes" >&5 | |
10031 | echo "${ECHO_T}yes" >&6 | |
10032 | else | |
10033 | echo "$as_me:$LINENO: result: no" >&5 | |
10034 | echo "${ECHO_T}no" >&6 | |
10035 | fi | |
10036 | ||
10037 | ||
0093c2fc VZ |
10038 | enablestring= |
10039 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5 | |
10040 | echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6 | |
10041 | no_cache=0 | |
10042 | # Check whether --enable-treebook or --disable-treebook was given. | |
10043 | if test "${enable_treebook+set}" = set; then | |
10044 | enableval="$enable_treebook" | |
10045 | ||
10046 | if test "$enableval" = yes; then | |
10047 | ac_cv_use_treebook='wxUSE_TREEBOOK=yes' | |
10048 | else | |
10049 | ac_cv_use_treebook='wxUSE_TREEBOOK=no' | |
10050 | fi | |
10051 | ||
10052 | else | |
10053 | ||
10054 | LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}` | |
10055 | if test "x$LINE" != x ; then | |
10056 | eval "DEFAULT_$LINE" | |
10057 | else | |
10058 | no_cache=1 | |
10059 | fi | |
10060 | ||
10061 | ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK | |
10062 | ||
10063 | fi; | |
10064 | ||
10065 | eval "$ac_cv_use_treebook" | |
10066 | if test "$no_cache" != 1; then | |
10067 | echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp | |
10068 | fi | |
10069 | ||
10070 | if test "$wxUSE_TREEBOOK" = yes; then | |
10071 | echo "$as_me:$LINENO: result: yes" >&5 | |
10072 | echo "${ECHO_T}yes" >&6 | |
10073 | else | |
10074 | echo "$as_me:$LINENO: result: no" >&5 | |
10075 | echo "${ECHO_T}no" >&6 | |
10076 | fi | |
10077 | ||
10078 | ||
5ec3bc43 JS |
10079 | enablestring= |
10080 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5 | |
10081 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6 | |
10082 | no_cache=0 | |
10083 | # Check whether --enable-toolbook or --disable-toolbook was given. | |
10084 | if test "${enable_toolbook+set}" = set; then | |
10085 | enableval="$enable_toolbook" | |
10086 | ||
10087 | if test "$enableval" = yes; then | |
10088 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes' | |
10089 | else | |
10090 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=no' | |
10091 | fi | |
10092 | ||
10093 | else | |
10094 | ||
10095 | LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}` | |
10096 | if test "x$LINE" != x ; then | |
10097 | eval "DEFAULT_$LINE" | |
10098 | else | |
10099 | no_cache=1 | |
10100 | fi | |
10101 | ||
10102 | ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK | |
10103 | ||
10104 | fi; | |
10105 | ||
10106 | eval "$ac_cv_use_toolbook" | |
10107 | if test "$no_cache" != 1; then | |
10108 | echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp | |
10109 | fi | |
10110 | ||
10111 | if test "$wxUSE_TOOLBOOK" = yes; then | |
10112 | echo "$as_me:$LINENO: result: yes" >&5 | |
10113 | echo "${ECHO_T}yes" >&6 | |
10114 | else | |
10115 | echo "$as_me:$LINENO: result: no" >&5 | |
10116 | echo "${ECHO_T}no" >&6 | |
10117 | fi | |
10118 | ||
10119 | ||
a848cd7e SC |
10120 | enablestring= |
10121 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
10122 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10123 | no_cache=0 | |
10124 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
10125 | if test "${enable_treectrl+set}" = set; then | |
10126 | enableval="$enable_treectrl" | |
10127 | ||
10128 | if test "$enableval" = yes; then | |
10129 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
10130 | else | |
10131 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
10132 | fi | |
10133 | ||
10134 | else | |
10135 | ||
10136 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
10137 | if test "x$LINE" != x ; then | |
10138 | eval "DEFAULT_$LINE" | |
10139 | else | |
10140 | no_cache=1 | |
10141 | fi | |
10142 | ||
10143 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10144 | ||
10145 | fi; | |
10146 | ||
10147 | eval "$ac_cv_use_treectrl" | |
10148 | if test "$no_cache" != 1; then | |
10149 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
10150 | fi | |
10151 | ||
10152 | if test "$wxUSE_TREECTRL" = yes; then | |
10153 | echo "$as_me:$LINENO: result: yes" >&5 | |
10154 | echo "${ECHO_T}yes" >&6 | |
10155 | else | |
10156 | echo "$as_me:$LINENO: result: no" >&5 | |
10157 | echo "${ECHO_T}no" >&6 | |
10158 | fi | |
10159 | ||
10160 | ||
10161 | enablestring= | |
10162 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
10163 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
10164 | no_cache=0 | |
10165 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
10166 | if test "${enable_tipwindow+set}" = set; then | |
10167 | enableval="$enable_tipwindow" | |
10168 | ||
10169 | if test "$enableval" = yes; then | |
10170 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
10171 | else | |
10172 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
10173 | fi | |
10174 | ||
10175 | else | |
10176 | ||
10177 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
10178 | if test "x$LINE" != x ; then | |
10179 | eval "DEFAULT_$LINE" | |
10180 | else | |
10181 | no_cache=1 | |
10182 | fi | |
10183 | ||
10184 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
10185 | ||
10186 | fi; | |
10187 | ||
10188 | eval "$ac_cv_use_tipwindow" | |
10189 | if test "$no_cache" != 1; then | |
10190 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
10191 | fi | |
10192 | ||
10193 | if test "$wxUSE_TIPWINDOW" = yes; then | |
10194 | echo "$as_me:$LINENO: result: yes" >&5 | |
10195 | echo "${ECHO_T}yes" >&6 | |
10196 | else | |
10197 | echo "$as_me:$LINENO: result: no" >&5 | |
10198 | echo "${ECHO_T}no" >&6 | |
10199 | fi | |
10200 | ||
10201 | ||
10202 | enablestring= | |
10203 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
10204 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
10205 | no_cache=0 | |
10206 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
10207 | if test "${enable_popupwin+set}" = set; then | |
10208 | enableval="$enable_popupwin" | |
10209 | ||
10210 | if test "$enableval" = yes; then | |
10211 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
10212 | else | |
10213 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
10214 | fi | |
10215 | ||
10216 | else | |
10217 | ||
10218 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
10219 | if test "x$LINE" != x ; then | |
10220 | eval "DEFAULT_$LINE" | |
10221 | else | |
10222 | no_cache=1 | |
10223 | fi | |
10224 | ||
10225 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
10226 | ||
10227 | fi; | |
10228 | ||
10229 | eval "$ac_cv_use_popupwin" | |
10230 | if test "$no_cache" != 1; then | |
10231 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
10232 | fi | |
10233 | ||
10234 | if test "$wxUSE_POPUPWIN" = yes; then | |
10235 | echo "$as_me:$LINENO: result: yes" >&5 | |
10236 | echo "${ECHO_T}yes" >&6 | |
10237 | else | |
10238 | echo "$as_me:$LINENO: result: no" >&5 | |
10239 | echo "${ECHO_T}no" >&6 | |
10240 | fi | |
10241 | ||
10242 | ||
10243 | ||
10244 | ||
10245 | enablestring= | |
10246 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
10247 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
10248 | no_cache=0 | |
10249 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
10250 | if test "${enable_commondlg+set}" = set; then | |
10251 | enableval="$enable_commondlg" | |
10252 | ||
10253 | if test "$enableval" = yes; then | |
10254 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
10255 | else | |
10256 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
10257 | fi | |
10258 | ||
10259 | else | |
10260 | ||
10261 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
10262 | if test "x$LINE" != x ; then | |
10263 | eval "DEFAULT_$LINE" | |
10264 | else | |
10265 | no_cache=1 | |
10266 | fi | |
10267 | ||
10268 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
10269 | ||
10270 | fi; | |
10271 | ||
10272 | eval "$ac_cv_use_commondlg" | |
10273 | if test "$no_cache" != 1; then | |
10274 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
10275 | fi | |
10276 | ||
10277 | if test "$wxUSE_COMMONDLGS" = yes; then | |
10278 | echo "$as_me:$LINENO: result: yes" >&5 | |
10279 | echo "${ECHO_T}yes" >&6 | |
10280 | else | |
10281 | echo "$as_me:$LINENO: result: no" >&5 | |
10282 | echo "${ECHO_T}no" >&6 | |
10283 | fi | |
10284 | ||
10285 | ||
319c5ed4 VZ |
10286 | enablestring= |
10287 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5 | |
10288 | echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6 | |
10289 | no_cache=0 | |
10290 | # Check whether --enable-aboutdlg or --disable-aboutdlg was given. | |
10291 | if test "${enable_aboutdlg+set}" = set; then | |
10292 | enableval="$enable_aboutdlg" | |
10293 | ||
10294 | if test "$enableval" = yes; then | |
10295 | ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes' | |
10296 | else | |
10297 | ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no' | |
10298 | fi | |
10299 | ||
10300 | else | |
10301 | ||
10302 | LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}` | |
10303 | if test "x$LINE" != x ; then | |
10304 | eval "DEFAULT_$LINE" | |
10305 | else | |
10306 | no_cache=1 | |
10307 | fi | |
10308 | ||
10309 | ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG | |
10310 | ||
10311 | fi; | |
10312 | ||
10313 | eval "$ac_cv_use_aboutdlg" | |
10314 | if test "$no_cache" != 1; then | |
10315 | echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp | |
10316 | fi | |
10317 | ||
10318 | if test "$wxUSE_ABOUTDLG" = yes; then | |
10319 | echo "$as_me:$LINENO: result: yes" >&5 | |
10320 | echo "${ECHO_T}yes" >&6 | |
10321 | else | |
10322 | echo "$as_me:$LINENO: result: no" >&5 | |
10323 | echo "${ECHO_T}no" >&6 | |
10324 | fi | |
10325 | ||
10326 | ||
a848cd7e SC |
10327 | enablestring= |
10328 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
10329 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
10330 | no_cache=0 | |
10331 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
10332 | if test "${enable_choicedlg+set}" = set; then | |
10333 | enableval="$enable_choicedlg" | |
10334 | ||
10335 | if test "$enableval" = yes; then | |
10336 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
10337 | else | |
10338 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
10339 | fi | |
10340 | ||
10341 | else | |
10342 | ||
10343 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
10344 | if test "x$LINE" != x ; then | |
10345 | eval "DEFAULT_$LINE" | |
10346 | else | |
10347 | no_cache=1 | |
10348 | fi | |
10349 | ||
10350 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
10351 | ||
10352 | fi; | |
10353 | ||
10354 | eval "$ac_cv_use_choicedlg" | |
10355 | if test "$no_cache" != 1; then | |
10356 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
10357 | fi | |
10358 | ||
10359 | if test "$wxUSE_CHOICEDLG" = yes; then | |
10360 | echo "$as_me:$LINENO: result: yes" >&5 | |
10361 | echo "${ECHO_T}yes" >&6 | |
10362 | else | |
10363 | echo "$as_me:$LINENO: result: no" >&5 | |
10364 | echo "${ECHO_T}no" >&6 | |
10365 | fi | |
10366 | ||
10367 | ||
10368 | enablestring= | |
10369 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
10370 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
10371 | no_cache=0 | |
10372 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
10373 | if test "${enable_coldlg+set}" = set; then | |
10374 | enableval="$enable_coldlg" | |
10375 | ||
10376 | if test "$enableval" = yes; then | |
10377 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
10378 | else | |
10379 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
10380 | fi | |
10381 | ||
10382 | else | |
10383 | ||
10384 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
10385 | if test "x$LINE" != x ; then | |
10386 | eval "DEFAULT_$LINE" | |
10387 | else | |
10388 | no_cache=1 | |
10389 | fi | |
10390 | ||
10391 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
10392 | ||
10393 | fi; | |
10394 | ||
10395 | eval "$ac_cv_use_coldlg" | |
10396 | if test "$no_cache" != 1; then | |
10397 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
10398 | fi | |
10399 | ||
10400 | if test "$wxUSE_COLOURDLG" = yes; then | |
10401 | echo "$as_me:$LINENO: result: yes" >&5 | |
10402 | echo "${ECHO_T}yes" >&6 | |
10403 | else | |
10404 | echo "$as_me:$LINENO: result: no" >&5 | |
10405 | echo "${ECHO_T}no" >&6 | |
10406 | fi | |
10407 | ||
10408 | ||
10409 | enablestring= | |
10410 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
10411 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
10412 | no_cache=0 | |
10413 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
10414 | if test "${enable_filedlg+set}" = set; then | |
10415 | enableval="$enable_filedlg" | |
10416 | ||
10417 | if test "$enableval" = yes; then | |
10418 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
10419 | else | |
10420 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
10421 | fi | |
10422 | ||
10423 | else | |
10424 | ||
10425 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
10426 | if test "x$LINE" != x ; then | |
10427 | eval "DEFAULT_$LINE" | |
10428 | else | |
10429 | no_cache=1 | |
10430 | fi | |
10431 | ||
10432 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
10433 | ||
10434 | fi; | |
10435 | ||
10436 | eval "$ac_cv_use_filedlg" | |
10437 | if test "$no_cache" != 1; then | |
10438 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
10439 | fi | |
10440 | ||
10441 | if test "$wxUSE_FILEDLG" = yes; then | |
10442 | echo "$as_me:$LINENO: result: yes" >&5 | |
10443 | echo "${ECHO_T}yes" >&6 | |
10444 | else | |
10445 | echo "$as_me:$LINENO: result: no" >&5 | |
10446 | echo "${ECHO_T}no" >&6 | |
10447 | fi | |
10448 | ||
10449 | ||
10450 | enablestring= | |
10451 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
10452 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
10453 | no_cache=0 | |
10454 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
10455 | if test "${enable_finddlg+set}" = set; then | |
10456 | enableval="$enable_finddlg" | |
10457 | ||
10458 | if test "$enableval" = yes; then | |
10459 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
10460 | else | |
10461 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
10462 | fi | |
10463 | ||
10464 | else | |
10465 | ||
10466 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
10467 | if test "x$LINE" != x ; then | |
10468 | eval "DEFAULT_$LINE" | |
10469 | else | |
10470 | no_cache=1 | |
10471 | fi | |
10472 | ||
10473 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
10474 | ||
10475 | fi; | |
10476 | ||
10477 | eval "$ac_cv_use_finddlg" | |
10478 | if test "$no_cache" != 1; then | |
10479 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
10480 | fi | |
10481 | ||
10482 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
10483 | echo "$as_me:$LINENO: result: yes" >&5 | |
10484 | echo "${ECHO_T}yes" >&6 | |
10485 | else | |
10486 | echo "$as_me:$LINENO: result: no" >&5 | |
10487 | echo "${ECHO_T}no" >&6 | |
10488 | fi | |
10489 | ||
10490 | ||
10491 | enablestring= | |
10492 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
10493 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
10494 | no_cache=0 | |
10495 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
10496 | if test "${enable_fontdlg+set}" = set; then | |
10497 | enableval="$enable_fontdlg" | |
10498 | ||
10499 | if test "$enableval" = yes; then | |
10500 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
10501 | else | |
10502 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
10503 | fi | |
10504 | ||
10505 | else | |
10506 | ||
10507 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
10508 | if test "x$LINE" != x ; then | |
10509 | eval "DEFAULT_$LINE" | |
10510 | else | |
10511 | no_cache=1 | |
10512 | fi | |
10513 | ||
10514 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
10515 | ||
10516 | fi; | |
10517 | ||
10518 | eval "$ac_cv_use_fontdlg" | |
10519 | if test "$no_cache" != 1; then | |
10520 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
10521 | fi | |
10522 | ||
10523 | if test "$wxUSE_FONTDLG" = yes; then | |
10524 | echo "$as_me:$LINENO: result: yes" >&5 | |
10525 | echo "${ECHO_T}yes" >&6 | |
10526 | else | |
10527 | echo "$as_me:$LINENO: result: no" >&5 | |
10528 | echo "${ECHO_T}no" >&6 | |
10529 | fi | |
10530 | ||
10531 | ||
10532 | enablestring= | |
10533 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
10534 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
10535 | no_cache=0 | |
10536 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
10537 | if test "${enable_dirdlg+set}" = set; then | |
10538 | enableval="$enable_dirdlg" | |
10539 | ||
10540 | if test "$enableval" = yes; then | |
10541 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
10542 | else | |
10543 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
10544 | fi | |
10545 | ||
10546 | else | |
10547 | ||
10548 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
10549 | if test "x$LINE" != x ; then | |
10550 | eval "DEFAULT_$LINE" | |
10551 | else | |
10552 | no_cache=1 | |
10553 | fi | |
10554 | ||
10555 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
10556 | ||
10557 | fi; | |
10558 | ||
10559 | eval "$ac_cv_use_dirdlg" | |
10560 | if test "$no_cache" != 1; then | |
10561 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
10562 | fi | |
10563 | ||
10564 | if test "$wxUSE_DIRDLG" = yes; then | |
10565 | echo "$as_me:$LINENO: result: yes" >&5 | |
10566 | echo "${ECHO_T}yes" >&6 | |
10567 | else | |
10568 | echo "$as_me:$LINENO: result: no" >&5 | |
10569 | echo "${ECHO_T}no" >&6 | |
10570 | fi | |
10571 | ||
10572 | ||
10573 | enablestring= | |
10574 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
10575 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10576 | no_cache=0 | |
10577 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
10578 | if test "${enable_msgdlg+set}" = set; then | |
10579 | enableval="$enable_msgdlg" | |
10580 | ||
10581 | if test "$enableval" = yes; then | |
10582 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
10583 | else | |
10584 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
10585 | fi | |
10586 | ||
10587 | else | |
10588 | ||
10589 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
10590 | if test "x$LINE" != x ; then | |
10591 | eval "DEFAULT_$LINE" | |
10592 | else | |
10593 | no_cache=1 | |
10594 | fi | |
10595 | ||
10596 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
10597 | ||
10598 | fi; | |
10599 | ||
10600 | eval "$ac_cv_use_msgdlg" | |
10601 | if test "$no_cache" != 1; then | |
10602 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
10603 | fi | |
10604 | ||
10605 | if test "$wxUSE_MSGDLG" = yes; then | |
10606 | echo "$as_me:$LINENO: result: yes" >&5 | |
10607 | echo "${ECHO_T}yes" >&6 | |
10608 | else | |
10609 | echo "$as_me:$LINENO: result: no" >&5 | |
10610 | echo "${ECHO_T}no" >&6 | |
10611 | fi | |
10612 | ||
10613 | ||
10614 | enablestring= | |
10615 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
10616 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10617 | no_cache=0 | |
10618 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
10619 | if test "${enable_numberdlg+set}" = set; then | |
10620 | enableval="$enable_numberdlg" | |
10621 | ||
10622 | if test "$enableval" = yes; then | |
10623 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
10624 | else | |
10625 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
10626 | fi | |
10627 | ||
10628 | else | |
10629 | ||
10630 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
10631 | if test "x$LINE" != x ; then | |
10632 | eval "DEFAULT_$LINE" | |
10633 | else | |
10634 | no_cache=1 | |
10635 | fi | |
10636 | ||
10637 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
10638 | ||
10639 | fi; | |
10640 | ||
10641 | eval "$ac_cv_use_numberdlg" | |
10642 | if test "$no_cache" != 1; then | |
10643 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
10644 | fi | |
10645 | ||
10646 | if test "$wxUSE_NUMBERDLG" = yes; then | |
10647 | echo "$as_me:$LINENO: result: yes" >&5 | |
10648 | echo "${ECHO_T}yes" >&6 | |
10649 | else | |
10650 | echo "$as_me:$LINENO: result: no" >&5 | |
10651 | echo "${ECHO_T}no" >&6 | |
10652 | fi | |
10653 | ||
10654 | ||
10655 | enablestring= | |
10656 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
10657 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
10658 | no_cache=0 | |
10659 | # Check whether --enable-splash or --disable-splash was given. | |
10660 | if test "${enable_splash+set}" = set; then | |
10661 | enableval="$enable_splash" | |
10662 | ||
10663 | if test "$enableval" = yes; then | |
10664 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
10665 | else | |
10666 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
10667 | fi | |
10668 | ||
10669 | else | |
10670 | ||
10671 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
10672 | if test "x$LINE" != x ; then | |
10673 | eval "DEFAULT_$LINE" | |
10674 | else | |
10675 | no_cache=1 | |
10676 | fi | |
10677 | ||
10678 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
10679 | ||
10680 | fi; | |
10681 | ||
10682 | eval "$ac_cv_use_splash" | |
10683 | if test "$no_cache" != 1; then | |
10684 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
10685 | fi | |
10686 | ||
10687 | if test "$wxUSE_SPLASH" = yes; then | |
10688 | echo "$as_me:$LINENO: result: yes" >&5 | |
10689 | echo "${ECHO_T}yes" >&6 | |
10690 | else | |
10691 | echo "$as_me:$LINENO: result: no" >&5 | |
10692 | echo "${ECHO_T}no" >&6 | |
10693 | fi | |
10694 | ||
10695 | ||
10696 | enablestring= | |
10697 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
10698 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10699 | no_cache=0 | |
10700 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
10701 | if test "${enable_textdlg+set}" = set; then | |
10702 | enableval="$enable_textdlg" | |
10703 | ||
10704 | if test "$enableval" = yes; then | |
10705 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
10706 | else | |
10707 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
10708 | fi | |
10709 | ||
10710 | else | |
10711 | ||
10712 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
10713 | if test "x$LINE" != x ; then | |
10714 | eval "DEFAULT_$LINE" | |
10715 | else | |
10716 | no_cache=1 | |
10717 | fi | |
10718 | ||
10719 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10720 | ||
10721 | fi; | |
10722 | ||
10723 | eval "$ac_cv_use_textdlg" | |
10724 | if test "$no_cache" != 1; then | |
10725 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
10726 | fi | |
10727 | ||
10728 | if test "$wxUSE_TEXTDLG" = yes; then | |
10729 | echo "$as_me:$LINENO: result: yes" >&5 | |
10730 | echo "${ECHO_T}yes" >&6 | |
10731 | else | |
10732 | echo "$as_me:$LINENO: result: no" >&5 | |
10733 | echo "${ECHO_T}no" >&6 | |
10734 | fi | |
10735 | ||
10736 | ||
10737 | enablestring= | |
10738 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
10739 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10740 | no_cache=0 | |
10741 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
10742 | if test "${enable_tipdlg+set}" = set; then | |
10743 | enableval="$enable_tipdlg" | |
10744 | ||
10745 | if test "$enableval" = yes; then | |
10746 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
10747 | else | |
10748 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
10749 | fi | |
10750 | ||
10751 | else | |
10752 | ||
10753 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
10754 | if test "x$LINE" != x ; then | |
10755 | eval "DEFAULT_$LINE" | |
10756 | else | |
10757 | no_cache=1 | |
10758 | fi | |
10759 | ||
10760 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10761 | ||
10762 | fi; | |
10763 | ||
10764 | eval "$ac_cv_use_tipdlg" | |
10765 | if test "$no_cache" != 1; then | |
10766 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
10767 | fi | |
10768 | ||
10769 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
10770 | echo "$as_me:$LINENO: result: yes" >&5 | |
10771 | echo "${ECHO_T}yes" >&6 | |
10772 | else | |
10773 | echo "$as_me:$LINENO: result: no" >&5 | |
10774 | echo "${ECHO_T}no" >&6 | |
10775 | fi | |
10776 | ||
10777 | ||
10778 | enablestring= | |
10779 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
10780 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10781 | no_cache=0 | |
10782 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
10783 | if test "${enable_progressdlg+set}" = set; then | |
10784 | enableval="$enable_progressdlg" | |
10785 | ||
10786 | if test "$enableval" = yes; then | |
10787 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
10788 | else | |
10789 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
10790 | fi | |
10791 | ||
10792 | else | |
10793 | ||
10794 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
10795 | if test "x$LINE" != x ; then | |
10796 | eval "DEFAULT_$LINE" | |
10797 | else | |
10798 | no_cache=1 | |
10799 | fi | |
10800 | ||
10801 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10802 | ||
10803 | fi; | |
10804 | ||
10805 | eval "$ac_cv_use_progressdlg" | |
10806 | if test "$no_cache" != 1; then | |
10807 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
10808 | fi | |
10809 | ||
10810 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
10811 | echo "$as_me:$LINENO: result: yes" >&5 | |
10812 | echo "${ECHO_T}yes" >&6 | |
10813 | else | |
10814 | echo "$as_me:$LINENO: result: no" >&5 | |
10815 | echo "${ECHO_T}no" >&6 | |
10816 | fi | |
10817 | ||
10818 | ||
10819 | enablestring= | |
10820 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
10821 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
10822 | no_cache=0 | |
10823 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
10824 | if test "${enable_wizarddlg+set}" = set; then | |
10825 | enableval="$enable_wizarddlg" | |
10826 | ||
10827 | if test "$enableval" = yes; then | |
10828 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
10829 | else | |
10830 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
10831 | fi | |
10832 | ||
10833 | else | |
10834 | ||
10835 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
10836 | if test "x$LINE" != x ; then | |
10837 | eval "DEFAULT_$LINE" | |
10838 | else | |
10839 | no_cache=1 | |
10840 | fi | |
10841 | ||
10842 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
10843 | ||
10844 | fi; | |
10845 | ||
10846 | eval "$ac_cv_use_wizarddlg" | |
10847 | if test "$no_cache" != 1; then | |
10848 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
10849 | fi | |
10850 | ||
10851 | if test "$wxUSE_WIZARDDLG" = yes; then | |
10852 | echo "$as_me:$LINENO: result: yes" >&5 | |
10853 | echo "${ECHO_T}yes" >&6 | |
10854 | else | |
10855 | echo "$as_me:$LINENO: result: no" >&5 | |
10856 | echo "${ECHO_T}no" >&6 | |
10857 | fi | |
10858 | ||
10859 | ||
10860 | ||
10861 | ||
10862 | enablestring= | |
10863 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
10864 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
10865 | no_cache=0 | |
10866 | # Check whether --enable-menus or --disable-menus was given. | |
10867 | if test "${enable_menus+set}" = set; then | |
10868 | enableval="$enable_menus" | |
10869 | ||
10870 | if test "$enableval" = yes; then | |
10871 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
10872 | else | |
10873 | ac_cv_use_menus='wxUSE_MENUS=no' | |
10874 | fi | |
10875 | ||
10876 | else | |
10877 | ||
10878 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
10879 | if test "x$LINE" != x ; then | |
10880 | eval "DEFAULT_$LINE" | |
10881 | else | |
10882 | no_cache=1 | |
10883 | fi | |
10884 | ||
10885 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
10886 | ||
10887 | fi; | |
10888 | ||
10889 | eval "$ac_cv_use_menus" | |
10890 | if test "$no_cache" != 1; then | |
10891 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
10892 | fi | |
10893 | ||
10894 | if test "$wxUSE_MENUS" = yes; then | |
10895 | echo "$as_me:$LINENO: result: yes" >&5 | |
10896 | echo "${ECHO_T}yes" >&6 | |
10897 | else | |
10898 | echo "$as_me:$LINENO: result: no" >&5 | |
10899 | echo "${ECHO_T}no" >&6 | |
10900 | fi | |
10901 | ||
10902 | ||
10903 | enablestring= | |
10904 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
10905 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10906 | no_cache=0 | |
10907 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
10908 | if test "${enable_miniframe+set}" = set; then | |
10909 | enableval="$enable_miniframe" | |
10910 | ||
10911 | if test "$enableval" = yes; then | |
10912 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
10913 | else | |
10914 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
10915 | fi | |
10916 | ||
10917 | else | |
10918 | ||
10919 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
10920 | if test "x$LINE" != x ; then | |
10921 | eval "DEFAULT_$LINE" | |
10922 | else | |
10923 | no_cache=1 | |
10924 | fi | |
10925 | ||
10926 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10927 | ||
10928 | fi; | |
10929 | ||
10930 | eval "$ac_cv_use_miniframe" | |
10931 | if test "$no_cache" != 1; then | |
10932 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
10933 | fi | |
10934 | ||
10935 | if test "$wxUSE_MINIFRAME" = yes; then | |
10936 | echo "$as_me:$LINENO: result: yes" >&5 | |
10937 | echo "${ECHO_T}yes" >&6 | |
10938 | else | |
10939 | echo "$as_me:$LINENO: result: no" >&5 | |
10940 | echo "${ECHO_T}no" >&6 | |
10941 | fi | |
10942 | ||
10943 | ||
10944 | enablestring= | |
10945 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
10946 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10947 | no_cache=0 | |
10948 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
10949 | if test "${enable_tooltips+set}" = set; then | |
10950 | enableval="$enable_tooltips" | |
10951 | ||
10952 | if test "$enableval" = yes; then | |
10953 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
10954 | else | |
10955 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
10956 | fi | |
10957 | ||
10958 | else | |
10959 | ||
10960 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
10961 | if test "x$LINE" != x ; then | |
10962 | eval "DEFAULT_$LINE" | |
10963 | else | |
10964 | no_cache=1 | |
10965 | fi | |
10966 | ||
10967 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10968 | ||
10969 | fi; | |
10970 | ||
10971 | eval "$ac_cv_use_tooltips" | |
10972 | if test "$no_cache" != 1; then | |
10973 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
10974 | fi | |
10975 | ||
10976 | if test "$wxUSE_TOOLTIPS" = yes; then | |
10977 | echo "$as_me:$LINENO: result: yes" >&5 | |
10978 | echo "${ECHO_T}yes" >&6 | |
10979 | else | |
10980 | echo "$as_me:$LINENO: result: no" >&5 | |
10981 | echo "${ECHO_T}no" >&6 | |
10982 | fi | |
10983 | ||
10984 | ||
10985 | enablestring= | |
10986 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
10987 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10988 | no_cache=0 | |
10989 | # Check whether --enable-splines or --disable-splines was given. | |
10990 | if test "${enable_splines+set}" = set; then | |
10991 | enableval="$enable_splines" | |
10992 | ||
10993 | if test "$enableval" = yes; then | |
10994 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
10995 | else | |
10996 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
10997 | fi | |
10998 | ||
10999 | else | |
11000 | ||
11001 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
11002 | if test "x$LINE" != x ; then | |
11003 | eval "DEFAULT_$LINE" | |
11004 | else | |
11005 | no_cache=1 | |
11006 | fi | |
11007 | ||
11008 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
11009 | ||
11010 | fi; | |
11011 | ||
11012 | eval "$ac_cv_use_splines" | |
11013 | if test "$no_cache" != 1; then | |
11014 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
11015 | fi | |
11016 | ||
11017 | if test "$wxUSE_SPLINES" = yes; then | |
11018 | echo "$as_me:$LINENO: result: yes" >&5 | |
11019 | echo "${ECHO_T}yes" >&6 | |
11020 | else | |
11021 | echo "$as_me:$LINENO: result: no" >&5 | |
11022 | echo "${ECHO_T}no" >&6 | |
11023 | fi | |
11024 | ||
11025 | ||
fbe2ca43 SN |
11026 | enablestring= |
11027 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
11028 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
11029 | no_cache=0 | |
11030 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
11031 | if test "${enable_mousewheel+set}" = set; then | |
11032 | enableval="$enable_mousewheel" | |
11033 | ||
11034 | if test "$enableval" = yes; then | |
11035 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
11036 | else | |
11037 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
11038 | fi | |
11039 | ||
11040 | else | |
11041 | ||
11042 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
11043 | if test "x$LINE" != x ; then | |
11044 | eval "DEFAULT_$LINE" | |
11045 | else | |
11046 | no_cache=1 | |
11047 | fi | |
11048 | ||
11049 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
11050 | ||
11051 | fi; | |
11052 | ||
11053 | eval "$ac_cv_use_mousewheel" | |
11054 | if test "$no_cache" != 1; then | |
11055 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
11056 | fi | |
11057 | ||
11058 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
11059 | echo "$as_me:$LINENO: result: yes" >&5 | |
11060 | echo "${ECHO_T}yes" >&6 | |
11061 | else | |
11062 | echo "$as_me:$LINENO: result: no" >&5 | |
11063 | echo "${ECHO_T}no" >&6 | |
11064 | fi | |
11065 | ||
11066 | ||
a848cd7e SC |
11067 | enablestring= |
11068 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
11069 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
11070 | no_cache=0 | |
11071 | # Check whether --enable-validators or --disable-validators was given. | |
11072 | if test "${enable_validators+set}" = set; then | |
11073 | enableval="$enable_validators" | |
11074 | ||
11075 | if test "$enableval" = yes; then | |
11076 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
11077 | else | |
11078 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
11079 | fi | |
11080 | ||
11081 | else | |
11082 | ||
11083 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
11084 | if test "x$LINE" != x ; then | |
11085 | eval "DEFAULT_$LINE" | |
11086 | else | |
11087 | no_cache=1 | |
11088 | fi | |
11089 | ||
11090 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
11091 | ||
11092 | fi; | |
11093 | ||
11094 | eval "$ac_cv_use_validators" | |
11095 | if test "$no_cache" != 1; then | |
11096 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
11097 | fi | |
11098 | ||
11099 | if test "$wxUSE_VALIDATORS" = yes; then | |
11100 | echo "$as_me:$LINENO: result: yes" >&5 | |
11101 | echo "${ECHO_T}yes" >&6 | |
11102 | else | |
11103 | echo "$as_me:$LINENO: result: no" >&5 | |
11104 | echo "${ECHO_T}no" >&6 | |
11105 | fi | |
11106 | ||
11107 | ||
11108 | enablestring= | |
11109 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
11110 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
11111 | no_cache=0 | |
11112 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
11113 | if test "${enable_busyinfo+set}" = set; then | |
11114 | enableval="$enable_busyinfo" | |
11115 | ||
11116 | if test "$enableval" = yes; then | |
11117 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
11118 | else | |
11119 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
11120 | fi | |
11121 | ||
11122 | else | |
11123 | ||
11124 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
11125 | if test "x$LINE" != x ; then | |
11126 | eval "DEFAULT_$LINE" | |
11127 | else | |
11128 | no_cache=1 | |
11129 | fi | |
11130 | ||
11131 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
11132 | ||
11133 | fi; | |
11134 | ||
11135 | eval "$ac_cv_use_busyinfo" | |
11136 | if test "$no_cache" != 1; then | |
11137 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
11138 | fi | |
11139 | ||
11140 | if test "$wxUSE_BUSYINFO" = yes; then | |
11141 | echo "$as_me:$LINENO: result: yes" >&5 | |
11142 | echo "${ECHO_T}yes" >&6 | |
11143 | else | |
11144 | echo "$as_me:$LINENO: result: no" >&5 | |
11145 | echo "${ECHO_T}no" >&6 | |
11146 | fi | |
11147 | ||
11148 | ||
11149 | enablestring= | |
11150 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
11151 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
11152 | no_cache=0 | |
11153 | # Check whether --enable-joystick or --disable-joystick was given. | |
11154 | if test "${enable_joystick+set}" = set; then | |
11155 | enableval="$enable_joystick" | |
11156 | ||
11157 | if test "$enableval" = yes; then | |
11158 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
11159 | else | |
11160 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
11161 | fi | |
11162 | ||
11163 | else | |
11164 | ||
11165 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
11166 | if test "x$LINE" != x ; then | |
11167 | eval "DEFAULT_$LINE" | |
11168 | else | |
11169 | no_cache=1 | |
11170 | fi | |
11171 | ||
11172 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
11173 | ||
11174 | fi; | |
11175 | ||
11176 | eval "$ac_cv_use_joystick" | |
11177 | if test "$no_cache" != 1; then | |
11178 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
11179 | fi | |
11180 | ||
11181 | if test "$wxUSE_JOYSTICK" = yes; then | |
11182 | echo "$as_me:$LINENO: result: yes" >&5 | |
11183 | echo "${ECHO_T}yes" >&6 | |
11184 | else | |
11185 | echo "$as_me:$LINENO: result: no" >&5 | |
11186 | echo "${ECHO_T}no" >&6 | |
11187 | fi | |
11188 | ||
11189 | ||
11190 | enablestring= | |
11191 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
11192 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
11193 | no_cache=0 | |
11194 | # Check whether --enable-metafile or --disable-metafile was given. | |
11195 | if test "${enable_metafile+set}" = set; then | |
11196 | enableval="$enable_metafile" | |
11197 | ||
11198 | if test "$enableval" = yes; then | |
11199 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
11200 | else | |
11201 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
11202 | fi | |
11203 | ||
11204 | else | |
11205 | ||
11206 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
11207 | if test "x$LINE" != x ; then | |
11208 | eval "DEFAULT_$LINE" | |
11209 | else | |
11210 | no_cache=1 | |
11211 | fi | |
11212 | ||
11213 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
11214 | ||
11215 | fi; | |
11216 | ||
11217 | eval "$ac_cv_use_metafile" | |
11218 | if test "$no_cache" != 1; then | |
11219 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
11220 | fi | |
11221 | ||
11222 | if test "$wxUSE_METAFILE" = yes; then | |
11223 | echo "$as_me:$LINENO: result: yes" >&5 | |
11224 | echo "${ECHO_T}yes" >&6 | |
11225 | else | |
11226 | echo "$as_me:$LINENO: result: no" >&5 | |
11227 | echo "${ECHO_T}no" >&6 | |
11228 | fi | |
11229 | ||
11230 | ||
11231 | enablestring= | |
11232 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
11233 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
11234 | no_cache=0 | |
11235 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
11236 | if test "${enable_dragimage+set}" = set; then | |
11237 | enableval="$enable_dragimage" | |
11238 | ||
11239 | if test "$enableval" = yes; then | |
11240 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
11241 | else | |
11242 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
11243 | fi | |
11244 | ||
11245 | else | |
11246 | ||
11247 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
11248 | if test "x$LINE" != x ; then | |
11249 | eval "DEFAULT_$LINE" | |
11250 | else | |
11251 | no_cache=1 | |
11252 | fi | |
11253 | ||
11254 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
11255 | ||
11256 | fi; | |
11257 | ||
11258 | eval "$ac_cv_use_dragimage" | |
11259 | if test "$no_cache" != 1; then | |
11260 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
11261 | fi | |
11262 | ||
11263 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
11264 | echo "$as_me:$LINENO: result: yes" >&5 | |
11265 | echo "${ECHO_T}yes" >&6 | |
11266 | else | |
11267 | echo "$as_me:$LINENO: result: no" >&5 | |
11268 | echo "${ECHO_T}no" >&6 | |
11269 | fi | |
11270 | ||
11271 | ||
11272 | enablestring= | |
11273 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
11274 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
11275 | no_cache=0 | |
11276 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
11277 | if test "${enable_accessibility+set}" = set; then | |
11278 | enableval="$enable_accessibility" | |
11279 | ||
11280 | if test "$enableval" = yes; then | |
11281 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
11282 | else | |
11283 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
11284 | fi | |
11285 | ||
11286 | else | |
11287 | ||
11288 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
11289 | if test "x$LINE" != x ; then | |
11290 | eval "DEFAULT_$LINE" | |
11291 | else | |
11292 | no_cache=1 | |
11293 | fi | |
11294 | ||
11295 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
11296 | ||
11297 | fi; | |
11298 | ||
11299 | eval "$ac_cv_use_accessibility" | |
11300 | if test "$no_cache" != 1; then | |
11301 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
11302 | fi | |
11303 | ||
11304 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
11305 | echo "$as_me:$LINENO: result: yes" >&5 | |
11306 | echo "${ECHO_T}yes" >&6 | |
11307 | else | |
11308 | echo "$as_me:$LINENO: result: no" >&5 | |
11309 | echo "${ECHO_T}no" >&6 | |
11310 | fi | |
11311 | ||
11312 | ||
38b4a946 VZ |
11313 | if test "$wxUSE_MSW" = "1"; then |
11314 | ||
11315 | enablestring= | |
11316 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
11317 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
11318 | no_cache=0 | |
11319 | # Check whether --enable-dccache or --disable-dccache was given. | |
11320 | if test "${enable_dccache+set}" = set; then | |
11321 | enableval="$enable_dccache" | |
11322 | ||
11323 | if test "$enableval" = yes; then | |
11324 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
11325 | else | |
11326 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
11327 | fi | |
11328 | ||
11329 | else | |
11330 | ||
11331 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
11332 | if test "x$LINE" != x ; then | |
11333 | eval "DEFAULT_$LINE" | |
11334 | else | |
11335 | no_cache=1 | |
11336 | fi | |
11337 | ||
11338 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
11339 | ||
11340 | fi; | |
11341 | ||
11342 | eval "$ac_cv_use_dccache" | |
11343 | if test "$no_cache" != 1; then | |
11344 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
11345 | fi | |
11346 | ||
11347 | if test "$wxUSE_DC_CACHEING" = yes; then | |
11348 | echo "$as_me:$LINENO: result: yes" >&5 | |
11349 | echo "${ECHO_T}yes" >&6 | |
11350 | else | |
11351 | echo "$as_me:$LINENO: result: no" >&5 | |
11352 | echo "${ECHO_T}no" >&6 | |
11353 | fi | |
11354 | ||
11355 | fi | |
11356 | ||
a848cd7e SC |
11357 | |
11358 | ||
11359 | enablestring= | |
11360 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
11361 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
11362 | no_cache=0 | |
11363 | # Check whether --enable-palette or --disable-palette was given. | |
11364 | if test "${enable_palette+set}" = set; then | |
11365 | enableval="$enable_palette" | |
11366 | ||
11367 | if test "$enableval" = yes; then | |
11368 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
11369 | else | |
11370 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
11371 | fi | |
11372 | ||
11373 | else | |
11374 | ||
11375 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
11376 | if test "x$LINE" != x ; then | |
11377 | eval "DEFAULT_$LINE" | |
11378 | else | |
11379 | no_cache=1 | |
11380 | fi | |
11381 | ||
11382 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
11383 | ||
11384 | fi; | |
11385 | ||
11386 | eval "$ac_cv_use_palette" | |
11387 | if test "$no_cache" != 1; then | |
11388 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
11389 | fi | |
11390 | ||
11391 | if test "$wxUSE_PALETTE" = yes; then | |
11392 | echo "$as_me:$LINENO: result: yes" >&5 | |
11393 | echo "${ECHO_T}yes" >&6 | |
11394 | else | |
11395 | echo "$as_me:$LINENO: result: no" >&5 | |
11396 | echo "${ECHO_T}no" >&6 | |
11397 | fi | |
11398 | ||
11399 | ||
11400 | enablestring= | |
11401 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
11402 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
11403 | no_cache=0 | |
11404 | # Check whether --enable-image or --disable-image was given. | |
11405 | if test "${enable_image+set}" = set; then | |
11406 | enableval="$enable_image" | |
11407 | ||
11408 | if test "$enableval" = yes; then | |
11409 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
11410 | else | |
11411 | ac_cv_use_image='wxUSE_IMAGE=no' | |
11412 | fi | |
11413 | ||
11414 | else | |
11415 | ||
11416 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
11417 | if test "x$LINE" != x ; then | |
11418 | eval "DEFAULT_$LINE" | |
11419 | else | |
11420 | no_cache=1 | |
11421 | fi | |
11422 | ||
11423 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
11424 | ||
11425 | fi; | |
11426 | ||
11427 | eval "$ac_cv_use_image" | |
11428 | if test "$no_cache" != 1; then | |
11429 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
11430 | fi | |
11431 | ||
11432 | if test "$wxUSE_IMAGE" = yes; then | |
11433 | echo "$as_me:$LINENO: result: yes" >&5 | |
11434 | echo "${ECHO_T}yes" >&6 | |
11435 | else | |
11436 | echo "$as_me:$LINENO: result: no" >&5 | |
11437 | echo "${ECHO_T}no" >&6 | |
11438 | fi | |
11439 | ||
11440 | ||
11441 | enablestring= | |
11442 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
11443 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
11444 | no_cache=0 | |
11445 | # Check whether --enable-gif or --disable-gif was given. | |
11446 | if test "${enable_gif+set}" = set; then | |
11447 | enableval="$enable_gif" | |
11448 | ||
11449 | if test "$enableval" = yes; then | |
11450 | ac_cv_use_gif='wxUSE_GIF=yes' | |
11451 | else | |
11452 | ac_cv_use_gif='wxUSE_GIF=no' | |
11453 | fi | |
11454 | ||
11455 | else | |
11456 | ||
11457 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
11458 | if test "x$LINE" != x ; then | |
11459 | eval "DEFAULT_$LINE" | |
11460 | else | |
11461 | no_cache=1 | |
11462 | fi | |
11463 | ||
11464 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
11465 | ||
11466 | fi; | |
11467 | ||
11468 | eval "$ac_cv_use_gif" | |
11469 | if test "$no_cache" != 1; then | |
11470 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
11471 | fi | |
11472 | ||
11473 | if test "$wxUSE_GIF" = yes; then | |
11474 | echo "$as_me:$LINENO: result: yes" >&5 | |
11475 | echo "${ECHO_T}yes" >&6 | |
11476 | else | |
11477 | echo "$as_me:$LINENO: result: no" >&5 | |
11478 | echo "${ECHO_T}no" >&6 | |
11479 | fi | |
11480 | ||
11481 | ||
11482 | enablestring= | |
11483 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
11484 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
11485 | no_cache=0 | |
11486 | # Check whether --enable-pcx or --disable-pcx was given. | |
11487 | if test "${enable_pcx+set}" = set; then | |
11488 | enableval="$enable_pcx" | |
11489 | ||
11490 | if test "$enableval" = yes; then | |
11491 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
11492 | else | |
11493 | ac_cv_use_pcx='wxUSE_PCX=no' | |
11494 | fi | |
11495 | ||
11496 | else | |
11497 | ||
11498 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
11499 | if test "x$LINE" != x ; then | |
11500 | eval "DEFAULT_$LINE" | |
11501 | else | |
11502 | no_cache=1 | |
11503 | fi | |
11504 | ||
11505 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
11506 | ||
11507 | fi; | |
11508 | ||
11509 | eval "$ac_cv_use_pcx" | |
11510 | if test "$no_cache" != 1; then | |
11511 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
11512 | fi | |
11513 | ||
11514 | if test "$wxUSE_PCX" = yes; then | |
11515 | echo "$as_me:$LINENO: result: yes" >&5 | |
11516 | echo "${ECHO_T}yes" >&6 | |
11517 | else | |
11518 | echo "$as_me:$LINENO: result: no" >&5 | |
11519 | echo "${ECHO_T}no" >&6 | |
11520 | fi | |
11521 | ||
11522 | ||
bb9e79c0 VZ |
11523 | enablestring= |
11524 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5 | |
11525 | echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6 | |
11526 | no_cache=0 | |
11527 | # Check whether --enable-tga or --disable-tga was given. | |
11528 | if test "${enable_tga+set}" = set; then | |
11529 | enableval="$enable_tga" | |
11530 | ||
11531 | if test "$enableval" = yes; then | |
11532 | ac_cv_use_tga='wxUSE_TGA=yes' | |
11533 | else | |
11534 | ac_cv_use_tga='wxUSE_TGA=no' | |
11535 | fi | |
11536 | ||
11537 | else | |
11538 | ||
11539 | LINE=`grep "wxUSE_TGA" ${wx_arg_cache_file}` | |
11540 | if test "x$LINE" != x ; then | |
11541 | eval "DEFAULT_$LINE" | |
11542 | else | |
11543 | no_cache=1 | |
11544 | fi | |
11545 | ||
11546 | ac_cv_use_tga='wxUSE_TGA='$DEFAULT_wxUSE_TGA | |
11547 | ||
11548 | fi; | |
11549 | ||
11550 | eval "$ac_cv_use_tga" | |
11551 | if test "$no_cache" != 1; then | |
11552 | echo $ac_cv_use_tga >> ${wx_arg_cache_file}.tmp | |
11553 | fi | |
11554 | ||
11555 | if test "$wxUSE_TGA" = yes; then | |
11556 | echo "$as_me:$LINENO: result: yes" >&5 | |
11557 | echo "${ECHO_T}yes" >&6 | |
11558 | else | |
11559 | echo "$as_me:$LINENO: result: no" >&5 | |
11560 | echo "${ECHO_T}no" >&6 | |
11561 | fi | |
11562 | ||
11563 | ||
a848cd7e SC |
11564 | enablestring= |
11565 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
11566 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
11567 | no_cache=0 | |
11568 | # Check whether --enable-iff or --disable-iff was given. | |
11569 | if test "${enable_iff+set}" = set; then | |
11570 | enableval="$enable_iff" | |
11571 | ||
11572 | if test "$enableval" = yes; then | |
11573 | ac_cv_use_iff='wxUSE_IFF=yes' | |
11574 | else | |
11575 | ac_cv_use_iff='wxUSE_IFF=no' | |
11576 | fi | |
11577 | ||
11578 | else | |
11579 | ||
11580 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
11581 | if test "x$LINE" != x ; then | |
11582 | eval "DEFAULT_$LINE" | |
11583 | else | |
11584 | no_cache=1 | |
11585 | fi | |
11586 | ||
11587 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
11588 | ||
11589 | fi; | |
11590 | ||
11591 | eval "$ac_cv_use_iff" | |
11592 | if test "$no_cache" != 1; then | |
11593 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
11594 | fi | |
11595 | ||
11596 | if test "$wxUSE_IFF" = yes; then | |
11597 | echo "$as_me:$LINENO: result: yes" >&5 | |
11598 | echo "${ECHO_T}yes" >&6 | |
11599 | else | |
11600 | echo "$as_me:$LINENO: result: no" >&5 | |
11601 | echo "${ECHO_T}no" >&6 | |
11602 | fi | |
11603 | ||
11604 | ||
11605 | enablestring= | |
11606 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
11607 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
11608 | no_cache=0 | |
11609 | # Check whether --enable-pnm or --disable-pnm was given. | |
11610 | if test "${enable_pnm+set}" = set; then | |
11611 | enableval="$enable_pnm" | |
11612 | ||
11613 | if test "$enableval" = yes; then | |
11614 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
11615 | else | |
11616 | ac_cv_use_pnm='wxUSE_PNM=no' | |
11617 | fi | |
11618 | ||
11619 | else | |
11620 | ||
11621 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
11622 | if test "x$LINE" != x ; then | |
11623 | eval "DEFAULT_$LINE" | |
11624 | else | |
11625 | no_cache=1 | |
11626 | fi | |
11627 | ||
11628 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
11629 | ||
11630 | fi; | |
11631 | ||
11632 | eval "$ac_cv_use_pnm" | |
11633 | if test "$no_cache" != 1; then | |
11634 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
11635 | fi | |
11636 | ||
11637 | if test "$wxUSE_PNM" = yes; then | |
11638 | echo "$as_me:$LINENO: result: yes" >&5 | |
11639 | echo "${ECHO_T}yes" >&6 | |
11640 | else | |
11641 | echo "$as_me:$LINENO: result: no" >&5 | |
11642 | echo "${ECHO_T}no" >&6 | |
11643 | fi | |
11644 | ||
11645 | ||
11646 | enablestring= | |
11647 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
11648 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
11649 | no_cache=0 | |
11650 | # Check whether --enable-xpm or --disable-xpm was given. | |
11651 | if test "${enable_xpm+set}" = set; then | |
11652 | enableval="$enable_xpm" | |
11653 | ||
11654 | if test "$enableval" = yes; then | |
11655 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
11656 | else | |
11657 | ac_cv_use_xpm='wxUSE_XPM=no' | |
11658 | fi | |
11659 | ||
11660 | else | |
11661 | ||
11662 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
11663 | if test "x$LINE" != x ; then | |
11664 | eval "DEFAULT_$LINE" | |
11665 | else | |
11666 | no_cache=1 | |
11667 | fi | |
11668 | ||
11669 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
11670 | ||
11671 | fi; | |
11672 | ||
11673 | eval "$ac_cv_use_xpm" | |
11674 | if test "$no_cache" != 1; then | |
11675 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
11676 | fi | |
11677 | ||
11678 | if test "$wxUSE_XPM" = yes; then | |
11679 | echo "$as_me:$LINENO: result: yes" >&5 | |
11680 | echo "${ECHO_T}yes" >&6 | |
11681 | else | |
11682 | echo "$as_me:$LINENO: result: no" >&5 | |
11683 | echo "${ECHO_T}no" >&6 | |
11684 | fi | |
11685 | ||
11686 | ||
11687 | enablestring= | |
11688 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
11689 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
11690 | no_cache=0 | |
11691 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
11692 | if test "${enable_ico_cur+set}" = set; then | |
11693 | enableval="$enable_ico_cur" | |
11694 | ||
11695 | if test "$enableval" = yes; then | |
11696 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
11697 | else | |
11698 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
11699 | fi | |
11700 | ||
11701 | else | |
11702 | ||
11703 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
11704 | if test "x$LINE" != x ; then | |
11705 | eval "DEFAULT_$LINE" | |
11706 | else | |
11707 | no_cache=1 | |
11708 | fi | |
11709 | ||
11710 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
11711 | ||
11712 | fi; | |
11713 | ||
11714 | eval "$ac_cv_use_ico_cur" | |
11715 | if test "$no_cache" != 1; then | |
11716 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
11717 | fi | |
11718 | ||
11719 | if test "$wxUSE_ICO_CUR" = yes; then | |
11720 | echo "$as_me:$LINENO: result: yes" >&5 | |
11721 | echo "${ECHO_T}yes" >&6 | |
11722 | else | |
11723 | echo "$as_me:$LINENO: result: no" >&5 | |
11724 | echo "${ECHO_T}no" >&6 | |
11725 | fi | |
11726 | ||
11727 | ||
11728 | fi | |
11729 | ||
11730 | ||
11731 | ||
ceec2216 RL |
11732 | # Check whether --with-flavour or --without-flavour was given. |
11733 | if test "${with_flavour+set}" = set; then | |
11734 | withval="$with_flavour" | |
11735 | WX_FLAVOUR="$withval" | |
11736 | fi; | |
11737 | ||
11738 | ||
11739 | ||
a848cd7e SC |
11740 | enablestring= |
11741 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
11742 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
11743 | no_cache=0 | |
11744 | # Check whether --enable-official_build or --disable-official_build was given. | |
11745 | if test "${enable_official_build+set}" = set; then | |
11746 | enableval="$enable_official_build" | |
11747 | ||
11748 | if test "$enableval" = yes; then | |
11749 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
11750 | else | |
11751 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
11752 | fi | |
11753 | ||
11754 | else | |
11755 | ||
11756 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
11757 | if test "x$LINE" != x ; then | |
11758 | eval "DEFAULT_$LINE" | |
11759 | else | |
11760 | no_cache=1 | |
11761 | fi | |
11762 | ||
11763 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
11764 | ||
11765 | fi; | |
11766 | ||
11767 | eval "$ac_cv_use_official_build" | |
11768 | if test "$no_cache" != 1; then | |
11769 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
11770 | fi | |
11771 | ||
11772 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
11773 | echo "$as_me:$LINENO: result: yes" >&5 | |
11774 | echo "${ECHO_T}yes" >&6 | |
11775 | else | |
11776 | echo "$as_me:$LINENO: result: no" >&5 | |
11777 | echo "${ECHO_T}no" >&6 | |
11778 | fi | |
11779 | ||
11780 | # Check whether --enable-vendor or --disable-vendor was given. | |
11781 | if test "${enable_vendor+set}" = set; then | |
11782 | enableval="$enable_vendor" | |
11783 | VENDOR="$enableval" | |
11784 | fi; | |
11785 | if test "x$VENDOR" = "x"; then | |
11786 | VENDOR="custom" | |
11787 | fi | |
11788 | ||
a848cd7e SC |
11789 | |
11790 | ||
11791 | ||
11792 | echo "saving argument cache $wx_arg_cache_file" | |
11793 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
11794 | ||
11795 | ||
11796 | ||
11797 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
11798 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
11799 | ||
11800 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
11801 | if test "$wxUSE_WINE" = "yes"; then | |
11802 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
11803 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
11804 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
11805 | wxUSE_SHARED=no | |
11806 | fi | |
11807 | ||
f597b41c | 11808 | |
a848cd7e SC |
11809 | if test "$wxUSE_GUI" = "yes"; then |
11810 | ||
11811 | if test "$USE_BEOS" = 1; then | |
11812 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
11813 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
11814 | { (exit 1); exit 1; }; } | |
11815 | fi | |
11816 | ||
11817 | if test "$TOOLKIT_GIVEN" = 1; then | |
11818 | for toolkit in `echo $ALL_TOOLKITS`; do | |
11819 | var=wxUSE_$toolkit | |
11820 | eval "value=\$${var}" | |
f34ca037 MW |
11821 | if test "x$value" = "xno"; then |
11822 | eval "$var=0" | |
11823 | elif test "x$value" != "x"; then | |
11824 | eval "$var=1" | |
11825 | fi | |
11826 | ||
11827 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
11828 | eval "wx${toolkit}_VERSION=$value" | |
11829 | fi | |
a848cd7e SC |
11830 | done |
11831 | else | |
11832 | for toolkit in `echo $ALL_TOOLKITS`; do | |
11833 | if test "$has_toolkit_in_cache" != 1; then | |
11834 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
11835 | else | |
11836 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
11837 | |
11838 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
11839 | if test "x$version" != "x"; then | |
11840 | eval "wx${toolkit}_VERSION=$version" | |
11841 | fi | |
a848cd7e SC |
11842 | fi |
11843 | eval "wxUSE_$toolkit=\$${var}" | |
11844 | done | |
11845 | fi | |
11846 | ||
11847 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
b3c86150 | 11848 | + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \ |
a848cd7e SC |
11849 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` |
11850 | ||
11851 | case "${host}" in | |
11852 | *-pc-os2_emx | *-pc-os2-emx ) | |
11853 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
11854 | esac | |
11855 | ||
11856 | case "$NUM_TOOLKITS" in | |
11857 | 1) | |
11858 | ;; | |
11859 | 0) | |
11860 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
11861 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
11862 | { (exit 1); exit 1; }; } | |
11863 | ;; | |
11864 | *) | |
11865 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
11866 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
11867 | { (exit 1); exit 1; }; } | |
11868 | esac | |
11869 | ||
f34ca037 MW |
11870 | # to be removed when --disable-gtk2 isn't needed |
11871 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11872 | wxGTK_VERSION=2 | |
11873 | elif test "x$wxUSE_GTK2" = "xno"; then | |
11874 | wxGTK_VERSION=1 | |
11875 | fi | |
11876 | ||
a848cd7e SC |
11877 | for toolkit in `echo $ALL_TOOLKITS`; do |
11878 | var=wxUSE_$toolkit | |
11879 | eval "value=\$${var}" | |
11880 | if test "x$value" != x; then | |
11881 | cache_var=CACHE_$toolkit | |
11882 | eval "cache=\$${cache_var}" | |
11883 | if test "$cache" = 1; then | |
11884 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
11885 | eval "version=\$wx${toolkit}_VERSION" |
11886 | if test "x$version" != "x"; then | |
11887 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
11888 | fi | |
a848cd7e SC |
11889 | fi |
11890 | if test "$value" = 1; then | |
11891 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
11892 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
11893 | echo "${ECHO_T}$toolkit_echo" >&6 | |
11894 | fi | |
11895 | fi | |
11896 | done | |
11897 | else | |
11898 | if test "x$host_alias" != "x"; then | |
11899 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
11900 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
11901 | else | |
11902 | echo "$as_me:$LINENO: result: base only" >&5 | |
11903 | echo "${ECHO_T}base only" >&6 | |
11904 | fi | |
11905 | fi | |
11906 | ||
8bf7f1a9 VZ |
11907 | |
11908 | cat >confcache <<\_ACEOF | |
11909 | # This file is a shell script that caches the results of configure | |
11910 | # tests run on this system so they can be shared between configure | |
11911 | # scripts and configure runs, see configure's option --config-cache. | |
11912 | # It is not useful on other systems. If it contains results you don't | |
11913 | # want to keep, you may remove or edit it. | |
11914 | # | |
11915 | # config.status only pays attention to the cache file if you give it | |
11916 | # the --recheck option to rerun configure. | |
11917 | # | |
11918 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11919 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11920 | # following values. | |
11921 | ||
11922 | _ACEOF | |
11923 | ||
11924 | # The following way of writing the cache mishandles newlines in values, | |
11925 | # but we know of no workaround that is simple, portable, and efficient. | |
11926 | # So, don't put newlines in cache variables' values. | |
11927 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11928 | # and sets the high bit in the cache file unless we assign to the vars. | |
11929 | { | |
11930 | (set) 2>&1 | | |
11931 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11932 | *ac_space=\ *) | |
11933 | # `set' does not quote correctly, so add quotes (double-quote | |
11934 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11935 | sed -n \ | |
11936 | "s/'/'\\\\''/g; | |
11937 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11938 | ;; | |
11939 | *) | |
11940 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11941 | sed -n \ | |
11942 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
11943 | ;; | |
11944 | esac; | |
11945 | } | | |
11946 | sed ' | |
11947 | t clear | |
11948 | : clear | |
11949 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11950 | t end | |
11951 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11952 | : end' >>confcache | |
11953 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11954 | if test -w $cache_file; then | |
11955 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
11956 | cat confcache >$cache_file | |
11957 | else | |
11958 | echo "not updating unwritable cache $cache_file" | |
11959 | fi | |
11960 | fi | |
11961 | rm -f confcache | |
11962 | ||
11963 | CFLAGS=${CFLAGS:=} | |
11964 | ||
11965 | ||
11966 | ||
11967 | ac_ext=c | |
a848cd7e SC |
11968 | ac_cpp='$CPP $CPPFLAGS' |
11969 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11970 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11971 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11972 | if test -n "$ac_tool_prefix"; then | |
11973 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
11974 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
11975 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11977 | if test "${ac_cv_prog_CC+set}" = set; then | |
11978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11979 | else | |
11980 | if test -n "$CC"; then | |
11981 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11982 | else | |
11983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11984 | for as_dir in $PATH | |
11985 | do | |
11986 | IFS=$as_save_IFS | |
11987 | test -z "$as_dir" && as_dir=. | |
11988 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11989 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11990 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
11991 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11992 | break 2 | |
11993 | fi | |
11994 | done | |
11995 | done | |
11996 | ||
11997 | fi | |
11998 | fi | |
11999 | CC=$ac_cv_prog_CC | |
12000 | if test -n "$CC"; then | |
12001 | echo "$as_me:$LINENO: result: $CC" >&5 | |
12002 | echo "${ECHO_T}$CC" >&6 | |
12003 | else | |
12004 | echo "$as_me:$LINENO: result: no" >&5 | |
12005 | echo "${ECHO_T}no" >&6 | |
12006 | fi | |
12007 | ||
12008 | fi | |
12009 | if test -z "$ac_cv_prog_CC"; then | |
12010 | ac_ct_CC=$CC | |
12011 | # Extract the first word of "gcc", so it can be a program name with args. | |
12012 | set dummy gcc; ac_word=$2 | |
12013 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12014 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12015 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
12016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12017 | else | |
12018 | if test -n "$ac_ct_CC"; then | |
12019 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
12020 | else | |
12021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12022 | for as_dir in $PATH | |
12023 | do | |
12024 | IFS=$as_save_IFS | |
12025 | test -z "$as_dir" && as_dir=. | |
12026 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12027 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12028 | ac_cv_prog_ac_ct_CC="gcc" | |
12029 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12030 | break 2 | |
12031 | fi | |
12032 | done | |
12033 | done | |
12034 | ||
12035 | fi | |
12036 | fi | |
12037 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
12038 | if test -n "$ac_ct_CC"; then | |
12039 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
12040 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
12041 | else | |
12042 | echo "$as_me:$LINENO: result: no" >&5 | |
12043 | echo "${ECHO_T}no" >&6 | |
12044 | fi | |
12045 | ||
12046 | CC=$ac_ct_CC | |
12047 | else | |
12048 | CC="$ac_cv_prog_CC" | |
12049 | fi | |
12050 | ||
12051 | if test -z "$CC"; then | |
12052 | if test -n "$ac_tool_prefix"; then | |
12053 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
12054 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
12055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12057 | if test "${ac_cv_prog_CC+set}" = set; then | |
12058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12059 | else | |
12060 | if test -n "$CC"; then | |
12061 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
12062 | else | |
12063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12064 | for as_dir in $PATH | |
12065 | do | |
12066 | IFS=$as_save_IFS | |
12067 | test -z "$as_dir" && as_dir=. | |
12068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12070 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
12071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12072 | break 2 | |
12073 | fi | |
12074 | done | |
12075 | done | |
12076 | ||
12077 | fi | |
12078 | fi | |
12079 | CC=$ac_cv_prog_CC | |
12080 | if test -n "$CC"; then | |
12081 | echo "$as_me:$LINENO: result: $CC" >&5 | |
12082 | echo "${ECHO_T}$CC" >&6 | |
12083 | else | |
12084 | echo "$as_me:$LINENO: result: no" >&5 | |
12085 | echo "${ECHO_T}no" >&6 | |
12086 | fi | |
12087 | ||
12088 | fi | |
12089 | if test -z "$ac_cv_prog_CC"; then | |
12090 | ac_ct_CC=$CC | |
12091 | # Extract the first word of "cc", so it can be a program name with args. | |
12092 | set dummy cc; ac_word=$2 | |
12093 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12094 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12095 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
12096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12097 | else | |
12098 | if test -n "$ac_ct_CC"; then | |
12099 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
12100 | else | |
12101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12102 | for as_dir in $PATH | |
12103 | do | |
12104 | IFS=$as_save_IFS | |
12105 | test -z "$as_dir" && as_dir=. | |
12106 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12107 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12108 | ac_cv_prog_ac_ct_CC="cc" | |
12109 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12110 | break 2 | |
12111 | fi | |
12112 | done | |
12113 | done | |
12114 | ||
12115 | fi | |
12116 | fi | |
12117 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
12118 | if test -n "$ac_ct_CC"; then | |
12119 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
12120 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
12121 | else | |
12122 | echo "$as_me:$LINENO: result: no" >&5 | |
12123 | echo "${ECHO_T}no" >&6 | |
12124 | fi | |
12125 | ||
12126 | CC=$ac_ct_CC | |
12127 | else | |
12128 | CC="$ac_cv_prog_CC" | |
12129 | fi | |
12130 | ||
12131 | fi | |
12132 | if test -z "$CC"; then | |
12133 | # Extract the first word of "cc", so it can be a program name with args. | |
12134 | set dummy cc; ac_word=$2 | |
12135 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12136 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12137 | if test "${ac_cv_prog_CC+set}" = set; then | |
12138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12139 | else | |
12140 | if test -n "$CC"; then | |
12141 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
12142 | else | |
12143 | ac_prog_rejected=no | |
12144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12145 | for as_dir in $PATH | |
12146 | do | |
12147 | IFS=$as_save_IFS | |
12148 | test -z "$as_dir" && as_dir=. | |
12149 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12150 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12151 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
12152 | ac_prog_rejected=yes | |
12153 | continue | |
12154 | fi | |
12155 | ac_cv_prog_CC="cc" | |
12156 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12157 | break 2 | |
12158 | fi | |
12159 | done | |
12160 | done | |
12161 | ||
12162 | if test $ac_prog_rejected = yes; then | |
12163 | # We found a bogon in the path, so make sure we never use it. | |
12164 | set dummy $ac_cv_prog_CC | |
12165 | shift | |
12166 | if test $# != 0; then | |
12167 | # We chose a different compiler from the bogus one. | |
12168 | # However, it has the same basename, so the bogon will be chosen | |
12169 | # first if we set CC to just the basename; use the full file name. | |
12170 | shift | |
12171 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
12172 | fi | |
12173 | fi | |
12174 | fi | |
12175 | fi | |
12176 | CC=$ac_cv_prog_CC | |
12177 | if test -n "$CC"; then | |
12178 | echo "$as_me:$LINENO: result: $CC" >&5 | |
12179 | echo "${ECHO_T}$CC" >&6 | |
12180 | else | |
12181 | echo "$as_me:$LINENO: result: no" >&5 | |
12182 | echo "${ECHO_T}no" >&6 | |
12183 | fi | |
12184 | ||
12185 | fi | |
12186 | if test -z "$CC"; then | |
12187 | if test -n "$ac_tool_prefix"; then | |
12188 | for ac_prog in cl | |
12189 | do | |
12190 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12191 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12192 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12193 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12194 | if test "${ac_cv_prog_CC+set}" = set; then | |
12195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12196 | else | |
12197 | if test -n "$CC"; then | |
12198 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
12199 | else | |
12200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12201 | for as_dir in $PATH | |
12202 | do | |
12203 | IFS=$as_save_IFS | |
12204 | test -z "$as_dir" && as_dir=. | |
12205 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12206 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12207 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
12208 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12209 | break 2 | |
12210 | fi | |
12211 | done | |
12212 | done | |
12213 | ||
12214 | fi | |
12215 | fi | |
12216 | CC=$ac_cv_prog_CC | |
12217 | if test -n "$CC"; then | |
12218 | echo "$as_me:$LINENO: result: $CC" >&5 | |
12219 | echo "${ECHO_T}$CC" >&6 | |
12220 | else | |
12221 | echo "$as_me:$LINENO: result: no" >&5 | |
12222 | echo "${ECHO_T}no" >&6 | |
12223 | fi | |
12224 | ||
12225 | test -n "$CC" && break | |
12226 | done | |
12227 | fi | |
12228 | if test -z "$CC"; then | |
12229 | ac_ct_CC=$CC | |
12230 | for ac_prog in cl | |
12231 | do | |
12232 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12233 | set dummy $ac_prog; ac_word=$2 | |
12234 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12236 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
12237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12238 | else | |
12239 | if test -n "$ac_ct_CC"; then | |
12240 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
12241 | else | |
12242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12243 | for as_dir in $PATH | |
12244 | do | |
12245 | IFS=$as_save_IFS | |
12246 | test -z "$as_dir" && as_dir=. | |
12247 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12248 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12249 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
12250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12251 | break 2 | |
12252 | fi | |
12253 | done | |
12254 | done | |
12255 | ||
12256 | fi | |
12257 | fi | |
12258 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
12259 | if test -n "$ac_ct_CC"; then | |
12260 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
12261 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
12262 | else | |
12263 | echo "$as_me:$LINENO: result: no" >&5 | |
12264 | echo "${ECHO_T}no" >&6 | |
12265 | fi | |
12266 | ||
12267 | test -n "$ac_ct_CC" && break | |
12268 | done | |
12269 | ||
12270 | CC=$ac_ct_CC | |
12271 | fi | |
12272 | ||
12273 | fi | |
12274 | ||
12275 | ||
12276 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
12277 | See \`config.log' for more details." >&5 | |
12278 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
12279 | See \`config.log' for more details." >&2;} | |
12280 | { (exit 1); exit 1; }; } | |
12281 | ||
12282 | # Provide some information about the compiler. | |
12283 | echo "$as_me:$LINENO:" \ | |
12284 | "checking for C compiler version" >&5 | |
12285 | ac_compiler=`set X $ac_compile; echo $2` | |
12286 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12287 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12288 | ac_status=$? | |
12289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12290 | (exit $ac_status); } | |
12291 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12292 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12293 | ac_status=$? | |
12294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12295 | (exit $ac_status); } | |
12296 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12297 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12298 | ac_status=$? | |
12299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12300 | (exit $ac_status); } | |
12301 | ||
12302 | cat >conftest.$ac_ext <<_ACEOF | |
12303 | /* confdefs.h. */ | |
12304 | _ACEOF | |
12305 | cat confdefs.h >>conftest.$ac_ext | |
12306 | cat >>conftest.$ac_ext <<_ACEOF | |
12307 | /* end confdefs.h. */ | |
12308 | ||
12309 | int | |
12310 | main () | |
12311 | { | |
12312 | ||
12313 | ; | |
12314 | return 0; | |
12315 | } | |
12316 | _ACEOF | |
12317 | ac_clean_files_save=$ac_clean_files | |
12318 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
12319 | # Try to create an executable without -o first, disregard a.out. | |
12320 | # It will help us diagnose broken compilers, and finding out an intuition | |
12321 | # of exeext. | |
ac1cb8d3 VS |
12322 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
12323 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
12324 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
12325 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
12326 | (eval $ac_link_default) 2>&5 | |
12327 | ac_status=$? | |
12328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12329 | (exit $ac_status); }; then | |
12330 | # Find the output, starting from the most likely. This scheme is | |
12331 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
12332 | # resort. | |
12333 | ||
12334 | # Be careful to initialize this variable, since it used to be cached. | |
12335 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
12336 | ac_cv_exeext= | |
12337 | # b.out is created by i960 compilers. | |
12338 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
12339 | do | |
12340 | test -f "$ac_file" || continue | |
12341 | case $ac_file in | |
12342 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 12343 | ;; |
a848cd7e | 12344 | conftest.$ac_ext ) |
ac1cb8d3 VS |
12345 | # This is the source file. |
12346 | ;; | |
a848cd7e | 12347 | [ab].out ) |
ac1cb8d3 VS |
12348 | # We found the default executable, but exeext='' is most |
12349 | # certainly right. | |
12350 | break;; | |
a848cd7e | 12351 | *.* ) |
ac1cb8d3 VS |
12352 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
12353 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
12354 | # but it would be cool to find out if it's true. Does anybody | |
12355 | # maintain Libtool? --akim. | |
12356 | export ac_cv_exeext | |
12357 | break;; | |
a848cd7e | 12358 | * ) |
ac1cb8d3 | 12359 | break;; |
a848cd7e SC |
12360 | esac |
12361 | done | |
12362 | else | |
12363 | echo "$as_me: failed program was:" >&5 | |
12364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12365 | ||
12366 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
12367 | See \`config.log' for more details." >&5 | |
12368 | echo "$as_me: error: C compiler cannot create executables | |
12369 | See \`config.log' for more details." >&2;} | |
12370 | { (exit 77); exit 77; }; } | |
12371 | fi | |
12372 | ||
12373 | ac_exeext=$ac_cv_exeext | |
12374 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
12375 | echo "${ECHO_T}$ac_file" >&6 | |
12376 | ||
12377 | # Check the compiler produces executables we can run. If not, either | |
12378 | # the compiler is broken, or we cross compile. | |
12379 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
12380 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
12381 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
12382 | # If not cross compiling, check that we can run a simple program. | |
12383 | if test "$cross_compiling" != yes; then | |
12384 | if { ac_try='./$ac_file' | |
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); }; }; then | |
12390 | cross_compiling=no | |
12391 | else | |
12392 | if test "$cross_compiling" = maybe; then | |
12393 | cross_compiling=yes | |
12394 | else | |
12395 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
12396 | If you meant to cross compile, use \`--host'. | |
12397 | See \`config.log' for more details." >&5 | |
12398 | echo "$as_me: error: cannot run C compiled programs. | |
12399 | If you meant to cross compile, use \`--host'. | |
12400 | See \`config.log' for more details." >&2;} | |
12401 | { (exit 1); exit 1; }; } | |
12402 | fi | |
12403 | fi | |
12404 | fi | |
12405 | echo "$as_me:$LINENO: result: yes" >&5 | |
12406 | echo "${ECHO_T}yes" >&6 | |
12407 | ||
12408 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
12409 | ac_clean_files=$ac_clean_files_save | |
12410 | # Check the compiler produces executables we can run. If not, either | |
12411 | # the compiler is broken, or we cross compile. | |
12412 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
12413 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
12414 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
12415 | echo "${ECHO_T}$cross_compiling" >&6 | |
12416 | ||
12417 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
12418 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
12419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12420 | (eval $ac_link) 2>&5 | |
12421 | ac_status=$? | |
12422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12423 | (exit $ac_status); }; then | |
12424 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
12425 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
12426 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
12427 | # `rm'. | |
12428 | for ac_file in conftest.exe conftest conftest.*; do | |
12429 | test -f "$ac_file" || continue | |
12430 | case $ac_file in | |
12431 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
12432 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
12433 | export ac_cv_exeext |
12434 | break;; | |
8bf7f1a9 VZ |
12435 | * ) break;; |
12436 | esac | |
6da4ac91 | 12437 | done |
6da4ac91 | 12438 | else |
8bf7f1a9 VZ |
12439 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
12440 | See \`config.log' for more details." >&5 | |
12441 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
12442 | See \`config.log' for more details." >&2;} | |
12443 | { (exit 1); exit 1; }; } | |
6da4ac91 VZ |
12444 | fi |
12445 | ||
8bf7f1a9 VZ |
12446 | rm -f conftest$ac_cv_exeext |
12447 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
12448 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
12449 | ||
12450 | rm -f conftest.$ac_ext | |
12451 | EXEEXT=$ac_cv_exeext | |
12452 | ac_exeext=$EXEEXT | |
12453 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
12454 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
12455 | if test "${ac_cv_objext+set}" = set; then | |
6da4ac91 VZ |
12456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12457 | else | |
8bf7f1a9 VZ |
12458 | cat >conftest.$ac_ext <<_ACEOF |
12459 | /* confdefs.h. */ | |
12460 | _ACEOF | |
12461 | cat confdefs.h >>conftest.$ac_ext | |
12462 | cat >>conftest.$ac_ext <<_ACEOF | |
12463 | /* end confdefs.h. */ | |
6da4ac91 | 12464 | |
8bf7f1a9 VZ |
12465 | int |
12466 | main () | |
12467 | { | |
6da4ac91 | 12468 | |
8bf7f1a9 VZ |
12469 | ; |
12470 | return 0; | |
12471 | } | |
12472 | _ACEOF | |
12473 | rm -f conftest.o conftest.obj | |
12474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12475 | (eval $ac_compile) 2>&5 | |
12476 | ac_status=$? | |
12477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12478 | (exit $ac_status); }; then | |
12479 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
12480 | case $ac_file in | |
12481 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
12482 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
12483 | break;; | |
12484 | esac | |
6da4ac91 | 12485 | done |
8bf7f1a9 VZ |
12486 | else |
12487 | echo "$as_me: failed program was:" >&5 | |
12488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6da4ac91 | 12489 | |
8bf7f1a9 | 12490 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
6da4ac91 | 12491 | See \`config.log' for more details." >&5 |
8bf7f1a9 | 12492 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
6da4ac91 VZ |
12493 | See \`config.log' for more details." >&2;} |
12494 | { (exit 1); exit 1; }; } | |
8bf7f1a9 | 12495 | fi |
6da4ac91 | 12496 | |
8bf7f1a9 VZ |
12497 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
12498 | fi | |
12499 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
12500 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
12501 | OBJEXT=$ac_cv_objext | |
12502 | ac_objext=$OBJEXT | |
6da4ac91 VZ |
12503 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
12504 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
12505 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
12506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12507 | else | |
12508 | cat >conftest.$ac_ext <<_ACEOF | |
12509 | /* confdefs.h. */ | |
12510 | _ACEOF | |
12511 | cat confdefs.h >>conftest.$ac_ext | |
12512 | cat >>conftest.$ac_ext <<_ACEOF | |
12513 | /* end confdefs.h. */ | |
12514 | ||
12515 | int | |
12516 | main () | |
12517 | { | |
12518 | #ifndef __GNUC__ | |
12519 | choke me | |
12520 | #endif | |
12521 | ||
12522 | ; | |
12523 | return 0; | |
12524 | } | |
12525 | _ACEOF | |
12526 | rm -f conftest.$ac_objext | |
12527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12528 | (eval $ac_compile) 2>conftest.er1 | |
12529 | ac_status=$? | |
12530 | grep -v '^ *+' conftest.er1 >conftest.err | |
12531 | rm -f conftest.er1 | |
12532 | cat conftest.err >&5 | |
12533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12534 | (exit $ac_status); } && | |
12535 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12537 | (eval $ac_try) 2>&5 | |
12538 | ac_status=$? | |
12539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12540 | (exit $ac_status); }; } && | |
12541 | { ac_try='test -s conftest.$ac_objext' | |
12542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12543 | (eval $ac_try) 2>&5 | |
12544 | ac_status=$? | |
12545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12546 | (exit $ac_status); }; }; then | |
12547 | ac_compiler_gnu=yes | |
12548 | else | |
12549 | echo "$as_me: failed program was:" >&5 | |
12550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12551 | ||
12552 | ac_compiler_gnu=no | |
12553 | fi | |
12554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12555 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
12556 | ||
12557 | fi | |
12558 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
12559 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
12560 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
12561 | ac_test_CFLAGS=${CFLAGS+set} | |
12562 | ac_save_CFLAGS=$CFLAGS | |
12563 | CFLAGS="-g" | |
12564 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
12565 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12566 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12568 | else | |
12569 | cat >conftest.$ac_ext <<_ACEOF | |
12570 | /* confdefs.h. */ | |
12571 | _ACEOF | |
12572 | cat confdefs.h >>conftest.$ac_ext | |
12573 | cat >>conftest.$ac_ext <<_ACEOF | |
12574 | /* end confdefs.h. */ | |
12575 | ||
12576 | int | |
12577 | main () | |
12578 | { | |
12579 | ||
12580 | ; | |
12581 | return 0; | |
12582 | } | |
12583 | _ACEOF | |
12584 | rm -f conftest.$ac_objext | |
12585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12586 | (eval $ac_compile) 2>conftest.er1 | |
12587 | ac_status=$? | |
12588 | grep -v '^ *+' conftest.er1 >conftest.err | |
12589 | rm -f conftest.er1 | |
12590 | cat conftest.err >&5 | |
12591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12592 | (exit $ac_status); } && | |
12593 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12595 | (eval $ac_try) 2>&5 | |
12596 | ac_status=$? | |
12597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12598 | (exit $ac_status); }; } && | |
12599 | { ac_try='test -s conftest.$ac_objext' | |
12600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12601 | (eval $ac_try) 2>&5 | |
12602 | ac_status=$? | |
12603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12604 | (exit $ac_status); }; }; then | |
12605 | ac_cv_prog_cc_g=yes | |
12606 | else | |
12607 | echo "$as_me: failed program was:" >&5 | |
12608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12609 | ||
12610 | ac_cv_prog_cc_g=no | |
12611 | fi | |
12612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12613 | fi | |
12614 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12615 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12616 | if test "$ac_test_CFLAGS" = set; then | |
12617 | CFLAGS=$ac_save_CFLAGS | |
12618 | elif test $ac_cv_prog_cc_g = yes; then | |
12619 | if test "$GCC" = yes; then | |
12620 | CFLAGS="-g -O2" | |
12621 | else | |
12622 | CFLAGS="-g" | |
12623 | fi | |
12624 | else | |
12625 | if test "$GCC" = yes; then | |
12626 | CFLAGS="-O2" | |
12627 | else | |
12628 | CFLAGS= | |
12629 | fi | |
12630 | fi | |
12631 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
12632 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
12633 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
12634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12635 | else | |
12636 | ac_cv_prog_cc_stdc=no | |
12637 | ac_save_CC=$CC | |
12638 | cat >conftest.$ac_ext <<_ACEOF | |
12639 | /* confdefs.h. */ | |
12640 | _ACEOF | |
12641 | cat confdefs.h >>conftest.$ac_ext | |
12642 | cat >>conftest.$ac_ext <<_ACEOF | |
12643 | /* end confdefs.h. */ | |
12644 | #include <stdarg.h> | |
12645 | #include <stdio.h> | |
12646 | #include <sys/types.h> | |
12647 | #include <sys/stat.h> | |
12648 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
12649 | struct buf { int x; }; | |
12650 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
12651 | static char *e (p, i) | |
12652 | char **p; | |
12653 | int i; | |
12654 | { | |
12655 | return p[i]; | |
12656 | } | |
12657 | static char *f (char * (*g) (char **, int), char **p, ...) | |
12658 | { | |
12659 | char *s; | |
12660 | va_list v; | |
12661 | va_start (v,p); | |
12662 | s = g (p, va_arg (v,int)); | |
12663 | va_end (v); | |
12664 | return s; | |
12665 | } | |
12666 | ||
12667 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
12668 | function prototypes and stuff, but not '\xHH' hex character constants. | |
12669 | These don't provoke an error unfortunately, instead are silently treated | |
12670 | as 'x'. The following induces an error, until -std1 is added to get | |
12671 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
12672 | array size at least. It's necessary to write '\x00'==0 to get something | |
12673 | that's true only with -std1. */ | |
12674 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
12675 | ||
12676 | int test (int i, double x); | |
12677 | struct s1 {int (*f) (int a);}; | |
12678 | struct s2 {int (*f) (double a);}; | |
12679 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
12680 | int argc; | |
12681 | char **argv; | |
12682 | int | |
12683 | main () | |
12684 | { | |
12685 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
12686 | ; | |
12687 | return 0; | |
12688 | } | |
12689 | _ACEOF | |
12690 | # Don't try gcc -ansi; that turns off useful extensions and | |
12691 | # breaks some systems' header files. | |
12692 | # AIX -qlanglvl=ansi | |
12693 | # Ultrix and OSF/1 -std1 | |
12694 | # HP-UX 10.20 and later -Ae | |
12695 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
12696 | # SVR4 -Xc -D__EXTENSIONS__ | |
12697 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
12698 | do | |
12699 | CC="$ac_save_CC $ac_arg" | |
12700 | rm -f conftest.$ac_objext | |
12701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12702 | (eval $ac_compile) 2>conftest.er1 | |
12703 | ac_status=$? | |
12704 | grep -v '^ *+' conftest.er1 >conftest.err | |
12705 | rm -f conftest.er1 | |
12706 | cat conftest.err >&5 | |
12707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12708 | (exit $ac_status); } && | |
12709 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12711 | (eval $ac_try) 2>&5 | |
12712 | ac_status=$? | |
12713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12714 | (exit $ac_status); }; } && | |
12715 | { ac_try='test -s conftest.$ac_objext' | |
12716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12717 | (eval $ac_try) 2>&5 | |
12718 | ac_status=$? | |
12719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12720 | (exit $ac_status); }; }; then | |
12721 | ac_cv_prog_cc_stdc=$ac_arg | |
12722 | break | |
12723 | else | |
12724 | echo "$as_me: failed program was:" >&5 | |
12725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12726 | ||
12727 | fi | |
12728 | rm -f conftest.err conftest.$ac_objext | |
12729 | done | |
12730 | rm -f conftest.$ac_ext conftest.$ac_objext | |
12731 | CC=$ac_save_CC | |
12732 | ||
12733 | fi | |
12734 | ||
12735 | case "x$ac_cv_prog_cc_stdc" in | |
12736 | x|xno) | |
12737 | echo "$as_me:$LINENO: result: none needed" >&5 | |
12738 | echo "${ECHO_T}none needed" >&6 ;; | |
12739 | *) | |
12740 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
12741 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
12742 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
12743 | esac | |
12744 | ||
12745 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
12746 | # in C++ we need to declare it. In case someone uses the same compiler | |
12747 | # for both compiling C and C++ we need to have the C++ compiler decide | |
12748 | # the declaration of exit, since it's the most demanding environment. | |
12749 | cat >conftest.$ac_ext <<_ACEOF | |
12750 | #ifndef __cplusplus | |
12751 | choke me | |
12752 | #endif | |
12753 | _ACEOF | |
12754 | rm -f conftest.$ac_objext | |
12755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12756 | (eval $ac_compile) 2>conftest.er1 | |
12757 | ac_status=$? | |
12758 | grep -v '^ *+' conftest.er1 >conftest.err | |
12759 | rm -f conftest.er1 | |
12760 | cat conftest.err >&5 | |
12761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12762 | (exit $ac_status); } && | |
12763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12765 | (eval $ac_try) 2>&5 | |
12766 | ac_status=$? | |
12767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12768 | (exit $ac_status); }; } && | |
12769 | { ac_try='test -s conftest.$ac_objext' | |
12770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12771 | (eval $ac_try) 2>&5 | |
12772 | ac_status=$? | |
12773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12774 | (exit $ac_status); }; }; then | |
12775 | for ac_declaration in \ | |
12776 | '' \ | |
12777 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
12778 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12779 | 'extern "C" void exit (int) throw ();' \ | |
12780 | 'extern "C" void exit (int);' \ | |
12781 | 'void exit (int);' | |
12782 | do | |
12783 | cat >conftest.$ac_ext <<_ACEOF | |
12784 | /* confdefs.h. */ | |
12785 | _ACEOF | |
12786 | cat confdefs.h >>conftest.$ac_ext | |
12787 | cat >>conftest.$ac_ext <<_ACEOF | |
12788 | /* end confdefs.h. */ | |
12789 | $ac_declaration | |
12790 | #include <stdlib.h> | |
12791 | int | |
12792 | main () | |
12793 | { | |
12794 | exit (42); | |
12795 | ; | |
12796 | return 0; | |
12797 | } | |
12798 | _ACEOF | |
12799 | rm -f conftest.$ac_objext | |
12800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12801 | (eval $ac_compile) 2>conftest.er1 | |
12802 | ac_status=$? | |
12803 | grep -v '^ *+' conftest.er1 >conftest.err | |
12804 | rm -f conftest.er1 | |
12805 | cat conftest.err >&5 | |
12806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12807 | (exit $ac_status); } && | |
12808 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12810 | (eval $ac_try) 2>&5 | |
12811 | ac_status=$? | |
12812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12813 | (exit $ac_status); }; } && | |
12814 | { ac_try='test -s conftest.$ac_objext' | |
12815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12816 | (eval $ac_try) 2>&5 | |
12817 | ac_status=$? | |
12818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12819 | (exit $ac_status); }; }; then | |
12820 | : | |
12821 | else | |
12822 | echo "$as_me: failed program was:" >&5 | |
12823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12824 | ||
12825 | continue | |
12826 | fi | |
12827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12828 | cat >conftest.$ac_ext <<_ACEOF | |
12829 | /* confdefs.h. */ | |
12830 | _ACEOF | |
12831 | cat confdefs.h >>conftest.$ac_ext | |
12832 | cat >>conftest.$ac_ext <<_ACEOF | |
12833 | /* end confdefs.h. */ | |
12834 | $ac_declaration | |
12835 | int | |
12836 | main () | |
12837 | { | |
12838 | exit (42); | |
12839 | ; | |
12840 | return 0; | |
12841 | } | |
12842 | _ACEOF | |
12843 | rm -f conftest.$ac_objext | |
12844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12845 | (eval $ac_compile) 2>conftest.er1 | |
12846 | ac_status=$? | |
12847 | grep -v '^ *+' conftest.er1 >conftest.err | |
12848 | rm -f conftest.er1 | |
12849 | cat conftest.err >&5 | |
12850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12851 | (exit $ac_status); } && | |
12852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12854 | (eval $ac_try) 2>&5 | |
12855 | ac_status=$? | |
12856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12857 | (exit $ac_status); }; } && | |
12858 | { ac_try='test -s conftest.$ac_objext' | |
12859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12860 | (eval $ac_try) 2>&5 | |
12861 | ac_status=$? | |
12862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12863 | (exit $ac_status); }; }; then | |
12864 | break | |
12865 | else | |
12866 | echo "$as_me: failed program was:" >&5 | |
12867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12868 | ||
12869 | fi | |
12870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12871 | done | |
12872 | rm -f conftest* | |
12873 | if test -n "$ac_declaration"; then | |
12874 | echo '#ifdef __cplusplus' >>confdefs.h | |
12875 | echo $ac_declaration >>confdefs.h | |
12876 | echo '#endif' >>confdefs.h | |
12877 | fi | |
12878 | ||
12879 | else | |
12880 | echo "$as_me: failed program was:" >&5 | |
12881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12882 | ||
12883 | fi | |
12884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12885 | ac_ext=c | |
12886 | ac_cpp='$CPP $CPPFLAGS' | |
12887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12890 | ||
12891 | ||
ab0ad5f1 VZ |
12892 | |
12893 | ac_ext=c | |
12894 | ac_cpp='$CPP $CPPFLAGS' | |
12895 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12896 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12897 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12898 | ||
12899 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
12900 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
12901 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
12902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12903 | else | |
12904 | cat >conftest.$ac_ext <<_ACEOF | |
12905 | /* confdefs.h. */ | |
12906 | _ACEOF | |
12907 | cat confdefs.h >>conftest.$ac_ext | |
12908 | cat >>conftest.$ac_ext <<_ACEOF | |
12909 | /* end confdefs.h. */ | |
12910 | ||
12911 | int | |
12912 | main () | |
12913 | { | |
12914 | ||
12915 | #ifndef __INTEL_COMPILER | |
12916 | choke me | |
12917 | #endif | |
12918 | ||
12919 | ; | |
12920 | return 0; | |
12921 | } | |
12922 | _ACEOF | |
12923 | rm -f conftest.$ac_objext | |
12924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12925 | (eval $ac_compile) 2>conftest.er1 | |
12926 | ac_status=$? | |
12927 | grep -v '^ *+' conftest.er1 >conftest.err | |
12928 | rm -f conftest.er1 | |
12929 | cat conftest.err >&5 | |
12930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12931 | (exit $ac_status); } && | |
bb9e79c0 | 12932 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
12933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12934 | (eval $ac_try) 2>&5 | |
12935 | ac_status=$? | |
12936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12937 | (exit $ac_status); }; } && | |
12938 | { ac_try='test -s conftest.$ac_objext' | |
12939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12940 | (eval $ac_try) 2>&5 | |
12941 | ac_status=$? | |
12942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12943 | (exit $ac_status); }; }; then | |
12944 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
12945 | else | |
12946 | echo "$as_me: failed program was:" >&5 | |
12947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12948 | ||
12949 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
12950 | ||
12951 | fi | |
12952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12953 | ||
12954 | ||
12955 | fi | |
12956 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
12957 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
12958 | ac_ext=c | |
12959 | ac_cpp='$CPP $CPPFLAGS' | |
12960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12963 | ||
12964 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
12965 | :; INTELCC=yes | |
12966 | else | |
12967 | :; | |
12968 | fi | |
12969 | ||
12970 | ||
12971 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
12972 | if test "xCC" = "xC"; then |
12973 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 12974 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 12975 | if test "${bakefile_cv_c_exto+set}" = set; then |
480ccd21 DE |
12976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12977 | else | |
12978 | cat >conftest.$ac_ext <<_ACEOF | |
12979 | /* confdefs.h. */ | |
12980 | _ACEOF | |
12981 | cat confdefs.h >>conftest.$ac_ext | |
12982 | cat >>conftest.$ac_ext <<_ACEOF | |
12983 | /* end confdefs.h. */ | |
12984 | ||
12985 | int | |
12986 | main () | |
12987 | { | |
12988 | ||
12989 | ; | |
12990 | return 0; | |
12991 | } | |
12992 | _ACEOF | |
12993 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12995 | (eval $ac_compile) 2>&5 | |
12996 | ac_status=$? | |
12997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12998 | (exit $ac_status); }; then | |
12999 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
13000 | case $ac_file in | |
13001 | conftest.$ac_ext.o) | |
0093c2fc | 13002 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
13003 | ;; |
13004 | *) | |
13005 | ;; | |
13006 | esac | |
13007 | done | |
13008 | else | |
13009 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
13010 | See \`config.log' for more details." >&5 | |
13011 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
13012 | See \`config.log' for more details." >&2;} | |
13013 | { (exit 1); exit 1; }; } | |
13014 | ||
13015 | fi | |
13016 | ||
13017 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
13018 | ||
13019 | fi | |
0093c2fc VZ |
13020 | echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
13021 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6 | |
13022 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
480ccd21 | 13023 | if test "c" = "c"; then |
0093c2fc | 13024 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
13025 | fi |
13026 | if test "c" = "cxx"; then | |
0093c2fc | 13027 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
13028 | fi |
13029 | fi | |
13030 | ||
0093c2fc | 13031 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
13032 | unset ac_cv_prog_cc_g |
13033 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 13034 | ac_save_CFLAGS=$CFLAGS |
15291213 | 13035 | CFLAGS="-g" |
480ccd21 DE |
13036 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
13037 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
13038 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
13039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13040 | else | |
13041 | cat >conftest.$ac_ext <<_ACEOF | |
13042 | /* confdefs.h. */ | |
13043 | _ACEOF | |
13044 | cat confdefs.h >>conftest.$ac_ext | |
13045 | cat >>conftest.$ac_ext <<_ACEOF | |
13046 | /* end confdefs.h. */ | |
13047 | ||
13048 | int | |
13049 | main () | |
13050 | { | |
13051 | ||
13052 | ; | |
13053 | return 0; | |
13054 | } | |
13055 | _ACEOF | |
13056 | rm -f conftest.$ac_objext | |
13057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13058 | (eval $ac_compile) 2>conftest.er1 | |
13059 | ac_status=$? | |
13060 | grep -v '^ *+' conftest.er1 >conftest.err | |
13061 | rm -f conftest.er1 | |
13062 | cat conftest.err >&5 | |
13063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13064 | (exit $ac_status); } && | |
bb9e79c0 | 13065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
13066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13067 | (eval $ac_try) 2>&5 | |
13068 | ac_status=$? | |
13069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13070 | (exit $ac_status); }; } && | |
13071 | { ac_try='test -s conftest.$ac_objext' | |
13072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13073 | (eval $ac_try) 2>&5 | |
13074 | ac_status=$? | |
13075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13076 | (exit $ac_status); }; }; then | |
13077 | ac_cv_prog_cc_g=yes | |
13078 | else | |
13079 | echo "$as_me: failed program was:" >&5 | |
13080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13081 | ||
13082 | ac_cv_prog_cc_g=no | |
13083 | fi | |
13084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13085 | fi | |
13086 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
13087 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
13088 | if test "$ac_test_CFLAGS" = set; then | |
13089 | CFLAGS=$ac_save_CFLAGS | |
13090 | elif test $ac_cv_prog_cc_g = yes; then | |
13091 | if test "$GCC" = yes; then | |
13092 | CFLAGS="-g -O2" | |
13093 | else | |
13094 | CFLAGS="-g" | |
13095 | fi | |
13096 | else | |
13097 | if test "$GCC" = yes; then | |
13098 | CFLAGS="-O2" | |
13099 | else | |
13100 | CFLAGS= | |
13101 | fi | |
13102 | fi | |
3006edc0 | 13103 | fi |
ab0ad5f1 | 13104 | fi |
3006edc0 VZ |
13105 | |
13106 | case `uname -s` in | |
13107 | AIX*) | |
13108 | ac_ext=c | |
13109 | ac_cpp='$CPP $CPPFLAGS' | |
13110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13113 | ||
13114 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
13115 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 13116 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
13117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13118 | else | |
13119 | cat >conftest.$ac_ext <<_ACEOF | |
13120 | /* confdefs.h. */ | |
13121 | _ACEOF | |
13122 | cat confdefs.h >>conftest.$ac_ext | |
13123 | cat >>conftest.$ac_ext <<_ACEOF | |
13124 | /* end confdefs.h. */ | |
13125 | ||
13126 | int | |
13127 | main () | |
13128 | { | |
13129 | #ifndef __xlC__ | |
13130 | choke me | |
13131 | #endif | |
13132 | ||
13133 | ; | |
13134 | return 0; | |
13135 | } | |
13136 | _ACEOF | |
13137 | rm -f conftest.$ac_objext | |
13138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13139 | (eval $ac_compile) 2>conftest.er1 | |
13140 | ac_status=$? | |
13141 | grep -v '^ *+' conftest.er1 >conftest.err | |
13142 | rm -f conftest.er1 | |
13143 | cat conftest.err >&5 | |
13144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13145 | (exit $ac_status); } && | |
bb9e79c0 | 13146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
13147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13148 | (eval $ac_try) 2>&5 | |
13149 | ac_status=$? | |
13150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13151 | (exit $ac_status); }; } && | |
13152 | { ac_try='test -s conftest.$ac_objext' | |
13153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13154 | (eval $ac_try) 2>&5 | |
13155 | ac_status=$? | |
13156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13157 | (exit $ac_status); }; }; then | |
0093c2fc | 13158 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
13159 | else |
13160 | echo "$as_me: failed program was:" >&5 | |
13161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13162 | ||
0093c2fc | 13163 | bakefile_compiler_xlc=no |
3006edc0 VZ |
13164 | fi |
13165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13166 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
13167 | |
13168 | fi | |
0093c2fc VZ |
13169 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
13170 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
3006edc0 | 13171 | |
0093c2fc | 13172 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
13173 | ac_ext=c |
13174 | ac_cpp='$CPP $CPPFLAGS' | |
13175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13178 | ||
13179 | ||
13180 | ;; | |
13181 | ||
13182 | Darwin) | |
13183 | ac_ext=c | |
95986553 DE |
13184 | ac_cpp='$CPP $CPPFLAGS' |
13185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13188 | ||
13189 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
13190 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
13191 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
13192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13193 | else | |
13194 | cat >conftest.$ac_ext <<_ACEOF | |
13195 | /* confdefs.h. */ | |
13196 | _ACEOF | |
13197 | cat confdefs.h >>conftest.$ac_ext | |
13198 | cat >>conftest.$ac_ext <<_ACEOF | |
13199 | /* end confdefs.h. */ | |
13200 | ||
13201 | int | |
13202 | main () | |
13203 | { | |
13204 | #ifndef __MWERKS__ | |
13205 | choke me | |
13206 | #endif | |
13207 | ||
13208 | ; | |
13209 | return 0; | |
13210 | } | |
13211 | _ACEOF | |
13212 | rm -f conftest.$ac_objext | |
13213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13214 | (eval $ac_compile) 2>conftest.er1 | |
13215 | ac_status=$? | |
13216 | grep -v '^ *+' conftest.er1 >conftest.err | |
13217 | rm -f conftest.er1 | |
13218 | cat conftest.err >&5 | |
13219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13220 | (exit $ac_status); } && | |
bb9e79c0 | 13221 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
13222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13223 | (eval $ac_try) 2>&5 | |
13224 | ac_status=$? | |
13225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13226 | (exit $ac_status); }; } && | |
13227 | { ac_try='test -s conftest.$ac_objext' | |
13228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13229 | (eval $ac_try) 2>&5 | |
13230 | ac_status=$? | |
13231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13232 | (exit $ac_status); }; }; then | |
13233 | bakefile_compiler_mwerks=yes | |
13234 | else | |
13235 | echo "$as_me: failed program was:" >&5 | |
13236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13237 | ||
13238 | bakefile_compiler_mwerks=no | |
13239 | fi | |
13240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13241 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
13242 | ||
13243 | fi | |
13244 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
13245 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
13246 | ||
0e6fa1d9 | 13247 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
13248 | ac_ext=c |
13249 | ac_cpp='$CPP $CPPFLAGS' | |
13250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13253 | ||
13254 | ||
3006edc0 | 13255 | ac_ext=c |
9273ffba DE |
13256 | ac_cpp='$CPP $CPPFLAGS' |
13257 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13258 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13259 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13260 | ||
13261 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
13262 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 13263 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
13264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13265 | else | |
13266 | cat >conftest.$ac_ext <<_ACEOF | |
13267 | /* confdefs.h. */ | |
13268 | _ACEOF | |
13269 | cat confdefs.h >>conftest.$ac_ext | |
13270 | cat >>conftest.$ac_ext <<_ACEOF | |
13271 | /* end confdefs.h. */ | |
13272 | ||
13273 | int | |
13274 | main () | |
13275 | { | |
13276 | #ifndef __xlC__ | |
13277 | choke me | |
13278 | #endif | |
13279 | ||
13280 | ; | |
13281 | return 0; | |
13282 | } | |
13283 | _ACEOF | |
13284 | rm -f conftest.$ac_objext | |
13285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13286 | (eval $ac_compile) 2>conftest.er1 | |
13287 | ac_status=$? | |
13288 | grep -v '^ *+' conftest.er1 >conftest.err | |
13289 | rm -f conftest.er1 | |
13290 | cat conftest.err >&5 | |
13291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13292 | (exit $ac_status); } && | |
bb9e79c0 | 13293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
13294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13295 | (eval $ac_try) 2>&5 | |
13296 | ac_status=$? | |
13297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13298 | (exit $ac_status); }; } && | |
13299 | { ac_try='test -s conftest.$ac_objext' | |
13300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13301 | (eval $ac_try) 2>&5 | |
13302 | ac_status=$? | |
13303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13304 | (exit $ac_status); }; }; then | |
0093c2fc | 13305 | bakefile_compiler_xlc=yes |
9273ffba DE |
13306 | else |
13307 | echo "$as_me: failed program was:" >&5 | |
13308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13309 | ||
0093c2fc | 13310 | bakefile_compiler_xlc=no |
9273ffba DE |
13311 | fi |
13312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13313 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
13314 | |
13315 | fi | |
0093c2fc VZ |
13316 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
13317 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
9273ffba | 13318 | |
0093c2fc | 13319 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
13320 | ac_ext=c |
13321 | ac_cpp='$CPP $CPPFLAGS' | |
13322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13325 | ||
13326 | ||
3006edc0 VZ |
13327 | ;; |
13328 | ||
13329 | IRIX*) | |
a848cd7e | 13330 | |
6dcfc289 | 13331 | |
0ad5d837 VZ |
13332 | ac_ext=c |
13333 | ac_cpp='$CPP $CPPFLAGS' | |
13334 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13335 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13336 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13337 | ||
13338 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
13339 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
13340 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
13341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13342 | else | |
13343 | cat >conftest.$ac_ext <<_ACEOF | |
13344 | /* confdefs.h. */ | |
13345 | _ACEOF | |
13346 | cat confdefs.h >>conftest.$ac_ext | |
13347 | cat >>conftest.$ac_ext <<_ACEOF | |
13348 | /* end confdefs.h. */ | |
13349 | ||
13350 | int | |
13351 | main () | |
13352 | { | |
13353 | ||
13354 | #ifndef _SGI_COMPILER_VERSION | |
13355 | choke me | |
13356 | #endif | |
13357 | ||
13358 | ; | |
13359 | return 0; | |
13360 | } | |
13361 | _ACEOF | |
13362 | rm -f conftest.$ac_objext | |
13363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13364 | (eval $ac_compile) 2>conftest.er1 | |
13365 | ac_status=$? | |
13366 | grep -v '^ *+' conftest.er1 >conftest.err | |
13367 | rm -f conftest.er1 | |
13368 | cat conftest.err >&5 | |
13369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13370 | (exit $ac_status); } && | |
bb9e79c0 | 13371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
13372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13373 | (eval $ac_try) 2>&5 | |
13374 | ac_status=$? | |
13375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13376 | (exit $ac_status); }; } && | |
13377 | { ac_try='test -s conftest.$ac_objext' | |
13378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13379 | (eval $ac_try) 2>&5 | |
13380 | ac_status=$? | |
13381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13382 | (exit $ac_status); }; }; then | |
13383 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
13384 | else | |
13385 | echo "$as_me: failed program was:" >&5 | |
13386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13387 | ||
13388 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
13389 | ||
13390 | fi | |
13391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13392 | ||
13393 | ||
13394 | fi | |
13395 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
13396 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
13397 | ac_ext=c | |
13398 | ac_cpp='$CPP $CPPFLAGS' | |
13399 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13400 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13401 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13402 | ||
13403 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
13404 | :; SGICC=yes | |
13405 | else | |
13406 | :; | |
13407 | fi | |
13408 | ||
13409 | ||
3006edc0 VZ |
13410 | ;; |
13411 | ||
0093c2fc | 13412 | HP-UX*) |
3006edc0 VZ |
13413 | |
13414 | ||
13415 | ac_ext=c | |
13416 | ac_cpp='$CPP $CPPFLAGS' | |
13417 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13418 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13419 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13420 | ||
0093c2fc VZ |
13421 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
13422 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
13423 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
3006edc0 VZ |
13424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13425 | else | |
13426 | cat >conftest.$ac_ext <<_ACEOF | |
13427 | /* confdefs.h. */ | |
13428 | _ACEOF | |
13429 | cat confdefs.h >>conftest.$ac_ext | |
13430 | cat >>conftest.$ac_ext <<_ACEOF | |
13431 | /* end confdefs.h. */ | |
13432 | ||
13433 | int | |
13434 | main () | |
13435 | { | |
13436 | ||
0093c2fc | 13437 | #ifndef __HP_cc |
3006edc0 VZ |
13438 | choke me |
13439 | #endif | |
13440 | ||
13441 | ; | |
13442 | return 0; | |
13443 | } | |
13444 | _ACEOF | |
13445 | rm -f conftest.$ac_objext | |
13446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13447 | (eval $ac_compile) 2>conftest.er1 | |
13448 | ac_status=$? | |
13449 | grep -v '^ *+' conftest.er1 >conftest.err | |
13450 | rm -f conftest.er1 | |
13451 | cat conftest.err >&5 | |
13452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13453 | (exit $ac_status); } && | |
bb9e79c0 | 13454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
13455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13456 | (eval $ac_try) 2>&5 | |
13457 | ac_status=$? | |
13458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13459 | (exit $ac_status); }; } && | |
13460 | { ac_try='test -s conftest.$ac_objext' | |
13461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13462 | (eval $ac_try) 2>&5 | |
13463 | ac_status=$? | |
13464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13465 | (exit $ac_status); }; }; then | |
0093c2fc | 13466 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 VZ |
13467 | else |
13468 | echo "$as_me: failed program was:" >&5 | |
13469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13470 | ||
0093c2fc | 13471 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
13472 | |
13473 | fi | |
13474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13475 | ||
13476 | ||
13477 | fi | |
0093c2fc VZ |
13478 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
13479 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
3006edc0 VZ |
13480 | ac_ext=c |
13481 | ac_cpp='$CPP $CPPFLAGS' | |
13482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13485 | ||
0093c2fc VZ |
13486 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
13487 | :; HPCC=yes | |
a1aa0349 VZ |
13488 | else |
13489 | :; | |
13490 | fi | |
13491 | ||
13492 | ||
13493 | ;; | |
13494 | ||
0093c2fc | 13495 | OSF1) |
a1aa0349 VZ |
13496 | |
13497 | ||
13498 | ac_ext=c | |
13499 | ac_cpp='$CPP $CPPFLAGS' | |
13500 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13501 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13502 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13503 | ||
0093c2fc VZ |
13504 | echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
13505 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6 | |
13506 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then | |
a1aa0349 VZ |
13507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13508 | else | |
13509 | cat >conftest.$ac_ext <<_ACEOF | |
13510 | /* confdefs.h. */ | |
13511 | _ACEOF | |
13512 | cat confdefs.h >>conftest.$ac_ext | |
13513 | cat >>conftest.$ac_ext <<_ACEOF | |
13514 | /* end confdefs.h. */ | |
13515 | ||
13516 | int | |
13517 | main () | |
13518 | { | |
13519 | ||
0093c2fc | 13520 | #ifndef __DECC |
a1aa0349 VZ |
13521 | choke me |
13522 | #endif | |
13523 | ||
13524 | ; | |
13525 | return 0; | |
13526 | } | |
13527 | _ACEOF | |
13528 | rm -f conftest.$ac_objext | |
13529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13530 | (eval $ac_compile) 2>conftest.er1 | |
13531 | ac_status=$? | |
13532 | grep -v '^ *+' conftest.er1 >conftest.err | |
13533 | rm -f conftest.er1 | |
13534 | cat conftest.err >&5 | |
13535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13536 | (exit $ac_status); } && | |
bb9e79c0 | 13537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
13538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13539 | (eval $ac_try) 2>&5 | |
13540 | ac_status=$? | |
13541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13542 | (exit $ac_status); }; } && | |
13543 | { ac_try='test -s conftest.$ac_objext' | |
13544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13545 | (eval $ac_try) 2>&5 | |
13546 | ac_status=$? | |
13547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13548 | (exit $ac_status); }; }; then | |
0093c2fc | 13549 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 VZ |
13550 | else |
13551 | echo "$as_me: failed program was:" >&5 | |
13552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13553 | ||
0093c2fc | 13554 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
13555 | |
13556 | fi | |
13557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13558 | ||
13559 | ||
13560 | fi | |
0093c2fc VZ |
13561 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
13562 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6 | |
a1aa0349 VZ |
13563 | ac_ext=c |
13564 | ac_cpp='$CPP $CPPFLAGS' | |
13565 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13566 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13567 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13568 | ||
0093c2fc VZ |
13569 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
13570 | :; COMPAQCC=yes | |
13571 | else | |
13572 | :; | |
13573 | fi | |
13574 | ||
13575 | ||
13576 | ;; | |
13577 | ||
13578 | SunOS) | |
13579 | ||
13580 | ||
13581 | ac_ext=c | |
13582 | ac_cpp='$CPP $CPPFLAGS' | |
13583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13586 | ||
13587 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
13588 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
13589 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
13590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13591 | else | |
13592 | cat >conftest.$ac_ext <<_ACEOF | |
13593 | /* confdefs.h. */ | |
13594 | _ACEOF | |
13595 | cat confdefs.h >>conftest.$ac_ext | |
13596 | cat >>conftest.$ac_ext <<_ACEOF | |
13597 | /* end confdefs.h. */ | |
13598 | ||
13599 | int | |
13600 | main () | |
13601 | { | |
13602 | ||
13603 | #ifndef __SUNPRO_C | |
13604 | choke me | |
13605 | #endif | |
13606 | ||
13607 | ; | |
13608 | return 0; | |
13609 | } | |
13610 | _ACEOF | |
13611 | rm -f conftest.$ac_objext | |
13612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13613 | (eval $ac_compile) 2>conftest.er1 | |
13614 | ac_status=$? | |
13615 | grep -v '^ *+' conftest.er1 >conftest.err | |
13616 | rm -f conftest.er1 | |
13617 | cat conftest.err >&5 | |
13618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13619 | (exit $ac_status); } && | |
bb9e79c0 | 13620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
13621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13622 | (eval $ac_try) 2>&5 | |
13623 | ac_status=$? | |
13624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13625 | (exit $ac_status); }; } && | |
13626 | { ac_try='test -s conftest.$ac_objext' | |
13627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13628 | (eval $ac_try) 2>&5 | |
13629 | ac_status=$? | |
13630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13631 | (exit $ac_status); }; }; then | |
13632 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
13633 | else | |
13634 | echo "$as_me: failed program was:" >&5 | |
13635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13636 | ||
13637 | bakefile_cv_c_compiler___SUNPRO_C=no | |
13638 | ||
13639 | fi | |
13640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13641 | ||
13642 | ||
13643 | fi | |
13644 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
13645 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
13646 | ac_ext=c | |
13647 | ac_cpp='$CPP $CPPFLAGS' | |
13648 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13649 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13650 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13651 | ||
13652 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
13653 | :; SUNCC=yes | |
3006edc0 VZ |
13654 | else |
13655 | :; | |
13656 | fi | |
13657 | ||
13658 | ||
13659 | ;; | |
13660 | esac | |
ab0ad5f1 | 13661 | fi |
a9e5b1f0 MW |
13662 | |
13663 | ||
3006edc0 | 13664 | |
a848cd7e SC |
13665 | ac_ext=c |
13666 | ac_cpp='$CPP $CPPFLAGS' | |
13667 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13668 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13669 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13670 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
13671 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
13672 | # On Suns, sometimes $CPP names a directory. | |
13673 | if test -n "$CPP" && test -d "$CPP"; then | |
13674 | CPP= | |
13675 | fi | |
13676 | if test -z "$CPP"; then | |
13677 | if test "${ac_cv_prog_CPP+set}" = set; then | |
13678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13679 | else | |
13680 | # Double quotes because CPP needs to be expanded | |
13681 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
13682 | do | |
13683 | ac_preproc_ok=false | |
13684 | for ac_c_preproc_warn_flag in '' yes | |
13685 | do | |
13686 | # Use a header file that comes with gcc, so configuring glibc | |
13687 | # with a fresh cross-compiler works. | |
13688 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13689 | # <limits.h> exists even on freestanding compilers. | |
13690 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13691 | # not just through cpp. "Syntax error" is here to catch this case. | |
13692 | cat >conftest.$ac_ext <<_ACEOF | |
13693 | /* confdefs.h. */ | |
13694 | _ACEOF | |
13695 | cat confdefs.h >>conftest.$ac_ext | |
13696 | cat >>conftest.$ac_ext <<_ACEOF | |
13697 | /* end confdefs.h. */ | |
13698 | #ifdef __STDC__ | |
13699 | # include <limits.h> | |
13700 | #else | |
13701 | # include <assert.h> | |
13702 | #endif | |
ac1cb8d3 | 13703 | Syntax error |
a848cd7e SC |
13704 | _ACEOF |
13705 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13706 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13707 | ac_status=$? | |
13708 | grep -v '^ *+' conftest.er1 >conftest.err | |
13709 | rm -f conftest.er1 | |
13710 | cat conftest.err >&5 | |
13711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13712 | (exit $ac_status); } >/dev/null; then | |
13713 | if test -s conftest.err; then | |
13714 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13715 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13716 | else |
13717 | ac_cpp_err= | |
13718 | fi | |
13719 | else | |
13720 | ac_cpp_err=yes | |
13721 | fi | |
13722 | if test -z "$ac_cpp_err"; then | |
13723 | : | |
13724 | else | |
13725 | echo "$as_me: failed program was:" >&5 | |
13726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13727 | ||
13728 | # Broken: fails on valid input. | |
13729 | continue | |
13730 | fi | |
13731 | rm -f conftest.err conftest.$ac_ext | |
13732 | ||
13733 | # OK, works on sane cases. Now check whether non-existent headers | |
13734 | # can be detected and how. | |
13735 | cat >conftest.$ac_ext <<_ACEOF | |
13736 | /* confdefs.h. */ | |
13737 | _ACEOF | |
13738 | cat confdefs.h >>conftest.$ac_ext | |
13739 | cat >>conftest.$ac_ext <<_ACEOF | |
13740 | /* end confdefs.h. */ | |
13741 | #include <ac_nonexistent.h> | |
13742 | _ACEOF | |
13743 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13744 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13745 | ac_status=$? | |
13746 | grep -v '^ *+' conftest.er1 >conftest.err | |
13747 | rm -f conftest.er1 | |
13748 | cat conftest.err >&5 | |
13749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13750 | (exit $ac_status); } >/dev/null; then | |
13751 | if test -s conftest.err; then | |
13752 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13753 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13754 | else |
13755 | ac_cpp_err= | |
13756 | fi | |
13757 | else | |
13758 | ac_cpp_err=yes | |
13759 | fi | |
13760 | if test -z "$ac_cpp_err"; then | |
13761 | # Broken: success on invalid input. | |
13762 | continue | |
13763 | else | |
13764 | echo "$as_me: failed program was:" >&5 | |
13765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13766 | ||
13767 | # Passes both tests. | |
13768 | ac_preproc_ok=: | |
13769 | break | |
13770 | fi | |
13771 | rm -f conftest.err conftest.$ac_ext | |
13772 | ||
13773 | done | |
13774 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13775 | rm -f conftest.err conftest.$ac_ext | |
13776 | if $ac_preproc_ok; then | |
13777 | break | |
13778 | fi | |
13779 | ||
13780 | done | |
13781 | ac_cv_prog_CPP=$CPP | |
13782 | ||
13783 | fi | |
13784 | CPP=$ac_cv_prog_CPP | |
13785 | else | |
13786 | ac_cv_prog_CPP=$CPP | |
13787 | fi | |
13788 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
13789 | echo "${ECHO_T}$CPP" >&6 | |
13790 | ac_preproc_ok=false | |
13791 | for ac_c_preproc_warn_flag in '' yes | |
13792 | do | |
13793 | # Use a header file that comes with gcc, so configuring glibc | |
13794 | # with a fresh cross-compiler works. | |
13795 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13796 | # <limits.h> exists even on freestanding compilers. | |
13797 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13798 | # not just through cpp. "Syntax error" is here to catch this case. | |
13799 | cat >conftest.$ac_ext <<_ACEOF | |
13800 | /* confdefs.h. */ | |
13801 | _ACEOF | |
13802 | cat confdefs.h >>conftest.$ac_ext | |
13803 | cat >>conftest.$ac_ext <<_ACEOF | |
13804 | /* end confdefs.h. */ | |
13805 | #ifdef __STDC__ | |
13806 | # include <limits.h> | |
13807 | #else | |
13808 | # include <assert.h> | |
13809 | #endif | |
ac1cb8d3 | 13810 | Syntax error |
a848cd7e SC |
13811 | _ACEOF |
13812 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13813 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13814 | ac_status=$? | |
13815 | grep -v '^ *+' conftest.er1 >conftest.err | |
13816 | rm -f conftest.er1 | |
13817 | cat conftest.err >&5 | |
13818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13819 | (exit $ac_status); } >/dev/null; then | |
13820 | if test -s conftest.err; then | |
13821 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13822 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13823 | else |
13824 | ac_cpp_err= | |
13825 | fi | |
13826 | else | |
13827 | ac_cpp_err=yes | |
13828 | fi | |
13829 | if test -z "$ac_cpp_err"; then | |
13830 | : | |
13831 | else | |
13832 | echo "$as_me: failed program was:" >&5 | |
13833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13834 | ||
13835 | # Broken: fails on valid input. | |
13836 | continue | |
13837 | fi | |
13838 | rm -f conftest.err conftest.$ac_ext | |
13839 | ||
13840 | # OK, works on sane cases. Now check whether non-existent headers | |
13841 | # can be detected and how. | |
13842 | cat >conftest.$ac_ext <<_ACEOF | |
13843 | /* confdefs.h. */ | |
13844 | _ACEOF | |
13845 | cat confdefs.h >>conftest.$ac_ext | |
13846 | cat >>conftest.$ac_ext <<_ACEOF | |
13847 | /* end confdefs.h. */ | |
13848 | #include <ac_nonexistent.h> | |
13849 | _ACEOF | |
13850 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13851 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13852 | ac_status=$? | |
13853 | grep -v '^ *+' conftest.er1 >conftest.err | |
13854 | rm -f conftest.er1 | |
13855 | cat conftest.err >&5 | |
13856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13857 | (exit $ac_status); } >/dev/null; then | |
13858 | if test -s conftest.err; then | |
13859 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13860 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13861 | else |
13862 | ac_cpp_err= | |
13863 | fi | |
13864 | else | |
13865 | ac_cpp_err=yes | |
13866 | fi | |
13867 | if test -z "$ac_cpp_err"; then | |
13868 | # Broken: success on invalid input. | |
13869 | continue | |
13870 | else | |
13871 | echo "$as_me: failed program was:" >&5 | |
13872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13873 | ||
13874 | # Passes both tests. | |
13875 | ac_preproc_ok=: | |
13876 | break | |
13877 | fi | |
13878 | rm -f conftest.err conftest.$ac_ext | |
13879 | ||
13880 | done | |
13881 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13882 | rm -f conftest.err conftest.$ac_ext | |
13883 | if $ac_preproc_ok; then | |
13884 | : | |
13885 | else | |
13886 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
13887 | See \`config.log' for more details." >&5 | |
13888 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
13889 | See \`config.log' for more details." >&2;} | |
13890 | { (exit 1); exit 1; }; } | |
13891 | fi | |
13892 | ||
13893 | ac_ext=c | |
13894 | ac_cpp='$CPP $CPPFLAGS' | |
13895 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13896 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13897 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13898 | ||
13899 | ||
13900 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
13901 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
13902 | if test "${ac_cv_prog_egrep+set}" = set; then | |
13903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13904 | else | |
13905 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
13906 | then ac_cv_prog_egrep='grep -E' | |
13907 | else ac_cv_prog_egrep='egrep' | |
13908 | fi | |
13909 | fi | |
13910 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
13911 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
13912 | EGREP=$ac_cv_prog_egrep | |
13913 | ||
13914 | ||
13915 | if test $ac_cv_c_compiler_gnu = yes; then | |
13916 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
13917 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
13918 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
13919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13920 | else | |
13921 | ac_pattern="Autoconf.*'x'" | |
13922 | cat >conftest.$ac_ext <<_ACEOF | |
13923 | /* confdefs.h. */ | |
13924 | _ACEOF | |
13925 | cat confdefs.h >>conftest.$ac_ext | |
13926 | cat >>conftest.$ac_ext <<_ACEOF | |
13927 | /* end confdefs.h. */ | |
13928 | #include <sgtty.h> | |
13929 | Autoconf TIOCGETP | |
13930 | _ACEOF | |
13931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13932 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13933 | ac_cv_prog_gcc_traditional=yes | |
13934 | else | |
13935 | ac_cv_prog_gcc_traditional=no | |
13936 | fi | |
13937 | rm -f conftest* | |
13938 | ||
13939 | ||
13940 | if test $ac_cv_prog_gcc_traditional = no; then | |
13941 | cat >conftest.$ac_ext <<_ACEOF | |
13942 | /* confdefs.h. */ | |
13943 | _ACEOF | |
13944 | cat confdefs.h >>conftest.$ac_ext | |
13945 | cat >>conftest.$ac_ext <<_ACEOF | |
13946 | /* end confdefs.h. */ | |
13947 | #include <termio.h> | |
13948 | Autoconf TCGETA | |
13949 | _ACEOF | |
13950 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13951 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13952 | ac_cv_prog_gcc_traditional=yes | |
13953 | fi | |
13954 | rm -f conftest* | |
13955 | ||
13956 | fi | |
13957 | fi | |
13958 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
13959 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
13960 | if test $ac_cv_prog_gcc_traditional = yes; then | |
13961 | CC="$CC -traditional" | |
13962 | fi | |
13963 | fi | |
13964 | ||
13965 | ||
a848cd7e SC |
13966 | ac_ext=cc |
13967 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13968 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13969 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13970 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13971 | ||
13972 | ||
13973 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
13974 | |
13975 | ||
3006edc0 | 13976 | |
6dcfc289 | 13977 | ac_ext=cc |
a848cd7e SC |
13978 | ac_cpp='$CXXCPP $CPPFLAGS' |
13979 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13980 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13981 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13982 | if test -n "$ac_tool_prefix"; then | |
13983 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13984 | do | |
13985 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13986 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
13987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13989 | if test "${ac_cv_prog_CXX+set}" = set; then | |
13990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13991 | else | |
13992 | if test -n "$CXX"; then | |
13993 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
13994 | else | |
13995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13996 | for as_dir in $PATH | |
13997 | do | |
13998 | IFS=$as_save_IFS | |
13999 | test -z "$as_dir" && as_dir=. | |
14000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14002 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
14003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14004 | break 2 | |
14005 | fi | |
14006 | done | |
14007 | done | |
14008 | ||
14009 | fi | |
14010 | fi | |
14011 | CXX=$ac_cv_prog_CXX | |
14012 | if test -n "$CXX"; then | |
14013 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
14014 | echo "${ECHO_T}$CXX" >&6 | |
14015 | else | |
14016 | echo "$as_me:$LINENO: result: no" >&5 | |
14017 | echo "${ECHO_T}no" >&6 | |
14018 | fi | |
14019 | ||
14020 | test -n "$CXX" && break | |
14021 | done | |
14022 | fi | |
14023 | if test -z "$CXX"; then | |
14024 | ac_ct_CXX=$CXX | |
14025 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
14026 | do | |
14027 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14028 | set dummy $ac_prog; ac_word=$2 | |
14029 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14031 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
14032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14033 | else | |
14034 | if test -n "$ac_ct_CXX"; then | |
14035 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
14036 | else | |
14037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14038 | for as_dir in $PATH | |
14039 | do | |
14040 | IFS=$as_save_IFS | |
14041 | test -z "$as_dir" && as_dir=. | |
14042 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14043 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14044 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
14045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14046 | break 2 | |
14047 | fi | |
14048 | done | |
14049 | done | |
14050 | ||
14051 | fi | |
14052 | fi | |
14053 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
14054 | if test -n "$ac_ct_CXX"; then | |
14055 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
14056 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
14057 | else | |
14058 | echo "$as_me:$LINENO: result: no" >&5 | |
14059 | echo "${ECHO_T}no" >&6 | |
14060 | fi | |
14061 | ||
14062 | test -n "$ac_ct_CXX" && break | |
14063 | done | |
14064 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
14065 | ||
14066 | CXX=$ac_ct_CXX | |
14067 | fi | |
14068 | ||
14069 | ||
14070 | # Provide some information about the compiler. | |
14071 | echo "$as_me:$LINENO:" \ | |
14072 | "checking for C++ compiler version" >&5 | |
14073 | ac_compiler=`set X $ac_compile; echo $2` | |
14074 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
14075 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
14076 | ac_status=$? | |
14077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14078 | (exit $ac_status); } | |
14079 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
14080 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
14081 | ac_status=$? | |
14082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14083 | (exit $ac_status); } | |
14084 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
14085 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
14086 | ac_status=$? | |
14087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14088 | (exit $ac_status); } | |
14089 | ||
14090 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
14091 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
14092 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
14093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14094 | else | |
14095 | cat >conftest.$ac_ext <<_ACEOF | |
14096 | /* confdefs.h. */ | |
14097 | _ACEOF | |
14098 | cat confdefs.h >>conftest.$ac_ext | |
14099 | cat >>conftest.$ac_ext <<_ACEOF | |
14100 | /* end confdefs.h. */ | |
14101 | ||
14102 | int | |
14103 | main () | |
14104 | { | |
14105 | #ifndef __GNUC__ | |
14106 | choke me | |
14107 | #endif | |
14108 | ||
14109 | ; | |
14110 | return 0; | |
14111 | } | |
14112 | _ACEOF | |
14113 | rm -f conftest.$ac_objext | |
14114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14115 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14116 | ac_status=$? |
ac1cb8d3 VS |
14117 | grep -v '^ *+' conftest.er1 >conftest.err |
14118 | rm -f conftest.er1 | |
14119 | cat conftest.err >&5 | |
a848cd7e SC |
14120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14121 | (exit $ac_status); } && | |
bb9e79c0 | 14122 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14124 | (eval $ac_try) 2>&5 | |
14125 | ac_status=$? | |
14126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14127 | (exit $ac_status); }; } && | |
14128 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14130 | (eval $ac_try) 2>&5 | |
14131 | ac_status=$? | |
14132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14133 | (exit $ac_status); }; }; then | |
14134 | ac_compiler_gnu=yes | |
14135 | else | |
14136 | echo "$as_me: failed program was:" >&5 | |
14137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14138 | ||
14139 | ac_compiler_gnu=no | |
14140 | fi | |
ac1cb8d3 | 14141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14142 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
14143 | ||
14144 | fi | |
14145 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
14146 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
14147 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
14148 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
14149 | ac_save_CXXFLAGS=$CXXFLAGS | |
14150 | CXXFLAGS="-g" | |
14151 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
14152 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
14153 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
14154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14155 | else | |
14156 | cat >conftest.$ac_ext <<_ACEOF | |
14157 | /* confdefs.h. */ | |
14158 | _ACEOF | |
14159 | cat confdefs.h >>conftest.$ac_ext | |
14160 | cat >>conftest.$ac_ext <<_ACEOF | |
14161 | /* end confdefs.h. */ | |
14162 | ||
14163 | int | |
14164 | main () | |
14165 | { | |
14166 | ||
14167 | ; | |
14168 | return 0; | |
14169 | } | |
14170 | _ACEOF | |
14171 | rm -f conftest.$ac_objext | |
14172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14173 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14174 | ac_status=$? |
ac1cb8d3 VS |
14175 | grep -v '^ *+' conftest.er1 >conftest.err |
14176 | rm -f conftest.er1 | |
14177 | cat conftest.err >&5 | |
a848cd7e SC |
14178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14179 | (exit $ac_status); } && | |
bb9e79c0 | 14180 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14182 | (eval $ac_try) 2>&5 | |
14183 | ac_status=$? | |
14184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14185 | (exit $ac_status); }; } && | |
14186 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14188 | (eval $ac_try) 2>&5 | |
14189 | ac_status=$? | |
14190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14191 | (exit $ac_status); }; }; then | |
14192 | ac_cv_prog_cxx_g=yes | |
14193 | else | |
14194 | echo "$as_me: failed program was:" >&5 | |
14195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14196 | ||
14197 | ac_cv_prog_cxx_g=no | |
14198 | fi | |
ac1cb8d3 | 14199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14200 | fi |
14201 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
14202 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
14203 | if test "$ac_test_CXXFLAGS" = set; then | |
14204 | CXXFLAGS=$ac_save_CXXFLAGS | |
14205 | elif test $ac_cv_prog_cxx_g = yes; then | |
14206 | if test "$GXX" = yes; then | |
15291213 | 14207 | CXXFLAGS="-g -O2" |
a848cd7e | 14208 | else |
15291213 | 14209 | CXXFLAGS="-g" |
a848cd7e SC |
14210 | fi |
14211 | else | |
14212 | if test "$GXX" = yes; then | |
14213 | CXXFLAGS="-O2" | |
14214 | else | |
14215 | CXXFLAGS= | |
14216 | fi | |
14217 | fi | |
14218 | for ac_declaration in \ | |
ac1cb8d3 | 14219 | '' \ |
a848cd7e SC |
14220 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
14221 | 'extern "C" void std::exit (int); using std::exit;' \ | |
14222 | 'extern "C" void exit (int) throw ();' \ | |
14223 | 'extern "C" void exit (int);' \ | |
14224 | 'void exit (int);' | |
14225 | do | |
14226 | cat >conftest.$ac_ext <<_ACEOF | |
14227 | /* confdefs.h. */ | |
14228 | _ACEOF | |
14229 | cat confdefs.h >>conftest.$ac_ext | |
14230 | cat >>conftest.$ac_ext <<_ACEOF | |
14231 | /* end confdefs.h. */ | |
de59c161 | 14232 | $ac_declaration |
ac1cb8d3 | 14233 | #include <stdlib.h> |
a848cd7e SC |
14234 | int |
14235 | main () | |
14236 | { | |
14237 | exit (42); | |
14238 | ; | |
14239 | return 0; | |
14240 | } | |
14241 | _ACEOF | |
14242 | rm -f conftest.$ac_objext | |
14243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14244 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14245 | ac_status=$? |
ac1cb8d3 VS |
14246 | grep -v '^ *+' conftest.er1 >conftest.err |
14247 | rm -f conftest.er1 | |
14248 | cat conftest.err >&5 | |
a848cd7e SC |
14249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14250 | (exit $ac_status); } && | |
bb9e79c0 | 14251 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14253 | (eval $ac_try) 2>&5 | |
14254 | ac_status=$? | |
14255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14256 | (exit $ac_status); }; } && | |
14257 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14259 | (eval $ac_try) 2>&5 | |
14260 | ac_status=$? | |
14261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14262 | (exit $ac_status); }; }; then | |
14263 | : | |
14264 | else | |
14265 | echo "$as_me: failed program was:" >&5 | |
14266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14267 | ||
14268 | continue | |
14269 | fi | |
ac1cb8d3 | 14270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14271 | cat >conftest.$ac_ext <<_ACEOF |
14272 | /* confdefs.h. */ | |
14273 | _ACEOF | |
14274 | cat confdefs.h >>conftest.$ac_ext | |
14275 | cat >>conftest.$ac_ext <<_ACEOF | |
14276 | /* end confdefs.h. */ | |
14277 | $ac_declaration | |
14278 | int | |
14279 | main () | |
14280 | { | |
14281 | exit (42); | |
14282 | ; | |
14283 | return 0; | |
14284 | } | |
14285 | _ACEOF | |
14286 | rm -f conftest.$ac_objext | |
14287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14288 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14289 | ac_status=$? |
ac1cb8d3 VS |
14290 | grep -v '^ *+' conftest.er1 >conftest.err |
14291 | rm -f conftest.er1 | |
14292 | cat conftest.err >&5 | |
a848cd7e SC |
14293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14294 | (exit $ac_status); } && | |
bb9e79c0 | 14295 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14297 | (eval $ac_try) 2>&5 | |
14298 | ac_status=$? | |
14299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14300 | (exit $ac_status); }; } && | |
14301 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14303 | (eval $ac_try) 2>&5 | |
14304 | ac_status=$? | |
14305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14306 | (exit $ac_status); }; }; then | |
14307 | break | |
14308 | else | |
14309 | echo "$as_me: failed program was:" >&5 | |
14310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14311 | ||
14312 | fi | |
ac1cb8d3 | 14313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14314 | done |
14315 | rm -f conftest* | |
14316 | if test -n "$ac_declaration"; then | |
14317 | echo '#ifdef __cplusplus' >>confdefs.h | |
14318 | echo $ac_declaration >>confdefs.h | |
14319 | echo '#endif' >>confdefs.h | |
14320 | fi | |
14321 | ||
14322 | ac_ext=cc | |
14323 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14324 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14325 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14326 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14327 | ||
ab0ad5f1 VZ |
14328 | |
14329 | ||
14330 | ac_ext=cc | |
14331 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14332 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14333 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14334 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14335 | ||
14336 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
14337 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
14338 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
14339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14340 | else | |
14341 | cat >conftest.$ac_ext <<_ACEOF | |
14342 | /* confdefs.h. */ | |
14343 | _ACEOF | |
14344 | cat confdefs.h >>conftest.$ac_ext | |
14345 | cat >>conftest.$ac_ext <<_ACEOF | |
14346 | /* end confdefs.h. */ | |
14347 | ||
14348 | int | |
14349 | main () | |
14350 | { | |
14351 | ||
14352 | #ifndef __INTEL_COMPILER | |
14353 | choke me | |
14354 | #endif | |
14355 | ||
14356 | ; | |
14357 | return 0; | |
14358 | } | |
14359 | _ACEOF | |
14360 | rm -f conftest.$ac_objext | |
14361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14362 | (eval $ac_compile) 2>conftest.er1 | |
14363 | ac_status=$? | |
14364 | grep -v '^ *+' conftest.er1 >conftest.err | |
14365 | rm -f conftest.er1 | |
14366 | cat conftest.err >&5 | |
14367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14368 | (exit $ac_status); } && | |
bb9e79c0 | 14369 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
14370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14371 | (eval $ac_try) 2>&5 | |
14372 | ac_status=$? | |
14373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14374 | (exit $ac_status); }; } && | |
14375 | { ac_try='test -s conftest.$ac_objext' | |
14376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14377 | (eval $ac_try) 2>&5 | |
14378 | ac_status=$? | |
14379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14380 | (exit $ac_status); }; }; then | |
14381 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
14382 | else | |
14383 | echo "$as_me: failed program was:" >&5 | |
14384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14385 | ||
14386 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
14387 | ||
14388 | fi | |
14389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14390 | ||
14391 | ||
14392 | fi | |
14393 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
14394 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
14395 | ac_ext=cc | |
14396 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14397 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14398 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14399 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14400 | ||
14401 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
14402 | :; INTELCXX=yes | |
14403 | else | |
14404 | :; | |
14405 | fi | |
14406 | ||
14407 | ||
3006edc0 VZ |
14408 | if test "x$GCXX" != "xyes"; then |
14409 | if test "xCXX" = "xC"; then | |
14410 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 14411 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 14412 | if test "${bakefile_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
14413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14414 | else | |
14415 | cat >conftest.$ac_ext <<_ACEOF | |
14416 | /* confdefs.h. */ | |
14417 | _ACEOF | |
14418 | cat confdefs.h >>conftest.$ac_ext | |
14419 | cat >>conftest.$ac_ext <<_ACEOF | |
14420 | /* end confdefs.h. */ | |
14421 | ||
14422 | int | |
14423 | main () | |
14424 | { | |
14425 | ||
14426 | ; | |
14427 | return 0; | |
14428 | } | |
14429 | _ACEOF | |
14430 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
14431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14432 | (eval $ac_compile) 2>&5 | |
14433 | ac_status=$? | |
14434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14435 | (exit $ac_status); }; then | |
14436 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
14437 | case $ac_file in | |
14438 | conftest.$ac_ext.o) | |
0093c2fc | 14439 | bakefile_cv_cxx_exto="-ext o" |
480ccd21 DE |
14440 | ;; |
14441 | *) | |
14442 | ;; | |
14443 | esac | |
14444 | done | |
14445 | else | |
14446 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
14447 | See \`config.log' for more details." >&5 | |
14448 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
14449 | See \`config.log' for more details." >&2;} | |
14450 | { (exit 1); exit 1; }; } | |
14451 | ||
14452 | fi | |
14453 | ||
14454 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
14455 | ||
14456 | fi | |
0093c2fc VZ |
14457 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5 |
14458 | echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6 | |
14459 | if test "x$bakefile_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 14460 | if test "cxx" = "c"; then |
0093c2fc | 14461 | CFLAGS="$bakefile_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
14462 | fi |
14463 | if test "cxx" = "cxx"; then | |
0093c2fc | 14464 | CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
14465 | fi |
14466 | fi | |
14467 | ||
0093c2fc | 14468 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
14469 | unset ac_cv_prog_cc_g |
14470 | ac_test_CFLAGS=${CFLAGS+set} | |
14471 | ac_save_CFLAGS=$CFLAGS | |
15291213 | 14472 | CFLAGS="-g" |
3006edc0 VZ |
14473 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
14474 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
14475 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
14476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14477 | else | |
14478 | cat >conftest.$ac_ext <<_ACEOF | |
14479 | /* confdefs.h. */ | |
14480 | _ACEOF | |
14481 | cat confdefs.h >>conftest.$ac_ext | |
14482 | cat >>conftest.$ac_ext <<_ACEOF | |
14483 | /* end confdefs.h. */ | |
14484 | ||
14485 | int | |
14486 | main () | |
14487 | { | |
14488 | ||
14489 | ; | |
14490 | return 0; | |
14491 | } | |
14492 | _ACEOF | |
14493 | rm -f conftest.$ac_objext | |
14494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14495 | (eval $ac_compile) 2>conftest.er1 | |
14496 | ac_status=$? | |
14497 | grep -v '^ *+' conftest.er1 >conftest.err | |
14498 | rm -f conftest.er1 | |
14499 | cat conftest.err >&5 | |
14500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14501 | (exit $ac_status); } && | |
bb9e79c0 | 14502 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
14503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14504 | (eval $ac_try) 2>&5 | |
14505 | ac_status=$? | |
14506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14507 | (exit $ac_status); }; } && | |
14508 | { ac_try='test -s conftest.$ac_objext' | |
14509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14510 | (eval $ac_try) 2>&5 | |
14511 | ac_status=$? | |
14512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14513 | (exit $ac_status); }; }; then | |
3006edc0 | 14514 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
14515 | else |
14516 | echo "$as_me: failed program was:" >&5 | |
14517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14518 | ||
3006edc0 | 14519 | ac_cv_prog_cc_g=no |
480ccd21 DE |
14520 | fi |
14521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14522 | fi | |
3006edc0 VZ |
14523 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
14524 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
14525 | if test "$ac_test_CFLAGS" = set; then | |
14526 | CFLAGS=$ac_save_CFLAGS | |
14527 | elif test $ac_cv_prog_cc_g = yes; then | |
14528 | if test "$GCC" = yes; then | |
14529 | CFLAGS="-g -O2" | |
480ccd21 | 14530 | else |
3006edc0 | 14531 | CFLAGS="-g" |
480ccd21 DE |
14532 | fi |
14533 | else | |
3006edc0 VZ |
14534 | if test "$GCC" = yes; then |
14535 | CFLAGS="-O2" | |
480ccd21 | 14536 | else |
3006edc0 | 14537 | CFLAGS= |
480ccd21 DE |
14538 | fi |
14539 | fi | |
3006edc0 | 14540 | fi |
ab0ad5f1 | 14541 | fi |
3006edc0 VZ |
14542 | |
14543 | case `uname -s` in | |
14544 | AIX*) | |
14545 | ac_ext=cc | |
14546 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14547 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14548 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14549 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14550 | ||
14551 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
14552 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 14553 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
14554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14555 | else | |
14556 | cat >conftest.$ac_ext <<_ACEOF | |
14557 | /* confdefs.h. */ | |
14558 | _ACEOF | |
14559 | cat confdefs.h >>conftest.$ac_ext | |
14560 | cat >>conftest.$ac_ext <<_ACEOF | |
14561 | /* end confdefs.h. */ | |
14562 | ||
14563 | int | |
14564 | main () | |
14565 | { | |
14566 | #ifndef __xlC__ | |
14567 | choke me | |
14568 | #endif | |
14569 | ||
14570 | ; | |
14571 | return 0; | |
14572 | } | |
14573 | _ACEOF | |
14574 | rm -f conftest.$ac_objext | |
14575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14576 | (eval $ac_compile) 2>conftest.er1 | |
14577 | ac_status=$? | |
14578 | grep -v '^ *+' conftest.er1 >conftest.err | |
14579 | rm -f conftest.er1 | |
14580 | cat conftest.err >&5 | |
14581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14582 | (exit $ac_status); } && | |
bb9e79c0 | 14583 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
14584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14585 | (eval $ac_try) 2>&5 | |
14586 | ac_status=$? | |
14587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14588 | (exit $ac_status); }; } && | |
14589 | { ac_try='test -s conftest.$ac_objext' | |
14590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14591 | (eval $ac_try) 2>&5 | |
14592 | ac_status=$? | |
14593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14594 | (exit $ac_status); }; }; then | |
0093c2fc | 14595 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
14596 | else |
14597 | echo "$as_me: failed program was:" >&5 | |
14598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14599 | ||
0093c2fc | 14600 | bakefile_compiler_xlc=no |
3006edc0 VZ |
14601 | fi |
14602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 14603 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
14604 | |
14605 | fi | |
0093c2fc VZ |
14606 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
14607 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 14608 | |
0093c2fc | 14609 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
14610 | ac_ext=cc |
14611 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14612 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14613 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14614 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14615 | ||
14616 | ||
14617 | ;; | |
14618 | ||
14619 | Darwin) | |
14620 | ac_ext=cc | |
95986553 DE |
14621 | ac_cpp='$CXXCPP $CPPFLAGS' |
14622 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14623 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14624 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14625 | ||
14626 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
14627 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
14628 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
14629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14630 | else | |
14631 | cat >conftest.$ac_ext <<_ACEOF | |
14632 | /* confdefs.h. */ | |
14633 | _ACEOF | |
14634 | cat confdefs.h >>conftest.$ac_ext | |
14635 | cat >>conftest.$ac_ext <<_ACEOF | |
14636 | /* end confdefs.h. */ | |
14637 | ||
14638 | int | |
14639 | main () | |
14640 | { | |
14641 | #ifndef __MWERKS__ | |
14642 | choke me | |
14643 | #endif | |
14644 | ||
14645 | ; | |
14646 | return 0; | |
14647 | } | |
14648 | _ACEOF | |
14649 | rm -f conftest.$ac_objext | |
14650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14651 | (eval $ac_compile) 2>conftest.er1 | |
14652 | ac_status=$? | |
14653 | grep -v '^ *+' conftest.er1 >conftest.err | |
14654 | rm -f conftest.er1 | |
14655 | cat conftest.err >&5 | |
14656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14657 | (exit $ac_status); } && | |
bb9e79c0 | 14658 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
14659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14660 | (eval $ac_try) 2>&5 | |
14661 | ac_status=$? | |
14662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14663 | (exit $ac_status); }; } && | |
14664 | { ac_try='test -s conftest.$ac_objext' | |
14665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14666 | (eval $ac_try) 2>&5 | |
14667 | ac_status=$? | |
14668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14669 | (exit $ac_status); }; }; then | |
14670 | bakefile_compiler_mwerks=yes | |
14671 | else | |
14672 | echo "$as_me: failed program was:" >&5 | |
14673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14674 | ||
14675 | bakefile_compiler_mwerks=no | |
14676 | fi | |
14677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14678 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
14679 | ||
14680 | fi | |
14681 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
14682 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
14683 | ||
0e6fa1d9 | 14684 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
14685 | ac_ext=cc |
14686 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14687 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14688 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14689 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14690 | ||
14691 | ||
3006edc0 | 14692 | ac_ext=cc |
9273ffba DE |
14693 | ac_cpp='$CXXCPP $CPPFLAGS' |
14694 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14695 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14696 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14697 | ||
14698 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
14699 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 14700 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
14701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14702 | else | |
14703 | cat >conftest.$ac_ext <<_ACEOF | |
14704 | /* confdefs.h. */ | |
14705 | _ACEOF | |
14706 | cat confdefs.h >>conftest.$ac_ext | |
14707 | cat >>conftest.$ac_ext <<_ACEOF | |
14708 | /* end confdefs.h. */ | |
14709 | ||
14710 | int | |
14711 | main () | |
14712 | { | |
14713 | #ifndef __xlC__ | |
14714 | choke me | |
14715 | #endif | |
14716 | ||
14717 | ; | |
14718 | return 0; | |
14719 | } | |
14720 | _ACEOF | |
14721 | rm -f conftest.$ac_objext | |
14722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14723 | (eval $ac_compile) 2>conftest.er1 | |
14724 | ac_status=$? | |
14725 | grep -v '^ *+' conftest.er1 >conftest.err | |
14726 | rm -f conftest.er1 | |
14727 | cat conftest.err >&5 | |
14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14729 | (exit $ac_status); } && | |
bb9e79c0 | 14730 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
14731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14732 | (eval $ac_try) 2>&5 | |
14733 | ac_status=$? | |
14734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14735 | (exit $ac_status); }; } && | |
14736 | { ac_try='test -s conftest.$ac_objext' | |
14737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14738 | (eval $ac_try) 2>&5 | |
14739 | ac_status=$? | |
14740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14741 | (exit $ac_status); }; }; then | |
0093c2fc | 14742 | bakefile_compiler_xlc=yes |
9273ffba DE |
14743 | else |
14744 | echo "$as_me: failed program was:" >&5 | |
14745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14746 | ||
0093c2fc | 14747 | bakefile_compiler_xlc=no |
9273ffba DE |
14748 | fi |
14749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 14750 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
14751 | |
14752 | fi | |
0093c2fc VZ |
14753 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
14754 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 14755 | |
0093c2fc | 14756 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
14757 | ac_ext=cc |
14758 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14759 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14760 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14761 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14762 | ||
14763 | ||
3006edc0 VZ |
14764 | ;; |
14765 | ||
14766 | IRIX*) | |
95986553 | 14767 | |
6dcfc289 | 14768 | |
0ad5d837 VZ |
14769 | ac_ext=cc |
14770 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14771 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14772 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14773 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14774 | ||
14775 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
14776 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
14777 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
14778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14779 | else | |
14780 | cat >conftest.$ac_ext <<_ACEOF | |
14781 | /* confdefs.h. */ | |
14782 | _ACEOF | |
14783 | cat confdefs.h >>conftest.$ac_ext | |
14784 | cat >>conftest.$ac_ext <<_ACEOF | |
14785 | /* end confdefs.h. */ | |
14786 | ||
14787 | int | |
14788 | main () | |
14789 | { | |
14790 | ||
14791 | #ifndef _SGI_COMPILER_VERSION | |
14792 | choke me | |
14793 | #endif | |
14794 | ||
14795 | ; | |
14796 | return 0; | |
14797 | } | |
14798 | _ACEOF | |
14799 | rm -f conftest.$ac_objext | |
14800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14801 | (eval $ac_compile) 2>conftest.er1 | |
14802 | ac_status=$? | |
14803 | grep -v '^ *+' conftest.er1 >conftest.err | |
14804 | rm -f conftest.er1 | |
14805 | cat conftest.err >&5 | |
14806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14807 | (exit $ac_status); } && | |
bb9e79c0 | 14808 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
14809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14810 | (eval $ac_try) 2>&5 | |
14811 | ac_status=$? | |
14812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14813 | (exit $ac_status); }; } && | |
14814 | { ac_try='test -s conftest.$ac_objext' | |
14815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14816 | (eval $ac_try) 2>&5 | |
14817 | ac_status=$? | |
14818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14819 | (exit $ac_status); }; }; then | |
14820 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
14821 | else | |
14822 | echo "$as_me: failed program was:" >&5 | |
14823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14824 | ||
14825 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
14826 | ||
14827 | fi | |
14828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14829 | ||
14830 | ||
14831 | fi | |
14832 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
14833 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
14834 | ac_ext=cc | |
14835 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14836 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14837 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14838 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14839 | ||
14840 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
14841 | :; SGICXX=yes | |
14842 | else | |
14843 | :; | |
14844 | fi | |
14845 | ||
14846 | ||
3006edc0 VZ |
14847 | ;; |
14848 | ||
0093c2fc | 14849 | HP-UX*) |
3006edc0 VZ |
14850 | |
14851 | ||
14852 | ac_ext=cc | |
14853 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14854 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14855 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14856 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14857 | ||
0093c2fc VZ |
14858 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
14859 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
14860 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
3006edc0 VZ |
14861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14862 | else | |
14863 | cat >conftest.$ac_ext <<_ACEOF | |
14864 | /* confdefs.h. */ | |
14865 | _ACEOF | |
14866 | cat confdefs.h >>conftest.$ac_ext | |
14867 | cat >>conftest.$ac_ext <<_ACEOF | |
14868 | /* end confdefs.h. */ | |
14869 | ||
14870 | int | |
14871 | main () | |
14872 | { | |
14873 | ||
0093c2fc | 14874 | #ifndef __HP_aCC |
3006edc0 VZ |
14875 | choke me |
14876 | #endif | |
14877 | ||
14878 | ; | |
14879 | return 0; | |
14880 | } | |
14881 | _ACEOF | |
14882 | rm -f conftest.$ac_objext | |
14883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14884 | (eval $ac_compile) 2>conftest.er1 | |
14885 | ac_status=$? | |
14886 | grep -v '^ *+' conftest.er1 >conftest.err | |
14887 | rm -f conftest.er1 | |
14888 | cat conftest.err >&5 | |
14889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14890 | (exit $ac_status); } && | |
bb9e79c0 | 14891 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
14892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14893 | (eval $ac_try) 2>&5 | |
14894 | ac_status=$? | |
14895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14896 | (exit $ac_status); }; } && | |
14897 | { ac_try='test -s conftest.$ac_objext' | |
14898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14899 | (eval $ac_try) 2>&5 | |
14900 | ac_status=$? | |
14901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14902 | (exit $ac_status); }; }; then | |
0093c2fc | 14903 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 VZ |
14904 | else |
14905 | echo "$as_me: failed program was:" >&5 | |
14906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14907 | ||
0093c2fc | 14908 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
14909 | |
14910 | fi | |
14911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14912 | ||
14913 | ||
14914 | fi | |
0093c2fc VZ |
14915 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
14916 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
3006edc0 VZ |
14917 | ac_ext=cc |
14918 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14919 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14920 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14921 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14922 | ||
0093c2fc VZ |
14923 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
14924 | :; HPCXX=yes | |
a1aa0349 VZ |
14925 | else |
14926 | :; | |
14927 | fi | |
14928 | ||
14929 | ||
14930 | ;; | |
14931 | ||
0093c2fc | 14932 | OSF1) |
a1aa0349 VZ |
14933 | |
14934 | ||
14935 | ac_ext=cc | |
14936 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14937 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14938 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14939 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14940 | ||
0093c2fc VZ |
14941 | echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
14942 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6 | |
14943 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then | |
a1aa0349 VZ |
14944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14945 | else | |
14946 | cat >conftest.$ac_ext <<_ACEOF | |
14947 | /* confdefs.h. */ | |
14948 | _ACEOF | |
14949 | cat confdefs.h >>conftest.$ac_ext | |
14950 | cat >>conftest.$ac_ext <<_ACEOF | |
14951 | /* end confdefs.h. */ | |
14952 | ||
14953 | int | |
14954 | main () | |
14955 | { | |
14956 | ||
0093c2fc | 14957 | #ifndef __DECCXX |
a1aa0349 VZ |
14958 | choke me |
14959 | #endif | |
14960 | ||
14961 | ; | |
14962 | return 0; | |
14963 | } | |
14964 | _ACEOF | |
14965 | rm -f conftest.$ac_objext | |
14966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14967 | (eval $ac_compile) 2>conftest.er1 | |
14968 | ac_status=$? | |
14969 | grep -v '^ *+' conftest.er1 >conftest.err | |
14970 | rm -f conftest.er1 | |
14971 | cat conftest.err >&5 | |
14972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14973 | (exit $ac_status); } && | |
bb9e79c0 | 14974 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
14975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14976 | (eval $ac_try) 2>&5 | |
14977 | ac_status=$? | |
14978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14979 | (exit $ac_status); }; } && | |
14980 | { ac_try='test -s conftest.$ac_objext' | |
14981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14982 | (eval $ac_try) 2>&5 | |
14983 | ac_status=$? | |
14984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14985 | (exit $ac_status); }; }; then | |
0093c2fc | 14986 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 VZ |
14987 | else |
14988 | echo "$as_me: failed program was:" >&5 | |
14989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14990 | ||
0093c2fc | 14991 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
14992 | |
14993 | fi | |
14994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14995 | ||
14996 | ||
14997 | fi | |
0093c2fc VZ |
14998 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
14999 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6 | |
a1aa0349 VZ |
15000 | ac_ext=cc |
15001 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15002 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15003 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15004 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15005 | ||
0093c2fc VZ |
15006 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
15007 | :; COMPAQCXX=yes | |
15008 | else | |
15009 | :; | |
15010 | fi | |
15011 | ||
15012 | ||
15013 | ;; | |
15014 | ||
15015 | SunOS) | |
15016 | ||
15017 | ||
15018 | ac_ext=cc | |
15019 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15020 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15021 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15022 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15023 | ||
15024 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
15025 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
15026 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
15027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15028 | else | |
15029 | cat >conftest.$ac_ext <<_ACEOF | |
15030 | /* confdefs.h. */ | |
15031 | _ACEOF | |
15032 | cat confdefs.h >>conftest.$ac_ext | |
15033 | cat >>conftest.$ac_ext <<_ACEOF | |
15034 | /* end confdefs.h. */ | |
15035 | ||
15036 | int | |
15037 | main () | |
15038 | { | |
15039 | ||
15040 | #ifndef __SUNPRO_CC | |
15041 | choke me | |
15042 | #endif | |
15043 | ||
15044 | ; | |
15045 | return 0; | |
15046 | } | |
15047 | _ACEOF | |
15048 | rm -f conftest.$ac_objext | |
15049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15050 | (eval $ac_compile) 2>conftest.er1 | |
15051 | ac_status=$? | |
15052 | grep -v '^ *+' conftest.er1 >conftest.err | |
15053 | rm -f conftest.er1 | |
15054 | cat conftest.err >&5 | |
15055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15056 | (exit $ac_status); } && | |
bb9e79c0 | 15057 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
15058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15059 | (eval $ac_try) 2>&5 | |
15060 | ac_status=$? | |
15061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15062 | (exit $ac_status); }; } && | |
15063 | { ac_try='test -s conftest.$ac_objext' | |
15064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15065 | (eval $ac_try) 2>&5 | |
15066 | ac_status=$? | |
15067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15068 | (exit $ac_status); }; }; then | |
15069 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
15070 | else | |
15071 | echo "$as_me: failed program was:" >&5 | |
15072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15073 | ||
15074 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
15075 | ||
15076 | fi | |
15077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15078 | ||
15079 | ||
15080 | fi | |
15081 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
15082 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
15083 | ac_ext=cc | |
15084 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15085 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15086 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15087 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15088 | ||
15089 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
15090 | :; SUNCXX=yes | |
3006edc0 VZ |
15091 | else |
15092 | :; | |
ab0ad5f1 | 15093 | fi |
a9e5b1f0 MW |
15094 | |
15095 | ||
3006edc0 VZ |
15096 | ;; |
15097 | esac | |
15098 | fi | |
15099 | ||
15100 | ||
15101 | ||
a848cd7e SC |
15102 | if test -n "$ac_tool_prefix"; then |
15103 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
15104 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
15105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15107 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
15108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15109 | else | |
15110 | if test -n "$RANLIB"; then | |
15111 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
15112 | else | |
15113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15114 | for as_dir in $PATH | |
15115 | do | |
15116 | IFS=$as_save_IFS | |
15117 | test -z "$as_dir" && as_dir=. | |
15118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15120 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
15121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15122 | break 2 | |
15123 | fi | |
15124 | done | |
15125 | done | |
15126 | ||
15127 | fi | |
15128 | fi | |
15129 | RANLIB=$ac_cv_prog_RANLIB | |
15130 | if test -n "$RANLIB"; then | |
15131 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
15132 | echo "${ECHO_T}$RANLIB" >&6 | |
15133 | else | |
15134 | echo "$as_me:$LINENO: result: no" >&5 | |
15135 | echo "${ECHO_T}no" >&6 | |
15136 | fi | |
15137 | ||
15138 | fi | |
15139 | if test -z "$ac_cv_prog_RANLIB"; then | |
15140 | ac_ct_RANLIB=$RANLIB | |
15141 | # Extract the first word of "ranlib", so it can be a program name with args. | |
15142 | set dummy ranlib; ac_word=$2 | |
15143 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15145 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
15146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15147 | else | |
15148 | if test -n "$ac_ct_RANLIB"; then | |
15149 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
15150 | else | |
15151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15152 | for as_dir in $PATH | |
15153 | do | |
15154 | IFS=$as_save_IFS | |
15155 | test -z "$as_dir" && as_dir=. | |
15156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15157 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15158 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
15159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15160 | break 2 | |
15161 | fi | |
15162 | done | |
15163 | done | |
15164 | ||
15165 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
15166 | fi | |
15167 | fi | |
15168 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
15169 | if test -n "$ac_ct_RANLIB"; then | |
15170 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
15171 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
15172 | else | |
15173 | echo "$as_me:$LINENO: result: no" >&5 | |
15174 | echo "${ECHO_T}no" >&6 | |
15175 | fi | |
15176 | ||
15177 | RANLIB=$ac_ct_RANLIB | |
15178 | else | |
15179 | RANLIB="$ac_cv_prog_RANLIB" | |
15180 | fi | |
15181 | ||
15182 | ||
8c80d384 DE |
15183 | if test -n "$ac_tool_prefix"; then |
15184 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
15185 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
15186 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15188 | if test "${ac_cv_prog_AR+set}" = set; then | |
15189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15190 | else | |
15191 | if test -n "$AR"; then | |
15192 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
15193 | else | |
15194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15195 | for as_dir in $PATH | |
15196 | do | |
15197 | IFS=$as_save_IFS | |
15198 | test -z "$as_dir" && as_dir=. | |
15199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15200 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 15201 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
15202 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15203 | break 2 | |
15204 | fi | |
15205 | done | |
15206 | done | |
15207 | ||
15208 | fi | |
15209 | fi | |
15210 | AR=$ac_cv_prog_AR | |
15211 | if test -n "$AR"; then | |
15212 | echo "$as_me:$LINENO: result: $AR" >&5 | |
15213 | echo "${ECHO_T}$AR" >&6 | |
15214 | else | |
15215 | echo "$as_me:$LINENO: result: no" >&5 | |
15216 | echo "${ECHO_T}no" >&6 | |
15217 | fi | |
15218 | ||
8c80d384 DE |
15219 | fi |
15220 | if test -z "$ac_cv_prog_AR"; then | |
15221 | ac_ct_AR=$AR | |
15222 | # Extract the first word of "ar", so it can be a program name with args. | |
15223 | set dummy ar; ac_word=$2 | |
15224 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15226 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
15227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15228 | else | |
15229 | if test -n "$ac_ct_AR"; then | |
15230 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
15231 | else | |
15232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15233 | for as_dir in $PATH | |
15234 | do | |
15235 | IFS=$as_save_IFS | |
15236 | test -z "$as_dir" && as_dir=. | |
15237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15238 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15239 | ac_cv_prog_ac_ct_AR="ar" | |
15240 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15241 | break 2 | |
15242 | fi | |
15243 | done | |
15244 | done | |
15245 | ||
15246 | fi | |
15247 | fi | |
15248 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
15249 | if test -n "$ac_ct_AR"; then | |
15250 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
15251 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
15252 | else | |
15253 | echo "$as_me:$LINENO: result: no" >&5 | |
15254 | echo "${ECHO_T}no" >&6 | |
15255 | fi | |
15256 | ||
15257 | AR=$ac_ct_AR | |
15258 | else | |
15259 | AR="$ac_cv_prog_AR" | |
15260 | fi | |
15261 | ||
a848cd7e | 15262 | if test "x$AR" = "x" ; then |
77ffb593 JS |
15263 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
15264 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
15265 | { (exit 1); exit 1; }; } |
15266 | fi | |
15267 | ||
15268 | # Find a good install program. We prefer a C program (faster), | |
15269 | # so one script is as good as another. But avoid the broken or | |
15270 | # incompatible versions: | |
15271 | # SysV /etc/install, /usr/sbin/install | |
15272 | # SunOS /usr/etc/install | |
15273 | # IRIX /sbin/install | |
15274 | # AIX /bin/install | |
15275 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
15276 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
15277 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
15278 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 15279 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
15280 | # ./install, which can be erroneously created by make from ./install.sh. |
15281 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
15282 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
15283 | if test -z "$INSTALL"; then | |
15284 | if test "${ac_cv_path_install+set}" = set; then | |
15285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15286 | else | |
15287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15288 | for as_dir in $PATH | |
15289 | do | |
15290 | IFS=$as_save_IFS | |
15291 | test -z "$as_dir" && as_dir=. | |
15292 | # Account for people who put trailing slashes in PATH elements. | |
15293 | case $as_dir/ in | |
15294 | ./ | .// | /cC/* | \ | |
15295 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 15296 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
15297 | /usr/ucb/* ) ;; |
15298 | *) | |
15299 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
15300 | # Don't use installbsd from OSF since it installs stuff as root | |
15301 | # by default. | |
15302 | for ac_prog in ginstall scoinst install; do | |
15303 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
15304 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
15305 | if test $ac_prog = install && | |
15306 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
15307 | # AIX install. It has an incompatible calling convention. | |
15308 | : | |
15309 | elif test $ac_prog = install && | |
15310 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
15311 | # program-specific install script used by HP pwplus--don't use. | |
15312 | : | |
15313 | else | |
15314 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
15315 | break 3 | |
15316 | fi | |
15317 | fi | |
a848cd7e SC |
15318 | done |
15319 | done | |
15320 | ;; | |
15321 | esac | |
15322 | done | |
15323 | ||
15324 | ||
15325 | fi | |
15326 | if test "${ac_cv_path_install+set}" = set; then | |
15327 | INSTALL=$ac_cv_path_install | |
15328 | else | |
15329 | # As a last resort, use the slow shell script. We don't cache a | |
15330 | # path for INSTALL within a source directory, because that will | |
15331 | # break other packages using the cache if that directory is | |
15332 | # removed, or if the path is relative. | |
15333 | INSTALL=$ac_install_sh | |
15334 | fi | |
15335 | fi | |
15336 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
15337 | echo "${ECHO_T}$INSTALL" >&6 | |
15338 | ||
15339 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
15340 | # It thinks the first close brace ends the variable substitution. | |
15341 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
15342 | ||
15343 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
15344 | ||
15345 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
15346 | ||
15347 | ||
15348 | case ${INSTALL} in | |
15349 | /* ) # Absolute | |
15350 | ;; | |
15351 | ?:* ) # Drive letter, considered as absolute. | |
15352 | ;; | |
15353 | *) | |
15354 | INSTALL=`pwd`/${INSTALL} ;; | |
15355 | esac | |
15356 | ||
a848cd7e SC |
15357 | |
15358 | case "${host}" in | |
15359 | ||
cfda0ea8 | 15360 | *-*-darwin* ) |
a848cd7e SC |
15361 | INSTALL_PROGRAM="cp -fp" |
15362 | INSTALL_DATA="cp -fp" | |
15363 | ;; | |
15364 | *) | |
15365 | ;; | |
15366 | esac | |
15367 | ||
8c80d384 DE |
15368 | if test -n "$ac_tool_prefix"; then |
15369 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
15370 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
15371 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15372 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15373 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
15374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15375 | else | |
15376 | if test -n "$STRIP"; then | |
15377 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
15378 | else | |
15379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15380 | for as_dir in $PATH | |
15381 | do | |
15382 | IFS=$as_save_IFS | |
15383 | test -z "$as_dir" && as_dir=. | |
15384 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15385 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 15386 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
15387 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15388 | break 2 | |
15389 | fi | |
15390 | done | |
15391 | done | |
15392 | ||
a848cd7e SC |
15393 | fi |
15394 | fi | |
15395 | STRIP=$ac_cv_prog_STRIP | |
15396 | if test -n "$STRIP"; then | |
15397 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
15398 | echo "${ECHO_T}$STRIP" >&6 | |
15399 | else | |
15400 | echo "$as_me:$LINENO: result: no" >&5 | |
15401 | echo "${ECHO_T}no" >&6 | |
15402 | fi | |
15403 | ||
8c80d384 DE |
15404 | fi |
15405 | if test -z "$ac_cv_prog_STRIP"; then | |
15406 | ac_ct_STRIP=$STRIP | |
15407 | # Extract the first word of "strip", so it can be a program name with args. | |
15408 | set dummy strip; ac_word=$2 | |
15409 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15411 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
15412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15413 | else | |
15414 | if test -n "$ac_ct_STRIP"; then | |
15415 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
15416 | else | |
15417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15418 | for as_dir in $PATH | |
15419 | do | |
15420 | IFS=$as_save_IFS | |
15421 | test -z "$as_dir" && as_dir=. | |
15422 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15423 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15424 | ac_cv_prog_ac_ct_STRIP="strip" | |
15425 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15426 | break 2 | |
15427 | fi | |
15428 | done | |
15429 | done | |
15430 | ||
15431 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
15432 | fi | |
15433 | fi | |
15434 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
15435 | if test -n "$ac_ct_STRIP"; then | |
15436 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
15437 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
15438 | else | |
15439 | echo "$as_me:$LINENO: result: no" >&5 | |
15440 | echo "${ECHO_T}no" >&6 | |
15441 | fi | |
15442 | ||
15443 | STRIP=$ac_ct_STRIP | |
15444 | else | |
15445 | STRIP="$ac_cv_prog_STRIP" | |
15446 | fi | |
15447 | ||
15448 | ||
15449 | if test "$wxUSE_WINE" = "yes"; then | |
15450 | if test -n "$ac_tool_prefix"; then | |
15451 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
15452 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
15453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 15455 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8c80d384 DE |
15456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15457 | else | |
8ced02f6 DE |
15458 | if test -n "$WINDRES"; then |
15459 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8c80d384 DE |
15460 | else |
15461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15462 | for as_dir in $PATH | |
15463 | do | |
15464 | IFS=$as_save_IFS | |
15465 | test -z "$as_dir" && as_dir=. | |
15466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15467 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 15468 | ac_cv_prog_WINDRES="${ac_tool_prefix}wrc" |
8c80d384 DE |
15469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15470 | break 2 | |
15471 | fi | |
15472 | done | |
15473 | done | |
15474 | ||
15475 | fi | |
15476 | fi | |
8ced02f6 DE |
15477 | WINDRES=$ac_cv_prog_WINDRES |
15478 | if test -n "$WINDRES"; then | |
15479 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
15480 | echo "${ECHO_T}$WINDRES" >&6 | |
8c80d384 DE |
15481 | else |
15482 | echo "$as_me:$LINENO: result: no" >&5 | |
15483 | echo "${ECHO_T}no" >&6 | |
15484 | fi | |
15485 | ||
15486 | fi | |
8ced02f6 DE |
15487 | if test -z "$ac_cv_prog_WINDRES"; then |
15488 | ac_ct_WINDRES=$WINDRES | |
8c80d384 DE |
15489 | # Extract the first word of "wrc", so it can be a program name with args. |
15490 | set dummy wrc; ac_word=$2 | |
15491 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 15493 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8c80d384 DE |
15494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15495 | else | |
8ced02f6 DE |
15496 | if test -n "$ac_ct_WINDRES"; then |
15497 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8c80d384 DE |
15498 | else |
15499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15500 | for as_dir in $PATH | |
15501 | do | |
15502 | IFS=$as_save_IFS | |
15503 | test -z "$as_dir" && as_dir=. | |
15504 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15505 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 15506 | ac_cv_prog_ac_ct_WINDRES="wrc" |
8c80d384 DE |
15507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15508 | break 2 | |
15509 | fi | |
15510 | done | |
15511 | done | |
15512 | ||
15513 | fi | |
15514 | fi | |
8ced02f6 DE |
15515 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
15516 | if test -n "$ac_ct_WINDRES"; then | |
15517 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
15518 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
8c80d384 DE |
15519 | else |
15520 | echo "$as_me:$LINENO: result: no" >&5 | |
15521 | echo "${ECHO_T}no" >&6 | |
15522 | fi | |
15523 | ||
8ced02f6 | 15524 | WINDRES=$ac_ct_WINDRES |
8c80d384 | 15525 | else |
8ced02f6 | 15526 | WINDRES="$ac_cv_prog_WINDRES" |
8c80d384 DE |
15527 | fi |
15528 | ||
004ee6da | 15529 | RESCOMP="$WINDRES" |
8c80d384 DE |
15530 | else |
15531 | case "${host}" in | |
15532 | *-*-cygwin* | *-*-mingw32* ) | |
004ee6da RL |
15533 | if test -n "$ac_tool_prefix"; then |
15534 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
15535 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
15536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15538 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
15539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15540 | else | |
15541 | if test -n "$WINDRES"; then | |
15542 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
15543 | else | |
15544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15545 | for as_dir in $PATH | |
15546 | do | |
15547 | IFS=$as_save_IFS | |
15548 | test -z "$as_dir" && as_dir=. | |
15549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15551 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
15552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15553 | break 2 | |
15554 | fi | |
15555 | done | |
15556 | done | |
15557 | ||
15558 | fi | |
15559 | fi | |
15560 | WINDRES=$ac_cv_prog_WINDRES | |
15561 | if test -n "$WINDRES"; then | |
15562 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
15563 | echo "${ECHO_T}$WINDRES" >&6 | |
15564 | else | |
15565 | echo "$as_me:$LINENO: result: no" >&5 | |
15566 | echo "${ECHO_T}no" >&6 | |
15567 | fi | |
15568 | ||
15569 | fi | |
15570 | if test -z "$ac_cv_prog_WINDRES"; then | |
15571 | ac_ct_WINDRES=$WINDRES | |
15572 | # Extract the first word of "windres", so it can be a program name with args. | |
15573 | set dummy windres; ac_word=$2 | |
15574 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15576 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
15577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15578 | else | |
15579 | if test -n "$ac_ct_WINDRES"; then | |
15580 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
15581 | else | |
15582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15583 | for as_dir in $PATH | |
15584 | do | |
15585 | IFS=$as_save_IFS | |
15586 | test -z "$as_dir" && as_dir=. | |
15587 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15588 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15589 | ac_cv_prog_ac_ct_WINDRES="windres" | |
15590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15591 | break 2 | |
15592 | fi | |
15593 | done | |
15594 | done | |
15595 | ||
15596 | fi | |
15597 | fi | |
15598 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
15599 | if test -n "$ac_ct_WINDRES"; then | |
15600 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
15601 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
15602 | else | |
15603 | echo "$as_me:$LINENO: result: no" >&5 | |
15604 | echo "${ECHO_T}no" >&6 | |
15605 | fi | |
15606 | ||
15607 | WINDRES=$ac_ct_WINDRES | |
15608 | else | |
15609 | WINDRES="$ac_cv_prog_WINDRES" | |
15610 | fi | |
15611 | ||
15612 | RESCOMP="$WINDRES" | |
15613 | if test -n "$ac_tool_prefix"; then | |
8c80d384 DE |
15614 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
15615 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
15616 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15618 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
15619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15620 | else | |
15621 | if test -n "$DLLTOOL"; then | |
15622 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
15623 | else | |
15624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15625 | for as_dir in $PATH | |
15626 | do | |
15627 | IFS=$as_save_IFS | |
15628 | test -z "$as_dir" && as_dir=. | |
15629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15630 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15631 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
15632 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15633 | break 2 | |
15634 | fi | |
15635 | done | |
15636 | done | |
15637 | ||
15638 | fi | |
15639 | fi | |
15640 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
15641 | if test -n "$DLLTOOL"; then | |
15642 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
15643 | echo "${ECHO_T}$DLLTOOL" >&6 | |
15644 | else | |
15645 | echo "$as_me:$LINENO: result: no" >&5 | |
15646 | echo "${ECHO_T}no" >&6 | |
15647 | fi | |
15648 | ||
15649 | fi | |
15650 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
15651 | ac_ct_DLLTOOL=$DLLTOOL | |
15652 | # Extract the first word of "dlltool", so it can be a program name with args. | |
15653 | set dummy dlltool; ac_word=$2 | |
15654 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15656 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
15657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15658 | else | |
15659 | if test -n "$ac_ct_DLLTOOL"; then | |
15660 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
15661 | else | |
15662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15663 | for as_dir in $PATH | |
15664 | do | |
15665 | IFS=$as_save_IFS | |
15666 | test -z "$as_dir" && as_dir=. | |
15667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15668 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15669 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
15670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15671 | break 2 | |
15672 | fi | |
15673 | done | |
15674 | done | |
15675 | ||
15676 | fi | |
15677 | fi | |
15678 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
15679 | if test -n "$ac_ct_DLLTOOL"; then | |
15680 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
15681 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
15682 | else | |
15683 | echo "$as_me:$LINENO: result: no" >&5 | |
15684 | echo "${ECHO_T}no" >&6 | |
15685 | fi | |
15686 | ||
15687 | DLLTOOL=$ac_ct_DLLTOOL | |
15688 | else | |
15689 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
15690 | fi | |
15691 | ||
15692 | ;; | |
15693 | esac | |
15694 | fi | |
a848cd7e SC |
15695 | |
15696 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
15697 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
15698 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
15699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15700 | else | |
15701 | ||
15702 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
15703 | egrep -s GNU > /dev/null); then | |
15704 | wx_cv_prog_makeisgnu="yes" | |
15705 | else | |
15706 | wx_cv_prog_makeisgnu="no" | |
15707 | fi | |
15708 | ||
15709 | fi | |
15710 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
15711 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
15712 | ||
15713 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
15714 | IF_GNU_MAKE="" | |
15715 | else | |
15716 | IF_GNU_MAKE="#" | |
15717 | fi | |
15718 | ||
15719 | ||
15720 | ||
15721 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
15722 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
15723 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
15724 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
15725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15726 | else | |
15727 | ||
15728 | cat - << EOF > confMake | |
15729 | check : file | |
15730 | cp \$? \$@ | |
15731 | cp \$? final_file | |
15732 | EOF | |
15733 | ||
15734 | if test ! -d sub ; then | |
15735 | mkdir sub | |
15736 | fi | |
15737 | echo dummy > sub/file | |
15738 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
15739 | RESULT=$? | |
15740 | rm -f sub/file check final_file confMake | |
15741 | rmdir sub | |
15742 | if test "$RESULT" = 0; then | |
15743 | wx_cv_prog_makevpath="yes" | |
15744 | else | |
15745 | wx_cv_prog_makevpath="no" | |
15746 | fi | |
15747 | ||
15748 | fi | |
15749 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
15750 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
15751 | ||
15752 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
15753 | { { echo "$as_me:$LINENO: error: | |
15754 | You need a make-utility that is able to use the variable | |
15755 | VPATH correctly. | |
15756 | If your version of make does not support VPATH correctly, | |
15757 | please install GNU-make (possibly as gmake), and start | |
15758 | configure with the following command: | |
15759 | export MAKE=gmake; ./configure for sh-type shells | |
15760 | setenv MAKE gmake; ./configure for csh-type shells | |
15761 | Also please do remember to use gmake in this case every time | |
15762 | you are trying to compile. | |
15763 | " >&5 | |
15764 | echo "$as_me: error: | |
15765 | You need a make-utility that is able to use the variable | |
15766 | VPATH correctly. | |
15767 | If your version of make does not support VPATH correctly, | |
15768 | please install GNU-make (possibly as gmake), and start | |
15769 | configure with the following command: | |
15770 | export MAKE=gmake; ./configure for sh-type shells | |
15771 | setenv MAKE gmake; ./configure for csh-type shells | |
15772 | Also please do remember to use gmake in this case every time | |
15773 | you are trying to compile. | |
15774 | " >&2;} | |
15775 | { (exit 1); exit 1; }; } | |
15776 | fi fi | |
15777 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
15778 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
15779 | LN_S=$as_ln_s | |
15780 | if test "$LN_S" = "ln -s"; then | |
15781 | echo "$as_me:$LINENO: result: yes" >&5 | |
15782 | echo "${ECHO_T}yes" >&6 | |
15783 | else | |
15784 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
15785 | echo "${ECHO_T}no, using $LN_S" >&6 | |
15786 | fi | |
15787 | ||
15788 | ||
bcaab0f9 | 15789 | |
a848cd7e | 15790 | |
2113bc77 | 15791 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
c92ad099 | 15792 | CXXFLAGS="-qunique $CXXFLAGS" |
9273ffba DE |
15793 | fi |
15794 | ||
4d7ec9f1 DE |
15795 | case "${host}" in |
15796 | powerpc-*-darwin* ) | |
15797 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
15798 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
15799 | cat >conftest.$ac_ext <<_ACEOF | |
15800 | /* confdefs.h. */ | |
15801 | _ACEOF | |
15802 | cat confdefs.h >>conftest.$ac_ext | |
15803 | cat >>conftest.$ac_ext <<_ACEOF | |
15804 | /* end confdefs.h. */ | |
15805 | ||
15806 | int | |
15807 | main () | |
15808 | { | |
15809 | #ifndef __POWERPC__ | |
15810 | choke me for lack of PowerPC | |
15811 | #endif | |
15812 | ||
15813 | ; | |
15814 | return 0; | |
15815 | } | |
15816 | _ACEOF | |
15817 | rm -f conftest.$ac_objext | |
15818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15819 | (eval $ac_compile) 2>conftest.er1 | |
15820 | ac_status=$? | |
15821 | grep -v '^ *+' conftest.er1 >conftest.err | |
15822 | rm -f conftest.er1 | |
15823 | cat conftest.err >&5 | |
15824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15825 | (exit $ac_status); } && | |
bb9e79c0 | 15826 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15828 | (eval $ac_try) 2>&5 | |
15829 | ac_status=$? | |
15830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15831 | (exit $ac_status); }; } && | |
15832 | { ac_try='test -s conftest.$ac_objext' | |
15833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15834 | (eval $ac_try) 2>&5 | |
15835 | ac_status=$? | |
15836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15837 | (exit $ac_status); }; }; then | |
15838 | echo "$as_me:$LINENO: result: yes" >&5 | |
15839 | echo "${ECHO_T}yes" >&6 | |
15840 | else | |
15841 | echo "$as_me: failed program was:" >&5 | |
15842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15843 | ||
15844 | echo "$as_me:$LINENO: result: no" >&5 | |
15845 | echo "${ECHO_T}no" >&6 | |
15846 | cat >>confdefs.h <<\_ACEOF | |
15847 | #define __POWERPC__ 1 | |
15848 | _ACEOF | |
15849 | ||
15850 | ||
15851 | fi | |
15852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
15853 | ;; |
15854 | esac | |
15855 | ||
15856 | case "${host}" in | |
15857 | *-*-darwin* ) | |
4d7ec9f1 DE |
15858 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
15859 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
15860 | cat >conftest.$ac_ext <<_ACEOF | |
15861 | /* confdefs.h. */ | |
15862 | _ACEOF | |
15863 | cat confdefs.h >>conftest.$ac_ext | |
15864 | cat >>conftest.$ac_ext <<_ACEOF | |
15865 | /* end confdefs.h. */ | |
15866 | #include <CoreFoundation/CFBase.h> | |
15867 | ||
15868 | int | |
15869 | main () | |
15870 | { | |
15871 | ||
15872 | ; | |
15873 | return 0; | |
15874 | } | |
15875 | _ACEOF | |
15876 | rm -f conftest.$ac_objext | |
15877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15878 | (eval $ac_compile) 2>conftest.er1 | |
15879 | ac_status=$? | |
15880 | grep -v '^ *+' conftest.er1 >conftest.err | |
15881 | rm -f conftest.er1 | |
15882 | cat conftest.err >&5 | |
15883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15884 | (exit $ac_status); } && | |
bb9e79c0 | 15885 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15887 | (eval $ac_try) 2>&5 | |
15888 | ac_status=$? | |
15889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15890 | (exit $ac_status); }; } && | |
15891 | { ac_try='test -s conftest.$ac_objext' | |
15892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15893 | (eval $ac_try) 2>&5 | |
15894 | ac_status=$? | |
15895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15896 | (exit $ac_status); }; }; then | |
15897 | echo "$as_me:$LINENO: result: yes" >&5 | |
15898 | echo "${ECHO_T}yes" >&6 | |
15899 | else | |
15900 | echo "$as_me: failed program was:" >&5 | |
15901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15902 | ||
15903 | echo "$as_me:$LINENO: result: no" >&5 | |
15904 | echo "${ECHO_T}no" >&6 | |
15905 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
15906 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
15907 | cat >conftest.$ac_ext <<_ACEOF | |
15908 | /* confdefs.h. */ | |
15909 | _ACEOF | |
15910 | cat confdefs.h >>conftest.$ac_ext | |
15911 | cat >>conftest.$ac_ext <<_ACEOF | |
15912 | /* end confdefs.h. */ | |
15913 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
15914 | #include <CoreFoundation/CFBase.h> | |
15915 | ||
15916 | int | |
15917 | main () | |
15918 | { | |
15919 | ||
15920 | ; | |
15921 | return 0; | |
15922 | } | |
15923 | _ACEOF | |
15924 | rm -f conftest.$ac_objext | |
15925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15926 | (eval $ac_compile) 2>conftest.er1 | |
15927 | ac_status=$? | |
15928 | grep -v '^ *+' conftest.er1 >conftest.err | |
15929 | rm -f conftest.er1 | |
15930 | cat conftest.err >&5 | |
15931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15932 | (exit $ac_status); } && | |
bb9e79c0 | 15933 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15935 | (eval $ac_try) 2>&5 | |
15936 | ac_status=$? | |
15937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15938 | (exit $ac_status); }; } && | |
15939 | { ac_try='test -s conftest.$ac_objext' | |
15940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15941 | (eval $ac_try) 2>&5 | |
15942 | ac_status=$? | |
15943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15944 | (exit $ac_status); }; }; then | |
15945 | echo "$as_me:$LINENO: result: yes" >&5 | |
15946 | echo "${ECHO_T}yes" >&6 | |
c92ad099 | 15947 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" |
4d7ec9f1 DE |
15948 | else |
15949 | echo "$as_me: failed program was:" >&5 | |
15950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15951 | ||
15952 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
15953 | See \`config.log' for more details." >&5 | |
15954 | echo "$as_me: error: no. CoreFoundation not available. | |
15955 | See \`config.log' for more details." >&2;} | |
15956 | { (exit 1); exit 1; }; } | |
15957 | ||
15958 | fi | |
15959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15960 | ||
15961 | ||
15962 | fi | |
15963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15964 | ;; | |
15965 | esac | |
15966 | ||
8bf7f1a9 VZ |
15967 | wants_win32=0 |
15968 | doesnt_want_win32=0 | |
15969 | case "${host}" in | |
15970 | *-*-cygwin*) | |
15971 | if test "$wxUSE_MSW" = 1 ; then | |
15972 | wants_win32=1 | |
15973 | else | |
15974 | echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5 | |
15975 | echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6 | |
15976 | if test "${wx_cv_nocygwin+set}" = set; then | |
15977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15978 | else | |
15979 | ||
15980 | cat >conftest.$ac_ext <<_ACEOF | |
15981 | /* confdefs.h. */ | |
15982 | _ACEOF | |
15983 | cat confdefs.h >>conftest.$ac_ext | |
15984 | cat >>conftest.$ac_ext <<_ACEOF | |
15985 | /* end confdefs.h. */ | |
15986 | ||
15987 | int | |
15988 | main () | |
15989 | { | |
15990 | ||
15991 | #ifdef __MINGW32__ | |
15992 | choke me | |
15993 | #endif | |
15994 | ||
15995 | ; | |
15996 | return 0; | |
15997 | } | |
15998 | _ACEOF | |
15999 | rm -f conftest.$ac_objext | |
16000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16001 | (eval $ac_compile) 2>conftest.er1 | |
16002 | ac_status=$? | |
16003 | grep -v '^ *+' conftest.er1 >conftest.err | |
16004 | rm -f conftest.er1 | |
16005 | cat conftest.err >&5 | |
16006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16007 | (exit $ac_status); } && | |
16008 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
16009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16010 | (eval $ac_try) 2>&5 | |
16011 | ac_status=$? | |
16012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16013 | (exit $ac_status); }; } && | |
16014 | { ac_try='test -s conftest.$ac_objext' | |
16015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16016 | (eval $ac_try) 2>&5 | |
16017 | ac_status=$? | |
16018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16019 | (exit $ac_status); }; }; then | |
16020 | wx_cv_nocygwin=no | |
16021 | else | |
16022 | echo "$as_me: failed program was:" >&5 | |
16023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16024 | ||
16025 | wx_cv_nocygwin=yes | |
16026 | ||
16027 | fi | |
16028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16029 | ||
16030 | ||
16031 | fi | |
16032 | echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5 | |
16033 | echo "${ECHO_T}$wx_cv_nocygwin" >&6 | |
16034 | ||
16035 | if test "$wx_cv_nocygwin" = "yes"; then | |
16036 | wants_win32=1 | |
16037 | else | |
16038 | doesnt_want_win32=1 | |
16039 | fi | |
16040 | fi | |
16041 | if test "$wants_win32" = 1 ; then | |
16042 | BAKEFILE_FORCE_PLATFORM=win32 | |
16043 | fi | |
16044 | ;; | |
16045 | *-*-mingw*) | |
16046 | wants_win32=1 | |
16047 | ;; | |
16048 | esac | |
16049 | ||
16050 | if test "$wxUSE_WINE" = "yes"; then | |
16051 | wants_win32=1 | |
16052 | CC=winegcc | |
16053 | CXX=wineg++ | |
16054 | LDFLAGS_GUI="-mwindows" | |
16055 | fi | |
16056 | ||
16057 | if test "$wants_win32" = 1 ; then | |
16058 | USE_UNIX=0 | |
16059 | USE_WIN32=1 | |
16060 | cat >>confdefs.h <<\_ACEOF | |
16061 | #define __WIN32__ 1 | |
16062 | _ACEOF | |
16063 | ||
16064 | cat >>confdefs.h <<\_ACEOF | |
16065 | #define __WIN95__ 1 | |
16066 | _ACEOF | |
16067 | ||
16068 | cat >>confdefs.h <<\_ACEOF | |
16069 | #define __WINDOWS__ 1 | |
16070 | _ACEOF | |
16071 | ||
16072 | cat >>confdefs.h <<\_ACEOF | |
16073 | #define __GNUWIN32__ 1 | |
16074 | _ACEOF | |
16075 | ||
16076 | cat >>confdefs.h <<\_ACEOF | |
16077 | #define STRICT 1 | |
16078 | _ACEOF | |
16079 | ||
16080 | fi | |
16081 | if test "$doesnt_want_win32" = 1 ; then | |
16082 | USE_UNIX=1 | |
16083 | USE_WIN32=0 | |
16084 | fi | |
16085 | ||
16086 | if test "$USE_UNIX" = 1 ; then | |
16087 | wxUSE_UNIX=yes | |
16088 | cat >>confdefs.h <<\_ACEOF | |
16089 | #define __UNIX__ 1 | |
16090 | _ACEOF | |
16091 | ||
16092 | fi | |
16093 | ||
a848cd7e SC |
16094 | case "${host}" in |
16095 | *-pc-os2_emx | *-pc-os2-emx ) | |
6ba87b06 SN |
16096 | ac_ext=c |
16097 | ac_cpp='$CPP $CPPFLAGS' | |
16098 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16099 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16100 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16101 | ||
16102 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
a848cd7e SC |
16103 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
16104 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
16105 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
16106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16107 | else | |
16108 | ac_check_lib_save_LIBS=$LIBS | |
16109 | LIBS="-lcExt $LIBS" | |
16110 | cat >conftest.$ac_ext <<_ACEOF | |
16111 | /* confdefs.h. */ | |
16112 | _ACEOF | |
16113 | cat confdefs.h >>conftest.$ac_ext | |
16114 | cat >>conftest.$ac_ext <<_ACEOF | |
16115 | /* end confdefs.h. */ | |
16116 | ||
16117 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16118 | #ifdef __cplusplus | |
16119 | extern "C" | |
16120 | #endif | |
16121 | /* We use char because int might match the return type of a gcc2 | |
16122 | builtin and then its argument prototype would still apply. */ | |
16123 | char drand48 (); | |
16124 | int | |
16125 | main () | |
16126 | { | |
16127 | drand48 (); | |
16128 | ; | |
16129 | return 0; | |
16130 | } | |
16131 | _ACEOF | |
16132 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 16134 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 16135 | ac_status=$? |
ac1cb8d3 VS |
16136 | grep -v '^ *+' conftest.er1 >conftest.err |
16137 | rm -f conftest.er1 | |
16138 | cat conftest.err >&5 | |
a848cd7e SC |
16139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16140 | (exit $ac_status); } && | |
bb9e79c0 | 16141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16143 | (eval $ac_try) 2>&5 | |
16144 | ac_status=$? | |
16145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16146 | (exit $ac_status); }; } && | |
16147 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
16148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16149 | (eval $ac_try) 2>&5 | |
16150 | ac_status=$? | |
16151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16152 | (exit $ac_status); }; }; then | |
16153 | ac_cv_lib_cExt_drand48=yes | |
16154 | else | |
16155 | echo "$as_me: failed program was:" >&5 | |
16156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16157 | ||
16158 | ac_cv_lib_cExt_drand48=no | |
16159 | fi | |
ac1cb8d3 VS |
16160 | rm -f conftest.err conftest.$ac_objext \ |
16161 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
16162 | LIBS=$ac_check_lib_save_LIBS |
16163 | fi | |
16164 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
16165 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
16166 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
16167 | LIBS="$LIBS -lcExt" | |
16168 | fi | |
16169 | ||
16170 | else | |
16171 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
16172 | fi | |
69120ee4 VZ |
16173 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
16174 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
16175 | if test "${wx_cv_gccversion+set}" = set; then |
16176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16177 | else | |
16178 | ||
391a765e VS |
16179 | if test "$cross_compiling" = yes; then |
16180 | wx_cv_gccversion="EMX2" | |
16181 | ||
16182 | else | |
16183 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
16184 | /* confdefs.h. */ |
16185 | _ACEOF | |
16186 | cat confdefs.h >>conftest.$ac_ext | |
16187 | cat >>conftest.$ac_ext <<_ACEOF | |
16188 | /* end confdefs.h. */ | |
16189 | ||
391a765e | 16190 | #include <stdio.h> |
a848cd7e | 16191 | |
391a765e VS |
16192 | int main() |
16193 | { | |
16194 | FILE *f=fopen("conftestval", "w"); | |
16195 | if (!f) exit(1); | |
16196 | fprintf(f, | |
a848cd7e | 16197 | #if (__GNUC__ < 3) |
391a765e VS |
16198 | "EMX2" |
16199 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
16200 | "EMX3" | |
16201 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
16202 | "Innotek5" | |
16203 | #else | |
16204 | "Innotek6" | |
a848cd7e | 16205 | #endif |
5039a2df | 16206 | ); |
391a765e VS |
16207 | exit(0); |
16208 | } | |
a848cd7e | 16209 | |
a848cd7e | 16210 | _ACEOF |
391a765e VS |
16211 | rm -f conftest$ac_exeext |
16212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16213 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
16214 | ac_status=$? |
16215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 16216 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
16217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16218 | (eval $ac_try) 2>&5 | |
16219 | ac_status=$? | |
16220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16221 | (exit $ac_status); }; }; then | |
391a765e | 16222 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 16223 | else |
391a765e VS |
16224 | echo "$as_me: program exited with status $ac_status" >&5 |
16225 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
16226 | sed 's/^/| /' conftest.$ac_ext >&5 |
16227 | ||
391a765e VS |
16228 | ( exit $ac_status ) |
16229 | wx_cv_gccversion="EMX2" | |
a848cd7e | 16230 | fi |
391a765e | 16231 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16232 | fi |
a848cd7e SC |
16233 | |
16234 | fi | |
16235 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
16236 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
6ba87b06 SN |
16237 | ac_ext=cc |
16238 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16239 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16240 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16241 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16242 | ||
391a765e | 16243 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
16244 | LIBS="$LIBS -lstdcpp" |
16245 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
16246 | else | |
391a765e | 16247 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 16248 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
16249 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
16250 | else | |
16251 | LIBS="$LIBS -lstdc++" | |
16252 | fi | |
16253 | fi | |
94acd38e DE |
16254 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
16255 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
16256 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
16257 | wxUSE_OMF=yes | |
ec3edcc9 | 16258 | enable_omf=yes |
a848cd7e SC |
16259 | fi |
16260 | ;; | |
16261 | *) | |
16262 | ||
95986553 | 16263 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
16264 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
16265 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
16266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16267 | else | |
16268 | ||
16269 | cat >conftest.$ac_ext <<_ACEOF | |
16270 | /* confdefs.h. */ | |
16271 | _ACEOF | |
16272 | cat confdefs.h >>conftest.$ac_ext | |
16273 | cat >>conftest.$ac_ext <<_ACEOF | |
16274 | /* end confdefs.h. */ | |
16275 | ||
16276 | #include <string.h> | |
16277 | ||
16278 | int | |
16279 | main () | |
16280 | { | |
16281 | ||
16282 | strcasecmp("foo", "bar"); | |
16283 | ||
16284 | ; | |
16285 | return 0; | |
16286 | } | |
16287 | _ACEOF | |
16288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 16290 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 16291 | ac_status=$? |
ac1cb8d3 VS |
16292 | grep -v '^ *+' conftest.er1 >conftest.err |
16293 | rm -f conftest.er1 | |
16294 | cat conftest.err >&5 | |
a848cd7e SC |
16295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16296 | (exit $ac_status); } && | |
bb9e79c0 | 16297 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16299 | (eval $ac_try) 2>&5 | |
16300 | ac_status=$? | |
16301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16302 | (exit $ac_status); }; } && | |
16303 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
16304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16305 | (eval $ac_try) 2>&5 | |
16306 | ac_status=$? | |
16307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16308 | (exit $ac_status); }; }; then | |
16309 | ac_cv_string_strcasecmp=yes | |
16310 | else | |
16311 | echo "$as_me: failed program was:" >&5 | |
16312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16313 | ||
16314 | ac_cv_string_strcasecmp=no | |
16315 | ||
16316 | fi | |
ac1cb8d3 VS |
16317 | rm -f conftest.err conftest.$ac_objext \ |
16318 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
16319 | |
16320 | fi | |
16321 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
16322 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
16323 | ||
16324 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
16325 | cat >>confdefs.h <<\_ACEOF | |
16326 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
16327 | _ACEOF | |
16328 | ||
16329 | else | |
16330 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
16331 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
16332 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
16333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16334 | else | |
16335 | ||
16336 | cat >conftest.$ac_ext <<_ACEOF | |
16337 | /* confdefs.h. */ | |
16338 | _ACEOF | |
16339 | cat confdefs.h >>conftest.$ac_ext | |
16340 | cat >>conftest.$ac_ext <<_ACEOF | |
16341 | /* end confdefs.h. */ | |
16342 | ||
16343 | #include <strings.h> | |
16344 | ||
16345 | int | |
16346 | main () | |
16347 | { | |
16348 | ||
16349 | strcasecmp("foo", "bar"); | |
16350 | ||
16351 | ; | |
16352 | return 0; | |
16353 | } | |
16354 | _ACEOF | |
16355 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 16357 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 16358 | ac_status=$? |
ac1cb8d3 VS |
16359 | grep -v '^ *+' conftest.er1 >conftest.err |
16360 | rm -f conftest.er1 | |
16361 | cat conftest.err >&5 | |
a848cd7e SC |
16362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16363 | (exit $ac_status); } && | |
bb9e79c0 | 16364 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16366 | (eval $ac_try) 2>&5 | |
16367 | ac_status=$? | |
16368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16369 | (exit $ac_status); }; } && | |
16370 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
16371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16372 | (eval $ac_try) 2>&5 | |
16373 | ac_status=$? | |
16374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16375 | (exit $ac_status); }; }; then | |
16376 | ac_cv_strings_strcasecmp=yes | |
16377 | else | |
16378 | echo "$as_me: failed program was:" >&5 | |
16379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16380 | ||
16381 | ac_cv_strings_strcasecmp=no | |
16382 | ||
16383 | fi | |
ac1cb8d3 VS |
16384 | rm -f conftest.err conftest.$ac_objext \ |
16385 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
16386 | |
16387 | fi | |
16388 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
16389 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
16390 | ||
0c3c69fc | 16391 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
16392 | cat >>confdefs.h <<\_ACEOF |
16393 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
16394 | _ACEOF | |
16395 | ||
16396 | else | |
16397 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
16398 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
16399 | { (exit 1); exit 1; }; } | |
16400 | fi | |
16401 | fi | |
16402 | ||
a848cd7e SC |
16403 | ;; |
16404 | esac | |
16405 | ||
16406 | ||
5d7b7554 VZ |
16407 | ac_ext=cc |
16408 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16409 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16410 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16411 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16412 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
16413 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
16414 | if test -z "$CXXCPP"; then | |
16415 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
16416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16417 | else | |
16418 | # Double quotes because CXXCPP needs to be expanded | |
16419 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
16420 | do | |
16421 | ac_preproc_ok=false | |
16422 | for ac_cxx_preproc_warn_flag in '' yes | |
16423 | do | |
16424 | # Use a header file that comes with gcc, so configuring glibc | |
16425 | # with a fresh cross-compiler works. | |
16426 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16427 | # <limits.h> exists even on freestanding compilers. | |
16428 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16429 | # not just through cpp. "Syntax error" is here to catch this case. | |
16430 | cat >conftest.$ac_ext <<_ACEOF | |
16431 | /* confdefs.h. */ | |
16432 | _ACEOF | |
16433 | cat confdefs.h >>conftest.$ac_ext | |
16434 | cat >>conftest.$ac_ext <<_ACEOF | |
16435 | /* end confdefs.h. */ | |
16436 | #ifdef __STDC__ | |
16437 | # include <limits.h> | |
16438 | #else | |
16439 | # include <assert.h> | |
16440 | #endif | |
16441 | Syntax error | |
16442 | _ACEOF | |
16443 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16444 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16445 | ac_status=$? | |
16446 | grep -v '^ *+' conftest.er1 >conftest.err | |
16447 | rm -f conftest.er1 | |
16448 | cat conftest.err >&5 | |
16449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16450 | (exit $ac_status); } >/dev/null; then | |
16451 | if test -s conftest.err; then | |
16452 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16453 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
16454 | else | |
16455 | ac_cpp_err= | |
16456 | fi | |
16457 | else | |
16458 | ac_cpp_err=yes | |
16459 | fi | |
16460 | if test -z "$ac_cpp_err"; then | |
16461 | : | |
16462 | else | |
16463 | echo "$as_me: failed program was:" >&5 | |
16464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16465 | ||
16466 | # Broken: fails on valid input. | |
16467 | continue | |
16468 | fi | |
16469 | rm -f conftest.err conftest.$ac_ext | |
16470 | ||
16471 | # OK, works on sane cases. Now check whether non-existent headers | |
16472 | # can be detected and how. | |
16473 | cat >conftest.$ac_ext <<_ACEOF | |
16474 | /* confdefs.h. */ | |
16475 | _ACEOF | |
16476 | cat confdefs.h >>conftest.$ac_ext | |
16477 | cat >>conftest.$ac_ext <<_ACEOF | |
16478 | /* end confdefs.h. */ | |
16479 | #include <ac_nonexistent.h> | |
16480 | _ACEOF | |
16481 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16483 | ac_status=$? | |
16484 | grep -v '^ *+' conftest.er1 >conftest.err | |
16485 | rm -f conftest.er1 | |
16486 | cat conftest.err >&5 | |
16487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16488 | (exit $ac_status); } >/dev/null; then | |
16489 | if test -s conftest.err; then | |
16490 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16491 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
16492 | else | |
16493 | ac_cpp_err= | |
16494 | fi | |
16495 | else | |
16496 | ac_cpp_err=yes | |
16497 | fi | |
16498 | if test -z "$ac_cpp_err"; then | |
16499 | # Broken: success on invalid input. | |
16500 | continue | |
16501 | else | |
16502 | echo "$as_me: failed program was:" >&5 | |
16503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16504 | ||
16505 | # Passes both tests. | |
16506 | ac_preproc_ok=: | |
16507 | break | |
16508 | fi | |
16509 | rm -f conftest.err conftest.$ac_ext | |
16510 | ||
16511 | done | |
16512 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16513 | rm -f conftest.err conftest.$ac_ext | |
16514 | if $ac_preproc_ok; then | |
16515 | break | |
16516 | fi | |
16517 | ||
16518 | done | |
16519 | ac_cv_prog_CXXCPP=$CXXCPP | |
16520 | ||
16521 | fi | |
16522 | CXXCPP=$ac_cv_prog_CXXCPP | |
16523 | else | |
16524 | ac_cv_prog_CXXCPP=$CXXCPP | |
16525 | fi | |
16526 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
16527 | echo "${ECHO_T}$CXXCPP" >&6 | |
16528 | ac_preproc_ok=false | |
16529 | for ac_cxx_preproc_warn_flag in '' yes | |
16530 | do | |
16531 | # Use a header file that comes with gcc, so configuring glibc | |
16532 | # with a fresh cross-compiler works. | |
16533 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16534 | # <limits.h> exists even on freestanding compilers. | |
16535 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16536 | # not just through cpp. "Syntax error" is here to catch this case. | |
16537 | cat >conftest.$ac_ext <<_ACEOF | |
16538 | /* confdefs.h. */ | |
16539 | _ACEOF | |
16540 | cat confdefs.h >>conftest.$ac_ext | |
16541 | cat >>conftest.$ac_ext <<_ACEOF | |
16542 | /* end confdefs.h. */ | |
16543 | #ifdef __STDC__ | |
16544 | # include <limits.h> | |
16545 | #else | |
16546 | # include <assert.h> | |
16547 | #endif | |
16548 | Syntax error | |
16549 | _ACEOF | |
16550 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16551 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16552 | ac_status=$? | |
16553 | grep -v '^ *+' conftest.er1 >conftest.err | |
16554 | rm -f conftest.er1 | |
16555 | cat conftest.err >&5 | |
16556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16557 | (exit $ac_status); } >/dev/null; then | |
16558 | if test -s conftest.err; then | |
16559 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16560 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
16561 | else | |
16562 | ac_cpp_err= | |
16563 | fi | |
16564 | else | |
16565 | ac_cpp_err=yes | |
16566 | fi | |
16567 | if test -z "$ac_cpp_err"; then | |
16568 | : | |
16569 | else | |
16570 | echo "$as_me: failed program was:" >&5 | |
16571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16572 | ||
16573 | # Broken: fails on valid input. | |
16574 | continue | |
16575 | fi | |
16576 | rm -f conftest.err conftest.$ac_ext | |
16577 | ||
16578 | # OK, works on sane cases. Now check whether non-existent headers | |
16579 | # can be detected and how. | |
16580 | cat >conftest.$ac_ext <<_ACEOF | |
16581 | /* confdefs.h. */ | |
16582 | _ACEOF | |
16583 | cat confdefs.h >>conftest.$ac_ext | |
16584 | cat >>conftest.$ac_ext <<_ACEOF | |
16585 | /* end confdefs.h. */ | |
16586 | #include <ac_nonexistent.h> | |
16587 | _ACEOF | |
16588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16590 | ac_status=$? | |
16591 | grep -v '^ *+' conftest.er1 >conftest.err | |
16592 | rm -f conftest.er1 | |
16593 | cat conftest.err >&5 | |
16594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16595 | (exit $ac_status); } >/dev/null; then | |
16596 | if test -s conftest.err; then | |
16597 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16598 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
16599 | else | |
16600 | ac_cpp_err= | |
16601 | fi | |
16602 | else | |
16603 | ac_cpp_err=yes | |
16604 | fi | |
16605 | if test -z "$ac_cpp_err"; then | |
16606 | # Broken: success on invalid input. | |
16607 | continue | |
16608 | else | |
16609 | echo "$as_me: failed program was:" >&5 | |
16610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16611 | ||
16612 | # Passes both tests. | |
16613 | ac_preproc_ok=: | |
16614 | break | |
16615 | fi | |
16616 | rm -f conftest.err conftest.$ac_ext | |
16617 | ||
16618 | done | |
16619 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16620 | rm -f conftest.err conftest.$ac_ext | |
16621 | if $ac_preproc_ok; then | |
16622 | : | |
16623 | else | |
16624 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
16625 | See \`config.log' for more details." >&5 | |
16626 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
16627 | See \`config.log' for more details." >&2;} | |
16628 | { (exit 1); exit 1; }; } | |
16629 | fi | |
16630 | ||
16631 | ac_ext=cc | |
16632 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16633 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16634 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16635 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16636 | ||
16637 | ||
a848cd7e SC |
16638 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
16639 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
16640 | if test "${ac_cv_header_stdc+set}" = set; then | |
16641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16642 | else | |
16643 | cat >conftest.$ac_ext <<_ACEOF | |
16644 | /* confdefs.h. */ | |
16645 | _ACEOF | |
16646 | cat confdefs.h >>conftest.$ac_ext | |
16647 | cat >>conftest.$ac_ext <<_ACEOF | |
16648 | /* end confdefs.h. */ | |
16649 | #include <stdlib.h> | |
16650 | #include <stdarg.h> | |
16651 | #include <string.h> | |
16652 | #include <float.h> | |
16653 | ||
16654 | int | |
16655 | main () | |
16656 | { | |
16657 | ||
16658 | ; | |
16659 | return 0; | |
16660 | } | |
16661 | _ACEOF | |
16662 | rm -f conftest.$ac_objext | |
16663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16664 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16665 | ac_status=$? |
ac1cb8d3 VS |
16666 | grep -v '^ *+' conftest.er1 >conftest.err |
16667 | rm -f conftest.er1 | |
16668 | cat conftest.err >&5 | |
a848cd7e SC |
16669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16670 | (exit $ac_status); } && | |
bb9e79c0 | 16671 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16673 | (eval $ac_try) 2>&5 | |
16674 | ac_status=$? | |
16675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16676 | (exit $ac_status); }; } && | |
16677 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16679 | (eval $ac_try) 2>&5 | |
16680 | ac_status=$? | |
16681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16682 | (exit $ac_status); }; }; then | |
16683 | ac_cv_header_stdc=yes | |
16684 | else | |
16685 | echo "$as_me: failed program was:" >&5 | |
16686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16687 | ||
16688 | ac_cv_header_stdc=no | |
16689 | fi | |
ac1cb8d3 | 16690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16691 | |
16692 | if test $ac_cv_header_stdc = yes; then | |
16693 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16694 | cat >conftest.$ac_ext <<_ACEOF | |
16695 | /* confdefs.h. */ | |
16696 | _ACEOF | |
16697 | cat confdefs.h >>conftest.$ac_ext | |
16698 | cat >>conftest.$ac_ext <<_ACEOF | |
16699 | /* end confdefs.h. */ | |
16700 | #include <string.h> | |
16701 | ||
16702 | _ACEOF | |
16703 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16704 | $EGREP "memchr" >/dev/null 2>&1; then | |
16705 | : | |
16706 | else | |
16707 | ac_cv_header_stdc=no | |
16708 | fi | |
16709 | rm -f conftest* | |
16710 | ||
16711 | fi | |
16712 | ||
16713 | if test $ac_cv_header_stdc = yes; then | |
16714 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16715 | cat >conftest.$ac_ext <<_ACEOF | |
16716 | /* confdefs.h. */ | |
16717 | _ACEOF | |
16718 | cat confdefs.h >>conftest.$ac_ext | |
16719 | cat >>conftest.$ac_ext <<_ACEOF | |
16720 | /* end confdefs.h. */ | |
16721 | #include <stdlib.h> | |
16722 | ||
16723 | _ACEOF | |
16724 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16725 | $EGREP "free" >/dev/null 2>&1; then | |
16726 | : | |
16727 | else | |
16728 | ac_cv_header_stdc=no | |
16729 | fi | |
16730 | rm -f conftest* | |
16731 | ||
16732 | fi | |
16733 | ||
16734 | if test $ac_cv_header_stdc = yes; then | |
16735 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16736 | if test "$cross_compiling" = yes; then | |
16737 | : | |
16738 | else | |
16739 | cat >conftest.$ac_ext <<_ACEOF | |
16740 | /* confdefs.h. */ | |
16741 | _ACEOF | |
16742 | cat confdefs.h >>conftest.$ac_ext | |
16743 | cat >>conftest.$ac_ext <<_ACEOF | |
16744 | /* end confdefs.h. */ | |
16745 | #include <ctype.h> | |
16746 | #if ((' ' & 0x0FF) == 0x020) | |
16747 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16748 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16749 | #else | |
16750 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
16751 | (('a' <= (c) && (c) <= 'i') \ |
16752 | || ('j' <= (c) && (c) <= 'r') \ | |
16753 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
16754 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
16755 | #endif | |
16756 | ||
16757 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16758 | int | |
16759 | main () | |
16760 | { | |
16761 | int i; | |
16762 | for (i = 0; i < 256; i++) | |
16763 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 16764 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
16765 | exit(2); |
16766 | exit (0); | |
16767 | } | |
16768 | _ACEOF | |
16769 | rm -f conftest$ac_exeext | |
16770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16771 | (eval $ac_link) 2>&5 | |
16772 | ac_status=$? | |
16773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16774 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16776 | (eval $ac_try) 2>&5 | |
16777 | ac_status=$? | |
16778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16779 | (exit $ac_status); }; }; then | |
16780 | : | |
16781 | else | |
16782 | echo "$as_me: program exited with status $ac_status" >&5 | |
16783 | echo "$as_me: failed program was:" >&5 | |
16784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16785 | ||
16786 | ( exit $ac_status ) | |
16787 | ac_cv_header_stdc=no | |
16788 | fi | |
ac1cb8d3 | 16789 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16790 | fi |
16791 | fi | |
16792 | fi | |
16793 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
16794 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
16795 | if test $ac_cv_header_stdc = yes; then | |
16796 | ||
16797 | cat >>confdefs.h <<\_ACEOF | |
16798 | #define STDC_HEADERS 1 | |
16799 | _ACEOF | |
16800 | ||
16801 | fi | |
16802 | ||
16803 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
16804 | ||
16805 | ||
16806 | ||
16807 | ||
16808 | ||
16809 | ||
16810 | ||
16811 | ||
16812 | ||
16813 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 16814 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
16815 | do |
16816 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16817 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16818 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16819 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16821 | else | |
16822 | cat >conftest.$ac_ext <<_ACEOF | |
16823 | /* confdefs.h. */ | |
16824 | _ACEOF | |
16825 | cat confdefs.h >>conftest.$ac_ext | |
16826 | cat >>conftest.$ac_ext <<_ACEOF | |
16827 | /* end confdefs.h. */ | |
16828 | $ac_includes_default | |
16829 | ||
16830 | #include <$ac_header> | |
16831 | _ACEOF | |
16832 | rm -f conftest.$ac_objext | |
16833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16834 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16835 | ac_status=$? |
ac1cb8d3 VS |
16836 | grep -v '^ *+' conftest.er1 >conftest.err |
16837 | rm -f conftest.er1 | |
16838 | cat conftest.err >&5 | |
a848cd7e SC |
16839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16840 | (exit $ac_status); } && | |
bb9e79c0 | 16841 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16843 | (eval $ac_try) 2>&5 | |
16844 | ac_status=$? | |
16845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16846 | (exit $ac_status); }; } && | |
16847 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16849 | (eval $ac_try) 2>&5 | |
16850 | ac_status=$? | |
16851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16852 | (exit $ac_status); }; }; then | |
16853 | eval "$as_ac_Header=yes" | |
16854 | else | |
16855 | echo "$as_me: failed program was:" >&5 | |
16856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16857 | ||
16858 | eval "$as_ac_Header=no" | |
16859 | fi | |
ac1cb8d3 | 16860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16861 | fi |
16862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16863 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16864 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16865 | cat >>confdefs.h <<_ACEOF | |
16866 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16867 | _ACEOF | |
16868 | ||
16869 | fi | |
16870 | ||
16871 | done | |
16872 | ||
16873 | ||
16874 | ||
16875 | for ac_header in stdlib.h | |
16876 | do | |
16877 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16878 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16879 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16880 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16881 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16883 | fi | |
16884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16885 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16886 | else | |
16887 | # Is the header compilable? | |
16888 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16889 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16890 | cat >conftest.$ac_ext <<_ACEOF | |
16891 | /* confdefs.h. */ | |
16892 | _ACEOF | |
16893 | cat confdefs.h >>conftest.$ac_ext | |
16894 | cat >>conftest.$ac_ext <<_ACEOF | |
16895 | /* end confdefs.h. */ | |
16896 | $ac_includes_default | |
16897 | #include <$ac_header> | |
16898 | _ACEOF | |
16899 | rm -f conftest.$ac_objext | |
16900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16901 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16902 | ac_status=$? |
ac1cb8d3 VS |
16903 | grep -v '^ *+' conftest.er1 >conftest.err |
16904 | rm -f conftest.er1 | |
16905 | cat conftest.err >&5 | |
a848cd7e SC |
16906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16907 | (exit $ac_status); } && | |
bb9e79c0 | 16908 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16910 | (eval $ac_try) 2>&5 | |
16911 | ac_status=$? | |
16912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16913 | (exit $ac_status); }; } && | |
16914 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16916 | (eval $ac_try) 2>&5 | |
16917 | ac_status=$? | |
16918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16919 | (exit $ac_status); }; }; then | |
16920 | ac_header_compiler=yes | |
16921 | else | |
16922 | echo "$as_me: failed program was:" >&5 | |
16923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16924 | ||
16925 | ac_header_compiler=no | |
16926 | fi | |
ac1cb8d3 | 16927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16928 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16929 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16930 | ||
16931 | # Is the header present? | |
16932 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16933 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16934 | cat >conftest.$ac_ext <<_ACEOF | |
16935 | /* confdefs.h. */ | |
16936 | _ACEOF | |
16937 | cat confdefs.h >>conftest.$ac_ext | |
16938 | cat >>conftest.$ac_ext <<_ACEOF | |
16939 | /* end confdefs.h. */ | |
16940 | #include <$ac_header> | |
16941 | _ACEOF | |
16942 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16943 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16944 | ac_status=$? | |
16945 | grep -v '^ *+' conftest.er1 >conftest.err | |
16946 | rm -f conftest.er1 | |
16947 | cat conftest.err >&5 | |
16948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16949 | (exit $ac_status); } >/dev/null; then | |
16950 | if test -s conftest.err; then | |
5d7b7554 VZ |
16951 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16952 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16953 | else |
16954 | ac_cpp_err= | |
16955 | fi | |
16956 | else | |
16957 | ac_cpp_err=yes | |
16958 | fi | |
16959 | if test -z "$ac_cpp_err"; then | |
16960 | ac_header_preproc=yes | |
16961 | else | |
16962 | echo "$as_me: failed program was:" >&5 | |
16963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16964 | ||
16965 | ac_header_preproc=no | |
16966 | fi | |
16967 | rm -f conftest.err conftest.$ac_ext | |
16968 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16969 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16970 | ||
16971 | # So? What about this header? | |
5d7b7554 | 16972 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16973 | yes:no: ) |
a848cd7e SC |
16974 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16975 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16976 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16977 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16978 | ac_header_preproc=yes | |
a848cd7e | 16979 | ;; |
ac1cb8d3 | 16980 | no:yes:* ) |
a848cd7e SC |
16981 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16982 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16983 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16984 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16985 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16986 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16987 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16988 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16989 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16990 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16991 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16992 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16993 | ( |
16994 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16995 | ## ----------------------------------------- ## |
16996 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16997 | ## ----------------------------------------- ## | |
a848cd7e SC |
16998 | _ASBOX |
16999 | ) | | |
17000 | sed "s/^/$as_me: WARNING: /" >&2 | |
17001 | ;; | |
17002 | esac | |
17003 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17004 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17005 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17007 | else | |
ac1cb8d3 | 17008 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17009 | fi |
17010 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17011 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17012 | ||
17013 | fi | |
17014 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17015 | cat >>confdefs.h <<_ACEOF | |
17016 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17017 | _ACEOF | |
17018 | ||
17019 | fi | |
17020 | ||
17021 | done | |
17022 | ||
17023 | ||
17024 | for ac_header in malloc.h | |
17025 | do | |
17026 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17027 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17028 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17029 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17030 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17032 | fi | |
17033 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17034 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17035 | else | |
17036 | # Is the header compilable? | |
17037 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17038 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17039 | cat >conftest.$ac_ext <<_ACEOF | |
17040 | /* confdefs.h. */ | |
17041 | _ACEOF | |
17042 | cat confdefs.h >>conftest.$ac_ext | |
17043 | cat >>conftest.$ac_ext <<_ACEOF | |
17044 | /* end confdefs.h. */ | |
17045 | $ac_includes_default | |
17046 | #include <$ac_header> | |
17047 | _ACEOF | |
17048 | rm -f conftest.$ac_objext | |
17049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17050 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17051 | ac_status=$? |
ac1cb8d3 VS |
17052 | grep -v '^ *+' conftest.er1 >conftest.err |
17053 | rm -f conftest.er1 | |
17054 | cat conftest.err >&5 | |
a848cd7e SC |
17055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17056 | (exit $ac_status); } && | |
bb9e79c0 | 17057 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17059 | (eval $ac_try) 2>&5 | |
17060 | ac_status=$? | |
17061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17062 | (exit $ac_status); }; } && | |
17063 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17065 | (eval $ac_try) 2>&5 | |
17066 | ac_status=$? | |
17067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17068 | (exit $ac_status); }; }; then | |
17069 | ac_header_compiler=yes | |
17070 | else | |
17071 | echo "$as_me: failed program was:" >&5 | |
17072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17073 | ||
17074 | ac_header_compiler=no | |
17075 | fi | |
ac1cb8d3 | 17076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17077 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17078 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17079 | ||
17080 | # Is the header present? | |
17081 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17082 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17083 | cat >conftest.$ac_ext <<_ACEOF | |
17084 | /* confdefs.h. */ | |
17085 | _ACEOF | |
17086 | cat confdefs.h >>conftest.$ac_ext | |
17087 | cat >>conftest.$ac_ext <<_ACEOF | |
17088 | /* end confdefs.h. */ | |
17089 | #include <$ac_header> | |
17090 | _ACEOF | |
17091 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17092 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17093 | ac_status=$? | |
17094 | grep -v '^ *+' conftest.er1 >conftest.err | |
17095 | rm -f conftest.er1 | |
17096 | cat conftest.err >&5 | |
17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17098 | (exit $ac_status); } >/dev/null; then | |
17099 | if test -s conftest.err; then | |
5d7b7554 VZ |
17100 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17101 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17102 | else |
17103 | ac_cpp_err= | |
17104 | fi | |
17105 | else | |
17106 | ac_cpp_err=yes | |
17107 | fi | |
17108 | if test -z "$ac_cpp_err"; then | |
17109 | ac_header_preproc=yes | |
17110 | else | |
17111 | echo "$as_me: failed program was:" >&5 | |
17112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17113 | ||
17114 | ac_header_preproc=no | |
17115 | fi | |
17116 | rm -f conftest.err conftest.$ac_ext | |
17117 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17118 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17119 | ||
17120 | # So? What about this header? | |
5d7b7554 | 17121 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17122 | yes:no: ) |
a848cd7e SC |
17123 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17124 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17125 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17126 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17127 | ac_header_preproc=yes | |
a848cd7e | 17128 | ;; |
ac1cb8d3 | 17129 | no:yes:* ) |
a848cd7e SC |
17130 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17131 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17132 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17133 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17134 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17135 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17136 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17137 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17138 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17139 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17140 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17141 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17142 | ( |
17143 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17144 | ## ----------------------------------------- ## |
17145 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17146 | ## ----------------------------------------- ## | |
a848cd7e SC |
17147 | _ASBOX |
17148 | ) | | |
17149 | sed "s/^/$as_me: WARNING: /" >&2 | |
17150 | ;; | |
17151 | esac | |
17152 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17153 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17154 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17156 | else | |
ac1cb8d3 | 17157 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17158 | fi |
17159 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17160 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17161 | ||
17162 | fi | |
17163 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17164 | cat >>confdefs.h <<_ACEOF | |
17165 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17166 | _ACEOF | |
17167 | ||
17168 | fi | |
17169 | ||
17170 | done | |
17171 | ||
17172 | ||
17173 | for ac_header in unistd.h | |
17174 | do | |
17175 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17176 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17177 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17178 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17181 | fi | |
17182 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17183 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17184 | else | |
17185 | # Is the header compilable? | |
17186 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17187 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17188 | cat >conftest.$ac_ext <<_ACEOF | |
17189 | /* confdefs.h. */ | |
17190 | _ACEOF | |
17191 | cat confdefs.h >>conftest.$ac_ext | |
17192 | cat >>conftest.$ac_ext <<_ACEOF | |
17193 | /* end confdefs.h. */ | |
17194 | $ac_includes_default | |
17195 | #include <$ac_header> | |
17196 | _ACEOF | |
17197 | rm -f conftest.$ac_objext | |
17198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17199 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17200 | ac_status=$? |
ac1cb8d3 VS |
17201 | grep -v '^ *+' conftest.er1 >conftest.err |
17202 | rm -f conftest.er1 | |
17203 | cat conftest.err >&5 | |
a848cd7e SC |
17204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17205 | (exit $ac_status); } && | |
bb9e79c0 | 17206 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17208 | (eval $ac_try) 2>&5 | |
17209 | ac_status=$? | |
17210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17211 | (exit $ac_status); }; } && | |
17212 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17214 | (eval $ac_try) 2>&5 | |
17215 | ac_status=$? | |
17216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17217 | (exit $ac_status); }; }; then | |
17218 | ac_header_compiler=yes | |
17219 | else | |
17220 | echo "$as_me: failed program was:" >&5 | |
17221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17222 | ||
17223 | ac_header_compiler=no | |
17224 | fi | |
ac1cb8d3 | 17225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17226 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17227 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17228 | ||
17229 | # Is the header present? | |
17230 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17231 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17232 | cat >conftest.$ac_ext <<_ACEOF | |
17233 | /* confdefs.h. */ | |
17234 | _ACEOF | |
17235 | cat confdefs.h >>conftest.$ac_ext | |
17236 | cat >>conftest.$ac_ext <<_ACEOF | |
17237 | /* end confdefs.h. */ | |
17238 | #include <$ac_header> | |
17239 | _ACEOF | |
17240 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17241 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17242 | ac_status=$? | |
17243 | grep -v '^ *+' conftest.er1 >conftest.err | |
17244 | rm -f conftest.er1 | |
17245 | cat conftest.err >&5 | |
17246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17247 | (exit $ac_status); } >/dev/null; then | |
17248 | if test -s conftest.err; then | |
5d7b7554 VZ |
17249 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17250 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17251 | else |
17252 | ac_cpp_err= | |
17253 | fi | |
17254 | else | |
17255 | ac_cpp_err=yes | |
17256 | fi | |
17257 | if test -z "$ac_cpp_err"; then | |
17258 | ac_header_preproc=yes | |
17259 | else | |
17260 | echo "$as_me: failed program was:" >&5 | |
17261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17262 | ||
17263 | ac_header_preproc=no | |
17264 | fi | |
17265 | rm -f conftest.err conftest.$ac_ext | |
17266 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17267 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17268 | ||
17269 | # So? What about this header? | |
5d7b7554 | 17270 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17271 | yes:no: ) |
a848cd7e SC |
17272 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17273 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17274 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17275 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17276 | ac_header_preproc=yes | |
a848cd7e | 17277 | ;; |
ac1cb8d3 | 17278 | no:yes:* ) |
a848cd7e SC |
17279 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17280 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17281 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17282 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17283 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17284 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17285 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17286 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17287 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17288 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17289 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17290 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17291 | ( |
17292 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17293 | ## ----------------------------------------- ## |
17294 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17295 | ## ----------------------------------------- ## | |
a848cd7e SC |
17296 | _ASBOX |
17297 | ) | | |
17298 | sed "s/^/$as_me: WARNING: /" >&2 | |
17299 | ;; | |
17300 | esac | |
17301 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17305 | else | |
ac1cb8d3 | 17306 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17307 | fi |
17308 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17309 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17310 | ||
17311 | fi | |
17312 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17313 | cat >>confdefs.h <<_ACEOF | |
17314 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17315 | _ACEOF | |
17316 | ||
17317 | fi | |
17318 | ||
17319 | done | |
17320 | ||
17321 | ||
17322 | for ac_header in wchar.h | |
17323 | do | |
17324 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17325 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17326 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17327 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17328 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17330 | fi | |
17331 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17332 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17333 | else | |
17334 | # Is the header compilable? | |
17335 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17336 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17337 | cat >conftest.$ac_ext <<_ACEOF | |
17338 | /* confdefs.h. */ | |
17339 | _ACEOF | |
17340 | cat confdefs.h >>conftest.$ac_ext | |
17341 | cat >>conftest.$ac_ext <<_ACEOF | |
17342 | /* end confdefs.h. */ | |
17343 | $ac_includes_default | |
17344 | #include <$ac_header> | |
17345 | _ACEOF | |
17346 | rm -f conftest.$ac_objext | |
17347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17348 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17349 | ac_status=$? |
ac1cb8d3 VS |
17350 | grep -v '^ *+' conftest.er1 >conftest.err |
17351 | rm -f conftest.er1 | |
17352 | cat conftest.err >&5 | |
a848cd7e SC |
17353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17354 | (exit $ac_status); } && | |
bb9e79c0 | 17355 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17357 | (eval $ac_try) 2>&5 | |
17358 | ac_status=$? | |
17359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17360 | (exit $ac_status); }; } && | |
17361 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17363 | (eval $ac_try) 2>&5 | |
17364 | ac_status=$? | |
17365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17366 | (exit $ac_status); }; }; then | |
17367 | ac_header_compiler=yes | |
17368 | else | |
17369 | echo "$as_me: failed program was:" >&5 | |
17370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17371 | ||
17372 | ac_header_compiler=no | |
17373 | fi | |
ac1cb8d3 | 17374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17375 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17376 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17377 | ||
17378 | # Is the header present? | |
17379 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17380 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17381 | cat >conftest.$ac_ext <<_ACEOF | |
17382 | /* confdefs.h. */ | |
17383 | _ACEOF | |
17384 | cat confdefs.h >>conftest.$ac_ext | |
17385 | cat >>conftest.$ac_ext <<_ACEOF | |
17386 | /* end confdefs.h. */ | |
17387 | #include <$ac_header> | |
17388 | _ACEOF | |
17389 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17390 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17391 | ac_status=$? | |
17392 | grep -v '^ *+' conftest.er1 >conftest.err | |
17393 | rm -f conftest.er1 | |
17394 | cat conftest.err >&5 | |
17395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17396 | (exit $ac_status); } >/dev/null; then | |
17397 | if test -s conftest.err; then | |
5d7b7554 VZ |
17398 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17399 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17400 | else |
17401 | ac_cpp_err= | |
17402 | fi | |
17403 | else | |
17404 | ac_cpp_err=yes | |
17405 | fi | |
17406 | if test -z "$ac_cpp_err"; then | |
17407 | ac_header_preproc=yes | |
17408 | else | |
17409 | echo "$as_me: failed program was:" >&5 | |
17410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17411 | ||
17412 | ac_header_preproc=no | |
17413 | fi | |
17414 | rm -f conftest.err conftest.$ac_ext | |
17415 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17416 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17417 | ||
17418 | # So? What about this header? | |
5d7b7554 | 17419 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17420 | yes:no: ) |
a848cd7e SC |
17421 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17422 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17423 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17424 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17425 | ac_header_preproc=yes | |
a848cd7e | 17426 | ;; |
ac1cb8d3 | 17427 | no:yes:* ) |
a848cd7e SC |
17428 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17429 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17430 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17431 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17432 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17433 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17434 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17435 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17436 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17437 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17438 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17439 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17440 | ( |
17441 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17442 | ## ----------------------------------------- ## |
17443 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17444 | ## ----------------------------------------- ## | |
a848cd7e SC |
17445 | _ASBOX |
17446 | ) | | |
17447 | sed "s/^/$as_me: WARNING: /" >&2 | |
17448 | ;; | |
17449 | esac | |
17450 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17451 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17452 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17454 | else | |
ac1cb8d3 | 17455 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17456 | fi |
17457 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17458 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17459 | ||
17460 | fi | |
17461 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17462 | cat >>confdefs.h <<_ACEOF | |
17463 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17464 | _ACEOF | |
17465 | ||
17466 | fi | |
17467 | ||
17468 | done | |
17469 | ||
17470 | ||
17471 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
17472 | ||
17473 | for ac_header in wcstr.h | |
17474 | do | |
17475 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17476 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17477 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17478 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17479 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17481 | fi | |
17482 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17483 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17484 | else | |
17485 | # Is the header compilable? | |
17486 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17487 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17488 | cat >conftest.$ac_ext <<_ACEOF | |
17489 | /* confdefs.h. */ | |
17490 | _ACEOF | |
17491 | cat confdefs.h >>conftest.$ac_ext | |
17492 | cat >>conftest.$ac_ext <<_ACEOF | |
17493 | /* end confdefs.h. */ | |
17494 | $ac_includes_default | |
17495 | #include <$ac_header> | |
17496 | _ACEOF | |
17497 | rm -f conftest.$ac_objext | |
17498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17499 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17500 | ac_status=$? |
ac1cb8d3 VS |
17501 | grep -v '^ *+' conftest.er1 >conftest.err |
17502 | rm -f conftest.er1 | |
17503 | cat conftest.err >&5 | |
a848cd7e SC |
17504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17505 | (exit $ac_status); } && | |
bb9e79c0 | 17506 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17508 | (eval $ac_try) 2>&5 | |
17509 | ac_status=$? | |
17510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17511 | (exit $ac_status); }; } && | |
17512 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17514 | (eval $ac_try) 2>&5 | |
17515 | ac_status=$? | |
17516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17517 | (exit $ac_status); }; }; then | |
17518 | ac_header_compiler=yes | |
17519 | else | |
17520 | echo "$as_me: failed program was:" >&5 | |
17521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17522 | ||
17523 | ac_header_compiler=no | |
17524 | fi | |
ac1cb8d3 | 17525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17526 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17527 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17528 | ||
17529 | # Is the header present? | |
17530 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17531 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17532 | cat >conftest.$ac_ext <<_ACEOF | |
17533 | /* confdefs.h. */ | |
17534 | _ACEOF | |
17535 | cat confdefs.h >>conftest.$ac_ext | |
17536 | cat >>conftest.$ac_ext <<_ACEOF | |
17537 | /* end confdefs.h. */ | |
17538 | #include <$ac_header> | |
17539 | _ACEOF | |
17540 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17541 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17542 | ac_status=$? | |
17543 | grep -v '^ *+' conftest.er1 >conftest.err | |
17544 | rm -f conftest.er1 | |
17545 | cat conftest.err >&5 | |
17546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17547 | (exit $ac_status); } >/dev/null; then | |
17548 | if test -s conftest.err; then | |
5d7b7554 VZ |
17549 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17550 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17551 | else |
17552 | ac_cpp_err= | |
17553 | fi | |
17554 | else | |
17555 | ac_cpp_err=yes | |
17556 | fi | |
17557 | if test -z "$ac_cpp_err"; then | |
17558 | ac_header_preproc=yes | |
17559 | else | |
17560 | echo "$as_me: failed program was:" >&5 | |
17561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17562 | ||
17563 | ac_header_preproc=no | |
17564 | fi | |
17565 | rm -f conftest.err conftest.$ac_ext | |
17566 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17567 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17568 | ||
17569 | # So? What about this header? | |
5d7b7554 | 17570 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17571 | yes:no: ) |
a848cd7e SC |
17572 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17573 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17574 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17575 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17576 | ac_header_preproc=yes | |
a848cd7e | 17577 | ;; |
ac1cb8d3 | 17578 | no:yes:* ) |
a848cd7e SC |
17579 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17580 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17581 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17582 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17583 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17584 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17585 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17586 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17587 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17588 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17589 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17590 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17591 | ( |
17592 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17593 | ## ----------------------------------------- ## |
17594 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17595 | ## ----------------------------------------- ## | |
a848cd7e SC |
17596 | _ASBOX |
17597 | ) | | |
17598 | sed "s/^/$as_me: WARNING: /" >&2 | |
17599 | ;; | |
17600 | esac | |
17601 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17602 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17603 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17605 | else | |
ac1cb8d3 | 17606 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17607 | fi |
17608 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17609 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17610 | ||
17611 | fi | |
17612 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17613 | cat >>confdefs.h <<_ACEOF | |
17614 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17615 | _ACEOF | |
17616 | ||
17617 | fi | |
17618 | ||
17619 | done | |
17620 | ||
17621 | fi | |
17622 | ||
17623 | ||
17624 | for ac_header in fnmatch.h | |
17625 | do | |
17626 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17627 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17628 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17629 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17630 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17632 | fi | |
17633 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17634 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17635 | else | |
17636 | # Is the header compilable? | |
17637 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17638 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17639 | cat >conftest.$ac_ext <<_ACEOF | |
17640 | /* confdefs.h. */ | |
17641 | _ACEOF | |
17642 | cat confdefs.h >>conftest.$ac_ext | |
17643 | cat >>conftest.$ac_ext <<_ACEOF | |
17644 | /* end confdefs.h. */ | |
17645 | $ac_includes_default | |
17646 | #include <$ac_header> | |
17647 | _ACEOF | |
17648 | rm -f conftest.$ac_objext | |
17649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17650 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17651 | ac_status=$? |
ac1cb8d3 VS |
17652 | grep -v '^ *+' conftest.er1 >conftest.err |
17653 | rm -f conftest.er1 | |
17654 | cat conftest.err >&5 | |
a848cd7e SC |
17655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17656 | (exit $ac_status); } && | |
bb9e79c0 | 17657 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17659 | (eval $ac_try) 2>&5 | |
17660 | ac_status=$? | |
17661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17662 | (exit $ac_status); }; } && | |
17663 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17665 | (eval $ac_try) 2>&5 | |
17666 | ac_status=$? | |
17667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17668 | (exit $ac_status); }; }; then | |
17669 | ac_header_compiler=yes | |
17670 | else | |
17671 | echo "$as_me: failed program was:" >&5 | |
17672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17673 | ||
17674 | ac_header_compiler=no | |
17675 | fi | |
ac1cb8d3 | 17676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17677 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17678 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17679 | ||
17680 | # Is the header present? | |
17681 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17682 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17683 | cat >conftest.$ac_ext <<_ACEOF | |
17684 | /* confdefs.h. */ | |
17685 | _ACEOF | |
17686 | cat confdefs.h >>conftest.$ac_ext | |
17687 | cat >>conftest.$ac_ext <<_ACEOF | |
17688 | /* end confdefs.h. */ | |
17689 | #include <$ac_header> | |
17690 | _ACEOF | |
17691 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17692 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17693 | ac_status=$? | |
17694 | grep -v '^ *+' conftest.er1 >conftest.err | |
17695 | rm -f conftest.er1 | |
17696 | cat conftest.err >&5 | |
17697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17698 | (exit $ac_status); } >/dev/null; then | |
17699 | if test -s conftest.err; then | |
5d7b7554 VZ |
17700 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17701 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17702 | else |
17703 | ac_cpp_err= | |
17704 | fi | |
17705 | else | |
17706 | ac_cpp_err=yes | |
17707 | fi | |
17708 | if test -z "$ac_cpp_err"; then | |
17709 | ac_header_preproc=yes | |
17710 | else | |
17711 | echo "$as_me: failed program was:" >&5 | |
17712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17713 | ||
17714 | ac_header_preproc=no | |
17715 | fi | |
17716 | rm -f conftest.err conftest.$ac_ext | |
17717 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17718 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17719 | ||
17720 | # So? What about this header? | |
5d7b7554 | 17721 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17722 | yes:no: ) |
a848cd7e SC |
17723 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17724 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17725 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17726 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17727 | ac_header_preproc=yes | |
a848cd7e | 17728 | ;; |
ac1cb8d3 | 17729 | no:yes:* ) |
a848cd7e SC |
17730 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17731 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17732 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17733 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17734 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17735 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17736 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17737 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17738 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17739 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17740 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17741 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17742 | ( |
17743 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17744 | ## ----------------------------------------- ## |
17745 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17746 | ## ----------------------------------------- ## | |
a848cd7e SC |
17747 | _ASBOX |
17748 | ) | | |
17749 | sed "s/^/$as_me: WARNING: /" >&2 | |
17750 | ;; | |
17751 | esac | |
17752 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17753 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17754 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17756 | else | |
ac1cb8d3 | 17757 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17758 | fi |
17759 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17760 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17761 | ||
17762 | fi | |
17763 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17764 | cat >>confdefs.h <<_ACEOF | |
17765 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17766 | _ACEOF | |
17767 | ||
17768 | fi | |
17769 | ||
17770 | done | |
17771 | ||
17772 | ||
a848cd7e SC |
17773 | |
17774 | for ac_header in langinfo.h | |
17775 | do | |
17776 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17778 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17782 | fi | |
17783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17784 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17785 | else | |
17786 | # Is the header compilable? | |
17787 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17788 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17789 | cat >conftest.$ac_ext <<_ACEOF | |
17790 | /* confdefs.h. */ | |
17791 | _ACEOF | |
17792 | cat confdefs.h >>conftest.$ac_ext | |
17793 | cat >>conftest.$ac_ext <<_ACEOF | |
17794 | /* end confdefs.h. */ | |
17795 | $ac_includes_default | |
17796 | #include <$ac_header> | |
17797 | _ACEOF | |
17798 | rm -f conftest.$ac_objext | |
17799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17800 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17801 | ac_status=$? |
ac1cb8d3 VS |
17802 | grep -v '^ *+' conftest.er1 >conftest.err |
17803 | rm -f conftest.er1 | |
17804 | cat conftest.err >&5 | |
a848cd7e SC |
17805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17806 | (exit $ac_status); } && | |
bb9e79c0 | 17807 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17809 | (eval $ac_try) 2>&5 | |
17810 | ac_status=$? | |
17811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17812 | (exit $ac_status); }; } && | |
17813 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17815 | (eval $ac_try) 2>&5 | |
17816 | ac_status=$? | |
17817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17818 | (exit $ac_status); }; }; then | |
17819 | ac_header_compiler=yes | |
17820 | else | |
17821 | echo "$as_me: failed program was:" >&5 | |
17822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17823 | ||
17824 | ac_header_compiler=no | |
17825 | fi | |
ac1cb8d3 | 17826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17827 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17828 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17829 | ||
17830 | # Is the header present? | |
17831 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17832 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17833 | cat >conftest.$ac_ext <<_ACEOF | |
17834 | /* confdefs.h. */ | |
17835 | _ACEOF | |
17836 | cat confdefs.h >>conftest.$ac_ext | |
17837 | cat >>conftest.$ac_ext <<_ACEOF | |
17838 | /* end confdefs.h. */ | |
17839 | #include <$ac_header> | |
17840 | _ACEOF | |
17841 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17842 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17843 | ac_status=$? | |
17844 | grep -v '^ *+' conftest.er1 >conftest.err | |
17845 | rm -f conftest.er1 | |
17846 | cat conftest.err >&5 | |
17847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17848 | (exit $ac_status); } >/dev/null; then | |
17849 | if test -s conftest.err; then | |
5d7b7554 VZ |
17850 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17851 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17852 | else |
17853 | ac_cpp_err= | |
17854 | fi | |
17855 | else | |
17856 | ac_cpp_err=yes | |
17857 | fi | |
17858 | if test -z "$ac_cpp_err"; then | |
17859 | ac_header_preproc=yes | |
17860 | else | |
17861 | echo "$as_me: failed program was:" >&5 | |
17862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17863 | ||
17864 | ac_header_preproc=no | |
17865 | fi | |
17866 | rm -f conftest.err conftest.$ac_ext | |
17867 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17868 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17869 | ||
17870 | # So? What about this header? | |
5d7b7554 | 17871 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17872 | yes:no: ) |
a848cd7e SC |
17873 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17874 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17875 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17876 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17877 | ac_header_preproc=yes | |
a848cd7e | 17878 | ;; |
ac1cb8d3 | 17879 | no:yes:* ) |
a848cd7e SC |
17880 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17881 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17882 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17883 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17884 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17885 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17886 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17887 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17888 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17889 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17890 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17891 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17892 | ( |
17893 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17894 | ## ----------------------------------------- ## |
17895 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17896 | ## ----------------------------------------- ## | |
a848cd7e SC |
17897 | _ASBOX |
17898 | ) | | |
17899 | sed "s/^/$as_me: WARNING: /" >&2 | |
17900 | ;; | |
17901 | esac | |
17902 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17904 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17906 | else | |
ac1cb8d3 | 17907 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17908 | fi |
17909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17910 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17911 | ||
17912 | fi | |
17913 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17914 | cat >>confdefs.h <<_ACEOF | |
17915 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17916 | _ACEOF | |
17917 | ||
17918 | fi | |
17919 | ||
17920 | done | |
17921 | ||
17922 | ||
17923 | case "${host}" in | |
17924 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
17925 | if test $ac_cv_header_langinfo_h = "yes" \ |
17926 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
17927 | -o "$wx_cv_gccversion" = "EMX3" \ | |
17928 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
17929 | LIBS="$LIBS -lintl" |
17930 | fi | |
17931 | ;; | |
17932 | esac | |
17933 | ||
bc023abb MW |
17934 | if test "$USE_UNIX" = 1 ; then |
17935 | ||
17936 | for ac_header in sys/select.h | |
17937 | do | |
17938 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17939 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17940 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17941 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17944 | fi | |
17945 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17946 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17947 | else | |
17948 | # Is the header compilable? | |
17949 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17950 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17951 | cat >conftest.$ac_ext <<_ACEOF | |
17952 | /* confdefs.h. */ | |
17953 | _ACEOF | |
17954 | cat confdefs.h >>conftest.$ac_ext | |
17955 | cat >>conftest.$ac_ext <<_ACEOF | |
17956 | /* end confdefs.h. */ | |
17957 | $ac_includes_default | |
17958 | #include <$ac_header> | |
17959 | _ACEOF | |
17960 | rm -f conftest.$ac_objext | |
17961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17962 | (eval $ac_compile) 2>conftest.er1 | |
17963 | ac_status=$? | |
17964 | grep -v '^ *+' conftest.er1 >conftest.err | |
17965 | rm -f conftest.er1 | |
17966 | cat conftest.err >&5 | |
17967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17968 | (exit $ac_status); } && | |
bb9e79c0 | 17969 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
bc023abb MW |
17970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17971 | (eval $ac_try) 2>&5 | |
17972 | ac_status=$? | |
17973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17974 | (exit $ac_status); }; } && | |
17975 | { ac_try='test -s conftest.$ac_objext' | |
17976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17977 | (eval $ac_try) 2>&5 | |
17978 | ac_status=$? | |
17979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17980 | (exit $ac_status); }; }; then | |
17981 | ac_header_compiler=yes | |
17982 | else | |
17983 | echo "$as_me: failed program was:" >&5 | |
17984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17985 | ||
17986 | ac_header_compiler=no | |
17987 | fi | |
17988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17989 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17990 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17991 | ||
17992 | # Is the header present? | |
17993 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17994 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17995 | cat >conftest.$ac_ext <<_ACEOF | |
17996 | /* confdefs.h. */ | |
17997 | _ACEOF | |
17998 | cat confdefs.h >>conftest.$ac_ext | |
17999 | cat >>conftest.$ac_ext <<_ACEOF | |
18000 | /* end confdefs.h. */ | |
18001 | #include <$ac_header> | |
18002 | _ACEOF | |
18003 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18004 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18005 | ac_status=$? | |
18006 | grep -v '^ *+' conftest.er1 >conftest.err | |
18007 | rm -f conftest.er1 | |
18008 | cat conftest.err >&5 | |
18009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18010 | (exit $ac_status); } >/dev/null; then | |
18011 | if test -s conftest.err; then | |
18012 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
18013 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
18014 | else | |
18015 | ac_cpp_err= | |
18016 | fi | |
18017 | else | |
18018 | ac_cpp_err=yes | |
18019 | fi | |
18020 | if test -z "$ac_cpp_err"; then | |
18021 | ac_header_preproc=yes | |
18022 | else | |
18023 | echo "$as_me: failed program was:" >&5 | |
18024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18025 | ||
18026 | ac_header_preproc=no | |
18027 | fi | |
18028 | rm -f conftest.err conftest.$ac_ext | |
18029 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18030 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18031 | ||
18032 | # So? What about this header? | |
18033 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
18034 | yes:no: ) | |
18035 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18036 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18037 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
18038 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18039 | ac_header_preproc=yes | |
18040 | ;; | |
18041 | no:yes:* ) | |
18042 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
18043 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
18044 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
18045 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18046 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18047 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18048 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18049 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
18050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
18051 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
18052 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
18053 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
18054 | ( | |
18055 | cat <<\_ASBOX | |
18056 | ## ----------------------------------------- ## | |
18057 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
18058 | ## ----------------------------------------- ## | |
18059 | _ASBOX | |
18060 | ) | | |
18061 | sed "s/^/$as_me: WARNING: /" >&2 | |
18062 | ;; | |
18063 | esac | |
18064 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18068 | else | |
18069 | eval "$as_ac_Header=\$ac_header_preproc" | |
18070 | fi | |
18071 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18072 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18073 | ||
18074 | fi | |
18075 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18076 | cat >>confdefs.h <<_ACEOF | |
18077 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18078 | _ACEOF | |
18079 | ||
18080 | fi | |
18081 | ||
18082 | done | |
18083 | ||
18084 | fi | |
18085 | ||
a848cd7e SC |
18086 | |
18087 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
18088 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
18089 | if test "${ac_cv_c_const+set}" = set; then | |
18090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18091 | else | |
18092 | cat >conftest.$ac_ext <<_ACEOF | |
18093 | /* confdefs.h. */ | |
18094 | _ACEOF | |
18095 | cat confdefs.h >>conftest.$ac_ext | |
18096 | cat >>conftest.$ac_ext <<_ACEOF | |
18097 | /* end confdefs.h. */ | |
18098 | ||
18099 | int | |
18100 | main () | |
18101 | { | |
18102 | /* FIXME: Include the comments suggested by Paul. */ | |
18103 | #ifndef __cplusplus | |
18104 | /* Ultrix mips cc rejects this. */ | |
18105 | typedef int charset[2]; | |
18106 | const charset x; | |
18107 | /* SunOS 4.1.1 cc rejects this. */ | |
18108 | char const *const *ccp; | |
18109 | char **p; | |
18110 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
18111 | struct point {int x, y;}; | |
18112 | static struct point const zero = {0,0}; | |
18113 | /* AIX XL C 1.02.0.0 rejects this. | |
18114 | It does not let you subtract one const X* pointer from another in | |
18115 | an arm of an if-expression whose if-part is not a constant | |
18116 | expression */ | |
18117 | const char *g = "string"; | |
18118 | ccp = &g + (g ? g-g : 0); | |
18119 | /* HPUX 7.0 cc rejects these. */ | |
18120 | ++ccp; | |
18121 | p = (char**) ccp; | |
18122 | ccp = (char const *const *) p; | |
18123 | { /* SCO 3.2v4 cc rejects this. */ | |
18124 | char *t; | |
18125 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
18126 | ||
18127 | *t++ = 0; | |
18128 | } | |
18129 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
18130 | int x[] = {25, 17}; | |
18131 | const int *foo = &x[0]; | |
18132 | ++foo; | |
18133 | } | |
18134 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
18135 | typedef const int *iptr; | |
18136 | iptr p = 0; | |
18137 | ++p; | |
18138 | } | |
18139 | { /* AIX XL C 1.02.0.0 rejects this saying | |
18140 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
18141 | struct s { int j; const int *ap[3]; }; | |
18142 | struct s *b; b->j = 5; | |
18143 | } | |
18144 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
18145 | const int foo = 10; | |
18146 | } | |
18147 | #endif | |
18148 | ||
18149 | ; | |
18150 | return 0; | |
18151 | } | |
18152 | _ACEOF | |
18153 | rm -f conftest.$ac_objext | |
18154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18155 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18156 | ac_status=$? |
ac1cb8d3 VS |
18157 | grep -v '^ *+' conftest.er1 >conftest.err |
18158 | rm -f conftest.er1 | |
18159 | cat conftest.err >&5 | |
a848cd7e SC |
18160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18161 | (exit $ac_status); } && | |
bb9e79c0 | 18162 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18164 | (eval $ac_try) 2>&5 | |
18165 | ac_status=$? | |
18166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18167 | (exit $ac_status); }; } && | |
18168 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18170 | (eval $ac_try) 2>&5 | |
18171 | ac_status=$? | |
18172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18173 | (exit $ac_status); }; }; then | |
18174 | ac_cv_c_const=yes | |
18175 | else | |
18176 | echo "$as_me: failed program was:" >&5 | |
18177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18178 | ||
18179 | ac_cv_c_const=no | |
18180 | fi | |
ac1cb8d3 | 18181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18182 | fi |
18183 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
18184 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
18185 | if test $ac_cv_c_const = no; then | |
18186 | ||
18187 | cat >>confdefs.h <<\_ACEOF | |
18188 | #define const | |
18189 | _ACEOF | |
18190 | ||
18191 | fi | |
18192 | ||
18193 | echo "$as_me:$LINENO: checking for inline" >&5 | |
18194 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
18195 | if test "${ac_cv_c_inline+set}" = set; then | |
18196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18197 | else | |
18198 | ac_cv_c_inline=no | |
18199 | for ac_kw in inline __inline__ __inline; do | |
18200 | cat >conftest.$ac_ext <<_ACEOF | |
18201 | /* confdefs.h. */ | |
18202 | _ACEOF | |
18203 | cat confdefs.h >>conftest.$ac_ext | |
18204 | cat >>conftest.$ac_ext <<_ACEOF | |
18205 | /* end confdefs.h. */ | |
18206 | #ifndef __cplusplus | |
18207 | typedef int foo_t; | |
18208 | static $ac_kw foo_t static_foo () {return 0; } | |
18209 | $ac_kw foo_t foo () {return 0; } | |
18210 | #endif | |
18211 | ||
18212 | _ACEOF | |
18213 | rm -f conftest.$ac_objext | |
18214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18215 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18216 | ac_status=$? |
ac1cb8d3 VS |
18217 | grep -v '^ *+' conftest.er1 >conftest.err |
18218 | rm -f conftest.er1 | |
18219 | cat conftest.err >&5 | |
a848cd7e SC |
18220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18221 | (exit $ac_status); } && | |
bb9e79c0 | 18222 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18224 | (eval $ac_try) 2>&5 | |
18225 | ac_status=$? | |
18226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18227 | (exit $ac_status); }; } && | |
18228 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18230 | (eval $ac_try) 2>&5 | |
18231 | ac_status=$? | |
18232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18233 | (exit $ac_status); }; }; then | |
18234 | ac_cv_c_inline=$ac_kw; break | |
18235 | else | |
18236 | echo "$as_me: failed program was:" >&5 | |
18237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18238 | ||
18239 | fi | |
ac1cb8d3 | 18240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18241 | done |
18242 | ||
18243 | fi | |
18244 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
18245 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
18246 | |
18247 | ||
a848cd7e SC |
18248 | case $ac_cv_c_inline in |
18249 | inline | yes) ;; | |
ac1cb8d3 VS |
18250 | *) |
18251 | case $ac_cv_c_inline in | |
18252 | no) ac_val=;; | |
18253 | *) ac_val=$ac_cv_c_inline;; | |
18254 | esac | |
18255 | cat >>confdefs.h <<_ACEOF | |
18256 | #ifndef __cplusplus | |
18257 | #define inline $ac_val | |
18258 | #endif | |
de59c161 | 18259 | _ACEOF |
ac1cb8d3 | 18260 | ;; |
a848cd7e SC |
18261 | esac |
18262 | ||
18263 | ||
18264 | echo "$as_me:$LINENO: checking for char" >&5 | |
18265 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
18266 | if test "${ac_cv_type_char+set}" = set; then | |
18267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18268 | else | |
18269 | cat >conftest.$ac_ext <<_ACEOF | |
18270 | /* confdefs.h. */ | |
18271 | _ACEOF | |
18272 | cat confdefs.h >>conftest.$ac_ext | |
18273 | cat >>conftest.$ac_ext <<_ACEOF | |
18274 | /* end confdefs.h. */ | |
18275 | $ac_includes_default | |
18276 | int | |
18277 | main () | |
18278 | { | |
18279 | if ((char *) 0) | |
18280 | return 0; | |
18281 | if (sizeof (char)) | |
18282 | return 0; | |
18283 | ; | |
18284 | return 0; | |
18285 | } | |
18286 | _ACEOF | |
18287 | rm -f conftest.$ac_objext | |
18288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18289 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18290 | ac_status=$? |
ac1cb8d3 VS |
18291 | grep -v '^ *+' conftest.er1 >conftest.err |
18292 | rm -f conftest.er1 | |
18293 | cat conftest.err >&5 | |
a848cd7e SC |
18294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18295 | (exit $ac_status); } && | |
bb9e79c0 | 18296 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18298 | (eval $ac_try) 2>&5 | |
18299 | ac_status=$? | |
18300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18301 | (exit $ac_status); }; } && | |
18302 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18304 | (eval $ac_try) 2>&5 | |
18305 | ac_status=$? | |
18306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18307 | (exit $ac_status); }; }; then | |
18308 | ac_cv_type_char=yes | |
18309 | else | |
18310 | echo "$as_me: failed program was:" >&5 | |
18311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18312 | ||
18313 | ac_cv_type_char=no | |
18314 | fi | |
ac1cb8d3 | 18315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18316 | fi |
18317 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
18318 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
18319 | ||
18320 | echo "$as_me:$LINENO: checking size of char" >&5 | |
18321 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
18322 | if test "${ac_cv_sizeof_char+set}" = set; then | |
18323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18324 | else | |
18325 | if test "$ac_cv_type_char" = yes; then | |
18326 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18327 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18328 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18329 | # This bug is HP SR number 8606223364. | |
18330 | if test "$cross_compiling" = yes; then | |
18331 | # Depending upon the size, compute the lo and hi bounds. | |
18332 | cat >conftest.$ac_ext <<_ACEOF | |
18333 | /* confdefs.h. */ | |
18334 | _ACEOF | |
18335 | cat confdefs.h >>conftest.$ac_ext | |
18336 | cat >>conftest.$ac_ext <<_ACEOF | |
18337 | /* end confdefs.h. */ | |
18338 | $ac_includes_default | |
18339 | int | |
18340 | main () | |
18341 | { | |
18342 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
18343 | test_array [0] = 0 | |
18344 | ||
18345 | ; | |
18346 | return 0; | |
18347 | } | |
18348 | _ACEOF | |
18349 | rm -f conftest.$ac_objext | |
18350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18351 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18352 | ac_status=$? |
ac1cb8d3 VS |
18353 | grep -v '^ *+' conftest.er1 >conftest.err |
18354 | rm -f conftest.er1 | |
18355 | cat conftest.err >&5 | |
a848cd7e SC |
18356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18357 | (exit $ac_status); } && | |
bb9e79c0 | 18358 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18360 | (eval $ac_try) 2>&5 | |
18361 | ac_status=$? | |
18362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18363 | (exit $ac_status); }; } && | |
18364 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18366 | (eval $ac_try) 2>&5 | |
18367 | ac_status=$? | |
18368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18369 | (exit $ac_status); }; }; then | |
18370 | ac_lo=0 ac_mid=0 | |
18371 | while :; do | |
18372 | cat >conftest.$ac_ext <<_ACEOF | |
18373 | /* confdefs.h. */ | |
18374 | _ACEOF | |
18375 | cat confdefs.h >>conftest.$ac_ext | |
18376 | cat >>conftest.$ac_ext <<_ACEOF | |
18377 | /* end confdefs.h. */ | |
18378 | $ac_includes_default | |
18379 | int | |
18380 | main () | |
18381 | { | |
18382 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
18383 | test_array [0] = 0 | |
18384 | ||
18385 | ; | |
18386 | return 0; | |
18387 | } | |
18388 | _ACEOF | |
18389 | rm -f conftest.$ac_objext | |
18390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18391 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18392 | ac_status=$? |
ac1cb8d3 VS |
18393 | grep -v '^ *+' conftest.er1 >conftest.err |
18394 | rm -f conftest.er1 | |
18395 | cat conftest.err >&5 | |
a848cd7e SC |
18396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18397 | (exit $ac_status); } && | |
bb9e79c0 | 18398 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18400 | (eval $ac_try) 2>&5 | |
18401 | ac_status=$? | |
18402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18403 | (exit $ac_status); }; } && | |
18404 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18406 | (eval $ac_try) 2>&5 | |
18407 | ac_status=$? | |
18408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18409 | (exit $ac_status); }; }; then | |
18410 | ac_hi=$ac_mid; break | |
18411 | else | |
18412 | echo "$as_me: failed program was:" >&5 | |
18413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18414 | ||
18415 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18416 | if test $ac_lo -le $ac_mid; then |
18417 | ac_lo= ac_hi= | |
18418 | break | |
18419 | fi | |
18420 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18421 | fi |
ac1cb8d3 | 18422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18423 | done |
18424 | else | |
18425 | echo "$as_me: failed program was:" >&5 | |
18426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18427 | ||
18428 | cat >conftest.$ac_ext <<_ACEOF | |
18429 | /* confdefs.h. */ | |
18430 | _ACEOF | |
18431 | cat confdefs.h >>conftest.$ac_ext | |
18432 | cat >>conftest.$ac_ext <<_ACEOF | |
18433 | /* end confdefs.h. */ | |
18434 | $ac_includes_default | |
18435 | int | |
18436 | main () | |
18437 | { | |
18438 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
18439 | test_array [0] = 0 | |
18440 | ||
18441 | ; | |
18442 | return 0; | |
18443 | } | |
18444 | _ACEOF | |
18445 | rm -f conftest.$ac_objext | |
18446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18447 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18448 | ac_status=$? |
ac1cb8d3 VS |
18449 | grep -v '^ *+' conftest.er1 >conftest.err |
18450 | rm -f conftest.er1 | |
18451 | cat conftest.err >&5 | |
a848cd7e SC |
18452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18453 | (exit $ac_status); } && | |
bb9e79c0 | 18454 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18456 | (eval $ac_try) 2>&5 | |
18457 | ac_status=$? | |
18458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18459 | (exit $ac_status); }; } && | |
18460 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18462 | (eval $ac_try) 2>&5 | |
18463 | ac_status=$? | |
18464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18465 | (exit $ac_status); }; }; then | |
18466 | ac_hi=-1 ac_mid=-1 | |
18467 | while :; do | |
18468 | cat >conftest.$ac_ext <<_ACEOF | |
18469 | /* confdefs.h. */ | |
18470 | _ACEOF | |
18471 | cat confdefs.h >>conftest.$ac_ext | |
18472 | cat >>conftest.$ac_ext <<_ACEOF | |
18473 | /* end confdefs.h. */ | |
18474 | $ac_includes_default | |
18475 | int | |
18476 | main () | |
18477 | { | |
18478 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
18479 | test_array [0] = 0 | |
18480 | ||
18481 | ; | |
18482 | return 0; | |
18483 | } | |
18484 | _ACEOF | |
18485 | rm -f conftest.$ac_objext | |
18486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18487 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18488 | ac_status=$? |
ac1cb8d3 VS |
18489 | grep -v '^ *+' conftest.er1 >conftest.err |
18490 | rm -f conftest.er1 | |
18491 | cat conftest.err >&5 | |
a848cd7e SC |
18492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18493 | (exit $ac_status); } && | |
bb9e79c0 | 18494 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18496 | (eval $ac_try) 2>&5 | |
18497 | ac_status=$? | |
18498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18499 | (exit $ac_status); }; } && | |
18500 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18502 | (eval $ac_try) 2>&5 | |
18503 | ac_status=$? | |
18504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18505 | (exit $ac_status); }; }; then | |
18506 | ac_lo=$ac_mid; break | |
18507 | else | |
18508 | echo "$as_me: failed program was:" >&5 | |
18509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18510 | ||
18511 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18512 | if test $ac_mid -le $ac_hi; then |
18513 | ac_lo= ac_hi= | |
18514 | break | |
18515 | fi | |
18516 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18517 | fi |
ac1cb8d3 | 18518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18519 | done |
18520 | else | |
18521 | echo "$as_me: failed program was:" >&5 | |
18522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18523 | ||
18524 | ac_lo= ac_hi= | |
18525 | fi | |
ac1cb8d3 | 18526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18527 | fi |
ac1cb8d3 | 18528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18529 | # Binary search between lo and hi bounds. |
18530 | while test "x$ac_lo" != "x$ac_hi"; do | |
18531 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18532 | cat >conftest.$ac_ext <<_ACEOF | |
18533 | /* confdefs.h. */ | |
18534 | _ACEOF | |
18535 | cat confdefs.h >>conftest.$ac_ext | |
18536 | cat >>conftest.$ac_ext <<_ACEOF | |
18537 | /* end confdefs.h. */ | |
18538 | $ac_includes_default | |
18539 | int | |
18540 | main () | |
18541 | { | |
18542 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
18543 | test_array [0] = 0 | |
18544 | ||
18545 | ; | |
18546 | return 0; | |
18547 | } | |
18548 | _ACEOF | |
18549 | rm -f conftest.$ac_objext | |
18550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18551 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18552 | ac_status=$? |
ac1cb8d3 VS |
18553 | grep -v '^ *+' conftest.er1 >conftest.err |
18554 | rm -f conftest.er1 | |
18555 | cat conftest.err >&5 | |
a848cd7e SC |
18556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18557 | (exit $ac_status); } && | |
bb9e79c0 | 18558 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18560 | (eval $ac_try) 2>&5 | |
18561 | ac_status=$? | |
18562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18563 | (exit $ac_status); }; } && | |
18564 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18566 | (eval $ac_try) 2>&5 | |
18567 | ac_status=$? | |
18568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18569 | (exit $ac_status); }; }; then | |
18570 | ac_hi=$ac_mid | |
18571 | else | |
18572 | echo "$as_me: failed program was:" >&5 | |
18573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18574 | ||
18575 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18576 | fi | |
ac1cb8d3 | 18577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18578 | done |
18579 | case $ac_lo in | |
18580 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
18581 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
18582 | See \`config.log' for more details." >&5 | |
18583 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
18584 | See \`config.log' for more details." >&2;} | |
18585 | { (exit 1); exit 1; }; } ;; | |
18586 | esac | |
18587 | else | |
18588 | if test "$cross_compiling" = yes; then | |
bb9e79c0 VZ |
18589 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18590 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18591 | { (exit 1); exit 1; }; } |
18592 | else | |
18593 | cat >conftest.$ac_ext <<_ACEOF | |
18594 | /* confdefs.h. */ | |
18595 | _ACEOF | |
18596 | cat confdefs.h >>conftest.$ac_ext | |
18597 | cat >>conftest.$ac_ext <<_ACEOF | |
18598 | /* end confdefs.h. */ | |
18599 | $ac_includes_default | |
18600 | long longval () { return (long) (sizeof (char)); } | |
18601 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
18602 | #include <stdio.h> | |
18603 | #include <stdlib.h> | |
18604 | int | |
18605 | main () | |
18606 | { | |
18607 | ||
18608 | FILE *f = fopen ("conftest.val", "w"); | |
18609 | if (! f) | |
18610 | exit (1); | |
18611 | if (((long) (sizeof (char))) < 0) | |
18612 | { | |
18613 | long i = longval (); | |
18614 | if (i != ((long) (sizeof (char)))) | |
18615 | exit (1); | |
18616 | fprintf (f, "%ld\n", i); | |
18617 | } | |
18618 | else | |
18619 | { | |
18620 | unsigned long i = ulongval (); | |
18621 | if (i != ((long) (sizeof (char)))) | |
18622 | exit (1); | |
18623 | fprintf (f, "%lu\n", i); | |
18624 | } | |
18625 | exit (ferror (f) || fclose (f) != 0); | |
18626 | ||
18627 | ; | |
18628 | return 0; | |
18629 | } | |
18630 | _ACEOF | |
18631 | rm -f conftest$ac_exeext | |
18632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18633 | (eval $ac_link) 2>&5 | |
18634 | ac_status=$? | |
18635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18636 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18638 | (eval $ac_try) 2>&5 | |
18639 | ac_status=$? | |
18640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18641 | (exit $ac_status); }; }; then | |
18642 | ac_cv_sizeof_char=`cat conftest.val` | |
18643 | else | |
18644 | echo "$as_me: program exited with status $ac_status" >&5 | |
18645 | echo "$as_me: failed program was:" >&5 | |
18646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18647 | ||
18648 | ( exit $ac_status ) | |
18649 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
18650 | See \`config.log' for more details." >&5 | |
18651 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
18652 | See \`config.log' for more details." >&2;} | |
18653 | { (exit 1); exit 1; }; } | |
18654 | fi | |
ac1cb8d3 | 18655 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18656 | fi |
18657 | fi | |
18658 | rm -f conftest.val | |
18659 | else | |
18660 | ac_cv_sizeof_char=0 | |
18661 | fi | |
18662 | fi | |
18663 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
18664 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
18665 | cat >>confdefs.h <<_ACEOF | |
18666 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
18667 | _ACEOF | |
18668 | ||
18669 | ||
18670 | echo "$as_me:$LINENO: checking for short" >&5 | |
18671 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
18672 | if test "${ac_cv_type_short+set}" = set; then | |
18673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18674 | else | |
18675 | cat >conftest.$ac_ext <<_ACEOF | |
18676 | /* confdefs.h. */ | |
18677 | _ACEOF | |
18678 | cat confdefs.h >>conftest.$ac_ext | |
18679 | cat >>conftest.$ac_ext <<_ACEOF | |
18680 | /* end confdefs.h. */ | |
18681 | $ac_includes_default | |
18682 | int | |
18683 | main () | |
18684 | { | |
18685 | if ((short *) 0) | |
18686 | return 0; | |
18687 | if (sizeof (short)) | |
18688 | return 0; | |
18689 | ; | |
18690 | return 0; | |
18691 | } | |
18692 | _ACEOF | |
18693 | rm -f conftest.$ac_objext | |
18694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18695 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18696 | ac_status=$? |
ac1cb8d3 VS |
18697 | grep -v '^ *+' conftest.er1 >conftest.err |
18698 | rm -f conftest.er1 | |
18699 | cat conftest.err >&5 | |
a848cd7e SC |
18700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18701 | (exit $ac_status); } && | |
bb9e79c0 | 18702 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18704 | (eval $ac_try) 2>&5 | |
18705 | ac_status=$? | |
18706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18707 | (exit $ac_status); }; } && | |
18708 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18710 | (eval $ac_try) 2>&5 | |
18711 | ac_status=$? | |
18712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18713 | (exit $ac_status); }; }; then | |
18714 | ac_cv_type_short=yes | |
18715 | else | |
18716 | echo "$as_me: failed program was:" >&5 | |
18717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18718 | ||
18719 | ac_cv_type_short=no | |
18720 | fi | |
ac1cb8d3 | 18721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18722 | fi |
18723 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
18724 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
18725 | ||
18726 | echo "$as_me:$LINENO: checking size of short" >&5 | |
18727 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
18728 | if test "${ac_cv_sizeof_short+set}" = set; then | |
18729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18730 | else | |
18731 | if test "$ac_cv_type_short" = yes; then | |
18732 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18733 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18734 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18735 | # This bug is HP SR number 8606223364. | |
18736 | if test "$cross_compiling" = yes; then | |
18737 | # Depending upon the size, compute the lo and hi bounds. | |
18738 | cat >conftest.$ac_ext <<_ACEOF | |
18739 | /* confdefs.h. */ | |
18740 | _ACEOF | |
18741 | cat confdefs.h >>conftest.$ac_ext | |
18742 | cat >>conftest.$ac_ext <<_ACEOF | |
18743 | /* end confdefs.h. */ | |
18744 | $ac_includes_default | |
18745 | int | |
18746 | main () | |
18747 | { | |
18748 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
18749 | test_array [0] = 0 | |
18750 | ||
18751 | ; | |
18752 | return 0; | |
18753 | } | |
18754 | _ACEOF | |
18755 | rm -f conftest.$ac_objext | |
18756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18757 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18758 | ac_status=$? |
ac1cb8d3 VS |
18759 | grep -v '^ *+' conftest.er1 >conftest.err |
18760 | rm -f conftest.er1 | |
18761 | cat conftest.err >&5 | |
a848cd7e SC |
18762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18763 | (exit $ac_status); } && | |
bb9e79c0 | 18764 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18766 | (eval $ac_try) 2>&5 | |
18767 | ac_status=$? | |
18768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18769 | (exit $ac_status); }; } && | |
18770 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18772 | (eval $ac_try) 2>&5 | |
18773 | ac_status=$? | |
18774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18775 | (exit $ac_status); }; }; then | |
18776 | ac_lo=0 ac_mid=0 | |
18777 | while :; do | |
18778 | cat >conftest.$ac_ext <<_ACEOF | |
18779 | /* confdefs.h. */ | |
18780 | _ACEOF | |
18781 | cat confdefs.h >>conftest.$ac_ext | |
18782 | cat >>conftest.$ac_ext <<_ACEOF | |
18783 | /* end confdefs.h. */ | |
18784 | $ac_includes_default | |
18785 | int | |
18786 | main () | |
18787 | { | |
18788 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
18789 | test_array [0] = 0 | |
18790 | ||
18791 | ; | |
18792 | return 0; | |
18793 | } | |
18794 | _ACEOF | |
18795 | rm -f conftest.$ac_objext | |
18796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18797 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18798 | ac_status=$? |
ac1cb8d3 VS |
18799 | grep -v '^ *+' conftest.er1 >conftest.err |
18800 | rm -f conftest.er1 | |
18801 | cat conftest.err >&5 | |
a848cd7e SC |
18802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18803 | (exit $ac_status); } && | |
bb9e79c0 | 18804 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18806 | (eval $ac_try) 2>&5 | |
18807 | ac_status=$? | |
18808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18809 | (exit $ac_status); }; } && | |
18810 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18812 | (eval $ac_try) 2>&5 | |
18813 | ac_status=$? | |
18814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18815 | (exit $ac_status); }; }; then | |
18816 | ac_hi=$ac_mid; break | |
18817 | else | |
18818 | echo "$as_me: failed program was:" >&5 | |
18819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18820 | ||
18821 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18822 | if test $ac_lo -le $ac_mid; then |
18823 | ac_lo= ac_hi= | |
18824 | break | |
18825 | fi | |
18826 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18827 | fi |
ac1cb8d3 | 18828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18829 | done |
18830 | else | |
18831 | echo "$as_me: failed program was:" >&5 | |
18832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18833 | ||
18834 | cat >conftest.$ac_ext <<_ACEOF | |
18835 | /* confdefs.h. */ | |
18836 | _ACEOF | |
18837 | cat confdefs.h >>conftest.$ac_ext | |
18838 | cat >>conftest.$ac_ext <<_ACEOF | |
18839 | /* end confdefs.h. */ | |
18840 | $ac_includes_default | |
18841 | int | |
18842 | main () | |
18843 | { | |
18844 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
18845 | test_array [0] = 0 | |
18846 | ||
18847 | ; | |
18848 | return 0; | |
18849 | } | |
18850 | _ACEOF | |
18851 | rm -f conftest.$ac_objext | |
18852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18853 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18854 | ac_status=$? |
ac1cb8d3 VS |
18855 | grep -v '^ *+' conftest.er1 >conftest.err |
18856 | rm -f conftest.er1 | |
18857 | cat conftest.err >&5 | |
a848cd7e SC |
18858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18859 | (exit $ac_status); } && | |
bb9e79c0 | 18860 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18862 | (eval $ac_try) 2>&5 | |
18863 | ac_status=$? | |
18864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18865 | (exit $ac_status); }; } && | |
18866 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18868 | (eval $ac_try) 2>&5 | |
18869 | ac_status=$? | |
18870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18871 | (exit $ac_status); }; }; then | |
18872 | ac_hi=-1 ac_mid=-1 | |
18873 | while :; do | |
18874 | cat >conftest.$ac_ext <<_ACEOF | |
18875 | /* confdefs.h. */ | |
18876 | _ACEOF | |
18877 | cat confdefs.h >>conftest.$ac_ext | |
18878 | cat >>conftest.$ac_ext <<_ACEOF | |
18879 | /* end confdefs.h. */ | |
18880 | $ac_includes_default | |
18881 | int | |
18882 | main () | |
18883 | { | |
18884 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
18885 | test_array [0] = 0 | |
18886 | ||
18887 | ; | |
18888 | return 0; | |
18889 | } | |
18890 | _ACEOF | |
18891 | rm -f conftest.$ac_objext | |
18892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18893 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18894 | ac_status=$? |
ac1cb8d3 VS |
18895 | grep -v '^ *+' conftest.er1 >conftest.err |
18896 | rm -f conftest.er1 | |
18897 | cat conftest.err >&5 | |
a848cd7e SC |
18898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18899 | (exit $ac_status); } && | |
bb9e79c0 | 18900 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18902 | (eval $ac_try) 2>&5 | |
18903 | ac_status=$? | |
18904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18905 | (exit $ac_status); }; } && | |
18906 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18908 | (eval $ac_try) 2>&5 | |
18909 | ac_status=$? | |
18910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18911 | (exit $ac_status); }; }; then | |
18912 | ac_lo=$ac_mid; break | |
18913 | else | |
18914 | echo "$as_me: failed program was:" >&5 | |
18915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18916 | ||
18917 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18918 | if test $ac_mid -le $ac_hi; then |
18919 | ac_lo= ac_hi= | |
18920 | break | |
18921 | fi | |
18922 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18923 | fi |
ac1cb8d3 | 18924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18925 | done |
18926 | else | |
18927 | echo "$as_me: failed program was:" >&5 | |
18928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18929 | ||
18930 | ac_lo= ac_hi= | |
18931 | fi | |
ac1cb8d3 | 18932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18933 | fi |
ac1cb8d3 | 18934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18935 | # Binary search between lo and hi bounds. |
18936 | while test "x$ac_lo" != "x$ac_hi"; do | |
18937 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18938 | cat >conftest.$ac_ext <<_ACEOF | |
18939 | /* confdefs.h. */ | |
18940 | _ACEOF | |
18941 | cat confdefs.h >>conftest.$ac_ext | |
18942 | cat >>conftest.$ac_ext <<_ACEOF | |
18943 | /* end confdefs.h. */ | |
18944 | $ac_includes_default | |
18945 | int | |
18946 | main () | |
18947 | { | |
18948 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
18949 | test_array [0] = 0 | |
18950 | ||
18951 | ; | |
18952 | return 0; | |
18953 | } | |
18954 | _ACEOF | |
18955 | rm -f conftest.$ac_objext | |
18956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18957 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18958 | ac_status=$? |
ac1cb8d3 VS |
18959 | grep -v '^ *+' conftest.er1 >conftest.err |
18960 | rm -f conftest.er1 | |
18961 | cat conftest.err >&5 | |
a848cd7e SC |
18962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18963 | (exit $ac_status); } && | |
bb9e79c0 | 18964 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18966 | (eval $ac_try) 2>&5 | |
18967 | ac_status=$? | |
18968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18969 | (exit $ac_status); }; } && | |
18970 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18972 | (eval $ac_try) 2>&5 | |
18973 | ac_status=$? | |
18974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18975 | (exit $ac_status); }; }; then | |
18976 | ac_hi=$ac_mid | |
18977 | else | |
18978 | echo "$as_me: failed program was:" >&5 | |
18979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18980 | ||
18981 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18982 | fi | |
ac1cb8d3 | 18983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18984 | done |
18985 | case $ac_lo in | |
18986 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
18987 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18988 | See \`config.log' for more details." >&5 | |
18989 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18990 | See \`config.log' for more details." >&2;} | |
18991 | { (exit 1); exit 1; }; } ;; | |
18992 | esac | |
18993 | else | |
18994 | if test "$cross_compiling" = yes; then | |
bb9e79c0 VZ |
18995 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18996 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18997 | { (exit 1); exit 1; }; } |
18998 | else | |
18999 | cat >conftest.$ac_ext <<_ACEOF | |
19000 | /* confdefs.h. */ | |
19001 | _ACEOF | |
19002 | cat confdefs.h >>conftest.$ac_ext | |
19003 | cat >>conftest.$ac_ext <<_ACEOF | |
19004 | /* end confdefs.h. */ | |
19005 | $ac_includes_default | |
19006 | long longval () { return (long) (sizeof (short)); } | |
19007 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
19008 | #include <stdio.h> | |
19009 | #include <stdlib.h> | |
19010 | int | |
19011 | main () | |
19012 | { | |
19013 | ||
19014 | FILE *f = fopen ("conftest.val", "w"); | |
19015 | if (! f) | |
19016 | exit (1); | |
19017 | if (((long) (sizeof (short))) < 0) | |
19018 | { | |
19019 | long i = longval (); | |
19020 | if (i != ((long) (sizeof (short)))) | |
19021 | exit (1); | |
19022 | fprintf (f, "%ld\n", i); | |
19023 | } | |
19024 | else | |
19025 | { | |
19026 | unsigned long i = ulongval (); | |
19027 | if (i != ((long) (sizeof (short)))) | |
19028 | exit (1); | |
19029 | fprintf (f, "%lu\n", i); | |
19030 | } | |
19031 | exit (ferror (f) || fclose (f) != 0); | |
19032 | ||
19033 | ; | |
19034 | return 0; | |
19035 | } | |
19036 | _ACEOF | |
19037 | rm -f conftest$ac_exeext | |
19038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19039 | (eval $ac_link) 2>&5 | |
19040 | ac_status=$? | |
19041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19042 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19044 | (eval $ac_try) 2>&5 | |
19045 | ac_status=$? | |
19046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19047 | (exit $ac_status); }; }; then | |
19048 | ac_cv_sizeof_short=`cat conftest.val` | |
19049 | else | |
19050 | echo "$as_me: program exited with status $ac_status" >&5 | |
19051 | echo "$as_me: failed program was:" >&5 | |
19052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19053 | ||
19054 | ( exit $ac_status ) | |
19055 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
19056 | See \`config.log' for more details." >&5 | |
19057 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
19058 | See \`config.log' for more details." >&2;} | |
19059 | { (exit 1); exit 1; }; } | |
19060 | fi | |
ac1cb8d3 | 19061 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19062 | fi |
19063 | fi | |
19064 | rm -f conftest.val | |
19065 | else | |
19066 | ac_cv_sizeof_short=0 | |
19067 | fi | |
19068 | fi | |
19069 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
19070 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
19071 | cat >>confdefs.h <<_ACEOF | |
19072 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
19073 | _ACEOF | |
19074 | ||
19075 | ||
19076 | echo "$as_me:$LINENO: checking for void *" >&5 | |
19077 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
19078 | if test "${ac_cv_type_void_p+set}" = set; then | |
19079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19080 | else | |
19081 | cat >conftest.$ac_ext <<_ACEOF | |
19082 | /* confdefs.h. */ | |
19083 | _ACEOF | |
19084 | cat confdefs.h >>conftest.$ac_ext | |
19085 | cat >>conftest.$ac_ext <<_ACEOF | |
19086 | /* end confdefs.h. */ | |
19087 | $ac_includes_default | |
19088 | int | |
19089 | main () | |
19090 | { | |
19091 | if ((void * *) 0) | |
19092 | return 0; | |
19093 | if (sizeof (void *)) | |
19094 | return 0; | |
19095 | ; | |
19096 | return 0; | |
19097 | } | |
19098 | _ACEOF | |
19099 | rm -f conftest.$ac_objext | |
19100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19101 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19102 | ac_status=$? |
ac1cb8d3 VS |
19103 | grep -v '^ *+' conftest.er1 >conftest.err |
19104 | rm -f conftest.er1 | |
19105 | cat conftest.err >&5 | |
a848cd7e SC |
19106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19107 | (exit $ac_status); } && | |
bb9e79c0 | 19108 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19110 | (eval $ac_try) 2>&5 | |
19111 | ac_status=$? | |
19112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19113 | (exit $ac_status); }; } && | |
19114 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19116 | (eval $ac_try) 2>&5 | |
19117 | ac_status=$? | |
19118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19119 | (exit $ac_status); }; }; then | |
19120 | ac_cv_type_void_p=yes | |
19121 | else | |
19122 | echo "$as_me: failed program was:" >&5 | |
19123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19124 | ||
19125 | ac_cv_type_void_p=no | |
19126 | fi | |
ac1cb8d3 | 19127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19128 | fi |
19129 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
19130 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
19131 | ||
19132 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
19133 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
19134 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
19135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19136 | else | |
19137 | if test "$ac_cv_type_void_p" = yes; then | |
19138 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19139 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19140 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19141 | # This bug is HP SR number 8606223364. | |
19142 | if test "$cross_compiling" = yes; then | |
19143 | # Depending upon the size, compute the lo and hi bounds. | |
19144 | cat >conftest.$ac_ext <<_ACEOF | |
19145 | /* confdefs.h. */ | |
19146 | _ACEOF | |
19147 | cat confdefs.h >>conftest.$ac_ext | |
19148 | cat >>conftest.$ac_ext <<_ACEOF | |
19149 | /* end confdefs.h. */ | |
19150 | $ac_includes_default | |
19151 | int | |
19152 | main () | |
19153 | { | |
19154 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
19155 | test_array [0] = 0 | |
19156 | ||
19157 | ; | |
19158 | return 0; | |
19159 | } | |
19160 | _ACEOF | |
19161 | rm -f conftest.$ac_objext | |
19162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19163 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19164 | ac_status=$? |
ac1cb8d3 VS |
19165 | grep -v '^ *+' conftest.er1 >conftest.err |
19166 | rm -f conftest.er1 | |
19167 | cat conftest.err >&5 | |
a848cd7e SC |
19168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19169 | (exit $ac_status); } && | |
bb9e79c0 | 19170 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19172 | (eval $ac_try) 2>&5 | |
19173 | ac_status=$? | |
19174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19175 | (exit $ac_status); }; } && | |
19176 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19178 | (eval $ac_try) 2>&5 | |
19179 | ac_status=$? | |
19180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19181 | (exit $ac_status); }; }; then | |
19182 | ac_lo=0 ac_mid=0 | |
19183 | while :; do | |
19184 | cat >conftest.$ac_ext <<_ACEOF | |
19185 | /* confdefs.h. */ | |
19186 | _ACEOF | |
19187 | cat confdefs.h >>conftest.$ac_ext | |
19188 | cat >>conftest.$ac_ext <<_ACEOF | |
19189 | /* end confdefs.h. */ | |
19190 | $ac_includes_default | |
19191 | int | |
19192 | main () | |
19193 | { | |
19194 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
19195 | test_array [0] = 0 | |
19196 | ||
19197 | ; | |
19198 | return 0; | |
19199 | } | |
19200 | _ACEOF | |
19201 | rm -f conftest.$ac_objext | |
19202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19203 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19204 | ac_status=$? |
ac1cb8d3 VS |
19205 | grep -v '^ *+' conftest.er1 >conftest.err |
19206 | rm -f conftest.er1 | |
19207 | cat conftest.err >&5 | |
a848cd7e SC |
19208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19209 | (exit $ac_status); } && | |
bb9e79c0 | 19210 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19212 | (eval $ac_try) 2>&5 | |
19213 | ac_status=$? | |
19214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19215 | (exit $ac_status); }; } && | |
19216 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19218 | (eval $ac_try) 2>&5 | |
19219 | ac_status=$? | |
19220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19221 | (exit $ac_status); }; }; then | |
19222 | ac_hi=$ac_mid; break | |
19223 | else | |
19224 | echo "$as_me: failed program was:" >&5 | |
19225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19226 | ||
19227 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19228 | if test $ac_lo -le $ac_mid; then |
19229 | ac_lo= ac_hi= | |
19230 | break | |
19231 | fi | |
19232 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19233 | fi |
ac1cb8d3 | 19234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19235 | done |
19236 | else | |
19237 | echo "$as_me: failed program was:" >&5 | |
19238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19239 | ||
19240 | cat >conftest.$ac_ext <<_ACEOF | |
19241 | /* confdefs.h. */ | |
19242 | _ACEOF | |
19243 | cat confdefs.h >>conftest.$ac_ext | |
19244 | cat >>conftest.$ac_ext <<_ACEOF | |
19245 | /* end confdefs.h. */ | |
19246 | $ac_includes_default | |
19247 | int | |
19248 | main () | |
19249 | { | |
19250 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
19251 | test_array [0] = 0 | |
19252 | ||
19253 | ; | |
19254 | return 0; | |
19255 | } | |
19256 | _ACEOF | |
19257 | rm -f conftest.$ac_objext | |
19258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19259 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19260 | ac_status=$? |
ac1cb8d3 VS |
19261 | grep -v '^ *+' conftest.er1 >conftest.err |
19262 | rm -f conftest.er1 | |
19263 | cat conftest.err >&5 | |
a848cd7e SC |
19264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19265 | (exit $ac_status); } && | |
bb9e79c0 | 19266 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19268 | (eval $ac_try) 2>&5 | |
19269 | ac_status=$? | |
19270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19271 | (exit $ac_status); }; } && | |
19272 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19274 | (eval $ac_try) 2>&5 | |
19275 | ac_status=$? | |
19276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19277 | (exit $ac_status); }; }; then | |
19278 | ac_hi=-1 ac_mid=-1 | |
19279 | while :; do | |
19280 | cat >conftest.$ac_ext <<_ACEOF | |
19281 | /* confdefs.h. */ | |
19282 | _ACEOF | |
19283 | cat confdefs.h >>conftest.$ac_ext | |
19284 | cat >>conftest.$ac_ext <<_ACEOF | |
19285 | /* end confdefs.h. */ | |
19286 | $ac_includes_default | |
19287 | int | |
19288 | main () | |
19289 | { | |
19290 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
19291 | test_array [0] = 0 | |
19292 | ||
19293 | ; | |
19294 | return 0; | |
19295 | } | |
19296 | _ACEOF | |
19297 | rm -f conftest.$ac_objext | |
19298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19299 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19300 | ac_status=$? |
ac1cb8d3 VS |
19301 | grep -v '^ *+' conftest.er1 >conftest.err |
19302 | rm -f conftest.er1 | |
19303 | cat conftest.err >&5 | |
a848cd7e SC |
19304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19305 | (exit $ac_status); } && | |
bb9e79c0 | 19306 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19308 | (eval $ac_try) 2>&5 | |
19309 | ac_status=$? | |
19310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19311 | (exit $ac_status); }; } && | |
19312 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19314 | (eval $ac_try) 2>&5 | |
19315 | ac_status=$? | |
19316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19317 | (exit $ac_status); }; }; then | |
19318 | ac_lo=$ac_mid; break | |
19319 | else | |
19320 | echo "$as_me: failed program was:" >&5 | |
19321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19322 | ||
19323 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19324 | if test $ac_mid -le $ac_hi; then |
19325 | ac_lo= ac_hi= | |
19326 | break | |
19327 | fi | |
19328 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19329 | fi |
ac1cb8d3 | 19330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19331 | done |
19332 | else | |
19333 | echo "$as_me: failed program was:" >&5 | |
19334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19335 | ||
19336 | ac_lo= ac_hi= | |
19337 | fi | |
ac1cb8d3 | 19338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19339 | fi |
ac1cb8d3 | 19340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19341 | # Binary search between lo and hi bounds. |
19342 | while test "x$ac_lo" != "x$ac_hi"; do | |
19343 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19344 | cat >conftest.$ac_ext <<_ACEOF | |
19345 | /* confdefs.h. */ | |
19346 | _ACEOF | |
19347 | cat confdefs.h >>conftest.$ac_ext | |
19348 | cat >>conftest.$ac_ext <<_ACEOF | |
19349 | /* end confdefs.h. */ | |
19350 | $ac_includes_default | |
19351 | int | |
19352 | main () | |
19353 | { | |
19354 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
19355 | test_array [0] = 0 | |
19356 | ||
19357 | ; | |
19358 | return 0; | |
19359 | } | |
19360 | _ACEOF | |
19361 | rm -f conftest.$ac_objext | |
19362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19363 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19364 | ac_status=$? |
ac1cb8d3 VS |
19365 | grep -v '^ *+' conftest.er1 >conftest.err |
19366 | rm -f conftest.er1 | |
19367 | cat conftest.err >&5 | |
a848cd7e SC |
19368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19369 | (exit $ac_status); } && | |
bb9e79c0 | 19370 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19372 | (eval $ac_try) 2>&5 | |
19373 | ac_status=$? | |
19374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19375 | (exit $ac_status); }; } && | |
19376 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19378 | (eval $ac_try) 2>&5 | |
19379 | ac_status=$? | |
19380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19381 | (exit $ac_status); }; }; then | |
19382 | ac_hi=$ac_mid | |
19383 | else | |
19384 | echo "$as_me: failed program was:" >&5 | |
19385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19386 | ||
19387 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19388 | fi | |
ac1cb8d3 | 19389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19390 | done |
19391 | case $ac_lo in | |
19392 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
19393 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
19394 | See \`config.log' for more details." >&5 | |
19395 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
19396 | See \`config.log' for more details." >&2;} | |
19397 | { (exit 1); exit 1; }; } ;; | |
19398 | esac | |
19399 | else | |
19400 | if test "$cross_compiling" = yes; then | |
bb9e79c0 VZ |
19401 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19402 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19403 | { (exit 1); exit 1; }; } |
19404 | else | |
19405 | cat >conftest.$ac_ext <<_ACEOF | |
19406 | /* confdefs.h. */ | |
19407 | _ACEOF | |
19408 | cat confdefs.h >>conftest.$ac_ext | |
19409 | cat >>conftest.$ac_ext <<_ACEOF | |
19410 | /* end confdefs.h. */ | |
19411 | $ac_includes_default | |
19412 | long longval () { return (long) (sizeof (void *)); } | |
19413 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
19414 | #include <stdio.h> | |
19415 | #include <stdlib.h> | |
19416 | int | |
19417 | main () | |
19418 | { | |
19419 | ||
19420 | FILE *f = fopen ("conftest.val", "w"); | |
19421 | if (! f) | |
19422 | exit (1); | |
19423 | if (((long) (sizeof (void *))) < 0) | |
19424 | { | |
19425 | long i = longval (); | |
19426 | if (i != ((long) (sizeof (void *)))) | |
19427 | exit (1); | |
19428 | fprintf (f, "%ld\n", i); | |
19429 | } | |
19430 | else | |
19431 | { | |
19432 | unsigned long i = ulongval (); | |
19433 | if (i != ((long) (sizeof (void *)))) | |
19434 | exit (1); | |
19435 | fprintf (f, "%lu\n", i); | |
19436 | } | |
19437 | exit (ferror (f) || fclose (f) != 0); | |
19438 | ||
19439 | ; | |
19440 | return 0; | |
19441 | } | |
19442 | _ACEOF | |
19443 | rm -f conftest$ac_exeext | |
19444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19445 | (eval $ac_link) 2>&5 | |
19446 | ac_status=$? | |
19447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19448 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19450 | (eval $ac_try) 2>&5 | |
19451 | ac_status=$? | |
19452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19453 | (exit $ac_status); }; }; then | |
19454 | ac_cv_sizeof_void_p=`cat conftest.val` | |
19455 | else | |
19456 | echo "$as_me: program exited with status $ac_status" >&5 | |
19457 | echo "$as_me: failed program was:" >&5 | |
19458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19459 | ||
19460 | ( exit $ac_status ) | |
19461 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
19462 | See \`config.log' for more details." >&5 | |
19463 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
19464 | See \`config.log' for more details." >&2;} | |
19465 | { (exit 1); exit 1; }; } | |
19466 | fi | |
ac1cb8d3 | 19467 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19468 | fi |
19469 | fi | |
19470 | rm -f conftest.val | |
19471 | else | |
19472 | ac_cv_sizeof_void_p=0 | |
19473 | fi | |
19474 | fi | |
19475 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
19476 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
19477 | cat >>confdefs.h <<_ACEOF | |
19478 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
19479 | _ACEOF | |
19480 | ||
19481 | ||
19482 | echo "$as_me:$LINENO: checking for int" >&5 | |
19483 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
19484 | if test "${ac_cv_type_int+set}" = set; then | |
19485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19486 | else | |
19487 | cat >conftest.$ac_ext <<_ACEOF | |
19488 | /* confdefs.h. */ | |
19489 | _ACEOF | |
19490 | cat confdefs.h >>conftest.$ac_ext | |
19491 | cat >>conftest.$ac_ext <<_ACEOF | |
19492 | /* end confdefs.h. */ | |
19493 | $ac_includes_default | |
19494 | int | |
19495 | main () | |
19496 | { | |
19497 | if ((int *) 0) | |
19498 | return 0; | |
19499 | if (sizeof (int)) | |
19500 | return 0; | |
19501 | ; | |
19502 | return 0; | |
19503 | } | |
19504 | _ACEOF | |
19505 | rm -f conftest.$ac_objext | |
19506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19507 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19508 | ac_status=$? |
ac1cb8d3 VS |
19509 | grep -v '^ *+' conftest.er1 >conftest.err |
19510 | rm -f conftest.er1 | |
19511 | cat conftest.err >&5 | |
a848cd7e SC |
19512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19513 | (exit $ac_status); } && | |
bb9e79c0 | 19514 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19516 | (eval $ac_try) 2>&5 | |
19517 | ac_status=$? | |
19518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19519 | (exit $ac_status); }; } && | |
19520 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19522 | (eval $ac_try) 2>&5 | |
19523 | ac_status=$? | |
19524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19525 | (exit $ac_status); }; }; then | |
19526 | ac_cv_type_int=yes | |
19527 | else | |
19528 | echo "$as_me: failed program was:" >&5 | |
19529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19530 | ||
19531 | ac_cv_type_int=no | |
19532 | fi | |
ac1cb8d3 | 19533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19534 | fi |
19535 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
19536 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
19537 | ||
19538 | echo "$as_me:$LINENO: checking size of int" >&5 | |
19539 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
19540 | if test "${ac_cv_sizeof_int+set}" = set; then | |
19541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19542 | else | |
19543 | if test "$ac_cv_type_int" = yes; then | |
19544 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19545 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19546 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19547 | # This bug is HP SR number 8606223364. | |
19548 | if test "$cross_compiling" = yes; then | |
19549 | # Depending upon the size, compute the lo and hi bounds. | |
19550 | cat >conftest.$ac_ext <<_ACEOF | |
19551 | /* confdefs.h. */ | |
19552 | _ACEOF | |
19553 | cat confdefs.h >>conftest.$ac_ext | |
19554 | cat >>conftest.$ac_ext <<_ACEOF | |
19555 | /* end confdefs.h. */ | |
19556 | $ac_includes_default | |
19557 | int | |
19558 | main () | |
19559 | { | |
19560 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
19561 | test_array [0] = 0 | |
19562 | ||
19563 | ; | |
19564 | return 0; | |
19565 | } | |
19566 | _ACEOF | |
19567 | rm -f conftest.$ac_objext | |
19568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19569 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19570 | ac_status=$? |
ac1cb8d3 VS |
19571 | grep -v '^ *+' conftest.er1 >conftest.err |
19572 | rm -f conftest.er1 | |
19573 | cat conftest.err >&5 | |
a848cd7e SC |
19574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19575 | (exit $ac_status); } && | |
bb9e79c0 | 19576 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19578 | (eval $ac_try) 2>&5 | |
19579 | ac_status=$? | |
19580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19581 | (exit $ac_status); }; } && | |
19582 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19584 | (eval $ac_try) 2>&5 | |
19585 | ac_status=$? | |
19586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19587 | (exit $ac_status); }; }; then | |
19588 | ac_lo=0 ac_mid=0 | |
19589 | while :; do | |
19590 | cat >conftest.$ac_ext <<_ACEOF | |
19591 | /* confdefs.h. */ | |
19592 | _ACEOF | |
19593 | cat confdefs.h >>conftest.$ac_ext | |
19594 | cat >>conftest.$ac_ext <<_ACEOF | |
19595 | /* end confdefs.h. */ | |
19596 | $ac_includes_default | |
19597 | int | |
19598 | main () | |
19599 | { | |
19600 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
19601 | test_array [0] = 0 | |
19602 | ||
19603 | ; | |
19604 | return 0; | |
19605 | } | |
19606 | _ACEOF | |
19607 | rm -f conftest.$ac_objext | |
19608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19609 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19610 | ac_status=$? |
ac1cb8d3 VS |
19611 | grep -v '^ *+' conftest.er1 >conftest.err |
19612 | rm -f conftest.er1 | |
19613 | cat conftest.err >&5 | |
a848cd7e SC |
19614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19615 | (exit $ac_status); } && | |
bb9e79c0 | 19616 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19618 | (eval $ac_try) 2>&5 | |
19619 | ac_status=$? | |
19620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19621 | (exit $ac_status); }; } && | |
19622 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19624 | (eval $ac_try) 2>&5 | |
19625 | ac_status=$? | |
19626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19627 | (exit $ac_status); }; }; then | |
19628 | ac_hi=$ac_mid; break | |
19629 | else | |
19630 | echo "$as_me: failed program was:" >&5 | |
19631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19632 | ||
19633 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19634 | if test $ac_lo -le $ac_mid; then |
19635 | ac_lo= ac_hi= | |
19636 | break | |
19637 | fi | |
19638 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19639 | fi |
ac1cb8d3 | 19640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19641 | done |
19642 | else | |
19643 | echo "$as_me: failed program was:" >&5 | |
19644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19645 | ||
19646 | cat >conftest.$ac_ext <<_ACEOF | |
19647 | /* confdefs.h. */ | |
19648 | _ACEOF | |
19649 | cat confdefs.h >>conftest.$ac_ext | |
19650 | cat >>conftest.$ac_ext <<_ACEOF | |
19651 | /* end confdefs.h. */ | |
19652 | $ac_includes_default | |
19653 | int | |
19654 | main () | |
19655 | { | |
19656 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
19657 | test_array [0] = 0 | |
19658 | ||
19659 | ; | |
19660 | return 0; | |
19661 | } | |
19662 | _ACEOF | |
19663 | rm -f conftest.$ac_objext | |
19664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19665 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19666 | ac_status=$? |
ac1cb8d3 VS |
19667 | grep -v '^ *+' conftest.er1 >conftest.err |
19668 | rm -f conftest.er1 | |
19669 | cat conftest.err >&5 | |
a848cd7e SC |
19670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19671 | (exit $ac_status); } && | |
bb9e79c0 | 19672 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19674 | (eval $ac_try) 2>&5 | |
19675 | ac_status=$? | |
19676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19677 | (exit $ac_status); }; } && | |
19678 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19680 | (eval $ac_try) 2>&5 | |
19681 | ac_status=$? | |
19682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19683 | (exit $ac_status); }; }; then | |
19684 | ac_hi=-1 ac_mid=-1 | |
19685 | while :; do | |
19686 | cat >conftest.$ac_ext <<_ACEOF | |
19687 | /* confdefs.h. */ | |
19688 | _ACEOF | |
19689 | cat confdefs.h >>conftest.$ac_ext | |
19690 | cat >>conftest.$ac_ext <<_ACEOF | |
19691 | /* end confdefs.h. */ | |
19692 | $ac_includes_default | |
19693 | int | |
19694 | main () | |
19695 | { | |
19696 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
19697 | test_array [0] = 0 | |
19698 | ||
19699 | ; | |
19700 | return 0; | |
19701 | } | |
19702 | _ACEOF | |
19703 | rm -f conftest.$ac_objext | |
19704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19705 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19706 | ac_status=$? |
ac1cb8d3 VS |
19707 | grep -v '^ *+' conftest.er1 >conftest.err |
19708 | rm -f conftest.er1 | |
19709 | cat conftest.err >&5 | |
a848cd7e SC |
19710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19711 | (exit $ac_status); } && | |
bb9e79c0 | 19712 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19714 | (eval $ac_try) 2>&5 | |
19715 | ac_status=$? | |
19716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19717 | (exit $ac_status); }; } && | |
19718 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19720 | (eval $ac_try) 2>&5 | |
19721 | ac_status=$? | |
19722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19723 | (exit $ac_status); }; }; then | |
19724 | ac_lo=$ac_mid; break | |
19725 | else | |
19726 | echo "$as_me: failed program was:" >&5 | |
19727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19728 | ||
19729 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19730 | if test $ac_mid -le $ac_hi; then |
19731 | ac_lo= ac_hi= | |
19732 | break | |
19733 | fi | |
19734 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19735 | fi |
ac1cb8d3 | 19736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19737 | done |
19738 | else | |
19739 | echo "$as_me: failed program was:" >&5 | |
19740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19741 | ||
19742 | ac_lo= ac_hi= | |
19743 | fi | |
ac1cb8d3 | 19744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19745 | fi |
ac1cb8d3 | 19746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19747 | # Binary search between lo and hi bounds. |
19748 | while test "x$ac_lo" != "x$ac_hi"; do | |
19749 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19750 | cat >conftest.$ac_ext <<_ACEOF | |
19751 | /* confdefs.h. */ | |
19752 | _ACEOF | |
19753 | cat confdefs.h >>conftest.$ac_ext | |
19754 | cat >>conftest.$ac_ext <<_ACEOF | |
19755 | /* end confdefs.h. */ | |
19756 | $ac_includes_default | |
19757 | int | |
19758 | main () | |
19759 | { | |
19760 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
19761 | test_array [0] = 0 | |
19762 | ||
19763 | ; | |
19764 | return 0; | |
19765 | } | |
19766 | _ACEOF | |
19767 | rm -f conftest.$ac_objext | |
19768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19769 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19770 | ac_status=$? |
ac1cb8d3 VS |
19771 | grep -v '^ *+' conftest.er1 >conftest.err |
19772 | rm -f conftest.er1 | |
19773 | cat conftest.err >&5 | |
a848cd7e SC |
19774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19775 | (exit $ac_status); } && | |
bb9e79c0 | 19776 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19778 | (eval $ac_try) 2>&5 | |
19779 | ac_status=$? | |
19780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19781 | (exit $ac_status); }; } && | |
19782 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19784 | (eval $ac_try) 2>&5 | |
19785 | ac_status=$? | |
19786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19787 | (exit $ac_status); }; }; then | |
19788 | ac_hi=$ac_mid | |
19789 | else | |
19790 | echo "$as_me: failed program was:" >&5 | |
19791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19792 | ||
19793 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19794 | fi | |
ac1cb8d3 | 19795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19796 | done |
19797 | case $ac_lo in | |
19798 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
19799 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
19800 | See \`config.log' for more details." >&5 | |
19801 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
19802 | See \`config.log' for more details." >&2;} | |
19803 | { (exit 1); exit 1; }; } ;; | |
19804 | esac | |
19805 | else | |
19806 | if test "$cross_compiling" = yes; then | |
bb9e79c0 VZ |
19807 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19808 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19809 | { (exit 1); exit 1; }; } |
19810 | else | |
19811 | cat >conftest.$ac_ext <<_ACEOF | |
19812 | /* confdefs.h. */ | |
19813 | _ACEOF | |
19814 | cat confdefs.h >>conftest.$ac_ext | |
19815 | cat >>conftest.$ac_ext <<_ACEOF | |
19816 | /* end confdefs.h. */ | |
19817 | $ac_includes_default | |
19818 | long longval () { return (long) (sizeof (int)); } | |
19819 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
19820 | #include <stdio.h> | |
19821 | #include <stdlib.h> | |
19822 | int | |
19823 | main () | |
19824 | { | |
19825 | ||
19826 | FILE *f = fopen ("conftest.val", "w"); | |
19827 | if (! f) | |
19828 | exit (1); | |
19829 | if (((long) (sizeof (int))) < 0) | |
19830 | { | |
19831 | long i = longval (); | |
19832 | if (i != ((long) (sizeof (int)))) | |
19833 | exit (1); | |
19834 | fprintf (f, "%ld\n", i); | |
19835 | } | |
19836 | else | |
19837 | { | |
19838 | unsigned long i = ulongval (); | |
19839 | if (i != ((long) (sizeof (int)))) | |
19840 | exit (1); | |
19841 | fprintf (f, "%lu\n", i); | |
19842 | } | |
19843 | exit (ferror (f) || fclose (f) != 0); | |
19844 | ||
19845 | ; | |
19846 | return 0; | |
19847 | } | |
19848 | _ACEOF | |
19849 | rm -f conftest$ac_exeext | |
19850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19851 | (eval $ac_link) 2>&5 | |
19852 | ac_status=$? | |
19853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19854 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19856 | (eval $ac_try) 2>&5 | |
19857 | ac_status=$? | |
19858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19859 | (exit $ac_status); }; }; then | |
19860 | ac_cv_sizeof_int=`cat conftest.val` | |
19861 | else | |
19862 | echo "$as_me: program exited with status $ac_status" >&5 | |
19863 | echo "$as_me: failed program was:" >&5 | |
19864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19865 | ||
19866 | ( exit $ac_status ) | |
19867 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
19868 | See \`config.log' for more details." >&5 | |
19869 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
19870 | See \`config.log' for more details." >&2;} | |
19871 | { (exit 1); exit 1; }; } | |
19872 | fi | |
ac1cb8d3 | 19873 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19874 | fi |
19875 | fi | |
19876 | rm -f conftest.val | |
19877 | else | |
19878 | ac_cv_sizeof_int=0 | |
19879 | fi | |
19880 | fi | |
19881 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
19882 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
19883 | cat >>confdefs.h <<_ACEOF | |
19884 | #define SIZEOF_INT $ac_cv_sizeof_int | |
19885 | _ACEOF | |
19886 | ||
19887 | ||
19888 | echo "$as_me:$LINENO: checking for long" >&5 | |
19889 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
19890 | if test "${ac_cv_type_long+set}" = set; then | |
19891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19892 | else | |
19893 | cat >conftest.$ac_ext <<_ACEOF | |
19894 | /* confdefs.h. */ | |
19895 | _ACEOF | |
19896 | cat confdefs.h >>conftest.$ac_ext | |
19897 | cat >>conftest.$ac_ext <<_ACEOF | |
19898 | /* end confdefs.h. */ | |
19899 | $ac_includes_default | |
19900 | int | |
19901 | main () | |
19902 | { | |
19903 | if ((long *) 0) | |
19904 | return 0; | |
19905 | if (sizeof (long)) | |
19906 | return 0; | |
19907 | ; | |
19908 | return 0; | |
19909 | } | |
19910 | _ACEOF | |
19911 | rm -f conftest.$ac_objext | |
19912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19913 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19914 | ac_status=$? |
ac1cb8d3 VS |
19915 | grep -v '^ *+' conftest.er1 >conftest.err |
19916 | rm -f conftest.er1 | |
19917 | cat conftest.err >&5 | |
a848cd7e SC |
19918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19919 | (exit $ac_status); } && | |
bb9e79c0 | 19920 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19922 | (eval $ac_try) 2>&5 | |
19923 | ac_status=$? | |
19924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19925 | (exit $ac_status); }; } && | |
19926 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19928 | (eval $ac_try) 2>&5 | |
19929 | ac_status=$? | |
19930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19931 | (exit $ac_status); }; }; then | |
19932 | ac_cv_type_long=yes | |
19933 | else | |
19934 | echo "$as_me: failed program was:" >&5 | |
19935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19936 | ||
19937 | ac_cv_type_long=no | |
19938 | fi | |
ac1cb8d3 | 19939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19940 | fi |
19941 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
19942 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
19943 | ||
19944 | echo "$as_me:$LINENO: checking size of long" >&5 | |
19945 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
19946 | if test "${ac_cv_sizeof_long+set}" = set; then | |
19947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19948 | else | |
19949 | if test "$ac_cv_type_long" = yes; then | |
19950 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19951 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19952 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19953 | # This bug is HP SR number 8606223364. | |
19954 | if test "$cross_compiling" = yes; then | |
19955 | # Depending upon the size, compute the lo and hi bounds. | |
19956 | cat >conftest.$ac_ext <<_ACEOF | |
19957 | /* confdefs.h. */ | |
19958 | _ACEOF | |
19959 | cat confdefs.h >>conftest.$ac_ext | |
19960 | cat >>conftest.$ac_ext <<_ACEOF | |
19961 | /* end confdefs.h. */ | |
19962 | $ac_includes_default | |
19963 | int | |
19964 | main () | |
19965 | { | |
19966 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
19967 | test_array [0] = 0 | |
19968 | ||
19969 | ; | |
19970 | return 0; | |
19971 | } | |
19972 | _ACEOF | |
19973 | rm -f conftest.$ac_objext | |
19974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19975 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19976 | ac_status=$? |
ac1cb8d3 VS |
19977 | grep -v '^ *+' conftest.er1 >conftest.err |
19978 | rm -f conftest.er1 | |
19979 | cat conftest.err >&5 | |
a848cd7e SC |
19980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19981 | (exit $ac_status); } && | |
bb9e79c0 | 19982 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19984 | (eval $ac_try) 2>&5 | |
19985 | ac_status=$? | |
19986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19987 | (exit $ac_status); }; } && | |
19988 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19990 | (eval $ac_try) 2>&5 | |
19991 | ac_status=$? | |
19992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19993 | (exit $ac_status); }; }; then | |
19994 | ac_lo=0 ac_mid=0 | |
19995 | while :; do | |
19996 | cat >conftest.$ac_ext <<_ACEOF | |
19997 | /* confdefs.h. */ | |
19998 | _ACEOF | |
19999 | cat confdefs.h >>conftest.$ac_ext | |
20000 | cat >>conftest.$ac_ext <<_ACEOF | |
20001 | /* end confdefs.h. */ | |
20002 | $ac_includes_default | |
20003 | int | |
20004 | main () | |
20005 | { | |
20006 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
20007 | test_array [0] = 0 | |
20008 | ||
20009 | ; | |
20010 | return 0; | |
20011 | } | |
20012 | _ACEOF | |
20013 | rm -f conftest.$ac_objext | |
20014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20015 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20016 | ac_status=$? |
ac1cb8d3 VS |
20017 | grep -v '^ *+' conftest.er1 >conftest.err |
20018 | rm -f conftest.er1 | |
20019 | cat conftest.err >&5 | |
a848cd7e SC |
20020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20021 | (exit $ac_status); } && | |
bb9e79c0 | 20022 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20024 | (eval $ac_try) 2>&5 | |
20025 | ac_status=$? | |
20026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20027 | (exit $ac_status); }; } && | |
20028 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20030 | (eval $ac_try) 2>&5 | |
20031 | ac_status=$? | |
20032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20033 | (exit $ac_status); }; }; then | |
20034 | ac_hi=$ac_mid; break | |
20035 | else | |
20036 | echo "$as_me: failed program was:" >&5 | |
20037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20038 | ||
20039 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20040 | if test $ac_lo -le $ac_mid; then |
20041 | ac_lo= ac_hi= | |
20042 | break | |
20043 | fi | |
20044 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20045 | fi |
ac1cb8d3 | 20046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20047 | done |
20048 | else | |
20049 | echo "$as_me: failed program was:" >&5 | |
20050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20051 | ||
20052 | cat >conftest.$ac_ext <<_ACEOF | |
20053 | /* confdefs.h. */ | |
20054 | _ACEOF | |
20055 | cat confdefs.h >>conftest.$ac_ext | |
20056 | cat >>conftest.$ac_ext <<_ACEOF | |
20057 | /* end confdefs.h. */ | |
20058 | $ac_includes_default | |
20059 | int | |
20060 | main () | |
20061 | { | |
20062 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
20063 | test_array [0] = 0 | |
20064 | ||
20065 | ; | |
20066 | return 0; | |
20067 | } | |
20068 | _ACEOF | |
20069 | rm -f conftest.$ac_objext | |
20070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20071 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20072 | ac_status=$? |
ac1cb8d3 VS |
20073 | grep -v '^ *+' conftest.er1 >conftest.err |
20074 | rm -f conftest.er1 | |
20075 | cat conftest.err >&5 | |
a848cd7e SC |
20076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20077 | (exit $ac_status); } && | |
bb9e79c0 | 20078 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20080 | (eval $ac_try) 2>&5 | |
20081 | ac_status=$? | |
20082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20083 | (exit $ac_status); }; } && | |
20084 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20086 | (eval $ac_try) 2>&5 | |
20087 | ac_status=$? | |
20088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20089 | (exit $ac_status); }; }; then | |
20090 | ac_hi=-1 ac_mid=-1 | |
20091 | while :; do | |
20092 | cat >conftest.$ac_ext <<_ACEOF | |
20093 | /* confdefs.h. */ | |
20094 | _ACEOF | |
20095 | cat confdefs.h >>conftest.$ac_ext | |
20096 | cat >>conftest.$ac_ext <<_ACEOF | |
20097 | /* end confdefs.h. */ | |
20098 | $ac_includes_default | |
20099 | int | |
20100 | main () | |
20101 | { | |
20102 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
20103 | test_array [0] = 0 | |
20104 | ||
20105 | ; | |
20106 | return 0; | |
20107 | } | |
20108 | _ACEOF | |
20109 | rm -f conftest.$ac_objext | |
20110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20111 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20112 | ac_status=$? |
ac1cb8d3 VS |
20113 | grep -v '^ *+' conftest.er1 >conftest.err |
20114 | rm -f conftest.er1 | |
20115 | cat conftest.err >&5 | |
a848cd7e SC |
20116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20117 | (exit $ac_status); } && | |
bb9e79c0 | 20118 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20120 | (eval $ac_try) 2>&5 | |
20121 | ac_status=$? | |
20122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20123 | (exit $ac_status); }; } && | |
20124 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20126 | (eval $ac_try) 2>&5 | |
20127 | ac_status=$? | |
20128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20129 | (exit $ac_status); }; }; then | |
20130 | ac_lo=$ac_mid; break | |
20131 | else | |
20132 | echo "$as_me: failed program was:" >&5 | |
20133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20134 | ||
20135 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20136 | if test $ac_mid -le $ac_hi; then |
20137 | ac_lo= ac_hi= | |
20138 | break | |
20139 | fi | |
20140 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20141 | fi |
ac1cb8d3 | 20142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20143 | done |
20144 | else | |
20145 | echo "$as_me: failed program was:" >&5 | |
20146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20147 | ||
20148 | ac_lo= ac_hi= | |
20149 | fi | |
ac1cb8d3 | 20150 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20151 | fi |
ac1cb8d3 | 20152 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20153 | # Binary search between lo and hi bounds. |
20154 | while test "x$ac_lo" != "x$ac_hi"; do | |
20155 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20156 | cat >conftest.$ac_ext <<_ACEOF | |
20157 | /* confdefs.h. */ | |
20158 | _ACEOF | |
20159 | cat confdefs.h >>conftest.$ac_ext | |
20160 | cat >>conftest.$ac_ext <<_ACEOF | |
20161 | /* end confdefs.h. */ | |
20162 | $ac_includes_default | |
20163 | int | |
20164 | main () | |
20165 | { | |
20166 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
20167 | test_array [0] = 0 | |
20168 | ||
20169 | ; | |
20170 | return 0; | |
20171 | } | |
20172 | _ACEOF | |
20173 | rm -f conftest.$ac_objext | |
20174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20175 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20176 | ac_status=$? |
ac1cb8d3 VS |
20177 | grep -v '^ *+' conftest.er1 >conftest.err |
20178 | rm -f conftest.er1 | |
20179 | cat conftest.err >&5 | |
a848cd7e SC |
20180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20181 | (exit $ac_status); } && | |
bb9e79c0 | 20182 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20184 | (eval $ac_try) 2>&5 | |
20185 | ac_status=$? | |
20186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20187 | (exit $ac_status); }; } && | |
20188 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20190 | (eval $ac_try) 2>&5 | |
20191 | ac_status=$? | |
20192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20193 | (exit $ac_status); }; }; then | |
20194 | ac_hi=$ac_mid | |
20195 | else | |
20196 | echo "$as_me: failed program was:" >&5 | |
20197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20198 | ||
20199 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20200 | fi | |
ac1cb8d3 | 20201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20202 | done |
20203 | case $ac_lo in | |
20204 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
20205 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
20206 | See \`config.log' for more details." >&5 | |
20207 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
20208 | See \`config.log' for more details." >&2;} | |
20209 | { (exit 1); exit 1; }; } ;; | |
20210 | esac | |
20211 | else | |
20212 | if test "$cross_compiling" = yes; then | |
bb9e79c0 VZ |
20213 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20214 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20215 | { (exit 1); exit 1; }; } |
20216 | else | |
20217 | cat >conftest.$ac_ext <<_ACEOF | |
20218 | /* confdefs.h. */ | |
20219 | _ACEOF | |
20220 | cat confdefs.h >>conftest.$ac_ext | |
20221 | cat >>conftest.$ac_ext <<_ACEOF | |
20222 | /* end confdefs.h. */ | |
20223 | $ac_includes_default | |
20224 | long longval () { return (long) (sizeof (long)); } | |
20225 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
20226 | #include <stdio.h> | |
20227 | #include <stdlib.h> | |
20228 | int | |
20229 | main () | |
20230 | { | |
20231 | ||
20232 | FILE *f = fopen ("conftest.val", "w"); | |
20233 | if (! f) | |
20234 | exit (1); | |
20235 | if (((long) (sizeof (long))) < 0) | |
20236 | { | |
20237 | long i = longval (); | |
20238 | if (i != ((long) (sizeof (long)))) | |
20239 | exit (1); | |
20240 | fprintf (f, "%ld\n", i); | |
20241 | } | |
20242 | else | |
20243 | { | |
20244 | unsigned long i = ulongval (); | |
20245 | if (i != ((long) (sizeof (long)))) | |
20246 | exit (1); | |
20247 | fprintf (f, "%lu\n", i); | |
20248 | } | |
20249 | exit (ferror (f) || fclose (f) != 0); | |
20250 | ||
20251 | ; | |
20252 | return 0; | |
20253 | } | |
20254 | _ACEOF | |
20255 | rm -f conftest$ac_exeext | |
20256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20257 | (eval $ac_link) 2>&5 | |
20258 | ac_status=$? | |
20259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20260 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20262 | (eval $ac_try) 2>&5 | |
20263 | ac_status=$? | |
20264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20265 | (exit $ac_status); }; }; then | |
20266 | ac_cv_sizeof_long=`cat conftest.val` | |
20267 | else | |
20268 | echo "$as_me: program exited with status $ac_status" >&5 | |
20269 | echo "$as_me: failed program was:" >&5 | |
20270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20271 | ||
20272 | ( exit $ac_status ) | |
20273 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
20274 | See \`config.log' for more details." >&5 | |
20275 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
20276 | See \`config.log' for more details." >&2;} | |
20277 | { (exit 1); exit 1; }; } | |
20278 | fi | |
ac1cb8d3 | 20279 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20280 | fi |
20281 | fi | |
20282 | rm -f conftest.val | |
20283 | else | |
20284 | ac_cv_sizeof_long=0 | |
20285 | fi | |
20286 | fi | |
20287 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
20288 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
20289 | cat >>confdefs.h <<_ACEOF | |
20290 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
20291 | _ACEOF | |
20292 | ||
20293 | ||
20294 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
20295 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
20296 | if test "${ac_cv_type_size_t+set}" = set; then | |
20297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20298 | else | |
20299 | cat >conftest.$ac_ext <<_ACEOF | |
20300 | /* confdefs.h. */ | |
20301 | _ACEOF | |
20302 | cat confdefs.h >>conftest.$ac_ext | |
20303 | cat >>conftest.$ac_ext <<_ACEOF | |
20304 | /* end confdefs.h. */ | |
20305 | $ac_includes_default | |
20306 | int | |
20307 | main () | |
20308 | { | |
20309 | if ((size_t *) 0) | |
20310 | return 0; | |
20311 | if (sizeof (size_t)) | |
20312 | return 0; | |
20313 | ; | |
20314 | return 0; | |
20315 | } | |
20316 | _ACEOF | |
20317 | rm -f conftest.$ac_objext | |
20318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20319 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20320 | ac_status=$? |
ac1cb8d3 VS |
20321 | grep -v '^ *+' conftest.er1 >conftest.err |
20322 | rm -f conftest.er1 | |
20323 | cat conftest.err >&5 | |
a848cd7e SC |
20324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20325 | (exit $ac_status); } && | |
bb9e79c0 | 20326 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20328 | (eval $ac_try) 2>&5 | |
20329 | ac_status=$? | |
20330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20331 | (exit $ac_status); }; } && | |
20332 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20334 | (eval $ac_try) 2>&5 | |
20335 | ac_status=$? | |
20336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20337 | (exit $ac_status); }; }; then | |
20338 | ac_cv_type_size_t=yes | |
20339 | else | |
20340 | echo "$as_me: failed program was:" >&5 | |
20341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20342 | ||
20343 | ac_cv_type_size_t=no | |
20344 | fi | |
ac1cb8d3 | 20345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20346 | fi |
20347 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
20348 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
20349 | ||
20350 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
20351 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
20352 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
20353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20354 | else | |
20355 | if test "$ac_cv_type_size_t" = yes; then | |
20356 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20357 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20358 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20359 | # This bug is HP SR number 8606223364. | |
20360 | if test "$cross_compiling" = yes; then | |
20361 | # Depending upon the size, compute the lo and hi bounds. | |
20362 | cat >conftest.$ac_ext <<_ACEOF | |
20363 | /* confdefs.h. */ | |
20364 | _ACEOF | |
20365 | cat confdefs.h >>conftest.$ac_ext | |
20366 | cat >>conftest.$ac_ext <<_ACEOF | |
20367 | /* end confdefs.h. */ | |
20368 | $ac_includes_default | |
20369 | int | |
20370 | main () | |
20371 | { | |
20372 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
20373 | test_array [0] = 0 | |
20374 | ||
20375 | ; | |
20376 | return 0; | |
20377 | } | |
20378 | _ACEOF | |
20379 | rm -f conftest.$ac_objext | |
20380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20381 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20382 | ac_status=$? |
ac1cb8d3 VS |
20383 | grep -v '^ *+' conftest.er1 >conftest.err |
20384 | rm -f conftest.er1 | |
20385 | cat conftest.err >&5 | |
a848cd7e SC |
20386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20387 | (exit $ac_status); } && | |
bb9e79c0 | 20388 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20390 | (eval $ac_try) 2>&5 | |
20391 | ac_status=$? | |
20392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20393 | (exit $ac_status); }; } && | |
20394 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20396 | (eval $ac_try) 2>&5 | |
20397 | ac_status=$? | |
20398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20399 | (exit $ac_status); }; }; then | |
20400 | ac_lo=0 ac_mid=0 | |
20401 | while :; do | |
20402 | cat >conftest.$ac_ext <<_ACEOF | |
20403 | /* confdefs.h. */ | |
20404 | _ACEOF | |
20405 | cat confdefs.h >>conftest.$ac_ext | |
20406 | cat >>conftest.$ac_ext <<_ACEOF | |
20407 | /* end confdefs.h. */ | |
20408 | $ac_includes_default | |
20409 | int | |
20410 | main () | |
20411 | { | |
20412 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
20413 | test_array [0] = 0 | |
20414 | ||
20415 | ; | |
20416 | return 0; | |
20417 | } | |
20418 | _ACEOF | |
20419 | rm -f conftest.$ac_objext | |
20420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20421 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20422 | ac_status=$? |
ac1cb8d3 VS |
20423 | grep -v '^ *+' conftest.er1 >conftest.err |
20424 | rm -f conftest.er1 | |
20425 | cat conftest.err >&5 | |
a848cd7e SC |
20426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20427 | (exit $ac_status); } && | |
bb9e79c0 | 20428 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20430 | (eval $ac_try) 2>&5 | |
20431 | ac_status=$? | |
20432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20433 | (exit $ac_status); }; } && | |
20434 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20436 | (eval $ac_try) 2>&5 | |
20437 | ac_status=$? | |
20438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20439 | (exit $ac_status); }; }; then | |
20440 | ac_hi=$ac_mid; break | |
20441 | else | |
20442 | echo "$as_me: failed program was:" >&5 | |
20443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20444 | ||
20445 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20446 | if test $ac_lo -le $ac_mid; then |
20447 | ac_lo= ac_hi= | |
20448 | break | |
20449 | fi | |
20450 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20451 | fi |
ac1cb8d3 | 20452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20453 | done |
20454 | else | |
20455 | echo "$as_me: failed program was:" >&5 | |
20456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20457 | ||
20458 | cat >conftest.$ac_ext <<_ACEOF | |
20459 | /* confdefs.h. */ | |
20460 | _ACEOF | |
20461 | cat confdefs.h >>conftest.$ac_ext | |
20462 | cat >>conftest.$ac_ext <<_ACEOF | |
20463 | /* end confdefs.h. */ | |
20464 | $ac_includes_default | |
20465 | int | |
20466 | main () | |
20467 | { | |
20468 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
20469 | test_array [0] = 0 | |
20470 | ||
20471 | ; | |
20472 | return 0; | |
20473 | } | |
20474 | _ACEOF | |
20475 | rm -f conftest.$ac_objext | |
20476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20477 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20478 | ac_status=$? |
ac1cb8d3 VS |
20479 | grep -v '^ *+' conftest.er1 >conftest.err |
20480 | rm -f conftest.er1 | |
20481 | cat conftest.err >&5 | |
a848cd7e SC |
20482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20483 | (exit $ac_status); } && | |
bb9e79c0 | 20484 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20486 | (eval $ac_try) 2>&5 | |
20487 | ac_status=$? | |
20488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20489 | (exit $ac_status); }; } && | |
20490 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20492 | (eval $ac_try) 2>&5 | |
20493 | ac_status=$? | |
20494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20495 | (exit $ac_status); }; }; then | |
20496 | ac_hi=-1 ac_mid=-1 | |
20497 | while :; do | |
20498 | cat >conftest.$ac_ext <<_ACEOF | |
20499 | /* confdefs.h. */ | |
20500 | _ACEOF | |
20501 | cat confdefs.h >>conftest.$ac_ext | |
20502 | cat >>conftest.$ac_ext <<_ACEOF | |
20503 | /* end confdefs.h. */ | |
20504 | $ac_includes_default | |
20505 | int | |
20506 | main () | |
20507 | { | |
20508 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
20509 | test_array [0] = 0 | |
20510 | ||
20511 | ; | |
20512 | return 0; | |
20513 | } | |
20514 | _ACEOF | |
20515 | rm -f conftest.$ac_objext | |
20516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20517 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20518 | ac_status=$? |
ac1cb8d3 VS |
20519 | grep -v '^ *+' conftest.er1 >conftest.err |
20520 | rm -f conftest.er1 | |
20521 | cat conftest.err >&5 | |
a848cd7e SC |
20522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20523 | (exit $ac_status); } && | |
bb9e79c0 | 20524 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20526 | (eval $ac_try) 2>&5 | |
20527 | ac_status=$? | |
20528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20529 | (exit $ac_status); }; } && | |
20530 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20532 | (eval $ac_try) 2>&5 | |
20533 | ac_status=$? | |
20534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20535 | (exit $ac_status); }; }; then | |
20536 | ac_lo=$ac_mid; break | |
20537 | else | |
20538 | echo "$as_me: failed program was:" >&5 | |
20539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20540 | ||
20541 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20542 | if test $ac_mid -le $ac_hi; then |
20543 | ac_lo= ac_hi= | |
20544 | break | |
20545 | fi | |
20546 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20547 | fi |
ac1cb8d3 | 20548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20549 | done |
20550 | else | |
20551 | echo "$as_me: failed program was:" >&5 | |
20552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20553 | ||
20554 | ac_lo= ac_hi= | |
20555 | fi | |
ac1cb8d3 | 20556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20557 | fi |
ac1cb8d3 | 20558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20559 | # Binary search between lo and hi bounds. |
20560 | while test "x$ac_lo" != "x$ac_hi"; do | |
20561 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20562 | cat >conftest.$ac_ext <<_ACEOF | |
20563 | /* confdefs.h. */ | |
20564 | _ACEOF | |
20565 | cat confdefs.h >>conftest.$ac_ext | |
20566 | cat >>conftest.$ac_ext <<_ACEOF | |
20567 | /* end confdefs.h. */ | |
20568 | $ac_includes_default | |
20569 | int | |
20570 | main () | |
20571 | { | |
20572 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
20573 | test_array [0] = 0 | |
20574 | ||
20575 | ; | |
20576 | return 0; | |
20577 | } | |
20578 | _ACEOF | |
20579 | rm -f conftest.$ac_objext | |
20580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20581 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20582 | ac_status=$? |
ac1cb8d3 VS |
20583 | grep -v '^ *+' conftest.er1 >conftest.err |
20584 | rm -f conftest.er1 | |
20585 | cat conftest.err >&5 | |
a848cd7e SC |
20586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20587 | (exit $ac_status); } && | |
bb9e79c0 | 20588 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20590 | (eval $ac_try) 2>&5 | |
20591 | ac_status=$? | |
20592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20593 | (exit $ac_status); }; } && | |
20594 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20596 | (eval $ac_try) 2>&5 | |
20597 | ac_status=$? | |
20598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20599 | (exit $ac_status); }; }; then | |
20600 | ac_hi=$ac_mid | |
20601 | else | |
20602 | echo "$as_me: failed program was:" >&5 | |
20603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20604 | ||
20605 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20606 | fi | |
ac1cb8d3 | 20607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20608 | done |
20609 | case $ac_lo in | |
20610 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
20611 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
20612 | See \`config.log' for more details." >&5 | |
20613 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
20614 | See \`config.log' for more details." >&2;} | |
20615 | { (exit 1); exit 1; }; } ;; | |
20616 | esac | |
20617 | else | |
20618 | if test "$cross_compiling" = yes; then | |
bb9e79c0 VZ |
20619 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20620 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20621 | { (exit 1); exit 1; }; } |
20622 | else | |
20623 | cat >conftest.$ac_ext <<_ACEOF | |
20624 | /* confdefs.h. */ | |
20625 | _ACEOF | |
20626 | cat confdefs.h >>conftest.$ac_ext | |
20627 | cat >>conftest.$ac_ext <<_ACEOF | |
20628 | /* end confdefs.h. */ | |
20629 | $ac_includes_default | |
20630 | long longval () { return (long) (sizeof (size_t)); } | |
20631 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
20632 | #include <stdio.h> | |
20633 | #include <stdlib.h> | |
20634 | int | |
20635 | main () | |
20636 | { | |
20637 | ||
20638 | FILE *f = fopen ("conftest.val", "w"); | |
20639 | if (! f) | |
20640 | exit (1); | |
20641 | if (((long) (sizeof (size_t))) < 0) | |
20642 | { | |
20643 | long i = longval (); | |
20644 | if (i != ((long) (sizeof (size_t)))) | |
20645 | exit (1); | |
20646 | fprintf (f, "%ld\n", i); | |
20647 | } | |
20648 | else | |
20649 | { | |
20650 | unsigned long i = ulongval (); | |
20651 | if (i != ((long) (sizeof (size_t)))) | |
20652 | exit (1); | |
20653 | fprintf (f, "%lu\n", i); | |
20654 | } | |
20655 | exit (ferror (f) || fclose (f) != 0); | |
20656 | ||
20657 | ; | |
20658 | return 0; | |
20659 | } | |
20660 | _ACEOF | |
20661 | rm -f conftest$ac_exeext | |
20662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20663 | (eval $ac_link) 2>&5 | |
20664 | ac_status=$? | |
20665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20666 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20668 | (eval $ac_try) 2>&5 | |
20669 | ac_status=$? | |
20670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20671 | (exit $ac_status); }; }; then | |
20672 | ac_cv_sizeof_size_t=`cat conftest.val` | |
20673 | else | |
20674 | echo "$as_me: program exited with status $ac_status" >&5 | |
20675 | echo "$as_me: failed program was:" >&5 | |
20676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20677 | ||
20678 | ( exit $ac_status ) | |
20679 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
20680 | See \`config.log' for more details." >&5 | |
20681 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
20682 | See \`config.log' for more details." >&2;} | |
20683 | { (exit 1); exit 1; }; } | |
20684 | fi | |
ac1cb8d3 | 20685 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20686 | fi |
20687 | fi | |
20688 | rm -f conftest.val | |
20689 | else | |
20690 | ac_cv_sizeof_size_t=0 | |
20691 | fi | |
20692 | fi | |
20693 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
20694 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
20695 | cat >>confdefs.h <<_ACEOF | |
20696 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
20697 | _ACEOF | |
20698 | ||
20699 | ||
20700 | ||
20701 | case "${host}" in | |
20702 | arm-*-linux* ) | |
20703 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20704 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20705 | if test "${ac_cv_type_long_long+set}" = set; then | |
20706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20707 | else | |
20708 | cat >conftest.$ac_ext <<_ACEOF | |
20709 | /* confdefs.h. */ | |
20710 | _ACEOF | |
20711 | cat confdefs.h >>conftest.$ac_ext | |
20712 | cat >>conftest.$ac_ext <<_ACEOF | |
20713 | /* end confdefs.h. */ | |
20714 | $ac_includes_default | |
20715 | int | |
20716 | main () | |
20717 | { | |
20718 | if ((long long *) 0) | |
20719 | return 0; | |
20720 | if (sizeof (long long)) | |
20721 | return 0; | |
20722 | ; | |
20723 | return 0; | |
20724 | } | |
20725 | _ACEOF | |
20726 | rm -f conftest.$ac_objext | |
20727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20728 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20729 | ac_status=$? |
ac1cb8d3 VS |
20730 | grep -v '^ *+' conftest.er1 >conftest.err |
20731 | rm -f conftest.er1 | |
20732 | cat conftest.err >&5 | |
a848cd7e SC |
20733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20734 | (exit $ac_status); } && | |
bb9e79c0 | 20735 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20737 | (eval $ac_try) 2>&5 | |
20738 | ac_status=$? | |
20739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20740 | (exit $ac_status); }; } && | |
20741 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20743 | (eval $ac_try) 2>&5 | |
20744 | ac_status=$? | |
20745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20746 | (exit $ac_status); }; }; then | |
20747 | ac_cv_type_long_long=yes | |
20748 | else | |
20749 | echo "$as_me: failed program was:" >&5 | |
20750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20751 | ||
20752 | ac_cv_type_long_long=no | |
20753 | fi | |
ac1cb8d3 | 20754 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20755 | fi |
20756 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20757 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20758 | ||
20759 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20760 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20761 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20763 | else | |
20764 | if test "$ac_cv_type_long_long" = yes; then | |
20765 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20766 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20767 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20768 | # This bug is HP SR number 8606223364. | |
20769 | if test "$cross_compiling" = yes; then | |
20770 | # Depending upon the size, compute the lo and hi bounds. | |
20771 | cat >conftest.$ac_ext <<_ACEOF | |
20772 | /* confdefs.h. */ | |
20773 | _ACEOF | |
20774 | cat confdefs.h >>conftest.$ac_ext | |
20775 | cat >>conftest.$ac_ext <<_ACEOF | |
20776 | /* end confdefs.h. */ | |
20777 | $ac_includes_default | |
20778 | int | |
20779 | main () | |
20780 | { | |
20781 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20782 | test_array [0] = 0 | |
20783 | ||
20784 | ; | |
20785 | return 0; | |
20786 | } | |
20787 | _ACEOF | |
20788 | rm -f conftest.$ac_objext | |
20789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20790 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20791 | ac_status=$? |
ac1cb8d3 VS |
20792 | grep -v '^ *+' conftest.er1 >conftest.err |
20793 | rm -f conftest.er1 | |
20794 | cat conftest.err >&5 | |
a848cd7e SC |
20795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20796 | (exit $ac_status); } && | |
bb9e79c0 | 20797 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20799 | (eval $ac_try) 2>&5 | |
20800 | ac_status=$? | |
20801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20802 | (exit $ac_status); }; } && | |
20803 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20805 | (eval $ac_try) 2>&5 | |
20806 | ac_status=$? | |
20807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20808 | (exit $ac_status); }; }; then | |
20809 | ac_lo=0 ac_mid=0 | |
20810 | while :; do | |
20811 | cat >conftest.$ac_ext <<_ACEOF | |
20812 | /* confdefs.h. */ | |
20813 | _ACEOF | |
20814 | cat confdefs.h >>conftest.$ac_ext | |
20815 | cat >>conftest.$ac_ext <<_ACEOF | |
20816 | /* end confdefs.h. */ | |
20817 | $ac_includes_default | |
20818 | int | |
20819 | main () | |
20820 | { | |
20821 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20822 | test_array [0] = 0 | |
20823 | ||
20824 | ; | |
20825 | return 0; | |
20826 | } | |
20827 | _ACEOF | |
20828 | rm -f conftest.$ac_objext | |
20829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20830 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20831 | ac_status=$? |
ac1cb8d3 VS |
20832 | grep -v '^ *+' conftest.er1 >conftest.err |
20833 | rm -f conftest.er1 | |
20834 | cat conftest.err >&5 | |
a848cd7e SC |
20835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20836 | (exit $ac_status); } && | |
bb9e79c0 | 20837 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20839 | (eval $ac_try) 2>&5 | |
20840 | ac_status=$? | |
20841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20842 | (exit $ac_status); }; } && | |
20843 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20845 | (eval $ac_try) 2>&5 | |
20846 | ac_status=$? | |
20847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20848 | (exit $ac_status); }; }; then | |
20849 | ac_hi=$ac_mid; break | |
20850 | else | |
20851 | echo "$as_me: failed program was:" >&5 | |
20852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20853 | ||
20854 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20855 | if test $ac_lo -le $ac_mid; then |
20856 | ac_lo= ac_hi= | |
20857 | break | |
20858 | fi | |
20859 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20860 | fi |
ac1cb8d3 | 20861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20862 | done |
20863 | else | |
20864 | echo "$as_me: failed program was:" >&5 | |
20865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20866 | ||
20867 | cat >conftest.$ac_ext <<_ACEOF | |
20868 | /* confdefs.h. */ | |
20869 | _ACEOF | |
20870 | cat confdefs.h >>conftest.$ac_ext | |
20871 | cat >>conftest.$ac_ext <<_ACEOF | |
20872 | /* end confdefs.h. */ | |
20873 | $ac_includes_default | |
20874 | int | |
20875 | main () | |
20876 | { | |
20877 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20878 | test_array [0] = 0 | |
20879 | ||
20880 | ; | |
20881 | return 0; | |
20882 | } | |
20883 | _ACEOF | |
20884 | rm -f conftest.$ac_objext | |
20885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20886 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20887 | ac_status=$? |
ac1cb8d3 VS |
20888 | grep -v '^ *+' conftest.er1 >conftest.err |
20889 | rm -f conftest.er1 | |
20890 | cat conftest.err >&5 | |
a848cd7e SC |
20891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20892 | (exit $ac_status); } && | |
bb9e79c0 | 20893 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20895 | (eval $ac_try) 2>&5 | |
20896 | ac_status=$? | |
20897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20898 | (exit $ac_status); }; } && | |
20899 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
20905 | ac_hi=-1 ac_mid=-1 | |
20906 | while :; do | |
20907 | cat >conftest.$ac_ext <<_ACEOF | |
20908 | /* confdefs.h. */ | |
20909 | _ACEOF | |
20910 | cat confdefs.h >>conftest.$ac_ext | |
20911 | cat >>conftest.$ac_ext <<_ACEOF | |
20912 | /* end confdefs.h. */ | |
20913 | $ac_includes_default | |
20914 | int | |
20915 | main () | |
20916 | { | |
20917 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20918 | test_array [0] = 0 | |
20919 | ||
20920 | ; | |
20921 | return 0; | |
20922 | } | |
20923 | _ACEOF | |
20924 | rm -f conftest.$ac_objext | |
20925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20926 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20927 | ac_status=$? |
ac1cb8d3 VS |
20928 | grep -v '^ *+' conftest.er1 >conftest.err |
20929 | rm -f conftest.er1 | |
20930 | cat conftest.err >&5 | |
a848cd7e SC |
20931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20932 | (exit $ac_status); } && | |
bb9e79c0 | 20933 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20935 | (eval $ac_try) 2>&5 | |
20936 | ac_status=$? | |
20937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20938 | (exit $ac_status); }; } && | |
20939 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20941 | (eval $ac_try) 2>&5 | |
20942 | ac_status=$? | |
20943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20944 | (exit $ac_status); }; }; then | |
20945 | ac_lo=$ac_mid; break | |
20946 | else | |
20947 | echo "$as_me: failed program was:" >&5 | |
20948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20949 | ||
20950 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20951 | if test $ac_mid -le $ac_hi; then |
20952 | ac_lo= ac_hi= | |
20953 | break | |
20954 | fi | |
20955 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20956 | fi |
ac1cb8d3 | 20957 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20958 | done |
20959 | else | |
20960 | echo "$as_me: failed program was:" >&5 | |
20961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20962 | ||
20963 | ac_lo= ac_hi= | |
20964 | fi | |
ac1cb8d3 | 20965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20966 | fi |
ac1cb8d3 | 20967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20968 | # Binary search between lo and hi bounds. |
20969 | while test "x$ac_lo" != "x$ac_hi"; do | |
20970 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20971 | cat >conftest.$ac_ext <<_ACEOF | |
20972 | /* confdefs.h. */ | |
20973 | _ACEOF | |
20974 | cat confdefs.h >>conftest.$ac_ext | |
20975 | cat >>conftest.$ac_ext <<_ACEOF | |
20976 | /* end confdefs.h. */ | |
20977 | $ac_includes_default | |
20978 | int | |
20979 | main () | |
20980 | { | |
20981 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20982 | test_array [0] = 0 | |
20983 | ||
20984 | ; | |
20985 | return 0; | |
20986 | } | |
20987 | _ACEOF | |
20988 | rm -f conftest.$ac_objext | |
20989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20990 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20991 | ac_status=$? |
ac1cb8d3 VS |
20992 | grep -v '^ *+' conftest.er1 >conftest.err |
20993 | rm -f conftest.er1 | |
20994 | cat conftest.err >&5 | |
a848cd7e SC |
20995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20996 | (exit $ac_status); } && | |
bb9e79c0 | 20997 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20999 | (eval $ac_try) 2>&5 | |
21000 | ac_status=$? | |
21001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21002 | (exit $ac_status); }; } && | |
21003 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21005 | (eval $ac_try) 2>&5 | |
21006 | ac_status=$? | |
21007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21008 | (exit $ac_status); }; }; then | |
21009 | ac_hi=$ac_mid | |
21010 | else | |
21011 | echo "$as_me: failed program was:" >&5 | |
21012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21013 | ||
21014 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21015 | fi | |
ac1cb8d3 | 21016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21017 | done |
21018 | case $ac_lo in | |
21019 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
21020 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21021 | See \`config.log' for more details." >&5 | |
21022 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21023 | See \`config.log' for more details." >&2;} | |
21024 | { (exit 1); exit 1; }; } ;; | |
21025 | esac | |
21026 | else | |
21027 | if test "$cross_compiling" = yes; then | |
bb9e79c0 VZ |
21028 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
21029 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
21030 | { (exit 1); exit 1; }; } |
21031 | else | |
21032 | cat >conftest.$ac_ext <<_ACEOF | |
21033 | /* confdefs.h. */ | |
21034 | _ACEOF | |
21035 | cat confdefs.h >>conftest.$ac_ext | |
21036 | cat >>conftest.$ac_ext <<_ACEOF | |
21037 | /* end confdefs.h. */ | |
21038 | $ac_includes_default | |
21039 | long longval () { return (long) (sizeof (long long)); } | |
21040 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
21041 | #include <stdio.h> | |
21042 | #include <stdlib.h> | |
21043 | int | |
21044 | main () | |
21045 | { | |
21046 | ||
21047 | FILE *f = fopen ("conftest.val", "w"); | |
21048 | if (! f) | |
21049 | exit (1); | |
21050 | if (((long) (sizeof (long long))) < 0) | |
21051 | { | |
21052 | long i = longval (); | |
21053 | if (i != ((long) (sizeof (long long)))) | |
21054 | exit (1); | |
21055 | fprintf (f, "%ld\n", i); | |
21056 | } | |
21057 | else | |
21058 | { | |
21059 | unsigned long i = ulongval (); | |
21060 | if (i != ((long) (sizeof (long long)))) | |
21061 | exit (1); | |
21062 | fprintf (f, "%lu\n", i); | |
21063 | } | |
21064 | exit (ferror (f) || fclose (f) != 0); | |
21065 | ||
21066 | ; | |
21067 | return 0; | |
21068 | } | |
21069 | _ACEOF | |
21070 | rm -f conftest$ac_exeext | |
21071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21072 | (eval $ac_link) 2>&5 | |
21073 | ac_status=$? | |
21074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21075 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21077 | (eval $ac_try) 2>&5 | |
21078 | ac_status=$? | |
21079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21080 | (exit $ac_status); }; }; then | |
21081 | ac_cv_sizeof_long_long=`cat conftest.val` | |
21082 | else | |
21083 | echo "$as_me: program exited with status $ac_status" >&5 | |
21084 | echo "$as_me: failed program was:" >&5 | |
21085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21086 | ||
21087 | ( exit $ac_status ) | |
21088 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21089 | See \`config.log' for more details." >&5 | |
21090 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21091 | See \`config.log' for more details." >&2;} | |
21092 | { (exit 1); exit 1; }; } | |
21093 | fi | |
ac1cb8d3 | 21094 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21095 | fi |
21096 | fi | |
21097 | rm -f conftest.val | |
21098 | else | |
21099 | ac_cv_sizeof_long_long=0 | |
21100 | fi | |
21101 | fi | |
21102 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
21103 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
21104 | cat >>confdefs.h <<_ACEOF | |
21105 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
21106 | _ACEOF | |
21107 | ||
21108 | ||
21109 | ;; | |
21110 | *-hp-hpux* ) | |
21111 | echo "$as_me:$LINENO: checking for long long" >&5 | |
21112 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
21113 | if test "${ac_cv_type_long_long+set}" = set; then | |
21114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21115 | else | |
21116 | cat >conftest.$ac_ext <<_ACEOF | |
21117 | /* confdefs.h. */ | |
21118 | _ACEOF | |
21119 | cat confdefs.h >>conftest.$ac_ext | |
21120 | cat >>conftest.$ac_ext <<_ACEOF | |
21121 | /* end confdefs.h. */ | |
21122 | $ac_includes_default | |
21123 | int | |
21124 | main () | |
21125 | { | |
21126 | if ((long long *) 0) | |
21127 | return 0; | |
21128 | if (sizeof (long long)) | |
21129 | return 0; | |
21130 | ; | |
21131 | return 0; | |
21132 | } | |
21133 | _ACEOF | |
21134 | rm -f conftest.$ac_objext | |
21135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21136 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21137 | ac_status=$? |
ac1cb8d3 VS |
21138 | grep -v '^ *+' conftest.er1 >conftest.err |
21139 | rm -f conftest.er1 | |
21140 | cat conftest.err >&5 | |
a848cd7e SC |
21141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21142 | (exit $ac_status); } && | |
bb9e79c0 | 21143 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21145 | (eval $ac_try) 2>&5 | |
21146 | ac_status=$? | |
21147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21148 | (exit $ac_status); }; } && | |
21149 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21151 | (eval $ac_try) 2>&5 | |
21152 | ac_status=$? | |
21153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21154 | (exit $ac_status); }; }; then | |
21155 | ac_cv_type_long_long=yes | |
21156 | else | |
21157 | echo "$as_me: failed program was:" >&5 | |
21158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21159 | ||
21160 | ac_cv_type_long_long=no | |
21161 | fi | |
ac1cb8d3 | 21162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21163 | fi |
21164 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
21165 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
21166 | ||
21167 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
21168 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
21169 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
21170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21171 | else | |
21172 | if test "$ac_cv_type_long_long" = yes; then | |
21173 | # The cast to unsigned long works around a bug in the HP C Compiler | |
21174 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21175 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21176 | # This bug is HP SR number 8606223364. | |
21177 | if test "$cross_compiling" = yes; then | |
21178 | # Depending upon the size, compute the lo and hi bounds. | |
21179 | cat >conftest.$ac_ext <<_ACEOF | |
21180 | /* confdefs.h. */ | |
21181 | _ACEOF | |
21182 | cat confdefs.h >>conftest.$ac_ext | |
21183 | cat >>conftest.$ac_ext <<_ACEOF | |
21184 | /* end confdefs.h. */ | |
21185 | $ac_includes_default | |
21186 | int | |
21187 | main () | |
21188 | { | |
21189 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
21190 | test_array [0] = 0 | |
21191 | ||
21192 | ; | |
21193 | return 0; | |
21194 | } | |
21195 | _ACEOF | |
21196 | rm -f conftest.$ac_objext | |
21197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21198 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21199 | ac_status=$? |
ac1cb8d3 VS |
21200 | grep -v '^ *+' conftest.er1 >conftest.err |
21201 | rm -f conftest.er1 | |
21202 | cat conftest.err >&5 | |
a848cd7e SC |
21203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21204 | (exit $ac_status); } && | |
bb9e79c0 | 21205 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21207 | (eval $ac_try) 2>&5 | |
21208 | ac_status=$? | |
21209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21210 | (exit $ac_status); }; } && | |
21211 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21213 | (eval $ac_try) 2>&5 | |
21214 | ac_status=$? | |
21215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21216 | (exit $ac_status); }; }; then | |
21217 | ac_lo=0 ac_mid=0 | |
21218 | while :; do | |
21219 | cat >conftest.$ac_ext <<_ACEOF | |
21220 | /* confdefs.h. */ | |
21221 | _ACEOF | |
21222 | cat confdefs.h >>conftest.$ac_ext | |
21223 | cat >>conftest.$ac_ext <<_ACEOF | |
21224 | /* end confdefs.h. */ | |
21225 | $ac_includes_default | |
21226 | int | |
21227 | main () | |
21228 | { | |
21229 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21230 | test_array [0] = 0 | |
21231 | ||
21232 | ; | |
21233 | return 0; | |
21234 | } | |
21235 | _ACEOF | |
21236 | rm -f conftest.$ac_objext | |
21237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21238 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21239 | ac_status=$? |
ac1cb8d3 VS |
21240 | grep -v '^ *+' conftest.er1 >conftest.err |
21241 | rm -f conftest.er1 | |
21242 | cat conftest.err >&5 | |
a848cd7e SC |
21243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21244 | (exit $ac_status); } && | |
bb9e79c0 | 21245 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21247 | (eval $ac_try) 2>&5 | |
21248 | ac_status=$? | |
21249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21250 | (exit $ac_status); }; } && | |
21251 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21253 | (eval $ac_try) 2>&5 | |
21254 | ac_status=$? | |
21255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21256 | (exit $ac_status); }; }; then | |
21257 | ac_hi=$ac_mid; break | |
21258 | else | |
21259 | echo "$as_me: failed program was:" >&5 | |
21260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21261 | ||
21262 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
21263 | if test $ac_lo -le $ac_mid; then |
21264 | ac_lo= ac_hi= | |
21265 | break | |
21266 | fi | |
21267 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 21268 | fi |
ac1cb8d3 | 21269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21270 | done |
21271 | else | |
21272 | echo "$as_me: failed program was:" >&5 | |
21273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21274 | ||
21275 | cat >conftest.$ac_ext <<_ACEOF | |
21276 | /* confdefs.h. */ | |
21277 | _ACEOF | |
21278 | cat confdefs.h >>conftest.$ac_ext | |
21279 | cat >>conftest.$ac_ext <<_ACEOF | |
21280 | /* end confdefs.h. */ | |
21281 | $ac_includes_default | |
21282 | int | |
21283 | main () | |
21284 | { | |
21285 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
21286 | test_array [0] = 0 | |
21287 | ||
21288 | ; | |
21289 | return 0; | |
21290 | } | |
21291 | _ACEOF | |
21292 | rm -f conftest.$ac_objext | |
21293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21294 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21295 | ac_status=$? |
ac1cb8d3 VS |
21296 | grep -v '^ *+' conftest.er1 >conftest.err |
21297 | rm -f conftest.er1 | |
21298 | cat conftest.err >&5 | |
a848cd7e SC |
21299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21300 | (exit $ac_status); } && | |
bb9e79c0 | 21301 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21303 | (eval $ac_try) 2>&5 | |
21304 | ac_status=$? | |
21305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21306 | (exit $ac_status); }; } && | |
21307 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21309 | (eval $ac_try) 2>&5 | |
21310 | ac_status=$? | |
21311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21312 | (exit $ac_status); }; }; then | |
21313 | ac_hi=-1 ac_mid=-1 | |
21314 | while :; do | |
21315 | cat >conftest.$ac_ext <<_ACEOF | |
21316 | /* confdefs.h. */ | |
21317 | _ACEOF | |
21318 | cat confdefs.h >>conftest.$ac_ext | |
21319 | cat >>conftest.$ac_ext <<_ACEOF | |
21320 | /* end confdefs.h. */ | |
21321 | $ac_includes_default | |
21322 | int | |
21323 | main () | |
21324 | { | |
21325 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
21326 | test_array [0] = 0 | |
21327 | ||
21328 | ; | |
21329 | return 0; | |
21330 | } | |
21331 | _ACEOF | |
21332 | rm -f conftest.$ac_objext | |
21333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21334 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21335 | ac_status=$? |
ac1cb8d3 VS |
21336 | grep -v '^ *+' conftest.er1 >conftest.err |
21337 | rm -f conftest.er1 | |
21338 | cat conftest.err >&5 | |
a848cd7e SC |
21339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21340 | (exit $ac_status); } && | |
bb9e79c0 | 21341 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21343 | (eval $ac_try) 2>&5 | |
21344 | ac_status=$? | |
21345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21346 | (exit $ac_status); }; } && | |
21347 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21349 | (eval $ac_try) 2>&5 | |
21350 | ac_status=$? | |
21351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21352 | (exit $ac_status); }; }; then | |
21353 | ac_lo=$ac_mid; break | |
21354 | else | |
21355 | echo "$as_me: failed program was:" >&5 | |
21356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21357 | ||
21358 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
21359 | if test $ac_mid -le $ac_hi; then |
21360 | ac_lo= ac_hi= | |
21361 | break | |
21362 | fi | |
21363 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 21364 | fi |
ac1cb8d3 | 21365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21366 | done |
21367 | else | |
21368 | echo "$as_me: failed program was:" >&5 | |
21369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21370 | ||
21371 | ac_lo= ac_hi= | |
21372 | fi | |
ac1cb8d3 | 21373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21374 | fi |
ac1cb8d3 | 21375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21376 | # Binary search between lo and hi bounds. |
21377 | while test "x$ac_lo" != "x$ac_hi"; do | |
21378 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21379 | cat >conftest.$ac_ext <<_ACEOF | |
21380 | /* confdefs.h. */ | |
21381 | _ACEOF | |
21382 | cat confdefs.h >>conftest.$ac_ext | |
21383 | cat >>conftest.$ac_ext <<_ACEOF | |
21384 | /* end confdefs.h. */ | |
21385 | $ac_includes_default | |
21386 | int | |
21387 | main () | |
21388 | { | |
21389 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21390 | test_array [0] = 0 | |
21391 | ||
21392 | ; | |
21393 | return 0; | |
21394 | } | |
21395 | _ACEOF | |
21396 | rm -f conftest.$ac_objext | |
21397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21398 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21399 | ac_status=$? |
ac1cb8d3 VS |
21400 | grep -v '^ *+' conftest.er1 >conftest.err |
21401 | rm -f conftest.er1 | |
21402 | cat conftest.err >&5 | |
a848cd7e SC |
21403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21404 | (exit $ac_status); } && | |
bb9e79c0 | 21405 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21407 | (eval $ac_try) 2>&5 | |
21408 | ac_status=$? | |
21409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21410 | (exit $ac_status); }; } && | |
21411 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21413 | (eval $ac_try) 2>&5 | |
21414 | ac_status=$? | |
21415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21416 | (exit $ac_status); }; }; then | |
21417 | ac_hi=$ac_mid | |
21418 | else | |
21419 | echo "$as_me: failed program was:" >&5 | |
21420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21421 | ||
21422 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21423 | fi | |
ac1cb8d3 | 21424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21425 | done |
21426 | case $ac_lo in | |
21427 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
21428 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21429 | See \`config.log' for more details." >&5 | |
21430 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21431 | See \`config.log' for more details." >&2;} | |
21432 | { (exit 1); exit 1; }; } ;; | |
21433 | esac | |
21434 | else | |
21435 | if test "$cross_compiling" = yes; then | |
bb9e79c0 VZ |
21436 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
21437 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
21438 | { (exit 1); exit 1; }; } |
21439 | else | |
21440 | cat >conftest.$ac_ext <<_ACEOF | |
21441 | /* confdefs.h. */ | |
21442 | _ACEOF | |
21443 | cat confdefs.h >>conftest.$ac_ext | |
21444 | cat >>conftest.$ac_ext <<_ACEOF | |
21445 | /* end confdefs.h. */ | |
21446 | $ac_includes_default | |
21447 | long longval () { return (long) (sizeof (long long)); } | |
21448 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
21449 | #include <stdio.h> | |
21450 | #include <stdlib.h> | |
21451 | int | |
21452 | main () | |
21453 | { | |
21454 | ||
21455 | FILE *f = fopen ("conftest.val", "w"); | |
21456 | if (! f) | |
21457 | exit (1); | |
21458 | if (((long) (sizeof (long long))) < 0) | |
21459 | { | |
21460 | long i = longval (); | |
21461 | if (i != ((long) (sizeof (long long)))) | |
21462 | exit (1); | |
21463 | fprintf (f, "%ld\n", i); | |
21464 | } | |
21465 | else | |
21466 | { | |
21467 | unsigned long i = ulongval (); | |
21468 | if (i != ((long) (sizeof (long long)))) | |
21469 | exit (1); | |
21470 | fprintf (f, "%lu\n", i); | |
21471 | } | |
21472 | exit (ferror (f) || fclose (f) != 0); | |
21473 | ||
21474 | ; | |
21475 | return 0; | |
21476 | } | |
21477 | _ACEOF | |
21478 | rm -f conftest$ac_exeext | |
21479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21480 | (eval $ac_link) 2>&5 | |
21481 | ac_status=$? | |
21482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21483 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21485 | (eval $ac_try) 2>&5 | |
21486 | ac_status=$? | |
21487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21488 | (exit $ac_status); }; }; then | |
21489 | ac_cv_sizeof_long_long=`cat conftest.val` | |
21490 | else | |
21491 | echo "$as_me: program exited with status $ac_status" >&5 | |
21492 | echo "$as_me: failed program was:" >&5 | |
21493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21494 | ||
21495 | ( exit $ac_status ) | |
21496 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21497 | See \`config.log' for more details." >&5 | |
21498 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21499 | See \`config.log' for more details." >&2;} | |
21500 | { (exit 1); exit 1; }; } | |
21501 | fi | |
ac1cb8d3 | 21502 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21503 | fi |
21504 | fi | |
21505 | rm -f conftest.val | |
21506 | else | |
21507 | ac_cv_sizeof_long_long=0 | |
21508 | fi | |
21509 | fi | |
21510 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
21511 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
21512 | cat >>confdefs.h <<_ACEOF | |
21513 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
21514 | _ACEOF | |
21515 | ||
21516 | ||
21517 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
c92ad099 | 21518 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" |
a848cd7e SC |
21519 | fi |
21520 | ;; | |
21521 | * ) | |
21522 | echo "$as_me:$LINENO: checking for long long" >&5 | |
21523 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
21524 | if test "${ac_cv_type_long_long+set}" = set; then | |
21525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21526 | else | |
21527 | cat >conftest.$ac_ext <<_ACEOF | |
21528 | /* confdefs.h. */ | |
21529 | _ACEOF | |
21530 | cat confdefs.h >>conftest.$ac_ext | |
21531 | cat >>conftest.$ac_ext <<_ACEOF | |
21532 | /* end confdefs.h. */ | |
21533 | $ac_includes_default | |
21534 | int | |
21535 | main () | |
21536 | { | |
21537 | if ((long long *) 0) | |
21538 | return 0; | |
21539 | if (sizeof (long long)) | |
21540 | return 0; | |
21541 | ; | |
21542 | return 0; | |
21543 | } | |
21544 | _ACEOF | |
21545 | rm -f conftest.$ac_objext | |
21546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21547 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21548 | ac_status=$? |
ac1cb8d3 VS |
21549 | grep -v '^ *+' conftest.er1 >conftest.err |
21550 | rm -f conftest.er1 | |
21551 | cat conftest.err >&5 | |
a848cd7e SC |
21552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21553 | (exit $ac_status); } && | |
bb9e79c0 | 21554 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21556 | (eval $ac_try) 2>&5 | |
21557 | ac_status=$? | |
21558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21559 | (exit $ac_status); }; } && | |
21560 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21562 | (eval $ac_try) 2>&5 | |
21563 | ac_status=$? | |
21564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21565 | (exit $ac_status); }; }; then | |
21566 | ac_cv_type_long_long=yes | |
21567 | else | |
21568 | echo "$as_me: failed program was:" >&5 | |
21569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21570 | ||
21571 | ac_cv_type_long_long=no | |
21572 | fi | |
ac1cb8d3 | 21573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21574 | fi |
21575 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
21576 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
21577 | ||
21578 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
21579 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
21580 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
21581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21582 | else | |
21583 | if test "$ac_cv_type_long_long" = yes; then | |
21584 | # The cast to unsigned long works around a bug in the HP C Compiler | |
21585 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21586 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21587 | # This bug is HP SR number 8606223364. | |
21588 | if test "$cross_compiling" = yes; then | |
21589 | # Depending upon the size, compute the lo and hi bounds. | |
21590 | cat >conftest.$ac_ext <<_ACEOF | |
21591 | /* confdefs.h. */ | |
21592 | _ACEOF | |
21593 | cat confdefs.h >>conftest.$ac_ext | |
21594 | cat >>conftest.$ac_ext <<_ACEOF | |
21595 | /* end confdefs.h. */ | |
21596 | $ac_includes_default | |
21597 | int | |
21598 | main () | |
21599 | { | |
21600 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
21601 | test_array [0] = 0 | |
21602 | ||
21603 | ; | |
21604 | return 0; | |
21605 | } | |
21606 | _ACEOF | |
21607 | rm -f conftest.$ac_objext | |
21608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21609 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21610 | ac_status=$? |
ac1cb8d3 VS |
21611 | grep -v '^ *+' conftest.er1 >conftest.err |
21612 | rm -f conftest.er1 | |
21613 | cat conftest.err >&5 | |
a848cd7e SC |
21614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21615 | (exit $ac_status); } && | |
bb9e79c0 | 21616 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21618 | (eval $ac_try) 2>&5 | |
21619 | ac_status=$? | |
21620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21621 | (exit $ac_status); }; } && | |
21622 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21624 | (eval $ac_try) 2>&5 | |
21625 | ac_status=$? | |
21626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21627 | (exit $ac_status); }; }; then | |
21628 | ac_lo=0 ac_mid=0 | |
21629 | while :; do | |
21630 | cat >conftest.$ac_ext <<_ACEOF | |
21631 | /* confdefs.h. */ | |
21632 | _ACEOF | |
21633 | cat confdefs.h >>conftest.$ac_ext | |
21634 | cat >>conftest.$ac_ext <<_ACEOF | |
21635 | /* end confdefs.h. */ | |
21636 | $ac_includes_default | |
21637 | int | |
21638 | main () | |
21639 | { | |
21640 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21641 | test_array [0] = 0 | |
21642 | ||
21643 | ; | |
21644 | return 0; | |
21645 | } | |
21646 | _ACEOF | |
21647 | rm -f conftest.$ac_objext | |
21648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21649 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21650 | ac_status=$? |
ac1cb8d3 VS |
21651 | grep -v '^ *+' conftest.er1 >conftest.err |
21652 | rm -f conftest.er1 | |
21653 | cat conftest.err >&5 | |
a848cd7e SC |
21654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21655 | (exit $ac_status); } && | |
bb9e79c0 | 21656 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21658 | (eval $ac_try) 2>&5 | |
21659 | ac_status=$? | |
21660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21661 | (exit $ac_status); }; } && | |
21662 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21664 | (eval $ac_try) 2>&5 | |
21665 | ac_status=$? | |
21666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21667 | (exit $ac_status); }; }; then | |
21668 | ac_hi=$ac_mid; break | |
21669 | else | |
21670 | echo "$as_me: failed program was:" >&5 | |
21671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21672 | ||
21673 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
21674 | if test $ac_lo -le $ac_mid; then |
21675 | ac_lo= ac_hi= | |
21676 | break | |
21677 | fi | |
21678 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 21679 | fi |
ac1cb8d3 | 21680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21681 | done |
21682 | else | |
21683 | echo "$as_me: failed program was:" >&5 | |
21684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21685 | ||
21686 | cat >conftest.$ac_ext <<_ACEOF | |
21687 | /* confdefs.h. */ | |
21688 | _ACEOF | |
21689 | cat confdefs.h >>conftest.$ac_ext | |
21690 | cat >>conftest.$ac_ext <<_ACEOF | |
21691 | /* end confdefs.h. */ | |
21692 | $ac_includes_default | |
21693 | int | |
21694 | main () | |
21695 | { | |
21696 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
21697 | test_array [0] = 0 | |
21698 | ||
21699 | ; | |
21700 | return 0; | |
21701 | } | |
21702 | _ACEOF | |
21703 | rm -f conftest.$ac_objext | |
21704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21705 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21706 | ac_status=$? |
ac1cb8d3 VS |
21707 | grep -v '^ *+' conftest.er1 >conftest.err |
21708 | rm -f conftest.er1 | |
21709 | cat conftest.err >&5 | |
a848cd7e SC |
21710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21711 | (exit $ac_status); } && | |
bb9e79c0 | 21712 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21714 | (eval $ac_try) 2>&5 | |
21715 | ac_status=$? | |
21716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21717 | (exit $ac_status); }; } && | |
21718 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21720 | (eval $ac_try) 2>&5 | |
21721 | ac_status=$? | |
21722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21723 | (exit $ac_status); }; }; then | |
21724 | ac_hi=-1 ac_mid=-1 | |
21725 | while :; do | |
21726 | cat >conftest.$ac_ext <<_ACEOF | |
21727 | /* confdefs.h. */ | |
21728 | _ACEOF | |
21729 | cat confdefs.h >>conftest.$ac_ext | |
21730 | cat >>conftest.$ac_ext <<_ACEOF | |
21731 | /* end confdefs.h. */ | |
21732 | $ac_includes_default | |
21733 | int | |
21734 | main () | |
21735 | { | |
21736 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
21737 | test_array [0] = 0 | |
21738 | ||
21739 | ; | |
21740 | return 0; | |
21741 | } | |
21742 | _ACEOF | |
21743 | rm -f conftest.$ac_objext | |
21744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21745 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21746 | ac_status=$? |
ac1cb8d3 VS |
21747 | grep -v '^ *+' conftest.er1 >conftest.err |
21748 | rm -f conftest.er1 | |
21749 | cat conftest.err >&5 | |
a848cd7e SC |
21750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21751 | (exit $ac_status); } && | |
bb9e79c0 | 21752 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21754 | (eval $ac_try) 2>&5 | |
21755 | ac_status=$? | |
21756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21757 | (exit $ac_status); }; } && | |
21758 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21760 | (eval $ac_try) 2>&5 | |
21761 | ac_status=$? | |
21762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21763 | (exit $ac_status); }; }; then | |
21764 | ac_lo=$ac_mid; break | |
21765 | else | |
21766 | echo "$as_me: failed program was:" >&5 | |
21767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21768 | ||
21769 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
21770 | if test $ac_mid -le $ac_hi; then |
21771 | ac_lo= ac_hi= | |
21772 | break | |
21773 | fi | |
21774 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 21775 | fi |
ac1cb8d3 | 21776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21777 | done |
21778 | else | |
21779 | echo "$as_me: failed program was:" >&5 | |
21780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21781 | ||
21782 | ac_lo= ac_hi= | |
21783 | fi | |
ac1cb8d3 | 21784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21785 | fi |
ac1cb8d3 | 21786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21787 | # Binary search between lo and hi bounds. |
21788 | while test "x$ac_lo" != "x$ac_hi"; do | |
21789 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21790 | cat >conftest.$ac_ext <<_ACEOF | |
21791 | /* confdefs.h. */ | |
21792 | _ACEOF | |
21793 | cat confdefs.h >>conftest.$ac_ext | |
21794 | cat >>conftest.$ac_ext <<_ACEOF | |
21795 | /* end confdefs.h. */ | |
21796 | $ac_includes_default | |
21797 | int | |
21798 | main () | |
21799 | { | |
21800 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21801 | test_array [0] = 0 | |
21802 | ||
21803 | ; | |
21804 | return 0; | |
21805 | } | |
21806 | _ACEOF | |
21807 | rm -f conftest.$ac_objext | |
21808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21809 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21810 | ac_status=$? |
ac1cb8d3 VS |
21811 | grep -v '^ *+' conftest.er1 >conftest.err |
21812 | rm -f conftest.er1 | |
21813 | cat conftest.err >&5 | |
a848cd7e SC |
21814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21815 | (exit $ac_status); } && | |
bb9e79c0 | 21816 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21818 | (eval $ac_try) 2>&5 | |
21819 | ac_status=$? | |
21820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21821 | (exit $ac_status); }; } && | |
21822 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21824 | (eval $ac_try) 2>&5 | |
21825 | ac_status=$? | |
21826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21827 | (exit $ac_status); }; }; then | |
21828 | ac_hi=$ac_mid | |
21829 | else | |
21830 | echo "$as_me: failed program was:" >&5 | |
21831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21832 | ||
21833 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21834 | fi | |
ac1cb8d3 | 21835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21836 | done |
21837 | case $ac_lo in | |
21838 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
21839 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21840 | See \`config.log' for more details." >&5 | |
21841 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21842 | See \`config.log' for more details." >&2;} | |
21843 | { (exit 1); exit 1; }; } ;; | |
21844 | esac | |
21845 | else | |
21846 | if test "$cross_compiling" = yes; then | |
bb9e79c0 VZ |
21847 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
21848 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
21849 | { (exit 1); exit 1; }; } |
21850 | else | |
21851 | cat >conftest.$ac_ext <<_ACEOF | |
21852 | /* confdefs.h. */ | |
21853 | _ACEOF | |
21854 | cat confdefs.h >>conftest.$ac_ext | |
21855 | cat >>conftest.$ac_ext <<_ACEOF | |
21856 | /* end confdefs.h. */ | |
21857 | $ac_includes_default | |
21858 | long longval () { return (long) (sizeof (long long)); } | |
21859 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
21860 | #include <stdio.h> | |
21861 | #include <stdlib.h> | |
21862 | int | |
21863 | main () | |
21864 | { | |
21865 | ||
21866 | FILE *f = fopen ("conftest.val", "w"); | |
21867 | if (! f) | |
21868 | exit (1); | |
21869 | if (((long) (sizeof (long long))) < 0) | |
21870 | { | |
21871 | long i = longval (); | |
21872 | if (i != ((long) (sizeof (long long)))) | |
21873 | exit (1); | |
21874 | fprintf (f, "%ld\n", i); | |
21875 | } | |
21876 | else | |
21877 | { | |
21878 | unsigned long i = ulongval (); | |
21879 | if (i != ((long) (sizeof (long long)))) | |
21880 | exit (1); | |
21881 | fprintf (f, "%lu\n", i); | |
21882 | } | |
21883 | exit (ferror (f) || fclose (f) != 0); | |
21884 | ||
21885 | ; | |
21886 | return 0; | |
21887 | } | |
21888 | _ACEOF | |
21889 | rm -f conftest$ac_exeext | |
21890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21891 | (eval $ac_link) 2>&5 | |
21892 | ac_status=$? | |
21893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21894 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21896 | (eval $ac_try) 2>&5 | |
21897 | ac_status=$? | |
21898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21899 | (exit $ac_status); }; }; then | |
21900 | ac_cv_sizeof_long_long=`cat conftest.val` | |
21901 | else | |
21902 | echo "$as_me: program exited with status $ac_status" >&5 | |
21903 | echo "$as_me: failed program was:" >&5 | |
21904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21905 | ||
21906 | ( exit $ac_status ) | |
21907 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21908 | See \`config.log' for more details." >&5 | |
21909 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21910 | See \`config.log' for more details." >&2;} | |
21911 | { (exit 1); exit 1; }; } | |
21912 | fi | |
ac1cb8d3 | 21913 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21914 | fi |
21915 | fi | |
21916 | rm -f conftest.val | |
21917 | else | |
21918 | ac_cv_sizeof_long_long=0 | |
21919 | fi | |
21920 | fi | |
21921 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
21922 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
21923 | cat >>confdefs.h <<_ACEOF | |
21924 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
21925 | _ACEOF | |
21926 | ||
21927 | ||
21928 | esac | |
21929 | ||
238ecede MW |
21930 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
21931 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
21932 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
21933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21934 | else | |
21935 | cat >conftest.$ac_ext <<_ACEOF | |
21936 | /* confdefs.h. */ | |
21937 | _ACEOF | |
21938 | cat confdefs.h >>conftest.$ac_ext | |
21939 | cat >>conftest.$ac_ext <<_ACEOF | |
21940 | /* end confdefs.h. */ | |
21941 | ||
83d8eb47 MW |
21942 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21943 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21944 | # error "fake wchar_t" |
21945 | #endif | |
21946 | #ifdef HAVE_WCHAR_H | |
21947 | # ifdef __CYGWIN__ | |
21948 | # include <stddef.h> | |
21949 | # endif | |
21950 | # include <wchar.h> | |
21951 | #endif | |
21952 | #ifdef HAVE_STDLIB_H | |
21953 | # include <stdlib.h> | |
21954 | #endif | |
21955 | #include <stdio.h> | |
21956 | ||
21957 | ||
21958 | ||
21959 | int | |
21960 | main () | |
21961 | { | |
21962 | if ((wchar_t *) 0) | |
21963 | return 0; | |
21964 | if (sizeof (wchar_t)) | |
21965 | return 0; | |
21966 | ; | |
21967 | return 0; | |
21968 | } | |
21969 | _ACEOF | |
21970 | rm -f conftest.$ac_objext | |
21971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21972 | (eval $ac_compile) 2>conftest.er1 | |
21973 | ac_status=$? | |
21974 | grep -v '^ *+' conftest.er1 >conftest.err | |
21975 | rm -f conftest.er1 | |
21976 | cat conftest.err >&5 | |
21977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21978 | (exit $ac_status); } && | |
bb9e79c0 | 21979 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21981 | (eval $ac_try) 2>&5 | |
21982 | ac_status=$? | |
21983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21984 | (exit $ac_status); }; } && | |
21985 | { ac_try='test -s conftest.$ac_objext' | |
21986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21987 | (eval $ac_try) 2>&5 | |
21988 | ac_status=$? | |
21989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21990 | (exit $ac_status); }; }; then | |
21991 | ac_cv_type_wchar_t=yes | |
21992 | else | |
21993 | echo "$as_me: failed program was:" >&5 | |
21994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21995 | ||
21996 | ac_cv_type_wchar_t=no | |
21997 | fi | |
21998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21999 | fi | |
22000 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
22001 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
22002 | ||
a848cd7e SC |
22003 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
22004 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 22005 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
22006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22007 | else | |
238ecede MW |
22008 | if test "$ac_cv_type_wchar_t" = yes; then |
22009 | # The cast to unsigned long works around a bug in the HP C Compiler | |
22010 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
22011 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
22012 | # This bug is HP SR number 8606223364. | |
22013 | if test "$cross_compiling" = yes; then | |
22014 | # Depending upon the size, compute the lo and hi bounds. | |
22015 | cat >conftest.$ac_ext <<_ACEOF | |
22016 | /* confdefs.h. */ | |
22017 | _ACEOF | |
22018 | cat confdefs.h >>conftest.$ac_ext | |
22019 | cat >>conftest.$ac_ext <<_ACEOF | |
22020 | /* end confdefs.h. */ | |
22021 | ||
83d8eb47 MW |
22022 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
22023 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
22024 | # error "fake wchar_t" |
22025 | #endif | |
22026 | #ifdef HAVE_WCHAR_H | |
22027 | # ifdef __CYGWIN__ | |
22028 | # include <stddef.h> | |
22029 | # endif | |
22030 | # include <wchar.h> | |
22031 | #endif | |
22032 | #ifdef HAVE_STDLIB_H | |
22033 | # include <stdlib.h> | |
22034 | #endif | |
22035 | #include <stdio.h> | |
22036 | ||
22037 | ||
22038 | ||
22039 | int | |
22040 | main () | |
22041 | { | |
22042 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
22043 | test_array [0] = 0 | |
22044 | ||
22045 | ; | |
22046 | return 0; | |
22047 | } | |
22048 | _ACEOF | |
22049 | rm -f conftest.$ac_objext | |
22050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22051 | (eval $ac_compile) 2>conftest.er1 | |
22052 | ac_status=$? | |
22053 | grep -v '^ *+' conftest.er1 >conftest.err | |
22054 | rm -f conftest.er1 | |
22055 | cat conftest.err >&5 | |
22056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22057 | (exit $ac_status); } && | |
bb9e79c0 | 22058 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
22059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22060 | (eval $ac_try) 2>&5 | |
22061 | ac_status=$? | |
22062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22063 | (exit $ac_status); }; } && | |
22064 | { ac_try='test -s conftest.$ac_objext' | |
22065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22066 | (eval $ac_try) 2>&5 | |
22067 | ac_status=$? | |
22068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22069 | (exit $ac_status); }; }; then | |
22070 | ac_lo=0 ac_mid=0 | |
22071 | while :; do | |
22072 | cat >conftest.$ac_ext <<_ACEOF | |
22073 | /* confdefs.h. */ | |
22074 | _ACEOF | |
22075 | cat confdefs.h >>conftest.$ac_ext | |
22076 | cat >>conftest.$ac_ext <<_ACEOF | |
22077 | /* end confdefs.h. */ | |
22078 | ||
83d8eb47 MW |
22079 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
22080 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
22081 | # error "fake wchar_t" |
22082 | #endif | |
22083 | #ifdef HAVE_WCHAR_H | |
22084 | # ifdef __CYGWIN__ | |
22085 | # include <stddef.h> | |
22086 | # endif | |
22087 | # include <wchar.h> | |
22088 | #endif | |
22089 | #ifdef HAVE_STDLIB_H | |
22090 | # include <stdlib.h> | |
22091 | #endif | |
22092 | #include <stdio.h> | |
22093 | ||
22094 | ||
22095 | ||
22096 | int | |
22097 | main () | |
22098 | { | |
22099 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
22100 | test_array [0] = 0 | |
22101 | ||
22102 | ; | |
22103 | return 0; | |
22104 | } | |
22105 | _ACEOF | |
22106 | rm -f conftest.$ac_objext | |
22107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22108 | (eval $ac_compile) 2>conftest.er1 | |
22109 | ac_status=$? | |
22110 | grep -v '^ *+' conftest.er1 >conftest.err | |
22111 | rm -f conftest.er1 | |
22112 | cat conftest.err >&5 | |
22113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22114 | (exit $ac_status); } && | |
bb9e79c0 | 22115 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
22116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22117 | (eval $ac_try) 2>&5 | |
22118 | ac_status=$? | |
22119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22120 | (exit $ac_status); }; } && | |
22121 | { ac_try='test -s conftest.$ac_objext' | |
22122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22123 | (eval $ac_try) 2>&5 | |
22124 | ac_status=$? | |
22125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22126 | (exit $ac_status); }; }; then | |
22127 | ac_hi=$ac_mid; break | |
22128 | else | |
22129 | echo "$as_me: failed program was:" >&5 | |
22130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22131 | ||
22132 | ac_lo=`expr $ac_mid + 1` | |
22133 | if test $ac_lo -le $ac_mid; then | |
22134 | ac_lo= ac_hi= | |
22135 | break | |
22136 | fi | |
22137 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
22138 | fi | |
22139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22140 | done | |
22141 | else | |
22142 | echo "$as_me: failed program was:" >&5 | |
22143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22144 | ||
22145 | cat >conftest.$ac_ext <<_ACEOF | |
22146 | /* confdefs.h. */ | |
22147 | _ACEOF | |
22148 | cat confdefs.h >>conftest.$ac_ext | |
22149 | cat >>conftest.$ac_ext <<_ACEOF | |
22150 | /* end confdefs.h. */ | |
22151 | ||
83d8eb47 MW |
22152 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
22153 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
22154 | # error "fake wchar_t" |
22155 | #endif | |
22156 | #ifdef HAVE_WCHAR_H | |
22157 | # ifdef __CYGWIN__ | |
22158 | # include <stddef.h> | |
22159 | # endif | |
22160 | # include <wchar.h> | |
22161 | #endif | |
22162 | #ifdef HAVE_STDLIB_H | |
22163 | # include <stdlib.h> | |
22164 | #endif | |
22165 | #include <stdio.h> | |
22166 | ||
22167 | ||
22168 | ||
22169 | int | |
22170 | main () | |
22171 | { | |
22172 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
22173 | test_array [0] = 0 | |
22174 | ||
22175 | ; | |
22176 | return 0; | |
22177 | } | |
22178 | _ACEOF | |
22179 | rm -f conftest.$ac_objext | |
22180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22181 | (eval $ac_compile) 2>conftest.er1 | |
22182 | ac_status=$? | |
22183 | grep -v '^ *+' conftest.er1 >conftest.err | |
22184 | rm -f conftest.er1 | |
22185 | cat conftest.err >&5 | |
22186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22187 | (exit $ac_status); } && | |
bb9e79c0 | 22188 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
22189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22190 | (eval $ac_try) 2>&5 | |
22191 | ac_status=$? | |
22192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22193 | (exit $ac_status); }; } && | |
22194 | { ac_try='test -s conftest.$ac_objext' | |
22195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22196 | (eval $ac_try) 2>&5 | |
22197 | ac_status=$? | |
22198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22199 | (exit $ac_status); }; }; then | |
22200 | ac_hi=-1 ac_mid=-1 | |
22201 | while :; do | |
22202 | cat >conftest.$ac_ext <<_ACEOF | |
22203 | /* confdefs.h. */ | |
22204 | _ACEOF | |
22205 | cat confdefs.h >>conftest.$ac_ext | |
22206 | cat >>conftest.$ac_ext <<_ACEOF | |
22207 | /* end confdefs.h. */ | |
22208 | ||
83d8eb47 MW |
22209 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
22210 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
22211 | # error "fake wchar_t" |
22212 | #endif | |
22213 | #ifdef HAVE_WCHAR_H | |
22214 | # ifdef __CYGWIN__ | |
22215 | # include <stddef.h> | |
22216 | # endif | |
22217 | # include <wchar.h> | |
22218 | #endif | |
22219 | #ifdef HAVE_STDLIB_H | |
22220 | # include <stdlib.h> | |
22221 | #endif | |
22222 | #include <stdio.h> | |
22223 | ||
22224 | ||
22225 | ||
22226 | int | |
22227 | main () | |
22228 | { | |
22229 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
22230 | test_array [0] = 0 | |
22231 | ||
22232 | ; | |
22233 | return 0; | |
22234 | } | |
22235 | _ACEOF | |
22236 | rm -f conftest.$ac_objext | |
22237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22238 | (eval $ac_compile) 2>conftest.er1 | |
22239 | ac_status=$? | |
22240 | grep -v '^ *+' conftest.er1 >conftest.err | |
22241 | rm -f conftest.er1 | |
22242 | cat conftest.err >&5 | |
22243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22244 | (exit $ac_status); } && | |
bb9e79c0 | 22245 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
22246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22247 | (eval $ac_try) 2>&5 | |
22248 | ac_status=$? | |
22249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22250 | (exit $ac_status); }; } && | |
22251 | { ac_try='test -s conftest.$ac_objext' | |
22252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22253 | (eval $ac_try) 2>&5 | |
22254 | ac_status=$? | |
22255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22256 | (exit $ac_status); }; }; then | |
22257 | ac_lo=$ac_mid; break | |
22258 | else | |
22259 | echo "$as_me: failed program was:" >&5 | |
22260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22261 | ||
22262 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
22263 | if test $ac_mid -le $ac_hi; then | |
22264 | ac_lo= ac_hi= | |
22265 | break | |
22266 | fi | |
22267 | ac_mid=`expr 2 '*' $ac_mid` | |
22268 | fi | |
22269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22270 | done | |
22271 | else | |
22272 | echo "$as_me: failed program was:" >&5 | |
22273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22274 | ||
22275 | ac_lo= ac_hi= | |
22276 | fi | |
22277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22278 | fi | |
22279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22280 | # Binary search between lo and hi bounds. | |
22281 | while test "x$ac_lo" != "x$ac_hi"; do | |
22282 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
22283 | cat >conftest.$ac_ext <<_ACEOF | |
22284 | /* confdefs.h. */ | |
22285 | _ACEOF | |
22286 | cat confdefs.h >>conftest.$ac_ext | |
22287 | cat >>conftest.$ac_ext <<_ACEOF | |
22288 | /* end confdefs.h. */ | |
22289 | ||
83d8eb47 MW |
22290 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
22291 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
22292 | # error "fake wchar_t" |
22293 | #endif | |
22294 | #ifdef HAVE_WCHAR_H | |
22295 | # ifdef __CYGWIN__ | |
22296 | # include <stddef.h> | |
22297 | # endif | |
22298 | # include <wchar.h> | |
22299 | #endif | |
22300 | #ifdef HAVE_STDLIB_H | |
22301 | # include <stdlib.h> | |
22302 | #endif | |
22303 | #include <stdio.h> | |
a848cd7e | 22304 | |
a848cd7e | 22305 | |
a848cd7e | 22306 | |
238ecede MW |
22307 | int |
22308 | main () | |
22309 | { | |
22310 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
22311 | test_array [0] = 0 | |
a848cd7e | 22312 | |
238ecede MW |
22313 | ; |
22314 | return 0; | |
22315 | } | |
22316 | _ACEOF | |
22317 | rm -f conftest.$ac_objext | |
22318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22319 | (eval $ac_compile) 2>conftest.er1 | |
22320 | ac_status=$? | |
22321 | grep -v '^ *+' conftest.er1 >conftest.err | |
22322 | rm -f conftest.er1 | |
22323 | cat conftest.err >&5 | |
22324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22325 | (exit $ac_status); } && | |
bb9e79c0 | 22326 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
22327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22328 | (eval $ac_try) 2>&5 | |
22329 | ac_status=$? | |
22330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22331 | (exit $ac_status); }; } && | |
22332 | { ac_try='test -s conftest.$ac_objext' | |
22333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22334 | (eval $ac_try) 2>&5 | |
22335 | ac_status=$? | |
22336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22337 | (exit $ac_status); }; }; then | |
22338 | ac_hi=$ac_mid | |
22339 | else | |
22340 | echo "$as_me: failed program was:" >&5 | |
22341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22342 | ||
22343 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
22344 | fi | |
22345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22346 | done | |
22347 | case $ac_lo in | |
22348 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
22349 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
22350 | See \`config.log' for more details." >&5 | |
22351 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
22352 | See \`config.log' for more details." >&2;} | |
22353 | { (exit 1); exit 1; }; } ;; | |
22354 | esac | |
22355 | else | |
22356 | if test "$cross_compiling" = yes; then | |
bb9e79c0 VZ |
22357 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
22358 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 22359 | { (exit 1); exit 1; }; } |
a848cd7e SC |
22360 | else |
22361 | cat >conftest.$ac_ext <<_ACEOF | |
22362 | /* confdefs.h. */ | |
22363 | _ACEOF | |
22364 | cat confdefs.h >>conftest.$ac_ext | |
22365 | cat >>conftest.$ac_ext <<_ACEOF | |
22366 | /* end confdefs.h. */ | |
22367 | ||
83d8eb47 MW |
22368 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
22369 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
22370 | # error "fake wchar_t" |
22371 | #endif | |
22372 | #ifdef HAVE_WCHAR_H | |
22373 | # ifdef __CYGWIN__ | |
22374 | # include <stddef.h> | |
22375 | # endif | |
22376 | # include <wchar.h> | |
22377 | #endif | |
22378 | #ifdef HAVE_STDLIB_H | |
22379 | # include <stdlib.h> | |
22380 | #endif | |
22381 | #include <stdio.h> | |
22382 | ||
22383 | ||
22384 | ||
22385 | long longval () { return (long) (sizeof (wchar_t)); } | |
22386 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
22387 | #include <stdio.h> | |
22388 | #include <stdlib.h> | |
22389 | int | |
22390 | main () | |
22391 | { | |
a848cd7e | 22392 | |
238ecede MW |
22393 | FILE *f = fopen ("conftest.val", "w"); |
22394 | if (! f) | |
22395 | exit (1); | |
22396 | if (((long) (sizeof (wchar_t))) < 0) | |
22397 | { | |
22398 | long i = longval (); | |
22399 | if (i != ((long) (sizeof (wchar_t)))) | |
22400 | exit (1); | |
22401 | fprintf (f, "%ld\n", i); | |
22402 | } | |
22403 | else | |
22404 | { | |
22405 | unsigned long i = ulongval (); | |
22406 | if (i != ((long) (sizeof (wchar_t)))) | |
22407 | exit (1); | |
22408 | fprintf (f, "%lu\n", i); | |
22409 | } | |
22410 | exit (ferror (f) || fclose (f) != 0); | |
22411 | ||
22412 | ; | |
22413 | return 0; | |
22414 | } | |
a848cd7e SC |
22415 | _ACEOF |
22416 | rm -f conftest$ac_exeext | |
22417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22418 | (eval $ac_link) 2>&5 | |
22419 | ac_status=$? | |
22420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22421 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22423 | (eval $ac_try) 2>&5 | |
22424 | ac_status=$? | |
22425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22426 | (exit $ac_status); }; }; then | |
238ecede | 22427 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
22428 | else |
22429 | echo "$as_me: program exited with status $ac_status" >&5 | |
22430 | echo "$as_me: failed program was:" >&5 | |
22431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22432 | ||
22433 | ( exit $ac_status ) | |
238ecede MW |
22434 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
22435 | See \`config.log' for more details." >&5 | |
22436 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
22437 | See \`config.log' for more details." >&2;} | |
22438 | { (exit 1); exit 1; }; } | |
a848cd7e | 22439 | fi |
ac1cb8d3 | 22440 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22441 | fi |
a848cd7e | 22442 | fi |
238ecede MW |
22443 | rm -f conftest.val |
22444 | else | |
22445 | ac_cv_sizeof_wchar_t=0 | |
22446 | fi | |
22447 | fi | |
22448 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
22449 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 22450 | cat >>confdefs.h <<_ACEOF |
238ecede | 22451 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
22452 | _ACEOF |
22453 | ||
22454 | ||
47a7e797 MW |
22455 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
22456 | wxUSE_WCHAR_T=yes | |
22457 | else | |
22458 | wxUSE_WCHAR_T=no | |
22459 | fi | |
238ecede | 22460 | |
ba3d13e1 VZ |
22461 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
22462 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
22463 | if test "${wx_cv_func_va_copy+set}" = set; then | |
22464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22465 | else | |
22466 | ||
22467 | cat >conftest.$ac_ext <<_ACEOF | |
22468 | ||
22469 | #include <stdarg.h> | |
22470 | void foo(char *f, ...) | |
22471 | { | |
22472 | va_list ap1, ap2; | |
22473 | va_start(ap1, f); | |
22474 | va_copy(ap2, ap1); | |
22475 | va_end(ap2); | |
22476 | va_end(ap1); | |
22477 | } | |
5886b072 VZ |
22478 | int main() |
22479 | { | |
b902e639 VZ |
22480 | foo("hi", 17); |
22481 | return 0; | |
5886b072 | 22482 | } |
ba3d13e1 VZ |
22483 | _ACEOF |
22484 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22486 | (eval $ac_link) 2>conftest.er1 | |
22487 | ac_status=$? | |
22488 | grep -v '^ *+' conftest.er1 >conftest.err | |
22489 | rm -f conftest.er1 | |
22490 | cat conftest.err >&5 | |
22491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22492 | (exit $ac_status); } && | |
bb9e79c0 | 22493 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
22494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22495 | (eval $ac_try) 2>&5 | |
22496 | ac_status=$? | |
22497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22498 | (exit $ac_status); }; } && | |
22499 | { ac_try='test -s conftest$ac_exeext' | |
22500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22501 | (eval $ac_try) 2>&5 | |
22502 | ac_status=$? | |
22503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22504 | (exit $ac_status); }; }; then | |
22505 | wx_cv_func_va_copy=yes | |
22506 | else | |
22507 | echo "$as_me: failed program was:" >&5 | |
22508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22509 | ||
22510 | wx_cv_func_va_copy=no | |
22511 | ||
22512 | fi | |
22513 | rm -f conftest.err conftest.$ac_objext \ | |
22514 | conftest$ac_exeext conftest.$ac_ext | |
22515 | ||
22516 | ||
22517 | fi | |
22518 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
22519 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
22520 | ||
22521 | if test $wx_cv_func_va_copy = "yes"; then | |
22522 | cat >>confdefs.h <<\_ACEOF | |
22523 | #define HAVE_VA_COPY 1 | |
22524 | _ACEOF | |
22525 | ||
22526 | else | |
22527 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
22528 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
22529 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
22530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22531 | else | |
22532 | ||
22533 | if test "$cross_compiling" = yes; then | |
22534 | wx_cv_type_va_list_lvalue=yes | |
22535 | ||
22536 | else | |
22537 | cat >conftest.$ac_ext <<_ACEOF | |
22538 | ||
22539 | #include <stdarg.h> | |
22540 | int foo(char *f, ...) | |
22541 | { | |
22542 | va_list ap1, ap2; | |
22543 | va_start(ap1, f); | |
22544 | ap2 = ap1; | |
22545 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
22546 | return 1; | |
22547 | va_end(ap2); | |
22548 | va_end(ap1); | |
22549 | return 0; | |
22550 | } | |
22551 | int main() | |
22552 | { | |
22553 | return foo("hi", 17); | |
22554 | } | |
22555 | _ACEOF | |
22556 | rm -f conftest$ac_exeext | |
22557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22558 | (eval $ac_link) 2>&5 | |
22559 | ac_status=$? | |
22560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22561 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22563 | (eval $ac_try) 2>&5 | |
22564 | ac_status=$? | |
22565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22566 | (exit $ac_status); }; }; then | |
22567 | wx_cv_type_va_list_lvalue=yes | |
22568 | else | |
22569 | echo "$as_me: program exited with status $ac_status" >&5 | |
22570 | echo "$as_me: failed program was:" >&5 | |
22571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22572 | ||
22573 | ( exit $ac_status ) | |
22574 | wx_cv_type_va_list_lvalue=no | |
22575 | fi | |
22576 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22577 | fi | |
22578 | ||
22579 | ||
22580 | fi | |
22581 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
22582 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
22583 | ||
22584 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
22585 | cat >>confdefs.h <<\_ACEOF | |
22586 | #define VA_LIST_IS_ARRAY 1 | |
22587 | _ACEOF | |
22588 | ||
22589 | fi | |
22590 | fi | |
22591 | ||
ca766534 VS |
22592 | echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5 |
22593 | echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6 | |
22594 | if test "${wx_cv_have_variadic_macros+set}" = set; then | |
22595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22596 | else | |
22597 | ||
22598 | cat >conftest.$ac_ext <<_ACEOF | |
22599 | /* confdefs.h. */ | |
22600 | _ACEOF | |
22601 | cat confdefs.h >>conftest.$ac_ext | |
22602 | cat >>conftest.$ac_ext <<_ACEOF | |
22603 | /* end confdefs.h. */ | |
22604 | ||
22605 | #include <stdio.h> | |
22606 | #define test(fmt, ...) printf(fmt, __VA_ARGS__) | |
22607 | ||
22608 | int | |
22609 | main () | |
22610 | { | |
22611 | ||
22612 | test("%s %d %p", "test", 1, 0); | |
22613 | ||
22614 | ||
22615 | ; | |
22616 | return 0; | |
22617 | } | |
22618 | _ACEOF | |
22619 | rm -f conftest.$ac_objext | |
22620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22621 | (eval $ac_compile) 2>conftest.er1 | |
22622 | ac_status=$? | |
22623 | grep -v '^ *+' conftest.er1 >conftest.err | |
22624 | rm -f conftest.er1 | |
22625 | cat conftest.err >&5 | |
22626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22627 | (exit $ac_status); } && | |
bb9e79c0 | 22628 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ca766534 VS |
22629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22630 | (eval $ac_try) 2>&5 | |
22631 | ac_status=$? | |
22632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22633 | (exit $ac_status); }; } && | |
22634 | { ac_try='test -s conftest.$ac_objext' | |
22635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22636 | (eval $ac_try) 2>&5 | |
22637 | ac_status=$? | |
22638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22639 | (exit $ac_status); }; }; then | |
22640 | wx_cv_have_variadic_macros=yes | |
22641 | else | |
22642 | echo "$as_me: failed program was:" >&5 | |
22643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22644 | ||
22645 | wx_cv_have_variadic_macros=no | |
22646 | ||
22647 | fi | |
22648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22649 | ||
22650 | ||
22651 | fi | |
22652 | echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5 | |
22653 | echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6 | |
22654 | ||
22655 | if test $wx_cv_have_variadic_macros = "yes"; then | |
22656 | cat >>confdefs.h <<\_ACEOF | |
22657 | #define HAVE_VARIADIC_MACROS 1 | |
22658 | _ACEOF | |
22659 | ||
22660 | fi | |
22661 | ||
a848cd7e SC |
22662 | # Check whether --enable-largefile or --disable-largefile was given. |
22663 | if test "${enable_largefile+set}" = set; then | |
22664 | enableval="$enable_largefile" | |
22665 | ||
22666 | fi; | |
22667 | if test "$enable_largefile" != no; then | |
22668 | wx_largefile=no | |
22669 | ||
22670 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
22671 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
22672 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
22673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22674 | else | |
22675 | ||
22676 | cat >conftest.$ac_ext <<_ACEOF | |
22677 | /* confdefs.h. */ | |
22678 | _ACEOF | |
22679 | cat confdefs.h >>conftest.$ac_ext | |
22680 | cat >>conftest.$ac_ext <<_ACEOF | |
22681 | /* end confdefs.h. */ | |
22682 | #define _FILE_OFFSET_BITS 64 | |
22683 | #include <sys/types.h> | |
22684 | int | |
22685 | main () | |
22686 | { | |
22687 | typedef struct { | |
22688 | unsigned int field: sizeof(off_t) == 8; | |
22689 | } wxlf; | |
22690 | ||
22691 | ; | |
22692 | return 0; | |
22693 | } | |
22694 | _ACEOF | |
22695 | rm -f conftest.$ac_objext | |
22696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22697 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22698 | ac_status=$? |
ac1cb8d3 VS |
22699 | grep -v '^ *+' conftest.er1 >conftest.err |
22700 | rm -f conftest.er1 | |
22701 | cat conftest.err >&5 | |
a848cd7e SC |
22702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22703 | (exit $ac_status); } && | |
bb9e79c0 | 22704 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22706 | (eval $ac_try) 2>&5 | |
22707 | ac_status=$? | |
22708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22709 | (exit $ac_status); }; } && | |
22710 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22712 | (eval $ac_try) 2>&5 | |
22713 | ac_status=$? | |
22714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22715 | (exit $ac_status); }; }; then | |
22716 | ac_cv_sys_file_offset_bits=64 | |
22717 | else | |
22718 | echo "$as_me: failed program was:" >&5 | |
22719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22720 | ||
22721 | ac_cv_sys_file_offset_bits=no | |
22722 | fi | |
ac1cb8d3 | 22723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22724 | |
22725 | ||
22726 | fi | |
22727 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
22728 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
22729 | ||
22730 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
22731 | wx_largefile=yes | |
22732 | cat >>confdefs.h <<_ACEOF | |
22733 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
22734 | _ACEOF | |
22735 | ||
22736 | fi | |
22737 | ||
22738 | if test "x$wx_largefile" != "xyes"; then | |
22739 | ||
22740 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
22741 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
22742 | if test "${ac_cv_sys_large_files+set}" = set; then | |
22743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22744 | else | |
22745 | ||
22746 | cat >conftest.$ac_ext <<_ACEOF | |
22747 | /* confdefs.h. */ | |
22748 | _ACEOF | |
22749 | cat confdefs.h >>conftest.$ac_ext | |
22750 | cat >>conftest.$ac_ext <<_ACEOF | |
22751 | /* end confdefs.h. */ | |
22752 | #define _LARGE_FILES 1 | |
22753 | #include <sys/types.h> | |
22754 | int | |
22755 | main () | |
22756 | { | |
22757 | typedef struct { | |
22758 | unsigned int field: sizeof(off_t) == 8; | |
22759 | } wxlf; | |
22760 | ||
22761 | ; | |
22762 | return 0; | |
22763 | } | |
22764 | _ACEOF | |
22765 | rm -f conftest.$ac_objext | |
22766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22767 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22768 | ac_status=$? |
ac1cb8d3 VS |
22769 | grep -v '^ *+' conftest.er1 >conftest.err |
22770 | rm -f conftest.er1 | |
22771 | cat conftest.err >&5 | |
a848cd7e SC |
22772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22773 | (exit $ac_status); } && | |
bb9e79c0 | 22774 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22776 | (eval $ac_try) 2>&5 | |
22777 | ac_status=$? | |
22778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22779 | (exit $ac_status); }; } && | |
22780 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22782 | (eval $ac_try) 2>&5 | |
22783 | ac_status=$? | |
22784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22785 | (exit $ac_status); }; }; then | |
22786 | ac_cv_sys_large_files=1 | |
22787 | else | |
22788 | echo "$as_me: failed program was:" >&5 | |
22789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22790 | ||
22791 | ac_cv_sys_large_files=no | |
22792 | fi | |
ac1cb8d3 | 22793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22794 | |
22795 | ||
22796 | fi | |
22797 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
22798 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
22799 | ||
22800 | if test "$ac_cv_sys_large_files" != no; then | |
22801 | wx_largefile=yes | |
22802 | cat >>confdefs.h <<_ACEOF | |
22803 | #define _LARGE_FILES $ac_cv_sys_large_files | |
22804 | _ACEOF | |
22805 | ||
22806 | fi | |
22807 | ||
22808 | fi | |
22809 | ||
22810 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
22811 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
22812 | if test "x$wx_largefile" = "xyes"; then | |
22813 | cat >>confdefs.h <<\_ACEOF | |
22814 | #define HAVE_LARGEFILE_SUPPORT 1 | |
22815 | _ACEOF | |
22816 | ||
22817 | fi | |
22818 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
22819 | echo "${ECHO_T}$wx_largefile" >&6 | |
22820 | fi | |
22821 | ||
5b674b9d DE |
22822 | |
22823 | if test "x$wx_largefile" = "xyes"; then | |
22824 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
5ff751d6 | 22825 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" |
00421666 MW |
22826 | |
22827 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
22828 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
22829 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
22830 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
22831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22832 | else | |
22833 | ||
00421666 MW |
22834 | cat >conftest.$ac_ext <<_ACEOF |
22835 | /* confdefs.h. */ | |
22836 | _ACEOF | |
22837 | cat confdefs.h >>conftest.$ac_ext | |
22838 | cat >>conftest.$ac_ext <<_ACEOF | |
22839 | /* end confdefs.h. */ | |
22840 | ||
22841 | int | |
22842 | main () | |
22843 | { | |
22844 | ||
22845 | #ifndef __STDC_EXT__ | |
22846 | choke me | |
22847 | #endif | |
22848 | ||
22849 | ; | |
22850 | return 0; | |
22851 | } | |
22852 | _ACEOF | |
22853 | rm -f conftest.$ac_objext | |
22854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22855 | (eval $ac_compile) 2>conftest.er1 | |
22856 | ac_status=$? | |
22857 | grep -v '^ *+' conftest.er1 >conftest.err | |
22858 | rm -f conftest.er1 | |
22859 | cat conftest.err >&5 | |
22860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22861 | (exit $ac_status); } && | |
bb9e79c0 | 22862 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
00421666 MW |
22863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22864 | (eval $ac_try) 2>&5 | |
22865 | ac_status=$? | |
22866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22867 | (exit $ac_status); }; } && | |
22868 | { ac_try='test -s conftest.$ac_objext' | |
22869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22870 | (eval $ac_try) 2>&5 | |
22871 | ac_status=$? | |
22872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22873 | (exit $ac_status); }; }; then | |
22874 | wx_cv_STDC_EXT_required=no | |
22875 | else | |
22876 | echo "$as_me: failed program was:" >&5 | |
22877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22878 | ||
22879 | wx_cv_STDC_EXT_required=yes | |
22880 | ||
22881 | fi | |
22882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
00421666 MW |
22883 | |
22884 | ||
22885 | fi | |
22886 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
22887 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
22888 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
5ff751d6 | 22889 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" |
00421666 MW |
22890 | fi |
22891 | fi | |
5b674b9d | 22892 | else |
5ff751d6 | 22893 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES" |
5b674b9d DE |
22894 | fi |
22895 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
22896 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
22897 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
22898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22899 | else | |
22900 | while :; do | |
22901 | ac_cv_sys_largefile_source=no | |
22902 | cat >conftest.$ac_ext <<_ACEOF | |
22903 | /* confdefs.h. */ | |
22904 | _ACEOF | |
22905 | cat confdefs.h >>conftest.$ac_ext | |
22906 | cat >>conftest.$ac_ext <<_ACEOF | |
22907 | /* end confdefs.h. */ | |
22908 | #include <stdio.h> | |
22909 | int | |
22910 | main () | |
22911 | { | |
22912 | return !fseeko; | |
22913 | ; | |
22914 | return 0; | |
22915 | } | |
22916 | _ACEOF | |
22917 | rm -f conftest.$ac_objext | |
22918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22919 | (eval $ac_compile) 2>conftest.er1 | |
22920 | ac_status=$? | |
22921 | grep -v '^ *+' conftest.er1 >conftest.err | |
22922 | rm -f conftest.er1 | |
22923 | cat conftest.err >&5 | |
22924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22925 | (exit $ac_status); } && | |
bb9e79c0 | 22926 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
22927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22928 | (eval $ac_try) 2>&5 | |
22929 | ac_status=$? | |
22930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22931 | (exit $ac_status); }; } && | |
22932 | { ac_try='test -s conftest.$ac_objext' | |
22933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22934 | (eval $ac_try) 2>&5 | |
22935 | ac_status=$? | |
22936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22937 | (exit $ac_status); }; }; then | |
22938 | break | |
22939 | else | |
22940 | echo "$as_me: failed program was:" >&5 | |
22941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22942 | ||
22943 | fi | |
22944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22945 | cat >conftest.$ac_ext <<_ACEOF | |
22946 | /* confdefs.h. */ | |
22947 | _ACEOF | |
22948 | cat confdefs.h >>conftest.$ac_ext | |
22949 | cat >>conftest.$ac_ext <<_ACEOF | |
22950 | /* end confdefs.h. */ | |
22951 | #define _LARGEFILE_SOURCE 1 | |
22952 | #include <stdio.h> | |
22953 | int | |
22954 | main () | |
22955 | { | |
22956 | return !fseeko; | |
22957 | ; | |
22958 | return 0; | |
22959 | } | |
22960 | _ACEOF | |
22961 | rm -f conftest.$ac_objext | |
22962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22963 | (eval $ac_compile) 2>conftest.er1 | |
22964 | ac_status=$? | |
22965 | grep -v '^ *+' conftest.er1 >conftest.err | |
22966 | rm -f conftest.er1 | |
22967 | cat conftest.err >&5 | |
22968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22969 | (exit $ac_status); } && | |
bb9e79c0 | 22970 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
22971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22972 | (eval $ac_try) 2>&5 | |
22973 | ac_status=$? | |
22974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22975 | (exit $ac_status); }; } && | |
22976 | { ac_try='test -s conftest.$ac_objext' | |
22977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22978 | (eval $ac_try) 2>&5 | |
22979 | ac_status=$? | |
22980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22981 | (exit $ac_status); }; }; then | |
22982 | ac_cv_sys_largefile_source=1; break | |
22983 | else | |
22984 | echo "$as_me: failed program was:" >&5 | |
22985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22986 | ||
22987 | fi | |
22988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22989 | break | |
22990 | done | |
22991 | fi | |
22992 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
22993 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
22994 | if test "$ac_cv_sys_largefile_source" != no; then | |
22995 | ||
22996 | cat >>confdefs.h <<_ACEOF | |
22997 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
22998 | _ACEOF | |
22999 | ||
23000 | fi | |
23001 | rm -f conftest* | |
23002 | ||
23003 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
23004 | # in glibc 2.1.3, but that breaks too many other things. | |
23005 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
23006 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
23007 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
23008 | if test "${ac_cv_func_fseeko+set}" = set; then | |
23009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23010 | else | |
23011 | cat >conftest.$ac_ext <<_ACEOF | |
23012 | /* confdefs.h. */ | |
23013 | _ACEOF | |
23014 | cat confdefs.h >>conftest.$ac_ext | |
23015 | cat >>conftest.$ac_ext <<_ACEOF | |
23016 | /* end confdefs.h. */ | |
23017 | #include <stdio.h> | |
23018 | int | |
23019 | main () | |
23020 | { | |
23021 | return fseeko && fseeko (stdin, 0, 0); | |
23022 | ; | |
23023 | return 0; | |
23024 | } | |
23025 | _ACEOF | |
23026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23028 | (eval $ac_link) 2>conftest.er1 | |
23029 | ac_status=$? | |
23030 | grep -v '^ *+' conftest.er1 >conftest.err | |
23031 | rm -f conftest.er1 | |
23032 | cat conftest.err >&5 | |
23033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23034 | (exit $ac_status); } && | |
bb9e79c0 | 23035 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
23036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23037 | (eval $ac_try) 2>&5 | |
23038 | ac_status=$? | |
23039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23040 | (exit $ac_status); }; } && | |
23041 | { ac_try='test -s conftest$ac_exeext' | |
23042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23043 | (eval $ac_try) 2>&5 | |
23044 | ac_status=$? | |
23045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23046 | (exit $ac_status); }; }; then | |
23047 | ac_cv_func_fseeko=yes | |
23048 | else | |
23049 | echo "$as_me: failed program was:" >&5 | |
23050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23051 | ||
23052 | ac_cv_func_fseeko=no | |
23053 | fi | |
23054 | rm -f conftest.err conftest.$ac_objext \ | |
23055 | conftest$ac_exeext conftest.$ac_ext | |
23056 | fi | |
23057 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
23058 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
23059 | if test $ac_cv_func_fseeko = yes; then | |
23060 | ||
23061 | cat >>confdefs.h <<\_ACEOF | |
23062 | #define HAVE_FSEEKO 1 | |
23063 | _ACEOF | |
23064 | ||
23065 | fi | |
23066 | ||
5b674b9d | 23067 | if test "$ac_cv_sys_largefile_source" != no; then |
5ff751d6 | 23068 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" |
a848cd7e | 23069 | fi |
a848cd7e SC |
23070 | fi |
23071 | ||
23072 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
23073 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
23074 | if test "${ac_cv_c_bigendian+set}" = set; then | |
23075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23076 | else | |
23077 | ac_cv_c_bigendian=unknown | |
23078 | # See if sys/param.h defines the BYTE_ORDER macro. | |
23079 | cat >conftest.$ac_ext <<_ACEOF | |
23080 | /* confdefs.h. */ | |
23081 | _ACEOF | |
23082 | cat confdefs.h >>conftest.$ac_ext | |
23083 | cat >>conftest.$ac_ext <<_ACEOF | |
23084 | /* end confdefs.h. */ | |
23085 | #include <sys/types.h> | |
23086 | #include <sys/param.h> | |
23087 | int | |
23088 | main () | |
23089 | { | |
23090 | ||
23091 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
23092 | bogus endian macros | |
23093 | #endif | |
23094 | ; | |
23095 | return 0; | |
23096 | } | |
23097 | _ACEOF | |
23098 | rm -f conftest.$ac_objext | |
23099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23100 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23101 | ac_status=$? |
ac1cb8d3 VS |
23102 | grep -v '^ *+' conftest.er1 >conftest.err |
23103 | rm -f conftest.er1 | |
23104 | cat conftest.err >&5 | |
a848cd7e SC |
23105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23106 | (exit $ac_status); } && | |
bb9e79c0 | 23107 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23109 | (eval $ac_try) 2>&5 | |
23110 | ac_status=$? | |
23111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23112 | (exit $ac_status); }; } && | |
23113 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23115 | (eval $ac_try) 2>&5 | |
23116 | ac_status=$? | |
23117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23118 | (exit $ac_status); }; }; then | |
23119 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
23120 | cat >conftest.$ac_ext <<_ACEOF | |
23121 | /* confdefs.h. */ | |
23122 | _ACEOF | |
23123 | cat confdefs.h >>conftest.$ac_ext | |
23124 | cat >>conftest.$ac_ext <<_ACEOF | |
23125 | /* end confdefs.h. */ | |
23126 | #include <sys/types.h> | |
23127 | #include <sys/param.h> | |
23128 | int | |
23129 | main () | |
23130 | { | |
23131 | ||
23132 | #if BYTE_ORDER != BIG_ENDIAN | |
23133 | not big endian | |
23134 | #endif | |
23135 | ; | |
23136 | return 0; | |
23137 | } | |
23138 | _ACEOF | |
23139 | rm -f conftest.$ac_objext | |
23140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23141 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23142 | ac_status=$? |
ac1cb8d3 VS |
23143 | grep -v '^ *+' conftest.er1 >conftest.err |
23144 | rm -f conftest.er1 | |
23145 | cat conftest.err >&5 | |
a848cd7e SC |
23146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23147 | (exit $ac_status); } && | |
bb9e79c0 | 23148 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23150 | (eval $ac_try) 2>&5 | |
23151 | ac_status=$? | |
23152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23153 | (exit $ac_status); }; } && | |
23154 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23156 | (eval $ac_try) 2>&5 | |
23157 | ac_status=$? | |
23158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23159 | (exit $ac_status); }; }; then | |
23160 | ac_cv_c_bigendian=yes | |
23161 | else | |
23162 | echo "$as_me: failed program was:" >&5 | |
23163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23164 | ||
23165 | ac_cv_c_bigendian=no | |
23166 | fi | |
ac1cb8d3 | 23167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23168 | else |
23169 | echo "$as_me: failed program was:" >&5 | |
23170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23171 | ||
23172 | fi | |
ac1cb8d3 | 23173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23174 | if test $ac_cv_c_bigendian = unknown; then |
23175 | if test "$cross_compiling" = yes; then | |
23176 | ac_cv_c_bigendian=unknown | |
23177 | else | |
23178 | cat >conftest.$ac_ext <<_ACEOF | |
23179 | /* confdefs.h. */ | |
23180 | _ACEOF | |
23181 | cat confdefs.h >>conftest.$ac_ext | |
23182 | cat >>conftest.$ac_ext <<_ACEOF | |
23183 | /* end confdefs.h. */ | |
23184 | main () { | |
23185 | /* Are we little or big endian? From Harbison&Steele. */ | |
23186 | union | |
23187 | { | |
23188 | long l; | |
23189 | char c[sizeof (long)]; | |
23190 | } u; | |
23191 | u.l = 1; | |
23192 | exit (u.c[sizeof (long) - 1] == 1); | |
23193 | } | |
23194 | _ACEOF | |
23195 | rm -f conftest$ac_exeext | |
23196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23197 | (eval $ac_link) 2>&5 | |
23198 | ac_status=$? | |
23199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23200 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23202 | (eval $ac_try) 2>&5 | |
23203 | ac_status=$? | |
23204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23205 | (exit $ac_status); }; }; then | |
23206 | ac_cv_c_bigendian=no | |
23207 | else | |
23208 | echo "$as_me: program exited with status $ac_status" >&5 | |
23209 | echo "$as_me: failed program was:" >&5 | |
23210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23211 | ||
23212 | ( exit $ac_status ) | |
23213 | ac_cv_c_bigendian=yes | |
23214 | fi | |
ac1cb8d3 | 23215 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23216 | fi |
23217 | fi | |
23218 | fi | |
23219 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
23220 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
23221 | if test $ac_cv_c_bigendian = unknown; then | |
23222 | { 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 | |
23223 | 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;} | |
23224 | fi | |
23225 | if test $ac_cv_c_bigendian = yes; then | |
23226 | cat >>confdefs.h <<\_ACEOF | |
23227 | #define WORDS_BIGENDIAN 1 | |
23228 | _ACEOF | |
23229 | ||
23230 | fi | |
23231 | ||
23232 | ||
a848cd7e SC |
23233 | |
23234 | ||
23235 | ||
23236 | ac_ext=cc | |
23237 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23238 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23239 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23240 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23241 | ||
23242 | ||
23243 | ||
23244 | for ac_header in iostream | |
23245 | do | |
23246 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23248 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23252 | fi | |
23253 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23254 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23255 | else | |
23256 | # Is the header compilable? | |
23257 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23258 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
23259 | cat >conftest.$ac_ext <<_ACEOF | |
23260 | /* confdefs.h. */ | |
23261 | _ACEOF | |
23262 | cat confdefs.h >>conftest.$ac_ext | |
23263 | cat >>conftest.$ac_ext <<_ACEOF | |
23264 | /* end confdefs.h. */ | |
23265 | $ac_includes_default | |
23266 | #include <$ac_header> | |
23267 | _ACEOF | |
23268 | rm -f conftest.$ac_objext | |
23269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23270 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23271 | ac_status=$? |
ac1cb8d3 VS |
23272 | grep -v '^ *+' conftest.er1 >conftest.err |
23273 | rm -f conftest.er1 | |
23274 | cat conftest.err >&5 | |
a848cd7e SC |
23275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23276 | (exit $ac_status); } && | |
bb9e79c0 | 23277 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23279 | (eval $ac_try) 2>&5 | |
23280 | ac_status=$? | |
23281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23282 | (exit $ac_status); }; } && | |
23283 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23285 | (eval $ac_try) 2>&5 | |
23286 | ac_status=$? | |
23287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23288 | (exit $ac_status); }; }; then | |
23289 | ac_header_compiler=yes | |
23290 | else | |
23291 | echo "$as_me: failed program was:" >&5 | |
23292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23293 | ||
23294 | ac_header_compiler=no | |
23295 | fi | |
ac1cb8d3 | 23296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23297 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23298 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23299 | ||
23300 | # Is the header present? | |
23301 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23302 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
23303 | cat >conftest.$ac_ext <<_ACEOF | |
23304 | /* confdefs.h. */ | |
23305 | _ACEOF | |
23306 | cat confdefs.h >>conftest.$ac_ext | |
23307 | cat >>conftest.$ac_ext <<_ACEOF | |
23308 | /* end confdefs.h. */ | |
23309 | #include <$ac_header> | |
23310 | _ACEOF | |
23311 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23312 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23313 | ac_status=$? | |
23314 | grep -v '^ *+' conftest.er1 >conftest.err | |
23315 | rm -f conftest.er1 | |
23316 | cat conftest.err >&5 | |
23317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23318 | (exit $ac_status); } >/dev/null; then | |
23319 | if test -s conftest.err; then | |
23320 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23321 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
23322 | else |
23323 | ac_cpp_err= | |
23324 | fi | |
23325 | else | |
23326 | ac_cpp_err=yes | |
23327 | fi | |
23328 | if test -z "$ac_cpp_err"; then | |
23329 | ac_header_preproc=yes | |
23330 | else | |
23331 | echo "$as_me: failed program was:" >&5 | |
23332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23333 | ||
23334 | ac_header_preproc=no | |
23335 | fi | |
23336 | rm -f conftest.err conftest.$ac_ext | |
23337 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23338 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23339 | ||
23340 | # So? What about this header? | |
ac1cb8d3 VS |
23341 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23342 | yes:no: ) | |
a848cd7e SC |
23343 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
23344 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23345 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
23346 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23347 | ac_header_preproc=yes | |
a848cd7e | 23348 | ;; |
ac1cb8d3 | 23349 | no:yes:* ) |
a848cd7e SC |
23350 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
23351 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23352 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
23353 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23354 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23355 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23356 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23357 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23358 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
23359 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23360 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
23361 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23362 | ( |
23363 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23364 | ## ----------------------------------------- ## |
23365 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23366 | ## ----------------------------------------- ## | |
a848cd7e SC |
23367 | _ASBOX |
23368 | ) | | |
23369 | sed "s/^/$as_me: WARNING: /" >&2 | |
23370 | ;; | |
23371 | esac | |
23372 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23373 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23374 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23376 | else | |
ac1cb8d3 | 23377 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
23378 | fi |
23379 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23380 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23381 | ||
23382 | fi | |
23383 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
23384 | cat >>confdefs.h <<_ACEOF | |
23385 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23386 | _ACEOF | |
23387 | ||
23388 | fi | |
23389 | ||
23390 | done | |
23391 | ||
23392 | ||
23393 | if test "$ac_cv_header_iostream" = "yes" ; then | |
23394 | : | |
23395 | else | |
23396 | cat >>confdefs.h <<\_ACEOF | |
23397 | #define wxUSE_IOSTREAMH 1 | |
23398 | _ACEOF | |
23399 | ||
23400 | fi | |
23401 | ||
5d7b7554 VZ |
23402 | ac_ext=cc |
23403 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23404 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23405 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23406 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23407 | |
23408 | ||
23409 | ||
23410 | ||
23411 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
23412 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
23413 | if test "${wx_cv_cpp_bool+set}" = set; then | |
23414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23415 | else | |
23416 | ||
23417 | ||
23418 | ||
23419 | ac_ext=cc | |
23420 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23421 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23422 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23423 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23424 | ||
23425 | ||
23426 | cat >conftest.$ac_ext <<_ACEOF | |
23427 | /* confdefs.h. */ | |
23428 | _ACEOF | |
23429 | cat confdefs.h >>conftest.$ac_ext | |
23430 | cat >>conftest.$ac_ext <<_ACEOF | |
23431 | /* end confdefs.h. */ | |
23432 | ||
23433 | ||
23434 | int | |
23435 | main () | |
23436 | { | |
23437 | ||
23438 | bool b = true; | |
23439 | ||
23440 | return 0; | |
23441 | ||
23442 | ; | |
23443 | return 0; | |
23444 | } | |
23445 | _ACEOF | |
23446 | rm -f conftest.$ac_objext | |
23447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23448 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23449 | ac_status=$? |
ac1cb8d3 VS |
23450 | grep -v '^ *+' conftest.er1 >conftest.err |
23451 | rm -f conftest.er1 | |
23452 | cat conftest.err >&5 | |
a848cd7e SC |
23453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23454 | (exit $ac_status); } && | |
bb9e79c0 | 23455 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23457 | (eval $ac_try) 2>&5 | |
23458 | ac_status=$? | |
23459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23460 | (exit $ac_status); }; } && | |
23461 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23463 | (eval $ac_try) 2>&5 | |
23464 | ac_status=$? | |
23465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23466 | (exit $ac_status); }; }; then | |
23467 | ||
23468 | wx_cv_cpp_bool=yes | |
23469 | ||
23470 | else | |
23471 | echo "$as_me: failed program was:" >&5 | |
23472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23473 | ||
23474 | ||
23475 | wx_cv_cpp_bool=no | |
23476 | ||
23477 | ||
23478 | fi | |
ac1cb8d3 | 23479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 23480 | |
5d7b7554 VZ |
23481 | ac_ext=cc |
23482 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23483 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23484 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23485 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23486 | |
23487 | ||
23488 | fi | |
23489 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
23490 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
23491 | ||
23492 | if test "$wx_cv_cpp_bool" = "yes"; then | |
23493 | cat >>confdefs.h <<\_ACEOF | |
23494 | #define HAVE_BOOL 1 | |
23495 | _ACEOF | |
23496 | ||
23497 | fi | |
23498 | ||
23499 | ||
23500 | ||
23501 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
23502 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
23503 | if test "${wx_cv_explicit+set}" = set; then | |
23504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23505 | else | |
23506 | ||
23507 | ||
23508 | ||
23509 | ac_ext=cc | |
23510 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23511 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23512 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23513 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23514 | ||
23515 | ||
23516 | cat >conftest.$ac_ext <<_ACEOF | |
23517 | /* confdefs.h. */ | |
23518 | _ACEOF | |
23519 | cat confdefs.h >>conftest.$ac_ext | |
23520 | cat >>conftest.$ac_ext <<_ACEOF | |
23521 | /* end confdefs.h. */ | |
23522 | ||
23523 | class Foo { public: explicit Foo(int) {} }; | |
23524 | ||
23525 | int | |
23526 | main () | |
23527 | { | |
23528 | ||
23529 | return 0; | |
23530 | ||
23531 | ; | |
23532 | return 0; | |
23533 | } | |
23534 | _ACEOF | |
23535 | rm -f conftest.$ac_objext | |
23536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23537 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23538 | ac_status=$? |
ac1cb8d3 VS |
23539 | grep -v '^ *+' conftest.er1 >conftest.err |
23540 | rm -f conftest.er1 | |
23541 | cat conftest.err >&5 | |
a848cd7e SC |
23542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23543 | (exit $ac_status); } && | |
bb9e79c0 | 23544 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23546 | (eval $ac_try) 2>&5 | |
23547 | ac_status=$? | |
23548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23549 | (exit $ac_status); }; } && | |
23550 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23552 | (eval $ac_try) 2>&5 | |
23553 | ac_status=$? | |
23554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23555 | (exit $ac_status); }; }; then | |
23556 | ||
23557 | cat >conftest.$ac_ext <<_ACEOF | |
23558 | /* confdefs.h. */ | |
23559 | _ACEOF | |
23560 | cat confdefs.h >>conftest.$ac_ext | |
23561 | cat >>conftest.$ac_ext <<_ACEOF | |
23562 | /* end confdefs.h. */ | |
23563 | ||
23564 | class Foo { public: explicit Foo(int) {} }; | |
23565 | static void TakeFoo(const Foo& foo) { } | |
23566 | ||
23567 | int | |
23568 | main () | |
23569 | { | |
23570 | ||
23571 | TakeFoo(17); | |
23572 | return 0; | |
23573 | ||
23574 | ; | |
23575 | return 0; | |
23576 | } | |
23577 | _ACEOF | |
23578 | rm -f conftest.$ac_objext | |
23579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23580 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23581 | ac_status=$? |
ac1cb8d3 VS |
23582 | grep -v '^ *+' conftest.er1 >conftest.err |
23583 | rm -f conftest.er1 | |
23584 | cat conftest.err >&5 | |
a848cd7e SC |
23585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23586 | (exit $ac_status); } && | |
bb9e79c0 | 23587 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23589 | (eval $ac_try) 2>&5 | |
23590 | ac_status=$? | |
23591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23592 | (exit $ac_status); }; } && | |
23593 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23595 | (eval $ac_try) 2>&5 | |
23596 | ac_status=$? | |
23597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23598 | (exit $ac_status); }; }; then | |
23599 | wx_cv_explicit=no | |
23600 | else | |
23601 | echo "$as_me: failed program was:" >&5 | |
23602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23603 | ||
23604 | wx_cv_explicit=yes | |
23605 | ||
23606 | fi | |
ac1cb8d3 | 23607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23608 | |
23609 | else | |
23610 | echo "$as_me: failed program was:" >&5 | |
23611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23612 | ||
23613 | wx_cv_explicit=no | |
23614 | ||
23615 | fi | |
ac1cb8d3 | 23616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 23617 | |
5d7b7554 VZ |
23618 | ac_ext=cc |
23619 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23620 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23621 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23622 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23623 | |
23624 | ||
23625 | fi | |
23626 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
23627 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
23628 | ||
23629 | if test "$wx_cv_explicit" = "yes"; then | |
23630 | cat >>confdefs.h <<\_ACEOF | |
23631 | #define HAVE_EXPLICIT 1 | |
23632 | _ACEOF | |
23633 | ||
23634 | fi | |
23635 | ||
23636 | ||
23637 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
23638 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
23639 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
23640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23641 | else | |
23642 | ||
23643 | ||
23644 | ac_ext=cc | |
23645 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23646 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23647 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23648 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23649 | ||
23650 | cat >conftest.$ac_ext <<_ACEOF | |
23651 | /* confdefs.h. */ | |
23652 | _ACEOF | |
23653 | cat confdefs.h >>conftest.$ac_ext | |
23654 | cat >>conftest.$ac_ext <<_ACEOF | |
23655 | /* end confdefs.h. */ | |
23656 | ||
23657 | int | |
23658 | main () | |
23659 | { | |
23660 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
23661 | ; | |
23662 | return 0; | |
23663 | } | |
23664 | _ACEOF | |
23665 | rm -f conftest.$ac_objext | |
23666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23667 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23668 | ac_status=$? |
ac1cb8d3 VS |
23669 | grep -v '^ *+' conftest.er1 >conftest.err |
23670 | rm -f conftest.er1 | |
23671 | cat conftest.err >&5 | |
a848cd7e SC |
23672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23673 | (exit $ac_status); } && | |
bb9e79c0 | 23674 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23676 | (eval $ac_try) 2>&5 | |
23677 | ac_status=$? | |
23678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23679 | (exit $ac_status); }; } && | |
23680 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23682 | (eval $ac_try) 2>&5 | |
23683 | ac_status=$? | |
23684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23685 | (exit $ac_status); }; }; then | |
23686 | ac_cv_cxx_const_cast=yes | |
23687 | else | |
23688 | echo "$as_me: failed program was:" >&5 | |
23689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23690 | ||
23691 | ac_cv_cxx_const_cast=no | |
23692 | fi | |
ac1cb8d3 | 23693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
23694 | ac_ext=cc |
23695 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23696 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23697 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23698 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23699 | |
23700 | ||
23701 | fi | |
23702 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
23703 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
23704 | if test "$ac_cv_cxx_const_cast" = yes; then | |
23705 | ||
23706 | cat >>confdefs.h <<\_ACEOF | |
23707 | #define HAVE_CONST_CAST | |
23708 | _ACEOF | |
23709 | ||
23710 | fi | |
23711 | ||
7714864e RL |
23712 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
23713 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
23714 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
23715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23716 | else | |
23717 | ||
23718 | ||
23719 | ac_ext=cc | |
23720 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23721 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23722 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23723 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23724 | ||
23725 | cat >conftest.$ac_ext <<_ACEOF | |
23726 | /* confdefs.h. */ | |
23727 | _ACEOF | |
23728 | cat confdefs.h >>conftest.$ac_ext | |
23729 | cat >>conftest.$ac_ext <<_ACEOF | |
23730 | /* end confdefs.h. */ | |
23731 | #include <typeinfo> | |
23732 | class Base { public : Base () {} virtual void f () = 0;}; | |
23733 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
23734 | class Unrelated { public : Unrelated () {} }; | |
23735 | int g (Unrelated&) { return 0; } | |
23736 | int | |
23737 | main () | |
23738 | { | |
23739 | ||
23740 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
23741 | ; | |
23742 | return 0; | |
23743 | } | |
23744 | _ACEOF | |
23745 | rm -f conftest.$ac_objext | |
23746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23747 | (eval $ac_compile) 2>conftest.er1 | |
23748 | ac_status=$? | |
23749 | grep -v '^ *+' conftest.er1 >conftest.err | |
23750 | rm -f conftest.er1 | |
23751 | cat conftest.err >&5 | |
23752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23753 | (exit $ac_status); } && | |
bb9e79c0 | 23754 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
23755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23756 | (eval $ac_try) 2>&5 | |
23757 | ac_status=$? | |
23758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23759 | (exit $ac_status); }; } && | |
23760 | { ac_try='test -s conftest.$ac_objext' | |
23761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23762 | (eval $ac_try) 2>&5 | |
23763 | ac_status=$? | |
23764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23765 | (exit $ac_status); }; }; then | |
23766 | ac_cv_cxx_reinterpret_cast=yes | |
23767 | else | |
23768 | echo "$as_me: failed program was:" >&5 | |
23769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23770 | ||
23771 | ac_cv_cxx_reinterpret_cast=no | |
23772 | fi | |
23773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
23774 | ac_ext=cc |
23775 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23776 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23777 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23778 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7714864e RL |
23779 | |
23780 | ||
23781 | fi | |
23782 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
23783 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
23784 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
23785 | ||
23786 | cat >>confdefs.h <<\_ACEOF | |
23787 | #define HAVE_REINTERPRET_CAST | |
23788 | _ACEOF | |
23789 | ||
23790 | fi | |
23791 | ||
a848cd7e SC |
23792 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
23793 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
23794 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
23795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23796 | else | |
23797 | ||
23798 | ||
23799 | ac_ext=cc | |
23800 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23801 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23802 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23803 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23804 | ||
23805 | cat >conftest.$ac_ext <<_ACEOF | |
23806 | /* confdefs.h. */ | |
23807 | _ACEOF | |
23808 | cat confdefs.h >>conftest.$ac_ext | |
23809 | cat >>conftest.$ac_ext <<_ACEOF | |
23810 | /* end confdefs.h. */ | |
23811 | #include <typeinfo> | |
23812 | class Base { public : Base () {} virtual void f () = 0; }; | |
23813 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
23814 | int g (Derived&) { return 0; } | |
23815 | int | |
23816 | main () | |
23817 | { | |
23818 | ||
23819 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
23820 | ; | |
23821 | return 0; | |
23822 | } | |
23823 | _ACEOF | |
23824 | rm -f conftest.$ac_objext | |
23825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23826 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23827 | ac_status=$? |
ac1cb8d3 VS |
23828 | grep -v '^ *+' conftest.er1 >conftest.err |
23829 | rm -f conftest.er1 | |
23830 | cat conftest.err >&5 | |
a848cd7e SC |
23831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23832 | (exit $ac_status); } && | |
bb9e79c0 | 23833 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23835 | (eval $ac_try) 2>&5 | |
23836 | ac_status=$? | |
23837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23838 | (exit $ac_status); }; } && | |
23839 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23841 | (eval $ac_try) 2>&5 | |
23842 | ac_status=$? | |
23843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23844 | (exit $ac_status); }; }; then | |
23845 | ac_cv_cxx_static_cast=yes | |
23846 | else | |
23847 | echo "$as_me: failed program was:" >&5 | |
23848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23849 | ||
23850 | ac_cv_cxx_static_cast=no | |
23851 | fi | |
ac1cb8d3 | 23852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
23853 | ac_ext=cc |
23854 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23855 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23856 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23857 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23858 | |
23859 | ||
23860 | fi | |
23861 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
23862 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
23863 | if test "$ac_cv_cxx_static_cast" = yes; then | |
23864 | ||
23865 | cat >>confdefs.h <<\_ACEOF | |
23866 | #define HAVE_STATIC_CAST | |
23867 | _ACEOF | |
23868 | ||
23869 | fi | |
23870 | ||
23871 | ||
3c28b7cb | 23872 | if test "x$SUNCXX" = xyes; then |
c92ad099 | 23873 | CXXFLAGS="-features=tmplife $CXXFLAGS" |
3c28b7cb MW |
23874 | fi |
23875 | ||
9122d155 | 23876 | if test "x$SUNCC" = xyes; then |
c92ad099 | 23877 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
23878 | fi |
23879 | ||
0ad5d837 | 23880 | if test "x$SGICC" = "xyes"; then |
c92ad099 | 23881 | CFLAGS="-woff 3970 $CFLAGS" |
0ad5d837 VZ |
23882 | fi |
23883 | if test "x$SGICXX" = "xyes"; then | |
c92ad099 | 23884 | CXXFLAGS="-woff 3970 $CXXFLAGS" |
0ad5d837 VZ |
23885 | fi |
23886 | ||
2eef8513 | 23887 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 23888 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
23889 | fi |
23890 | if test "x$HPCXX" = "xyes"; then | |
c92ad099 | 23891 | CXXFLAGS="+W 2340 $CXXFLAGS" |
2eef8513 VZ |
23892 | fi |
23893 | ||
23894 | if test "x$COMPAQCXX" = "xyes"; then | |
23895 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
23896 | fi | |
23897 | ||
f56c22b4 | 23898 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
f56c22b4 MW |
23899 | if test "$wxUSE_UNICODE" = "yes"; then |
23900 | std_string="std::wstring" | |
23901 | char_type="wchar_t" | |
23902 | else | |
23903 | std_string="std::string" | |
23904 | char_type="char" | |
23905 | fi | |
23906 | ||
23907 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
23908 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
23909 | cat >conftest.$ac_ext <<_ACEOF |
23910 | /* confdefs.h. */ | |
23911 | _ACEOF | |
23912 | cat confdefs.h >>conftest.$ac_ext | |
23913 | cat >>conftest.$ac_ext <<_ACEOF | |
23914 | /* end confdefs.h. */ | |
23915 | #include <string> | |
a848cd7e SC |
23916 | int |
23917 | main () | |
23918 | { | |
f56c22b4 | 23919 | $std_string foo; |
a848cd7e SC |
23920 | ; |
23921 | return 0; | |
23922 | } | |
23923 | _ACEOF | |
23924 | rm -f conftest.$ac_objext | |
23925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23926 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23927 | ac_status=$? |
ac1cb8d3 VS |
23928 | grep -v '^ *+' conftest.er1 >conftest.err |
23929 | rm -f conftest.er1 | |
23930 | cat conftest.err >&5 | |
a848cd7e SC |
23931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23932 | (exit $ac_status); } && | |
bb9e79c0 | 23933 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23935 | (eval $ac_try) 2>&5 | |
23936 | ac_status=$? | |
23937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23938 | (exit $ac_status); }; } && | |
23939 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23941 | (eval $ac_try) 2>&5 | |
23942 | ac_status=$? | |
23943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23944 | (exit $ac_status); }; }; then | |
23945 | echo "$as_me:$LINENO: result: yes" >&5 | |
23946 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
23947 | cat >>confdefs.h <<\_ACEOF |
23948 | #define HAVE_STD_WSTRING 1 | |
23949 | _ACEOF | |
23950 | ||
a848cd7e SC |
23951 | else |
23952 | echo "$as_me: failed program was:" >&5 | |
23953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23954 | ||
23955 | echo "$as_me:$LINENO: result: no" >&5 | |
23956 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
23957 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
23958 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
23959 | cat >conftest.$ac_ext <<_ACEOF |
23960 | /* confdefs.h. */ | |
23961 | _ACEOF | |
23962 | cat confdefs.h >>conftest.$ac_ext | |
23963 | cat >>conftest.$ac_ext <<_ACEOF | |
23964 | /* end confdefs.h. */ | |
23965 | ||
23966 | #ifdef HAVE_WCHAR_H | |
23967 | # ifdef __CYGWIN__ | |
23968 | # include <stddef.h> | |
23969 | # endif | |
23970 | # include <wchar.h> | |
23971 | #endif | |
23972 | #ifdef HAVE_STDLIB_H | |
23973 | # include <stdlib.h> | |
23974 | #endif | |
23975 | #include <stdio.h> | |
23976 | #include <string> | |
23977 | ||
23978 | int | |
23979 | main () | |
23980 | { | |
f56c22b4 MW |
23981 | std::basic_string<$char_type> foo; |
23982 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
23983 | ; |
23984 | return 0; | |
23985 | } | |
23986 | _ACEOF | |
23987 | rm -f conftest.$ac_objext | |
23988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23989 | (eval $ac_compile) 2>conftest.er1 | |
23990 | ac_status=$? | |
23991 | grep -v '^ *+' conftest.er1 >conftest.err | |
23992 | rm -f conftest.er1 | |
23993 | cat conftest.err >&5 | |
23994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23995 | (exit $ac_status); } && | |
bb9e79c0 | 23996 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0a08f02a MB |
23997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23998 | (eval $ac_try) 2>&5 | |
23999 | ac_status=$? | |
24000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24001 | (exit $ac_status); }; } && | |
24002 | { ac_try='test -s conftest.$ac_objext' | |
24003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24004 | (eval $ac_try) 2>&5 | |
24005 | ac_status=$? | |
24006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24007 | (exit $ac_status); }; }; then | |
24008 | echo "$as_me:$LINENO: result: yes" >&5 | |
24009 | echo "${ECHO_T}yes" >&6 | |
24010 | else | |
24011 | echo "$as_me: failed program was:" >&5 | |
24012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24013 | ||
24014 | echo "$as_me:$LINENO: result: no" >&5 | |
24015 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 24016 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
24017 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
24018 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
24019 | { (exit 1); exit 1; }; } | |
24020 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
24021 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
24022 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 24023 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
24024 | else |
24025 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
24026 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
24027 | wxUSE_STD_STRING=no | |
24028 | fi | |
24029 | ||
0a08f02a | 24030 | |
a848cd7e | 24031 | fi |
ac1cb8d3 | 24032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 24033 | |
0a08f02a MB |
24034 | fi |
24035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f56c22b4 MW |
24036 | fi |
24037 | ||
24038 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
f56c22b4 MW |
24039 | echo "$as_me:$LINENO: checking for std::istream" >&5 |
24040 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
24041 | if test "${ac_cv_type_std__istream+set}" = set; then | |
24042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24043 | else | |
24044 | cat >conftest.$ac_ext <<_ACEOF | |
24045 | /* confdefs.h. */ | |
24046 | _ACEOF | |
24047 | cat confdefs.h >>conftest.$ac_ext | |
24048 | cat >>conftest.$ac_ext <<_ACEOF | |
24049 | /* end confdefs.h. */ | |
24050 | #include <iostream> | |
24051 | ||
24052 | int | |
24053 | main () | |
24054 | { | |
24055 | if ((std::istream *) 0) | |
24056 | return 0; | |
24057 | if (sizeof (std::istream)) | |
24058 | return 0; | |
24059 | ; | |
24060 | return 0; | |
24061 | } | |
24062 | _ACEOF | |
24063 | rm -f conftest.$ac_objext | |
24064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24065 | (eval $ac_compile) 2>conftest.er1 | |
24066 | ac_status=$? | |
24067 | grep -v '^ *+' conftest.er1 >conftest.err | |
24068 | rm -f conftest.er1 | |
24069 | cat conftest.err >&5 | |
24070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24071 | (exit $ac_status); } && | |
bb9e79c0 | 24072 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
24073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24074 | (eval $ac_try) 2>&5 | |
24075 | ac_status=$? | |
24076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24077 | (exit $ac_status); }; } && | |
24078 | { ac_try='test -s conftest.$ac_objext' | |
24079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24080 | (eval $ac_try) 2>&5 | |
24081 | ac_status=$? | |
24082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24083 | (exit $ac_status); }; }; then | |
24084 | ac_cv_type_std__istream=yes | |
24085 | else | |
24086 | echo "$as_me: failed program was:" >&5 | |
24087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24088 | ||
24089 | ac_cv_type_std__istream=no | |
24090 | fi | |
24091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24092 | fi | |
24093 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
24094 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
24095 | if test $ac_cv_type_std__istream = yes; then | |
24096 | ||
24097 | cat >>confdefs.h <<_ACEOF | |
24098 | #define HAVE_STD__ISTREAM 1 | |
24099 | _ACEOF | |
24100 | ||
24101 | ||
24102 | else | |
24103 | wxUSE_STD_IOSTREAM=no | |
24104 | fi | |
24105 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
24106 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
24107 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
24108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24109 | else | |
24110 | cat >conftest.$ac_ext <<_ACEOF | |
24111 | /* confdefs.h. */ | |
24112 | _ACEOF | |
24113 | cat confdefs.h >>conftest.$ac_ext | |
24114 | cat >>conftest.$ac_ext <<_ACEOF | |
24115 | /* end confdefs.h. */ | |
24116 | #include <iostream> | |
24117 | ||
24118 | int | |
24119 | main () | |
24120 | { | |
24121 | if ((std::ostream *) 0) | |
24122 | return 0; | |
24123 | if (sizeof (std::ostream)) | |
24124 | return 0; | |
24125 | ; | |
24126 | return 0; | |
24127 | } | |
24128 | _ACEOF | |
24129 | rm -f conftest.$ac_objext | |
24130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24131 | (eval $ac_compile) 2>conftest.er1 | |
24132 | ac_status=$? | |
24133 | grep -v '^ *+' conftest.er1 >conftest.err | |
24134 | rm -f conftest.er1 | |
24135 | cat conftest.err >&5 | |
24136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24137 | (exit $ac_status); } && | |
bb9e79c0 | 24138 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
24139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24140 | (eval $ac_try) 2>&5 | |
24141 | ac_status=$? | |
24142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24143 | (exit $ac_status); }; } && | |
24144 | { ac_try='test -s conftest.$ac_objext' | |
24145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24146 | (eval $ac_try) 2>&5 | |
24147 | ac_status=$? | |
24148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24149 | (exit $ac_status); }; }; then | |
24150 | ac_cv_type_std__ostream=yes | |
24151 | else | |
24152 | echo "$as_me: failed program was:" >&5 | |
24153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24154 | ||
24155 | ac_cv_type_std__ostream=no | |
24156 | fi | |
24157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24158 | fi | |
24159 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
24160 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
24161 | if test $ac_cv_type_std__ostream = yes; then | |
24162 | ||
24163 | cat >>confdefs.h <<_ACEOF | |
24164 | #define HAVE_STD__OSTREAM 1 | |
24165 | _ACEOF | |
24166 | ||
24167 | ||
24168 | else | |
24169 | wxUSE_STD_IOSTREAM=no | |
24170 | fi | |
24171 | ||
24172 | ||
24173 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
24174 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
24175 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
24176 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
24177 | { (exit 1); exit 1; }; } | |
24178 | else | |
24179 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 24180 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 24181 | fi |
f56c22b4 | 24182 | fi |
0a08f02a MB |
24183 | fi |
24184 | ||
24185 | if test "$wxUSE_STL" = "yes"; then | |
0a08f02a MB |
24186 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 |
24187 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
24188 | cat >conftest.$ac_ext <<_ACEOF |
24189 | /* confdefs.h. */ | |
24190 | _ACEOF | |
24191 | cat confdefs.h >>conftest.$ac_ext | |
24192 | cat >>conftest.$ac_ext <<_ACEOF | |
24193 | /* end confdefs.h. */ | |
24194 | #include <string> | |
0a08f02a MB |
24195 | #include <functional> |
24196 | #include <algorithm> | |
24197 | #include <vector> | |
24198 | #include <list> | |
a848cd7e SC |
24199 | int |
24200 | main () | |
24201 | { | |
0a08f02a MB |
24202 | std::vector<int> moo; |
24203 | std::list<int> foo; | |
24204 | std::vector<int>::iterator it = | |
24205 | std::find_if(moo.begin(), moo.end(), | |
24206 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
24207 | ; |
24208 | return 0; | |
24209 | } | |
24210 | _ACEOF | |
24211 | rm -f conftest.$ac_objext | |
24212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24213 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24214 | ac_status=$? |
ac1cb8d3 VS |
24215 | grep -v '^ *+' conftest.er1 >conftest.err |
24216 | rm -f conftest.er1 | |
24217 | cat conftest.err >&5 | |
a848cd7e SC |
24218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24219 | (exit $ac_status); } && | |
bb9e79c0 | 24220 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24222 | (eval $ac_try) 2>&5 | |
24223 | ac_status=$? | |
24224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24225 | (exit $ac_status); }; } && | |
24226 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24228 | (eval $ac_try) 2>&5 | |
24229 | ac_status=$? | |
24230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24231 | (exit $ac_status); }; }; then | |
24232 | echo "$as_me:$LINENO: result: yes" >&5 | |
24233 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
24234 | else |
24235 | echo "$as_me: failed program was:" >&5 | |
24236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24237 | ||
24238 | echo "$as_me:$LINENO: result: no" >&5 | |
24239 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
24240 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
24241 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
24242 | { (exit 1); exit 1; }; } | |
a848cd7e | 24243 | fi |
ac1cb8d3 | 24244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24245 | |
24246 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
24247 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
24248 | cat >conftest.$ac_ext <<_ACEOF | |
24249 | /* confdefs.h. */ | |
24250 | _ACEOF | |
24251 | cat confdefs.h >>conftest.$ac_ext | |
24252 | cat >>conftest.$ac_ext <<_ACEOF | |
24253 | /* end confdefs.h. */ | |
24254 | #include <string> | |
24255 | int | |
24256 | main () | |
24257 | { | |
24258 | std::string foo, bar; | |
24259 | foo.compare(bar); | |
24260 | foo.compare(1, 1, bar); | |
24261 | foo.compare(1, 1, bar, 1, 1); | |
24262 | foo.compare(""); | |
24263 | foo.compare(1, 1, ""); | |
24264 | foo.compare(1, 1, "", 2); | |
24265 | ; | |
24266 | return 0; | |
24267 | } | |
24268 | _ACEOF | |
24269 | rm -f conftest.$ac_objext | |
24270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24271 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24272 | ac_status=$? |
ac1cb8d3 VS |
24273 | grep -v '^ *+' conftest.er1 >conftest.err |
24274 | rm -f conftest.er1 | |
24275 | cat conftest.err >&5 | |
a848cd7e SC |
24276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24277 | (exit $ac_status); } && | |
bb9e79c0 | 24278 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24280 | (eval $ac_try) 2>&5 | |
24281 | ac_status=$? | |
24282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24283 | (exit $ac_status); }; } && | |
24284 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24286 | (eval $ac_try) 2>&5 | |
24287 | ac_status=$? | |
24288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24289 | (exit $ac_status); }; }; then | |
24290 | echo "$as_me:$LINENO: result: yes" >&5 | |
24291 | echo "${ECHO_T}yes" >&6 | |
24292 | cat >>confdefs.h <<\_ACEOF | |
24293 | #define HAVE_STD_STRING_COMPARE 1 | |
24294 | _ACEOF | |
24295 | ||
24296 | else | |
24297 | echo "$as_me: failed program was:" >&5 | |
24298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24299 | ||
24300 | echo "$as_me:$LINENO: result: no" >&5 | |
24301 | echo "${ECHO_T}no" >&6 | |
24302 | fi | |
ac1cb8d3 | 24303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
24304 | |
24305 | if test "${ac_cv_header_hash_map+set}" = set; then | |
24306 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
24307 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
24308 | if test "${ac_cv_header_hash_map+set}" = set; then | |
24309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24310 | fi | |
24311 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
24312 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
24313 | else | |
24314 | # Is the header compilable? | |
24315 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
24316 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
24317 | cat >conftest.$ac_ext <<_ACEOF | |
24318 | /* confdefs.h. */ | |
24319 | _ACEOF | |
24320 | cat confdefs.h >>conftest.$ac_ext | |
24321 | cat >>conftest.$ac_ext <<_ACEOF | |
24322 | /* end confdefs.h. */ | |
24323 | $ac_includes_default | |
24324 | #include <hash_map> | |
24325 | _ACEOF | |
24326 | rm -f conftest.$ac_objext | |
24327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24328 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 24329 | ac_status=$? |
ac1cb8d3 VS |
24330 | grep -v '^ *+' conftest.er1 >conftest.err |
24331 | rm -f conftest.er1 | |
24332 | cat conftest.err >&5 | |
bdcade0a MB |
24333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24334 | (exit $ac_status); } && | |
bb9e79c0 | 24335 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24337 | (eval $ac_try) 2>&5 | |
24338 | ac_status=$? | |
24339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24340 | (exit $ac_status); }; } && | |
24341 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
24342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24343 | (eval $ac_try) 2>&5 | |
24344 | ac_status=$? | |
24345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24346 | (exit $ac_status); }; }; then | |
24347 | ac_header_compiler=yes | |
24348 | else | |
24349 | echo "$as_me: failed program was:" >&5 | |
24350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24351 | ||
24352 | ac_header_compiler=no | |
24353 | fi | |
ac1cb8d3 | 24354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
24355 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24356 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24357 | ||
24358 | # Is the header present? | |
24359 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
24360 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
24361 | cat >conftest.$ac_ext <<_ACEOF | |
24362 | /* confdefs.h. */ | |
24363 | _ACEOF | |
24364 | cat confdefs.h >>conftest.$ac_ext | |
24365 | cat >>conftest.$ac_ext <<_ACEOF | |
24366 | /* end confdefs.h. */ | |
24367 | #include <hash_map> | |
24368 | _ACEOF | |
24369 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24370 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24371 | ac_status=$? | |
24372 | grep -v '^ *+' conftest.er1 >conftest.err | |
24373 | rm -f conftest.er1 | |
24374 | cat conftest.err >&5 | |
24375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24376 | (exit $ac_status); } >/dev/null; then | |
24377 | if test -s conftest.err; then | |
24378 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 24379 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
24380 | else |
24381 | ac_cpp_err= | |
24382 | fi | |
24383 | else | |
24384 | ac_cpp_err=yes | |
24385 | fi | |
24386 | if test -z "$ac_cpp_err"; then | |
24387 | ac_header_preproc=yes | |
24388 | else | |
24389 | echo "$as_me: failed program was:" >&5 | |
24390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24391 | ||
24392 | ac_header_preproc=no | |
24393 | fi | |
24394 | rm -f conftest.err conftest.$ac_ext | |
24395 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24396 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24397 | ||
24398 | # So? What about this header? | |
ac1cb8d3 VS |
24399 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
24400 | yes:no: ) | |
bdcade0a MB |
24401 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
24402 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24403 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
24404 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
24405 | ac_header_preproc=yes | |
bdcade0a | 24406 | ;; |
ac1cb8d3 | 24407 | no:yes:* ) |
bdcade0a MB |
24408 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
24409 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24410 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
24411 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
24412 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
24413 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
24414 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
24415 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
24416 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
24417 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24418 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
24419 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
24420 | ( |
24421 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24422 | ## ----------------------------------------- ## |
24423 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24424 | ## ----------------------------------------- ## | |
bdcade0a MB |
24425 | _ASBOX |
24426 | ) | | |
24427 | sed "s/^/$as_me: WARNING: /" >&2 | |
24428 | ;; | |
24429 | esac | |
24430 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
24431 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
24432 | if test "${ac_cv_header_hash_map+set}" = set; then | |
24433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24434 | else | |
24435 | ac_cv_header_hash_map=$ac_header_preproc | |
24436 | fi | |
24437 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
24438 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
24439 | ||
24440 | fi | |
24441 | if test $ac_cv_header_hash_map = yes; then | |
24442 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
24443 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
24444 | cat >conftest.$ac_ext <<_ACEOF | |
24445 | /* confdefs.h. */ | |
24446 | _ACEOF | |
24447 | cat confdefs.h >>conftest.$ac_ext | |
24448 | cat >>conftest.$ac_ext <<_ACEOF | |
24449 | /* end confdefs.h. */ | |
24450 | #include <hash_map> | |
24451 | #include <hash_set> | |
24452 | int | |
24453 | main () | |
24454 | { | |
24455 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
24456 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
24457 | ; | |
24458 | return 0; | |
24459 | } | |
24460 | _ACEOF | |
24461 | rm -f conftest.$ac_objext | |
24462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24463 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 24464 | ac_status=$? |
ac1cb8d3 VS |
24465 | grep -v '^ *+' conftest.er1 >conftest.err |
24466 | rm -f conftest.er1 | |
24467 | cat conftest.err >&5 | |
bdcade0a MB |
24468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24469 | (exit $ac_status); } && | |
bb9e79c0 | 24470 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24472 | (eval $ac_try) 2>&5 | |
24473 | ac_status=$? | |
24474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24475 | (exit $ac_status); }; } && | |
24476 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
24477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24478 | (eval $ac_try) 2>&5 | |
24479 | ac_status=$? | |
24480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24481 | (exit $ac_status); }; }; then | |
24482 | echo "$as_me:$LINENO: result: yes" >&5 | |
24483 | echo "${ECHO_T}yes" >&6 | |
24484 | cat >>confdefs.h <<\_ACEOF | |
24485 | #define HAVE_HASH_MAP 1 | |
24486 | _ACEOF | |
24487 | ||
24488 | cat >>confdefs.h <<\_ACEOF | |
24489 | #define HAVE_STD_HASH_MAP 1 | |
24490 | _ACEOF | |
24491 | ||
24492 | else | |
24493 | echo "$as_me: failed program was:" >&5 | |
24494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24495 | ||
24496 | echo "$as_me:$LINENO: result: no" >&5 | |
24497 | echo "${ECHO_T}no" >&6 | |
24498 | fi | |
ac1cb8d3 | 24499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
24500 | |
24501 | fi | |
24502 | ||
24503 | ||
24504 | ||
24505 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
24506 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
24507 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
24508 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
24509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24510 | fi | |
24511 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
24512 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
24513 | else | |
24514 | # Is the header compilable? | |
24515 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
24516 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
24517 | cat >conftest.$ac_ext <<_ACEOF | |
24518 | /* confdefs.h. */ | |
24519 | _ACEOF | |
24520 | cat confdefs.h >>conftest.$ac_ext | |
24521 | cat >>conftest.$ac_ext <<_ACEOF | |
24522 | /* end confdefs.h. */ | |
24523 | $ac_includes_default | |
24524 | #include <ext/hash_map> | |
24525 | _ACEOF | |
24526 | rm -f conftest.$ac_objext | |
24527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24528 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 24529 | ac_status=$? |
ac1cb8d3 VS |
24530 | grep -v '^ *+' conftest.er1 >conftest.err |
24531 | rm -f conftest.er1 | |
24532 | cat conftest.err >&5 | |
bdcade0a MB |
24533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24534 | (exit $ac_status); } && | |
bb9e79c0 | 24535 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24537 | (eval $ac_try) 2>&5 | |
24538 | ac_status=$? | |
24539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24540 | (exit $ac_status); }; } && | |
24541 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
24542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24543 | (eval $ac_try) 2>&5 | |
24544 | ac_status=$? | |
24545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24546 | (exit $ac_status); }; }; then | |
24547 | ac_header_compiler=yes | |
24548 | else | |
24549 | echo "$as_me: failed program was:" >&5 | |
24550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24551 | ||
24552 | ac_header_compiler=no | |
24553 | fi | |
ac1cb8d3 | 24554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
24555 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24556 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24557 | ||
24558 | # Is the header present? | |
24559 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
24560 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
24561 | cat >conftest.$ac_ext <<_ACEOF | |
24562 | /* confdefs.h. */ | |
24563 | _ACEOF | |
24564 | cat confdefs.h >>conftest.$ac_ext | |
24565 | cat >>conftest.$ac_ext <<_ACEOF | |
24566 | /* end confdefs.h. */ | |
24567 | #include <ext/hash_map> | |
24568 | _ACEOF | |
24569 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24570 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24571 | ac_status=$? | |
24572 | grep -v '^ *+' conftest.er1 >conftest.err | |
24573 | rm -f conftest.er1 | |
24574 | cat conftest.err >&5 | |
24575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24576 | (exit $ac_status); } >/dev/null; then | |
24577 | if test -s conftest.err; then | |
24578 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 24579 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
24580 | else |
24581 | ac_cpp_err= | |
24582 | fi | |
24583 | else | |
24584 | ac_cpp_err=yes | |
24585 | fi | |
24586 | if test -z "$ac_cpp_err"; then | |
24587 | ac_header_preproc=yes | |
24588 | else | |
24589 | echo "$as_me: failed program was:" >&5 | |
24590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24591 | ||
24592 | ac_header_preproc=no | |
24593 | fi | |
24594 | rm -f conftest.err conftest.$ac_ext | |
24595 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24596 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24597 | ||
24598 | # So? What about this header? | |
ac1cb8d3 VS |
24599 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
24600 | yes:no: ) | |
bdcade0a MB |
24601 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
24602 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24603 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
24604 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
24605 | ac_header_preproc=yes | |
bdcade0a | 24606 | ;; |
ac1cb8d3 | 24607 | no:yes:* ) |
bdcade0a MB |
24608 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
24609 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24610 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
24611 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
24612 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
24613 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
24614 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
24615 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
24616 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
24617 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24618 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
24619 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
24620 | ( |
24621 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24622 | ## ----------------------------------------- ## |
24623 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24624 | ## ----------------------------------------- ## | |
bdcade0a MB |
24625 | _ASBOX |
24626 | ) | | |
24627 | sed "s/^/$as_me: WARNING: /" >&2 | |
24628 | ;; | |
24629 | esac | |
24630 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
24631 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
24632 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
24633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24634 | else | |
24635 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
24636 | fi | |
24637 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
24638 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
24639 | ||
24640 | fi | |
24641 | if test $ac_cv_header_ext_hash_map = yes; then | |
24642 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
24643 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
24644 | cat >conftest.$ac_ext <<_ACEOF | |
24645 | /* confdefs.h. */ | |
24646 | _ACEOF | |
24647 | cat confdefs.h >>conftest.$ac_ext | |
24648 | cat >>conftest.$ac_ext <<_ACEOF | |
24649 | /* end confdefs.h. */ | |
24650 | #include <ext/hash_map> | |
24651 | #include <ext/hash_set> | |
24652 | int | |
24653 | main () | |
24654 | { | |
24655 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
24656 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
24657 | ; | |
24658 | return 0; | |
24659 | } | |
24660 | _ACEOF | |
24661 | rm -f conftest.$ac_objext | |
24662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24663 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 24664 | ac_status=$? |
ac1cb8d3 VS |
24665 | grep -v '^ *+' conftest.er1 >conftest.err |
24666 | rm -f conftest.er1 | |
24667 | cat conftest.err >&5 | |
bdcade0a MB |
24668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24669 | (exit $ac_status); } && | |
bb9e79c0 | 24670 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24672 | (eval $ac_try) 2>&5 | |
24673 | ac_status=$? | |
24674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24675 | (exit $ac_status); }; } && | |
24676 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
24677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24678 | (eval $ac_try) 2>&5 | |
24679 | ac_status=$? | |
24680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24681 | (exit $ac_status); }; }; then | |
24682 | echo "$as_me:$LINENO: result: yes" >&5 | |
24683 | echo "${ECHO_T}yes" >&6 | |
24684 | cat >>confdefs.h <<\_ACEOF | |
24685 | #define HAVE_EXT_HASH_MAP 1 | |
24686 | _ACEOF | |
24687 | ||
24688 | cat >>confdefs.h <<\_ACEOF | |
24689 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
24690 | _ACEOF | |
24691 | ||
24692 | else | |
24693 | echo "$as_me: failed program was:" >&5 | |
24694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24695 | ||
24696 | echo "$as_me:$LINENO: result: no" >&5 | |
24697 | echo "${ECHO_T}no" >&6 | |
24698 | fi | |
ac1cb8d3 | 24699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
24700 | |
24701 | fi | |
24702 | ||
24703 | ||
a848cd7e SC |
24704 | fi |
24705 | ||
24706 | ||
24707 | SEARCH_INCLUDE="\ | |
24708 | /usr/local/include \ | |
24709 | \ | |
24710 | /usr/Motif-2.1/include \ | |
24711 | /usr/Motif-1.2/include \ | |
24712 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
24713 | \ |
24714 | /usr/dt/include \ | |
24715 | /usr/openwin/include \ | |
24716 | \ | |
24717 | /usr/include/Xm \ | |
24718 | \ | |
24719 | /usr/X11R6/include \ | |
24720 | /usr/X11R6.4/include \ | |
24721 | /usr/X11R5/include \ | |
24722 | /usr/X11R4/include \ | |
24723 | \ | |
24724 | /usr/include/X11R6 \ | |
24725 | /usr/include/X11R5 \ | |
24726 | /usr/include/X11R4 \ | |
24727 | \ | |
24728 | /usr/local/X11R6/include \ | |
24729 | /usr/local/X11R5/include \ | |
24730 | /usr/local/X11R4/include \ | |
24731 | \ | |
24732 | /usr/local/include/X11R6 \ | |
24733 | /usr/local/include/X11R5 \ | |
24734 | /usr/local/include/X11R4 \ | |
24735 | \ | |
24736 | /usr/X11/include \ | |
24737 | /usr/include/X11 \ | |
24738 | /usr/local/X11/include \ | |
24739 | /usr/local/include/X11 \ | |
24740 | \ | |
a848cd7e | 24741 | /usr/XFree86/include/X11 \ |
e051b34e MW |
24742 | /usr/pkg/include \ |
24743 | \ | |
a848cd7e SC |
24744 | /usr/openwin/share/include" |
24745 | ||
6f9cf1e6 | 24746 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 24747 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
24748 | |
24749 | case "${host}" in | |
24750 | *-*-irix6* ) | |
24751 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
24752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24753 | else | |
24754 | ||
c687b303 VZ |
24755 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
24756 | for e in a so sl dylib dll.a; do | |
24757 | libc="$d/libc.$e" | |
24758 | if test -f $libc; then | |
24759 | save_LIBS="$LIBS" | |
24760 | LIBS="$libc" | |
24761 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
24762 | int main() { return 0; } |
24763 | _ACEOF | |
24764 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24766 | (eval $ac_link) 2>conftest.er1 | |
24767 | ac_status=$? | |
24768 | grep -v '^ *+' conftest.er1 >conftest.err | |
24769 | rm -f conftest.er1 | |
24770 | cat conftest.err >&5 | |
24771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24772 | (exit $ac_status); } && | |
bb9e79c0 | 24773 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
24774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24775 | (eval $ac_try) 2>&5 | |
24776 | ac_status=$? | |
24777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24778 | (exit $ac_status); }; } && | |
24779 | { ac_try='test -s conftest$ac_exeext' | |
24780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24781 | (eval $ac_try) 2>&5 | |
24782 | ac_status=$? | |
24783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24784 | (exit $ac_status); }; }; then | |
24785 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
24786 | else | |
24787 | echo "$as_me: failed program was:" >&5 | |
24788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24789 | ||
24790 | fi | |
24791 | rm -f conftest.err conftest.$ac_objext \ | |
24792 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
24793 | LIBS="$save_LIBS" |
24794 | if test "x$wx_cv_std_libpath" != "x"; then | |
24795 | break 2 | |
24796 | fi | |
24797 | fi | |
24798 | done | |
24799 | done | |
24800 | if test "x$wx_cv_std_libpath" = "x"; then | |
24801 | wx_cv_std_libpath="lib" | |
0ad5d837 | 24802 | fi |
0ad5d837 VZ |
24803 | |
24804 | ||
24805 | fi | |
6f9cf1e6 MW |
24806 | |
24807 | ;; | |
24808 | ||
24809 | *-*-solaris2* ) | |
24810 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
24811 | wx_cv_std_libpath="lib/64" | |
24812 | else | |
24813 | wx_cv_std_libpath="lib" | |
24814 | fi | |
24815 | ;; | |
24816 | ||
24817 | *-*-linux* ) | |
24818 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
24819 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
24820 | wx_cv_std_libpath="lib64" | |
24821 | else | |
24822 | wx_cv_std_libpath="lib" | |
24823 | fi | |
c687b303 VZ |
24824 | ;; |
24825 | ||
24826 | *) | |
24827 | wx_cv_std_libpath="lib"; | |
24828 | ;; | |
24829 | esac | |
0ad5d837 | 24830 | |
6f9cf1e6 MW |
24831 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
24832 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
24833 | ||
24834 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 24835 | |
3eca31dc MW |
24836 | if test "$build" != "$host" -a "$GCC" = yes; then |
24837 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
24838 | cross_root=`dirname $cross_root` | |
24839 | cross_root=`dirname $cross_root` | |
24840 | ||
24841 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
24842 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 24843 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
24844 | |
24845 | if test -z "$PKG_CONFIG_PATH"; then | |
24846 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
24847 | export PKG_CONFIG_PATH | |
24848 | fi | |
24849 | ||
24850 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
24851 | ||
24852 | ac_find_includes= | |
24853 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24854 | do | |
24855 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
24856 | ac_find_includes=$ac_dir | |
24857 | break | |
24858 | fi | |
24859 | done | |
24860 | ||
24861 | x_includes=$ac_find_includes | |
24862 | fi | |
24863 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
24864 | ||
0ad5d837 VZ |
24865 | ac_find_libraries= |
24866 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
24867 | do |
24868 | for ac_extension in a so sl dylib dll.a; do | |
24869 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
24870 | ac_find_libraries=$ac_dir | |
24871 | break 2 | |
24872 | fi | |
24873 | done | |
24874 | done | |
24875 | ||
24876 | x_libraries=$ac_find_libraries | |
24877 | fi | |
24878 | fi | |
24879 | fi | |
24880 | ||
a848cd7e SC |
24881 | |
24882 | cat >confcache <<\_ACEOF | |
24883 | # This file is a shell script that caches the results of configure | |
24884 | # tests run on this system so they can be shared between configure | |
24885 | # scripts and configure runs, see configure's option --config-cache. | |
24886 | # It is not useful on other systems. If it contains results you don't | |
24887 | # want to keep, you may remove or edit it. | |
24888 | # | |
24889 | # config.status only pays attention to the cache file if you give it | |
24890 | # the --recheck option to rerun configure. | |
24891 | # | |
24892 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
24893 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
24894 | # following values. | |
24895 | ||
24896 | _ACEOF | |
24897 | ||
24898 | # The following way of writing the cache mishandles newlines in values, | |
24899 | # but we know of no workaround that is simple, portable, and efficient. | |
24900 | # So, don't put newlines in cache variables' values. | |
24901 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
24902 | # and sets the high bit in the cache file unless we assign to the vars. | |
24903 | { | |
24904 | (set) 2>&1 | | |
24905 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
24906 | *ac_space=\ *) | |
24907 | # `set' does not quote correctly, so add quotes (double-quote | |
24908 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
24909 | sed -n \ | |
ac1cb8d3 VS |
24910 | "s/'/'\\\\''/g; |
24911 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
24912 | ;; |
24913 | *) | |
24914 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
24915 | sed -n \ | |
ac1cb8d3 | 24916 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
24917 | ;; |
24918 | esac; | |
24919 | } | | |
24920 | sed ' | |
24921 | t clear | |
24922 | : clear | |
24923 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
24924 | t end | |
24925 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
24926 | : end' >>confcache | |
24927 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
24928 | if test -w $cache_file; then | |
24929 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
24930 | cat confcache >$cache_file | |
24931 | else | |
24932 | echo "not updating unwritable cache $cache_file" | |
24933 | fi | |
24934 | fi | |
24935 | rm -f confcache | |
24936 | ||
24937 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
24938 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
24939 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
24940 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
24941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24942 | else | |
24943 | ||
24944 | cat >conftest.$ac_ext <<_ACEOF | |
24945 | /* confdefs.h. */ | |
24946 | _ACEOF | |
24947 | cat confdefs.h >>conftest.$ac_ext | |
24948 | cat >>conftest.$ac_ext <<_ACEOF | |
24949 | /* end confdefs.h. */ | |
24950 | #include <features.h> | |
24951 | int | |
24952 | main () | |
24953 | { | |
24954 | ||
24955 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 24956 | not glibc 2.1 |
a848cd7e SC |
24957 | #endif |
24958 | ||
24959 | ; | |
24960 | return 0; | |
24961 | } | |
24962 | _ACEOF | |
24963 | rm -f conftest.$ac_objext | |
24964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24965 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24966 | ac_status=$? |
ac1cb8d3 VS |
24967 | grep -v '^ *+' conftest.er1 >conftest.err |
24968 | rm -f conftest.er1 | |
24969 | cat conftest.err >&5 | |
a848cd7e SC |
24970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24971 | (exit $ac_status); } && | |
bb9e79c0 | 24972 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24974 | (eval $ac_try) 2>&5 | |
24975 | ac_status=$? | |
24976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24977 | (exit $ac_status); }; } && | |
24978 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24980 | (eval $ac_try) 2>&5 | |
24981 | ac_status=$? | |
24982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24983 | (exit $ac_status); }; }; then | |
24984 | ||
24985 | wx_cv_lib_glibc21=yes | |
24986 | ||
24987 | else | |
24988 | echo "$as_me: failed program was:" >&5 | |
24989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24990 | ||
24991 | ||
24992 | wx_cv_lib_glibc21=no | |
24993 | ||
24994 | ||
24995 | fi | |
ac1cb8d3 | 24996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24997 | |
24998 | fi | |
24999 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
25000 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
25001 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
25002 | cat >>confdefs.h <<\_ACEOF | |
25003 | #define wxHAVE_GLIBC2 1 | |
25004 | _ACEOF | |
25005 | ||
25006 | fi | |
25007 | fi | |
25008 | ||
25009 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
25010 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
25011 | cat >>confdefs.h <<\_ACEOF | |
25012 | #define _GNU_SOURCE 1 | |
25013 | _ACEOF | |
25014 | ||
25015 | fi | |
25016 | fi | |
25017 | ||
5d7b7554 VZ |
25018 | have_cos=0 |
25019 | have_floor=0 | |
a848cd7e | 25020 | |
5d7b7554 VZ |
25021 | for ac_func in cos |
25022 | do | |
25023 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25024 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25025 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25026 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a848cd7e | 25027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 25028 | else |
5d7b7554 | 25029 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
25030 | /* confdefs.h. */ |
25031 | _ACEOF | |
25032 | cat confdefs.h >>conftest.$ac_ext | |
25033 | cat >>conftest.$ac_ext <<_ACEOF | |
25034 | /* end confdefs.h. */ | |
5d7b7554 VZ |
25035 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
25036 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25037 | #define $ac_func innocuous_$ac_func | |
25038 | ||
25039 | /* System header to define __stub macros and hopefully few prototypes, | |
25040 | which can conflict with char $ac_func (); below. | |
25041 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25042 | <limits.h> exists even on freestanding compilers. */ | |
25043 | ||
25044 | #ifdef __STDC__ | |
25045 | # include <limits.h> | |
25046 | #else | |
25047 | # include <assert.h> | |
25048 | #endif | |
25049 | ||
25050 | #undef $ac_func | |
25051 | ||
25052 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25053 | #ifdef __cplusplus | |
25054 | extern "C" | |
25055 | { | |
25056 | #endif | |
25057 | /* We use char because int might match the return type of a gcc2 | |
25058 | builtin and then its argument prototype would still apply. */ | |
25059 | char $ac_func (); | |
25060 | /* The GNU C library defines this for functions which it implements | |
25061 | to always fail with ENOSYS. Some functions are actually named | |
25062 | something starting with __ and the normal name is an alias. */ | |
25063 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25064 | choke me | |
25065 | #else | |
25066 | char (*f) () = $ac_func; | |
25067 | #endif | |
25068 | #ifdef __cplusplus | |
25069 | } | |
25070 | #endif | |
25071 | ||
25072 | int | |
25073 | main () | |
25074 | { | |
25075 | return f != $ac_func; | |
25076 | ; | |
25077 | return 0; | |
25078 | } | |
a848cd7e | 25079 | _ACEOF |
5d7b7554 VZ |
25080 | rm -f conftest.$ac_objext conftest$ac_exeext |
25081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25082 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 25083 | ac_status=$? |
ac1cb8d3 VS |
25084 | grep -v '^ *+' conftest.er1 >conftest.err |
25085 | rm -f conftest.er1 | |
25086 | cat conftest.err >&5 | |
a848cd7e SC |
25087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25088 | (exit $ac_status); } && | |
bb9e79c0 | 25089 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25091 | (eval $ac_try) 2>&5 | |
25092 | ac_status=$? | |
25093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25094 | (exit $ac_status); }; } && | |
5d7b7554 | 25095 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
25096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25097 | (eval $ac_try) 2>&5 | |
25098 | ac_status=$? | |
25099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25100 | (exit $ac_status); }; }; then | |
5d7b7554 | 25101 | eval "$as_ac_var=yes" |
a848cd7e SC |
25102 | else |
25103 | echo "$as_me: failed program was:" >&5 | |
25104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25105 | ||
5d7b7554 | 25106 | eval "$as_ac_var=no" |
a848cd7e | 25107 | fi |
5d7b7554 VZ |
25108 | rm -f conftest.err conftest.$ac_objext \ |
25109 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 25110 | fi |
5d7b7554 VZ |
25111 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
25112 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25113 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25114 | cat >>confdefs.h <<_ACEOF | |
25115 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25116 | _ACEOF | |
25117 | have_cos=1 | |
a848cd7e | 25118 | fi |
5d7b7554 | 25119 | done |
a848cd7e | 25120 | |
ab0f0edd | 25121 | |
5d7b7554 | 25122 | for ac_func in floor |
a848cd7e SC |
25123 | do |
25124 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25125 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25126 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25127 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25129 | else | |
25130 | cat >conftest.$ac_ext <<_ACEOF | |
25131 | /* confdefs.h. */ | |
25132 | _ACEOF | |
25133 | cat confdefs.h >>conftest.$ac_ext | |
25134 | cat >>conftest.$ac_ext <<_ACEOF | |
25135 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25136 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
25137 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25138 | #define $ac_func innocuous_$ac_func | |
25139 | ||
a848cd7e SC |
25140 | /* System header to define __stub macros and hopefully few prototypes, |
25141 | which can conflict with char $ac_func (); below. | |
25142 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25143 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25144 | |
a848cd7e SC |
25145 | #ifdef __STDC__ |
25146 | # include <limits.h> | |
25147 | #else | |
25148 | # include <assert.h> | |
25149 | #endif | |
ac1cb8d3 VS |
25150 | |
25151 | #undef $ac_func | |
25152 | ||
a848cd7e SC |
25153 | /* Override any gcc2 internal prototype to avoid an error. */ |
25154 | #ifdef __cplusplus | |
25155 | extern "C" | |
25156 | { | |
25157 | #endif | |
25158 | /* We use char because int might match the return type of a gcc2 | |
25159 | builtin and then its argument prototype would still apply. */ | |
25160 | char $ac_func (); | |
25161 | /* The GNU C library defines this for functions which it implements | |
25162 | to always fail with ENOSYS. Some functions are actually named | |
25163 | something starting with __ and the normal name is an alias. */ | |
25164 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25165 | choke me | |
25166 | #else | |
25167 | char (*f) () = $ac_func; | |
25168 | #endif | |
25169 | #ifdef __cplusplus | |
25170 | } | |
25171 | #endif | |
25172 | ||
25173 | int | |
25174 | main () | |
25175 | { | |
25176 | return f != $ac_func; | |
25177 | ; | |
25178 | return 0; | |
25179 | } | |
25180 | _ACEOF | |
25181 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25183 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25184 | ac_status=$? |
ac1cb8d3 VS |
25185 | grep -v '^ *+' conftest.er1 >conftest.err |
25186 | rm -f conftest.er1 | |
25187 | cat conftest.err >&5 | |
a848cd7e SC |
25188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25189 | (exit $ac_status); } && | |
bb9e79c0 | 25190 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
25191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25192 | (eval $ac_try) 2>&5 | |
25193 | ac_status=$? | |
25194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25195 | (exit $ac_status); }; } && | |
25196 | { ac_try='test -s conftest$ac_exeext' | |
25197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25198 | (eval $ac_try) 2>&5 | |
25199 | ac_status=$? | |
25200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25201 | (exit $ac_status); }; }; then | |
25202 | eval "$as_ac_var=yes" | |
25203 | else | |
25204 | echo "$as_me: failed program was:" >&5 | |
25205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25206 | ||
25207 | eval "$as_ac_var=no" | |
25208 | fi | |
25209 | rm -f conftest.err conftest.$ac_objext \ | |
25210 | conftest$ac_exeext conftest.$ac_ext | |
25211 | fi | |
25212 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25213 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25214 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25215 | cat >>confdefs.h <<_ACEOF | |
25216 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25217 | _ACEOF | |
25218 | have_floor=1 | |
25219 | fi | |
25220 | done | |
25221 | ||
25222 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
25223 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
25224 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
25225 | echo "$as_me:$LINENO: result: yes" >&5 | |
25226 | echo "${ECHO_T}yes" >&6 | |
25227 | else | |
25228 | echo "$as_me:$LINENO: result: no" >&5 | |
25229 | echo "${ECHO_T}no" >&6 | |
25230 | LIBS="$LIBS -lm" | |
25231 | # use different functions to avoid configure caching | |
25232 | have_sin=0 | |
25233 | have_ceil=0 | |
25234 | ||
25235 | for ac_func in sin | |
25236 | do | |
25237 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25238 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25239 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25240 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25242 | else | |
25243 | cat >conftest.$ac_ext <<_ACEOF | |
25244 | /* confdefs.h. */ | |
25245 | _ACEOF | |
25246 | cat confdefs.h >>conftest.$ac_ext | |
25247 | cat >>conftest.$ac_ext <<_ACEOF | |
25248 | /* end confdefs.h. */ | |
25249 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25250 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25251 | #define $ac_func innocuous_$ac_func | |
25252 | ||
25253 | /* System header to define __stub macros and hopefully few prototypes, | |
25254 | which can conflict with char $ac_func (); below. | |
25255 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25256 | <limits.h> exists even on freestanding compilers. */ | |
25257 | ||
25258 | #ifdef __STDC__ | |
25259 | # include <limits.h> | |
25260 | #else | |
25261 | # include <assert.h> | |
25262 | #endif | |
25263 | ||
25264 | #undef $ac_func | |
25265 | ||
25266 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25267 | #ifdef __cplusplus | |
25268 | extern "C" | |
25269 | { | |
25270 | #endif | |
25271 | /* We use char because int might match the return type of a gcc2 | |
25272 | builtin and then its argument prototype would still apply. */ | |
25273 | char $ac_func (); | |
25274 | /* The GNU C library defines this for functions which it implements | |
25275 | to always fail with ENOSYS. Some functions are actually named | |
25276 | something starting with __ and the normal name is an alias. */ | |
25277 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25278 | choke me | |
25279 | #else | |
25280 | char (*f) () = $ac_func; | |
25281 | #endif | |
25282 | #ifdef __cplusplus | |
25283 | } | |
25284 | #endif | |
25285 | ||
25286 | int | |
25287 | main () | |
25288 | { | |
25289 | return f != $ac_func; | |
25290 | ; | |
25291 | return 0; | |
25292 | } | |
25293 | _ACEOF | |
25294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25296 | (eval $ac_link) 2>conftest.er1 | |
25297 | ac_status=$? | |
25298 | grep -v '^ *+' conftest.er1 >conftest.err | |
25299 | rm -f conftest.er1 | |
25300 | cat conftest.err >&5 | |
25301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25302 | (exit $ac_status); } && | |
bb9e79c0 | 25303 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
25304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25305 | (eval $ac_try) 2>&5 | |
25306 | ac_status=$? | |
25307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25308 | (exit $ac_status); }; } && | |
25309 | { ac_try='test -s conftest$ac_exeext' | |
25310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25311 | (eval $ac_try) 2>&5 | |
25312 | ac_status=$? | |
25313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25314 | (exit $ac_status); }; }; then | |
25315 | eval "$as_ac_var=yes" | |
25316 | else | |
25317 | echo "$as_me: failed program was:" >&5 | |
25318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25319 | ||
25320 | eval "$as_ac_var=no" | |
25321 | fi | |
25322 | rm -f conftest.err conftest.$ac_objext \ | |
25323 | conftest$ac_exeext conftest.$ac_ext | |
25324 | fi | |
25325 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25326 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25327 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25328 | cat >>confdefs.h <<_ACEOF | |
25329 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25330 | _ACEOF | |
25331 | have_sin=1 | |
25332 | fi | |
25333 | done | |
25334 | ||
25335 | ||
25336 | for ac_func in ceil | |
25337 | do | |
25338 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25339 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25340 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25341 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25343 | else | |
25344 | cat >conftest.$ac_ext <<_ACEOF | |
25345 | /* confdefs.h. */ | |
25346 | _ACEOF | |
25347 | cat confdefs.h >>conftest.$ac_ext | |
25348 | cat >>conftest.$ac_ext <<_ACEOF | |
25349 | /* end confdefs.h. */ | |
25350 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25351 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25352 | #define $ac_func innocuous_$ac_func | |
25353 | ||
25354 | /* System header to define __stub macros and hopefully few prototypes, | |
25355 | which can conflict with char $ac_func (); below. | |
25356 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25357 | <limits.h> exists even on freestanding compilers. */ | |
25358 | ||
25359 | #ifdef __STDC__ | |
25360 | # include <limits.h> | |
25361 | #else | |
25362 | # include <assert.h> | |
25363 | #endif | |
25364 | ||
25365 | #undef $ac_func | |
25366 | ||
25367 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25368 | #ifdef __cplusplus | |
25369 | extern "C" | |
25370 | { | |
25371 | #endif | |
25372 | /* We use char because int might match the return type of a gcc2 | |
25373 | builtin and then its argument prototype would still apply. */ | |
25374 | char $ac_func (); | |
25375 | /* The GNU C library defines this for functions which it implements | |
25376 | to always fail with ENOSYS. Some functions are actually named | |
25377 | something starting with __ and the normal name is an alias. */ | |
25378 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25379 | choke me | |
25380 | #else | |
25381 | char (*f) () = $ac_func; | |
25382 | #endif | |
25383 | #ifdef __cplusplus | |
25384 | } | |
25385 | #endif | |
25386 | ||
25387 | int | |
25388 | main () | |
25389 | { | |
25390 | return f != $ac_func; | |
25391 | ; | |
25392 | return 0; | |
25393 | } | |
25394 | _ACEOF | |
25395 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25397 | (eval $ac_link) 2>conftest.er1 | |
25398 | ac_status=$? | |
25399 | grep -v '^ *+' conftest.er1 >conftest.err | |
25400 | rm -f conftest.er1 | |
25401 | cat conftest.err >&5 | |
25402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25403 | (exit $ac_status); } && | |
bb9e79c0 | 25404 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
25405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25406 | (eval $ac_try) 2>&5 | |
25407 | ac_status=$? | |
25408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25409 | (exit $ac_status); }; } && | |
25410 | { ac_try='test -s conftest$ac_exeext' | |
25411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25412 | (eval $ac_try) 2>&5 | |
25413 | ac_status=$? | |
25414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25415 | (exit $ac_status); }; }; then | |
25416 | eval "$as_ac_var=yes" | |
25417 | else | |
25418 | echo "$as_me: failed program was:" >&5 | |
25419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25420 | ||
25421 | eval "$as_ac_var=no" | |
25422 | fi | |
25423 | rm -f conftest.err conftest.$ac_objext \ | |
25424 | conftest$ac_exeext conftest.$ac_ext | |
25425 | fi | |
25426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25427 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25428 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25429 | cat >>confdefs.h <<_ACEOF | |
25430 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25431 | _ACEOF | |
25432 | have_ceil=1 | |
25433 | fi | |
25434 | done | |
25435 | ||
25436 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
25437 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
25438 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
25439 | echo "$as_me:$LINENO: result: yes" >&5 | |
25440 | echo "${ECHO_T}yes" >&6 | |
25441 | else | |
25442 | echo "$as_me:$LINENO: result: no" >&5 | |
25443 | echo "${ECHO_T}no" >&6 | |
25444 | # not sure we should warn the user, crash, etc. | |
25445 | fi | |
25446 | fi | |
25447 | ||
ec3edcc9 VZ |
25448 | if test "wxUSE_UNICODE" = "yes"; then |
25449 | ||
25450 | for ac_func in wcstoull | |
25451 | do | |
25452 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25453 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25454 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25455 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25457 | else | |
25458 | cat >conftest.$ac_ext <<_ACEOF | |
25459 | /* confdefs.h. */ | |
25460 | _ACEOF | |
25461 | cat confdefs.h >>conftest.$ac_ext | |
25462 | cat >>conftest.$ac_ext <<_ACEOF | |
25463 | /* end confdefs.h. */ | |
25464 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25465 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25466 | #define $ac_func innocuous_$ac_func | |
25467 | ||
25468 | /* System header to define __stub macros and hopefully few prototypes, | |
25469 | which can conflict with char $ac_func (); below. | |
25470 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25471 | <limits.h> exists even on freestanding compilers. */ | |
25472 | ||
25473 | #ifdef __STDC__ | |
25474 | # include <limits.h> | |
25475 | #else | |
25476 | # include <assert.h> | |
25477 | #endif | |
25478 | ||
25479 | #undef $ac_func | |
25480 | ||
25481 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25482 | #ifdef __cplusplus | |
25483 | extern "C" | |
25484 | { | |
25485 | #endif | |
25486 | /* We use char because int might match the return type of a gcc2 | |
25487 | builtin and then its argument prototype would still apply. */ | |
25488 | char $ac_func (); | |
25489 | /* The GNU C library defines this for functions which it implements | |
25490 | to always fail with ENOSYS. Some functions are actually named | |
25491 | something starting with __ and the normal name is an alias. */ | |
25492 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25493 | choke me | |
25494 | #else | |
25495 | char (*f) () = $ac_func; | |
25496 | #endif | |
25497 | #ifdef __cplusplus | |
25498 | } | |
25499 | #endif | |
25500 | ||
25501 | int | |
25502 | main () | |
25503 | { | |
25504 | return f != $ac_func; | |
25505 | ; | |
25506 | return 0; | |
25507 | } | |
25508 | _ACEOF | |
25509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25511 | (eval $ac_link) 2>conftest.er1 | |
25512 | ac_status=$? | |
25513 | grep -v '^ *+' conftest.er1 >conftest.err | |
25514 | rm -f conftest.er1 | |
25515 | cat conftest.err >&5 | |
25516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25517 | (exit $ac_status); } && | |
bb9e79c0 | 25518 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ec3edcc9 VZ |
25519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25520 | (eval $ac_try) 2>&5 | |
25521 | ac_status=$? | |
25522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25523 | (exit $ac_status); }; } && | |
25524 | { ac_try='test -s conftest$ac_exeext' | |
25525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25526 | (eval $ac_try) 2>&5 | |
25527 | ac_status=$? | |
25528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25529 | (exit $ac_status); }; }; then | |
25530 | eval "$as_ac_var=yes" | |
25531 | else | |
25532 | echo "$as_me: failed program was:" >&5 | |
25533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25534 | ||
25535 | eval "$as_ac_var=no" | |
25536 | fi | |
25537 | rm -f conftest.err conftest.$ac_objext \ | |
25538 | conftest$ac_exeext conftest.$ac_ext | |
25539 | fi | |
25540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25541 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25542 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25543 | cat >>confdefs.h <<_ACEOF | |
25544 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25545 | _ACEOF | |
25546 | ||
25547 | fi | |
25548 | done | |
25549 | ||
25550 | else | |
25551 | ||
25552 | for ac_func in strtoull | |
25553 | do | |
25554 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25555 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25556 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25557 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25559 | else | |
25560 | cat >conftest.$ac_ext <<_ACEOF | |
25561 | /* confdefs.h. */ | |
25562 | _ACEOF | |
25563 | cat confdefs.h >>conftest.$ac_ext | |
25564 | cat >>conftest.$ac_ext <<_ACEOF | |
25565 | /* end confdefs.h. */ | |
25566 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25567 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25568 | #define $ac_func innocuous_$ac_func | |
25569 | ||
25570 | /* System header to define __stub macros and hopefully few prototypes, | |
25571 | which can conflict with char $ac_func (); below. | |
25572 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25573 | <limits.h> exists even on freestanding compilers. */ | |
25574 | ||
25575 | #ifdef __STDC__ | |
25576 | # include <limits.h> | |
25577 | #else | |
25578 | # include <assert.h> | |
25579 | #endif | |
25580 | ||
25581 | #undef $ac_func | |
25582 | ||
25583 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25584 | #ifdef __cplusplus | |
25585 | extern "C" | |
25586 | { | |
25587 | #endif | |
25588 | /* We use char because int might match the return type of a gcc2 | |
25589 | builtin and then its argument prototype would still apply. */ | |
25590 | char $ac_func (); | |
25591 | /* The GNU C library defines this for functions which it implements | |
25592 | to always fail with ENOSYS. Some functions are actually named | |
25593 | something starting with __ and the normal name is an alias. */ | |
25594 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25595 | choke me | |
25596 | #else | |
25597 | char (*f) () = $ac_func; | |
25598 | #endif | |
25599 | #ifdef __cplusplus | |
25600 | } | |
25601 | #endif | |
25602 | ||
25603 | int | |
25604 | main () | |
25605 | { | |
25606 | return f != $ac_func; | |
25607 | ; | |
25608 | return 0; | |
25609 | } | |
25610 | _ACEOF | |
25611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25613 | (eval $ac_link) 2>conftest.er1 | |
25614 | ac_status=$? | |
25615 | grep -v '^ *+' conftest.er1 >conftest.err | |
25616 | rm -f conftest.er1 | |
25617 | cat conftest.err >&5 | |
25618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25619 | (exit $ac_status); } && | |
bb9e79c0 | 25620 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ec3edcc9 VZ |
25621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25622 | (eval $ac_try) 2>&5 | |
25623 | ac_status=$? | |
25624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25625 | (exit $ac_status); }; } && | |
25626 | { ac_try='test -s conftest$ac_exeext' | |
25627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25628 | (eval $ac_try) 2>&5 | |
25629 | ac_status=$? | |
25630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25631 | (exit $ac_status); }; }; then | |
25632 | eval "$as_ac_var=yes" | |
25633 | else | |
25634 | echo "$as_me: failed program was:" >&5 | |
25635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25636 | ||
25637 | eval "$as_ac_var=no" | |
25638 | fi | |
25639 | rm -f conftest.err conftest.$ac_objext \ | |
25640 | conftest$ac_exeext conftest.$ac_ext | |
25641 | fi | |
25642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25643 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25644 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25645 | cat >>confdefs.h <<_ACEOF | |
25646 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25647 | _ACEOF | |
25648 | ||
25649 | fi | |
25650 | done | |
25651 | ||
25652 | fi | |
25653 | ||
5d7b7554 VZ |
25654 | |
25655 | ||
25656 | if test "$wxUSE_REGEX" != "no"; then | |
25657 | cat >>confdefs.h <<\_ACEOF | |
25658 | #define wxUSE_REGEX 1 | |
25659 | _ACEOF | |
25660 | ||
25661 | ||
25662 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
25663 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
25664 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
25665 | wxUSE_REGEX=builtin | |
25666 | fi | |
25667 | ||
25668 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
25669 | if test "${ac_cv_header_regex_h+set}" = set; then | |
25670 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
25671 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
25672 | if test "${ac_cv_header_regex_h+set}" = set; then | |
25673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25674 | fi | |
25675 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
25676 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
25677 | else | |
25678 | # Is the header compilable? | |
25679 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
25680 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
25681 | cat >conftest.$ac_ext <<_ACEOF | |
25682 | /* confdefs.h. */ | |
25683 | _ACEOF | |
25684 | cat confdefs.h >>conftest.$ac_ext | |
25685 | cat >>conftest.$ac_ext <<_ACEOF | |
25686 | /* end confdefs.h. */ | |
25687 | $ac_includes_default | |
25688 | #include <regex.h> | |
25689 | _ACEOF | |
25690 | rm -f conftest.$ac_objext | |
25691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25692 | (eval $ac_compile) 2>conftest.er1 | |
25693 | ac_status=$? | |
25694 | grep -v '^ *+' conftest.er1 >conftest.err | |
25695 | rm -f conftest.er1 | |
25696 | cat conftest.err >&5 | |
25697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25698 | (exit $ac_status); } && | |
bb9e79c0 | 25699 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
25700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25701 | (eval $ac_try) 2>&5 | |
25702 | ac_status=$? | |
25703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25704 | (exit $ac_status); }; } && | |
25705 | { ac_try='test -s conftest.$ac_objext' | |
25706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25707 | (eval $ac_try) 2>&5 | |
25708 | ac_status=$? | |
25709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25710 | (exit $ac_status); }; }; then | |
25711 | ac_header_compiler=yes | |
25712 | else | |
25713 | echo "$as_me: failed program was:" >&5 | |
25714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25715 | ||
25716 | ac_header_compiler=no | |
25717 | fi | |
25718 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25719 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
25720 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25721 | ||
25722 | # Is the header present? | |
25723 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
25724 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
25725 | cat >conftest.$ac_ext <<_ACEOF | |
25726 | /* confdefs.h. */ | |
25727 | _ACEOF | |
25728 | cat confdefs.h >>conftest.$ac_ext | |
25729 | cat >>conftest.$ac_ext <<_ACEOF | |
25730 | /* end confdefs.h. */ | |
25731 | #include <regex.h> | |
25732 | _ACEOF | |
25733 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25734 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25735 | ac_status=$? | |
25736 | grep -v '^ *+' conftest.er1 >conftest.err | |
25737 | rm -f conftest.er1 | |
25738 | cat conftest.err >&5 | |
25739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25740 | (exit $ac_status); } >/dev/null; then | |
25741 | if test -s conftest.err; then | |
25742 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
25743 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
25744 | else | |
25745 | ac_cpp_err= | |
25746 | fi | |
25747 | else | |
25748 | ac_cpp_err=yes | |
25749 | fi | |
25750 | if test -z "$ac_cpp_err"; then | |
25751 | ac_header_preproc=yes | |
25752 | else | |
25753 | echo "$as_me: failed program was:" >&5 | |
25754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25755 | ||
25756 | ac_header_preproc=no | |
25757 | fi | |
25758 | rm -f conftest.err conftest.$ac_ext | |
25759 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25760 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25761 | ||
25762 | # So? What about this header? | |
25763 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
25764 | yes:no: ) | |
25765 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
25766 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
25767 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 | |
25768 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
25769 | ac_header_preproc=yes | |
25770 | ;; | |
25771 | no:yes:* ) | |
25772 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
25773 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
25774 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
25775 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
25776 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
25777 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
25778 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25779 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
25780 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
25781 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
25782 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 | |
25783 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
25784 | ( | |
25785 | cat <<\_ASBOX | |
25786 | ## ----------------------------------------- ## | |
25787 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25788 | ## ----------------------------------------- ## | |
25789 | _ASBOX | |
25790 | ) | | |
25791 | sed "s/^/$as_me: WARNING: /" >&2 | |
25792 | ;; | |
25793 | esac | |
25794 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
25795 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
25796 | if test "${ac_cv_header_regex_h+set}" = set; then | |
25797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25798 | else | |
25799 | ac_cv_header_regex_h=$ac_header_preproc | |
25800 | fi | |
25801 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
25802 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
25803 | ||
25804 | fi | |
25805 | if test $ac_cv_header_regex_h = yes; then | |
25806 | ||
25807 | ||
25808 | for ac_func in regcomp re_search | |
25809 | do | |
25810 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25811 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25812 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25813 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25815 | else | |
25816 | cat >conftest.$ac_ext <<_ACEOF | |
25817 | /* confdefs.h. */ | |
25818 | _ACEOF | |
25819 | cat confdefs.h >>conftest.$ac_ext | |
25820 | cat >>conftest.$ac_ext <<_ACEOF | |
25821 | /* end confdefs.h. */ | |
25822 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25823 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25824 | #define $ac_func innocuous_$ac_func | |
25825 | ||
25826 | /* System header to define __stub macros and hopefully few prototypes, | |
25827 | which can conflict with char $ac_func (); below. | |
25828 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25829 | <limits.h> exists even on freestanding compilers. */ | |
25830 | ||
25831 | #ifdef __STDC__ | |
25832 | # include <limits.h> | |
25833 | #else | |
25834 | # include <assert.h> | |
25835 | #endif | |
25836 | ||
25837 | #undef $ac_func | |
25838 | ||
25839 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25840 | #ifdef __cplusplus | |
25841 | extern "C" | |
25842 | { | |
25843 | #endif | |
25844 | /* We use char because int might match the return type of a gcc2 | |
25845 | builtin and then its argument prototype would still apply. */ | |
25846 | char $ac_func (); | |
25847 | /* The GNU C library defines this for functions which it implements | |
25848 | to always fail with ENOSYS. Some functions are actually named | |
25849 | something starting with __ and the normal name is an alias. */ | |
25850 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25851 | choke me | |
25852 | #else | |
25853 | char (*f) () = $ac_func; | |
25854 | #endif | |
25855 | #ifdef __cplusplus | |
25856 | } | |
25857 | #endif | |
25858 | ||
25859 | int | |
25860 | main () | |
25861 | { | |
25862 | return f != $ac_func; | |
25863 | ; | |
25864 | return 0; | |
25865 | } | |
25866 | _ACEOF | |
25867 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25869 | (eval $ac_link) 2>conftest.er1 | |
25870 | ac_status=$? | |
25871 | grep -v '^ *+' conftest.er1 >conftest.err | |
25872 | rm -f conftest.er1 | |
25873 | cat conftest.err >&5 | |
25874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25875 | (exit $ac_status); } && | |
bb9e79c0 | 25876 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25878 | (eval $ac_try) 2>&5 | |
25879 | ac_status=$? | |
25880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25881 | (exit $ac_status); }; } && | |
25882 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25884 | (eval $ac_try) 2>&5 | |
25885 | ac_status=$? | |
25886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25887 | (exit $ac_status); }; }; then | |
25888 | eval "$as_ac_var=yes" | |
25889 | else | |
25890 | echo "$as_me: failed program was:" >&5 | |
25891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25892 | ||
25893 | eval "$as_ac_var=no" | |
25894 | fi | |
ac1cb8d3 VS |
25895 | rm -f conftest.err conftest.$ac_objext \ |
25896 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25897 | fi |
25898 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25899 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25900 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25901 | cat >>confdefs.h <<_ACEOF | |
25902 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25903 | _ACEOF | |
25904 | ||
25905 | fi | |
25906 | done | |
25907 | ||
25908 | fi | |
25909 | ||
25910 | ||
25911 | ||
25912 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
25913 | if test "$wxUSE_REGEX" = "sys" ; then | |
25914 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
25915 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
25916 | { (exit 1); exit 1; }; } | |
25917 | else | |
25918 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
25919 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
25920 | wxUSE_REGEX=builtin | |
25921 | fi | |
25922 | else | |
25923 | wxUSE_REGEX=sys | |
25924 | cat >>confdefs.h <<\_ACEOF | |
25925 | #define WX_NO_REGEX_ADVANCED 1 | |
25926 | _ACEOF | |
25927 | ||
25928 | fi | |
25929 | fi | |
25930 | fi | |
25931 | ||
25932 | ||
25933 | ZLIB_LINK= | |
25934 | if test "$wxUSE_ZLIB" != "no" ; then | |
25935 | cat >>confdefs.h <<\_ACEOF | |
25936 | #define wxUSE_ZLIB 1 | |
25937 | _ACEOF | |
25938 | ||
25939 | ||
25940 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
25941 | if test "$USE_DARWIN" = 1; then | |
25942 | system_zlib_h_ok="yes" | |
25943 | else | |
25944 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
25945 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
25946 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25948 | else | |
25949 | if test "$cross_compiling" = yes; then | |
25950 | unset ac_cv_header_zlib_h | |
25951 | ||
25952 | else | |
25953 | cat >conftest.$ac_ext <<_ACEOF | |
25954 | /* confdefs.h. */ | |
25955 | _ACEOF | |
25956 | cat confdefs.h >>conftest.$ac_ext | |
25957 | cat >>conftest.$ac_ext <<_ACEOF | |
25958 | /* end confdefs.h. */ | |
25959 | ||
25960 | #include <zlib.h> | |
25961 | #include <stdio.h> | |
25962 | ||
25963 | int main() | |
25964 | { | |
25965 | FILE *f=fopen("conftestval", "w"); | |
25966 | if (!f) exit(1); | |
25967 | fprintf(f, "%s", | |
25968 | ZLIB_VERSION[0] == '1' && | |
25969 | (ZLIB_VERSION[2] > '1' || | |
25970 | (ZLIB_VERSION[2] == '1' && | |
25971 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
25972 | exit(0); | |
25973 | } | |
25974 | ||
25975 | _ACEOF | |
25976 | rm -f conftest$ac_exeext | |
25977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25978 | (eval $ac_link) 2>&5 | |
25979 | ac_status=$? | |
25980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25981 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25983 | (eval $ac_try) 2>&5 | |
25984 | ac_status=$? | |
25985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25986 | (exit $ac_status); }; }; then | |
25987 | ac_cv_header_zlib_h=`cat conftestval` | |
25988 | else | |
25989 | echo "$as_me: program exited with status $ac_status" >&5 | |
25990 | echo "$as_me: failed program was:" >&5 | |
25991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25992 | ||
25993 | ( exit $ac_status ) | |
25994 | ac_cv_header_zlib_h=no | |
25995 | fi | |
ac1cb8d3 | 25996 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25997 | fi |
25998 | ||
25999 | fi | |
26000 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
26001 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
26002 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
26003 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
26004 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
26005 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
26006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26007 | fi | |
26008 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
26009 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
26010 | else | |
26011 | # Is the header compilable? | |
26012 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
26013 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
26014 | cat >conftest.$ac_ext <<_ACEOF | |
26015 | /* confdefs.h. */ | |
26016 | _ACEOF | |
26017 | cat confdefs.h >>conftest.$ac_ext | |
26018 | cat >>conftest.$ac_ext <<_ACEOF | |
26019 | /* end confdefs.h. */ | |
26020 | $ac_includes_default | |
26021 | #include <zlib.h> | |
26022 | _ACEOF | |
26023 | rm -f conftest.$ac_objext | |
26024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26025 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26026 | ac_status=$? |
ac1cb8d3 VS |
26027 | grep -v '^ *+' conftest.er1 >conftest.err |
26028 | rm -f conftest.er1 | |
26029 | cat conftest.err >&5 | |
a848cd7e SC |
26030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26031 | (exit $ac_status); } && | |
bb9e79c0 | 26032 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26034 | (eval $ac_try) 2>&5 | |
26035 | ac_status=$? | |
26036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26037 | (exit $ac_status); }; } && | |
26038 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26040 | (eval $ac_try) 2>&5 | |
26041 | ac_status=$? | |
26042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26043 | (exit $ac_status); }; }; then | |
26044 | ac_header_compiler=yes | |
26045 | else | |
26046 | echo "$as_me: failed program was:" >&5 | |
26047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26048 | ||
26049 | ac_header_compiler=no | |
26050 | fi | |
ac1cb8d3 | 26051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26052 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26053 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26054 | ||
26055 | # Is the header present? | |
26056 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
26057 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
26058 | cat >conftest.$ac_ext <<_ACEOF | |
26059 | /* confdefs.h. */ | |
26060 | _ACEOF | |
26061 | cat confdefs.h >>conftest.$ac_ext | |
26062 | cat >>conftest.$ac_ext <<_ACEOF | |
26063 | /* end confdefs.h. */ | |
26064 | #include <zlib.h> | |
26065 | _ACEOF | |
26066 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26067 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26068 | ac_status=$? | |
26069 | grep -v '^ *+' conftest.er1 >conftest.err | |
26070 | rm -f conftest.er1 | |
26071 | cat conftest.err >&5 | |
26072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26073 | (exit $ac_status); } >/dev/null; then | |
26074 | if test -s conftest.err; then | |
5d7b7554 VZ |
26075 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26076 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26077 | else |
26078 | ac_cpp_err= | |
26079 | fi | |
26080 | else | |
26081 | ac_cpp_err=yes | |
26082 | fi | |
26083 | if test -z "$ac_cpp_err"; then | |
26084 | ac_header_preproc=yes | |
26085 | else | |
26086 | echo "$as_me: failed program was:" >&5 | |
26087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26088 | ||
26089 | ac_header_preproc=no | |
26090 | fi | |
26091 | rm -f conftest.err conftest.$ac_ext | |
26092 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26093 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26094 | ||
26095 | # So? What about this header? | |
5d7b7554 | 26096 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26097 | yes:no: ) |
a848cd7e SC |
26098 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26099 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26100 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
26101 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
26102 | ac_header_preproc=yes | |
a848cd7e | 26103 | ;; |
ac1cb8d3 | 26104 | no:yes:* ) |
a848cd7e SC |
26105 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
26106 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26107 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
26108 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
26109 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
26110 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
26111 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26112 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26113 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
26114 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26115 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
26116 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26117 | ( |
26118 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26119 | ## ----------------------------------------- ## |
26120 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26121 | ## ----------------------------------------- ## | |
a848cd7e SC |
26122 | _ASBOX |
26123 | ) | | |
26124 | sed "s/^/$as_me: WARNING: /" >&2 | |
26125 | ;; | |
26126 | esac | |
26127 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
26128 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
26129 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
26130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26131 | else | |
26132 | ac_cv_header_zlib_h=$ac_header_preproc | |
26133 | fi | |
26134 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
26135 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
26136 | ||
26137 | fi | |
26138 | ||
26139 | ||
26140 | ||
26141 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
26142 | fi | |
26143 | ||
26144 | if test "$system_zlib_h_ok" = "yes"; then | |
26145 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
26146 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
26147 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
26148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26149 | else | |
26150 | ac_check_lib_save_LIBS=$LIBS | |
26151 | LIBS="-lz $LIBS" | |
26152 | cat >conftest.$ac_ext <<_ACEOF | |
26153 | /* confdefs.h. */ | |
26154 | _ACEOF | |
26155 | cat confdefs.h >>conftest.$ac_ext | |
26156 | cat >>conftest.$ac_ext <<_ACEOF | |
26157 | /* end confdefs.h. */ | |
26158 | ||
26159 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26160 | #ifdef __cplusplus | |
26161 | extern "C" | |
26162 | #endif | |
26163 | /* We use char because int might match the return type of a gcc2 | |
26164 | builtin and then its argument prototype would still apply. */ | |
26165 | char deflate (); | |
26166 | int | |
26167 | main () | |
26168 | { | |
26169 | deflate (); | |
26170 | ; | |
26171 | return 0; | |
26172 | } | |
26173 | _ACEOF | |
26174 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26176 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26177 | ac_status=$? |
ac1cb8d3 VS |
26178 | grep -v '^ *+' conftest.er1 >conftest.err |
26179 | rm -f conftest.er1 | |
26180 | cat conftest.err >&5 | |
a848cd7e SC |
26181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26182 | (exit $ac_status); } && | |
bb9e79c0 | 26183 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26185 | (eval $ac_try) 2>&5 | |
26186 | ac_status=$? | |
26187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26188 | (exit $ac_status); }; } && | |
26189 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26191 | (eval $ac_try) 2>&5 | |
26192 | ac_status=$? | |
26193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26194 | (exit $ac_status); }; }; then | |
26195 | ac_cv_lib_z_deflate=yes | |
26196 | else | |
26197 | echo "$as_me: failed program was:" >&5 | |
26198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26199 | ||
26200 | ac_cv_lib_z_deflate=no | |
26201 | fi | |
ac1cb8d3 VS |
26202 | rm -f conftest.err conftest.$ac_objext \ |
26203 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26204 | LIBS=$ac_check_lib_save_LIBS |
26205 | fi | |
26206 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
26207 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
26208 | if test $ac_cv_lib_z_deflate = yes; then | |
26209 | ZLIB_LINK=" -lz" | |
26210 | fi | |
26211 | ||
26212 | fi | |
26213 | ||
26214 | if test "x$ZLIB_LINK" = "x" ; then | |
26215 | if test "$wxUSE_ZLIB" = "sys" ; then | |
26216 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
26217 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
26218 | { (exit 1); exit 1; }; } | |
26219 | else | |
26220 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
26221 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
26222 | wxUSE_ZLIB=builtin | |
26223 | fi | |
26224 | else | |
26225 | wxUSE_ZLIB=sys | |
26226 | fi | |
26227 | fi | |
26228 | fi | |
26229 | ||
26230 | ||
26231 | PNG_LINK= | |
26232 | if test "$wxUSE_LIBPNG" != "no" ; then | |
26233 | cat >>confdefs.h <<\_ACEOF | |
26234 | #define wxUSE_LIBPNG 1 | |
26235 | _ACEOF | |
26236 | ||
26237 | ||
26238 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
26239 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
26240 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
26241 | wxUSE_LIBPNG=sys | |
26242 | fi | |
26243 | ||
26244 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
26245 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
26246 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
26247 | wxUSE_LIBPNG=builtin | |
26248 | fi | |
26249 | ||
26250 | if test "$wxUSE_MGL" != 1 ; then | |
26251 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
26252 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
26253 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
26254 | if test "${ac_cv_header_png_h+set}" = set; then | |
26255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26256 | else | |
26257 | if test "$cross_compiling" = yes; then | |
26258 | unset ac_cv_header_png_h | |
26259 | ||
26260 | else | |
26261 | cat >conftest.$ac_ext <<_ACEOF | |
26262 | /* confdefs.h. */ | |
26263 | _ACEOF | |
26264 | cat confdefs.h >>conftest.$ac_ext | |
26265 | cat >>conftest.$ac_ext <<_ACEOF | |
26266 | /* end confdefs.h. */ | |
26267 | ||
26268 | #include <png.h> | |
26269 | #include <stdio.h> | |
26270 | ||
26271 | int main() | |
26272 | { | |
26273 | FILE *f=fopen("conftestval", "w"); | |
26274 | if (!f) exit(1); | |
26275 | fprintf(f, "%s", | |
26276 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
26277 | exit(0); | |
26278 | } | |
26279 | ||
26280 | _ACEOF | |
26281 | rm -f conftest$ac_exeext | |
26282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26283 | (eval $ac_link) 2>&5 | |
26284 | ac_status=$? | |
26285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26286 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26288 | (eval $ac_try) 2>&5 | |
26289 | ac_status=$? | |
26290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26291 | (exit $ac_status); }; }; then | |
26292 | ac_cv_header_png_h=`cat conftestval` | |
26293 | else | |
26294 | echo "$as_me: program exited with status $ac_status" >&5 | |
26295 | echo "$as_me: failed program was:" >&5 | |
26296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26297 | ||
26298 | ( exit $ac_status ) | |
26299 | ac_cv_header_png_h=no | |
26300 | fi | |
ac1cb8d3 | 26301 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26302 | fi |
26303 | ||
26304 | fi | |
26305 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
26306 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
26307 | if test "${ac_cv_header_png_h+set}" = set; then | |
26308 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
26309 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
26310 | if test "${ac_cv_header_png_h+set}" = set; then | |
26311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26312 | fi | |
26313 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
26314 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
26315 | else | |
26316 | # Is the header compilable? | |
26317 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
26318 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
26319 | cat >conftest.$ac_ext <<_ACEOF | |
26320 | /* confdefs.h. */ | |
26321 | _ACEOF | |
26322 | cat confdefs.h >>conftest.$ac_ext | |
26323 | cat >>conftest.$ac_ext <<_ACEOF | |
26324 | /* end confdefs.h. */ | |
26325 | $ac_includes_default | |
26326 | #include <png.h> | |
26327 | _ACEOF | |
26328 | rm -f conftest.$ac_objext | |
26329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26330 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26331 | ac_status=$? |
ac1cb8d3 VS |
26332 | grep -v '^ *+' conftest.er1 >conftest.err |
26333 | rm -f conftest.er1 | |
26334 | cat conftest.err >&5 | |
a848cd7e SC |
26335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26336 | (exit $ac_status); } && | |
bb9e79c0 | 26337 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26339 | (eval $ac_try) 2>&5 | |
26340 | ac_status=$? | |
26341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26342 | (exit $ac_status); }; } && | |
26343 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26345 | (eval $ac_try) 2>&5 | |
26346 | ac_status=$? | |
26347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26348 | (exit $ac_status); }; }; then | |
26349 | ac_header_compiler=yes | |
26350 | else | |
26351 | echo "$as_me: failed program was:" >&5 | |
26352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26353 | ||
26354 | ac_header_compiler=no | |
26355 | fi | |
ac1cb8d3 | 26356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26357 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26358 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26359 | ||
26360 | # Is the header present? | |
26361 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
26362 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
26363 | cat >conftest.$ac_ext <<_ACEOF | |
26364 | /* confdefs.h. */ | |
26365 | _ACEOF | |
26366 | cat confdefs.h >>conftest.$ac_ext | |
26367 | cat >>conftest.$ac_ext <<_ACEOF | |
26368 | /* end confdefs.h. */ | |
26369 | #include <png.h> | |
26370 | _ACEOF | |
26371 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26372 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26373 | ac_status=$? | |
26374 | grep -v '^ *+' conftest.er1 >conftest.err | |
26375 | rm -f conftest.er1 | |
26376 | cat conftest.err >&5 | |
26377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26378 | (exit $ac_status); } >/dev/null; then | |
26379 | if test -s conftest.err; then | |
5d7b7554 VZ |
26380 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26381 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26382 | else |
26383 | ac_cpp_err= | |
26384 | fi | |
26385 | else | |
26386 | ac_cpp_err=yes | |
26387 | fi | |
26388 | if test -z "$ac_cpp_err"; then | |
26389 | ac_header_preproc=yes | |
26390 | else | |
26391 | echo "$as_me: failed program was:" >&5 | |
26392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26393 | ||
26394 | ac_header_preproc=no | |
26395 | fi | |
26396 | rm -f conftest.err conftest.$ac_ext | |
26397 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26398 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26399 | ||
26400 | # So? What about this header? | |
5d7b7554 | 26401 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26402 | yes:no: ) |
a848cd7e SC |
26403 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26404 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26405 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
26406 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
26407 | ac_header_preproc=yes | |
a848cd7e | 26408 | ;; |
ac1cb8d3 | 26409 | no:yes:* ) |
a848cd7e SC |
26410 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
26411 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26412 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
26413 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
26414 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
26415 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
26416 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26417 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26418 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
26419 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26420 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
26421 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26422 | ( |
26423 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26424 | ## ----------------------------------------- ## |
26425 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26426 | ## ----------------------------------------- ## | |
a848cd7e SC |
26427 | _ASBOX |
26428 | ) | | |
26429 | sed "s/^/$as_me: WARNING: /" >&2 | |
26430 | ;; | |
26431 | esac | |
26432 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
26433 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
26434 | if test "${ac_cv_header_png_h+set}" = set; then | |
26435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26436 | else | |
26437 | ac_cv_header_png_h=$ac_header_preproc | |
26438 | fi | |
26439 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
26440 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
26441 | ||
26442 | fi | |
26443 | ||
26444 | ||
26445 | ||
26446 | if test "$ac_cv_header_png_h" = "yes"; then | |
26447 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
26448 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
26449 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
26450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26451 | else | |
26452 | ac_check_lib_save_LIBS=$LIBS | |
26453 | LIBS="-lpng -lz -lm $LIBS" | |
26454 | cat >conftest.$ac_ext <<_ACEOF | |
26455 | /* confdefs.h. */ | |
26456 | _ACEOF | |
26457 | cat confdefs.h >>conftest.$ac_ext | |
26458 | cat >>conftest.$ac_ext <<_ACEOF | |
26459 | /* end confdefs.h. */ | |
26460 | ||
26461 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26462 | #ifdef __cplusplus | |
26463 | extern "C" | |
26464 | #endif | |
26465 | /* We use char because int might match the return type of a gcc2 | |
26466 | builtin and then its argument prototype would still apply. */ | |
26467 | char png_check_sig (); | |
26468 | int | |
26469 | main () | |
26470 | { | |
26471 | png_check_sig (); | |
26472 | ; | |
26473 | return 0; | |
26474 | } | |
26475 | _ACEOF | |
26476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26478 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26479 | ac_status=$? |
ac1cb8d3 VS |
26480 | grep -v '^ *+' conftest.er1 >conftest.err |
26481 | rm -f conftest.er1 | |
26482 | cat conftest.err >&5 | |
a848cd7e SC |
26483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26484 | (exit $ac_status); } && | |
bb9e79c0 | 26485 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26487 | (eval $ac_try) 2>&5 | |
26488 | ac_status=$? | |
26489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26490 | (exit $ac_status); }; } && | |
26491 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26493 | (eval $ac_try) 2>&5 | |
26494 | ac_status=$? | |
26495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26496 | (exit $ac_status); }; }; then | |
26497 | ac_cv_lib_png_png_check_sig=yes | |
26498 | else | |
26499 | echo "$as_me: failed program was:" >&5 | |
26500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26501 | ||
26502 | ac_cv_lib_png_png_check_sig=no | |
26503 | fi | |
ac1cb8d3 VS |
26504 | rm -f conftest.err conftest.$ac_objext \ |
26505 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26506 | LIBS=$ac_check_lib_save_LIBS |
26507 | fi | |
26508 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
26509 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
26510 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
26511 | PNG_LINK=" -lpng -lz" | |
26512 | fi | |
26513 | ||
26514 | fi | |
26515 | ||
26516 | if test "x$PNG_LINK" = "x" ; then | |
26517 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
26518 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
26519 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
26520 | { (exit 1); exit 1; }; } | |
26521 | else | |
26522 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
26523 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
26524 | wxUSE_LIBPNG=builtin | |
26525 | fi | |
26526 | else | |
26527 | wxUSE_LIBPNG=sys | |
26528 | fi | |
26529 | fi | |
26530 | fi | |
26531 | ||
26532 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
26533 | fi | |
26534 | ||
26535 | ||
26536 | JPEG_LINK= | |
26537 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
26538 | cat >>confdefs.h <<\_ACEOF | |
26539 | #define wxUSE_LIBJPEG 1 | |
26540 | _ACEOF | |
26541 | ||
26542 | ||
26543 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
26544 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
26545 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
26546 | wxUSE_LIBJPEG=sys | |
26547 | fi | |
26548 | ||
26549 | if test "$wxUSE_MGL" != 1 ; then | |
26550 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
26551 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
26552 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
26553 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
26554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26555 | else | |
26556 | cat >conftest.$ac_ext <<_ACEOF | |
26557 | /* confdefs.h. */ | |
26558 | _ACEOF | |
26559 | cat confdefs.h >>conftest.$ac_ext | |
26560 | cat >>conftest.$ac_ext <<_ACEOF | |
26561 | /* end confdefs.h. */ | |
26562 | ||
26563 | #undef HAVE_STDLIB_H | |
26564 | #include <stdio.h> | |
26565 | #include <jpeglib.h> | |
26566 | ||
26567 | int | |
26568 | main () | |
26569 | { | |
26570 | ||
26571 | ||
26572 | ; | |
26573 | return 0; | |
26574 | } | |
26575 | _ACEOF | |
26576 | rm -f conftest.$ac_objext | |
26577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26578 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26579 | ac_status=$? |
ac1cb8d3 VS |
26580 | grep -v '^ *+' conftest.er1 >conftest.err |
26581 | rm -f conftest.er1 | |
26582 | cat conftest.err >&5 | |
a848cd7e SC |
26583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26584 | (exit $ac_status); } && | |
bb9e79c0 | 26585 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26587 | (eval $ac_try) 2>&5 | |
26588 | ac_status=$? | |
26589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26590 | (exit $ac_status); }; } && | |
26591 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26593 | (eval $ac_try) 2>&5 | |
26594 | ac_status=$? | |
26595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26596 | (exit $ac_status); }; }; then | |
26597 | ac_cv_header_jpeglib_h=yes | |
26598 | else | |
26599 | echo "$as_me: failed program was:" >&5 | |
26600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26601 | ||
26602 | ac_cv_header_jpeglib_h=no | |
26603 | ||
26604 | fi | |
ac1cb8d3 | 26605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26606 | |
26607 | fi | |
26608 | ||
26609 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
26610 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
26611 | ||
26612 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
26613 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
26614 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
26615 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
26616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26617 | else | |
26618 | ac_check_lib_save_LIBS=$LIBS | |
26619 | LIBS="-ljpeg $LIBS" | |
26620 | cat >conftest.$ac_ext <<_ACEOF | |
26621 | /* confdefs.h. */ | |
26622 | _ACEOF | |
26623 | cat confdefs.h >>conftest.$ac_ext | |
26624 | cat >>conftest.$ac_ext <<_ACEOF | |
26625 | /* end confdefs.h. */ | |
26626 | ||
26627 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26628 | #ifdef __cplusplus | |
26629 | extern "C" | |
26630 | #endif | |
26631 | /* We use char because int might match the return type of a gcc2 | |
26632 | builtin and then its argument prototype would still apply. */ | |
26633 | char jpeg_read_header (); | |
26634 | int | |
26635 | main () | |
26636 | { | |
26637 | jpeg_read_header (); | |
26638 | ; | |
26639 | return 0; | |
26640 | } | |
26641 | _ACEOF | |
26642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26644 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26645 | ac_status=$? |
ac1cb8d3 VS |
26646 | grep -v '^ *+' conftest.er1 >conftest.err |
26647 | rm -f conftest.er1 | |
26648 | cat conftest.err >&5 | |
a848cd7e SC |
26649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26650 | (exit $ac_status); } && | |
bb9e79c0 | 26651 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26653 | (eval $ac_try) 2>&5 | |
26654 | ac_status=$? | |
26655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26656 | (exit $ac_status); }; } && | |
26657 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26659 | (eval $ac_try) 2>&5 | |
26660 | ac_status=$? | |
26661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26662 | (exit $ac_status); }; }; then | |
26663 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
26664 | else | |
26665 | echo "$as_me: failed program was:" >&5 | |
26666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26667 | ||
26668 | ac_cv_lib_jpeg_jpeg_read_header=no | |
26669 | fi | |
ac1cb8d3 VS |
26670 | rm -f conftest.err conftest.$ac_objext \ |
26671 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26672 | LIBS=$ac_check_lib_save_LIBS |
26673 | fi | |
26674 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
26675 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
26676 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
26677 | JPEG_LINK=" -ljpeg" | |
26678 | fi | |
26679 | ||
26680 | fi | |
26681 | ||
26682 | if test "x$JPEG_LINK" = "x" ; then | |
26683 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
26684 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
26685 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
26686 | { (exit 1); exit 1; }; } | |
26687 | else | |
26688 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
26689 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
26690 | wxUSE_LIBJPEG=builtin | |
26691 | fi | |
26692 | else | |
26693 | wxUSE_LIBJPEG=sys | |
26694 | fi | |
26695 | fi | |
26696 | fi | |
26697 | fi | |
26698 | ||
26699 | ||
26700 | TIFF_LINK= | |
26701 | TIFF_PREREQ_LINKS=-lm | |
26702 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
26703 | cat >>confdefs.h <<\_ACEOF | |
26704 | #define wxUSE_LIBTIFF 1 | |
26705 | _ACEOF | |
26706 | ||
26707 | ||
26708 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
26709 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
26710 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
26711 | fi | |
26712 | if test "$wxUSE_ZLIB" = "sys"; then | |
26713 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
26714 | fi | |
26715 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
26716 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
26717 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
26718 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
26719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26720 | fi | |
26721 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
26722 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
26723 | else | |
26724 | # Is the header compilable? | |
26725 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
26726 | echo $ECHO_N "checking tiffio.h 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 <tiffio.h> | |
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); } && | |
bb9e79c0 | 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 tiffio.h presence" >&5 | |
26770 | echo $ECHO_N "checking tiffio.h 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 <tiffio.h> | |
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: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26812 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26813 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
26814 | echo "$as_me: WARNING: tiffio.h: 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: tiffio.h: present but cannot be compiled" >&5 |
26819 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26820 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
26821 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
26822 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
26823 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
26824 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26825 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26826 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
26827 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26828 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
26829 | echo "$as_me: WARNING: tiffio.h: 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 tiffio.h" >&5 | |
26841 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
26842 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
26843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26844 | else | |
26845 | ac_cv_header_tiffio_h=$ac_header_preproc | |
26846 | fi | |
26847 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
26848 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
26849 | ||
26850 | fi | |
26851 | if test $ac_cv_header_tiffio_h = yes; then | |
26852 | ||
26853 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
26854 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
26855 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
26856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26857 | else | |
26858 | ac_check_lib_save_LIBS=$LIBS | |
26859 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
26860 | cat >conftest.$ac_ext <<_ACEOF | |
26861 | /* confdefs.h. */ | |
26862 | _ACEOF | |
26863 | cat confdefs.h >>conftest.$ac_ext | |
26864 | cat >>conftest.$ac_ext <<_ACEOF | |
26865 | /* end confdefs.h. */ | |
26866 | ||
26867 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26868 | #ifdef __cplusplus | |
26869 | extern "C" | |
26870 | #endif | |
26871 | /* We use char because int might match the return type of a gcc2 | |
26872 | builtin and then its argument prototype would still apply. */ | |
26873 | char TIFFError (); | |
26874 | int | |
26875 | main () | |
26876 | { | |
26877 | TIFFError (); | |
26878 | ; | |
26879 | return 0; | |
26880 | } | |
26881 | _ACEOF | |
26882 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26884 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26885 | ac_status=$? |
ac1cb8d3 VS |
26886 | grep -v '^ *+' conftest.er1 >conftest.err |
26887 | rm -f conftest.er1 | |
26888 | cat conftest.err >&5 | |
a848cd7e SC |
26889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26890 | (exit $ac_status); } && | |
bb9e79c0 | 26891 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26893 | (eval $ac_try) 2>&5 | |
26894 | ac_status=$? | |
26895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26896 | (exit $ac_status); }; } && | |
26897 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26899 | (eval $ac_try) 2>&5 | |
26900 | ac_status=$? | |
26901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26902 | (exit $ac_status); }; }; then | |
26903 | ac_cv_lib_tiff_TIFFError=yes | |
26904 | else | |
26905 | echo "$as_me: failed program was:" >&5 | |
26906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26907 | ||
26908 | ac_cv_lib_tiff_TIFFError=no | |
26909 | fi | |
ac1cb8d3 VS |
26910 | rm -f conftest.err conftest.$ac_objext \ |
26911 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26912 | LIBS=$ac_check_lib_save_LIBS |
26913 | fi | |
26914 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
26915 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
26916 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
26917 | TIFF_LINK=" -ltiff" | |
26918 | fi | |
26919 | ||
26920 | ||
26921 | ||
26922 | fi | |
26923 | ||
26924 | ||
26925 | ||
26926 | if test "x$TIFF_LINK" = "x" ; then | |
26927 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
26928 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
26929 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
26930 | { (exit 1); exit 1; }; } | |
26931 | else | |
26932 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
26933 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
26934 | wxUSE_LIBTIFF=builtin | |
26935 | fi | |
26936 | else | |
26937 | wxUSE_LIBTIFF=sys | |
26938 | fi | |
26939 | fi | |
26940 | fi | |
26941 | ||
26942 | ||
47a7e797 MW |
26943 | if test "$wxUSE_WCHAR_T" != "yes"; then |
26944 | if test "$wxUSE_EXPAT" != "no"; then | |
26945 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
26946 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
26947 | wxUSE_EXPAT=no | |
26948 | fi | |
26949 | if test "$wxUSE_XML" != "no"; then | |
26950 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
26951 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
26952 | wxUSE_XML=no | |
26953 | fi | |
26954 | fi | |
26955 | ||
a848cd7e SC |
26956 | if test "$wxUSE_EXPAT" != "no"; then |
26957 | wxUSE_XML=yes | |
26958 | cat >>confdefs.h <<\_ACEOF | |
26959 | #define wxUSE_EXPAT 1 | |
26960 | _ACEOF | |
26961 | ||
26962 | cat >>confdefs.h <<\_ACEOF | |
26963 | #define wxUSE_XML 1 | |
26964 | _ACEOF | |
26965 | ||
26966 | ||
26967 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
26968 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26969 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
26970 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
26971 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26973 | fi | |
26974 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
26975 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
26976 | else | |
26977 | # Is the header compilable? | |
26978 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
26979 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
26980 | cat >conftest.$ac_ext <<_ACEOF | |
26981 | /* confdefs.h. */ | |
26982 | _ACEOF | |
26983 | cat confdefs.h >>conftest.$ac_ext | |
26984 | cat >>conftest.$ac_ext <<_ACEOF | |
26985 | /* end confdefs.h. */ | |
26986 | $ac_includes_default | |
26987 | #include <expat.h> | |
26988 | _ACEOF | |
26989 | rm -f conftest.$ac_objext | |
26990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26991 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26992 | ac_status=$? |
ac1cb8d3 VS |
26993 | grep -v '^ *+' conftest.er1 >conftest.err |
26994 | rm -f conftest.er1 | |
26995 | cat conftest.err >&5 | |
a848cd7e SC |
26996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26997 | (exit $ac_status); } && | |
bb9e79c0 | 26998 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27000 | (eval $ac_try) 2>&5 | |
27001 | ac_status=$? | |
27002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27003 | (exit $ac_status); }; } && | |
27004 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27006 | (eval $ac_try) 2>&5 | |
27007 | ac_status=$? | |
27008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27009 | (exit $ac_status); }; }; then | |
27010 | ac_header_compiler=yes | |
27011 | else | |
27012 | echo "$as_me: failed program was:" >&5 | |
27013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27014 | ||
27015 | ac_header_compiler=no | |
27016 | fi | |
ac1cb8d3 | 27017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27018 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27019 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27020 | ||
27021 | # Is the header present? | |
27022 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
27023 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
27024 | cat >conftest.$ac_ext <<_ACEOF | |
27025 | /* confdefs.h. */ | |
27026 | _ACEOF | |
27027 | cat confdefs.h >>conftest.$ac_ext | |
27028 | cat >>conftest.$ac_ext <<_ACEOF | |
27029 | /* end confdefs.h. */ | |
27030 | #include <expat.h> | |
27031 | _ACEOF | |
27032 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27033 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27034 | ac_status=$? | |
27035 | grep -v '^ *+' conftest.er1 >conftest.err | |
27036 | rm -f conftest.er1 | |
27037 | cat conftest.err >&5 | |
27038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27039 | (exit $ac_status); } >/dev/null; then | |
27040 | if test -s conftest.err; then | |
5d7b7554 VZ |
27041 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
27042 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
27043 | else |
27044 | ac_cpp_err= | |
27045 | fi | |
27046 | else | |
27047 | ac_cpp_err=yes | |
27048 | fi | |
27049 | if test -z "$ac_cpp_err"; then | |
27050 | ac_header_preproc=yes | |
27051 | else | |
27052 | echo "$as_me: failed program was:" >&5 | |
27053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27054 | ||
27055 | ac_header_preproc=no | |
27056 | fi | |
27057 | rm -f conftest.err conftest.$ac_ext | |
27058 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27059 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27060 | ||
27061 | # So? What about this header? | |
5d7b7554 | 27062 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 27063 | yes:no: ) |
a848cd7e SC |
27064 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27065 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27066 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
27067 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
27068 | ac_header_preproc=yes | |
a848cd7e | 27069 | ;; |
ac1cb8d3 | 27070 | no:yes:* ) |
a848cd7e SC |
27071 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
27072 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27073 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
27074 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
27075 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
27076 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
27077 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27078 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27079 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
27080 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27081 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
27082 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27083 | ( |
27084 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27085 | ## ----------------------------------------- ## |
27086 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27087 | ## ----------------------------------------- ## | |
a848cd7e SC |
27088 | _ASBOX |
27089 | ) | | |
27090 | sed "s/^/$as_me: WARNING: /" >&2 | |
27091 | ;; | |
27092 | esac | |
27093 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
27094 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
27095 | if test "${ac_cv_header_expat_h+set}" = set; then | |
27096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27097 | else | |
27098 | ac_cv_header_expat_h=$ac_header_preproc | |
27099 | fi | |
27100 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
27101 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
27102 | ||
27103 | fi | |
27104 | if test $ac_cv_header_expat_h = yes; then | |
27105 | found_expat_h=1 | |
27106 | fi | |
27107 | ||
27108 | ||
27109 | if test "x$found_expat_h" = "x1"; then | |
27110 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
27111 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
27112 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
27113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27114 | else | |
27115 | ||
a848cd7e SC |
27116 | cat >conftest.$ac_ext <<_ACEOF |
27117 | /* confdefs.h. */ | |
27118 | _ACEOF | |
27119 | cat confdefs.h >>conftest.$ac_ext | |
27120 | cat >>conftest.$ac_ext <<_ACEOF | |
27121 | /* end confdefs.h. */ | |
27122 | #include <expat.h> | |
27123 | int | |
27124 | main () | |
27125 | { | |
27126 | ||
27127 | ; | |
27128 | return 0; | |
27129 | } | |
27130 | _ACEOF | |
27131 | rm -f conftest.$ac_objext | |
27132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27133 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27134 | ac_status=$? |
ac1cb8d3 VS |
27135 | grep -v '^ *+' conftest.er1 >conftest.err |
27136 | rm -f conftest.er1 | |
27137 | cat conftest.err >&5 | |
a848cd7e SC |
27138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27139 | (exit $ac_status); } && | |
bb9e79c0 | 27140 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27142 | (eval $ac_try) 2>&5 | |
27143 | ac_status=$? | |
27144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27145 | (exit $ac_status); }; } && | |
27146 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27148 | (eval $ac_try) 2>&5 | |
27149 | ac_status=$? | |
27150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27151 | (exit $ac_status); }; }; then | |
27152 | wx_cv_expat_is_not_broken=yes | |
27153 | else | |
27154 | echo "$as_me: failed program was:" >&5 | |
27155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27156 | ||
27157 | wx_cv_expat_is_not_broken=no | |
27158 | ||
27159 | fi | |
ac1cb8d3 | 27160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27161 | |
27162 | ||
27163 | fi | |
27164 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
27165 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
27166 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
27167 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
27168 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
27169 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
27170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27171 | else | |
27172 | ac_check_lib_save_LIBS=$LIBS | |
27173 | LIBS="-lexpat $LIBS" | |
27174 | cat >conftest.$ac_ext <<_ACEOF | |
27175 | /* confdefs.h. */ | |
27176 | _ACEOF | |
27177 | cat confdefs.h >>conftest.$ac_ext | |
27178 | cat >>conftest.$ac_ext <<_ACEOF | |
27179 | /* end confdefs.h. */ | |
27180 | ||
27181 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27182 | #ifdef __cplusplus | |
27183 | extern "C" | |
27184 | #endif | |
27185 | /* We use char because int might match the return type of a gcc2 | |
27186 | builtin and then its argument prototype would still apply. */ | |
27187 | char XML_ParserCreate (); | |
27188 | int | |
27189 | main () | |
27190 | { | |
27191 | XML_ParserCreate (); | |
27192 | ; | |
27193 | return 0; | |
27194 | } | |
27195 | _ACEOF | |
27196 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27198 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27199 | ac_status=$? |
ac1cb8d3 VS |
27200 | grep -v '^ *+' conftest.er1 >conftest.err |
27201 | rm -f conftest.er1 | |
27202 | cat conftest.err >&5 | |
a848cd7e SC |
27203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27204 | (exit $ac_status); } && | |
bb9e79c0 | 27205 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27207 | (eval $ac_try) 2>&5 | |
27208 | ac_status=$? | |
27209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27210 | (exit $ac_status); }; } && | |
27211 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27213 | (eval $ac_try) 2>&5 | |
27214 | ac_status=$? | |
27215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27216 | (exit $ac_status); }; }; then | |
27217 | ac_cv_lib_expat_XML_ParserCreate=yes | |
27218 | else | |
27219 | echo "$as_me: failed program was:" >&5 | |
27220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27221 | ||
27222 | ac_cv_lib_expat_XML_ParserCreate=no | |
27223 | fi | |
ac1cb8d3 VS |
27224 | rm -f conftest.err conftest.$ac_objext \ |
27225 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27226 | LIBS=$ac_check_lib_save_LIBS |
27227 | fi | |
27228 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
27229 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
27230 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
27231 | EXPAT_LINK=" -lexpat" | |
27232 | fi | |
27233 | ||
27234 | fi | |
27235 | fi | |
27236 | if test "x$EXPAT_LINK" = "x" ; then | |
27237 | if test "$wxUSE_EXPAT" = "sys" ; then | |
27238 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
27239 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
27240 | { (exit 1); exit 1; }; } | |
27241 | else | |
27242 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
27243 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
27244 | wxUSE_EXPAT=builtin | |
27245 | fi | |
27246 | else | |
27247 | wxUSE_EXPAT=sys | |
27248 | fi | |
27249 | fi | |
27250 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
27251 | ||
27252 | ||
27253 | subdirs="$subdirs src/expat" | |
27254 | ||
27255 | fi | |
27256 | fi | |
27257 | ||
27258 | ||
27259 | ||
27260 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
27261 | if test "${ac_cv_header_mspack_h+set}" = set; then |
27262 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
27263 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
27264 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
27265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27266 | fi | |
27267 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
27268 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
27269 | else | |
27270 | # Is the header compilable? | |
27271 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
27272 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
27273 | cat >conftest.$ac_ext <<_ACEOF | |
27274 | /* confdefs.h. */ | |
27275 | _ACEOF | |
27276 | cat confdefs.h >>conftest.$ac_ext | |
27277 | cat >>conftest.$ac_ext <<_ACEOF | |
27278 | /* end confdefs.h. */ | |
27279 | $ac_includes_default | |
27280 | #include <mspack.h> | |
27281 | _ACEOF | |
27282 | rm -f conftest.$ac_objext | |
27283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27284 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27285 | ac_status=$? |
ac1cb8d3 VS |
27286 | grep -v '^ *+' conftest.er1 >conftest.err |
27287 | rm -f conftest.er1 | |
27288 | cat conftest.err >&5 | |
a848cd7e SC |
27289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27290 | (exit $ac_status); } && | |
bb9e79c0 | 27291 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27293 | (eval $ac_try) 2>&5 | |
27294 | ac_status=$? | |
27295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27296 | (exit $ac_status); }; } && | |
27297 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27299 | (eval $ac_try) 2>&5 | |
27300 | ac_status=$? | |
27301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27302 | (exit $ac_status); }; }; then | |
27303 | ac_header_compiler=yes | |
27304 | else | |
27305 | echo "$as_me: failed program was:" >&5 | |
27306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27307 | ||
27308 | ac_header_compiler=no | |
27309 | fi | |
ac1cb8d3 | 27310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27311 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27312 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27313 | ||
27314 | # Is the header present? | |
27315 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
27316 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
27317 | cat >conftest.$ac_ext <<_ACEOF | |
27318 | /* confdefs.h. */ | |
27319 | _ACEOF | |
27320 | cat confdefs.h >>conftest.$ac_ext | |
27321 | cat >>conftest.$ac_ext <<_ACEOF | |
27322 | /* end confdefs.h. */ | |
27323 | #include <mspack.h> | |
27324 | _ACEOF | |
27325 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27326 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27327 | ac_status=$? | |
27328 | grep -v '^ *+' conftest.er1 >conftest.err | |
27329 | rm -f conftest.er1 | |
27330 | cat conftest.err >&5 | |
27331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27332 | (exit $ac_status); } >/dev/null; then | |
27333 | if test -s conftest.err; then | |
5d7b7554 VZ |
27334 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
27335 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
27336 | else |
27337 | ac_cpp_err= | |
27338 | fi | |
27339 | else | |
27340 | ac_cpp_err=yes | |
27341 | fi | |
27342 | if test -z "$ac_cpp_err"; then | |
27343 | ac_header_preproc=yes | |
27344 | else | |
27345 | echo "$as_me: failed program was:" >&5 | |
27346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27347 | ||
27348 | ac_header_preproc=no | |
27349 | fi | |
27350 | rm -f conftest.err conftest.$ac_ext | |
27351 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27352 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27353 | ||
27354 | # So? What about this header? | |
5d7b7554 | 27355 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 27356 | yes:no: ) |
a848cd7e SC |
27357 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27358 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27359 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
27360 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
27361 | ac_header_preproc=yes | |
a848cd7e | 27362 | ;; |
ac1cb8d3 | 27363 | no:yes:* ) |
a848cd7e SC |
27364 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
27365 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27366 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
27367 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
27368 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
27369 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
27370 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27371 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27372 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
27373 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27374 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
27375 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27376 | ( |
27377 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27378 | ## ----------------------------------------- ## |
27379 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27380 | ## ----------------------------------------- ## | |
a848cd7e SC |
27381 | _ASBOX |
27382 | ) | | |
27383 | sed "s/^/$as_me: WARNING: /" >&2 | |
27384 | ;; | |
27385 | esac | |
27386 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
27387 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
27388 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
27389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27390 | else | |
27391 | ac_cv_header_mspack_h=$ac_header_preproc | |
27392 | fi | |
27393 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
27394 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
27395 | ||
27396 | fi | |
27397 | if test $ac_cv_header_mspack_h = yes; then | |
27398 | found_mspack_h=1 | |
27399 | fi | |
27400 | ||
27401 | ||
27402 | if test "x$found_mspack_h" = "x1"; then | |
27403 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
27404 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
27405 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
27406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27407 | else | |
27408 | ac_check_lib_save_LIBS=$LIBS | |
27409 | LIBS="-lmspack $LIBS" | |
27410 | cat >conftest.$ac_ext <<_ACEOF | |
27411 | /* confdefs.h. */ | |
27412 | _ACEOF | |
27413 | cat confdefs.h >>conftest.$ac_ext | |
27414 | cat >>conftest.$ac_ext <<_ACEOF | |
27415 | /* end confdefs.h. */ | |
27416 | ||
27417 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27418 | #ifdef __cplusplus | |
27419 | extern "C" | |
27420 | #endif | |
27421 | /* We use char because int might match the return type of a gcc2 | |
27422 | builtin and then its argument prototype would still apply. */ | |
27423 | char mspack_create_chm_decompressor (); | |
27424 | int | |
27425 | main () | |
27426 | { | |
27427 | mspack_create_chm_decompressor (); | |
27428 | ; | |
27429 | return 0; | |
27430 | } | |
27431 | _ACEOF | |
27432 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27434 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27435 | ac_status=$? |
ac1cb8d3 VS |
27436 | grep -v '^ *+' conftest.er1 >conftest.err |
27437 | rm -f conftest.er1 | |
27438 | cat conftest.err >&5 | |
a848cd7e SC |
27439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27440 | (exit $ac_status); } && | |
bb9e79c0 | 27441 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27443 | (eval $ac_try) 2>&5 | |
27444 | ac_status=$? | |
27445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27446 | (exit $ac_status); }; } && | |
27447 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27449 | (eval $ac_try) 2>&5 | |
27450 | ac_status=$? | |
27451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27452 | (exit $ac_status); }; }; then | |
27453 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
27454 | else | |
27455 | echo "$as_me: failed program was:" >&5 | |
27456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27457 | ||
27458 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
27459 | fi | |
ac1cb8d3 VS |
27460 | rm -f conftest.err conftest.$ac_objext \ |
27461 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27462 | LIBS=$ac_check_lib_save_LIBS |
27463 | fi | |
27464 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
27465 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
27466 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
27467 | MSPACK_LINK=" -lmspack" | |
27468 | fi | |
27469 | ||
27470 | fi | |
27471 | if test "x$MSPACK_LINK" = "x" ; then | |
27472 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
27473 | fi |
27474 | fi | |
27475 | ||
27476 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
27477 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
27478 | #define wxUSE_LIBMSPACK 1 |
27479 | _ACEOF | |
27480 | ||
a848cd7e SC |
27481 | fi |
27482 | ||
27483 | ||
27484 | ||
27485 | AFMINSTALL= | |
27486 | WIN32INSTALL= | |
27487 | ||
27488 | TOOLKIT= | |
27489 | TOOLKIT_INCLUDE= | |
27490 | WIDGET_SET= | |
27491 | ||
27492 | if test "$USE_WIN32" = 1 ; then | |
27493 | ||
27494 | for ac_header in w32api.h | |
27495 | do | |
27496 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27497 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27498 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27499 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27500 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27502 | fi | |
27503 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27504 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27505 | else | |
27506 | # Is the header compilable? | |
27507 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
27508 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
27509 | cat >conftest.$ac_ext <<_ACEOF | |
27510 | /* confdefs.h. */ | |
27511 | _ACEOF | |
27512 | cat confdefs.h >>conftest.$ac_ext | |
27513 | cat >>conftest.$ac_ext <<_ACEOF | |
27514 | /* end confdefs.h. */ | |
27515 | $ac_includes_default | |
27516 | #include <$ac_header> | |
27517 | _ACEOF | |
27518 | rm -f conftest.$ac_objext | |
27519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27520 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27521 | ac_status=$? |
ac1cb8d3 VS |
27522 | grep -v '^ *+' conftest.er1 >conftest.err |
27523 | rm -f conftest.er1 | |
27524 | cat conftest.err >&5 | |
a848cd7e SC |
27525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27526 | (exit $ac_status); } && | |
bb9e79c0 | 27527 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27529 | (eval $ac_try) 2>&5 | |
27530 | ac_status=$? | |
27531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27532 | (exit $ac_status); }; } && | |
27533 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27535 | (eval $ac_try) 2>&5 | |
27536 | ac_status=$? | |
27537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27538 | (exit $ac_status); }; }; then | |
27539 | ac_header_compiler=yes | |
27540 | else | |
27541 | echo "$as_me: failed program was:" >&5 | |
27542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27543 | ||
27544 | ac_header_compiler=no | |
27545 | fi | |
ac1cb8d3 | 27546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27547 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27548 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27549 | ||
27550 | # Is the header present? | |
27551 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
27552 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
27553 | cat >conftest.$ac_ext <<_ACEOF | |
27554 | /* confdefs.h. */ | |
27555 | _ACEOF | |
27556 | cat confdefs.h >>conftest.$ac_ext | |
27557 | cat >>conftest.$ac_ext <<_ACEOF | |
27558 | /* end confdefs.h. */ | |
27559 | #include <$ac_header> | |
27560 | _ACEOF | |
27561 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27562 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27563 | ac_status=$? | |
27564 | grep -v '^ *+' conftest.er1 >conftest.err | |
27565 | rm -f conftest.er1 | |
27566 | cat conftest.err >&5 | |
27567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27568 | (exit $ac_status); } >/dev/null; then | |
27569 | if test -s conftest.err; then | |
5d7b7554 VZ |
27570 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
27571 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
27572 | else |
27573 | ac_cpp_err= | |
27574 | fi | |
27575 | else | |
27576 | ac_cpp_err=yes | |
27577 | fi | |
27578 | if test -z "$ac_cpp_err"; then | |
27579 | ac_header_preproc=yes | |
27580 | else | |
27581 | echo "$as_me: failed program was:" >&5 | |
27582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27583 | ||
27584 | ac_header_preproc=no | |
27585 | fi | |
27586 | rm -f conftest.err conftest.$ac_ext | |
27587 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27588 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27589 | ||
27590 | # So? What about this header? | |
5d7b7554 | 27591 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 27592 | yes:no: ) |
a848cd7e SC |
27593 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
27594 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27595 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
27596 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
27597 | ac_header_preproc=yes | |
a848cd7e | 27598 | ;; |
ac1cb8d3 | 27599 | no:yes:* ) |
a848cd7e SC |
27600 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
27601 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27602 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
27603 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27604 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27605 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27606 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27607 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27608 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
27609 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27610 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
27611 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27612 | ( |
27613 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27614 | ## ----------------------------------------- ## |
27615 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27616 | ## ----------------------------------------- ## | |
a848cd7e SC |
27617 | _ASBOX |
27618 | ) | | |
27619 | sed "s/^/$as_me: WARNING: /" >&2 | |
27620 | ;; | |
27621 | esac | |
27622 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27623 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27624 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27626 | else | |
ac1cb8d3 | 27627 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
27628 | fi |
27629 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27630 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27631 | ||
27632 | fi | |
27633 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27634 | cat >>confdefs.h <<_ACEOF | |
27635 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27636 | _ACEOF | |
27637 | ||
27638 | fi | |
27639 | ||
27640 | done | |
27641 | ||
27642 | if test "${ac_cv_header_windows_h+set}" = set; then | |
27643 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
27644 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
27645 | if test "${ac_cv_header_windows_h+set}" = set; then | |
27646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27647 | fi | |
27648 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
27649 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
27650 | else | |
27651 | # Is the header compilable? | |
27652 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
27653 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
27654 | cat >conftest.$ac_ext <<_ACEOF | |
27655 | /* confdefs.h. */ | |
27656 | _ACEOF | |
27657 | cat confdefs.h >>conftest.$ac_ext | |
27658 | cat >>conftest.$ac_ext <<_ACEOF | |
27659 | /* end confdefs.h. */ | |
27660 | $ac_includes_default | |
27661 | #include <windows.h> | |
27662 | _ACEOF | |
27663 | rm -f conftest.$ac_objext | |
27664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27665 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27666 | ac_status=$? |
ac1cb8d3 VS |
27667 | grep -v '^ *+' conftest.er1 >conftest.err |
27668 | rm -f conftest.er1 | |
27669 | cat conftest.err >&5 | |
a848cd7e SC |
27670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27671 | (exit $ac_status); } && | |
bb9e79c0 | 27672 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27674 | (eval $ac_try) 2>&5 | |
27675 | ac_status=$? | |
27676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27677 | (exit $ac_status); }; } && | |
27678 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27680 | (eval $ac_try) 2>&5 | |
27681 | ac_status=$? | |
27682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27683 | (exit $ac_status); }; }; then | |
27684 | ac_header_compiler=yes | |
27685 | else | |
27686 | echo "$as_me: failed program was:" >&5 | |
27687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27688 | ||
27689 | ac_header_compiler=no | |
27690 | fi | |
ac1cb8d3 | 27691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27692 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27693 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27694 | ||
27695 | # Is the header present? | |
27696 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
27697 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
27698 | cat >conftest.$ac_ext <<_ACEOF | |
27699 | /* confdefs.h. */ | |
27700 | _ACEOF | |
27701 | cat confdefs.h >>conftest.$ac_ext | |
27702 | cat >>conftest.$ac_ext <<_ACEOF | |
27703 | /* end confdefs.h. */ | |
27704 | #include <windows.h> | |
27705 | _ACEOF | |
27706 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27707 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27708 | ac_status=$? | |
27709 | grep -v '^ *+' conftest.er1 >conftest.err | |
27710 | rm -f conftest.er1 | |
27711 | cat conftest.err >&5 | |
27712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27713 | (exit $ac_status); } >/dev/null; then | |
27714 | if test -s conftest.err; then | |
5d7b7554 VZ |
27715 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
27716 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
27717 | else |
27718 | ac_cpp_err= | |
27719 | fi | |
27720 | else | |
27721 | ac_cpp_err=yes | |
27722 | fi | |
27723 | if test -z "$ac_cpp_err"; then | |
27724 | ac_header_preproc=yes | |
27725 | else | |
27726 | echo "$as_me: failed program was:" >&5 | |
27727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27728 | ||
27729 | ac_header_preproc=no | |
27730 | fi | |
27731 | rm -f conftest.err conftest.$ac_ext | |
27732 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27733 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27734 | ||
27735 | # So? What about this header? | |
5d7b7554 | 27736 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 27737 | yes:no: ) |
a848cd7e SC |
27738 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27739 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27740 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
27741 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
27742 | ac_header_preproc=yes | |
a848cd7e | 27743 | ;; |
ac1cb8d3 | 27744 | no:yes:* ) |
a848cd7e SC |
27745 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
27746 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27747 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
27748 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
27749 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
27750 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
27751 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27752 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27753 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
27754 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27755 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
27756 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27757 | ( |
27758 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27759 | ## ----------------------------------------- ## |
27760 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27761 | ## ----------------------------------------- ## | |
a848cd7e SC |
27762 | _ASBOX |
27763 | ) | | |
27764 | sed "s/^/$as_me: WARNING: /" >&2 | |
27765 | ;; | |
27766 | esac | |
27767 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
27768 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
27769 | if test "${ac_cv_header_windows_h+set}" = set; then | |
27770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27771 | else | |
27772 | ac_cv_header_windows_h=$ac_header_preproc | |
27773 | fi | |
27774 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
27775 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
27776 | ||
27777 | fi | |
27778 | if test $ac_cv_header_windows_h = yes; then | |
27779 | : | |
27780 | else | |
27781 | ||
27782 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
27783 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
27784 | { (exit 1); exit 1; }; } | |
27785 | ||
27786 | fi | |
27787 | ||
27788 | ||
27789 | ||
27790 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
27791 | ||
27792 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
27793 | LIBS="$LIBS -loleacc" | |
27794 | fi | |
27795 | ||
27796 | case "${host}" in | |
27797 | *-*-cygwin* ) | |
27798 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
27799 | esac |
27800 | ||
27801 | if test "$wxUSE_ODBC" = "sys" ; then | |
27802 | wxUSE_ODBC = "yes" | |
27803 | fi | |
27804 | if test "$wxUSE_ODBC" = "yes" ; then | |
27805 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
27806 | cat >>confdefs.h <<\_ACEOF | |
27807 | #define wxUSE_ODBC 1 | |
27808 | _ACEOF | |
27809 | ||
27810 | fi | |
27811 | ||
370d2fd7 | 27812 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
a848cd7e SC |
27813 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
27814 | ||
004ee6da | 27815 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
370d2fd7 | 27816 | |
a848cd7e | 27817 | WIN32INSTALL=win32install |
5f41d1bf MW |
27818 | |
27819 | echo "$as_me:$LINENO: checking for boolean" >&5 | |
27820 | echo $ECHO_N "checking for boolean... $ECHO_C" >&6 | |
27821 | if test "${ac_cv_type_boolean+set}" = set; then | |
27822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27823 | else | |
27824 | cat >conftest.$ac_ext <<_ACEOF | |
27825 | /* confdefs.h. */ | |
27826 | _ACEOF | |
27827 | cat confdefs.h >>conftest.$ac_ext | |
27828 | cat >>conftest.$ac_ext <<_ACEOF | |
27829 | /* end confdefs.h. */ | |
27830 | #include <windows.h> | |
27831 | ||
27832 | int | |
27833 | main () | |
27834 | { | |
27835 | if ((boolean *) 0) | |
27836 | return 0; | |
27837 | if (sizeof (boolean)) | |
27838 | return 0; | |
27839 | ; | |
27840 | return 0; | |
27841 | } | |
27842 | _ACEOF | |
27843 | rm -f conftest.$ac_objext | |
27844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27845 | (eval $ac_compile) 2>conftest.er1 | |
27846 | ac_status=$? | |
27847 | grep -v '^ *+' conftest.er1 >conftest.err | |
27848 | rm -f conftest.er1 | |
27849 | cat conftest.err >&5 | |
27850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27851 | (exit $ac_status); } && | |
bb9e79c0 | 27852 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5f41d1bf MW |
27853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27854 | (eval $ac_try) 2>&5 | |
27855 | ac_status=$? | |
27856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27857 | (exit $ac_status); }; } && | |
27858 | { ac_try='test -s conftest.$ac_objext' | |
27859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27860 | (eval $ac_try) 2>&5 | |
27861 | ac_status=$? | |
27862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27863 | (exit $ac_status); }; }; then | |
27864 | ac_cv_type_boolean=yes | |
27865 | else | |
27866 | echo "$as_me: failed program was:" >&5 | |
27867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27868 | ||
27869 | ac_cv_type_boolean=no | |
27870 | fi | |
27871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27872 | fi | |
27873 | echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5 | |
27874 | echo "${ECHO_T}$ac_cv_type_boolean" >&6 | |
27875 | if test $ac_cv_type_boolean = yes; then | |
27876 | ||
27877 | cat >>confdefs.h <<_ACEOF | |
27878 | #define HAVE_BOOLEAN 1 | |
27879 | _ACEOF | |
27880 | ||
27881 | ||
27882 | fi | |
27883 | ||
dcfd4ac4 MW |
27884 | |
27885 | ||
27886 | for ac_header in pbt.h | |
27887 | do | |
27888 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27889 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27890 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27891 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27892 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27894 | fi | |
27895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27896 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27897 | else | |
27898 | # Is the header compilable? | |
27899 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
27900 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
27901 | cat >conftest.$ac_ext <<_ACEOF | |
27902 | /* confdefs.h. */ | |
27903 | _ACEOF | |
27904 | cat confdefs.h >>conftest.$ac_ext | |
27905 | cat >>conftest.$ac_ext <<_ACEOF | |
27906 | /* end confdefs.h. */ | |
27907 | $ac_includes_default | |
27908 | #include <$ac_header> | |
27909 | _ACEOF | |
27910 | rm -f conftest.$ac_objext | |
27911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27912 | (eval $ac_compile) 2>conftest.er1 | |
27913 | ac_status=$? | |
27914 | grep -v '^ *+' conftest.er1 >conftest.err | |
27915 | rm -f conftest.er1 | |
27916 | cat conftest.err >&5 | |
27917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27918 | (exit $ac_status); } && | |
bb9e79c0 | 27919 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
dcfd4ac4 MW |
27920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27921 | (eval $ac_try) 2>&5 | |
27922 | ac_status=$? | |
27923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27924 | (exit $ac_status); }; } && | |
27925 | { ac_try='test -s conftest.$ac_objext' | |
27926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27927 | (eval $ac_try) 2>&5 | |
27928 | ac_status=$? | |
27929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27930 | (exit $ac_status); }; }; then | |
27931 | ac_header_compiler=yes | |
27932 | else | |
27933 | echo "$as_me: failed program was:" >&5 | |
27934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27935 | ||
27936 | ac_header_compiler=no | |
27937 | fi | |
27938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27939 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
27940 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27941 | ||
27942 | # Is the header present? | |
27943 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
27944 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
27945 | cat >conftest.$ac_ext <<_ACEOF | |
27946 | /* confdefs.h. */ | |
27947 | _ACEOF | |
27948 | cat confdefs.h >>conftest.$ac_ext | |
27949 | cat >>conftest.$ac_ext <<_ACEOF | |
27950 | /* end confdefs.h. */ | |
27951 | #include <$ac_header> | |
27952 | _ACEOF | |
27953 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27954 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27955 | ac_status=$? | |
27956 | grep -v '^ *+' conftest.er1 >conftest.err | |
27957 | rm -f conftest.er1 | |
27958 | cat conftest.err >&5 | |
27959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27960 | (exit $ac_status); } >/dev/null; then | |
27961 | if test -s conftest.err; then | |
27962 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
27963 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
27964 | else | |
27965 | ac_cpp_err= | |
27966 | fi | |
27967 | else | |
27968 | ac_cpp_err=yes | |
27969 | fi | |
27970 | if test -z "$ac_cpp_err"; then | |
27971 | ac_header_preproc=yes | |
27972 | else | |
27973 | echo "$as_me: failed program was:" >&5 | |
27974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27975 | ||
27976 | ac_header_preproc=no | |
27977 | fi | |
27978 | rm -f conftest.err conftest.$ac_ext | |
27979 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27980 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27981 | ||
27982 | # So? What about this header? | |
27983 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
27984 | yes:no: ) | |
27985 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
27986 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
27987 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
27988 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
27989 | ac_header_preproc=yes | |
27990 | ;; | |
27991 | no:yes:* ) | |
27992 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
27993 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
27994 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
27995 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27996 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27997 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27998 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27999 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
28000 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28001 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
28002 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
28003 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
28004 | ( | |
28005 | cat <<\_ASBOX | |
28006 | ## ----------------------------------------- ## | |
28007 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
28008 | ## ----------------------------------------- ## | |
28009 | _ASBOX | |
28010 | ) | | |
28011 | sed "s/^/$as_me: WARNING: /" >&2 | |
28012 | ;; | |
28013 | esac | |
28014 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28015 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28016 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28018 | else | |
28019 | eval "$as_ac_Header=\$ac_header_preproc" | |
28020 | fi | |
28021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28022 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28023 | ||
28024 | fi | |
28025 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
28026 | cat >>confdefs.h <<_ACEOF | |
28027 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28028 | _ACEOF | |
28029 | ||
28030 | else | |
28031 | cat >>confdefs.h <<\_ACEOF | |
28032 | #define NEED_PBT_H 1 | |
28033 | _ACEOF | |
28034 | ||
28035 | fi | |
28036 | ||
28037 | done | |
28038 | ||
a848cd7e SC |
28039 | fi |
28040 | ||
28041 | if test "$wxUSE_GUI" = "yes"; then | |
28042 | USE_GUI=1 | |
28043 | ||
28044 | GUI_TK_LIBRARY= | |
28045 | ||
28046 | WXGTK12= | |
28047 | WXGTK127= | |
28048 | WXGTK20= | |
28049 | WXGPE= | |
28050 | ||
207bc66c RN |
28051 | if test "$wxUSE_COCOA" = 1 ; then |
28052 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
28053 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
28054 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
28055 | wxUSE_PRINTING_ARCHITECTURE=no | |
28056 | fi | |
28057 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
28058 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
28059 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
28060 | wxUSE_DRAG_AND_DROP=no | |
28061 | fi | |
28062 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
28063 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
28064 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
28065 | wxUSE_DRAGIMAGE=no | |
28066 | fi | |
28067 | fi | |
28068 | ||
a848cd7e SC |
28069 | if test "$wxUSE_MSW" = 1 ; then |
28070 | TOOLKIT=MSW | |
28071 | GUIDIST=MSW_DIST | |
28072 | ||
ceec2216 | 28073 | case "${host}" in |
a848cd7e SC |
28074 | *-*-mingw32* ) |
28075 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
28076 | esac | |
28077 | fi | |
28078 | ||
28079 | if test "$wxUSE_GTK" = 1; then | |
5d7b7554 VZ |
28080 | ac_ext=c |
28081 | ac_cpp='$CPP $CPPFLAGS' | |
28082 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28083 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28084 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28085 | ||
28086 | ||
a848cd7e SC |
28087 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
28088 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
28089 | ||
28090 | gtk_version_cached=1 | |
28091 | if test "${wx_cv_lib_gtk+set}" = set; then | |
28092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28093 | else | |
28094 | ||
28095 | gtk_version_cached=0 | |
28096 | echo "$as_me:$LINENO: result: " >&5 | |
28097 | echo "${ECHO_T}" >&6 | |
28098 | ||
28099 | GTK_MODULES= | |
28100 | if test "$wxUSE_THREADS" = "yes"; then | |
28101 | GTK_MODULES=gthread | |
28102 | fi | |
28103 | ||
f597b41c | 28104 | wx_cv_lib_gtk= |
5001df0d MW |
28105 | if test "x$wxGTK_VERSION" != "x1" |
28106 | then | |
28107 | case "${host}" in | |
28108 | *-*-solaris2* ) | |
28109 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
5ff751d6 | 28110 | enable_gtktest=no |
5001df0d MW |
28111 | fi |
28112 | esac | |
28113 | ||
a848cd7e SC |
28114 | # Check whether --enable-gtktest or --disable-gtktest was given. |
28115 | if test "${enable_gtktest+set}" = set; then | |
28116 | enableval="$enable_gtktest" | |
28117 | ||
28118 | else | |
28119 | enable_gtktest=yes | |
28120 | fi; | |
28121 | ||
28122 | pkg_config_args=gtk+-2.0 | |
28123 | for module in . $GTK_MODULES | |
28124 | do | |
28125 | case "$module" in | |
28126 | gthread) | |
28127 | pkg_config_args="$pkg_config_args gthread-2.0" | |
28128 | ;; | |
28129 | esac | |
28130 | done | |
28131 | ||
28132 | no_gtk="" | |
28133 | ||
28134 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28135 | set dummy pkg-config; ac_word=$2 | |
28136 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28138 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28140 | else | |
28141 | case $PKG_CONFIG in | |
28142 | [\\/]* | ?:[\\/]*) | |
28143 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28144 | ;; | |
28145 | *) | |
28146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28147 | for as_dir in $PATH | |
28148 | do | |
28149 | IFS=$as_save_IFS | |
28150 | test -z "$as_dir" && as_dir=. | |
28151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28152 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28153 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28155 | break 2 | |
28156 | fi | |
28157 | done | |
28158 | done | |
28159 | ||
28160 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28161 | ;; | |
28162 | esac | |
28163 | fi | |
28164 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28165 | ||
28166 | if test -n "$PKG_CONFIG"; then | |
28167 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28168 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28169 | else | |
28170 | echo "$as_me:$LINENO: result: no" >&5 | |
28171 | echo "${ECHO_T}no" >&6 | |
28172 | fi | |
28173 | ||
28174 | ||
28175 | if test x$PKG_CONFIG != xno ; then | |
28176 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
28177 | : | |
28178 | else | |
c2218763 | 28179 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
28180 | no_gtk=yes |
28181 | PKG_CONFIG=no | |
28182 | fi | |
28183 | else | |
28184 | no_gtk=yes | |
28185 | fi | |
28186 | ||
28187 | min_gtk_version=2.0.0 | |
28188 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
28189 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
28190 | ||
28191 | if test x$PKG_CONFIG != xno ; then | |
28192 | ## don't try to run the test against uninstalled libtool libs | |
28193 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
28194 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
28195 | enable_gtktest=no | |
28196 | fi | |
28197 | ||
28198 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
28199 | : | |
28200 | else | |
28201 | no_gtk=yes | |
28202 | fi | |
28203 | fi | |
28204 | ||
28205 | if test x"$no_gtk" = x ; then | |
28206 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
28207 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
28208 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
28209 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
28210 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
28211 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
28212 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
28213 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
28214 | if test "x$enable_gtktest" = "xyes" ; then | |
28215 | ac_save_CFLAGS="$CFLAGS" | |
28216 | ac_save_LIBS="$LIBS" | |
28217 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
28218 | LIBS="$GTK_LIBS $LIBS" | |
28219 | rm -f conf.gtktest | |
28220 | if test "$cross_compiling" = yes; then | |
28221 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
28222 | else | |
28223 | cat >conftest.$ac_ext <<_ACEOF | |
28224 | /* confdefs.h. */ | |
28225 | _ACEOF | |
28226 | cat confdefs.h >>conftest.$ac_ext | |
28227 | cat >>conftest.$ac_ext <<_ACEOF | |
28228 | /* end confdefs.h. */ | |
28229 | ||
28230 | #include <gtk/gtk.h> | |
28231 | #include <stdio.h> | |
28232 | #include <stdlib.h> | |
28233 | ||
28234 | int | |
28235 | main () | |
28236 | { | |
28237 | int major, minor, micro; | |
28238 | char *tmp_version; | |
28239 | ||
28240 | system ("touch conf.gtktest"); | |
28241 | ||
28242 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
28243 | tmp_version = g_strdup("$min_gtk_version"); | |
28244 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
28245 | printf("%s, bad version string\n", "$min_gtk_version"); | |
28246 | exit(1); | |
28247 | } | |
28248 | ||
28249 | if ((gtk_major_version != $gtk_config_major_version) || | |
28250 | (gtk_minor_version != $gtk_config_minor_version) || | |
28251 | (gtk_micro_version != $gtk_config_micro_version)) | |
28252 | { | |
28253 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
28254 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
28255 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
28256 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
28257 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
28258 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
28259 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
28260 | printf("*** required on your system.\n"); | |
28261 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
28262 | printf("*** to point to the correct configuration files\n"); | |
28263 | } | |
28264 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
28265 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
28266 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
28267 | { | |
28268 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
28269 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
28270 | printf("*** library (version %d.%d.%d)\n", | |
28271 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
28272 | } | |
28273 | else | |
28274 | { | |
28275 | if ((gtk_major_version > major) || | |
28276 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
28277 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
28278 | { | |
28279 | return 0; | |
28280 | } | |
28281 | else | |
28282 | { | |
28283 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
28284 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
28285 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
28286 | major, minor, micro); | |
28287 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
28288 | printf("***\n"); | |
28289 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
28290 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
28291 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
28292 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
28293 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
28294 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
28295 | printf("*** so that the correct libraries are found at run-time))\n"); | |
28296 | } | |
28297 | } | |
28298 | return 1; | |
28299 | } | |
28300 | ||
28301 | _ACEOF | |
28302 | rm -f conftest$ac_exeext | |
28303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28304 | (eval $ac_link) 2>&5 | |
28305 | ac_status=$? | |
28306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28307 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
28308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28309 | (eval $ac_try) 2>&5 | |
28310 | ac_status=$? | |
28311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28312 | (exit $ac_status); }; }; then | |
28313 | : | |
28314 | else | |
28315 | echo "$as_me: program exited with status $ac_status" >&5 | |
28316 | echo "$as_me: failed program was:" >&5 | |
28317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28318 | ||
28319 | ( exit $ac_status ) | |
28320 | no_gtk=yes | |
28321 | fi | |
ac1cb8d3 | 28322 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28323 | fi |
28324 | CFLAGS="$ac_save_CFLAGS" | |
28325 | LIBS="$ac_save_LIBS" | |
28326 | fi | |
28327 | fi | |
28328 | if test "x$no_gtk" = x ; then | |
28329 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
28330 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
28331 | wx_cv_lib_gtk=2.0 | |
28332 | else | |
28333 | echo "$as_me:$LINENO: result: no" >&5 | |
28334 | echo "${ECHO_T}no" >&6 | |
28335 | if test "$PKG_CONFIG" = "no" ; then | |
28336 | echo "*** A new enough version of pkg-config was not found." | |
28337 | echo "*** See http://pkgconfig.sourceforge.net" | |
28338 | else | |
28339 | if test -f conf.gtktest ; then | |
28340 | : | |
28341 | else | |
28342 | echo "*** Could not run GTK+ test program, checking why..." | |
28343 | ac_save_CFLAGS="$CFLAGS" | |
28344 | ac_save_LIBS="$LIBS" | |
28345 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
28346 | LIBS="$LIBS $GTK_LIBS" | |
28347 | cat >conftest.$ac_ext <<_ACEOF | |
28348 | /* confdefs.h. */ | |
28349 | _ACEOF | |
28350 | cat confdefs.h >>conftest.$ac_ext | |
28351 | cat >>conftest.$ac_ext <<_ACEOF | |
28352 | /* end confdefs.h. */ | |
28353 | ||
28354 | #include <gtk/gtk.h> | |
28355 | #include <stdio.h> | |
28356 | ||
28357 | int | |
28358 | main () | |
28359 | { | |
28360 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
28361 | ; | |
28362 | return 0; | |
28363 | } | |
28364 | _ACEOF | |
28365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28367 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28368 | ac_status=$? |
ac1cb8d3 VS |
28369 | grep -v '^ *+' conftest.er1 >conftest.err |
28370 | rm -f conftest.er1 | |
28371 | cat conftest.err >&5 | |
a848cd7e SC |
28372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28373 | (exit $ac_status); } && | |
bb9e79c0 | 28374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28376 | (eval $ac_try) 2>&5 | |
28377 | ac_status=$? | |
28378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28379 | (exit $ac_status); }; } && | |
28380 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28382 | (eval $ac_try) 2>&5 | |
28383 | ac_status=$? | |
28384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28385 | (exit $ac_status); }; }; then | |
28386 | echo "*** The test program compiled, but did not run. This usually means" | |
28387 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
28388 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
28389 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
28390 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
28391 | echo "*** is required on your system" | |
28392 | echo "***" | |
28393 | echo "*** If you have an old version installed, it is best to remove it, although" | |
28394 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
28395 | else | |
28396 | echo "$as_me: failed program was:" >&5 | |
28397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28398 | ||
28399 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
28400 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
28401 | fi | |
ac1cb8d3 VS |
28402 | rm -f conftest.err conftest.$ac_objext \ |
28403 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28404 | CFLAGS="$ac_save_CFLAGS" |
28405 | LIBS="$ac_save_LIBS" | |
28406 | fi | |
28407 | fi | |
28408 | GTK_CFLAGS="" | |
28409 | GTK_LIBS="" | |
28410 | : | |
28411 | fi | |
28412 | ||
28413 | ||
28414 | rm -f conf.gtktest | |
28415 | ||
5001df0d MW |
28416 | |
28417 | case "${host}" in | |
28418 | *-*-solaris2* ) | |
28419 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
28420 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
28421 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
28422 | fi | |
28423 | if test "$wxUSE_SHARED" != "yes"; then | |
28424 | GTK_LIBS="$GTK_LIBS -lX11" | |
28425 | fi | |
28426 | esac | |
f597b41c MW |
28427 | fi |
28428 | ||
f34ca037 MW |
28429 | if test -z "$wx_cv_lib_gtk"; then |
28430 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
28431 | |
28432 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
28433 | if test "${with_gtk_prefix+set}" = set; then | |
28434 | withval="$with_gtk_prefix" | |
28435 | gtk_config_prefix="$withval" | |
28436 | else | |
28437 | gtk_config_prefix="" | |
28438 | fi; | |
28439 | ||
28440 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
28441 | if test "${with_gtk_exec_prefix+set}" = set; then | |
28442 | withval="$with_gtk_exec_prefix" | |
28443 | gtk_config_exec_prefix="$withval" | |
28444 | else | |
28445 | gtk_config_exec_prefix="" | |
28446 | fi; | |
28447 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
28448 | if test "${enable_gtktest+set}" = set; then | |
28449 | enableval="$enable_gtktest" | |
28450 | ||
28451 | else | |
28452 | enable_gtktest=yes | |
28453 | fi; | |
28454 | ||
28455 | for module in . $GTK_MODULES | |
28456 | do | |
28457 | case "$module" in | |
28458 | gthread) | |
28459 | gtk_config_args="$gtk_config_args gthread" | |
28460 | ;; | |
28461 | esac | |
28462 | done | |
28463 | ||
28464 | if test x$gtk_config_exec_prefix != x ; then | |
28465 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
28466 | if test x${GTK_CONFIG+set} != xset ; then | |
28467 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
28468 | fi | |
28469 | fi | |
28470 | if test x$gtk_config_prefix != x ; then | |
28471 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
28472 | if test x${GTK_CONFIG+set} != xset ; then | |
28473 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
28474 | fi | |
28475 | fi | |
28476 | ||
28477 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
28478 | set dummy gtk-config; ac_word=$2 | |
28479 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28481 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
28482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28483 | else | |
28484 | case $GTK_CONFIG in | |
28485 | [\\/]* | ?:[\\/]*) | |
28486 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
28487 | ;; | |
28488 | *) | |
28489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28490 | for as_dir in $PATH | |
28491 | do | |
28492 | IFS=$as_save_IFS | |
28493 | test -z "$as_dir" && as_dir=. | |
28494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28496 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28498 | break 2 | |
28499 | fi | |
28500 | done | |
28501 | done | |
28502 | ||
28503 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
28504 | ;; | |
28505 | esac | |
28506 | fi | |
28507 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
28508 | ||
28509 | if test -n "$GTK_CONFIG"; then | |
28510 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
28511 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
28512 | else | |
28513 | echo "$as_me:$LINENO: result: no" >&5 | |
28514 | echo "${ECHO_T}no" >&6 | |
28515 | fi | |
28516 | ||
28517 | min_gtk_version=1.2.7 | |
28518 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
28519 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
28520 | no_gtk="" | |
28521 | if test "$GTK_CONFIG" = "no" ; then | |
28522 | no_gtk=yes | |
28523 | else | |
28524 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
28525 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
28526 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
28527 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
28528 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
28529 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
28530 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
28531 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
28532 | if test "x$enable_gtktest" = "xyes" ; then | |
28533 | ac_save_CFLAGS="$CFLAGS" | |
28534 | ac_save_LIBS="$LIBS" | |
28535 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
28536 | LIBS="$GTK_LIBS $LIBS" | |
28537 | rm -f conf.gtktest | |
28538 | if test "$cross_compiling" = yes; then | |
28539 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
28540 | else | |
28541 | cat >conftest.$ac_ext <<_ACEOF | |
28542 | /* confdefs.h. */ | |
28543 | _ACEOF | |
28544 | cat confdefs.h >>conftest.$ac_ext | |
28545 | cat >>conftest.$ac_ext <<_ACEOF | |
28546 | /* end confdefs.h. */ | |
28547 | ||
28548 | #include <gtk/gtk.h> | |
28549 | #include <stdio.h> | |
28550 | #include <stdlib.h> | |
28551 | ||
28552 | int | |
28553 | main () | |
28554 | { | |
28555 | int major, minor, micro; | |
28556 | char *tmp_version; | |
28557 | ||
28558 | system ("touch conf.gtktest"); | |
28559 | ||
28560 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
28561 | tmp_version = g_strdup("$min_gtk_version"); | |
28562 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
28563 | printf("%s, bad version string\n", "$min_gtk_version"); | |
28564 | exit(1); | |
28565 | } | |
28566 | ||
28567 | if ((gtk_major_version != $gtk_config_major_version) || | |
28568 | (gtk_minor_version != $gtk_config_minor_version) || | |
28569 | (gtk_micro_version != $gtk_config_micro_version)) | |
28570 | { | |
28571 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
28572 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
28573 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
28574 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
28575 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
28576 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
28577 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
28578 | printf("*** required on your system.\n"); | |
28579 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
28580 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
28581 | printf("*** before re-running configure\n"); | |
28582 | } | |
28583 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
28584 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
28585 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
28586 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
28587 | { | |
28588 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
28589 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
28590 | printf("*** library (version %d.%d.%d)\n", | |
28591 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
28592 | } | |
28593 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
28594 | else | |
28595 | { | |
28596 | if ((gtk_major_version > major) || | |
28597 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
28598 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
28599 | { | |
28600 | return 0; | |
28601 | } | |
28602 | else | |
28603 | { | |
28604 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
28605 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
28606 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
28607 | major, minor, micro); | |
28608 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
28609 | printf("***\n"); | |
28610 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
28611 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
28612 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
28613 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
28614 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
28615 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
28616 | printf("*** so that the correct libraries are found at run-time))\n"); | |
28617 | } | |
28618 | } | |
28619 | return 1; | |
28620 | } | |
28621 | ||
28622 | _ACEOF | |
28623 | rm -f conftest$ac_exeext | |
28624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28625 | (eval $ac_link) 2>&5 | |
28626 | ac_status=$? | |
28627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28628 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
28629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28630 | (eval $ac_try) 2>&5 | |
28631 | ac_status=$? | |
28632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28633 | (exit $ac_status); }; }; then | |
28634 | : | |
28635 | else | |
28636 | echo "$as_me: program exited with status $ac_status" >&5 | |
28637 | echo "$as_me: failed program was:" >&5 | |
28638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28639 | ||
28640 | ( exit $ac_status ) | |
28641 | no_gtk=yes | |
28642 | fi | |
ac1cb8d3 | 28643 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28644 | fi |
28645 | CFLAGS="$ac_save_CFLAGS" | |
28646 | LIBS="$ac_save_LIBS" | |
28647 | fi | |
28648 | fi | |
28649 | if test "x$no_gtk" = x ; then | |
28650 | echo "$as_me:$LINENO: result: yes" >&5 | |
28651 | echo "${ECHO_T}yes" >&6 | |
28652 | wx_cv_lib_gtk=1.2.7 | |
28653 | else | |
28654 | echo "$as_me:$LINENO: result: no" >&5 | |
28655 | echo "${ECHO_T}no" >&6 | |
28656 | if test "$GTK_CONFIG" = "no" ; then | |
28657 | echo "*** The gtk-config script installed by GTK could not be found" | |
28658 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
28659 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
28660 | echo "*** full path to gtk-config." | |
28661 | else | |
28662 | if test -f conf.gtktest ; then | |
28663 | : | |
28664 | else | |
28665 | echo "*** Could not run GTK test program, checking why..." | |
28666 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
28667 | LIBS="$LIBS $GTK_LIBS" | |
28668 | cat >conftest.$ac_ext <<_ACEOF | |
28669 | /* confdefs.h. */ | |
28670 | _ACEOF | |
28671 | cat confdefs.h >>conftest.$ac_ext | |
28672 | cat >>conftest.$ac_ext <<_ACEOF | |
28673 | /* end confdefs.h. */ | |
28674 | ||
28675 | #include <gtk/gtk.h> | |
28676 | #include <stdio.h> | |
28677 | ||
28678 | int | |
28679 | main () | |
28680 | { | |
28681 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
28682 | ; | |
28683 | return 0; | |
28684 | } | |
28685 | _ACEOF | |
28686 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28688 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28689 | ac_status=$? |
ac1cb8d3 VS |
28690 | grep -v '^ *+' conftest.er1 >conftest.err |
28691 | rm -f conftest.er1 | |
28692 | cat conftest.err >&5 | |
a848cd7e SC |
28693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28694 | (exit $ac_status); } && | |
bb9e79c0 | 28695 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28697 | (eval $ac_try) 2>&5 | |
28698 | ac_status=$? | |
28699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28700 | (exit $ac_status); }; } && | |
28701 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28703 | (eval $ac_try) 2>&5 | |
28704 | ac_status=$? | |
28705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28706 | (exit $ac_status); }; }; then | |
28707 | echo "*** The test program compiled, but did not run. This usually means" | |
28708 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
28709 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
28710 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
28711 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
28712 | echo "*** is required on your system" | |
28713 | echo "***" | |
28714 | echo "*** If you have an old version installed, it is best to remove it, although" | |
28715 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
28716 | echo "***" | |
28717 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
28718 | echo "*** came with the system with the command" | |
28719 | echo "***" | |
28720 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
28721 | else | |
28722 | echo "$as_me: failed program was:" >&5 | |
28723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28724 | ||
28725 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
28726 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
28727 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
28728 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
28729 | fi | |
ac1cb8d3 VS |
28730 | rm -f conftest.err conftest.$ac_objext \ |
28731 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28732 | CFLAGS="$ac_save_CFLAGS" |
28733 | LIBS="$ac_save_LIBS" | |
28734 | fi | |
28735 | fi | |
28736 | GTK_CFLAGS="" | |
28737 | GTK_LIBS="" | |
28738 | : | |
28739 | fi | |
28740 | ||
28741 | ||
28742 | rm -f conf.gtktest | |
28743 | ||
28744 | ||
f34ca037 | 28745 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
28746 | |
28747 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
28748 | if test "${with_gtk_prefix+set}" = set; then | |
28749 | withval="$with_gtk_prefix" | |
28750 | gtk_config_prefix="$withval" | |
28751 | else | |
28752 | gtk_config_prefix="" | |
28753 | fi; | |
28754 | ||
28755 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
28756 | if test "${with_gtk_exec_prefix+set}" = set; then | |
28757 | withval="$with_gtk_exec_prefix" | |
28758 | gtk_config_exec_prefix="$withval" | |
28759 | else | |
28760 | gtk_config_exec_prefix="" | |
28761 | fi; | |
28762 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
28763 | if test "${enable_gtktest+set}" = set; then | |
28764 | enableval="$enable_gtktest" | |
28765 | ||
28766 | else | |
28767 | enable_gtktest=yes | |
28768 | fi; | |
28769 | ||
28770 | for module in . $GTK_MODULES | |
28771 | do | |
28772 | case "$module" in | |
28773 | gthread) | |
28774 | gtk_config_args="$gtk_config_args gthread" | |
28775 | ;; | |
28776 | esac | |
28777 | done | |
28778 | ||
28779 | if test x$gtk_config_exec_prefix != x ; then | |
28780 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
28781 | if test x${GTK_CONFIG+set} != xset ; then | |
28782 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
28783 | fi | |
28784 | fi | |
28785 | if test x$gtk_config_prefix != x ; then | |
28786 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
28787 | if test x${GTK_CONFIG+set} != xset ; then | |
28788 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
28789 | fi | |
28790 | fi | |
28791 | ||
28792 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
28793 | set dummy gtk-config; ac_word=$2 | |
28794 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28796 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
28797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28798 | else | |
28799 | case $GTK_CONFIG in | |
28800 | [\\/]* | ?:[\\/]*) | |
28801 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
28802 | ;; | |
28803 | *) | |
28804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28805 | for as_dir in $PATH | |
28806 | do | |
28807 | IFS=$as_save_IFS | |
28808 | test -z "$as_dir" && as_dir=. | |
28809 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28810 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28811 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28812 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28813 | break 2 | |
28814 | fi | |
28815 | done | |
28816 | done | |
28817 | ||
28818 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
28819 | ;; | |
28820 | esac | |
28821 | fi | |
28822 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
28823 | ||
28824 | if test -n "$GTK_CONFIG"; then | |
28825 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
28826 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
28827 | else | |
28828 | echo "$as_me:$LINENO: result: no" >&5 | |
28829 | echo "${ECHO_T}no" >&6 | |
28830 | fi | |
28831 | ||
28832 | min_gtk_version=1.2.3 | |
28833 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
28834 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
28835 | no_gtk="" | |
28836 | if test "$GTK_CONFIG" = "no" ; then | |
28837 | no_gtk=yes | |
28838 | else | |
28839 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
28840 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
28841 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
28842 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
28843 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
28844 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
28845 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
28846 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
28847 | if test "x$enable_gtktest" = "xyes" ; then | |
28848 | ac_save_CFLAGS="$CFLAGS" | |
28849 | ac_save_LIBS="$LIBS" | |
28850 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
28851 | LIBS="$GTK_LIBS $LIBS" | |
28852 | rm -f conf.gtktest | |
28853 | if test "$cross_compiling" = yes; then | |
28854 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
28855 | else | |
28856 | cat >conftest.$ac_ext <<_ACEOF | |
28857 | /* confdefs.h. */ | |
28858 | _ACEOF | |
28859 | cat confdefs.h >>conftest.$ac_ext | |
28860 | cat >>conftest.$ac_ext <<_ACEOF | |
28861 | /* end confdefs.h. */ | |
28862 | ||
28863 | #include <gtk/gtk.h> | |
28864 | #include <stdio.h> | |
28865 | #include <stdlib.h> | |
28866 | ||
28867 | int | |
28868 | main () | |
28869 | { | |
28870 | int major, minor, micro; | |
28871 | char *tmp_version; | |
28872 | ||
28873 | system ("touch conf.gtktest"); | |
28874 | ||
28875 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
28876 | tmp_version = g_strdup("$min_gtk_version"); | |
28877 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
28878 | printf("%s, bad version string\n", "$min_gtk_version"); | |
28879 | exit(1); | |
28880 | } | |
28881 | ||
28882 | if ((gtk_major_version != $gtk_config_major_version) || | |
28883 | (gtk_minor_version != $gtk_config_minor_version) || | |
28884 | (gtk_micro_version != $gtk_config_micro_version)) | |
28885 | { | |
28886 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
28887 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
28888 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
28889 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
28890 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
28891 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
28892 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
28893 | printf("*** required on your system.\n"); | |
28894 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
28895 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
28896 | printf("*** before re-running configure\n"); | |
28897 | } | |
28898 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
28899 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
28900 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
28901 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
28902 | { | |
28903 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
28904 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
28905 | printf("*** library (version %d.%d.%d)\n", | |
28906 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
28907 | } | |
28908 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
28909 | else | |
28910 | { | |
28911 | if ((gtk_major_version > major) || | |
28912 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
28913 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
28914 | { | |
28915 | return 0; | |
28916 | } | |
28917 | else | |
28918 | { | |
28919 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
28920 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
28921 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
28922 | major, minor, micro); | |
28923 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
28924 | printf("***\n"); | |
28925 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
28926 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
28927 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
28928 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
28929 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
28930 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
28931 | printf("*** so that the correct libraries are found at run-time))\n"); | |
28932 | } | |
28933 | } | |
28934 | return 1; | |
28935 | } | |
28936 | ||
28937 | _ACEOF | |
28938 | rm -f conftest$ac_exeext | |
28939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28940 | (eval $ac_link) 2>&5 | |
28941 | ac_status=$? | |
28942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28943 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
28944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28945 | (eval $ac_try) 2>&5 | |
28946 | ac_status=$? | |
28947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28948 | (exit $ac_status); }; }; then | |
28949 | : | |
28950 | else | |
28951 | echo "$as_me: program exited with status $ac_status" >&5 | |
28952 | echo "$as_me: failed program was:" >&5 | |
28953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28954 | ||
28955 | ( exit $ac_status ) | |
28956 | no_gtk=yes | |
28957 | fi | |
ac1cb8d3 | 28958 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28959 | fi |
28960 | CFLAGS="$ac_save_CFLAGS" | |
28961 | LIBS="$ac_save_LIBS" | |
28962 | fi | |
28963 | fi | |
28964 | if test "x$no_gtk" = x ; then | |
28965 | echo "$as_me:$LINENO: result: yes" >&5 | |
28966 | echo "${ECHO_T}yes" >&6 | |
28967 | wx_cv_lib_gtk=1.2.3 | |
28968 | else | |
28969 | echo "$as_me:$LINENO: result: no" >&5 | |
28970 | echo "${ECHO_T}no" >&6 | |
28971 | if test "$GTK_CONFIG" = "no" ; then | |
28972 | echo "*** The gtk-config script installed by GTK could not be found" | |
28973 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
28974 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
28975 | echo "*** full path to gtk-config." | |
28976 | else | |
28977 | if test -f conf.gtktest ; then | |
28978 | : | |
28979 | else | |
28980 | echo "*** Could not run GTK test program, checking why..." | |
28981 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
28982 | LIBS="$LIBS $GTK_LIBS" | |
28983 | cat >conftest.$ac_ext <<_ACEOF | |
28984 | /* confdefs.h. */ | |
28985 | _ACEOF | |
28986 | cat confdefs.h >>conftest.$ac_ext | |
28987 | cat >>conftest.$ac_ext <<_ACEOF | |
28988 | /* end confdefs.h. */ | |
28989 | ||
28990 | #include <gtk/gtk.h> | |
28991 | #include <stdio.h> | |
28992 | ||
28993 | int | |
28994 | main () | |
28995 | { | |
28996 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
28997 | ; | |
28998 | return 0; | |
28999 | } | |
29000 | _ACEOF | |
29001 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29003 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29004 | ac_status=$? |
ac1cb8d3 VS |
29005 | grep -v '^ *+' conftest.er1 >conftest.err |
29006 | rm -f conftest.er1 | |
29007 | cat conftest.err >&5 | |
a848cd7e SC |
29008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29009 | (exit $ac_status); } && | |
bb9e79c0 | 29010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29012 | (eval $ac_try) 2>&5 | |
29013 | ac_status=$? | |
29014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29015 | (exit $ac_status); }; } && | |
29016 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29018 | (eval $ac_try) 2>&5 | |
29019 | ac_status=$? | |
29020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29021 | (exit $ac_status); }; }; then | |
29022 | echo "*** The test program compiled, but did not run. This usually means" | |
29023 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
29024 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
29025 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
29026 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
29027 | echo "*** is required on your system" | |
29028 | echo "***" | |
29029 | echo "*** If you have an old version installed, it is best to remove it, although" | |
29030 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
29031 | echo "***" | |
29032 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
29033 | echo "*** came with the system with the command" | |
29034 | echo "***" | |
29035 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
29036 | else | |
29037 | echo "$as_me: failed program was:" >&5 | |
29038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29039 | ||
29040 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
29041 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
29042 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
29043 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
29044 | fi | |
ac1cb8d3 VS |
29045 | rm -f conftest.err conftest.$ac_objext \ |
29046 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29047 | CFLAGS="$ac_save_CFLAGS" |
29048 | LIBS="$ac_save_LIBS" | |
29049 | fi | |
29050 | fi | |
29051 | GTK_CFLAGS="" | |
29052 | GTK_LIBS="" | |
29053 | : | |
29054 | fi | |
29055 | ||
29056 | ||
29057 | rm -f conf.gtktest | |
29058 | ||
f34ca037 | 29059 | fi |
a848cd7e SC |
29060 | fi |
29061 | fi | |
29062 | ||
29063 | if test -z "$wx_cv_lib_gtk"; then | |
29064 | wx_cv_lib_gtk=none | |
29065 | else | |
29066 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 29067 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
29068 | fi |
29069 | ||
29070 | ||
29071 | fi | |
29072 | ||
29073 | ||
29074 | if test "$gtk_version_cached" = 1; then | |
29075 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
29076 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
29077 | fi | |
29078 | ||
29079 | case "$wx_cv_lib_gtk" in | |
29080 | 2.0) WXGTK20=1 | |
29081 | TOOLKIT_VERSION=2 | |
29082 | ;; | |
29083 | 1.2.7) WXGTK127=1 | |
29084 | WXGTK12=1 | |
29085 | ;; | |
29086 | 1.2.3) WXGTK12=1 | |
29087 | ;; | |
29088 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
29089 | The development files for GTK+ were not found. For GTK+ 2, please |
29090 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
29091 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
29092 | and that the version is 1.2.3 or above. Also check that the | |
29093 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
29094 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
29095 | " >&5 |
29096 | echo "$as_me: error: | |
f597b41c MW |
29097 | The development files for GTK+ were not found. For GTK+ 2, please |
29098 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
29099 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
29100 | and that the version is 1.2.3 or above. Also check that the | |
29101 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
29102 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
29103 | " >&2;} |
29104 | { (exit 1); exit 1; }; } | |
29105 | ;; | |
29106 | esac | |
29107 | ||
29108 | if test "$WXGTK20" = 1; then | |
6954625c | 29109 | save_CFLAGS="$CFLAGS" |
304205f1 | 29110 | save_LIBS="$LIBS" |
6954625c | 29111 | CFLAGS="$wx_cv_cflags_gtk $CFLAGS" |
abc736fd | 29112 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 29113 | |
58e65954 MW |
29114 | echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5 |
29115 | echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6 | |
29116 | if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then | |
29117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29118 | else | |
29119 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
29120 | /* confdefs.h. */ |
29121 | _ACEOF | |
29122 | cat confdefs.h >>conftest.$ac_ext | |
29123 | cat >>conftest.$ac_ext <<_ACEOF | |
29124 | /* end confdefs.h. */ | |
58e65954 | 29125 | #include <gtk/gtk.h> |
304205f1 | 29126 | |
d12aef51 VZ |
29127 | int |
29128 | main () | |
29129 | { | |
58e65954 MW |
29130 | #ifndef gtk_icon_size_lookup |
29131 | char *p = (char *) gtk_icon_size_lookup; | |
29132 | #endif | |
abc736fd MW |
29133 | |
29134 | ; | |
29135 | return 0; | |
29136 | } | |
29137 | _ACEOF | |
29138 | rm -f conftest.$ac_objext | |
29139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29140 | (eval $ac_compile) 2>conftest.er1 | |
29141 | ac_status=$? | |
29142 | grep -v '^ *+' conftest.er1 >conftest.err | |
29143 | rm -f conftest.er1 | |
29144 | cat conftest.err >&5 | |
29145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29146 | (exit $ac_status); } && | |
bb9e79c0 | 29147 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
29148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29149 | (eval $ac_try) 2>&5 | |
29150 | ac_status=$? | |
29151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29152 | (exit $ac_status); }; } && | |
29153 | { ac_try='test -s conftest.$ac_objext' | |
29154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29155 | (eval $ac_try) 2>&5 | |
29156 | ac_status=$? | |
29157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29158 | (exit $ac_status); }; }; then | |
58e65954 | 29159 | ac_cv_have_decl_gtk_icon_size_lookup=yes |
abc736fd MW |
29160 | else |
29161 | echo "$as_me: failed program was:" >&5 | |
29162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29163 | ||
58e65954 MW |
29164 | ac_cv_have_decl_gtk_icon_size_lookup=no |
29165 | fi | |
29166 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29167 | fi | |
29168 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5 | |
29169 | echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6 | |
29170 | if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then | |
abc736fd | 29171 | |
58e65954 MW |
29172 | cat >>confdefs.h <<_ACEOF |
29173 | #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1 | |
abc736fd MW |
29174 | _ACEOF |
29175 | ||
58e65954 MW |
29176 | |
29177 | else | |
29178 | cat >>confdefs.h <<_ACEOF | |
29179 | #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0 | |
29180 | _ACEOF | |
29181 | ||
29182 | cat >>confdefs.h <<\_ACEOF | |
29183 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
29184 | _ACEOF | |
abc736fd MW |
29185 | |
29186 | fi | |
58e65954 MW |
29187 | |
29188 | ||
abc736fd | 29189 | |
e9263684 VZ |
29190 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5 |
29191 | echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6 | |
29192 | cat >conftest.$ac_ext <<_ACEOF | |
29193 | /* confdefs.h. */ | |
29194 | _ACEOF | |
29195 | cat confdefs.h >>conftest.$ac_ext | |
29196 | cat >>conftest.$ac_ext <<_ACEOF | |
29197 | /* end confdefs.h. */ | |
29198 | ||
29199 | #include <gtk/gtk.h> | |
29200 | ||
29201 | int | |
29202 | main () | |
29203 | { | |
29204 | ||
29205 | #if !GTK_CHECK_VERSION(2,6,0) | |
29206 | Not GTK+ 2.6 | |
29207 | #endif | |
29208 | ||
29209 | ; | |
29210 | return 0; | |
29211 | } | |
29212 | _ACEOF | |
29213 | rm -f conftest.$ac_objext | |
29214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29215 | (eval $ac_compile) 2>conftest.er1 | |
29216 | ac_status=$? | |
29217 | grep -v '^ *+' conftest.er1 >conftest.err | |
29218 | rm -f conftest.er1 | |
29219 | cat conftest.err >&5 | |
29220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29221 | (exit $ac_status); } && | |
bb9e79c0 | 29222 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e9263684 VZ |
29223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29224 | (eval $ac_try) 2>&5 | |
29225 | ac_status=$? | |
29226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29227 | (exit $ac_status); }; } && | |
29228 | { ac_try='test -s conftest.$ac_objext' | |
29229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29230 | (eval $ac_try) 2>&5 | |
29231 | ac_status=$? | |
29232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29233 | (exit $ac_status); }; }; then | |
29234 | ||
29235 | cat >>confdefs.h <<\_ACEOF | |
29236 | #define __WXGTK26__ 1 | |
29237 | _ACEOF | |
29238 | ||
29239 | cat >>confdefs.h <<\_ACEOF | |
29240 | #define __WXGTK24__ 1 | |
29241 | _ACEOF | |
29242 | ||
29243 | echo "$as_me:$LINENO: result: yes" >&5 | |
29244 | echo "${ECHO_T}yes" >&6 | |
29245 | ac_wxgtk26=1 | |
29246 | ||
29247 | else | |
29248 | echo "$as_me: failed program was:" >&5 | |
29249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29250 | ||
29251 | ||
29252 | echo "$as_me:$LINENO: result: no" >&5 | |
29253 | echo "${ECHO_T}no" >&6 | |
29254 | ac_wxgtk26=0 | |
29255 | ||
29256 | fi | |
29257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29258 | ||
29259 | if test "$ac_wxgtk26" = 0; then | |
9755e73b VS |
29260 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
29261 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
29262 | cat >conftest.$ac_ext <<_ACEOF | |
29263 | /* confdefs.h. */ | |
29264 | _ACEOF | |
29265 | cat confdefs.h >>conftest.$ac_ext | |
29266 | cat >>conftest.$ac_ext <<_ACEOF | |
29267 | /* end confdefs.h. */ | |
29268 | ||
29269 | #include <gtk/gtk.h> | |
29270 | ||
29271 | int | |
29272 | main () | |
29273 | { | |
29274 | ||
29275 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 29276 | Not GTK+ 2.4 |
9755e73b VS |
29277 | #endif |
29278 | ||
29279 | ; | |
29280 | return 0; | |
29281 | } | |
29282 | _ACEOF | |
29283 | rm -f conftest.$ac_objext | |
29284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29285 | (eval $ac_compile) 2>conftest.er1 | |
29286 | ac_status=$? | |
29287 | grep -v '^ *+' conftest.er1 >conftest.err | |
29288 | rm -f conftest.er1 | |
29289 | cat conftest.err >&5 | |
29290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29291 | (exit $ac_status); } && | |
bb9e79c0 | 29292 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
29293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29294 | (eval $ac_try) 2>&5 | |
29295 | ac_status=$? | |
29296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29297 | (exit $ac_status); }; } && | |
29298 | { ac_try='test -s conftest.$ac_objext' | |
29299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29300 | (eval $ac_try) 2>&5 | |
29301 | ac_status=$? | |
29302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29303 | (exit $ac_status); }; }; then | |
29304 | ||
29305 | cat >>confdefs.h <<\_ACEOF | |
29306 | #define __WXGTK24__ 1 | |
29307 | _ACEOF | |
29308 | ||
29309 | echo "$as_me:$LINENO: result: yes" >&5 | |
29310 | echo "${ECHO_T}yes" >&6 | |
29311 | ||
29312 | else | |
29313 | echo "$as_me: failed program was:" >&5 | |
29314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29315 | ||
29316 | ||
29317 | echo "$as_me:$LINENO: result: no" >&5 | |
29318 | echo "${ECHO_T}no" >&6 | |
29319 | ||
29320 | fi | |
29321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
e9263684 | 29322 | fi |
9755e73b | 29323 | |
6954625c | 29324 | CFLAGS="$save_CFLAGS" |
304205f1 | 29325 | LIBS="$save_LIBS" |
a848cd7e SC |
29326 | else |
29327 | if test "$wxUSE_UNICODE" = "yes"; then | |
29328 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
29329 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
29330 | wxUSE_UNICODE=no | |
29331 | fi | |
64b75e64 RD |
29332 | |
29333 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
29334 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
29335 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
29336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29337 | else | |
29338 | ac_check_lib_save_LIBS=$LIBS | |
29339 | LIBS="-lgdk $LIBS" | |
29340 | cat >conftest.$ac_ext <<_ACEOF | |
29341 | /* confdefs.h. */ | |
29342 | _ACEOF | |
29343 | cat confdefs.h >>conftest.$ac_ext | |
29344 | cat >>conftest.$ac_ext <<_ACEOF | |
29345 | /* end confdefs.h. */ | |
29346 | ||
29347 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29348 | #ifdef __cplusplus | |
29349 | extern "C" | |
29350 | #endif | |
29351 | /* We use char because int might match the return type of a gcc2 | |
29352 | builtin and then its argument prototype would still apply. */ | |
29353 | char gdk_im_open (); | |
29354 | int | |
29355 | main () | |
29356 | { | |
29357 | gdk_im_open (); | |
29358 | ; | |
29359 | return 0; | |
29360 | } | |
29361 | _ACEOF | |
29362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29364 | (eval $ac_link) 2>conftest.er1 | |
29365 | ac_status=$? | |
29366 | grep -v '^ *+' conftest.er1 >conftest.err | |
29367 | rm -f conftest.er1 | |
29368 | cat conftest.err >&5 | |
29369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29370 | (exit $ac_status); } && | |
bb9e79c0 | 29371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
64b75e64 RD |
29372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29373 | (eval $ac_try) 2>&5 | |
29374 | ac_status=$? | |
29375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29376 | (exit $ac_status); }; } && | |
29377 | { ac_try='test -s conftest$ac_exeext' | |
29378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29379 | (eval $ac_try) 2>&5 | |
29380 | ac_status=$? | |
29381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29382 | (exit $ac_status); }; }; then | |
29383 | ac_cv_lib_gdk_gdk_im_open=yes | |
29384 | else | |
29385 | echo "$as_me: failed program was:" >&5 | |
29386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29387 | ||
29388 | ac_cv_lib_gdk_gdk_im_open=no | |
29389 | fi | |
29390 | rm -f conftest.err conftest.$ac_objext \ | |
29391 | conftest$ac_exeext conftest.$ac_ext | |
29392 | LIBS=$ac_check_lib_save_LIBS | |
29393 | fi | |
29394 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
29395 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
29396 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
29397 | cat >>confdefs.h <<\_ACEOF | |
29398 | #define HAVE_XIM 1 | |
29399 | _ACEOF | |
29400 | ||
29401 | fi | |
29402 | ||
a848cd7e SC |
29403 | fi |
29404 | ||
e56f4f9e VZ |
29405 | ac_ext=cc |
29406 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29407 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29408 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29409 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29410 | ||
29411 | ||
a848cd7e SC |
29412 | if test "$USE_DARWIN" != 1; then |
29413 | ||
29414 | for ac_func in poll | |
29415 | do | |
29416 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29417 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29418 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29419 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29421 | else | |
29422 | cat >conftest.$ac_ext <<_ACEOF | |
29423 | /* confdefs.h. */ | |
29424 | _ACEOF | |
29425 | cat confdefs.h >>conftest.$ac_ext | |
29426 | cat >>conftest.$ac_ext <<_ACEOF | |
29427 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29428 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29429 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29430 | #define $ac_func innocuous_$ac_func | |
29431 | ||
a848cd7e SC |
29432 | /* System header to define __stub macros and hopefully few prototypes, |
29433 | which can conflict with char $ac_func (); below. | |
29434 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29435 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29436 | |
a848cd7e SC |
29437 | #ifdef __STDC__ |
29438 | # include <limits.h> | |
29439 | #else | |
29440 | # include <assert.h> | |
29441 | #endif | |
ac1cb8d3 VS |
29442 | |
29443 | #undef $ac_func | |
29444 | ||
a848cd7e SC |
29445 | /* Override any gcc2 internal prototype to avoid an error. */ |
29446 | #ifdef __cplusplus | |
29447 | extern "C" | |
29448 | { | |
29449 | #endif | |
29450 | /* We use char because int might match the return type of a gcc2 | |
29451 | builtin and then its argument prototype would still apply. */ | |
29452 | char $ac_func (); | |
29453 | /* The GNU C library defines this for functions which it implements | |
29454 | to always fail with ENOSYS. Some functions are actually named | |
29455 | something starting with __ and the normal name is an alias. */ | |
29456 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29457 | choke me | |
29458 | #else | |
29459 | char (*f) () = $ac_func; | |
29460 | #endif | |
29461 | #ifdef __cplusplus | |
29462 | } | |
29463 | #endif | |
29464 | ||
29465 | int | |
29466 | main () | |
29467 | { | |
29468 | return f != $ac_func; | |
29469 | ; | |
29470 | return 0; | |
29471 | } | |
29472 | _ACEOF | |
29473 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29475 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29476 | ac_status=$? |
ac1cb8d3 VS |
29477 | grep -v '^ *+' conftest.er1 >conftest.err |
29478 | rm -f conftest.er1 | |
29479 | cat conftest.err >&5 | |
a848cd7e SC |
29480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29481 | (exit $ac_status); } && | |
bb9e79c0 | 29482 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29484 | (eval $ac_try) 2>&5 | |
29485 | ac_status=$? | |
29486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29487 | (exit $ac_status); }; } && | |
29488 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29490 | (eval $ac_try) 2>&5 | |
29491 | ac_status=$? | |
29492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29493 | (exit $ac_status); }; }; then | |
29494 | eval "$as_ac_var=yes" | |
29495 | else | |
29496 | echo "$as_me: failed program was:" >&5 | |
29497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29498 | ||
29499 | eval "$as_ac_var=no" | |
29500 | fi | |
ac1cb8d3 VS |
29501 | rm -f conftest.err conftest.$ac_objext \ |
29502 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29503 | fi |
29504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29505 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29506 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29507 | cat >>confdefs.h <<_ACEOF | |
29508 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29509 | _ACEOF | |
29510 | ||
29511 | fi | |
29512 | done | |
29513 | ||
29514 | fi | |
29515 | ||
29516 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
29517 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
29518 | ||
29519 | AFMINSTALL=afminstall | |
29520 | TOOLKIT=GTK | |
29521 | GUIDIST=GTK_DIST | |
29522 | ||
a848cd7e SC |
29523 | if test "$wxUSE_GPE" = "yes"; then |
29524 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
29525 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
29526 | ||
0ad5d837 VZ |
29527 | ac_find_libraries= |
29528 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 29529 | do |
3eca31dc | 29530 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
29531 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
29532 | ac_find_libraries=$ac_dir | |
29533 | break 2 | |
29534 | fi | |
29535 | done | |
29536 | done | |
29537 | ||
29538 | if test "$ac_find_libraries" != "" ; then | |
29539 | ||
0ad5d837 | 29540 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
29541 | ac_path_to_link="" |
29542 | else | |
0ad5d837 VZ |
29543 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
29544 | result=$? | |
29545 | if test $result = 0; then | |
29546 | ac_path_to_link="" | |
29547 | else | |
29548 | ac_path_to_link=" -L$ac_find_libraries" | |
29549 | fi | |
a848cd7e SC |
29550 | fi |
29551 | ||
29552 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
29553 | WXGPE=1 | |
0ad5d837 VZ |
29554 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
29555 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
29556 | else |
29557 | echo "$as_me:$LINENO: result: not found" >&5 | |
29558 | echo "${ECHO_T}not found" >&6 | |
29559 | fi | |
29560 | ||
29561 | fi | |
29562 | fi | |
29563 | ||
29564 | if test "$wxUSE_MGL" = 1; then | |
29565 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
29566 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
29567 | if test "x$MGL_ROOT" = x ; then | |
29568 | echo "$as_me:$LINENO: result: not found" >&5 | |
29569 | echo "${ECHO_T}not found" >&6 | |
29570 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
29571 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
29572 | { (exit 1); exit 1; }; } | |
29573 | else | |
29574 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
29575 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
29576 | fi | |
29577 | ||
29578 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
29579 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
29580 | case "${host}" in | |
29581 | *-*-linux* ) | |
29582 | if test "x$wxUSE_SHARED" = xyes ; then | |
29583 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
29584 | else | |
29585 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
29586 | fi | |
29587 | ;; | |
29588 | *-pc-msdosdjgpp ) | |
29589 | mgl_os_candidates="dos32/dj2" | |
29590 | ;; | |
29591 | *) | |
29592 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
29593 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
29594 | { (exit 1); exit 1; }; } | |
29595 | esac | |
29596 | ||
29597 | mgl_lib_type="" | |
29598 | mgl_os="" | |
29599 | ||
29600 | for mgl_os_i in $mgl_os_candidates ; do | |
29601 | if test "x$mgl_os" = x ; then | |
29602 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
29603 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
29604 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
29605 | mgl_lib_type=debug | |
29606 | mgl_os=$mgl_os_i | |
29607 | fi | |
29608 | fi | |
29609 | if test "x$mgl_lib_type" = x ; then | |
29610 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
29611 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
29612 | mgl_lib_type=release | |
29613 | mgl_os=$mgl_os_i | |
29614 | fi | |
29615 | fi | |
29616 | fi | |
29617 | done | |
29618 | ||
29619 | if test "x$mgl_os" = x ; then | |
29620 | echo "$as_me:$LINENO: result: not found" >&5 | |
29621 | echo "${ECHO_T}not found" >&6 | |
29622 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
29623 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
29624 | { (exit 1); exit 1; }; } | |
29625 | fi | |
29626 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
29627 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
29628 | ||
29629 | wxUSE_UNIVERSAL="yes" | |
29630 | ||
29631 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
29632 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
29633 | ||
29634 | AFMINSTALL=afminstall | |
29635 | TOOLKIT=MGL | |
29636 | GUIDIST=MGL_DIST | |
29637 | fi | |
29638 | ||
b3c86150 VS |
29639 | if test "$wxUSE_DFB" = 1; then |
29640 | ||
29641 | ||
29642 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
29643 | if test -n "$ac_tool_prefix"; then | |
29644 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
29645 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
29646 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29648 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29650 | else | |
29651 | case $PKG_CONFIG in | |
29652 | [\\/]* | ?:[\\/]*) | |
29653 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29654 | ;; | |
29655 | *) | |
29656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29657 | for as_dir in $PATH | |
29658 | do | |
29659 | IFS=$as_save_IFS | |
29660 | test -z "$as_dir" && as_dir=. | |
29661 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29662 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29663 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29664 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29665 | break 2 | |
29666 | fi | |
29667 | done | |
29668 | done | |
29669 | ||
29670 | ;; | |
29671 | esac | |
29672 | fi | |
29673 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29674 | ||
29675 | if test -n "$PKG_CONFIG"; then | |
29676 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29677 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29678 | else | |
29679 | echo "$as_me:$LINENO: result: no" >&5 | |
29680 | echo "${ECHO_T}no" >&6 | |
29681 | fi | |
29682 | ||
29683 | fi | |
29684 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
29685 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
29686 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29687 | set dummy pkg-config; ac_word=$2 | |
29688 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29689 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29690 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
29691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29692 | else | |
29693 | case $ac_pt_PKG_CONFIG in | |
29694 | [\\/]* | ?:[\\/]*) | |
29695 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
29696 | ;; | |
29697 | *) | |
29698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29699 | for as_dir in $PATH | |
29700 | do | |
29701 | IFS=$as_save_IFS | |
29702 | test -z "$as_dir" && as_dir=. | |
29703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29705 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29707 | break 2 | |
29708 | fi | |
29709 | done | |
29710 | done | |
29711 | ||
29712 | ;; | |
29713 | esac | |
29714 | fi | |
29715 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
29716 | ||
29717 | if test -n "$ac_pt_PKG_CONFIG"; then | |
29718 | echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
29719 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 | |
29720 | else | |
29721 | echo "$as_me:$LINENO: result: no" >&5 | |
29722 | echo "${ECHO_T}no" >&6 | |
29723 | fi | |
29724 | ||
29725 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
29726 | else | |
29727 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
29728 | fi | |
29729 | ||
29730 | fi | |
29731 | if test -n "$PKG_CONFIG"; then | |
29732 | _pkg_min_version=0.9.0 | |
29733 | echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
29734 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 | |
29735 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
29736 | echo "$as_me:$LINENO: result: yes" >&5 | |
29737 | echo "${ECHO_T}yes" >&6 | |
29738 | else | |
29739 | echo "$as_me:$LINENO: result: no" >&5 | |
29740 | echo "${ECHO_T}no" >&6 | |
29741 | PKG_CONFIG="" | |
29742 | fi | |
29743 | ||
29744 | fi | |
29745 | ||
479c790c | 29746 | |
b3c86150 VS |
29747 | pkg_failed=no |
29748 | echo "$as_me:$LINENO: checking for DIRECTFB" >&5 | |
29749 | echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6 | |
29750 | ||
29751 | if test -n "$PKG_CONFIG"; then | |
29752 | if test -n "$DIRECTFB_CFLAGS"; then | |
29753 | pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS" | |
29754 | else | |
29755 | if test -n "$PKG_CONFIG" && \ | |
737d3175 VZ |
29756 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5 |
29757 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5 | |
b3c86150 VS |
29758 | ac_status=$? |
29759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29760 | (exit $ac_status); }; then | |
737d3175 | 29761 | pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null` |
b3c86150 VS |
29762 | else |
29763 | pkg_failed=yes | |
29764 | fi | |
29765 | fi | |
29766 | else | |
29767 | pkg_failed=untried | |
29768 | fi | |
29769 | if test -n "$PKG_CONFIG"; then | |
29770 | if test -n "$DIRECTFB_LIBS"; then | |
29771 | pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS" | |
29772 | else | |
29773 | if test -n "$PKG_CONFIG" && \ | |
737d3175 VZ |
29774 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5 |
29775 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5 | |
b3c86150 VS |
29776 | ac_status=$? |
29777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29778 | (exit $ac_status); }; then | |
737d3175 | 29779 | pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null` |
b3c86150 VS |
29780 | else |
29781 | pkg_failed=yes | |
29782 | fi | |
29783 | fi | |
29784 | else | |
29785 | pkg_failed=untried | |
29786 | fi | |
29787 | ||
29788 | ||
29789 | ||
29790 | if test $pkg_failed = yes; then | |
29791 | ||
29792 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
29793 | _pkg_short_errors_supported=yes | |
29794 | else | |
29795 | _pkg_short_errors_supported=no | |
29796 | fi | |
29797 | if test $_pkg_short_errors_supported = yes; then | |
737d3175 | 29798 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"` |
b3c86150 | 29799 | else |
737d3175 | 29800 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"` |
b3c86150 VS |
29801 | fi |
29802 | # Put the nasty error message in config.log where it belongs | |
29803 | echo "$DIRECTFB_PKG_ERRORS" >&5 | |
29804 | ||
29805 | ||
29806 | { { echo "$as_me:$LINENO: error: DirectFB not found." >&5 | |
29807 | echo "$as_me: error: DirectFB not found." >&2;} | |
29808 | { (exit 1); exit 1; }; } | |
29809 | ||
29810 | ||
29811 | elif test $pkg_failed = untried; then | |
29812 | ||
29813 | { { echo "$as_me:$LINENO: error: DirectFB not found." >&5 | |
29814 | echo "$as_me: error: DirectFB not found." >&2;} | |
29815 | { (exit 1); exit 1; }; } | |
29816 | ||
29817 | ||
29818 | else | |
29819 | DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS | |
29820 | DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS | |
29821 | echo "$as_me:$LINENO: result: yes" >&5 | |
29822 | echo "${ECHO_T}yes" >&6 | |
29823 | ||
29824 | wxUSE_UNIVERSAL="yes" | |
29825 | TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS" | |
29826 | GUI_TK_LIBRARY="$DIRECTFB_LIBS" | |
29827 | TOOLKIT=DFB | |
29828 | GUIDIST=DFB_DIST | |
29829 | ||
29830 | fi | |
29831 | fi | |
29832 | ||
a848cd7e SC |
29833 | if test "$wxUSE_MICROWIN" = 1; then |
29834 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
29835 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
29836 | if test "x$MICROWINDOWS" = x ; then | |
29837 | echo "$as_me:$LINENO: result: not found" >&5 | |
29838 | echo "${ECHO_T}not found" >&6 | |
29839 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
29840 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
29841 | { (exit 1); exit 1; }; } | |
29842 | else | |
29843 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
29844 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
29845 | fi | |
29846 | ||
29847 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
29848 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
29849 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
29850 | else | |
29851 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
29852 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
29853 | { (exit 1); exit 1; }; } | |
29854 | fi | |
29855 | ||
29856 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
29857 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
29858 | ||
29859 | wxUSE_UNIVERSAL="yes" | |
29860 | ||
29861 | AFMINSTALL=afminstall | |
29862 | TOOLKIT=MICROWIN | |
29863 | GUIDIST=MICROWIN_DIST | |
29864 | ||
29865 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
29866 | fi | |
29867 | ||
74b84332 | 29868 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
bb9e79c0 VZ |
29869 | |
29870 | if test "x$ac_path_x_has_been_run" != xyes; then | |
29871 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
29872 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
29873 | ||
bb9e79c0 | 29874 | ac_path_x_has_been_run=yes |
a848cd7e SC |
29875 | |
29876 | # Check whether --with-x or --without-x was given. | |
29877 | if test "${with_x+set}" = set; then | |
29878 | withval="$with_x" | |
29879 | ||
29880 | fi; | |
29881 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
29882 | if test "x$with_x" = xno; then | |
29883 | # The user explicitly disabled X. | |
29884 | have_x=disabled | |
29885 | else | |
29886 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
29887 | # Both variables are already set. | |
29888 | have_x=yes | |
29889 | else | |
29890 | if test "${ac_cv_have_x+set}" = set; then | |
29891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29892 | else | |
29893 | # One or both of the vars are not set, and there is no cached value. | |
29894 | ac_x_includes=no ac_x_libraries=no | |
29895 | rm -fr conftest.dir | |
29896 | if mkdir conftest.dir; then | |
29897 | cd conftest.dir | |
29898 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
29899 | cat >Imakefile <<'_ACEOF' | |
29900 | acfindx: | |
29901 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
29902 | _ACEOF | |
29903 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
29904 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
29905 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
29906 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
29907 | for ac_extension in a so sl; do | |
29908 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
29909 | test -f $ac_im_libdir/libX11.$ac_extension; then |
29910 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
29911 | fi |
29912 | done | |
29913 | # Screen out bogus values from the imake configuration. They are | |
29914 | # bogus both because they are the default anyway, and because | |
29915 | # using them would break gcc on systems where it needs fixed includes. | |
29916 | case $ac_im_incroot in | |
29917 | /usr/include) ;; | |
29918 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
29919 | esac | |
29920 | case $ac_im_usrlibdir in | |
29921 | /usr/lib | /lib) ;; | |
29922 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
29923 | esac | |
29924 | fi | |
29925 | cd .. | |
29926 | rm -fr conftest.dir | |
29927 | fi | |
29928 | ||
29929 | # Standard set of common directories for X headers. | |
29930 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
29931 | ac_x_header_dirs=' | |
29932 | /usr/X11/include | |
29933 | /usr/X11R6/include | |
29934 | /usr/X11R5/include | |
29935 | /usr/X11R4/include | |
29936 | ||
29937 | /usr/include/X11 | |
29938 | /usr/include/X11R6 | |
29939 | /usr/include/X11R5 | |
29940 | /usr/include/X11R4 | |
29941 | ||
29942 | /usr/local/X11/include | |
29943 | /usr/local/X11R6/include | |
29944 | /usr/local/X11R5/include | |
29945 | /usr/local/X11R4/include | |
29946 | ||
29947 | /usr/local/include/X11 | |
29948 | /usr/local/include/X11R6 | |
29949 | /usr/local/include/X11R5 | |
29950 | /usr/local/include/X11R4 | |
29951 | ||
29952 | /usr/X386/include | |
29953 | /usr/x386/include | |
29954 | /usr/XFree86/include/X11 | |
29955 | ||
29956 | /usr/include | |
29957 | /usr/local/include | |
29958 | /usr/unsupported/include | |
29959 | /usr/athena/include | |
29960 | /usr/local/x11r5/include | |
29961 | /usr/lpp/Xamples/include | |
29962 | ||
29963 | /usr/openwin/include | |
29964 | /usr/openwin/share/include' | |
29965 | ||
29966 | if test "$ac_x_includes" = no; then | |
bb9e79c0 | 29967 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
29968 | # First, try using that file with no special directory specified. |
29969 | cat >conftest.$ac_ext <<_ACEOF | |
29970 | /* confdefs.h. */ | |
29971 | _ACEOF | |
29972 | cat confdefs.h >>conftest.$ac_ext | |
29973 | cat >>conftest.$ac_ext <<_ACEOF | |
29974 | /* end confdefs.h. */ | |
02b05020 | 29975 | #include <X11/Xlib.h> |
a848cd7e SC |
29976 | _ACEOF |
29977 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29978 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29979 | ac_status=$? | |
29980 | grep -v '^ *+' conftest.er1 >conftest.err | |
29981 | rm -f conftest.er1 | |
29982 | cat conftest.err >&5 | |
29983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29984 | (exit $ac_status); } >/dev/null; then | |
29985 | if test -s conftest.err; then | |
5d7b7554 VZ |
29986 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
29987 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
29988 | else |
29989 | ac_cpp_err= | |
29990 | fi | |
29991 | else | |
29992 | ac_cpp_err=yes | |
29993 | fi | |
29994 | if test -z "$ac_cpp_err"; then | |
29995 | # We can compile using X headers with no special include directory. | |
29996 | ac_x_includes= | |
29997 | else | |
29998 | echo "$as_me: failed program was:" >&5 | |
29999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30000 | ||
30001 | for ac_dir in $ac_x_header_dirs; do | |
02b05020 | 30002 | if test -r "$ac_dir/X11/Xlib.h"; then |
a848cd7e SC |
30003 | ac_x_includes=$ac_dir |
30004 | break | |
30005 | fi | |
30006 | done | |
30007 | fi | |
30008 | rm -f conftest.err conftest.$ac_ext | |
30009 | fi # $ac_x_includes = no | |
30010 | ||
30011 | if test "$ac_x_libraries" = no; then | |
30012 | # Check for the libraries. | |
30013 | # See if we find them without any special options. | |
30014 | # Don't add to $LIBS permanently. | |
30015 | ac_save_LIBS=$LIBS | |
02b05020 | 30016 | LIBS="-lX11 $LIBS" |
a848cd7e SC |
30017 | cat >conftest.$ac_ext <<_ACEOF |
30018 | /* confdefs.h. */ | |
30019 | _ACEOF | |
30020 | cat confdefs.h >>conftest.$ac_ext | |
30021 | cat >>conftest.$ac_ext <<_ACEOF | |
30022 | /* end confdefs.h. */ | |
02b05020 | 30023 | #include <X11/Xlib.h> |
a848cd7e SC |
30024 | int |
30025 | main () | |
30026 | { | |
02b05020 | 30027 | XrmInitialize () |
a848cd7e SC |
30028 | ; |
30029 | return 0; | |
30030 | } | |
30031 | _ACEOF | |
30032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30034 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30035 | ac_status=$? |
ac1cb8d3 VS |
30036 | grep -v '^ *+' conftest.er1 >conftest.err |
30037 | rm -f conftest.er1 | |
30038 | cat conftest.err >&5 | |
a848cd7e SC |
30039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30040 | (exit $ac_status); } && | |
bb9e79c0 | 30041 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30043 | (eval $ac_try) 2>&5 | |
30044 | ac_status=$? | |
30045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30046 | (exit $ac_status); }; } && | |
30047 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30049 | (eval $ac_try) 2>&5 | |
30050 | ac_status=$? | |
30051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30052 | (exit $ac_status); }; }; then | |
30053 | LIBS=$ac_save_LIBS | |
30054 | # We can link X programs with no special library path. | |
30055 | ac_x_libraries= | |
30056 | else | |
30057 | echo "$as_me: failed program was:" >&5 | |
30058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30059 | ||
30060 | LIBS=$ac_save_LIBS | |
30061 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
30062 | do | |
30063 | # Don't even attempt the hair of trying to link an X program! | |
30064 | for ac_extension in a so sl; do | |
02b05020 | 30065 | if test -r $ac_dir/libX11.$ac_extension; then |
a848cd7e SC |
30066 | ac_x_libraries=$ac_dir |
30067 | break 2 | |
30068 | fi | |
30069 | done | |
30070 | done | |
30071 | fi | |
ac1cb8d3 VS |
30072 | rm -f conftest.err conftest.$ac_objext \ |
30073 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30074 | fi # $ac_x_libraries = no |
30075 | ||
30076 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
30077 | # Didn't find X anywhere. Cache the known absence of X. | |
30078 | ac_cv_have_x="have_x=no" | |
30079 | else | |
30080 | # Record where we found X for the cache. | |
30081 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 30082 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
30083 | fi |
30084 | fi | |
30085 | ||
30086 | fi | |
30087 | eval "$ac_cv_have_x" | |
30088 | fi # $with_x != no | |
30089 | ||
30090 | if test "$have_x" != yes; then | |
30091 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
30092 | echo "${ECHO_T}$have_x" >&6 | |
30093 | no_x=yes | |
30094 | else | |
30095 | # If each of the values was on the command line, it overrides each guess. | |
30096 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
30097 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
30098 | # Update the cache value to reflect the command line values. | |
30099 | ac_cv_have_x="have_x=yes \ | |
30100 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
bb9e79c0 VZ |
30101 | # It might be that x_includes is empty (headers are found in the |
30102 | # standard search path. Then output the corresponding message | |
30103 | ac_out_x_includes=$x_includes | |
30104 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
30105 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
30106 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
30107 | fi |
30108 | ||
bb9e79c0 | 30109 | fi |
a848cd7e SC |
30110 | if test "$no_x" = yes; then |
30111 | # Not all programs may use this symbol, but it does not hurt to define it. | |
30112 | ||
30113 | cat >>confdefs.h <<\_ACEOF | |
30114 | #define X_DISPLAY_MISSING 1 | |
30115 | _ACEOF | |
30116 | ||
30117 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
30118 | else | |
30119 | if test -n "$x_includes"; then | |
30120 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
30121 | fi | |
30122 | ||
30123 | # It would also be nice to do this for all -L options, not just this one. | |
30124 | if test -n "$x_libraries"; then | |
30125 | X_LIBS="$X_LIBS -L$x_libraries" | |
30126 | # For Solaris; some versions of Sun CC require a space after -R and | |
30127 | # others require no space. Words are not sufficient . . . . | |
30128 | case `(uname -sr) 2>/dev/null` in | |
30129 | "SunOS 5"*) | |
30130 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
30131 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
30132 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
30133 | cat >conftest.$ac_ext <<_ACEOF | |
30134 | /* confdefs.h. */ | |
30135 | _ACEOF | |
30136 | cat confdefs.h >>conftest.$ac_ext | |
30137 | cat >>conftest.$ac_ext <<_ACEOF | |
30138 | /* end confdefs.h. */ | |
30139 | ||
30140 | int | |
30141 | main () | |
30142 | { | |
30143 | ||
30144 | ; | |
30145 | return 0; | |
30146 | } | |
30147 | _ACEOF | |
30148 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30150 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30151 | ac_status=$? |
ac1cb8d3 VS |
30152 | grep -v '^ *+' conftest.er1 >conftest.err |
30153 | rm -f conftest.er1 | |
30154 | cat conftest.err >&5 | |
a848cd7e SC |
30155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30156 | (exit $ac_status); } && | |
bb9e79c0 | 30157 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30159 | (eval $ac_try) 2>&5 | |
30160 | ac_status=$? | |
30161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30162 | (exit $ac_status); }; } && | |
30163 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30165 | (eval $ac_try) 2>&5 | |
30166 | ac_status=$? | |
30167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30168 | (exit $ac_status); }; }; then | |
30169 | ac_R_nospace=yes | |
30170 | else | |
30171 | echo "$as_me: failed program was:" >&5 | |
30172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30173 | ||
30174 | ac_R_nospace=no | |
30175 | fi | |
ac1cb8d3 VS |
30176 | rm -f conftest.err conftest.$ac_objext \ |
30177 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30178 | if test $ac_R_nospace = yes; then |
30179 | echo "$as_me:$LINENO: result: no" >&5 | |
30180 | echo "${ECHO_T}no" >&6 | |
30181 | X_LIBS="$X_LIBS -R$x_libraries" | |
30182 | else | |
30183 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
30184 | cat >conftest.$ac_ext <<_ACEOF | |
30185 | /* confdefs.h. */ | |
30186 | _ACEOF | |
30187 | cat confdefs.h >>conftest.$ac_ext | |
30188 | cat >>conftest.$ac_ext <<_ACEOF | |
30189 | /* end confdefs.h. */ | |
30190 | ||
30191 | int | |
30192 | main () | |
30193 | { | |
30194 | ||
30195 | ; | |
30196 | return 0; | |
30197 | } | |
30198 | _ACEOF | |
30199 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30201 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30202 | ac_status=$? |
ac1cb8d3 VS |
30203 | grep -v '^ *+' conftest.er1 >conftest.err |
30204 | rm -f conftest.er1 | |
30205 | cat conftest.err >&5 | |
a848cd7e SC |
30206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30207 | (exit $ac_status); } && | |
bb9e79c0 | 30208 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30210 | (eval $ac_try) 2>&5 | |
30211 | ac_status=$? | |
30212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30213 | (exit $ac_status); }; } && | |
30214 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30216 | (eval $ac_try) 2>&5 | |
30217 | ac_status=$? | |
30218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30219 | (exit $ac_status); }; }; then | |
30220 | ac_R_space=yes | |
30221 | else | |
30222 | echo "$as_me: failed program was:" >&5 | |
30223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30224 | ||
30225 | ac_R_space=no | |
30226 | fi | |
ac1cb8d3 VS |
30227 | rm -f conftest.err conftest.$ac_objext \ |
30228 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30229 | if test $ac_R_space = yes; then |
30230 | echo "$as_me:$LINENO: result: yes" >&5 | |
30231 | echo "${ECHO_T}yes" >&6 | |
30232 | X_LIBS="$X_LIBS -R $x_libraries" | |
30233 | else | |
30234 | echo "$as_me:$LINENO: result: neither works" >&5 | |
30235 | echo "${ECHO_T}neither works" >&6 | |
30236 | fi | |
30237 | fi | |
30238 | LIBS=$ac_xsave_LIBS | |
30239 | esac | |
30240 | fi | |
30241 | ||
30242 | # Check for system-dependent libraries X programs must link with. | |
30243 | # Do this before checking for the system-independent R6 libraries | |
30244 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
30245 | ||
30246 | if test "$ISC" = yes; then | |
30247 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
30248 | else | |
30249 | # Martyn Johnson says this is needed for Ultrix, if the X | |
30250 | # libraries were built with DECnet support. And Karl Berry says | |
30251 | # the Alpha needs dnet_stub (dnet does not exist). | |
30252 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
30253 | cat >conftest.$ac_ext <<_ACEOF | |
30254 | /* confdefs.h. */ | |
30255 | _ACEOF | |
30256 | cat confdefs.h >>conftest.$ac_ext | |
30257 | cat >>conftest.$ac_ext <<_ACEOF | |
30258 | /* end confdefs.h. */ | |
30259 | ||
30260 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30261 | #ifdef __cplusplus | |
30262 | extern "C" | |
30263 | #endif | |
30264 | /* We use char because int might match the return type of a gcc2 | |
30265 | builtin and then its argument prototype would still apply. */ | |
30266 | char XOpenDisplay (); | |
30267 | int | |
30268 | main () | |
30269 | { | |
30270 | XOpenDisplay (); | |
30271 | ; | |
30272 | return 0; | |
30273 | } | |
30274 | _ACEOF | |
30275 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30277 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30278 | ac_status=$? |
ac1cb8d3 VS |
30279 | grep -v '^ *+' conftest.er1 >conftest.err |
30280 | rm -f conftest.er1 | |
30281 | cat conftest.err >&5 | |
a848cd7e SC |
30282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30283 | (exit $ac_status); } && | |
bb9e79c0 | 30284 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30286 | (eval $ac_try) 2>&5 | |
30287 | ac_status=$? | |
30288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30289 | (exit $ac_status); }; } && | |
30290 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30292 | (eval $ac_try) 2>&5 | |
30293 | ac_status=$? | |
30294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30295 | (exit $ac_status); }; }; then | |
30296 | : | |
30297 | else | |
30298 | echo "$as_me: failed program was:" >&5 | |
30299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30300 | ||
30301 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
30302 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
30303 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
30304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30305 | else | |
30306 | ac_check_lib_save_LIBS=$LIBS | |
30307 | LIBS="-ldnet $LIBS" | |
30308 | cat >conftest.$ac_ext <<_ACEOF | |
30309 | /* confdefs.h. */ | |
30310 | _ACEOF | |
30311 | cat confdefs.h >>conftest.$ac_ext | |
30312 | cat >>conftest.$ac_ext <<_ACEOF | |
30313 | /* end confdefs.h. */ | |
30314 | ||
30315 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30316 | #ifdef __cplusplus | |
30317 | extern "C" | |
30318 | #endif | |
30319 | /* We use char because int might match the return type of a gcc2 | |
30320 | builtin and then its argument prototype would still apply. */ | |
30321 | char dnet_ntoa (); | |
30322 | int | |
30323 | main () | |
30324 | { | |
30325 | dnet_ntoa (); | |
30326 | ; | |
30327 | return 0; | |
30328 | } | |
30329 | _ACEOF | |
30330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30332 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30333 | ac_status=$? |
ac1cb8d3 VS |
30334 | grep -v '^ *+' conftest.er1 >conftest.err |
30335 | rm -f conftest.er1 | |
30336 | cat conftest.err >&5 | |
a848cd7e SC |
30337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30338 | (exit $ac_status); } && | |
bb9e79c0 | 30339 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30341 | (eval $ac_try) 2>&5 | |
30342 | ac_status=$? | |
30343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30344 | (exit $ac_status); }; } && | |
30345 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30347 | (eval $ac_try) 2>&5 | |
30348 | ac_status=$? | |
30349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30350 | (exit $ac_status); }; }; then | |
30351 | ac_cv_lib_dnet_dnet_ntoa=yes | |
30352 | else | |
30353 | echo "$as_me: failed program was:" >&5 | |
30354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30355 | ||
30356 | ac_cv_lib_dnet_dnet_ntoa=no | |
30357 | fi | |
ac1cb8d3 VS |
30358 | rm -f conftest.err conftest.$ac_objext \ |
30359 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30360 | LIBS=$ac_check_lib_save_LIBS |
30361 | fi | |
30362 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
30363 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
30364 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
30365 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
30366 | fi | |
30367 | ||
30368 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
30369 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
30370 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
30371 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
30372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30373 | else | |
30374 | ac_check_lib_save_LIBS=$LIBS | |
30375 | LIBS="-ldnet_stub $LIBS" | |
30376 | cat >conftest.$ac_ext <<_ACEOF | |
30377 | /* confdefs.h. */ | |
30378 | _ACEOF | |
30379 | cat confdefs.h >>conftest.$ac_ext | |
30380 | cat >>conftest.$ac_ext <<_ACEOF | |
30381 | /* end confdefs.h. */ | |
30382 | ||
30383 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30384 | #ifdef __cplusplus | |
30385 | extern "C" | |
30386 | #endif | |
30387 | /* We use char because int might match the return type of a gcc2 | |
30388 | builtin and then its argument prototype would still apply. */ | |
30389 | char dnet_ntoa (); | |
30390 | int | |
30391 | main () | |
30392 | { | |
30393 | dnet_ntoa (); | |
30394 | ; | |
30395 | return 0; | |
30396 | } | |
30397 | _ACEOF | |
30398 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30400 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30401 | ac_status=$? |
ac1cb8d3 VS |
30402 | grep -v '^ *+' conftest.er1 >conftest.err |
30403 | rm -f conftest.er1 | |
30404 | cat conftest.err >&5 | |
a848cd7e SC |
30405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30406 | (exit $ac_status); } && | |
bb9e79c0 | 30407 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30409 | (eval $ac_try) 2>&5 | |
30410 | ac_status=$? | |
30411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30412 | (exit $ac_status); }; } && | |
30413 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30415 | (eval $ac_try) 2>&5 | |
30416 | ac_status=$? | |
30417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30418 | (exit $ac_status); }; }; then | |
30419 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
30420 | else | |
30421 | echo "$as_me: failed program was:" >&5 | |
30422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30423 | ||
30424 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
30425 | fi | |
ac1cb8d3 VS |
30426 | rm -f conftest.err conftest.$ac_objext \ |
30427 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30428 | LIBS=$ac_check_lib_save_LIBS |
30429 | fi | |
30430 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
30431 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
30432 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
30433 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
30434 | fi | |
30435 | ||
30436 | fi | |
30437 | fi | |
ac1cb8d3 VS |
30438 | rm -f conftest.err conftest.$ac_objext \ |
30439 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30440 | LIBS="$ac_xsave_LIBS" |
30441 | ||
30442 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
30443 | # to get the SysV transport functions. | |
30444 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
30445 | # needs -lnsl. | |
30446 | # The nsl library prevents programs from opening the X display | |
30447 | # on Irix 5.2, according to T.E. Dickey. | |
30448 | # The functions gethostbyname, getservbyname, and inet_addr are | |
30449 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
30450 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
30451 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
30452 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
30453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30454 | else | |
30455 | cat >conftest.$ac_ext <<_ACEOF | |
30456 | /* confdefs.h. */ | |
30457 | _ACEOF | |
30458 | cat confdefs.h >>conftest.$ac_ext | |
30459 | cat >>conftest.$ac_ext <<_ACEOF | |
30460 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30461 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
30462 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30463 | #define gethostbyname innocuous_gethostbyname | |
30464 | ||
a848cd7e SC |
30465 | /* System header to define __stub macros and hopefully few prototypes, |
30466 | which can conflict with char gethostbyname (); below. | |
30467 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30468 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30469 | |
a848cd7e SC |
30470 | #ifdef __STDC__ |
30471 | # include <limits.h> | |
30472 | #else | |
30473 | # include <assert.h> | |
30474 | #endif | |
ac1cb8d3 VS |
30475 | |
30476 | #undef gethostbyname | |
30477 | ||
a848cd7e SC |
30478 | /* Override any gcc2 internal prototype to avoid an error. */ |
30479 | #ifdef __cplusplus | |
30480 | extern "C" | |
30481 | { | |
30482 | #endif | |
30483 | /* We use char because int might match the return type of a gcc2 | |
30484 | builtin and then its argument prototype would still apply. */ | |
30485 | char gethostbyname (); | |
30486 | /* The GNU C library defines this for functions which it implements | |
30487 | to always fail with ENOSYS. Some functions are actually named | |
30488 | something starting with __ and the normal name is an alias. */ | |
30489 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
30490 | choke me | |
30491 | #else | |
30492 | char (*f) () = gethostbyname; | |
30493 | #endif | |
30494 | #ifdef __cplusplus | |
30495 | } | |
30496 | #endif | |
30497 | ||
30498 | int | |
30499 | main () | |
30500 | { | |
30501 | return f != gethostbyname; | |
30502 | ; | |
30503 | return 0; | |
30504 | } | |
30505 | _ACEOF | |
30506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30508 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30509 | ac_status=$? |
ac1cb8d3 VS |
30510 | grep -v '^ *+' conftest.er1 >conftest.err |
30511 | rm -f conftest.er1 | |
30512 | cat conftest.err >&5 | |
a848cd7e SC |
30513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30514 | (exit $ac_status); } && | |
bb9e79c0 | 30515 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30517 | (eval $ac_try) 2>&5 | |
30518 | ac_status=$? | |
30519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30520 | (exit $ac_status); }; } && | |
30521 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30523 | (eval $ac_try) 2>&5 | |
30524 | ac_status=$? | |
30525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30526 | (exit $ac_status); }; }; then | |
30527 | ac_cv_func_gethostbyname=yes | |
30528 | else | |
30529 | echo "$as_me: failed program was:" >&5 | |
30530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30531 | ||
30532 | ac_cv_func_gethostbyname=no | |
30533 | fi | |
ac1cb8d3 VS |
30534 | rm -f conftest.err conftest.$ac_objext \ |
30535 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30536 | fi |
30537 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
30538 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
30539 | ||
30540 | if test $ac_cv_func_gethostbyname = no; then | |
30541 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
30542 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
30543 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
30544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30545 | else | |
30546 | ac_check_lib_save_LIBS=$LIBS | |
30547 | LIBS="-lnsl $LIBS" | |
30548 | cat >conftest.$ac_ext <<_ACEOF | |
30549 | /* confdefs.h. */ | |
30550 | _ACEOF | |
30551 | cat confdefs.h >>conftest.$ac_ext | |
30552 | cat >>conftest.$ac_ext <<_ACEOF | |
30553 | /* end confdefs.h. */ | |
30554 | ||
30555 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30556 | #ifdef __cplusplus | |
30557 | extern "C" | |
30558 | #endif | |
30559 | /* We use char because int might match the return type of a gcc2 | |
30560 | builtin and then its argument prototype would still apply. */ | |
30561 | char gethostbyname (); | |
30562 | int | |
30563 | main () | |
30564 | { | |
30565 | gethostbyname (); | |
30566 | ; | |
30567 | return 0; | |
30568 | } | |
30569 | _ACEOF | |
30570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
30572 | (eval $ac_link) 2>conftest.er1 |
30573 | ac_status=$? | |
30574 | grep -v '^ *+' conftest.er1 >conftest.err | |
30575 | rm -f conftest.er1 | |
30576 | cat conftest.err >&5 | |
30577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30578 | (exit $ac_status); } && | |
bb9e79c0 | 30579 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30581 | (eval $ac_try) 2>&5 | |
30582 | ac_status=$? | |
30583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30584 | (exit $ac_status); }; } && | |
30585 | { ac_try='test -s conftest$ac_exeext' | |
30586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30587 | (eval $ac_try) 2>&5 | |
30588 | ac_status=$? | |
30589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30590 | (exit $ac_status); }; }; then | |
30591 | ac_cv_lib_nsl_gethostbyname=yes | |
30592 | else | |
30593 | echo "$as_me: failed program was:" >&5 | |
30594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30595 | ||
30596 | ac_cv_lib_nsl_gethostbyname=no | |
30597 | fi | |
30598 | rm -f conftest.err conftest.$ac_objext \ | |
30599 | conftest$ac_exeext conftest.$ac_ext | |
30600 | LIBS=$ac_check_lib_save_LIBS | |
30601 | fi | |
30602 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
30603 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
30604 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
30605 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
30606 | fi | |
30607 | ||
30608 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
30609 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
30610 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
30611 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
30612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30613 | else | |
30614 | ac_check_lib_save_LIBS=$LIBS | |
30615 | LIBS="-lbsd $LIBS" | |
30616 | cat >conftest.$ac_ext <<_ACEOF | |
30617 | /* confdefs.h. */ | |
30618 | _ACEOF | |
30619 | cat confdefs.h >>conftest.$ac_ext | |
30620 | cat >>conftest.$ac_ext <<_ACEOF | |
30621 | /* end confdefs.h. */ | |
30622 | ||
30623 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30624 | #ifdef __cplusplus | |
30625 | extern "C" | |
30626 | #endif | |
30627 | /* We use char because int might match the return type of a gcc2 | |
30628 | builtin and then its argument prototype would still apply. */ | |
30629 | char gethostbyname (); | |
30630 | int | |
30631 | main () | |
30632 | { | |
30633 | gethostbyname (); | |
30634 | ; | |
30635 | return 0; | |
30636 | } | |
30637 | _ACEOF | |
30638 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30640 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 30641 | ac_status=$? |
ac1cb8d3 VS |
30642 | grep -v '^ *+' conftest.er1 >conftest.err |
30643 | rm -f conftest.er1 | |
30644 | cat conftest.err >&5 | |
a848cd7e SC |
30645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30646 | (exit $ac_status); } && | |
bb9e79c0 | 30647 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
30648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30649 | (eval $ac_try) 2>&5 | |
30650 | ac_status=$? | |
30651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
30652 | (exit $ac_status); }; } && |
30653 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30655 | (eval $ac_try) 2>&5 | |
30656 | ac_status=$? | |
30657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30658 | (exit $ac_status); }; }; then | |
30659 | ac_cv_lib_bsd_gethostbyname=yes | |
30660 | else | |
30661 | echo "$as_me: failed program was:" >&5 | |
30662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30663 | ||
30664 | ac_cv_lib_bsd_gethostbyname=no | |
30665 | fi | |
ac1cb8d3 VS |
30666 | rm -f conftest.err conftest.$ac_objext \ |
30667 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30668 | LIBS=$ac_check_lib_save_LIBS |
30669 | fi | |
30670 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
30671 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
30672 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
30673 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
30674 | fi | |
30675 | ||
30676 | fi | |
30677 | fi | |
30678 | ||
30679 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
30680 | # socket/setsockopt and other routines are undefined under SCO ODT | |
30681 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
30682 | # on later versions), says Simon Leinen: it contains gethostby* | |
30683 | # variants that don't use the name server (or something). -lsocket | |
30684 | # must be given before -lnsl if both are needed. We assume that | |
30685 | # if connect needs -lnsl, so does gethostbyname. | |
30686 | echo "$as_me:$LINENO: checking for connect" >&5 | |
30687 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
30688 | if test "${ac_cv_func_connect+set}" = set; then | |
30689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30690 | else | |
30691 | cat >conftest.$ac_ext <<_ACEOF | |
30692 | /* confdefs.h. */ | |
30693 | _ACEOF | |
30694 | cat confdefs.h >>conftest.$ac_ext | |
30695 | cat >>conftest.$ac_ext <<_ACEOF | |
30696 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30697 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
30698 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30699 | #define connect innocuous_connect | |
30700 | ||
a848cd7e SC |
30701 | /* System header to define __stub macros and hopefully few prototypes, |
30702 | which can conflict with char connect (); below. | |
30703 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30704 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30705 | |
a848cd7e SC |
30706 | #ifdef __STDC__ |
30707 | # include <limits.h> | |
30708 | #else | |
30709 | # include <assert.h> | |
30710 | #endif | |
ac1cb8d3 VS |
30711 | |
30712 | #undef connect | |
30713 | ||
a848cd7e SC |
30714 | /* Override any gcc2 internal prototype to avoid an error. */ |
30715 | #ifdef __cplusplus | |
30716 | extern "C" | |
30717 | { | |
30718 | #endif | |
30719 | /* We use char because int might match the return type of a gcc2 | |
30720 | builtin and then its argument prototype would still apply. */ | |
30721 | char connect (); | |
30722 | /* The GNU C library defines this for functions which it implements | |
30723 | to always fail with ENOSYS. Some functions are actually named | |
30724 | something starting with __ and the normal name is an alias. */ | |
30725 | #if defined (__stub_connect) || defined (__stub___connect) | |
30726 | choke me | |
30727 | #else | |
30728 | char (*f) () = connect; | |
30729 | #endif | |
30730 | #ifdef __cplusplus | |
30731 | } | |
30732 | #endif | |
30733 | ||
30734 | int | |
30735 | main () | |
30736 | { | |
30737 | return f != connect; | |
30738 | ; | |
30739 | return 0; | |
30740 | } | |
30741 | _ACEOF | |
30742 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30744 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30745 | ac_status=$? |
ac1cb8d3 VS |
30746 | grep -v '^ *+' conftest.er1 >conftest.err |
30747 | rm -f conftest.er1 | |
30748 | cat conftest.err >&5 | |
a848cd7e SC |
30749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30750 | (exit $ac_status); } && | |
bb9e79c0 | 30751 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30753 | (eval $ac_try) 2>&5 | |
30754 | ac_status=$? | |
30755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30756 | (exit $ac_status); }; } && | |
30757 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30759 | (eval $ac_try) 2>&5 | |
30760 | ac_status=$? | |
30761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30762 | (exit $ac_status); }; }; then | |
30763 | ac_cv_func_connect=yes | |
30764 | else | |
30765 | echo "$as_me: failed program was:" >&5 | |
30766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30767 | ||
30768 | ac_cv_func_connect=no | |
30769 | fi | |
ac1cb8d3 VS |
30770 | rm -f conftest.err conftest.$ac_objext \ |
30771 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30772 | fi |
30773 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
30774 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
30775 | ||
30776 | if test $ac_cv_func_connect = no; then | |
30777 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
30778 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
30779 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
30780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30781 | else | |
30782 | ac_check_lib_save_LIBS=$LIBS | |
30783 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
30784 | cat >conftest.$ac_ext <<_ACEOF | |
30785 | /* confdefs.h. */ | |
30786 | _ACEOF | |
30787 | cat confdefs.h >>conftest.$ac_ext | |
30788 | cat >>conftest.$ac_ext <<_ACEOF | |
30789 | /* end confdefs.h. */ | |
30790 | ||
30791 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30792 | #ifdef __cplusplus | |
30793 | extern "C" | |
30794 | #endif | |
30795 | /* We use char because int might match the return type of a gcc2 | |
30796 | builtin and then its argument prototype would still apply. */ | |
30797 | char connect (); | |
30798 | int | |
30799 | main () | |
30800 | { | |
30801 | connect (); | |
30802 | ; | |
30803 | return 0; | |
30804 | } | |
30805 | _ACEOF | |
30806 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30808 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30809 | ac_status=$? |
ac1cb8d3 VS |
30810 | grep -v '^ *+' conftest.er1 >conftest.err |
30811 | rm -f conftest.er1 | |
30812 | cat conftest.err >&5 | |
a848cd7e SC |
30813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30814 | (exit $ac_status); } && | |
bb9e79c0 | 30815 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30817 | (eval $ac_try) 2>&5 | |
30818 | ac_status=$? | |
30819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30820 | (exit $ac_status); }; } && | |
30821 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30823 | (eval $ac_try) 2>&5 | |
30824 | ac_status=$? | |
30825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30826 | (exit $ac_status); }; }; then | |
30827 | ac_cv_lib_socket_connect=yes | |
30828 | else | |
30829 | echo "$as_me: failed program was:" >&5 | |
30830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30831 | ||
30832 | ac_cv_lib_socket_connect=no | |
30833 | fi | |
ac1cb8d3 VS |
30834 | rm -f conftest.err conftest.$ac_objext \ |
30835 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30836 | LIBS=$ac_check_lib_save_LIBS |
30837 | fi | |
30838 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
30839 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
30840 | if test $ac_cv_lib_socket_connect = yes; then | |
30841 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
30842 | fi | |
30843 | ||
30844 | fi | |
30845 | ||
30846 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
30847 | echo "$as_me:$LINENO: checking for remove" >&5 | |
30848 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
30849 | if test "${ac_cv_func_remove+set}" = set; then | |
30850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30851 | else | |
30852 | cat >conftest.$ac_ext <<_ACEOF | |
30853 | /* confdefs.h. */ | |
30854 | _ACEOF | |
30855 | cat confdefs.h >>conftest.$ac_ext | |
30856 | cat >>conftest.$ac_ext <<_ACEOF | |
30857 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30858 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
30859 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30860 | #define remove innocuous_remove | |
30861 | ||
a848cd7e SC |
30862 | /* System header to define __stub macros and hopefully few prototypes, |
30863 | which can conflict with char remove (); below. | |
30864 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30865 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30866 | |
a848cd7e SC |
30867 | #ifdef __STDC__ |
30868 | # include <limits.h> | |
30869 | #else | |
30870 | # include <assert.h> | |
30871 | #endif | |
ac1cb8d3 VS |
30872 | |
30873 | #undef remove | |
30874 | ||
a848cd7e SC |
30875 | /* Override any gcc2 internal prototype to avoid an error. */ |
30876 | #ifdef __cplusplus | |
30877 | extern "C" | |
30878 | { | |
30879 | #endif | |
30880 | /* We use char because int might match the return type of a gcc2 | |
30881 | builtin and then its argument prototype would still apply. */ | |
30882 | char remove (); | |
30883 | /* The GNU C library defines this for functions which it implements | |
30884 | to always fail with ENOSYS. Some functions are actually named | |
30885 | something starting with __ and the normal name is an alias. */ | |
30886 | #if defined (__stub_remove) || defined (__stub___remove) | |
30887 | choke me | |
30888 | #else | |
30889 | char (*f) () = remove; | |
30890 | #endif | |
30891 | #ifdef __cplusplus | |
30892 | } | |
30893 | #endif | |
30894 | ||
30895 | int | |
30896 | main () | |
30897 | { | |
30898 | return f != remove; | |
30899 | ; | |
30900 | return 0; | |
30901 | } | |
30902 | _ACEOF | |
30903 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30905 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30906 | ac_status=$? |
ac1cb8d3 VS |
30907 | grep -v '^ *+' conftest.er1 >conftest.err |
30908 | rm -f conftest.er1 | |
30909 | cat conftest.err >&5 | |
a848cd7e SC |
30910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30911 | (exit $ac_status); } && | |
bb9e79c0 | 30912 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30914 | (eval $ac_try) 2>&5 | |
30915 | ac_status=$? | |
30916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30917 | (exit $ac_status); }; } && | |
30918 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30920 | (eval $ac_try) 2>&5 | |
30921 | ac_status=$? | |
30922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30923 | (exit $ac_status); }; }; then | |
30924 | ac_cv_func_remove=yes | |
30925 | else | |
30926 | echo "$as_me: failed program was:" >&5 | |
30927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30928 | ||
30929 | ac_cv_func_remove=no | |
30930 | fi | |
ac1cb8d3 VS |
30931 | rm -f conftest.err conftest.$ac_objext \ |
30932 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30933 | fi |
30934 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
30935 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
30936 | ||
30937 | if test $ac_cv_func_remove = no; then | |
30938 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
30939 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
30940 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
30941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30942 | else | |
30943 | ac_check_lib_save_LIBS=$LIBS | |
30944 | LIBS="-lposix $LIBS" | |
30945 | cat >conftest.$ac_ext <<_ACEOF | |
30946 | /* confdefs.h. */ | |
30947 | _ACEOF | |
30948 | cat confdefs.h >>conftest.$ac_ext | |
30949 | cat >>conftest.$ac_ext <<_ACEOF | |
30950 | /* end confdefs.h. */ | |
30951 | ||
30952 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30953 | #ifdef __cplusplus | |
30954 | extern "C" | |
30955 | #endif | |
30956 | /* We use char because int might match the return type of a gcc2 | |
30957 | builtin and then its argument prototype would still apply. */ | |
30958 | char remove (); | |
30959 | int | |
30960 | main () | |
30961 | { | |
30962 | remove (); | |
30963 | ; | |
30964 | return 0; | |
30965 | } | |
30966 | _ACEOF | |
30967 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30969 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30970 | ac_status=$? |
ac1cb8d3 VS |
30971 | grep -v '^ *+' conftest.er1 >conftest.err |
30972 | rm -f conftest.er1 | |
30973 | cat conftest.err >&5 | |
a848cd7e SC |
30974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30975 | (exit $ac_status); } && | |
bb9e79c0 | 30976 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30978 | (eval $ac_try) 2>&5 | |
30979 | ac_status=$? | |
30980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30981 | (exit $ac_status); }; } && | |
30982 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30984 | (eval $ac_try) 2>&5 | |
30985 | ac_status=$? | |
30986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30987 | (exit $ac_status); }; }; then | |
30988 | ac_cv_lib_posix_remove=yes | |
30989 | else | |
30990 | echo "$as_me: failed program was:" >&5 | |
30991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30992 | ||
30993 | ac_cv_lib_posix_remove=no | |
30994 | fi | |
ac1cb8d3 VS |
30995 | rm -f conftest.err conftest.$ac_objext \ |
30996 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30997 | LIBS=$ac_check_lib_save_LIBS |
30998 | fi | |
30999 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
31000 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
31001 | if test $ac_cv_lib_posix_remove = yes; then | |
31002 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
31003 | fi | |
31004 | ||
31005 | fi | |
31006 | ||
31007 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
31008 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
31009 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
31010 | if test "${ac_cv_func_shmat+set}" = set; then | |
31011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31012 | else | |
31013 | cat >conftest.$ac_ext <<_ACEOF | |
31014 | /* confdefs.h. */ | |
31015 | _ACEOF | |
31016 | cat confdefs.h >>conftest.$ac_ext | |
31017 | cat >>conftest.$ac_ext <<_ACEOF | |
31018 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31019 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
31020 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31021 | #define shmat innocuous_shmat | |
31022 | ||
a848cd7e SC |
31023 | /* System header to define __stub macros and hopefully few prototypes, |
31024 | which can conflict with char shmat (); below. | |
31025 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31026 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31027 | |
a848cd7e SC |
31028 | #ifdef __STDC__ |
31029 | # include <limits.h> | |
31030 | #else | |
31031 | # include <assert.h> | |
31032 | #endif | |
ac1cb8d3 VS |
31033 | |
31034 | #undef shmat | |
31035 | ||
a848cd7e SC |
31036 | /* Override any gcc2 internal prototype to avoid an error. */ |
31037 | #ifdef __cplusplus | |
31038 | extern "C" | |
31039 | { | |
31040 | #endif | |
31041 | /* We use char because int might match the return type of a gcc2 | |
31042 | builtin and then its argument prototype would still apply. */ | |
31043 | char shmat (); | |
31044 | /* The GNU C library defines this for functions which it implements | |
31045 | to always fail with ENOSYS. Some functions are actually named | |
31046 | something starting with __ and the normal name is an alias. */ | |
31047 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
31048 | choke me | |
31049 | #else | |
31050 | char (*f) () = shmat; | |
31051 | #endif | |
31052 | #ifdef __cplusplus | |
31053 | } | |
31054 | #endif | |
31055 | ||
31056 | int | |
31057 | main () | |
31058 | { | |
31059 | return f != shmat; | |
31060 | ; | |
31061 | return 0; | |
31062 | } | |
31063 | _ACEOF | |
31064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31066 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31067 | ac_status=$? |
ac1cb8d3 VS |
31068 | grep -v '^ *+' conftest.er1 >conftest.err |
31069 | rm -f conftest.er1 | |
31070 | cat conftest.err >&5 | |
a848cd7e SC |
31071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31072 | (exit $ac_status); } && | |
bb9e79c0 | 31073 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31075 | (eval $ac_try) 2>&5 | |
31076 | ac_status=$? | |
31077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31078 | (exit $ac_status); }; } && | |
31079 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31081 | (eval $ac_try) 2>&5 | |
31082 | ac_status=$? | |
31083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31084 | (exit $ac_status); }; }; then | |
31085 | ac_cv_func_shmat=yes | |
31086 | else | |
31087 | echo "$as_me: failed program was:" >&5 | |
31088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31089 | ||
31090 | ac_cv_func_shmat=no | |
31091 | fi | |
ac1cb8d3 VS |
31092 | rm -f conftest.err conftest.$ac_objext \ |
31093 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31094 | fi |
31095 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
31096 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
31097 | ||
31098 | if test $ac_cv_func_shmat = no; then | |
31099 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
31100 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
31101 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
31102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31103 | else | |
31104 | ac_check_lib_save_LIBS=$LIBS | |
31105 | LIBS="-lipc $LIBS" | |
31106 | cat >conftest.$ac_ext <<_ACEOF | |
31107 | /* confdefs.h. */ | |
31108 | _ACEOF | |
31109 | cat confdefs.h >>conftest.$ac_ext | |
31110 | cat >>conftest.$ac_ext <<_ACEOF | |
31111 | /* end confdefs.h. */ | |
31112 | ||
31113 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31114 | #ifdef __cplusplus | |
31115 | extern "C" | |
31116 | #endif | |
31117 | /* We use char because int might match the return type of a gcc2 | |
31118 | builtin and then its argument prototype would still apply. */ | |
31119 | char shmat (); | |
31120 | int | |
31121 | main () | |
31122 | { | |
31123 | shmat (); | |
31124 | ; | |
31125 | return 0; | |
31126 | } | |
31127 | _ACEOF | |
31128 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31130 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31131 | ac_status=$? |
ac1cb8d3 VS |
31132 | grep -v '^ *+' conftest.er1 >conftest.err |
31133 | rm -f conftest.er1 | |
31134 | cat conftest.err >&5 | |
a848cd7e SC |
31135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31136 | (exit $ac_status); } && | |
bb9e79c0 | 31137 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31139 | (eval $ac_try) 2>&5 | |
31140 | ac_status=$? | |
31141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31142 | (exit $ac_status); }; } && | |
31143 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31145 | (eval $ac_try) 2>&5 | |
31146 | ac_status=$? | |
31147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31148 | (exit $ac_status); }; }; then | |
31149 | ac_cv_lib_ipc_shmat=yes | |
31150 | else | |
31151 | echo "$as_me: failed program was:" >&5 | |
31152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31153 | ||
31154 | ac_cv_lib_ipc_shmat=no | |
31155 | fi | |
ac1cb8d3 VS |
31156 | rm -f conftest.err conftest.$ac_objext \ |
31157 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31158 | LIBS=$ac_check_lib_save_LIBS |
31159 | fi | |
31160 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
31161 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
31162 | if test $ac_cv_lib_ipc_shmat = yes; then | |
31163 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
31164 | fi | |
31165 | ||
31166 | fi | |
31167 | fi | |
31168 | ||
31169 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
31170 | ac_save_LDFLAGS=$LDFLAGS | |
31171 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
31172 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
31173 | # check for ICE first), but we must link in the order -lSM -lICE or | |
31174 | # we get undefined symbols. So assume we have SM if we have ICE. | |
31175 | # These have to be linked with before -lX11, unlike the other | |
31176 | # libraries we check for below, so use a different variable. | |
31177 | # John Interrante, Karl Berry | |
31178 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
31179 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
31180 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
31181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31182 | else | |
31183 | ac_check_lib_save_LIBS=$LIBS | |
31184 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
31185 | cat >conftest.$ac_ext <<_ACEOF | |
31186 | /* confdefs.h. */ | |
31187 | _ACEOF | |
31188 | cat confdefs.h >>conftest.$ac_ext | |
31189 | cat >>conftest.$ac_ext <<_ACEOF | |
31190 | /* end confdefs.h. */ | |
31191 | ||
31192 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31193 | #ifdef __cplusplus | |
31194 | extern "C" | |
31195 | #endif | |
31196 | /* We use char because int might match the return type of a gcc2 | |
31197 | builtin and then its argument prototype would still apply. */ | |
31198 | char IceConnectionNumber (); | |
31199 | int | |
31200 | main () | |
31201 | { | |
31202 | IceConnectionNumber (); | |
31203 | ; | |
31204 | return 0; | |
31205 | } | |
31206 | _ACEOF | |
31207 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31209 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31210 | ac_status=$? |
ac1cb8d3 VS |
31211 | grep -v '^ *+' conftest.er1 >conftest.err |
31212 | rm -f conftest.er1 | |
31213 | cat conftest.err >&5 | |
a848cd7e SC |
31214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31215 | (exit $ac_status); } && | |
bb9e79c0 | 31216 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31218 | (eval $ac_try) 2>&5 | |
31219 | ac_status=$? | |
31220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31221 | (exit $ac_status); }; } && | |
31222 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31224 | (eval $ac_try) 2>&5 | |
31225 | ac_status=$? | |
31226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31227 | (exit $ac_status); }; }; then | |
31228 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
31229 | else | |
31230 | echo "$as_me: failed program was:" >&5 | |
31231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31232 | ||
31233 | ac_cv_lib_ICE_IceConnectionNumber=no | |
31234 | fi | |
ac1cb8d3 VS |
31235 | rm -f conftest.err conftest.$ac_objext \ |
31236 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31237 | LIBS=$ac_check_lib_save_LIBS |
31238 | fi | |
31239 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
31240 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
31241 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
31242 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
31243 | fi | |
31244 | ||
31245 | LDFLAGS=$ac_save_LDFLAGS | |
31246 | ||
31247 | fi | |
31248 | ||
31249 | ||
31250 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
31251 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
31252 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
31253 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
31254 | fi |
31255 | ||
74b84332 VS |
31256 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
31257 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
31258 | AFMINSTALL=afminstall |
31259 | COMPILED_X_PROGRAM=0 | |
31260 | ||
74b84332 VS |
31261 | fi |
31262 | ||
31263 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
31264 | if test "$wxUSE_NANOX" = "yes"; then |
31265 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
31266 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
31267 | if test "x$MICROWIN" = x ; then | |
31268 | echo "$as_me:$LINENO: result: not found" >&5 | |
31269 | echo "${ECHO_T}not found" >&6 | |
31270 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
31271 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
31272 | { (exit 1); exit 1; }; } | |
31273 | else | |
31274 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
31275 | echo "${ECHO_T}$MICROWIN" >&6 | |
31276 | cat >>confdefs.h <<\_ACEOF | |
31277 | #define wxUSE_NANOX 1 | |
31278 | _ACEOF | |
31279 | ||
31280 | fi | |
31281 | fi | |
31282 | ||
31283 | if test "$wxUSE_UNICODE" = "yes"; then | |
31284 | ||
479c790c VZ |
31285 | |
31286 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
31287 | if test -n "$ac_tool_prefix"; then | |
31288 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
31289 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
31290 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31292 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
31293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31294 | else | |
31295 | case $PKG_CONFIG in | |
31296 | [\\/]* | ?:[\\/]*) | |
31297 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
31298 | ;; | |
31299 | *) | |
31300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31301 | for as_dir in $PATH | |
31302 | do | |
31303 | IFS=$as_save_IFS | |
31304 | test -z "$as_dir" && as_dir=. | |
31305 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31306 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31307 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
31308 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31309 | break 2 | |
31310 | fi | |
31311 | done | |
31312 | done | |
31313 | ||
31314 | ;; | |
31315 | esac | |
31316 | fi | |
31317 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
31318 | ||
31319 | if test -n "$PKG_CONFIG"; then | |
31320 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
31321 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
31322 | else | |
31323 | echo "$as_me:$LINENO: result: no" >&5 | |
31324 | echo "${ECHO_T}no" >&6 | |
31325 | fi | |
31326 | ||
31327 | fi | |
31328 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
31329 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
31330 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
31331 | set dummy pkg-config; ac_word=$2 | |
31332 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31333 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31334 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
31335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31336 | else | |
31337 | case $ac_pt_PKG_CONFIG in | |
31338 | [\\/]* | ?:[\\/]*) | |
31339 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
31340 | ;; | |
31341 | *) | |
31342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31343 | for as_dir in $PATH | |
31344 | do | |
31345 | IFS=$as_save_IFS | |
31346 | test -z "$as_dir" && as_dir=. | |
31347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31348 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31349 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
31350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31351 | break 2 | |
31352 | fi | |
31353 | done | |
31354 | done | |
31355 | ||
31356 | ;; | |
31357 | esac | |
31358 | fi | |
31359 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
31360 | ||
31361 | if test -n "$ac_pt_PKG_CONFIG"; then | |
31362 | echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
31363 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 | |
31364 | else | |
31365 | echo "$as_me:$LINENO: result: no" >&5 | |
31366 | echo "${ECHO_T}no" >&6 | |
31367 | fi | |
31368 | ||
31369 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
31370 | else | |
31371 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
31372 | fi | |
31373 | ||
31374 | fi | |
31375 | if test -n "$PKG_CONFIG"; then | |
31376 | _pkg_min_version=0.9.0 | |
31377 | echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
31378 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 | |
31379 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
31380 | echo "$as_me:$LINENO: result: yes" >&5 | |
31381 | echo "${ECHO_T}yes" >&6 | |
31382 | else | |
31383 | echo "$as_me:$LINENO: result: no" >&5 | |
31384 | echo "${ECHO_T}no" >&6 | |
31385 | PKG_CONFIG="" | |
31386 | fi | |
31387 | ||
31388 | fi | |
31389 | ||
31390 | ||
3ecd9f92 MW |
31391 | pkg_failed=no |
31392 | echo "$as_me:$LINENO: checking for PANGOX" >&5 | |
31393 | echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6 | |
a848cd7e | 31394 | |
3ecd9f92 MW |
31395 | if test -n "$PKG_CONFIG"; then |
31396 | if test -n "$PANGOX_CFLAGS"; then | |
31397 | pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS" | |
31398 | else | |
31399 | if test -n "$PKG_CONFIG" && \ | |
31400 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5 | |
31401 | ($PKG_CONFIG --exists --print-errors "pangox") 2>&5 | |
31402 | ac_status=$? | |
31403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31404 | (exit $ac_status); }; then | |
31405 | pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null` | |
31406 | else | |
31407 | pkg_failed=yes | |
31408 | fi | |
31409 | fi | |
31410 | else | |
31411 | pkg_failed=untried | |
31412 | fi | |
31413 | if test -n "$PKG_CONFIG"; then | |
31414 | if test -n "$PANGOX_LIBS"; then | |
31415 | pkg_cv_PANGOX_LIBS="$PANGOX_LIBS" | |
31416 | else | |
31417 | if test -n "$PKG_CONFIG" && \ | |
31418 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5 | |
31419 | ($PKG_CONFIG --exists --print-errors "pangox") 2>&5 | |
31420 | ac_status=$? | |
31421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31422 | (exit $ac_status); }; then | |
31423 | pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null` | |
31424 | else | |
31425 | pkg_failed=yes | |
31426 | fi | |
31427 | fi | |
31428 | else | |
31429 | pkg_failed=untried | |
31430 | fi | |
31431 | ||
31432 | ||
31433 | ||
31434 | if test $pkg_failed = yes; then | |
31435 | ||
31436 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
31437 | _pkg_short_errors_supported=yes | |
31438 | else | |
31439 | _pkg_short_errors_supported=no | |
31440 | fi | |
31441 | if test $_pkg_short_errors_supported = yes; then | |
31442 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"` | |
31443 | else | |
31444 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
a848cd7e | 31445 | fi |
3ecd9f92 MW |
31446 | # Put the nasty error message in config.log where it belongs |
31447 | echo "$PANGOX_PKG_ERRORS" >&5 | |
a848cd7e SC |
31448 | |
31449 | ||
479c790c | 31450 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 |
3ecd9f92 MW |
31451 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} |
31452 | { (exit 1); exit 1; }; } | |
a848cd7e | 31453 | |
a848cd7e | 31454 | |
3ecd9f92 | 31455 | elif test $pkg_failed = untried; then |
a848cd7e | 31456 | |
479c790c | 31457 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 |
3ecd9f92 MW |
31458 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} |
31459 | { (exit 1); exit 1; }; } | |
31460 | ||
31461 | ||
31462 | else | |
31463 | PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS | |
31464 | PANGOX_LIBS=$pkg_cv_PANGOX_LIBS | |
31465 | echo "$as_me:$LINENO: result: yes" >&5 | |
31466 | echo "${ECHO_T}yes" >&6 | |
31467 | ||
479c790c VZ |
31468 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
31469 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
3ecd9f92 MW |
31470 | |
31471 | fi | |
31472 | ||
31473 | pkg_failed=no | |
31474 | echo "$as_me:$LINENO: checking for PANGOFT2" >&5 | |
31475 | echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6 | |
31476 | ||
31477 | if test -n "$PKG_CONFIG"; then | |
31478 | if test -n "$PANGOFT2_CFLAGS"; then | |
31479 | pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS" | |
31480 | else | |
31481 | if test -n "$PKG_CONFIG" && \ | |
31482 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5 | |
31483 | ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5 | |
31484 | ac_status=$? | |
31485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31486 | (exit $ac_status); }; then | |
31487 | pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null` | |
31488 | else | |
31489 | pkg_failed=yes | |
31490 | fi | |
31491 | fi | |
31492 | else | |
31493 | pkg_failed=untried | |
31494 | fi | |
31495 | if test -n "$PKG_CONFIG"; then | |
31496 | if test -n "$PANGOFT2_LIBS"; then | |
31497 | pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS" | |
31498 | else | |
31499 | if test -n "$PKG_CONFIG" && \ | |
31500 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5 | |
31501 | ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5 | |
31502 | ac_status=$? | |
31503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31504 | (exit $ac_status); }; then | |
31505 | pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null` | |
31506 | else | |
31507 | pkg_failed=yes | |
31508 | fi | |
31509 | fi | |
31510 | else | |
31511 | pkg_failed=untried | |
31512 | fi | |
31513 | ||
31514 | ||
31515 | ||
31516 | if test $pkg_failed = yes; then | |
31517 | ||
31518 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
31519 | _pkg_short_errors_supported=yes | |
31520 | else | |
31521 | _pkg_short_errors_supported=no | |
31522 | fi | |
31523 | if test $_pkg_short_errors_supported = yes; then | |
31524 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"` | |
31525 | else | |
31526 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
31527 | fi | |
31528 | # Put the nasty error message in config.log where it belongs | |
31529 | echo "$PANGOFT2_PKG_ERRORS" >&5 | |
a848cd7e | 31530 | |
a848cd7e | 31531 | |
479c790c | 31532 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 |
a848cd7e | 31533 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} |
479c790c | 31534 | wxUSE_PRINTING_ARCHITECTURE="no" |
a848cd7e SC |
31535 | |
31536 | ||
3ecd9f92 | 31537 | elif test $pkg_failed = untried; then |
a848cd7e | 31538 | |
479c790c | 31539 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 |
3ecd9f92 | 31540 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} |
479c790c | 31541 | wxUSE_PRINTING_ARCHITECTURE="no" |
a848cd7e | 31542 | |
a848cd7e | 31543 | |
a848cd7e | 31544 | else |
3ecd9f92 MW |
31545 | PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS |
31546 | PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS | |
31547 | echo "$as_me:$LINENO: result: yes" >&5 | |
31548 | echo "${ECHO_T}yes" >&6 | |
31549 | ||
479c790c VZ |
31550 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" |
31551 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
a848cd7e | 31552 | |
a848cd7e | 31553 | fi |
3ecd9f92 MW |
31554 | |
31555 | pkg_failed=no | |
31556 | echo "$as_me:$LINENO: checking for PANGOXFT" >&5 | |
31557 | echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6 | |
a848cd7e SC |
31558 | |
31559 | if test -n "$PKG_CONFIG"; then | |
3ecd9f92 MW |
31560 | if test -n "$PANGOXFT_CFLAGS"; then |
31561 | pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS" | |
31562 | else | |
31563 | if test -n "$PKG_CONFIG" && \ | |
31564 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5 | |
31565 | ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5 | |
31566 | ac_status=$? | |
31567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31568 | (exit $ac_status); }; then | |
31569 | pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null` | |
a848cd7e | 31570 | else |
3ecd9f92 MW |
31571 | pkg_failed=yes |
31572 | fi | |
31573 | fi | |
31574 | else | |
31575 | pkg_failed=untried | |
31576 | fi | |
31577 | if test -n "$PKG_CONFIG"; then | |
31578 | if test -n "$PANGOXFT_LIBS"; then | |
31579 | pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS" | |
31580 | else | |
31581 | if test -n "$PKG_CONFIG" && \ | |
31582 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5 | |
31583 | ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5 | |
31584 | ac_status=$? | |
31585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31586 | (exit $ac_status); }; then | |
31587 | pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null` | |
31588 | else | |
31589 | pkg_failed=yes | |
31590 | fi | |
31591 | fi | |
31592 | else | |
31593 | pkg_failed=untried | |
a848cd7e SC |
31594 | fi |
31595 | ||
a848cd7e | 31596 | |
a848cd7e | 31597 | |
3ecd9f92 | 31598 | if test $pkg_failed = yes; then |
a848cd7e | 31599 | |
3ecd9f92 MW |
31600 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
31601 | _pkg_short_errors_supported=yes | |
31602 | else | |
31603 | _pkg_short_errors_supported=no | |
31604 | fi | |
31605 | if test $_pkg_short_errors_supported = yes; then | |
31606 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"` | |
31607 | else | |
31608 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
a848cd7e | 31609 | fi |
3ecd9f92 MW |
31610 | # Put the nasty error message in config.log where it belongs |
31611 | echo "$PANGOXFT_PKG_ERRORS" >&5 | |
a848cd7e SC |
31612 | |
31613 | ||
479c790c | 31614 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 |
3ecd9f92 MW |
31615 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} |
31616 | ||
a848cd7e | 31617 | |
3ecd9f92 | 31618 | elif test $pkg_failed = untried; then |
a848cd7e | 31619 | |
479c790c | 31620 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 |
3ecd9f92 MW |
31621 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} |
31622 | ||
31623 | ||
31624 | else | |
31625 | PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS | |
31626 | PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS | |
31627 | echo "$as_me:$LINENO: result: yes" >&5 | |
31628 | echo "${ECHO_T}yes" >&6 | |
a848cd7e | 31629 | |
479c790c | 31630 | cat >>confdefs.h <<\_ACEOF |
4ae1af05 MB |
31631 | #define HAVE_PANGO_XFT 1 |
31632 | _ACEOF | |
31633 | ||
479c790c VZ |
31634 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
31635 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
a848cd7e | 31636 | |
3ecd9f92 | 31637 | fi |
479c790c VZ |
31638 | save_CXXFLAGS="$CXXFLAGS" |
31639 | save_LIBS="$LIBS" | |
31640 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" | |
31641 | LIBS="$LIBS $PANGOX_LIBS" | |
304205f1 VS |
31642 | |
31643 | for ac_func in pango_font_family_is_monospace | |
31644 | do | |
31645 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31646 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31647 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31648 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31650 | else | |
31651 | cat >conftest.$ac_ext <<_ACEOF | |
31652 | /* confdefs.h. */ | |
31653 | _ACEOF | |
31654 | cat confdefs.h >>conftest.$ac_ext | |
31655 | cat >>conftest.$ac_ext <<_ACEOF | |
31656 | /* end confdefs.h. */ | |
31657 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
31658 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31659 | #define $ac_func innocuous_$ac_func | |
31660 | ||
31661 | /* System header to define __stub macros and hopefully few prototypes, | |
31662 | which can conflict with char $ac_func (); below. | |
31663 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31664 | <limits.h> exists even on freestanding compilers. */ | |
31665 | ||
31666 | #ifdef __STDC__ | |
31667 | # include <limits.h> | |
31668 | #else | |
31669 | # include <assert.h> | |
31670 | #endif | |
31671 | ||
31672 | #undef $ac_func | |
31673 | ||
31674 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31675 | #ifdef __cplusplus | |
31676 | extern "C" | |
31677 | { | |
31678 | #endif | |
31679 | /* We use char because int might match the return type of a gcc2 | |
31680 | builtin and then its argument prototype would still apply. */ | |
31681 | char $ac_func (); | |
31682 | /* The GNU C library defines this for functions which it implements | |
31683 | to always fail with ENOSYS. Some functions are actually named | |
31684 | something starting with __ and the normal name is an alias. */ | |
31685 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31686 | choke me | |
31687 | #else | |
31688 | char (*f) () = $ac_func; | |
31689 | #endif | |
31690 | #ifdef __cplusplus | |
31691 | } | |
31692 | #endif | |
31693 | ||
31694 | int | |
31695 | main () | |
31696 | { | |
31697 | return f != $ac_func; | |
31698 | ; | |
31699 | return 0; | |
31700 | } | |
31701 | _ACEOF | |
31702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31704 | (eval $ac_link) 2>conftest.er1 | |
31705 | ac_status=$? | |
31706 | grep -v '^ *+' conftest.er1 >conftest.err | |
31707 | rm -f conftest.er1 | |
31708 | cat conftest.err >&5 | |
31709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31710 | (exit $ac_status); } && | |
bb9e79c0 | 31711 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
31712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31713 | (eval $ac_try) 2>&5 | |
31714 | ac_status=$? | |
31715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31716 | (exit $ac_status); }; } && | |
31717 | { ac_try='test -s conftest$ac_exeext' | |
31718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31719 | (eval $ac_try) 2>&5 | |
31720 | ac_status=$? | |
31721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31722 | (exit $ac_status); }; }; then | |
31723 | eval "$as_ac_var=yes" | |
31724 | else | |
31725 | echo "$as_me: failed program was:" >&5 | |
31726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31727 | ||
31728 | eval "$as_ac_var=no" | |
31729 | fi | |
31730 | rm -f conftest.err conftest.$ac_objext \ | |
31731 | conftest$ac_exeext conftest.$ac_ext | |
31732 | fi | |
31733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31734 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31735 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31736 | cat >>confdefs.h <<_ACEOF | |
31737 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31738 | _ACEOF | |
31739 | ||
31740 | fi | |
31741 | done | |
31742 | ||
479c790c VZ |
31743 | CXXFLAGS="$save_CXXFLAGS" |
31744 | LIBS="$save_LIBS" | |
a848cd7e SC |
31745 | fi |
31746 | ||
31747 | wxUSE_UNIVERSAL="yes" | |
31748 | ||
31749 | if test "$wxUSE_NANOX" = "yes"; then | |
31750 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
31751 | 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" | |
31752 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
31753 | else | |
31754 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
31755 | fi | |
31756 | ||
a848cd7e SC |
31757 | TOOLKIT=X11 |
31758 | GUIDIST=X11_DIST | |
31759 | fi | |
31760 | ||
31761 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
31762 | if test "$wxUSE_UNICODE" = "yes"; then |
31763 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
31764 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
31765 | { (exit 1); exit 1; }; } | |
31766 | fi | |
31767 | ||
74b84332 VS |
31768 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
31769 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 31770 | |
74b84332 VS |
31771 | ac_find_includes= |
31772 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
31773 | do | |
31774 | if test -f "$ac_dir/Xm/Xm.h"; then | |
31775 | ac_find_includes=$ac_dir | |
31776 | break | |
31777 | fi | |
31778 | done | |
a848cd7e | 31779 | |
74b84332 VS |
31780 | if test "$ac_find_includes" != "" ; then |
31781 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
31782 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
31783 | ||
31784 | if test "x$ac_find_includes" = "x/usr/include"; then | |
31785 | ac_path_to_include="" | |
31786 | else | |
31787 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
31788 | result=$? | |
31789 | if test $result = 0; then | |
31790 | ac_path_to_include="" | |
31791 | else | |
31792 | ac_path_to_include=" -I$ac_find_includes" | |
31793 | fi | |
a848cd7e SC |
31794 | fi |
31795 | ||
74b84332 VS |
31796 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
31797 | else | |
e56f4f9e VZ |
31798 | save_CXXFLAGS=$CXXFLAGS |
31799 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
e051b34e | 31800 | |
74b84332 | 31801 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
31802 | /* confdefs.h. */ |
31803 | _ACEOF | |
31804 | cat confdefs.h >>conftest.$ac_ext | |
31805 | cat >>conftest.$ac_ext <<_ACEOF | |
31806 | /* end confdefs.h. */ | |
31807 | ||
74b84332 VS |
31808 | #include <Xm/Xm.h> |
31809 | ||
a848cd7e SC |
31810 | int |
31811 | main () | |
31812 | { | |
31813 | ||
74b84332 VS |
31814 | int version; |
31815 | version = xmUseVersion; | |
31816 | ||
a848cd7e SC |
31817 | ; |
31818 | return 0; | |
31819 | } | |
31820 | _ACEOF | |
74b84332 VS |
31821 | rm -f conftest.$ac_objext |
31822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31823 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 31824 | ac_status=$? |
ac1cb8d3 VS |
31825 | grep -v '^ *+' conftest.er1 >conftest.err |
31826 | rm -f conftest.er1 | |
31827 | cat conftest.err >&5 | |
a848cd7e SC |
31828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31829 | (exit $ac_status); } && | |
bb9e79c0 | 31830 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31832 | (eval $ac_try) 2>&5 | |
31833 | ac_status=$? | |
31834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31835 | (exit $ac_status); }; } && | |
74b84332 | 31836 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
31837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31838 | (eval $ac_try) 2>&5 | |
31839 | ac_status=$? | |
31840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31841 | (exit $ac_status); }; }; then | |
74b84332 VS |
31842 | |
31843 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
31844 | echo "${ECHO_T}found in default search path" >&6 | |
31845 | COMPILED_X_PROGRAM=1 | |
31846 | ||
a848cd7e SC |
31847 | else |
31848 | echo "$as_me: failed program was:" >&5 | |
31849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31850 | ||
a848cd7e | 31851 | |
74b84332 VS |
31852 | echo "$as_me:$LINENO: result: no" >&5 |
31853 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
31854 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
31855 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 31856 | { (exit 1); exit 1; }; } |
a848cd7e | 31857 | |
a848cd7e | 31858 | |
a848cd7e | 31859 | fi |
74b84332 | 31860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e | 31861 | |
e56f4f9e | 31862 | CXXFLAGS=$save_CXXFLAGS |
74b84332 VS |
31863 | fi |
31864 | ||
0ad5d837 VZ |
31865 | |
31866 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
31867 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
31868 | ||
0ad5d837 VZ |
31869 | ac_find_libraries= |
31870 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 31871 | do |
3eca31dc | 31872 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
31873 | if test -f "$ac_dir/libXm.$ac_extension"; then |
31874 | ac_find_libraries=$ac_dir | |
31875 | break 2 | |
a848cd7e | 31876 | fi |
74b84332 VS |
31877 | done |
31878 | done | |
a848cd7e | 31879 | |
0ad5d837 VZ |
31880 | |
31881 | if test "x$ac_find_libraries" != "x" ; then | |
31882 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
31883 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 31884 | |
74b84332 | 31885 | |
0ad5d837 | 31886 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 31887 | ac_path_to_link="" |
a848cd7e | 31888 | else |
0ad5d837 VZ |
31889 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
31890 | result=$? | |
31891 | if test $result = 0; then | |
31892 | ac_path_to_link="" | |
31893 | else | |
31894 | ac_path_to_link=" -L$ac_find_libraries" | |
31895 | fi | |
74b84332 VS |
31896 | fi |
31897 | ||
0ad5d837 VZ |
31898 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
31899 | else | |
e56f4f9e VZ |
31900 | save_CXXFLAGS=$CXXFLAGS |
31901 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
6f9cf1e6 MW |
31902 | save_LIBS="$LIBS" |
31903 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 31904 | |
0ad5d837 | 31905 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
31906 | /* confdefs.h. */ |
31907 | _ACEOF | |
31908 | cat confdefs.h >>conftest.$ac_ext | |
31909 | cat >>conftest.$ac_ext <<_ACEOF | |
31910 | /* end confdefs.h. */ | |
31911 | ||
0ad5d837 | 31912 | #include <Xm/Xm.h> |
74b84332 | 31913 | |
a848cd7e SC |
31914 | int |
31915 | main () | |
31916 | { | |
74b84332 | 31917 | |
0ad5d837 VZ |
31918 | int version; |
31919 | version = xmUseVersion; | |
74b84332 | 31920 | |
a848cd7e SC |
31921 | ; |
31922 | return 0; | |
31923 | } | |
31924 | _ACEOF | |
0ad5d837 VZ |
31925 | rm -f conftest.$ac_objext conftest$ac_exeext |
31926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31927 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 31928 | ac_status=$? |
ac1cb8d3 VS |
31929 | grep -v '^ *+' conftest.er1 >conftest.err |
31930 | rm -f conftest.er1 | |
31931 | cat conftest.err >&5 | |
a848cd7e SC |
31932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31933 | (exit $ac_status); } && | |
bb9e79c0 | 31934 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31936 | (eval $ac_try) 2>&5 | |
31937 | ac_status=$? | |
31938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31939 | (exit $ac_status); }; } && | |
0ad5d837 | 31940 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
31941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31942 | (eval $ac_try) 2>&5 | |
31943 | ac_status=$? | |
31944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31945 | (exit $ac_status); }; }; then | |
74b84332 | 31946 | |
0ad5d837 | 31947 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 31948 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 31949 | COMPILED_X_PROGRAM=1 |
74b84332 | 31950 | |
a848cd7e SC |
31951 | else |
31952 | echo "$as_me: failed program was:" >&5 | |
31953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31954 | ||
74b84332 | 31955 | |
6f9cf1e6 | 31956 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 31957 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 31958 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
31959 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
31960 | { (exit 1); exit 1; }; } | |
31961 | ||
31962 | ||
31963 | fi | |
0ad5d837 VZ |
31964 | rm -f conftest.err conftest.$ac_objext \ |
31965 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 31966 | |
e56f4f9e | 31967 | CXXFLAGS=$save_CXXFLAGS |
6f9cf1e6 | 31968 | LIBS="$save_LIBS" |
74b84332 VS |
31969 | fi |
31970 | ||
31971 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
31972 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
31973 | libp_link="" | |
31974 | libsm_ice_link="" | |
31975 | libs_found=0 | |
31976 | for libp in "" " -lXp"; do | |
31977 | if test "$libs_found" = "0"; then | |
31978 | for libsm_ice in "" " -lSM -lICE"; do | |
31979 | if test "$libs_found" = "0"; then | |
31980 | save_LIBS="$LIBS" | |
31981 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
e56f4f9e VZ |
31982 | save_CXXFLAGS=$CXXFLAGS |
31983 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
74b84332 VS |
31984 | |
31985 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
31986 | /* confdefs.h. */ |
31987 | _ACEOF | |
31988 | cat confdefs.h >>conftest.$ac_ext | |
31989 | cat >>conftest.$ac_ext <<_ACEOF | |
31990 | /* end confdefs.h. */ | |
31991 | ||
74b84332 VS |
31992 | #include <Xm/Xm.h> |
31993 | #include <Xm/List.h> | |
31994 | ||
a848cd7e SC |
31995 | int |
31996 | main () | |
31997 | { | |
74b84332 VS |
31998 | |
31999 | XmString string = NULL; | |
32000 | Widget w = NULL; | |
32001 | int position = 0; | |
32002 | XmListAddItem(w, string, position); | |
32003 | ||
a848cd7e SC |
32004 | ; |
32005 | return 0; | |
32006 | } | |
32007 | _ACEOF | |
32008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32010 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32011 | ac_status=$? |
ac1cb8d3 VS |
32012 | grep -v '^ *+' conftest.er1 >conftest.err |
32013 | rm -f conftest.er1 | |
32014 | cat conftest.err >&5 | |
a848cd7e SC |
32015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32016 | (exit $ac_status); } && | |
bb9e79c0 | 32017 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32019 | (eval $ac_try) 2>&5 | |
32020 | ac_status=$? | |
32021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32022 | (exit $ac_status); }; } && | |
32023 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32025 | (eval $ac_try) 2>&5 | |
32026 | ac_status=$? | |
32027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32028 | (exit $ac_status); }; }; then | |
32029 | ||
32030 | libp_link="$libp" | |
32031 | libsm_ice_link="$libsm_ice" | |
32032 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
32033 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
32034 | libs_found=1 | |
32035 | ||
32036 | else | |
32037 | echo "$as_me: failed program was:" >&5 | |
32038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32039 | ||
32040 | ||
32041 | ||
32042 | fi | |
ac1cb8d3 VS |
32043 | rm -f conftest.err conftest.$ac_objext \ |
32044 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32045 | |
32046 | LIBS="$save_LIBS" | |
e56f4f9e | 32047 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
32048 | fi |
32049 | done | |
32050 | fi | |
32051 | done | |
32052 | ||
32053 | if test "$libs_found" = "0"; then | |
32054 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
32055 | echo "${ECHO_T}can't find the right libraries" >&6 | |
32056 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
32057 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
32058 | { (exit 1); exit 1; }; } | |
32059 | fi | |
32060 | ||
62fa8b3a MW |
32061 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
32062 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
32063 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
32064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32065 | else | |
32066 | ac_check_lib_save_LIBS=$LIBS | |
32067 | LIBS="-lSgm $LIBS" | |
32068 | cat >conftest.$ac_ext <<_ACEOF | |
32069 | /* confdefs.h. */ | |
32070 | _ACEOF | |
32071 | cat confdefs.h >>conftest.$ac_ext | |
32072 | cat >>conftest.$ac_ext <<_ACEOF | |
32073 | /* end confdefs.h. */ | |
32074 | ||
32075 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32076 | #ifdef __cplusplus | |
32077 | extern "C" | |
32078 | #endif | |
32079 | /* We use char because int might match the return type of a gcc2 | |
32080 | builtin and then its argument prototype would still apply. */ | |
32081 | char SgCreateList (); | |
32082 | int | |
32083 | main () | |
32084 | { | |
32085 | SgCreateList (); | |
32086 | ; | |
32087 | return 0; | |
32088 | } | |
32089 | _ACEOF | |
32090 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32092 | (eval $ac_link) 2>conftest.er1 | |
32093 | ac_status=$? | |
32094 | grep -v '^ *+' conftest.er1 >conftest.err | |
32095 | rm -f conftest.er1 | |
32096 | cat conftest.err >&5 | |
32097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32098 | (exit $ac_status); } && | |
bb9e79c0 | 32099 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
32100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32101 | (eval $ac_try) 2>&5 | |
32102 | ac_status=$? | |
32103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32104 | (exit $ac_status); }; } && | |
32105 | { ac_try='test -s conftest$ac_exeext' | |
32106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32107 | (eval $ac_try) 2>&5 | |
32108 | ac_status=$? | |
32109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32110 | (exit $ac_status); }; }; then | |
32111 | ac_cv_lib_Sgm_SgCreateList=yes | |
32112 | else | |
32113 | echo "$as_me: failed program was:" >&5 | |
32114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32115 | ||
32116 | ac_cv_lib_Sgm_SgCreateList=no | |
32117 | fi | |
32118 | rm -f conftest.err conftest.$ac_objext \ | |
32119 | conftest$ac_exeext conftest.$ac_ext | |
32120 | LIBS=$ac_check_lib_save_LIBS | |
32121 | fi | |
32122 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
32123 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
32124 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
32125 | libsgm_link=" -lSgm" | |
32126 | fi | |
32127 | ||
32128 | ||
e56f4f9e VZ |
32129 | save_CXXFLAGS=$CXXFLAGS |
32130 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
0ad5d837 | 32131 | |
a848cd7e SC |
32132 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
32133 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
32134 | if test "${wx_cv_lib_motif2+set}" = set; then |
32135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32136 | else | |
32137 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
32138 | /* confdefs.h. */ |
32139 | _ACEOF | |
32140 | cat confdefs.h >>conftest.$ac_ext | |
32141 | cat >>conftest.$ac_ext <<_ACEOF | |
32142 | /* end confdefs.h. */ | |
32143 | ||
0ad5d837 | 32144 | #include <Xm/Xm.h> |
a848cd7e SC |
32145 | |
32146 | int | |
32147 | main () | |
32148 | { | |
32149 | ||
0ad5d837 VZ |
32150 | #if XmVersion < 2000 |
32151 | Not Motif 2 | |
32152 | #endif | |
a848cd7e SC |
32153 | |
32154 | ; | |
32155 | return 0; | |
32156 | } | |
32157 | _ACEOF | |
32158 | rm -f conftest.$ac_objext | |
32159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32160 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32161 | ac_status=$? |
ac1cb8d3 VS |
32162 | grep -v '^ *+' conftest.er1 >conftest.err |
32163 | rm -f conftest.er1 | |
32164 | cat conftest.err >&5 | |
a848cd7e SC |
32165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32166 | (exit $ac_status); } && | |
bb9e79c0 | 32167 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32169 | (eval $ac_try) 2>&5 | |
32170 | ac_status=$? | |
32171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32172 | (exit $ac_status); }; } && | |
32173 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32175 | (eval $ac_try) 2>&5 | |
32176 | ac_status=$? | |
32177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32178 | (exit $ac_status); }; }; then | |
0ad5d837 | 32179 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
32180 | else |
32181 | echo "$as_me: failed program was:" >&5 | |
32182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32183 | ||
0ad5d837 VZ |
32184 | wx_cv_lib_motif2="no" |
32185 | fi | |
32186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32187 | fi | |
32188 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
32189 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
32190 | if test "$wx_cv_lib_motif2" = "yes"; then | |
32191 | cat >>confdefs.h <<\_ACEOF | |
32192 | #define __WXMOTIF20__ 1 | |
32193 | _ACEOF | |
a848cd7e | 32194 | |
0ad5d837 VZ |
32195 | else |
32196 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
32197 | #define __WXMOTIF20__ 0 |
32198 | _ACEOF | |
32199 | ||
0ad5d837 | 32200 | fi |
2113bc77 MW |
32201 | |
32202 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
32203 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
32204 | if test "${wx_cv_lib_lesstif+set}" = set; then |
32205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32206 | else | |
32207 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
32208 | /* confdefs.h. */ |
32209 | _ACEOF | |
32210 | cat confdefs.h >>conftest.$ac_ext | |
32211 | cat >>conftest.$ac_ext <<_ACEOF | |
32212 | /* end confdefs.h. */ | |
32213 | ||
0ad5d837 | 32214 | #include <Xm/Xm.h> |
2113bc77 MW |
32215 | |
32216 | int | |
32217 | main () | |
32218 | { | |
32219 | ||
0ad5d837 VZ |
32220 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
32221 | Not Lesstif | |
32222 | #endif | |
2113bc77 MW |
32223 | |
32224 | ; | |
32225 | return 0; | |
32226 | } | |
32227 | _ACEOF | |
32228 | rm -f conftest.$ac_objext | |
32229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32230 | (eval $ac_compile) 2>conftest.er1 | |
32231 | ac_status=$? | |
32232 | grep -v '^ *+' conftest.er1 >conftest.err | |
32233 | rm -f conftest.er1 | |
32234 | cat conftest.err >&5 | |
32235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32236 | (exit $ac_status); } && | |
bb9e79c0 | 32237 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2113bc77 MW |
32238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32239 | (eval $ac_try) 2>&5 | |
32240 | ac_status=$? | |
32241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32242 | (exit $ac_status); }; } && | |
32243 | { ac_try='test -s conftest.$ac_objext' | |
32244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32245 | (eval $ac_try) 2>&5 | |
32246 | ac_status=$? | |
32247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32248 | (exit $ac_status); }; }; then | |
0ad5d837 | 32249 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
32250 | else |
32251 | echo "$as_me: failed program was:" >&5 | |
32252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32253 | ||
0ad5d837 VZ |
32254 | wx_cv_lib_lesstif="no" |
32255 | fi | |
32256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 32257 | |
0ad5d837 VZ |
32258 | fi |
32259 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
32260 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
32261 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
32262 | cat >>confdefs.h <<\_ACEOF | |
32263 | #define __WXLESSTIF__ 1 | |
32264 | _ACEOF | |
32265 | ||
32266 | else | |
32267 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
32268 | #define __WXLESSTIF__ 0 |
32269 | _ACEOF | |
32270 | ||
0ad5d837 | 32271 | fi |
2113bc77 | 32272 | |
e56f4f9e | 32273 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e | 32274 | |
62fa8b3a | 32275 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
32276 | TOOLKIT=MOTIF |
32277 | GUIDIST=MOTIF_DIST | |
32278 | fi | |
32279 | ||
74b84332 | 32280 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
32281 | if test "$wxUSE_LIBXPM" = "sys"; then |
32282 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
32283 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
32284 | ||
0ad5d837 VZ |
32285 | ac_find_libraries= |
32286 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 32287 | do |
3eca31dc | 32288 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
32289 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
32290 | ac_find_libraries=$ac_dir | |
32291 | break 2 | |
32292 | fi | |
32293 | done | |
32294 | done | |
32295 | ||
32296 | if test "$ac_find_libraries" != "" ; then | |
32297 | ||
0ad5d837 | 32298 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32299 | ac_path_to_link="" |
32300 | else | |
0ad5d837 VZ |
32301 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
32302 | result=$? | |
32303 | if test $result = 0; then | |
32304 | ac_path_to_link="" | |
32305 | else | |
32306 | ac_path_to_link=" -L$ac_find_libraries" | |
32307 | fi | |
a848cd7e SC |
32308 | fi |
32309 | ||
32310 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
32311 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
32312 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
32313 | |
32314 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
32315 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
32316 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
32317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32318 | else | |
32319 | ||
e56f4f9e VZ |
32320 | save_CXXFLAGS=$CXXFLAGS |
32321 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
32322 | |
32323 | cat >conftest.$ac_ext <<_ACEOF | |
32324 | /* confdefs.h. */ | |
32325 | _ACEOF | |
32326 | cat confdefs.h >>conftest.$ac_ext | |
32327 | cat >>conftest.$ac_ext <<_ACEOF | |
32328 | /* end confdefs.h. */ | |
32329 | ||
32330 | #include <X11/xpm.h> | |
32331 | ||
32332 | int | |
32333 | main () | |
32334 | { | |
32335 | ||
32336 | int version; | |
32337 | version = XpmLibraryVersion(); | |
32338 | ||
32339 | ; | |
32340 | return 0; | |
32341 | } | |
32342 | _ACEOF | |
32343 | rm -f conftest.$ac_objext | |
32344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32345 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32346 | ac_status=$? |
ac1cb8d3 VS |
32347 | grep -v '^ *+' conftest.er1 >conftest.err |
32348 | rm -f conftest.er1 | |
32349 | cat conftest.err >&5 | |
a848cd7e SC |
32350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32351 | (exit $ac_status); } && | |
bb9e79c0 | 32352 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32354 | (eval $ac_try) 2>&5 | |
32355 | ac_status=$? | |
32356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32357 | (exit $ac_status); }; } && | |
32358 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32360 | (eval $ac_try) 2>&5 | |
32361 | ac_status=$? | |
32362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32363 | (exit $ac_status); }; }; then | |
32364 | wx_cv_x11_xpm_h=yes | |
32365 | else | |
32366 | echo "$as_me: failed program was:" >&5 | |
32367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32368 | ||
32369 | wx_cv_x11_xpm_h=no | |
32370 | ||
32371 | fi | |
ac1cb8d3 | 32372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 32373 | |
e56f4f9e | 32374 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
32375 | |
32376 | ||
32377 | fi | |
32378 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
32379 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
32380 | ||
32381 | if test $wx_cv_x11_xpm_h = "yes"; then | |
32382 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
32383 | cat >>confdefs.h <<\_ACEOF | |
32384 | #define wxHAVE_LIB_XPM 1 | |
32385 | _ACEOF | |
32386 | ||
32387 | else | |
32388 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
32389 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
32390 | fi | |
32391 | fi | |
32392 | ||
32393 | fi | |
32394 | ||
32395 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
32396 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
32397 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
32398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32399 | else | |
32400 | ac_check_lib_save_LIBS=$LIBS | |
32401 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
32402 | cat >conftest.$ac_ext <<_ACEOF | |
32403 | /* confdefs.h. */ | |
32404 | _ACEOF | |
32405 | cat confdefs.h >>conftest.$ac_ext | |
32406 | cat >>conftest.$ac_ext <<_ACEOF | |
32407 | /* end confdefs.h. */ | |
32408 | ||
32409 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32410 | #ifdef __cplusplus | |
32411 | extern "C" | |
32412 | #endif | |
32413 | /* We use char because int might match the return type of a gcc2 | |
32414 | builtin and then its argument prototype would still apply. */ | |
32415 | char XShapeQueryExtension (); | |
32416 | int | |
32417 | main () | |
32418 | { | |
32419 | XShapeQueryExtension (); | |
32420 | ; | |
32421 | return 0; | |
32422 | } | |
32423 | _ACEOF | |
32424 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32426 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32427 | ac_status=$? |
ac1cb8d3 VS |
32428 | grep -v '^ *+' conftest.er1 >conftest.err |
32429 | rm -f conftest.er1 | |
32430 | cat conftest.err >&5 | |
a848cd7e SC |
32431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32432 | (exit $ac_status); } && | |
bb9e79c0 | 32433 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32435 | (eval $ac_try) 2>&5 | |
32436 | ac_status=$? | |
32437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32438 | (exit $ac_status); }; } && | |
32439 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32441 | (eval $ac_try) 2>&5 | |
32442 | ac_status=$? | |
32443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32444 | (exit $ac_status); }; }; then | |
32445 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
32446 | else | |
32447 | echo "$as_me: failed program was:" >&5 | |
32448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32449 | ||
32450 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
32451 | fi | |
ac1cb8d3 VS |
32452 | rm -f conftest.err conftest.$ac_objext \ |
32453 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32454 | LIBS=$ac_check_lib_save_LIBS |
32455 | fi | |
32456 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
32457 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
32458 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
32459 | ||
32460 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
32461 | wxHAVE_XEXT_LIB=1 | |
32462 | ||
32463 | fi | |
32464 | ||
32465 | ||
32466 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
e56f4f9e VZ |
32467 | save_CXXFLAGS="$CXXFLAGS" |
32468 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
32469 | |
32470 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
32471 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
32472 | cat >conftest.$ac_ext <<_ACEOF | |
32473 | /* confdefs.h. */ | |
32474 | _ACEOF | |
32475 | cat confdefs.h >>conftest.$ac_ext | |
32476 | cat >>conftest.$ac_ext <<_ACEOF | |
32477 | /* end confdefs.h. */ | |
32478 | ||
32479 | #include <X11/Xlib.h> | |
32480 | #include <X11/extensions/shape.h> | |
32481 | ||
32482 | int | |
32483 | main () | |
32484 | { | |
32485 | ||
32486 | int dummy1, dummy2; | |
32487 | XShapeQueryExtension((Display*)NULL, | |
32488 | (int*)NULL, (int*)NULL); | |
32489 | ||
32490 | ; | |
32491 | return 0; | |
32492 | } | |
32493 | _ACEOF | |
32494 | rm -f conftest.$ac_objext | |
32495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32496 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32497 | ac_status=$? |
ac1cb8d3 VS |
32498 | grep -v '^ *+' conftest.er1 >conftest.err |
32499 | rm -f conftest.er1 | |
32500 | cat conftest.err >&5 | |
a848cd7e SC |
32501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32502 | (exit $ac_status); } && | |
bb9e79c0 | 32503 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32505 | (eval $ac_try) 2>&5 | |
32506 | ac_status=$? | |
32507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32508 | (exit $ac_status); }; } && | |
32509 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32511 | (eval $ac_try) 2>&5 | |
32512 | ac_status=$? | |
32513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32514 | (exit $ac_status); }; }; then | |
32515 | ||
32516 | cat >>confdefs.h <<\_ACEOF | |
32517 | #define HAVE_XSHAPE 1 | |
32518 | _ACEOF | |
32519 | ||
32520 | echo "$as_me:$LINENO: result: found" >&5 | |
32521 | echo "${ECHO_T}found" >&6 | |
32522 | ||
32523 | else | |
32524 | echo "$as_me: failed program was:" >&5 | |
32525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32526 | ||
32527 | ||
32528 | echo "$as_me:$LINENO: result: not found" >&5 | |
32529 | echo "${ECHO_T}not found" >&6 | |
32530 | ||
32531 | fi | |
ac1cb8d3 | 32532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e56f4f9e | 32533 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
32534 | |
32535 | fi | |
32536 | fi | |
32537 | ||
32538 | if test "$wxUSE_MAC" = 1; then | |
32539 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
32540 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
32541 | if test "$GCC" = yes; then | |
32542 | echo "$as_me:$LINENO: result: gcc" >&5 | |
32543 | echo "${ECHO_T}gcc" >&6 | |
32544 | CPPFLAGS_PASCAL="-fpascal-strings" | |
32545 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
32546 | echo "$as_me:$LINENO: result: xlc" >&5 | |
32547 | echo "${ECHO_T}xlc" >&6 | |
32548 | CPPFLAGS_PASCAL="-qmacpstr" | |
32549 | else | |
32550 | echo "$as_me:$LINENO: result: none" >&5 | |
32551 | echo "${ECHO_T}none" >&6 | |
32552 | fi | |
32553 | ||
1e9e8aba | 32554 | if test "x$wxUSE_UNIX" = "xyes"; then |
c92ad099 | 32555 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 32556 | else |
c92ad099 | 32557 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 32558 | fi |
a848cd7e | 32559 | |
a848cd7e SC |
32560 | TOOLKIT=MAC |
32561 | GUIDIST=MACX_DIST | |
dd21ced8 | 32562 | WXBASEPORT="_carbon" |
a848cd7e SC |
32563 | fi |
32564 | ||
32565 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
32566 | TOOLKIT=COCOA |
32567 | GUIDIST=COCOA_DIST | |
32568 | fi | |
32569 | ||
32570 | if test "$wxUSE_PM" = 1; then | |
32571 | TOOLKIT=PM | |
de59c161 RD |
32572 | GUIDIST=PM_DIST |
32573 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
32574 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
32575 | if test "${wx_cv_spbcdata+set}" = set; then | |
32576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32577 | else | |
32578 | ||
32579 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
32580 | /* confdefs.h. */ |
32581 | _ACEOF | |
32582 | cat confdefs.h >>conftest.$ac_ext | |
32583 | cat >>conftest.$ac_ext <<_ACEOF | |
32584 | /* end confdefs.h. */ | |
32585 | ||
32586 | #define INCL_PM | |
32587 | #include <os2.h> | |
32588 | ||
32589 | int | |
32590 | main () | |
32591 | { | |
32592 | ||
32593 | SPBCDATA test; | |
32594 | ||
32595 | ; | |
32596 | return 0; | |
32597 | } | |
32598 | _ACEOF | |
32599 | rm -f conftest.$ac_objext | |
32600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32601 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 32602 | ac_status=$? |
ac1cb8d3 VS |
32603 | grep -v '^ *+' conftest.er1 >conftest.err |
32604 | rm -f conftest.er1 | |
32605 | cat conftest.err >&5 | |
de59c161 RD |
32606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32607 | (exit $ac_status); } && | |
bb9e79c0 | 32608 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32610 | (eval $ac_try) 2>&5 | |
32611 | ac_status=$? | |
32612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32613 | (exit $ac_status); }; } && | |
32614 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
32615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32616 | (eval $ac_try) 2>&5 | |
32617 | ac_status=$? | |
32618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32619 | (exit $ac_status); }; }; then | |
32620 | wx_cv_spbcdata=yes | |
32621 | else | |
32622 | echo "$as_me: failed program was:" >&5 | |
32623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32624 | ||
32625 | wx_cv_spbcdata=no | |
32626 | ||
32627 | fi | |
ac1cb8d3 | 32628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
32629 | |
32630 | ||
32631 | fi | |
32632 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
32633 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
32634 | ||
32635 | if test $wx_cv_spbcdata = "yes"; then | |
32636 | cat >>confdefs.h <<\_ACEOF | |
32637 | #define HAVE_SPBCDATA 1 | |
32638 | _ACEOF | |
32639 | ||
32640 | fi | |
a848cd7e SC |
32641 | fi |
32642 | ||
32643 | if test "$TOOLKIT" = "PM" ; then | |
32644 | TOOLKIT_DIR="os2" | |
32645 | else | |
32646 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
32647 | fi | |
32648 | ||
a848cd7e | 32649 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
32650 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
32651 | WIDGET_SET=univ | |
a848cd7e SC |
32652 | fi |
32653 | ||
32654 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
32655 | DISTDIR="wx\$(TOOLKIT)" | |
32656 | else | |
32657 | USE_GUI=0 | |
32658 | ||
32659 | TOOLKIT_DIR="base" | |
32660 | ||
32661 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 32662 | TOOLKIT="MSW" |
a848cd7e SC |
32663 | fi |
32664 | ||
a848cd7e SC |
32665 | GUIDIST="BASE_DIST" |
32666 | DISTDIR="wxBase" | |
32667 | fi | |
32668 | ||
32669 | ||
d12aef51 VZ |
32670 | if test "$wxUSE_GUI" = "yes"; then |
32671 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
32672 | ||
32673 | for ac_header in X11/Xlib.h | |
32674 | do | |
32675 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32676 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32677 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32678 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32679 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32681 | fi | |
32682 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32683 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32684 | else | |
32685 | # Is the header compilable? | |
32686 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32687 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32688 | cat >conftest.$ac_ext <<_ACEOF | |
32689 | /* confdefs.h. */ | |
32690 | _ACEOF | |
32691 | cat confdefs.h >>conftest.$ac_ext | |
32692 | cat >>conftest.$ac_ext <<_ACEOF | |
32693 | /* end confdefs.h. */ | |
32694 | $ac_includes_default | |
32695 | #include <$ac_header> | |
32696 | _ACEOF | |
32697 | rm -f conftest.$ac_objext | |
32698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32699 | (eval $ac_compile) 2>conftest.er1 | |
32700 | ac_status=$? | |
32701 | grep -v '^ *+' conftest.er1 >conftest.err | |
32702 | rm -f conftest.er1 | |
32703 | cat conftest.err >&5 | |
32704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32705 | (exit $ac_status); } && | |
bb9e79c0 | 32706 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
32707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32708 | (eval $ac_try) 2>&5 | |
32709 | ac_status=$? | |
32710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32711 | (exit $ac_status); }; } && | |
32712 | { ac_try='test -s conftest.$ac_objext' | |
32713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32714 | (eval $ac_try) 2>&5 | |
32715 | ac_status=$? | |
32716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32717 | (exit $ac_status); }; }; then | |
32718 | ac_header_compiler=yes | |
32719 | else | |
32720 | echo "$as_me: failed program was:" >&5 | |
32721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32722 | ||
32723 | ac_header_compiler=no | |
32724 | fi | |
32725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32726 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
32727 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32728 | ||
32729 | # Is the header present? | |
32730 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32731 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32732 | cat >conftest.$ac_ext <<_ACEOF | |
32733 | /* confdefs.h. */ | |
32734 | _ACEOF | |
32735 | cat confdefs.h >>conftest.$ac_ext | |
32736 | cat >>conftest.$ac_ext <<_ACEOF | |
32737 | /* end confdefs.h. */ | |
32738 | #include <$ac_header> | |
32739 | _ACEOF | |
32740 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32741 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32742 | ac_status=$? | |
32743 | grep -v '^ *+' conftest.er1 >conftest.err | |
32744 | rm -f conftest.er1 | |
32745 | cat conftest.err >&5 | |
32746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32747 | (exit $ac_status); } >/dev/null; then | |
32748 | if test -s conftest.err; then | |
5d7b7554 VZ |
32749 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
32750 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
d12aef51 VZ |
32751 | else |
32752 | ac_cpp_err= | |
32753 | fi | |
32754 | else | |
32755 | ac_cpp_err=yes | |
32756 | fi | |
32757 | if test -z "$ac_cpp_err"; then | |
32758 | ac_header_preproc=yes | |
32759 | else | |
32760 | echo "$as_me: failed program was:" >&5 | |
32761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32762 | ||
32763 | ac_header_preproc=no | |
32764 | fi | |
32765 | rm -f conftest.err conftest.$ac_ext | |
32766 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32767 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32768 | ||
32769 | # So? What about this header? | |
5d7b7554 | 32770 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
d12aef51 VZ |
32771 | yes:no: ) |
32772 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
32773 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32774 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
32775 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32776 | ac_header_preproc=yes | |
32777 | ;; | |
32778 | no:yes:* ) | |
32779 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
32780 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32781 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
32782 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32783 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32784 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32785 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32786 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
32787 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32788 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32789 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
32790 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
32791 | ( | |
32792 | cat <<\_ASBOX | |
32793 | ## ----------------------------------------- ## | |
32794 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32795 | ## ----------------------------------------- ## | |
32796 | _ASBOX | |
32797 | ) | | |
32798 | sed "s/^/$as_me: WARNING: /" >&2 | |
32799 | ;; | |
32800 | esac | |
32801 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32802 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32803 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32805 | else | |
32806 | eval "$as_ac_Header=\$ac_header_preproc" | |
32807 | fi | |
32808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32809 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32810 | ||
32811 | fi | |
32812 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32813 | cat >>confdefs.h <<_ACEOF | |
32814 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32815 | _ACEOF | |
32816 | ||
32817 | fi | |
32818 | ||
32819 | done | |
32820 | ||
32821 | ||
32822 | for ac_header in X11/XKBlib.h | |
32823 | do | |
32824 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32825 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32826 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32827 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32829 | else | |
32830 | cat >conftest.$ac_ext <<_ACEOF | |
32831 | /* confdefs.h. */ | |
32832 | _ACEOF | |
32833 | cat confdefs.h >>conftest.$ac_ext | |
32834 | cat >>conftest.$ac_ext <<_ACEOF | |
32835 | /* end confdefs.h. */ | |
32836 | ||
32837 | #if HAVE_X11_XLIB_H | |
32838 | #include <X11/Xlib.h> | |
32839 | #endif | |
32840 | ||
32841 | ||
32842 | #include <$ac_header> | |
32843 | _ACEOF | |
32844 | rm -f conftest.$ac_objext | |
32845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32846 | (eval $ac_compile) 2>conftest.er1 | |
32847 | ac_status=$? | |
32848 | grep -v '^ *+' conftest.er1 >conftest.err | |
32849 | rm -f conftest.er1 | |
32850 | cat conftest.err >&5 | |
32851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32852 | (exit $ac_status); } && | |
bb9e79c0 | 32853 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
32854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32855 | (eval $ac_try) 2>&5 | |
32856 | ac_status=$? | |
32857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32858 | (exit $ac_status); }; } && | |
32859 | { ac_try='test -s conftest.$ac_objext' | |
32860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32861 | (eval $ac_try) 2>&5 | |
32862 | ac_status=$? | |
32863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32864 | (exit $ac_status); }; }; then | |
32865 | eval "$as_ac_Header=yes" | |
32866 | else | |
32867 | echo "$as_me: failed program was:" >&5 | |
32868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32869 | ||
32870 | eval "$as_ac_Header=no" | |
32871 | fi | |
32872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32873 | fi | |
32874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32876 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32877 | cat >>confdefs.h <<_ACEOF | |
32878 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32879 | _ACEOF | |
32880 | ||
32881 | fi | |
32882 | ||
32883 | done | |
32884 | ||
32885 | fi | |
32886 | fi | |
32887 | ||
a848cd7e SC |
32888 | |
32889 | ||
32890 | IODBC_C_SRC="" | |
32891 | ||
32892 | ||
32893 | if test "$TOOLKIT" != "MSW" ; then | |
32894 | ||
32895 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
32896 | ||
32897 | if test "${ac_cv_header_sql_h+set}" = set; then | |
32898 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
32899 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
32900 | if test "${ac_cv_header_sql_h+set}" = set; then | |
32901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32902 | fi | |
32903 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
32904 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
32905 | else | |
32906 | # Is the header compilable? | |
32907 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
32908 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
32909 | cat >conftest.$ac_ext <<_ACEOF | |
32910 | /* confdefs.h. */ | |
32911 | _ACEOF | |
32912 | cat confdefs.h >>conftest.$ac_ext | |
32913 | cat >>conftest.$ac_ext <<_ACEOF | |
32914 | /* end confdefs.h. */ | |
32915 | $ac_includes_default | |
32916 | #include <sql.h> | |
32917 | _ACEOF | |
32918 | rm -f conftest.$ac_objext | |
32919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32920 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32921 | ac_status=$? |
ac1cb8d3 VS |
32922 | grep -v '^ *+' conftest.er1 >conftest.err |
32923 | rm -f conftest.er1 | |
32924 | cat conftest.err >&5 | |
a848cd7e SC |
32925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32926 | (exit $ac_status); } && | |
bb9e79c0 | 32927 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32929 | (eval $ac_try) 2>&5 | |
32930 | ac_status=$? | |
32931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32932 | (exit $ac_status); }; } && | |
32933 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32935 | (eval $ac_try) 2>&5 | |
32936 | ac_status=$? | |
32937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32938 | (exit $ac_status); }; }; then | |
32939 | ac_header_compiler=yes | |
32940 | else | |
32941 | echo "$as_me: failed program was:" >&5 | |
32942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32943 | ||
32944 | ac_header_compiler=no | |
32945 | fi | |
ac1cb8d3 | 32946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32947 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32948 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32949 | ||
32950 | # Is the header present? | |
32951 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
32952 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
32953 | cat >conftest.$ac_ext <<_ACEOF | |
32954 | /* confdefs.h. */ | |
32955 | _ACEOF | |
32956 | cat confdefs.h >>conftest.$ac_ext | |
32957 | cat >>conftest.$ac_ext <<_ACEOF | |
32958 | /* end confdefs.h. */ | |
32959 | #include <sql.h> | |
32960 | _ACEOF | |
32961 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32962 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32963 | ac_status=$? | |
32964 | grep -v '^ *+' conftest.er1 >conftest.err | |
32965 | rm -f conftest.er1 | |
32966 | cat conftest.err >&5 | |
32967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32968 | (exit $ac_status); } >/dev/null; then | |
32969 | if test -s conftest.err; then | |
5d7b7554 VZ |
32970 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
32971 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
32972 | else |
32973 | ac_cpp_err= | |
32974 | fi | |
32975 | else | |
32976 | ac_cpp_err=yes | |
32977 | fi | |
32978 | if test -z "$ac_cpp_err"; then | |
32979 | ac_header_preproc=yes | |
32980 | else | |
32981 | echo "$as_me: failed program was:" >&5 | |
32982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32983 | ||
32984 | ac_header_preproc=no | |
32985 | fi | |
32986 | rm -f conftest.err conftest.$ac_ext | |
32987 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32988 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32989 | ||
32990 | # So? What about this header? | |
5d7b7554 | 32991 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 32992 | yes:no: ) |
a848cd7e SC |
32993 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
32994 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32995 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
32996 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
32997 | ac_header_preproc=yes | |
a848cd7e | 32998 | ;; |
ac1cb8d3 | 32999 | no:yes:* ) |
a848cd7e SC |
33000 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
33001 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33002 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
33003 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
33004 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
33005 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
33006 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
33007 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33008 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
33009 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33010 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
33011 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33012 | ( |
33013 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33014 | ## ----------------------------------------- ## |
33015 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33016 | ## ----------------------------------------- ## | |
a848cd7e SC |
33017 | _ASBOX |
33018 | ) | | |
33019 | sed "s/^/$as_me: WARNING: /" >&2 | |
33020 | ;; | |
33021 | esac | |
33022 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
33023 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
33024 | if test "${ac_cv_header_sql_h+set}" = set; then | |
33025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33026 | else | |
33027 | ac_cv_header_sql_h=$ac_header_preproc | |
33028 | fi | |
33029 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
33030 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
33031 | ||
33032 | fi | |
33033 | if test $ac_cv_header_sql_h = yes; then | |
33034 | found_sql_h=1 | |
33035 | fi | |
33036 | ||
33037 | ||
33038 | if test "x$found_sql_h" = "x1" ; then | |
33039 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
33040 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
33041 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
33042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33043 | else | |
33044 | ac_check_lib_save_LIBS=$LIBS | |
33045 | LIBS="-liodbc $LIBS" | |
33046 | cat >conftest.$ac_ext <<_ACEOF | |
33047 | /* confdefs.h. */ | |
33048 | _ACEOF | |
33049 | cat confdefs.h >>conftest.$ac_ext | |
33050 | cat >>conftest.$ac_ext <<_ACEOF | |
33051 | /* end confdefs.h. */ | |
33052 | ||
33053 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33054 | #ifdef __cplusplus | |
33055 | extern "C" | |
33056 | #endif | |
33057 | /* We use char because int might match the return type of a gcc2 | |
33058 | builtin and then its argument prototype would still apply. */ | |
33059 | char SQLAllocEnv (); | |
33060 | int | |
33061 | main () | |
33062 | { | |
33063 | SQLAllocEnv (); | |
33064 | ; | |
33065 | return 0; | |
33066 | } | |
33067 | _ACEOF | |
33068 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33070 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33071 | ac_status=$? |
ac1cb8d3 VS |
33072 | grep -v '^ *+' conftest.er1 >conftest.err |
33073 | rm -f conftest.er1 | |
33074 | cat conftest.err >&5 | |
a848cd7e SC |
33075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33076 | (exit $ac_status); } && | |
bb9e79c0 | 33077 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33079 | (eval $ac_try) 2>&5 | |
33080 | ac_status=$? | |
33081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33082 | (exit $ac_status); }; } && | |
33083 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33085 | (eval $ac_try) 2>&5 | |
33086 | ac_status=$? | |
33087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33088 | (exit $ac_status); }; }; then | |
33089 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
33090 | else | |
33091 | echo "$as_me: failed program was:" >&5 | |
33092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33093 | ||
33094 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
33095 | fi | |
ac1cb8d3 VS |
33096 | rm -f conftest.err conftest.$ac_objext \ |
33097 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33098 | LIBS=$ac_check_lib_save_LIBS |
33099 | fi | |
33100 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
33101 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
33102 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
33103 | ODBC_LINK=" -liodbc" | |
33104 | else | |
33105 | ||
33106 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
33107 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
33108 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
33109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33110 | else | |
33111 | ac_check_lib_save_LIBS=$LIBS | |
33112 | LIBS="-lunixodbc $LIBS" | |
33113 | cat >conftest.$ac_ext <<_ACEOF | |
33114 | /* confdefs.h. */ | |
33115 | _ACEOF | |
33116 | cat confdefs.h >>conftest.$ac_ext | |
33117 | cat >>conftest.$ac_ext <<_ACEOF | |
33118 | /* end confdefs.h. */ | |
33119 | ||
33120 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33121 | #ifdef __cplusplus | |
33122 | extern "C" | |
33123 | #endif | |
33124 | /* We use char because int might match the return type of a gcc2 | |
33125 | builtin and then its argument prototype would still apply. */ | |
33126 | char SQLAllocEnv (); | |
33127 | int | |
33128 | main () | |
33129 | { | |
33130 | SQLAllocEnv (); | |
33131 | ; | |
33132 | return 0; | |
33133 | } | |
33134 | _ACEOF | |
33135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33137 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33138 | ac_status=$? |
ac1cb8d3 VS |
33139 | grep -v '^ *+' conftest.er1 >conftest.err |
33140 | rm -f conftest.er1 | |
33141 | cat conftest.err >&5 | |
a848cd7e SC |
33142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33143 | (exit $ac_status); } && | |
bb9e79c0 | 33144 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33146 | (eval $ac_try) 2>&5 | |
33147 | ac_status=$? | |
33148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33149 | (exit $ac_status); }; } && | |
33150 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33152 | (eval $ac_try) 2>&5 | |
33153 | ac_status=$? | |
33154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33155 | (exit $ac_status); }; }; then | |
33156 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
33157 | else | |
33158 | echo "$as_me: failed program was:" >&5 | |
33159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33160 | ||
33161 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
33162 | fi | |
ac1cb8d3 VS |
33163 | rm -f conftest.err conftest.$ac_objext \ |
33164 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33165 | LIBS=$ac_check_lib_save_LIBS |
33166 | fi | |
33167 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
33168 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
33169 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
33170 | ODBC_LINK=" -lunixodbc" | |
33171 | else | |
33172 | ||
33173 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
33174 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
33175 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
33176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33177 | else | |
33178 | ac_check_lib_save_LIBS=$LIBS | |
33179 | LIBS="-lodbc $LIBS" | |
33180 | cat >conftest.$ac_ext <<_ACEOF | |
33181 | /* confdefs.h. */ | |
33182 | _ACEOF | |
33183 | cat confdefs.h >>conftest.$ac_ext | |
33184 | cat >>conftest.$ac_ext <<_ACEOF | |
33185 | /* end confdefs.h. */ | |
33186 | ||
33187 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33188 | #ifdef __cplusplus | |
33189 | extern "C" | |
33190 | #endif | |
33191 | /* We use char because int might match the return type of a gcc2 | |
33192 | builtin and then its argument prototype would still apply. */ | |
33193 | char SQLAllocEnv (); | |
33194 | int | |
33195 | main () | |
33196 | { | |
33197 | SQLAllocEnv (); | |
33198 | ; | |
33199 | return 0; | |
33200 | } | |
33201 | _ACEOF | |
33202 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33204 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33205 | ac_status=$? |
ac1cb8d3 VS |
33206 | grep -v '^ *+' conftest.er1 >conftest.err |
33207 | rm -f conftest.er1 | |
33208 | cat conftest.err >&5 | |
a848cd7e SC |
33209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33210 | (exit $ac_status); } && | |
bb9e79c0 | 33211 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33213 | (eval $ac_try) 2>&5 | |
33214 | ac_status=$? | |
33215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33216 | (exit $ac_status); }; } && | |
33217 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33219 | (eval $ac_try) 2>&5 | |
33220 | ac_status=$? | |
33221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33222 | (exit $ac_status); }; }; then | |
33223 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
33224 | else | |
33225 | echo "$as_me: failed program was:" >&5 | |
33226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33227 | ||
33228 | ac_cv_lib_odbc_SQLAllocEnv=no | |
33229 | fi | |
ac1cb8d3 VS |
33230 | rm -f conftest.err conftest.$ac_objext \ |
33231 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33232 | LIBS=$ac_check_lib_save_LIBS |
33233 | fi | |
33234 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
33235 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
33236 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
33237 | ODBC_LINK=" -lodbc" | |
33238 | fi | |
33239 | ||
33240 | ||
33241 | fi | |
33242 | ||
33243 | ||
33244 | fi | |
33245 | ||
33246 | fi | |
33247 | if test "x$ODBC_LINK" = "x" ; then | |
33248 | if test "$wxUSE_ODBC" = "sys" ; then | |
33249 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
33250 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
33251 | { (exit 1); exit 1; }; } | |
33252 | else | |
33253 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
33254 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
33255 | wxUSE_ODBC=builtin | |
33256 | fi | |
33257 | else | |
33258 | wxUSE_ODBC=sys | |
33259 | fi | |
33260 | fi | |
a848cd7e | 33261 | |
2da0c077 RD |
33262 | if test "$wxUSE_ODBC" = "builtin" ; then |
33263 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
33264 | #define wxUSE_BUILTIN_IODBC 1 |
33265 | _ACEOF | |
33266 | ||
a848cd7e SC |
33267 | fi |
33268 | fi | |
33269 | ||
2da0c077 RD |
33270 | if test "$wxUSE_ODBC" != "no" ; then |
33271 | cat >>confdefs.h <<\_ACEOF | |
33272 | #define wxUSE_ODBC 1 | |
33273 | _ACEOF | |
33274 | ||
33275 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
33276 | ||
5ff751d6 | 33277 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_" |
2da0c077 | 33278 | fi |
a848cd7e | 33279 | |
01cb68df | 33280 | |
a848cd7e | 33281 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 33282 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
33283 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
33284 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
33285 | ||
0ad5d837 VZ |
33286 | ac_find_libraries= |
33287 | for ac_dir in $SEARCH_LIB; | |
33288 | do | |
33289 | for ac_extension in a so sl dylib dll.a; do | |
33290 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
33291 | ac_find_libraries=$ac_dir | |
33292 | break 2 | |
33293 | fi | |
33294 | done | |
33295 | done | |
33296 | ||
a848cd7e SC |
33297 | if test "$ac_find_libraries" != "" ; then |
33298 | ||
0ad5d837 | 33299 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
33300 | ac_path_to_link="" |
33301 | else | |
0ad5d837 VZ |
33302 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
33303 | result=$? | |
33304 | if test $result = 0; then | |
33305 | ac_path_to_link="" | |
33306 | else | |
33307 | ac_path_to_link=" -L$ac_find_libraries" | |
33308 | fi | |
a848cd7e SC |
33309 | fi |
33310 | ||
33311 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
33312 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
33313 | fi | |
33314 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
33315 | echo "$as_me:$LINENO: result: yes" >&5 | |
33316 | echo "${ECHO_T}yes" >&6 | |
33317 | ||
33318 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
33319 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
33320 | ||
0ad5d837 VZ |
33321 | ac_find_libraries= |
33322 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 33323 | do |
3eca31dc | 33324 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
33325 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
33326 | ac_find_libraries=$ac_dir | |
33327 | break 2 | |
33328 | fi | |
33329 | done | |
33330 | done | |
33331 | ||
33332 | if test "$ac_find_libraries" != "" ; then | |
33333 | echo "$as_me:$LINENO: result: yes" >&5 | |
33334 | echo "${ECHO_T}yes" >&6 | |
33335 | ||
33336 | for ac_header in X11/extensions/xf86vmode.h | |
33337 | do | |
33338 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33339 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33340 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33341 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33343 | else | |
33344 | cat >conftest.$ac_ext <<_ACEOF | |
33345 | /* confdefs.h. */ | |
33346 | _ACEOF | |
33347 | cat confdefs.h >>conftest.$ac_ext | |
33348 | cat >>conftest.$ac_ext <<_ACEOF | |
33349 | /* end confdefs.h. */ | |
33350 | ||
33351 | #if HAVE_X11_XLIB_H | |
33352 | #include <X11/Xlib.h> | |
33353 | #endif | |
33354 | ||
33355 | ||
33356 | #include <$ac_header> | |
33357 | _ACEOF | |
33358 | rm -f conftest.$ac_objext | |
33359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33360 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33361 | ac_status=$? |
ac1cb8d3 VS |
33362 | grep -v '^ *+' conftest.er1 >conftest.err |
33363 | rm -f conftest.er1 | |
33364 | cat conftest.err >&5 | |
a848cd7e SC |
33365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33366 | (exit $ac_status); } && | |
bb9e79c0 | 33367 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33369 | (eval $ac_try) 2>&5 | |
33370 | ac_status=$? | |
33371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33372 | (exit $ac_status); }; } && | |
33373 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33375 | (eval $ac_try) 2>&5 | |
33376 | ac_status=$? | |
33377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33378 | (exit $ac_status); }; }; then | |
33379 | eval "$as_ac_Header=yes" | |
33380 | else | |
33381 | echo "$as_me: failed program was:" >&5 | |
33382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33383 | ||
33384 | eval "$as_ac_Header=no" | |
33385 | fi | |
ac1cb8d3 | 33386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33387 | fi |
33388 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33389 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33390 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33391 | cat >>confdefs.h <<_ACEOF | |
33392 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33393 | _ACEOF | |
33394 | ||
33395 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
33396 | ||
33397 | fi | |
33398 | ||
33399 | done | |
33400 | ||
33401 | else | |
33402 | echo "$as_me:$LINENO: result: no" >&5 | |
33403 | echo "${ECHO_T}no" >&6 | |
33404 | fi | |
33405 | ||
33406 | else | |
33407 | echo "$as_me:$LINENO: result: no" >&5 | |
33408 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
33409 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
33410 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
33411 | wxUSE_DISPLAY="no" |
33412 | fi | |
01cb68df RG |
33413 | elif test "$wxUSE_MSW" = 1; then |
33414 | ||
e5efa97e | 33415 | for ac_header in ddraw.h |
01cb68df RG |
33416 | do |
33417 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 33418 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
33419 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
33420 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 33422 | else |
5294a27e | 33423 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
33424 | /* confdefs.h. */ |
33425 | _ACEOF | |
33426 | cat confdefs.h >>conftest.$ac_ext | |
33427 | cat >>conftest.$ac_ext <<_ACEOF | |
33428 | /* end confdefs.h. */ | |
5294a27e VZ |
33429 | #include <windows.h> |
33430 | ||
01cb68df RG |
33431 | #include <$ac_header> |
33432 | _ACEOF | |
33433 | rm -f conftest.$ac_objext | |
33434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33435 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 33436 | ac_status=$? |
ac1cb8d3 VS |
33437 | grep -v '^ *+' conftest.er1 >conftest.err |
33438 | rm -f conftest.er1 | |
33439 | cat conftest.err >&5 | |
01cb68df RG |
33440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33441 | (exit $ac_status); } && | |
bb9e79c0 | 33442 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33444 | (eval $ac_try) 2>&5 | |
33445 | ac_status=$? | |
33446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33447 | (exit $ac_status); }; } && | |
33448 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
33449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33450 | (eval $ac_try) 2>&5 | |
33451 | ac_status=$? | |
33452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33453 | (exit $ac_status); }; }; then | |
5294a27e | 33454 | eval "$as_ac_Header=yes" |
01cb68df RG |
33455 | else |
33456 | echo "$as_me: failed program was:" >&5 | |
33457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33458 | ||
5294a27e | 33459 | eval "$as_ac_Header=no" |
01cb68df | 33460 | fi |
ac1cb8d3 | 33461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
33462 | fi |
33463 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33464 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
33465 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
33466 | cat >>confdefs.h <<_ACEOF | |
33467 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33468 | _ACEOF | |
33469 | ||
01cb68df RG |
33470 | fi |
33471 | ||
33472 | done | |
33473 | ||
a848cd7e SC |
33474 | fi |
33475 | fi | |
33476 | ||
88bbc332 RR |
33477 | if test "$wxUSE_DETECT_SM" = "yes"; then |
33478 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then | |
33479 | echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5 | |
33480 | echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6 | |
33481 | ||
33482 | ac_find_libraries= | |
33483 | for ac_dir in $SEARCH_LIB; | |
33484 | do | |
33485 | for ac_extension in a so sl dylib dll.a; do | |
33486 | if test -f "$ac_dir/libSM.$ac_extension"; then | |
33487 | ac_find_libraries=$ac_dir | |
33488 | break 2 | |
33489 | fi | |
33490 | done | |
33491 | done | |
33492 | ||
33493 | if test "$ac_find_libraries" != "" ; then | |
33494 | ||
33495 | if test "$ac_find_libraries" = "default location"; then | |
33496 | ac_path_to_link="" | |
33497 | else | |
33498 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
33499 | result=$? | |
33500 | if test $result = 0; then | |
33501 | ac_path_to_link="" | |
33502 | else | |
33503 | ac_path_to_link=" -L$ac_find_libraries" | |
33504 | fi | |
33505 | fi | |
33506 | ||
33507 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
33508 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
33509 | fi | |
33510 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM" | |
33511 | echo "$as_me:$LINENO: result: yes" >&5 | |
33512 | echo "${ECHO_T}yes" >&6 | |
33513 | else | |
33514 | echo "$as_me:$LINENO: result: no" >&5 | |
33515 | echo "${ECHO_T}no" >&6 | |
33516 | { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5 | |
33517 | echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;} | |
33518 | wxUSE_DETECT_SM="no" | |
33519 | fi | |
33520 | else | |
33521 | wxUSE_DETECT_SM="no" | |
33522 | fi | |
33523 | fi | |
33524 | ||
33525 | ||
a848cd7e SC |
33526 | |
33527 | USE_OPENGL=0 | |
33528 | if test "$wxUSE_OPENGL" = "yes"; then | |
33529 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
33530 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
33531 | elif test "$wxUSE_MSW" = 1; then | |
33532 | OPENGL_LIBS="-lopengl32 -lglu32" | |
33533 | else | |
e541dae0 VZ |
33534 | echo "$as_me:$LINENO: checking for OpenGL headers" >&5 |
33535 | echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6 | |
a848cd7e | 33536 | |
a848cd7e | 33537 | ac_find_includes= |
02b05020 | 33538 | for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include; |
a848cd7e SC |
33539 | do |
33540 | if test -f "$ac_dir/GL/gl.h"; then | |
33541 | ac_find_includes=$ac_dir | |
33542 | break | |
33543 | fi | |
33544 | done | |
33545 | ||
33546 | if test "$ac_find_includes" != "" ; then | |
33547 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
33548 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
33549 | ||
33550 | if test "x$ac_find_includes" = "x/usr/include"; then | |
33551 | ac_path_to_include="" | |
33552 | else | |
33553 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
33554 | result=$? | |
33555 | if test $result = 0; then | |
33556 | ac_path_to_include="" | |
33557 | else | |
33558 | ac_path_to_include=" -I$ac_find_includes" | |
33559 | fi | |
33560 | fi | |
33561 | ||
c92ad099 | 33562 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" |
e541dae0 VZ |
33563 | else |
33564 | echo "$as_me:$LINENO: result: not found" >&5 | |
33565 | echo "${ECHO_T}not found" >&6 | |
a848cd7e SC |
33566 | fi |
33567 | ||
33568 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
33569 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
33570 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
33571 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
33572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33573 | fi | |
33574 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
33575 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
33576 | else | |
33577 | # Is the header compilable? | |
33578 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
33579 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
33580 | cat >conftest.$ac_ext <<_ACEOF | |
33581 | /* confdefs.h. */ | |
33582 | _ACEOF | |
33583 | cat confdefs.h >>conftest.$ac_ext | |
33584 | cat >>conftest.$ac_ext <<_ACEOF | |
33585 | /* end confdefs.h. */ | |
33586 | $ac_includes_default | |
33587 | #include <GL/gl.h> | |
33588 | _ACEOF | |
33589 | rm -f conftest.$ac_objext | |
33590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33591 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33592 | ac_status=$? |
ac1cb8d3 VS |
33593 | grep -v '^ *+' conftest.er1 >conftest.err |
33594 | rm -f conftest.er1 | |
33595 | cat conftest.err >&5 | |
a848cd7e SC |
33596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33597 | (exit $ac_status); } && | |
bb9e79c0 | 33598 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33600 | (eval $ac_try) 2>&5 | |
33601 | ac_status=$? | |
33602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33603 | (exit $ac_status); }; } && | |
33604 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33606 | (eval $ac_try) 2>&5 | |
33607 | ac_status=$? | |
33608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33609 | (exit $ac_status); }; }; then | |
33610 | ac_header_compiler=yes | |
33611 | else | |
33612 | echo "$as_me: failed program was:" >&5 | |
33613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33614 | ||
33615 | ac_header_compiler=no | |
33616 | fi | |
ac1cb8d3 | 33617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33618 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33619 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33620 | ||
33621 | # Is the header present? | |
33622 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
33623 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
33624 | cat >conftest.$ac_ext <<_ACEOF | |
33625 | /* confdefs.h. */ | |
33626 | _ACEOF | |
33627 | cat confdefs.h >>conftest.$ac_ext | |
33628 | cat >>conftest.$ac_ext <<_ACEOF | |
33629 | /* end confdefs.h. */ | |
33630 | #include <GL/gl.h> | |
33631 | _ACEOF | |
33632 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33633 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33634 | ac_status=$? | |
33635 | grep -v '^ *+' conftest.er1 >conftest.err | |
33636 | rm -f conftest.er1 | |
33637 | cat conftest.err >&5 | |
33638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33639 | (exit $ac_status); } >/dev/null; then | |
33640 | if test -s conftest.err; then | |
5d7b7554 VZ |
33641 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
33642 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
33643 | else |
33644 | ac_cpp_err= | |
33645 | fi | |
33646 | else | |
33647 | ac_cpp_err=yes | |
33648 | fi | |
33649 | if test -z "$ac_cpp_err"; then | |
33650 | ac_header_preproc=yes | |
33651 | else | |
33652 | echo "$as_me: failed program was:" >&5 | |
33653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33654 | ||
33655 | ac_header_preproc=no | |
33656 | fi | |
33657 | rm -f conftest.err conftest.$ac_ext | |
33658 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33659 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33660 | ||
33661 | # So? What about this header? | |
5d7b7554 | 33662 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 33663 | yes:no: ) |
a848cd7e SC |
33664 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
33665 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33666 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
33667 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
33668 | ac_header_preproc=yes | |
a848cd7e | 33669 | ;; |
ac1cb8d3 | 33670 | no:yes:* ) |
a848cd7e SC |
33671 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
33672 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33673 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
33674 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
33675 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
33676 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
33677 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
33678 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33679 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
33680 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33681 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
33682 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33683 | ( |
33684 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33685 | ## ----------------------------------------- ## |
33686 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33687 | ## ----------------------------------------- ## | |
a848cd7e SC |
33688 | _ASBOX |
33689 | ) | | |
33690 | sed "s/^/$as_me: WARNING: /" >&2 | |
33691 | ;; | |
33692 | esac | |
33693 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
33694 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
33695 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
33696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33697 | else | |
33698 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
33699 | fi | |
33700 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
33701 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
33702 | ||
33703 | fi | |
33704 | if test $ac_cv_header_GL_gl_h = yes; then | |
33705 | ||
5dfc7e56 VZ |
33706 | if test "${ac_cv_header_GL_glu_h+set}" = set; then |
33707 | echo "$as_me:$LINENO: checking for GL/glu.h" >&5 | |
33708 | echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6 | |
33709 | if test "${ac_cv_header_GL_glu_h+set}" = set; then | |
33710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33711 | fi | |
33712 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5 | |
33713 | echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6 | |
33714 | else | |
33715 | # Is the header compilable? | |
33716 | echo "$as_me:$LINENO: checking GL/glu.h usability" >&5 | |
33717 | echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6 | |
33718 | cat >conftest.$ac_ext <<_ACEOF | |
33719 | /* confdefs.h. */ | |
33720 | _ACEOF | |
33721 | cat confdefs.h >>conftest.$ac_ext | |
33722 | cat >>conftest.$ac_ext <<_ACEOF | |
33723 | /* end confdefs.h. */ | |
33724 | $ac_includes_default | |
33725 | #include <GL/glu.h> | |
33726 | _ACEOF | |
33727 | rm -f conftest.$ac_objext | |
33728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33729 | (eval $ac_compile) 2>conftest.er1 | |
33730 | ac_status=$? | |
33731 | grep -v '^ *+' conftest.er1 >conftest.err | |
33732 | rm -f conftest.er1 | |
33733 | cat conftest.err >&5 | |
33734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33735 | (exit $ac_status); } && | |
33736 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
33737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33738 | (eval $ac_try) 2>&5 | |
33739 | ac_status=$? | |
33740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33741 | (exit $ac_status); }; } && | |
33742 | { ac_try='test -s conftest.$ac_objext' | |
33743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33744 | (eval $ac_try) 2>&5 | |
33745 | ac_status=$? | |
33746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33747 | (exit $ac_status); }; }; then | |
33748 | ac_header_compiler=yes | |
33749 | else | |
33750 | echo "$as_me: failed program was:" >&5 | |
33751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33752 | ||
33753 | ac_header_compiler=no | |
33754 | fi | |
33755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33756 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
33757 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33758 | ||
33759 | # Is the header present? | |
33760 | echo "$as_me:$LINENO: checking GL/glu.h presence" >&5 | |
33761 | echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6 | |
33762 | cat >conftest.$ac_ext <<_ACEOF | |
33763 | /* confdefs.h. */ | |
33764 | _ACEOF | |
33765 | cat confdefs.h >>conftest.$ac_ext | |
33766 | cat >>conftest.$ac_ext <<_ACEOF | |
33767 | /* end confdefs.h. */ | |
33768 | #include <GL/glu.h> | |
33769 | _ACEOF | |
33770 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33771 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33772 | ac_status=$? | |
33773 | grep -v '^ *+' conftest.er1 >conftest.err | |
33774 | rm -f conftest.er1 | |
33775 | cat conftest.err >&5 | |
33776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33777 | (exit $ac_status); } >/dev/null; then | |
33778 | if test -s conftest.err; then | |
33779 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
33780 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
33781 | else | |
33782 | ac_cpp_err= | |
33783 | fi | |
33784 | else | |
33785 | ac_cpp_err=yes | |
33786 | fi | |
33787 | if test -z "$ac_cpp_err"; then | |
33788 | ac_header_preproc=yes | |
33789 | else | |
33790 | echo "$as_me: failed program was:" >&5 | |
33791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33792 | ||
33793 | ac_header_preproc=no | |
33794 | fi | |
33795 | rm -f conftest.err conftest.$ac_ext | |
33796 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33797 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33798 | ||
33799 | # So? What about this header? | |
33800 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
33801 | yes:no: ) | |
33802 | { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
33803 | echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
33804 | { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5 | |
33805 | echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;} | |
33806 | ac_header_preproc=yes | |
33807 | ;; | |
33808 | no:yes:* ) | |
33809 | { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5 | |
33810 | echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;} | |
33811 | { echo "$as_me:$LINENO: WARNING: GL/glu.h: check for missing prerequisite headers?" >&5 | |
33812 | echo "$as_me: WARNING: GL/glu.h: check for missing prerequisite headers?" >&2;} | |
33813 | { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5 | |
33814 | echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;} | |
33815 | { echo "$as_me:$LINENO: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&5 | |
33816 | echo "$as_me: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
33817 | { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5 | |
33818 | echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;} | |
33819 | { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5 | |
33820 | echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;} | |
33821 | ( | |
33822 | cat <<\_ASBOX | |
33823 | ## ----------------------------------------- ## | |
33824 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33825 | ## ----------------------------------------- ## | |
33826 | _ASBOX | |
33827 | ) | | |
33828 | sed "s/^/$as_me: WARNING: /" >&2 | |
33829 | ;; | |
33830 | esac | |
33831 | echo "$as_me:$LINENO: checking for GL/glu.h" >&5 | |
33832 | echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6 | |
33833 | if test "${ac_cv_header_GL_glu_h+set}" = set; then | |
33834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33835 | else | |
33836 | ac_cv_header_GL_glu_h=$ac_header_preproc | |
33837 | fi | |
33838 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5 | |
33839 | echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6 | |
33840 | ||
33841 | fi | |
33842 | if test $ac_cv_header_GL_glu_h = yes; then | |
33843 | ||
a848cd7e SC |
33844 | found_gl=0 |
33845 | ||
33846 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
33847 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
33848 | ||
0ad5d837 | 33849 | ac_find_libraries= |
02b05020 | 33850 | for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib; |
a848cd7e | 33851 | do |
3eca31dc | 33852 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
33853 | if test -f "$ac_dir/libGL.$ac_extension"; then |
33854 | ac_find_libraries=$ac_dir | |
33855 | break 2 | |
33856 | fi | |
33857 | done | |
33858 | done | |
33859 | ||
33860 | if test "$ac_find_libraries" != "" ; then | |
02b05020 VZ |
33861 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
33862 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
69120ee4 | 33863 | |
a848cd7e | 33864 | |
0ad5d837 | 33865 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
33866 | ac_path_to_link="" |
33867 | else | |
0ad5d837 VZ |
33868 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
33869 | result=$? | |
33870 | if test $result = 0; then | |
33871 | ac_path_to_link="" | |
33872 | else | |
33873 | ac_path_to_link=" -L$ac_find_libraries" | |
33874 | fi | |
a848cd7e SC |
33875 | fi |
33876 | ||
33877 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
33878 | LDFLAGS_GL="$ac_path_to_link" | |
33879 | fi | |
33880 | ||
69120ee4 VZ |
33881 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
33882 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 33883 | |
0ad5d837 VZ |
33884 | ac_find_libraries= |
33885 | for ac_dir in $SEARCH_LIB; | |
33886 | do | |
33887 | for ac_extension in a so sl dylib dll.a; do | |
33888 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
33889 | ac_find_libraries=$ac_dir | |
33890 | break 2 | |
33891 | fi | |
33892 | done | |
33893 | done | |
33894 | ||
a848cd7e SC |
33895 | if test "$ac_find_libraries" != "" ; then |
33896 | ||
0ad5d837 | 33897 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
33898 | ac_path_to_link="" |
33899 | else | |
0ad5d837 VZ |
33900 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
33901 | result=$? | |
33902 | if test $result = 0; then | |
33903 | ac_path_to_link="" | |
33904 | else | |
33905 | ac_path_to_link=" -L$ac_find_libraries" | |
33906 | fi | |
a848cd7e SC |
33907 | fi |
33908 | ||
33909 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
33910 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
33911 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
33912 | fi | |
33913 | ||
33914 | found_gl=1 | |
33915 | OPENGL_LIBS="-lGL -lGLU" | |
33916 | echo "$as_me:$LINENO: result: yes" >&5 | |
33917 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
33918 | else |
33919 | echo "$as_me:$LINENO: result: no" >&5 | |
33920 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 33921 | fi |
69120ee4 VZ |
33922 | else |
33923 | echo "$as_me:$LINENO: result: no" >&5 | |
33924 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
33925 | fi |
33926 | ||
33927 | if test "$found_gl" != 1; then | |
a848cd7e SC |
33928 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
33929 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
33930 | ||
0ad5d837 VZ |
33931 | ac_find_libraries= |
33932 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 33933 | do |
3eca31dc | 33934 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
33935 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
33936 | ac_find_libraries=$ac_dir | |
33937 | break 2 | |
33938 | fi | |
33939 | done | |
33940 | done | |
33941 | ||
33942 | if test "$ac_find_libraries" != "" ; then | |
33943 | ||
0ad5d837 | 33944 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
33945 | ac_path_to_link="" |
33946 | else | |
0ad5d837 VZ |
33947 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
33948 | result=$? | |
33949 | if test $result = 0; then | |
33950 | ac_path_to_link="" | |
33951 | else | |
33952 | ac_path_to_link=" -L$ac_find_libraries" | |
33953 | fi | |
a848cd7e SC |
33954 | fi |
33955 | ||
33956 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
33957 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
33958 | echo "$as_me:$LINENO: result: yes" >&5 | |
33959 | echo "${ECHO_T}yes" >&6 | |
33960 | else | |
33961 | echo "$as_me:$LINENO: result: no" >&5 | |
33962 | echo "${ECHO_T}no" >&6 | |
33963 | fi | |
33964 | fi | |
33965 | ||
33966 | fi | |
33967 | ||
33968 | ||
33969 | ||
5dfc7e56 VZ |
33970 | fi |
33971 | ||
33972 | ||
33973 | ||
a848cd7e SC |
33974 | if test "x$OPENGL_LIBS" = "x"; then |
33975 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
33976 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
33977 | { (exit 1); exit 1; }; } | |
33978 | fi | |
33979 | fi | |
33980 | ||
33981 | if test "$wxUSE_OPENGL" = "yes"; then | |
33982 | USE_OPENGL=1 | |
33983 | cat >>confdefs.h <<\_ACEOF | |
33984 | #define wxUSE_OPENGL 1 | |
33985 | _ACEOF | |
33986 | ||
33987 | cat >>confdefs.h <<\_ACEOF | |
33988 | #define wxUSE_GLCANVAS 1 | |
33989 | _ACEOF | |
33990 | ||
33991 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
33992 | fi | |
33993 | fi | |
33994 | ||
a848cd7e SC |
33995 | |
33996 | if test -n "$TOOLKIT" ; then | |
33997 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
33998 | fi | |
33999 | ||
a848cd7e SC |
34000 | |
34001 | ||
34002 | if test "$wxUSE_SHARED" = "yes"; then | |
34003 | case "${host}" in | |
34004 | *-pc-msdosdjgpp ) | |
34005 | wxUSE_SHARED=no | |
34006 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
34007 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
34008 | ;; | |
34009 | esac | |
34010 | fi | |
34011 | ||
a848cd7e | 34012 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
34013 | |
34014 | ||
34015 | found_versioning=no | |
34016 | ||
34017 | ||
34018 | if test $found_versioning = no ; then | |
34019 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
34020 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
34021 | if test "${wx_cv_version_script+set}" = set; then | |
34022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34023 | else | |
34024 | ||
34025 | echo "VER_1 { *; };" >conftest.sym | |
34026 | echo "int main() { return 0; }" >conftest.cpp | |
34027 | ||
34028 | if { ac_try=' | |
34029 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
34030 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
34031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34032 | (eval $ac_try) 2>&5 | |
34033 | ac_status=$? | |
34034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34035 | (exit $ac_status); }; } ; then | |
34036 | if test -s conftest.stderr ; then | |
34037 | wx_cv_version_script=no | |
34038 | else | |
34039 | wx_cv_version_script=yes | |
34040 | fi | |
34041 | else | |
34042 | wx_cv_version_script=no | |
34043 | fi | |
e5d4b470 MW |
34044 | |
34045 | if test $wx_cv_version_script = yes | |
34046 | then | |
34047 | echo "struct B { virtual ~B() { } }; \ | |
34048 | struct D : public B { }; \ | |
34049 | void F() { D d; }" > conftest.cpp | |
34050 | ||
34051 | if { ac_try=' | |
34052 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
34053 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
34054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34055 | (eval $ac_try) 2>&5 | |
34056 | ac_status=$? | |
34057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34058 | (exit $ac_status); }; } && | |
34059 | { ac_try=' | |
34060 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
34061 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
34062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34063 | (eval $ac_try) 2>&5 | |
34064 | ac_status=$? | |
34065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34066 | (exit $ac_status); }; } | |
34067 | then | |
34068 | if { ac_try=' | |
34069 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
34070 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
34071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34072 | (eval $ac_try) 2>&5 | |
34073 | ac_status=$? | |
34074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34075 | (exit $ac_status); }; } | |
34076 | then | |
34077 | wx_cv_version_script=yes | |
34078 | else | |
34079 | wx_cv_version_script=no | |
34080 | fi | |
34081 | fi | |
34082 | fi | |
34083 | ||
a848cd7e | 34084 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 34085 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
34086 | |
34087 | fi | |
34088 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
34089 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
34090 | if test $wx_cv_version_script = yes ; then | |
02b05020 | 34091 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script" |
a848cd7e SC |
34092 | fi |
34093 | fi | |
34094 | ||
34095 | ||
34096 | case "${host}" in | |
34097 | *-*-linux* | *-*-gnu* ) | |
02b05020 | 34098 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib" |
ffa0583f | 34099 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 34100 | ;; |
a848cd7e SC |
34101 | |
34102 | *-*-solaris2* ) | |
34103 | if test "$GCC" = yes ; then | |
c92ad099 | 34104 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
a848cd7e SC |
34105 | |
34106 | saveLdflags="$LDFLAGS" | |
34107 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
34108 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
34109 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
34110 | cat >conftest.$ac_ext <<_ACEOF | |
34111 | /* confdefs.h. */ | |
34112 | _ACEOF | |
34113 | cat confdefs.h >>conftest.$ac_ext | |
34114 | cat >>conftest.$ac_ext <<_ACEOF | |
34115 | /* end confdefs.h. */ | |
34116 | ||
34117 | int | |
34118 | main () | |
34119 | { | |
34120 | ||
34121 | ; | |
34122 | return 0; | |
34123 | } | |
34124 | _ACEOF | |
34125 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34127 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34128 | ac_status=$? |
ac1cb8d3 VS |
34129 | grep -v '^ *+' conftest.er1 >conftest.err |
34130 | rm -f conftest.er1 | |
34131 | cat conftest.err >&5 | |
a848cd7e SC |
34132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34133 | (exit $ac_status); } && | |
bb9e79c0 | 34134 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34136 | (eval $ac_try) 2>&5 | |
34137 | ac_status=$? | |
34138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34139 | (exit $ac_status); }; } && | |
34140 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34142 | (eval $ac_try) 2>&5 | |
34143 | ac_status=$? | |
34144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34145 | (exit $ac_status); }; }; then | |
34146 | ||
34147 | echo "$as_me:$LINENO: result: yes" >&5 | |
34148 | echo "${ECHO_T}yes" >&6 | |
02b05020 | 34149 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib" |
ffa0583f | 34150 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
34151 | |
34152 | else | |
34153 | echo "$as_me: failed program was:" >&5 | |
34154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34155 | ||
34156 | ||
34157 | echo "$as_me:$LINENO: result: no" >&5 | |
34158 | echo "${ECHO_T}no" >&6 | |
34159 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
34160 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
34161 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
34162 | cat >conftest.$ac_ext <<_ACEOF | |
34163 | /* confdefs.h. */ | |
34164 | _ACEOF | |
34165 | cat confdefs.h >>conftest.$ac_ext | |
34166 | cat >>conftest.$ac_ext <<_ACEOF | |
34167 | /* end confdefs.h. */ | |
34168 | ||
34169 | int | |
34170 | main () | |
34171 | { | |
34172 | ||
34173 | ; | |
34174 | return 0; | |
34175 | } | |
34176 | _ACEOF | |
34177 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34179 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34180 | ac_status=$? |
ac1cb8d3 VS |
34181 | grep -v '^ *+' conftest.er1 >conftest.err |
34182 | rm -f conftest.er1 | |
34183 | cat conftest.err >&5 | |
a848cd7e SC |
34184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34185 | (exit $ac_status); } && | |
bb9e79c0 | 34186 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34188 | (eval $ac_try) 2>&5 | |
34189 | ac_status=$? | |
34190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34191 | (exit $ac_status); }; } && | |
34192 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34194 | (eval $ac_try) 2>&5 | |
34195 | ac_status=$? | |
34196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34197 | (exit $ac_status); }; }; then | |
34198 | ||
ffa0583f | 34199 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 34200 | echo "${ECHO_T}yes" >&6 |
02b05020 | 34201 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib" |
ffa0583f RL |
34202 | WXCONFIG_RPATH="-Wl,-R,\$libdir" |
34203 | ||
a848cd7e SC |
34204 | else |
34205 | echo "$as_me: failed program was:" >&5 | |
34206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34207 | ||
34208 | ||
34209 | echo "$as_me:$LINENO: result: no" >&5 | |
34210 | echo "${ECHO_T}no" >&6 | |
34211 | ||
34212 | fi | |
ac1cb8d3 VS |
34213 | rm -f conftest.err conftest.$ac_objext \ |
34214 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34215 | |
34216 | fi | |
ac1cb8d3 VS |
34217 | rm -f conftest.err conftest.$ac_objext \ |
34218 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34219 | LDFLAGS="$saveLdflags" |
34220 | else | |
02b05020 | 34221 | SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib" |
ffa0583f | 34222 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
34223 | fi |
34224 | ;; | |
34225 | ||
cfda0ea8 | 34226 | *-*-darwin* ) |
0caebc27 MW |
34227 | install_name_tool=`which install_name_tool` |
34228 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
02b05020 | 34229 | SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@" |
0caebc27 | 34230 | cat <<EOF >change-install-names |
a848cd7e SC |
34231 | #!/bin/sh |
34232 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
34233 | inst_cmd="install_name_tool " | |
34234 | for i in \${libnames} ; do | |
34235 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
34236 | done | |
34237 | \${inst_cmd} \${3} | |
34238 | EOF | |
0caebc27 MW |
34239 | chmod +x change-install-names |
34240 | fi | |
a848cd7e SC |
34241 | ;; |
34242 | ||
34243 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 VZ |
34244 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
34245 | ;; | |
a848cd7e | 34246 | |
81f90336 | 34247 | *-*-hpux* ) |
02b05020 | 34248 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib" |
81f90336 | 34249 | WXCONFIG_RPATH="-Wl,+b,\$libdir" |
5ff751d6 | 34250 | ;; |
81f90336 | 34251 | |
a848cd7e | 34252 | esac |
ceec2216 | 34253 | |
ffa0583f RL |
34254 | if test $wxUSE_RPATH = "no"; then |
34255 | SAMPLES_RPATH_FLAG='' | |
34256 | SAMPLES_RPATH_POSTLINK='' | |
34257 | WXCONFIG_RPATH='' | |
34258 | fi | |
34259 | ||
34260 | SHARED=1 | |
34261 | ||
34262 | else | |
34263 | ||
ceec2216 RL |
34264 | config_linkage_component="-static" |
34265 | SHARED=0 | |
ffa0583f | 34266 | |
ceec2216 | 34267 | fi |
a848cd7e | 34268 | |
a848cd7e | 34269 | |
ceec2216 RL |
34270 | UNICODE=0 |
34271 | lib_unicode_suffix= | |
34272 | WX_CHARTYPE="ansi" | |
34273 | if test "$wxUSE_UNICODE" = "yes"; then | |
34274 | lib_unicode_suffix=u | |
34275 | WX_CHARTYPE="unicode" | |
34276 | UNICODE=1 | |
a848cd7e SC |
34277 | fi |
34278 | ||
ceec2216 RL |
34279 | lib_debug_suffix= |
34280 | WX_DEBUGTYPE="release" | |
34281 | DEBUG_FLAG=0 | |
34282 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
34283 | lib_debug_suffix=d | |
34284 | WX_DEBUGTYPE="debug" | |
34285 | DEBUG_FLAG=1 | |
34286 | fi | |
a848cd7e | 34287 | |
ceec2216 RL |
34288 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
34289 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 34290 | |
ceec2216 RL |
34291 | DEBUG_INFO=0 |
34292 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
34293 | DEBUG_INFO=1 | |
34294 | fi | |
a848cd7e | 34295 | |
ceec2216 | 34296 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 34297 | |
ceec2216 | 34298 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 34299 | |
ceec2216 | 34300 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 34301 | |
ceec2216 RL |
34302 | if test "$cross_compiling" = "yes"; then |
34303 | HOST_SUFFIX="-$host_alias" | |
34304 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
34305 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
34306 | fi |
34307 | ||
dd21ced8 | 34308 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
34309 | if test "${TOOLKIT_DIR}" = "os2"; then |
34310 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
34311 | else | |
34312 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
34313 | fi | |
ceec2216 RL |
34314 | |
34315 | ||
34316 | ||
1d1af5ea DE |
34317 | if test "$wxUSE_COCOA" = 1; then |
34318 | ||
34319 | ||
34320 | ac_ext=c | |
34321 | ac_cpp='$CPP $CPPFLAGS' | |
34322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34325 | ||
34326 | ac_ext=m | |
34327 | ||
34328 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
34329 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
34330 | cat >conftest.$ac_ext <<_ACEOF | |
34331 | /* confdefs.h. */ | |
34332 | _ACEOF | |
34333 | cat confdefs.h >>conftest.$ac_ext | |
34334 | cat >>conftest.$ac_ext <<_ACEOF | |
34335 | /* end confdefs.h. */ | |
34336 | #include <AppKit/NSEvent.h> | |
34337 | #include <CoreFoundation/CoreFoundation.h> | |
34338 | ||
34339 | int | |
34340 | main () | |
34341 | { | |
34342 | ||
34343 | ; | |
34344 | return 0; | |
34345 | } | |
34346 | _ACEOF | |
34347 | rm -f conftest.$ac_objext | |
34348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34349 | (eval $ac_compile) 2>conftest.er1 | |
34350 | ac_status=$? | |
34351 | grep -v '^ *+' conftest.er1 >conftest.err | |
34352 | rm -f conftest.er1 | |
34353 | cat conftest.err >&5 | |
34354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34355 | (exit $ac_status); } && | |
bb9e79c0 | 34356 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
34357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34358 | (eval $ac_try) 2>&5 | |
34359 | ac_status=$? | |
34360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34361 | (exit $ac_status); }; } && | |
34362 | { ac_try='test -s conftest.$ac_objext' | |
34363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34364 | (eval $ac_try) 2>&5 | |
34365 | ac_status=$? | |
34366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34367 | (exit $ac_status); }; }; then | |
34368 | echo "$as_me:$LINENO: result: no" >&5 | |
34369 | echo "${ECHO_T}no" >&6 | |
34370 | else | |
34371 | echo "$as_me: failed program was:" >&5 | |
34372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34373 | ||
34374 | echo "$as_me:$LINENO: result: yes" >&5 | |
34375 | echo "${ECHO_T}yes" >&6 | |
34376 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
34377 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
34378 | cat >conftest.$ac_ext <<_ACEOF | |
34379 | /* confdefs.h. */ | |
34380 | _ACEOF | |
34381 | cat confdefs.h >>conftest.$ac_ext | |
34382 | cat >>conftest.$ac_ext <<_ACEOF | |
34383 | /* end confdefs.h. */ | |
34384 | #define __Point__ 1 | |
34385 | #include <AppKit/NSEvent.h> | |
34386 | #include <CoreFoundation/CoreFoundation.h> | |
34387 | ||
34388 | int | |
34389 | main () | |
34390 | { | |
34391 | ||
34392 | ; | |
34393 | return 0; | |
34394 | } | |
34395 | _ACEOF | |
34396 | rm -f conftest.$ac_objext | |
34397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34398 | (eval $ac_compile) 2>conftest.er1 | |
34399 | ac_status=$? | |
34400 | grep -v '^ *+' conftest.er1 >conftest.err | |
34401 | rm -f conftest.er1 | |
34402 | cat conftest.err >&5 | |
34403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34404 | (exit $ac_status); } && | |
bb9e79c0 | 34405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
34406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34407 | (eval $ac_try) 2>&5 | |
34408 | ac_status=$? | |
34409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34410 | (exit $ac_status); }; } && | |
34411 | { ac_try='test -s conftest.$ac_objext' | |
34412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34413 | (eval $ac_try) 2>&5 | |
34414 | ac_status=$? | |
34415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34416 | (exit $ac_status); }; }; then | |
34417 | echo "$as_me:$LINENO: result: yes" >&5 | |
34418 | echo "${ECHO_T}yes" >&6 | |
34419 | cat >>confdefs.h <<\_ACEOF | |
34420 | #define __Point__ 1 | |
34421 | _ACEOF | |
34422 | ||
34423 | ||
34424 | else | |
34425 | echo "$as_me: failed program was:" >&5 | |
34426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34427 | ||
34428 | { { echo "$as_me:$LINENO: error: no | |
34429 | See \`config.log' for more details." >&5 | |
34430 | echo "$as_me: error: no | |
34431 | See \`config.log' for more details." >&2;} | |
34432 | { (exit 1); exit 1; }; } | |
34433 | ||
34434 | fi | |
34435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34436 | ||
34437 | fi | |
34438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
34439 | ac_ext=cc |
34440 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34441 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34442 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34443 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1d1af5ea DE |
34444 | |
34445 | fi | |
34446 | ||
a848cd7e | 34447 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
34448 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
34449 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 34450 | |
02b05020 | 34451 | LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
34452 | |
34453 | # Extract the first word of "Rez", so it can be a program name with args. | |
34454 | set dummy Rez; ac_word=$2 | |
34455 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 34457 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
34458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
34459 | else | |
8ced02f6 DE |
34460 | if test -n "$REZ"; then |
34461 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
34462 | else |
34463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34464 | for as_dir in $PATH | |
34465 | do | |
34466 | IFS=$as_save_IFS | |
34467 | test -z "$as_dir" && as_dir=. | |
34468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34469 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 34470 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
34471 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
34472 | break 2 | |
34473 | fi | |
34474 | done | |
34475 | done | |
34476 | ||
8ced02f6 | 34477 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
34478 | fi |
34479 | fi | |
8ced02f6 DE |
34480 | REZ=$ac_cv_prog_REZ |
34481 | if test -n "$REZ"; then | |
34482 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
34483 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
34484 | else |
34485 | echo "$as_me:$LINENO: result: no" >&5 | |
34486 | echo "${ECHO_T}no" >&6 | |
34487 | fi | |
34488 | ||
34489 | # Extract the first word of "DeRez", so it can be a program name with args. | |
34490 | set dummy DeRez; ac_word=$2 | |
34491 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34493 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
34494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34495 | else | |
34496 | if test -n "$DEREZ"; then | |
34497 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
34498 | else | |
34499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34500 | for as_dir in $PATH | |
34501 | do | |
34502 | IFS=$as_save_IFS | |
34503 | test -z "$as_dir" && as_dir=. | |
34504 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34505 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34506 | ac_cv_prog_DEREZ="DeRez" | |
34507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34508 | break 2 | |
34509 | fi | |
34510 | done | |
34511 | done | |
34512 | ||
34513 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
34514 | fi | |
34515 | fi | |
34516 | DEREZ=$ac_cv_prog_DEREZ | |
34517 | if test -n "$DEREZ"; then | |
34518 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
34519 | echo "${ECHO_T}$DEREZ" >&6 | |
34520 | else | |
34521 | echo "$as_me:$LINENO: result: no" >&5 | |
34522 | echo "${ECHO_T}no" >&6 | |
34523 | fi | |
34524 | ||
34525 | # Extract the first word of "SetFile", so it can be a program name with args. | |
34526 | set dummy SetFile; ac_word=$2 | |
34527 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34528 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34529 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
34530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34531 | else | |
34532 | if test -n "$SETFILE"; then | |
34533 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
34534 | else | |
34535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34536 | for as_dir in $PATH | |
34537 | do | |
34538 | IFS=$as_save_IFS | |
34539 | test -z "$as_dir" && as_dir=. | |
34540 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34541 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34542 | ac_cv_prog_SETFILE="SetFile" | |
34543 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34544 | break 2 | |
34545 | fi | |
34546 | done | |
34547 | done | |
34548 | ||
34549 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
34550 | fi | |
34551 | fi | |
34552 | SETFILE=$ac_cv_prog_SETFILE | |
34553 | if test -n "$SETFILE"; then | |
34554 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
34555 | echo "${ECHO_T}$SETFILE" >&6 | |
34556 | else | |
34557 | echo "$as_me:$LINENO: result: no" >&5 | |
34558 | echo "${ECHO_T}no" >&6 | |
34559 | fi | |
34560 | ||
34561 | ||
34562 | MACSETFILE="\$(SETFILE)" | |
34563 | ||
34564 | if test "$wxUSE_MAC" = 1; then | |
8ced02f6 | 34565 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
004ee6da RL |
34566 | RESCOMP="$REZ" |
34567 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
a848cd7e | 34568 | else |
004ee6da RL |
34569 | POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" |
34570 | RESCOMP="echo -n \| $REZ" | |
34571 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
a848cd7e | 34572 | fi |
004ee6da | 34573 | |
a848cd7e | 34574 | else |
ffa0583f | 34575 | MACSETFILE="@true" |
a848cd7e | 34576 | |
8ced02f6 | 34577 | if test "$wxUSE_PM" = 1; then |
004ee6da RL |
34578 | RESCOMP="emxbind" |
34579 | WXCONFIG_RESFLAGS="-ep" | |
34580 | ||
34581 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
a848cd7e | 34582 | else |
8ced02f6 | 34583 | POSTLINK_COMMAND="@true" |
a848cd7e | 34584 | fi |
004ee6da | 34585 | |
a848cd7e SC |
34586 | fi |
34587 | ||
34588 | ||
34589 | ||
34590 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
34591 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
34592 | if test "${ac_cv_type_mode_t+set}" = set; then | |
34593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34594 | else | |
34595 | cat >conftest.$ac_ext <<_ACEOF | |
34596 | /* confdefs.h. */ | |
34597 | _ACEOF | |
34598 | cat confdefs.h >>conftest.$ac_ext | |
34599 | cat >>conftest.$ac_ext <<_ACEOF | |
34600 | /* end confdefs.h. */ | |
34601 | $ac_includes_default | |
34602 | int | |
34603 | main () | |
34604 | { | |
34605 | if ((mode_t *) 0) | |
34606 | return 0; | |
34607 | if (sizeof (mode_t)) | |
34608 | return 0; | |
34609 | ; | |
34610 | return 0; | |
34611 | } | |
34612 | _ACEOF | |
34613 | rm -f conftest.$ac_objext | |
34614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34615 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34616 | ac_status=$? |
ac1cb8d3 VS |
34617 | grep -v '^ *+' conftest.er1 >conftest.err |
34618 | rm -f conftest.er1 | |
34619 | cat conftest.err >&5 | |
a848cd7e SC |
34620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34621 | (exit $ac_status); } && | |
bb9e79c0 | 34622 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34624 | (eval $ac_try) 2>&5 | |
34625 | ac_status=$? | |
34626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34627 | (exit $ac_status); }; } && | |
34628 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34630 | (eval $ac_try) 2>&5 | |
34631 | ac_status=$? | |
34632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34633 | (exit $ac_status); }; }; then | |
34634 | ac_cv_type_mode_t=yes | |
34635 | else | |
34636 | echo "$as_me: failed program was:" >&5 | |
34637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34638 | ||
34639 | ac_cv_type_mode_t=no | |
34640 | fi | |
ac1cb8d3 | 34641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34642 | fi |
34643 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
34644 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
34645 | if test $ac_cv_type_mode_t = yes; then | |
34646 | : | |
34647 | else | |
34648 | ||
34649 | cat >>confdefs.h <<_ACEOF | |
34650 | #define mode_t int | |
34651 | _ACEOF | |
34652 | ||
34653 | fi | |
34654 | ||
34655 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
34656 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
34657 | if test "${ac_cv_type_off_t+set}" = set; then | |
34658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34659 | else | |
34660 | cat >conftest.$ac_ext <<_ACEOF | |
34661 | /* confdefs.h. */ | |
34662 | _ACEOF | |
34663 | cat confdefs.h >>conftest.$ac_ext | |
34664 | cat >>conftest.$ac_ext <<_ACEOF | |
34665 | /* end confdefs.h. */ | |
34666 | $ac_includes_default | |
34667 | int | |
34668 | main () | |
34669 | { | |
34670 | if ((off_t *) 0) | |
34671 | return 0; | |
34672 | if (sizeof (off_t)) | |
34673 | return 0; | |
34674 | ; | |
34675 | return 0; | |
34676 | } | |
34677 | _ACEOF | |
34678 | rm -f conftest.$ac_objext | |
34679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34680 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34681 | ac_status=$? |
ac1cb8d3 VS |
34682 | grep -v '^ *+' conftest.er1 >conftest.err |
34683 | rm -f conftest.er1 | |
34684 | cat conftest.err >&5 | |
a848cd7e SC |
34685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34686 | (exit $ac_status); } && | |
bb9e79c0 | 34687 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34689 | (eval $ac_try) 2>&5 | |
34690 | ac_status=$? | |
34691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34692 | (exit $ac_status); }; } && | |
34693 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34695 | (eval $ac_try) 2>&5 | |
34696 | ac_status=$? | |
34697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34698 | (exit $ac_status); }; }; then | |
34699 | ac_cv_type_off_t=yes | |
34700 | else | |
34701 | echo "$as_me: failed program was:" >&5 | |
34702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34703 | ||
34704 | ac_cv_type_off_t=no | |
34705 | fi | |
ac1cb8d3 | 34706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34707 | fi |
34708 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
34709 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
34710 | if test $ac_cv_type_off_t = yes; then | |
34711 | : | |
34712 | else | |
34713 | ||
34714 | cat >>confdefs.h <<_ACEOF | |
34715 | #define off_t long | |
34716 | _ACEOF | |
34717 | ||
34718 | fi | |
34719 | ||
34720 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
34721 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
34722 | if test "${ac_cv_type_pid_t+set}" = set; then | |
34723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34724 | else | |
34725 | cat >conftest.$ac_ext <<_ACEOF | |
34726 | /* confdefs.h. */ | |
34727 | _ACEOF | |
34728 | cat confdefs.h >>conftest.$ac_ext | |
34729 | cat >>conftest.$ac_ext <<_ACEOF | |
34730 | /* end confdefs.h. */ | |
34731 | $ac_includes_default | |
34732 | int | |
34733 | main () | |
34734 | { | |
34735 | if ((pid_t *) 0) | |
34736 | return 0; | |
34737 | if (sizeof (pid_t)) | |
34738 | return 0; | |
34739 | ; | |
34740 | return 0; | |
34741 | } | |
34742 | _ACEOF | |
34743 | rm -f conftest.$ac_objext | |
34744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34745 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34746 | ac_status=$? |
ac1cb8d3 VS |
34747 | grep -v '^ *+' conftest.er1 >conftest.err |
34748 | rm -f conftest.er1 | |
34749 | cat conftest.err >&5 | |
a848cd7e SC |
34750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34751 | (exit $ac_status); } && | |
bb9e79c0 | 34752 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34754 | (eval $ac_try) 2>&5 | |
34755 | ac_status=$? | |
34756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34757 | (exit $ac_status); }; } && | |
34758 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34760 | (eval $ac_try) 2>&5 | |
34761 | ac_status=$? | |
34762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34763 | (exit $ac_status); }; }; then | |
34764 | ac_cv_type_pid_t=yes | |
34765 | else | |
34766 | echo "$as_me: failed program was:" >&5 | |
34767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34768 | ||
34769 | ac_cv_type_pid_t=no | |
34770 | fi | |
ac1cb8d3 | 34771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34772 | fi |
34773 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
34774 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
34775 | if test $ac_cv_type_pid_t = yes; then | |
34776 | : | |
34777 | else | |
34778 | ||
34779 | cat >>confdefs.h <<_ACEOF | |
34780 | #define pid_t int | |
34781 | _ACEOF | |
34782 | ||
34783 | fi | |
34784 | ||
34785 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
34786 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
34787 | if test "${ac_cv_type_size_t+set}" = set; then | |
34788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34789 | else | |
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 | $ac_includes_default | |
34797 | int | |
34798 | main () | |
34799 | { | |
34800 | if ((size_t *) 0) | |
34801 | return 0; | |
34802 | if (sizeof (size_t)) | |
34803 | return 0; | |
34804 | ; | |
34805 | return 0; | |
34806 | } | |
34807 | _ACEOF | |
34808 | rm -f conftest.$ac_objext | |
34809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34810 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34811 | ac_status=$? |
ac1cb8d3 VS |
34812 | grep -v '^ *+' conftest.er1 >conftest.err |
34813 | rm -f conftest.er1 | |
34814 | cat conftest.err >&5 | |
a848cd7e SC |
34815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34816 | (exit $ac_status); } && | |
bb9e79c0 | 34817 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34819 | (eval $ac_try) 2>&5 | |
34820 | ac_status=$? | |
34821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34822 | (exit $ac_status); }; } && | |
34823 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34825 | (eval $ac_try) 2>&5 | |
34826 | ac_status=$? | |
34827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34828 | (exit $ac_status); }; }; then | |
34829 | ac_cv_type_size_t=yes | |
34830 | else | |
34831 | echo "$as_me: failed program was:" >&5 | |
34832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34833 | ||
34834 | ac_cv_type_size_t=no | |
34835 | fi | |
ac1cb8d3 | 34836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34837 | fi |
34838 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
34839 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
34840 | if test $ac_cv_type_size_t = yes; then | |
34841 | : | |
34842 | else | |
34843 | ||
34844 | cat >>confdefs.h <<_ACEOF | |
34845 | #define size_t unsigned | |
34846 | _ACEOF | |
34847 | ||
34848 | fi | |
34849 | ||
34850 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
34851 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
34852 | if test "${ac_cv_type_uid_t+set}" = set; then | |
34853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34854 | else | |
34855 | cat >conftest.$ac_ext <<_ACEOF | |
34856 | /* confdefs.h. */ | |
34857 | _ACEOF | |
34858 | cat confdefs.h >>conftest.$ac_ext | |
34859 | cat >>conftest.$ac_ext <<_ACEOF | |
34860 | /* end confdefs.h. */ | |
34861 | #include <sys/types.h> | |
34862 | ||
34863 | _ACEOF | |
34864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
34865 | $EGREP "uid_t" >/dev/null 2>&1; then | |
34866 | ac_cv_type_uid_t=yes | |
34867 | else | |
34868 | ac_cv_type_uid_t=no | |
34869 | fi | |
34870 | rm -f conftest* | |
34871 | ||
34872 | fi | |
34873 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
34874 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
34875 | if test $ac_cv_type_uid_t = no; then | |
34876 | ||
34877 | cat >>confdefs.h <<\_ACEOF | |
34878 | #define uid_t int | |
34879 | _ACEOF | |
34880 | ||
34881 | ||
34882 | cat >>confdefs.h <<\_ACEOF | |
34883 | #define gid_t int | |
34884 | _ACEOF | |
34885 | ||
34886 | fi | |
34887 | ||
34888 | ||
d51253e8 RL |
34889 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
34890 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
34891 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
34892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34893 | else | |
34894 | cat >conftest.$ac_ext <<_ACEOF | |
34895 | /* confdefs.h. */ | |
34896 | _ACEOF | |
34897 | cat confdefs.h >>conftest.$ac_ext | |
34898 | cat >>conftest.$ac_ext <<_ACEOF | |
34899 | /* end confdefs.h. */ | |
34900 | $ac_includes_default | |
34901 | int | |
34902 | main () | |
34903 | { | |
34904 | if ((ssize_t *) 0) | |
34905 | return 0; | |
34906 | if (sizeof (ssize_t)) | |
34907 | return 0; | |
34908 | ; | |
34909 | return 0; | |
34910 | } | |
34911 | _ACEOF | |
34912 | rm -f conftest.$ac_objext | |
34913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34914 | (eval $ac_compile) 2>conftest.er1 | |
34915 | ac_status=$? | |
34916 | grep -v '^ *+' conftest.er1 >conftest.err | |
34917 | rm -f conftest.er1 | |
34918 | cat conftest.err >&5 | |
34919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34920 | (exit $ac_status); } && | |
bb9e79c0 | 34921 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
34922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34923 | (eval $ac_try) 2>&5 | |
34924 | ac_status=$? | |
34925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34926 | (exit $ac_status); }; } && | |
34927 | { ac_try='test -s conftest.$ac_objext' | |
34928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34929 | (eval $ac_try) 2>&5 | |
34930 | ac_status=$? | |
34931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34932 | (exit $ac_status); }; }; then | |
34933 | ac_cv_type_ssize_t=yes | |
34934 | else | |
34935 | echo "$as_me: failed program was:" >&5 | |
34936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34937 | ||
34938 | ac_cv_type_ssize_t=no | |
34939 | fi | |
34940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34941 | fi | |
34942 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
34943 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
34944 | if test $ac_cv_type_ssize_t = yes; then | |
34945 | ||
34946 | cat >>confdefs.h <<_ACEOF | |
34947 | #define HAVE_SSIZE_T 1 | |
34948 | _ACEOF | |
34949 | ||
34950 | ||
34951 | fi | |
34952 | ||
34953 | ||
a848cd7e SC |
34954 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 |
34955 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
34956 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
34957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34958 | else | |
34959 | ||
34960 | cat >conftest.$ac_ext <<_ACEOF | |
34961 | /* confdefs.h. */ | |
34962 | _ACEOF | |
34963 | cat confdefs.h >>conftest.$ac_ext | |
34964 | cat >>conftest.$ac_ext <<_ACEOF | |
34965 | /* end confdefs.h. */ | |
34966 | #include <stddef.h> | |
34967 | int | |
34968 | main () | |
34969 | { | |
34970 | ||
34971 | return 0; } | |
34972 | ||
34973 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
34974 | ||
34975 | int bar() { | |
34976 | ||
34977 | ; | |
34978 | return 0; | |
34979 | } | |
34980 | _ACEOF | |
34981 | rm -f conftest.$ac_objext | |
34982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34983 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34984 | ac_status=$? |
ac1cb8d3 VS |
34985 | grep -v '^ *+' conftest.er1 >conftest.err |
34986 | rm -f conftest.er1 | |
34987 | cat conftest.err >&5 | |
a848cd7e SC |
34988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34989 | (exit $ac_status); } && | |
bb9e79c0 | 34990 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34992 | (eval $ac_try) 2>&5 | |
34993 | ac_status=$? | |
34994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34995 | (exit $ac_status); }; } && | |
34996 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34998 | (eval $ac_try) 2>&5 | |
34999 | ac_status=$? | |
35000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35001 | (exit $ac_status); }; }; then | |
35002 | wx_cv_size_t_is_uint=no | |
35003 | else | |
35004 | echo "$as_me: failed program was:" >&5 | |
35005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35006 | ||
35007 | wx_cv_size_t_is_uint=yes | |
35008 | ||
35009 | fi | |
ac1cb8d3 | 35010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35011 | |
35012 | ||
35013 | fi | |
35014 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
35015 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
35016 | ||
35017 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
35018 | cat >>confdefs.h <<\_ACEOF | |
35019 | #define wxSIZE_T_IS_UINT 1 | |
35020 | _ACEOF | |
35021 | ||
35022 | else | |
35023 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
35024 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
35025 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
35026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35027 | else | |
35028 | cat >conftest.$ac_ext <<_ACEOF | |
35029 | /* confdefs.h. */ | |
35030 | _ACEOF | |
35031 | cat confdefs.h >>conftest.$ac_ext | |
35032 | cat >>conftest.$ac_ext <<_ACEOF | |
35033 | /* end confdefs.h. */ | |
35034 | #include <stddef.h> | |
35035 | int | |
35036 | main () | |
35037 | { | |
35038 | ||
35039 | return 0; } | |
35040 | ||
35041 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
35042 | ||
35043 | int bar() { | |
35044 | ||
35045 | ; | |
35046 | return 0; | |
35047 | } | |
35048 | _ACEOF | |
35049 | rm -f conftest.$ac_objext | |
35050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35051 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35052 | ac_status=$? |
ac1cb8d3 VS |
35053 | grep -v '^ *+' conftest.er1 >conftest.err |
35054 | rm -f conftest.er1 | |
35055 | cat conftest.err >&5 | |
a848cd7e SC |
35056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35057 | (exit $ac_status); } && | |
bb9e79c0 | 35058 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35060 | (eval $ac_try) 2>&5 | |
35061 | ac_status=$? | |
35062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35063 | (exit $ac_status); }; } && | |
35064 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35066 | (eval $ac_try) 2>&5 | |
35067 | ac_status=$? | |
35068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35069 | (exit $ac_status); }; }; then | |
35070 | wx_cv_size_t_is_ulong=no | |
35071 | else | |
35072 | echo "$as_me: failed program was:" >&5 | |
35073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35074 | ||
35075 | wx_cv_size_t_is_ulong=yes | |
35076 | ||
35077 | fi | |
ac1cb8d3 | 35078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35079 | |
35080 | fi | |
35081 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
35082 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
35083 | ||
35084 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
35085 | cat >>confdefs.h <<\_ACEOF | |
35086 | #define wxSIZE_T_IS_ULONG 1 | |
35087 | _ACEOF | |
35088 | ||
35089 | fi | |
35090 | fi | |
35091 | ||
a848cd7e SC |
35092 | |
35093 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
35094 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
35095 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
35096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35097 | else | |
35098 | ||
35099 | cat >conftest.$ac_ext <<_ACEOF | |
35100 | /* confdefs.h. */ | |
35101 | _ACEOF | |
35102 | cat confdefs.h >>conftest.$ac_ext | |
35103 | cat >>conftest.$ac_ext <<_ACEOF | |
35104 | /* end confdefs.h. */ | |
35105 | #include <pwd.h> | |
35106 | int | |
35107 | main () | |
35108 | { | |
35109 | ||
35110 | char *p; | |
35111 | struct passwd *pw; | |
35112 | p = pw->pw_gecos; | |
35113 | ||
35114 | ; | |
35115 | return 0; | |
35116 | } | |
35117 | _ACEOF | |
35118 | rm -f conftest.$ac_objext | |
35119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35120 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35121 | ac_status=$? |
ac1cb8d3 VS |
35122 | grep -v '^ *+' conftest.er1 >conftest.err |
35123 | rm -f conftest.er1 | |
35124 | cat conftest.err >&5 | |
a848cd7e SC |
35125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35126 | (exit $ac_status); } && | |
bb9e79c0 | 35127 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35129 | (eval $ac_try) 2>&5 | |
35130 | ac_status=$? | |
35131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35132 | (exit $ac_status); }; } && | |
35133 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35135 | (eval $ac_try) 2>&5 | |
35136 | ac_status=$? | |
35137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35138 | (exit $ac_status); }; }; then | |
35139 | ||
35140 | wx_cv_struct_pw_gecos=yes | |
35141 | ||
35142 | else | |
35143 | echo "$as_me: failed program was:" >&5 | |
35144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35145 | ||
35146 | ||
35147 | wx_cv_struct_pw_gecos=no | |
35148 | ||
35149 | ||
35150 | fi | |
ac1cb8d3 | 35151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35152 | |
35153 | ||
35154 | fi | |
35155 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
35156 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
35157 | ||
35158 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
35159 | cat >>confdefs.h <<\_ACEOF | |
35160 | #define HAVE_PW_GECOS 1 | |
35161 | _ACEOF | |
35162 | ||
35163 | fi | |
35164 | ||
35165 | ||
47a7e797 | 35166 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
35167 | cat >>confdefs.h <<\_ACEOF |
35168 | #define wxUSE_WCHAR_T 1 | |
35169 | _ACEOF | |
35170 | ||
35171 | ||
35172 | WCSLEN_FOUND=0 | |
35173 | WCHAR_LINK= | |
35174 | ||
35175 | for ac_func in wcslen | |
35176 | do | |
35177 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35178 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35179 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35180 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35182 | else | |
35183 | cat >conftest.$ac_ext <<_ACEOF | |
35184 | /* confdefs.h. */ | |
35185 | _ACEOF | |
35186 | cat confdefs.h >>conftest.$ac_ext | |
35187 | cat >>conftest.$ac_ext <<_ACEOF | |
35188 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35189 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35190 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35191 | #define $ac_func innocuous_$ac_func | |
35192 | ||
a848cd7e SC |
35193 | /* System header to define __stub macros and hopefully few prototypes, |
35194 | which can conflict with char $ac_func (); below. | |
35195 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35196 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35197 | |
a848cd7e SC |
35198 | #ifdef __STDC__ |
35199 | # include <limits.h> | |
35200 | #else | |
35201 | # include <assert.h> | |
35202 | #endif | |
ac1cb8d3 VS |
35203 | |
35204 | #undef $ac_func | |
35205 | ||
a848cd7e SC |
35206 | /* Override any gcc2 internal prototype to avoid an error. */ |
35207 | #ifdef __cplusplus | |
35208 | extern "C" | |
35209 | { | |
35210 | #endif | |
35211 | /* We use char because int might match the return type of a gcc2 | |
35212 | builtin and then its argument prototype would still apply. */ | |
35213 | char $ac_func (); | |
35214 | /* The GNU C library defines this for functions which it implements | |
35215 | to always fail with ENOSYS. Some functions are actually named | |
35216 | something starting with __ and the normal name is an alias. */ | |
35217 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35218 | choke me | |
35219 | #else | |
35220 | char (*f) () = $ac_func; | |
35221 | #endif | |
35222 | #ifdef __cplusplus | |
35223 | } | |
35224 | #endif | |
35225 | ||
35226 | int | |
35227 | main () | |
35228 | { | |
35229 | return f != $ac_func; | |
35230 | ; | |
35231 | return 0; | |
35232 | } | |
35233 | _ACEOF | |
35234 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35236 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35237 | ac_status=$? |
ac1cb8d3 VS |
35238 | grep -v '^ *+' conftest.er1 >conftest.err |
35239 | rm -f conftest.er1 | |
35240 | cat conftest.err >&5 | |
a848cd7e SC |
35241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35242 | (exit $ac_status); } && | |
bb9e79c0 | 35243 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35245 | (eval $ac_try) 2>&5 | |
35246 | ac_status=$? | |
35247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35248 | (exit $ac_status); }; } && | |
35249 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35251 | (eval $ac_try) 2>&5 | |
35252 | ac_status=$? | |
35253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35254 | (exit $ac_status); }; }; then | |
35255 | eval "$as_ac_var=yes" | |
35256 | else | |
35257 | echo "$as_me: failed program was:" >&5 | |
35258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35259 | ||
35260 | eval "$as_ac_var=no" | |
35261 | fi | |
ac1cb8d3 VS |
35262 | rm -f conftest.err conftest.$ac_objext \ |
35263 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35264 | fi |
35265 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35266 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35267 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35268 | cat >>confdefs.h <<_ACEOF | |
35269 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35270 | _ACEOF | |
35271 | WCSLEN_FOUND=1 | |
35272 | fi | |
35273 | done | |
35274 | ||
35275 | ||
35276 | if test "$WCSLEN_FOUND" = 0; then | |
35277 | if test "$TOOLKIT" = "MSW"; then | |
35278 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
35279 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
35280 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
35281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35282 | else | |
35283 | ac_check_lib_save_LIBS=$LIBS | |
35284 | LIBS="-lmsvcrt $LIBS" | |
35285 | cat >conftest.$ac_ext <<_ACEOF | |
35286 | /* confdefs.h. */ | |
35287 | _ACEOF | |
35288 | cat confdefs.h >>conftest.$ac_ext | |
35289 | cat >>conftest.$ac_ext <<_ACEOF | |
35290 | /* end confdefs.h. */ | |
35291 | ||
35292 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35293 | #ifdef __cplusplus | |
35294 | extern "C" | |
35295 | #endif | |
35296 | /* We use char because int might match the return type of a gcc2 | |
35297 | builtin and then its argument prototype would still apply. */ | |
35298 | char wcslen (); | |
35299 | int | |
35300 | main () | |
35301 | { | |
35302 | wcslen (); | |
35303 | ; | |
35304 | return 0; | |
35305 | } | |
35306 | _ACEOF | |
35307 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35309 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35310 | ac_status=$? |
ac1cb8d3 VS |
35311 | grep -v '^ *+' conftest.er1 >conftest.err |
35312 | rm -f conftest.er1 | |
35313 | cat conftest.err >&5 | |
a848cd7e SC |
35314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35315 | (exit $ac_status); } && | |
bb9e79c0 | 35316 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35318 | (eval $ac_try) 2>&5 | |
35319 | ac_status=$? | |
35320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35321 | (exit $ac_status); }; } && | |
35322 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35324 | (eval $ac_try) 2>&5 | |
35325 | ac_status=$? | |
35326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35327 | (exit $ac_status); }; }; then | |
35328 | ac_cv_lib_msvcrt_wcslen=yes | |
35329 | else | |
35330 | echo "$as_me: failed program was:" >&5 | |
35331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35332 | ||
35333 | ac_cv_lib_msvcrt_wcslen=no | |
35334 | fi | |
ac1cb8d3 VS |
35335 | rm -f conftest.err conftest.$ac_objext \ |
35336 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35337 | LIBS=$ac_check_lib_save_LIBS |
35338 | fi | |
35339 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
35340 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
35341 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
35342 | WCHAR_OK=1 | |
35343 | fi | |
35344 | ||
35345 | else | |
35346 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
35347 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
35348 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
35349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35350 | else | |
35351 | ac_check_lib_save_LIBS=$LIBS | |
35352 | LIBS="-lw $LIBS" | |
35353 | cat >conftest.$ac_ext <<_ACEOF | |
35354 | /* confdefs.h. */ | |
35355 | _ACEOF | |
35356 | cat confdefs.h >>conftest.$ac_ext | |
35357 | cat >>conftest.$ac_ext <<_ACEOF | |
35358 | /* end confdefs.h. */ | |
35359 | ||
35360 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35361 | #ifdef __cplusplus | |
35362 | extern "C" | |
35363 | #endif | |
35364 | /* We use char because int might match the return type of a gcc2 | |
35365 | builtin and then its argument prototype would still apply. */ | |
35366 | char wcslen (); | |
35367 | int | |
35368 | main () | |
35369 | { | |
35370 | wcslen (); | |
35371 | ; | |
35372 | return 0; | |
35373 | } | |
35374 | _ACEOF | |
35375 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35377 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35378 | ac_status=$? |
ac1cb8d3 VS |
35379 | grep -v '^ *+' conftest.er1 >conftest.err |
35380 | rm -f conftest.er1 | |
35381 | cat conftest.err >&5 | |
a848cd7e SC |
35382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35383 | (exit $ac_status); } && | |
bb9e79c0 | 35384 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35386 | (eval $ac_try) 2>&5 | |
35387 | ac_status=$? | |
35388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35389 | (exit $ac_status); }; } && | |
35390 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35392 | (eval $ac_try) 2>&5 | |
35393 | ac_status=$? | |
35394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35395 | (exit $ac_status); }; }; then | |
35396 | ac_cv_lib_w_wcslen=yes | |
35397 | else | |
35398 | echo "$as_me: failed program was:" >&5 | |
35399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35400 | ||
35401 | ac_cv_lib_w_wcslen=no | |
35402 | fi | |
ac1cb8d3 VS |
35403 | rm -f conftest.err conftest.$ac_objext \ |
35404 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35405 | LIBS=$ac_check_lib_save_LIBS |
35406 | fi | |
35407 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
35408 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
35409 | if test $ac_cv_lib_w_wcslen = yes; then | |
35410 | ||
35411 | WCHAR_LINK=" -lw" | |
35412 | WCSLEN_FOUND=1 | |
35413 | ||
35414 | fi | |
35415 | ||
35416 | fi | |
35417 | fi | |
35418 | ||
35419 | if test "$WCSLEN_FOUND" = 1; then | |
35420 | cat >>confdefs.h <<\_ACEOF | |
35421 | #define HAVE_WCSLEN 1 | |
35422 | _ACEOF | |
35423 | ||
35424 | fi | |
35425 | ||
efdf6afe | 35426 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
c92ad099 | 35427 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" |
473276a9 VS |
35428 | fi |
35429 | ||
efdf6afe VZ |
35430 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
35431 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
35432 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
35433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35434 | else | |
35435 | cat >conftest.$ac_ext <<_ACEOF | |
35436 | /* confdefs.h. */ | |
35437 | _ACEOF | |
35438 | cat confdefs.h >>conftest.$ac_ext | |
35439 | cat >>conftest.$ac_ext <<_ACEOF | |
35440 | /* end confdefs.h. */ | |
35441 | #include <wchar.h> | |
35442 | ||
35443 | int | |
35444 | main () | |
35445 | { | |
35446 | if ((mbstate_t *) 0) | |
35447 | return 0; | |
35448 | if (sizeof (mbstate_t)) | |
35449 | return 0; | |
35450 | ; | |
35451 | return 0; | |
35452 | } | |
35453 | _ACEOF | |
35454 | rm -f conftest.$ac_objext | |
35455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35456 | (eval $ac_compile) 2>conftest.er1 | |
35457 | ac_status=$? | |
35458 | grep -v '^ *+' conftest.er1 >conftest.err | |
35459 | rm -f conftest.er1 | |
35460 | cat conftest.err >&5 | |
35461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35462 | (exit $ac_status); } && | |
bb9e79c0 | 35463 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
efdf6afe VZ |
35464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35465 | (eval $ac_try) 2>&5 | |
35466 | ac_status=$? | |
35467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35468 | (exit $ac_status); }; } && | |
35469 | { ac_try='test -s conftest.$ac_objext' | |
35470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35471 | (eval $ac_try) 2>&5 | |
35472 | ac_status=$? | |
35473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35474 | (exit $ac_status); }; }; then | |
35475 | ac_cv_type_mbstate_t=yes | |
35476 | else | |
35477 | echo "$as_me: failed program was:" >&5 | |
35478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35479 | ||
35480 | ac_cv_type_mbstate_t=no | |
35481 | fi | |
35482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35483 | fi | |
35484 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
35485 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
35486 | if test $ac_cv_type_mbstate_t = yes; then | |
35487 | ||
35488 | cat >>confdefs.h <<_ACEOF | |
35489 | #define HAVE_MBSTATE_T 1 | |
35490 | _ACEOF | |
35491 | ||
a848cd7e SC |
35492 | |
35493 | for ac_func in wcsrtombs | |
35494 | do | |
35495 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35496 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35497 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35498 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35500 | else | |
35501 | cat >conftest.$ac_ext <<_ACEOF | |
35502 | /* confdefs.h. */ | |
35503 | _ACEOF | |
35504 | cat confdefs.h >>conftest.$ac_ext | |
35505 | cat >>conftest.$ac_ext <<_ACEOF | |
35506 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35507 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35508 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35509 | #define $ac_func innocuous_$ac_func | |
35510 | ||
a848cd7e SC |
35511 | /* System header to define __stub macros and hopefully few prototypes, |
35512 | which can conflict with char $ac_func (); below. | |
35513 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35514 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35515 | |
a848cd7e SC |
35516 | #ifdef __STDC__ |
35517 | # include <limits.h> | |
35518 | #else | |
35519 | # include <assert.h> | |
35520 | #endif | |
ac1cb8d3 VS |
35521 | |
35522 | #undef $ac_func | |
35523 | ||
a848cd7e SC |
35524 | /* Override any gcc2 internal prototype to avoid an error. */ |
35525 | #ifdef __cplusplus | |
35526 | extern "C" | |
35527 | { | |
35528 | #endif | |
35529 | /* We use char because int might match the return type of a gcc2 | |
35530 | builtin and then its argument prototype would still apply. */ | |
35531 | char $ac_func (); | |
35532 | /* The GNU C library defines this for functions which it implements | |
35533 | to always fail with ENOSYS. Some functions are actually named | |
35534 | something starting with __ and the normal name is an alias. */ | |
35535 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35536 | choke me | |
35537 | #else | |
35538 | char (*f) () = $ac_func; | |
35539 | #endif | |
35540 | #ifdef __cplusplus | |
35541 | } | |
35542 | #endif | |
35543 | ||
35544 | int | |
35545 | main () | |
35546 | { | |
35547 | return f != $ac_func; | |
35548 | ; | |
35549 | return 0; | |
35550 | } | |
35551 | _ACEOF | |
35552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35554 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35555 | ac_status=$? |
ac1cb8d3 VS |
35556 | grep -v '^ *+' conftest.er1 >conftest.err |
35557 | rm -f conftest.er1 | |
35558 | cat conftest.err >&5 | |
a848cd7e SC |
35559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35560 | (exit $ac_status); } && | |
bb9e79c0 | 35561 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35563 | (eval $ac_try) 2>&5 | |
35564 | ac_status=$? | |
35565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35566 | (exit $ac_status); }; } && | |
35567 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35569 | (eval $ac_try) 2>&5 | |
35570 | ac_status=$? | |
35571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35572 | (exit $ac_status); }; }; then | |
35573 | eval "$as_ac_var=yes" | |
35574 | else | |
35575 | echo "$as_me: failed program was:" >&5 | |
35576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35577 | ||
35578 | eval "$as_ac_var=no" | |
35579 | fi | |
ac1cb8d3 VS |
35580 | rm -f conftest.err conftest.$ac_objext \ |
35581 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35582 | fi |
35583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35584 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35585 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35586 | cat >>confdefs.h <<_ACEOF | |
35587 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35588 | _ACEOF | |
35589 | ||
35590 | fi | |
35591 | done | |
35592 | ||
efdf6afe VZ |
35593 | fi |
35594 | ||
a848cd7e SC |
35595 | else |
35596 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
35597 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
35598 | fi | |
35599 | ||
a848cd7e | 35600 | |
4a767dd5 VZ |
35601 | |
35602 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
35603 | do |
35604 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35605 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35606 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35607 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35609 | else | |
35610 | cat >conftest.$ac_ext <<_ACEOF | |
35611 | /* confdefs.h. */ | |
35612 | _ACEOF | |
35613 | cat confdefs.h >>conftest.$ac_ext | |
35614 | cat >>conftest.$ac_ext <<_ACEOF | |
35615 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35616 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35617 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35618 | #define $ac_func innocuous_$ac_func | |
35619 | ||
a848cd7e SC |
35620 | /* System header to define __stub macros and hopefully few prototypes, |
35621 | which can conflict with char $ac_func (); below. | |
35622 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35623 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35624 | |
a848cd7e SC |
35625 | #ifdef __STDC__ |
35626 | # include <limits.h> | |
35627 | #else | |
35628 | # include <assert.h> | |
35629 | #endif | |
ac1cb8d3 VS |
35630 | |
35631 | #undef $ac_func | |
35632 | ||
a848cd7e SC |
35633 | /* Override any gcc2 internal prototype to avoid an error. */ |
35634 | #ifdef __cplusplus | |
35635 | extern "C" | |
35636 | { | |
35637 | #endif | |
35638 | /* We use char because int might match the return type of a gcc2 | |
35639 | builtin and then its argument prototype would still apply. */ | |
35640 | char $ac_func (); | |
35641 | /* The GNU C library defines this for functions which it implements | |
35642 | to always fail with ENOSYS. Some functions are actually named | |
35643 | something starting with __ and the normal name is an alias. */ | |
35644 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35645 | choke me | |
35646 | #else | |
35647 | char (*f) () = $ac_func; | |
35648 | #endif | |
35649 | #ifdef __cplusplus | |
35650 | } | |
35651 | #endif | |
35652 | ||
35653 | int | |
35654 | main () | |
35655 | { | |
35656 | return f != $ac_func; | |
35657 | ; | |
35658 | return 0; | |
35659 | } | |
35660 | _ACEOF | |
35661 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35663 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35664 | ac_status=$? |
ac1cb8d3 VS |
35665 | grep -v '^ *+' conftest.er1 >conftest.err |
35666 | rm -f conftest.er1 | |
35667 | cat conftest.err >&5 | |
a848cd7e SC |
35668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35669 | (exit $ac_status); } && | |
bb9e79c0 | 35670 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35672 | (eval $ac_try) 2>&5 | |
35673 | ac_status=$? | |
35674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35675 | (exit $ac_status); }; } && | |
35676 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35678 | (eval $ac_try) 2>&5 | |
35679 | ac_status=$? | |
35680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35681 | (exit $ac_status); }; }; then | |
35682 | eval "$as_ac_var=yes" | |
35683 | else | |
35684 | echo "$as_me: failed program was:" >&5 | |
35685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35686 | ||
35687 | eval "$as_ac_var=no" | |
35688 | fi | |
ac1cb8d3 VS |
35689 | rm -f conftest.err conftest.$ac_objext \ |
35690 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35691 | fi |
35692 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35693 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35694 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35695 | cat >>confdefs.h <<_ACEOF | |
35696 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35697 | _ACEOF | |
35698 | ||
35699 | fi | |
35700 | done | |
35701 | ||
35702 | ||
35703 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
35704 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
35705 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
35706 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
35707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35708 | else | |
35709 | ||
efdf6afe | 35710 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
35711 | /* confdefs.h. */ |
35712 | _ACEOF | |
35713 | cat confdefs.h >>conftest.$ac_ext | |
35714 | cat >>conftest.$ac_ext <<_ACEOF | |
35715 | /* end confdefs.h. */ | |
35716 | ||
35717 | #include <stdio.h> | |
35718 | #include <stdarg.h> | |
efdf6afe VZ |
35719 | #ifdef __MSL__ |
35720 | #if __MSL__ >= 0x6000 | |
35721 | namespace std {} | |
35722 | using namespace std; | |
35723 | #endif | |
35724 | #endif | |
a848cd7e SC |
35725 | |
35726 | int | |
35727 | main () | |
35728 | { | |
35729 | ||
35730 | char *buf; | |
35731 | va_list ap; | |
62fa8b3a | 35732 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
35733 | |
35734 | ; | |
35735 | return 0; | |
35736 | } | |
35737 | _ACEOF | |
35738 | rm -f conftest.$ac_objext | |
35739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35740 | (eval $ac_compile) 2>conftest.er1 | |
35741 | ac_status=$? | |
35742 | grep -v '^ *+' conftest.er1 >conftest.err | |
35743 | rm -f conftest.er1 | |
35744 | cat conftest.err >&5 | |
35745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35746 | (exit $ac_status); } && | |
bb9e79c0 | 35747 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
35748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35749 | (eval $ac_try) 2>&5 | |
35750 | ac_status=$? | |
35751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35752 | (exit $ac_status); }; } && | |
35753 | { ac_try='test -s conftest.$ac_objext' | |
35754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35755 | (eval $ac_try) 2>&5 | |
35756 | ac_status=$? | |
35757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35758 | (exit $ac_status); }; }; then | |
35759 | wx_cv_func_vsnprintf_decl=yes | |
35760 | else | |
35761 | echo "$as_me: failed program was:" >&5 | |
35762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35763 | ||
a848cd7e SC |
35764 | wx_cv_func_vsnprintf_decl=no |
35765 | ||
35766 | fi | |
ac1cb8d3 | 35767 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35768 | |
35769 | ||
35770 | fi | |
35771 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
35772 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
35773 | ||
35774 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
35775 | cat >>confdefs.h <<\_ACEOF | |
35776 | #define HAVE_VSNPRINTF_DECL 1 | |
35777 | _ACEOF | |
35778 | ||
62fa8b3a MW |
35779 | |
35780 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
35781 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
35782 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
35783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35784 | else | |
35785 | ||
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. */ | |
35792 | ||
35793 | #include <stdio.h> | |
35794 | #include <stdarg.h> | |
35795 | #ifdef __MSL__ | |
35796 | #if __MSL__ >= 0x6000 | |
35797 | namespace std {} | |
35798 | using namespace std; | |
35799 | #endif | |
35800 | #endif | |
35801 | ||
35802 | int | |
35803 | main () | |
35804 | { | |
35805 | ||
35806 | char *buf; | |
35807 | va_list ap; | |
35808 | const char *fmt = "%s"; | |
35809 | vsnprintf(buf, 10u, fmt, ap); | |
35810 | ||
35811 | ; | |
35812 | return 0; | |
35813 | } | |
35814 | _ACEOF | |
35815 | rm -f conftest.$ac_objext | |
35816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35817 | (eval $ac_compile) 2>conftest.er1 | |
35818 | ac_status=$? | |
35819 | grep -v '^ *+' conftest.er1 >conftest.err | |
35820 | rm -f conftest.er1 | |
35821 | cat conftest.err >&5 | |
35822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35823 | (exit $ac_status); } && | |
bb9e79c0 | 35824 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
35825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35826 | (eval $ac_try) 2>&5 | |
35827 | ac_status=$? | |
35828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35829 | (exit $ac_status); }; } && | |
35830 | { ac_try='test -s conftest.$ac_objext' | |
35831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35832 | (eval $ac_try) 2>&5 | |
35833 | ac_status=$? | |
35834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35835 | (exit $ac_status); }; }; then | |
35836 | wx_cv_func_broken_vsnprintf_decl=no | |
35837 | else | |
35838 | echo "$as_me: failed program was:" >&5 | |
35839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35840 | ||
35841 | wx_cv_func_broken_vsnprintf_decl=yes | |
35842 | ||
35843 | fi | |
35844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35845 | ||
35846 | ||
35847 | fi | |
35848 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
35849 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
35850 | ||
35851 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
35852 | cat >>confdefs.h <<\_ACEOF | |
35853 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
35854 | _ACEOF | |
35855 | ||
35856 | fi | |
a848cd7e SC |
35857 | fi |
35858 | fi | |
35859 | ||
4a767dd5 VZ |
35860 | if test "$ac_cv_func_snprintf" = "yes"; then |
35861 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
35862 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
35863 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
35864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35865 | else | |
35866 | ||
35867 | cat >conftest.$ac_ext <<_ACEOF | |
35868 | /* confdefs.h. */ | |
35869 | _ACEOF | |
35870 | cat confdefs.h >>conftest.$ac_ext | |
35871 | cat >>conftest.$ac_ext <<_ACEOF | |
35872 | /* end confdefs.h. */ | |
35873 | ||
35874 | #include <stdio.h> | |
35875 | #include <stdarg.h> | |
35876 | #ifdef __MSL__ | |
35877 | #if __MSL__ >= 0x6000 | |
35878 | namespace std {} | |
35879 | using namespace std; | |
35880 | #endif | |
35881 | #endif | |
35882 | ||
35883 | int | |
35884 | main () | |
35885 | { | |
35886 | ||
35887 | char *buf; | |
62fa8b3a | 35888 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
35889 | |
35890 | ; | |
35891 | return 0; | |
35892 | } | |
35893 | _ACEOF | |
35894 | rm -f conftest.$ac_objext | |
35895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35896 | (eval $ac_compile) 2>conftest.er1 | |
35897 | ac_status=$? | |
35898 | grep -v '^ *+' conftest.er1 >conftest.err | |
35899 | rm -f conftest.er1 | |
35900 | cat conftest.err >&5 | |
35901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35902 | (exit $ac_status); } && | |
bb9e79c0 | 35903 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4a767dd5 VZ |
35904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35905 | (eval $ac_try) 2>&5 | |
35906 | ac_status=$? | |
35907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35908 | (exit $ac_status); }; } && | |
35909 | { ac_try='test -s conftest.$ac_objext' | |
35910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35911 | (eval $ac_try) 2>&5 | |
35912 | ac_status=$? | |
35913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35914 | (exit $ac_status); }; }; then | |
35915 | wx_cv_func_snprintf_decl=yes | |
35916 | else | |
35917 | echo "$as_me: failed program was:" >&5 | |
35918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35919 | ||
35920 | wx_cv_func_snprintf_decl=no | |
35921 | ||
35922 | fi | |
35923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35924 | ||
35925 | ||
35926 | fi | |
35927 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
35928 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
35929 | ||
35930 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
35931 | cat >>confdefs.h <<\_ACEOF | |
35932 | #define HAVE_SNPRINTF_DECL 1 | |
35933 | _ACEOF | |
35934 | ||
62fa8b3a MW |
35935 | |
35936 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
35937 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
35938 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
35939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35940 | else | |
35941 | ||
35942 | cat >conftest.$ac_ext <<_ACEOF | |
35943 | /* confdefs.h. */ | |
35944 | _ACEOF | |
35945 | cat confdefs.h >>conftest.$ac_ext | |
35946 | cat >>conftest.$ac_ext <<_ACEOF | |
35947 | /* end confdefs.h. */ | |
35948 | ||
35949 | #include <stdio.h> | |
35950 | #include <stdarg.h> | |
35951 | #ifdef __MSL__ | |
35952 | #if __MSL__ >= 0x6000 | |
35953 | namespace std {} | |
35954 | using namespace std; | |
35955 | #endif | |
35956 | #endif | |
35957 | ||
35958 | int | |
35959 | main () | |
35960 | { | |
35961 | ||
35962 | char *buf; | |
35963 | const char *fmt = "%s"; | |
35964 | snprintf(buf, 10u, fmt, "wx"); | |
35965 | ||
35966 | ; | |
35967 | return 0; | |
35968 | } | |
35969 | _ACEOF | |
35970 | rm -f conftest.$ac_objext | |
35971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35972 | (eval $ac_compile) 2>conftest.er1 | |
35973 | ac_status=$? | |
35974 | grep -v '^ *+' conftest.er1 >conftest.err | |
35975 | rm -f conftest.er1 | |
35976 | cat conftest.err >&5 | |
35977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35978 | (exit $ac_status); } && | |
bb9e79c0 | 35979 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
35980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35981 | (eval $ac_try) 2>&5 | |
35982 | ac_status=$? | |
35983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35984 | (exit $ac_status); }; } && | |
35985 | { ac_try='test -s conftest.$ac_objext' | |
35986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35987 | (eval $ac_try) 2>&5 | |
35988 | ac_status=$? | |
35989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35990 | (exit $ac_status); }; }; then | |
35991 | wx_cv_func_broken_snprintf_decl=no | |
35992 | else | |
35993 | echo "$as_me: failed program was:" >&5 | |
35994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35995 | ||
35996 | wx_cv_func_broken_snprintf_decl=yes | |
35997 | ||
35998 | fi | |
35999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36000 | ||
36001 | ||
36002 | fi | |
36003 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
36004 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
36005 | ||
36006 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
36007 | cat >>confdefs.h <<\_ACEOF | |
36008 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
8b6682b9 JS |
36009 | _ACEOF |
36010 | ||
36011 | fi | |
36012 | fi | |
36013 | ||
36014 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then | |
36015 | ||
36016 | echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5 | |
36017 | echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6 | |
36018 | if test "${wx_cv_func_snprintf_pos_params+set}" = set; then | |
36019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36020 | else | |
36021 | ||
36022 | if test "$cross_compiling" = yes; then | |
5039a2df VZ |
36023 | |
36024 | { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available, | |
36025 | define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5 | |
36026 | echo "$as_me: WARNING: Assuming Unix98 printf() is not available, | |
36027 | define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;} | |
36028 | wx_cv_func_snprintf_pos_params=no | |
36029 | ||
36030 | ||
8b6682b9 JS |
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 <stdio.h> | |
36040 | ||
36041 | int main (void) | |
36042 | { | |
36043 | char buffer[128]; | |
36044 | snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3); | |
36045 | if (strcmp ("2 3 1", buffer) == 0) | |
36046 | exit (0); | |
36047 | exit (1); | |
36048 | } | |
36049 | ||
36050 | _ACEOF | |
36051 | rm -f conftest$ac_exeext | |
36052 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
36053 | (eval $ac_link) 2>&5 | |
36054 | ac_status=$? | |
36055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36056 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
36057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36058 | (eval $ac_try) 2>&5 | |
36059 | ac_status=$? | |
36060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36061 | (exit $ac_status); }; }; then | |
36062 | wx_cv_func_snprintf_pos_params=no | |
36063 | else | |
36064 | echo "$as_me: program exited with status $ac_status" >&5 | |
36065 | echo "$as_me: failed program was:" >&5 | |
36066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36067 | ||
36068 | ( exit $ac_status ) | |
36069 | wx_cv_func_snprintf_pos_params=yes | |
8b6682b9 JS |
36070 | fi |
36071 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
36072 | fi | |
36073 | ||
36074 | ||
36075 | fi | |
36076 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5 | |
36077 | echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6 | |
36078 | ||
36079 | if test "$wx_cv_func_snprintf_pos_params" = "yes"; then | |
36080 | cat >>confdefs.h <<\_ACEOF | |
36081 | #define HAVE_UNIX98_PRINTF 1 | |
62fa8b3a MW |
36082 | _ACEOF |
36083 | ||
36084 | fi | |
4a767dd5 VZ |
36085 | fi |
36086 | fi | |
36087 | ||
a848cd7e SC |
36088 | if test "$wxUSE_UNICODE" = yes; then |
36089 | ||
36090 | ||
6a5c9b3f RR |
36091 | for ac_func in swprintf |
36092 | do | |
36093 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36094 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36095 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36096 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36098 | else | |
36099 | cat >conftest.$ac_ext <<_ACEOF | |
36100 | /* confdefs.h. */ | |
36101 | _ACEOF | |
36102 | cat confdefs.h >>conftest.$ac_ext | |
36103 | cat >>conftest.$ac_ext <<_ACEOF | |
36104 | /* end confdefs.h. */ | |
36105 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
36106 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36107 | #define $ac_func innocuous_$ac_func | |
36108 | ||
36109 | /* System header to define __stub macros and hopefully few prototypes, | |
36110 | which can conflict with char $ac_func (); below. | |
36111 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36112 | <limits.h> exists even on freestanding compilers. */ | |
36113 | ||
36114 | #ifdef __STDC__ | |
36115 | # include <limits.h> | |
36116 | #else | |
36117 | # include <assert.h> | |
36118 | #endif | |
36119 | ||
36120 | #undef $ac_func | |
36121 | ||
36122 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36123 | #ifdef __cplusplus | |
36124 | extern "C" | |
36125 | { | |
36126 | #endif | |
36127 | /* We use char because int might match the return type of a gcc2 | |
36128 | builtin and then its argument prototype would still apply. */ | |
36129 | char $ac_func (); | |
36130 | /* The GNU C library defines this for functions which it implements | |
36131 | to always fail with ENOSYS. Some functions are actually named | |
36132 | something starting with __ and the normal name is an alias. */ | |
36133 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36134 | choke me | |
36135 | #else | |
36136 | char (*f) () = $ac_func; | |
36137 | #endif | |
36138 | #ifdef __cplusplus | |
36139 | } | |
36140 | #endif | |
36141 | ||
36142 | int | |
36143 | main () | |
36144 | { | |
36145 | return f != $ac_func; | |
36146 | ; | |
36147 | return 0; | |
36148 | } | |
36149 | _ACEOF | |
36150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
36152 | (eval $ac_link) 2>conftest.er1 | |
36153 | ac_status=$? | |
36154 | grep -v '^ *+' conftest.er1 >conftest.err | |
36155 | rm -f conftest.er1 | |
36156 | cat conftest.err >&5 | |
36157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36158 | (exit $ac_status); } && | |
bb9e79c0 | 36159 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6a5c9b3f RR |
36160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36161 | (eval $ac_try) 2>&5 | |
36162 | ac_status=$? | |
36163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36164 | (exit $ac_status); }; } && | |
36165 | { ac_try='test -s conftest$ac_exeext' | |
36166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36167 | (eval $ac_try) 2>&5 | |
36168 | ac_status=$? | |
36169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36170 | (exit $ac_status); }; }; then | |
36171 | eval "$as_ac_var=yes" | |
36172 | else | |
36173 | echo "$as_me: failed program was:" >&5 | |
36174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36175 | ||
36176 | eval "$as_ac_var=no" | |
36177 | fi | |
36178 | rm -f conftest.err conftest.$ac_objext \ | |
36179 | conftest$ac_exeext conftest.$ac_ext | |
36180 | fi | |
36181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36182 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36183 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36184 | cat >>confdefs.h <<_ACEOF | |
36185 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36186 | _ACEOF | |
36187 | ||
36188 | fi | |
36189 | done | |
36190 | ||
36191 | ||
36192 | if test "$ac_cv_func_swprintf" = "yes"; then | |
36193 | echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5 | |
36194 | echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6 | |
36195 | if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then | |
36196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36197 | else | |
36198 | ||
36199 | cat >conftest.$ac_ext <<_ACEOF | |
36200 | /* confdefs.h. */ | |
36201 | _ACEOF | |
36202 | cat confdefs.h >>conftest.$ac_ext | |
36203 | cat >>conftest.$ac_ext <<_ACEOF | |
36204 | /* end confdefs.h. */ | |
36205 | ||
36206 | #include <stdio.h> | |
36207 | #include <stdarg.h> | |
36208 | #include <wchar.h> | |
36209 | ||
36210 | int | |
36211 | main () | |
36212 | { | |
36213 | ||
36214 | wchar_t *buf; | |
36215 | const wchar_t *fmt = L"test"; | |
36216 | swprintf(buf, 10u, fmt); | |
36217 | ||
36218 | ; | |
36219 | return 0; | |
36220 | } | |
36221 | _ACEOF | |
36222 | rm -f conftest.$ac_objext | |
36223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36224 | (eval $ac_compile) 2>conftest.er1 | |
36225 | ac_status=$? | |
36226 | grep -v '^ *+' conftest.er1 >conftest.err | |
36227 | rm -f conftest.er1 | |
36228 | cat conftest.err >&5 | |
36229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36230 | (exit $ac_status); } && | |
bb9e79c0 | 36231 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6a5c9b3f RR |
36232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36233 | (eval $ac_try) 2>&5 | |
36234 | ac_status=$? | |
36235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36236 | (exit $ac_status); }; } && | |
36237 | { ac_try='test -s conftest.$ac_objext' | |
36238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36239 | (eval $ac_try) 2>&5 | |
36240 | ac_status=$? | |
36241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36242 | (exit $ac_status); }; }; then | |
36243 | wx_cv_func_broken_swprintf_decl=no | |
36244 | else | |
36245 | echo "$as_me: failed program was:" >&5 | |
36246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36247 | ||
36248 | wx_cv_func_broken_swprintf_decl=yes | |
36249 | ||
36250 | fi | |
36251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36252 | ||
36253 | ||
36254 | fi | |
36255 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5 | |
36256 | echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6 | |
36257 | ||
36258 | if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then | |
36259 | cat >>confdefs.h <<\_ACEOF | |
36260 | #define HAVE_BROKEN_SWPRINTF_DECL 1 | |
36261 | _ACEOF | |
36262 | ||
36263 | fi | |
36264 | fi | |
36265 | ||
36266 | ||
36267 | ||
a848cd7e | 36268 | |
fbe47c7b VS |
36269 | |
36270 | ||
36271 | ||
36272 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
36273 | do |
36274 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36275 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36276 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36277 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36279 | else | |
36280 | cat >conftest.$ac_ext <<_ACEOF | |
36281 | /* confdefs.h. */ | |
36282 | _ACEOF | |
36283 | cat confdefs.h >>conftest.$ac_ext | |
36284 | cat >>conftest.$ac_ext <<_ACEOF | |
36285 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36286 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36287 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36288 | #define $ac_func innocuous_$ac_func | |
36289 | ||
a848cd7e SC |
36290 | /* System header to define __stub macros and hopefully few prototypes, |
36291 | which can conflict with char $ac_func (); below. | |
36292 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36293 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36294 | |
a848cd7e SC |
36295 | #ifdef __STDC__ |
36296 | # include <limits.h> | |
36297 | #else | |
36298 | # include <assert.h> | |
36299 | #endif | |
ac1cb8d3 VS |
36300 | |
36301 | #undef $ac_func | |
36302 | ||
a848cd7e SC |
36303 | /* Override any gcc2 internal prototype to avoid an error. */ |
36304 | #ifdef __cplusplus | |
36305 | extern "C" | |
36306 | { | |
36307 | #endif | |
36308 | /* We use char because int might match the return type of a gcc2 | |
36309 | builtin and then its argument prototype would still apply. */ | |
36310 | char $ac_func (); | |
36311 | /* The GNU C library defines this for functions which it implements | |
36312 | to always fail with ENOSYS. Some functions are actually named | |
36313 | something starting with __ and the normal name is an alias. */ | |
36314 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36315 | choke me | |
36316 | #else | |
36317 | char (*f) () = $ac_func; | |
36318 | #endif | |
36319 | #ifdef __cplusplus | |
36320 | } | |
36321 | #endif | |
36322 | ||
36323 | int | |
36324 | main () | |
36325 | { | |
36326 | return f != $ac_func; | |
36327 | ; | |
36328 | return 0; | |
36329 | } | |
36330 | _ACEOF | |
36331 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36333 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36334 | ac_status=$? |
ac1cb8d3 VS |
36335 | grep -v '^ *+' conftest.er1 >conftest.err |
36336 | rm -f conftest.er1 | |
36337 | cat conftest.err >&5 | |
a848cd7e SC |
36338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36339 | (exit $ac_status); } && | |
bb9e79c0 | 36340 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36342 | (eval $ac_try) 2>&5 | |
36343 | ac_status=$? | |
36344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36345 | (exit $ac_status); }; } && | |
36346 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36348 | (eval $ac_try) 2>&5 | |
36349 | ac_status=$? | |
36350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36351 | (exit $ac_status); }; }; then | |
36352 | eval "$as_ac_var=yes" | |
36353 | else | |
36354 | echo "$as_me: failed program was:" >&5 | |
36355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36356 | ||
36357 | eval "$as_ac_var=no" | |
36358 | fi | |
ac1cb8d3 VS |
36359 | rm -f conftest.err conftest.$ac_objext \ |
36360 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36361 | fi |
36362 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36363 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36364 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36365 | cat >>confdefs.h <<_ACEOF | |
36366 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36367 | _ACEOF | |
36368 | ||
36369 | fi | |
36370 | done | |
36371 | ||
36372 | ||
36373 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
36374 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
36375 | cat >conftest.$ac_ext <<_ACEOF | |
36376 | /* confdefs.h. */ | |
36377 | _ACEOF | |
36378 | cat confdefs.h >>conftest.$ac_ext | |
36379 | cat >>conftest.$ac_ext <<_ACEOF | |
36380 | /* end confdefs.h. */ | |
36381 | #include <wchar.h> | |
36382 | int | |
36383 | main () | |
36384 | { | |
36385 | &_vsnwprintf; | |
36386 | ; | |
36387 | return 0; | |
36388 | } | |
36389 | _ACEOF | |
36390 | rm -f conftest.$ac_objext | |
36391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36392 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36393 | ac_status=$? |
ac1cb8d3 VS |
36394 | grep -v '^ *+' conftest.er1 >conftest.err |
36395 | rm -f conftest.er1 | |
36396 | cat conftest.err >&5 | |
a848cd7e SC |
36397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36398 | (exit $ac_status); } && | |
bb9e79c0 | 36399 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36401 | (eval $ac_try) 2>&5 | |
36402 | ac_status=$? | |
36403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36404 | (exit $ac_status); }; } && | |
36405 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36407 | (eval $ac_try) 2>&5 | |
36408 | ac_status=$? | |
36409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36410 | (exit $ac_status); }; }; then | |
36411 | echo "$as_me:$LINENO: result: yes" >&5 | |
36412 | echo "${ECHO_T}yes" >&6 | |
36413 | cat >>confdefs.h <<\_ACEOF | |
36414 | #define HAVE__VSNWPRINTF 1 | |
36415 | _ACEOF | |
36416 | ||
36417 | else | |
36418 | echo "$as_me: failed program was:" >&5 | |
36419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36420 | ||
36421 | echo "$as_me:$LINENO: result: no" >&5 | |
36422 | echo "${ECHO_T}no" >&6 | |
36423 | fi | |
ac1cb8d3 | 36424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
36425 | fi |
36426 | ||
6ebeb4c7 VZ |
36427 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
36428 | ||
36429 | for ac_func in fnmatch | |
36430 | do | |
36431 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36432 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36433 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36434 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36436 | else | |
36437 | cat >conftest.$ac_ext <<_ACEOF | |
36438 | /* confdefs.h. */ | |
36439 | _ACEOF | |
36440 | cat confdefs.h >>conftest.$ac_ext | |
36441 | cat >>conftest.$ac_ext <<_ACEOF | |
36442 | /* end confdefs.h. */ | |
36443 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
36444 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36445 | #define $ac_func innocuous_$ac_func | |
36446 | ||
36447 | /* System header to define __stub macros and hopefully few prototypes, | |
36448 | which can conflict with char $ac_func (); below. | |
36449 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36450 | <limits.h> exists even on freestanding compilers. */ | |
36451 | ||
36452 | #ifdef __STDC__ | |
36453 | # include <limits.h> | |
36454 | #else | |
36455 | # include <assert.h> | |
36456 | #endif | |
36457 | ||
36458 | #undef $ac_func | |
36459 | ||
36460 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36461 | #ifdef __cplusplus | |
36462 | extern "C" | |
36463 | { | |
36464 | #endif | |
36465 | /* We use char because int might match the return type of a gcc2 | |
36466 | builtin and then its argument prototype would still apply. */ | |
36467 | char $ac_func (); | |
36468 | /* The GNU C library defines this for functions which it implements | |
36469 | to always fail with ENOSYS. Some functions are actually named | |
36470 | something starting with __ and the normal name is an alias. */ | |
36471 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36472 | choke me | |
36473 | #else | |
36474 | char (*f) () = $ac_func; | |
36475 | #endif | |
36476 | #ifdef __cplusplus | |
36477 | } | |
36478 | #endif | |
36479 | ||
36480 | int | |
36481 | main () | |
36482 | { | |
36483 | return f != $ac_func; | |
36484 | ; | |
36485 | return 0; | |
36486 | } | |
36487 | _ACEOF | |
36488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
36490 | (eval $ac_link) 2>conftest.er1 | |
36491 | ac_status=$? | |
36492 | grep -v '^ *+' conftest.er1 >conftest.err | |
36493 | rm -f conftest.er1 | |
36494 | cat conftest.err >&5 | |
36495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36496 | (exit $ac_status); } && | |
bb9e79c0 | 36497 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
36498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36499 | (eval $ac_try) 2>&5 | |
36500 | ac_status=$? | |
36501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36502 | (exit $ac_status); }; } && | |
36503 | { ac_try='test -s conftest$ac_exeext' | |
36504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36505 | (eval $ac_try) 2>&5 | |
36506 | ac_status=$? | |
36507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36508 | (exit $ac_status); }; }; then | |
36509 | eval "$as_ac_var=yes" | |
36510 | else | |
36511 | echo "$as_me: failed program was:" >&5 | |
36512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36513 | ||
36514 | eval "$as_ac_var=no" | |
36515 | fi | |
36516 | rm -f conftest.err conftest.$ac_objext \ | |
36517 | conftest$ac_exeext conftest.$ac_ext | |
36518 | fi | |
36519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36520 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36521 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36522 | cat >>confdefs.h <<_ACEOF | |
36523 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36524 | _ACEOF | |
36525 | ||
36526 | fi | |
36527 | done | |
36528 | ||
36529 | fi | |
36530 | ||
36531 | if test "$wxUSE_FILE" = "yes"; then | |
36532 | ||
36533 | for ac_func in fsync | |
36534 | do | |
36535 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36536 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36537 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36538 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36540 | else | |
36541 | cat >conftest.$ac_ext <<_ACEOF | |
36542 | /* confdefs.h. */ | |
36543 | _ACEOF | |
36544 | cat confdefs.h >>conftest.$ac_ext | |
36545 | cat >>conftest.$ac_ext <<_ACEOF | |
36546 | /* end confdefs.h. */ | |
36547 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
36548 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36549 | #define $ac_func innocuous_$ac_func | |
36550 | ||
36551 | /* System header to define __stub macros and hopefully few prototypes, | |
36552 | which can conflict with char $ac_func (); below. | |
36553 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36554 | <limits.h> exists even on freestanding compilers. */ | |
36555 | ||
36556 | #ifdef __STDC__ | |
36557 | # include <limits.h> | |
36558 | #else | |
36559 | # include <assert.h> | |
36560 | #endif | |
36561 | ||
36562 | #undef $ac_func | |
36563 | ||
36564 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36565 | #ifdef __cplusplus | |
36566 | extern "C" | |
36567 | { | |
36568 | #endif | |
36569 | /* We use char because int might match the return type of a gcc2 | |
36570 | builtin and then its argument prototype would still apply. */ | |
36571 | char $ac_func (); | |
36572 | /* The GNU C library defines this for functions which it implements | |
36573 | to always fail with ENOSYS. Some functions are actually named | |
36574 | something starting with __ and the normal name is an alias. */ | |
36575 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36576 | choke me | |
36577 | #else | |
36578 | char (*f) () = $ac_func; | |
36579 | #endif | |
36580 | #ifdef __cplusplus | |
36581 | } | |
36582 | #endif | |
36583 | ||
36584 | int | |
36585 | main () | |
36586 | { | |
36587 | return f != $ac_func; | |
36588 | ; | |
36589 | return 0; | |
36590 | } | |
36591 | _ACEOF | |
36592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
36594 | (eval $ac_link) 2>conftest.er1 | |
36595 | ac_status=$? | |
36596 | grep -v '^ *+' conftest.er1 >conftest.err | |
36597 | rm -f conftest.er1 | |
36598 | cat conftest.err >&5 | |
36599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36600 | (exit $ac_status); } && | |
bb9e79c0 | 36601 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
36602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36603 | (eval $ac_try) 2>&5 | |
36604 | ac_status=$? | |
36605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36606 | (exit $ac_status); }; } && | |
36607 | { ac_try='test -s conftest$ac_exeext' | |
36608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36609 | (eval $ac_try) 2>&5 | |
36610 | ac_status=$? | |
36611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36612 | (exit $ac_status); }; }; then | |
36613 | eval "$as_ac_var=yes" | |
36614 | else | |
36615 | echo "$as_me: failed program was:" >&5 | |
36616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36617 | ||
36618 | eval "$as_ac_var=no" | |
36619 | fi | |
36620 | rm -f conftest.err conftest.$ac_objext \ | |
36621 | conftest$ac_exeext conftest.$ac_ext | |
36622 | fi | |
36623 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36624 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36625 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36626 | cat >>confdefs.h <<_ACEOF | |
36627 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36628 | _ACEOF | |
36629 | ||
36630 | fi | |
36631 | done | |
36632 | ||
36633 | fi | |
a848cd7e SC |
36634 | |
36635 | ||
c2e9ada4 VZ |
36636 | for ac_func in round |
36637 | do | |
36638 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36639 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36640 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36641 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36643 | else | |
36644 | cat >conftest.$ac_ext <<_ACEOF | |
36645 | /* confdefs.h. */ | |
36646 | _ACEOF | |
36647 | cat confdefs.h >>conftest.$ac_ext | |
36648 | cat >>conftest.$ac_ext <<_ACEOF | |
36649 | /* end confdefs.h. */ | |
36650 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
36651 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36652 | #define $ac_func innocuous_$ac_func | |
36653 | ||
36654 | /* System header to define __stub macros and hopefully few prototypes, | |
36655 | which can conflict with char $ac_func (); below. | |
36656 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36657 | <limits.h> exists even on freestanding compilers. */ | |
36658 | ||
36659 | #ifdef __STDC__ | |
36660 | # include <limits.h> | |
36661 | #else | |
36662 | # include <assert.h> | |
36663 | #endif | |
36664 | ||
36665 | #undef $ac_func | |
36666 | ||
36667 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36668 | #ifdef __cplusplus | |
36669 | extern "C" | |
36670 | { | |
36671 | #endif | |
36672 | /* We use char because int might match the return type of a gcc2 | |
36673 | builtin and then its argument prototype would still apply. */ | |
36674 | char $ac_func (); | |
36675 | /* The GNU C library defines this for functions which it implements | |
36676 | to always fail with ENOSYS. Some functions are actually named | |
36677 | something starting with __ and the normal name is an alias. */ | |
36678 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36679 | choke me | |
36680 | #else | |
36681 | char (*f) () = $ac_func; | |
36682 | #endif | |
36683 | #ifdef __cplusplus | |
36684 | } | |
36685 | #endif | |
36686 | ||
36687 | int | |
36688 | main () | |
36689 | { | |
36690 | return f != $ac_func; | |
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 | |
36697 | (eval $ac_link) 2>conftest.er1 | |
36698 | ac_status=$? | |
36699 | grep -v '^ *+' conftest.er1 >conftest.err | |
36700 | rm -f conftest.er1 | |
36701 | cat conftest.err >&5 | |
36702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36703 | (exit $ac_status); } && | |
bb9e79c0 | 36704 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c2e9ada4 VZ |
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' | |
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 | eval "$as_ac_var=yes" | |
36717 | else | |
36718 | echo "$as_me: failed program was:" >&5 | |
36719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36720 | ||
36721 | eval "$as_ac_var=no" | |
36722 | fi | |
36723 | rm -f conftest.err conftest.$ac_objext \ | |
36724 | conftest$ac_exeext conftest.$ac_ext | |
36725 | fi | |
36726 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36727 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36728 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36729 | cat >>confdefs.h <<_ACEOF | |
36730 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36731 | _ACEOF | |
36732 | ||
36733 | fi | |
36734 | done | |
36735 | ||
36736 | if test "$ac_cv_func_round" = yes; then | |
36737 | echo "$as_me:$LINENO: checking whether round is declared" >&5 | |
36738 | echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6 | |
36739 | if test "${ac_cv_have_decl_round+set}" = set; then | |
36740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36741 | else | |
36742 | cat >conftest.$ac_ext <<_ACEOF | |
36743 | /* confdefs.h. */ | |
36744 | _ACEOF | |
36745 | cat confdefs.h >>conftest.$ac_ext | |
36746 | cat >>conftest.$ac_ext <<_ACEOF | |
36747 | /* end confdefs.h. */ | |
36748 | #include <math.h> | |
36749 | ||
36750 | int | |
36751 | main () | |
36752 | { | |
36753 | #ifndef round | |
36754 | char *p = (char *) round; | |
36755 | #endif | |
36756 | ||
36757 | ; | |
36758 | return 0; | |
36759 | } | |
36760 | _ACEOF | |
36761 | rm -f conftest.$ac_objext | |
36762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36763 | (eval $ac_compile) 2>conftest.er1 | |
36764 | ac_status=$? | |
36765 | grep -v '^ *+' conftest.er1 >conftest.err | |
36766 | rm -f conftest.er1 | |
36767 | cat conftest.err >&5 | |
36768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36769 | (exit $ac_status); } && | |
bb9e79c0 | 36770 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c2e9ada4 VZ |
36771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36772 | (eval $ac_try) 2>&5 | |
36773 | ac_status=$? | |
36774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36775 | (exit $ac_status); }; } && | |
36776 | { ac_try='test -s conftest.$ac_objext' | |
36777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36778 | (eval $ac_try) 2>&5 | |
36779 | ac_status=$? | |
36780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36781 | (exit $ac_status); }; }; then | |
36782 | ac_cv_have_decl_round=yes | |
36783 | else | |
36784 | echo "$as_me: failed program was:" >&5 | |
36785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36786 | ||
36787 | ac_cv_have_decl_round=no | |
36788 | fi | |
36789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36790 | fi | |
36791 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5 | |
36792 | echo "${ECHO_T}$ac_cv_have_decl_round" >&6 | |
36793 | if test $ac_cv_have_decl_round = yes; then | |
36794 | ||
36795 | cat >>confdefs.h <<_ACEOF | |
36796 | #define HAVE_DECL_ROUND 1 | |
36797 | _ACEOF | |
36798 | ||
36799 | ||
36800 | else | |
36801 | cat >>confdefs.h <<_ACEOF | |
36802 | #define HAVE_DECL_ROUND 0 | |
36803 | _ACEOF | |
36804 | ||
36805 | ||
36806 | fi | |
36807 | ||
36808 | ||
36809 | fi | |
36810 | ||
36811 | ||
a848cd7e SC |
36812 | if test "$TOOLKIT" != "MSW"; then |
36813 | ||
36814 | ||
a848cd7e SC |
36815 | |
36816 | ||
36817 | ||
36818 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
36819 | if test "${with_libiconv_prefix+set}" = set; then | |
36820 | withval="$with_libiconv_prefix" | |
36821 | ||
36822 | for dir in `echo "$withval" | tr : ' '`; do | |
36823 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
36824 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
36825 | done | |
36826 | ||
36827 | fi; | |
36828 | ||
36829 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
36830 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
36831 | if test "${am_cv_func_iconv+set}" = set; then | |
36832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36833 | else | |
36834 | ||
36835 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
36836 | am_cv_lib_iconv=no | |
36837 | cat >conftest.$ac_ext <<_ACEOF | |
36838 | /* confdefs.h. */ | |
36839 | _ACEOF | |
36840 | cat confdefs.h >>conftest.$ac_ext | |
36841 | cat >>conftest.$ac_ext <<_ACEOF | |
36842 | /* end confdefs.h. */ | |
36843 | #include <stdlib.h> | |
36844 | #include <iconv.h> | |
36845 | int | |
36846 | main () | |
36847 | { | |
36848 | iconv_t cd = iconv_open("",""); | |
36849 | iconv(cd,NULL,NULL,NULL,NULL); | |
36850 | iconv_close(cd); | |
36851 | ; | |
36852 | return 0; | |
36853 | } | |
36854 | _ACEOF | |
36855 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36857 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36858 | ac_status=$? |
ac1cb8d3 VS |
36859 | grep -v '^ *+' conftest.er1 >conftest.err |
36860 | rm -f conftest.er1 | |
36861 | cat conftest.err >&5 | |
a848cd7e SC |
36862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36863 | (exit $ac_status); } && | |
bb9e79c0 | 36864 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36866 | (eval $ac_try) 2>&5 | |
36867 | ac_status=$? | |
36868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36869 | (exit $ac_status); }; } && | |
36870 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36872 | (eval $ac_try) 2>&5 | |
36873 | ac_status=$? | |
36874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36875 | (exit $ac_status); }; }; then | |
36876 | am_cv_func_iconv=yes | |
36877 | else | |
36878 | echo "$as_me: failed program was:" >&5 | |
36879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36880 | ||
36881 | fi | |
ac1cb8d3 VS |
36882 | rm -f conftest.err conftest.$ac_objext \ |
36883 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36884 | if test "$am_cv_func_iconv" != yes; then |
36885 | am_save_LIBS="$LIBS" | |
36886 | LIBS="$LIBS -liconv" | |
36887 | cat >conftest.$ac_ext <<_ACEOF | |
36888 | /* confdefs.h. */ | |
36889 | _ACEOF | |
36890 | cat confdefs.h >>conftest.$ac_ext | |
36891 | cat >>conftest.$ac_ext <<_ACEOF | |
36892 | /* end confdefs.h. */ | |
36893 | #include <stdlib.h> | |
36894 | #include <iconv.h> | |
36895 | int | |
36896 | main () | |
36897 | { | |
36898 | iconv_t cd = iconv_open("",""); | |
36899 | iconv(cd,NULL,NULL,NULL,NULL); | |
36900 | iconv_close(cd); | |
36901 | ; | |
36902 | return 0; | |
36903 | } | |
36904 | _ACEOF | |
36905 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36907 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36908 | ac_status=$? |
ac1cb8d3 VS |
36909 | grep -v '^ *+' conftest.er1 >conftest.err |
36910 | rm -f conftest.er1 | |
36911 | cat conftest.err >&5 | |
a848cd7e SC |
36912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36913 | (exit $ac_status); } && | |
bb9e79c0 | 36914 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36916 | (eval $ac_try) 2>&5 | |
36917 | ac_status=$? | |
36918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36919 | (exit $ac_status); }; } && | |
36920 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36922 | (eval $ac_try) 2>&5 | |
36923 | ac_status=$? | |
36924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36925 | (exit $ac_status); }; }; then | |
36926 | am_cv_lib_iconv=yes | |
36927 | am_cv_func_iconv=yes | |
36928 | else | |
36929 | echo "$as_me: failed program was:" >&5 | |
36930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36931 | ||
36932 | fi | |
ac1cb8d3 VS |
36933 | rm -f conftest.err conftest.$ac_objext \ |
36934 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36935 | LIBS="$am_save_LIBS" |
36936 | fi | |
36937 | ||
36938 | fi | |
36939 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
36940 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
36941 | if test "$am_cv_func_iconv" = yes; then | |
36942 | ||
36943 | cat >>confdefs.h <<\_ACEOF | |
36944 | #define HAVE_ICONV 1 | |
36945 | _ACEOF | |
36946 | ||
36947 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
36948 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
36949 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
36950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36951 | else | |
36952 | cat >conftest.$ac_ext <<_ACEOF | |
36953 | /* confdefs.h. */ | |
36954 | _ACEOF | |
36955 | cat confdefs.h >>conftest.$ac_ext | |
36956 | cat >>conftest.$ac_ext <<_ACEOF | |
36957 | /* end confdefs.h. */ | |
36958 | ||
36959 | #include <stdlib.h> | |
36960 | #include <iconv.h> | |
36961 | extern | |
36962 | #ifdef __cplusplus | |
36963 | "C" | |
36964 | #endif | |
36965 | #if defined(__STDC__) || defined(__cplusplus) | |
36966 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
36967 | #else | |
36968 | size_t iconv(); | |
36969 | #endif | |
36970 | ||
36971 | int | |
36972 | main () | |
36973 | { | |
36974 | ||
36975 | ; | |
36976 | return 0; | |
36977 | } | |
36978 | _ACEOF | |
36979 | rm -f conftest.$ac_objext | |
36980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36982 | ac_status=$? |
ac1cb8d3 VS |
36983 | grep -v '^ *+' conftest.er1 >conftest.err |
36984 | rm -f conftest.er1 | |
36985 | cat conftest.err >&5 | |
a848cd7e SC |
36986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36987 | (exit $ac_status); } && | |
bb9e79c0 | 36988 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36990 | (eval $ac_try) 2>&5 | |
36991 | ac_status=$? | |
36992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36993 | (exit $ac_status); }; } && | |
36994 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36996 | (eval $ac_try) 2>&5 | |
36997 | ac_status=$? | |
36998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36999 | (exit $ac_status); }; }; then | |
37000 | wx_cv_func_iconv_const="no" | |
37001 | else | |
37002 | echo "$as_me: failed program was:" >&5 | |
37003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37004 | ||
37005 | wx_cv_func_iconv_const="yes" | |
37006 | ||
37007 | fi | |
ac1cb8d3 | 37008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37009 | |
37010 | fi | |
37011 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
37012 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
37013 | ||
37014 | iconv_const= | |
37015 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
37016 | iconv_const="const" | |
37017 | fi | |
37018 | ||
37019 | ||
37020 | cat >>confdefs.h <<_ACEOF | |
37021 | #define ICONV_CONST $iconv_const | |
37022 | _ACEOF | |
37023 | ||
37024 | fi | |
37025 | LIBICONV= | |
37026 | if test "$am_cv_lib_iconv" = yes; then | |
37027 | LIBICONV="-liconv" | |
37028 | fi | |
37029 | ||
37030 | ||
37031 | LIBS="$LIBICONV $LIBS" | |
a848cd7e SC |
37032 | |
37033 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
37034 | ||
37035 | for ac_func in sigaction | |
37036 | do | |
37037 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37038 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37039 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37040 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37042 | else | |
37043 | cat >conftest.$ac_ext <<_ACEOF | |
37044 | /* confdefs.h. */ | |
37045 | _ACEOF | |
37046 | cat confdefs.h >>conftest.$ac_ext | |
37047 | cat >>conftest.$ac_ext <<_ACEOF | |
37048 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37049 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37050 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37051 | #define $ac_func innocuous_$ac_func | |
37052 | ||
a848cd7e SC |
37053 | /* System header to define __stub macros and hopefully few prototypes, |
37054 | which can conflict with char $ac_func (); below. | |
37055 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37056 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37057 | |
a848cd7e SC |
37058 | #ifdef __STDC__ |
37059 | # include <limits.h> | |
37060 | #else | |
37061 | # include <assert.h> | |
37062 | #endif | |
ac1cb8d3 VS |
37063 | |
37064 | #undef $ac_func | |
37065 | ||
a848cd7e SC |
37066 | /* Override any gcc2 internal prototype to avoid an error. */ |
37067 | #ifdef __cplusplus | |
37068 | extern "C" | |
37069 | { | |
37070 | #endif | |
37071 | /* We use char because int might match the return type of a gcc2 | |
37072 | builtin and then its argument prototype would still apply. */ | |
37073 | char $ac_func (); | |
37074 | /* The GNU C library defines this for functions which it implements | |
37075 | to always fail with ENOSYS. Some functions are actually named | |
37076 | something starting with __ and the normal name is an alias. */ | |
37077 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37078 | choke me | |
37079 | #else | |
37080 | char (*f) () = $ac_func; | |
37081 | #endif | |
37082 | #ifdef __cplusplus | |
37083 | } | |
37084 | #endif | |
37085 | ||
37086 | int | |
37087 | main () | |
37088 | { | |
37089 | return f != $ac_func; | |
37090 | ; | |
37091 | return 0; | |
37092 | } | |
37093 | _ACEOF | |
37094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37096 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37097 | ac_status=$? |
ac1cb8d3 VS |
37098 | grep -v '^ *+' conftest.er1 >conftest.err |
37099 | rm -f conftest.er1 | |
37100 | cat conftest.err >&5 | |
a848cd7e SC |
37101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37102 | (exit $ac_status); } && | |
bb9e79c0 | 37103 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37105 | (eval $ac_try) 2>&5 | |
37106 | ac_status=$? | |
37107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37108 | (exit $ac_status); }; } && | |
37109 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37111 | (eval $ac_try) 2>&5 | |
37112 | ac_status=$? | |
37113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37114 | (exit $ac_status); }; }; then | |
37115 | eval "$as_ac_var=yes" | |
37116 | else | |
37117 | echo "$as_me: failed program was:" >&5 | |
37118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37119 | ||
37120 | eval "$as_ac_var=no" | |
37121 | fi | |
ac1cb8d3 VS |
37122 | rm -f conftest.err conftest.$ac_objext \ |
37123 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37124 | fi |
37125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37126 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37127 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37128 | cat >>confdefs.h <<_ACEOF | |
37129 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37130 | _ACEOF | |
37131 | ||
37132 | fi | |
37133 | done | |
37134 | ||
37135 | ||
37136 | if test "$ac_cv_func_sigaction" = "no"; then | |
37137 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
37138 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
37139 | wxUSE_ON_FATAL_EXCEPTION=no | |
37140 | fi | |
37141 | ||
37142 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a848cd7e SC |
37143 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
37144 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
37145 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
37146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37147 | else | |
37148 | ||
37149 | cat >conftest.$ac_ext <<_ACEOF | |
37150 | /* confdefs.h. */ | |
37151 | _ACEOF | |
37152 | cat confdefs.h >>conftest.$ac_ext | |
37153 | cat >>conftest.$ac_ext <<_ACEOF | |
37154 | /* end confdefs.h. */ | |
37155 | #include <signal.h> | |
37156 | int | |
37157 | main () | |
37158 | { | |
37159 | ||
37160 | extern void testSigHandler(int); | |
37161 | ||
37162 | struct sigaction sa; | |
37163 | sa.sa_handler = testSigHandler; | |
37164 | ||
37165 | ; | |
37166 | return 0; | |
37167 | } | |
37168 | _ACEOF | |
37169 | rm -f conftest.$ac_objext | |
37170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37171 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37172 | ac_status=$? |
ac1cb8d3 VS |
37173 | grep -v '^ *+' conftest.er1 >conftest.err |
37174 | rm -f conftest.er1 | |
37175 | cat conftest.err >&5 | |
a848cd7e SC |
37176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37177 | (exit $ac_status); } && | |
bb9e79c0 | 37178 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37180 | (eval $ac_try) 2>&5 | |
37181 | ac_status=$? | |
37182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37183 | (exit $ac_status); }; } && | |
37184 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37186 | (eval $ac_try) 2>&5 | |
37187 | ac_status=$? | |
37188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37189 | (exit $ac_status); }; }; then | |
37190 | ||
37191 | wx_cv_type_sa_handler=int | |
37192 | ||
37193 | else | |
37194 | echo "$as_me: failed program was:" >&5 | |
37195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37196 | ||
37197 | ||
37198 | wx_cv_type_sa_handler=void | |
37199 | ||
37200 | fi | |
ac1cb8d3 | 37201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37202 | |
37203 | fi | |
37204 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
37205 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
37206 | ||
a848cd7e SC |
37207 | cat >>confdefs.h <<_ACEOF |
37208 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
37209 | _ACEOF | |
37210 | ||
37211 | fi | |
37212 | fi | |
37213 | ||
eaff0f0d | 37214 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
eaff0f0d VZ |
37215 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 |
37216 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
37217 | if test "${wx_cv_func_backtrace+set}" = set; then | |
37218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37219 | else | |
37220 | ||
37221 | cat >conftest.$ac_ext <<_ACEOF | |
37222 | /* confdefs.h. */ | |
37223 | _ACEOF | |
37224 | cat confdefs.h >>conftest.$ac_ext | |
37225 | cat >>conftest.$ac_ext <<_ACEOF | |
37226 | /* end confdefs.h. */ | |
37227 | #include <execinfo.h> | |
37228 | int | |
37229 | main () | |
37230 | { | |
37231 | ||
37232 | void *trace[1]; | |
37233 | char **messages; | |
37234 | ||
37235 | backtrace(trace, 1); | |
37236 | messages = backtrace_symbols(trace, 1); | |
37237 | ||
37238 | ; | |
37239 | return 0; | |
37240 | } | |
37241 | _ACEOF | |
37242 | rm -f conftest.$ac_objext | |
37243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37244 | (eval $ac_compile) 2>conftest.er1 | |
37245 | ac_status=$? | |
37246 | grep -v '^ *+' conftest.er1 >conftest.err | |
37247 | rm -f conftest.er1 | |
37248 | cat conftest.err >&5 | |
37249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37250 | (exit $ac_status); } && | |
bb9e79c0 | 37251 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
37252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37253 | (eval $ac_try) 2>&5 | |
37254 | ac_status=$? | |
37255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37256 | (exit $ac_status); }; } && | |
37257 | { ac_try='test -s conftest.$ac_objext' | |
37258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37259 | (eval $ac_try) 2>&5 | |
37260 | ac_status=$? | |
37261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37262 | (exit $ac_status); }; }; then | |
37263 | wx_cv_func_backtrace=yes | |
37264 | else | |
37265 | echo "$as_me: failed program was:" >&5 | |
37266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37267 | ||
37268 | wx_cv_func_backtrace=no | |
37269 | ||
37270 | fi | |
37271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37272 | ||
37273 | ||
37274 | fi | |
37275 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
37276 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
37277 | ||
37278 | ||
37279 | if test "$wx_cv_func_backtrace" = "no"; then | |
37280 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
37281 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
37282 | wxUSE_STACKWALKER=no | |
37283 | else | |
37284 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
37285 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
37286 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
37287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37288 | else | |
37289 | ||
37290 | cat >conftest.$ac_ext <<_ACEOF | |
37291 | /* confdefs.h. */ | |
37292 | _ACEOF | |
37293 | cat confdefs.h >>conftest.$ac_ext | |
37294 | cat >>conftest.$ac_ext <<_ACEOF | |
37295 | /* end confdefs.h. */ | |
37296 | #include <cxxabi.h> | |
37297 | int | |
37298 | main () | |
37299 | { | |
37300 | ||
37301 | int rc; | |
37302 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
37303 | ||
37304 | ; | |
37305 | return 0; | |
37306 | } | |
37307 | _ACEOF | |
dfe0c803 JS |
37308 | rm -f conftest.$ac_objext conftest$ac_exeext |
37309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
37310 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
37311 | ac_status=$? |
37312 | grep -v '^ *+' conftest.er1 >conftest.err | |
37313 | rm -f conftest.er1 | |
37314 | cat conftest.err >&5 | |
37315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37316 | (exit $ac_status); } && | |
bb9e79c0 | 37317 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
37318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37319 | (eval $ac_try) 2>&5 | |
37320 | ac_status=$? | |
37321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37322 | (exit $ac_status); }; } && | |
dfe0c803 | 37323 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
37324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37325 | (eval $ac_try) 2>&5 | |
37326 | ac_status=$? | |
37327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37328 | (exit $ac_status); }; }; then | |
37329 | wx_cv_func_cxa_demangle=yes | |
37330 | else | |
37331 | echo "$as_me: failed program was:" >&5 | |
37332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37333 | ||
37334 | wx_cv_func_cxa_demangle=no | |
37335 | ||
37336 | fi | |
dfe0c803 JS |
37337 | rm -f conftest.err conftest.$ac_objext \ |
37338 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
37339 | |
37340 | ||
37341 | fi | |
37342 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
37343 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
37344 | ||
37345 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
37346 | cat >>confdefs.h <<\_ACEOF | |
37347 | #define HAVE_CXA_DEMANGLE 1 | |
37348 | _ACEOF | |
37349 | ||
37350 | fi | |
37351 | fi | |
eaff0f0d VZ |
37352 | fi |
37353 | ||
898beab1 DE |
37354 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
37355 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
37356 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
37357 | wxUSE_STACKWALKER=no | |
37358 | fi | |
37359 | ||
37360 | ||
a848cd7e SC |
37361 | |
37362 | ||
37363 | for ac_func in mkstemp mktemp | |
37364 | do | |
37365 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37366 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37367 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37368 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37370 | else | |
37371 | cat >conftest.$ac_ext <<_ACEOF | |
37372 | /* confdefs.h. */ | |
37373 | _ACEOF | |
37374 | cat confdefs.h >>conftest.$ac_ext | |
37375 | cat >>conftest.$ac_ext <<_ACEOF | |
37376 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37377 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37378 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37379 | #define $ac_func innocuous_$ac_func | |
37380 | ||
a848cd7e SC |
37381 | /* System header to define __stub macros and hopefully few prototypes, |
37382 | which can conflict with char $ac_func (); below. | |
37383 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37384 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37385 | |
a848cd7e SC |
37386 | #ifdef __STDC__ |
37387 | # include <limits.h> | |
37388 | #else | |
37389 | # include <assert.h> | |
37390 | #endif | |
ac1cb8d3 VS |
37391 | |
37392 | #undef $ac_func | |
37393 | ||
a848cd7e SC |
37394 | /* Override any gcc2 internal prototype to avoid an error. */ |
37395 | #ifdef __cplusplus | |
37396 | extern "C" | |
37397 | { | |
37398 | #endif | |
37399 | /* We use char because int might match the return type of a gcc2 | |
37400 | builtin and then its argument prototype would still apply. */ | |
37401 | char $ac_func (); | |
37402 | /* The GNU C library defines this for functions which it implements | |
37403 | to always fail with ENOSYS. Some functions are actually named | |
37404 | something starting with __ and the normal name is an alias. */ | |
37405 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37406 | choke me | |
37407 | #else | |
37408 | char (*f) () = $ac_func; | |
37409 | #endif | |
37410 | #ifdef __cplusplus | |
37411 | } | |
37412 | #endif | |
37413 | ||
37414 | int | |
37415 | main () | |
37416 | { | |
37417 | return f != $ac_func; | |
37418 | ; | |
37419 | return 0; | |
37420 | } | |
37421 | _ACEOF | |
37422 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37424 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37425 | ac_status=$? |
ac1cb8d3 VS |
37426 | grep -v '^ *+' conftest.er1 >conftest.err |
37427 | rm -f conftest.er1 | |
37428 | cat conftest.err >&5 | |
a848cd7e SC |
37429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37430 | (exit $ac_status); } && | |
bb9e79c0 | 37431 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37433 | (eval $ac_try) 2>&5 | |
37434 | ac_status=$? | |
37435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37436 | (exit $ac_status); }; } && | |
37437 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37439 | (eval $ac_try) 2>&5 | |
37440 | ac_status=$? | |
37441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37442 | (exit $ac_status); }; }; then | |
37443 | eval "$as_ac_var=yes" | |
37444 | else | |
37445 | echo "$as_me: failed program was:" >&5 | |
37446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37447 | ||
37448 | eval "$as_ac_var=no" | |
37449 | fi | |
ac1cb8d3 VS |
37450 | rm -f conftest.err conftest.$ac_objext \ |
37451 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37452 | fi |
37453 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37454 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37455 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37456 | cat >>confdefs.h <<_ACEOF | |
37457 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37458 | _ACEOF | |
37459 | break | |
37460 | fi | |
37461 | done | |
37462 | ||
37463 | ||
37464 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
37465 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
37466 | if test "${wx_cv_func_statfs+set}" = set; then | |
37467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37468 | else | |
37469 | cat >conftest.$ac_ext <<_ACEOF | |
37470 | /* confdefs.h. */ | |
37471 | _ACEOF | |
37472 | cat confdefs.h >>conftest.$ac_ext | |
37473 | cat >>conftest.$ac_ext <<_ACEOF | |
37474 | /* end confdefs.h. */ | |
37475 | ||
37476 | #if defined(__BSD__) | |
84ae7ca4 VZ |
37477 | #include <sys/param.h> |
37478 | #include <sys/mount.h> | |
a848cd7e | 37479 | #else |
84ae7ca4 | 37480 | #include <sys/vfs.h> |
a848cd7e SC |
37481 | #endif |
37482 | ||
37483 | int | |
37484 | main () | |
37485 | { | |
37486 | ||
37487 | long l; | |
37488 | struct statfs fs; | |
37489 | statfs("/", &fs); | |
37490 | l = fs.f_bsize; | |
37491 | l += fs.f_blocks; | |
37492 | l += fs.f_bavail; | |
37493 | ||
37494 | ; | |
37495 | return 0; | |
37496 | } | |
37497 | _ACEOF | |
37498 | rm -f conftest.$ac_objext | |
37499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37500 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37501 | ac_status=$? |
ac1cb8d3 VS |
37502 | grep -v '^ *+' conftest.er1 >conftest.err |
37503 | rm -f conftest.er1 | |
37504 | cat conftest.err >&5 | |
a848cd7e SC |
37505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37506 | (exit $ac_status); } && | |
bb9e79c0 | 37507 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37509 | (eval $ac_try) 2>&5 | |
37510 | ac_status=$? | |
37511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37512 | (exit $ac_status); }; } && | |
37513 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37515 | (eval $ac_try) 2>&5 | |
37516 | ac_status=$? | |
37517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37518 | (exit $ac_status); }; }; then | |
84ae7ca4 | 37519 | wx_cv_func_statfs=yes |
a848cd7e SC |
37520 | else |
37521 | echo "$as_me: failed program was:" >&5 | |
37522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37523 | ||
84ae7ca4 | 37524 | wx_cv_func_statfs=no |
a848cd7e SC |
37525 | |
37526 | fi | |
ac1cb8d3 | 37527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37528 | |
37529 | fi | |
37530 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
37531 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
37532 | ||
37533 | if test "$wx_cv_func_statfs" = "yes"; then | |
5d7b7554 | 37534 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 |
84ae7ca4 VZ |
37535 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 |
37536 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
37537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37538 | else | |
0683aca6 VZ |
37539 | cat >conftest.$ac_ext <<_ACEOF |
37540 | /* confdefs.h. */ | |
37541 | _ACEOF | |
37542 | cat confdefs.h >>conftest.$ac_ext | |
37543 | cat >>conftest.$ac_ext <<_ACEOF | |
37544 | /* end confdefs.h. */ | |
84ae7ca4 | 37545 | |
0683aca6 VZ |
37546 | #if defined(__BSD__) |
37547 | #include <sys/param.h> | |
37548 | #include <sys/mount.h> | |
37549 | #else | |
37550 | #include <sys/vfs.h> | |
37551 | #endif | |
37552 | ||
37553 | int | |
37554 | main () | |
37555 | { | |
37556 | ||
37557 | struct statfs fs; | |
37558 | statfs("", &fs); | |
37559 | ||
37560 | ; | |
37561 | return 0; | |
37562 | } | |
37563 | _ACEOF | |
37564 | rm -f conftest.$ac_objext | |
37565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37566 | (eval $ac_compile) 2>conftest.er1 | |
37567 | ac_status=$? | |
37568 | grep -v '^ *+' conftest.er1 >conftest.err | |
37569 | rm -f conftest.er1 | |
37570 | cat conftest.err >&5 | |
37571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37572 | (exit $ac_status); } && | |
bb9e79c0 | 37573 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0683aca6 VZ |
37574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37575 | (eval $ac_try) 2>&5 | |
37576 | ac_status=$? | |
37577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37578 | (exit $ac_status); }; } && | |
37579 | { ac_try='test -s conftest.$ac_objext' | |
37580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37581 | (eval $ac_try) 2>&5 | |
37582 | ac_status=$? | |
37583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37584 | (exit $ac_status); }; }; then | |
37585 | wx_cv_func_statfs_decl=yes | |
37586 | else | |
37587 | echo "$as_me: failed program was:" >&5 | |
37588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37589 | ||
37590 | wx_cv_func_statfs_decl=no | |
37591 | ||
37592 | fi | |
37593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
37594 | |
37595 | fi | |
37596 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
37597 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
84ae7ca4 VZ |
37598 | |
37599 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
37600 | cat >>confdefs.h <<\_ACEOF | |
37601 | #define HAVE_STATFS_DECL 1 | |
37602 | _ACEOF | |
37603 | ||
37604 | fi | |
37605 | ||
a848cd7e SC |
37606 | wx_cv_type_statvfs_t="struct statfs" |
37607 | cat >>confdefs.h <<\_ACEOF | |
37608 | #define HAVE_STATFS 1 | |
37609 | _ACEOF | |
37610 | ||
37611 | else | |
37612 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
37613 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
37614 | if test "${wx_cv_func_statvfs+set}" = set; then | |
37615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37616 | else | |
37617 | cat >conftest.$ac_ext <<_ACEOF | |
37618 | /* confdefs.h. */ | |
37619 | _ACEOF | |
37620 | cat confdefs.h >>conftest.$ac_ext | |
37621 | cat >>conftest.$ac_ext <<_ACEOF | |
37622 | /* end confdefs.h. */ | |
37623 | ||
37624 | #include <stddef.h> | |
37625 | #include <sys/statvfs.h> | |
37626 | ||
37627 | int | |
37628 | main () | |
37629 | { | |
37630 | ||
37631 | statvfs("/", NULL); | |
37632 | ||
37633 | ; | |
37634 | return 0; | |
37635 | } | |
37636 | _ACEOF | |
37637 | rm -f conftest.$ac_objext | |
37638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37639 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37640 | ac_status=$? |
ac1cb8d3 VS |
37641 | grep -v '^ *+' conftest.er1 >conftest.err |
37642 | rm -f conftest.er1 | |
37643 | cat conftest.err >&5 | |
a848cd7e SC |
37644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37645 | (exit $ac_status); } && | |
bb9e79c0 | 37646 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37648 | (eval $ac_try) 2>&5 | |
37649 | ac_status=$? | |
37650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37651 | (exit $ac_status); }; } && | |
37652 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37654 | (eval $ac_try) 2>&5 | |
37655 | ac_status=$? | |
37656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37657 | (exit $ac_status); }; }; then | |
37658 | wx_cv_func_statvfs=yes | |
37659 | else | |
37660 | echo "$as_me: failed program was:" >&5 | |
37661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37662 | ||
37663 | wx_cv_func_statvfs=no | |
37664 | ||
37665 | fi | |
ac1cb8d3 | 37666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37667 | |
37668 | fi | |
37669 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
37670 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
37671 | ||
37672 | if test "$wx_cv_func_statvfs" = "yes"; then | |
5d7b7554 | 37673 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
a848cd7e SC |
37674 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 |
37675 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
37676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37677 | else | |
37678 | cat >conftest.$ac_ext <<_ACEOF | |
37679 | /* confdefs.h. */ | |
37680 | _ACEOF | |
37681 | cat confdefs.h >>conftest.$ac_ext | |
37682 | cat >>conftest.$ac_ext <<_ACEOF | |
37683 | /* end confdefs.h. */ | |
37684 | ||
37685 | #include <sys/statvfs.h> | |
37686 | ||
37687 | int | |
37688 | main () | |
37689 | { | |
37690 | ||
37691 | long l; | |
37692 | statvfs_t fs; | |
37693 | statvfs("/", &fs); | |
37694 | l = fs.f_bsize; | |
37695 | l += fs.f_blocks; | |
37696 | l += fs.f_bavail; | |
37697 | ||
37698 | ; | |
37699 | return 0; | |
37700 | } | |
37701 | _ACEOF | |
37702 | rm -f conftest.$ac_objext | |
37703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37704 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37705 | ac_status=$? |
ac1cb8d3 VS |
37706 | grep -v '^ *+' conftest.er1 >conftest.err |
37707 | rm -f conftest.er1 | |
37708 | cat conftest.err >&5 | |
a848cd7e SC |
37709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37710 | (exit $ac_status); } && | |
bb9e79c0 | 37711 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37713 | (eval $ac_try) 2>&5 | |
37714 | ac_status=$? | |
37715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37716 | (exit $ac_status); }; } && | |
37717 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37719 | (eval $ac_try) 2>&5 | |
37720 | ac_status=$? | |
37721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37722 | (exit $ac_status); }; }; then | |
37723 | wx_cv_type_statvfs_t=statvfs_t | |
37724 | else | |
37725 | echo "$as_me: failed program was:" >&5 | |
37726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37727 | ||
37728 | ||
37729 | cat >conftest.$ac_ext <<_ACEOF | |
37730 | /* confdefs.h. */ | |
37731 | _ACEOF | |
37732 | cat confdefs.h >>conftest.$ac_ext | |
37733 | cat >>conftest.$ac_ext <<_ACEOF | |
37734 | /* end confdefs.h. */ | |
37735 | ||
37736 | #include <sys/statvfs.h> | |
37737 | ||
37738 | int | |
37739 | main () | |
37740 | { | |
37741 | ||
37742 | long l; | |
37743 | struct statvfs fs; | |
37744 | statvfs("/", &fs); | |
37745 | l = fs.f_bsize; | |
37746 | l += fs.f_blocks; | |
37747 | l += fs.f_bavail; | |
37748 | ||
37749 | ; | |
37750 | return 0; | |
37751 | } | |
37752 | _ACEOF | |
37753 | rm -f conftest.$ac_objext | |
37754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37755 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37756 | ac_status=$? |
ac1cb8d3 VS |
37757 | grep -v '^ *+' conftest.er1 >conftest.err |
37758 | rm -f conftest.er1 | |
37759 | cat conftest.err >&5 | |
a848cd7e SC |
37760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37761 | (exit $ac_status); } && | |
bb9e79c0 | 37762 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37764 | (eval $ac_try) 2>&5 | |
37765 | ac_status=$? | |
37766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37767 | (exit $ac_status); }; } && | |
37768 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37770 | (eval $ac_try) 2>&5 | |
37771 | ac_status=$? | |
37772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37773 | (exit $ac_status); }; }; then | |
37774 | wx_cv_type_statvfs_t="struct statvfs" | |
37775 | else | |
37776 | echo "$as_me: failed program was:" >&5 | |
37777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37778 | ||
37779 | wx_cv_type_statvfs_t="unknown" | |
37780 | ||
37781 | fi | |
ac1cb8d3 | 37782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37783 | |
37784 | ||
37785 | fi | |
ac1cb8d3 | 37786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37787 | |
37788 | fi | |
37789 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
37790 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
37791 | ||
a848cd7e SC |
37792 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
37793 | cat >>confdefs.h <<\_ACEOF | |
37794 | #define HAVE_STATVFS 1 | |
37795 | _ACEOF | |
37796 | ||
37797 | fi | |
37798 | else | |
37799 | wx_cv_type_statvfs_t="unknown" | |
37800 | fi | |
37801 | fi | |
37802 | ||
37803 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
37804 | cat >>confdefs.h <<_ACEOF | |
37805 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
37806 | _ACEOF | |
37807 | ||
37808 | else | |
37809 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
37810 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
37811 | fi | |
37812 | ||
37813 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
37814 | ||
37815 | ||
37816 | for ac_func in fcntl flock | |
37817 | do | |
37818 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37819 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37820 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37821 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37823 | else | |
37824 | cat >conftest.$ac_ext <<_ACEOF | |
37825 | /* confdefs.h. */ | |
37826 | _ACEOF | |
37827 | cat confdefs.h >>conftest.$ac_ext | |
37828 | cat >>conftest.$ac_ext <<_ACEOF | |
37829 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37830 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37831 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37832 | #define $ac_func innocuous_$ac_func | |
37833 | ||
a848cd7e SC |
37834 | /* System header to define __stub macros and hopefully few prototypes, |
37835 | which can conflict with char $ac_func (); below. | |
37836 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37837 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37838 | |
a848cd7e SC |
37839 | #ifdef __STDC__ |
37840 | # include <limits.h> | |
37841 | #else | |
37842 | # include <assert.h> | |
37843 | #endif | |
ac1cb8d3 VS |
37844 | |
37845 | #undef $ac_func | |
37846 | ||
a848cd7e SC |
37847 | /* Override any gcc2 internal prototype to avoid an error. */ |
37848 | #ifdef __cplusplus | |
37849 | extern "C" | |
37850 | { | |
37851 | #endif | |
37852 | /* We use char because int might match the return type of a gcc2 | |
37853 | builtin and then its argument prototype would still apply. */ | |
37854 | char $ac_func (); | |
37855 | /* The GNU C library defines this for functions which it implements | |
37856 | to always fail with ENOSYS. Some functions are actually named | |
37857 | something starting with __ and the normal name is an alias. */ | |
37858 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37859 | choke me | |
37860 | #else | |
37861 | char (*f) () = $ac_func; | |
37862 | #endif | |
37863 | #ifdef __cplusplus | |
37864 | } | |
37865 | #endif | |
37866 | ||
37867 | int | |
37868 | main () | |
37869 | { | |
37870 | return f != $ac_func; | |
37871 | ; | |
37872 | return 0; | |
37873 | } | |
37874 | _ACEOF | |
37875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37877 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37878 | ac_status=$? |
ac1cb8d3 VS |
37879 | grep -v '^ *+' conftest.er1 >conftest.err |
37880 | rm -f conftest.er1 | |
37881 | cat conftest.err >&5 | |
a848cd7e SC |
37882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37883 | (exit $ac_status); } && | |
bb9e79c0 | 37884 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37886 | (eval $ac_try) 2>&5 | |
37887 | ac_status=$? | |
37888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37889 | (exit $ac_status); }; } && | |
37890 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37892 | (eval $ac_try) 2>&5 | |
37893 | ac_status=$? | |
37894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37895 | (exit $ac_status); }; }; then | |
37896 | eval "$as_ac_var=yes" | |
37897 | else | |
37898 | echo "$as_me: failed program was:" >&5 | |
37899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37900 | ||
37901 | eval "$as_ac_var=no" | |
37902 | fi | |
ac1cb8d3 VS |
37903 | rm -f conftest.err conftest.$ac_objext \ |
37904 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37905 | fi |
37906 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37907 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37908 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37909 | cat >>confdefs.h <<_ACEOF | |
37910 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37911 | _ACEOF | |
37912 | break | |
37913 | fi | |
37914 | done | |
37915 | ||
37916 | ||
37917 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
37918 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
37919 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
37920 | wxUSE_SNGLINST_CHECKER=no | |
37921 | fi | |
37922 | fi | |
37923 | ||
37924 | ||
37925 | for ac_func in timegm | |
37926 | do | |
37927 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37928 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37929 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37930 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37932 | else | |
37933 | cat >conftest.$ac_ext <<_ACEOF | |
37934 | /* confdefs.h. */ | |
37935 | _ACEOF | |
37936 | cat confdefs.h >>conftest.$ac_ext | |
37937 | cat >>conftest.$ac_ext <<_ACEOF | |
37938 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37939 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37940 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37941 | #define $ac_func innocuous_$ac_func | |
37942 | ||
a848cd7e SC |
37943 | /* System header to define __stub macros and hopefully few prototypes, |
37944 | which can conflict with char $ac_func (); below. | |
37945 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37946 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37947 | |
a848cd7e SC |
37948 | #ifdef __STDC__ |
37949 | # include <limits.h> | |
37950 | #else | |
37951 | # include <assert.h> | |
37952 | #endif | |
ac1cb8d3 VS |
37953 | |
37954 | #undef $ac_func | |
37955 | ||
a848cd7e SC |
37956 | /* Override any gcc2 internal prototype to avoid an error. */ |
37957 | #ifdef __cplusplus | |
37958 | extern "C" | |
37959 | { | |
37960 | #endif | |
37961 | /* We use char because int might match the return type of a gcc2 | |
37962 | builtin and then its argument prototype would still apply. */ | |
37963 | char $ac_func (); | |
37964 | /* The GNU C library defines this for functions which it implements | |
37965 | to always fail with ENOSYS. Some functions are actually named | |
37966 | something starting with __ and the normal name is an alias. */ | |
37967 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37968 | choke me | |
37969 | #else | |
37970 | char (*f) () = $ac_func; | |
37971 | #endif | |
37972 | #ifdef __cplusplus | |
37973 | } | |
37974 | #endif | |
37975 | ||
37976 | int | |
37977 | main () | |
37978 | { | |
37979 | return f != $ac_func; | |
37980 | ; | |
37981 | return 0; | |
37982 | } | |
37983 | _ACEOF | |
37984 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37986 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37987 | ac_status=$? |
ac1cb8d3 VS |
37988 | grep -v '^ *+' conftest.er1 >conftest.err |
37989 | rm -f conftest.er1 | |
37990 | cat conftest.err >&5 | |
a848cd7e SC |
37991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37992 | (exit $ac_status); } && | |
bb9e79c0 | 37993 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37995 | (eval $ac_try) 2>&5 | |
37996 | ac_status=$? | |
37997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37998 | (exit $ac_status); }; } && | |
37999 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38001 | (eval $ac_try) 2>&5 | |
38002 | ac_status=$? | |
38003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38004 | (exit $ac_status); }; }; then | |
38005 | eval "$as_ac_var=yes" | |
38006 | else | |
38007 | echo "$as_me: failed program was:" >&5 | |
38008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38009 | ||
38010 | eval "$as_ac_var=no" | |
38011 | fi | |
ac1cb8d3 VS |
38012 | rm -f conftest.err conftest.$ac_objext \ |
38013 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38014 | fi |
38015 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38016 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38017 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38018 | cat >>confdefs.h <<_ACEOF | |
38019 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38020 | _ACEOF | |
38021 | ||
38022 | fi | |
38023 | done | |
38024 | ||
38025 | ||
38026 | ||
38027 | ||
38028 | for ac_func in putenv setenv | |
38029 | do | |
38030 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38031 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38032 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38033 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38035 | else | |
38036 | cat >conftest.$ac_ext <<_ACEOF | |
38037 | /* confdefs.h. */ | |
38038 | _ACEOF | |
38039 | cat confdefs.h >>conftest.$ac_ext | |
38040 | cat >>conftest.$ac_ext <<_ACEOF | |
38041 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38042 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38043 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38044 | #define $ac_func innocuous_$ac_func | |
38045 | ||
a848cd7e SC |
38046 | /* System header to define __stub macros and hopefully few prototypes, |
38047 | which can conflict with char $ac_func (); below. | |
38048 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38049 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38050 | |
a848cd7e SC |
38051 | #ifdef __STDC__ |
38052 | # include <limits.h> | |
38053 | #else | |
38054 | # include <assert.h> | |
38055 | #endif | |
ac1cb8d3 VS |
38056 | |
38057 | #undef $ac_func | |
38058 | ||
a848cd7e SC |
38059 | /* Override any gcc2 internal prototype to avoid an error. */ |
38060 | #ifdef __cplusplus | |
38061 | extern "C" | |
38062 | { | |
38063 | #endif | |
38064 | /* We use char because int might match the return type of a gcc2 | |
38065 | builtin and then its argument prototype would still apply. */ | |
38066 | char $ac_func (); | |
38067 | /* The GNU C library defines this for functions which it implements | |
38068 | to always fail with ENOSYS. Some functions are actually named | |
38069 | something starting with __ and the normal name is an alias. */ | |
38070 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38071 | choke me | |
38072 | #else | |
38073 | char (*f) () = $ac_func; | |
38074 | #endif | |
38075 | #ifdef __cplusplus | |
38076 | } | |
38077 | #endif | |
38078 | ||
38079 | int | |
38080 | main () | |
38081 | { | |
38082 | return f != $ac_func; | |
38083 | ; | |
38084 | return 0; | |
38085 | } | |
38086 | _ACEOF | |
38087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38089 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38090 | ac_status=$? |
ac1cb8d3 VS |
38091 | grep -v '^ *+' conftest.er1 >conftest.err |
38092 | rm -f conftest.er1 | |
38093 | cat conftest.err >&5 | |
a848cd7e SC |
38094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38095 | (exit $ac_status); } && | |
bb9e79c0 | 38096 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38098 | (eval $ac_try) 2>&5 | |
38099 | ac_status=$? | |
38100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38101 | (exit $ac_status); }; } && | |
38102 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38104 | (eval $ac_try) 2>&5 | |
38105 | ac_status=$? | |
38106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38107 | (exit $ac_status); }; }; then | |
38108 | eval "$as_ac_var=yes" | |
38109 | else | |
38110 | echo "$as_me: failed program was:" >&5 | |
38111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38112 | ||
38113 | eval "$as_ac_var=no" | |
38114 | fi | |
ac1cb8d3 VS |
38115 | rm -f conftest.err conftest.$ac_objext \ |
38116 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38117 | fi |
38118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38119 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38120 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38121 | cat >>confdefs.h <<_ACEOF | |
38122 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38123 | _ACEOF | |
38124 | break | |
38125 | fi | |
38126 | done | |
38127 | ||
38128 | ||
38129 | HAVE_SOME_SLEEP_FUNC=0 | |
38130 | if test "$USE_BEOS" = 1; then | |
38131 | cat >>confdefs.h <<\_ACEOF | |
38132 | #define HAVE_SLEEP 1 | |
38133 | _ACEOF | |
38134 | ||
38135 | HAVE_SOME_SLEEP_FUNC=1 | |
38136 | fi | |
38137 | ||
38138 | if test "$USE_DARWIN" = 1; then | |
38139 | cat >>confdefs.h <<\_ACEOF | |
38140 | #define HAVE_USLEEP 1 | |
38141 | _ACEOF | |
38142 | ||
38143 | HAVE_SOME_SLEEP_FUNC=1 | |
38144 | fi | |
38145 | ||
38146 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
38147 | POSIX4_LINK= | |
38148 | ||
38149 | for ac_func in nanosleep | |
38150 | do | |
38151 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38152 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38153 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38154 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38156 | else | |
38157 | cat >conftest.$ac_ext <<_ACEOF | |
38158 | /* confdefs.h. */ | |
38159 | _ACEOF | |
38160 | cat confdefs.h >>conftest.$ac_ext | |
38161 | cat >>conftest.$ac_ext <<_ACEOF | |
38162 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38163 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38164 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38165 | #define $ac_func innocuous_$ac_func | |
38166 | ||
a848cd7e SC |
38167 | /* System header to define __stub macros and hopefully few prototypes, |
38168 | which can conflict with char $ac_func (); below. | |
38169 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38170 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38171 | |
a848cd7e SC |
38172 | #ifdef __STDC__ |
38173 | # include <limits.h> | |
38174 | #else | |
38175 | # include <assert.h> | |
38176 | #endif | |
ac1cb8d3 VS |
38177 | |
38178 | #undef $ac_func | |
38179 | ||
a848cd7e SC |
38180 | /* Override any gcc2 internal prototype to avoid an error. */ |
38181 | #ifdef __cplusplus | |
38182 | extern "C" | |
38183 | { | |
38184 | #endif | |
38185 | /* We use char because int might match the return type of a gcc2 | |
38186 | builtin and then its argument prototype would still apply. */ | |
38187 | char $ac_func (); | |
38188 | /* The GNU C library defines this for functions which it implements | |
38189 | to always fail with ENOSYS. Some functions are actually named | |
38190 | something starting with __ and the normal name is an alias. */ | |
38191 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38192 | choke me | |
38193 | #else | |
38194 | char (*f) () = $ac_func; | |
38195 | #endif | |
38196 | #ifdef __cplusplus | |
38197 | } | |
38198 | #endif | |
38199 | ||
38200 | int | |
38201 | main () | |
38202 | { | |
38203 | return f != $ac_func; | |
38204 | ; | |
38205 | return 0; | |
38206 | } | |
38207 | _ACEOF | |
38208 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38209 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38210 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38211 | ac_status=$? |
ac1cb8d3 VS |
38212 | grep -v '^ *+' conftest.er1 >conftest.err |
38213 | rm -f conftest.er1 | |
38214 | cat conftest.err >&5 | |
a848cd7e SC |
38215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38216 | (exit $ac_status); } && | |
bb9e79c0 | 38217 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38219 | (eval $ac_try) 2>&5 | |
38220 | ac_status=$? | |
38221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38222 | (exit $ac_status); }; } && | |
38223 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38225 | (eval $ac_try) 2>&5 | |
38226 | ac_status=$? | |
38227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38228 | (exit $ac_status); }; }; then | |
38229 | eval "$as_ac_var=yes" | |
38230 | else | |
38231 | echo "$as_me: failed program was:" >&5 | |
38232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38233 | ||
38234 | eval "$as_ac_var=no" | |
38235 | fi | |
ac1cb8d3 VS |
38236 | rm -f conftest.err conftest.$ac_objext \ |
38237 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38238 | fi |
38239 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38240 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38241 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38242 | cat >>confdefs.h <<_ACEOF | |
38243 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38244 | _ACEOF | |
38245 | cat >>confdefs.h <<\_ACEOF | |
38246 | #define HAVE_NANOSLEEP 1 | |
38247 | _ACEOF | |
38248 | ||
38249 | else | |
38250 | ||
38251 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
38252 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
38253 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
38254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38255 | else | |
38256 | ac_check_lib_save_LIBS=$LIBS | |
38257 | LIBS="-lposix4 $LIBS" | |
38258 | cat >conftest.$ac_ext <<_ACEOF | |
38259 | /* confdefs.h. */ | |
38260 | _ACEOF | |
38261 | cat confdefs.h >>conftest.$ac_ext | |
38262 | cat >>conftest.$ac_ext <<_ACEOF | |
38263 | /* end confdefs.h. */ | |
38264 | ||
38265 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38266 | #ifdef __cplusplus | |
38267 | extern "C" | |
38268 | #endif | |
38269 | /* We use char because int might match the return type of a gcc2 | |
38270 | builtin and then its argument prototype would still apply. */ | |
38271 | char nanosleep (); | |
38272 | int | |
38273 | main () | |
38274 | { | |
38275 | nanosleep (); | |
38276 | ; | |
38277 | return 0; | |
38278 | } | |
38279 | _ACEOF | |
38280 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38282 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38283 | ac_status=$? |
ac1cb8d3 VS |
38284 | grep -v '^ *+' conftest.er1 >conftest.err |
38285 | rm -f conftest.er1 | |
38286 | cat conftest.err >&5 | |
a848cd7e SC |
38287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38288 | (exit $ac_status); } && | |
bb9e79c0 | 38289 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38291 | (eval $ac_try) 2>&5 | |
38292 | ac_status=$? | |
38293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38294 | (exit $ac_status); }; } && | |
38295 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38297 | (eval $ac_try) 2>&5 | |
38298 | ac_status=$? | |
38299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38300 | (exit $ac_status); }; }; then | |
38301 | ac_cv_lib_posix4_nanosleep=yes | |
38302 | else | |
38303 | echo "$as_me: failed program was:" >&5 | |
38304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38305 | ||
38306 | ac_cv_lib_posix4_nanosleep=no | |
38307 | fi | |
ac1cb8d3 VS |
38308 | rm -f conftest.err conftest.$ac_objext \ |
38309 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38310 | LIBS=$ac_check_lib_save_LIBS |
38311 | fi | |
38312 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
38313 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
38314 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
38315 | ||
38316 | cat >>confdefs.h <<\_ACEOF | |
38317 | #define HAVE_NANOSLEEP 1 | |
38318 | _ACEOF | |
38319 | ||
38320 | POSIX4_LINK=" -lposix4" | |
38321 | ||
38322 | else | |
38323 | ||
38324 | ||
38325 | for ac_func in usleep | |
38326 | do | |
38327 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38328 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38329 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38330 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38332 | else | |
38333 | cat >conftest.$ac_ext <<_ACEOF | |
38334 | /* confdefs.h. */ | |
38335 | _ACEOF | |
38336 | cat confdefs.h >>conftest.$ac_ext | |
38337 | cat >>conftest.$ac_ext <<_ACEOF | |
38338 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38339 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38340 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38341 | #define $ac_func innocuous_$ac_func | |
38342 | ||
a848cd7e SC |
38343 | /* System header to define __stub macros and hopefully few prototypes, |
38344 | which can conflict with char $ac_func (); below. | |
38345 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38346 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38347 | |
a848cd7e SC |
38348 | #ifdef __STDC__ |
38349 | # include <limits.h> | |
38350 | #else | |
38351 | # include <assert.h> | |
38352 | #endif | |
ac1cb8d3 VS |
38353 | |
38354 | #undef $ac_func | |
38355 | ||
a848cd7e SC |
38356 | /* Override any gcc2 internal prototype to avoid an error. */ |
38357 | #ifdef __cplusplus | |
38358 | extern "C" | |
38359 | { | |
38360 | #endif | |
38361 | /* We use char because int might match the return type of a gcc2 | |
38362 | builtin and then its argument prototype would still apply. */ | |
38363 | char $ac_func (); | |
38364 | /* The GNU C library defines this for functions which it implements | |
38365 | to always fail with ENOSYS. Some functions are actually named | |
38366 | something starting with __ and the normal name is an alias. */ | |
38367 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38368 | choke me | |
38369 | #else | |
38370 | char (*f) () = $ac_func; | |
38371 | #endif | |
38372 | #ifdef __cplusplus | |
38373 | } | |
38374 | #endif | |
38375 | ||
38376 | int | |
38377 | main () | |
38378 | { | |
38379 | return f != $ac_func; | |
38380 | ; | |
38381 | return 0; | |
38382 | } | |
38383 | _ACEOF | |
38384 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38386 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38387 | ac_status=$? |
ac1cb8d3 VS |
38388 | grep -v '^ *+' conftest.er1 >conftest.err |
38389 | rm -f conftest.er1 | |
38390 | cat conftest.err >&5 | |
a848cd7e SC |
38391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38392 | (exit $ac_status); } && | |
bb9e79c0 | 38393 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38395 | (eval $ac_try) 2>&5 | |
38396 | ac_status=$? | |
38397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38398 | (exit $ac_status); }; } && | |
38399 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38401 | (eval $ac_try) 2>&5 | |
38402 | ac_status=$? | |
38403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38404 | (exit $ac_status); }; }; then | |
38405 | eval "$as_ac_var=yes" | |
38406 | else | |
38407 | echo "$as_me: failed program was:" >&5 | |
38408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38409 | ||
38410 | eval "$as_ac_var=no" | |
38411 | fi | |
ac1cb8d3 VS |
38412 | rm -f conftest.err conftest.$ac_objext \ |
38413 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38414 | fi |
38415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38416 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38417 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38418 | cat >>confdefs.h <<_ACEOF | |
38419 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38420 | _ACEOF | |
38421 | cat >>confdefs.h <<\_ACEOF | |
38422 | #define HAVE_USLEEP 1 | |
38423 | _ACEOF | |
38424 | ||
38425 | else | |
38426 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
38427 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
38428 | ||
38429 | fi | |
38430 | done | |
38431 | ||
38432 | ||
38433 | ||
38434 | fi | |
38435 | ||
38436 | ||
38437 | ||
38438 | fi | |
38439 | done | |
38440 | ||
38441 | fi | |
38442 | ||
38443 | ||
38444 | ||
38445 | for ac_func in uname gethostname | |
38446 | do | |
38447 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38448 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38449 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38450 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38452 | else | |
38453 | cat >conftest.$ac_ext <<_ACEOF | |
38454 | /* confdefs.h. */ | |
38455 | _ACEOF | |
38456 | cat confdefs.h >>conftest.$ac_ext | |
38457 | cat >>conftest.$ac_ext <<_ACEOF | |
38458 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38459 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38460 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38461 | #define $ac_func innocuous_$ac_func | |
38462 | ||
a848cd7e SC |
38463 | /* System header to define __stub macros and hopefully few prototypes, |
38464 | which can conflict with char $ac_func (); below. | |
38465 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38466 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38467 | |
a848cd7e SC |
38468 | #ifdef __STDC__ |
38469 | # include <limits.h> | |
38470 | #else | |
38471 | # include <assert.h> | |
38472 | #endif | |
ac1cb8d3 VS |
38473 | |
38474 | #undef $ac_func | |
38475 | ||
a848cd7e SC |
38476 | /* Override any gcc2 internal prototype to avoid an error. */ |
38477 | #ifdef __cplusplus | |
38478 | extern "C" | |
38479 | { | |
38480 | #endif | |
38481 | /* We use char because int might match the return type of a gcc2 | |
38482 | builtin and then its argument prototype would still apply. */ | |
38483 | char $ac_func (); | |
38484 | /* The GNU C library defines this for functions which it implements | |
38485 | to always fail with ENOSYS. Some functions are actually named | |
38486 | something starting with __ and the normal name is an alias. */ | |
38487 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38488 | choke me | |
38489 | #else | |
38490 | char (*f) () = $ac_func; | |
38491 | #endif | |
38492 | #ifdef __cplusplus | |
38493 | } | |
38494 | #endif | |
38495 | ||
38496 | int | |
38497 | main () | |
38498 | { | |
38499 | return f != $ac_func; | |
38500 | ; | |
38501 | return 0; | |
38502 | } | |
38503 | _ACEOF | |
38504 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38506 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38507 | ac_status=$? |
ac1cb8d3 VS |
38508 | grep -v '^ *+' conftest.er1 >conftest.err |
38509 | rm -f conftest.er1 | |
38510 | cat conftest.err >&5 | |
a848cd7e SC |
38511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38512 | (exit $ac_status); } && | |
bb9e79c0 | 38513 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38515 | (eval $ac_try) 2>&5 | |
38516 | ac_status=$? | |
38517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38518 | (exit $ac_status); }; } && | |
38519 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38521 | (eval $ac_try) 2>&5 | |
38522 | ac_status=$? | |
38523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38524 | (exit $ac_status); }; }; then | |
38525 | eval "$as_ac_var=yes" | |
38526 | else | |
38527 | echo "$as_me: failed program was:" >&5 | |
38528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38529 | ||
38530 | eval "$as_ac_var=no" | |
38531 | fi | |
ac1cb8d3 VS |
38532 | rm -f conftest.err conftest.$ac_objext \ |
38533 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38534 | fi |
38535 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38536 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38537 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38538 | cat >>confdefs.h <<_ACEOF | |
38539 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38540 | _ACEOF | |
38541 | break | |
38542 | fi | |
38543 | done | |
38544 | ||
38545 | ||
56632e81 MW |
38546 | |
38547 | for wx_func in strtok_r | |
38548 | do | |
38549 | echo "$as_me:$LINENO: checking for $wx_func" >&5 | |
38550 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6 | |
38551 | if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then | |
a848cd7e SC |
38552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
38553 | else | |
56632e81 MW |
38554 | |
38555 | cat >conftest.$ac_ext <<_ACEOF | |
38556 | ||
38557 | /* confdefs.h. */ | |
a848cd7e SC |
38558 | _ACEOF |
38559 | cat confdefs.h >>conftest.$ac_ext | |
38560 | cat >>conftest.$ac_ext <<_ACEOF | |
38561 | /* end confdefs.h. */ | |
56632e81 MW |
38562 | |
38563 | #define _REENTRANT | |
38564 | $ac_includes_default | |
38565 | ||
a848cd7e SC |
38566 | int |
38567 | main () | |
38568 | { | |
56632e81 MW |
38569 | |
38570 | #ifndef $wx_func | |
38571 | &$wx_func; | |
38572 | #endif | |
38573 | ||
5acfd58d | 38574 | |
a848cd7e SC |
38575 | ; |
38576 | return 0; | |
38577 | } | |
56632e81 | 38578 | |
a848cd7e | 38579 | _ACEOF |
56632e81 MW |
38580 | rm -f conftest.$ac_objext conftest$ac_exeext |
38581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38582 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 38583 | ac_status=$? |
ac1cb8d3 VS |
38584 | grep -v '^ *+' conftest.er1 >conftest.err |
38585 | rm -f conftest.er1 | |
38586 | cat conftest.err >&5 | |
a848cd7e SC |
38587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38588 | (exit $ac_status); } && | |
bb9e79c0 | 38589 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38591 | (eval $ac_try) 2>&5 | |
38592 | ac_status=$? | |
38593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38594 | (exit $ac_status); }; } && | |
56632e81 | 38595 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
38596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38597 | (eval $ac_try) 2>&5 | |
38598 | ac_status=$? | |
38599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38600 | (exit $ac_status); }; }; then | |
56632e81 | 38601 | eval wx_cv_func_$wx_func=yes |
a848cd7e SC |
38602 | else |
38603 | echo "$as_me: failed program was:" >&5 | |
38604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38605 | ||
56632e81 | 38606 | eval wx_cv_func_$wx_func=no |
a848cd7e | 38607 | fi |
56632e81 MW |
38608 | rm -f conftest.err conftest.$ac_objext \ |
38609 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 38610 | |
56632e81 MW |
38611 | fi |
38612 | echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5 | |
38613 | echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6 | |
a848cd7e | 38614 | |
56632e81 MW |
38615 | if eval test \$wx_cv_func_$wx_func = yes |
38616 | then | |
38617 | cat >>confdefs.h <<_ACEOF | |
38618 | #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1 | |
82a2636b MW |
38619 | _ACEOF |
38620 | ||
38621 | ||
56632e81 MW |
38622 | else |
38623 | : | |
5acfd58d | 38624 | |
56632e81 MW |
38625 | fi |
38626 | done | |
5acfd58d | 38627 | |
a848cd7e | 38628 | |
a848cd7e SC |
38629 | INET_LINK= |
38630 | ||
38631 | for ac_func in inet_addr | |
38632 | do | |
38633 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38634 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38635 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38636 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38638 | else | |
38639 | cat >conftest.$ac_ext <<_ACEOF | |
38640 | /* confdefs.h. */ | |
38641 | _ACEOF | |
38642 | cat confdefs.h >>conftest.$ac_ext | |
38643 | cat >>conftest.$ac_ext <<_ACEOF | |
38644 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38645 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38646 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38647 | #define $ac_func innocuous_$ac_func | |
38648 | ||
a848cd7e SC |
38649 | /* System header to define __stub macros and hopefully few prototypes, |
38650 | which can conflict with char $ac_func (); below. | |
38651 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38652 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38653 | |
a848cd7e SC |
38654 | #ifdef __STDC__ |
38655 | # include <limits.h> | |
38656 | #else | |
38657 | # include <assert.h> | |
38658 | #endif | |
ac1cb8d3 VS |
38659 | |
38660 | #undef $ac_func | |
38661 | ||
a848cd7e SC |
38662 | /* Override any gcc2 internal prototype to avoid an error. */ |
38663 | #ifdef __cplusplus | |
38664 | extern "C" | |
38665 | { | |
38666 | #endif | |
38667 | /* We use char because int might match the return type of a gcc2 | |
38668 | builtin and then its argument prototype would still apply. */ | |
38669 | char $ac_func (); | |
38670 | /* The GNU C library defines this for functions which it implements | |
38671 | to always fail with ENOSYS. Some functions are actually named | |
38672 | something starting with __ and the normal name is an alias. */ | |
38673 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38674 | choke me | |
38675 | #else | |
38676 | char (*f) () = $ac_func; | |
38677 | #endif | |
38678 | #ifdef __cplusplus | |
38679 | } | |
38680 | #endif | |
38681 | ||
38682 | int | |
38683 | main () | |
38684 | { | |
38685 | return f != $ac_func; | |
38686 | ; | |
38687 | return 0; | |
38688 | } | |
38689 | _ACEOF | |
38690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38692 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38693 | ac_status=$? |
ac1cb8d3 VS |
38694 | grep -v '^ *+' conftest.er1 >conftest.err |
38695 | rm -f conftest.er1 | |
38696 | cat conftest.err >&5 | |
a848cd7e SC |
38697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38698 | (exit $ac_status); } && | |
bb9e79c0 | 38699 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38701 | (eval $ac_try) 2>&5 | |
38702 | ac_status=$? | |
38703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38704 | (exit $ac_status); }; } && | |
38705 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38707 | (eval $ac_try) 2>&5 | |
38708 | ac_status=$? | |
38709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38710 | (exit $ac_status); }; }; then | |
38711 | eval "$as_ac_var=yes" | |
38712 | else | |
38713 | echo "$as_me: failed program was:" >&5 | |
38714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38715 | ||
38716 | eval "$as_ac_var=no" | |
38717 | fi | |
ac1cb8d3 VS |
38718 | rm -f conftest.err conftest.$ac_objext \ |
38719 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38720 | fi |
38721 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38722 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38723 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38724 | cat >>confdefs.h <<_ACEOF | |
38725 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38726 | _ACEOF | |
38727 | cat >>confdefs.h <<\_ACEOF | |
38728 | #define HAVE_INET_ADDR 1 | |
38729 | _ACEOF | |
38730 | ||
38731 | else | |
38732 | ||
38733 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
38734 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
38735 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
38736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38737 | else | |
38738 | ac_check_lib_save_LIBS=$LIBS | |
38739 | LIBS="-lnsl $LIBS" | |
38740 | cat >conftest.$ac_ext <<_ACEOF | |
38741 | /* confdefs.h. */ | |
38742 | _ACEOF | |
38743 | cat confdefs.h >>conftest.$ac_ext | |
38744 | cat >>conftest.$ac_ext <<_ACEOF | |
38745 | /* end confdefs.h. */ | |
38746 | ||
38747 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38748 | #ifdef __cplusplus | |
38749 | extern "C" | |
38750 | #endif | |
38751 | /* We use char because int might match the return type of a gcc2 | |
38752 | builtin and then its argument prototype would still apply. */ | |
38753 | char inet_addr (); | |
38754 | int | |
38755 | main () | |
38756 | { | |
38757 | inet_addr (); | |
38758 | ; | |
38759 | return 0; | |
38760 | } | |
38761 | _ACEOF | |
38762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38764 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38765 | ac_status=$? |
ac1cb8d3 VS |
38766 | grep -v '^ *+' conftest.er1 >conftest.err |
38767 | rm -f conftest.er1 | |
38768 | cat conftest.err >&5 | |
a848cd7e SC |
38769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38770 | (exit $ac_status); } && | |
bb9e79c0 | 38771 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38773 | (eval $ac_try) 2>&5 | |
38774 | ac_status=$? | |
38775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38776 | (exit $ac_status); }; } && | |
38777 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38779 | (eval $ac_try) 2>&5 | |
38780 | ac_status=$? | |
38781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38782 | (exit $ac_status); }; }; then | |
38783 | ac_cv_lib_nsl_inet_addr=yes | |
38784 | else | |
38785 | echo "$as_me: failed program was:" >&5 | |
38786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38787 | ||
38788 | ac_cv_lib_nsl_inet_addr=no | |
38789 | fi | |
ac1cb8d3 VS |
38790 | rm -f conftest.err conftest.$ac_objext \ |
38791 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38792 | LIBS=$ac_check_lib_save_LIBS |
38793 | fi | |
38794 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
38795 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
38796 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
38797 | INET_LINK="nsl" | |
38798 | else | |
38799 | ||
38800 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
38801 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
38802 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
38803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38804 | else | |
38805 | ac_check_lib_save_LIBS=$LIBS | |
38806 | LIBS="-lresolv $LIBS" | |
38807 | cat >conftest.$ac_ext <<_ACEOF | |
38808 | /* confdefs.h. */ | |
38809 | _ACEOF | |
38810 | cat confdefs.h >>conftest.$ac_ext | |
38811 | cat >>conftest.$ac_ext <<_ACEOF | |
38812 | /* end confdefs.h. */ | |
38813 | ||
38814 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38815 | #ifdef __cplusplus | |
38816 | extern "C" | |
38817 | #endif | |
38818 | /* We use char because int might match the return type of a gcc2 | |
38819 | builtin and then its argument prototype would still apply. */ | |
38820 | char inet_addr (); | |
38821 | int | |
38822 | main () | |
38823 | { | |
38824 | inet_addr (); | |
38825 | ; | |
38826 | return 0; | |
38827 | } | |
38828 | _ACEOF | |
38829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38831 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38832 | ac_status=$? |
ac1cb8d3 VS |
38833 | grep -v '^ *+' conftest.er1 >conftest.err |
38834 | rm -f conftest.er1 | |
38835 | cat conftest.err >&5 | |
a848cd7e SC |
38836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38837 | (exit $ac_status); } && | |
bb9e79c0 | 38838 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38840 | (eval $ac_try) 2>&5 | |
38841 | ac_status=$? | |
38842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38843 | (exit $ac_status); }; } && | |
38844 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38846 | (eval $ac_try) 2>&5 | |
38847 | ac_status=$? | |
38848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38849 | (exit $ac_status); }; }; then | |
38850 | ac_cv_lib_resolv_inet_addr=yes | |
38851 | else | |
38852 | echo "$as_me: failed program was:" >&5 | |
38853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38854 | ||
38855 | ac_cv_lib_resolv_inet_addr=no | |
38856 | fi | |
ac1cb8d3 VS |
38857 | rm -f conftest.err conftest.$ac_objext \ |
38858 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38859 | LIBS=$ac_check_lib_save_LIBS |
38860 | fi | |
38861 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
38862 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
38863 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
38864 | INET_LINK="resolv" | |
38865 | else | |
38866 | ||
38867 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
38868 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
38869 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
38870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38871 | else | |
38872 | ac_check_lib_save_LIBS=$LIBS | |
38873 | LIBS="-lsocket $LIBS" | |
38874 | cat >conftest.$ac_ext <<_ACEOF | |
38875 | /* confdefs.h. */ | |
38876 | _ACEOF | |
38877 | cat confdefs.h >>conftest.$ac_ext | |
38878 | cat >>conftest.$ac_ext <<_ACEOF | |
38879 | /* end confdefs.h. */ | |
38880 | ||
38881 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38882 | #ifdef __cplusplus | |
38883 | extern "C" | |
38884 | #endif | |
38885 | /* We use char because int might match the return type of a gcc2 | |
38886 | builtin and then its argument prototype would still apply. */ | |
38887 | char inet_addr (); | |
38888 | int | |
38889 | main () | |
38890 | { | |
38891 | inet_addr (); | |
38892 | ; | |
38893 | return 0; | |
38894 | } | |
38895 | _ACEOF | |
38896 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38898 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38899 | ac_status=$? |
ac1cb8d3 VS |
38900 | grep -v '^ *+' conftest.er1 >conftest.err |
38901 | rm -f conftest.er1 | |
38902 | cat conftest.err >&5 | |
a848cd7e SC |
38903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38904 | (exit $ac_status); } && | |
bb9e79c0 | 38905 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38907 | (eval $ac_try) 2>&5 | |
38908 | ac_status=$? | |
38909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38910 | (exit $ac_status); }; } && | |
38911 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38913 | (eval $ac_try) 2>&5 | |
38914 | ac_status=$? | |
38915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38916 | (exit $ac_status); }; }; then | |
38917 | ac_cv_lib_socket_inet_addr=yes | |
38918 | else | |
38919 | echo "$as_me: failed program was:" >&5 | |
38920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38921 | ||
38922 | ac_cv_lib_socket_inet_addr=no | |
38923 | fi | |
ac1cb8d3 VS |
38924 | rm -f conftest.err conftest.$ac_objext \ |
38925 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38926 | LIBS=$ac_check_lib_save_LIBS |
38927 | fi | |
38928 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
38929 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
38930 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
38931 | INET_LINK="socket" | |
38932 | ||
38933 | fi | |
38934 | ||
38935 | ||
38936 | ||
38937 | fi | |
38938 | ||
38939 | ||
38940 | ||
38941 | fi | |
38942 | ||
38943 | ||
38944 | ||
38945 | fi | |
38946 | done | |
38947 | ||
38948 | ||
38949 | ||
38950 | for ac_func in inet_aton | |
38951 | do | |
38952 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38953 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38954 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38955 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38957 | else | |
38958 | cat >conftest.$ac_ext <<_ACEOF | |
38959 | /* confdefs.h. */ | |
38960 | _ACEOF | |
38961 | cat confdefs.h >>conftest.$ac_ext | |
38962 | cat >>conftest.$ac_ext <<_ACEOF | |
38963 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38964 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38965 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38966 | #define $ac_func innocuous_$ac_func | |
38967 | ||
a848cd7e SC |
38968 | /* System header to define __stub macros and hopefully few prototypes, |
38969 | which can conflict with char $ac_func (); below. | |
38970 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38971 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38972 | |
a848cd7e SC |
38973 | #ifdef __STDC__ |
38974 | # include <limits.h> | |
38975 | #else | |
38976 | # include <assert.h> | |
38977 | #endif | |
ac1cb8d3 VS |
38978 | |
38979 | #undef $ac_func | |
38980 | ||
a848cd7e SC |
38981 | /* Override any gcc2 internal prototype to avoid an error. */ |
38982 | #ifdef __cplusplus | |
38983 | extern "C" | |
38984 | { | |
38985 | #endif | |
38986 | /* We use char because int might match the return type of a gcc2 | |
38987 | builtin and then its argument prototype would still apply. */ | |
38988 | char $ac_func (); | |
38989 | /* The GNU C library defines this for functions which it implements | |
38990 | to always fail with ENOSYS. Some functions are actually named | |
38991 | something starting with __ and the normal name is an alias. */ | |
38992 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38993 | choke me | |
38994 | #else | |
38995 | char (*f) () = $ac_func; | |
38996 | #endif | |
38997 | #ifdef __cplusplus | |
38998 | } | |
38999 | #endif | |
39000 | ||
39001 | int | |
39002 | main () | |
39003 | { | |
39004 | return f != $ac_func; | |
39005 | ; | |
39006 | return 0; | |
39007 | } | |
39008 | _ACEOF | |
39009 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39011 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39012 | ac_status=$? |
ac1cb8d3 VS |
39013 | grep -v '^ *+' conftest.er1 >conftest.err |
39014 | rm -f conftest.er1 | |
39015 | cat conftest.err >&5 | |
a848cd7e SC |
39016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39017 | (exit $ac_status); } && | |
bb9e79c0 | 39018 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39020 | (eval $ac_try) 2>&5 | |
39021 | ac_status=$? | |
39022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39023 | (exit $ac_status); }; } && | |
39024 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39026 | (eval $ac_try) 2>&5 | |
39027 | ac_status=$? | |
39028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39029 | (exit $ac_status); }; }; then | |
39030 | eval "$as_ac_var=yes" | |
39031 | else | |
39032 | echo "$as_me: failed program was:" >&5 | |
39033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39034 | ||
39035 | eval "$as_ac_var=no" | |
39036 | fi | |
ac1cb8d3 VS |
39037 | rm -f conftest.err conftest.$ac_objext \ |
39038 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39039 | fi |
39040 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39041 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39042 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39043 | cat >>confdefs.h <<_ACEOF | |
39044 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39045 | _ACEOF | |
39046 | cat >>confdefs.h <<\_ACEOF | |
39047 | #define HAVE_INET_ATON 1 | |
39048 | _ACEOF | |
39049 | ||
39050 | else | |
39051 | ||
39052 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
39053 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
39054 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
39055 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
39056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39057 | else | |
39058 | ac_check_lib_save_LIBS=$LIBS | |
39059 | LIBS="-l$INET_LINK $LIBS" | |
39060 | cat >conftest.$ac_ext <<_ACEOF | |
39061 | /* confdefs.h. */ | |
39062 | _ACEOF | |
39063 | cat confdefs.h >>conftest.$ac_ext | |
39064 | cat >>conftest.$ac_ext <<_ACEOF | |
39065 | /* end confdefs.h. */ | |
39066 | ||
39067 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39068 | #ifdef __cplusplus | |
39069 | extern "C" | |
39070 | #endif | |
39071 | /* We use char because int might match the return type of a gcc2 | |
39072 | builtin and then its argument prototype would still apply. */ | |
39073 | char inet_aton (); | |
39074 | int | |
39075 | main () | |
39076 | { | |
39077 | inet_aton (); | |
39078 | ; | |
39079 | return 0; | |
39080 | } | |
39081 | _ACEOF | |
39082 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39084 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39085 | ac_status=$? |
ac1cb8d3 VS |
39086 | grep -v '^ *+' conftest.er1 >conftest.err |
39087 | rm -f conftest.er1 | |
39088 | cat conftest.err >&5 | |
a848cd7e SC |
39089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39090 | (exit $ac_status); } && | |
bb9e79c0 | 39091 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39093 | (eval $ac_try) 2>&5 | |
39094 | ac_status=$? | |
39095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39096 | (exit $ac_status); }; } && | |
39097 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39099 | (eval $ac_try) 2>&5 | |
39100 | ac_status=$? | |
39101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39102 | (exit $ac_status); }; }; then | |
39103 | eval "$as_ac_Lib=yes" | |
39104 | else | |
39105 | echo "$as_me: failed program was:" >&5 | |
39106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39107 | ||
39108 | eval "$as_ac_Lib=no" | |
39109 | fi | |
ac1cb8d3 VS |
39110 | rm -f conftest.err conftest.$ac_objext \ |
39111 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39112 | LIBS=$ac_check_lib_save_LIBS |
39113 | fi | |
39114 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
39115 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
39116 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
39117 | cat >>confdefs.h <<\_ACEOF | |
39118 | #define HAVE_INET_ATON 1 | |
39119 | _ACEOF | |
39120 | ||
39121 | fi | |
39122 | ||
39123 | ||
39124 | fi | |
39125 | done | |
39126 | ||
39127 | ||
39128 | if test "x$INET_LINK" != "x"; then | |
39129 | cat >>confdefs.h <<\_ACEOF | |
39130 | #define HAVE_INET_ADDR 1 | |
39131 | _ACEOF | |
39132 | ||
39133 | INET_LINK=" -l$INET_LINK" | |
39134 | fi | |
39135 | ||
f8f6c91a MW |
39136 | |
39137 | for wx_func in fdopen | |
39138 | do | |
39139 | echo "$as_me:$LINENO: checking for $wx_func" >&5 | |
39140 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6 | |
39141 | if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then | |
39142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39143 | else | |
39144 | ||
39145 | cat >conftest.$ac_ext <<_ACEOF | |
39146 | ||
39147 | /* confdefs.h. */ | |
39148 | _ACEOF | |
39149 | cat confdefs.h >>conftest.$ac_ext | |
39150 | cat >>conftest.$ac_ext <<_ACEOF | |
39151 | /* end confdefs.h. */ | |
39152 | ||
39153 | ||
39154 | $ac_includes_default | |
39155 | ||
39156 | int | |
39157 | main () | |
39158 | { | |
39159 | ||
39160 | #ifndef $wx_func | |
39161 | &$wx_func; | |
39162 | #endif | |
39163 | ||
39164 | ||
39165 | ; | |
39166 | return 0; | |
39167 | } | |
39168 | ||
39169 | _ACEOF | |
39170 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39172 | (eval $ac_link) 2>conftest.er1 | |
39173 | ac_status=$? | |
39174 | grep -v '^ *+' conftest.er1 >conftest.err | |
39175 | rm -f conftest.er1 | |
39176 | cat conftest.err >&5 | |
39177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39178 | (exit $ac_status); } && | |
bb9e79c0 | 39179 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f8f6c91a MW |
39180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39181 | (eval $ac_try) 2>&5 | |
39182 | ac_status=$? | |
39183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39184 | (exit $ac_status); }; } && | |
39185 | { ac_try='test -s conftest$ac_exeext' | |
39186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39187 | (eval $ac_try) 2>&5 | |
39188 | ac_status=$? | |
39189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39190 | (exit $ac_status); }; }; then | |
39191 | eval wx_cv_func_$wx_func=yes | |
39192 | else | |
39193 | echo "$as_me: failed program was:" >&5 | |
39194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39195 | ||
39196 | eval wx_cv_func_$wx_func=no | |
a848cd7e | 39197 | fi |
f8f6c91a MW |
39198 | rm -f conftest.err conftest.$ac_objext \ |
39199 | conftest$ac_exeext conftest.$ac_ext | |
39200 | ||
39201 | fi | |
39202 | echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5 | |
39203 | echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6 | |
39204 | ||
39205 | if eval test \$wx_cv_func_$wx_func = yes | |
39206 | then | |
39207 | cat >>confdefs.h <<_ACEOF | |
39208 | #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1 | |
39209 | _ACEOF | |
39210 | ||
39211 | ||
39212 | else | |
39213 | : | |
39214 | ||
39215 | fi | |
39216 | done | |
39217 | ||
39218 | ||
39219 | fi | |
39220 | ||
a848cd7e SC |
39221 | |
39222 | ||
39223 | ||
39224 | EXTRALIBS_ESD= | |
39225 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
39226 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
39227 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
39228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39229 | else | |
39230 | ac_check_lib_save_LIBS=$LIBS | |
39231 | LIBS="-lesd $LIBS" | |
39232 | cat >conftest.$ac_ext <<_ACEOF | |
39233 | /* confdefs.h. */ | |
39234 | _ACEOF | |
39235 | cat confdefs.h >>conftest.$ac_ext | |
39236 | cat >>conftest.$ac_ext <<_ACEOF | |
39237 | /* end confdefs.h. */ | |
39238 | ||
39239 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39240 | #ifdef __cplusplus | |
39241 | extern "C" | |
39242 | #endif | |
39243 | /* We use char because int might match the return type of a gcc2 | |
39244 | builtin and then its argument prototype would still apply. */ | |
39245 | char esd_close (); | |
39246 | int | |
39247 | main () | |
39248 | { | |
39249 | esd_close (); | |
39250 | ; | |
39251 | return 0; | |
39252 | } | |
39253 | _ACEOF | |
39254 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39256 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39257 | ac_status=$? |
ac1cb8d3 VS |
39258 | grep -v '^ *+' conftest.er1 >conftest.err |
39259 | rm -f conftest.er1 | |
39260 | cat conftest.err >&5 | |
a848cd7e SC |
39261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39262 | (exit $ac_status); } && | |
bb9e79c0 | 39263 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39265 | (eval $ac_try) 2>&5 | |
39266 | ac_status=$? | |
39267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39268 | (exit $ac_status); }; } && | |
39269 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39271 | (eval $ac_try) 2>&5 | |
39272 | ac_status=$? | |
39273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39274 | (exit $ac_status); }; }; then | |
39275 | ac_cv_lib_esd_esd_close=yes | |
39276 | else | |
39277 | echo "$as_me: failed program was:" >&5 | |
39278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39279 | ||
39280 | ac_cv_lib_esd_esd_close=no | |
39281 | fi | |
ac1cb8d3 VS |
39282 | rm -f conftest.err conftest.$ac_objext \ |
39283 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39284 | LIBS=$ac_check_lib_save_LIBS |
39285 | fi | |
39286 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
39287 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
39288 | if test $ac_cv_lib_esd_esd_close = yes; then | |
39289 | ||
39290 | ||
39291 | for ac_header in esd.h | |
39292 | do | |
39293 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
39294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39295 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39297 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39299 | fi | |
39300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39302 | else | |
39303 | # Is the header compilable? | |
39304 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
39305 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
39306 | cat >conftest.$ac_ext <<_ACEOF | |
39307 | /* confdefs.h. */ | |
39308 | _ACEOF | |
39309 | cat confdefs.h >>conftest.$ac_ext | |
39310 | cat >>conftest.$ac_ext <<_ACEOF | |
39311 | /* end confdefs.h. */ | |
39312 | $ac_includes_default | |
39313 | #include <$ac_header> | |
39314 | _ACEOF | |
39315 | rm -f conftest.$ac_objext | |
39316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39317 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39318 | ac_status=$? |
ac1cb8d3 VS |
39319 | grep -v '^ *+' conftest.er1 >conftest.err |
39320 | rm -f conftest.er1 | |
39321 | cat conftest.err >&5 | |
a848cd7e SC |
39322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39323 | (exit $ac_status); } && | |
bb9e79c0 | 39324 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39326 | (eval $ac_try) 2>&5 | |
39327 | ac_status=$? | |
39328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39329 | (exit $ac_status); }; } && | |
39330 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39332 | (eval $ac_try) 2>&5 | |
39333 | ac_status=$? | |
39334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39335 | (exit $ac_status); }; }; then | |
39336 | ac_header_compiler=yes | |
39337 | else | |
39338 | echo "$as_me: failed program was:" >&5 | |
39339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39340 | ||
39341 | ac_header_compiler=no | |
39342 | fi | |
ac1cb8d3 | 39343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39344 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
39345 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
39346 | ||
39347 | # Is the header present? | |
39348 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
39349 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
39350 | cat >conftest.$ac_ext <<_ACEOF | |
39351 | /* confdefs.h. */ | |
39352 | _ACEOF | |
39353 | cat confdefs.h >>conftest.$ac_ext | |
39354 | cat >>conftest.$ac_ext <<_ACEOF | |
39355 | /* end confdefs.h. */ | |
39356 | #include <$ac_header> | |
39357 | _ACEOF | |
39358 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
39359 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
39360 | ac_status=$? | |
39361 | grep -v '^ *+' conftest.er1 >conftest.err | |
39362 | rm -f conftest.er1 | |
39363 | cat conftest.err >&5 | |
39364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39365 | (exit $ac_status); } >/dev/null; then | |
39366 | if test -s conftest.err; then | |
5d7b7554 VZ |
39367 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
39368 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
39369 | else |
39370 | ac_cpp_err= | |
39371 | fi | |
39372 | else | |
39373 | ac_cpp_err=yes | |
39374 | fi | |
39375 | if test -z "$ac_cpp_err"; then | |
39376 | ac_header_preproc=yes | |
39377 | else | |
39378 | echo "$as_me: failed program was:" >&5 | |
39379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39380 | ||
39381 | ac_header_preproc=no | |
39382 | fi | |
39383 | rm -f conftest.err conftest.$ac_ext | |
39384 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
39385 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
39386 | ||
39387 | # So? What about this header? | |
5d7b7554 | 39388 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 39389 | yes:no: ) |
a848cd7e SC |
39390 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
39391 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
39392 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
39393 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
39394 | ac_header_preproc=yes | |
a848cd7e | 39395 | ;; |
ac1cb8d3 | 39396 | no:yes:* ) |
a848cd7e SC |
39397 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
39398 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
39399 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
39400 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
39401 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
39402 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
39403 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
39404 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
39405 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
39406 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
39407 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
39408 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
39409 | ( |
39410 | cat <<\_ASBOX | |
ac1cb8d3 VS |
39411 | ## ----------------------------------------- ## |
39412 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
39413 | ## ----------------------------------------- ## | |
a848cd7e SC |
39414 | _ASBOX |
39415 | ) | | |
39416 | sed "s/^/$as_me: WARNING: /" >&2 | |
39417 | ;; | |
39418 | esac | |
39419 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39420 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39421 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39423 | else | |
ac1cb8d3 | 39424 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
39425 | fi |
39426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39427 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39428 | ||
39429 | fi | |
39430 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
39431 | cat >>confdefs.h <<_ACEOF | |
39432 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
39433 | _ACEOF | |
39434 | ||
39435 | EXTRALIBS_ESD="-lesd" | |
39436 | ||
39437 | fi | |
39438 | ||
39439 | done | |
39440 | ||
39441 | ||
39442 | fi | |
39443 | ||
39444 | ||
39445 | ||
39446 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
39447 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
39448 | cat >conftest.$ac_ext <<_ACEOF | |
39449 | /* confdefs.h. */ | |
39450 | _ACEOF | |
39451 | cat confdefs.h >>conftest.$ac_ext | |
39452 | cat >>conftest.$ac_ext <<_ACEOF | |
39453 | /* end confdefs.h. */ | |
39454 | #ifdef __linux__ | |
39455 | #include <linux/cdrom.h> | |
39456 | #else | |
39457 | /* For Solaris */ | |
39458 | #include <sys/cdio.h> | |
39459 | #endif | |
39460 | ||
39461 | int | |
39462 | main () | |
39463 | { | |
39464 | struct cdrom_tocentry entry, old_entry; | |
39465 | ; | |
39466 | return 0; | |
39467 | } | |
39468 | _ACEOF | |
39469 | rm -f conftest.$ac_objext | |
39470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39471 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39472 | ac_status=$? |
ac1cb8d3 VS |
39473 | grep -v '^ *+' conftest.er1 >conftest.err |
39474 | rm -f conftest.er1 | |
39475 | cat conftest.err >&5 | |
a848cd7e SC |
39476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39477 | (exit $ac_status); } && | |
bb9e79c0 | 39478 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39480 | (eval $ac_try) 2>&5 | |
39481 | ac_status=$? | |
39482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39483 | (exit $ac_status); }; } && | |
39484 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39486 | (eval $ac_try) 2>&5 | |
39487 | ac_status=$? | |
39488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39489 | (exit $ac_status); }; }; then | |
39490 | echo "$as_me:$LINENO: result: yes" >&5 | |
39491 | echo "${ECHO_T}yes" >&6 | |
39492 | cat >>confdefs.h <<\_ACEOF | |
39493 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
39494 | _ACEOF | |
39495 | ||
39496 | else | |
39497 | echo "$as_me: failed program was:" >&5 | |
39498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39499 | ||
39500 | echo "$as_me:$LINENO: result: no" >&5 | |
39501 | echo "${ECHO_T}no" >&6 | |
39502 | fi | |
ac1cb8d3 | 39503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39504 | |
39505 | ||
39506 | cat >confcache <<\_ACEOF | |
39507 | # This file is a shell script that caches the results of configure | |
39508 | # tests run on this system so they can be shared between configure | |
39509 | # scripts and configure runs, see configure's option --config-cache. | |
39510 | # It is not useful on other systems. If it contains results you don't | |
39511 | # want to keep, you may remove or edit it. | |
39512 | # | |
39513 | # config.status only pays attention to the cache file if you give it | |
39514 | # the --recheck option to rerun configure. | |
39515 | # | |
39516 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
39517 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
39518 | # following values. | |
39519 | ||
39520 | _ACEOF | |
39521 | ||
39522 | # The following way of writing the cache mishandles newlines in values, | |
39523 | # but we know of no workaround that is simple, portable, and efficient. | |
39524 | # So, don't put newlines in cache variables' values. | |
39525 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
39526 | # and sets the high bit in the cache file unless we assign to the vars. | |
39527 | { | |
39528 | (set) 2>&1 | | |
39529 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
39530 | *ac_space=\ *) | |
39531 | # `set' does not quote correctly, so add quotes (double-quote | |
39532 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
39533 | sed -n \ | |
ac1cb8d3 VS |
39534 | "s/'/'\\\\''/g; |
39535 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
39536 | ;; |
39537 | *) | |
39538 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
39539 | sed -n \ | |
ac1cb8d3 | 39540 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
39541 | ;; |
39542 | esac; | |
39543 | } | | |
39544 | sed ' | |
39545 | t clear | |
39546 | : clear | |
39547 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
39548 | t end | |
39549 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
39550 | : end' >>confcache | |
39551 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
39552 | if test -w $cache_file; then | |
39553 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
39554 | cat confcache >$cache_file | |
39555 | else | |
39556 | echo "not updating unwritable cache $cache_file" | |
39557 | fi | |
39558 | fi | |
39559 | rm -f confcache | |
39560 | ||
39561 | ||
a848cd7e SC |
39562 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
39563 | ||
39564 | ||
39565 | THREADS_LINK= | |
e56f4f9e | 39566 | THREADS_CXXFLAGS= |
a848cd7e SC |
39567 | |
39568 | if test "$wxUSE_THREADS" = "yes" ; then | |
39569 | if test "$USE_BEOS" = 1; then | |
39570 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
39571 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
39572 | wxUSE_THREADS="no" | |
39573 | fi | |
39574 | fi | |
39575 | ||
39576 | if test "$wxUSE_THREADS" = "yes" ; then | |
39577 | ||
39578 | ||
39579 | THREAD_OPTS="-pthread" | |
39580 | case "${host}" in | |
39581 | *-*-solaris2* | *-*-sunos4* ) | |
39582 | if test "x$GCC" = "xyes"; then | |
39583 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
39584 | else | |
39585 | THREAD_OPTS="-mt $THREAD_OPTS" | |
39586 | fi | |
39587 | ;; | |
39588 | *-*-freebsd*) | |
39589 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
39590 | ;; | |
39591 | *-*-darwin* | *-*-cygwin* ) | |
39592 | THREAD_OPTS="" | |
39593 | ;; | |
39594 | *-*-aix*) | |
39595 | THREAD_OPTS="pthreads" | |
39596 | ;; | |
39597 | *-hp-hpux* ) | |
00421666 MW |
39598 | if test "x$GCC" = "xyes"; then |
39599 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
39600 | THREAD_OPTS="" | |
39601 | else | |
0093c2fc | 39602 | THREAD_OPTS="-mt" |
a848cd7e SC |
39603 | fi |
39604 | ;; | |
39605 | ||
39606 | *-*-irix* ) | |
39607 | if test "x$GCC" = "xyes"; then | |
39608 | THREAD_OPTS="" | |
39609 | fi | |
39610 | ;; | |
39611 | ||
39612 | *-*-*UnixWare*) | |
39613 | if test "x$GCC" != "xyes"; then | |
39614 | THREAD_OPTS="-Ethread" | |
39615 | fi | |
39616 | ;; | |
39617 | esac | |
39618 | ||
39619 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
39620 | ||
39621 | THREADS_OK=no | |
39622 | for flag in $THREAD_OPTS; do | |
39623 | case $flag in | |
39624 | none) | |
39625 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
39626 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
39627 | ;; | |
39628 | ||
39629 | -*) | |
39630 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
39631 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
e56f4f9e | 39632 | THREADS_CXXFLAGS="$flag" |
a848cd7e SC |
39633 | ;; |
39634 | ||
39635 | *) | |
39636 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
39637 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
39638 | THREADS_LINK="-l$flag" | |
39639 | ;; | |
39640 | esac | |
39641 | ||
39642 | save_LIBS="$LIBS" | |
e56f4f9e | 39643 | save_CXXFLAGS="$CXXFLAGS" |
a848cd7e | 39644 | LIBS="$THREADS_LINK $LIBS" |
e56f4f9e | 39645 | CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS" |
a848cd7e SC |
39646 | |
39647 | cat >conftest.$ac_ext <<_ACEOF | |
39648 | /* confdefs.h. */ | |
39649 | _ACEOF | |
39650 | cat confdefs.h >>conftest.$ac_ext | |
39651 | cat >>conftest.$ac_ext <<_ACEOF | |
39652 | /* end confdefs.h. */ | |
39653 | #include <pthread.h> | |
39654 | int | |
39655 | main () | |
39656 | { | |
39657 | pthread_create(0,0,0,0); | |
39658 | ; | |
39659 | return 0; | |
39660 | } | |
39661 | _ACEOF | |
39662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39664 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39665 | ac_status=$? |
ac1cb8d3 VS |
39666 | grep -v '^ *+' conftest.er1 >conftest.err |
39667 | rm -f conftest.er1 | |
39668 | cat conftest.err >&5 | |
a848cd7e SC |
39669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39670 | (exit $ac_status); } && | |
bb9e79c0 | 39671 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39673 | (eval $ac_try) 2>&5 | |
39674 | ac_status=$? | |
39675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39676 | (exit $ac_status); }; } && | |
39677 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39679 | (eval $ac_try) 2>&5 | |
39680 | ac_status=$? | |
39681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39682 | (exit $ac_status); }; }; then | |
39683 | THREADS_OK=yes | |
39684 | else | |
39685 | echo "$as_me: failed program was:" >&5 | |
39686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39687 | ||
39688 | fi | |
ac1cb8d3 VS |
39689 | rm -f conftest.err conftest.$ac_objext \ |
39690 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39691 | |
39692 | LIBS="$save_LIBS" | |
e56f4f9e | 39693 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
39694 | |
39695 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
39696 | echo "${ECHO_T}$THREADS_OK" >&6 | |
39697 | if test "x$THREADS_OK" = "xyes"; then | |
39698 | break; | |
39699 | fi | |
39700 | ||
39701 | THREADS_LINK="" | |
e56f4f9e | 39702 | THREADS_CXXFLAGS="" |
a848cd7e SC |
39703 | done |
39704 | ||
39705 | if test "x$THREADS_OK" != "xyes"; then | |
39706 | wxUSE_THREADS=no | |
39707 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
39708 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
39709 | else | |
e56f4f9e | 39710 | LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS" |
a848cd7e SC |
39711 | LIBS="$THREADS_LINK $LIBS" |
39712 | ||
39713 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
39714 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
39715 | flag=no | |
39716 | case "${host}" in | |
39717 | *-aix*) | |
39718 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
39719 | flag="-D_THREAD_SAFE" | |
39720 | ;; | |
39721 | *-freebsd*) | |
39722 | flag="-D_THREAD_SAFE" | |
39723 | ;; | |
39724 | *-hp-hpux* ) | |
39725 | flag="-D_REENTRANT" | |
39726 | if test "x$GCC" != "xyes"; then | |
39727 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
39728 | fi | |
39729 | ;; | |
39730 | *solaris* | alpha*-osf*) | |
39731 | flag="-D_REENTRANT" | |
39732 | ;; | |
39733 | esac | |
39734 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
39735 | echo "${ECHO_T}${flag}" >&6 | |
39736 | if test "x$flag" != xno; then | |
e56f4f9e | 39737 | THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag" |
a848cd7e SC |
39738 | fi |
39739 | ||
e56f4f9e | 39740 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS" |
a848cd7e SC |
39741 | fi |
39742 | fi | |
39743 | ||
39744 | if test "$wxUSE_THREADS" = "yes" ; then | |
39745 | ||
39746 | for ac_func in thr_setconcurrency | |
39747 | do | |
39748 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39749 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39750 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39751 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39753 | else | |
39754 | cat >conftest.$ac_ext <<_ACEOF | |
39755 | /* confdefs.h. */ | |
39756 | _ACEOF | |
39757 | cat confdefs.h >>conftest.$ac_ext | |
39758 | cat >>conftest.$ac_ext <<_ACEOF | |
39759 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39760 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39761 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39762 | #define $ac_func innocuous_$ac_func | |
39763 | ||
a848cd7e SC |
39764 | /* System header to define __stub macros and hopefully few prototypes, |
39765 | which can conflict with char $ac_func (); below. | |
39766 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39767 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39768 | |
a848cd7e SC |
39769 | #ifdef __STDC__ |
39770 | # include <limits.h> | |
39771 | #else | |
39772 | # include <assert.h> | |
39773 | #endif | |
ac1cb8d3 VS |
39774 | |
39775 | #undef $ac_func | |
39776 | ||
a848cd7e SC |
39777 | /* Override any gcc2 internal prototype to avoid an error. */ |
39778 | #ifdef __cplusplus | |
39779 | extern "C" | |
39780 | { | |
39781 | #endif | |
39782 | /* We use char because int might match the return type of a gcc2 | |
39783 | builtin and then its argument prototype would still apply. */ | |
39784 | char $ac_func (); | |
39785 | /* The GNU C library defines this for functions which it implements | |
39786 | to always fail with ENOSYS. Some functions are actually named | |
39787 | something starting with __ and the normal name is an alias. */ | |
39788 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39789 | choke me | |
39790 | #else | |
39791 | char (*f) () = $ac_func; | |
39792 | #endif | |
39793 | #ifdef __cplusplus | |
39794 | } | |
39795 | #endif | |
39796 | ||
39797 | int | |
39798 | main () | |
39799 | { | |
39800 | return f != $ac_func; | |
39801 | ; | |
39802 | return 0; | |
39803 | } | |
39804 | _ACEOF | |
39805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39807 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39808 | ac_status=$? |
ac1cb8d3 VS |
39809 | grep -v '^ *+' conftest.er1 >conftest.err |
39810 | rm -f conftest.er1 | |
39811 | cat conftest.err >&5 | |
a848cd7e SC |
39812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39813 | (exit $ac_status); } && | |
bb9e79c0 | 39814 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39816 | (eval $ac_try) 2>&5 | |
39817 | ac_status=$? | |
39818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39819 | (exit $ac_status); }; } && | |
39820 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39822 | (eval $ac_try) 2>&5 | |
39823 | ac_status=$? | |
39824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39825 | (exit $ac_status); }; }; then | |
39826 | eval "$as_ac_var=yes" | |
39827 | else | |
39828 | echo "$as_me: failed program was:" >&5 | |
39829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39830 | ||
39831 | eval "$as_ac_var=no" | |
39832 | fi | |
ac1cb8d3 VS |
39833 | rm -f conftest.err conftest.$ac_objext \ |
39834 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39835 | fi |
39836 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39837 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39838 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39839 | cat >>confdefs.h <<_ACEOF | |
39840 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39841 | _ACEOF | |
39842 | ||
39843 | fi | |
39844 | done | |
39845 | ||
39846 | ||
6ebeb4c7 VZ |
39847 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
39848 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
39849 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
39850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39851 | else | |
39852 | ||
39853 | cat >conftest.$ac_ext <<_ACEOF | |
39854 | /* confdefs.h. */ | |
39855 | _ACEOF | |
39856 | cat confdefs.h >>conftest.$ac_ext | |
39857 | cat >>conftest.$ac_ext <<_ACEOF | |
39858 | /* end confdefs.h. */ | |
39859 | #include <pthread.h> | |
39860 | void ThreadCleanupFunc(void *p); | |
39861 | ||
39862 | int | |
39863 | main () | |
39864 | { | |
39865 | ||
39866 | void *p; | |
39867 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
39868 | pthread_cleanup_pop(0); | |
39869 | ||
39870 | ; | |
39871 | return 0; | |
39872 | } | |
39873 | _ACEOF | |
39874 | rm -f conftest.$ac_objext | |
39875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39876 | (eval $ac_compile) 2>conftest.er1 | |
39877 | ac_status=$? | |
39878 | grep -v '^ *+' conftest.er1 >conftest.err | |
39879 | rm -f conftest.er1 | |
39880 | cat conftest.err >&5 | |
39881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39882 | (exit $ac_status); } && | |
bb9e79c0 | 39883 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
39884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39885 | (eval $ac_try) 2>&5 | |
39886 | ac_status=$? | |
39887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39888 | (exit $ac_status); }; } && | |
39889 | { ac_try='test -s conftest.$ac_objext' | |
39890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39891 | (eval $ac_try) 2>&5 | |
39892 | ac_status=$? | |
39893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39894 | (exit $ac_status); }; }; then | |
39895 | ||
39896 | wx_cv_func_pthread_cleanup=yes | |
39897 | ||
39898 | else | |
39899 | echo "$as_me: failed program was:" >&5 | |
39900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39901 | ||
39902 | ||
39903 | wx_cv_func_pthread_cleanup=no | |
39904 | ||
39905 | ||
39906 | fi | |
39907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39908 | ||
39909 | fi | |
39910 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
39911 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
39912 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
39913 | cat >>confdefs.h <<\_ACEOF | |
39914 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
39915 | _ACEOF | |
39916 | ||
39917 | fi | |
39918 | ||
a848cd7e SC |
39919 | |
39920 | for ac_header in sched.h | |
39921 | do | |
39922 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
39923 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39924 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39925 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39928 | fi | |
39929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39931 | else | |
39932 | # Is the header compilable? | |
39933 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
39934 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
39935 | cat >conftest.$ac_ext <<_ACEOF | |
39936 | /* confdefs.h. */ | |
39937 | _ACEOF | |
39938 | cat confdefs.h >>conftest.$ac_ext | |
39939 | cat >>conftest.$ac_ext <<_ACEOF | |
39940 | /* end confdefs.h. */ | |
39941 | $ac_includes_default | |
39942 | #include <$ac_header> | |
39943 | _ACEOF | |
39944 | rm -f conftest.$ac_objext | |
39945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39946 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39947 | ac_status=$? |
ac1cb8d3 VS |
39948 | grep -v '^ *+' conftest.er1 >conftest.err |
39949 | rm -f conftest.er1 | |
39950 | cat conftest.err >&5 | |
a848cd7e SC |
39951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39952 | (exit $ac_status); } && | |
bb9e79c0 | 39953 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39955 | (eval $ac_try) 2>&5 | |
39956 | ac_status=$? | |
39957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39958 | (exit $ac_status); }; } && | |
39959 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39961 | (eval $ac_try) 2>&5 | |
39962 | ac_status=$? | |
39963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39964 | (exit $ac_status); }; }; then | |
39965 | ac_header_compiler=yes | |
39966 | else | |
39967 | echo "$as_me: failed program was:" >&5 | |
39968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39969 | ||
39970 | ac_header_compiler=no | |
39971 | fi | |
ac1cb8d3 | 39972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39973 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
39974 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
39975 | ||
39976 | # Is the header present? | |
39977 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
39978 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
39979 | cat >conftest.$ac_ext <<_ACEOF | |
39980 | /* confdefs.h. */ | |
39981 | _ACEOF | |
39982 | cat confdefs.h >>conftest.$ac_ext | |
39983 | cat >>conftest.$ac_ext <<_ACEOF | |
39984 | /* end confdefs.h. */ | |
39985 | #include <$ac_header> | |
39986 | _ACEOF | |
39987 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
39988 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
39989 | ac_status=$? | |
39990 | grep -v '^ *+' conftest.er1 >conftest.err | |
39991 | rm -f conftest.er1 | |
39992 | cat conftest.err >&5 | |
39993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39994 | (exit $ac_status); } >/dev/null; then | |
39995 | if test -s conftest.err; then | |
5d7b7554 VZ |
39996 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
39997 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
39998 | else |
39999 | ac_cpp_err= | |
40000 | fi | |
40001 | else | |
40002 | ac_cpp_err=yes | |
40003 | fi | |
40004 | if test -z "$ac_cpp_err"; then | |
40005 | ac_header_preproc=yes | |
40006 | else | |
40007 | echo "$as_me: failed program was:" >&5 | |
40008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40009 | ||
40010 | ac_header_preproc=no | |
40011 | fi | |
40012 | rm -f conftest.err conftest.$ac_ext | |
40013 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
40014 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
40015 | ||
40016 | # So? What about this header? | |
5d7b7554 | 40017 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 40018 | yes:no: ) |
a848cd7e SC |
40019 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
40020 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
40021 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
40022 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
40023 | ac_header_preproc=yes | |
a848cd7e | 40024 | ;; |
ac1cb8d3 | 40025 | no:yes:* ) |
a848cd7e SC |
40026 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
40027 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
40028 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
40029 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
40030 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
40031 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
40032 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
40033 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
40034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
40035 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
40036 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
40037 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
40038 | ( |
40039 | cat <<\_ASBOX | |
ac1cb8d3 VS |
40040 | ## ----------------------------------------- ## |
40041 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
40042 | ## ----------------------------------------- ## | |
a848cd7e SC |
40043 | _ASBOX |
40044 | ) | | |
40045 | sed "s/^/$as_me: WARNING: /" >&2 | |
40046 | ;; | |
40047 | esac | |
40048 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40049 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40050 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40052 | else | |
ac1cb8d3 | 40053 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
40054 | fi |
40055 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40057 | ||
40058 | fi | |
40059 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
40060 | cat >>confdefs.h <<_ACEOF | |
40061 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
40062 | _ACEOF | |
40063 | ||
40064 | fi | |
40065 | ||
40066 | done | |
40067 | ||
40068 | if test "$ac_cv_header_sched_h" = "yes"; then | |
40069 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
40070 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
40071 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
40072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40073 | else | |
40074 | cat >conftest.$ac_ext <<_ACEOF | |
40075 | /* confdefs.h. */ | |
40076 | _ACEOF | |
40077 | cat confdefs.h >>conftest.$ac_ext | |
40078 | cat >>conftest.$ac_ext <<_ACEOF | |
40079 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40080 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
40081 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40082 | #define sched_yield innocuous_sched_yield | |
40083 | ||
a848cd7e SC |
40084 | /* System header to define __stub macros and hopefully few prototypes, |
40085 | which can conflict with char sched_yield (); below. | |
40086 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40087 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40088 | |
a848cd7e SC |
40089 | #ifdef __STDC__ |
40090 | # include <limits.h> | |
40091 | #else | |
40092 | # include <assert.h> | |
40093 | #endif | |
ac1cb8d3 VS |
40094 | |
40095 | #undef sched_yield | |
40096 | ||
a848cd7e SC |
40097 | /* Override any gcc2 internal prototype to avoid an error. */ |
40098 | #ifdef __cplusplus | |
40099 | extern "C" | |
40100 | { | |
40101 | #endif | |
40102 | /* We use char because int might match the return type of a gcc2 | |
40103 | builtin and then its argument prototype would still apply. */ | |
40104 | char sched_yield (); | |
40105 | /* The GNU C library defines this for functions which it implements | |
40106 | to always fail with ENOSYS. Some functions are actually named | |
40107 | something starting with __ and the normal name is an alias. */ | |
40108 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
40109 | choke me | |
40110 | #else | |
40111 | char (*f) () = sched_yield; | |
40112 | #endif | |
40113 | #ifdef __cplusplus | |
40114 | } | |
40115 | #endif | |
40116 | ||
40117 | int | |
40118 | main () | |
40119 | { | |
40120 | return f != sched_yield; | |
40121 | ; | |
40122 | return 0; | |
40123 | } | |
40124 | _ACEOF | |
40125 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40127 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40128 | ac_status=$? |
ac1cb8d3 VS |
40129 | grep -v '^ *+' conftest.er1 >conftest.err |
40130 | rm -f conftest.er1 | |
40131 | cat conftest.err >&5 | |
a848cd7e SC |
40132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40133 | (exit $ac_status); } && | |
bb9e79c0 | 40134 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40136 | (eval $ac_try) 2>&5 | |
40137 | ac_status=$? | |
40138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40139 | (exit $ac_status); }; } && | |
40140 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40142 | (eval $ac_try) 2>&5 | |
40143 | ac_status=$? | |
40144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40145 | (exit $ac_status); }; }; then | |
40146 | ac_cv_func_sched_yield=yes | |
40147 | else | |
40148 | echo "$as_me: failed program was:" >&5 | |
40149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40150 | ||
40151 | ac_cv_func_sched_yield=no | |
40152 | fi | |
ac1cb8d3 VS |
40153 | rm -f conftest.err conftest.$ac_objext \ |
40154 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40155 | fi |
40156 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
40157 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
40158 | if test $ac_cv_func_sched_yield = yes; then | |
40159 | cat >>confdefs.h <<\_ACEOF | |
40160 | #define HAVE_SCHED_YIELD 1 | |
40161 | _ACEOF | |
40162 | ||
40163 | else | |
40164 | ||
40165 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
40166 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
40167 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
40168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40169 | else | |
40170 | ac_check_lib_save_LIBS=$LIBS | |
40171 | LIBS="-lposix4 $LIBS" | |
40172 | cat >conftest.$ac_ext <<_ACEOF | |
40173 | /* confdefs.h. */ | |
40174 | _ACEOF | |
40175 | cat confdefs.h >>conftest.$ac_ext | |
40176 | cat >>conftest.$ac_ext <<_ACEOF | |
40177 | /* end confdefs.h. */ | |
40178 | ||
40179 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40180 | #ifdef __cplusplus | |
40181 | extern "C" | |
40182 | #endif | |
40183 | /* We use char because int might match the return type of a gcc2 | |
40184 | builtin and then its argument prototype would still apply. */ | |
40185 | char sched_yield (); | |
40186 | int | |
40187 | main () | |
40188 | { | |
40189 | sched_yield (); | |
40190 | ; | |
40191 | return 0; | |
40192 | } | |
40193 | _ACEOF | |
40194 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40196 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40197 | ac_status=$? |
ac1cb8d3 VS |
40198 | grep -v '^ *+' conftest.er1 >conftest.err |
40199 | rm -f conftest.er1 | |
40200 | cat conftest.err >&5 | |
a848cd7e SC |
40201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40202 | (exit $ac_status); } && | |
bb9e79c0 | 40203 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40205 | (eval $ac_try) 2>&5 | |
40206 | ac_status=$? | |
40207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40208 | (exit $ac_status); }; } && | |
40209 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40211 | (eval $ac_try) 2>&5 | |
40212 | ac_status=$? | |
40213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40214 | (exit $ac_status); }; }; then | |
40215 | ac_cv_lib_posix4_sched_yield=yes | |
40216 | else | |
40217 | echo "$as_me: failed program was:" >&5 | |
40218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40219 | ||
40220 | ac_cv_lib_posix4_sched_yield=no | |
40221 | fi | |
ac1cb8d3 VS |
40222 | rm -f conftest.err conftest.$ac_objext \ |
40223 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40224 | LIBS=$ac_check_lib_save_LIBS |
40225 | fi | |
40226 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
40227 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
40228 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
40229 | cat >>confdefs.h <<\_ACEOF | |
40230 | #define HAVE_SCHED_YIELD 1 | |
40231 | _ACEOF | |
40232 | POSIX4_LINK=" -lposix4" | |
40233 | else | |
40234 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
40235 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
40236 | ||
40237 | fi | |
40238 | ||
40239 | ||
40240 | ||
40241 | fi | |
40242 | ||
40243 | fi | |
40244 | ||
40245 | HAVE_PRIOR_FUNCS=0 | |
40246 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
40247 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
40248 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
40249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40250 | else | |
40251 | cat >conftest.$ac_ext <<_ACEOF | |
40252 | /* confdefs.h. */ | |
40253 | _ACEOF | |
40254 | cat confdefs.h >>conftest.$ac_ext | |
40255 | cat >>conftest.$ac_ext <<_ACEOF | |
40256 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40257 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
40258 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40259 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
40260 | ||
a848cd7e SC |
40261 | /* System header to define __stub macros and hopefully few prototypes, |
40262 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
40263 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40264 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40265 | |
a848cd7e SC |
40266 | #ifdef __STDC__ |
40267 | # include <limits.h> | |
40268 | #else | |
40269 | # include <assert.h> | |
40270 | #endif | |
ac1cb8d3 VS |
40271 | |
40272 | #undef pthread_attr_getschedpolicy | |
40273 | ||
a848cd7e SC |
40274 | /* Override any gcc2 internal prototype to avoid an error. */ |
40275 | #ifdef __cplusplus | |
40276 | extern "C" | |
40277 | { | |
40278 | #endif | |
40279 | /* We use char because int might match the return type of a gcc2 | |
40280 | builtin and then its argument prototype would still apply. */ | |
40281 | char pthread_attr_getschedpolicy (); | |
40282 | /* The GNU C library defines this for functions which it implements | |
40283 | to always fail with ENOSYS. Some functions are actually named | |
40284 | something starting with __ and the normal name is an alias. */ | |
40285 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
40286 | choke me | |
40287 | #else | |
40288 | char (*f) () = pthread_attr_getschedpolicy; | |
40289 | #endif | |
40290 | #ifdef __cplusplus | |
40291 | } | |
40292 | #endif | |
40293 | ||
40294 | int | |
40295 | main () | |
40296 | { | |
40297 | return f != pthread_attr_getschedpolicy; | |
40298 | ; | |
40299 | return 0; | |
40300 | } | |
40301 | _ACEOF | |
40302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40304 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40305 | ac_status=$? |
ac1cb8d3 VS |
40306 | grep -v '^ *+' conftest.er1 >conftest.err |
40307 | rm -f conftest.er1 | |
40308 | cat conftest.err >&5 | |
a848cd7e SC |
40309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40310 | (exit $ac_status); } && | |
bb9e79c0 | 40311 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40313 | (eval $ac_try) 2>&5 | |
40314 | ac_status=$? | |
40315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40316 | (exit $ac_status); }; } && | |
40317 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40319 | (eval $ac_try) 2>&5 | |
40320 | ac_status=$? | |
40321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40322 | (exit $ac_status); }; }; then | |
40323 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
40324 | else | |
40325 | echo "$as_me: failed program was:" >&5 | |
40326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40327 | ||
40328 | ac_cv_func_pthread_attr_getschedpolicy=no | |
40329 | fi | |
ac1cb8d3 VS |
40330 | rm -f conftest.err conftest.$ac_objext \ |
40331 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40332 | fi |
40333 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
40334 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
40335 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
40336 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
40337 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
40338 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
40339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40340 | else | |
40341 | cat >conftest.$ac_ext <<_ACEOF | |
40342 | /* confdefs.h. */ | |
40343 | _ACEOF | |
40344 | cat confdefs.h >>conftest.$ac_ext | |
40345 | cat >>conftest.$ac_ext <<_ACEOF | |
40346 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40347 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
40348 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40349 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
40350 | ||
a848cd7e SC |
40351 | /* System header to define __stub macros and hopefully few prototypes, |
40352 | which can conflict with char pthread_attr_setschedparam (); below. | |
40353 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40354 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40355 | |
a848cd7e SC |
40356 | #ifdef __STDC__ |
40357 | # include <limits.h> | |
40358 | #else | |
40359 | # include <assert.h> | |
40360 | #endif | |
ac1cb8d3 VS |
40361 | |
40362 | #undef pthread_attr_setschedparam | |
40363 | ||
a848cd7e SC |
40364 | /* Override any gcc2 internal prototype to avoid an error. */ |
40365 | #ifdef __cplusplus | |
40366 | extern "C" | |
40367 | { | |
40368 | #endif | |
40369 | /* We use char because int might match the return type of a gcc2 | |
40370 | builtin and then its argument prototype would still apply. */ | |
40371 | char pthread_attr_setschedparam (); | |
40372 | /* The GNU C library defines this for functions which it implements | |
40373 | to always fail with ENOSYS. Some functions are actually named | |
40374 | something starting with __ and the normal name is an alias. */ | |
40375 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
40376 | choke me | |
40377 | #else | |
40378 | char (*f) () = pthread_attr_setschedparam; | |
40379 | #endif | |
40380 | #ifdef __cplusplus | |
40381 | } | |
40382 | #endif | |
40383 | ||
40384 | int | |
40385 | main () | |
40386 | { | |
40387 | return f != pthread_attr_setschedparam; | |
40388 | ; | |
40389 | return 0; | |
40390 | } | |
40391 | _ACEOF | |
40392 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40394 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40395 | ac_status=$? |
ac1cb8d3 VS |
40396 | grep -v '^ *+' conftest.er1 >conftest.err |
40397 | rm -f conftest.er1 | |
40398 | cat conftest.err >&5 | |
a848cd7e SC |
40399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40400 | (exit $ac_status); } && | |
bb9e79c0 | 40401 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40403 | (eval $ac_try) 2>&5 | |
40404 | ac_status=$? | |
40405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40406 | (exit $ac_status); }; } && | |
40407 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40409 | (eval $ac_try) 2>&5 | |
40410 | ac_status=$? | |
40411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40412 | (exit $ac_status); }; }; then | |
40413 | ac_cv_func_pthread_attr_setschedparam=yes | |
40414 | else | |
40415 | echo "$as_me: failed program was:" >&5 | |
40416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40417 | ||
40418 | ac_cv_func_pthread_attr_setschedparam=no | |
40419 | fi | |
ac1cb8d3 VS |
40420 | rm -f conftest.err conftest.$ac_objext \ |
40421 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40422 | fi |
40423 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
40424 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
40425 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
40426 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
40427 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
40428 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
40429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40430 | else | |
40431 | cat >conftest.$ac_ext <<_ACEOF | |
40432 | /* confdefs.h. */ | |
40433 | _ACEOF | |
40434 | cat confdefs.h >>conftest.$ac_ext | |
40435 | cat >>conftest.$ac_ext <<_ACEOF | |
40436 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40437 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
40438 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40439 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
40440 | ||
a848cd7e SC |
40441 | /* System header to define __stub macros and hopefully few prototypes, |
40442 | which can conflict with char sched_get_priority_max (); below. | |
40443 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40444 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40445 | |
a848cd7e SC |
40446 | #ifdef __STDC__ |
40447 | # include <limits.h> | |
40448 | #else | |
40449 | # include <assert.h> | |
40450 | #endif | |
ac1cb8d3 VS |
40451 | |
40452 | #undef sched_get_priority_max | |
40453 | ||
a848cd7e SC |
40454 | /* Override any gcc2 internal prototype to avoid an error. */ |
40455 | #ifdef __cplusplus | |
40456 | extern "C" | |
40457 | { | |
40458 | #endif | |
40459 | /* We use char because int might match the return type of a gcc2 | |
40460 | builtin and then its argument prototype would still apply. */ | |
40461 | char sched_get_priority_max (); | |
40462 | /* The GNU C library defines this for functions which it implements | |
40463 | to always fail with ENOSYS. Some functions are actually named | |
40464 | something starting with __ and the normal name is an alias. */ | |
40465 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
40466 | choke me | |
40467 | #else | |
40468 | char (*f) () = sched_get_priority_max; | |
40469 | #endif | |
40470 | #ifdef __cplusplus | |
40471 | } | |
40472 | #endif | |
40473 | ||
40474 | int | |
40475 | main () | |
40476 | { | |
40477 | return f != sched_get_priority_max; | |
40478 | ; | |
40479 | return 0; | |
40480 | } | |
40481 | _ACEOF | |
40482 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40484 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40485 | ac_status=$? |
ac1cb8d3 VS |
40486 | grep -v '^ *+' conftest.er1 >conftest.err |
40487 | rm -f conftest.er1 | |
40488 | cat conftest.err >&5 | |
a848cd7e SC |
40489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40490 | (exit $ac_status); } && | |
bb9e79c0 | 40491 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40493 | (eval $ac_try) 2>&5 | |
40494 | ac_status=$? | |
40495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40496 | (exit $ac_status); }; } && | |
40497 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40499 | (eval $ac_try) 2>&5 | |
40500 | ac_status=$? | |
40501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40502 | (exit $ac_status); }; }; then | |
40503 | ac_cv_func_sched_get_priority_max=yes | |
40504 | else | |
40505 | echo "$as_me: failed program was:" >&5 | |
40506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40507 | ||
40508 | ac_cv_func_sched_get_priority_max=no | |
40509 | fi | |
ac1cb8d3 VS |
40510 | rm -f conftest.err conftest.$ac_objext \ |
40511 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40512 | fi |
40513 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
40514 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
40515 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
40516 | HAVE_PRIOR_FUNCS=1 | |
40517 | else | |
40518 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
40519 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
40520 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
40521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40522 | else | |
40523 | ac_check_lib_save_LIBS=$LIBS | |
40524 | LIBS="-lposix4 $LIBS" | |
40525 | cat >conftest.$ac_ext <<_ACEOF | |
40526 | /* confdefs.h. */ | |
40527 | _ACEOF | |
40528 | cat confdefs.h >>conftest.$ac_ext | |
40529 | cat >>conftest.$ac_ext <<_ACEOF | |
40530 | /* end confdefs.h. */ | |
40531 | ||
40532 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40533 | #ifdef __cplusplus | |
40534 | extern "C" | |
40535 | #endif | |
40536 | /* We use char because int might match the return type of a gcc2 | |
40537 | builtin and then its argument prototype would still apply. */ | |
40538 | char sched_get_priority_max (); | |
40539 | int | |
40540 | main () | |
40541 | { | |
40542 | sched_get_priority_max (); | |
40543 | ; | |
40544 | return 0; | |
40545 | } | |
40546 | _ACEOF | |
40547 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40549 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40550 | ac_status=$? |
ac1cb8d3 VS |
40551 | grep -v '^ *+' conftest.er1 >conftest.err |
40552 | rm -f conftest.er1 | |
40553 | cat conftest.err >&5 | |
a848cd7e SC |
40554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40555 | (exit $ac_status); } && | |
bb9e79c0 | 40556 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40558 | (eval $ac_try) 2>&5 | |
40559 | ac_status=$? | |
40560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40561 | (exit $ac_status); }; } && | |
40562 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40564 | (eval $ac_try) 2>&5 | |
40565 | ac_status=$? | |
40566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40567 | (exit $ac_status); }; }; then | |
40568 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
40569 | else | |
40570 | echo "$as_me: failed program was:" >&5 | |
40571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40572 | ||
40573 | ac_cv_lib_posix4_sched_get_priority_max=no | |
40574 | fi | |
ac1cb8d3 VS |
40575 | rm -f conftest.err conftest.$ac_objext \ |
40576 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40577 | LIBS=$ac_check_lib_save_LIBS |
40578 | fi | |
40579 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
40580 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
40581 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
40582 | ||
40583 | HAVE_PRIOR_FUNCS=1 | |
40584 | POSIX4_LINK=" -lposix4" | |
40585 | ||
40586 | fi | |
40587 | ||
40588 | ||
40589 | fi | |
40590 | ||
40591 | ||
40592 | fi | |
40593 | ||
40594 | ||
40595 | fi | |
40596 | ||
40597 | ||
40598 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
40599 | cat >>confdefs.h <<\_ACEOF | |
40600 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
40601 | _ACEOF | |
40602 | ||
40603 | else | |
40604 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
40605 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
40606 | fi | |
40607 | ||
40608 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
40609 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
40610 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
40611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40612 | else | |
40613 | cat >conftest.$ac_ext <<_ACEOF | |
40614 | /* confdefs.h. */ | |
40615 | _ACEOF | |
40616 | cat confdefs.h >>conftest.$ac_ext | |
40617 | cat >>conftest.$ac_ext <<_ACEOF | |
40618 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40619 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
40620 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40621 | #define pthread_cancel innocuous_pthread_cancel | |
40622 | ||
a848cd7e SC |
40623 | /* System header to define __stub macros and hopefully few prototypes, |
40624 | which can conflict with char pthread_cancel (); below. | |
40625 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40626 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40627 | |
a848cd7e SC |
40628 | #ifdef __STDC__ |
40629 | # include <limits.h> | |
40630 | #else | |
40631 | # include <assert.h> | |
40632 | #endif | |
ac1cb8d3 VS |
40633 | |
40634 | #undef pthread_cancel | |
40635 | ||
a848cd7e SC |
40636 | /* Override any gcc2 internal prototype to avoid an error. */ |
40637 | #ifdef __cplusplus | |
40638 | extern "C" | |
40639 | { | |
40640 | #endif | |
40641 | /* We use char because int might match the return type of a gcc2 | |
40642 | builtin and then its argument prototype would still apply. */ | |
40643 | char pthread_cancel (); | |
40644 | /* The GNU C library defines this for functions which it implements | |
40645 | to always fail with ENOSYS. Some functions are actually named | |
40646 | something starting with __ and the normal name is an alias. */ | |
40647 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
40648 | choke me | |
40649 | #else | |
40650 | char (*f) () = pthread_cancel; | |
40651 | #endif | |
40652 | #ifdef __cplusplus | |
40653 | } | |
40654 | #endif | |
40655 | ||
40656 | int | |
40657 | main () | |
40658 | { | |
40659 | return f != pthread_cancel; | |
40660 | ; | |
40661 | return 0; | |
40662 | } | |
40663 | _ACEOF | |
40664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40666 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40667 | ac_status=$? |
ac1cb8d3 VS |
40668 | grep -v '^ *+' conftest.er1 >conftest.err |
40669 | rm -f conftest.er1 | |
40670 | cat conftest.err >&5 | |
a848cd7e SC |
40671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40672 | (exit $ac_status); } && | |
bb9e79c0 | 40673 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40675 | (eval $ac_try) 2>&5 | |
40676 | ac_status=$? | |
40677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40678 | (exit $ac_status); }; } && | |
40679 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40681 | (eval $ac_try) 2>&5 | |
40682 | ac_status=$? | |
40683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40684 | (exit $ac_status); }; }; then | |
40685 | ac_cv_func_pthread_cancel=yes | |
40686 | else | |
40687 | echo "$as_me: failed program was:" >&5 | |
40688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40689 | ||
40690 | ac_cv_func_pthread_cancel=no | |
40691 | fi | |
ac1cb8d3 VS |
40692 | rm -f conftest.err conftest.$ac_objext \ |
40693 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40694 | fi |
40695 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
40696 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
40697 | if test $ac_cv_func_pthread_cancel = yes; then | |
40698 | cat >>confdefs.h <<\_ACEOF | |
40699 | #define HAVE_PTHREAD_CANCEL 1 | |
40700 | _ACEOF | |
40701 | ||
40702 | else | |
40703 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
40704 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
40705 | fi | |
40706 | ||
40707 | ||
abc736fd MW |
40708 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
40709 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
40710 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
40711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40712 | else | |
40713 | cat >conftest.$ac_ext <<_ACEOF | |
40714 | /* confdefs.h. */ | |
40715 | _ACEOF | |
40716 | cat confdefs.h >>conftest.$ac_ext | |
40717 | cat >>conftest.$ac_ext <<_ACEOF | |
40718 | /* end confdefs.h. */ | |
40719 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
40720 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40721 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
40722 | ||
40723 | /* System header to define __stub macros and hopefully few prototypes, | |
40724 | which can conflict with char pthread_attr_setstacksize (); below. | |
40725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40726 | <limits.h> exists even on freestanding compilers. */ | |
40727 | ||
40728 | #ifdef __STDC__ | |
40729 | # include <limits.h> | |
40730 | #else | |
40731 | # include <assert.h> | |
40732 | #endif | |
40733 | ||
40734 | #undef pthread_attr_setstacksize | |
40735 | ||
40736 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40737 | #ifdef __cplusplus | |
40738 | extern "C" | |
40739 | { | |
40740 | #endif | |
40741 | /* We use char because int might match the return type of a gcc2 | |
40742 | builtin and then its argument prototype would still apply. */ | |
40743 | char pthread_attr_setstacksize (); | |
40744 | /* The GNU C library defines this for functions which it implements | |
40745 | to always fail with ENOSYS. Some functions are actually named | |
40746 | something starting with __ and the normal name is an alias. */ | |
40747 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
40748 | choke me | |
40749 | #else | |
40750 | char (*f) () = pthread_attr_setstacksize; | |
40751 | #endif | |
40752 | #ifdef __cplusplus | |
40753 | } | |
40754 | #endif | |
40755 | ||
40756 | int | |
40757 | main () | |
40758 | { | |
40759 | return f != pthread_attr_setstacksize; | |
40760 | ; | |
40761 | return 0; | |
40762 | } | |
40763 | _ACEOF | |
40764 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40766 | (eval $ac_link) 2>conftest.er1 | |
40767 | ac_status=$? | |
40768 | grep -v '^ *+' conftest.er1 >conftest.err | |
40769 | rm -f conftest.er1 | |
40770 | cat conftest.err >&5 | |
40771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40772 | (exit $ac_status); } && | |
bb9e79c0 | 40773 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
40774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40775 | (eval $ac_try) 2>&5 | |
40776 | ac_status=$? | |
40777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40778 | (exit $ac_status); }; } && | |
40779 | { ac_try='test -s conftest$ac_exeext' | |
40780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40781 | (eval $ac_try) 2>&5 | |
40782 | ac_status=$? | |
40783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40784 | (exit $ac_status); }; }; then | |
40785 | ac_cv_func_pthread_attr_setstacksize=yes | |
40786 | else | |
40787 | echo "$as_me: failed program was:" >&5 | |
40788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40789 | ||
40790 | ac_cv_func_pthread_attr_setstacksize=no | |
40791 | fi | |
40792 | rm -f conftest.err conftest.$ac_objext \ | |
40793 | conftest$ac_exeext conftest.$ac_ext | |
40794 | fi | |
40795 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
40796 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
40797 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
40798 | cat >>confdefs.h <<\_ACEOF | |
40799 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
40800 | _ACEOF | |
40801 | ||
40802 | fi | |
40803 | ||
a848cd7e SC |
40804 | |
40805 | ||
40806 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
40807 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
40808 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
40809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40810 | else | |
40811 | ||
40812 | cat >conftest.$ac_ext <<_ACEOF | |
40813 | /* confdefs.h. */ | |
40814 | _ACEOF | |
40815 | cat confdefs.h >>conftest.$ac_ext | |
40816 | cat >>conftest.$ac_ext <<_ACEOF | |
40817 | /* end confdefs.h. */ | |
40818 | #include <pthread.h> | |
40819 | int | |
40820 | main () | |
40821 | { | |
40822 | ||
40823 | pthread_mutexattr_t attr; | |
40824 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
40825 | ||
40826 | ; | |
40827 | return 0; | |
40828 | } | |
40829 | _ACEOF | |
40830 | rm -f conftest.$ac_objext | |
40831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40832 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40833 | ac_status=$? |
ac1cb8d3 VS |
40834 | grep -v '^ *+' conftest.er1 >conftest.err |
40835 | rm -f conftest.er1 | |
40836 | cat conftest.err >&5 | |
a848cd7e SC |
40837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40838 | (exit $ac_status); } && | |
bb9e79c0 | 40839 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40841 | (eval $ac_try) 2>&5 | |
40842 | ac_status=$? | |
40843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40844 | (exit $ac_status); }; } && | |
40845 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40847 | (eval $ac_try) 2>&5 | |
40848 | ac_status=$? | |
40849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40850 | (exit $ac_status); }; }; then | |
123dca7d | 40851 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
40852 | else |
40853 | echo "$as_me: failed program was:" >&5 | |
40854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40855 | ||
123dca7d | 40856 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
40857 | |
40858 | fi | |
ac1cb8d3 | 40859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40860 | |
40861 | fi | |
40862 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
40863 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
40864 | ||
40865 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
40866 | cat >>confdefs.h <<\_ACEOF | |
40867 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
40868 | _ACEOF | |
40869 | ||
123dca7d VZ |
40870 | |
40871 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
40872 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
40873 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
40874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40875 | else | |
40876 | ||
40877 | cat >conftest.$ac_ext <<_ACEOF | |
40878 | /* confdefs.h. */ | |
40879 | _ACEOF | |
40880 | cat confdefs.h >>conftest.$ac_ext | |
40881 | cat >>conftest.$ac_ext <<_ACEOF | |
40882 | /* end confdefs.h. */ | |
40883 | #include <pthread.h> | |
40884 | int | |
40885 | main () | |
40886 | { | |
40887 | ||
40888 | pthread_mutexattr_t attr; | |
40889 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
40890 | ||
40891 | ; | |
40892 | return 0; | |
40893 | } | |
40894 | _ACEOF | |
40895 | rm -f conftest.$ac_objext | |
40896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40897 | (eval $ac_compile) 2>conftest.er1 | |
40898 | ac_status=$? | |
40899 | grep -v '^ *+' conftest.er1 >conftest.err | |
40900 | rm -f conftest.er1 | |
40901 | cat conftest.err >&5 | |
40902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40903 | (exit $ac_status); } && | |
bb9e79c0 | 40904 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
123dca7d VZ |
40905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40906 | (eval $ac_try) 2>&5 | |
40907 | ac_status=$? | |
40908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40909 | (exit $ac_status); }; } && | |
40910 | { ac_try='test -s conftest.$ac_objext' | |
40911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40912 | (eval $ac_try) 2>&5 | |
40913 | ac_status=$? | |
40914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40915 | (exit $ac_status); }; }; then | |
40916 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
40917 | else | |
40918 | echo "$as_me: failed program was:" >&5 | |
40919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40920 | ||
40921 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
40922 | ||
40923 | fi | |
40924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40925 | ||
40926 | fi | |
40927 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
40928 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
40929 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
40930 | cat >>confdefs.h <<\_ACEOF | |
40931 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
40932 | _ACEOF | |
40933 | ||
40934 | fi | |
a848cd7e SC |
40935 | else |
40936 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
40937 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
40938 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
40939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40940 | else | |
40941 | ||
40942 | cat >conftest.$ac_ext <<_ACEOF | |
40943 | /* confdefs.h. */ | |
40944 | _ACEOF | |
40945 | cat confdefs.h >>conftest.$ac_ext | |
40946 | cat >>conftest.$ac_ext <<_ACEOF | |
40947 | /* end confdefs.h. */ | |
40948 | #include <pthread.h> | |
40949 | int | |
40950 | main () | |
40951 | { | |
40952 | ||
40953 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
40954 | ||
40955 | ; | |
40956 | return 0; | |
40957 | } | |
40958 | _ACEOF | |
40959 | rm -f conftest.$ac_objext | |
40960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40961 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40962 | ac_status=$? |
ac1cb8d3 VS |
40963 | grep -v '^ *+' conftest.er1 >conftest.err |
40964 | rm -f conftest.er1 | |
40965 | cat conftest.err >&5 | |
a848cd7e SC |
40966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40967 | (exit $ac_status); } && | |
bb9e79c0 | 40968 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40970 | (eval $ac_try) 2>&5 | |
40971 | ac_status=$? | |
40972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40973 | (exit $ac_status); }; } && | |
40974 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40976 | (eval $ac_try) 2>&5 | |
40977 | ac_status=$? | |
40978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40979 | (exit $ac_status); }; }; then | |
40980 | ||
40981 | wx_cv_type_pthread_rec_mutex_init=yes | |
40982 | ||
40983 | else | |
40984 | echo "$as_me: failed program was:" >&5 | |
40985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40986 | ||
40987 | ||
40988 | wx_cv_type_pthread_rec_mutex_init=no | |
40989 | ||
40990 | ||
40991 | fi | |
ac1cb8d3 | 40992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40993 | |
40994 | fi | |
40995 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
40996 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
40997 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
40998 | cat >>confdefs.h <<\_ACEOF | |
40999 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
41000 | _ACEOF | |
41001 | ||
41002 | else | |
41003 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
41004 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
41005 | fi | |
41006 | fi | |
41007 | fi | |
41008 | ||
41009 | else | |
41010 | if test "$wxUSE_THREADS" = "yes" ; then | |
41011 | case "${host}" in | |
41012 | *-*-mingw32* ) | |
41013 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
41014 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
41015 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
41016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41017 | else | |
41018 | ||
e56f4f9e VZ |
41019 | CXXFLAGS_OLD="$CXXFLAGS" |
41020 | CXXFLAGS="-mthreads $CXXFLAGS" | |
a848cd7e SC |
41021 | cat >conftest.$ac_ext <<_ACEOF |
41022 | /* confdefs.h. */ | |
41023 | _ACEOF | |
41024 | cat confdefs.h >>conftest.$ac_ext | |
41025 | cat >>conftest.$ac_ext <<_ACEOF | |
41026 | /* end confdefs.h. */ | |
41027 | ||
41028 | int | |
41029 | main () | |
41030 | { | |
41031 | ||
41032 | ; | |
41033 | return 0; | |
41034 | } | |
41035 | _ACEOF | |
41036 | rm -f conftest.$ac_objext | |
41037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41038 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41039 | ac_status=$? |
ac1cb8d3 VS |
41040 | grep -v '^ *+' conftest.er1 >conftest.err |
41041 | rm -f conftest.er1 | |
41042 | cat conftest.err >&5 | |
a848cd7e SC |
41043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41044 | (exit $ac_status); } && | |
bb9e79c0 | 41045 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41047 | (eval $ac_try) 2>&5 | |
41048 | ac_status=$? | |
41049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41050 | (exit $ac_status); }; } && | |
41051 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41053 | (eval $ac_try) 2>&5 | |
41054 | ac_status=$? | |
41055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41056 | (exit $ac_status); }; }; then | |
41057 | wx_cv_cflags_mthread=yes | |
41058 | else | |
41059 | echo "$as_me: failed program was:" >&5 | |
41060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41061 | ||
41062 | wx_cv_cflags_mthread=no | |
41063 | ||
41064 | fi | |
ac1cb8d3 | 41065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41066 | |
41067 | ||
41068 | fi | |
41069 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
41070 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
41071 | ||
41072 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
e56f4f9e | 41073 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads" |
a848cd7e SC |
41074 | LDFLAGS="$LDFLAGS -mthreads" |
41075 | else | |
e56f4f9e | 41076 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
41077 | fi |
41078 | ;; | |
41079 | *-pc-os2*emx ) | |
5ff751d6 VZ |
41080 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
41081 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
a848cd7e SC |
41082 | LDFLAGS="$LDFLAGS -Zmt" |
41083 | ;; | |
41084 | esac | |
41085 | fi | |
41086 | fi | |
41087 | ||
004ee6da RL |
41088 | echo "$as_me:$LINENO: checking for localtime_r" >&5 |
41089 | echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 | |
41090 | if test "${ac_cv_func_localtime_r+set}" = set; then | |
a848cd7e SC |
41091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
41092 | else | |
41093 | cat >conftest.$ac_ext <<_ACEOF | |
41094 | /* confdefs.h. */ | |
41095 | _ACEOF | |
41096 | cat confdefs.h >>conftest.$ac_ext | |
41097 | cat >>conftest.$ac_ext <<_ACEOF | |
41098 | /* end confdefs.h. */ | |
004ee6da | 41099 | /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. |
ac1cb8d3 | 41100 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
004ee6da | 41101 | #define localtime_r innocuous_localtime_r |
ac1cb8d3 | 41102 | |
a848cd7e | 41103 | /* System header to define __stub macros and hopefully few prototypes, |
004ee6da | 41104 | which can conflict with char localtime_r (); below. |
a848cd7e SC |
41105 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
41106 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41107 | |
a848cd7e SC |
41108 | #ifdef __STDC__ |
41109 | # include <limits.h> | |
41110 | #else | |
41111 | # include <assert.h> | |
41112 | #endif | |
ac1cb8d3 | 41113 | |
004ee6da | 41114 | #undef localtime_r |
ac1cb8d3 | 41115 | |
a848cd7e SC |
41116 | /* Override any gcc2 internal prototype to avoid an error. */ |
41117 | #ifdef __cplusplus | |
41118 | extern "C" | |
41119 | { | |
41120 | #endif | |
41121 | /* We use char because int might match the return type of a gcc2 | |
41122 | builtin and then its argument prototype would still apply. */ | |
004ee6da | 41123 | char localtime_r (); |
a848cd7e SC |
41124 | /* The GNU C library defines this for functions which it implements |
41125 | to always fail with ENOSYS. Some functions are actually named | |
41126 | something starting with __ and the normal name is an alias. */ | |
004ee6da | 41127 | #if defined (__stub_localtime_r) || defined (__stub___localtime_r) |
a848cd7e SC |
41128 | choke me |
41129 | #else | |
004ee6da | 41130 | char (*f) () = localtime_r; |
a848cd7e SC |
41131 | #endif |
41132 | #ifdef __cplusplus | |
41133 | } | |
41134 | #endif | |
41135 | ||
41136 | int | |
41137 | main () | |
41138 | { | |
004ee6da RL |
41139 | return f != localtime_r; |
41140 | ; | |
41141 | return 0; | |
41142 | } | |
41143 | _ACEOF | |
41144 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41146 | (eval $ac_link) 2>conftest.er1 | |
41147 | ac_status=$? | |
41148 | grep -v '^ *+' conftest.er1 >conftest.err | |
41149 | rm -f conftest.er1 | |
41150 | cat conftest.err >&5 | |
41151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41152 | (exit $ac_status); } && | |
bb9e79c0 | 41153 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
41154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41155 | (eval $ac_try) 2>&5 | |
41156 | ac_status=$? | |
41157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41158 | (exit $ac_status); }; } && | |
41159 | { ac_try='test -s conftest$ac_exeext' | |
41160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41161 | (eval $ac_try) 2>&5 | |
41162 | ac_status=$? | |
41163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41164 | (exit $ac_status); }; }; then | |
41165 | ac_cv_func_localtime_r=yes | |
41166 | else | |
41167 | echo "$as_me: failed program was:" >&5 | |
41168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41169 | ||
41170 | ac_cv_func_localtime_r=no | |
41171 | fi | |
41172 | rm -f conftest.err conftest.$ac_objext \ | |
41173 | conftest$ac_exeext conftest.$ac_ext | |
41174 | fi | |
41175 | echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 | |
41176 | echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 | |
41177 | if test $ac_cv_func_localtime_r = yes; then | |
41178 | cat >>confdefs.h <<\_ACEOF | |
41179 | #define HAVE_LOCALTIME_R 1 | |
41180 | _ACEOF | |
41181 | ||
41182 | fi | |
41183 | ||
41184 | echo "$as_me:$LINENO: checking for gmtime_r" >&5 | |
41185 | echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6 | |
41186 | if test "${ac_cv_func_gmtime_r+set}" = set; then | |
41187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41188 | else | |
41189 | cat >conftest.$ac_ext <<_ACEOF | |
41190 | /* confdefs.h. */ | |
41191 | _ACEOF | |
41192 | cat confdefs.h >>conftest.$ac_ext | |
41193 | cat >>conftest.$ac_ext <<_ACEOF | |
41194 | /* end confdefs.h. */ | |
41195 | /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. | |
41196 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41197 | #define gmtime_r innocuous_gmtime_r | |
41198 | ||
41199 | /* System header to define __stub macros and hopefully few prototypes, | |
41200 | which can conflict with char gmtime_r (); below. | |
41201 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41202 | <limits.h> exists even on freestanding compilers. */ | |
41203 | ||
41204 | #ifdef __STDC__ | |
41205 | # include <limits.h> | |
41206 | #else | |
41207 | # include <assert.h> | |
41208 | #endif | |
41209 | ||
41210 | #undef gmtime_r | |
41211 | ||
41212 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41213 | #ifdef __cplusplus | |
41214 | extern "C" | |
41215 | { | |
41216 | #endif | |
41217 | /* We use char because int might match the return type of a gcc2 | |
41218 | builtin and then its argument prototype would still apply. */ | |
41219 | char gmtime_r (); | |
41220 | /* The GNU C library defines this for functions which it implements | |
41221 | to always fail with ENOSYS. Some functions are actually named | |
41222 | something starting with __ and the normal name is an alias. */ | |
41223 | #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) | |
41224 | choke me | |
41225 | #else | |
41226 | char (*f) () = gmtime_r; | |
41227 | #endif | |
41228 | #ifdef __cplusplus | |
41229 | } | |
41230 | #endif | |
41231 | ||
41232 | int | |
41233 | main () | |
41234 | { | |
41235 | return f != gmtime_r; | |
41236 | ; | |
41237 | return 0; | |
41238 | } | |
41239 | _ACEOF | |
41240 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41242 | (eval $ac_link) 2>conftest.er1 | |
41243 | ac_status=$? | |
41244 | grep -v '^ *+' conftest.er1 >conftest.err | |
41245 | rm -f conftest.er1 | |
41246 | cat conftest.err >&5 | |
41247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41248 | (exit $ac_status); } && | |
bb9e79c0 | 41249 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
41250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41251 | (eval $ac_try) 2>&5 | |
41252 | ac_status=$? | |
41253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41254 | (exit $ac_status); }; } && | |
41255 | { ac_try='test -s conftest$ac_exeext' | |
41256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41257 | (eval $ac_try) 2>&5 | |
41258 | ac_status=$? | |
41259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41260 | (exit $ac_status); }; }; then | |
41261 | ac_cv_func_gmtime_r=yes | |
41262 | else | |
41263 | echo "$as_me: failed program was:" >&5 | |
41264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41265 | ||
41266 | ac_cv_func_gmtime_r=no | |
41267 | fi | |
41268 | rm -f conftest.err conftest.$ac_objext \ | |
41269 | conftest$ac_exeext conftest.$ac_ext | |
41270 | fi | |
41271 | echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 | |
41272 | echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6 | |
41273 | if test $ac_cv_func_gmtime_r = yes; then | |
41274 | cat >>confdefs.h <<\_ACEOF | |
41275 | #define HAVE_GMTIME_R 1 | |
41276 | _ACEOF | |
41277 | ||
41278 | fi | |
41279 | ||
41280 | echo "$as_me:$LINENO: checking for readdir_r" >&5 | |
41281 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6 | |
41282 | if test "${ac_cv_func_readdir_r+set}" = set; then | |
41283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41284 | else | |
41285 | cat >conftest.$ac_ext <<_ACEOF | |
41286 | /* confdefs.h. */ | |
41287 | _ACEOF | |
41288 | cat confdefs.h >>conftest.$ac_ext | |
41289 | cat >>conftest.$ac_ext <<_ACEOF | |
41290 | /* end confdefs.h. */ | |
41291 | /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r. | |
41292 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41293 | #define readdir_r innocuous_readdir_r | |
41294 | ||
41295 | /* System header to define __stub macros and hopefully few prototypes, | |
41296 | which can conflict with char readdir_r (); below. | |
41297 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41298 | <limits.h> exists even on freestanding compilers. */ | |
41299 | ||
41300 | #ifdef __STDC__ | |
41301 | # include <limits.h> | |
41302 | #else | |
41303 | # include <assert.h> | |
41304 | #endif | |
41305 | ||
41306 | #undef readdir_r | |
41307 | ||
41308 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41309 | #ifdef __cplusplus | |
41310 | extern "C" | |
41311 | { | |
41312 | #endif | |
41313 | /* We use char because int might match the return type of a gcc2 | |
41314 | builtin and then its argument prototype would still apply. */ | |
41315 | char readdir_r (); | |
41316 | /* The GNU C library defines this for functions which it implements | |
41317 | to always fail with ENOSYS. Some functions are actually named | |
41318 | something starting with __ and the normal name is an alias. */ | |
41319 | #if defined (__stub_readdir_r) || defined (__stub___readdir_r) | |
41320 | choke me | |
41321 | #else | |
41322 | char (*f) () = readdir_r; | |
41323 | #endif | |
41324 | #ifdef __cplusplus | |
41325 | } | |
41326 | #endif | |
41327 | ||
41328 | int | |
41329 | main () | |
41330 | { | |
41331 | return f != readdir_r; | |
41332 | ; | |
41333 | return 0; | |
41334 | } | |
41335 | _ACEOF | |
41336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41338 | (eval $ac_link) 2>conftest.er1 | |
41339 | ac_status=$? | |
41340 | grep -v '^ *+' conftest.er1 >conftest.err | |
41341 | rm -f conftest.er1 | |
41342 | cat conftest.err >&5 | |
41343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41344 | (exit $ac_status); } && | |
bb9e79c0 | 41345 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
41346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41347 | (eval $ac_try) 2>&5 | |
41348 | ac_status=$? | |
41349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41350 | (exit $ac_status); }; } && | |
41351 | { ac_try='test -s conftest$ac_exeext' | |
41352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41353 | (eval $ac_try) 2>&5 | |
41354 | ac_status=$? | |
41355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41356 | (exit $ac_status); }; }; then | |
41357 | ac_cv_func_readdir_r=yes | |
41358 | else | |
41359 | echo "$as_me: failed program was:" >&5 | |
41360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41361 | ||
41362 | ac_cv_func_readdir_r=no | |
41363 | fi | |
41364 | rm -f conftest.err conftest.$ac_objext \ | |
41365 | conftest$ac_exeext conftest.$ac_ext | |
41366 | fi | |
41367 | echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5 | |
41368 | echo "${ECHO_T}$ac_cv_func_readdir_r" >&6 | |
41369 | if test $ac_cv_func_readdir_r = yes; then | |
41370 | cat >>confdefs.h <<\_ACEOF | |
41371 | #define HAVE_READDIR_R 1 | |
41372 | _ACEOF | |
41373 | ||
41374 | fi | |
41375 | ||
004ee6da | 41376 | |
004ee6da RL |
41377 | |
41378 | ||
41379 | ac_ext=c | |
41380 | ac_cpp='$CPP $CPPFLAGS' | |
41381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41384 | ||
41385 | echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 | |
41386 | echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6 | |
41387 | ||
41388 | if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then | |
41389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41390 | else | |
41391 | ||
41392 | ||
2f6c5bb5 | 41393 | ################################################################ |
004ee6da RL |
41394 | |
41395 | ac_cv_func_which_gethostbyname_r=unknown | |
41396 | ||
41397 | # | |
41398 | # ONE ARGUMENT (sanity check) | |
41399 | # | |
41400 | ||
41401 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
41402 | # a single argument. If it actually compiles, then we can assume that | |
41403 | # netdb.h is not declaring the function, and the compiler is thereby | |
41404 | # assuming an implicit prototype. In which case, we're out of luck. | |
41405 | # | |
41406 | cat >conftest.$ac_ext <<_ACEOF | |
41407 | /* confdefs.h. */ | |
41408 | _ACEOF | |
41409 | cat confdefs.h >>conftest.$ac_ext | |
41410 | cat >>conftest.$ac_ext <<_ACEOF | |
41411 | /* end confdefs.h. */ | |
41412 | #include <netdb.h> | |
41413 | int | |
41414 | main () | |
41415 | { | |
41416 | ||
41417 | char *name = "www.gnu.org"; | |
41418 | (void)gethostbyname_r(name) /* ; */ | |
41419 | ||
41420 | ; | |
41421 | return 0; | |
41422 | } | |
41423 | _ACEOF | |
41424 | rm -f conftest.$ac_objext | |
41425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41426 | (eval $ac_compile) 2>conftest.er1 | |
41427 | ac_status=$? | |
41428 | grep -v '^ *+' conftest.er1 >conftest.err | |
41429 | rm -f conftest.er1 | |
41430 | cat conftest.err >&5 | |
41431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41432 | (exit $ac_status); } && | |
bb9e79c0 | 41433 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
41434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41435 | (eval $ac_try) 2>&5 | |
41436 | ac_status=$? | |
41437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41438 | (exit $ac_status); }; } && | |
41439 | { ac_try='test -s conftest.$ac_objext' | |
41440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41441 | (eval $ac_try) 2>&5 | |
41442 | ac_status=$? | |
41443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41444 | (exit $ac_status); }; }; then | |
41445 | ac_cv_func_which_gethostbyname_r=no | |
41446 | else | |
41447 | echo "$as_me: failed program was:" >&5 | |
41448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41449 | ||
41450 | fi | |
41451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41452 | ||
41453 | # | |
41454 | # SIX ARGUMENTS | |
41455 | # (e.g. Linux) | |
41456 | # | |
41457 | ||
41458 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
41459 | ||
41460 | cat >conftest.$ac_ext <<_ACEOF | |
41461 | /* confdefs.h. */ | |
41462 | _ACEOF | |
41463 | cat confdefs.h >>conftest.$ac_ext | |
41464 | cat >>conftest.$ac_ext <<_ACEOF | |
41465 | /* end confdefs.h. */ | |
41466 | #include <netdb.h> | |
41467 | int | |
41468 | main () | |
41469 | { | |
41470 | ||
41471 | char *name = "www.gnu.org"; | |
41472 | struct hostent ret, *retp; | |
41473 | char buf[1024]; | |
41474 | int buflen = 1024; | |
41475 | int my_h_errno; | |
41476 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
41477 | ||
41478 | ; | |
41479 | return 0; | |
41480 | } | |
41481 | _ACEOF | |
41482 | rm -f conftest.$ac_objext | |
41483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41484 | (eval $ac_compile) 2>conftest.er1 | |
41485 | ac_status=$? | |
41486 | grep -v '^ *+' conftest.er1 >conftest.err | |
41487 | rm -f conftest.er1 | |
41488 | cat conftest.err >&5 | |
41489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41490 | (exit $ac_status); } && | |
bb9e79c0 | 41491 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
41492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41493 | (eval $ac_try) 2>&5 | |
41494 | ac_status=$? | |
41495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41496 | (exit $ac_status); }; } && | |
41497 | { ac_try='test -s conftest.$ac_objext' | |
41498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41499 | (eval $ac_try) 2>&5 | |
41500 | ac_status=$? | |
41501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41502 | (exit $ac_status); }; }; then | |
41503 | ac_cv_func_which_gethostbyname_r=six | |
41504 | else | |
41505 | echo "$as_me: failed program was:" >&5 | |
41506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41507 | ||
41508 | fi | |
41509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41510 | ||
41511 | fi | |
41512 | ||
41513 | # | |
41514 | # FIVE ARGUMENTS | |
41515 | # (e.g. Solaris) | |
41516 | # | |
41517 | ||
41518 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
41519 | ||
41520 | cat >conftest.$ac_ext <<_ACEOF | |
41521 | /* confdefs.h. */ | |
41522 | _ACEOF | |
41523 | cat confdefs.h >>conftest.$ac_ext | |
41524 | cat >>conftest.$ac_ext <<_ACEOF | |
41525 | /* end confdefs.h. */ | |
41526 | #include <netdb.h> | |
41527 | int | |
41528 | main () | |
41529 | { | |
41530 | ||
41531 | char *name = "www.gnu.org"; | |
41532 | struct hostent ret; | |
41533 | char buf[1024]; | |
41534 | int buflen = 1024; | |
41535 | int my_h_errno; | |
41536 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
41537 | ||
41538 | ; | |
41539 | return 0; | |
41540 | } | |
41541 | _ACEOF | |
41542 | rm -f conftest.$ac_objext | |
41543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41544 | (eval $ac_compile) 2>conftest.er1 | |
41545 | ac_status=$? | |
41546 | grep -v '^ *+' conftest.er1 >conftest.err | |
41547 | rm -f conftest.er1 | |
41548 | cat conftest.err >&5 | |
41549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41550 | (exit $ac_status); } && | |
bb9e79c0 | 41551 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
41552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41553 | (eval $ac_try) 2>&5 | |
41554 | ac_status=$? | |
41555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41556 | (exit $ac_status); }; } && | |
41557 | { ac_try='test -s conftest.$ac_objext' | |
41558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41559 | (eval $ac_try) 2>&5 | |
41560 | ac_status=$? | |
41561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41562 | (exit $ac_status); }; }; then | |
41563 | ac_cv_func_which_gethostbyname_r=five | |
41564 | else | |
41565 | echo "$as_me: failed program was:" >&5 | |
41566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41567 | ||
41568 | fi | |
41569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41570 | ||
41571 | fi | |
41572 | ||
41573 | # | |
41574 | # THREE ARGUMENTS | |
41575 | # (e.g. AIX, HP-UX, Tru64) | |
41576 | # | |
41577 | ||
41578 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
41579 | ||
41580 | cat >conftest.$ac_ext <<_ACEOF | |
41581 | /* confdefs.h. */ | |
41582 | _ACEOF | |
41583 | cat confdefs.h >>conftest.$ac_ext | |
41584 | cat >>conftest.$ac_ext <<_ACEOF | |
41585 | /* end confdefs.h. */ | |
41586 | #include <netdb.h> | |
41587 | int | |
41588 | main () | |
41589 | { | |
41590 | ||
41591 | char *name = "www.gnu.org"; | |
41592 | struct hostent ret; | |
41593 | struct hostent_data data; | |
41594 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
41595 | ||
41596 | ; | |
41597 | return 0; | |
41598 | } | |
41599 | _ACEOF | |
41600 | rm -f conftest.$ac_objext | |
41601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41602 | (eval $ac_compile) 2>conftest.er1 | |
41603 | ac_status=$? | |
41604 | grep -v '^ *+' conftest.er1 >conftest.err | |
41605 | rm -f conftest.er1 | |
41606 | cat conftest.err >&5 | |
41607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41608 | (exit $ac_status); } && | |
bb9e79c0 | 41609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
41610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41611 | (eval $ac_try) 2>&5 | |
41612 | ac_status=$? | |
41613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41614 | (exit $ac_status); }; } && | |
41615 | { ac_try='test -s conftest.$ac_objext' | |
41616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41617 | (eval $ac_try) 2>&5 | |
41618 | ac_status=$? | |
41619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41620 | (exit $ac_status); }; }; then | |
41621 | ac_cv_func_which_gethostbyname_r=three | |
41622 | else | |
41623 | echo "$as_me: failed program was:" >&5 | |
41624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41625 | ||
41626 | fi | |
41627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41628 | ||
41629 | fi | |
41630 | ||
2f6c5bb5 | 41631 | ################################################################ |
004ee6da RL |
41632 | |
41633 | ||
41634 | fi | |
41635 | ||
41636 | case "$ac_cv_func_which_gethostbyname_r" in | |
41637 | three) | |
41638 | echo "$as_me:$LINENO: result: three" >&5 | |
41639 | echo "${ECHO_T}three" >&6 | |
41640 | cat >>confdefs.h <<\_ACEOF | |
41641 | #define HAVE_FUNC_GETHOSTBYNAME_R_3 1 | |
41642 | _ACEOF | |
41643 | ||
41644 | ;; | |
41645 | ||
41646 | five) | |
41647 | echo "$as_me:$LINENO: result: five" >&5 | |
41648 | echo "${ECHO_T}five" >&6 | |
41649 | cat >>confdefs.h <<\_ACEOF | |
41650 | #define HAVE_FUNC_GETHOSTBYNAME_R_5 1 | |
41651 | _ACEOF | |
41652 | ||
41653 | ;; | |
41654 | ||
41655 | six) | |
41656 | echo "$as_me:$LINENO: result: six" >&5 | |
41657 | echo "${ECHO_T}six" >&6 | |
41658 | cat >>confdefs.h <<\_ACEOF | |
41659 | #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 | |
41660 | _ACEOF | |
41661 | ||
41662 | ;; | |
41663 | ||
41664 | no) | |
41665 | echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 | |
41666 | echo "${ECHO_T}cannot find function declaration in netdb.h" >&6 | |
41667 | ;; | |
41668 | ||
41669 | unknown) | |
41670 | echo "$as_me:$LINENO: result: can't tell" >&5 | |
41671 | echo "${ECHO_T}can't tell" >&6 | |
41672 | ;; | |
41673 | ||
41674 | *) | |
41675 | { { echo "$as_me:$LINENO: error: internal error" >&5 | |
41676 | echo "$as_me: error: internal error" >&2;} | |
41677 | { (exit 1); exit 1; }; } | |
41678 | ;; | |
41679 | esac | |
41680 | ||
5ec3bc43 JS |
41681 | ac_ext=cc |
41682 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41683 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41684 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41685 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
004ee6da RL |
41686 | |
41687 | ||
41688 | ||
41689 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
ec3edcc9 | 41690 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then |
004ee6da RL |
41691 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
41692 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
41693 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
41694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41695 | else | |
41696 | cat >conftest.$ac_ext <<_ACEOF | |
41697 | /* confdefs.h. */ | |
41698 | _ACEOF | |
41699 | cat confdefs.h >>conftest.$ac_ext | |
41700 | cat >>conftest.$ac_ext <<_ACEOF | |
41701 | /* end confdefs.h. */ | |
41702 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
41703 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41704 | #define gethostbyname innocuous_gethostbyname | |
41705 | ||
41706 | /* System header to define __stub macros and hopefully few prototypes, | |
41707 | which can conflict with char gethostbyname (); below. | |
41708 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41709 | <limits.h> exists even on freestanding compilers. */ | |
41710 | ||
41711 | #ifdef __STDC__ | |
41712 | # include <limits.h> | |
41713 | #else | |
41714 | # include <assert.h> | |
41715 | #endif | |
41716 | ||
41717 | #undef gethostbyname | |
41718 | ||
41719 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41720 | #ifdef __cplusplus | |
41721 | extern "C" | |
41722 | { | |
41723 | #endif | |
41724 | /* We use char because int might match the return type of a gcc2 | |
41725 | builtin and then its argument prototype would still apply. */ | |
41726 | char gethostbyname (); | |
41727 | /* The GNU C library defines this for functions which it implements | |
41728 | to always fail with ENOSYS. Some functions are actually named | |
41729 | something starting with __ and the normal name is an alias. */ | |
41730 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
41731 | choke me | |
41732 | #else | |
41733 | char (*f) () = gethostbyname; | |
41734 | #endif | |
41735 | #ifdef __cplusplus | |
41736 | } | |
41737 | #endif | |
41738 | ||
41739 | int | |
41740 | main () | |
41741 | { | |
41742 | return f != gethostbyname; | |
41743 | ; | |
41744 | return 0; | |
41745 | } | |
41746 | _ACEOF | |
41747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41749 | (eval $ac_link) 2>conftest.er1 | |
41750 | ac_status=$? | |
41751 | grep -v '^ *+' conftest.er1 >conftest.err | |
41752 | rm -f conftest.er1 | |
41753 | cat conftest.err >&5 | |
41754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41755 | (exit $ac_status); } && | |
bb9e79c0 | 41756 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
41757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41758 | (eval $ac_try) 2>&5 | |
41759 | ac_status=$? | |
41760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41761 | (exit $ac_status); }; } && | |
41762 | { ac_try='test -s conftest$ac_exeext' | |
41763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41764 | (eval $ac_try) 2>&5 | |
41765 | ac_status=$? | |
41766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41767 | (exit $ac_status); }; }; then | |
41768 | ac_cv_func_gethostbyname=yes | |
41769 | else | |
41770 | echo "$as_me: failed program was:" >&5 | |
41771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41772 | ||
41773 | ac_cv_func_gethostbyname=no | |
41774 | fi | |
41775 | rm -f conftest.err conftest.$ac_objext \ | |
41776 | conftest$ac_exeext conftest.$ac_ext | |
41777 | fi | |
41778 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
41779 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
41780 | if test $ac_cv_func_gethostbyname = yes; then | |
41781 | cat >>confdefs.h <<\_ACEOF | |
41782 | #define HAVE_GETHOSTBYNAME 1 | |
41783 | _ACEOF | |
41784 | ||
41785 | fi | |
41786 | ||
41787 | fi | |
3ecd9f92 | 41788 | |
81c330c6 VZ |
41789 | echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5 |
41790 | echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6 | |
41791 | if test "${ac_cv_func_which_getservbyname_r+set}" = set; then | |
004ee6da RL |
41792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
41793 | else | |
3ecd9f92 MW |
41794 | |
41795 | cat >conftest.$ac_ext <<_ACEOF | |
004ee6da RL |
41796 | /* confdefs.h. */ |
41797 | _ACEOF | |
41798 | cat confdefs.h >>conftest.$ac_ext | |
41799 | cat >>conftest.$ac_ext <<_ACEOF | |
41800 | /* end confdefs.h. */ | |
81c330c6 | 41801 | #include <netdb.h> |
004ee6da RL |
41802 | int |
41803 | main () | |
41804 | { | |
41805 | ||
81c330c6 VZ |
41806 | char *name; |
41807 | char *proto; | |
41808 | struct servent *se, *res; | |
41809 | char buffer[2048]; | |
41810 | int buflen = 2048; | |
41811 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res) | |
004ee6da RL |
41812 | |
41813 | ; | |
41814 | return 0; | |
41815 | } | |
41816 | _ACEOF | |
41817 | rm -f conftest.$ac_objext | |
41818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41819 | (eval $ac_compile) 2>conftest.er1 | |
41820 | ac_status=$? | |
41821 | grep -v '^ *+' conftest.er1 >conftest.err | |
41822 | rm -f conftest.er1 | |
41823 | cat conftest.err >&5 | |
41824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41825 | (exit $ac_status); } && | |
bb9e79c0 | 41826 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
41827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41828 | (eval $ac_try) 2>&5 | |
41829 | ac_status=$? | |
41830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41831 | (exit $ac_status); }; } && | |
41832 | { ac_try='test -s conftest.$ac_objext' | |
41833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41834 | (eval $ac_try) 2>&5 | |
41835 | ac_status=$? | |
41836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41837 | (exit $ac_status); }; }; then | |
81c330c6 | 41838 | ac_cv_func_which_getservbyname_r=six |
004ee6da RL |
41839 | else |
41840 | echo "$as_me: failed program was:" >&5 | |
41841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41842 | ||
3ecd9f92 | 41843 | |
81c330c6 | 41844 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
41845 | /* confdefs.h. */ |
41846 | _ACEOF | |
41847 | cat confdefs.h >>conftest.$ac_ext | |
41848 | cat >>conftest.$ac_ext <<_ACEOF | |
41849 | /* end confdefs.h. */ | |
81c330c6 | 41850 | #include <netdb.h> |
004ee6da RL |
41851 | int |
41852 | main () | |
41853 | { | |
41854 | ||
81c330c6 VZ |
41855 | char *name; |
41856 | char *proto; | |
41857 | struct servent *se; | |
41858 | char buffer[2048]; | |
41859 | int buflen = 2048; | |
41860 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
41861 | |
41862 | ; | |
41863 | return 0; | |
41864 | } | |
41865 | _ACEOF | |
41866 | rm -f conftest.$ac_objext | |
41867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41868 | (eval $ac_compile) 2>conftest.er1 | |
41869 | ac_status=$? | |
41870 | grep -v '^ *+' conftest.er1 >conftest.err | |
41871 | rm -f conftest.er1 | |
41872 | cat conftest.err >&5 | |
41873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41874 | (exit $ac_status); } && | |
bb9e79c0 | 41875 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
41876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41877 | (eval $ac_try) 2>&5 | |
41878 | ac_status=$? | |
41879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41880 | (exit $ac_status); }; } && | |
41881 | { ac_try='test -s conftest.$ac_objext' | |
41882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41883 | (eval $ac_try) 2>&5 | |
41884 | ac_status=$? | |
41885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41886 | (exit $ac_status); }; }; then | |
81c330c6 | 41887 | ac_cv_func_which_getservbyname_r=five |
004ee6da RL |
41888 | else |
41889 | echo "$as_me: failed program was:" >&5 | |
41890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41891 | ||
3ecd9f92 | 41892 | |
81c330c6 | 41893 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
41894 | /* confdefs.h. */ |
41895 | _ACEOF | |
41896 | cat confdefs.h >>conftest.$ac_ext | |
41897 | cat >>conftest.$ac_ext <<_ACEOF | |
41898 | /* end confdefs.h. */ | |
81c330c6 | 41899 | #include <netdb.h> |
004ee6da RL |
41900 | int |
41901 | main () | |
41902 | { | |
41903 | ||
81c330c6 VZ |
41904 | char *name; |
41905 | char *proto; | |
41906 | struct servent *se; | |
41907 | struct servent_data data; | |
41908 | (void) getservbyname_r(name, proto, se, &data); | |
004ee6da RL |
41909 | |
41910 | ; | |
41911 | return 0; | |
41912 | } | |
41913 | _ACEOF | |
41914 | rm -f conftest.$ac_objext | |
41915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41916 | (eval $ac_compile) 2>conftest.er1 | |
41917 | ac_status=$? | |
41918 | grep -v '^ *+' conftest.er1 >conftest.err | |
41919 | rm -f conftest.er1 | |
41920 | cat conftest.err >&5 | |
41921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41922 | (exit $ac_status); } && | |
bb9e79c0 | 41923 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
41924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41925 | (eval $ac_try) 2>&5 | |
41926 | ac_status=$? | |
41927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41928 | (exit $ac_status); }; } && | |
41929 | { ac_try='test -s conftest.$ac_objext' | |
41930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41931 | (eval $ac_try) 2>&5 | |
41932 | ac_status=$? | |
41933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41934 | (exit $ac_status); }; }; then | |
81c330c6 | 41935 | ac_cv_func_which_getservbyname_r=four |
004ee6da RL |
41936 | else |
41937 | echo "$as_me: failed program was:" >&5 | |
41938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41939 | ||
41940 | ac_cv_func_which_getservbyname_r=no | |
81c330c6 | 41941 | |
004ee6da RL |
41942 | fi |
41943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41944 | ||
3ecd9f92 | 41945 | |
004ee6da RL |
41946 | fi |
41947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41948 | ||
3ecd9f92 | 41949 | |
004ee6da RL |
41950 | fi |
41951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3ecd9f92 | 41952 | |
004ee6da | 41953 | |
3ecd9f92 MW |
41954 | fi |
41955 | echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5 | |
41956 | echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6 | |
004ee6da RL |
41957 | |
41958 | if test $ac_cv_func_which_getservbyname_r = six; then | |
41959 | cat >>confdefs.h <<\_ACEOF | |
41960 | #define HAVE_FUNC_GETSERVBYNAME_R_6 1 | |
41961 | _ACEOF | |
41962 | ||
41963 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
41964 | cat >>confdefs.h <<\_ACEOF | |
41965 | #define HAVE_FUNC_GETSERVBYNAME_R_5 1 | |
41966 | _ACEOF | |
41967 | ||
41968 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
41969 | cat >>confdefs.h <<\_ACEOF | |
41970 | #define HAVE_FUNC_GETSERVBYNAME_R_4 1 | |
41971 | _ACEOF | |
41972 | ||
004ee6da RL |
41973 | fi |
41974 | ||
41975 | ||
41976 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
ec3edcc9 | 41977 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then |
004ee6da RL |
41978 | |
41979 | for ac_func in getservbyname | |
41980 | do | |
41981 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41982 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41983 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41984 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41986 | else | |
41987 | cat >conftest.$ac_ext <<_ACEOF | |
41988 | /* confdefs.h. */ | |
41989 | _ACEOF | |
41990 | cat confdefs.h >>conftest.$ac_ext | |
41991 | cat >>conftest.$ac_ext <<_ACEOF | |
41992 | /* end confdefs.h. */ | |
41993 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
41994 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41995 | #define $ac_func innocuous_$ac_func | |
41996 | ||
41997 | /* System header to define __stub macros and hopefully few prototypes, | |
41998 | which can conflict with char $ac_func (); below. | |
41999 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42000 | <limits.h> exists even on freestanding compilers. */ | |
42001 | ||
42002 | #ifdef __STDC__ | |
42003 | # include <limits.h> | |
42004 | #else | |
42005 | # include <assert.h> | |
42006 | #endif | |
42007 | ||
42008 | #undef $ac_func | |
42009 | ||
42010 | /* Override any gcc2 internal prototype to avoid an error. */ | |
42011 | #ifdef __cplusplus | |
42012 | extern "C" | |
42013 | { | |
42014 | #endif | |
42015 | /* We use char because int might match the return type of a gcc2 | |
42016 | builtin and then its argument prototype would still apply. */ | |
42017 | char $ac_func (); | |
42018 | /* The GNU C library defines this for functions which it implements | |
42019 | to always fail with ENOSYS. Some functions are actually named | |
42020 | something starting with __ and the normal name is an alias. */ | |
42021 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42022 | choke me | |
42023 | #else | |
42024 | char (*f) () = $ac_func; | |
42025 | #endif | |
42026 | #ifdef __cplusplus | |
42027 | } | |
42028 | #endif | |
42029 | ||
42030 | int | |
42031 | main () | |
42032 | { | |
42033 | return f != $ac_func; | |
42034 | ; | |
42035 | return 0; | |
42036 | } | |
42037 | _ACEOF | |
42038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
42040 | (eval $ac_link) 2>conftest.er1 | |
42041 | ac_status=$? | |
42042 | grep -v '^ *+' conftest.er1 >conftest.err | |
42043 | rm -f conftest.er1 | |
42044 | cat conftest.err >&5 | |
42045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42046 | (exit $ac_status); } && | |
bb9e79c0 | 42047 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
42048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42049 | (eval $ac_try) 2>&5 | |
42050 | ac_status=$? | |
42051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42052 | (exit $ac_status); }; } && | |
42053 | { ac_try='test -s conftest$ac_exeext' | |
42054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42055 | (eval $ac_try) 2>&5 | |
42056 | ac_status=$? | |
42057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42058 | (exit $ac_status); }; }; then | |
42059 | eval "$as_ac_var=yes" | |
42060 | else | |
42061 | echo "$as_me: failed program was:" >&5 | |
42062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42063 | ||
42064 | eval "$as_ac_var=no" | |
42065 | fi | |
42066 | rm -f conftest.err conftest.$ac_objext \ | |
42067 | conftest$ac_exeext conftest.$ac_ext | |
42068 | fi | |
42069 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42070 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42071 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42072 | cat >>confdefs.h <<_ACEOF | |
42073 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42074 | _ACEOF | |
42075 | cat >>confdefs.h <<\_ACEOF | |
42076 | #define HAVE_GETSERVBYNAME 1 | |
42077 | _ACEOF | |
42078 | ||
42079 | fi | |
42080 | done | |
42081 | ||
42082 | fi | |
42083 | ||
004ee6da RL |
42084 | if test "$wxUSE_THREADS" = "yes"; then |
42085 | cat >>confdefs.h <<\_ACEOF | |
42086 | #define wxUSE_THREADS 1 | |
42087 | _ACEOF | |
42088 | ||
42089 | ||
42090 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
42091 | else | |
56632e81 | 42092 | if test "$wx_cv_func_strtok_r" = "yes"; then |
004ee6da RL |
42093 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
42094 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
42095 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
42096 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
42097 | echo "$as_me:$LINENO: result: yes" >&5 | |
42098 | echo "${ECHO_T}yes" >&6 | |
42099 | else | |
42100 | echo "$as_me:$LINENO: result: no" >&5 | |
42101 | echo "${ECHO_T}no" >&6 | |
42102 | fi | |
42103 | fi | |
42104 | fi | |
42105 | ||
42106 | if test "$WXGTK20" = 1 ; then | |
42107 | cat >>confdefs.h <<_ACEOF | |
42108 | #define __WXGTK20__ $WXGTK20 | |
42109 | _ACEOF | |
42110 | ||
42111 | WXGTK12=1 | |
42112 | fi | |
42113 | ||
42114 | if test "$WXGTK12" = 1 ; then | |
42115 | cat >>confdefs.h <<_ACEOF | |
42116 | #define __WXGTK12__ $WXGTK12 | |
42117 | _ACEOF | |
42118 | ||
42119 | fi | |
42120 | ||
42121 | if test "$WXGTK127" = 1 ; then | |
42122 | cat >>confdefs.h <<_ACEOF | |
42123 | #define __WXGTK127__ $WXGTK127 | |
42124 | _ACEOF | |
42125 | ||
42126 | fi | |
42127 | ||
42128 | if test "$WXGPE" = 1 ; then | |
42129 | cat >>confdefs.h <<_ACEOF | |
42130 | #define __WXGPE__ $WXGPE | |
42131 | _ACEOF | |
42132 | ||
42133 | fi | |
42134 | ||
42135 | DEBUG_CFLAGS= | |
42136 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
42137 | DEBUG_CFLAGS="-g" | |
42138 | wxUSE_OPTIMISE=no | |
42139 | fi | |
42140 | ||
42141 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
42142 | wxUSE_DEBUG_INFO=yes | |
42143 | if test "$GCC" = yes; then | |
42144 | DEBUG_CFLAGS="-ggdb" | |
42145 | fi | |
42146 | fi | |
42147 | ||
42148 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
42149 | cat >>confdefs.h <<\_ACEOF | |
42150 | #define WXDEBUG 1 | |
42151 | _ACEOF | |
42152 | ||
42153 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__" | |
42154 | else | |
42155 | if test "$wxUSE_GTK" = 1 ; then | |
99879bbf MR |
42156 | if test "x$wxGTK_VERSION" = "x1" ; then |
42157 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
42158 | fi | |
004ee6da RL |
42159 | fi |
42160 | fi | |
42161 | ||
42162 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
42163 | cat >>confdefs.h <<\_ACEOF | |
42164 | #define wxUSE_MEMORY_TRACING 1 | |
42165 | _ACEOF | |
42166 | ||
42167 | cat >>confdefs.h <<\_ACEOF | |
42168 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
42169 | _ACEOF | |
42170 | ||
42171 | cat >>confdefs.h <<\_ACEOF | |
42172 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
42173 | _ACEOF | |
42174 | ||
42175 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
42176 | fi | |
42177 | ||
42178 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
42179 | DMALLOC_LIBS="-ldmallocthcxx" | |
42180 | fi | |
42181 | ||
42182 | PROFILE_FLAGS= | |
42183 | if test "$wxUSE_PROFILE" = "yes" ; then | |
42184 | PROFILE_FLAGS=" -pg" | |
42185 | fi | |
42186 | ||
42187 | if test "$GCC" = "yes" ; then | |
42188 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
42189 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti" | |
42190 | fi | |
42191 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
42192 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
42193 | fi | |
42194 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
42195 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
42196 | fi | |
42197 | ||
42198 | case "${host}" in | |
42199 | powerpc*-*-aix* ) | |
42200 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
42201 | ;; | |
42202 | *-hppa* ) | |
42203 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
42204 | ;; | |
42205 | esac | |
42206 | fi | |
42207 | ||
42208 | OPTIMISE_CFLAGS= | |
42209 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
42210 | if test "$GCC" = yes ; then | |
42211 | OPTIMISE_CFLAGS="-O0" | |
42212 | fi | |
42213 | else | |
42214 | if test "$GCC" = yes ; then | |
e5efa97e VZ |
42215 | case "${host}" in |
42216 | *-pc-os2_emx | *-pc-os2-emx ) | |
42217 | OPTIMISE_CFLAGS="-O2" | |
42218 | ;; | |
42219 | *) | |
42220 | OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing" | |
42221 | ;; | |
42222 | esac | |
004ee6da RL |
42223 | else |
42224 | OPTIMISE_CFLAGS="-O" | |
42225 | fi | |
42226 | fi | |
42227 | ||
42228 | ||
42229 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then | |
42230 | cat >>confdefs.h <<\_ACEOF | |
42231 | #define WXWIN_COMPATIBILITY_2_4 1 | |
42232 | _ACEOF | |
42233 | ||
42234 | ||
42235 | WXWIN_COMPATIBILITY_2_6="yes" | |
42236 | fi | |
42237 | ||
42238 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then | |
42239 | cat >>confdefs.h <<\_ACEOF | |
42240 | #define WXWIN_COMPATIBILITY_2_6 1 | |
42241 | _ACEOF | |
42242 | ||
42243 | fi | |
42244 | ||
42245 | ||
42246 | if test "$wxUSE_GUI" = "yes"; then | |
42247 | cat >>confdefs.h <<\_ACEOF | |
42248 | #define wxUSE_GUI 1 | |
42249 | _ACEOF | |
42250 | ||
42251 | ||
42252 | fi | |
42253 | ||
42254 | ||
42255 | if test "$wxUSE_UNIX" = "yes"; then | |
42256 | cat >>confdefs.h <<\_ACEOF | |
42257 | #define wxUSE_UNIX 1 | |
42258 | _ACEOF | |
42259 | ||
42260 | fi | |
42261 | ||
42262 | ||
42263 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
42264 | ||
42265 | HAVE_DL_FUNCS=0 | |
42266 | HAVE_SHL_FUNCS=0 | |
42267 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
42268 | if test "$USE_DARWIN" = 1; then | |
42269 | HAVE_DL_FUNCS=1 | |
42270 | elif test "$USE_DOS" = 1; then | |
42271 | HAVE_DL_FUNCS=0 | |
42272 | else | |
42273 | ||
42274 | for ac_func in dlopen | |
42275 | do | |
42276 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42277 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42278 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42279 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42281 | else | |
42282 | cat >conftest.$ac_ext <<_ACEOF | |
42283 | /* confdefs.h. */ | |
42284 | _ACEOF | |
42285 | cat confdefs.h >>conftest.$ac_ext | |
42286 | cat >>conftest.$ac_ext <<_ACEOF | |
42287 | /* end confdefs.h. */ | |
42288 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
42289 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42290 | #define $ac_func innocuous_$ac_func | |
42291 | ||
42292 | /* System header to define __stub macros and hopefully few prototypes, | |
42293 | which can conflict with char $ac_func (); below. | |
42294 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42295 | <limits.h> exists even on freestanding compilers. */ | |
42296 | ||
42297 | #ifdef __STDC__ | |
42298 | # include <limits.h> | |
42299 | #else | |
42300 | # include <assert.h> | |
42301 | #endif | |
42302 | ||
42303 | #undef $ac_func | |
42304 | ||
42305 | /* Override any gcc2 internal prototype to avoid an error. */ | |
42306 | #ifdef __cplusplus | |
42307 | extern "C" | |
42308 | { | |
42309 | #endif | |
42310 | /* We use char because int might match the return type of a gcc2 | |
42311 | builtin and then its argument prototype would still apply. */ | |
42312 | char $ac_func (); | |
42313 | /* The GNU C library defines this for functions which it implements | |
42314 | to always fail with ENOSYS. Some functions are actually named | |
42315 | something starting with __ and the normal name is an alias. */ | |
42316 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42317 | choke me | |
42318 | #else | |
42319 | char (*f) () = $ac_func; | |
42320 | #endif | |
42321 | #ifdef __cplusplus | |
42322 | } | |
42323 | #endif | |
42324 | ||
42325 | int | |
42326 | main () | |
42327 | { | |
42328 | return f != $ac_func; | |
a848cd7e SC |
42329 | ; |
42330 | return 0; | |
42331 | } | |
42332 | _ACEOF | |
42333 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42335 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42336 | ac_status=$? |
ac1cb8d3 VS |
42337 | grep -v '^ *+' conftest.er1 >conftest.err |
42338 | rm -f conftest.er1 | |
42339 | cat conftest.err >&5 | |
a848cd7e SC |
42340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42341 | (exit $ac_status); } && | |
bb9e79c0 | 42342 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42344 | (eval $ac_try) 2>&5 | |
42345 | ac_status=$? | |
42346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42347 | (exit $ac_status); }; } && | |
42348 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42350 | (eval $ac_try) 2>&5 | |
42351 | ac_status=$? | |
42352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42353 | (exit $ac_status); }; }; then | |
42354 | eval "$as_ac_var=yes" | |
42355 | else | |
42356 | echo "$as_me: failed program was:" >&5 | |
42357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42358 | ||
42359 | eval "$as_ac_var=no" | |
42360 | fi | |
ac1cb8d3 VS |
42361 | rm -f conftest.err conftest.$ac_objext \ |
42362 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42363 | fi |
42364 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42365 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42366 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42367 | cat >>confdefs.h <<_ACEOF | |
42368 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42369 | _ACEOF | |
42370 | ||
42371 | cat >>confdefs.h <<\_ACEOF | |
42372 | #define HAVE_DLOPEN 1 | |
42373 | _ACEOF | |
42374 | ||
42375 | HAVE_DL_FUNCS=1 | |
42376 | ||
42377 | else | |
42378 | ||
42379 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
42380 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
42381 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
42382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42383 | else | |
42384 | ac_check_lib_save_LIBS=$LIBS | |
42385 | LIBS="-ldl $LIBS" | |
42386 | cat >conftest.$ac_ext <<_ACEOF | |
42387 | /* confdefs.h. */ | |
42388 | _ACEOF | |
42389 | cat confdefs.h >>conftest.$ac_ext | |
42390 | cat >>conftest.$ac_ext <<_ACEOF | |
42391 | /* end confdefs.h. */ | |
42392 | ||
42393 | /* Override any gcc2 internal prototype to avoid an error. */ | |
42394 | #ifdef __cplusplus | |
42395 | extern "C" | |
42396 | #endif | |
42397 | /* We use char because int might match the return type of a gcc2 | |
42398 | builtin and then its argument prototype would still apply. */ | |
42399 | char dlopen (); | |
42400 | int | |
42401 | main () | |
42402 | { | |
42403 | dlopen (); | |
42404 | ; | |
42405 | return 0; | |
42406 | } | |
42407 | _ACEOF | |
42408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42410 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42411 | ac_status=$? |
ac1cb8d3 VS |
42412 | grep -v '^ *+' conftest.er1 >conftest.err |
42413 | rm -f conftest.er1 | |
42414 | cat conftest.err >&5 | |
a848cd7e SC |
42415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42416 | (exit $ac_status); } && | |
bb9e79c0 | 42417 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42419 | (eval $ac_try) 2>&5 | |
42420 | ac_status=$? | |
42421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42422 | (exit $ac_status); }; } && | |
42423 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42425 | (eval $ac_try) 2>&5 | |
42426 | ac_status=$? | |
42427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42428 | (exit $ac_status); }; }; then | |
42429 | ac_cv_lib_dl_dlopen=yes | |
42430 | else | |
42431 | echo "$as_me: failed program was:" >&5 | |
42432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42433 | ||
42434 | ac_cv_lib_dl_dlopen=no | |
42435 | fi | |
ac1cb8d3 VS |
42436 | rm -f conftest.err conftest.$ac_objext \ |
42437 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42438 | LIBS=$ac_check_lib_save_LIBS |
42439 | fi | |
42440 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
42441 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
42442 | if test $ac_cv_lib_dl_dlopen = yes; then | |
42443 | ||
42444 | cat >>confdefs.h <<\_ACEOF | |
42445 | #define HAVE_DLOPEN 1 | |
42446 | _ACEOF | |
42447 | ||
42448 | HAVE_DL_FUNCS=1 | |
42449 | DL_LINK=" -ldl$DL_LINK" | |
42450 | ||
42451 | else | |
42452 | ||
42453 | ||
42454 | for ac_func in shl_load | |
42455 | do | |
42456 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42457 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42458 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42459 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42461 | else | |
42462 | cat >conftest.$ac_ext <<_ACEOF | |
42463 | /* confdefs.h. */ | |
42464 | _ACEOF | |
42465 | cat confdefs.h >>conftest.$ac_ext | |
42466 | cat >>conftest.$ac_ext <<_ACEOF | |
42467 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42468 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42469 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42470 | #define $ac_func innocuous_$ac_func | |
42471 | ||
a848cd7e SC |
42472 | /* System header to define __stub macros and hopefully few prototypes, |
42473 | which can conflict with char $ac_func (); below. | |
42474 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42475 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42476 | |
a848cd7e SC |
42477 | #ifdef __STDC__ |
42478 | # include <limits.h> | |
42479 | #else | |
42480 | # include <assert.h> | |
42481 | #endif | |
ac1cb8d3 VS |
42482 | |
42483 | #undef $ac_func | |
42484 | ||
a848cd7e SC |
42485 | /* Override any gcc2 internal prototype to avoid an error. */ |
42486 | #ifdef __cplusplus | |
42487 | extern "C" | |
42488 | { | |
42489 | #endif | |
42490 | /* We use char because int might match the return type of a gcc2 | |
42491 | builtin and then its argument prototype would still apply. */ | |
42492 | char $ac_func (); | |
42493 | /* The GNU C library defines this for functions which it implements | |
42494 | to always fail with ENOSYS. Some functions are actually named | |
42495 | something starting with __ and the normal name is an alias. */ | |
42496 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42497 | choke me | |
42498 | #else | |
42499 | char (*f) () = $ac_func; | |
42500 | #endif | |
42501 | #ifdef __cplusplus | |
42502 | } | |
42503 | #endif | |
42504 | ||
42505 | int | |
42506 | main () | |
42507 | { | |
42508 | return f != $ac_func; | |
42509 | ; | |
42510 | return 0; | |
42511 | } | |
42512 | _ACEOF | |
42513 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42515 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42516 | ac_status=$? |
ac1cb8d3 VS |
42517 | grep -v '^ *+' conftest.er1 >conftest.err |
42518 | rm -f conftest.er1 | |
42519 | cat conftest.err >&5 | |
a848cd7e SC |
42520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42521 | (exit $ac_status); } && | |
bb9e79c0 | 42522 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42524 | (eval $ac_try) 2>&5 | |
42525 | ac_status=$? | |
42526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42527 | (exit $ac_status); }; } && | |
42528 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42530 | (eval $ac_try) 2>&5 | |
42531 | ac_status=$? | |
42532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42533 | (exit $ac_status); }; }; then | |
42534 | eval "$as_ac_var=yes" | |
42535 | else | |
42536 | echo "$as_me: failed program was:" >&5 | |
42537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42538 | ||
42539 | eval "$as_ac_var=no" | |
42540 | fi | |
ac1cb8d3 VS |
42541 | rm -f conftest.err conftest.$ac_objext \ |
42542 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42543 | fi |
42544 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42545 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42546 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42547 | cat >>confdefs.h <<_ACEOF | |
42548 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42549 | _ACEOF | |
42550 | ||
42551 | cat >>confdefs.h <<\_ACEOF | |
42552 | #define HAVE_SHL_LOAD 1 | |
42553 | _ACEOF | |
42554 | ||
42555 | HAVE_SHL_FUNCS=1 | |
42556 | ||
42557 | else | |
42558 | ||
42559 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
42560 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
42561 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
42562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42563 | else | |
42564 | ac_check_lib_save_LIBS=$LIBS | |
42565 | LIBS="-lshl_load $LIBS" | |
42566 | cat >conftest.$ac_ext <<_ACEOF | |
42567 | /* confdefs.h. */ | |
42568 | _ACEOF | |
42569 | cat confdefs.h >>conftest.$ac_ext | |
42570 | cat >>conftest.$ac_ext <<_ACEOF | |
42571 | /* end confdefs.h. */ | |
42572 | ||
42573 | /* Override any gcc2 internal prototype to avoid an error. */ | |
42574 | #ifdef __cplusplus | |
42575 | extern "C" | |
42576 | #endif | |
42577 | /* We use char because int might match the return type of a gcc2 | |
42578 | builtin and then its argument prototype would still apply. */ | |
42579 | char dld (); | |
42580 | int | |
42581 | main () | |
42582 | { | |
42583 | dld (); | |
42584 | ; | |
42585 | return 0; | |
42586 | } | |
42587 | _ACEOF | |
42588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42590 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42591 | ac_status=$? |
ac1cb8d3 VS |
42592 | grep -v '^ *+' conftest.er1 >conftest.err |
42593 | rm -f conftest.er1 | |
42594 | cat conftest.err >&5 | |
a848cd7e SC |
42595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42596 | (exit $ac_status); } && | |
bb9e79c0 | 42597 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42599 | (eval $ac_try) 2>&5 | |
42600 | ac_status=$? | |
42601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42602 | (exit $ac_status); }; } && | |
42603 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42605 | (eval $ac_try) 2>&5 | |
42606 | ac_status=$? | |
42607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42608 | (exit $ac_status); }; }; then | |
42609 | ac_cv_lib_shl_load_dld=yes | |
42610 | else | |
42611 | echo "$as_me: failed program was:" >&5 | |
42612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42613 | ||
42614 | ac_cv_lib_shl_load_dld=no | |
42615 | fi | |
ac1cb8d3 VS |
42616 | rm -f conftest.err conftest.$ac_objext \ |
42617 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42618 | LIBS=$ac_check_lib_save_LIBS |
42619 | fi | |
42620 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
42621 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
42622 | if test $ac_cv_lib_shl_load_dld = yes; then | |
42623 | ||
42624 | HAVE_SHL_FUNCS=1 | |
42625 | DL_LINK=" -ldld$DL_LINK" | |
42626 | ||
42627 | fi | |
42628 | ||
42629 | ||
42630 | fi | |
42631 | done | |
42632 | ||
42633 | ||
42634 | fi | |
42635 | ||
42636 | ||
42637 | fi | |
42638 | done | |
42639 | ||
42640 | ||
42641 | if test "$HAVE_DL_FUNCS" = 1; then | |
42642 | ||
42643 | for ac_func in dlerror | |
42644 | do | |
42645 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42646 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42647 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42648 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42650 | else | |
42651 | cat >conftest.$ac_ext <<_ACEOF | |
42652 | /* confdefs.h. */ | |
42653 | _ACEOF | |
42654 | cat confdefs.h >>conftest.$ac_ext | |
42655 | cat >>conftest.$ac_ext <<_ACEOF | |
42656 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42657 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42658 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42659 | #define $ac_func innocuous_$ac_func | |
42660 | ||
a848cd7e SC |
42661 | /* System header to define __stub macros and hopefully few prototypes, |
42662 | which can conflict with char $ac_func (); below. | |
42663 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42664 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42665 | |
a848cd7e SC |
42666 | #ifdef __STDC__ |
42667 | # include <limits.h> | |
42668 | #else | |
42669 | # include <assert.h> | |
42670 | #endif | |
ac1cb8d3 VS |
42671 | |
42672 | #undef $ac_func | |
42673 | ||
a848cd7e SC |
42674 | /* Override any gcc2 internal prototype to avoid an error. */ |
42675 | #ifdef __cplusplus | |
42676 | extern "C" | |
42677 | { | |
42678 | #endif | |
42679 | /* We use char because int might match the return type of a gcc2 | |
42680 | builtin and then its argument prototype would still apply. */ | |
42681 | char $ac_func (); | |
42682 | /* The GNU C library defines this for functions which it implements | |
42683 | to always fail with ENOSYS. Some functions are actually named | |
42684 | something starting with __ and the normal name is an alias. */ | |
42685 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42686 | choke me | |
42687 | #else | |
42688 | char (*f) () = $ac_func; | |
42689 | #endif | |
42690 | #ifdef __cplusplus | |
42691 | } | |
42692 | #endif | |
42693 | ||
42694 | int | |
42695 | main () | |
42696 | { | |
42697 | return f != $ac_func; | |
42698 | ; | |
42699 | return 0; | |
42700 | } | |
42701 | _ACEOF | |
42702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42704 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42705 | ac_status=$? |
ac1cb8d3 VS |
42706 | grep -v '^ *+' conftest.er1 >conftest.err |
42707 | rm -f conftest.er1 | |
42708 | cat conftest.err >&5 | |
a848cd7e SC |
42709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42710 | (exit $ac_status); } && | |
bb9e79c0 | 42711 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42713 | (eval $ac_try) 2>&5 | |
42714 | ac_status=$? | |
42715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42716 | (exit $ac_status); }; } && | |
42717 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42719 | (eval $ac_try) 2>&5 | |
42720 | ac_status=$? | |
42721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42722 | (exit $ac_status); }; }; then | |
42723 | eval "$as_ac_var=yes" | |
42724 | else | |
42725 | echo "$as_me: failed program was:" >&5 | |
42726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42727 | ||
42728 | eval "$as_ac_var=no" | |
42729 | fi | |
ac1cb8d3 VS |
42730 | rm -f conftest.err conftest.$ac_objext \ |
42731 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42732 | fi |
42733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42734 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42735 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42736 | cat >>confdefs.h <<_ACEOF | |
42737 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42738 | _ACEOF | |
42739 | cat >>confdefs.h <<\_ACEOF | |
42740 | #define HAVE_DLERROR 1 | |
42741 | _ACEOF | |
42742 | ||
42743 | else | |
42744 | ||
42745 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
42746 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
42747 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
42748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42749 | else | |
42750 | ac_check_lib_save_LIBS=$LIBS | |
42751 | LIBS="-ldl $LIBS" | |
42752 | cat >conftest.$ac_ext <<_ACEOF | |
42753 | /* confdefs.h. */ | |
42754 | _ACEOF | |
42755 | cat confdefs.h >>conftest.$ac_ext | |
42756 | cat >>conftest.$ac_ext <<_ACEOF | |
42757 | /* end confdefs.h. */ | |
42758 | ||
42759 | /* Override any gcc2 internal prototype to avoid an error. */ | |
42760 | #ifdef __cplusplus | |
42761 | extern "C" | |
42762 | #endif | |
42763 | /* We use char because int might match the return type of a gcc2 | |
42764 | builtin and then its argument prototype would still apply. */ | |
42765 | char dlerror (); | |
42766 | int | |
42767 | main () | |
42768 | { | |
42769 | dlerror (); | |
42770 | ; | |
42771 | return 0; | |
42772 | } | |
42773 | _ACEOF | |
42774 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42776 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42777 | ac_status=$? |
ac1cb8d3 VS |
42778 | grep -v '^ *+' conftest.er1 >conftest.err |
42779 | rm -f conftest.er1 | |
42780 | cat conftest.err >&5 | |
a848cd7e SC |
42781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42782 | (exit $ac_status); } && | |
bb9e79c0 | 42783 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42785 | (eval $ac_try) 2>&5 | |
42786 | ac_status=$? | |
42787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42788 | (exit $ac_status); }; } && | |
42789 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42791 | (eval $ac_try) 2>&5 | |
42792 | ac_status=$? | |
42793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42794 | (exit $ac_status); }; }; then | |
42795 | ac_cv_lib_dl_dlerror=yes | |
42796 | else | |
42797 | echo "$as_me: failed program was:" >&5 | |
42798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42799 | ||
42800 | ac_cv_lib_dl_dlerror=no | |
42801 | fi | |
ac1cb8d3 VS |
42802 | rm -f conftest.err conftest.$ac_objext \ |
42803 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42804 | LIBS=$ac_check_lib_save_LIBS |
42805 | fi | |
42806 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
42807 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
42808 | if test $ac_cv_lib_dl_dlerror = yes; then | |
42809 | cat >>confdefs.h <<\_ACEOF | |
42810 | #define HAVE_DLERROR 1 | |
42811 | _ACEOF | |
42812 | ||
42813 | fi | |
42814 | ||
42815 | ||
42816 | ||
42817 | fi | |
42818 | done | |
42819 | ||
42820 | fi | |
42821 | fi | |
42822 | ||
42823 | if test "$HAVE_DL_FUNCS" = 0; then | |
42824 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 42825 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
42826 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
42827 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
42828 | wxUSE_DYNAMIC_LOADER=no | |
42829 | wxUSE_DYNLIB_CLASS=no | |
42830 | else | |
42831 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
42832 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
42833 | fi | |
42834 | fi | |
42835 | fi | |
42836 | fi | |
42837 | fi | |
42838 | ||
42839 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
42840 | cat >>confdefs.h <<\_ACEOF | |
42841 | #define wxUSE_DYNAMIC_LOADER 1 | |
42842 | _ACEOF | |
42843 | ||
42844 | fi | |
42845 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
42846 | cat >>confdefs.h <<\_ACEOF | |
42847 | #define wxUSE_DYNLIB_CLASS 1 | |
42848 | _ACEOF | |
42849 | ||
42850 | fi | |
42851 | ||
42852 | ||
42853 | ||
42854 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
42855 | if test "$wxUSE_SHARED" = "no" ; then | |
42856 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
42857 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
42858 | wxUSE_PLUGINS=no | |
42859 | fi | |
42860 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
42861 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
42862 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
42863 | wxUSE_PLUGINS=no | |
42864 | fi | |
42865 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
42866 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
42867 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
42868 | wxUSE_PLUGINS=no | |
42869 | fi | |
42870 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
42871 | cat >>confdefs.h <<\_ACEOF | |
42872 | #define wxUSE_PLUGINS 1 | |
42873 | _ACEOF | |
42874 | ||
42875 | fi | |
42876 | fi | |
42877 | ||
42878 | ||
42879 | if test "$wxUSE_STL" = "yes"; then | |
42880 | cat >>confdefs.h <<\_ACEOF | |
42881 | #define wxUSE_STL 1 | |
42882 | _ACEOF | |
42883 | ||
42884 | fi | |
42885 | ||
42886 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
42887 | cat >>confdefs.h <<\_ACEOF | |
42888 | #define wxUSE_APPLE_IEEE 1 | |
42889 | _ACEOF | |
42890 | ||
42891 | fi | |
42892 | ||
42893 | if test "$wxUSE_TIMER" = "yes"; then | |
42894 | cat >>confdefs.h <<\_ACEOF | |
42895 | #define wxUSE_TIMER 1 | |
42896 | _ACEOF | |
42897 | ||
42898 | fi | |
42899 | ||
9c112555 | 42900 | if test "$USE_UNIX" = "1" ; then |
31714590 VZ |
42901 | echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5 |
42902 | echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6 | |
d12aef51 | 42903 | if test "${ac_cv_header_sys_soundcard+set}" = set; then |
a848cd7e | 42904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 42905 | else |
d12aef51 VZ |
42906 | |
42907 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
42908 | /* confdefs.h. */ |
42909 | _ACEOF | |
42910 | cat confdefs.h >>conftest.$ac_ext | |
42911 | cat >>conftest.$ac_ext <<_ACEOF | |
42912 | /* end confdefs.h. */ | |
d12aef51 | 42913 | |
31714590 | 42914 | #include <sys/ioctl.h> |
d12aef51 VZ |
42915 | #include <sys/soundcard.h> |
42916 | ||
42917 | int | |
42918 | main () | |
42919 | { | |
42920 | ||
31714590 | 42921 | ioctl(0, SNDCTL_DSP_SPEED, 0); |
d12aef51 VZ |
42922 | |
42923 | ; | |
42924 | return 0; | |
42925 | } | |
a848cd7e | 42926 | _ACEOF |
d12aef51 VZ |
42927 | rm -f conftest.$ac_objext conftest$ac_exeext |
42928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
42929 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 42930 | ac_status=$? |
ac1cb8d3 VS |
42931 | grep -v '^ *+' conftest.er1 >conftest.err |
42932 | rm -f conftest.er1 | |
42933 | cat conftest.err >&5 | |
a848cd7e SC |
42934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42935 | (exit $ac_status); } && | |
bb9e79c0 | 42936 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42938 | (eval $ac_try) 2>&5 | |
42939 | ac_status=$? | |
42940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42941 | (exit $ac_status); }; } && | |
d12aef51 | 42942 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
42943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42944 | (eval $ac_try) 2>&5 | |
42945 | ac_status=$? | |
42946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42947 | (exit $ac_status); }; }; then | |
d12aef51 | 42948 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
42949 | else |
42950 | echo "$as_me: failed program was:" >&5 | |
42951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42952 | ||
a848cd7e | 42953 | |
d12aef51 VZ |
42954 | saveLibs="$LIBS" |
42955 | LIBS="$saveLibs -lossaudio" | |
42956 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
42957 | /* confdefs.h. */ |
42958 | _ACEOF | |
42959 | cat confdefs.h >>conftest.$ac_ext | |
42960 | cat >>conftest.$ac_ext <<_ACEOF | |
42961 | /* end confdefs.h. */ | |
d12aef51 | 42962 | |
31714590 | 42963 | #include <sys/ioctl.h> |
d12aef51 VZ |
42964 | #include <sys/soundcard.h> |
42965 | ||
42966 | int | |
42967 | main () | |
42968 | { | |
42969 | ||
31714590 | 42970 | ioctl(0, SNDCTL_DSP_SPEED, 0); |
d12aef51 VZ |
42971 | |
42972 | ; | |
42973 | return 0; | |
42974 | } | |
a848cd7e | 42975 | _ACEOF |
d12aef51 VZ |
42976 | rm -f conftest.$ac_objext conftest$ac_exeext |
42977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
42978 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
42979 | ac_status=$? |
42980 | grep -v '^ *+' conftest.er1 >conftest.err | |
42981 | rm -f conftest.er1 | |
42982 | cat conftest.err >&5 | |
42983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 42984 | (exit $ac_status); } && |
bb9e79c0 | 42985 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
42986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42987 | (eval $ac_try) 2>&5 | |
42988 | ac_status=$? | |
42989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42990 | (exit $ac_status); }; } && | |
42991 | { ac_try='test -s conftest$ac_exeext' | |
42992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42993 | (eval $ac_try) 2>&5 | |
42994 | ac_status=$? | |
42995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42996 | (exit $ac_status); }; }; then | |
42997 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
42998 | else |
42999 | echo "$as_me: failed program was:" >&5 | |
43000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43001 | ||
a848cd7e | 43002 | |
d12aef51 VZ |
43003 | LIBS="$saveLibs" |
43004 | ac_cv_header_sys_soundcard=no | |
43005 | ||
43006 | ||
a848cd7e | 43007 | fi |
d12aef51 VZ |
43008 | rm -f conftest.err conftest.$ac_objext \ |
43009 | conftest$ac_exeext conftest.$ac_ext | |
43010 | ||
a848cd7e SC |
43011 | |
43012 | fi | |
d12aef51 VZ |
43013 | rm -f conftest.err conftest.$ac_objext \ |
43014 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43015 | |
43016 | fi | |
d12aef51 VZ |
43017 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
43018 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 43019 | |
d12aef51 VZ |
43020 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
43021 | cat >>confdefs.h <<\_ACEOF | |
43022 | #define HAVE_SYS_SOUNDCARD_H 1 | |
43023 | _ACEOF | |
a848cd7e | 43024 | |
d12aef51 VZ |
43025 | else |
43026 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
43027 | fi | |
9c112555 MW |
43028 | fi |
43029 | WITH_PLUGIN_SDL=0 | |
43030 | if test "$wxUSE_SOUND" = "yes"; then | |
43031 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
43032 | if test "$wxUSE_LIBSDL" != "no"; then |
43033 | ||
43034 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
43035 | if test "${with_sdl_prefix+set}" = set; then | |
43036 | withval="$with_sdl_prefix" | |
43037 | sdl_prefix="$withval" | |
43038 | else | |
43039 | sdl_prefix="" | |
43040 | fi; | |
43041 | ||
43042 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
43043 | if test "${with_sdl_exec_prefix+set}" = set; then | |
43044 | withval="$with_sdl_exec_prefix" | |
43045 | sdl_exec_prefix="$withval" | |
43046 | else | |
43047 | sdl_exec_prefix="" | |
43048 | fi; | |
43049 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
43050 | if test "${enable_sdltest+set}" = set; then | |
43051 | enableval="$enable_sdltest" | |
43052 | ||
43053 | else | |
43054 | enable_sdltest=yes | |
43055 | fi; | |
43056 | ||
43057 | if test x$sdl_exec_prefix != x ; then | |
3ecd9f92 MW |
43058 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" |
43059 | if test x${SDL_CONFIG+set} != xset ; then | |
43060 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
43061 | fi | |
a848cd7e SC |
43062 | fi |
43063 | if test x$sdl_prefix != x ; then | |
3ecd9f92 MW |
43064 | sdl_args="$sdl_args --prefix=$sdl_prefix" |
43065 | if test x${SDL_CONFIG+set} != xset ; then | |
43066 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
43067 | fi | |
a848cd7e SC |
43068 | fi |
43069 | ||
3ecd9f92 MW |
43070 | if test "x$prefix" != xNONE; then |
43071 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
43072 | fi | |
a848cd7e SC |
43073 | # Extract the first word of "sdl-config", so it can be a program name with args. |
43074 | set dummy sdl-config; ac_word=$2 | |
43075 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43077 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
43078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43079 | else | |
43080 | case $SDL_CONFIG in | |
43081 | [\\/]* | ?:[\\/]*) | |
43082 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
43083 | ;; | |
43084 | *) | |
43085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43086 | for as_dir in $PATH | |
43087 | do | |
43088 | IFS=$as_save_IFS | |
43089 | test -z "$as_dir" && as_dir=. | |
43090 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43091 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43092 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
43093 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43094 | break 2 | |
43095 | fi | |
43096 | done | |
43097 | done | |
43098 | ||
43099 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
43100 | ;; | |
43101 | esac | |
43102 | fi | |
43103 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
43104 | ||
43105 | if test -n "$SDL_CONFIG"; then | |
43106 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
43107 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
43108 | else | |
43109 | echo "$as_me:$LINENO: result: no" >&5 | |
43110 | echo "${ECHO_T}no" >&6 | |
43111 | fi | |
43112 | ||
43113 | min_sdl_version=1.2.0 | |
43114 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
43115 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
43116 | no_sdl="" | |
43117 | if test "$SDL_CONFIG" = "no" ; then | |
43118 | no_sdl=yes | |
43119 | else | |
43120 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
43121 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
43122 | ||
43123 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
43124 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
43125 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
43126 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
43127 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
43128 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
43129 | if test "x$enable_sdltest" = "xyes" ; then | |
43130 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 43131 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
43132 | ac_save_LIBS="$LIBS" |
43133 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 43134 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
43135 | LIBS="$LIBS $SDL_LIBS" |
43136 | rm -f conf.sdltest | |
43137 | if test "$cross_compiling" = yes; then | |
43138 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
43139 | else | |
43140 | cat >conftest.$ac_ext <<_ACEOF | |
43141 | /* confdefs.h. */ | |
43142 | _ACEOF | |
43143 | cat confdefs.h >>conftest.$ac_ext | |
43144 | cat >>conftest.$ac_ext <<_ACEOF | |
43145 | /* end confdefs.h. */ | |
43146 | ||
43147 | #include <stdio.h> | |
43148 | #include <stdlib.h> | |
43149 | #include <string.h> | |
43150 | #include "SDL.h" | |
43151 | ||
43152 | char* | |
43153 | my_strdup (char *str) | |
43154 | { | |
43155 | char *new_str; | |
43156 | ||
43157 | if (str) | |
43158 | { | |
43159 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
43160 | strcpy (new_str, str); | |
43161 | } | |
43162 | else | |
43163 | new_str = NULL; | |
43164 | ||
43165 | return new_str; | |
43166 | } | |
43167 | ||
43168 | int main (int argc, char *argv[]) | |
43169 | { | |
43170 | int major, minor, micro; | |
43171 | char *tmp_version; | |
43172 | ||
43173 | /* This hangs on some systems (?) | |
43174 | system ("touch conf.sdltest"); | |
43175 | */ | |
43176 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
43177 | ||
43178 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
43179 | tmp_version = my_strdup("$min_sdl_version"); | |
43180 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
43181 | printf("%s, bad version string\n", "$min_sdl_version"); | |
43182 | exit(1); | |
43183 | } | |
43184 | ||
43185 | if (($sdl_major_version > major) || | |
43186 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
43187 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
43188 | { | |
43189 | return 0; | |
43190 | } | |
43191 | else | |
43192 | { | |
43193 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
43194 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
43195 | printf("*** best to upgrade to the required version.\n"); | |
43196 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
43197 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
43198 | printf("*** config.cache before re-running configure\n"); | |
43199 | return 1; | |
43200 | } | |
43201 | } | |
43202 | ||
43203 | ||
43204 | _ACEOF | |
43205 | rm -f conftest$ac_exeext | |
43206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
43207 | (eval $ac_link) 2>&5 | |
43208 | ac_status=$? | |
43209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43210 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
43211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43212 | (eval $ac_try) 2>&5 | |
43213 | ac_status=$? | |
43214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43215 | (exit $ac_status); }; }; then | |
43216 | : | |
43217 | else | |
43218 | echo "$as_me: program exited with status $ac_status" >&5 | |
43219 | echo "$as_me: failed program was:" >&5 | |
43220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43221 | ||
43222 | ( exit $ac_status ) | |
43223 | no_sdl=yes | |
43224 | fi | |
ac1cb8d3 | 43225 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43226 | fi |
43227 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 43228 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
43229 | LIBS="$ac_save_LIBS" |
43230 | fi | |
43231 | fi | |
43232 | if test "x$no_sdl" = x ; then | |
43233 | echo "$as_me:$LINENO: result: yes" >&5 | |
43234 | echo "${ECHO_T}yes" >&6 | |
43235 | ||
43236 | EXTRALIBS_SDL="$SDL_LIBS" | |
c92ad099 | 43237 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
a848cd7e SC |
43238 | cat >>confdefs.h <<\_ACEOF |
43239 | #define wxUSE_LIBSDL 1 | |
43240 | _ACEOF | |
43241 | ||
43242 | ||
43243 | else | |
43244 | echo "$as_me:$LINENO: result: no" >&5 | |
43245 | echo "${ECHO_T}no" >&6 | |
43246 | if test "$SDL_CONFIG" = "no" ; then | |
43247 | echo "*** The sdl-config script installed by SDL could not be found" | |
43248 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
43249 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
43250 | echo "*** full path to sdl-config." | |
43251 | else | |
43252 | if test -f conf.sdltest ; then | |
43253 | : | |
43254 | else | |
43255 | echo "*** Could not run SDL test program, checking why..." | |
43256 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 43257 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
43258 | LIBS="$LIBS $SDL_LIBS" |
43259 | cat >conftest.$ac_ext <<_ACEOF | |
43260 | /* confdefs.h. */ | |
43261 | _ACEOF | |
43262 | cat confdefs.h >>conftest.$ac_ext | |
43263 | cat >>conftest.$ac_ext <<_ACEOF | |
43264 | /* end confdefs.h. */ | |
43265 | ||
43266 | #include <stdio.h> | |
43267 | #include "SDL.h" | |
43268 | ||
43269 | int main(int argc, char *argv[]) | |
43270 | { return 0; } | |
43271 | #undef main | |
43272 | #define main K_and_R_C_main | |
43273 | ||
43274 | int | |
43275 | main () | |
43276 | { | |
43277 | return 0; | |
43278 | ; | |
43279 | return 0; | |
43280 | } | |
43281 | _ACEOF | |
43282 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43284 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43285 | ac_status=$? |
ac1cb8d3 VS |
43286 | grep -v '^ *+' conftest.er1 >conftest.err |
43287 | rm -f conftest.er1 | |
43288 | cat conftest.err >&5 | |
a848cd7e SC |
43289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43290 | (exit $ac_status); } && | |
bb9e79c0 | 43291 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43293 | (eval $ac_try) 2>&5 | |
43294 | ac_status=$? | |
43295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43296 | (exit $ac_status); }; } && | |
43297 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43299 | (eval $ac_try) 2>&5 | |
43300 | ac_status=$? | |
43301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43302 | (exit $ac_status); }; }; then | |
43303 | echo "*** The test program compiled, but did not run. This usually means" | |
43304 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
43305 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
43306 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
43307 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
43308 | echo "*** is required on your system" | |
43309 | echo "***" | |
43310 | echo "*** If you have an old version installed, it is best to remove it, although" | |
43311 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
43312 | else | |
43313 | echo "$as_me: failed program was:" >&5 | |
43314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43315 | ||
43316 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
43317 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
43318 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
43319 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
43320 | fi | |
ac1cb8d3 VS |
43321 | rm -f conftest.err conftest.$ac_objext \ |
43322 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 43323 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 43324 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
43325 | LIBS="$ac_save_LIBS" |
43326 | fi | |
43327 | fi | |
43328 | SDL_CFLAGS="" | |
43329 | SDL_LIBS="" | |
43330 | wxUSE_LIBSDL="no" | |
43331 | fi | |
43332 | ||
43333 | ||
43334 | rm -f conf.sdltest | |
43335 | ||
43336 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
43337 | WITH_PLUGIN_SDL=1 | |
43338 | fi | |
43339 | fi | |
480b9f18 VZ |
43340 | else |
43341 | if test "$wxUSE_MGL" = 1; then | |
43342 | { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5 | |
43343 | echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;} | |
43344 | wxUSE_SOUND="no" | |
43345 | fi | |
a848cd7e | 43346 | fi |
480b9f18 | 43347 | fi |
a848cd7e | 43348 | |
480b9f18 | 43349 | if test "$wxUSE_SOUND" = "yes"; then |
a848cd7e SC |
43350 | cat >>confdefs.h <<\_ACEOF |
43351 | #define wxUSE_SOUND 1 | |
43352 | _ACEOF | |
43353 | ||
43354 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
43355 | fi | |
43356 | ||
d1c38808 | 43357 | if test "$WXGTK20" = 1; then |
d6fb5527 VZ |
43358 | |
43359 | ||
43360 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
43361 | if test -n "$ac_tool_prefix"; then | |
43362 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
43363 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
43364 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43365 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43366 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
43367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43368 | else | |
43369 | case $PKG_CONFIG in | |
43370 | [\\/]* | ?:[\\/]*) | |
43371 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
43372 | ;; | |
43373 | *) | |
43374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43375 | for as_dir in $PATH | |
43376 | do | |
43377 | IFS=$as_save_IFS | |
43378 | test -z "$as_dir" && as_dir=. | |
43379 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43380 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43381 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
43382 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43383 | break 2 | |
43384 | fi | |
43385 | done | |
43386 | done | |
43387 | ||
43388 | ;; | |
43389 | esac | |
43390 | fi | |
43391 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
43392 | ||
43393 | if test -n "$PKG_CONFIG"; then | |
43394 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
43395 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
43396 | else | |
43397 | echo "$as_me:$LINENO: result: no" >&5 | |
43398 | echo "${ECHO_T}no" >&6 | |
43399 | fi | |
43400 | ||
43401 | fi | |
43402 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
43403 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
43404 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
43405 | set dummy pkg-config; ac_word=$2 | |
43406 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43408 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
43409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43410 | else | |
43411 | case $ac_pt_PKG_CONFIG in | |
43412 | [\\/]* | ?:[\\/]*) | |
43413 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
43414 | ;; | |
43415 | *) | |
43416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43417 | for as_dir in $PATH | |
43418 | do | |
43419 | IFS=$as_save_IFS | |
43420 | test -z "$as_dir" && as_dir=. | |
43421 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43422 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43423 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
43424 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43425 | break 2 | |
43426 | fi | |
43427 | done | |
43428 | done | |
43429 | ||
43430 | ;; | |
43431 | esac | |
43432 | fi | |
43433 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
43434 | ||
43435 | if test -n "$ac_pt_PKG_CONFIG"; then | |
43436 | echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
43437 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 | |
43438 | else | |
43439 | echo "$as_me:$LINENO: result: no" >&5 | |
43440 | echo "${ECHO_T}no" >&6 | |
43441 | fi | |
43442 | ||
43443 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
43444 | else | |
43445 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
43446 | fi | |
43447 | ||
43448 | fi | |
43449 | if test -n "$PKG_CONFIG"; then | |
43450 | _pkg_min_version=0.9.0 | |
43451 | echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
43452 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 | |
43453 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
43454 | echo "$as_me:$LINENO: result: yes" >&5 | |
43455 | echo "${ECHO_T}yes" >&6 | |
43456 | else | |
43457 | echo "$as_me:$LINENO: result: no" >&5 | |
43458 | echo "${ECHO_T}no" >&6 | |
43459 | PKG_CONFIG="" | |
43460 | fi | |
43461 | ||
43462 | fi | |
43463 | ||
d1c38808 VZ |
43464 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then |
43465 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
43466 | ||
43467 | ||
3ecd9f92 MW |
43468 | pkg_failed=no |
43469 | echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5 | |
43470 | echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6 | |
d1c38808 | 43471 | |
3ecd9f92 MW |
43472 | if test -n "$PKG_CONFIG"; then |
43473 | if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then | |
43474 | pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS" | |
43475 | else | |
43476 | if test -n "$PKG_CONFIG" && \ | |
43477 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5 | |
43478 | ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5 | |
43479 | ac_status=$? | |
43480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43481 | (exit $ac_status); }; then | |
43482 | pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null` | |
d1c38808 | 43483 | else |
3ecd9f92 MW |
43484 | pkg_failed=yes |
43485 | fi | |
43486 | fi | |
43487 | else | |
43488 | pkg_failed=untried | |
d1c38808 | 43489 | fi |
d1c38808 | 43490 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
43491 | if test -n "$LIBGNOMEPRINTUI_LIBS"; then |
43492 | pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS" | |
43493 | else | |
43494 | if test -n "$PKG_CONFIG" && \ | |
43495 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5 | |
43496 | ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5 | |
43497 | ac_status=$? | |
43498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43499 | (exit $ac_status); }; then | |
43500 | pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null` | |
d1c38808 | 43501 | else |
3ecd9f92 MW |
43502 | pkg_failed=yes |
43503 | fi | |
43504 | fi | |
43505 | else | |
43506 | pkg_failed=untried | |
d1c38808 VZ |
43507 | fi |
43508 | ||
d1c38808 | 43509 | |
d1c38808 | 43510 | |
3ecd9f92 | 43511 | if test $pkg_failed = yes; then |
d1c38808 | 43512 | |
3ecd9f92 MW |
43513 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
43514 | _pkg_short_errors_supported=yes | |
43515 | else | |
43516 | _pkg_short_errors_supported=no | |
43517 | fi | |
43518 | if test $_pkg_short_errors_supported = yes; then | |
43519 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` | |
43520 | else | |
43521 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` | |
d1c38808 | 43522 | fi |
3ecd9f92 MW |
43523 | # Put the nasty error message in config.log where it belongs |
43524 | echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5 | |
d1c38808 VZ |
43525 | |
43526 | ||
3ecd9f92 MW |
43527 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 |
43528 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
43529 | wxUSE_LIBGNOMEPRINT="no" | |
d1c38808 VZ |
43530 | |
43531 | ||
3ecd9f92 | 43532 | elif test $pkg_failed = untried; then |
d1c38808 VZ |
43533 | |
43534 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
43535 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
43536 | wxUSE_LIBGNOMEPRINT="no" | |
43537 | ||
43538 | ||
3ecd9f92 MW |
43539 | else |
43540 | LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS | |
43541 | LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS | |
43542 | echo "$as_me:$LINENO: result: yes" >&5 | |
43543 | echo "${ECHO_T}yes" >&6 | |
d1c38808 | 43544 | |
3ecd9f92 MW |
43545 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
43546 | cat >>confdefs.h <<\_ACEOF | |
43547 | #define wxUSE_LIBGNOMEPRINT 1 | |
43548 | _ACEOF | |
43549 | ||
43550 | ||
43551 | fi | |
d1c38808 VZ |
43552 | fi |
43553 | fi | |
d1c38808 | 43554 | |
2b850ae1 RR |
43555 | if test "$wxUSE_MIMETYPE" = "yes" ; then |
43556 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
43557 | ||
43558 | ||
3ecd9f92 MW |
43559 | pkg_failed=no |
43560 | echo "$as_me:$LINENO: checking for GNOMEVFS" >&5 | |
43561 | echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6 | |
2b850ae1 | 43562 | |
3ecd9f92 MW |
43563 | if test -n "$PKG_CONFIG"; then |
43564 | if test -n "$GNOMEVFS_CFLAGS"; then | |
43565 | pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS" | |
43566 | else | |
43567 | if test -n "$PKG_CONFIG" && \ | |
43568 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5 | |
43569 | ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5 | |
43570 | ac_status=$? | |
43571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43572 | (exit $ac_status); }; then | |
43573 | pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null` | |
2b850ae1 | 43574 | else |
3ecd9f92 MW |
43575 | pkg_failed=yes |
43576 | fi | |
43577 | fi | |
43578 | else | |
43579 | pkg_failed=untried | |
2b850ae1 | 43580 | fi |
2b850ae1 | 43581 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
43582 | if test -n "$GNOMEVFS_LIBS"; then |
43583 | pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS" | |
43584 | else | |
43585 | if test -n "$PKG_CONFIG" && \ | |
43586 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5 | |
43587 | ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5 | |
43588 | ac_status=$? | |
43589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43590 | (exit $ac_status); }; then | |
43591 | pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null` | |
2b850ae1 | 43592 | else |
3ecd9f92 MW |
43593 | pkg_failed=yes |
43594 | fi | |
43595 | fi | |
43596 | else | |
43597 | pkg_failed=untried | |
2b850ae1 RR |
43598 | fi |
43599 | ||
2b850ae1 | 43600 | |
2b850ae1 | 43601 | |
3ecd9f92 | 43602 | if test $pkg_failed = yes; then |
2b850ae1 | 43603 | |
3ecd9f92 MW |
43604 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
43605 | _pkg_short_errors_supported=yes | |
43606 | else | |
43607 | _pkg_short_errors_supported=no | |
43608 | fi | |
43609 | if test $_pkg_short_errors_supported = yes; then | |
43610 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
43611 | else | |
43612 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
2b850ae1 | 43613 | fi |
3ecd9f92 MW |
43614 | # Put the nasty error message in config.log where it belongs |
43615 | echo "$GNOMEVFS_PKG_ERRORS" >&5 | |
2b850ae1 RR |
43616 | |
43617 | ||
3ecd9f92 MW |
43618 | { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 |
43619 | echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
43620 | wxUSE_LIBGNOMEVFS="no" | |
2b850ae1 RR |
43621 | |
43622 | ||
3ecd9f92 | 43623 | elif test $pkg_failed = untried; then |
2b850ae1 RR |
43624 | |
43625 | { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 | |
43626 | echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
43627 | wxUSE_LIBGNOMEVFS="no" | |
43628 | ||
43629 | ||
3ecd9f92 MW |
43630 | else |
43631 | GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS | |
43632 | GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS | |
43633 | echo "$as_me:$LINENO: result: yes" >&5 | |
43634 | echo "${ECHO_T}yes" >&6 | |
2b850ae1 | 43635 | |
3ecd9f92 MW |
43636 | CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS" |
43637 | cat >>confdefs.h <<\_ACEOF | |
43638 | #define wxUSE_LIBGNOMEVFS 1 | |
43639 | _ACEOF | |
43640 | ||
43641 | ||
43642 | fi | |
2b850ae1 RR |
43643 | fi |
43644 | fi | |
2b850ae1 | 43645 | |
3565d135 RR |
43646 | if test "$wxUSE_LIBHILDON" = "yes" ; then |
43647 | ||
3ecd9f92 MW |
43648 | pkg_failed=no |
43649 | echo "$as_me:$LINENO: checking for HILDON" >&5 | |
43650 | echo $ECHO_N "checking for HILDON... $ECHO_C" >&6 | |
3565d135 | 43651 | |
3ecd9f92 MW |
43652 | if test -n "$PKG_CONFIG"; then |
43653 | if test -n "$HILDON_CFLAGS"; then | |
43654 | pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS" | |
43655 | else | |
43656 | if test -n "$PKG_CONFIG" && \ | |
43657 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5 | |
43658 | ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5 | |
43659 | ac_status=$? | |
43660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43661 | (exit $ac_status); }; then | |
43662 | pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null` | |
3565d135 | 43663 | else |
3ecd9f92 MW |
43664 | pkg_failed=yes |
43665 | fi | |
43666 | fi | |
43667 | else | |
43668 | pkg_failed=untried | |
3565d135 | 43669 | fi |
3565d135 | 43670 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
43671 | if test -n "$HILDON_LIBS"; then |
43672 | pkg_cv_HILDON_LIBS="$HILDON_LIBS" | |
43673 | else | |
43674 | if test -n "$PKG_CONFIG" && \ | |
43675 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5 | |
43676 | ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5 | |
43677 | ac_status=$? | |
43678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43679 | (exit $ac_status); }; then | |
43680 | pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null` | |
3565d135 | 43681 | else |
3ecd9f92 MW |
43682 | pkg_failed=yes |
43683 | fi | |
43684 | fi | |
43685 | else | |
43686 | pkg_failed=untried | |
3565d135 RR |
43687 | fi |
43688 | ||
3565d135 | 43689 | |
3565d135 | 43690 | |
3ecd9f92 | 43691 | if test $pkg_failed = yes; then |
3565d135 | 43692 | |
3ecd9f92 MW |
43693 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
43694 | _pkg_short_errors_supported=yes | |
43695 | else | |
43696 | _pkg_short_errors_supported=no | |
43697 | fi | |
43698 | if test $_pkg_short_errors_supported = yes; then | |
43699 | HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
43700 | else | |
43701 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
3565d135 | 43702 | fi |
3ecd9f92 MW |
43703 | # Put the nasty error message in config.log where it belongs |
43704 | echo "$HILDON_PKG_ERRORS" >&5 | |
3565d135 RR |
43705 | |
43706 | ||
3ecd9f92 MW |
43707 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 |
43708 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
43709 | wxUSE_LIBHILDON="no" | |
3565d135 | 43710 | |
3565d135 | 43711 | |
3ecd9f92 MW |
43712 | elif test $pkg_failed = untried; then |
43713 | ||
43714 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 | |
43715 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
43716 | wxUSE_LIBHILDON="no" | |
43717 | ||
43718 | ||
43719 | else | |
43720 | HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS | |
43721 | HILDON_LIBS=$pkg_cv_HILDON_LIBS | |
43722 | echo "$as_me:$LINENO: result: yes" >&5 | |
43723 | echo "${ECHO_T}yes" >&6 | |
3565d135 RR |
43724 | |
43725 | EXTRALIBS_HILDON="$HILDON_LIBS" | |
43726 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" | |
43727 | cat >>confdefs.h <<\_ACEOF | |
43728 | #define wxUSE_LIBHILDON 1 | |
43729 | _ACEOF | |
43730 | ||
43731 | ||
3ecd9f92 | 43732 | fi |
3565d135 RR |
43733 | fi |
43734 | fi | |
d1c38808 | 43735 | |
a848cd7e SC |
43736 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
43737 | cat >>confdefs.h <<\_ACEOF | |
43738 | #define wxUSE_CMDLINE_PARSER 1 | |
43739 | _ACEOF | |
43740 | ||
43741 | fi | |
43742 | ||
43743 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
43744 | cat >>confdefs.h <<\_ACEOF | |
43745 | #define wxUSE_STOPWATCH 1 | |
43746 | _ACEOF | |
43747 | ||
43748 | fi | |
43749 | ||
43750 | if test "$wxUSE_DATETIME" = "yes"; then | |
43751 | cat >>confdefs.h <<\_ACEOF | |
43752 | #define wxUSE_DATETIME 1 | |
43753 | _ACEOF | |
43754 | ||
43755 | fi | |
43756 | ||
43757 | if test "$wxUSE_FILE" = "yes"; then | |
43758 | cat >>confdefs.h <<\_ACEOF | |
43759 | #define wxUSE_FILE 1 | |
43760 | _ACEOF | |
43761 | ||
43762 | fi | |
43763 | ||
43764 | if test "$wxUSE_FFILE" = "yes"; then | |
43765 | cat >>confdefs.h <<\_ACEOF | |
43766 | #define wxUSE_FFILE 1 | |
43767 | _ACEOF | |
43768 | ||
43769 | fi | |
43770 | ||
9e8e867f | 43771 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
26e422a9 MW |
43772 | if test "$wxUSE_STREAMS" != yes; then |
43773 | { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5 | |
43774 | echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;} | |
916af76f | 43775 | wxUSE_ARCHIVE_STREAMS=no |
26e422a9 MW |
43776 | else |
43777 | cat >>confdefs.h <<\_ACEOF | |
9e8e867f | 43778 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
43779 | _ACEOF |
43780 | ||
26e422a9 | 43781 | fi |
81f90336 MW |
43782 | fi |
43783 | ||
43784 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 43785 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
43786 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
43787 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
43788 | elif test "$wxUSE_ZLIB" = "no"; then | |
43789 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
43790 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
43791 | else | |
43792 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43793 | #define wxUSE_ZIPSTREAM 1 |
43794 | _ACEOF | |
43795 | ||
81f90336 | 43796 | fi |
a848cd7e SC |
43797 | fi |
43798 | ||
26e422a9 MW |
43799 | if test "$wxUSE_TARSTREAM" = "yes"; then |
43800 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then | |
43801 | { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5 | |
43802 | echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;} | |
43803 | else | |
43804 | cat >>confdefs.h <<\_ACEOF | |
43805 | #define wxUSE_TARSTREAM 1 | |
43806 | _ACEOF | |
43807 | ||
43808 | fi | |
43809 | fi | |
43810 | ||
916af76f | 43811 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
f8f6c91a | 43812 | if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then |
916af76f MW |
43813 | { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5 |
43814 | echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;} | |
43815 | wxUSE_FILESYSTEM=no | |
f8f6c91a MW |
43816 | else |
43817 | cat >>confdefs.h <<\_ACEOF | |
916af76f | 43818 | #define wxUSE_FILESYSTEM 1 |
f8f6c91a MW |
43819 | _ACEOF |
43820 | ||
43821 | fi | |
43822 | fi | |
43823 | ||
26e422a9 | 43824 | if test "$wxUSE_FS_ARCHIVE" = "yes"; then |
916af76f MW |
43825 | if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then |
43826 | { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5 | |
43827 | echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;} | |
26e422a9 MW |
43828 | else |
43829 | cat >>confdefs.h <<\_ACEOF | |
43830 | #define wxUSE_FS_ARCHIVE 1 | |
43831 | _ACEOF | |
43832 | ||
43833 | fi | |
43834 | fi | |
43835 | ||
916af76f MW |
43836 | if test "$wxUSE_FS_ZIP" = "yes"; then |
43837 | if test "$wxUSE_FS_ARCHIVE" != yes; then | |
43838 | { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5 | |
43839 | echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;} | |
43840 | else | |
43841 | cat >>confdefs.h <<\_ACEOF | |
43842 | #define wxUSE_FS_ZIP 1 | |
43843 | _ACEOF | |
43844 | ||
43845 | fi | |
43846 | fi | |
43847 | ||
a848cd7e | 43848 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
43849 | if test "$USE_UNIX" != 1; then |
43850 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
43851 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
43852 | wxUSE_ON_FATAL_EXCEPTION=no | |
43853 | else | |
43854 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43855 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
43856 | _ACEOF | |
43857 | ||
18228ab4 | 43858 | fi |
a848cd7e SC |
43859 | fi |
43860 | ||
eaff0f0d VZ |
43861 | if test "$wxUSE_STACKWALKER" = "yes"; then |
43862 | cat >>confdefs.h <<\_ACEOF | |
43863 | #define wxUSE_STACKWALKER 1 | |
43864 | _ACEOF | |
43865 | ||
43866 | fi | |
43867 | ||
36b6448c | 43868 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
43869 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
43870 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
43871 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
43872 | wxUSE_DEBUGREPORT=no |
43873 | else | |
43874 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
43875 | #define wxUSE_DEBUGREPORT 1 |
43876 | _ACEOF | |
43877 | ||
21dfc162 MW |
43878 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
43879 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
43880 | fi | |
dfe0c803 | 43881 | fi |
36b6448c VZ |
43882 | fi |
43883 | ||
a848cd7e SC |
43884 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
43885 | cat >>confdefs.h <<\_ACEOF | |
43886 | #define wxUSE_SNGLINST_CHECKER 1 | |
43887 | _ACEOF | |
43888 | ||
43889 | fi | |
43890 | ||
43891 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
43892 | cat >>confdefs.h <<\_ACEOF | |
43893 | #define wxUSE_BUSYINFO 1 | |
43894 | _ACEOF | |
43895 | ||
43896 | fi | |
43897 | ||
43898 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
43899 | cat >>confdefs.h <<\_ACEOF | |
43900 | #define wxUSE_STD_IOSTREAM 1 | |
43901 | _ACEOF | |
43902 | ||
43903 | fi | |
43904 | ||
59746b65 MW |
43905 | if test "$wxUSE_STD_STRING" = "yes"; then |
43906 | cat >>confdefs.h <<\_ACEOF | |
43907 | #define wxUSE_STD_STRING 1 | |
43908 | _ACEOF | |
43909 | ||
43910 | fi | |
43911 | ||
07158944 VZ |
43912 | if test "$wxUSE_STDPATHS" = "yes"; then |
43913 | cat >>confdefs.h <<\_ACEOF | |
43914 | #define wxUSE_STDPATHS 1 | |
43915 | _ACEOF | |
43916 | ||
43917 | fi | |
43918 | ||
a848cd7e SC |
43919 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
43920 | cat >>confdefs.h <<\_ACEOF | |
43921 | #define wxUSE_TEXTBUFFER 1 | |
43922 | _ACEOF | |
43923 | ||
43924 | fi | |
43925 | ||
43926 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
43927 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
43928 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
43929 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
43930 | else | |
43931 | cat >>confdefs.h <<\_ACEOF | |
43932 | #define wxUSE_TEXTFILE 1 | |
43933 | _ACEOF | |
43934 | ||
43935 | fi | |
43936 | fi | |
43937 | ||
43938 | if test "$wxUSE_CONFIG" = "yes" ; then | |
43939 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
43940 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
43941 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
43942 | else | |
43943 | cat >>confdefs.h <<\_ACEOF | |
43944 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
43945 | _ACEOF |
43946 | ||
43947 | cat >>confdefs.h <<\_ACEOF | |
43948 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
43949 | _ACEOF |
43950 | ||
43951 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
43952 | fi | |
43953 | fi | |
43954 | ||
43955 | if test "$wxUSE_INTL" = "yes" ; then | |
43956 | if test "$wxUSE_FILE" != "yes"; then | |
43957 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
43958 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
43959 | else | |
43960 | cat >>confdefs.h <<\_ACEOF | |
43961 | #define wxUSE_INTL 1 | |
43962 | _ACEOF | |
43963 | ||
43964 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
43965 | GUIDIST="$GUIDIST INTL_DIST" | |
43966 | fi | |
43967 | fi | |
43968 | ||
43969 | if test "$wxUSE_LOG" = "yes"; then | |
43970 | cat >>confdefs.h <<\_ACEOF | |
43971 | #define wxUSE_LOG 1 | |
43972 | _ACEOF | |
43973 | ||
43974 | ||
43975 | if test "$wxUSE_LOGGUI" = "yes"; then | |
43976 | cat >>confdefs.h <<\_ACEOF | |
43977 | #define wxUSE_LOGGUI 1 | |
43978 | _ACEOF | |
43979 | ||
43980 | fi | |
43981 | ||
43982 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
43983 | cat >>confdefs.h <<\_ACEOF | |
43984 | #define wxUSE_LOGWINDOW 1 | |
43985 | _ACEOF | |
43986 | ||
43987 | fi | |
43988 | ||
43989 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
43990 | cat >>confdefs.h <<\_ACEOF | |
43991 | #define wxUSE_LOG_DIALOG 1 | |
43992 | _ACEOF | |
43993 | ||
43994 | fi | |
0b78747f MW |
43995 | |
43996 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
43997 | fi |
43998 | ||
43999 | if test "$wxUSE_LONGLONG" = "yes"; then | |
44000 | cat >>confdefs.h <<\_ACEOF | |
44001 | #define wxUSE_LONGLONG 1 | |
44002 | _ACEOF | |
44003 | ||
44004 | fi | |
44005 | ||
44006 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
44007 | cat >>confdefs.h <<\_ACEOF | |
44008 | #define wxUSE_GEOMETRY 1 | |
44009 | _ACEOF | |
44010 | ||
44011 | fi | |
44012 | ||
a848cd7e SC |
44013 | if test "$wxUSE_STREAMS" = "yes" ; then |
44014 | cat >>confdefs.h <<\_ACEOF | |
44015 | #define wxUSE_STREAMS 1 | |
44016 | _ACEOF | |
44017 | ||
44018 | fi | |
44019 | ||
8b6682b9 JS |
44020 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then |
44021 | cat >>confdefs.h <<\_ACEOF | |
44022 | #define wxUSE_PRINTF_POS_PARAMS 1 | |
44023 | _ACEOF | |
44024 | ||
44025 | fi | |
44026 | ||
44027 | ||
a848cd7e SC |
44028 | |
44029 | if test "$wxUSE_DATETIME" = "yes"; then | |
44030 | ||
44031 | for ac_func in strptime | |
44032 | do | |
44033 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44034 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44035 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44036 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44038 | else | |
44039 | cat >conftest.$ac_ext <<_ACEOF | |
44040 | /* confdefs.h. */ | |
44041 | _ACEOF | |
44042 | cat confdefs.h >>conftest.$ac_ext | |
44043 | cat >>conftest.$ac_ext <<_ACEOF | |
44044 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44045 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44046 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44047 | #define $ac_func innocuous_$ac_func | |
44048 | ||
a848cd7e SC |
44049 | /* System header to define __stub macros and hopefully few prototypes, |
44050 | which can conflict with char $ac_func (); below. | |
44051 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44052 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44053 | |
a848cd7e SC |
44054 | #ifdef __STDC__ |
44055 | # include <limits.h> | |
44056 | #else | |
44057 | # include <assert.h> | |
44058 | #endif | |
ac1cb8d3 VS |
44059 | |
44060 | #undef $ac_func | |
44061 | ||
a848cd7e SC |
44062 | /* Override any gcc2 internal prototype to avoid an error. */ |
44063 | #ifdef __cplusplus | |
44064 | extern "C" | |
44065 | { | |
44066 | #endif | |
44067 | /* We use char because int might match the return type of a gcc2 | |
44068 | builtin and then its argument prototype would still apply. */ | |
44069 | char $ac_func (); | |
44070 | /* The GNU C library defines this for functions which it implements | |
44071 | to always fail with ENOSYS. Some functions are actually named | |
44072 | something starting with __ and the normal name is an alias. */ | |
44073 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44074 | choke me | |
44075 | #else | |
44076 | char (*f) () = $ac_func; | |
44077 | #endif | |
44078 | #ifdef __cplusplus | |
44079 | } | |
44080 | #endif | |
44081 | ||
44082 | int | |
44083 | main () | |
44084 | { | |
44085 | return f != $ac_func; | |
44086 | ; | |
44087 | return 0; | |
44088 | } | |
44089 | _ACEOF | |
44090 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44092 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44093 | ac_status=$? |
ac1cb8d3 VS |
44094 | grep -v '^ *+' conftest.er1 >conftest.err |
44095 | rm -f conftest.er1 | |
44096 | cat conftest.err >&5 | |
a848cd7e SC |
44097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44098 | (exit $ac_status); } && | |
bb9e79c0 | 44099 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44101 | (eval $ac_try) 2>&5 | |
44102 | ac_status=$? | |
44103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44104 | (exit $ac_status); }; } && | |
44105 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44107 | (eval $ac_try) 2>&5 | |
44108 | ac_status=$? | |
44109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44110 | (exit $ac_status); }; }; then | |
44111 | eval "$as_ac_var=yes" | |
44112 | else | |
44113 | echo "$as_me: failed program was:" >&5 | |
44114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44115 | ||
44116 | eval "$as_ac_var=no" | |
44117 | fi | |
ac1cb8d3 VS |
44118 | rm -f conftest.err conftest.$ac_objext \ |
44119 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44120 | fi |
44121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44122 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44123 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44124 | cat >>confdefs.h <<_ACEOF | |
44125 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44126 | _ACEOF | |
44127 | ||
44128 | fi | |
44129 | done | |
44130 | ||
f536f005 VZ |
44131 | if test "$ac_cv_func_strptime" = "yes"; then |
44132 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
44133 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
44134 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
44135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44136 | else | |
44137 | ||
f536f005 VZ |
44138 | cat >conftest.$ac_ext <<_ACEOF |
44139 | /* confdefs.h. */ | |
44140 | _ACEOF | |
44141 | cat confdefs.h >>conftest.$ac_ext | |
44142 | cat >>conftest.$ac_ext <<_ACEOF | |
44143 | /* end confdefs.h. */ | |
44144 | ||
44145 | #include <time.h> | |
44146 | ||
44147 | int | |
44148 | main () | |
44149 | { | |
44150 | ||
44151 | struct tm t; | |
44152 | strptime("foo", "bar", &t); | |
44153 | ||
44154 | ; | |
44155 | return 0; | |
44156 | } | |
44157 | _ACEOF | |
44158 | rm -f conftest.$ac_objext | |
44159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44160 | (eval $ac_compile) 2>conftest.er1 | |
44161 | ac_status=$? | |
44162 | grep -v '^ *+' conftest.er1 >conftest.err | |
44163 | rm -f conftest.er1 | |
44164 | cat conftest.err >&5 | |
44165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44166 | (exit $ac_status); } && | |
bb9e79c0 | 44167 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f536f005 VZ |
44168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44169 | (eval $ac_try) 2>&5 | |
44170 | ac_status=$? | |
44171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44172 | (exit $ac_status); }; } && | |
44173 | { ac_try='test -s conftest.$ac_objext' | |
44174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44175 | (eval $ac_try) 2>&5 | |
44176 | ac_status=$? | |
44177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44178 | (exit $ac_status); }; }; then | |
44179 | wx_cv_func_strptime_decl=yes | |
44180 | else | |
44181 | echo "$as_me: failed program was:" >&5 | |
44182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44183 | ||
44184 | wx_cv_func_strptime_decl=no | |
44185 | ||
44186 | fi | |
44187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f536f005 VZ |
44188 | |
44189 | ||
44190 | fi | |
44191 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
44192 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
44193 | fi | |
44194 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
44195 | cat >>confdefs.h <<\_ACEOF | |
44196 | #define HAVE_STRPTIME_DECL 1 | |
44197 | _ACEOF | |
44198 | ||
44199 | fi | |
a848cd7e SC |
44200 | |
44201 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
44202 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
44203 | if test "${wx_cv_var_timezone+set}" = set; then | |
44204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44205 | else | |
44206 | ||
44207 | cat >conftest.$ac_ext <<_ACEOF | |
44208 | /* confdefs.h. */ | |
44209 | _ACEOF | |
44210 | cat confdefs.h >>conftest.$ac_ext | |
44211 | cat >>conftest.$ac_ext <<_ACEOF | |
44212 | /* end confdefs.h. */ | |
44213 | ||
44214 | #include <time.h> | |
44215 | ||
44216 | int | |
44217 | main () | |
44218 | { | |
44219 | ||
44220 | int tz; | |
44221 | tz = timezone; | |
44222 | ||
44223 | ; | |
44224 | return 0; | |
44225 | } | |
44226 | _ACEOF | |
44227 | rm -f conftest.$ac_objext | |
44228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44229 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44230 | ac_status=$? |
ac1cb8d3 VS |
44231 | grep -v '^ *+' conftest.er1 >conftest.err |
44232 | rm -f conftest.er1 | |
44233 | cat conftest.err >&5 | |
a848cd7e SC |
44234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44235 | (exit $ac_status); } && | |
bb9e79c0 | 44236 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44238 | (eval $ac_try) 2>&5 | |
44239 | ac_status=$? | |
44240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44241 | (exit $ac_status); }; } && | |
44242 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44244 | (eval $ac_try) 2>&5 | |
44245 | ac_status=$? | |
44246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44247 | (exit $ac_status); }; }; then | |
44248 | ||
44249 | wx_cv_var_timezone=timezone | |
44250 | ||
44251 | else | |
44252 | echo "$as_me: failed program was:" >&5 | |
44253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44254 | ||
44255 | ||
44256 | cat >conftest.$ac_ext <<_ACEOF | |
44257 | /* confdefs.h. */ | |
44258 | _ACEOF | |
44259 | cat confdefs.h >>conftest.$ac_ext | |
44260 | cat >>conftest.$ac_ext <<_ACEOF | |
44261 | /* end confdefs.h. */ | |
44262 | ||
44263 | #include <time.h> | |
44264 | ||
44265 | int | |
44266 | main () | |
44267 | { | |
44268 | ||
44269 | int tz; | |
44270 | tz = _timezone; | |
44271 | ||
44272 | ; | |
44273 | return 0; | |
44274 | } | |
44275 | _ACEOF | |
44276 | rm -f conftest.$ac_objext | |
44277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44278 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44279 | ac_status=$? |
ac1cb8d3 VS |
44280 | grep -v '^ *+' conftest.er1 >conftest.err |
44281 | rm -f conftest.er1 | |
44282 | cat conftest.err >&5 | |
a848cd7e SC |
44283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44284 | (exit $ac_status); } && | |
bb9e79c0 | 44285 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44287 | (eval $ac_try) 2>&5 | |
44288 | ac_status=$? | |
44289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44290 | (exit $ac_status); }; } && | |
44291 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44293 | (eval $ac_try) 2>&5 | |
44294 | ac_status=$? | |
44295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44296 | (exit $ac_status); }; }; then | |
44297 | ||
44298 | wx_cv_var_timezone=_timezone | |
44299 | ||
44300 | else | |
44301 | echo "$as_me: failed program was:" >&5 | |
44302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44303 | ||
44304 | ||
44305 | cat >conftest.$ac_ext <<_ACEOF | |
44306 | /* confdefs.h. */ | |
44307 | _ACEOF | |
44308 | cat confdefs.h >>conftest.$ac_ext | |
44309 | cat >>conftest.$ac_ext <<_ACEOF | |
44310 | /* end confdefs.h. */ | |
44311 | ||
44312 | #include <time.h> | |
44313 | ||
44314 | int | |
44315 | main () | |
44316 | { | |
44317 | ||
44318 | int tz; | |
44319 | tz = __timezone; | |
44320 | ||
44321 | ; | |
44322 | return 0; | |
44323 | } | |
44324 | _ACEOF | |
44325 | rm -f conftest.$ac_objext | |
44326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44327 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44328 | ac_status=$? |
ac1cb8d3 VS |
44329 | grep -v '^ *+' conftest.er1 >conftest.err |
44330 | rm -f conftest.er1 | |
44331 | cat conftest.err >&5 | |
a848cd7e SC |
44332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44333 | (exit $ac_status); } && | |
bb9e79c0 | 44334 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44336 | (eval $ac_try) 2>&5 | |
44337 | ac_status=$? | |
44338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44339 | (exit $ac_status); }; } && | |
44340 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44342 | (eval $ac_try) 2>&5 | |
44343 | ac_status=$? | |
44344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44345 | (exit $ac_status); }; }; then | |
44346 | ||
44347 | wx_cv_var_timezone=__timezone | |
44348 | ||
44349 | else | |
44350 | echo "$as_me: failed program was:" >&5 | |
44351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44352 | ||
44353 | ||
44354 | if test "$USE_DOS" = 0 ; then | |
44355 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
44356 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
44357 | fi | |
44358 | ||
44359 | ||
44360 | fi | |
ac1cb8d3 | 44361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44362 | |
44363 | ||
44364 | fi | |
ac1cb8d3 | 44365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44366 | |
44367 | ||
44368 | fi | |
ac1cb8d3 | 44369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44370 | |
44371 | ||
44372 | fi | |
44373 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
44374 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
44375 | ||
44376 | if test "x$wx_cv_var_timezone" != x ; then | |
44377 | cat >>confdefs.h <<_ACEOF | |
44378 | #define WX_TIMEZONE $wx_cv_var_timezone | |
44379 | _ACEOF | |
44380 | ||
44381 | fi | |
44382 | ||
44383 | ||
44384 | for ac_func in localtime | |
44385 | do | |
44386 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44387 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44388 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44389 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44391 | else | |
44392 | cat >conftest.$ac_ext <<_ACEOF | |
44393 | /* confdefs.h. */ | |
44394 | _ACEOF | |
44395 | cat confdefs.h >>conftest.$ac_ext | |
44396 | cat >>conftest.$ac_ext <<_ACEOF | |
44397 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44398 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44399 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44400 | #define $ac_func innocuous_$ac_func | |
44401 | ||
a848cd7e SC |
44402 | /* System header to define __stub macros and hopefully few prototypes, |
44403 | which can conflict with char $ac_func (); below. | |
44404 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44405 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44406 | |
a848cd7e SC |
44407 | #ifdef __STDC__ |
44408 | # include <limits.h> | |
44409 | #else | |
44410 | # include <assert.h> | |
44411 | #endif | |
ac1cb8d3 VS |
44412 | |
44413 | #undef $ac_func | |
44414 | ||
a848cd7e SC |
44415 | /* Override any gcc2 internal prototype to avoid an error. */ |
44416 | #ifdef __cplusplus | |
44417 | extern "C" | |
44418 | { | |
44419 | #endif | |
44420 | /* We use char because int might match the return type of a gcc2 | |
44421 | builtin and then its argument prototype would still apply. */ | |
44422 | char $ac_func (); | |
44423 | /* The GNU C library defines this for functions which it implements | |
44424 | to always fail with ENOSYS. Some functions are actually named | |
44425 | something starting with __ and the normal name is an alias. */ | |
44426 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44427 | choke me | |
44428 | #else | |
44429 | char (*f) () = $ac_func; | |
44430 | #endif | |
44431 | #ifdef __cplusplus | |
44432 | } | |
44433 | #endif | |
44434 | ||
44435 | int | |
44436 | main () | |
44437 | { | |
44438 | return f != $ac_func; | |
44439 | ; | |
44440 | return 0; | |
44441 | } | |
44442 | _ACEOF | |
44443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44445 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44446 | ac_status=$? |
ac1cb8d3 VS |
44447 | grep -v '^ *+' conftest.er1 >conftest.err |
44448 | rm -f conftest.er1 | |
44449 | cat conftest.err >&5 | |
a848cd7e SC |
44450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44451 | (exit $ac_status); } && | |
bb9e79c0 | 44452 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44454 | (eval $ac_try) 2>&5 | |
44455 | ac_status=$? | |
44456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44457 | (exit $ac_status); }; } && | |
44458 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44460 | (eval $ac_try) 2>&5 | |
44461 | ac_status=$? | |
44462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44463 | (exit $ac_status); }; }; then | |
44464 | eval "$as_ac_var=yes" | |
44465 | else | |
44466 | echo "$as_me: failed program was:" >&5 | |
44467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44468 | ||
44469 | eval "$as_ac_var=no" | |
44470 | fi | |
ac1cb8d3 VS |
44471 | rm -f conftest.err conftest.$ac_objext \ |
44472 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44473 | fi |
44474 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44475 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44476 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44477 | cat >>confdefs.h <<_ACEOF | |
44478 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44479 | _ACEOF | |
44480 | ||
44481 | fi | |
44482 | done | |
44483 | ||
44484 | ||
44485 | if test "$ac_cv_func_localtime" = "yes"; then | |
44486 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
44487 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
44488 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
44489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44490 | else | |
44491 | ||
44492 | cat >conftest.$ac_ext <<_ACEOF | |
44493 | /* confdefs.h. */ | |
44494 | _ACEOF | |
44495 | cat confdefs.h >>conftest.$ac_ext | |
44496 | cat >>conftest.$ac_ext <<_ACEOF | |
44497 | /* end confdefs.h. */ | |
44498 | ||
44499 | #include <time.h> | |
44500 | ||
44501 | int | |
44502 | main () | |
44503 | { | |
44504 | ||
44505 | struct tm tm; | |
44506 | tm.tm_gmtoff++; | |
44507 | ||
44508 | ; | |
44509 | return 0; | |
44510 | } | |
44511 | _ACEOF | |
44512 | rm -f conftest.$ac_objext | |
44513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44514 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44515 | ac_status=$? |
ac1cb8d3 VS |
44516 | grep -v '^ *+' conftest.er1 >conftest.err |
44517 | rm -f conftest.er1 | |
44518 | cat conftest.err >&5 | |
a848cd7e SC |
44519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44520 | (exit $ac_status); } && | |
bb9e79c0 | 44521 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44523 | (eval $ac_try) 2>&5 | |
44524 | ac_status=$? | |
44525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44526 | (exit $ac_status); }; } && | |
44527 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44529 | (eval $ac_try) 2>&5 | |
44530 | ac_status=$? | |
44531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44532 | (exit $ac_status); }; }; then | |
44533 | ||
44534 | wx_cv_struct_tm_has_gmtoff=yes | |
44535 | ||
44536 | else | |
44537 | echo "$as_me: failed program was:" >&5 | |
44538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44539 | ||
44540 | wx_cv_struct_tm_has_gmtoff=no | |
44541 | ||
44542 | fi | |
ac1cb8d3 | 44543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44544 | |
44545 | fi | |
44546 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
44547 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
44548 | fi | |
44549 | ||
44550 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
44551 | cat >>confdefs.h <<\_ACEOF | |
44552 | #define WX_GMTOFF_IN_TM 1 | |
44553 | _ACEOF | |
44554 | ||
44555 | fi | |
44556 | ||
44557 | ||
44558 | ||
44559 | for ac_func in gettimeofday ftime | |
44560 | do | |
44561 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44562 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44563 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44564 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44566 | else | |
44567 | cat >conftest.$ac_ext <<_ACEOF | |
44568 | /* confdefs.h. */ | |
44569 | _ACEOF | |
44570 | cat confdefs.h >>conftest.$ac_ext | |
44571 | cat >>conftest.$ac_ext <<_ACEOF | |
44572 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44573 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44574 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44575 | #define $ac_func innocuous_$ac_func | |
44576 | ||
a848cd7e SC |
44577 | /* System header to define __stub macros and hopefully few prototypes, |
44578 | which can conflict with char $ac_func (); below. | |
44579 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44580 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44581 | |
a848cd7e SC |
44582 | #ifdef __STDC__ |
44583 | # include <limits.h> | |
44584 | #else | |
44585 | # include <assert.h> | |
44586 | #endif | |
ac1cb8d3 VS |
44587 | |
44588 | #undef $ac_func | |
44589 | ||
a848cd7e SC |
44590 | /* Override any gcc2 internal prototype to avoid an error. */ |
44591 | #ifdef __cplusplus | |
44592 | extern "C" | |
44593 | { | |
44594 | #endif | |
44595 | /* We use char because int might match the return type of a gcc2 | |
44596 | builtin and then its argument prototype would still apply. */ | |
44597 | char $ac_func (); | |
44598 | /* The GNU C library defines this for functions which it implements | |
44599 | to always fail with ENOSYS. Some functions are actually named | |
44600 | something starting with __ and the normal name is an alias. */ | |
44601 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44602 | choke me | |
44603 | #else | |
44604 | char (*f) () = $ac_func; | |
44605 | #endif | |
44606 | #ifdef __cplusplus | |
44607 | } | |
44608 | #endif | |
44609 | ||
44610 | int | |
44611 | main () | |
44612 | { | |
44613 | return f != $ac_func; | |
44614 | ; | |
44615 | return 0; | |
44616 | } | |
44617 | _ACEOF | |
44618 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44620 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44621 | ac_status=$? |
ac1cb8d3 VS |
44622 | grep -v '^ *+' conftest.er1 >conftest.err |
44623 | rm -f conftest.er1 | |
44624 | cat conftest.err >&5 | |
a848cd7e SC |
44625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44626 | (exit $ac_status); } && | |
bb9e79c0 | 44627 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44629 | (eval $ac_try) 2>&5 | |
44630 | ac_status=$? | |
44631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44632 | (exit $ac_status); }; } && | |
44633 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44635 | (eval $ac_try) 2>&5 | |
44636 | ac_status=$? | |
44637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44638 | (exit $ac_status); }; }; then | |
44639 | eval "$as_ac_var=yes" | |
44640 | else | |
44641 | echo "$as_me: failed program was:" >&5 | |
44642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44643 | ||
44644 | eval "$as_ac_var=no" | |
44645 | fi | |
ac1cb8d3 VS |
44646 | rm -f conftest.err conftest.$ac_objext \ |
44647 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44648 | fi |
44649 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44650 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44651 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44652 | cat >>confdefs.h <<_ACEOF | |
44653 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44654 | _ACEOF | |
44655 | break | |
44656 | fi | |
44657 | done | |
44658 | ||
44659 | ||
44660 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
44661 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
44662 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
44663 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
44664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44665 | else | |
44666 | ||
5d7b7554 | 44667 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
44668 | /* confdefs.h. */ |
44669 | _ACEOF | |
44670 | cat confdefs.h >>conftest.$ac_ext | |
44671 | cat >>conftest.$ac_ext <<_ACEOF | |
44672 | /* end confdefs.h. */ | |
44673 | ||
44674 | #include <sys/time.h> | |
44675 | #include <unistd.h> | |
44676 | ||
44677 | int | |
44678 | main () | |
44679 | { | |
44680 | ||
44681 | struct timeval tv; | |
44682 | gettimeofday(&tv, NULL); | |
44683 | ||
44684 | ; | |
44685 | return 0; | |
44686 | } | |
44687 | _ACEOF | |
44688 | rm -f conftest.$ac_objext | |
44689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44690 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44691 | ac_status=$? |
ac1cb8d3 VS |
44692 | grep -v '^ *+' conftest.er1 >conftest.err |
44693 | rm -f conftest.er1 | |
44694 | cat conftest.err >&5 | |
a848cd7e SC |
44695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44696 | (exit $ac_status); } && | |
bb9e79c0 | 44697 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44699 | (eval $ac_try) 2>&5 | |
44700 | ac_status=$? | |
44701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44702 | (exit $ac_status); }; } && | |
44703 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44705 | (eval $ac_try) 2>&5 | |
44706 | ac_status=$? | |
44707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44708 | (exit $ac_status); }; }; then | |
44709 | wx_cv_func_gettimeofday_has_2_args=yes | |
44710 | else | |
44711 | echo "$as_me: failed program was:" >&5 | |
44712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44713 | ||
44714 | cat >conftest.$ac_ext <<_ACEOF | |
44715 | /* confdefs.h. */ | |
44716 | _ACEOF | |
44717 | cat confdefs.h >>conftest.$ac_ext | |
44718 | cat >>conftest.$ac_ext <<_ACEOF | |
44719 | /* end confdefs.h. */ | |
44720 | ||
44721 | #include <sys/time.h> | |
44722 | #include <unistd.h> | |
44723 | ||
44724 | int | |
44725 | main () | |
44726 | { | |
44727 | ||
44728 | struct timeval tv; | |
44729 | gettimeofday(&tv); | |
44730 | ||
44731 | ; | |
44732 | return 0; | |
44733 | } | |
44734 | _ACEOF | |
44735 | rm -f conftest.$ac_objext | |
44736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44737 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44738 | ac_status=$? |
ac1cb8d3 VS |
44739 | grep -v '^ *+' conftest.er1 >conftest.err |
44740 | rm -f conftest.er1 | |
44741 | cat conftest.err >&5 | |
a848cd7e SC |
44742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44743 | (exit $ac_status); } && | |
bb9e79c0 | 44744 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44746 | (eval $ac_try) 2>&5 | |
44747 | ac_status=$? | |
44748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44749 | (exit $ac_status); }; } && | |
44750 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44752 | (eval $ac_try) 2>&5 | |
44753 | ac_status=$? | |
44754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44755 | (exit $ac_status); }; }; then | |
44756 | wx_cv_func_gettimeofday_has_2_args=no | |
44757 | else | |
44758 | echo "$as_me: failed program was:" >&5 | |
44759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44760 | ||
44761 | ||
44762 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
44763 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
44764 | wx_cv_func_gettimeofday_has_2_args=unknown | |
44765 | ||
44766 | ||
44767 | fi | |
ac1cb8d3 | 44768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44769 | |
44770 | fi | |
ac1cb8d3 | 44771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44772 | |
44773 | fi | |
44774 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
44775 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
44776 | ||
44777 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
44778 | cat >>confdefs.h <<\_ACEOF | |
44779 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
44780 | _ACEOF | |
44781 | ||
44782 | fi | |
44783 | fi | |
44784 | ||
44785 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
44786 | fi | |
44787 | ||
44788 | ||
44789 | if test "$wxUSE_SOCKETS" = "yes"; then | |
44790 | if test "$wxUSE_MGL" = "1"; then | |
44791 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
44792 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
44793 | wxUSE_SOCKETS="no" | |
44794 | fi | |
44795 | fi | |
44796 | ||
44797 | if test "$wxUSE_SOCKETS" = "yes"; then | |
44798 | if test "$TOOLKIT" != "MSW"; then | |
44799 | echo "$as_me:$LINENO: checking for socket" >&5 | |
44800 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
44801 | if test "${ac_cv_func_socket+set}" = set; then | |
44802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44803 | else | |
44804 | cat >conftest.$ac_ext <<_ACEOF | |
44805 | /* confdefs.h. */ | |
44806 | _ACEOF | |
44807 | cat confdefs.h >>conftest.$ac_ext | |
44808 | cat >>conftest.$ac_ext <<_ACEOF | |
44809 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44810 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
44811 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44812 | #define socket innocuous_socket | |
44813 | ||
a848cd7e SC |
44814 | /* System header to define __stub macros and hopefully few prototypes, |
44815 | which can conflict with char socket (); below. | |
44816 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44817 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44818 | |
a848cd7e SC |
44819 | #ifdef __STDC__ |
44820 | # include <limits.h> | |
44821 | #else | |
44822 | # include <assert.h> | |
44823 | #endif | |
ac1cb8d3 VS |
44824 | |
44825 | #undef socket | |
44826 | ||
a848cd7e SC |
44827 | /* Override any gcc2 internal prototype to avoid an error. */ |
44828 | #ifdef __cplusplus | |
44829 | extern "C" | |
44830 | { | |
44831 | #endif | |
44832 | /* We use char because int might match the return type of a gcc2 | |
44833 | builtin and then its argument prototype would still apply. */ | |
44834 | char socket (); | |
44835 | /* The GNU C library defines this for functions which it implements | |
44836 | to always fail with ENOSYS. Some functions are actually named | |
44837 | something starting with __ and the normal name is an alias. */ | |
44838 | #if defined (__stub_socket) || defined (__stub___socket) | |
44839 | choke me | |
44840 | #else | |
44841 | char (*f) () = socket; | |
44842 | #endif | |
44843 | #ifdef __cplusplus | |
44844 | } | |
44845 | #endif | |
44846 | ||
44847 | int | |
44848 | main () | |
44849 | { | |
44850 | return f != socket; | |
44851 | ; | |
44852 | return 0; | |
44853 | } | |
44854 | _ACEOF | |
44855 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44857 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44858 | ac_status=$? |
ac1cb8d3 VS |
44859 | grep -v '^ *+' conftest.er1 >conftest.err |
44860 | rm -f conftest.er1 | |
44861 | cat conftest.err >&5 | |
a848cd7e SC |
44862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44863 | (exit $ac_status); } && | |
bb9e79c0 | 44864 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44866 | (eval $ac_try) 2>&5 | |
44867 | ac_status=$? | |
44868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44869 | (exit $ac_status); }; } && | |
44870 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44872 | (eval $ac_try) 2>&5 | |
44873 | ac_status=$? | |
44874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44875 | (exit $ac_status); }; }; then | |
44876 | ac_cv_func_socket=yes | |
44877 | else | |
44878 | echo "$as_me: failed program was:" >&5 | |
44879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44880 | ||
44881 | ac_cv_func_socket=no | |
44882 | fi | |
ac1cb8d3 VS |
44883 | rm -f conftest.err conftest.$ac_objext \ |
44884 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44885 | fi |
44886 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
44887 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
44888 | if test $ac_cv_func_socket = yes; then | |
44889 | : | |
44890 | else | |
44891 | ||
44892 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
44893 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
44894 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
44895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44896 | else | |
44897 | ac_check_lib_save_LIBS=$LIBS | |
44898 | LIBS="-lsocket $LIBS" | |
44899 | cat >conftest.$ac_ext <<_ACEOF | |
44900 | /* confdefs.h. */ | |
44901 | _ACEOF | |
44902 | cat confdefs.h >>conftest.$ac_ext | |
44903 | cat >>conftest.$ac_ext <<_ACEOF | |
44904 | /* end confdefs.h. */ | |
44905 | ||
44906 | /* Override any gcc2 internal prototype to avoid an error. */ | |
44907 | #ifdef __cplusplus | |
44908 | extern "C" | |
44909 | #endif | |
44910 | /* We use char because int might match the return type of a gcc2 | |
44911 | builtin and then its argument prototype would still apply. */ | |
44912 | char socket (); | |
44913 | int | |
44914 | main () | |
44915 | { | |
44916 | socket (); | |
44917 | ; | |
44918 | return 0; | |
44919 | } | |
44920 | _ACEOF | |
44921 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44923 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44924 | ac_status=$? |
ac1cb8d3 VS |
44925 | grep -v '^ *+' conftest.er1 >conftest.err |
44926 | rm -f conftest.er1 | |
44927 | cat conftest.err >&5 | |
a848cd7e SC |
44928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44929 | (exit $ac_status); } && | |
bb9e79c0 | 44930 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44932 | (eval $ac_try) 2>&5 | |
44933 | ac_status=$? | |
44934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44935 | (exit $ac_status); }; } && | |
44936 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44938 | (eval $ac_try) 2>&5 | |
44939 | ac_status=$? | |
44940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44941 | (exit $ac_status); }; }; then | |
44942 | ac_cv_lib_socket_socket=yes | |
44943 | else | |
44944 | echo "$as_me: failed program was:" >&5 | |
44945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44946 | ||
44947 | ac_cv_lib_socket_socket=no | |
44948 | fi | |
ac1cb8d3 VS |
44949 | rm -f conftest.err conftest.$ac_objext \ |
44950 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44951 | LIBS=$ac_check_lib_save_LIBS |
44952 | fi | |
44953 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
44954 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
44955 | if test $ac_cv_lib_socket_socket = yes; then | |
44956 | if test "$INET_LINK" != " -lsocket"; then | |
44957 | INET_LINK="$INET_LINK -lsocket" | |
44958 | fi | |
44959 | else | |
44960 | ||
44961 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
44962 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
44963 | wxUSE_SOCKETS=no | |
44964 | ||
44965 | ||
44966 | fi | |
44967 | ||
44968 | ||
44969 | ||
44970 | fi | |
44971 | ||
44972 | fi | |
44973 | fi | |
44974 | ||
44975 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
44976 | if test "$TOOLKIT" != "MSW"; then | |
5d7b7554 | 44977 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
a848cd7e SC |
44978 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
44979 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
44980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44981 | else | |
44982 | ||
44983 | cat >conftest.$ac_ext <<_ACEOF | |
44984 | /* confdefs.h. */ | |
44985 | _ACEOF | |
44986 | cat confdefs.h >>conftest.$ac_ext | |
44987 | cat >>conftest.$ac_ext <<_ACEOF | |
44988 | /* end confdefs.h. */ | |
44989 | ||
44990 | #include <sys/types.h> | |
44991 | #include <sys/socket.h> | |
44992 | ||
44993 | int | |
44994 | main () | |
44995 | { | |
44996 | ||
44997 | socklen_t len; | |
44998 | getsockname(0, 0, &len); | |
44999 | ||
45000 | ; | |
45001 | return 0; | |
45002 | } | |
45003 | _ACEOF | |
45004 | rm -f conftest.$ac_objext | |
45005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 45006 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 45007 | ac_status=$? |
ac1cb8d3 VS |
45008 | grep -v '^ *+' conftest.er1 >conftest.err |
45009 | rm -f conftest.er1 | |
45010 | cat conftest.err >&5 | |
a848cd7e SC |
45011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45012 | (exit $ac_status); } && | |
bb9e79c0 | 45013 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
45014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45015 | (eval $ac_try) 2>&5 | |
45016 | ac_status=$? | |
45017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45018 | (exit $ac_status); }; } && | |
45019 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
45020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45021 | (eval $ac_try) 2>&5 | |
45022 | ac_status=$? | |
45023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45024 | (exit $ac_status); }; }; then | |
45025 | wx_cv_type_getsockname3=socklen_t | |
45026 | else | |
45027 | echo "$as_me: failed program was:" >&5 | |
45028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45029 | ||
45030 | ||
6459a506 | 45031 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 45032 | if test "$GCC" = yes ; then |
c92ad099 | 45033 | CXXFLAGS="-Werror $CXXFLAGS" |
a848cd7e SC |
45034 | fi |
45035 | ||
45036 | cat >conftest.$ac_ext <<_ACEOF | |
45037 | /* confdefs.h. */ | |
45038 | _ACEOF | |
45039 | cat confdefs.h >>conftest.$ac_ext | |
45040 | cat >>conftest.$ac_ext <<_ACEOF | |
45041 | /* end confdefs.h. */ | |
45042 | ||
45043 | #include <sys/types.h> | |
45044 | #include <sys/socket.h> | |
45045 | ||
45046 | int | |
45047 | main () | |
45048 | { | |
45049 | ||
45050 | size_t len; | |
45051 | getsockname(0, 0, &len); | |
45052 | ||
45053 | ; | |
45054 | return 0; | |
45055 | } | |
45056 | _ACEOF | |
45057 | rm -f conftest.$ac_objext | |
45058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 45059 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 45060 | ac_status=$? |
ac1cb8d3 VS |
45061 | grep -v '^ *+' conftest.er1 >conftest.err |
45062 | rm -f conftest.er1 | |
45063 | cat conftest.err >&5 | |
a848cd7e SC |
45064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45065 | (exit $ac_status); } && | |
bb9e79c0 | 45066 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
45067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45068 | (eval $ac_try) 2>&5 | |
45069 | ac_status=$? | |
45070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45071 | (exit $ac_status); }; } && | |
45072 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
45073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45074 | (eval $ac_try) 2>&5 | |
45075 | ac_status=$? | |
45076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45077 | (exit $ac_status); }; }; then | |
45078 | wx_cv_type_getsockname3=size_t | |
45079 | else | |
45080 | echo "$as_me: failed program was:" >&5 | |
45081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45082 | ||
45083 | cat >conftest.$ac_ext <<_ACEOF | |
45084 | /* confdefs.h. */ | |
45085 | _ACEOF | |
45086 | cat confdefs.h >>conftest.$ac_ext | |
45087 | cat >>conftest.$ac_ext <<_ACEOF | |
45088 | /* end confdefs.h. */ | |
45089 | ||
45090 | #include <sys/types.h> | |
45091 | #include <sys/socket.h> | |
45092 | ||
45093 | int | |
45094 | main () | |
45095 | { | |
45096 | ||
45097 | int len; | |
45098 | getsockname(0, 0, &len); | |
45099 | ||
45100 | ; | |
45101 | return 0; | |
45102 | } | |
45103 | _ACEOF | |
45104 | rm -f conftest.$ac_objext | |
45105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 45106 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 45107 | ac_status=$? |
ac1cb8d3 VS |
45108 | grep -v '^ *+' conftest.er1 >conftest.err |
45109 | rm -f conftest.er1 | |
45110 | cat conftest.err >&5 | |
a848cd7e SC |
45111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45112 | (exit $ac_status); } && | |
bb9e79c0 | 45113 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
45114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45115 | (eval $ac_try) 2>&5 | |
45116 | ac_status=$? | |
45117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45118 | (exit $ac_status); }; } && | |
45119 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
45120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45121 | (eval $ac_try) 2>&5 | |
45122 | ac_status=$? | |
45123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45124 | (exit $ac_status); }; }; then | |
45125 | wx_cv_type_getsockname3=int | |
45126 | else | |
45127 | echo "$as_me: failed program was:" >&5 | |
45128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45129 | ||
45130 | wx_cv_type_getsockname3=unknown | |
45131 | ||
45132 | fi | |
ac1cb8d3 | 45133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
45134 | |
45135 | fi | |
ac1cb8d3 | 45136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 45137 | |
6459a506 | 45138 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
45139 | |
45140 | ||
45141 | fi | |
ac1cb8d3 | 45142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
45143 | |
45144 | fi | |
45145 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
45146 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
45147 | ||
45148 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
45149 | wxUSE_SOCKETS=no | |
45150 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
45151 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
45152 | else | |
45153 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 45154 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
45155 | _ACEOF |
45156 | ||
45157 | fi | |
45158 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
45159 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
45160 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
45161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45162 | else | |
45163 | ||
45164 | cat >conftest.$ac_ext <<_ACEOF | |
45165 | /* confdefs.h. */ | |
45166 | _ACEOF | |
45167 | cat confdefs.h >>conftest.$ac_ext | |
45168 | cat >>conftest.$ac_ext <<_ACEOF | |
45169 | /* end confdefs.h. */ | |
45170 | ||
45171 | #include <sys/types.h> | |
45172 | #include <sys/socket.h> | |
45173 | ||
45174 | int | |
45175 | main () | |
45176 | { | |
45177 | ||
45178 | socklen_t len; | |
45179 | getsockopt(0, 0, 0, 0, &len); | |
45180 | ||
45181 | ; | |
45182 | return 0; | |
45183 | } | |
45184 | _ACEOF | |
45185 | rm -f conftest.$ac_objext | |
45186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
45187 | (eval $ac_compile) 2>conftest.er1 | |
45188 | ac_status=$? | |
45189 | grep -v '^ *+' conftest.er1 >conftest.err | |
45190 | rm -f conftest.er1 | |
45191 | cat conftest.err >&5 | |
45192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45193 | (exit $ac_status); } && | |
bb9e79c0 | 45194 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
45195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45196 | (eval $ac_try) 2>&5 | |
45197 | ac_status=$? | |
45198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45199 | (exit $ac_status); }; } && | |
45200 | { ac_try='test -s conftest.$ac_objext' | |
45201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
45202 | (eval $ac_try) 2>&5 | |
45203 | ac_status=$? | |
45204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45205 | (exit $ac_status); }; }; then | |
45206 | wx_cv_type_getsockopt5=socklen_t | |
45207 | else | |
45208 | echo "$as_me: failed program was:" >&5 | |
45209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45210 | ||
45211 | ||
6459a506 | 45212 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 45213 | if test "$GCC" = yes ; then |
c92ad099 | 45214 | CXXFLAGS="-Werror $CXXFLAGS" |
5b674b9d DE |
45215 | fi |
45216 | ||
45217 | cat >conftest.$ac_ext <<_ACEOF | |
45218 | /* confdefs.h. */ | |
45219 | _ACEOF | |
45220 | cat confdefs.h >>conftest.$ac_ext | |
45221 | cat >>conftest.$ac_ext <<_ACEOF | |
45222 | /* end confdefs.h. */ | |
45223 | ||
45224 | #include <sys/types.h> | |
45225 | #include <sys/socket.h> | |
45226 | ||
45227 | int | |
45228 | main () | |
45229 | { | |
45230 | ||
45231 | size_t len; | |
45232 | getsockopt(0, 0, 0, 0, &len); | |
45233 | ||
45234 | ; | |
45235 | return 0; | |
45236 | } | |
45237 | _ACEOF | |
45238 | rm -f conftest.$ac_objext | |
45239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
45240 | (eval $ac_compile) 2>conftest.er1 | |
45241 | ac_status=$? | |
45242 | grep -v '^ *+' conftest.er1 >conftest.err | |
45243 | rm -f conftest.er1 | |
45244 | cat conftest.err >&5 | |
45245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45246 | (exit $ac_status); } && | |
bb9e79c0 | 45247 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
45248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45249 | (eval $ac_try) 2>&5 | |
45250 | ac_status=$? | |
45251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45252 | (exit $ac_status); }; } && | |
45253 | { ac_try='test -s conftest.$ac_objext' | |
45254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
45255 | (eval $ac_try) 2>&5 | |
45256 | ac_status=$? | |
45257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45258 | (exit $ac_status); }; }; then | |
45259 | wx_cv_type_getsockopt5=size_t | |
45260 | else | |
45261 | echo "$as_me: failed program was:" >&5 | |
45262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45263 | ||
45264 | cat >conftest.$ac_ext <<_ACEOF | |
45265 | /* confdefs.h. */ | |
45266 | _ACEOF | |
45267 | cat confdefs.h >>conftest.$ac_ext | |
45268 | cat >>conftest.$ac_ext <<_ACEOF | |
45269 | /* end confdefs.h. */ | |
45270 | ||
45271 | #include <sys/types.h> | |
45272 | #include <sys/socket.h> | |
45273 | ||
45274 | int | |
45275 | main () | |
45276 | { | |
45277 | ||
45278 | int len; | |
45279 | getsockopt(0, 0, 0, 0, &len); | |
45280 | ||
45281 | ; | |
45282 | return 0; | |
45283 | } | |
45284 | _ACEOF | |
45285 | rm -f conftest.$ac_objext | |
45286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
45287 | (eval $ac_compile) 2>conftest.er1 | |
45288 | ac_status=$? | |
45289 | grep -v '^ *+' conftest.er1 >conftest.err | |
45290 | rm -f conftest.er1 | |
45291 | cat conftest.err >&5 | |
45292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45293 | (exit $ac_status); } && | |
bb9e79c0 | 45294 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
45295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45296 | (eval $ac_try) 2>&5 | |
45297 | ac_status=$? | |
45298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45299 | (exit $ac_status); }; } && | |
45300 | { ac_try='test -s conftest.$ac_objext' | |
45301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
45302 | (eval $ac_try) 2>&5 | |
45303 | ac_status=$? | |
45304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45305 | (exit $ac_status); }; }; then | |
45306 | wx_cv_type_getsockopt5=int | |
45307 | else | |
45308 | echo "$as_me: failed program was:" >&5 | |
45309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45310 | ||
45311 | wx_cv_type_getsockopt5=unknown | |
45312 | ||
45313 | fi | |
45314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
45315 | ||
45316 | fi | |
45317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
45318 | ||
6459a506 | 45319 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
45320 | |
45321 | ||
45322 | fi | |
45323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
45324 | ||
45325 | fi | |
45326 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
45327 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
45328 | ||
45329 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
45330 | wxUSE_SOCKETS=no | |
45331 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
45332 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
45333 | else | |
45334 | cat >>confdefs.h <<_ACEOF | |
45335 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
45336 | _ACEOF |
45337 | ||
45338 | fi | |
45339 | fi | |
45340 | fi | |
45341 | ||
45342 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
45343 | cat >>confdefs.h <<\_ACEOF | |
45344 | #define wxUSE_SOCKETS 1 | |
45345 | _ACEOF | |
45346 | ||
45347 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
45348 | fi | |
45349 | ||
45350 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
45351 | if test "$wxUSE_SOCKETS" != "yes"; then | |
45352 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
45353 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
45354 | wxUSE_PROTOCOL=no | |
45355 | fi | |
45356 | fi | |
45357 | ||
45358 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
45359 | cat >>confdefs.h <<\_ACEOF | |
45360 | #define wxUSE_PROTOCOL 1 | |
45361 | _ACEOF | |
45362 | ||
45363 | ||
45364 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
45365 | cat >>confdefs.h <<\_ACEOF | |
45366 | #define wxUSE_PROTOCOL_HTTP 1 | |
45367 | _ACEOF | |
45368 | ||
45369 | fi | |
45370 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
45371 | cat >>confdefs.h <<\_ACEOF | |
45372 | #define wxUSE_PROTOCOL_FTP 1 | |
45373 | _ACEOF | |
45374 | ||
45375 | fi | |
45376 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
45377 | cat >>confdefs.h <<\_ACEOF | |
45378 | #define wxUSE_PROTOCOL_FILE 1 | |
45379 | _ACEOF | |
45380 | ||
45381 | fi | |
45382 | else | |
45383 | if test "$wxUSE_FS_INET" = "yes"; then | |
45384 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
45385 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
45386 | wxUSE_FS_INET="no" | |
45387 | fi | |
45388 | fi | |
45389 | ||
45390 | if test "$wxUSE_URL" = "yes"; then | |
45391 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
45392 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
45393 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
45394 | wxUSE_URL=no | |
45395 | fi | |
45396 | if test "$wxUSE_URL" = "yes"; then | |
45397 | cat >>confdefs.h <<\_ACEOF | |
45398 | #define wxUSE_URL 1 | |
45399 | _ACEOF | |
45400 | ||
45401 | fi | |
45402 | fi | |
45403 | ||
ca5c6ac3 VZ |
45404 | if test "$wxUSE_VARIANT" = "yes"; then |
45405 | cat >>confdefs.h <<\_ACEOF | |
45406 | #define wxUSE_VARIANT 1 | |
45407 | _ACEOF | |
45408 | ||
45409 | fi | |
45410 | ||
a848cd7e SC |
45411 | if test "$wxUSE_FS_INET" = "yes"; then |
45412 | cat >>confdefs.h <<\_ACEOF | |
45413 | #define wxUSE_FS_INET 1 | |
45414 | _ACEOF | |
45415 | ||
45416 | fi | |
45417 | ||
45418 | ||
ee45c548 MW |
45419 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
45420 | wxUSE_JOYSTICK=no | |
45421 | ||
45422 | if test "$TOOLKIT" = "MSW"; then | |
45423 | wxUSE_JOYSTICK=yes | |
45424 | ||
45425 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
45426 | if test "$USE_DARWIN" = 1; then | |
45427 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
45428 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
ee45c548 MW |
45429 | cat >conftest.$ac_ext <<_ACEOF |
45430 | /* confdefs.h. */ | |
45431 | _ACEOF | |
45432 | cat confdefs.h >>conftest.$ac_ext | |
45433 | cat >>conftest.$ac_ext <<_ACEOF | |
45434 | /* end confdefs.h. */ | |
45435 | #include <IOKit/hid/IOHIDLib.h> | |
45436 | int | |
45437 | main () | |
45438 | { | |
45439 | IOHIDQueueInterface *qi = NULL; | |
45440 | IOHIDCallbackFunction cb = NULL; | |
45441 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
45442 | ; | |
45443 | return 0; | |
45444 | } | |
45445 | _ACEOF | |
45446 | rm -f conftest.$ac_objext | |
45447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
45448 | (eval $ac_compile) 2>conftest.er1 | |
45449 | ac_status=$? | |
45450 | grep -v '^ *+' conftest.er1 >conftest.err | |
45451 | rm -f conftest.er1 | |
45452 | cat conftest.err >&5 | |
45453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45454 | (exit $ac_status); } && | |
bb9e79c0 | 45455 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ee45c548 MW |
45456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45457 | (eval $ac_try) 2>&5 | |
45458 | ac_status=$? | |
45459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45460 | (exit $ac_status); }; } && | |
45461 | { ac_try='test -s conftest.$ac_objext' | |
45462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
45463 | (eval $ac_try) 2>&5 | |
45464 | ac_status=$? | |
45465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45466 | (exit $ac_status); }; }; then | |
45467 | wxUSE_JOYSTICK=yes | |
a848cd7e | 45468 | |
ee45c548 MW |
45469 | else |
45470 | echo "$as_me: failed program was:" >&5 | |
45471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45472 | ||
45473 | fi | |
45474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ee45c548 MW |
45475 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 |
45476 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
45477 | fi | |
45478 | ||
45479 | else | |
b6814e24 | 45480 | if test "$wxUSE_MGL" != "1"; then |
a848cd7e SC |
45481 | |
45482 | for ac_header in linux/joystick.h | |
45483 | do | |
45484 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
45485 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
45486 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
45487 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
45488 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
45489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45490 | fi | |
45491 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
45492 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
45493 | else | |
45494 | # Is the header compilable? | |
45495 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
45496 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
45497 | cat >conftest.$ac_ext <<_ACEOF | |
45498 | /* confdefs.h. */ | |
45499 | _ACEOF | |
45500 | cat confdefs.h >>conftest.$ac_ext | |
45501 | cat >>conftest.$ac_ext <<_ACEOF | |
45502 | /* end confdefs.h. */ | |
45503 | $ac_includes_default | |
45504 | #include <$ac_header> | |
45505 | _ACEOF | |
45506 | rm -f conftest.$ac_objext | |
45507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 45508 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 45509 | ac_status=$? |
ac1cb8d3 VS |
45510 | grep -v '^ *+' conftest.er1 >conftest.err |
45511 | rm -f conftest.er1 | |
45512 | cat conftest.err >&5 | |
a848cd7e SC |
45513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45514 | (exit $ac_status); } && | |
bb9e79c0 | 45515 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
45516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45517 | (eval $ac_try) 2>&5 | |
45518 | ac_status=$? | |
45519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45520 | (exit $ac_status); }; } && | |
45521 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
45522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45523 | (eval $ac_try) 2>&5 | |
45524 | ac_status=$? | |
45525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45526 | (exit $ac_status); }; }; then | |
45527 | ac_header_compiler=yes | |
45528 | else | |
45529 | echo "$as_me: failed program was:" >&5 | |
45530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45531 | ||
45532 | ac_header_compiler=no | |
45533 | fi | |
ac1cb8d3 | 45534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
45535 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
45536 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
45537 | ||
45538 | # Is the header present? | |
45539 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
45540 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
45541 | cat >conftest.$ac_ext <<_ACEOF | |
45542 | /* confdefs.h. */ | |
45543 | _ACEOF | |
45544 | cat confdefs.h >>conftest.$ac_ext | |
45545 | cat >>conftest.$ac_ext <<_ACEOF | |
45546 | /* end confdefs.h. */ | |
45547 | #include <$ac_header> | |
45548 | _ACEOF | |
45549 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
45550 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
45551 | ac_status=$? | |
45552 | grep -v '^ *+' conftest.er1 >conftest.err | |
45553 | rm -f conftest.er1 | |
45554 | cat conftest.err >&5 | |
45555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45556 | (exit $ac_status); } >/dev/null; then | |
45557 | if test -s conftest.err; then | |
5d7b7554 VZ |
45558 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
45559 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
45560 | else |
45561 | ac_cpp_err= | |
45562 | fi | |
45563 | else | |
45564 | ac_cpp_err=yes | |
45565 | fi | |
45566 | if test -z "$ac_cpp_err"; then | |
45567 | ac_header_preproc=yes | |
45568 | else | |
45569 | echo "$as_me: failed program was:" >&5 | |
45570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45571 | ||
45572 | ac_header_preproc=no | |
45573 | fi | |
45574 | rm -f conftest.err conftest.$ac_ext | |
45575 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
45576 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
45577 | ||
45578 | # So? What about this header? | |
5d7b7554 | 45579 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 45580 | yes:no: ) |
a848cd7e SC |
45581 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
45582 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
45583 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
45584 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
45585 | ac_header_preproc=yes | |
a848cd7e | 45586 | ;; |
ac1cb8d3 | 45587 | no:yes:* ) |
a848cd7e SC |
45588 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
45589 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
45590 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
45591 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
45592 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
45593 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
45594 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
45595 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
45596 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
45597 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
45598 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
45599 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
45600 | ( |
45601 | cat <<\_ASBOX | |
ac1cb8d3 VS |
45602 | ## ----------------------------------------- ## |
45603 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
45604 | ## ----------------------------------------- ## | |
a848cd7e SC |
45605 | _ASBOX |
45606 | ) | | |
45607 | sed "s/^/$as_me: WARNING: /" >&2 | |
45608 | ;; | |
45609 | esac | |
45610 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
45611 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
45612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
45613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45614 | else | |
ac1cb8d3 | 45615 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
45616 | fi |
45617 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
45618 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
45619 | ||
45620 | fi | |
45621 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45622 | cat >>confdefs.h <<_ACEOF | |
45623 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
45624 | _ACEOF | |
ee45c548 | 45625 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
45626 | fi |
45627 | ||
45628 | done | |
45629 | ||
b6814e24 | 45630 | fi |
ee45c548 | 45631 | fi |
4cb1d3da | 45632 | |
ee45c548 MW |
45633 | if test "$wxUSE_JOYSTICK" = "yes"; then |
45634 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
45635 | #define wxUSE_JOYSTICK 1 |
45636 | _ACEOF | |
45637 | ||
ee45c548 MW |
45638 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
45639 | else | |
45640 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
45641 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
45642 | fi |
45643 | fi | |
45644 | ||
45645 | ||
45646 | ||
45647 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
45648 | cat >>confdefs.h <<\_ACEOF | |
45649 | #define wxUSE_FONTMAP 1 | |
45650 | _ACEOF | |
45651 | ||
45652 | fi | |
45653 | ||
45654 | if test "$wxUSE_UNICODE" = "yes" ; then | |
45655 | cat >>confdefs.h <<\_ACEOF | |
45656 | #define wxUSE_UNICODE 1 | |
45657 | _ACEOF | |
45658 | ||
45659 | ||
45660 | if test "$USE_WIN32" != 1; then | |
45661 | wxUSE_UNICODE_MSLU=no | |
45662 | fi | |
45663 | ||
45664 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
45665 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
45666 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
45667 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
45668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45669 | else | |
45670 | ac_check_lib_save_LIBS=$LIBS | |
45671 | LIBS="-lunicows $LIBS" | |
45672 | cat >conftest.$ac_ext <<_ACEOF | |
45673 | /* confdefs.h. */ | |
45674 | _ACEOF | |
45675 | cat confdefs.h >>conftest.$ac_ext | |
45676 | cat >>conftest.$ac_ext <<_ACEOF | |
45677 | /* end confdefs.h. */ | |
45678 | ||
45679 | ||
45680 | int | |
45681 | main () | |
45682 | { | |
45683 | main (); | |
45684 | ; | |
45685 | return 0; | |
45686 | } | |
45687 | _ACEOF | |
45688 | rm -f conftest.$ac_objext conftest$ac_exeext | |
45689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 45690 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 45691 | ac_status=$? |
ac1cb8d3 VS |
45692 | grep -v '^ *+' conftest.er1 >conftest.err |
45693 | rm -f conftest.er1 | |
45694 | cat conftest.err >&5 | |
a848cd7e SC |
45695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45696 | (exit $ac_status); } && | |
bb9e79c0 | 45697 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
45698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45699 | (eval $ac_try) 2>&5 | |
45700 | ac_status=$? | |
45701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45702 | (exit $ac_status); }; } && | |
45703 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
45704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45705 | (eval $ac_try) 2>&5 | |
45706 | ac_status=$? | |
45707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45708 | (exit $ac_status); }; }; then | |
45709 | ac_cv_lib_unicows_main=yes | |
45710 | else | |
45711 | echo "$as_me: failed program was:" >&5 | |
45712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45713 | ||
45714 | ac_cv_lib_unicows_main=no | |
45715 | fi | |
ac1cb8d3 VS |
45716 | rm -f conftest.err conftest.$ac_objext \ |
45717 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
45718 | LIBS=$ac_check_lib_save_LIBS |
45719 | fi | |
45720 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
45721 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
45722 | if test $ac_cv_lib_unicows_main = yes; then | |
45723 | ||
45724 | cat >>confdefs.h <<\_ACEOF | |
45725 | #define wxUSE_UNICODE_MSLU 1 | |
45726 | _ACEOF | |
45727 | ||
45728 | ||
45729 | else | |
45730 | ||
45731 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
45732 | Applications will only run on Windows NT/2000/XP!" >&5 | |
45733 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
45734 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
45735 | wxUSE_UNICODE_MSLU=no | |
45736 | ||
45737 | fi | |
45738 | ||
45739 | fi | |
45740 | fi | |
45741 | ||
45742 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
45743 | cat >>confdefs.h <<\_ACEOF | |
45744 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
45745 | _ACEOF | |
45746 | ||
45747 | fi | |
45748 | ||
45749 | ||
45750 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
45751 | cat >>confdefs.h <<\_ACEOF | |
45752 | #define wxUSE_POSTSCRIPT 1 | |
45753 | _ACEOF | |
45754 | ||
45755 | fi | |
45756 | ||
45757 | cat >>confdefs.h <<\_ACEOF | |
45758 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
45759 | _ACEOF | |
45760 | ||
45761 | ||
45762 | cat >>confdefs.h <<\_ACEOF | |
45763 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
45764 | _ACEOF | |
45765 | ||
45766 | ||
45767 | ||
45768 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
45769 | cat >>confdefs.h <<\_ACEOF | |
45770 | #define wxUSE_CONSTRAINTS 1 | |
45771 | _ACEOF | |
45772 | ||
45773 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
45774 | fi | |
45775 | ||
8a7b1113 VZ |
45776 | if test "$wxUSE_MDI" = "yes"; then |
45777 | cat >>confdefs.h <<\_ACEOF | |
45778 | #define wxUSE_MDI 1 | |
45779 | _ACEOF | |
45780 | ||
45781 | ||
45782 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
45783 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
45784 | #define wxUSE_MDI_ARCHITECTURE 1 |
45785 | _ACEOF | |
45786 | ||
8a7b1113 VZ |
45787 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
45788 | fi | |
a848cd7e SC |
45789 | fi |
45790 | ||
45791 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
45792 | cat >>confdefs.h <<\_ACEOF | |
45793 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
45794 | _ACEOF | |
45795 | ||
45796 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
45797 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
45798 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
45799 | fi | |
45800 | fi | |
45801 | ||
45802 | if test "$wxUSE_HELP" = "yes"; then | |
45803 | cat >>confdefs.h <<\_ACEOF | |
45804 | #define wxUSE_HELP 1 | |
45805 | _ACEOF | |
45806 | ||
45807 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
45808 | ||
45809 | if test "$wxUSE_MSW" = 1; then | |
45810 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
45811 | cat >>confdefs.h <<\_ACEOF | |
45812 | #define wxUSE_MS_HTML_HELP 1 | |
45813 | _ACEOF | |
45814 | ||
45815 | fi | |
45816 | fi | |
45817 | ||
45818 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
45819 | if test "$wxUSE_HTML" = "yes"; then | |
45820 | cat >>confdefs.h <<\_ACEOF | |
45821 | #define wxUSE_WXHTML_HELP 1 | |
45822 | _ACEOF | |
45823 | ||
45824 | else | |
45825 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
45826 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
45827 | wxUSE_WXHTML_HELP=no | |
45828 | fi | |
45829 | fi | |
45830 | fi | |
45831 | ||
45832 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
45833 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
45834 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
45835 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
45836 | else | |
45837 | cat >>confdefs.h <<\_ACEOF | |
45838 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
45839 | _ACEOF | |
45840 | ||
45841 | fi | |
45842 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
45843 | fi | |
45844 | ||
45845 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
45846 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
45847 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
45848 | { (exit 1); exit 1; }; } | |
45849 | fi | |
45850 | ||
45851 | ||
efdf6afe VZ |
45852 | if test "$wxUSE_METAFILE" = "yes"; then |
45853 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
45854 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
45855 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
45856 | wxUSE_METAFILE=no | |
45857 | fi | |
45858 | fi | |
45859 | ||
45860 | ||
a848cd7e SC |
45861 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
45862 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
45863 | -o "$wxUSE_OLE" = "yes" \ | |
45864 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
45865 | ||
45866 | for ac_header in ole2.h | |
45867 | do | |
45868 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
45869 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
45870 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
45871 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
45872 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
45873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45874 | fi | |
45875 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
45876 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
45877 | else | |
45878 | # Is the header compilable? | |
45879 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
45880 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
45881 | cat >conftest.$ac_ext <<_ACEOF | |
45882 | /* confdefs.h. */ | |
45883 | _ACEOF | |
45884 | cat confdefs.h >>conftest.$ac_ext | |
45885 | cat >>conftest.$ac_ext <<_ACEOF | |
45886 | /* end confdefs.h. */ | |
45887 | $ac_includes_default | |
45888 | #include <$ac_header> | |
45889 | _ACEOF | |
45890 | rm -f conftest.$ac_objext | |
45891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 45892 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 45893 | ac_status=$? |
ac1cb8d3 VS |
45894 | grep -v '^ *+' conftest.er1 >conftest.err |
45895 | rm -f conftest.er1 | |
45896 | cat conftest.err >&5 | |
a848cd7e SC |
45897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45898 | (exit $ac_status); } && | |
bb9e79c0 | 45899 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
45900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45901 | (eval $ac_try) 2>&5 | |
45902 | ac_status=$? | |
45903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45904 | (exit $ac_status); }; } && | |
45905 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
45906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45907 | (eval $ac_try) 2>&5 | |
45908 | ac_status=$? | |
45909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45910 | (exit $ac_status); }; }; then | |
45911 | ac_header_compiler=yes | |
45912 | else | |
45913 | echo "$as_me: failed program was:" >&5 | |
45914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45915 | ||
45916 | ac_header_compiler=no | |
45917 | fi | |
ac1cb8d3 | 45918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
45919 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
45920 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
45921 | ||
45922 | # Is the header present? | |
45923 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
45924 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
45925 | cat >conftest.$ac_ext <<_ACEOF | |
45926 | /* confdefs.h. */ | |
45927 | _ACEOF | |
45928 | cat confdefs.h >>conftest.$ac_ext | |
45929 | cat >>conftest.$ac_ext <<_ACEOF | |
45930 | /* end confdefs.h. */ | |
45931 | #include <$ac_header> | |
45932 | _ACEOF | |
45933 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
45934 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
45935 | ac_status=$? | |
45936 | grep -v '^ *+' conftest.er1 >conftest.err | |
45937 | rm -f conftest.er1 | |
45938 | cat conftest.err >&5 | |
45939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45940 | (exit $ac_status); } >/dev/null; then | |
45941 | if test -s conftest.err; then | |
5d7b7554 VZ |
45942 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
45943 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
45944 | else |
45945 | ac_cpp_err= | |
45946 | fi | |
45947 | else | |
45948 | ac_cpp_err=yes | |
45949 | fi | |
45950 | if test -z "$ac_cpp_err"; then | |
45951 | ac_header_preproc=yes | |
45952 | else | |
45953 | echo "$as_me: failed program was:" >&5 | |
45954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45955 | ||
45956 | ac_header_preproc=no | |
45957 | fi | |
45958 | rm -f conftest.err conftest.$ac_ext | |
45959 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
45960 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
45961 | ||
45962 | # So? What about this header? | |
5d7b7554 | 45963 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 45964 | yes:no: ) |
a848cd7e SC |
45965 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
45966 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
45967 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
45968 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
45969 | ac_header_preproc=yes | |
a848cd7e | 45970 | ;; |
ac1cb8d3 | 45971 | no:yes:* ) |
a848cd7e SC |
45972 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
45973 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
45974 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
45975 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
45976 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
45977 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
45978 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
45979 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
45980 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
45981 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
45982 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
45983 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
45984 | ( |
45985 | cat <<\_ASBOX | |
ac1cb8d3 VS |
45986 | ## ----------------------------------------- ## |
45987 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
45988 | ## ----------------------------------------- ## | |
a848cd7e SC |
45989 | _ASBOX |
45990 | ) | | |
45991 | sed "s/^/$as_me: WARNING: /" >&2 | |
45992 | ;; | |
45993 | esac | |
45994 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
45995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
45996 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
45997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45998 | else | |
ac1cb8d3 | 45999 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
46000 | fi |
46001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
46002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
46003 | ||
46004 | fi | |
46005 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
46006 | cat >>confdefs.h <<_ACEOF | |
46007 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
46008 | _ACEOF | |
46009 | ||
46010 | fi | |
46011 | ||
46012 | done | |
46013 | ||
46014 | ||
46015 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
46016 | if test "$GCC" = yes ; then | |
a848cd7e SC |
46017 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 |
46018 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
46019 | cat >conftest.$ac_ext <<_ACEOF | |
46020 | /* confdefs.h. */ | |
46021 | _ACEOF | |
46022 | cat confdefs.h >>conftest.$ac_ext | |
46023 | cat >>conftest.$ac_ext <<_ACEOF | |
46024 | /* end confdefs.h. */ | |
46025 | #include <windows.h> | |
46026 | #include <ole2.h> | |
46027 | int | |
46028 | main () | |
46029 | { | |
46030 | ||
46031 | ; | |
46032 | return 0; | |
46033 | } | |
46034 | _ACEOF | |
46035 | rm -f conftest.$ac_objext | |
46036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 46037 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 46038 | ac_status=$? |
ac1cb8d3 VS |
46039 | grep -v '^ *+' conftest.er1 >conftest.err |
46040 | rm -f conftest.er1 | |
46041 | cat conftest.err >&5 | |
a848cd7e SC |
46042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
46043 | (exit $ac_status); } && | |
bb9e79c0 | 46044 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
46045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46046 | (eval $ac_try) 2>&5 | |
46047 | ac_status=$? | |
46048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46049 | (exit $ac_status); }; } && | |
46050 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
46051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46052 | (eval $ac_try) 2>&5 | |
46053 | ac_status=$? | |
46054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46055 | (exit $ac_status); }; }; then | |
46056 | echo "$as_me:$LINENO: result: no" >&5 | |
46057 | echo "${ECHO_T}no" >&6 | |
46058 | else | |
46059 | echo "$as_me: failed program was:" >&5 | |
46060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46061 | ||
46062 | echo "$as_me:$LINENO: result: yes" >&5 | |
46063 | echo "${ECHO_T}yes" >&6 | |
5ff751d6 | 46064 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 46065 | fi |
ac1cb8d3 | 46066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
46067 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
46068 | if test "$wxUSE_OLE" = "yes" ; then | |
46069 | cat >>confdefs.h <<\_ACEOF | |
46070 | #define wxUSE_OLE 1 | |
f43426c1 RD |
46071 | _ACEOF |
46072 | ||
46073 | cat >>confdefs.h <<\_ACEOF | |
46074 | #define wxUSE_OLE_AUTOMATION 1 | |
46075 | _ACEOF | |
46076 | ||
46077 | cat >>confdefs.h <<\_ACEOF | |
46078 | #define wxUSE_OLE_ACTIVEX 1 | |
a848cd7e SC |
46079 | _ACEOF |
46080 | ||
0b78747f | 46081 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
46082 | fi |
46083 | fi | |
46084 | ||
46085 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
46086 | cat >>confdefs.h <<\_ACEOF | |
46087 | #define wxUSE_DATAOBJ 1 | |
46088 | _ACEOF | |
46089 | ||
46090 | fi | |
46091 | else | |
46092 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
46093 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
46094 | ||
46095 | wxUSE_CLIPBOARD=no | |
46096 | wxUSE_DRAG_AND_DROP=no | |
46097 | wxUSE_DATAOBJ=no | |
46098 | wxUSE_OLE=no | |
46099 | fi | |
46100 | ||
46101 | if test "$wxUSE_METAFILE" = "yes"; then | |
46102 | cat >>confdefs.h <<\_ACEOF | |
46103 | #define wxUSE_METAFILE 1 | |
46104 | _ACEOF | |
46105 | ||
46106 | ||
46107 | cat >>confdefs.h <<\_ACEOF | |
46108 | #define wxUSE_ENH_METAFILE 1 | |
46109 | _ACEOF | |
46110 | ||
46111 | fi | |
46112 | fi | |
46113 | ||
46114 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 46115 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
46116 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
46117 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 46118 | wxUSE_IPC=no |
a848cd7e SC |
46119 | fi |
46120 | ||
0b78747f MW |
46121 | if test "$wxUSE_IPC" = "yes"; then |
46122 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
46123 | #define wxUSE_IPC 1 |
46124 | _ACEOF | |
46125 | ||
0b78747f MW |
46126 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
46127 | fi | |
a848cd7e SC |
46128 | fi |
46129 | ||
eb730a0c | 46130 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
46131 | if test "$wxUSE_MGL" = 1; then |
46132 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
46133 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
46134 | wxUSE_DATAOBJ=no | |
46135 | else | |
46136 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
46137 | #define wxUSE_DATAOBJ 1 |
46138 | _ACEOF | |
46139 | ||
2113bc77 | 46140 | fi |
eb730a0c JS |
46141 | else |
46142 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
46143 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
46144 | wxUSE_CLIPBOARD=no | |
46145 | wxUSE_DRAG_AND_DROP=no | |
46146 | fi | |
46147 | ||
a848cd7e SC |
46148 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
46149 | if test "$wxUSE_MGL" = 1; then | |
46150 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
46151 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
46152 | wxUSE_CLIPBOARD=no | |
46153 | fi | |
46154 | ||
46155 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
46156 | cat >>confdefs.h <<\_ACEOF | |
46157 | #define wxUSE_CLIPBOARD 1 | |
46158 | _ACEOF | |
46159 | ||
a848cd7e SC |
46160 | fi |
46161 | fi | |
46162 | ||
46163 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
46164 | if test "$wxUSE_GTK" = 1; then | |
46165 | if test "$WXGTK12" != 1; then | |
46166 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
46167 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
46168 | wxUSE_DRAG_AND_DROP=no | |
46169 | fi | |
46170 | fi | |
46171 | ||
46172 | if test "$wxUSE_MOTIF" = 1; then | |
46173 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
46174 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
46175 | wxUSE_DRAG_AND_DROP=no | |
46176 | fi | |
46177 | ||
46178 | if test "$wxUSE_X11" = 1; then | |
46179 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
46180 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
46181 | wxUSE_DRAG_AND_DROP=no | |
46182 | fi | |
46183 | ||
46184 | if test "$wxUSE_MGL" = 1; then | |
46185 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
46186 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
46187 | wxUSE_DRAG_AND_DROP=no | |
46188 | fi | |
46189 | ||
46190 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
46191 | cat >>confdefs.h <<\_ACEOF | |
46192 | #define wxUSE_DRAG_AND_DROP 1 | |
46193 | _ACEOF | |
46194 | ||
46195 | fi | |
46196 | ||
46197 | fi | |
46198 | ||
46199 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
46200 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
46201 | fi | |
46202 | ||
46203 | if test "$wxUSE_SPLINES" = "yes" ; then | |
46204 | cat >>confdefs.h <<\_ACEOF | |
46205 | #define wxUSE_SPLINES 1 | |
46206 | _ACEOF | |
46207 | ||
46208 | fi | |
46209 | ||
fbe2ca43 SN |
46210 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
46211 | cat >>confdefs.h <<\_ACEOF | |
46212 | #define wxUSE_MOUSEWHEEL 1 | |
46213 | _ACEOF | |
46214 | ||
46215 | fi | |
46216 | ||
a848cd7e SC |
46217 | |
46218 | USES_CONTROLS=0 | |
46219 | if test "$wxUSE_CONTROLS" = "yes"; then | |
46220 | USES_CONTROLS=1 | |
46221 | fi | |
46222 | ||
46223 | if test "$wxUSE_ACCEL" = "yes"; then | |
46224 | cat >>confdefs.h <<\_ACEOF | |
46225 | #define wxUSE_ACCEL 1 | |
46226 | _ACEOF | |
46227 | ||
46228 | USES_CONTROLS=1 | |
46229 | fi | |
46230 | ||
7067783d | 46231 | if test "$wxUSE_ANIMATIONCTRL" = "yes"; then |
3ea50042 VZ |
46232 | cat >>confdefs.h <<\_ACEOF |
46233 | #define wxUSE_ANIMATIONCTRL 1 | |
46234 | _ACEOF | |
46235 | ||
46236 | USES_CONTROLS=1 | |
46237 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate" | |
46238 | fi | |
46239 | ||
a848cd7e SC |
46240 | if test "$wxUSE_BUTTON" = "yes"; then |
46241 | cat >>confdefs.h <<\_ACEOF | |
46242 | #define wxUSE_BUTTON 1 | |
46243 | _ACEOF | |
46244 | ||
46245 | USES_CONTROLS=1 | |
46246 | fi | |
46247 | ||
46248 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
46249 | cat >>confdefs.h <<\_ACEOF | |
46250 | #define wxUSE_BMPBUTTON 1 | |
46251 | _ACEOF | |
46252 | ||
46253 | USES_CONTROLS=1 | |
46254 | fi | |
46255 | ||
46256 | if test "$wxUSE_CALCTRL" = "yes"; then | |
46257 | cat >>confdefs.h <<\_ACEOF | |
46258 | #define wxUSE_CALENDARCTRL 1 | |
46259 | _ACEOF | |
46260 | ||
46261 | USES_CONTROLS=1 | |
46262 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
46263 | fi | |
46264 | ||
46265 | if test "$wxUSE_CARET" = "yes"; then | |
46266 | cat >>confdefs.h <<\_ACEOF | |
46267 | #define wxUSE_CARET 1 | |
46268 | _ACEOF | |
46269 | ||
46270 | USES_CONTROLS=1 | |
46271 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
46272 | fi | |
46273 | ||
bd915ace RR |
46274 | if test "$wxUSE_COLLPANE" = "yes"; then |
46275 | cat >>confdefs.h <<\_ACEOF | |
46276 | #define wxUSE_COLLPANE 1 | |
46277 | _ACEOF | |
46278 | ||
46279 | USES_CONTROLS=1 | |
46280 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane" | |
46281 | fi | |
46282 | ||
a848cd7e SC |
46283 | if test "$wxUSE_COMBOBOX" = "yes"; then |
46284 | cat >>confdefs.h <<\_ACEOF | |
46285 | #define wxUSE_COMBOBOX 1 | |
46286 | _ACEOF | |
46287 | ||
46288 | USES_CONTROLS=1 | |
46289 | fi | |
46290 | ||
a57d600f | 46291 | if test "$wxUSE_COMBOCTRL" = "yes"; then |
642bcba9 | 46292 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 46293 | #define wxUSE_COMBOCTRL 1 |
642bcba9 VZ |
46294 | _ACEOF |
46295 | ||
46296 | USES_CONTROLS=1 | |
46297 | fi | |
46298 | ||
a848cd7e SC |
46299 | if test "$wxUSE_CHOICE" = "yes"; then |
46300 | cat >>confdefs.h <<\_ACEOF | |
46301 | #define wxUSE_CHOICE 1 | |
46302 | _ACEOF | |
46303 | ||
46304 | USES_CONTROLS=1 | |
46305 | fi | |
46306 | ||
92bbdbcd WS |
46307 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
46308 | cat >>confdefs.h <<\_ACEOF | |
46309 | #define wxUSE_CHOICEBOOK 1 | |
46310 | _ACEOF | |
46311 | ||
46312 | USES_CONTROLS=1 | |
46313 | fi | |
46314 | ||
a848cd7e SC |
46315 | if test "$wxUSE_CHECKBOX" = "yes"; then |
46316 | cat >>confdefs.h <<\_ACEOF | |
46317 | #define wxUSE_CHECKBOX 1 | |
46318 | _ACEOF | |
46319 | ||
46320 | USES_CONTROLS=1 | |
46321 | fi | |
46322 | ||
46323 | if test "$wxUSE_CHECKLST" = "yes"; then | |
46324 | cat >>confdefs.h <<\_ACEOF | |
46325 | #define wxUSE_CHECKLISTBOX 1 | |
46326 | _ACEOF | |
46327 | ||
46328 | USES_CONTROLS=1 | |
46329 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
46330 | fi | |
46331 | ||
e9263684 VZ |
46332 | if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then |
46333 | cat >>confdefs.h <<\_ACEOF | |
46334 | #define wxUSE_COLOURPICKERCTRL 1 | |
46335 | _ACEOF | |
46336 | ||
46337 | USES_CONTROLS=1 | |
46338 | fi | |
46339 | ||
da98e9be VZ |
46340 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
46341 | cat >>confdefs.h <<\_ACEOF | |
46342 | #define wxUSE_DATEPICKCTRL 1 | |
46343 | _ACEOF | |
46344 | ||
46345 | USES_CONTROLS=1 | |
46346 | fi | |
46347 | ||
e9263684 VZ |
46348 | if test "$wxUSE_DIRPICKERCTRL" = "yes"; then |
46349 | cat >>confdefs.h <<\_ACEOF | |
46350 | #define wxUSE_DIRPICKERCTRL 1 | |
46351 | _ACEOF | |
46352 | ||
46353 | USES_CONTROLS=1 | |
46354 | fi | |
46355 | ||
46356 | if test "$wxUSE_FILEPICKERCTRL" = "yes"; then | |
46357 | cat >>confdefs.h <<\_ACEOF | |
46358 | #define wxUSE_FILEPICKERCTRL 1 | |
46359 | _ACEOF | |
46360 | ||
46361 | USES_CONTROLS=1 | |
46362 | fi | |
46363 | ||
46364 | if test "$wxUSE_FONTPICKERCTRL" = "yes"; then | |
46365 | cat >>confdefs.h <<\_ACEOF | |
46366 | #define wxUSE_FONTPICKERCTRL 1 | |
46367 | _ACEOF | |
46368 | ||
46369 | USES_CONTROLS=1 | |
46370 | fi | |
46371 | ||
a848cd7e SC |
46372 | if test "$wxUSE_DISPLAY" = "yes"; then |
46373 | cat >>confdefs.h <<\_ACEOF | |
46374 | #define wxUSE_DISPLAY 1 | |
46375 | _ACEOF | |
46376 | ||
0b78747f | 46377 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
46378 | fi |
46379 | ||
88bbc332 RR |
46380 | if test "$wxUSE_DETECT_SM" = "yes"; then |
46381 | cat >>confdefs.h <<\_ACEOF | |
46382 | #define wxUSE_DETECT_SM 1 | |
46383 | _ACEOF | |
46384 | ||
46385 | fi | |
46386 | ||
a848cd7e SC |
46387 | if test "$wxUSE_GAUGE" = "yes"; then |
46388 | cat >>confdefs.h <<\_ACEOF | |
46389 | #define wxUSE_GAUGE 1 | |
46390 | _ACEOF | |
46391 | ||
46392 | USES_CONTROLS=1 | |
46393 | fi | |
46394 | ||
46395 | if test "$wxUSE_GRID" = "yes"; then | |
46396 | cat >>confdefs.h <<\_ACEOF | |
46397 | #define wxUSE_GRID 1 | |
46398 | _ACEOF | |
46399 | ||
46400 | USES_CONTROLS=1 | |
46401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
46402 | fi | |
46403 | ||
6954625c VZ |
46404 | if test "$wxUSE_HYPERLINKCTRL" = "yes"; then |
46405 | cat >>confdefs.h <<\_ACEOF | |
46406 | #define wxUSE_HYPERLINKCTRL 1 | |
46407 | _ACEOF | |
46408 | ||
46409 | USES_CONTROLS=1 | |
46410 | fi | |
46411 | ||
95a46303 RR |
46412 | if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then |
46413 | cat >>confdefs.h <<\_ACEOF | |
46414 | #define wxUSE_BITMAPCOMBOBOX 1 | |
46415 | _ACEOF | |
46416 | ||
46417 | USES_CONTROLS=1 | |
46418 | fi | |
46419 | ||
20e34ecc RR |
46420 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
46421 | cat >>confdefs.h <<\_ACEOF | |
46422 | #define wxUSE_DATAVIEWCTRL 1 | |
46423 | _ACEOF | |
46424 | ||
46425 | USES_CONTROLS=1 | |
46426 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
46427 | fi | |
46428 | ||
a848cd7e SC |
46429 | if test "$wxUSE_IMAGLIST" = "yes"; then |
46430 | cat >>confdefs.h <<\_ACEOF | |
46431 | #define wxUSE_IMAGLIST 1 | |
46432 | _ACEOF | |
46433 | ||
46434 | fi | |
46435 | ||
46436 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
46437 | cat >>confdefs.h <<\_ACEOF | |
46438 | #define wxUSE_LISTBOOK 1 | |
46439 | _ACEOF | |
46440 | ||
46441 | USES_CONTROLS=1 | |
46442 | fi | |
46443 | ||
46444 | if test "$wxUSE_LISTBOX" = "yes"; then | |
46445 | cat >>confdefs.h <<\_ACEOF | |
46446 | #define wxUSE_LISTBOX 1 | |
46447 | _ACEOF | |
46448 | ||
46449 | USES_CONTROLS=1 | |
0b78747f | 46450 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
46451 | fi |
46452 | ||
46453 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
46454 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
46455 | cat >>confdefs.h <<\_ACEOF | |
46456 | #define wxUSE_LISTCTRL 1 | |
46457 | _ACEOF | |
46458 | ||
46459 | USES_CONTROLS=1 | |
46460 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
46461 | else | |
46462 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
46463 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
46464 | fi | |
46465 | fi | |
46466 | ||
46467 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
46468 | cat >>confdefs.h <<\_ACEOF | |
46469 | #define wxUSE_NOTEBOOK 1 | |
46470 | _ACEOF | |
46471 | ||
46472 | USES_CONTROLS=1 | |
46473 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
46474 | fi | |
46475 | ||
a57d600f | 46476 | if test "$wxUSE_ODCOMBOBOX" = "yes"; then |
642bcba9 | 46477 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 46478 | #define wxUSE_ODCOMBOBOX 1 |
642bcba9 VZ |
46479 | _ACEOF |
46480 | ||
46481 | USES_CONTROLS=1 | |
46482 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo" | |
46483 | fi | |
46484 | ||
a848cd7e SC |
46485 | |
46486 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
46487 | cat >>confdefs.h <<\_ACEOF | |
46488 | #define wxUSE_RADIOBOX 1 | |
46489 | _ACEOF | |
46490 | ||
46491 | USES_CONTROLS=1 | |
46492 | fi | |
46493 | ||
46494 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
46495 | cat >>confdefs.h <<\_ACEOF | |
46496 | #define wxUSE_RADIOBTN 1 | |
46497 | _ACEOF | |
46498 | ||
46499 | USES_CONTROLS=1 | |
46500 | fi | |
46501 | ||
46502 | if test "$wxUSE_SASH" = "yes"; then | |
46503 | cat >>confdefs.h <<\_ACEOF | |
46504 | #define wxUSE_SASH 1 | |
46505 | _ACEOF | |
46506 | ||
46507 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
46508 | fi | |
46509 | ||
46510 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
46511 | cat >>confdefs.h <<\_ACEOF | |
46512 | #define wxUSE_SCROLLBAR 1 | |
46513 | _ACEOF | |
46514 | ||
46515 | USES_CONTROLS=1 | |
46516 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
46517 | fi | |
46518 | ||
46519 | if test "$wxUSE_SLIDER" = "yes"; then | |
46520 | cat >>confdefs.h <<\_ACEOF | |
46521 | #define wxUSE_SLIDER 1 | |
46522 | _ACEOF | |
46523 | ||
46524 | USES_CONTROLS=1 | |
46525 | fi | |
46526 | ||
46527 | if test "$wxUSE_SPINBTN" = "yes"; then | |
46528 | cat >>confdefs.h <<\_ACEOF | |
46529 | #define wxUSE_SPINBTN 1 | |
46530 | _ACEOF | |
46531 | ||
46532 | USES_CONTROLS=1 | |
46533 | fi | |
46534 | ||
46535 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
46536 | cat >>confdefs.h <<\_ACEOF | |
46537 | #define wxUSE_SPINCTRL 1 | |
46538 | _ACEOF | |
46539 | ||
46540 | USES_CONTROLS=1 | |
46541 | fi | |
46542 | ||
46543 | if test "$wxUSE_SPLITTER" = "yes"; then | |
46544 | cat >>confdefs.h <<\_ACEOF | |
46545 | #define wxUSE_SPLITTER 1 | |
46546 | _ACEOF | |
46547 | ||
46548 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
46549 | fi | |
46550 | ||
46551 | if test "$wxUSE_STATBMP" = "yes"; then | |
46552 | cat >>confdefs.h <<\_ACEOF | |
46553 | #define wxUSE_STATBMP 1 | |
46554 | _ACEOF | |
46555 | ||
46556 | USES_CONTROLS=1 | |
46557 | fi | |
46558 | ||
46559 | if test "$wxUSE_STATBOX" = "yes"; then | |
46560 | cat >>confdefs.h <<\_ACEOF | |
46561 | #define wxUSE_STATBOX 1 | |
46562 | _ACEOF | |
46563 | ||
46564 | USES_CONTROLS=1 | |
46565 | fi | |
46566 | ||
46567 | if test "$wxUSE_STATTEXT" = "yes"; then | |
46568 | cat >>confdefs.h <<\_ACEOF | |
46569 | #define wxUSE_STATTEXT 1 | |
46570 | _ACEOF | |
46571 | ||
46572 | USES_CONTROLS=1 | |
46573 | fi | |
46574 | ||
46575 | if test "$wxUSE_STATLINE" = "yes"; then | |
46576 | cat >>confdefs.h <<\_ACEOF | |
46577 | #define wxUSE_STATLINE 1 | |
46578 | _ACEOF | |
46579 | ||
46580 | USES_CONTROLS=1 | |
46581 | fi | |
46582 | ||
46583 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
46584 | cat >>confdefs.h <<\_ACEOF |
46585 | #define wxUSE_NATIVE_STATUSBAR 1 | |
46586 | _ACEOF | |
46587 | ||
a848cd7e SC |
46588 | cat >>confdefs.h <<\_ACEOF |
46589 | #define wxUSE_STATUSBAR 1 | |
46590 | _ACEOF | |
46591 | ||
46592 | USES_CONTROLS=1 | |
46593 | ||
46594 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
46595 | fi | |
46596 | ||
f10e38c4 | 46597 | if test "$wxUSE_TAB_DIALOG" = "yes"; then |
a848cd7e SC |
46598 | cat >>confdefs.h <<\_ACEOF |
46599 | #define wxUSE_TAB_DIALOG 1 | |
46600 | _ACEOF | |
46601 | ||
a848cd7e SC |
46602 | fi |
46603 | ||
46604 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
46605 | cat >>confdefs.h <<\_ACEOF | |
46606 | #define wxUSE_TEXTCTRL 1 | |
46607 | _ACEOF | |
46608 | ||
46609 | USES_CONTROLS=1 | |
46610 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
46611 | fi | |
46612 | ||
46613 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
46614 | if test "$wxUSE_COCOA" = 1 ; then | |
46615 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
46616 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
46617 | wxUSE_TOGGLEBTN=no | |
46618 | fi | |
a848cd7e SC |
46619 | |
46620 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
46621 | cat >>confdefs.h <<\_ACEOF | |
46622 | #define wxUSE_TOGGLEBTN 1 | |
46623 | _ACEOF | |
46624 | ||
46625 | USES_CONTROLS=1 | |
46626 | fi | |
46627 | fi | |
46628 | ||
a848cd7e SC |
46629 | if test "$wxUSE_TOOLBAR" = "yes"; then |
46630 | cat >>confdefs.h <<\_ACEOF | |
46631 | #define wxUSE_TOOLBAR 1 | |
46632 | _ACEOF | |
46633 | ||
46634 | USES_CONTROLS=1 | |
46635 | ||
452b6243 VS |
46636 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
46637 | wxUSE_TOOLBAR_NATIVE="no" | |
46638 | else | |
46639 | wxUSE_TOOLBAR_NATIVE="yes" | |
a848cd7e SC |
46640 | cat >>confdefs.h <<\_ACEOF |
46641 | #define wxUSE_TOOLBAR_NATIVE 1 | |
46642 | _ACEOF | |
46643 | ||
a848cd7e SC |
46644 | fi |
46645 | ||
46646 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
46647 | fi | |
46648 | ||
46649 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
46650 | if test "$wxUSE_MOTIF" = 1; then | |
46651 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
46652 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
46653 | else | |
46654 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
46655 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
46656 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
46657 | else | |
46658 | cat >>confdefs.h <<\_ACEOF | |
46659 | #define wxUSE_TOOLTIPS 1 | |
46660 | _ACEOF | |
46661 | ||
46662 | fi | |
46663 | fi | |
46664 | fi | |
46665 | ||
0093c2fc VZ |
46666 | if test "$wxUSE_TREEBOOK" = "yes"; then |
46667 | cat >>confdefs.h <<\_ACEOF | |
46668 | #define wxUSE_TREEBOOK 1 | |
46669 | _ACEOF | |
46670 | ||
46671 | USES_CONTROLS=1 | |
46672 | fi | |
46673 | ||
5ec3bc43 JS |
46674 | if test "$wxUSE_TOOLBOOK" = "yes"; then |
46675 | cat >>confdefs.h <<\_ACEOF | |
46676 | #define wxUSE_TOOLBOOK 1 | |
46677 | _ACEOF | |
46678 | ||
46679 | USES_CONTROLS=1 | |
46680 | fi | |
46681 | ||
a848cd7e SC |
46682 | if test "$wxUSE_TREECTRL" = "yes"; then |
46683 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
46684 | cat >>confdefs.h <<\_ACEOF | |
46685 | #define wxUSE_TREECTRL 1 | |
46686 | _ACEOF | |
46687 | ||
46688 | USES_CONTROLS=1 | |
46689 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
46690 | else | |
46691 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
46692 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
46693 | fi | |
46694 | fi | |
46695 | ||
46696 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
46697 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
46698 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
46699 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
46700 | else | |
46701 | if test "$wxUSE_PM" = 1; then | |
46702 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
46703 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
46704 | else | |
46705 | cat >>confdefs.h <<\_ACEOF | |
46706 | #define wxUSE_POPUPWIN 1 | |
46707 | _ACEOF | |
46708 | ||
0b78747f | 46709 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
46710 | |
46711 | USES_CONTROLS=1 | |
46712 | fi | |
46713 | fi | |
46714 | fi | |
46715 | ||
0dcd06dd | 46716 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
56c6aab7 | 46717 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then |
480b9f18 | 46718 | { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5 |
56c6aab7 | 46719 | echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;} |
b843b628 MB |
46720 | else |
46721 | cat >>confdefs.h <<\_ACEOF | |
46722 | #define wxUSE_DIALUP_MANAGER 1 | |
46723 | _ACEOF | |
46724 | ||
46725 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
46726 | fi | |
46727 | fi | |
46728 | ||
a848cd7e SC |
46729 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
46730 | if test "$wxUSE_PM" = 1; then | |
46731 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
46732 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
46733 | else | |
46734 | cat >>confdefs.h <<\_ACEOF | |
46735 | #define wxUSE_TIPWINDOW 1 | |
46736 | _ACEOF | |
46737 | ||
46738 | fi | |
46739 | fi | |
46740 | ||
46741 | if test "$USES_CONTROLS" = 1; then | |
46742 | cat >>confdefs.h <<\_ACEOF | |
46743 | #define wxUSE_CONTROLS 1 | |
46744 | _ACEOF | |
46745 | ||
46746 | fi | |
46747 | ||
46748 | ||
46749 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
46750 | cat >>confdefs.h <<\_ACEOF | |
46751 | #define wxUSE_ACCESSIBILITY 1 | |
46752 | _ACEOF | |
46753 | ||
46754 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
46755 | fi | |
46756 | ||
38b4a946 VZ |
46757 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
46758 | cat >>confdefs.h <<\_ACEOF | |
46759 | #define wxUSE_DC_CACHEING 1 | |
46760 | _ACEOF | |
46761 | ||
46762 | fi | |
46763 | ||
a848cd7e SC |
46764 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
46765 | cat >>confdefs.h <<\_ACEOF | |
46766 | #define wxUSE_DRAGIMAGE 1 | |
46767 | _ACEOF | |
46768 | ||
46769 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
46770 | fi | |
46771 | ||
46772 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
46773 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
46774 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
46775 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
46776 | else | |
46777 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
46778 | #define wxUSE_EXCEPTIONS 1 |
46779 | _ACEOF | |
46780 | ||
07bea8f0 VS |
46781 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
46782 | fi | |
a848cd7e SC |
46783 | fi |
46784 | ||
46785 | USE_HTML=0 | |
46786 | if test "$wxUSE_HTML" = "yes"; then | |
46787 | cat >>confdefs.h <<\_ACEOF | |
46788 | #define wxUSE_HTML 1 | |
46789 | _ACEOF | |
46790 | ||
46791 | USE_HTML=1 | |
46792 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
46793 | if test "$wxUSE_MAC" = 1; then |
46794 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
46795 | fi | |
a848cd7e | 46796 | fi |
646b6ec1 | 46797 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 46798 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 46799 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 46800 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
07bea8f0 VS |
46801 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 |
46802 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
46803 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
46804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46805 | else | |
46806 | cat >conftest.$ac_ext <<_ACEOF | |
46807 | /* confdefs.h. */ | |
46808 | _ACEOF | |
46809 | cat confdefs.h >>conftest.$ac_ext | |
46810 | cat >>conftest.$ac_ext <<_ACEOF | |
46811 | /* end confdefs.h. */ | |
46812 | #include <Carbon/Carbon.h> | |
46813 | ||
46814 | #include <WebKit/HIWebView.h> | |
46815 | _ACEOF | |
46816 | rm -f conftest.$ac_objext | |
46817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
46818 | (eval $ac_compile) 2>conftest.er1 | |
46819 | ac_status=$? | |
46820 | grep -v '^ *+' conftest.er1 >conftest.err | |
46821 | rm -f conftest.er1 | |
46822 | cat conftest.err >&5 | |
46823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46824 | (exit $ac_status); } && | |
bb9e79c0 | 46825 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
46826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46827 | (eval $ac_try) 2>&5 | |
46828 | ac_status=$? | |
46829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46830 | (exit $ac_status); }; } && | |
46831 | { ac_try='test -s conftest.$ac_objext' | |
46832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
46833 | (eval $ac_try) 2>&5 | |
46834 | ac_status=$? | |
46835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46836 | (exit $ac_status); }; }; then | |
46837 | ac_cv_header_WebKit_HIWebView_h=yes | |
46838 | else | |
46839 | echo "$as_me: failed program was:" >&5 | |
46840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46841 | ||
46842 | ac_cv_header_WebKit_HIWebView_h=no | |
46843 | fi | |
46844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
46845 | fi | |
46846 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
46847 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
46848 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
46849 | ||
46850 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
46851 | #define wxUSE_WEBKIT 1 |
46852 | _ACEOF | |
46853 | ||
07bea8f0 VS |
46854 | WEBKIT_LINK="-framework WebKit" |
46855 | ||
46856 | else | |
46857 | ||
46858 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
46859 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
46860 | wxUSE_WEBKIT=no | |
46861 | ||
646b6ec1 VS |
46862 | fi |
46863 | ||
07bea8f0 VS |
46864 | |
46865 | CPPFLAGS="$old_CPPFLAGS" | |
46866 | elif test "$wxUSE_COCOA" = 1; then | |
46867 | cat >>confdefs.h <<\_ACEOF | |
46868 | #define wxUSE_WEBKIT 1 | |
46869 | _ACEOF | |
46870 | ||
46871 | else | |
46872 | wxUSE_WEBKIT=no | |
46873 | fi | |
46874 | fi | |
46875 | ||
9a8f0513 VS |
46876 | USE_XRC=0 |
46877 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
46878 | if test "$wxUSE_XML" != "yes"; then |
46879 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
46880 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
46881 | wxUSE_XRC=no | |
46882 | else | |
46883 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
46884 | #define wxUSE_XRC 1 |
46885 | _ACEOF | |
46886 | ||
d2ebf0b7 VS |
46887 | USE_XRC=1 |
46888 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
46889 | fi | |
9a8f0513 | 46890 | fi |
07bea8f0 | 46891 | |
3f60522a JS |
46892 | USE_AUI=0 |
46893 | if test "$wxUSE_AUI" = "yes"; then | |
46894 | cat >>confdefs.h <<\_ACEOF | |
46895 | #define wxUSE_AUI 1 | |
46896 | _ACEOF | |
46897 | ||
46898 | USE_AUI=1 | |
46899 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui" | |
46900 | fi | |
46901 | ||
a848cd7e SC |
46902 | if test "$wxUSE_MENUS" = "yes"; then |
46903 | cat >>confdefs.h <<\_ACEOF | |
46904 | #define wxUSE_MENUS 1 | |
46905 | _ACEOF | |
46906 | ||
46907 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
46908 | fi | |
46909 | ||
46910 | if test "$wxUSE_METAFILE" = "yes"; then | |
46911 | cat >>confdefs.h <<\_ACEOF | |
46912 | #define wxUSE_METAFILE 1 | |
46913 | _ACEOF | |
46914 | ||
46915 | fi | |
46916 | ||
46917 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
46918 | cat >>confdefs.h <<\_ACEOF | |
46919 | #define wxUSE_MIMETYPE 1 | |
46920 | _ACEOF | |
46921 | ||
46922 | fi | |
46923 | ||
46924 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
46925 | cat >>confdefs.h <<\_ACEOF | |
46926 | #define wxUSE_MINIFRAME 1 | |
46927 | _ACEOF | |
46928 | ||
46929 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
46930 | fi | |
46931 | ||
46932 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
46933 | cat >>confdefs.h <<\_ACEOF | |
46934 | #define wxUSE_SYSTEM_OPTIONS 1 | |
46935 | _ACEOF | |
46936 | ||
46937 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 46938 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
46939 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
46940 | fi | |
46941 | fi | |
46942 | ||
46943 | ||
46944 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
46945 | cat >>confdefs.h <<\_ACEOF | |
46946 | #define wxUSE_VALIDATORS 1 | |
46947 | _ACEOF | |
46948 | ||
46949 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
46950 | fi | |
46951 | ||
46952 | if test "$wxUSE_PALETTE" = "yes" ; then | |
46953 | cat >>confdefs.h <<\_ACEOF | |
46954 | #define wxUSE_PALETTE 1 | |
46955 | _ACEOF | |
46956 | ||
46957 | fi | |
46958 | ||
46959 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
46960 | LIBS=" -lunicows $LIBS" | |
46961 | fi | |
46962 | ||
91dea314 MW |
46963 | USE_RICHTEXT=0 |
46964 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
46965 | cat >>confdefs.h <<\_ACEOF | |
46966 | #define wxUSE_RICHTEXT 1 | |
46967 | _ACEOF | |
46968 | ||
46969 | USE_RICHTEXT=1 | |
46970 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
46971 | fi | |
46972 | ||
a848cd7e SC |
46973 | |
46974 | if test "$wxUSE_IMAGE" = "yes" ; then | |
46975 | cat >>confdefs.h <<\_ACEOF | |
46976 | #define wxUSE_IMAGE 1 | |
46977 | _ACEOF | |
46978 | ||
46979 | ||
46980 | if test "$wxUSE_GIF" = "yes" ; then | |
46981 | cat >>confdefs.h <<\_ACEOF | |
46982 | #define wxUSE_GIF 1 | |
46983 | _ACEOF | |
46984 | ||
46985 | fi | |
46986 | ||
46987 | if test "$wxUSE_PCX" = "yes" ; then | |
46988 | cat >>confdefs.h <<\_ACEOF | |
46989 | #define wxUSE_PCX 1 | |
46990 | _ACEOF | |
46991 | ||
46992 | fi | |
46993 | ||
bb9e79c0 VZ |
46994 | if test "$wxUSE_TGA" = "yes" ; then |
46995 | cat >>confdefs.h <<\_ACEOF | |
46996 | #define wxUSE_TGA 1 | |
46997 | _ACEOF | |
46998 | ||
46999 | fi | |
47000 | ||
a848cd7e SC |
47001 | if test "$wxUSE_IFF" = "yes" ; then |
47002 | cat >>confdefs.h <<\_ACEOF | |
47003 | #define wxUSE_IFF 1 | |
47004 | _ACEOF | |
47005 | ||
47006 | fi | |
47007 | ||
47008 | if test "$wxUSE_PNM" = "yes" ; then | |
47009 | cat >>confdefs.h <<\_ACEOF | |
47010 | #define wxUSE_PNM 1 | |
47011 | _ACEOF | |
47012 | ||
47013 | fi | |
47014 | ||
47015 | if test "$wxUSE_XPM" = "yes" ; then | |
47016 | cat >>confdefs.h <<\_ACEOF | |
47017 | #define wxUSE_XPM 1 | |
47018 | _ACEOF | |
47019 | ||
47020 | fi | |
47021 | ||
47022 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
47023 | cat >>confdefs.h <<\_ACEOF | |
47024 | #define wxUSE_ICO_CUR 1 | |
47025 | _ACEOF | |
47026 | ||
47027 | fi | |
47028 | fi | |
47029 | ||
47030 | ||
319c5ed4 VZ |
47031 | if test "$wxUSE_ABOUTDLG" = "yes"; then |
47032 | cat >>confdefs.h <<\_ACEOF | |
47033 | #define wxUSE_ABOUTDLG 1 | |
47034 | _ACEOF | |
47035 | ||
47036 | fi | |
47037 | ||
a848cd7e SC |
47038 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
47039 | cat >>confdefs.h <<\_ACEOF | |
47040 | #define wxUSE_CHOICEDLG 1 | |
47041 | _ACEOF | |
47042 | ||
47043 | fi | |
47044 | ||
47045 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
47046 | cat >>confdefs.h <<\_ACEOF | |
47047 | #define wxUSE_COLOURDLG 1 | |
47048 | _ACEOF | |
47049 | ||
47050 | fi | |
47051 | ||
47052 | if test "$wxUSE_FILEDLG" = "yes"; then | |
47053 | cat >>confdefs.h <<\_ACEOF | |
47054 | #define wxUSE_FILEDLG 1 | |
47055 | _ACEOF | |
47056 | ||
47057 | fi | |
47058 | ||
47059 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
47060 | cat >>confdefs.h <<\_ACEOF | |
47061 | #define wxUSE_FINDREPLDLG 1 | |
47062 | _ACEOF | |
47063 | ||
47064 | fi | |
47065 | ||
47066 | if test "$wxUSE_FONTDLG" = "yes"; then | |
47067 | cat >>confdefs.h <<\_ACEOF | |
47068 | #define wxUSE_FONTDLG 1 | |
47069 | _ACEOF | |
47070 | ||
47071 | fi | |
47072 | ||
47073 | if test "$wxUSE_DIRDLG" = "yes"; then | |
47074 | if test "$wxUSE_TREECTRL" != "yes"; then | |
47075 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
47076 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
47077 | else | |
47078 | cat >>confdefs.h <<\_ACEOF | |
47079 | #define wxUSE_DIRDLG 1 | |
47080 | _ACEOF | |
47081 | ||
47082 | fi | |
47083 | fi | |
47084 | ||
47085 | if test "$wxUSE_MSGDLG" = "yes"; then | |
47086 | cat >>confdefs.h <<\_ACEOF | |
47087 | #define wxUSE_MSGDLG 1 | |
47088 | _ACEOF | |
47089 | ||
47090 | fi | |
47091 | ||
47092 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
47093 | cat >>confdefs.h <<\_ACEOF | |
47094 | #define wxUSE_NUMBERDLG 1 | |
47095 | _ACEOF | |
47096 | ||
47097 | fi | |
47098 | ||
47099 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
47100 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
47101 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
47102 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
47103 | else | |
47104 | cat >>confdefs.h <<\_ACEOF | |
47105 | #define wxUSE_PROGRESSDLG 1 | |
47106 | _ACEOF | |
47107 | ||
47108 | fi | |
47109 | fi | |
47110 | ||
47111 | if test "$wxUSE_SPLASH" = "yes"; then | |
47112 | cat >>confdefs.h <<\_ACEOF | |
47113 | #define wxUSE_SPLASH 1 | |
47114 | _ACEOF | |
47115 | ||
2057db16 | 47116 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
47117 | fi |
47118 | ||
47119 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
47120 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
47121 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
47122 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
47123 | else | |
47124 | cat >>confdefs.h <<\_ACEOF | |
47125 | #define wxUSE_STARTUP_TIPS 1 | |
47126 | _ACEOF | |
47127 | ||
47128 | fi | |
47129 | fi | |
47130 | ||
47131 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
47132 | cat >>confdefs.h <<\_ACEOF | |
47133 | #define wxUSE_TEXTDLG 1 | |
47134 | _ACEOF | |
47135 | ||
47136 | fi | |
47137 | ||
47138 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
47139 | cat >>confdefs.h <<\_ACEOF | |
47140 | #define wxUSE_WIZARDDLG 1 | |
47141 | _ACEOF | |
47142 | ||
47143 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
47144 | fi | |
47145 | ||
47146 | ||
64b75e64 RD |
47147 | if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then |
47148 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
47149 | cat >>confdefs.h <<\_ACEOF | |
47150 | #define wxUSE_GRAPHICS_CONTEXT 1 | |
47151 | _ACEOF | |
47152 | ||
47153 | elif test "$wxUSE_GTK" != 1; then | |
47154 | cat >>confdefs.h <<\_ACEOF | |
47155 | #define wxUSE_GRAPHICS_CONTEXT 1 | |
47156 | _ACEOF | |
47157 | ||
47158 | else | |
47159 | ||
47160 | pkg_failed=no | |
47161 | echo "$as_me:$LINENO: checking for CAIRO" >&5 | |
47162 | echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6 | |
47163 | ||
47164 | if test -n "$PKG_CONFIG"; then | |
47165 | if test -n "$CAIRO_CFLAGS"; then | |
47166 | pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS" | |
47167 | else | |
47168 | if test -n "$PKG_CONFIG" && \ | |
47169 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5 | |
47170 | ($PKG_CONFIG --exists --print-errors "cairo") 2>&5 | |
47171 | ac_status=$? | |
47172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47173 | (exit $ac_status); }; then | |
47174 | pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null` | |
47175 | else | |
47176 | pkg_failed=yes | |
47177 | fi | |
47178 | fi | |
47179 | else | |
47180 | pkg_failed=untried | |
47181 | fi | |
47182 | if test -n "$PKG_CONFIG"; then | |
47183 | if test -n "$CAIRO_LIBS"; then | |
47184 | pkg_cv_CAIRO_LIBS="$CAIRO_LIBS" | |
47185 | else | |
47186 | if test -n "$PKG_CONFIG" && \ | |
47187 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5 | |
47188 | ($PKG_CONFIG --exists --print-errors "cairo") 2>&5 | |
47189 | ac_status=$? | |
47190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47191 | (exit $ac_status); }; then | |
47192 | pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null` | |
47193 | else | |
47194 | pkg_failed=yes | |
47195 | fi | |
47196 | fi | |
47197 | else | |
47198 | pkg_failed=untried | |
47199 | fi | |
47200 | ||
47201 | ||
47202 | ||
47203 | if test $pkg_failed = yes; then | |
47204 | ||
47205 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
47206 | _pkg_short_errors_supported=yes | |
47207 | else | |
47208 | _pkg_short_errors_supported=no | |
47209 | fi | |
47210 | if test $_pkg_short_errors_supported = yes; then | |
47211 | CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"` | |
47212 | else | |
47213 | CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"` | |
47214 | fi | |
47215 | # Put the nasty error message in config.log where it belongs | |
47216 | echo "$CAIRO_PKG_ERRORS" >&5 | |
47217 | ||
ec3edcc9 | 47218 | { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5 |
64b75e64 RD |
47219 | echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;} |
47220 | ||
64b75e64 | 47221 | elif test $pkg_failed = untried; then |
ec3edcc9 | 47222 | { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5 |
64b75e64 RD |
47223 | echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;} |
47224 | ||
64b75e64 RD |
47225 | else |
47226 | CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS | |
47227 | CAIRO_LIBS=$pkg_cv_CAIRO_LIBS | |
47228 | echo "$as_me:$LINENO: result: yes" >&5 | |
47229 | echo "${ECHO_T}yes" >&6 | |
ec3edcc9 | 47230 | cat >>confdefs.h <<\_ACEOF |
64b75e64 RD |
47231 | #define wxUSE_GRAPHICS_CONTEXT 1 |
47232 | _ACEOF | |
47233 | ||
64b75e64 RD |
47234 | fi |
47235 | fi | |
47236 | fi | |
47237 | ||
47238 | ||
f10e38c4 VZ |
47239 | USE_MEDIA=0 |
47240 | ||
ce756cb0 | 47241 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
2f6c5bb5 VZ |
47242 | USE_MEDIA=1 |
47243 | ||
ce756cb0 | 47244 | if test "$wxUSE_GTK" = 1; then |
c9a66001 | 47245 | wxUSE_GSTREAMER="no" |
ce756cb0 | 47246 | |
f10e38c4 VZ |
47247 | GST_VERSION_MAJOR=0 |
47248 | GST_VERSION_MINOR=10 | |
2f6c5bb5 | 47249 | GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR |
f10e38c4 VZ |
47250 | |
47251 | if test "$wxUSE_GSTREAMER8" = "no"; then | |
ce756cb0 | 47252 | |
3ecd9f92 MW |
47253 | pkg_failed=no |
47254 | echo "$as_me:$LINENO: checking for GST" >&5 | |
47255 | echo $ECHO_N "checking for GST... $ECHO_C" >&6 | |
ce756cb0 | 47256 | |
3ecd9f92 MW |
47257 | if test -n "$PKG_CONFIG"; then |
47258 | if test -n "$GST_CFLAGS"; then | |
47259 | pkg_cv_GST_CFLAGS="$GST_CFLAGS" | |
47260 | else | |
47261 | if test -n "$PKG_CONFIG" && \ | |
47262 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5 | |
47263 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5 | |
47264 | ac_status=$? | |
47265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47266 | (exit $ac_status); }; then | |
47267 | pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null` | |
dae87f93 | 47268 | else |
3ecd9f92 MW |
47269 | pkg_failed=yes |
47270 | fi | |
47271 | fi | |
47272 | else | |
47273 | pkg_failed=untried | |
dae87f93 | 47274 | fi |
dae87f93 | 47275 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
47276 | if test -n "$GST_LIBS"; then |
47277 | pkg_cv_GST_LIBS="$GST_LIBS" | |
47278 | else | |
47279 | if test -n "$PKG_CONFIG" && \ | |
47280 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5 | |
47281 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5 | |
47282 | ac_status=$? | |
47283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47284 | (exit $ac_status); }; then | |
47285 | pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null` | |
dae87f93 | 47286 | else |
3ecd9f92 MW |
47287 | pkg_failed=yes |
47288 | fi | |
47289 | fi | |
47290 | else | |
47291 | pkg_failed=untried | |
dae87f93 RN |
47292 | fi |
47293 | ||
dae87f93 | 47294 | |
2f6c5bb5 | 47295 | |
3ecd9f92 | 47296 | if test $pkg_failed = yes; then |
ce756cb0 | 47297 | |
3ecd9f92 MW |
47298 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
47299 | _pkg_short_errors_supported=yes | |
47300 | else | |
47301 | _pkg_short_errors_supported=no | |
47302 | fi | |
47303 | if test $_pkg_short_errors_supported = yes; then | |
47304 | GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"` | |
47305 | else | |
47306 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"` | |
dae87f93 | 47307 | fi |
3ecd9f92 MW |
47308 | # Put the nasty error message in config.log where it belongs |
47309 | echo "$GST_PKG_ERRORS" >&5 | |
dae87f93 RN |
47310 | |
47311 | ||
3ecd9f92 MW |
47312 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5 |
47313 | echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;} | |
47314 | GST_VERSION_MINOR=8 | |
dae87f93 | 47315 | |
ce756cb0 | 47316 | |
3ecd9f92 | 47317 | elif test $pkg_failed = untried; then |
dae87f93 | 47318 | |
2f6c5bb5 VZ |
47319 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5 |
47320 | echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;} | |
f10e38c4 | 47321 | GST_VERSION_MINOR=8 |
dae87f93 | 47322 | |
2f6c5bb5 | 47323 | |
3ecd9f92 MW |
47324 | else |
47325 | GST_CFLAGS=$pkg_cv_GST_CFLAGS | |
47326 | GST_LIBS=$pkg_cv_GST_LIBS | |
47327 | echo "$as_me:$LINENO: result: yes" >&5 | |
47328 | echo "${ECHO_T}yes" >&6 | |
47329 | ||
47330 | wxUSE_GSTREAMER="yes" | |
47331 | GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION" | |
dae87f93 | 47332 | |
3ecd9f92 | 47333 | fi |
2f6c5bb5 VZ |
47334 | else |
47335 | GST_VERSION_MINOR=8 | |
f10e38c4 | 47336 | fi |
dae87f93 | 47337 | |
2f6c5bb5 VZ |
47338 | if test $GST_VERSION_MINOR = "8"; then |
47339 | GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
dae87f93 | 47340 | |
3ecd9f92 MW |
47341 | pkg_failed=no |
47342 | echo "$as_me:$LINENO: checking for GST" >&5 | |
47343 | echo $ECHO_N "checking for GST... $ECHO_C" >&6 | |
dae87f93 | 47344 | |
3ecd9f92 MW |
47345 | if test -n "$PKG_CONFIG"; then |
47346 | if test -n "$GST_CFLAGS"; then | |
47347 | pkg_cv_GST_CFLAGS="$GST_CFLAGS" | |
47348 | else | |
47349 | if test -n "$PKG_CONFIG" && \ | |
47350 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5 | |
47351 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5 | |
47352 | ac_status=$? | |
47353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47354 | (exit $ac_status); }; then | |
47355 | pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null` | |
dae87f93 | 47356 | else |
3ecd9f92 MW |
47357 | pkg_failed=yes |
47358 | fi | |
47359 | fi | |
47360 | else | |
47361 | pkg_failed=untried | |
dae87f93 | 47362 | fi |
f10e38c4 | 47363 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
47364 | if test -n "$GST_LIBS"; then |
47365 | pkg_cv_GST_LIBS="$GST_LIBS" | |
47366 | else | |
47367 | if test -n "$PKG_CONFIG" && \ | |
47368 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5 | |
47369 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5 | |
47370 | ac_status=$? | |
47371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47372 | (exit $ac_status); }; then | |
47373 | pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null` | |
dae87f93 | 47374 | else |
3ecd9f92 MW |
47375 | pkg_failed=yes |
47376 | fi | |
47377 | fi | |
47378 | else | |
47379 | pkg_failed=untried | |
dae87f93 RN |
47380 | fi |
47381 | ||
ce756cb0 | 47382 | |
2f6c5bb5 | 47383 | |
3ecd9f92 | 47384 | if test $pkg_failed = yes; then |
dae87f93 | 47385 | |
3ecd9f92 MW |
47386 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
47387 | _pkg_short_errors_supported=yes | |
47388 | else | |
47389 | _pkg_short_errors_supported=no | |
47390 | fi | |
47391 | if test $_pkg_short_errors_supported = yes; then | |
47392 | GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"` | |
47393 | else | |
47394 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"` | |
dae87f93 | 47395 | fi |
3ecd9f92 MW |
47396 | # Put the nasty error message in config.log where it belongs |
47397 | echo "$GST_PKG_ERRORS" >&5 | |
dae87f93 RN |
47398 | |
47399 | ||
3ecd9f92 MW |
47400 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5 |
47401 | echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;} | |
ce756cb0 | 47402 | |
3ecd9f92 | 47403 | elif test $pkg_failed = untried; then |
ce756cb0 | 47404 | |
2f6c5bb5 VZ |
47405 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5 |
47406 | echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;} | |
ce756cb0 | 47407 | |
3ecd9f92 MW |
47408 | else |
47409 | GST_CFLAGS=$pkg_cv_GST_CFLAGS | |
47410 | GST_LIBS=$pkg_cv_GST_LIBS | |
47411 | echo "$as_me:$LINENO: result: yes" >&5 | |
47412 | echo "${ECHO_T}yes" >&6 | |
47413 | wxUSE_GSTREAMER="yes" | |
47414 | fi | |
dae87f93 | 47415 | fi |
ce756cb0 | 47416 | |
f10e38c4 | 47417 | |
dae87f93 | 47418 | if test "$wxUSE_GSTREAMER" = "yes"; then |
c9a66001 VZ |
47419 | case "${host}" in |
47420 | *-*-solaris2* ) | |
47421 | if "$GCC" = yes; then | |
47422 | GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'` | |
47423 | GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'` | |
47424 | fi | |
47425 | esac | |
47426 | ||
47427 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" | |
47428 | LIBS="$GST_LIBS $LIBS" | |
47429 | ||
dae87f93 | 47430 | cat >>confdefs.h <<\_ACEOF |
ce756cb0 RN |
47431 | #define wxUSE_GSTREAMER 1 |
47432 | _ACEOF | |
47433 | ||
2f6c5bb5 VZ |
47434 | else |
47435 | USE_MEDIA=0 | |
ce756cb0 RN |
47436 | fi |
47437 | fi | |
2f6c5bb5 VZ |
47438 | |
47439 | if test $USE_MEDIA = 1; then | |
47440 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
47441 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
47442 | #define wxUSE_MEDIACTRL 1 |
47443 | _ACEOF | |
47444 | ||
2f6c5bb5 | 47445 | fi |
ce756cb0 RN |
47446 | fi |
47447 | ||
47448 | ||
a848cd7e SC |
47449 | if test "$cross_compiling" = "yes"; then |
47450 | OSINFO="\"$host\"" | |
47451 | else | |
47452 | OSINFO=`uname -s -r -m` | |
47453 | OSINFO="\"$OSINFO\"" | |
47454 | fi | |
47455 | ||
47456 | cat >>confdefs.h <<_ACEOF | |
47457 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
47458 | _ACEOF | |
47459 | ||
47460 | ||
47461 | ||
47462 | if test "x$prefix" != "xNONE"; then | |
47463 | wxPREFIX=$prefix | |
47464 | else | |
47465 | wxPREFIX=$ac_default_prefix | |
47466 | fi | |
47467 | ||
47468 | cat >>confdefs.h <<_ACEOF | |
47469 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
47470 | _ACEOF | |
47471 | ||
47472 | ||
a848cd7e SC |
47473 | |
47474 | ||
47475 | CORE_BASE_LIBS="net base" | |
47476 | CORE_GUI_LIBS="adv core" | |
47477 | ||
47478 | if test "$wxUSE_XML" = "yes" ; then | |
47479 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
47480 | fi | |
47481 | if test "$wxUSE_ODBC" != "no" ; then | |
47482 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
47483 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
47484 | fi | |
47485 | if test "$wxUSE_HTML" = "yes" ; then | |
47486 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
47487 | fi | |
61639efb VZ |
47488 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
47489 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
47490 | fi | |
9a8f0513 VS |
47491 | if test "$wxUSE_XRC" = "yes" ; then |
47492 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
47493 | fi | |
3f60522a JS |
47494 | if test "$wxUSE_AUI" = "yes" ; then |
47495 | CORE_GUI_LIBS="aui $CORE_GUI_LIBS" | |
47496 | fi | |
a848cd7e SC |
47497 | |
47498 | if test "$wxUSE_GUI" != "yes"; then | |
47499 | CORE_GUI_LIBS="" | |
47500 | fi | |
47501 | ||
47502 | ||
47503 | ||
47504 | ||
47505 | ||
5d7b7554 VZ |
47506 | ac_ext=c |
47507 | ac_cpp='$CPP $CPPFLAGS' | |
47508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
47509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
47510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
47511 | ||
a848cd7e SC |
47512 | |
47513 | ||
a848cd7e | 47514 | if test "$wxUSE_MAC" = 1 ; then |
a98bf0c0 | 47515 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
47516 | if test "$USE_DARWIN" = 1; then |
47517 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
47518 | else | |
47519 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
47520 | fi | |
07bea8f0 | 47521 | fi |
5dcf30a0 | 47522 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
47523 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
47524 | else | |
47525 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 47526 | fi |
a848cd7e SC |
47527 | fi |
47528 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 47529 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
47530 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
47531 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
47532 | fi | |
a848cd7e | 47533 | fi |
19b27e78 MW |
47534 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
47535 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
47536 | fi | |
a848cd7e | 47537 | |
a848cd7e SC |
47538 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
47539 | ||
a848cd7e SC |
47540 | if test "$wxUSE_GUI" = "yes"; then |
47541 | ||
47542 | ||
8bce5cda MW |
47543 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
47544 | dynamic erase event exec font image minimal mobile \ | |
47545 | mobile/wxedit mobile/styles propsize render \ | |
9e39d889 | 47546 | rotate shaped vscroll widgets" |
a848cd7e SC |
47547 | |
47548 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
47549 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
47550 | fi | |
0b78747f | 47551 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
47552 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
47553 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
47554 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
47555 | fi | |
47556 | fi | |
47557 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
47558 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 47559 | fi |
a848cd7e SC |
47560 | else |
47561 | SAMPLES_SUBDIRS="console" | |
47562 | fi | |
47563 | ||
47564 | ||
48f625bc | 47565 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
47566 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
47567 | elif test "$GCC" = yes ; then | |
47568 | CWARNINGS="-Wall -Wundef" | |
47569 | fi | |
47570 | ||
48f625bc | 47571 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 47572 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
47573 | elif test "$GXX" = yes ; then |
47574 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 47575 | fi |
a848cd7e | 47576 | |
a848cd7e | 47577 | |
5ff751d6 VZ |
47578 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
47579 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
47580 | ||
47581 | ||
c92ad099 | 47582 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
02b05020 | 47583 | -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
47584 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
47585 | $CPPFLAGS ` | |
5ff751d6 | 47586 | |
8aeeb05c | 47587 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 47588 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
9cbac6d1 | 47589 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
5ff751d6 VZ |
47590 | |
47591 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
47592 | ||
a848cd7e | 47593 | |
95986553 DE |
47594 | if test "x$MWCC" = "xyes"; then |
47595 | ||
47596 | CC="$CC -cwd source -I-" | |
47597 | CXX="$CXX -cwd source -I-" | |
47598 | fi | |
47599 | ||
a848cd7e | 47600 | |
0c3c69fc | 47601 | LIBS=`echo $LIBS` |
a848cd7e SC |
47602 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
47603 | EXTRALIBS_XML="$EXPAT_LINK" | |
47604 | EXTRALIBS_HTML="$MSPACK_LINK" | |
47605 | EXTRALIBS_ODBC="$ODBC_LINK" | |
47606 | if test "$wxUSE_GUI" = "yes"; then | |
2b850ae1 | 47607 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
47608 | fi |
47609 | if test "$wxUSE_OPENGL" = "yes"; then | |
47610 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
47611 | fi | |
47612 | ||
8aeeb05c | 47613 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 47614 | |
5ff751d6 | 47615 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
47616 | |
47617 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 47618 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
47619 | fi |
47620 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 47621 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
47622 | fi |
47623 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 47624 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
47625 | fi |
47626 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 47627 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
47628 | fi |
47629 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 47630 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
47631 | fi |
47632 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 47633 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
47634 | fi |
47635 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 47636 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
47637 | fi |
47638 | ||
47639 | for i in $wxconfig_3rdparty ; do | |
5ff751d6 | 47640 | WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
47641 | done |
47642 | ||
47643 | ||
47644 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
47645 | WXUNIV=1 | |
4353a8df VZ |
47646 | |
47647 | case "$wxUNIV_THEMES" in | |
47648 | ''|all) | |
47649 | cat >>confdefs.h <<\_ACEOF | |
47650 | #define wxUSE_ALL_THEMES 1 | |
47651 | _ACEOF | |
47652 | ||
47653 | ;; | |
47654 | ||
47655 | *) | |
47656 | for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do | |
47657 | cat >>confdefs.h <<_ACEOF | |
47658 | #define wxUSE_THEME_$t 1 | |
47659 | _ACEOF | |
47660 | ||
47661 | done | |
47662 | esac | |
a848cd7e SC |
47663 | else |
47664 | WXUNIV=0 | |
47665 | fi | |
47666 | ||
47667 | ||
47668 | ||
47669 | ||
47670 | ||
47671 | ||
47672 | ||
47673 | ||
47674 | ||
47675 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
47676 | MONOLITHIC=1 | |
47677 | else | |
47678 | MONOLITHIC=0 | |
47679 | fi | |
47680 | ||
47681 | if test $wxUSE_PLUGINS = "yes" ; then | |
47682 | USE_PLUGINS=1 | |
47683 | else | |
47684 | USE_PLUGINS=0 | |
47685 | fi | |
47686 | ||
47687 | if test $wxUSE_ODBC != "no" ; then | |
47688 | USE_ODBC=1 | |
47689 | else | |
47690 | USE_ODBC=0 | |
47691 | fi | |
47692 | ||
16358932 VZ |
47693 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
47694 | USE_QA=1 | |
47695 | else | |
47696 | USE_QA=0 | |
47697 | fi | |
47698 | ||
a848cd7e SC |
47699 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
47700 | OFFICIAL_BUILD=1 | |
47701 | else | |
47702 | OFFICIAL_BUILD=0 | |
47703 | fi | |
47704 | ||
47705 | ||
47706 | ||
47707 | ||
47708 | ||
47709 | ||
47710 | ||
47711 | ||
47712 | ||
47713 | ||
47714 | ||
47715 | ||
47716 | ||
47717 | ||
47718 | ||
47719 | ||
47720 | ||
47721 | ||
47722 | ||
ceec2216 | 47723 | |
d1c38808 | 47724 | |
3565d135 | 47725 | |
2b850ae1 | 47726 | |
a848cd7e SC |
47727 | |
47728 | ||
47729 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
47730 | ||
47731 | ||
47732 | ||
47733 | ||
47734 | ||
47735 | ||
47736 | ||
47737 | ||
4d4ff94c VZ |
47738 | case "$TOOLKIT" in |
47739 | GTK) | |
c2e9ada4 | 47740 | TOOLKIT_DESC="GTK+" |
4d4ff94c | 47741 | if test "$WXGTK20" = 1; then |
c2e9ada4 VZ |
47742 | TOOLKIT_DESC="$TOOLKIT_DESC 2" |
47743 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
47744 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint"; | |
47745 | fi | |
47746 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
47747 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs" | |
47748 | fi | |
47749 | if test "$wxUSE_LIBHILDON" = "yes"; then | |
47750 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon" | |
47751 | fi | |
47752 | ||
47753 | if test "$TOOLKIT_EXTRA" != ""; then | |
47754 | TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`" | |
47755 | fi | |
4d4ff94c | 47756 | fi |
9a8f0513 | 47757 | ;; |
4d4ff94c | 47758 | |
c2e9ada4 VZ |
47759 | ?*) |
47760 | TOOLKIT_DESC=$TOOLKIT_LOWERCASE | |
47761 | ;; | |
47762 | ||
4d4ff94c | 47763 | *) |
c2e9ada4 | 47764 | TOOLKIT_DESC="base only" |
9a8f0513 | 47765 | ;; |
4d4ff94c | 47766 | esac |
a848cd7e | 47767 | |
fb00f58d JS |
47768 | if test "$wxUSE_WINE" = "yes"; then |
47769 | BAKEFILE_FORCE_PLATFORM=win32 | |
47770 | fi | |
47771 | ||
7afc46ab | 47772 | if test "$wxUSE_MAC" = 1 ; then |
95768535 MW |
47773 | if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then |
47774 | if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then | |
47775 | OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" | |
47776 | else | |
47777 | OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"} | |
47778 | fi | |
47779 | OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386" | |
47780 | CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS" | |
47781 | CFLAGS="$OSX_UNIV_OPTS $CFLAGS" | |
47782 | LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS" | |
7afc46ab KO |
47783 | bk_use_pch=no |
47784 | fi | |
47785 | # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)? | |
47786 | # The makefile currently uses AR and RANLIB, which libtool apparently supercedes. | |
7afc46ab KO |
47787 | fi |
47788 | ||
a81d5bb6 MW |
47789 | if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no |
47790 | then | |
47791 | echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5 | |
47792 | echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6 | |
47793 | if test "${wx_cv_gcc_pch_bug+set}" = set; then | |
47794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47795 | else | |
47796 | ||
6d952fd7 MW |
47797 | echo '#include <stdio.h> |
47798 | const wchar_t test_var[] = L"awidetest";' > conftest.h | |
47799 | ||
47800 | echo '#include "conftest.h" | |
47801 | int main() | |
47802 | { | |
be49c6ec | 47803 | printf("%ls", test_var); |
6d952fd7 MW |
47804 | return 0; |
47805 | }' > conftest.cpp | |
47806 | ||
47807 | wx_cv_gcc_pch_bug="pch not supported" | |
a81d5bb6 | 47808 | |
b2983f42 | 47809 | if $CXX conftest.h >/dev/null 2>&1 |
a81d5bb6 | 47810 | then |
6d952fd7 | 47811 | wx_cv_gcc_pch_bug= |
a81d5bb6 | 47812 | |
6c7f5e56 | 47813 | if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1 |
a81d5bb6 | 47814 | then |
6c7f5e56 MW |
47815 | if tr -dc '[a-z]' < conftest$PROGRAM_EXT | |
47816 | grep awidetest >/dev/null | |
6d952fd7 MW |
47817 | then |
47818 | wx_cv_gcc_pch_bug=no | |
47819 | else | |
a81d5bb6 | 47820 | wx_cv_gcc_pch_bug=yes |
6d952fd7 | 47821 | fi |
a81d5bb6 MW |
47822 | fi |
47823 | fi | |
47824 | ||
6c7f5e56 | 47825 | rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT |
a81d5bb6 MW |
47826 | |
47827 | fi | |
47828 | echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5 | |
47829 | echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6 | |
47830 | ||
47831 | if test "$wx_cv_gcc_pch_bug" = yes; then | |
47832 | bk_use_pch=no | |
47833 | fi | |
47834 | fi | |
47835 | ||
9a8f0513 | 47836 | |
1e9e8aba DE |
47837 | |
47838 | ||
a848cd7e | 47839 | if test "x$BAKEFILE_HOST" = "x"; then |
f10e38c4 VZ |
47840 | if test "x${host}" = "x" ; then |
47841 | { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5 | |
47842 | echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;} | |
47843 | { (exit 1); exit 1; }; } | |
47844 | fi | |
47845 | ||
a848cd7e SC |
47846 | BAKEFILE_HOST="${host}" |
47847 | fi | |
47848 | ||
47849 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
47850 | ||
47851 | if test -n "$ac_tool_prefix"; then | |
47852 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
47853 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
47854 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47856 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
47857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47858 | else | |
47859 | if test -n "$RANLIB"; then | |
47860 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
47861 | else | |
47862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47863 | for as_dir in $PATH | |
47864 | do | |
47865 | IFS=$as_save_IFS | |
47866 | test -z "$as_dir" && as_dir=. | |
47867 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47868 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47869 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
47870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47871 | break 2 | |
47872 | fi | |
47873 | done | |
47874 | done | |
47875 | ||
47876 | fi | |
47877 | fi | |
47878 | RANLIB=$ac_cv_prog_RANLIB | |
47879 | if test -n "$RANLIB"; then | |
47880 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
47881 | echo "${ECHO_T}$RANLIB" >&6 | |
47882 | else | |
47883 | echo "$as_me:$LINENO: result: no" >&5 | |
47884 | echo "${ECHO_T}no" >&6 | |
47885 | fi | |
47886 | ||
47887 | fi | |
47888 | if test -z "$ac_cv_prog_RANLIB"; then | |
47889 | ac_ct_RANLIB=$RANLIB | |
47890 | # Extract the first word of "ranlib", so it can be a program name with args. | |
47891 | set dummy ranlib; ac_word=$2 | |
47892 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47894 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
47895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47896 | else | |
47897 | if test -n "$ac_ct_RANLIB"; then | |
47898 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
47899 | else | |
47900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47901 | for as_dir in $PATH | |
47902 | do | |
47903 | IFS=$as_save_IFS | |
47904 | test -z "$as_dir" && as_dir=. | |
47905 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47906 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47907 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
47908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47909 | break 2 | |
47910 | fi | |
47911 | done | |
47912 | done | |
47913 | ||
47914 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
47915 | fi | |
47916 | fi | |
47917 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
47918 | if test -n "$ac_ct_RANLIB"; then | |
47919 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
47920 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
47921 | else | |
47922 | echo "$as_me:$LINENO: result: no" >&5 | |
47923 | echo "${ECHO_T}no" >&6 | |
47924 | fi | |
47925 | ||
47926 | RANLIB=$ac_ct_RANLIB | |
47927 | else | |
47928 | RANLIB="$ac_cv_prog_RANLIB" | |
47929 | fi | |
47930 | ||
47931 | # Find a good install program. We prefer a C program (faster), | |
47932 | # so one script is as good as another. But avoid the broken or | |
47933 | # incompatible versions: | |
47934 | # SysV /etc/install, /usr/sbin/install | |
47935 | # SunOS /usr/etc/install | |
47936 | # IRIX /sbin/install | |
47937 | # AIX /bin/install | |
47938 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
47939 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
47940 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
47941 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 47942 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
47943 | # ./install, which can be erroneously created by make from ./install.sh. |
47944 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
47945 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
47946 | if test -z "$INSTALL"; then | |
47947 | if test "${ac_cv_path_install+set}" = set; then | |
47948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47949 | else | |
47950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47951 | for as_dir in $PATH | |
47952 | do | |
47953 | IFS=$as_save_IFS | |
47954 | test -z "$as_dir" && as_dir=. | |
47955 | # Account for people who put trailing slashes in PATH elements. | |
47956 | case $as_dir/ in | |
47957 | ./ | .// | /cC/* | \ | |
47958 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 47959 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
47960 | /usr/ucb/* ) ;; |
47961 | *) | |
47962 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
47963 | # Don't use installbsd from OSF since it installs stuff as root | |
47964 | # by default. | |
47965 | for ac_prog in ginstall scoinst install; do | |
47966 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
47967 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
47968 | if test $ac_prog = install && | |
47969 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
47970 | # AIX install. It has an incompatible calling convention. | |
47971 | : | |
47972 | elif test $ac_prog = install && | |
47973 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
47974 | # program-specific install script used by HP pwplus--don't use. | |
47975 | : | |
47976 | else | |
47977 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
47978 | break 3 | |
47979 | fi | |
47980 | fi | |
a848cd7e SC |
47981 | done |
47982 | done | |
47983 | ;; | |
47984 | esac | |
47985 | done | |
47986 | ||
47987 | ||
47988 | fi | |
47989 | if test "${ac_cv_path_install+set}" = set; then | |
47990 | INSTALL=$ac_cv_path_install | |
47991 | else | |
47992 | # As a last resort, use the slow shell script. We don't cache a | |
47993 | # path for INSTALL within a source directory, because that will | |
47994 | # break other packages using the cache if that directory is | |
47995 | # removed, or if the path is relative. | |
47996 | INSTALL=$ac_install_sh | |
47997 | fi | |
47998 | fi | |
47999 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
48000 | echo "${ECHO_T}$INSTALL" >&6 | |
48001 | ||
48002 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
48003 | # It thinks the first close brace ends the variable substitution. | |
48004 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
48005 | ||
48006 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
48007 | ||
48008 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
48009 | ||
48010 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
48011 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
48012 | LN_S=$as_ln_s | |
48013 | if test "$LN_S" = "ln -s"; then | |
48014 | echo "$as_me:$LINENO: result: yes" >&5 | |
48015 | echo "${ECHO_T}yes" >&6 | |
48016 | else | |
48017 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
48018 | echo "${ECHO_T}no, using $LN_S" >&6 | |
48019 | fi | |
48020 | ||
48021 | ||
48022 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
48023 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 48024 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
48025 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
48026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48027 | else | |
48028 | cat >conftest.make <<\_ACEOF | |
48029 | all: | |
48030 | @echo 'ac_maketemp="$(MAKE)"' | |
48031 | _ACEOF | |
48032 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
48033 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
48034 | if test -n "$ac_maketemp"; then | |
48035 | eval ac_cv_prog_make_${ac_make}_set=yes | |
48036 | else | |
48037 | eval ac_cv_prog_make_${ac_make}_set=no | |
48038 | fi | |
48039 | rm -f conftest.make | |
48040 | fi | |
48041 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
48042 | echo "$as_me:$LINENO: result: yes" >&5 | |
48043 | echo "${ECHO_T}yes" >&6 | |
48044 | SET_MAKE= | |
48045 | else | |
48046 | echo "$as_me:$LINENO: result: no" >&5 | |
48047 | echo "${ECHO_T}no" >&6 | |
48048 | SET_MAKE="MAKE=${MAKE-make}" | |
48049 | fi | |
48050 | ||
48051 | ||
48052 | ||
a485900c VZ |
48053 | if test "x$SUNCXX" = "xyes"; then |
48054 | AR=$CXX | |
48055 | ||
48056 | AROPTIONS="-xar -o" | |
48057 | else | |
48058 | if test -n "$ac_tool_prefix"; then | |
a848cd7e SC |
48059 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
48060 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
48061 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48062 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48063 | if test "${ac_cv_prog_AR+set}" = set; then | |
48064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48065 | else | |
48066 | if test -n "$AR"; then | |
48067 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
48068 | else | |
48069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48070 | for as_dir in $PATH | |
48071 | do | |
48072 | IFS=$as_save_IFS | |
48073 | test -z "$as_dir" && as_dir=. | |
48074 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48075 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48076 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
48077 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48078 | break 2 | |
48079 | fi | |
48080 | done | |
48081 | done | |
48082 | ||
48083 | fi | |
48084 | fi | |
48085 | AR=$ac_cv_prog_AR | |
48086 | if test -n "$AR"; then | |
48087 | echo "$as_me:$LINENO: result: $AR" >&5 | |
48088 | echo "${ECHO_T}$AR" >&6 | |
48089 | else | |
48090 | echo "$as_me:$LINENO: result: no" >&5 | |
48091 | echo "${ECHO_T}no" >&6 | |
48092 | fi | |
48093 | ||
48094 | fi | |
48095 | if test -z "$ac_cv_prog_AR"; then | |
48096 | ac_ct_AR=$AR | |
48097 | # Extract the first word of "ar", so it can be a program name with args. | |
48098 | set dummy ar; ac_word=$2 | |
48099 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48101 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
48102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48103 | else | |
48104 | if test -n "$ac_ct_AR"; then | |
48105 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
48106 | else | |
48107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48108 | for as_dir in $PATH | |
48109 | do | |
48110 | IFS=$as_save_IFS | |
48111 | test -z "$as_dir" && as_dir=. | |
48112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48113 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48114 | ac_cv_prog_ac_ct_AR="ar" | |
48115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48116 | break 2 | |
48117 | fi | |
48118 | done | |
48119 | done | |
48120 | ||
48121 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
48122 | fi | |
48123 | fi | |
48124 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
48125 | if test -n "$ac_ct_AR"; then | |
48126 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
48127 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
48128 | else | |
48129 | echo "$as_me:$LINENO: result: no" >&5 | |
48130 | echo "${ECHO_T}no" >&6 | |
48131 | fi | |
48132 | ||
48133 | AR=$ac_ct_AR | |
48134 | else | |
48135 | AR="$ac_cv_prog_AR" | |
48136 | fi | |
48137 | ||
a485900c VZ |
48138 | AROPTIONS=rcu |
48139 | fi | |
48140 | ||
48141 | ||
a848cd7e SC |
48142 | if test -n "$ac_tool_prefix"; then |
48143 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
48144 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
48145 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48147 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
48148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48149 | else | |
48150 | if test -n "$STRIP"; then | |
48151 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
48152 | else | |
48153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48154 | for as_dir in $PATH | |
48155 | do | |
48156 | IFS=$as_save_IFS | |
48157 | test -z "$as_dir" && as_dir=. | |
48158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48159 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48160 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
48161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48162 | break 2 | |
48163 | fi | |
48164 | done | |
48165 | done | |
48166 | ||
48167 | fi | |
48168 | fi | |
48169 | STRIP=$ac_cv_prog_STRIP | |
48170 | if test -n "$STRIP"; then | |
48171 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
48172 | echo "${ECHO_T}$STRIP" >&6 | |
48173 | else | |
48174 | echo "$as_me:$LINENO: result: no" >&5 | |
48175 | echo "${ECHO_T}no" >&6 | |
48176 | fi | |
48177 | ||
48178 | fi | |
48179 | if test -z "$ac_cv_prog_STRIP"; then | |
48180 | ac_ct_STRIP=$STRIP | |
48181 | # Extract the first word of "strip", so it can be a program name with args. | |
48182 | set dummy strip; ac_word=$2 | |
48183 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48185 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
48186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48187 | else | |
48188 | if test -n "$ac_ct_STRIP"; then | |
48189 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
48190 | else | |
48191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48192 | for as_dir in $PATH | |
48193 | do | |
48194 | IFS=$as_save_IFS | |
48195 | test -z "$as_dir" && as_dir=. | |
48196 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48197 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48198 | ac_cv_prog_ac_ct_STRIP="strip" | |
48199 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48200 | break 2 | |
48201 | fi | |
48202 | done | |
48203 | done | |
48204 | ||
48205 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
48206 | fi | |
48207 | fi | |
48208 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
48209 | if test -n "$ac_ct_STRIP"; then | |
48210 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
48211 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
48212 | else | |
48213 | echo "$as_me:$LINENO: result: no" >&5 | |
48214 | echo "${ECHO_T}no" >&6 | |
48215 | fi | |
48216 | ||
48217 | STRIP=$ac_ct_STRIP | |
48218 | else | |
48219 | STRIP="$ac_cv_prog_STRIP" | |
48220 | fi | |
48221 | ||
48222 | if test -n "$ac_tool_prefix"; then | |
48223 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
48224 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
48225 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48227 | if test "${ac_cv_prog_NM+set}" = set; then | |
48228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48229 | else | |
48230 | if test -n "$NM"; then | |
48231 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
48232 | else | |
48233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48234 | for as_dir in $PATH | |
48235 | do | |
48236 | IFS=$as_save_IFS | |
48237 | test -z "$as_dir" && as_dir=. | |
48238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48240 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
48241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48242 | break 2 | |
48243 | fi | |
48244 | done | |
48245 | done | |
48246 | ||
48247 | fi | |
48248 | fi | |
48249 | NM=$ac_cv_prog_NM | |
48250 | if test -n "$NM"; then | |
48251 | echo "$as_me:$LINENO: result: $NM" >&5 | |
48252 | echo "${ECHO_T}$NM" >&6 | |
48253 | else | |
48254 | echo "$as_me:$LINENO: result: no" >&5 | |
48255 | echo "${ECHO_T}no" >&6 | |
48256 | fi | |
48257 | ||
48258 | fi | |
48259 | if test -z "$ac_cv_prog_NM"; then | |
48260 | ac_ct_NM=$NM | |
48261 | # Extract the first word of "nm", so it can be a program name with args. | |
48262 | set dummy nm; ac_word=$2 | |
48263 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48265 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
48266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48267 | else | |
48268 | if test -n "$ac_ct_NM"; then | |
48269 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
48270 | else | |
48271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48272 | for as_dir in $PATH | |
48273 | do | |
48274 | IFS=$as_save_IFS | |
48275 | test -z "$as_dir" && as_dir=. | |
48276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48277 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48278 | ac_cv_prog_ac_ct_NM="nm" | |
48279 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48280 | break 2 | |
48281 | fi | |
48282 | done | |
48283 | done | |
48284 | ||
48285 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
48286 | fi | |
48287 | fi | |
48288 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
48289 | if test -n "$ac_ct_NM"; then | |
48290 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
48291 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
48292 | else | |
48293 | echo "$as_me:$LINENO: result: no" >&5 | |
48294 | echo "${ECHO_T}no" >&6 | |
48295 | fi | |
48296 | ||
48297 | NM=$ac_ct_NM | |
48298 | else | |
48299 | NM="$ac_cv_prog_NM" | |
48300 | fi | |
48301 | ||
48302 | ||
48303 | case ${BAKEFILE_HOST} in | |
48304 | *-hp-hpux* ) | |
1e9e8aba | 48305 | INSTALL_DIR="mkdir -p" |
a848cd7e | 48306 | ;; |
a485900c VZ |
48307 | * ) |
48308 | INSTALL_DIR='$(INSTALL) -d' | |
a848cd7e SC |
48309 | ;; |
48310 | esac | |
48311 | ||
48312 | ||
48313 | LDFLAGS_GUI= | |
48314 | case ${BAKEFILE_HOST} in | |
48315 | *-*-cygwin* | *-*-mingw32* ) | |
48316 | LDFLAGS_GUI="-mwindows" | |
48317 | esac | |
48318 | ||
48319 | ||
48320 | fi | |
48321 | ||
48322 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
48323 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
48324 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
48325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48326 | else | |
48327 | ||
48328 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
48329 | egrep -s GNU > /dev/null); then | |
48330 | bakefile_cv_prog_makeisgnu="yes" | |
48331 | else | |
48332 | bakefile_cv_prog_makeisgnu="no" | |
48333 | fi | |
48334 | ||
48335 | fi | |
48336 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
48337 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
48338 | ||
48339 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
48340 | IF_GNU_MAKE="" | |
48341 | else | |
48342 | IF_GNU_MAKE="#" | |
48343 | fi | |
48344 | ||
48345 | ||
48346 | ||
48347 | PLATFORM_UNIX=0 | |
48348 | PLATFORM_WIN32=0 | |
48349 | PLATFORM_MSDOS=0 | |
48350 | PLATFORM_MAC=0 | |
1e9e8aba | 48351 | PLATFORM_MACOS=0 |
a848cd7e SC |
48352 | PLATFORM_MACOSX=0 |
48353 | PLATFORM_OS2=0 | |
1e9e8aba | 48354 | PLATFORM_BEOS=0 |
a848cd7e SC |
48355 | |
48356 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
48357 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 48358 | *-*-mingw32* ) |
a848cd7e SC |
48359 | PLATFORM_WIN32=1 |
48360 | ;; | |
48361 | *-pc-msdosdjgpp ) | |
48362 | PLATFORM_MSDOS=1 | |
48363 | ;; | |
48364 | *-pc-os2_emx | *-pc-os2-emx ) | |
48365 | PLATFORM_OS2=1 | |
48366 | ;; | |
47bd5406 | 48367 | *-*-darwin* ) |
a848cd7e SC |
48368 | PLATFORM_MAC=1 |
48369 | PLATFORM_MACOSX=1 | |
48370 | ;; | |
1e9e8aba DE |
48371 | *-*-beos* ) |
48372 | PLATFORM_BEOS=1 | |
48373 | ;; | |
48374 | powerpc-apple-macos* ) | |
48375 | PLATFORM_MAC=1 | |
48376 | PLATFORM_MACOS=1 | |
48377 | ;; | |
a848cd7e SC |
48378 | * ) |
48379 | PLATFORM_UNIX=1 | |
48380 | ;; | |
48381 | esac | |
48382 | else | |
48383 | case "$BAKEFILE_FORCE_PLATFORM" in | |
48384 | win32 ) | |
48385 | PLATFORM_WIN32=1 | |
48386 | ;; | |
48387 | msdos ) | |
48388 | PLATFORM_MSDOS=1 | |
48389 | ;; | |
48390 | os2 ) | |
48391 | PLATFORM_OS2=1 | |
48392 | ;; | |
48393 | darwin ) | |
48394 | PLATFORM_MAC=1 | |
48395 | PLATFORM_MACOSX=1 | |
48396 | ;; | |
48397 | unix ) | |
48398 | PLATFORM_UNIX=1 | |
48399 | ;; | |
1e9e8aba DE |
48400 | beos ) |
48401 | PLATFORM_BEOS=1 | |
48402 | ;; | |
a848cd7e SC |
48403 | * ) |
48404 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
48405 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
48406 | { (exit 1); exit 1; }; } | |
48407 | ;; | |
48408 | esac | |
48409 | fi | |
48410 | ||
48411 | ||
48412 | ||
48413 | ||
48414 | ||
48415 | ||
48416 | ||
48417 | ||
48418 | ||
1e9e8aba DE |
48419 | |
48420 | ||
a848cd7e SC |
48421 | # Check whether --enable-omf or --disable-omf was given. |
48422 | if test "${enable_omf+set}" = set; then | |
48423 | enableval="$enable_omf" | |
48424 | bk_os2_use_omf="$enableval" | |
48425 | fi; | |
48426 | ||
48427 | case "${BAKEFILE_HOST}" in | |
48428 | *-*-darwin* ) | |
47bd5406 VZ |
48429 | if test "x$GCC" = "xyes"; then |
48430 | CFLAGS="$CFLAGS -fno-common" | |
48431 | CXXFLAGS="$CXXFLAGS -fno-common" | |
48432 | fi | |
48433 | if test "x$XLCC" = "xyes"; then | |
48434 | CFLAGS="$CFLAGS -qnocommon" | |
48435 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
48436 | fi | |
a848cd7e SC |
48437 | ;; |
48438 | ||
48439 | *-pc-os2_emx | *-pc-os2-emx ) | |
48440 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
48441 | AR=emxomfar | |
48442 | RANLIB=: | |
48443 | LDFLAGS="-Zomf $LDFLAGS" | |
48444 | CFLAGS="-Zomf $CFLAGS" | |
48445 | CXXFLAGS="-Zomf $CXXFLAGS" | |
48446 | OS2_LIBEXT="lib" | |
48447 | else | |
48448 | OS2_LIBEXT="a" | |
48449 | fi | |
48450 | ;; | |
1e9e8aba DE |
48451 | |
48452 | i*86-*-beos* ) | |
48453 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
48454 | ;; | |
a848cd7e SC |
48455 | esac |
48456 | ||
48457 | ||
48458 | SO_SUFFIX="so" | |
48459 | SO_SUFFIX_MODULE="so" | |
48460 | EXEEXT="" | |
48461 | LIBPREFIX="lib" | |
48462 | LIBEXT=".a" | |
48463 | DLLPREFIX="lib" | |
48464 | DLLPREFIX_MODULE="" | |
48465 | DLLIMP_SUFFIX="" | |
810b94f0 | 48466 | dlldir="$libdir" |
a848cd7e SC |
48467 | |
48468 | case "${BAKEFILE_HOST}" in | |
48469 | *-hp-hpux* ) | |
48470 | SO_SUFFIX="sl" | |
48471 | SO_SUFFIX_MODULE="sl" | |
48472 | ;; | |
48473 | *-*-aix* ) | |
48474 | SO_SUFFIX="a" | |
48475 | SO_SUFFIX_MODULE="a" | |
48476 | ;; | |
810b94f0 MW |
48477 | *-*-cygwin* ) |
48478 | SO_SUFFIX="dll" | |
48479 | SO_SUFFIX_MODULE="dll" | |
48480 | DLLIMP_SUFFIX="dll.a" | |
48481 | EXEEXT=".exe" | |
48482 | DLLPREFIX="cyg" | |
48483 | dlldir="$bindir" | |
48484 | ;; | |
48485 | *-*-mingw32* ) | |
a848cd7e SC |
48486 | SO_SUFFIX="dll" |
48487 | SO_SUFFIX_MODULE="dll" | |
48488 | DLLIMP_SUFFIX="dll.a" | |
48489 | EXEEXT=".exe" | |
48490 | DLLPREFIX="" | |
810b94f0 | 48491 | dlldir="$bindir" |
a848cd7e SC |
48492 | ;; |
48493 | *-pc-msdosdjgpp ) | |
48494 | EXEEXT=".exe" | |
48495 | DLLPREFIX="" | |
810b94f0 | 48496 | dlldir="$bindir" |
a848cd7e SC |
48497 | ;; |
48498 | *-pc-os2_emx | *-pc-os2-emx ) | |
48499 | SO_SUFFIX="dll" | |
48500 | SO_SUFFIX_MODULE="dll" | |
48501 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
48502 | EXEEXT=".exe" | |
48503 | DLLPREFIX="" | |
48504 | LIBPREFIX="" | |
48505 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 48506 | dlldir="$bindir" |
a848cd7e | 48507 | ;; |
47bd5406 | 48508 | *-*-darwin* ) |
a848cd7e SC |
48509 | SO_SUFFIX="dylib" |
48510 | SO_SUFFIX_MODULE="bundle" | |
48511 | ;; | |
48512 | esac | |
48513 | ||
48514 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
48515 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
48516 | fi | |
48517 | ||
48518 | ||
48519 | ||
48520 | ||
48521 | ||
48522 | ||
48523 | ||
48524 | ||
48525 | ||
48526 | ||
48527 | ||
810b94f0 | 48528 | |
1e9e8aba DE |
48529 | PIC_FLAG="" |
48530 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
48531 | PIC_FLAG="-fPIC" |
48532 | fi | |
48533 | ||
1e9e8aba DE |
48534 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
48535 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 48536 | WINDOWS_IMPLIB=0 |
1e9e8aba | 48537 | |
a848cd7e SC |
48538 | case "${BAKEFILE_HOST}" in |
48539 | *-hp-hpux* ) | |
1e9e8aba | 48540 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
48541 | LDFLAGS="$LDFLAGS -L/usr/lib" |
48542 | ||
48543 | SHARED_LD_CC="${CC} -b -o" | |
48544 | SHARED_LD_CXX="${CXX} -b -o" | |
48545 | PIC_FLAG="+Z" | |
48546 | fi | |
48547 | ;; | |
48548 | ||
48549 | *-*-linux* ) | |
48550 | if test "x$GCC" != "xyes"; then | |
48551 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
48552 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
48553 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
48554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48555 | else | |
48556 | ||
48557 | cat >conftest.$ac_ext <<_ACEOF | |
48558 | /* confdefs.h. */ | |
48559 | _ACEOF | |
48560 | cat confdefs.h >>conftest.$ac_ext | |
48561 | cat >>conftest.$ac_ext <<_ACEOF | |
48562 | /* end confdefs.h. */ | |
48563 | ||
48564 | int | |
48565 | main () | |
48566 | { | |
48567 | ||
48568 | #ifndef __INTEL_COMPILER | |
e5efa97e | 48569 | This is not ICC |
a848cd7e SC |
48570 | #endif |
48571 | ||
48572 | ; | |
48573 | return 0; | |
48574 | } | |
48575 | _ACEOF | |
48576 | rm -f conftest.$ac_objext | |
48577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 48578 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 48579 | ac_status=$? |
ac1cb8d3 VS |
48580 | grep -v '^ *+' conftest.er1 >conftest.err |
48581 | rm -f conftest.er1 | |
48582 | cat conftest.err >&5 | |
a848cd7e SC |
48583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
48584 | (exit $ac_status); } && | |
bb9e79c0 | 48585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
48586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
48587 | (eval $ac_try) 2>&5 | |
48588 | ac_status=$? | |
48589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
48590 | (exit $ac_status); }; } && | |
48591 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
48592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
48593 | (eval $ac_try) 2>&5 | |
48594 | ac_status=$? | |
48595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
48596 | (exit $ac_status); }; }; then | |
48597 | bakefile_cv_prog_icc=yes | |
48598 | else | |
48599 | echo "$as_me: failed program was:" >&5 | |
48600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
48601 | ||
48602 | bakefile_cv_prog_icc=no | |
48603 | ||
48604 | fi | |
ac1cb8d3 | 48605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
48606 | |
48607 | fi | |
48608 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
48609 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
48610 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
48611 | PIC_FLAG="-KPIC" | |
48612 | fi | |
48613 | fi | |
48614 | ;; | |
48615 | ||
48616 | *-*-solaris2* ) | |
48617 | if test "x$GCC" != xyes ; then | |
48618 | SHARED_LD_CC="${CC} -G -o" | |
48619 | SHARED_LD_CXX="${CXX} -G -o" | |
48620 | PIC_FLAG="-KPIC" | |
48621 | fi | |
48622 | ;; | |
48623 | ||
48624 | *-*-darwin* ) | |
48625 | ||
473276a9 VS |
48626 | D='$' |
48627 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
48628 | #!/bin/sh |
48629 | #----------------------------------------------------------------------------- | |
48630 | #-- Name: distrib/mac/shared-ld-sh | |
48631 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
48632 | #-- Author: Gilles Depeyrot | |
48633 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
48634 | #-- Licence: any use permitted | |
48635 | #----------------------------------------------------------------------------- | |
48636 | ||
48637 | verbose=0 | |
48638 | args="" | |
48639 | objects="" | |
48640 | linking_flag="-dynamiclib" | |
810b94f0 | 48641 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 48642 | |
473276a9 VS |
48643 | while test ${D}# -gt 0; do |
48644 | case ${D}1 in | |
a848cd7e SC |
48645 | |
48646 | -v) | |
48647 | verbose=1 | |
48648 | ;; | |
48649 | ||
48650 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
48651 | # collect these options and values | |
473276a9 | 48652 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
48653 | shift |
48654 | ;; | |
48655 | ||
810b94f0 MW |
48656 | -s|-Wl,*) |
48657 | # collect these load args | |
48658 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 48659 | ;; |
810b94f0 MW |
48660 | |
48661 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 48662 | # collect these options |
473276a9 | 48663 | args="${D}{args} ${D}1" |
a848cd7e SC |
48664 | ;; |
48665 | ||
48666 | -dynamiclib|-bundle) | |
473276a9 | 48667 | linking_flag="${D}1" |
a848cd7e SC |
48668 | ;; |
48669 | ||
48670 | -*) | |
473276a9 | 48671 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
48672 | exit 1 |
48673 | ;; | |
48674 | ||
48675 | *.o | *.a | *.dylib) | |
48676 | # collect object files | |
473276a9 | 48677 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
48678 | ;; |
48679 | ||
48680 | *) | |
473276a9 | 48681 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
48682 | exit 1 |
48683 | ;; | |
48684 | ||
48685 | esac | |
48686 | shift | |
48687 | done | |
48688 | ||
810b94f0 MW |
48689 | status=0 |
48690 | ||
a848cd7e SC |
48691 | # |
48692 | # Link one module containing all the others | |
48693 | # | |
473276a9 | 48694 | if test ${D}{verbose} = 1; then |
810b94f0 | 48695 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 48696 | fi |
810b94f0 | 48697 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 48698 | status=${D}? |
a848cd7e SC |
48699 | |
48700 | # | |
810b94f0 MW |
48701 | # Link the shared library from the single module created, but only if the |
48702 | # previous command didn't fail: | |
a848cd7e | 48703 | # |
810b94f0 MW |
48704 | if test ${D}{status} = 0; then |
48705 | if test ${D}{verbose} = 1; then | |
48706 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
48707 | fi | |
48708 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
48709 | status=${D}? | |
a848cd7e SC |
48710 | fi |
48711 | ||
48712 | # | |
48713 | # Remove intermediate module | |
48714 | # | |
473276a9 | 48715 | rm -f master.${D}${D}.o |
a848cd7e | 48716 | |
810b94f0 | 48717 | exit ${D}status |
a848cd7e | 48718 | EOF |
473276a9 | 48719 | |
583d6b4b VZ |
48720 | chmod +x shared-ld-sh |
48721 | ||
48722 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
48723 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
48724 | ||
48725 | ||
48726 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
48727 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
48728 | if test "${bakefile_cv_gcc31+set}" = set; then | |
48729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48730 | else | |
48731 | ||
48732 | cat >conftest.$ac_ext <<_ACEOF | |
48733 | /* confdefs.h. */ | |
48734 | _ACEOF | |
48735 | cat confdefs.h >>conftest.$ac_ext | |
48736 | cat >>conftest.$ac_ext <<_ACEOF | |
48737 | /* end confdefs.h. */ | |
48738 | ||
48739 | int | |
48740 | main () | |
48741 | { | |
48742 | ||
48743 | #if (__GNUC__ < 3) || \ | |
48744 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
e5efa97e | 48745 | This is old gcc |
583d6b4b | 48746 | #endif |
a848cd7e | 48747 | |
583d6b4b VZ |
48748 | ; |
48749 | return 0; | |
48750 | } | |
48751 | _ACEOF | |
48752 | rm -f conftest.$ac_objext | |
48753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
48754 | (eval $ac_compile) 2>conftest.er1 | |
48755 | ac_status=$? | |
48756 | grep -v '^ *+' conftest.er1 >conftest.err | |
48757 | rm -f conftest.er1 | |
48758 | cat conftest.err >&5 | |
48759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
48760 | (exit $ac_status); } && | |
bb9e79c0 | 48761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
583d6b4b VZ |
48762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
48763 | (eval $ac_try) 2>&5 | |
48764 | ac_status=$? | |
48765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
48766 | (exit $ac_status); }; } && | |
48767 | { ac_try='test -s conftest.$ac_objext' | |
48768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
48769 | (eval $ac_try) 2>&5 | |
48770 | ac_status=$? | |
48771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
48772 | (exit $ac_status); }; }; then | |
48773 | ||
48774 | bakefile_cv_gcc31=yes | |
48775 | ||
48776 | else | |
48777 | echo "$as_me: failed program was:" >&5 | |
48778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
48779 | ||
48780 | ||
48781 | bakefile_cv_gcc31=no | |
48782 | ||
48783 | ||
48784 | fi | |
48785 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
48786 | ||
48787 | fi | |
48788 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 | |
48789 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
48790 | if test "$bakefile_cv_gcc31" = "no"; then | |
a848cd7e | 48791 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 48792 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
48793 | else |
48794 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 48795 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
48796 | fi |
48797 | ||
47bd5406 VZ |
48798 | if test "x$GCC" == "xyes"; then |
48799 | PIC_FLAG="-dynamic -fPIC" | |
48800 | fi | |
48801 | if test "x$XLCC" = "xyes"; then | |
48802 | PIC_FLAG="-dynamic -DPIC" | |
48803 | fi | |
a848cd7e SC |
48804 | ;; |
48805 | ||
48806 | *-*-aix* ) | |
f6b50c59 | 48807 | if test "x$GCC" = "xyes"; then |
583d6b4b | 48808 | PIC_FLAG="" |
f6b50c59 | 48809 | |
583d6b4b VZ |
48810 | case "${BAKEFILE_HOST}" in |
48811 | *-*-aix5* ) | |
48812 | LD_EXPFULL="-Wl,-bexpfull" | |
48813 | ;; | |
48814 | esac | |
f6b50c59 | 48815 | |
583d6b4b VZ |
48816 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
48817 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
48818 | else | |
48819 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e SC |
48820 | set dummy makeC++SharedLib; ac_word=$2 |
48821 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48823 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
48824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48825 | else | |
48826 | if test -n "$AIX_CXX_LD"; then | |
48827 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
48828 | else | |
48829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48830 | for as_dir in $PATH | |
48831 | do | |
48832 | IFS=$as_save_IFS | |
48833 | test -z "$as_dir" && as_dir=. | |
48834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48835 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48836 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
48837 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48838 | break 2 | |
48839 | fi | |
48840 | done | |
48841 | done | |
48842 | ||
48843 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
48844 | fi | |
48845 | fi | |
48846 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
48847 | if test -n "$AIX_CXX_LD"; then | |
48848 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
48849 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
48850 | else | |
48851 | echo "$as_me:$LINENO: result: no" >&5 | |
48852 | echo "${ECHO_T}no" >&6 | |
48853 | fi | |
48854 | ||
f6b50c59 | 48855 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
48856 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
48857 | fi | |
48858 | ;; | |
48859 | ||
48860 | *-*-beos* ) | |
1e9e8aba DE |
48861 | SHARED_LD_CC="${LD} -nostart -o" |
48862 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
48863 | ;; |
48864 | ||
48865 | *-*-irix* ) | |
48866 | if test "x$GCC" != "xyes"; then | |
48867 | PIC_FLAG="-KPIC" | |
48868 | fi | |
48869 | ;; | |
48870 | ||
48871 | *-*-cygwin* | *-*-mingw32* ) | |
48872 | PIC_FLAG="" | |
1e9e8aba DE |
48873 | SHARED_LD_CC="\$(CC) -shared -o" |
48874 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 48875 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
48876 | ;; |
48877 | ||
48878 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
48879 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
48880 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 48881 | PIC_FLAG="" |
473276a9 VS |
48882 | |
48883 | D='$' | |
48884 | cat <<EOF >dllar.sh | |
48885 | #!/bin/sh | |
48886 | # | |
48887 | # dllar - a tool to build both a .dll and an .a file | |
48888 | # from a set of object (.o) files for EMX/OS2. | |
48889 | # | |
48890 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
48891 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
48892 | # | |
48893 | # This script will accept a set of files on the command line. | |
48894 | # All the public symbols from the .o files will be exported into | |
48895 | # a .DEF file, then linker will be run (through gcc) against them to | |
48896 | # build a shared library consisting of all given .o files. All libraries | |
48897 | # (.a) will be first decompressed into component .o files then act as | |
48898 | # described above. You can optionally give a description (-d "description") | |
48899 | # which will be put into .DLL. To see the list of accepted options (as well | |
48900 | # as command-line format) simply run this program without options. The .DLL | |
48901 | # is built to be imported by name (there is no guarantee that new versions | |
48902 | # of the library you build will have same ordinals for same symbols). | |
48903 | # | |
48904 | # dllar is free software; you can redistribute it and/or modify | |
48905 | # it under the terms of the GNU General Public License as published by | |
48906 | # the Free Software Foundation; either version 2, or (at your option) | |
48907 | # any later version. | |
48908 | # | |
48909 | # dllar is distributed in the hope that it will be useful, | |
48910 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
48911 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
48912 | # GNU General Public License for more details. | |
48913 | # | |
48914 | # You should have received a copy of the GNU General Public License | |
48915 | # along with dllar; see the file COPYING. If not, write to the Free | |
48916 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
48917 | # 02111-1307, USA. | |
48918 | ||
48919 | # To successfuly run this program you will need: | |
48920 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
48921 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
48922 | # - gcc | |
48923 | # (used to build the .dll) | |
48924 | # - emxexp | |
48925 | # (used to create .def file from .o files) | |
48926 | # - emximp | |
48927 | # (used to create .a file from .def file) | |
48928 | # - GNU text utilites (cat, sort, uniq) | |
48929 | # used to process emxexp output | |
48930 | # - GNU file utilities (mv, rm) | |
48931 | # - GNU sed | |
48932 | # - lxlite (optional, see flag below) | |
48933 | # (used for general .dll cleanup) | |
48934 | # | |
48935 | ||
48936 | flag_USE_LXLITE=1; | |
48937 | ||
48938 | # | |
48939 | # helper functions | |
48940 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
48941 | # second argument (suffix to remove) is given | |
48942 | basnam(){ | |
48943 | case ${D}# in | |
48944 | 1) | |
1e9e8aba | 48945 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
48946 | ;; |
48947 | 2) | |
48948 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
48949 | ;; | |
48950 | *) | |
48951 | echo "error in basnam ${D}*" | |
48952 | exit 8 | |
48953 | ;; | |
48954 | esac | |
48955 | } | |
48956 | ||
48957 | # Cleanup temporary files and output | |
48958 | CleanUp() { | |
48959 | cd ${D}curDir | |
48960 | for i in ${D}inputFiles ; do | |
48961 | case ${D}i in | |
48962 | *!) | |
48963 | rm -rf \`basnam ${D}i !\` | |
48964 | ;; | |
48965 | *) | |
48966 | ;; | |
48967 | esac | |
48968 | done | |
48969 | ||
48970 | # Kill result in case of failure as there is just to many stupid make/nmake | |
48971 | # things out there which doesn't do this. | |
1e9e8aba | 48972 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
48973 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
48974 | fi | |
48975 | } | |
48976 | ||
48977 | # Print usage and exit script with rc=1. | |
48978 | PrintHelp() { | |
b1d22ded DE |
48979 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
48980 | echo ' [-name-mangler-script script.sh]' | |
48981 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
48982 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
48983 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 48984 | echo ' [*.o] [*.a]' |
473276a9 VS |
48985 | echo '*> "output_file" should have no extension.' |
48986 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
48987 | echo ' The import library name is derived from this and is set to "name".a,' | |
48988 | echo ' unless overridden by -import' | |
48989 | echo '*> "importlib_name" should have no extension.' | |
48990 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
48991 | echo ' This name is used as the import library name and may be longer and' | |
48992 | echo ' more descriptive than the DLL name which has to follow the old ' | |
48993 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
48994 | echo '*> "script.sh may be given to override the output_file name by a' |
48995 | echo ' different name. It is mainly useful if the regular make process' | |
48996 | echo ' of some package does not take into account OS/2 restriction of' | |
48997 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
48998 | echo ' supposed to procude a shorter name as output. The script should' | |
48999 | echo ' expect to get importlib_name without extension and should produce' | |
49000 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
49001 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
49002 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
49003 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
49004 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
49005 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
49006 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
49007 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
49008 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 49009 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 49010 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 49011 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 49012 | echo ' C runtime DLLs.' |
b1d22ded | 49013 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
49014 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
49015 | echo ' unchanged to GCC at the end of command line.' | |
49016 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
49017 | echo ' the basename for DLL and import library will be set to library name,' | |
49018 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
49019 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
49020 | echo ' library will be renamed into gcc_s.a.' | |
49021 | echo '--------' | |
49022 | echo 'Example:' | |
49023 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
49024 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
49025 | CleanUp | |
49026 | exit 1 | |
49027 | } | |
49028 | ||
49029 | # Execute a command. | |
49030 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
49031 | # @Uses Whatever CleanUp() uses. | |
49032 | doCommand() { | |
49033 | echo "${D}*" | |
49034 | eval ${D}* | |
49035 | rcCmd=${D}? | |
49036 | ||
1e9e8aba | 49037 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
49038 | echo "command failed, exit code="${D}rcCmd |
49039 | CleanUp | |
49040 | exit ${D}rcCmd | |
49041 | fi | |
49042 | } | |
49043 | ||
49044 | # main routine | |
49045 | # setup globals | |
49046 | cmdLine=${D}* | |
49047 | outFile="" | |
49048 | outimpFile="" | |
49049 | inputFiles="" | |
b1d22ded | 49050 | renameScript="" |
473276a9 VS |
49051 | description="" |
49052 | CC=gcc.exe | |
49053 | CFLAGS="-s -Zcrtdll" | |
49054 | EXTRA_CFLAGS="" | |
49055 | EXPORT_BY_ORDINALS=0 | |
49056 | exclude_symbols="" | |
49057 | library_flags="" | |
49058 | curDir=\`pwd\` | |
49059 | curDirS=curDir | |
49060 | case ${D}curDirS in | |
49061 | */) | |
49062 | ;; | |
49063 | *) | |
49064 | curDirS=${D}{curDirS}"/" | |
49065 | ;; | |
49066 | esac | |
49067 | # Parse commandline | |
49068 | libsToLink=0 | |
b1d22ded | 49069 | omfLinking=0 |
1e9e8aba | 49070 | while [ ${D}1 ]; do |
473276a9 VS |
49071 | case ${D}1 in |
49072 | -ord*) | |
49073 | EXPORT_BY_ORDINALS=1; | |
49074 | ;; | |
49075 | -o*) | |
49076 | shift | |
49077 | outFile=${D}1 | |
49078 | ;; | |
49079 | -i*) | |
49080 | shift | |
49081 | outimpFile=${D}1 | |
49082 | ;; | |
b1d22ded DE |
49083 | -name-mangler-script) |
49084 | shift | |
49085 | renameScript=${D}1 | |
49086 | ;; | |
473276a9 VS |
49087 | -d*) |
49088 | shift | |
49089 | description=${D}1 | |
49090 | ;; | |
49091 | -f*) | |
49092 | shift | |
49093 | CFLAGS=${D}1 | |
49094 | ;; | |
49095 | -c*) | |
49096 | shift | |
49097 | CC=${D}1 | |
49098 | ;; | |
49099 | -h*) | |
49100 | PrintHelp | |
49101 | ;; | |
49102 | -ex*) | |
49103 | shift | |
49104 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
49105 | ;; | |
49106 | -libf*) | |
49107 | shift | |
49108 | library_flags=${D}{library_flags}${D}1" " | |
49109 | ;; | |
49110 | -nocrt*) | |
49111 | CFLAGS="-s" | |
49112 | ;; | |
49113 | -nolxl*) | |
49114 | flag_USE_LXLITE=0 | |
49115 | ;; | |
49116 | -* | /*) | |
49117 | case ${D}1 in | |
49118 | -L* | -l*) | |
49119 | libsToLink=1 | |
49120 | ;; | |
b1d22ded DE |
49121 | -Zomf) |
49122 | omfLinking=1 | |
49123 | ;; | |
473276a9 VS |
49124 | *) |
49125 | ;; | |
49126 | esac | |
49127 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
49128 | ;; | |
b1d22ded DE |
49129 | *.dll) |
49130 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
49131 | if [ ${D}omfLinking -eq 1 ]; then | |
49132 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
49133 | else | |
49134 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
49135 | fi | |
49136 | ;; | |
473276a9 VS |
49137 | *) |
49138 | found=0; | |
1e9e8aba | 49139 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
49140 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
49141 | else | |
49142 | for file in ${D}1 ; do | |
1e9e8aba | 49143 | if [ -f ${D}file ]; then |
473276a9 VS |
49144 | inputFiles="${D}{inputFiles} ${D}file" |
49145 | found=1 | |
49146 | fi | |
49147 | done | |
1e9e8aba | 49148 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
49149 | echo "ERROR: No file(s) found: "${D}1 |
49150 | exit 8 | |
49151 | fi | |
49152 | fi | |
49153 | ;; | |
49154 | esac | |
49155 | shift | |
49156 | done # iterate cmdline words | |
49157 | ||
49158 | # | |
1e9e8aba | 49159 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
49160 | echo "dllar: no input files" |
49161 | PrintHelp | |
49162 | fi | |
49163 | ||
49164 | # Now extract all .o files from .a files | |
49165 | newInputFiles="" | |
49166 | for file in ${D}inputFiles ; do | |
49167 | case ${D}file in | |
49168 | *.a | *.lib) | |
49169 | case ${D}file in | |
49170 | *.a) | |
49171 | suffix=".a" | |
49172 | AR="ar" | |
49173 | ;; | |
49174 | *.lib) | |
49175 | suffix=".lib" | |
49176 | AR="emxomfar" | |
49177 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
49178 | ;; | |
49179 | *) | |
49180 | ;; | |
49181 | esac | |
49182 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
49183 | mkdir ${D}dirname | |
1e9e8aba | 49184 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
49185 | echo "Failed to create subdirectory ./${D}dirname" |
49186 | CleanUp | |
49187 | exit 8; | |
49188 | fi | |
49189 | # Append '!' to indicate archive | |
49190 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
49191 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
49192 | cd ${D}curDir | |
49193 | found=0; | |
49194 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 49195 | if [ -f ${D}subfile ]; then |
473276a9 | 49196 | found=1 |
1e9e8aba | 49197 | if [ -s ${D}subfile ]; then |
473276a9 VS |
49198 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
49199 | newInputFiles="${D}newInputFiles ${D}subfile" | |
49200 | fi | |
49201 | fi | |
49202 | done | |
1e9e8aba DE |
49203 | if [ ${D}found -eq 0 ]; then |
49204 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
49205 | fi |
49206 | ;; | |
49207 | *) | |
49208 | newInputFiles="${D}{newInputFiles} ${D}file" | |
49209 | ;; | |
49210 | esac | |
49211 | done | |
49212 | inputFiles="${D}newInputFiles" | |
49213 | ||
49214 | # Output filename(s). | |
49215 | do_backup=0; | |
1e9e8aba | 49216 | if [ -z ${D}outFile ]; then |
473276a9 VS |
49217 | do_backup=1; |
49218 | set outFile ${D}inputFiles; outFile=${D}2 | |
49219 | fi | |
49220 | ||
49221 | # If it is an archive, remove the '!' and the '_%' suffixes | |
49222 | case ${D}outFile in | |
49223 | *_%!) | |
49224 | outFile=\`basnam ${D}outFile _%!\` | |
49225 | ;; | |
49226 | *) | |
49227 | ;; | |
49228 | esac | |
49229 | case ${D}outFile in | |
49230 | *.dll) | |
49231 | outFile=\`basnam ${D}outFile .dll\` | |
49232 | ;; | |
49233 | *.DLL) | |
49234 | outFile=\`basnam ${D}outFile .DLL\` | |
49235 | ;; | |
49236 | *.o) | |
49237 | outFile=\`basnam ${D}outFile .o\` | |
49238 | ;; | |
49239 | *.obj) | |
49240 | outFile=\`basnam ${D}outFile .obj\` | |
49241 | ;; | |
49242 | *.a) | |
49243 | outFile=\`basnam ${D}outFile .a\` | |
49244 | ;; | |
49245 | *.lib) | |
49246 | outFile=\`basnam ${D}outFile .lib\` | |
49247 | ;; | |
49248 | *) | |
49249 | ;; | |
49250 | esac | |
49251 | case ${D}outimpFile in | |
49252 | *.a) | |
49253 | outimpFile=\`basnam ${D}outimpFile .a\` | |
49254 | ;; | |
49255 | *.lib) | |
49256 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
49257 | ;; | |
49258 | *) | |
49259 | ;; | |
49260 | esac | |
1e9e8aba | 49261 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
49262 | outimpFile=${D}outFile |
49263 | fi | |
49264 | defFile="${D}{outFile}.def" | |
49265 | arcFile="${D}{outimpFile}.a" | |
49266 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
49267 | |
49268 | #create ${D}dllFile as something matching 8.3 restrictions, | |
49269 | if [ -z ${D}renameScript ] ; then | |
49270 | dllFile="${D}outFile" | |
49271 | else | |
49272 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
49273 | fi | |
473276a9 | 49274 | |
1e9e8aba DE |
49275 | if [ ${D}do_backup -ne 0 ] ; then |
49276 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
49277 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
49278 | fi | |
1e9e8aba | 49279 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
49280 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
49281 | fi | |
49282 | fi | |
49283 | ||
49284 | # Extract public symbols from all the object files. | |
49285 | tmpdefFile=${D}{defFile}_% | |
49286 | rm -f ${D}tmpdefFile | |
49287 | for file in ${D}inputFiles ; do | |
49288 | case ${D}file in | |
49289 | *!) | |
49290 | ;; | |
49291 | *) | |
49292 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
49293 | ;; | |
49294 | esac | |
49295 | done | |
49296 | ||
49297 | # Create the def file. | |
49298 | rm -f ${D}defFile | |
49299 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
49300 | dllFile="${D}{dllFile}.dll" |
49301 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 49302 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
49303 | fi |
49304 | echo "EXPORTS" >> ${D}defFile | |
49305 | ||
49306 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
49307 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
49308 | ||
49309 | # Checks if the export is ok or not. | |
49310 | for word in ${D}exclude_symbols; do | |
49311 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
49312 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
49313 | done | |
49314 | ||
49315 | ||
1e9e8aba DE |
49316 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
49317 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
49318 | sed ' |
49319 | N | |
49320 | : loop | |
1e9e8aba | 49321 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
49322 | t loop |
49323 | ' > ${D}{tmpdefFile}% | |
49324 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
49325 | else | |
49326 | rm -f ${D}{tmpdefFile}% | |
49327 | fi | |
49328 | cat ${D}tmpdefFile >> ${D}defFile | |
49329 | rm -f ${D}tmpdefFile | |
49330 | ||
49331 | # Do linking, create implib, and apply lxlite. | |
49332 | gccCmdl=""; | |
49333 | for file in ${D}inputFiles ; do | |
49334 | case ${D}file in | |
49335 | *!) | |
49336 | ;; | |
49337 | *) | |
49338 | gccCmdl="${D}gccCmdl ${D}file" | |
49339 | ;; | |
49340 | esac | |
49341 | done | |
49342 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
49343 | touch "${D}{outFile}.dll" | |
49344 | ||
49345 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 49346 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 49347 | add_flags=""; |
1e9e8aba | 49348 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
49349 | add_flags="-ynd" |
49350 | fi | |
49351 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
49352 | fi | |
49353 | doCommand "emxomf -s -l ${D}arcFile" | |
49354 | ||
49355 | # Successful exit. | |
49356 | CleanUp 1 | |
49357 | exit 0 | |
49358 | EOF | |
49359 | ||
49360 | chmod +x dllar.sh | |
a848cd7e SC |
49361 | ;; |
49362 | ||
1e9e8aba | 49363 | powerpc-apple-macos* | \ |
0ad5d837 | 49364 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a485900c | 49365 | *-*-mirbsd* | \ |
a848cd7e SC |
49366 | *-*-sunos4* | \ |
49367 | *-*-osf* | \ | |
49368 | *-*-dgux5* | \ | |
47a7e797 MW |
49369 | *-*-sysv5* | \ |
49370 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
49371 | ;; |
49372 | ||
49373 | *) | |
3ecd9f92 | 49374 | esac |
a848cd7e | 49375 | |
2057db16 VS |
49376 | if test "x$PIC_FLAG" != "x" ; then |
49377 | PIC_FLAG="$PIC_FLAG -DPIC" | |
49378 | fi | |
49379 | ||
a848cd7e SC |
49380 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
49381 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
49382 | fi | |
49383 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
49384 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
49385 | fi | |
49386 | ||
49387 | ||
49388 | ||
49389 | ||
49390 | ||
49391 | ||
49392 | ||
49393 | ||
810b94f0 | 49394 | |
a848cd7e SC |
49395 | USE_SOVERSION=0 |
49396 | USE_SOVERLINUX=0 | |
49397 | USE_SOVERSOLARIS=0 | |
810b94f0 | 49398 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
49399 | USE_SOSYMLINKS=0 |
49400 | USE_MACVERSION=0 | |
49401 | SONAME_FLAG= | |
49402 | ||
49403 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 49404 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
49405 | SONAME_FLAG="-Wl,-soname," |
49406 | USE_SOVERSION=1 | |
49407 | USE_SOVERLINUX=1 | |
49408 | USE_SOSYMLINKS=1 | |
49409 | ;; | |
49410 | ||
a848cd7e SC |
49411 | *-*-solaris2* ) |
49412 | SONAME_FLAG="-h " | |
49413 | USE_SOVERSION=1 | |
49414 | USE_SOVERSOLARIS=1 | |
49415 | USE_SOSYMLINKS=1 | |
49416 | ;; | |
49417 | ||
49418 | *-*-darwin* ) | |
49419 | USE_MACVERSION=1 | |
49420 | USE_SOVERSION=1 | |
49421 | USE_SOSYMLINKS=1 | |
49422 | ;; | |
810b94f0 MW |
49423 | |
49424 | *-*-cygwin* ) | |
49425 | USE_SOVERSION=1 | |
49426 | USE_SOVERCYGWIN=1 | |
49427 | ;; | |
a848cd7e SC |
49428 | esac |
49429 | ||
49430 | ||
49431 | ||
49432 | ||
49433 | ||
49434 | ||
49435 | ||
49436 | ||
49437 | ||
810b94f0 | 49438 | |
f10e38c4 VZ |
49439 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
49440 | if test "${enable_dependency_tracking+set}" = set; then | |
49441 | enableval="$enable_dependency_tracking" | |
49442 | bk_use_trackdeps="$enableval" | |
49443 | fi; | |
49444 | ||
a848cd7e SC |
49445 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
49446 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
a848cd7e | 49447 | |
a485900c | 49448 | BK_DEPS="" |
f10e38c4 VZ |
49449 | if test "x$bk_use_trackdeps" = "xno" ; then |
49450 | DEPS_TRACKING=0 | |
49451 | echo "$as_me:$LINENO: result: disabled" >&5 | |
49452 | echo "${ECHO_T}disabled" >&6 | |
49453 | else | |
49454 | DEPS_TRACKING=1 | |
49455 | ||
49456 | if test "x$GCC" = "xyes"; then | |
49457 | DEPSMODE=gcc | |
49458 | case "${BAKEFILE_HOST}" in | |
49459 | *-*-darwin* ) | |
49460 | DEPSFLAG="-no-cpp-precomp -MMD" | |
49461 | ;; | |
49462 | * ) | |
49463 | DEPSFLAG="-MMD" | |
49464 | ;; | |
49465 | esac | |
49466 | echo "$as_me:$LINENO: result: gcc" >&5 | |
a848cd7e | 49467 | echo "${ECHO_T}gcc" >&6 |
f10e38c4 VZ |
49468 | elif test "x$MWCC" = "xyes"; then |
49469 | DEPSMODE=mwcc | |
49470 | DEPSFLAG="-MM" | |
49471 | echo "$as_me:$LINENO: result: mwcc" >&5 | |
b1d22ded | 49472 | echo "${ECHO_T}mwcc" >&6 |
f10e38c4 VZ |
49473 | elif test "x$SUNCC" = "xyes"; then |
49474 | DEPSMODE=unixcc | |
49475 | DEPSFLAG="-xM1" | |
49476 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
0ad5d837 | 49477 | echo "${ECHO_T}Sun cc" >&6 |
f10e38c4 VZ |
49478 | elif test "x$SGICC" = "xyes"; then |
49479 | DEPSMODE=unixcc | |
49480 | DEPSFLAG="-M" | |
49481 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
0ad5d837 | 49482 | echo "${ECHO_T}SGI cc" >&6 |
f10e38c4 VZ |
49483 | elif test "x$HPCC" = "xyes"; then |
49484 | DEPSMODE=unixcc | |
49485 | DEPSFLAG="+make" | |
49486 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
3006edc0 | 49487 | echo "${ECHO_T}HP cc" >&6 |
f10e38c4 VZ |
49488 | elif test "x$COMPAQCC" = "xyes"; then |
49489 | DEPSMODE=gcc | |
49490 | DEPSFLAG="-MD" | |
49491 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
a1aa0349 | 49492 | echo "${ECHO_T}Compaq cc" >&6 |
f10e38c4 VZ |
49493 | else |
49494 | DEPS_TRACKING=0 | |
49495 | echo "$as_me:$LINENO: result: none" >&5 | |
a848cd7e | 49496 | echo "${ECHO_T}none" >&6 |
f10e38c4 | 49497 | fi |
a848cd7e | 49498 | |
f10e38c4 | 49499 | if test $DEPS_TRACKING = 1 ; then |
473276a9 VS |
49500 | |
49501 | D='$' | |
49502 | cat <<EOF >bk-deps | |
a848cd7e SC |
49503 | #!/bin/sh |
49504 | ||
49505 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
49506 | # script. It is used to track C/C++ files dependencies in portable way. | |
49507 | # | |
49508 | # Permission is given to use this file in any way. | |
49509 | ||
473276a9 | 49510 | DEPSMODE=${DEPSMODE} |
a848cd7e | 49511 | DEPSDIR=.deps |
0ad5d837 | 49512 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 49513 | |
473276a9 | 49514 | mkdir -p ${D}DEPSDIR |
a848cd7e | 49515 | |
473276a9 | 49516 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 49517 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
49518 | status=${D}? |
49519 | if test ${D}{status} != 0 ; then | |
49520 | exit ${D}{status} | |
a848cd7e SC |
49521 | fi |
49522 | # move created file to the location we want it in: | |
473276a9 VS |
49523 | while test ${D}# -gt 0; do |
49524 | case "${D}1" in | |
a848cd7e SC |
49525 | -o ) |
49526 | shift | |
473276a9 | 49527 | objfile=${D}1 |
a848cd7e SC |
49528 | ;; |
49529 | -* ) | |
49530 | ;; | |
49531 | * ) | |
473276a9 | 49532 | srcfile=${D}1 |
a848cd7e SC |
49533 | ;; |
49534 | esac | |
49535 | shift | |
49536 | done | |
1e9e8aba DE |
49537 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
49538 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
49539 | if test -f ${D}depfile ; then |
49540 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
49541 | rm -f ${D}depfile | |
a848cd7e | 49542 | else |
a1aa0349 | 49543 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 49544 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
49545 | if test ! -f ${D}depfile ; then |
49546 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
49547 | depfile="${D}objfile.d" | |
49548 | fi | |
473276a9 VS |
49549 | if test -f ${D}depfile ; then |
49550 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
49551 | rm -f ${D}depfile | |
a848cd7e SC |
49552 | fi |
49553 | fi | |
49554 | exit 0 | |
81f90336 | 49555 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 49556 | ${D}* || exit ${D}? |
81f90336 MW |
49557 | # Run mwcc again with -MM and redirect into the dep file we want |
49558 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
49559 | prevarg= | |
49560 | for arg in ${D}* ; do | |
49561 | if test "${D}prevarg" = "-o"; then | |
49562 | objfile=${D}arg | |
49563 | else | |
49564 | case "${D}arg" in | |
49565 | -* ) | |
49566 | ;; | |
49567 | * ) | |
49568 | srcfile=${D}arg | |
49569 | ;; | |
49570 | esac | |
49571 | fi | |
49572 | prevarg="${D}arg" | |
49573 | done | |
0ad5d837 | 49574 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 49575 | exit 0 |
0ad5d837 | 49576 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 49577 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
49578 | # Run compiler again with deps flag and redirect into the dep file. |
49579 | # It doesn't work if the '-o FILE' option is used, but without it the | |
49580 | # dependency file will contain the wrong name for the object. So it is | |
49581 | # removed from the command line, and the dep file is fixed with sed. | |
49582 | cmd="" | |
49583 | while test ${D}# -gt 0; do | |
49584 | case "${D}1" in | |
49585 | -o ) | |
49586 | shift | |
49587 | objfile=${D}1 | |
49588 | ;; | |
49589 | * ) | |
49590 | eval arg${D}#=\\${D}1 | |
49591 | cmd="${D}cmd \\${D}arg${D}#" | |
49592 | ;; | |
49593 | esac | |
49594 | shift | |
49595 | done | |
0ad5d837 | 49596 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 49597 | exit 0 |
a848cd7e | 49598 | else |
473276a9 VS |
49599 | ${D}* |
49600 | exit ${D}? | |
a848cd7e SC |
49601 | fi |
49602 | EOF | |
473276a9 | 49603 | |
f10e38c4 | 49604 | chmod +x bk-deps |
a485900c | 49605 | BK_DEPS="`pwd`/bk-deps" |
f10e38c4 | 49606 | fi |
a848cd7e SC |
49607 | fi |
49608 | ||
49609 | ||
49610 | ||
49611 | ||
a485900c | 49612 | |
a848cd7e SC |
49613 | case ${BAKEFILE_HOST} in |
49614 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
49615 | if test -n "$ac_tool_prefix"; then |
49616 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
49617 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
49618 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
49619 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
49620 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
49621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
49622 | else | |
49623 | if test -n "$WINDRES"; then | |
49624 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
49625 | else | |
49626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49627 | for as_dir in $PATH | |
49628 | do | |
49629 | IFS=$as_save_IFS | |
49630 | test -z "$as_dir" && as_dir=. | |
49631 | for ac_exec_ext in '' $ac_executable_extensions; do | |
49632 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
49633 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
49634 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
49635 | break 2 | |
49636 | fi | |
49637 | done | |
49638 | done | |
49639 | ||
49640 | fi | |
49641 | fi | |
49642 | WINDRES=$ac_cv_prog_WINDRES | |
49643 | if test -n "$WINDRES"; then | |
49644 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
49645 | echo "${ECHO_T}$WINDRES" >&6 | |
49646 | else | |
49647 | echo "$as_me:$LINENO: result: no" >&5 | |
49648 | echo "${ECHO_T}no" >&6 | |
49649 | fi | |
49650 | ||
49651 | fi | |
49652 | if test -z "$ac_cv_prog_WINDRES"; then | |
49653 | ac_ct_WINDRES=$WINDRES | |
49654 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e SC |
49655 | set dummy windres; ac_word=$2 |
49656 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
49657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 49658 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
a848cd7e SC |
49659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
49660 | else | |
8ced02f6 DE |
49661 | if test -n "$ac_ct_WINDRES"; then |
49662 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
49663 | else |
49664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49665 | for as_dir in $PATH | |
49666 | do | |
49667 | IFS=$as_save_IFS | |
49668 | test -z "$as_dir" && as_dir=. | |
49669 | for ac_exec_ext in '' $ac_executable_extensions; do | |
49670 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 49671 | ac_cv_prog_ac_ct_WINDRES="windres" |
a848cd7e SC |
49672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
49673 | break 2 | |
49674 | fi | |
49675 | done | |
49676 | done | |
49677 | ||
a848cd7e SC |
49678 | fi |
49679 | fi | |
8ced02f6 DE |
49680 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
49681 | if test -n "$ac_ct_WINDRES"; then | |
49682 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
49683 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
a848cd7e SC |
49684 | else |
49685 | echo "$as_me:$LINENO: result: no" >&5 | |
49686 | echo "${ECHO_T}no" >&6 | |
49687 | fi | |
49688 | ||
8ced02f6 DE |
49689 | WINDRES=$ac_ct_WINDRES |
49690 | else | |
49691 | WINDRES="$ac_cv_prog_WINDRES" | |
49692 | fi | |
49693 | ||
a848cd7e SC |
49694 | ;; |
49695 | ||
1e9e8aba | 49696 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
49697 | # Extract the first word of "Rez", so it can be a program name with args. |
49698 | set dummy Rez; ac_word=$2 | |
49699 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
49700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 49701 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
49702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
49703 | else | |
8ced02f6 DE |
49704 | if test -n "$REZ"; then |
49705 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
49706 | else |
49707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49708 | for as_dir in $PATH | |
49709 | do | |
49710 | IFS=$as_save_IFS | |
49711 | test -z "$as_dir" && as_dir=. | |
49712 | for ac_exec_ext in '' $ac_executable_extensions; do | |
49713 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 49714 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
49715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
49716 | break 2 | |
49717 | fi | |
49718 | done | |
49719 | done | |
49720 | ||
8ced02f6 | 49721 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
49722 | fi |
49723 | fi | |
8ced02f6 DE |
49724 | REZ=$ac_cv_prog_REZ |
49725 | if test -n "$REZ"; then | |
49726 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
49727 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
49728 | else |
49729 | echo "$as_me:$LINENO: result: no" >&5 | |
49730 | echo "${ECHO_T}no" >&6 | |
49731 | fi | |
49732 | ||
49733 | # Extract the first word of "SetFile", so it can be a program name with args. | |
49734 | set dummy SetFile; ac_word=$2 | |
49735 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
49736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
49737 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
49738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
49739 | else | |
49740 | if test -n "$SETFILE"; then | |
49741 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
49742 | else | |
49743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49744 | for as_dir in $PATH | |
49745 | do | |
49746 | IFS=$as_save_IFS | |
49747 | test -z "$as_dir" && as_dir=. | |
49748 | for ac_exec_ext in '' $ac_executable_extensions; do | |
49749 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
49750 | ac_cv_prog_SETFILE="SetFile" | |
49751 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
49752 | break 2 | |
49753 | fi | |
49754 | done | |
49755 | done | |
49756 | ||
49757 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
49758 | fi | |
49759 | fi | |
49760 | SETFILE=$ac_cv_prog_SETFILE | |
49761 | if test -n "$SETFILE"; then | |
49762 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
49763 | echo "${ECHO_T}$SETFILE" >&6 | |
49764 | else | |
49765 | echo "$as_me:$LINENO: result: no" >&5 | |
49766 | echo "${ECHO_T}no" >&6 | |
49767 | fi | |
49768 | ||
49769 | ;; | |
49770 | esac | |
49771 | ||
49772 | ||
49773 | ||
49774 | ||
49775 | ||
8ced02f6 | 49776 | |
99a2637b | 49777 | BAKEFILE_BAKEFILE_M4_VERSION="0.2.1" |
a848cd7e | 49778 | |
dcc1b6ad | 49779 | |
480b9f18 | 49780 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.1" |
a848cd7e | 49781 | |
646b6ec1 | 49782 | |
74b84332 | 49783 | |
a848cd7e SC |
49784 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
49785 | if test "${enable_precomp_headers+set}" = set; then | |
49786 | enableval="$enable_precomp_headers" | |
49787 | bk_use_pch="$enableval" | |
49788 | fi; | |
49789 | ||
49790 | GCC_PCH=0 | |
f10e38c4 VZ |
49791 | ICC_PCH=0 |
49792 | USE_PCH=0 | |
a485900c | 49793 | BK_MAKE_PCH="" |
a848cd7e | 49794 | |
5c60e845 MW |
49795 | case ${BAKEFILE_HOST} in |
49796 | *-*-cygwin* ) | |
49797 | bk_use_pch="no" | |
49798 | ;; | |
49799 | esac | |
49800 | ||
a848cd7e SC |
49801 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
49802 | if test "x$GCC" = "xyes"; then | |
49803 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
49804 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
49805 | cat >conftest.$ac_ext <<_ACEOF | |
49806 | /* confdefs.h. */ | |
49807 | _ACEOF | |
49808 | cat confdefs.h >>conftest.$ac_ext | |
49809 | cat >>conftest.$ac_ext <<_ACEOF | |
49810 | /* end confdefs.h. */ | |
49811 | ||
49812 | int | |
49813 | main () | |
49814 | { | |
49815 | ||
49816 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
e5efa97e | 49817 | There is no PCH support |
a848cd7e SC |
49818 | #endif |
49819 | #if (__GNUC__ < 3) | |
e5efa97e | 49820 | There is no PCH support |
a848cd7e SC |
49821 | #endif |
49822 | #if (__GNUC__ == 3) && \ | |
49823 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
f10e38c4 VZ |
49824 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \ |
49825 | ( defined(__INTEL_COMPILER) ) | |
e5efa97e | 49826 | There is no PCH support |
a848cd7e SC |
49827 | #endif |
49828 | ||
49829 | ; | |
49830 | return 0; | |
49831 | } | |
49832 | _ACEOF | |
49833 | rm -f conftest.$ac_objext | |
49834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 49835 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 49836 | ac_status=$? |
ac1cb8d3 VS |
49837 | grep -v '^ *+' conftest.er1 >conftest.err |
49838 | rm -f conftest.er1 | |
49839 | cat conftest.err >&5 | |
a848cd7e SC |
49840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
49841 | (exit $ac_status); } && | |
bb9e79c0 | 49842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
49843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
49844 | (eval $ac_try) 2>&5 | |
49845 | ac_status=$? | |
49846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
49847 | (exit $ac_status); }; } && | |
49848 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
49849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
49850 | (eval $ac_try) 2>&5 | |
49851 | ac_status=$? | |
49852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
49853 | (exit $ac_status); }; }; then | |
49854 | ||
49855 | echo "$as_me:$LINENO: result: yes" >&5 | |
49856 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
49857 | GCC_PCH=1 |
49858 | ||
49859 | else | |
49860 | echo "$as_me: failed program was:" >&5 | |
49861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
49862 | ||
49863 | ||
f10e38c4 VZ |
49864 | cat >conftest.$ac_ext <<_ACEOF |
49865 | /* confdefs.h. */ | |
49866 | _ACEOF | |
49867 | cat confdefs.h >>conftest.$ac_ext | |
49868 | cat >>conftest.$ac_ext <<_ACEOF | |
49869 | /* end confdefs.h. */ | |
49870 | ||
49871 | int | |
49872 | main () | |
49873 | { | |
49874 | ||
49875 | #if !defined(__INTEL_COMPILER) || \ | |
49876 | (__INTEL_COMPILER < 800) | |
e5efa97e | 49877 | There is no PCH support |
f10e38c4 VZ |
49878 | #endif |
49879 | ||
49880 | ; | |
49881 | return 0; | |
49882 | } | |
49883 | _ACEOF | |
49884 | rm -f conftest.$ac_objext | |
49885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
49886 | (eval $ac_compile) 2>conftest.er1 | |
49887 | ac_status=$? | |
49888 | grep -v '^ *+' conftest.er1 >conftest.err | |
49889 | rm -f conftest.er1 | |
49890 | cat conftest.err >&5 | |
49891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
49892 | (exit $ac_status); } && | |
bb9e79c0 | 49893 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f10e38c4 VZ |
49894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
49895 | (eval $ac_try) 2>&5 | |
49896 | ac_status=$? | |
49897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
49898 | (exit $ac_status); }; } && | |
49899 | { ac_try='test -s conftest.$ac_objext' | |
49900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
49901 | (eval $ac_try) 2>&5 | |
49902 | ac_status=$? | |
49903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
49904 | (exit $ac_status); }; }; then | |
49905 | ||
49906 | echo "$as_me:$LINENO: result: yes" >&5 | |
49907 | echo "${ECHO_T}yes" >&6 | |
49908 | ICC_PCH=1 | |
49909 | ||
49910 | else | |
49911 | echo "$as_me: failed program was:" >&5 | |
49912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
49913 | ||
49914 | ||
49915 | echo "$as_me:$LINENO: result: no" >&5 | |
a848cd7e SC |
49916 | echo "${ECHO_T}no" >&6 |
49917 | ||
49918 | fi | |
ac1cb8d3 | 49919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f10e38c4 VZ |
49920 | |
49921 | fi | |
49922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
49923 | if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then | |
49924 | USE_PCH=1 | |
1e9e8aba DE |
49925 | |
49926 | D='$' | |
49927 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
49928 | #!/bin/sh |
49929 | ||
49930 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
49931 | # script. It is used to generated precompiled headers. | |
49932 | # | |
49933 | # Permission is given to use this file in any way. | |
49934 | ||
1e9e8aba DE |
49935 | outfile="${D}{1}" |
49936 | header="${D}{2}" | |
a848cd7e SC |
49937 | shift |
49938 | shift | |
49939 | ||
f10e38c4 VZ |
49940 | compiler="" |
49941 | headerfile="" | |
49942 | ||
1e9e8aba | 49943 | while test ${D}{#} -gt 0; do |
f10e38c4 | 49944 | add_to_cmdline=1 |
1e9e8aba | 49945 | case "${D}{1}" in |
a848cd7e | 49946 | -I* ) |
1e9e8aba DE |
49947 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
49948 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
49949 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
49950 | fi |
49951 | ;; | |
f10e38c4 VZ |
49952 | -use-pch|-use_pch ) |
49953 | shift | |
49954 | add_to_cmdline=0 | |
49955 | ;; | |
a848cd7e | 49956 | esac |
f10e38c4 VZ |
49957 | if test ${D}add_to_cmdline = 1 ; then |
49958 | compiler="${D}{compiler} ${D}{1}" | |
49959 | fi | |
a848cd7e SC |
49960 | shift |
49961 | done | |
49962 | ||
1e9e8aba | 49963 | if test "x${D}{headerfile}" = "x" ; then |
f10e38c4 | 49964 | echo "error: can't find header ${D}{header} in include paths" >&2 |
a848cd7e | 49965 | else |
1e9e8aba DE |
49966 | if test -f ${D}{outfile} ; then |
49967 | rm -f ${D}{outfile} | |
a848cd7e | 49968 | else |
1e9e8aba | 49969 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 49970 | fi |
1e9e8aba | 49971 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e | 49972 | mkdir -p .deps |
f10e38c4 VZ |
49973 | if test "x${GCC_PCH}" = "x1" ; then |
49974 | # can do this because gcc is >= 3.4: | |
49975 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" | |
49976 | elif test "x${ICC_PCH}" = "x1" ; then | |
49977 | filename=pch_gen-${D}${D} | |
49978 | file=${D}{filename}.c | |
49979 | dfile=${D}{filename}.d | |
49980 | cat > ${D}file <<EOT | |
49981 | #include "${D}header" | |
49982 | EOT | |
49983 | # using -MF icc complains about differing command lines in creation/use | |
49984 | ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\ | |
49985 | sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\ | |
49986 | rm -f ${D}file ${D}dfile ${D}{filename}.o | |
49987 | fi | |
1e9e8aba | 49988 | exit ${D}{?} |
a848cd7e SC |
49989 | fi |
49990 | EOF | |
1e9e8aba | 49991 | |
a848cd7e | 49992 | chmod +x bk-make-pch |
a485900c | 49993 | BK_MAKE_PCH="`pwd`/bk-make-pch" |
a848cd7e SC |
49994 | fi |
49995 | fi | |
49996 | fi | |
49997 | ||
49998 | ||
49999 | ||
f10e38c4 | 50000 | |
a485900c | 50001 | |
a848cd7e SC |
50002 | COND_BUILD_DEBUG="#" |
50003 | if test "x$BUILD" = "xdebug" ; then | |
50004 | COND_BUILD_DEBUG="" | |
50005 | fi | |
50006 | ||
50007 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
50008 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
50009 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
50010 | fi | |
50011 | ||
50012 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
50013 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
50014 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
50015 | fi | |
50016 | ||
50017 | COND_BUILD_DEBUG_UNICODE_0="#" | |
50018 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
50019 | COND_BUILD_DEBUG_UNICODE_0="" | |
50020 | fi | |
50021 | ||
50022 | COND_BUILD_DEBUG_UNICODE_1="#" | |
50023 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
50024 | COND_BUILD_DEBUG_UNICODE_1="" | |
50025 | fi | |
50026 | ||
50027 | COND_BUILD_RELEASE="#" | |
50028 | if test "x$BUILD" = "xrelease" ; then | |
50029 | COND_BUILD_RELEASE="" | |
50030 | fi | |
50031 | ||
50032 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
50033 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
50034 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
50035 | fi | |
50036 | ||
50037 | COND_BUILD_RELEASE_UNICODE_0="#" | |
50038 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
50039 | COND_BUILD_RELEASE_UNICODE_0="" | |
50040 | fi | |
50041 | ||
50042 | COND_BUILD_RELEASE_UNICODE_1="#" | |
50043 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
50044 | COND_BUILD_RELEASE_UNICODE_1="" | |
50045 | fi | |
50046 | ||
50047 | COND_DEBUG_FLAG_1="#" | |
50048 | if test "x$DEBUG_FLAG" = "x1" ; then | |
50049 | COND_DEBUG_FLAG_1="" | |
50050 | fi | |
50051 | ||
50052 | COND_DEBUG_INFO_0="#" | |
50053 | if test "x$DEBUG_INFO" = "x0" ; then | |
50054 | COND_DEBUG_INFO_0="" | |
50055 | fi | |
50056 | ||
50057 | COND_DEBUG_INFO_1="#" | |
50058 | if test "x$DEBUG_INFO" = "x1" ; then | |
50059 | COND_DEBUG_INFO_1="" | |
50060 | fi | |
50061 | ||
50062 | COND_DEPS_TRACKING_0="#" | |
50063 | if test "x$DEPS_TRACKING" = "x0" ; then | |
50064 | COND_DEPS_TRACKING_0="" | |
50065 | fi | |
50066 | ||
50067 | COND_DEPS_TRACKING_1="#" | |
50068 | if test "x$DEPS_TRACKING" = "x1" ; then | |
50069 | COND_DEPS_TRACKING_1="" | |
50070 | fi | |
50071 | ||
50072 | COND_GCC_PCH_1="#" | |
50073 | if test "x$GCC_PCH" = "x1" ; then | |
50074 | COND_GCC_PCH_1="" | |
50075 | fi | |
50076 | ||
f10e38c4 VZ |
50077 | COND_ICC_PCH_1="#" |
50078 | if test "x$ICC_PCH" = "x1" ; then | |
50079 | COND_ICC_PCH_1="" | |
50080 | fi | |
50081 | ||
a848cd7e SC |
50082 | COND_MONOLITHIC_0="#" |
50083 | if test "x$MONOLITHIC" = "x0" ; then | |
50084 | COND_MONOLITHIC_0="" | |
50085 | fi | |
50086 | ||
50087 | COND_MONOLITHIC_0_SHARED_0="#" | |
50088 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
50089 | COND_MONOLITHIC_0_SHARED_0="" | |
50090 | fi | |
50091 | ||
3f60522a JS |
50092 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#" |
50093 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then | |
50094 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="" | |
50095 | fi | |
50096 | ||
a848cd7e SC |
50097 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" |
50098 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
50099 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
50100 | fi | |
50101 | ||
90970d69 DE |
50102 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
50103 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
50104 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
50105 | fi | |
50106 | ||
f10e38c4 VZ |
50107 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#" |
50108 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
50109 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="" | |
50110 | fi | |
50111 | ||
a848cd7e SC |
50112 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
50113 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
50114 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
50115 | fi | |
50116 | ||
6671c68b VZ |
50117 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
50118 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
50119 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
50120 | fi | |
50121 | ||
a848cd7e SC |
50122 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
50123 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
50124 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
50125 | fi | |
50126 | ||
8b6682b9 JS |
50127 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#" |
50128 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then | |
50129 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="" | |
50130 | fi | |
50131 | ||
ceec2216 RL |
50132 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
50133 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
50134 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
50135 | fi | |
50136 | ||
a848cd7e SC |
50137 | COND_MONOLITHIC_0_SHARED_1="#" |
50138 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
50139 | COND_MONOLITHIC_0_SHARED_1="" | |
50140 | fi | |
50141 | ||
3f60522a JS |
50142 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#" |
50143 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then | |
50144 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="" | |
50145 | fi | |
50146 | ||
a848cd7e SC |
50147 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
50148 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
50149 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
50150 | fi | |
50151 | ||
90970d69 DE |
50152 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
50153 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
50154 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
50155 | fi | |
50156 | ||
f10e38c4 VZ |
50157 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#" |
50158 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
50159 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="" | |
50160 | fi | |
50161 | ||
a848cd7e SC |
50162 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
50163 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
50164 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
50165 | fi | |
50166 | ||
6671c68b VZ |
50167 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
50168 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
50169 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
50170 | fi | |
50171 | ||
a848cd7e SC |
50172 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
50173 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
50174 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
50175 | fi | |
50176 | ||
8b6682b9 JS |
50177 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#" |
50178 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then | |
50179 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="" | |
50180 | fi | |
50181 | ||
ceec2216 RL |
50182 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
50183 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
50184 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
50185 | fi | |
50186 | ||
e5efa97e VZ |
50187 | COND_MONOLITHIC_0_USE_MEDIA_1="#" |
50188 | if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then | |
50189 | COND_MONOLITHIC_0_USE_MEDIA_1="" | |
50190 | fi | |
50191 | ||
a848cd7e SC |
50192 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
50193 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
50194 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
50195 | fi | |
50196 | ||
50197 | COND_MONOLITHIC_1="#" | |
50198 | if test "x$MONOLITHIC" = "x1" ; then | |
50199 | COND_MONOLITHIC_1="" | |
50200 | fi | |
50201 | ||
50202 | COND_MONOLITHIC_1_SHARED_0="#" | |
50203 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
50204 | COND_MONOLITHIC_1_SHARED_0="" | |
50205 | fi | |
50206 | ||
50207 | COND_MONOLITHIC_1_SHARED_1="#" | |
50208 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
50209 | COND_MONOLITHIC_1_SHARED_1="" | |
50210 | fi | |
50211 | ||
50212 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
50213 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
50214 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
50215 | fi | |
50216 | ||
50217 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
50218 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
50219 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
50220 | fi | |
50221 | ||
eb730a0c JS |
50222 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
50223 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
50224 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
50225 | fi | |
50226 | ||
a848cd7e SC |
50227 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
50228 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
50229 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
50230 | fi | |
50231 | ||
50232 | COND_PLATFORM_MACOSX_1="#" | |
50233 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
50234 | COND_PLATFORM_MACOSX_1="" | |
50235 | fi | |
50236 | ||
a30f955f VS |
50237 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
50238 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
50239 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
50240 | fi | |
50241 | ||
a848cd7e SC |
50242 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
50243 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
50244 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
50245 | fi | |
50246 | ||
50247 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
50248 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
50249 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
50250 | fi | |
50251 | ||
50252 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
50253 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
50254 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
50255 | fi | |
50256 | ||
fc480dc1 DE |
50257 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
50258 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
50259 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
50260 | fi | |
50261 | ||
ebee3cd0 VS |
50262 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
50263 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
50264 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
50265 | fi | |
50266 | ||
50267 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
50268 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
50269 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
50270 | fi | |
50271 | ||
a848cd7e SC |
50272 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
50273 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
50274 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
50275 | fi | |
50276 | ||
50277 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
50278 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
50279 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
50280 | fi | |
50281 | ||
b48a2016 DE |
50282 | COND_PLATFORM_MACOS_1="#" |
50283 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
50284 | COND_PLATFORM_MACOS_1="" | |
50285 | fi | |
50286 | ||
083508af MW |
50287 | COND_PLATFORM_MAC_1="#" |
50288 | if test "x$PLATFORM_MAC" = "x1" ; then | |
50289 | COND_PLATFORM_MAC_1="" | |
50290 | fi | |
50291 | ||
e5efa97e VZ |
50292 | COND_PLATFORM_MSDOS_0="#" |
50293 | if test "x$PLATFORM_MSDOS" = "x0" ; then | |
50294 | COND_PLATFORM_MSDOS_0="" | |
50295 | fi | |
50296 | ||
83d8eb47 MW |
50297 | COND_PLATFORM_MSDOS_1="#" |
50298 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
50299 | COND_PLATFORM_MSDOS_1="" | |
50300 | fi | |
50301 | ||
a848cd7e SC |
50302 | COND_PLATFORM_OS2_1="#" |
50303 | if test "x$PLATFORM_OS2" = "x1" ; then | |
50304 | COND_PLATFORM_OS2_1="" | |
50305 | fi | |
50306 | ||
50307 | COND_PLATFORM_UNIX_0="#" | |
50308 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
50309 | COND_PLATFORM_UNIX_0="" | |
50310 | fi | |
50311 | ||
50312 | COND_PLATFORM_UNIX_1="#" | |
50313 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
50314 | COND_PLATFORM_UNIX_1="" | |
50315 | fi | |
50316 | ||
50317 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
50318 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
50319 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
50320 | fi | |
50321 | ||
50322 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
50323 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
50324 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
50325 | fi | |
50326 | ||
50327 | COND_PLATFORM_WIN32_0="#" | |
50328 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
50329 | COND_PLATFORM_WIN32_0="" | |
50330 | fi | |
50331 | ||
50332 | COND_PLATFORM_WIN32_1="#" | |
50333 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
50334 | COND_PLATFORM_WIN32_1="" | |
50335 | fi | |
50336 | ||
50337 | COND_SHARED_0="#" | |
50338 | if test "x$SHARED" = "x0" ; then | |
50339 | COND_SHARED_0="" | |
50340 | fi | |
50341 | ||
083508af MW |
50342 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
50343 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
50344 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
50345 | fi | |
50346 | ||
50347 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
50348 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
50349 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
50350 | fi | |
50351 | ||
50352 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
50353 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
50354 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
50355 | fi | |
50356 | ||
a848cd7e SC |
50357 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
50358 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
50359 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
50360 | fi | |
50361 | ||
50362 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
50363 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
50364 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
50365 | fi | |
50366 | ||
50367 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
50368 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
50369 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
50370 | fi | |
50371 | ||
50372 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
50373 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
50374 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
50375 | fi | |
50376 | ||
083508af MW |
50377 | COND_SHARED_0_USE_XRC_1="#" |
50378 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
50379 | COND_SHARED_0_USE_XRC_1="" | |
50380 | fi | |
50381 | ||
a848cd7e SC |
50382 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
50383 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
50384 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
50385 | fi | |
50386 | ||
50387 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
50388 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
50389 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
50390 | fi | |
50391 | ||
50392 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
50393 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
50394 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
50395 | fi | |
50396 | ||
50397 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
50398 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
50399 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
50400 | fi | |
50401 | ||
50402 | COND_SHARED_1="#" | |
50403 | if test "x$SHARED" = "x1" ; then | |
50404 | COND_SHARED_1="" | |
50405 | fi | |
50406 | ||
50407 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
50408 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
50409 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
50410 | fi | |
50411 | ||
083508af MW |
50412 | COND_SHARED_1_USE_XRC_1="#" |
50413 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
50414 | COND_SHARED_1_USE_XRC_1="" | |
50415 | fi | |
50416 | ||
a30f955f VS |
50417 | COND_TOOLKIT_="#" |
50418 | if test "x$TOOLKIT" = "x" ; then | |
50419 | COND_TOOLKIT_="" | |
50420 | fi | |
50421 | ||
a848cd7e SC |
50422 | COND_TOOLKIT_COCOA="#" |
50423 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
50424 | COND_TOOLKIT_COCOA="" | |
50425 | fi | |
50426 | ||
a49baeab DE |
50427 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
50428 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
50429 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
50430 | fi | |
50431 | ||
a848cd7e SC |
50432 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
50433 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
50434 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
50435 | fi | |
50436 | ||
b3c86150 VS |
50437 | COND_TOOLKIT_DFB="#" |
50438 | if test "x$TOOLKIT" = "xDFB" ; then | |
50439 | COND_TOOLKIT_DFB="" | |
50440 | fi | |
50441 | ||
50442 | COND_TOOLKIT_DFB_USE_GUI_1="#" | |
50443 | if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then | |
50444 | COND_TOOLKIT_DFB_USE_GUI_1="" | |
50445 | fi | |
50446 | ||
a848cd7e SC |
50447 | COND_TOOLKIT_GTK="#" |
50448 | if test "x$TOOLKIT" = "xGTK" ; then | |
50449 | COND_TOOLKIT_GTK="" | |
50450 | fi | |
50451 | ||
d044deea MW |
50452 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#" |
50453 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then | |
50454 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="" | |
50455 | fi | |
50456 | ||
50457 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" | |
50458 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
50459 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
50460 | fi | |
50461 | ||
50462 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
50463 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
50464 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
50465 | fi | |
50466 | ||
50467 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#" | |
50468 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
50469 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="" | |
50470 | fi | |
50471 | ||
50472 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#" | |
50473 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then | |
50474 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="" | |
50475 | fi | |
50476 | ||
50477 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#" | |
50478 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
50479 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="" | |
50480 | fi | |
50481 | ||
a848cd7e SC |
50482 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
50483 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
50484 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
50485 | fi | |
50486 | ||
a848cd7e SC |
50487 | COND_TOOLKIT_MAC="#" |
50488 | if test "x$TOOLKIT" = "xMAC" ; then | |
50489 | COND_TOOLKIT_MAC="" | |
50490 | fi | |
50491 | ||
50492 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
50493 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
50494 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
50495 | fi | |
50496 | ||
50497 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
50498 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
50499 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
50500 | fi | |
50501 | ||
50502 | COND_TOOLKIT_MGL="#" | |
50503 | if test "x$TOOLKIT" = "xMGL" ; then | |
50504 | COND_TOOLKIT_MGL="" | |
50505 | fi | |
50506 | ||
50507 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
50508 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
50509 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
50510 | fi | |
50511 | ||
50512 | COND_TOOLKIT_MOTIF="#" | |
50513 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
50514 | COND_TOOLKIT_MOTIF="" | |
50515 | fi | |
50516 | ||
50517 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
50518 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
50519 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
50520 | fi | |
50521 | ||
50522 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
50523 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
50524 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
50525 | fi | |
50526 | ||
50527 | COND_TOOLKIT_MSW="#" | |
50528 | if test "x$TOOLKIT" = "xMSW" ; then | |
50529 | COND_TOOLKIT_MSW="" | |
50530 | fi | |
50531 | ||
50532 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
50533 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
50534 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
50535 | fi | |
50536 | ||
50537 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
50538 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
50539 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
50540 | fi | |
50541 | ||
0ee4059d DE |
50542 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
50543 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
50544 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
50545 | fi | |
50546 | ||
a848cd7e SC |
50547 | COND_TOOLKIT_PM="#" |
50548 | if test "x$TOOLKIT" = "xPM" ; then | |
50549 | COND_TOOLKIT_PM="" | |
50550 | fi | |
50551 | ||
50552 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
50553 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
50554 | COND_TOOLKIT_PM_USE_GUI_1="" | |
50555 | fi | |
50556 | ||
50557 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
50558 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
50559 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
50560 | fi | |
50561 | ||
3fd9c298 DE |
50562 | COND_TOOLKIT_WINCE="#" |
50563 | if test "x$TOOLKIT" = "xWINCE" ; then | |
50564 | COND_TOOLKIT_WINCE="" | |
50565 | fi | |
50566 | ||
50567 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
50568 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
50569 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
50570 | fi | |
50571 | ||
50572 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
50573 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
50574 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
50575 | fi | |
50576 | ||
0ee4059d DE |
50577 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
50578 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
50579 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
50580 | fi | |
50581 | ||
a848cd7e SC |
50582 | COND_TOOLKIT_X11="#" |
50583 | if test "x$TOOLKIT" = "xX11" ; then | |
50584 | COND_TOOLKIT_X11="" | |
50585 | fi | |
50586 | ||
50587 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
50588 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
50589 | COND_TOOLKIT_X11_USE_GUI_1="" | |
50590 | fi | |
50591 | ||
50592 | COND_UNICODE_1="#" | |
50593 | if test "x$UNICODE" = "x1" ; then | |
50594 | COND_UNICODE_1="" | |
50595 | fi | |
50596 | ||
50597 | COND_USE_EXCEPTIONS_0="#" | |
50598 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
50599 | COND_USE_EXCEPTIONS_0="" | |
50600 | fi | |
50601 | ||
50602 | COND_USE_EXCEPTIONS_1="#" | |
50603 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
50604 | COND_USE_EXCEPTIONS_1="" | |
50605 | fi | |
50606 | ||
50607 | COND_USE_GUI_0="#" | |
50608 | if test "x$USE_GUI" = "x0" ; then | |
50609 | COND_USE_GUI_0="" | |
50610 | fi | |
50611 | ||
50612 | COND_USE_GUI_1="#" | |
50613 | if test "x$USE_GUI" = "x1" ; then | |
50614 | COND_USE_GUI_1="" | |
50615 | fi | |
50616 | ||
50617 | COND_USE_GUI_1_WXUNIV_0="#" | |
50618 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
50619 | COND_USE_GUI_1_WXUNIV_0="" | |
50620 | fi | |
50621 | ||
50622 | COND_USE_GUI_1_WXUNIV_1="#" | |
50623 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
50624 | COND_USE_GUI_1_WXUNIV_1="" | |
50625 | fi | |
50626 | ||
50627 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
50628 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
50629 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
50630 | fi | |
50631 | ||
50632 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
50633 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
50634 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
50635 | fi | |
50636 | ||
50637 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
50638 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
50639 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
50640 | fi | |
50641 | ||
083508af MW |
50642 | COND_USE_ODBC_1="#" |
50643 | if test "x$USE_ODBC" = "x1" ; then | |
50644 | COND_USE_ODBC_1="" | |
50645 | fi | |
50646 | ||
50647 | COND_USE_OPENGL_1="#" | |
50648 | if test "x$USE_OPENGL" = "x1" ; then | |
50649 | COND_USE_OPENGL_1="" | |
50650 | fi | |
50651 | ||
f10e38c4 VZ |
50652 | COND_USE_PCH_1="#" |
50653 | if test "x$USE_PCH" = "x1" ; then | |
50654 | COND_USE_PCH_1="" | |
50655 | fi | |
50656 | ||
a848cd7e SC |
50657 | COND_USE_PLUGINS_0="#" |
50658 | if test "x$USE_PLUGINS" = "x0" ; then | |
50659 | COND_USE_PLUGINS_0="" | |
50660 | fi | |
50661 | ||
0b78747f MW |
50662 | COND_USE_RTTI_0="#" |
50663 | if test "x$USE_RTTI" = "x0" ; then | |
50664 | COND_USE_RTTI_0="" | |
50665 | fi | |
50666 | ||
50667 | COND_USE_RTTI_1="#" | |
50668 | if test "x$USE_RTTI" = "x1" ; then | |
50669 | COND_USE_RTTI_1="" | |
50670 | fi | |
50671 | ||
a848cd7e SC |
50672 | COND_USE_SOSYMLINKS_1="#" |
50673 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
50674 | COND_USE_SOSYMLINKS_1="" | |
50675 | fi | |
50676 | ||
eb730a0c JS |
50677 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
50678 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
50679 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
50680 | fi | |
50681 | ||
a848cd7e SC |
50682 | COND_USE_SOVERLINUX_1="#" |
50683 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
50684 | COND_USE_SOVERLINUX_1="" | |
50685 | fi | |
50686 | ||
50687 | COND_USE_SOVERSION_0="#" | |
50688 | if test "x$USE_SOVERSION" = "x0" ; then | |
50689 | COND_USE_SOVERSION_0="" | |
50690 | fi | |
50691 | ||
50692 | COND_USE_SOVERSOLARIS_1="#" | |
50693 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
50694 | COND_USE_SOVERSOLARIS_1="" | |
50695 | fi | |
50696 | ||
0b78747f MW |
50697 | COND_USE_THREADS_0="#" |
50698 | if test "x$USE_THREADS" = "x0" ; then | |
50699 | COND_USE_THREADS_0="" | |
50700 | fi | |
50701 | ||
50702 | COND_USE_THREADS_1="#" | |
50703 | if test "x$USE_THREADS" = "x1" ; then | |
50704 | COND_USE_THREADS_1="" | |
50705 | fi | |
50706 | ||
a13a7f89 RL |
50707 | COND_USE_XRC_1="#" |
50708 | if test "x$USE_XRC" = "x1" ; then | |
50709 | COND_USE_XRC_1="" | |
50710 | fi | |
50711 | ||
eb730a0c JS |
50712 | COND_WINDOWS_IMPLIB_1="#" |
50713 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
50714 | COND_WINDOWS_IMPLIB_1="" | |
50715 | fi | |
50716 | ||
a848cd7e SC |
50717 | COND_WITH_PLUGIN_SDL_1="#" |
50718 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
50719 | COND_WITH_PLUGIN_SDL_1="" | |
50720 | fi | |
50721 | ||
1e6eb025 VZ |
50722 | COND_WXUNIV_0="#" |
50723 | if test "x$WXUNIV" = "x0" ; then | |
50724 | COND_WXUNIV_0="" | |
50725 | fi | |
50726 | ||
a848cd7e SC |
50727 | COND_WXUNIV_1="#" |
50728 | if test "x$WXUNIV" = "x1" ; then | |
50729 | COND_WXUNIV_1="" | |
50730 | fi | |
50731 | ||
50732 | COND_WXUSE_EXPAT_BUILTIN="#" | |
50733 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
50734 | COND_WXUSE_EXPAT_BUILTIN="" | |
50735 | fi | |
50736 | ||
50737 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
50738 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
50739 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
50740 | fi | |
50741 | ||
50742 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
50743 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
50744 | COND_WXUSE_LIBPNG_BUILTIN="" | |
50745 | fi | |
50746 | ||
50747 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
50748 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
50749 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
50750 | fi | |
50751 | ||
50752 | COND_WXUSE_ODBC_BUILTIN="#" | |
50753 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
50754 | COND_WXUSE_ODBC_BUILTIN="" | |
50755 | fi | |
50756 | ||
50757 | COND_WXUSE_REGEX_BUILTIN="#" | |
50758 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
50759 | COND_WXUSE_REGEX_BUILTIN="" | |
50760 | fi | |
50761 | ||
50762 | COND_WXUSE_ZLIB_BUILTIN="#" | |
50763 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
50764 | COND_WXUSE_ZLIB_BUILTIN="" | |
50765 | fi | |
50766 | ||
50767 | ||
50768 | ||
810b94f0 MW |
50769 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
50770 | { { 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 | |
50771 | 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;} | |
50772 | { (exit 1); exit 1; }; } | |
50773 | fi | |
50774 | ||
2057db16 VS |
50775 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
50776 | { { 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 | |
50777 | 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;} | |
50778 | { (exit 1); exit 1; }; } | |
50779 | fi | |
50780 | ||
a848cd7e | 50781 | |
a81d5bb6 MW |
50782 | if test $GCC_PCH = 1 |
50783 | then | |
50784 | if test "$wx_cv_gcc_pch_bug" = yes; then | |
50785 | { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5 | |
50786 | echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;} | |
50787 | { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5 | |
50788 | echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;} | |
50789 | { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5 | |
50790 | echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;} | |
50791 | fi | |
50792 | ||
50793 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" | |
50794 | fi | |
50795 | ||
7afc46ab KO |
50796 | |
50797 | if test "$wxUSE_MAC" = 1 ; then | |
95768535 | 50798 | if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then |
7afc46ab KO |
50799 | sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp |
50800 | mv temp bk-deps | |
50801 | chmod +x bk-deps | |
50802 | fi | |
50803 | fi | |
50804 | ||
ceec2216 RL |
50805 | if test "$wxUSE_SHARED" = "yes"; then |
50806 | ||
50807 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
50808 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
50809 | ||
5b674b9d DE |
50810 | case "${host}" in |
50811 | *-pc-os2_emx | *-pc-os2-emx ) | |
50812 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
50813 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
ec3edcc9 VZ |
50814 | cp -p ${srcdir}/src/os2/dllnames.sh . |
50815 | cp -p ${srcdir}/src/os2/dllar.sh . | |
5b674b9d DE |
50816 | ;; |
50817 | esac | |
ceec2216 RL |
50818 | else |
50819 | ||
50820 | EXE_LINKER="$CXX -o" | |
50821 | ||
50822 | fi | |
69120ee4 VZ |
50823 | if test "$wxUSE_OMF" = "yes"; then |
50824 | case "${host}" in | |
50825 | *-pc-os2_emx | *-pc-os2-emx ) | |
50826 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
50827 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
50828 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
50829 | ;; | |
50830 | esac | |
50831 | fi | |
a848cd7e | 50832 | |
5ff751d6 | 50833 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
50834 | |
50835 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
50836 | ||
50837 | ||
50838 | ||
50839 | ||
50840 | ||
50841 | ||
50842 | ||
50843 | ||
50844 | ||
50845 | ||
50846 | ||
50847 | ||
50848 | ||
50849 | ||
50850 | ||
50851 | ||
50852 | ||
50853 | ||
50854 | ||
50855 | ||
50856 | ||
50857 | ||
50858 | ||
50859 | ||
50860 | ||
50861 | ||
50862 | ||
50863 | ||
50864 | ||
50865 | ||
50866 | ||
50867 | ||
50868 | ||
50869 | ||
50870 | ||
50871 | ||
50872 | ||
50873 | ||
50874 | ||
50875 | ||
50876 | ||
50877 | ||
a848cd7e SC |
50878 | |
50879 | ||
50880 | ||
50881 | ||
50882 | ||
50883 | ||
50884 | ||
50885 | ||
50886 | ||
50887 | ||
50888 | ||
50889 | ||
a848cd7e SC |
50890 | |
50891 | ||
ddd14b14 | 50892 | |
370d2fd7 | 50893 | |
8ced02f6 | 50894 | |
a848cd7e SC |
50895 | |
50896 | ||
50897 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
50898 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 50899 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
50900 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
50901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50902 | else | |
50903 | cat >conftest.make <<\_ACEOF | |
50904 | all: | |
50905 | @echo 'ac_maketemp="$(MAKE)"' | |
50906 | _ACEOF | |
50907 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
50908 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
50909 | if test -n "$ac_maketemp"; then | |
50910 | eval ac_cv_prog_make_${ac_make}_set=yes | |
50911 | else | |
50912 | eval ac_cv_prog_make_${ac_make}_set=no | |
50913 | fi | |
50914 | rm -f conftest.make | |
50915 | fi | |
50916 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
50917 | echo "$as_me:$LINENO: result: yes" >&5 | |
50918 | echo "${ECHO_T}yes" >&6 | |
50919 | SET_MAKE= | |
50920 | else | |
50921 | echo "$as_me:$LINENO: result: no" >&5 | |
50922 | echo "${ECHO_T}no" >&6 | |
50923 | SET_MAKE="MAKE=${MAKE-make}" | |
50924 | fi | |
50925 | ||
50926 | ||
a848cd7e | 50927 | |
ceec2216 RL |
50928 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
50929 | ||
a848cd7e | 50930 | |
5c60e845 MW |
50931 | if test "$USE_WIN32" = 1; then |
50932 | ac_config_commands="$ac_config_commands | |
50933 | rcdefs.h | |
50934 | " | |
50935 | ||
50936 | fi | |
50937 | ||
ceec2216 | 50938 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 50939 | |
a848cd7e | 50940 | |
ceec2216 | 50941 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 50942 | |
ceec2216 RL |
50943 | |
50944 | ac_config_files="$ac_config_files version-script Makefile" | |
50945 | ||
50946 | ||
5c60e845 | 50947 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
50948 | |
50949 | ||
9103d280 | 50950 | |
1c14217d | 50951 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
50952 | if test "$wxUSE_GUI" = "yes"; then |
50953 | SUBDIRS="samples demos utils contrib" | |
50954 | else SUBDIRS="samples utils" | |
50955 | fi | |
50956 | ||
50957 | ||
50958 | ||
50959 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
50960 | if test "${with_cppunit_prefix+set}" = set; then | |
50961 | withval="$with_cppunit_prefix" | |
50962 | cppunit_config_prefix="$withval" | |
50963 | else | |
50964 | cppunit_config_prefix="" | |
50965 | fi; | |
50966 | ||
50967 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
50968 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
50969 | withval="$with_cppunit_exec_prefix" | |
50970 | cppunit_config_exec_prefix="$withval" | |
50971 | else | |
50972 | cppunit_config_exec_prefix="" | |
50973 | fi; | |
50974 | ||
50975 | if test x$cppunit_config_exec_prefix != x ; then | |
50976 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
50977 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
50978 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
50979 | fi | |
50980 | fi | |
50981 | if test x$cppunit_config_prefix != x ; then | |
50982 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
50983 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
50984 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
50985 | fi | |
50986 | fi | |
50987 | ||
50988 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
50989 | set dummy cppunit-config; ac_word=$2 | |
50990 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
50991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
50992 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
50993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50994 | else | |
50995 | case $CPPUNIT_CONFIG in | |
50996 | [\\/]* | ?:[\\/]*) | |
50997 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
50998 | ;; | |
50999 | *) | |
51000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
51001 | for as_dir in $PATH | |
51002 | do | |
51003 | IFS=$as_save_IFS | |
51004 | test -z "$as_dir" && as_dir=. | |
51005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
51006 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
51007 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
51008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
51009 | break 2 | |
51010 | fi | |
51011 | done | |
51012 | done | |
51013 | ||
51014 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
51015 | ;; | |
51016 | esac | |
51017 | fi | |
51018 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
51019 | ||
51020 | if test -n "$CPPUNIT_CONFIG"; then | |
51021 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
51022 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
51023 | else | |
51024 | echo "$as_me:$LINENO: result: no" >&5 | |
51025 | echo "${ECHO_T}no" >&6 | |
51026 | fi | |
51027 | ||
51028 | cppunit_version_min=1.8.0 | |
51029 | ||
51030 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
51031 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
51032 | no_cppunit="" | |
51033 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
3ecd9f92 MW |
51034 | echo "$as_me:$LINENO: result: no" >&5 |
51035 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
51036 | no_cppunit=yes |
51037 | else | |
51038 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
51039 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
51040 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
51041 | ||
51042 | cppunit_major_version=`echo $cppunit_version | \ | |
51043 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
51044 | cppunit_minor_version=`echo $cppunit_version | \ | |
51045 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
51046 | cppunit_micro_version=`echo $cppunit_version | \ | |
51047 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
51048 | ||
51049 | cppunit_major_min=`echo $cppunit_version_min | \ | |
51050 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
51051 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
51052 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
51053 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
51054 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
51055 | ||
51056 | cppunit_version_proper=`expr \ | |
51057 | $cppunit_major_version \> $cppunit_major_min \| \ | |
51058 | $cppunit_major_version \= $cppunit_major_min \& \ | |
51059 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
51060 | $cppunit_major_version \= $cppunit_major_min \& \ | |
51061 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
51062 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
51063 | ||
51064 | if test "$cppunit_version_proper" = "1" ; then | |
51065 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
51066 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
51067 | else | |
51068 | echo "$as_me:$LINENO: result: no" >&5 | |
51069 | echo "${ECHO_T}no" >&6 | |
51070 | no_cppunit=yes | |
51071 | fi | |
51072 | fi | |
51073 | ||
51074 | if test "x$no_cppunit" = x ; then | |
c2218763 | 51075 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
51076 | else |
51077 | CPPUNIT_CFLAGS="" | |
51078 | CPPUNIT_LIBS="" | |
c2218763 | 51079 | : |
a848cd7e SC |
51080 | fi |
51081 | ||
51082 | ||
51083 | ||
51084 | ||
51085 | ||
74d92aac VZ |
51086 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
51087 | DISABLED_CONTRIB="$DISABLED_CONTRIB net" | |
51088 | fi | |
51089 | ||
a848cd7e SC |
51090 | for subdir in `echo $SUBDIRS`; do |
51091 | if test -d ${srcdir}/${subdir} ; then | |
51092 | if test "$wxUSE_GUI" = "yes"; then | |
51093 | if test ${subdir} = "samples"; then | |
51094 | makefiles="samples/Makefile.in $makefiles" | |
51095 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
51096 | if test -d $srcdir/samples/$sample; then | |
51097 | makefiles="samples/$sample/Makefile.in $makefiles" | |
51098 | fi | |
51099 | done | |
9c112555 MW |
51100 | else |
51101 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
51102 | eval "disabled=\$$disabled_var" | |
51103 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
51104 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
51105 | fi |
51106 | else if test ${subdir} = "samples"; then | |
51107 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
51108 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
51109 | makefiles="" |
51110 | for util in HelpGen tex2rtf ; do | |
51111 | if test -d $srcdir/utils/$util ; then | |
51112 | makefiles="utils/$util/Makefile.in \ | |
51113 | utils/$util/src/Makefile.in \ | |
51114 | $makefiles" | |
51115 | fi | |
51116 | done | |
a848cd7e SC |
51117 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
51118 | fi | |
51119 | fi | |
51120 | ||
51121 | for mkin in $makefiles ; do | |
51122 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
51123 | ac_config_files="$ac_config_files $mk" | |
51124 | ||
51125 | done | |
51126 | fi | |
51127 | done | |
1c14217d | 51128 | fi |
a848cd7e SC |
51129 | cat >confcache <<\_ACEOF |
51130 | # This file is a shell script that caches the results of configure | |
51131 | # tests run on this system so they can be shared between configure | |
51132 | # scripts and configure runs, see configure's option --config-cache. | |
51133 | # It is not useful on other systems. If it contains results you don't | |
51134 | # want to keep, you may remove or edit it. | |
51135 | # | |
51136 | # config.status only pays attention to the cache file if you give it | |
51137 | # the --recheck option to rerun configure. | |
51138 | # | |
51139 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
51140 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
51141 | # following values. | |
51142 | ||
51143 | _ACEOF | |
51144 | ||
51145 | # The following way of writing the cache mishandles newlines in values, | |
51146 | # but we know of no workaround that is simple, portable, and efficient. | |
51147 | # So, don't put newlines in cache variables' values. | |
51148 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
51149 | # and sets the high bit in the cache file unless we assign to the vars. | |
51150 | { | |
51151 | (set) 2>&1 | | |
51152 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
51153 | *ac_space=\ *) | |
51154 | # `set' does not quote correctly, so add quotes (double-quote | |
51155 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
51156 | sed -n \ | |
ac1cb8d3 VS |
51157 | "s/'/'\\\\''/g; |
51158 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
51159 | ;; |
51160 | *) | |
51161 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
51162 | sed -n \ | |
ac1cb8d3 | 51163 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
51164 | ;; |
51165 | esac; | |
51166 | } | | |
51167 | sed ' | |
51168 | t clear | |
51169 | : clear | |
51170 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
51171 | t end | |
51172 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
51173 | : end' >>confcache | |
51174 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
51175 | if test -w $cache_file; then | |
51176 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
51177 | cat confcache >$cache_file | |
51178 | else | |
51179 | echo "not updating unwritable cache $cache_file" | |
51180 | fi | |
51181 | fi | |
51182 | rm -f confcache | |
51183 | ||
51184 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
51185 | # Let make expand exec_prefix. | |
51186 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
51187 | ||
51188 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
51189 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
51190 | # trailing colons and then remove the whole line if VPATH becomes empty | |
51191 | # (actually we leave an empty line to preserve line numbers). | |
51192 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 51193 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
51194 | s/:*\$(srcdir):*/:/; |
51195 | s/:*\${srcdir}:*/:/; | |
51196 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 51197 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 51198 | s/:*$//; |
ac1cb8d3 | 51199 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
51200 | }' |
51201 | fi | |
51202 | ||
51203 | DEFS=-DHAVE_CONFIG_H | |
51204 | ||
51205 | ac_libobjs= | |
51206 | ac_ltlibobjs= | |
51207 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
51208 | # 1. Remove the extension, and $U if already installed. | |
51209 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 51210 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
51211 | # 2. Add them. |
51212 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
51213 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
51214 | done | |
51215 | LIBOBJS=$ac_libobjs | |
51216 | ||
51217 | LTLIBOBJS=$ac_ltlibobjs | |
51218 | ||
51219 | ||
51220 | ||
51221 | : ${CONFIG_STATUS=./config.status} | |
51222 | ac_clean_files_save=$ac_clean_files | |
51223 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
51224 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
51225 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
51226 | cat >$CONFIG_STATUS <<_ACEOF | |
51227 | #! $SHELL | |
51228 | # Generated by $as_me. | |
51229 | # Run this file to recreate the current configuration. | |
51230 | # Compiler output produced by configure, useful for debugging | |
51231 | # configure, is in config.log if it exists. | |
51232 | ||
51233 | debug=false | |
51234 | ac_cs_recheck=false | |
51235 | ac_cs_silent=false | |
51236 | SHELL=\${CONFIG_SHELL-$SHELL} | |
51237 | _ACEOF | |
51238 | ||
51239 | cat >>$CONFIG_STATUS <<\_ACEOF | |
51240 | ## --------------------- ## | |
51241 | ## M4sh Initialization. ## | |
51242 | ## --------------------- ## | |
51243 | ||
51244 | # Be Bourne compatible | |
51245 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
51246 | emulate sh | |
51247 | NULLCMD=: | |
51248 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
51249 | # is contrary to our usage. Disable this feature. | |
51250 | alias -g '${1+"$@"}'='"$@"' | |
51251 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
51252 | set -o posix | |
51253 | fi | |
ac1cb8d3 | 51254 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
51255 | |
51256 | # Support unset when possible. | |
ac1cb8d3 | 51257 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
51258 | as_unset=unset |
51259 | else | |
51260 | as_unset=false | |
51261 | fi | |
51262 | ||
51263 | ||
51264 | # Work around bugs in pre-3.0 UWIN ksh. | |
51265 | $as_unset ENV MAIL MAILPATH | |
51266 | PS1='$ ' | |
51267 | PS2='> ' | |
51268 | PS4='+ ' | |
51269 | ||
51270 | # NLS nuisances. | |
51271 | for as_var in \ | |
51272 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
51273 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
51274 | LC_TELEPHONE LC_TIME | |
51275 | do | |
ac1cb8d3 | 51276 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
51277 | eval $as_var=C; export $as_var |
51278 | else | |
51279 | $as_unset $as_var | |
51280 | fi | |
51281 | done | |
51282 | ||
51283 | # Required to use basename. | |
51284 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
51285 | as_expr=expr | |
51286 | else | |
51287 | as_expr=false | |
51288 | fi | |
51289 | ||
51290 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
51291 | as_basename=basename | |
51292 | else | |
51293 | as_basename=false | |
51294 | fi | |
51295 | ||
51296 | ||
51297 | # Name of the executable. | |
51298 | as_me=`$as_basename "$0" || | |
51299 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
51300 | X"$0" : 'X\(//\)$' \| \ | |
51301 | X"$0" : 'X\(/\)$' \| \ | |
51302 | . : '\(.\)' 2>/dev/null || | |
51303 | echo X/"$0" | | |
51304 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
51305 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
51306 | /^X\/\(\/\).*/{ s//\1/; q; } | |
51307 | s/.*/./; q'` | |
51308 | ||
51309 | ||
51310 | # PATH needs CR, and LINENO needs CR and PATH. | |
51311 | # Avoid depending upon Character Ranges. | |
51312 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
51313 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
51314 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
51315 | as_cr_digits='0123456789' | |
51316 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
51317 | ||
51318 | # The user is always right. | |
51319 | if test "${PATH_SEPARATOR+set}" != set; then | |
51320 | echo "#! /bin/sh" >conf$$.sh | |
51321 | echo "exit 0" >>conf$$.sh | |
51322 | chmod +x conf$$.sh | |
51323 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
51324 | PATH_SEPARATOR=';' | |
51325 | else | |
51326 | PATH_SEPARATOR=: | |
51327 | fi | |
51328 | rm -f conf$$.sh | |
51329 | fi | |
51330 | ||
51331 | ||
51332 | as_lineno_1=$LINENO | |
51333 | as_lineno_2=$LINENO | |
51334 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
51335 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
51336 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
51337 | # Find who we are. Look in the path if we contain no path at all | |
51338 | # relative or not. | |
51339 | case $0 in | |
51340 | *[\\/]* ) as_myself=$0 ;; | |
51341 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
51342 | for as_dir in $PATH | |
51343 | do | |
51344 | IFS=$as_save_IFS | |
51345 | test -z "$as_dir" && as_dir=. | |
51346 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
51347 | done | |
51348 | ||
51349 | ;; | |
51350 | esac | |
51351 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
51352 | # in which case we are not to be found in the path. | |
51353 | if test "x$as_myself" = x; then | |
51354 | as_myself=$0 | |
51355 | fi | |
51356 | if test ! -f "$as_myself"; then | |
51357 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
51358 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
51359 | { (exit 1); exit 1; }; } | |
51360 | fi | |
51361 | case $CONFIG_SHELL in | |
51362 | '') | |
51363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
51364 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
51365 | do | |
51366 | IFS=$as_save_IFS | |
51367 | test -z "$as_dir" && as_dir=. | |
51368 | for as_base in sh bash ksh sh5; do | |
51369 | case $as_dir in | |
51370 | /*) | |
51371 | if ("$as_dir/$as_base" -c ' | |
51372 | as_lineno_1=$LINENO | |
51373 | as_lineno_2=$LINENO | |
51374 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
51375 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
51376 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
51377 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
51378 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
51379 | CONFIG_SHELL=$as_dir/$as_base | |
51380 | export CONFIG_SHELL | |
51381 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
51382 | fi;; | |
51383 | esac | |
51384 | done | |
51385 | done | |
51386 | ;; | |
51387 | esac | |
51388 | ||
51389 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
51390 | # uniformly replaced by the line number. The first 'sed' inserts a | |
51391 | # line-number line before each line; the second 'sed' does the real | |
51392 | # work. The second script uses 'N' to pair each line-number line | |
51393 | # with the numbered line, and appends trailing '-' during | |
51394 | # substitution so that $LINENO is not a special case at line end. | |
51395 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
51396 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
51397 | sed '=' <$as_myself | | |
51398 | sed ' | |
51399 | N | |
51400 | s,$,-, | |
51401 | : loop | |
51402 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
51403 | t loop | |
51404 | s,-$,, | |
51405 | s,^['$as_cr_digits']*\n,, | |
51406 | ' >$as_me.lineno && | |
51407 | chmod +x $as_me.lineno || | |
51408 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
51409 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
51410 | { (exit 1); exit 1; }; } | |
51411 | ||
51412 | # Don't try to exec as it changes $[0], causing all sort of problems | |
51413 | # (the dirname of $[0] is not the place where we might find the | |
51414 | # original and so on. Autoconf is especially sensible to this). | |
51415 | . ./$as_me.lineno | |
51416 | # Exit status is that of the last command. | |
51417 | exit | |
51418 | } | |
51419 | ||
51420 | ||
51421 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
51422 | *c*,-n*) ECHO_N= ECHO_C=' | |
51423 | ' ECHO_T=' ' ;; | |
51424 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
51425 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
51426 | esac | |
51427 | ||
51428 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
51429 | as_expr=expr | |
51430 | else | |
51431 | as_expr=false | |
51432 | fi | |
51433 | ||
51434 | rm -f conf$$ conf$$.exe conf$$.file | |
51435 | echo >conf$$.file | |
51436 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
51437 | # We could just check for DJGPP; but this test a) works b) is more generic | |
51438 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
51439 | if test -f conf$$.exe; then | |
51440 | # Don't use ln at all; we don't have any links | |
51441 | as_ln_s='cp -p' | |
51442 | else | |
51443 | as_ln_s='ln -s' | |
51444 | fi | |
51445 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
51446 | as_ln_s=ln | |
51447 | else | |
51448 | as_ln_s='cp -p' | |
51449 | fi | |
51450 | rm -f conf$$ conf$$.exe conf$$.file | |
51451 | ||
51452 | if mkdir -p . 2>/dev/null; then | |
51453 | as_mkdir_p=: | |
51454 | else | |
ac1cb8d3 | 51455 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
51456 | as_mkdir_p=false |
51457 | fi | |
51458 | ||
51459 | as_executable_p="test -f" | |
51460 | ||
51461 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 51462 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
51463 | |
51464 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 51465 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
51466 | |
51467 | ||
51468 | # IFS | |
51469 | # We need space, tab and new line, in precisely that order. | |
51470 | as_nl=' | |
51471 | ' | |
51472 | IFS=" $as_nl" | |
51473 | ||
51474 | # CDPATH. | |
51475 | $as_unset CDPATH | |
51476 | ||
51477 | exec 6>&1 | |
51478 | ||
51479 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
51480 | # report actual input values of CONFIG_FILES etc. instead of their | |
51481 | # values after options handling. Logging --version etc. is OK. | |
51482 | exec 5>>config.log | |
51483 | { | |
51484 | echo | |
51485 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
51486 | ## Running $as_me. ## | |
51487 | _ASBOX | |
51488 | } >&5 | |
51489 | cat >&5 <<_CSEOF | |
51490 | ||
f1e3914f | 51491 | This file was extended by wxWidgets $as_me 2.7.1, which was |
ac1cb8d3 | 51492 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
51493 | |
51494 | CONFIG_FILES = $CONFIG_FILES | |
51495 | CONFIG_HEADERS = $CONFIG_HEADERS | |
51496 | CONFIG_LINKS = $CONFIG_LINKS | |
51497 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
51498 | $ $0 $@ | |
51499 | ||
51500 | _CSEOF | |
51501 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
51502 | echo >&5 | |
51503 | _ACEOF | |
51504 | ||
51505 | # Files that config.status was made for. | |
51506 | if test -n "$ac_config_files"; then | |
51507 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
51508 | fi | |
51509 | ||
51510 | if test -n "$ac_config_headers"; then | |
51511 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
51512 | fi | |
51513 | ||
51514 | if test -n "$ac_config_links"; then | |
51515 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
51516 | fi | |
51517 | ||
51518 | if test -n "$ac_config_commands"; then | |
51519 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
51520 | fi | |
51521 | ||
51522 | cat >>$CONFIG_STATUS <<\_ACEOF | |
51523 | ||
51524 | ac_cs_usage="\ | |
51525 | \`$as_me' instantiates files from templates according to the | |
51526 | current configuration. | |
51527 | ||
51528 | Usage: $0 [OPTIONS] [FILE]... | |
51529 | ||
51530 | -h, --help print this help, then exit | |
51531 | -V, --version print version number, then exit | |
51532 | -q, --quiet do not print progress messages | |
51533 | -d, --debug don't remove temporary files | |
51534 | --recheck update $as_me by reconfiguring in the same conditions | |
51535 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 51536 | instantiate the configuration file FILE |
a848cd7e | 51537 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 51538 | instantiate the configuration header FILE |
a848cd7e SC |
51539 | |
51540 | Configuration files: | |
51541 | $config_files | |
51542 | ||
51543 | Configuration headers: | |
51544 | $config_headers | |
51545 | ||
51546 | Configuration commands: | |
51547 | $config_commands | |
51548 | ||
51549 | Report bugs to <bug-autoconf@gnu.org>." | |
51550 | _ACEOF | |
51551 | ||
51552 | cat >>$CONFIG_STATUS <<_ACEOF | |
51553 | ac_cs_version="\\ | |
f1e3914f | 51554 | wxWidgets config.status 2.7.1 |
ac1cb8d3 | 51555 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
51556 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
51557 | ||
ac1cb8d3 | 51558 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
51559 | This config.status script is free software; the Free Software Foundation |
51560 | gives unlimited permission to copy, distribute and modify it." | |
51561 | srcdir=$srcdir | |
51562 | INSTALL="$INSTALL" | |
51563 | _ACEOF | |
51564 | ||
51565 | cat >>$CONFIG_STATUS <<\_ACEOF | |
51566 | # If no file are specified by the user, then we need to provide default | |
51567 | # value. By we need to know if files were specified by the user. | |
51568 | ac_need_defaults=: | |
51569 | while test $# != 0 | |
51570 | do | |
51571 | case $1 in | |
51572 | --*=*) | |
51573 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
51574 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
51575 | ac_shift=: | |
51576 | ;; | |
51577 | -*) | |
51578 | ac_option=$1 | |
51579 | ac_optarg=$2 | |
51580 | ac_shift=shift | |
51581 | ;; | |
51582 | *) # This is not an option, so the user has probably given explicit | |
51583 | # arguments. | |
51584 | ac_option=$1 | |
51585 | ac_need_defaults=false;; | |
51586 | esac | |
51587 | ||
51588 | case $ac_option in | |
51589 | # Handling of the options. | |
51590 | _ACEOF | |
51591 | cat >>$CONFIG_STATUS <<\_ACEOF | |
51592 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
51593 | ac_cs_recheck=: ;; | |
51594 | --version | --vers* | -V ) | |
51595 | echo "$ac_cs_version"; exit 0 ;; | |
51596 | --he | --h) | |
51597 | # Conflict between --help and --header | |
51598 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
51599 | Try \`$0 --help' for more information." >&5 | |
51600 | echo "$as_me: error: ambiguous option: $1 | |
51601 | Try \`$0 --help' for more information." >&2;} | |
51602 | { (exit 1); exit 1; }; };; | |
51603 | --help | --hel | -h ) | |
51604 | echo "$ac_cs_usage"; exit 0 ;; | |
51605 | --debug | --d* | -d ) | |
51606 | debug=: ;; | |
51607 | --file | --fil | --fi | --f ) | |
51608 | $ac_shift | |
51609 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
51610 | ac_need_defaults=false;; | |
51611 | --header | --heade | --head | --hea ) | |
51612 | $ac_shift | |
51613 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
51614 | ac_need_defaults=false;; | |
51615 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
51616 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
51617 | ac_cs_silent=: ;; | |
51618 | ||
51619 | # This is an error. | |
51620 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
51621 | Try \`$0 --help' for more information." >&5 | |
51622 | echo "$as_me: error: unrecognized option: $1 | |
51623 | Try \`$0 --help' for more information." >&2;} | |
51624 | { (exit 1); exit 1; }; } ;; | |
51625 | ||
51626 | *) ac_config_targets="$ac_config_targets $1" ;; | |
51627 | ||
51628 | esac | |
51629 | shift | |
51630 | done | |
51631 | ||
51632 | ac_configure_extra_args= | |
51633 | ||
51634 | if $ac_cs_silent; then | |
51635 | exec 6>/dev/null | |
51636 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
51637 | fi | |
51638 | ||
51639 | _ACEOF | |
51640 | cat >>$CONFIG_STATUS <<_ACEOF | |
51641 | if \$ac_cs_recheck; then | |
51642 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
51643 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
51644 | fi | |
51645 | ||
51646 | _ACEOF | |
51647 | ||
51648 | cat >>$CONFIG_STATUS <<_ACEOF | |
51649 | # | |
51650 | # INIT-COMMANDS section. | |
51651 | # | |
51652 | ||
5c60e845 MW |
51653 | |
51654 | CPP="$CPP" | |
51655 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
51656 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
51657 | ||
51658 | ||
ceec2216 RL |
51659 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
51660 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
51661 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
51662 | LN_S="${LN_S}" | |
a848cd7e SC |
51663 | |
51664 | ||
51665 | _ACEOF | |
51666 | ||
51667 | ||
51668 | ||
51669 | cat >>$CONFIG_STATUS <<\_ACEOF | |
51670 | for ac_config_target in $ac_config_targets | |
51671 | do | |
51672 | case "$ac_config_target" in | |
51673 | # Handling of arguments. | |
ceec2216 RL |
51674 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
51675 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
51676 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
51677 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
51678 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
5c60e845 | 51679 | "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; |
ceec2216 RL |
51680 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
51681 | "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 |
51682 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
51683 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
51684 | { (exit 1); exit 1; }; };; | |
51685 | esac | |
51686 | done | |
51687 | ||
51688 | # If the user did not use the arguments to specify the items to instantiate, | |
51689 | # then the envvar interface is used. Set only those that are not. | |
51690 | # We use the long form for the default assignment because of an extremely | |
51691 | # bizarre bug on SunOS 4.1.3. | |
51692 | if $ac_need_defaults; then | |
51693 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
51694 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
51695 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
51696 | fi | |
51697 | ||
51698 | # Have a temporary directory for convenience. Make it in the build tree | |
51699 | # simply because there is no reason to put it here, and in addition, | |
51700 | # creating and moving files from /tmp can sometimes cause problems. | |
51701 | # Create a temporary directory, and hook for its removal unless debugging. | |
51702 | $debug || | |
51703 | { | |
51704 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
51705 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
51706 | } | |
51707 | ||
51708 | # Create a (secure) tmp directory for tmp files. | |
51709 | ||
51710 | { | |
51711 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
51712 | test -n "$tmp" && test -d "$tmp" | |
51713 | } || | |
51714 | { | |
51715 | tmp=./confstat$$-$RANDOM | |
51716 | (umask 077 && mkdir $tmp) | |
51717 | } || | |
51718 | { | |
51719 | echo "$me: cannot create a temporary directory in ." >&2 | |
51720 | { (exit 1); exit 1; } | |
51721 | } | |
51722 | ||
51723 | _ACEOF | |
51724 | ||
51725 | cat >>$CONFIG_STATUS <<_ACEOF | |
51726 | ||
51727 | # | |
51728 | # CONFIG_FILES section. | |
51729 | # | |
51730 | ||
51731 | # No need to generate the scripts if there are no CONFIG_FILES. | |
51732 | # This happens for instance when ./config.status config.h | |
51733 | if test -n "\$CONFIG_FILES"; then | |
51734 | # Protect against being on the right side of a sed subst in config.status. | |
51735 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
51736 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
51737 | s,@SHELL@,$SHELL,;t t | |
51738 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
51739 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
51740 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
51741 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
51742 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
51743 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
51744 | s,@exec_prefix@,$exec_prefix,;t t | |
51745 | s,@prefix@,$prefix,;t t | |
51746 | s,@program_transform_name@,$program_transform_name,;t t | |
51747 | s,@bindir@,$bindir,;t t | |
51748 | s,@sbindir@,$sbindir,;t t | |
51749 | s,@libexecdir@,$libexecdir,;t t | |
51750 | s,@datadir@,$datadir,;t t | |
51751 | s,@sysconfdir@,$sysconfdir,;t t | |
51752 | s,@sharedstatedir@,$sharedstatedir,;t t | |
51753 | s,@localstatedir@,$localstatedir,;t t | |
51754 | s,@libdir@,$libdir,;t t | |
51755 | s,@includedir@,$includedir,;t t | |
51756 | s,@oldincludedir@,$oldincludedir,;t t | |
51757 | s,@infodir@,$infodir,;t t | |
51758 | s,@mandir@,$mandir,;t t | |
51759 | s,@build_alias@,$build_alias,;t t | |
51760 | s,@host_alias@,$host_alias,;t t | |
51761 | s,@target_alias@,$target_alias,;t t | |
51762 | s,@DEFS@,$DEFS,;t t | |
51763 | s,@ECHO_C@,$ECHO_C,;t t | |
51764 | s,@ECHO_N@,$ECHO_N,;t t | |
51765 | s,@ECHO_T@,$ECHO_T,;t t | |
51766 | s,@LIBS@,$LIBS,;t t | |
51767 | s,@build@,$build,;t t | |
51768 | s,@build_cpu@,$build_cpu,;t t | |
51769 | s,@build_vendor@,$build_vendor,;t t | |
51770 | s,@build_os@,$build_os,;t t | |
51771 | s,@host@,$host,;t t | |
51772 | s,@host_cpu@,$host_cpu,;t t | |
51773 | s,@host_vendor@,$host_vendor,;t t | |
51774 | s,@host_os@,$host_os,;t t | |
51775 | s,@target@,$target,;t t | |
51776 | s,@target_cpu@,$target_cpu,;t t | |
51777 | s,@target_vendor@,$target_vendor,;t t | |
51778 | s,@target_os@,$target_os,;t t | |
02b05020 | 51779 | s,@wx_top_builddir@,$wx_top_builddir,;t t |
a848cd7e SC |
51780 | s,@CC@,$CC,;t t |
51781 | s,@CFLAGS@,$CFLAGS,;t t | |
51782 | s,@LDFLAGS@,$LDFLAGS,;t t | |
51783 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
51784 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
51785 | s,@EXEEXT@,$EXEEXT,;t t | |
51786 | s,@OBJEXT@,$OBJEXT,;t t | |
51787 | s,@CPP@,$CPP,;t t | |
51788 | s,@EGREP@,$EGREP,;t t | |
51789 | s,@CXX@,$CXX,;t t | |
51790 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
51791 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
51792 | s,@RANLIB@,$RANLIB,;t t | |
51793 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
51794 | s,@AR@,$AR,;t t | |
8c80d384 | 51795 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
51796 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
51797 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
51798 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
51799 | s,@STRIP@,$STRIP,;t t | |
8c80d384 | 51800 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
8ced02f6 DE |
51801 | s,@WINDRES@,$WINDRES,;t t |
51802 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
8c80d384 DE |
51803 | s,@DLLTOOL@,$DLLTOOL,;t t |
51804 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
51805 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
51806 | s,@LN_S@,$LN_S,;t t | |
51807 | s,@CXXCPP@,$CXXCPP,;t t | |
51808 | s,@subdirs@,$subdirs,;t t | |
51809 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
51810 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
51811 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
51812 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
b3c86150 VS |
51813 | s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t |
51814 | s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t | |
51815 | s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t | |
a848cd7e SC |
51816 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
51817 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
51818 | s,@X_LIBS@,$X_LIBS,;t t | |
51819 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
51820 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
51821 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
51822 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
51823 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
51824 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
51825 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
8ced02f6 | 51826 | s,@REZ@,$REZ,;t t |
a848cd7e SC |
51827 | s,@DEREZ@,$DEREZ,;t t |
51828 | s,@SETFILE@,$SETFILE,;t t | |
51829 | s,@LIBICONV@,$LIBICONV,;t t | |
51830 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
51831 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
51832 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
51833 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
51834 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
51835 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
2b850ae1 RR |
51836 | s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t |
51837 | s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t | |
3565d135 RR |
51838 | s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t |
51839 | s,@HILDON_LIBS@,$HILDON_LIBS,;t t | |
64b75e64 RD |
51840 | s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t |
51841 | s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t | |
f10e38c4 VZ |
51842 | s,@GST_CFLAGS@,$GST_CFLAGS,;t t |
51843 | s,@GST_LIBS@,$GST_LIBS,;t t | |
a848cd7e SC |
51844 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
51845 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
51846 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
51847 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
51848 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
51849 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
51850 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
51851 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
51852 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
51853 | s,@VENDOR@,$VENDOR,;t t | |
51854 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
51855 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
51856 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
51857 | s,@WXUNIV@,$WXUNIV,;t t |
51858 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
51859 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
51860 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
51861 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
51862 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
51863 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
51864 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
51865 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
51866 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
51867 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 51868 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
2b850ae1 | 51869 | s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t |
3565d135 | 51870 | s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t |
a848cd7e SC |
51871 | s,@UNICODE@,$UNICODE,;t t |
51872 | s,@BUILD@,$BUILD,;t t | |
51873 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
51874 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
51875 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
51876 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
51877 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
51878 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
51879 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
51880 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
51881 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
51882 | s,@SET_MAKE@,$SET_MAKE,;t t | |
51883 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a485900c | 51884 | s,@AROPTIONS@,$AROPTIONS,;t t |
a848cd7e SC |
51885 | s,@NM@,$NM,;t t |
51886 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
51887 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
51888 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
51889 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
51890 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
51891 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
51892 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 51893 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
51894 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
51895 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 51896 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
51897 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
51898 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
51899 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
51900 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
51901 | s,@LIBEXT@,$LIBEXT,;t t | |
51902 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
51903 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 51904 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
51905 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
51906 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
51907 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
51908 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
51909 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
51910 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 51911 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
51912 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
51913 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
51914 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 51915 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
51916 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
51917 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
51918 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
51919 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
a485900c | 51920 | s,@BK_DEPS@,$BK_DEPS,;t t |
a848cd7e | 51921 | s,@GCC_PCH@,$GCC_PCH,;t t |
f10e38c4 | 51922 | s,@ICC_PCH@,$ICC_PCH,;t t |
a485900c | 51923 | s,@BK_MAKE_PCH@,$BK_MAKE_PCH,;t t |
a848cd7e SC |
51924 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
51925 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
51926 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
51927 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
51928 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
51929 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
51930 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
51931 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
51932 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
51933 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
51934 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
51935 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
51936 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
51937 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
51938 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
f10e38c4 | 51939 | s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t |
a848cd7e SC |
51940 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
51941 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
3f60522a | 51942 | s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t |
a848cd7e | 51943 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t |
90970d69 | 51944 | 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 | 51945 | 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 | 51946 | 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 | 51947 | 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 | 51948 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8b6682b9 | 51949 | s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t |
ceec2216 | 51950 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e | 51951 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
3f60522a | 51952 | s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t |
a848cd7e | 51953 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
90970d69 | 51954 | 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 | 51955 | 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 | 51956 | 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 | 51957 | 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 | 51958 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
8b6682b9 | 51959 | s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t |
ceec2216 | 51960 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
e5efa97e | 51961 | s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t |
a848cd7e SC |
51962 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
51963 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
51964 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
51965 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
51966 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
51967 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 51968 | 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 |
51969 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
51970 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 51971 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
51972 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
51973 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
51974 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 51975 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
ebee3cd0 VS |
51976 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
51977 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
51978 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
51979 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 51980 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 51981 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
e5efa97e | 51982 | s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t |
83d8eb47 | 51983 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
51984 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
51985 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
51986 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
51987 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
51988 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
51989 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
51990 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
51991 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
51992 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
51993 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
51994 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
51995 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
51996 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
51997 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
51998 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 51999 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
52000 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
52001 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
52002 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
52003 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
52004 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
52005 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 52006 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 52007 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 52008 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 52009 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e | 52010 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
b3c86150 VS |
52011 | s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t |
52012 | s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t | |
a848cd7e | 52013 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t |
d044deea MW |
52014 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t |
52015 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t | |
52016 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t | |
52017 | 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 | |
52018 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t | |
52019 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e | 52020 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t |
a848cd7e SC |
52021 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
52022 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
52023 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
52024 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
52025 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
52026 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
52027 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
52028 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
52029 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
52030 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
52031 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 52032 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
52033 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
52034 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
52035 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
52036 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
52037 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
52038 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 52039 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
52040 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
52041 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
52042 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
52043 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
52044 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
52045 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
52046 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
52047 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
52048 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
52049 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
52050 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
52051 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
52052 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
52053 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
f10e38c4 | 52054 | s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t |
a848cd7e | 52055 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
52056 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
52057 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 52058 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 52059 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
52060 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
52061 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
52062 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
52063 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
52064 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 52065 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 52066 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 52067 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 52068 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
52069 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
52070 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
52071 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
52072 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
52073 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
52074 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
52075 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
52076 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 52077 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
52078 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
52079 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
52080 | s,@USE_GUI@,$USE_GUI,;t t |
52081 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
52082 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
52083 | s,@TOOLKIT@,$TOOLKIT,;t t | |
52084 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 52085 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 52086 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e | 52087 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
52088 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
52089 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
52090 | s,@WX_VERSION@,$WX_VERSION,;t t | |
52091 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
52092 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
52093 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
5ff751d6 VZ |
52094 | s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t |
52095 | s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t | |
52096 | s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t | |
52097 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
a848cd7e SC |
52098 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t |
52099 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
004ee6da | 52100 | s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t |
ceec2216 | 52101 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 52102 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
52103 | s,@DISTDIR@,$DISTDIR,;t t |
52104 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
52105 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
52106 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
52107 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
52108 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
004ee6da | 52109 | s,@RESCOMP@,$RESCOMP,;t t |
a848cd7e SC |
52110 | s,@RESFLAGS@,$RESFLAGS,;t t |
52111 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
52112 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
52113 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
52114 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
8ced02f6 | 52115 | s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t |
a848cd7e | 52116 | s,@MACSETFILE@,$MACSETFILE,;t t |
a848cd7e | 52117 | s,@GCC@,$GCC,;t t |
a848cd7e SC |
52118 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
52119 | s,@LIBOBJS@,$LIBOBJS,;t t | |
52120 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
52121 | CEOF | |
52122 | ||
52123 | _ACEOF | |
52124 | ||
52125 | cat >>$CONFIG_STATUS <<\_ACEOF | |
52126 | # Split the substitutions into bite-sized pieces for seds with | |
52127 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
52128 | ac_max_sed_lines=48 | |
52129 | ac_sed_frag=1 # Number of current file. | |
52130 | ac_beg=1 # First line for current file. | |
52131 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
52132 | ac_more_lines=: | |
52133 | ac_sed_cmds= | |
52134 | while $ac_more_lines; do | |
52135 | if test $ac_beg -gt 1; then | |
52136 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
52137 | else | |
52138 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
52139 | fi | |
52140 | if test ! -s $tmp/subs.frag; then | |
52141 | ac_more_lines=false | |
52142 | else | |
52143 | # The purpose of the label and of the branching condition is to | |
52144 | # speed up the sed processing (if there are no `@' at all, there | |
52145 | # is no need to browse any of the substitutions). | |
52146 | # These are the two extra sed commands mentioned above. | |
52147 | (echo ':t | |
52148 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
52149 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 52150 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 52151 | else |
ac1cb8d3 | 52152 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
52153 | fi |
52154 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
52155 | ac_beg=$ac_end | |
52156 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
52157 | fi | |
52158 | done | |
52159 | if test -z "$ac_sed_cmds"; then | |
52160 | ac_sed_cmds=cat | |
52161 | fi | |
52162 | fi # test -n "$CONFIG_FILES" | |
52163 | ||
52164 | _ACEOF | |
52165 | cat >>$CONFIG_STATUS <<\_ACEOF | |
52166 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
52167 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
52168 | case $ac_file in | |
52169 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
52170 | cat >$tmp/stdin |
52171 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
52172 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 52173 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 52174 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
52175 | * ) ac_file_in=$ac_file.in ;; |
52176 | esac | |
52177 | ||
52178 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
52179 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
52180 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
52181 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
52182 | X"$ac_file" : 'X\(//\)$' \| \ | |
52183 | X"$ac_file" : 'X\(/\)' \| \ | |
52184 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
52185 | echo X"$ac_file" | |
52186 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
52187 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
52188 | /^X\(\/\/\)$/{ s//\1/; q; } | |
52189 | /^X\(\/\).*/{ s//\1/; q; } | |
52190 | s/.*/./; q'` | |
52191 | { if $as_mkdir_p; then | |
52192 | mkdir -p "$ac_dir" | |
52193 | else | |
52194 | as_dir="$ac_dir" | |
52195 | as_dirs= | |
52196 | while test ! -d "$as_dir"; do | |
52197 | as_dirs="$as_dir $as_dirs" | |
52198 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
52199 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
52200 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
52201 | X"$as_dir" : 'X\(//\)$' \| \ | |
52202 | X"$as_dir" : 'X\(/\)' \| \ | |
52203 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
52204 | echo X"$as_dir" | |
52205 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
52206 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
52207 | /^X\(\/\/\)$/{ s//\1/; q; } | |
52208 | /^X\(\/\).*/{ s//\1/; q; } | |
52209 | s/.*/./; q'` | |
52210 | done | |
52211 | test ! -n "$as_dirs" || mkdir $as_dirs | |
52212 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
52213 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
52214 | { (exit 1); exit 1; }; }; } | |
52215 | ||
52216 | ac_builddir=. | |
52217 | ||
52218 | if test "$ac_dir" != .; then | |
52219 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
52220 | # A "../" for each directory in $ac_dir_suffix. | |
52221 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
52222 | else | |
52223 | ac_dir_suffix= ac_top_builddir= | |
52224 | fi | |
52225 | ||
52226 | case $srcdir in | |
52227 | .) # No --srcdir option. We are building in place. | |
52228 | ac_srcdir=. | |
52229 | if test -z "$ac_top_builddir"; then | |
52230 | ac_top_srcdir=. | |
52231 | else | |
52232 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
52233 | fi ;; | |
52234 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
52235 | ac_srcdir=$srcdir$ac_dir_suffix; | |
52236 | ac_top_srcdir=$srcdir ;; | |
52237 | *) # Relative path. | |
52238 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
52239 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
52240 | esac | |
ac1cb8d3 VS |
52241 | |
52242 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
52243 | # the directories may not exist. | |
52244 | case `pwd` in | |
52245 | .) ac_abs_builddir="$ac_dir";; | |
52246 | *) | |
52247 | case "$ac_dir" in | |
52248 | .) ac_abs_builddir=`pwd`;; | |
52249 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
52250 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
52251 | esac;; | |
52252 | esac | |
52253 | case $ac_abs_builddir in | |
52254 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
52255 | *) | |
52256 | case ${ac_top_builddir}. in | |
52257 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
52258 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
52259 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
52260 | esac;; | |
52261 | esac | |
52262 | case $ac_abs_builddir in | |
52263 | .) ac_abs_srcdir=$ac_srcdir;; | |
52264 | *) | |
52265 | case $ac_srcdir in | |
52266 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
52267 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
52268 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
52269 | esac;; | |
52270 | esac | |
52271 | case $ac_abs_builddir in | |
52272 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
52273 | *) | |
52274 | case $ac_top_srcdir in | |
52275 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
52276 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
52277 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
52278 | esac;; | |
52279 | esac | |
a848cd7e SC |
52280 | |
52281 | ||
52282 | case $INSTALL in | |
52283 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
52284 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
52285 | esac | |
52286 | ||
a848cd7e SC |
52287 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
52288 | # use $as_me), people would be surprised to read: | |
52289 | # /* config.h. Generated by config.status. */ | |
52290 | if test x"$ac_file" = x-; then | |
52291 | configure_input= | |
52292 | else | |
52293 | configure_input="$ac_file. " | |
52294 | fi | |
52295 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 52296 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
52297 | |
52298 | # First look for the input files in the build tree, otherwise in the | |
52299 | # src tree. | |
52300 | ac_file_inputs=`IFS=: | |
52301 | for f in $ac_file_in; do | |
52302 | case $f in | |
52303 | -) echo $tmp/stdin ;; | |
52304 | [\\/$]*) | |
ac1cb8d3 VS |
52305 | # Absolute (can't be DOS-style, as IFS=:) |
52306 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
52307 | echo "$as_me: error: cannot find input file: $f" >&2;} |
52308 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 52309 | echo "$f";; |
a848cd7e | 52310 | *) # Relative |
ac1cb8d3 VS |
52311 | if test -f "$f"; then |
52312 | # Build tree | |
52313 | echo "$f" | |
52314 | elif test -f "$srcdir/$f"; then | |
52315 | # Source tree | |
52316 | echo "$srcdir/$f" | |
52317 | else | |
52318 | # /dev/null tree | |
52319 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
52320 | echo "$as_me: error: cannot find input file: $f" >&2;} |
52321 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 52322 | fi;; |
a848cd7e SC |
52323 | esac |
52324 | done` || { (exit 1); exit 1; } | |
bb9e79c0 VZ |
52325 | |
52326 | if test x"$ac_file" != x-; then | |
52327 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
52328 | echo "$as_me: creating $ac_file" >&6;} | |
52329 | rm -f "$ac_file" | |
52330 | fi | |
a848cd7e SC |
52331 | _ACEOF |
52332 | cat >>$CONFIG_STATUS <<_ACEOF | |
52333 | sed "$ac_vpsub | |
52334 | $extrasub | |
52335 | _ACEOF | |
52336 | cat >>$CONFIG_STATUS <<\_ACEOF | |
52337 | :t | |
52338 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
52339 | s,@configure_input@,$configure_input,;t t | |
52340 | s,@srcdir@,$ac_srcdir,;t t | |
52341 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
52342 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
52343 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
52344 | s,@builddir@,$ac_builddir,;t t | |
52345 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
52346 | s,@top_builddir@,$ac_top_builddir,;t t | |
52347 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
52348 | s,@INSTALL@,$ac_INSTALL,;t t | |
52349 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
52350 | rm -f $tmp/stdin | |
52351 | if test x"$ac_file" != x-; then | |
52352 | mv $tmp/out $ac_file | |
52353 | else | |
52354 | cat $tmp/out | |
52355 | rm -f $tmp/out | |
52356 | fi | |
52357 | ||
ceec2216 RL |
52358 | # Run the commands associated with the file. |
52359 | case $ac_file in | |
52360 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
52361 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
52362 | esac | |
a848cd7e SC |
52363 | done |
52364 | _ACEOF | |
52365 | cat >>$CONFIG_STATUS <<\_ACEOF | |
52366 | ||
52367 | # | |
52368 | # CONFIG_HEADER section. | |
52369 | # | |
52370 | ||
52371 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
52372 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
52373 | # | |
52374 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
52375 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
52376 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
52377 | ac_dC=' ' |
52378 | ac_dD=',;t' | |
52379 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 52380 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
52381 | ac_uB='$,\1#\2define\3' |
52382 | ac_uC=' ' | |
52383 | ac_uD=',;t' | |
52384 | ||
52385 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
52386 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
52387 | case $ac_file in | |
52388 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
52389 | cat >$tmp/stdin |
52390 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
52391 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 52392 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 52393 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
52394 | * ) ac_file_in=$ac_file.in ;; |
52395 | esac | |
52396 | ||
52397 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
52398 | echo "$as_me: creating $ac_file" >&6;} | |
52399 | ||
52400 | # First look for the input files in the build tree, otherwise in the | |
52401 | # src tree. | |
52402 | ac_file_inputs=`IFS=: | |
52403 | for f in $ac_file_in; do | |
52404 | case $f in | |
52405 | -) echo $tmp/stdin ;; | |
52406 | [\\/$]*) | |
ac1cb8d3 VS |
52407 | # Absolute (can't be DOS-style, as IFS=:) |
52408 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
52409 | echo "$as_me: error: cannot find input file: $f" >&2;} |
52410 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
52411 | # Do quote $f, to prevent DOS paths from being IFS'd. |
52412 | echo "$f";; | |
a848cd7e | 52413 | *) # Relative |
ac1cb8d3 VS |
52414 | if test -f "$f"; then |
52415 | # Build tree | |
52416 | echo "$f" | |
52417 | elif test -f "$srcdir/$f"; then | |
52418 | # Source tree | |
52419 | echo "$srcdir/$f" | |
52420 | else | |
52421 | # /dev/null tree | |
52422 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
52423 | echo "$as_me: error: cannot find input file: $f" >&2;} |
52424 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 52425 | fi;; |
a848cd7e SC |
52426 | esac |
52427 | done` || { (exit 1); exit 1; } | |
52428 | # Remove the trailing spaces. | |
ac1cb8d3 | 52429 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
52430 | |
52431 | _ACEOF | |
52432 | ||
52433 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
52434 | # `conftest.undefs', that substitutes the proper values into | |
52435 | # config.h.in to produce config.h. The first handles `#define' | |
52436 | # templates, and the second `#undef' templates. | |
52437 | # And first: Protect against being on the right side of a sed subst in | |
52438 | # config.status. Protect against being in an unquoted here document | |
52439 | # in config.status. | |
52440 | rm -f conftest.defines conftest.undefs | |
52441 | # Using a here document instead of a string reduces the quoting nightmare. | |
52442 | # Putting comments in sed scripts is not portable. | |
52443 | # | |
52444 | # `end' is used to avoid that the second main sed command (meant for | |
52445 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
52446 | # See the Autoconf documentation for `clear'. | |
52447 | cat >confdef2sed.sed <<\_ACEOF | |
52448 | s/[\\&,]/\\&/g | |
52449 | s,[\\$`],\\&,g | |
52450 | t clear | |
52451 | : clear | |
ac1cb8d3 | 52452 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 52453 | t end |
ac1cb8d3 | 52454 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
52455 | : end |
52456 | _ACEOF | |
52457 | # If some macros were called several times there might be several times | |
52458 | # the same #defines, which is useless. Nevertheless, we may not want to | |
52459 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
52460 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
52461 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
52462 | rm -f confdef2sed.sed | |
52463 | ||
52464 | # This sed command replaces #undef with comments. This is necessary, for | |
52465 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
52466 | # on some systems where configure will not decide to define it. | |
52467 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 52468 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
52469 | _ACEOF |
52470 | ||
52471 | # Break up conftest.defines because some shells have a limit on the size | |
52472 | # of here documents, and old seds have small limits too (100 cmds). | |
52473 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 52474 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
52475 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
52476 | echo ' :' >>$CONFIG_STATUS | |
52477 | rm -f conftest.tail | |
52478 | while grep . conftest.defines >/dev/null | |
52479 | do | |
52480 | # Write a limited-size here document to $tmp/defines.sed. | |
52481 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
52482 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 52483 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
52484 | # Work around the forget-to-reset-the-flag bug. |
52485 | echo 't clr' >>$CONFIG_STATUS | |
52486 | echo ': clr' >>$CONFIG_STATUS | |
52487 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
52488 | echo 'CEOF | |
52489 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
52490 | rm -f $tmp/in | |
52491 | mv $tmp/out $tmp/in | |
52492 | ' >>$CONFIG_STATUS | |
52493 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
52494 | rm -f conftest.defines | |
52495 | mv conftest.tail conftest.defines | |
52496 | done | |
52497 | rm -f conftest.defines | |
52498 | echo ' fi # grep' >>$CONFIG_STATUS | |
52499 | echo >>$CONFIG_STATUS | |
52500 | ||
52501 | # Break up conftest.undefs because some shells have a limit on the size | |
52502 | # of here documents, and old seds have small limits too (100 cmds). | |
52503 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
52504 | rm -f conftest.tail | |
52505 | while grep . conftest.undefs >/dev/null | |
52506 | do | |
52507 | # Write a limited-size here document to $tmp/undefs.sed. | |
52508 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
52509 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 52510 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
52511 | # Work around the forget-to-reset-the-flag bug. |
52512 | echo 't clr' >>$CONFIG_STATUS | |
52513 | echo ': clr' >>$CONFIG_STATUS | |
52514 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
52515 | echo 'CEOF | |
52516 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
52517 | rm -f $tmp/in | |
52518 | mv $tmp/out $tmp/in | |
52519 | ' >>$CONFIG_STATUS | |
52520 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
52521 | rm -f conftest.undefs | |
52522 | mv conftest.tail conftest.undefs | |
52523 | done | |
52524 | rm -f conftest.undefs | |
52525 | ||
52526 | cat >>$CONFIG_STATUS <<\_ACEOF | |
52527 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
52528 | # use $as_me), people would be surprised to read: | |
52529 | # /* config.h. Generated by config.status. */ | |
52530 | if test x"$ac_file" = x-; then | |
52531 | echo "/* Generated by configure. */" >$tmp/config.h | |
52532 | else | |
52533 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
52534 | fi | |
52535 | cat $tmp/in >>$tmp/config.h | |
52536 | rm -f $tmp/in | |
52537 | if test x"$ac_file" != x-; then | |
52538 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
52539 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
52540 | echo "$as_me: $ac_file is unchanged" >&6;} | |
52541 | else | |
52542 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
52543 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
52544 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
52545 | X"$ac_file" : 'X\(//\)$' \| \ | |
52546 | X"$ac_file" : 'X\(/\)' \| \ | |
52547 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
52548 | echo X"$ac_file" | |
52549 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
52550 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
52551 | /^X\(\/\/\)$/{ s//\1/; q; } | |
52552 | /^X\(\/\).*/{ s//\1/; q; } | |
52553 | s/.*/./; q'` | |
52554 | { if $as_mkdir_p; then | |
52555 | mkdir -p "$ac_dir" | |
52556 | else | |
52557 | as_dir="$ac_dir" | |
52558 | as_dirs= | |
52559 | while test ! -d "$as_dir"; do | |
52560 | as_dirs="$as_dir $as_dirs" | |
52561 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
52562 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
52563 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
52564 | X"$as_dir" : 'X\(//\)$' \| \ | |
52565 | X"$as_dir" : 'X\(/\)' \| \ | |
52566 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
52567 | echo X"$as_dir" | |
52568 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
52569 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
52570 | /^X\(\/\/\)$/{ s//\1/; q; } | |
52571 | /^X\(\/\).*/{ s//\1/; q; } | |
52572 | s/.*/./; q'` | |
52573 | done | |
52574 | test ! -n "$as_dirs" || mkdir $as_dirs | |
52575 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
52576 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
52577 | { (exit 1); exit 1; }; }; } | |
52578 | ||
52579 | rm -f $ac_file | |
52580 | mv $tmp/config.h $ac_file | |
52581 | fi | |
52582 | else | |
52583 | cat $tmp/config.h | |
52584 | rm -f $tmp/config.h | |
52585 | fi | |
52586 | done | |
52587 | _ACEOF | |
52588 | cat >>$CONFIG_STATUS <<\_ACEOF | |
52589 | ||
52590 | # | |
52591 | # CONFIG_COMMANDS section. | |
52592 | # | |
52593 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
52594 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
52595 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
52596 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
52597 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
52598 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
52599 | X"$ac_dest" : 'X\(//\)$' \| \ | |
52600 | X"$ac_dest" : 'X\(/\)' \| \ | |
52601 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
52602 | echo X"$ac_dest" | |
52603 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
52604 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
52605 | /^X\(\/\/\)$/{ s//\1/; q; } | |
52606 | /^X\(\/\).*/{ s//\1/; q; } | |
52607 | s/.*/./; q'` | |
ac1cb8d3 VS |
52608 | { if $as_mkdir_p; then |
52609 | mkdir -p "$ac_dir" | |
52610 | else | |
52611 | as_dir="$ac_dir" | |
52612 | as_dirs= | |
52613 | while test ! -d "$as_dir"; do | |
52614 | as_dirs="$as_dir $as_dirs" | |
52615 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
52616 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
52617 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
52618 | X"$as_dir" : 'X\(//\)$' \| \ | |
52619 | X"$as_dir" : 'X\(/\)' \| \ | |
52620 | . : '\(.\)' 2>/dev/null || | |
52621 | echo X"$as_dir" | | |
52622 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
52623 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
52624 | /^X\(\/\/\)$/{ s//\1/; q; } | |
52625 | /^X\(\/\).*/{ s//\1/; q; } | |
52626 | s/.*/./; q'` | |
52627 | done | |
52628 | test ! -n "$as_dirs" || mkdir $as_dirs | |
52629 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
52630 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
52631 | { (exit 1); exit 1; }; }; } | |
52632 | ||
a848cd7e SC |
52633 | ac_builddir=. |
52634 | ||
52635 | if test "$ac_dir" != .; then | |
52636 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
52637 | # A "../" for each directory in $ac_dir_suffix. | |
52638 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
52639 | else | |
52640 | ac_dir_suffix= ac_top_builddir= | |
52641 | fi | |
52642 | ||
52643 | case $srcdir in | |
52644 | .) # No --srcdir option. We are building in place. | |
52645 | ac_srcdir=. | |
52646 | if test -z "$ac_top_builddir"; then | |
52647 | ac_top_srcdir=. | |
52648 | else | |
52649 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
52650 | fi ;; | |
52651 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
52652 | ac_srcdir=$srcdir$ac_dir_suffix; | |
52653 | ac_top_srcdir=$srcdir ;; | |
52654 | *) # Relative path. | |
52655 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
52656 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
52657 | esac | |
ac1cb8d3 VS |
52658 | |
52659 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
52660 | # the directories may not exist. | |
52661 | case `pwd` in | |
52662 | .) ac_abs_builddir="$ac_dir";; | |
52663 | *) | |
52664 | case "$ac_dir" in | |
52665 | .) ac_abs_builddir=`pwd`;; | |
52666 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
52667 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
52668 | esac;; | |
52669 | esac | |
52670 | case $ac_abs_builddir in | |
52671 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
52672 | *) | |
52673 | case ${ac_top_builddir}. in | |
52674 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
52675 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
52676 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
52677 | esac;; | |
52678 | esac | |
52679 | case $ac_abs_builddir in | |
52680 | .) ac_abs_srcdir=$ac_srcdir;; | |
52681 | *) | |
52682 | case $ac_srcdir in | |
52683 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
52684 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
52685 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
52686 | esac;; | |
52687 | esac | |
52688 | case $ac_abs_builddir in | |
52689 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
52690 | *) | |
52691 | case $ac_top_srcdir in | |
52692 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
52693 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
52694 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
52695 | esac;; | |
52696 | esac | |
a848cd7e SC |
52697 | |
52698 | ||
52699 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
52700 | echo "$as_me: executing $ac_dest commands" >&6;} | |
52701 | case $ac_dest in | |
5c60e845 MW |
52702 | rcdefs.h ) |
52703 | mkdir -p $outdir && | |
52704 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
52705 | ;; | |
ceec2216 RL |
52706 | wx-config ) rm -f wx-config |
52707 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
52708 | ;; | |
a848cd7e SC |
52709 | esac |
52710 | done | |
52711 | _ACEOF | |
52712 | ||
52713 | cat >>$CONFIG_STATUS <<\_ACEOF | |
52714 | ||
52715 | { (exit 0); exit 0; } | |
52716 | _ACEOF | |
52717 | chmod +x $CONFIG_STATUS | |
52718 | ac_clean_files=$ac_clean_files_save | |
52719 | ||
52720 | ||
52721 | # configure is writing to config.log, and then calls config.status. | |
52722 | # config.status does its own redirection, appending to config.log. | |
52723 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
52724 | # by configure, so config.status won't be able to write to it; its | |
52725 | # output is simply discarded. So we exec the FD to /dev/null, | |
52726 | # effectively closing config.log, so it can be properly (re)opened and | |
52727 | # appended to by config.status. When coming back to configure, we | |
52728 | # need to make the FD available again. | |
52729 | if test "$no_create" != yes; then | |
52730 | ac_cs_success=: | |
52731 | ac_config_status_args= | |
52732 | test "$silent" = yes && | |
52733 | ac_config_status_args="$ac_config_status_args --quiet" | |
52734 | exec 5>/dev/null | |
52735 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
52736 | exec 5>>config.log | |
52737 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
52738 | # would make configure fail if this is the last instruction. | |
52739 | $ac_cs_success || { (exit 1); exit 1; } | |
52740 | fi | |
52741 | ||
52742 | # | |
52743 | # CONFIG_SUBDIRS section. | |
52744 | # | |
52745 | if test "$no_recursion" != yes; then | |
52746 | ||
52747 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
52748 | ac_sub_configure_args= | |
52749 | ac_prev= | |
52750 | for ac_arg in $ac_configure_args; do | |
52751 | if test -n "$ac_prev"; then | |
52752 | ac_prev= | |
52753 | continue | |
52754 | fi | |
52755 | case $ac_arg in | |
52756 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
52757 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
52758 | ac_prev=cache_file ;; | |
52759 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
52760 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
52761 | | --c=*) | |
52762 | ;; | |
52763 | --config-cache | -C) | |
52764 | ;; | |
52765 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
52766 | ac_prev=srcdir ;; | |
52767 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
52768 | ;; | |
52769 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
52770 | ac_prev=prefix ;; | |
52771 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
52772 | ;; | |
52773 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
52774 | esac | |
52775 | done | |
52776 | ||
52777 | # Always prepend --prefix to ensure using the same prefix | |
52778 | # in subdir configurations. | |
52779 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
52780 | ||
52781 | ac_popdir=`pwd` | |
52782 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
52783 | ||
52784 | # Do not complain, so a configure script can configure whichever | |
52785 | # parts of a large source tree are present. | |
52786 | test -d $srcdir/$ac_dir || continue | |
52787 | ||
52788 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
52789 | echo "$as_me: configuring in $ac_dir" >&6;} | |
52790 | { if $as_mkdir_p; then | |
52791 | mkdir -p "$ac_dir" | |
52792 | else | |
52793 | as_dir="$ac_dir" | |
52794 | as_dirs= | |
52795 | while test ! -d "$as_dir"; do | |
52796 | as_dirs="$as_dir $as_dirs" | |
52797 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
52798 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
52799 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
52800 | X"$as_dir" : 'X\(//\)$' \| \ | |
52801 | X"$as_dir" : 'X\(/\)' \| \ | |
52802 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
52803 | echo X"$as_dir" | |
52804 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
52805 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
52806 | /^X\(\/\/\)$/{ s//\1/; q; } | |
52807 | /^X\(\/\).*/{ s//\1/; q; } | |
52808 | s/.*/./; q'` | |
52809 | done | |
52810 | test ! -n "$as_dirs" || mkdir $as_dirs | |
52811 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
52812 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
52813 | { (exit 1); exit 1; }; }; } | |
52814 | ||
52815 | ac_builddir=. | |
52816 | ||
52817 | if test "$ac_dir" != .; then | |
52818 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
52819 | # A "../" for each directory in $ac_dir_suffix. | |
52820 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
52821 | else | |
52822 | ac_dir_suffix= ac_top_builddir= | |
52823 | fi | |
52824 | ||
52825 | case $srcdir in | |
52826 | .) # No --srcdir option. We are building in place. | |
52827 | ac_srcdir=. | |
52828 | if test -z "$ac_top_builddir"; then | |
52829 | ac_top_srcdir=. | |
52830 | else | |
52831 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
52832 | fi ;; | |
52833 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
52834 | ac_srcdir=$srcdir$ac_dir_suffix; | |
52835 | ac_top_srcdir=$srcdir ;; | |
52836 | *) # Relative path. | |
52837 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
52838 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
52839 | esac | |
ac1cb8d3 VS |
52840 | |
52841 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
52842 | # the directories may not exist. | |
52843 | case `pwd` in | |
52844 | .) ac_abs_builddir="$ac_dir";; | |
52845 | *) | |
52846 | case "$ac_dir" in | |
52847 | .) ac_abs_builddir=`pwd`;; | |
52848 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
52849 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
52850 | esac;; | |
52851 | esac | |
52852 | case $ac_abs_builddir in | |
52853 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
52854 | *) | |
52855 | case ${ac_top_builddir}. in | |
52856 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
52857 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
52858 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
52859 | esac;; | |
52860 | esac | |
52861 | case $ac_abs_builddir in | |
52862 | .) ac_abs_srcdir=$ac_srcdir;; | |
52863 | *) | |
52864 | case $ac_srcdir in | |
52865 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
52866 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
52867 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
52868 | esac;; | |
52869 | esac | |
52870 | case $ac_abs_builddir in | |
52871 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
52872 | *) | |
52873 | case $ac_top_srcdir in | |
52874 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
52875 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
52876 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
52877 | esac;; | |
52878 | esac | |
a848cd7e SC |
52879 | |
52880 | ||
52881 | cd $ac_dir | |
52882 | ||
52883 | # Check for guested configure; otherwise get Cygnus style configure. | |
52884 | if test -f $ac_srcdir/configure.gnu; then | |
52885 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
52886 | elif test -f $ac_srcdir/configure; then | |
52887 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
52888 | elif test -f $ac_srcdir/configure.in; then | |
52889 | ac_sub_configure=$ac_configure | |
52890 | else | |
52891 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
52892 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
52893 | ac_sub_configure= | |
52894 | fi | |
52895 | ||
52896 | # The recursion is here. | |
52897 | if test -n "$ac_sub_configure"; then | |
52898 | # Make the cache file name correct relative to the subdirectory. | |
52899 | case $cache_file in | |
52900 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
52901 | *) # Relative path. | |
ac1cb8d3 | 52902 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
52903 | esac |
52904 | ||
52905 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
52906 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
52907 | # The eval makes quoting arguments work. | |
52908 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
52909 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
52910 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
52911 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
52912 | { (exit 1); exit 1; }; } | |
52913 | fi | |
52914 | ||
bb9e79c0 | 52915 | cd "$ac_popdir" |
a848cd7e SC |
52916 | done |
52917 | fi | |
52918 | ||
52919 | ||
52920 | echo | |
77ffb593 | 52921 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 52922 | echo "" |
c2e9ada4 | 52923 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}" |
77ffb593 | 52924 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 52925 | |
77ffb593 JS |
52926 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
52927 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
52928 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 52929 | |
77ffb593 | 52930 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
52931 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
52932 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 52933 | |
77ffb593 | 52934 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
52935 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
52936 | echo " png ${wxUSE_LIBPNG-none}" | |
52937 | echo " regex ${wxUSE_REGEX}" | |
52938 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
52939 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
52940 | echo " xpm ${wxUSE_LIBXPM-none}" | |
52941 | fi | |
52942 | echo " zlib ${wxUSE_ZLIB}" | |
52943 | echo " odbc ${wxUSE_ODBC}" | |
52944 | echo " expat ${wxUSE_EXPAT}" | |
52945 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
52946 | echo " sdl ${wxUSE_LIBSDL}" | |
52947 | ||
52948 | echo "" | |
52949 |